@dxtmisha/constructor 0.30.1 → 0.39.3
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 +838 -0
- package/dist/ActionsInclude-H5ZWeXJj.js +64 -0
- package/dist/AriaStaticInclude-CFGewqpn.js +219 -0
- package/dist/ArrowInclude-CcpT637l.js +47 -0
- package/dist/BarsInclude-IM3Gdslg.js +69 -0
- package/dist/BlockDesign-D67yDT9N.js +233 -0
- package/dist/ButtonDesign-DZ7QCmHk.js +169 -0
- package/dist/CaptionInclude-AFVF4qyd.js +52 -0
- package/dist/DescriptionInclude-DxWNon_J.js +65 -0
- package/dist/EnabledInclude-DGeuJhOr.js +46 -0
- package/dist/EventClickInclude-eDWqxK0d.js +93 -0
- package/dist/FieldCounterInclude-BR6n8WlH.js +59 -0
- package/dist/FieldEventInclude-zg02dtQi.js +715 -0
- package/dist/FieldInclude-c6DSD0-y.js +134 -0
- package/dist/FieldInputCheckInclude-CjNYyGTb.js +79 -0
- package/dist/FieldLabelInclude-B4OGaJ1r.js +64 -0
- package/dist/FieldMatchInclude-Vl2gJUaM.js +302 -0
- package/dist/FieldMessageInclude-CktVHvWW.js +71 -0
- package/dist/IconInclude-CLqwI29Q.js +123 -0
- package/dist/IconTrailingInclude-CdsOcDxv.js +83 -0
- package/dist/LabelHighlightInclude-Dhj3p9NW.js +75 -0
- package/dist/LabelInclude-BtZrrbCf.js +132 -0
- package/dist/LabelNumberInclude-DyifvMnr.js +46 -0
- package/dist/ListGroupOpen-Bl_HIQoV.js +43 -0
- package/dist/MenuInclude-DfGCfr_I.js +94 -0
- package/dist/ModalDesignAbstract-CjDr5JaN.js +179 -0
- package/dist/ModelInclude-BiYm_iCQ.js +73 -0
- package/dist/ModelValueInclude-CJmm5go9.js +48 -0
- package/dist/MotionTransformClassesInclude-B23RIq0Q.js +214 -0
- package/dist/MotionTransformInclude-P_oRs3JZ.js +97 -0
- package/dist/ProgressInclude-UBipdctr.js +56 -0
- package/dist/RippleInclude-Du5yIzX_.js +21 -0
- package/dist/SkeletonInclude-BIUzAO2s.js +105 -0
- package/dist/SuffixInclude-C7JNYCJK.js +97 -0
- package/dist/TabIndexInclude-d7A_R6KD.js +167 -0
- package/dist/TextInclude-i1OBAFTG.js +76 -0
- package/dist/TooltipInclude--QRSE83v.js +76 -0
- package/dist/TouchEventInclude-DctYCjt8.js +186 -0
- package/dist/WindowClassesInclude-B56usxgx.js +213 -0
- package/dist/WindowEsc-Dp9AvJt7.js +72 -0
- package/dist/WindowInclude-Is5RhGxt.js +117 -0
- package/dist/accordion.js +178 -0
- package/dist/actionSheet.js +140 -0
- package/dist/actions.js +191 -0
- package/dist/anchor.js +358 -0
- package/dist/arrow.js +666 -0
- package/dist/badge.js +136 -0
- package/dist/bars.js +332 -0
- package/dist/block.js +10 -0
- package/dist/button.js +65 -0
- package/dist/cell.js +275 -0
- package/dist/chip.js +82 -0
- package/dist/chipGroup.js +160 -0
- package/dist/classes/AriaStaticInclude.d.ts +150 -0
- package/dist/classes/CaptionInclude.d.ts +34 -0
- package/dist/classes/DescriptionInclude.d.ts +44 -0
- package/dist/classes/EnabledInclude.d.ts +43 -0
- package/dist/classes/EventClickInclude.d.ts +62 -0
- package/dist/classes/LabelHighlightInclude.d.ts +52 -0
- package/dist/classes/LabelInclude.d.ts +82 -0
- package/dist/classes/LabelNumberInclude.d.ts +38 -0
- package/dist/classes/ModelInclude.d.ts +61 -0
- package/dist/classes/ModelValueInclude.d.ts +40 -0
- package/dist/classes/PrefixInclude.d.ts +34 -0
- package/dist/classes/SuffixInclude.d.ts +34 -0
- package/dist/classes/TabIndexInclude.d.ts +109 -0
- package/dist/classes/TextInclude.d.ts +49 -0
- package/dist/classes/TouchEventInclude.d.ts +122 -0
- package/dist/classes/field/FieldArrowInclude.d.ts +99 -0
- package/dist/classes/field/FieldAttributesInclude.d.ts +50 -0
- package/dist/classes/field/FieldChangeInclude.d.ts +35 -0
- package/dist/classes/field/FieldCodeInclude.d.ts +28 -0
- package/dist/classes/field/FieldElementInclude.d.ts +42 -0
- package/dist/classes/field/FieldEventInclude.d.ts +125 -0
- package/dist/classes/field/FieldInputCheckInclude.d.ts +47 -0
- package/dist/classes/field/FieldInputModeInclude.d.ts +20 -0
- package/dist/classes/field/FieldMatchInclude.d.ts +47 -0
- package/dist/classes/field/FieldPatternInclude.d.ts +20 -0
- package/dist/classes/field/FieldTypeInclude.d.ts +26 -0
- package/dist/classes/field/FieldValidationInclude.d.ts +83 -0
- package/dist/classes/field/FieldValueInclude.d.ts +154 -0
- package/dist/classes/field/FieldVisibilityInclude.d.ts +15 -0
- package/dist/constructors/Accordion/Accordion.d.ts +38 -0
- package/dist/constructors/Accordion/AccordionDesign.d.ts +56 -0
- package/dist/constructors/Accordion/basicTypes.d.ts +1 -0
- package/dist/constructors/Accordion/index.d.ts +5 -0
- package/dist/constructors/Accordion/props.d.ts +34 -0
- package/dist/constructors/Accordion/types.d.ts +44 -0
- package/dist/constructors/ActionSheet/ActionSheet.d.ts +32 -0
- package/dist/constructors/ActionSheet/ActionSheetDesign.d.ts +36 -0
- package/dist/constructors/ActionSheet/basicTypes.d.ts +1 -0
- package/dist/constructors/ActionSheet/index.d.ts +5 -0
- package/dist/constructors/ActionSheet/props.d.ts +26 -0
- package/dist/constructors/ActionSheet/types.d.ts +42 -0
- package/dist/constructors/Actions/Actions.d.ts +41 -0
- package/dist/constructors/Actions/ActionsDesign.d.ts +60 -0
- package/dist/constructors/Actions/ActionsInclude.d.ts +53 -0
- package/dist/constructors/Actions/basicTypes.d.ts +29 -0
- package/dist/constructors/Actions/index.d.ts +6 -0
- package/dist/constructors/Actions/props.d.ts +28 -0
- package/dist/constructors/Actions/types.d.ts +43 -0
- package/dist/constructors/Anchor/Anchor.d.ts +65 -0
- package/dist/constructors/Anchor/AnchorDesign.d.ts +81 -0
- package/dist/constructors/Anchor/AnchorEvent.d.ts +44 -0
- package/dist/constructors/Anchor/AnchorHref.d.ts +35 -0
- package/dist/constructors/Anchor/AnchorIcon.d.ts +30 -0
- package/dist/constructors/Anchor/AnchorTo.d.ts +26 -0
- package/dist/constructors/Anchor/basicTypes.d.ts +8 -0
- package/dist/constructors/Anchor/index.d.ts +5 -0
- package/dist/constructors/Anchor/props.d.ts +32 -0
- package/dist/constructors/Anchor/types.d.ts +40 -0
- package/dist/constructors/Arrow/Arrow.d.ts +56 -0
- package/dist/constructors/Arrow/ArrowDesign.d.ts +62 -0
- package/dist/constructors/Arrow/ArrowElement.d.ts +78 -0
- package/dist/constructors/Arrow/ArrowElementTarget.d.ts +40 -0
- package/dist/constructors/Arrow/ArrowEvent.d.ts +62 -0
- package/dist/constructors/Arrow/ArrowInclude.d.ts +44 -0
- package/dist/constructors/Arrow/ArrowParent.d.ts +49 -0
- package/dist/constructors/Arrow/ArrowPosition.d.ts +75 -0
- package/dist/constructors/Arrow/basicTypes.d.ts +39 -0
- package/dist/constructors/Arrow/index.d.ts +6 -0
- package/dist/constructors/Arrow/props.d.ts +23 -0
- package/dist/constructors/Arrow/types.d.ts +42 -0
- package/dist/constructors/Badge/Badge.d.ts +49 -0
- package/dist/constructors/Badge/BadgeDesign.d.ts +42 -0
- package/dist/constructors/Badge/BadgeInclude.d.ts +45 -0
- package/dist/constructors/Badge/basicTypes.d.ts +9 -0
- package/dist/constructors/Badge/index.d.ts +5 -0
- package/dist/constructors/Badge/props.d.ts +32 -0
- package/dist/constructors/Badge/types.d.ts +39 -0
- package/dist/constructors/Bars/Bars.d.ts +97 -0
- package/dist/constructors/Bars/BarsAction.d.ts +33 -0
- package/dist/constructors/Bars/BarsDesign.d.ts +73 -0
- package/dist/constructors/Bars/BarsInclude.d.ts +55 -0
- package/dist/constructors/Bars/basicTypes.d.ts +34 -0
- package/dist/constructors/Bars/index.d.ts +6 -0
- package/dist/constructors/Bars/props.d.ts +39 -0
- package/dist/constructors/Bars/types.d.ts +47 -0
- package/dist/constructors/Block/Block.d.ts +76 -0
- package/dist/constructors/Block/BlockDesign.d.ts +67 -0
- package/dist/constructors/Block/basicTypes.d.ts +1 -0
- package/dist/constructors/Block/index.d.ts +5 -0
- package/dist/constructors/Block/props.d.ts +28 -0
- package/dist/constructors/Block/types.d.ts +53 -0
- package/dist/constructors/Button/Button.d.ts +51 -0
- package/dist/constructors/Button/ButtonDesign.d.ts +42 -0
- package/dist/constructors/Button/ButtonInclude.d.ts +48 -0
- package/dist/constructors/Button/basicTypes.d.ts +8 -0
- package/dist/constructors/Button/index.d.ts +6 -0
- package/dist/constructors/Button/props.d.ts +39 -0
- package/dist/constructors/Button/types.d.ts +44 -0
- package/dist/constructors/Cell/Cell.d.ts +66 -0
- package/dist/constructors/Cell/CellDesign.d.ts +123 -0
- package/dist/constructors/Cell/basicTypes.d.ts +33 -0
- package/dist/constructors/Cell/index.d.ts +5 -0
- package/dist/constructors/Cell/props.d.ts +42 -0
- package/dist/constructors/Cell/types.d.ts +54 -0
- package/dist/constructors/Chip/Chip.d.ts +29 -0
- package/dist/constructors/Chip/ChipDesign.d.ts +8 -0
- package/dist/constructors/Chip/ChipInclude.d.ts +48 -0
- package/dist/constructors/Chip/basicTypes.d.ts +8 -0
- package/dist/constructors/Chip/index.d.ts +6 -0
- package/dist/constructors/Chip/props.d.ts +32 -0
- package/dist/constructors/Chip/types.d.ts +40 -0
- package/dist/constructors/ChipGroup/ChipGroup.d.ts +40 -0
- package/dist/constructors/ChipGroup/ChipGroupDesign.d.ts +56 -0
- package/dist/constructors/ChipGroup/basicTypes.d.ts +5 -0
- package/dist/constructors/ChipGroup/index.d.ts +5 -0
- package/dist/constructors/ChipGroup/props.d.ts +31 -0
- package/dist/constructors/ChipGroup/types.d.ts +40 -0
- package/dist/constructors/Dialog/Dialog.d.ts +47 -0
- package/dist/constructors/Dialog/DialogDesign.d.ts +42 -0
- package/dist/constructors/Dialog/basicTypes.d.ts +1 -0
- package/dist/constructors/Dialog/index.d.ts +5 -0
- package/dist/constructors/Dialog/props.d.ts +45 -0
- package/dist/constructors/Dialog/types.d.ts +50 -0
- package/dist/constructors/Field/Field.d.ts +75 -0
- package/dist/constructors/Field/FieldDesign.d.ts +108 -0
- package/dist/constructors/Field/FieldIcons.d.ts +49 -0
- package/dist/constructors/Field/FieldInclude.d.ts +66 -0
- package/dist/constructors/Field/FieldSize.d.ts +45 -0
- package/dist/constructors/Field/basicTypes.d.ts +65 -0
- package/dist/constructors/Field/index.d.ts +5 -0
- package/dist/constructors/Field/props.d.ts +60 -0
- package/dist/constructors/Field/types.d.ts +59 -0
- package/dist/constructors/FieldCounter/FieldCounter.d.ts +47 -0
- package/dist/constructors/FieldCounter/FieldCounterDesign.d.ts +42 -0
- package/dist/constructors/FieldCounter/FieldCounterInclude.d.ts +36 -0
- package/dist/constructors/FieldCounter/basicTypes.d.ts +21 -0
- package/dist/constructors/FieldCounter/index.d.ts +6 -0
- package/dist/constructors/FieldCounter/props.d.ts +22 -0
- package/dist/constructors/FieldCounter/types.d.ts +35 -0
- package/dist/constructors/FieldLabel/FieldLabel.d.ts +48 -0
- package/dist/constructors/FieldLabel/FieldLabelDesign.d.ts +48 -0
- package/dist/constructors/FieldLabel/FieldLabelInclude.d.ts +43 -0
- package/dist/constructors/FieldLabel/basicTypes.d.ts +28 -0
- package/dist/constructors/FieldLabel/index.d.ts +6 -0
- package/dist/constructors/FieldLabel/props.d.ts +23 -0
- package/dist/constructors/FieldLabel/types.d.ts +40 -0
- package/dist/constructors/FieldMessage/FieldMessage.d.ts +55 -0
- package/dist/constructors/FieldMessage/FieldMessageDesign.d.ts +54 -0
- package/dist/constructors/FieldMessage/FieldMessageInclude.d.ts +49 -0
- package/dist/constructors/FieldMessage/FieldMessageMessage.d.ts +24 -0
- package/dist/constructors/FieldMessage/basicTypes.d.ts +31 -0
- package/dist/constructors/FieldMessage/index.d.ts +6 -0
- package/dist/constructors/FieldMessage/props.d.ts +26 -0
- package/dist/constructors/FieldMessage/types.d.ts +43 -0
- package/dist/constructors/Icon/Icon.d.ts +75 -0
- package/dist/constructors/Icon/IconDesign.d.ts +58 -0
- package/dist/constructors/Icon/IconInclude.d.ts +37 -0
- package/dist/constructors/Icon/IconLiteInclude.d.ts +63 -0
- package/dist/constructors/Icon/IconTrailingInclude.d.ts +51 -0
- package/dist/constructors/Icon/basicTypes.d.ts +28 -0
- package/dist/constructors/Icon/index.d.ts +8 -0
- package/dist/constructors/Icon/props.d.ts +43 -0
- package/dist/constructors/Icon/types.d.ts +39 -0
- package/dist/constructors/Image/Image.d.ts +138 -0
- package/dist/constructors/Image/ImageAdaptiveGroup.d.ts +104 -0
- package/dist/constructors/Image/ImageAdaptiveItem.d.ts +142 -0
- package/dist/constructors/Image/ImageBackground.d.ts +67 -0
- package/dist/constructors/Image/ImageCalculation.d.ts +101 -0
- package/dist/constructors/Image/ImageCalculationList.d.ts +42 -0
- package/dist/constructors/Image/ImageCoordinator.d.ts +45 -0
- package/dist/constructors/Image/ImageData.d.ts +56 -0
- package/dist/constructors/Image/ImageDesign.d.ts +79 -0
- package/dist/constructors/Image/ImageFile.d.ts +58 -0
- package/dist/constructors/Image/ImageImg.d.ts +87 -0
- package/dist/constructors/Image/ImageInclude.d.ts +35 -0
- package/dist/constructors/Image/ImagePdf.d.ts +21 -0
- package/dist/constructors/Image/ImagePosition.d.ts +30 -0
- package/dist/constructors/Image/ImageType.d.ts +22 -0
- package/dist/constructors/Image/basicTypes.d.ts +54 -0
- package/dist/constructors/Image/index.d.ts +5 -0
- package/dist/constructors/Image/props.d.ts +77 -0
- package/dist/constructors/Image/types.d.ts +41 -0
- package/dist/constructors/Input/Input.d.ts +62 -0
- package/dist/constructors/Input/InputDesign.d.ts +57 -0
- package/dist/constructors/Input/InputPassword.d.ts +30 -0
- package/dist/constructors/Input/basicTypes.d.ts +3 -0
- package/dist/constructors/Input/index.d.ts +5 -0
- package/dist/constructors/Input/props.d.ts +32 -0
- package/dist/constructors/Input/types.d.ts +38 -0
- package/dist/constructors/List/List.d.ts +175 -0
- package/dist/constructors/List/ListControl.d.ts +75 -0
- package/dist/constructors/List/ListDesign.d.ts +142 -0
- package/dist/constructors/List/ListFocus.d.ts +114 -0
- package/dist/constructors/List/ListGo.d.ts +111 -0
- package/dist/constructors/List/ListSearch.d.ts +59 -0
- package/dist/constructors/List/basicTypes.d.ts +3 -0
- package/dist/constructors/List/index.d.ts +5 -0
- package/dist/constructors/List/props.d.ts +52 -0
- package/dist/constructors/List/types.d.ts +53 -0
- package/dist/constructors/ListGroup/ListGroup.d.ts +38 -0
- package/dist/constructors/ListGroup/ListGroupDesign.d.ts +62 -0
- package/dist/constructors/ListGroup/ListGroupOpen.d.ts +44 -0
- package/dist/constructors/ListGroup/basicTypes.d.ts +7 -0
- package/dist/constructors/ListGroup/index.d.ts +5 -0
- package/dist/constructors/ListGroup/props.d.ts +21 -0
- package/dist/constructors/ListGroup/types.d.ts +43 -0
- package/dist/constructors/ListItem/ListItem.d.ts +175 -0
- package/dist/constructors/ListItem/ListItemDesign.d.ts +56 -0
- package/dist/constructors/ListItem/basicTypes.d.ts +3 -0
- package/dist/constructors/ListItem/index.d.ts +5 -0
- package/dist/constructors/ListItem/props.d.ts +55 -0
- package/dist/constructors/ListItem/types.d.ts +59 -0
- package/dist/constructors/ListMenu/ListMenu.d.ts +33 -0
- package/dist/constructors/ListMenu/ListMenuDesign.d.ts +42 -0
- package/dist/constructors/ListMenu/basicTypes.d.ts +3 -0
- package/dist/constructors/ListMenu/index.d.ts +5 -0
- package/dist/constructors/ListMenu/props.d.ts +22 -0
- package/dist/constructors/ListMenu/types.d.ts +40 -0
- package/dist/constructors/Mask/Mask.d.ts +125 -0
- package/dist/constructors/Mask/MaskBuffer.d.ts +56 -0
- package/dist/constructors/Mask/MaskCharacter.d.ts +100 -0
- package/dist/constructors/Mask/MaskCharacterLength.d.ts +29 -0
- package/dist/constructors/Mask/MaskData.d.ts +104 -0
- package/dist/constructors/Mask/MaskDate.d.ts +67 -0
- package/dist/constructors/Mask/MaskDesign.d.ts +60 -0
- package/dist/constructors/Mask/MaskEmit.d.ts +74 -0
- package/dist/constructors/Mask/MaskEvent.d.ts +159 -0
- package/dist/constructors/Mask/MaskFocus.d.ts +34 -0
- package/dist/constructors/Mask/MaskFormat.d.ts +94 -0
- package/dist/constructors/Mask/MaskInclude.d.ts +67 -0
- package/dist/constructors/Mask/MaskItem.d.ts +112 -0
- package/dist/constructors/Mask/MaskMatch.d.ts +40 -0
- package/dist/constructors/Mask/MaskPattern.d.ts +56 -0
- package/dist/constructors/Mask/MaskRight.d.ts +29 -0
- package/dist/constructors/Mask/MaskRubber.d.ts +75 -0
- package/dist/constructors/Mask/MaskRubberItem.d.ts +52 -0
- package/dist/constructors/Mask/MaskRubberTransition.d.ts +36 -0
- package/dist/constructors/Mask/MaskSelection.d.ts +119 -0
- package/dist/constructors/Mask/MaskSpecial.d.ts +93 -0
- package/dist/constructors/Mask/MaskType.d.ts +61 -0
- package/dist/constructors/Mask/MaskValidation.d.ts +40 -0
- package/dist/constructors/Mask/MaskValue.d.ts +89 -0
- package/dist/constructors/Mask/MaskValueBasic.d.ts +49 -0
- package/dist/constructors/Mask/MaskView.d.ts +84 -0
- package/dist/constructors/Mask/basicTypes.d.ts +52 -0
- package/dist/constructors/Mask/index.d.ts +5 -0
- package/dist/constructors/Mask/props.d.ts +48 -0
- package/dist/constructors/Mask/types.d.ts +62 -0
- package/dist/constructors/Menu/Menu.d.ts +92 -0
- package/dist/constructors/Menu/MenuDesign.d.ts +79 -0
- package/dist/constructors/Menu/MenuGo.d.ts +49 -0
- package/dist/constructors/Menu/MenuInclude.d.ts +56 -0
- package/dist/constructors/Menu/MenuRequest.d.ts +59 -0
- package/dist/constructors/Menu/MenuSearch.d.ts +38 -0
- package/dist/constructors/Menu/MenuValue.d.ts +36 -0
- package/dist/constructors/Menu/MenuWindow.d.ts +52 -0
- package/dist/constructors/Menu/basicTypes.d.ts +39 -0
- package/dist/constructors/Menu/index.d.ts +6 -0
- package/dist/constructors/Menu/props.d.ts +54 -0
- package/dist/constructors/Menu/types.d.ts +48 -0
- package/dist/constructors/Modal/Modal.d.ts +30 -0
- package/dist/constructors/Modal/ModalAbstract.d.ts +41 -0
- package/dist/constructors/Modal/ModalDesign.d.ts +16 -0
- package/dist/constructors/Modal/ModalDesignAbstract.d.ts +70 -0
- package/dist/constructors/Modal/basicTypes.d.ts +1 -0
- package/dist/constructors/Modal/index.d.ts +5 -0
- package/dist/constructors/Modal/props.d.ts +27 -0
- package/dist/constructors/Modal/types.d.ts +43 -0
- package/dist/constructors/MotionTransform/MotionTransform.d.ts +68 -0
- package/dist/constructors/MotionTransform/MotionTransformClassesInclude.d.ts +28 -0
- package/dist/constructors/MotionTransform/MotionTransformDesign.d.ts +153 -0
- package/dist/constructors/MotionTransform/MotionTransformElement.d.ts +132 -0
- package/dist/constructors/MotionTransform/MotionTransformEvent.d.ts +57 -0
- package/dist/constructors/MotionTransform/MotionTransformGo.d.ts +41 -0
- package/dist/constructors/MotionTransform/MotionTransformInclude.d.ts +51 -0
- package/dist/constructors/MotionTransform/MotionTransformSize.d.ts +46 -0
- package/dist/constructors/MotionTransform/MotionTransformState.d.ts +109 -0
- package/dist/constructors/MotionTransform/basicTypes.d.ts +123 -0
- package/dist/constructors/MotionTransform/index.d.ts +7 -0
- package/dist/constructors/MotionTransform/props.d.ts +39 -0
- package/dist/constructors/MotionTransform/types.d.ts +72 -0
- package/dist/constructors/Page/Page.d.ts +6 -0
- package/dist/constructors/Page/PageDesign.d.ts +18 -0
- package/dist/constructors/Page/basicTypes.d.ts +1 -0
- package/dist/constructors/Page/index.d.ts +5 -0
- package/dist/constructors/Page/props.d.ts +23 -0
- package/dist/constructors/Page/types.d.ts +44 -0
- package/dist/constructors/Progress/Progress.d.ts +106 -0
- package/dist/constructors/Progress/ProgressDesign.d.ts +115 -0
- package/dist/constructors/Progress/ProgressInclude.d.ts +43 -0
- package/dist/constructors/Progress/basicTypes.d.ts +8 -0
- package/dist/constructors/Progress/index.d.ts +6 -0
- package/dist/constructors/Progress/props.d.ts +42 -0
- package/dist/constructors/Progress/types.d.ts +38 -0
- package/dist/constructors/Ripple/Ripple.d.ts +38 -0
- package/dist/constructors/Ripple/RippleDesign.d.ts +38 -0
- package/dist/constructors/Ripple/RippleInclude.d.ts +17 -0
- package/dist/constructors/Ripple/RippleItem.d.ts +31 -0
- package/dist/constructors/Ripple/basicTypes.d.ts +3 -0
- package/dist/constructors/Ripple/index.d.ts +6 -0
- package/dist/constructors/Ripple/props.d.ts +19 -0
- package/dist/constructors/Ripple/types.d.ts +36 -0
- package/dist/constructors/Scrollbar/Scrollbar.d.ts +44 -0
- package/dist/constructors/Scrollbar/ScrollbarBorder.d.ts +96 -0
- package/dist/constructors/Scrollbar/ScrollbarDesign.d.ts +42 -0
- package/dist/constructors/Scrollbar/ScrollbarInclude.d.ts +46 -0
- package/dist/constructors/Scrollbar/basicTypes.d.ts +35 -0
- package/dist/constructors/Scrollbar/index.d.ts +5 -0
- package/dist/constructors/Scrollbar/props.d.ts +28 -0
- package/dist/constructors/Scrollbar/types.d.ts +45 -0
- package/dist/constructors/Section/Section.d.ts +6 -0
- package/dist/constructors/Section/SectionDesign.d.ts +18 -0
- package/dist/constructors/Section/basicTypes.d.ts +1 -0
- package/dist/constructors/Section/index.d.ts +5 -0
- package/dist/constructors/Section/props.d.ts +23 -0
- package/dist/constructors/Section/types.d.ts +44 -0
- package/dist/constructors/Select/Select.d.ts +64 -0
- package/dist/constructors/Select/SelectDesign.d.ts +89 -0
- package/dist/constructors/Select/SelectFilter.d.ts +33 -0
- package/dist/constructors/Select/SelectInput.d.ts +40 -0
- package/dist/constructors/Select/basicTypes.d.ts +1 -0
- package/dist/constructors/Select/index.d.ts +5 -0
- package/dist/constructors/Select/props.d.ts +35 -0
- package/dist/constructors/Select/types.d.ts +41 -0
- package/dist/constructors/SelectValue/SelectValue.d.ts +51 -0
- package/dist/constructors/SelectValue/SelectValueDesign.d.ts +62 -0
- package/dist/constructors/SelectValue/SelectValueInclude.d.ts +44 -0
- package/dist/constructors/SelectValue/basicTypes.d.ts +14 -0
- package/dist/constructors/SelectValue/index.d.ts +6 -0
- package/dist/constructors/SelectValue/props.d.ts +28 -0
- package/dist/constructors/SelectValue/types.d.ts +39 -0
- package/dist/constructors/Skeleton/Skeleton.d.ts +55 -0
- package/dist/constructors/Skeleton/SkeletonDesign.d.ts +38 -0
- package/dist/constructors/Skeleton/SkeletonInclude.d.ts +39 -0
- package/dist/constructors/Skeleton/basicTypes.d.ts +14 -0
- package/dist/constructors/Skeleton/const.d.ts +1 -0
- package/dist/constructors/Skeleton/index.d.ts +6 -0
- package/dist/constructors/Skeleton/props.d.ts +19 -0
- package/dist/constructors/Skeleton/types.d.ts +39 -0
- package/dist/constructors/TextareaAutosize/TextareaAutosize.d.ts +33 -0
- package/dist/constructors/TextareaAutosize/TextareaAutosizeDesign.d.ts +54 -0
- package/dist/constructors/TextareaAutosize/TextareaAutosizeResize.d.ts +61 -0
- package/dist/constructors/TextareaAutosize/TextareaAutosizeValue.d.ts +43 -0
- package/dist/constructors/TextareaAutosize/basicTypes.d.ts +1 -0
- package/dist/constructors/TextareaAutosize/index.d.ts +5 -0
- package/dist/constructors/TextareaAutosize/props.d.ts +23 -0
- package/dist/constructors/TextareaAutosize/types.d.ts +40 -0
- package/dist/constructors/Tooltip/Tooltip.d.ts +68 -0
- package/dist/constructors/Tooltip/TooltipClasses.d.ts +62 -0
- package/dist/constructors/Tooltip/TooltipDesign.d.ts +61 -0
- package/dist/constructors/Tooltip/TooltipEvent.d.ts +58 -0
- package/dist/constructors/Tooltip/TooltipInclude.d.ts +64 -0
- package/dist/constructors/Tooltip/TooltipOpen.d.ts +59 -0
- package/dist/constructors/Tooltip/TooltipPosition.d.ts +43 -0
- package/dist/constructors/Tooltip/TooltipStatus.d.ts +59 -0
- package/dist/constructors/Tooltip/TooltipStyle.d.ts +59 -0
- package/dist/constructors/Tooltip/basicTypes.d.ts +29 -0
- package/dist/constructors/Tooltip/index.d.ts +6 -0
- package/dist/constructors/Tooltip/props.d.ts +32 -0
- package/dist/constructors/Tooltip/types.d.ts +47 -0
- package/dist/constructors/Window/Window.d.ts +115 -0
- package/dist/constructors/Window/WindowClasses.d.ts +125 -0
- package/dist/constructors/Window/WindowClassesInclude.d.ts +28 -0
- package/dist/constructors/Window/WindowClient.d.ts +70 -0
- package/dist/constructors/Window/WindowCoordinates.d.ts +132 -0
- package/dist/constructors/Window/WindowDesign.d.ts +143 -0
- package/dist/constructors/Window/WindowElement.d.ts +59 -0
- package/dist/constructors/Window/WindowEmit.d.ts +36 -0
- package/dist/constructors/Window/WindowEsc.d.ts +52 -0
- package/dist/constructors/Window/WindowEvent.d.ts +83 -0
- package/dist/constructors/Window/WindowFlash.d.ts +47 -0
- package/dist/constructors/Window/WindowHidden.d.ts +45 -0
- package/dist/constructors/Window/WindowHook.d.ts +58 -0
- package/dist/constructors/Window/WindowInclude.d.ts +57 -0
- package/dist/constructors/Window/WindowOpen.d.ts +137 -0
- package/dist/constructors/Window/WindowOrigin.d.ts +46 -0
- package/dist/constructors/Window/WindowPersistent.d.ts +46 -0
- package/dist/constructors/Window/WindowPosition.d.ts +128 -0
- package/dist/constructors/Window/WindowStatic.d.ts +58 -0
- package/dist/constructors/Window/WindowStatus.d.ts +80 -0
- package/dist/constructors/Window/WindowStyles.d.ts +38 -0
- package/dist/constructors/Window/WindowVerification.d.ts +126 -0
- package/dist/constructors/Window/basicTypes.d.ts +173 -0
- package/dist/constructors/Window/index.d.ts +7 -0
- package/dist/constructors/Window/props.d.ts +64 -0
- package/dist/constructors/Window/types.d.ts +100 -0
- package/dist/dialog.js +211 -0
- package/dist/field.js +515 -0
- package/dist/fieldCounter.js +126 -0
- package/dist/fieldLabel.js +172 -0
- package/dist/fieldMessage.js +213 -0
- package/dist/functions/getClassTagAStatic.d.ts +8 -0
- package/dist/getClassTagAStatic-BnVYlXHI.js +4 -0
- package/dist/icon.js +212 -0
- package/dist/image.js +1350 -0
- package/dist/input.js +342 -0
- package/dist/library/accordion.d.ts +1 -0
- package/dist/library/actionSheet.d.ts +1 -0
- package/dist/library/actions.d.ts +1 -0
- package/dist/library/anchor.d.ts +1 -0
- package/dist/library/arrow.d.ts +1 -0
- package/dist/library/badge.d.ts +1 -0
- package/dist/library/bars.d.ts +1 -0
- package/dist/library/block.d.ts +1 -0
- package/dist/library/button.d.ts +1 -0
- package/dist/library/cell.d.ts +1 -0
- package/dist/library/chip.d.ts +1 -0
- package/dist/library/chipGroup.d.ts +1 -0
- package/dist/library/dialog.d.ts +1 -0
- package/dist/library/field.d.ts +1 -0
- package/dist/library/fieldCounter.d.ts +1 -0
- package/dist/library/fieldLabel.d.ts +1 -0
- package/dist/library/fieldMessage.d.ts +1 -0
- package/dist/library/icon.d.ts +1 -0
- package/dist/library/image.d.ts +1 -0
- package/dist/library/input.d.ts +1 -0
- package/dist/library/list.d.ts +1 -0
- package/dist/library/listGroup.d.ts +1 -0
- package/dist/library/listItem.d.ts +1 -0
- package/dist/library/listMenu.d.ts +1 -0
- package/dist/library/mask.d.ts +1 -0
- package/dist/library/menu.d.ts +1 -0
- package/dist/library/modal.d.ts +1 -0
- package/dist/library/motionTransform.d.ts +1 -0
- package/dist/library/page.d.ts +1 -0
- package/dist/library/progress.d.ts +1 -0
- package/dist/library/ripple.d.ts +1 -0
- package/dist/library/scrollbar.d.ts +1 -0
- package/dist/library/section.d.ts +1 -0
- package/dist/library/select.d.ts +1 -0
- package/dist/library/selectValue.d.ts +1 -0
- package/dist/library/skeleton.d.ts +1 -0
- package/dist/library/textareaAutosize.d.ts +1 -0
- package/dist/library/tooltip.d.ts +1 -0
- package/dist/library/window.d.ts +1 -0
- package/dist/library.d.ts +43 -0
- package/dist/library.js +50 -0
- package/dist/list.js +998 -0
- package/dist/listGroup.js +171 -0
- package/dist/listItem.js +303 -0
- package/dist/listMenu.js +118 -0
- package/dist/mask.js +2465 -0
- package/dist/menu.js +523 -0
- package/dist/modal.js +74 -0
- package/dist/motionTransform.js +602 -0
- package/dist/page.js +30 -0
- package/dist/progress.js +276 -0
- package/dist/ripple.js +135 -0
- package/dist/scrollbar.js +235 -0
- package/dist/section.js +30 -0
- package/dist/select.js +409 -0
- package/dist/selectValue.js +244 -0
- package/dist/skeleton.js +83 -0
- package/dist/textareaAutosize.js +235 -0
- package/dist/tooltip.js +619 -0
- package/dist/types/ariaTypes.d.ts +307 -0
- package/dist/types/captionTypes.d.ts +14 -0
- package/dist/types/descriptionTypes.d.ts +21 -0
- package/dist/types/enabledTypes.d.ts +9 -0
- package/dist/types/eventClickTypes.d.ts +47 -0
- package/dist/types/fieldTypes.d.ts +294 -0
- package/dist/types/labelTypes.d.ts +61 -0
- package/dist/types/modelTypes.d.ts +36 -0
- package/dist/types/prefixTypes.d.ts +14 -0
- package/dist/types/roleTypes.d.ts +1 -0
- package/dist/types/suffixTypes.d.ts +14 -0
- package/dist/types/textTypes.d.ts +21 -0
- package/dist/types/touchEventTypes.d.ts +31 -0
- package/dist/window.js +1974 -0
- package/package.json +170 -85
- package/src/constructors/Block/style.scss +2 -0
- package/src/constructors/Image/style.scss +6 -0
- package/src/constructors/Page/style.scss +6 -0
- package/src/constructors/Section/style.scss +2 -1
- package/src/library/style.scss +39 -0
- package/src/classes/AriaStaticInclude.ts +0 -269
- package/src/classes/CaptionInclude.ts +0 -71
- package/src/classes/DescriptionInclude.ts +0 -87
- package/src/classes/EnabledInclude.ts +0 -67
- package/src/classes/EventClickInclude.ts +0 -138
- package/src/classes/LabelHighlightInclude.ts +0 -125
- package/src/classes/LabelInclude.ts +0 -206
- package/src/classes/LabelNumberInclude.ts +0 -70
- package/src/classes/ModelInclude.ts +0 -98
- package/src/classes/ModelValueInclude.ts +0 -73
- package/src/classes/PrefixInclude.ts +0 -71
- package/src/classes/SuffixInclude.ts +0 -71
- package/src/classes/TabIndexInclude.ts +0 -260
- package/src/classes/TextInclude.ts +0 -102
- package/src/classes/TouchEventInclude.ts +0 -284
- package/src/classes/field/FieldArrowInclude.ts +0 -189
- package/src/classes/field/FieldAttributesInclude.ts +0 -159
- package/src/classes/field/FieldChangeInclude.ts +0 -52
- package/src/classes/field/FieldCodeInclude.ts +0 -69
- package/src/classes/field/FieldElementInclude.ts +0 -97
- package/src/classes/field/FieldEventInclude.ts +0 -253
- package/src/classes/field/FieldInputCheckInclude.ts +0 -128
- package/src/classes/field/FieldInputModeInclude.ts +0 -48
- package/src/classes/field/FieldMatchInclude.ts +0 -107
- package/src/classes/field/FieldPatternInclude.ts +0 -42
- package/src/classes/field/FieldTypeInclude.ts +0 -47
- package/src/classes/field/FieldValidationInclude.ts +0 -193
- package/src/classes/field/FieldValueInclude.ts +0 -328
- package/src/classes/field/FieldVisibilityInclude.ts +0 -21
- package/src/constructors/Accordion/Accordion.ts +0 -68
- package/src/constructors/Accordion/AccordionDesign.tsx +0 -192
- package/src/constructors/Accordion/basicTypes.ts +0 -0
- package/src/constructors/Accordion/index.ts +0 -5
- package/src/constructors/Accordion/properties.json +0 -16
- package/src/constructors/Accordion/props.ts +0 -55
- package/src/constructors/Accordion/types.ts +0 -63
- package/src/constructors/ActionSheet/ActionSheet.ts +0 -78
- package/src/constructors/ActionSheet/ActionSheetDesign.tsx +0 -125
- package/src/constructors/ActionSheet/basicTypes.ts +0 -0
- package/src/constructors/ActionSheet/index.ts +0 -5
- package/src/constructors/ActionSheet/properties.json +0 -14
- package/src/constructors/ActionSheet/props.ts +0 -44
- package/src/constructors/ActionSheet/types.ts +0 -54
- package/src/constructors/Actions/Actions.ts +0 -60
- package/src/constructors/Actions/ActionsDesign.tsx +0 -212
- package/src/constructors/Actions/ActionsInclude.ts +0 -109
- package/src/constructors/Actions/basicTypes.ts +0 -40
- package/src/constructors/Actions/index.ts +0 -6
- package/src/constructors/Actions/properties.json +0 -63
- package/src/constructors/Actions/props.ts +0 -42
- package/src/constructors/Actions/types.ts +0 -52
- package/src/constructors/Anchor/Anchor.ts +0 -113
- package/src/constructors/Anchor/AnchorDesign.tsx +0 -242
- package/src/constructors/Anchor/AnchorEvent.ts +0 -76
- package/src/constructors/Anchor/AnchorHref.ts +0 -54
- package/src/constructors/Anchor/AnchorIcon.ts +0 -54
- package/src/constructors/Anchor/AnchorTo.ts +0 -46
- package/src/constructors/Anchor/basicTypes.ts +0 -9
- package/src/constructors/Anchor/index.ts +0 -5
- package/src/constructors/Anchor/properties.json +0 -3
- package/src/constructors/Anchor/props.ts +0 -54
- package/src/constructors/Anchor/types.ts +0 -47
- package/src/constructors/Arrow/Arrow.ts +0 -134
- package/src/constructors/Arrow/ArrowDesign.tsx +0 -226
- package/src/constructors/Arrow/ArrowElement.ts +0 -139
- package/src/constructors/Arrow/ArrowElementTarget.ts +0 -72
- package/src/constructors/Arrow/ArrowEvent.ts +0 -126
- package/src/constructors/Arrow/ArrowInclude.ts +0 -85
- package/src/constructors/Arrow/ArrowParent.ts +0 -100
- package/src/constructors/Arrow/ArrowPosition.ts +0 -231
- package/src/constructors/Arrow/basicTypes.ts +0 -50
- package/src/constructors/Arrow/index.ts +0 -6
- package/src/constructors/Arrow/properties.json +0 -23
- package/src/constructors/Arrow/props.ts +0 -31
- package/src/constructors/Arrow/types.ts +0 -54
- package/src/constructors/Badge/Badge.ts +0 -73
- package/src/constructors/Badge/BadgeDesign.tsx +0 -130
- package/src/constructors/Badge/BadgeInclude.ts +0 -78
- package/src/constructors/Badge/basicTypes.ts +0 -15
- package/src/constructors/Badge/index.ts +0 -5
- package/src/constructors/Badge/properties.json +0 -36
- package/src/constructors/Badge/props.ts +0 -45
- package/src/constructors/Badge/types.ts +0 -47
- package/src/constructors/Bars/Bars.ts +0 -194
- package/src/constructors/Bars/BarsAction.ts +0 -57
- package/src/constructors/Bars/BarsDesign.tsx +0 -235
- package/src/constructors/Bars/BarsInclude.ts +0 -119
- package/src/constructors/Bars/basicTypes.ts +0 -40
- package/src/constructors/Bars/index.ts +0 -6
- package/src/constructors/Bars/properties.json +0 -6
- package/src/constructors/Bars/props.ts +0 -65
- package/src/constructors/Bars/types.ts +0 -58
- package/src/constructors/Block/Block.ts +0 -105
- package/src/constructors/Block/BlockDesign.tsx +0 -219
- package/src/constructors/Block/basicTypes.ts +0 -0
- package/src/constructors/Block/index.ts +0 -5
- package/src/constructors/Block/properties.json +0 -10
- package/src/constructors/Block/props.ts +0 -46
- package/src/constructors/Block/types.ts +0 -64
- package/src/constructors/Button/Button.ts +0 -112
- package/src/constructors/Button/ButtonDesign.tsx +0 -141
- package/src/constructors/Button/ButtonInclude.ts +0 -83
- package/src/constructors/Button/basicTypes.ts +0 -12
- package/src/constructors/Button/index.ts +0 -6
- package/src/constructors/Button/properties.json +0 -84
- package/src/constructors/Button/props.ts +0 -59
- package/src/constructors/Button/types.ts +0 -56
- package/src/constructors/Cell/Cell.ts +0 -144
- package/src/constructors/Cell/CellDesign.tsx +0 -234
- package/src/constructors/Cell/basicTypes.ts +0 -39
- package/src/constructors/Cell/index.ts +0 -5
- package/src/constructors/Cell/properties.json +0 -52
- package/src/constructors/Cell/props.ts +0 -64
- package/src/constructors/Cell/types.ts +0 -68
- package/src/constructors/Chip/Chip.ts +0 -33
- package/src/constructors/Chip/ChipDesign.tsx +0 -26
- package/src/constructors/Chip/ChipInclude.ts +0 -83
- package/src/constructors/Chip/basicTypes.ts +0 -12
- package/src/constructors/Chip/index.ts +0 -6
- package/src/constructors/Chip/properties.json +0 -3
- package/src/constructors/Chip/props.ts +0 -44
- package/src/constructors/Chip/types.ts +0 -53
- package/src/constructors/ChipGroup/ChipGroup.ts +0 -74
- package/src/constructors/ChipGroup/ChipGroupDesign.tsx +0 -162
- package/src/constructors/ChipGroup/basicTypes.ts +0 -6
- package/src/constructors/ChipGroup/index.ts +0 -5
- package/src/constructors/ChipGroup/properties.json +0 -3
- package/src/constructors/ChipGroup/props.ts +0 -50
- package/src/constructors/ChipGroup/types.ts +0 -47
- package/src/constructors/Dialog/Dialog.ts +0 -145
- package/src/constructors/Dialog/DialogDesign.tsx +0 -135
- package/src/constructors/Dialog/basicTypes.ts +0 -0
- package/src/constructors/Dialog/index.ts +0 -5
- package/src/constructors/Dialog/properties.json +0 -23
- package/src/constructors/Dialog/props.ts +0 -76
- package/src/constructors/Dialog/types.ts +0 -67
- package/src/constructors/Field/Field.ts +0 -186
- package/src/constructors/Field/FieldDesign.tsx +0 -390
- package/src/constructors/Field/FieldIcons.ts +0 -99
- package/src/constructors/Field/FieldInclude.ts +0 -202
- package/src/constructors/Field/FieldSize.ts +0 -93
- package/src/constructors/Field/basicTypes.ts +0 -106
- package/src/constructors/Field/index.ts +0 -5
- package/src/constructors/Field/properties.json +0 -92
- package/src/constructors/Field/props.ts +0 -91
- package/src/constructors/Field/types.ts +0 -78
- package/src/constructors/FieldCounter/FieldCounter.ts +0 -75
- package/src/constructors/FieldCounter/FieldCounterDesign.tsx +0 -123
- package/src/constructors/FieldCounter/FieldCounterInclude.ts +0 -100
- package/src/constructors/FieldCounter/basicTypes.ts +0 -26
- package/src/constructors/FieldCounter/index.ts +0 -6
- package/src/constructors/FieldCounter/properties.json +0 -3
- package/src/constructors/FieldCounter/props.ts +0 -35
- package/src/constructors/FieldCounter/types.ts +0 -42
- package/src/constructors/FieldLabel/FieldLabel.ts +0 -93
- package/src/constructors/FieldLabel/FieldLabelDesign.tsx +0 -160
- package/src/constructors/FieldLabel/FieldLabelInclude.ts +0 -100
- package/src/constructors/FieldLabel/basicTypes.ts +0 -34
- package/src/constructors/FieldLabel/index.ts +0 -6
- package/src/constructors/FieldLabel/properties.json +0 -4
- package/src/constructors/FieldLabel/props.ts +0 -40
- package/src/constructors/FieldLabel/types.ts +0 -49
- package/src/constructors/FieldMessage/FieldMessage.ts +0 -98
- package/src/constructors/FieldMessage/FieldMessageDesign.tsx +0 -191
- package/src/constructors/FieldMessage/FieldMessageInclude.ts +0 -115
- package/src/constructors/FieldMessage/FieldMessageMessage.ts +0 -54
- package/src/constructors/FieldMessage/basicTypes.ts +0 -41
- package/src/constructors/FieldMessage/index.ts +0 -6
- package/src/constructors/FieldMessage/properties.json +0 -10
- package/src/constructors/FieldMessage/props.ts +0 -44
- package/src/constructors/FieldMessage/types.ts +0 -51
- package/src/constructors/Icon/Icon.ts +0 -140
- package/src/constructors/Icon/IconDesign.tsx +0 -164
- package/src/constructors/Icon/IconInclude.ts +0 -64
- package/src/constructors/Icon/IconLiteInclude.ts +0 -121
- package/src/constructors/Icon/IconTrailingInclude.ts +0 -106
- package/src/constructors/Icon/basicTypes.ts +0 -50
- package/src/constructors/Icon/index.ts +0 -8
- package/src/constructors/Icon/properties.json +0 -25
- package/src/constructors/Icon/props.ts +0 -60
- package/src/constructors/Icon/types.ts +0 -46
- package/src/constructors/Image/Image.ts +0 -242
- package/src/constructors/Image/ImageAdaptiveGroup.ts +0 -230
- package/src/constructors/Image/ImageAdaptiveItem.ts +0 -295
- package/src/constructors/Image/ImageBackground.ts +0 -140
- package/src/constructors/Image/ImageCalculation.ts +0 -184
- package/src/constructors/Image/ImageCalculationList.ts +0 -61
- package/src/constructors/Image/ImageCoordinator.ts +0 -106
- package/src/constructors/Image/ImageData.ts +0 -103
- package/src/constructors/Image/ImageDesign.tsx +0 -203
- package/src/constructors/Image/ImageFile.ts +0 -126
- package/src/constructors/Image/ImageImg.ts +0 -218
- package/src/constructors/Image/ImageInclude.ts +0 -53
- package/src/constructors/Image/ImagePdf.ts +0 -44
- package/src/constructors/Image/ImagePosition.ts +0 -49
- package/src/constructors/Image/ImageType.ts +0 -83
- package/src/constructors/Image/basicTypes.ts +0 -75
- package/src/constructors/Image/index.ts +0 -5
- package/src/constructors/Image/properties.json +0 -17
- package/src/constructors/Image/props.ts +0 -93
- package/src/constructors/Image/types.ts +0 -49
- package/src/constructors/Input/Input.ts +0 -146
- package/src/constructors/Input/InputDesign.tsx +0 -174
- package/src/constructors/Input/InputPassword.ts +0 -54
- package/src/constructors/Input/basicTypes.ts +0 -3
- package/src/constructors/Input/index.ts +0 -5
- package/src/constructors/Input/properties.json +0 -2
- package/src/constructors/Input/props.ts +0 -53
- package/src/constructors/Input/types.ts +0 -48
- package/src/constructors/List/List.ts +0 -292
- package/src/constructors/List/ListControl.ts +0 -194
- package/src/constructors/List/ListDesign.tsx +0 -403
- package/src/constructors/List/ListFocus.ts +0 -196
- package/src/constructors/List/ListGo.ts +0 -285
- package/src/constructors/List/ListSearch.ts +0 -113
- package/src/constructors/List/basicTypes.ts +0 -3
- package/src/constructors/List/index.ts +0 -5
- package/src/constructors/List/properties.json +0 -16
- package/src/constructors/List/props.ts +0 -83
- package/src/constructors/List/types.ts +0 -66
- package/src/constructors/ListGroup/ListGroup.ts +0 -53
- package/src/constructors/ListGroup/ListGroupDesign.tsx +0 -185
- package/src/constructors/ListGroup/ListGroupOpen.ts +0 -56
- package/src/constructors/ListGroup/basicTypes.ts +0 -10
- package/src/constructors/ListGroup/index.ts +0 -5
- package/src/constructors/ListGroup/properties.json +0 -15
- package/src/constructors/ListGroup/props.ts +0 -30
- package/src/constructors/ListGroup/types.ts +0 -52
- package/src/constructors/ListItem/ListItem.ts +0 -175
- package/src/constructors/ListItem/ListItemDesign.tsx +0 -199
- package/src/constructors/ListItem/basicTypes.ts +0 -3
- package/src/constructors/ListItem/index.ts +0 -5
- package/src/constructors/ListItem/properties.json +0 -52
- package/src/constructors/ListItem/props.ts +0 -87
- package/src/constructors/ListItem/types.ts +0 -78
- package/src/constructors/ListMenu/ListMenu.ts +0 -53
- package/src/constructors/ListMenu/ListMenuDesign.tsx +0 -127
- package/src/constructors/ListMenu/basicTypes.ts +0 -3
- package/src/constructors/ListMenu/index.ts +0 -5
- package/src/constructors/ListMenu/properties.json +0 -19
- package/src/constructors/ListMenu/props.ts +0 -34
- package/src/constructors/ListMenu/types.ts +0 -54
- package/src/constructors/Mask/Mask.ts +0 -321
- package/src/constructors/Mask/MaskBuffer.ts +0 -89
- package/src/constructors/Mask/MaskCharacter.ts +0 -192
- package/src/constructors/Mask/MaskCharacterLength.ts +0 -40
- package/src/constructors/Mask/MaskData.ts +0 -287
- package/src/constructors/Mask/MaskDate.ts +0 -157
- package/src/constructors/Mask/MaskDesign.tsx +0 -222
- package/src/constructors/Mask/MaskEmit.ts +0 -140
- package/src/constructors/Mask/MaskEvent.ts +0 -386
- package/src/constructors/Mask/MaskFocus.ts +0 -49
- package/src/constructors/Mask/MaskFormat.ts +0 -216
- package/src/constructors/Mask/MaskInclude.ts +0 -147
- package/src/constructors/Mask/MaskItem.ts +0 -218
- package/src/constructors/Mask/MaskMatch.ts +0 -73
- package/src/constructors/Mask/MaskPattern.ts +0 -123
- package/src/constructors/Mask/MaskRight.ts +0 -43
- package/src/constructors/Mask/MaskRubber.ts +0 -156
- package/src/constructors/Mask/MaskRubberItem.ts +0 -96
- package/src/constructors/Mask/MaskRubberTransition.ts +0 -50
- package/src/constructors/Mask/MaskSelection.ts +0 -208
- package/src/constructors/Mask/MaskSpecial.ts +0 -179
- package/src/constructors/Mask/MaskType.ts +0 -103
- package/src/constructors/Mask/MaskValidation.ts +0 -102
- package/src/constructors/Mask/MaskValue.ts +0 -225
- package/src/constructors/Mask/MaskValueBasic.ts +0 -87
- package/src/constructors/Mask/MaskView.ts +0 -169
- package/src/constructors/Mask/basicTypes.ts +0 -67
- package/src/constructors/Mask/index.ts +0 -5
- package/src/constructors/Mask/properties.json +0 -30
- package/src/constructors/Mask/props.ts +0 -70
- package/src/constructors/Mask/types.ts +0 -71
- package/src/constructors/Menu/Menu.ts +0 -191
- package/src/constructors/Menu/MenuDesign.tsx +0 -244
- package/src/constructors/Menu/MenuGo.ts +0 -72
- package/src/constructors/Menu/MenuInclude.ts +0 -120
- package/src/constructors/Menu/MenuRequest.ts +0 -101
- package/src/constructors/Menu/MenuSearch.ts +0 -68
- package/src/constructors/Menu/MenuValue.ts +0 -77
- package/src/constructors/Menu/MenuWindow.ts +0 -90
- package/src/constructors/Menu/basicTypes.ts +0 -58
- package/src/constructors/Menu/index.ts +0 -6
- package/src/constructors/Menu/properties.json +0 -17
- package/src/constructors/Menu/props.ts +0 -91
- package/src/constructors/Menu/types.ts +0 -69
- package/src/constructors/Modal/Modal.ts +0 -53
- package/src/constructors/Modal/ModalAbstract.ts +0 -74
- package/src/constructors/Modal/ModalDesign.tsx +0 -63
- package/src/constructors/Modal/ModalDesignAbstract.tsx +0 -226
- package/src/constructors/Modal/basicTypes.ts +0 -0
- package/src/constructors/Modal/index.ts +0 -5
- package/src/constructors/Modal/properties.json +0 -17
- package/src/constructors/Modal/props.ts +0 -45
- package/src/constructors/Modal/types.ts +0 -62
- package/src/constructors/MotionTransform/MotionTransform.ts +0 -144
- package/src/constructors/MotionTransform/MotionTransformClassesInclude.ts +0 -38
- package/src/constructors/MotionTransform/MotionTransformDesign.tsx +0 -276
- package/src/constructors/MotionTransform/MotionTransformElement.ts +0 -225
- package/src/constructors/MotionTransform/MotionTransformEvent.ts +0 -118
- package/src/constructors/MotionTransform/MotionTransformGo.ts +0 -47
- package/src/constructors/MotionTransform/MotionTransformInclude.ts +0 -124
- package/src/constructors/MotionTransform/MotionTransformSize.ts +0 -97
- package/src/constructors/MotionTransform/MotionTransformState.ts +0 -255
- package/src/constructors/MotionTransform/basicTypes.ts +0 -137
- package/src/constructors/MotionTransform/index.ts +0 -7
- package/src/constructors/MotionTransform/properties.json +0 -35
- package/src/constructors/MotionTransform/props.ts +0 -56
- package/src/constructors/MotionTransform/types.ts +0 -86
- package/src/constructors/Progress/Progress.ts +0 -194
- package/src/constructors/Progress/ProgressDesign.tsx +0 -197
- package/src/constructors/Progress/ProgressInclude.ts +0 -79
- package/src/constructors/Progress/basicTypes.ts +0 -12
- package/src/constructors/Progress/index.ts +0 -6
- package/src/constructors/Progress/properties.json +0 -47
- package/src/constructors/Progress/props.ts +0 -58
- package/src/constructors/Progress/types.ts +0 -43
- package/src/constructors/Ripple/Ripple.ts +0 -46
- package/src/constructors/Ripple/RippleDesign.tsx +0 -115
- package/src/constructors/Ripple/RippleInclude.ts +0 -39
- package/src/constructors/Ripple/RippleItem.ts +0 -62
- package/src/constructors/Ripple/basicTypes.ts +0 -3
- package/src/constructors/Ripple/index.ts +0 -6
- package/src/constructors/Ripple/properties.json +0 -9
- package/src/constructors/Ripple/props.ts +0 -28
- package/src/constructors/Ripple/types.ts +0 -41
- package/src/constructors/Scrollbar/Scrollbar.ts +0 -66
- package/src/constructors/Scrollbar/ScrollbarBorder.ts +0 -243
- package/src/constructors/Scrollbar/ScrollbarDesign.tsx +0 -126
- package/src/constructors/Scrollbar/ScrollbarInclude.ts +0 -80
- package/src/constructors/Scrollbar/basicTypes.ts +0 -42
- package/src/constructors/Scrollbar/index.ts +0 -5
- package/src/constructors/Scrollbar/properties.json +0 -33
- package/src/constructors/Scrollbar/props.ts +0 -37
- package/src/constructors/Scrollbar/types.ts +0 -52
- package/src/constructors/Section/Section.ts +0 -33
- package/src/constructors/Section/SectionDesign.tsx +0 -127
- package/src/constructors/Section/basicTypes.ts +0 -0
- package/src/constructors/Section/index.ts +0 -5
- package/src/constructors/Section/properties.json +0 -2
- package/src/constructors/Section/props.ts +0 -29
- package/src/constructors/Section/types.ts +0 -47
- package/src/constructors/Select/Select.ts +0 -172
- package/src/constructors/Select/SelectDesign.tsx +0 -288
- package/src/constructors/Select/SelectFilter.ts +0 -43
- package/src/constructors/Select/SelectInput.ts +0 -68
- package/src/constructors/Select/basicTypes.ts +0 -0
- package/src/constructors/Select/index.ts +0 -5
- package/src/constructors/Select/properties.json +0 -3
- package/src/constructors/Select/props.ts +0 -63
- package/src/constructors/Select/types.ts +0 -53
- package/src/constructors/SelectValue/SelectValue.ts +0 -95
- package/src/constructors/SelectValue/SelectValueDesign.tsx +0 -198
- package/src/constructors/SelectValue/SelectValueInclude.ts +0 -92
- package/src/constructors/SelectValue/basicTypes.ts +0 -17
- package/src/constructors/SelectValue/index.ts +0 -6
- package/src/constructors/SelectValue/properties.json +0 -7
- package/src/constructors/SelectValue/props.ts +0 -48
- package/src/constructors/SelectValue/types.ts +0 -47
- package/src/constructors/Skeleton/Skeleton.ts +0 -84
- package/src/constructors/Skeleton/SkeletonDesign.tsx +0 -123
- package/src/constructors/Skeleton/SkeletonInclude.ts +0 -66
- package/src/constructors/Skeleton/basicTypes.ts +0 -16
- package/src/constructors/Skeleton/const.ts +0 -1
- package/src/constructors/Skeleton/index.ts +0 -6
- package/src/constructors/Skeleton/properties.json +0 -24
- package/src/constructors/Skeleton/props.ts +0 -28
- package/src/constructors/Skeleton/types.ts +0 -46
- package/src/constructors/TextareaAutosize/TextareaAutosize.ts +0 -41
- package/src/constructors/TextareaAutosize/TextareaAutosizeDesign.tsx +0 -147
- package/src/constructors/TextareaAutosize/TextareaAutosizeResize.ts +0 -109
- package/src/constructors/TextareaAutosize/TextareaAutosizeValue.ts +0 -69
- package/src/constructors/TextareaAutosize/basicTypes.ts +0 -0
- package/src/constructors/TextareaAutosize/index.ts +0 -5
- package/src/constructors/TextareaAutosize/properties.json +0 -6
- package/src/constructors/TextareaAutosize/props.ts +0 -34
- package/src/constructors/TextareaAutosize/types.ts +0 -50
- package/src/constructors/Tooltip/Tooltip.ts +0 -138
- package/src/constructors/Tooltip/TooltipClasses.ts +0 -90
- package/src/constructors/Tooltip/TooltipDesign.tsx +0 -198
- package/src/constructors/Tooltip/TooltipEvent.ts +0 -103
- package/src/constructors/Tooltip/TooltipInclude.ts +0 -114
- package/src/constructors/Tooltip/TooltipOpen.ts +0 -128
- package/src/constructors/Tooltip/TooltipPosition.ts +0 -92
- package/src/constructors/Tooltip/TooltipStatus.ts +0 -97
- package/src/constructors/Tooltip/TooltipStyle.ts +0 -123
- package/src/constructors/Tooltip/basicTypes.ts +0 -39
- package/src/constructors/Tooltip/index.ts +0 -6
- package/src/constructors/Tooltip/properties.json +0 -14
- package/src/constructors/Tooltip/props.ts +0 -49
- package/src/constructors/Tooltip/types.ts +0 -58
- package/src/constructors/Window/Window.ts +0 -248
- package/src/constructors/Window/WindowClasses.ts +0 -213
- package/src/constructors/Window/WindowClassesInclude.ts +0 -39
- package/src/constructors/Window/WindowClient.ts +0 -132
- package/src/constructors/Window/WindowCoordinates.ts +0 -257
- package/src/constructors/Window/WindowDesign.tsx +0 -295
- package/src/constructors/Window/WindowElement.ts +0 -84
- package/src/constructors/Window/WindowEmit.ts +0 -52
- package/src/constructors/Window/WindowEsc.ts +0 -114
- package/src/constructors/Window/WindowEvent.ts +0 -157
- package/src/constructors/Window/WindowFlash.ts +0 -70
- package/src/constructors/Window/WindowHidden.ts +0 -120
- package/src/constructors/Window/WindowHook.ts +0 -110
- package/src/constructors/Window/WindowInclude.ts +0 -134
- package/src/constructors/Window/WindowOpen.ts +0 -301
- package/src/constructors/Window/WindowOrigin.ts +0 -89
- package/src/constructors/Window/WindowPersistent.ts +0 -89
- package/src/constructors/Window/WindowPosition.ts +0 -358
- package/src/constructors/Window/WindowStatic.ts +0 -104
- package/src/constructors/Window/WindowStatus.ts +0 -138
- package/src/constructors/Window/WindowStyles.ts +0 -78
- package/src/constructors/Window/WindowVerification.ts +0 -290
- package/src/constructors/Window/basicTypes.ts +0 -196
- package/src/constructors/Window/index.ts +0 -7
- package/src/constructors/Window/properties.json +0 -239
- package/src/constructors/Window/props.ts +0 -97
- package/src/constructors/Window/types.ts +0 -124
- package/src/functions/getClassTagAStatic.ts +0 -8
- package/src/library.ts +0 -48
- package/src/types/ariaTypes.ts +0 -366
- package/src/types/captionTypes.ts +0 -15
- package/src/types/descriptionTypes.ts +0 -23
- package/src/types/enabledTypes.ts +0 -9
- package/src/types/eventClickTypes.ts +0 -51
- package/src/types/fieldTypes.ts +0 -386
- package/src/types/labelTypes.ts +0 -69
- package/src/types/modelTypes.ts +0 -39
- package/src/types/prefixTypes.ts +0 -15
- package/src/types/roleTypes.ts +0 -88
- package/src/types/suffixTypes.ts +0 -15
- package/src/types/textTypes.ts +0 -33
- package/src/types/touchEventTypes.ts +0 -43
- package/src/vite-env.d.ts +0 -1
package/dist/mask.js
ADDED
|
@@ -0,0 +1,2465 @@
|
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var V = (h, t, e) => t in h ? E(h, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[t] = e;
|
|
3
|
+
var a = (h, t, e) => V(h, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { computed as u, ref as C, watch as y, h as d } from "vue";
|
|
5
|
+
import { forEach as x, getExp as N, strFill as w, Datetime as L, GeoIntl as A, isArray as k, isObject as O, isObjectNotArray as S, isString as B, isSelected as $, replaceRecursive as K, getColumn as R, getMaxLengthAllArray as _, toArray as j, isFilled as P, writeClipboardData as Y, eventStopPropagation as H, getClipboardData as G, GeoRef as U, anyToString as D, isFloat as q, DesignConstructorAbstract as Q, toBinds as z } from "@dxtmisha/functional";
|
|
6
|
+
import { F as v } from "./FieldInputCheckInclude-CjNYyGTb.js";
|
|
7
|
+
import { A as J } from "./AriaStaticInclude-CFGewqpn.js";
|
|
8
|
+
class W {
|
|
9
|
+
/**
|
|
10
|
+
* Constructor
|
|
11
|
+
* @param props input data/ входные данные
|
|
12
|
+
*/
|
|
13
|
+
constructor(t) {
|
|
14
|
+
/** Current mask type (default: text)/ Текущий тип маски (по умолчанию: text) */
|
|
15
|
+
a(this, "item", u(() => {
|
|
16
|
+
var t;
|
|
17
|
+
return (t = this.props.type) != null ? t : "text";
|
|
18
|
+
}));
|
|
19
|
+
this.props = t;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Is the mask simple number type.
|
|
23
|
+
*
|
|
24
|
+
* Является ли маска простым числовым типом (number).
|
|
25
|
+
*/
|
|
26
|
+
isNumber() {
|
|
27
|
+
return this.item.value === "number";
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Is the mask formatted number type (number-format).
|
|
31
|
+
*
|
|
32
|
+
* Является ли маска типом форматированного числа (number-format).
|
|
33
|
+
*/
|
|
34
|
+
isNumberFormat() {
|
|
35
|
+
return this.item.value === "number-format";
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Is the mask currency type.
|
|
39
|
+
*
|
|
40
|
+
* Является ли маска валютным типом (currency).
|
|
41
|
+
*/
|
|
42
|
+
isCurrency() {
|
|
43
|
+
return this.item.value === "currency";
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Is the mask one of numeric related types (number | number-format | currency).
|
|
47
|
+
*
|
|
48
|
+
* Является ли маска одним из числовых типов (number | number-format | currency).
|
|
49
|
+
*/
|
|
50
|
+
isCurrencyOrNumber() {
|
|
51
|
+
return this.isNumber() || this.isNumberFormat() || this.isCurrency();
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Is the mask one of the time input types.
|
|
55
|
+
*
|
|
56
|
+
* Является ли маска одним из типов для ввода времени.
|
|
57
|
+
*/
|
|
58
|
+
isTime() {
|
|
59
|
+
return [
|
|
60
|
+
"full",
|
|
61
|
+
"datetime",
|
|
62
|
+
"time",
|
|
63
|
+
"hour-minute",
|
|
64
|
+
"hour",
|
|
65
|
+
"minute",
|
|
66
|
+
"second"
|
|
67
|
+
].indexOf(this.item.value) !== -1;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Is the mask one of the date (or time) input types.
|
|
71
|
+
*
|
|
72
|
+
* Является ли маска одним из типов для ввода даты (или времени).
|
|
73
|
+
*/
|
|
74
|
+
isDate() {
|
|
75
|
+
return this.isTime() || [
|
|
76
|
+
"date",
|
|
77
|
+
"year",
|
|
78
|
+
"year-month",
|
|
79
|
+
"month",
|
|
80
|
+
"day",
|
|
81
|
+
"day-month"
|
|
82
|
+
].indexOf(this.item.value) !== -1;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Returns GeoDate-compatible mask type (fallback: date).
|
|
86
|
+
*
|
|
87
|
+
* Возвращает тип маски совместимый с GeoDate (если нет — date).
|
|
88
|
+
*/
|
|
89
|
+
getByDate() {
|
|
90
|
+
return this.isDate() ? this.item.value : "date";
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
class X {
|
|
94
|
+
constructor() {
|
|
95
|
+
/** Stored characters/ Сохранённые символы */
|
|
96
|
+
a(this, "chars", []);
|
|
97
|
+
/** Flag: buffering started/ Флаг: буферизация запущена */
|
|
98
|
+
a(this, "start", !1);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Checks if buffer has records.
|
|
102
|
+
*
|
|
103
|
+
* Проверяет, есть ли записи в буфере.
|
|
104
|
+
*/
|
|
105
|
+
is() {
|
|
106
|
+
return this.chars.length > 0;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Returns list of all buffered chars.
|
|
110
|
+
*
|
|
111
|
+
* Возвращает список всех символов в буфере.
|
|
112
|
+
*/
|
|
113
|
+
get() {
|
|
114
|
+
return this.chars;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Adds new symbol to buffer.
|
|
118
|
+
*
|
|
119
|
+
* Добавляет новый символ в буфер.
|
|
120
|
+
* @param key symbol to add / символ для добавления
|
|
121
|
+
*/
|
|
122
|
+
add(t) {
|
|
123
|
+
return this.chars.push(t), this;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Handles fast input: if buffering active — adds symbol, else starts buffering.
|
|
127
|
+
*
|
|
128
|
+
* Обрабатывает быстрый ввод: если буфер активен — добавляет символ, иначе запускает буферизацию.
|
|
129
|
+
* @param key symbol to process / символ для обработки
|
|
130
|
+
* @returns true if processing should continue outside buffer / true если ввод продолжается вне буфера
|
|
131
|
+
*/
|
|
132
|
+
go(t) {
|
|
133
|
+
return this.start ? (this.add(t), !1) : (this.goStart(), !0);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Starts buffering.
|
|
137
|
+
*
|
|
138
|
+
* Запускает буферизацию.
|
|
139
|
+
*/
|
|
140
|
+
goStart() {
|
|
141
|
+
return this.start = !0, this;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Resets all data (chars + start flag).
|
|
145
|
+
*
|
|
146
|
+
* Сбрасывает все данные (символы и флаг запуска).
|
|
147
|
+
*/
|
|
148
|
+
reset() {
|
|
149
|
+
return this.resetChars(), this.start = !1, this;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Clears stored characters only.
|
|
153
|
+
*
|
|
154
|
+
* Очищает только сохранённые символы.
|
|
155
|
+
*/
|
|
156
|
+
resetChars() {
|
|
157
|
+
return this.chars = [], this;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
class Z {
|
|
161
|
+
/**
|
|
162
|
+
* Constructor
|
|
163
|
+
* @param buffer buffer helper object/ объект помощник буфера
|
|
164
|
+
*/
|
|
165
|
+
constructor(t) {
|
|
166
|
+
/** Focus state flag/ Флаг состояния фокуса */
|
|
167
|
+
a(this, "value", !1);
|
|
168
|
+
this.buffer = t;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Returns current focus state.
|
|
172
|
+
*
|
|
173
|
+
* Возвращает текущее состояние фокуса.
|
|
174
|
+
*/
|
|
175
|
+
is() {
|
|
176
|
+
return this.value;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Sets focus state to active and resets buffer.
|
|
180
|
+
*
|
|
181
|
+
* Устанавливает состояние фокуса активным и сбрасывает буфер.
|
|
182
|
+
*/
|
|
183
|
+
in() {
|
|
184
|
+
this.value = !0, this.buffer.reset();
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Removes focus state and resets buffer.
|
|
188
|
+
*
|
|
189
|
+
* Снимает состояние фокуса и сбрасывает буфер.
|
|
190
|
+
*/
|
|
191
|
+
out() {
|
|
192
|
+
this.value = !1, this.buffer.reset();
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
class tt {
|
|
196
|
+
constructor() {
|
|
197
|
+
/** Current length value/ Текущее значение длины */
|
|
198
|
+
a(this, "length", C(0));
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Checks if there is at least one entered character.
|
|
202
|
+
*
|
|
203
|
+
* Проверяет, есть ли хотя бы один введённый символ.
|
|
204
|
+
*/
|
|
205
|
+
is() {
|
|
206
|
+
return this.length.value > 0;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Returns current length.
|
|
210
|
+
*
|
|
211
|
+
* Возвращает текущую длину.
|
|
212
|
+
*/
|
|
213
|
+
get() {
|
|
214
|
+
return this.length.value;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Sets new length value.
|
|
218
|
+
*
|
|
219
|
+
* Устанавливает новое значение длины.
|
|
220
|
+
* @param length new length value / новое значение длины
|
|
221
|
+
*/
|
|
222
|
+
set(t) {
|
|
223
|
+
return this.length.value = t, this;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
class et {
|
|
227
|
+
constructor() {
|
|
228
|
+
/** Map: group name -> entered length/ Карта: имя группы -> введённая длина */
|
|
229
|
+
a(this, "item", C({}));
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Checks whether group has a non‑zero stored length.
|
|
233
|
+
*
|
|
234
|
+
* Проверяет, есть ли у группы ненулевая длина.
|
|
235
|
+
* @param groupName group name / название группы
|
|
236
|
+
*/
|
|
237
|
+
is(t) {
|
|
238
|
+
var e;
|
|
239
|
+
return Number((e = this.item.value) == null ? void 0 : e[t]) > 0;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Returns stored length for group (0 if none).
|
|
243
|
+
*
|
|
244
|
+
* Возвращает сохранённую длину группы (0 если нет).
|
|
245
|
+
* @param groupName group name / название группы
|
|
246
|
+
*/
|
|
247
|
+
getByIndex(t) {
|
|
248
|
+
var e, i;
|
|
249
|
+
return (i = (e = this.item.value) == null ? void 0 : e[t]) != null ? i : 0;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Increments stored length for group by 1.
|
|
253
|
+
*
|
|
254
|
+
* Увеличивает сохранённую длину группы на 1.
|
|
255
|
+
* @param groupName group name / название группы
|
|
256
|
+
*/
|
|
257
|
+
add(t) {
|
|
258
|
+
return this.item.value = {
|
|
259
|
+
...this.item.value,
|
|
260
|
+
[t]: this.getByIndex(t) + 1
|
|
261
|
+
}, this;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Decreases stored length for group by 1 (if > 0).
|
|
265
|
+
*
|
|
266
|
+
* Уменьшает сохранённую длину группы на 1 (если > 0).
|
|
267
|
+
* @param groupName group name / название группы
|
|
268
|
+
* @returns true if decreased / true если уменьшено
|
|
269
|
+
*/
|
|
270
|
+
pop(t) {
|
|
271
|
+
return this.is(t) ? (this.item.value = {
|
|
272
|
+
...this.item.value,
|
|
273
|
+
[t]: this.getByIndex(t) - 1
|
|
274
|
+
}, !0) : !1;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Resets all stored lengths.
|
|
278
|
+
*
|
|
279
|
+
* Сбрасывает все сохранённые длины.
|
|
280
|
+
*/
|
|
281
|
+
reset() {
|
|
282
|
+
return this.item.value = {}, this;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Expands mask by duplicating matched group placeholders according to stored lengths.
|
|
286
|
+
*
|
|
287
|
+
* Расширяет маску, дублируя плейсхолдеры групп по сохранённым длинам.
|
|
288
|
+
* @param mask original mask / исходная маска
|
|
289
|
+
*/
|
|
290
|
+
expandMask(t) {
|
|
291
|
+
let e = t;
|
|
292
|
+
return x(this.item.value, (i, s) => {
|
|
293
|
+
e = e.replace(
|
|
294
|
+
N(s, "g", "([:value]+)"),
|
|
295
|
+
(r) => `${r}${w(s, i)}`
|
|
296
|
+
);
|
|
297
|
+
}), e;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
class it {
|
|
301
|
+
constructor() {
|
|
302
|
+
/** Transition symbol value/ Значение символа перехода */
|
|
303
|
+
a(this, "item", C(""));
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Checks if a transition symbol is set.
|
|
307
|
+
*
|
|
308
|
+
* Проверяет, установлен ли символ перехода.
|
|
309
|
+
*/
|
|
310
|
+
is() {
|
|
311
|
+
return this.item.value !== "";
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Checks if provided char equals current transition symbol.
|
|
315
|
+
*
|
|
316
|
+
* Проверяет, совпадает ли символ с текущим символом перехода.
|
|
317
|
+
* @param char candidate char / проверяемый символ
|
|
318
|
+
*/
|
|
319
|
+
isChar(t) {
|
|
320
|
+
return this.item.value === t;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Sets new transition symbol.
|
|
324
|
+
*
|
|
325
|
+
* Устанавливает новый символ перехода.
|
|
326
|
+
* @param char transition symbol / символ перехода
|
|
327
|
+
*/
|
|
328
|
+
set(t) {
|
|
329
|
+
return this.item.value = t, this;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Resets transition symbol to empty.
|
|
333
|
+
*
|
|
334
|
+
* Сбрасывает символ перехода в пустой.
|
|
335
|
+
*/
|
|
336
|
+
reset() {
|
|
337
|
+
return this.set("");
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
const st = {
|
|
341
|
+
Y: "[0-9]{4}",
|
|
342
|
+
M: {
|
|
343
|
+
type: "number",
|
|
344
|
+
min: "1",
|
|
345
|
+
max: "12"
|
|
346
|
+
},
|
|
347
|
+
D: (h) => {
|
|
348
|
+
var e, i, s, r;
|
|
349
|
+
return {
|
|
350
|
+
type: "number",
|
|
351
|
+
min: "1",
|
|
352
|
+
max: new L(`${(i = (e = h == null ? void 0 : h.Y) == null ? void 0 : e.value) != null ? i : "2000"}-${(r = (s = h == null ? void 0 : h.M) == null ? void 0 : s.value) != null ? r : "01"}-01`).getMaxDay().toString()
|
|
353
|
+
};
|
|
354
|
+
},
|
|
355
|
+
h: {
|
|
356
|
+
type: "number",
|
|
357
|
+
min: "0",
|
|
358
|
+
max: "23"
|
|
359
|
+
},
|
|
360
|
+
m: {
|
|
361
|
+
type: "number",
|
|
362
|
+
min: "0",
|
|
363
|
+
max: "59"
|
|
364
|
+
},
|
|
365
|
+
s: {
|
|
366
|
+
type: "number",
|
|
367
|
+
min: "0",
|
|
368
|
+
max: "59"
|
|
369
|
+
}
|
|
370
|
+
}, I = {
|
|
371
|
+
Y: "y",
|
|
372
|
+
M: "m",
|
|
373
|
+
D: "d",
|
|
374
|
+
h: "h",
|
|
375
|
+
m: "m",
|
|
376
|
+
s: "s"
|
|
377
|
+
};
|
|
378
|
+
class rt {
|
|
379
|
+
/**
|
|
380
|
+
* Constructor
|
|
381
|
+
* @param props input data/ входные данные
|
|
382
|
+
* @param type mask type helper/ объект помощник типа маски
|
|
383
|
+
*/
|
|
384
|
+
constructor(t, e) {
|
|
385
|
+
/** Mask template for current date type / Шаблон маски для текущего типа даты */
|
|
386
|
+
a(this, "mask", u(() => this.getDatetime().setHour24(!0).locale(void 0, "2-digit").replace("1987", "YYYY").replace("12", "MM").replace("18", "DD").replace("10", "hh").replace("20", "mm").replace("30", "ss").split("")));
|
|
387
|
+
this.props = t, this.type = e;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Returns base Datetime helper for given value (or default stub).
|
|
391
|
+
*
|
|
392
|
+
* Возвращает базовый помощник Datetime для значения (или дефолтный шаблон).
|
|
393
|
+
* @param date filled date string/ заполненная строка даты
|
|
394
|
+
*/
|
|
395
|
+
getDatetime(t) {
|
|
396
|
+
return new L(t != null ? t : "1987-12-18T10:20:30", this.type.getByDate(), this.props.language);
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Returns localized formatted date/time value.
|
|
400
|
+
*
|
|
401
|
+
* Возвращает локализованное форматированное значение даты/времени.
|
|
402
|
+
* @param date filled date string/ заполненная строка даты
|
|
403
|
+
*/
|
|
404
|
+
getValue(t) {
|
|
405
|
+
return this.getDatetime(t).locale(void 0, "2-digit");
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Returns standardized (ISO-like) date/time value or empty if invalid.
|
|
409
|
+
*
|
|
410
|
+
* Возвращает стандартизированное (похоже на ISO) значение или пустую строку при невалидности.
|
|
411
|
+
* @param date masks data grouped by parts/ данные масок, сгруппированные по частям
|
|
412
|
+
*/
|
|
413
|
+
getValueStandard(t) {
|
|
414
|
+
const e = this.getValueStandardFull(t);
|
|
415
|
+
return e === "" ? "" : this.getDatetime(e).standard(!1);
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Returns full raw date/time string assembled from groups (or empty if invalid).
|
|
419
|
+
*
|
|
420
|
+
* Возвращает полную «сырую» строку даты/времени, собранную из групп (или пусто если невалидно).
|
|
421
|
+
* @param date masks data grouped by parts/ данные масок, сгруппированные по частям
|
|
422
|
+
*/
|
|
423
|
+
getValueStandardFull(t) {
|
|
424
|
+
var i, s, r, n, l, c;
|
|
425
|
+
const e = `${((i = t == null ? void 0 : t.Y) == null ? void 0 : i.value) || "2000"}-${((s = t == null ? void 0 : t.M) == null ? void 0 : s.value) || "01"}-${((r = t == null ? void 0 : t.D) == null ? void 0 : r.value) || "01"}T${((n = t == null ? void 0 : t.h) == null ? void 0 : n.value) || "00"}:${((l = t == null ? void 0 : t.m) == null ? void 0 : l.value) || "00"}:${((c = t == null ? void 0 : t.s) == null ? void 0 : c.value) || "00"}`;
|
|
426
|
+
return isNaN(Date.parse(e)) ? "" : e;
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Returns validation patterns object for date/time parts.
|
|
430
|
+
*
|
|
431
|
+
* Возвращает объект паттернов валидации для частей даты/времени.
|
|
432
|
+
*/
|
|
433
|
+
getPattern() {
|
|
434
|
+
return st;
|
|
435
|
+
}
|
|
436
|
+
/** Returns list of date-only group symbols/ Возвращает список символов для даты */
|
|
437
|
+
getSpecialDate() {
|
|
438
|
+
return ["Y", "M", "D"];
|
|
439
|
+
}
|
|
440
|
+
/** Returns list of full date-time group symbols/ Возвращает список символов для даты и времени */
|
|
441
|
+
getSpecialFull() {
|
|
442
|
+
return [...this.getSpecialDate(), "h", "m", "s"];
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Returns display symbol for group.
|
|
446
|
+
*
|
|
447
|
+
* Возвращает отображаемый символ для группы.
|
|
448
|
+
* @param groupName group name/ название группы
|
|
449
|
+
*/
|
|
450
|
+
getView(t) {
|
|
451
|
+
return I == null ? void 0 : I[t];
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
class at {
|
|
455
|
+
/**
|
|
456
|
+
* Constructor
|
|
457
|
+
* @param props input data/ входные данные
|
|
458
|
+
* @param type mask type helper/ объект помощник типа маски
|
|
459
|
+
* @param rubberItem rubber groups helper/ объект помощник резиновых групп
|
|
460
|
+
*/
|
|
461
|
+
constructor(t, e, i) {
|
|
462
|
+
/** Special symbols configuration (groups) for numeric input / Конфигурация специальных символов (группы) для числового ввода */
|
|
463
|
+
a(this, "special", {
|
|
464
|
+
n: {},
|
|
465
|
+
f: {
|
|
466
|
+
defaultValue: "0"
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
/** Rubber mask instructions (dynamic length per group) / Инструкции резиновой маски (динамическая длина по группам) */
|
|
470
|
+
a(this, "rubber", u(() => ({
|
|
471
|
+
n: {
|
|
472
|
+
rubber: !0,
|
|
473
|
+
transitionChar: this.getDecimal(),
|
|
474
|
+
maxLength: 10
|
|
475
|
+
},
|
|
476
|
+
f: {
|
|
477
|
+
rubber: this.isFractionRubber(),
|
|
478
|
+
maxLength: 4
|
|
479
|
+
}
|
|
480
|
+
})));
|
|
481
|
+
/** Base view symbol per group / Базовый отображаемый символ для группы */
|
|
482
|
+
a(this, "view", u(() => this.type.isNumber() ? "" : "0"));
|
|
483
|
+
/** Fraction digits count / Количество знаков после запятой */
|
|
484
|
+
a(this, "fraction", u(() => {
|
|
485
|
+
if (this.type.isCurrency())
|
|
486
|
+
return 2;
|
|
487
|
+
const t = this.props.fraction;
|
|
488
|
+
return typeof t == "number" ? t : typeof t == "string" && t.match(/[0-9]+/) ? Number(t) : this.rubberItem.is("f") ? this.rubberItem.getByIndex("f") + 1 : t === !0 ? 1 : 0;
|
|
489
|
+
}));
|
|
490
|
+
/** Returns mask characters for current numeric type / Возвращает символы маски для текущего числового типа */
|
|
491
|
+
a(this, "mask", u(() => this.type.isCurrency() ? this.toSpecial(this.getCurrency()) : this.type.isNumberFormat() ? this.toSpecial(this.getNumberFormat()) : this.toSpecial(this.getNumber())));
|
|
492
|
+
this.props = t, this.type = e, this.rubberItem = i;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Is fraction part rubber (dynamic)?
|
|
496
|
+
*
|
|
497
|
+
* Является ли дробная часть резиновой (динамичной)?
|
|
498
|
+
*/
|
|
499
|
+
isFractionRubber() {
|
|
500
|
+
return this.props.fraction === !0;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Returns standardized raw numeric value (integer or integer.fraction).
|
|
504
|
+
*
|
|
505
|
+
* Возвращает стандартизированное «сырое» числовое значение (целое или целое.дробь).
|
|
506
|
+
* @param value masks data object/ объект масок
|
|
507
|
+
*/
|
|
508
|
+
getValueStandard(t) {
|
|
509
|
+
var i, s, r;
|
|
510
|
+
if (this.type.isNumber())
|
|
511
|
+
return ((i = t == null ? void 0 : t.n) == null ? void 0 : i.value) || "";
|
|
512
|
+
const e = `${((s = t == null ? void 0 : t.n) == null ? void 0 : s.value) || "0"}.${((r = t == null ? void 0 : t.f) == null ? void 0 : r.value) || "0"}`;
|
|
513
|
+
return e === "0.0" ? "0" : e;
|
|
514
|
+
}
|
|
515
|
+
/** Returns base number mask string.
|
|
516
|
+
*
|
|
517
|
+
* Возвращает строку маски числа.
|
|
518
|
+
*/
|
|
519
|
+
getNumber() {
|
|
520
|
+
return this.getNumberForString();
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Returns formatted number mask string.
|
|
524
|
+
*
|
|
525
|
+
* Возвращает форматированную строку числа.
|
|
526
|
+
*/
|
|
527
|
+
getNumberFormat() {
|
|
528
|
+
return this.getIntl().number(this.getNumberForString(), { maximumFractionDigits: 9 });
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Returns currency mask string with appended currency symbol.
|
|
532
|
+
*
|
|
533
|
+
* Возвращает строку маски валюты с добавленным символом валюты.
|
|
534
|
+
*/
|
|
535
|
+
getCurrency() {
|
|
536
|
+
return this.getIntl().currency(
|
|
537
|
+
this.getNumberForString(),
|
|
538
|
+
void 0,
|
|
539
|
+
this.props.currencyHide
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Returns list of delimiter characters for switching to fraction part.
|
|
544
|
+
*
|
|
545
|
+
* Возвращает список символов-разделителей для перехода к дробной части.
|
|
546
|
+
*/
|
|
547
|
+
getDecimal() {
|
|
548
|
+
return [this.getIntl().decimal(), "."];
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* Returns list of special group keys.
|
|
552
|
+
*
|
|
553
|
+
* Возвращает список ключей групп специальных символов.
|
|
554
|
+
*/
|
|
555
|
+
getSpecial() {
|
|
556
|
+
return Object.keys(this.special);
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* Returns GeoIntl helper instance.
|
|
560
|
+
*
|
|
561
|
+
* Возвращает экземпляр помощника GeoIntl.
|
|
562
|
+
*/
|
|
563
|
+
getIntl() {
|
|
564
|
+
return new A(this.props.language);
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Builds base numeric pattern string (with optional fraction & currency).
|
|
568
|
+
*
|
|
569
|
+
* Формирует базовую строку числового паттерна (с необязательной дробью и валютой).
|
|
570
|
+
*/
|
|
571
|
+
getNumberForString() {
|
|
572
|
+
const t = this.fraction.value, e = w("9", this.rubberItem.getByIndex("n") + 1), i = t ? `.${w("3", t)}` : "", s = this.type.isCurrency() && this.props.currency ? ` ${this.props.currency}` : "";
|
|
573
|
+
return `${e}${i}${s}`;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Converts digit markers (9/3) to group symbols (n/f).
|
|
577
|
+
*
|
|
578
|
+
* Преобразует цифровые маркеры (9/3) в групповые символы (n/f).
|
|
579
|
+
*/
|
|
580
|
+
toSpecial(t) {
|
|
581
|
+
return t.replace(/9/ig, "n").replace(/3/ig, "f").split("");
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
class ht {
|
|
585
|
+
/**
|
|
586
|
+
* Constructor
|
|
587
|
+
* @param props input data/ входные данные
|
|
588
|
+
* @param type mask type helper/ объект помощник типа маски
|
|
589
|
+
* @param date date mask helper/ объект помощник маски даты
|
|
590
|
+
* @param format numeric/currency mask helper/ объект помощник числовых масок
|
|
591
|
+
*/
|
|
592
|
+
constructor(t, e, i, s) {
|
|
593
|
+
/**
|
|
594
|
+
* Returns list of special symbols.
|
|
595
|
+
*
|
|
596
|
+
* Возвращает список специальных символов.
|
|
597
|
+
*/
|
|
598
|
+
a(this, "item", u(() => {
|
|
599
|
+
if (this.type.isCurrencyOrNumber())
|
|
600
|
+
return this.format.getSpecial();
|
|
601
|
+
if (this.type.isTime())
|
|
602
|
+
return this.date.getSpecialFull();
|
|
603
|
+
if (this.type.isDate())
|
|
604
|
+
return this.date.getSpecialDate();
|
|
605
|
+
const t = this.special.value;
|
|
606
|
+
return k(t) ? t : O(t) ? Object.keys(t) : [t];
|
|
607
|
+
}));
|
|
608
|
+
/**
|
|
609
|
+
* Returns map of only rubber-enabled groups.
|
|
610
|
+
*
|
|
611
|
+
* Возвращает карту только резиновых групп.
|
|
612
|
+
*/
|
|
613
|
+
a(this, "rubberList", u(() => {
|
|
614
|
+
const t = {};
|
|
615
|
+
return S(this.special.value) && x(this.special.value, (e, i) => {
|
|
616
|
+
e != null && e.rubber && (t[i] = e);
|
|
617
|
+
}), t;
|
|
618
|
+
}));
|
|
619
|
+
/**
|
|
620
|
+
* Returns special property (original definition).
|
|
621
|
+
*
|
|
622
|
+
* Возвращает свойство special (оригинальное определение).
|
|
623
|
+
*/
|
|
624
|
+
a(this, "special", u(() => {
|
|
625
|
+
var t;
|
|
626
|
+
return this.type.isCurrencyOrNumber() ? this.format.special : (t = this.props.special) != null ? t : "*";
|
|
627
|
+
}));
|
|
628
|
+
this.props = t, this.type = e, this.date = i, this.format = s;
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* Checks if symbol is special.
|
|
632
|
+
*
|
|
633
|
+
* Проверяет, является ли символ специальным.
|
|
634
|
+
* @param char symbol to check/ символ для проверки
|
|
635
|
+
*/
|
|
636
|
+
isSpecial(t) {
|
|
637
|
+
return this.item.value.indexOf(t) !== -1;
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Checks if group has default value.
|
|
641
|
+
*
|
|
642
|
+
* Проверяет, имеет ли группа значение по умолчанию.
|
|
643
|
+
* @param groupName group name/ название группы
|
|
644
|
+
*/
|
|
645
|
+
isDefault(t) {
|
|
646
|
+
return !!this.getDefault(t);
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Returns default value for group.
|
|
650
|
+
*
|
|
651
|
+
* Возвращает значение по умолчанию для группы.
|
|
652
|
+
* @param groupName group name/ название группы
|
|
653
|
+
*/
|
|
654
|
+
getDefault(t) {
|
|
655
|
+
var e;
|
|
656
|
+
return (e = this.getSpecialItem(t)) == null ? void 0 : e.defaultValue;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* Returns matcher (regexp/string) for group.
|
|
660
|
+
*
|
|
661
|
+
* Возвращает выражение для проверки группы.
|
|
662
|
+
* @param groupName group name/ название группы
|
|
663
|
+
*/
|
|
664
|
+
getMatch(t) {
|
|
665
|
+
var e;
|
|
666
|
+
return (e = this.getSpecialItem(t)) == null ? void 0 : e.match;
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* Returns pattern definition for group.
|
|
670
|
+
*
|
|
671
|
+
* Возвращает pattern для группы.
|
|
672
|
+
* @param groupName group name/ название группы
|
|
673
|
+
*/
|
|
674
|
+
getPattern(t) {
|
|
675
|
+
var e;
|
|
676
|
+
return (e = this.getSpecialItem(t)) == null ? void 0 : e.pattern;
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Returns view (display character) for group.
|
|
680
|
+
*
|
|
681
|
+
* Возвращает отображаемый символ для группы.
|
|
682
|
+
* @param groupName group name/ название группы
|
|
683
|
+
*/
|
|
684
|
+
getView(t) {
|
|
685
|
+
var e;
|
|
686
|
+
return (e = this.getSpecialItem(t)) == null ? void 0 : e.view;
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* Returns special group item data by name.
|
|
690
|
+
*
|
|
691
|
+
* Возвращает данные группы special по имени.
|
|
692
|
+
* @param groupName group name/ название группы
|
|
693
|
+
*/
|
|
694
|
+
getSpecialItem(t) {
|
|
695
|
+
const e = this.special.value;
|
|
696
|
+
if (S(e) && t in e)
|
|
697
|
+
return e[t];
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
const M = /[0-9]/;
|
|
701
|
+
class nt {
|
|
702
|
+
/**
|
|
703
|
+
* Constructor
|
|
704
|
+
* @param props input data/ входные данные
|
|
705
|
+
* @param special special symbols helper/ объект помощник специальных символов
|
|
706
|
+
*/
|
|
707
|
+
constructor(t, e) {
|
|
708
|
+
this.props = t, this.special = e;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Checks whether the character matches allowed pattern(s).
|
|
712
|
+
*
|
|
713
|
+
* Проверяет, соответствует ли символ разрешённому шаблону.
|
|
714
|
+
* @param char character to check/ символ для проверки
|
|
715
|
+
* @param groupName optional group name/ необязательное имя группы
|
|
716
|
+
*/
|
|
717
|
+
is(t, e) {
|
|
718
|
+
const i = this.get(e);
|
|
719
|
+
return i instanceof RegExp ? !!t.match(i) : B(i) ? !!t.match(new RegExp(i)) : !!t.match(M);
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* Returns match definition (regexp or string) for group or global.
|
|
723
|
+
*
|
|
724
|
+
* Возвращает правило проверки (regexp или строка) для группы или глобально.
|
|
725
|
+
* @param groupName group name/ имя группы
|
|
726
|
+
*/
|
|
727
|
+
get(t) {
|
|
728
|
+
var e, i;
|
|
729
|
+
return (i = (e = t && this.special.getMatch(t)) != null ? e : this.props.match) != null ? i : M;
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* Filters text returning only allowed characters (any group).
|
|
733
|
+
*
|
|
734
|
+
* Фильтрует текст, возвращая только допустимые символы (любая группа).
|
|
735
|
+
* @param text source text/ исходный текст
|
|
736
|
+
*/
|
|
737
|
+
filter(t) {
|
|
738
|
+
const e = this.special.item.value;
|
|
739
|
+
return t.split("").filter((i) => e.find((s) => this.is(i, s)));
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
class ut {
|
|
743
|
+
/**
|
|
744
|
+
* Constructor
|
|
745
|
+
* @param props input data/ входные данные
|
|
746
|
+
* @param type mask type helper/ объект помощник типа маски
|
|
747
|
+
* @param date date mask helper/ объект помощник маски даты
|
|
748
|
+
* @param special special symbols helper/ объект помощник специальных символов
|
|
749
|
+
*/
|
|
750
|
+
constructor(t, e, i, s) {
|
|
751
|
+
/** Validation input objects by group / Объекты проверки по названию группы */
|
|
752
|
+
a(this, "item", u(() => {
|
|
753
|
+
const t = {};
|
|
754
|
+
return x(this.list.value, (e, i) => {
|
|
755
|
+
t[i] = new v(e, i);
|
|
756
|
+
}), this.props.check && (t.check = new v(this.props.check)), t;
|
|
757
|
+
}));
|
|
758
|
+
/** Patterns list by group / Список паттернов по группам */
|
|
759
|
+
a(this, "list", u(() => {
|
|
760
|
+
const t = this.getByType();
|
|
761
|
+
for (const e in t) {
|
|
762
|
+
const i = this.getPattern(e);
|
|
763
|
+
t[e] && (B(i) ? Object.assign(t[e], { pattern: i }) : S(i) && S(t[e]) && Object.assign(t[e], i));
|
|
764
|
+
}
|
|
765
|
+
return t;
|
|
766
|
+
}));
|
|
767
|
+
this.props = t, this.type = e, this.date = i, this.special = s;
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* Checks if there is a global check pattern.
|
|
771
|
+
*
|
|
772
|
+
* Проверяет, есть ли глобальный паттерн проверки.
|
|
773
|
+
*/
|
|
774
|
+
isCheck() {
|
|
775
|
+
return !!this.props.check;
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* Returns validation input object by group.
|
|
779
|
+
*
|
|
780
|
+
* Возвращает объект проверки по названию группы.
|
|
781
|
+
* @param groupName group name (default: check)/ имя группы (по умолчанию: check)
|
|
782
|
+
*/
|
|
783
|
+
getInput(t = v.getGroupDefault()) {
|
|
784
|
+
var e;
|
|
785
|
+
return (e = this.item.value) == null ? void 0 : e[t];
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Builds base patterns object depending on mask type.
|
|
789
|
+
*
|
|
790
|
+
* Формирует базовый объект паттернов в зависимости от типа маски.
|
|
791
|
+
*/
|
|
792
|
+
getByType() {
|
|
793
|
+
if (this.type.isDate())
|
|
794
|
+
return this.date.getPattern();
|
|
795
|
+
const t = {};
|
|
796
|
+
return this.special.item.value.forEach((e) => {
|
|
797
|
+
t[e] = {};
|
|
798
|
+
}), t;
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* Returns pattern definition for group or global pattern.
|
|
802
|
+
*
|
|
803
|
+
* Возвращает определение паттерна для группы или глобальный паттерн.
|
|
804
|
+
* @param groupName group name/ имя группы
|
|
805
|
+
*/
|
|
806
|
+
getPattern(t) {
|
|
807
|
+
var e;
|
|
808
|
+
return (e = t && this.special.getPattern(t)) != null ? e : this.props.pattern;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
const Mt = {
|
|
812
|
+
special: "*",
|
|
813
|
+
match: /[0-9]/,
|
|
814
|
+
type: "text",
|
|
815
|
+
groupSave: !0,
|
|
816
|
+
view: "_",
|
|
817
|
+
// :default [!] System label / Системная метка
|
|
818
|
+
visible: !0
|
|
819
|
+
};
|
|
820
|
+
class lt {
|
|
821
|
+
/**
|
|
822
|
+
* Constructor
|
|
823
|
+
* @param props input data/ входные данные
|
|
824
|
+
* @param type mask type helper/ объект помощник типа маски
|
|
825
|
+
*/
|
|
826
|
+
constructor(t, e) {
|
|
827
|
+
this.props = t, this.type = e;
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* Returns whether the content should visually end-align (numeric, rtl, currency).
|
|
831
|
+
*
|
|
832
|
+
* Возвращает, нужно ли визуально выравнивать по концу (числа, rtl, валюта).
|
|
833
|
+
*/
|
|
834
|
+
isEnd() {
|
|
835
|
+
return this.props.align !== "left" && (this.props.dir === "rtl" || this.type.isCurrency() && !this.props.currencyHide || this.type.isNumberFormat());
|
|
836
|
+
}
|
|
837
|
+
/**
|
|
838
|
+
* Checks if alignment is right (explicit right or end alignment).
|
|
839
|
+
*
|
|
840
|
+
* Проверяет, что выравнивание справа (явно right или конечное).
|
|
841
|
+
*/
|
|
842
|
+
isRight() {
|
|
843
|
+
return this.props.align === "right" || this.isEnd();
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
class ct {
|
|
847
|
+
/**
|
|
848
|
+
* Constructor
|
|
849
|
+
* @param props base data/ базовые данные
|
|
850
|
+
* @param type object for working with the mask type/ объект для работы с типом маски
|
|
851
|
+
* @param rubberItem object for working with rubber elements/ объект для работы с резиновыми элементами
|
|
852
|
+
* @param rubberTransition object for managing the transition character/ объект для управления символом перехода
|
|
853
|
+
* @param special object for working with special characters/ объект для работы со специальными символами
|
|
854
|
+
* @param match object for managing the input character/ объект для управления символом ввода
|
|
855
|
+
* @param format object for managing numeric mask types/ объект для управления числовыми типами масок
|
|
856
|
+
*/
|
|
857
|
+
constructor(t, e, i, s, r, n, l) {
|
|
858
|
+
/** List of rubber groups/ Список резиновых групп */
|
|
859
|
+
a(this, "list", u(() => {
|
|
860
|
+
const t = this.special.rubberList.value;
|
|
861
|
+
return this.type.isCurrencyOrNumber() ? K(
|
|
862
|
+
this.format.rubber.value,
|
|
863
|
+
t
|
|
864
|
+
) : t;
|
|
865
|
+
}));
|
|
866
|
+
/** List of transition symbols/ Список символов перехода */
|
|
867
|
+
a(this, "transition", u(() => R(
|
|
868
|
+
Object.values(this.list.value).filter(
|
|
869
|
+
(t) => "transitionChar" in t && (B(t.transitionChar) || k(t.transitionChar))
|
|
870
|
+
),
|
|
871
|
+
"transitionChar"
|
|
872
|
+
).flat()));
|
|
873
|
+
this.props = t, this.type = e, this.rubberItem = i, this.rubberTransition = s, this.special = r, this.match = n, this.format = l;
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* Checks if the symbol is a transition.
|
|
877
|
+
*
|
|
878
|
+
* Проверяет, является ли символ перехода.
|
|
879
|
+
* @param char checkable symbol/ проверяемый символ
|
|
880
|
+
*/
|
|
881
|
+
isTransition(t) {
|
|
882
|
+
return this.transition.value.indexOf(t) >= 0;
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Getting properties for the rubber group.
|
|
886
|
+
*
|
|
887
|
+
* Получение свойства для резиновой группы.
|
|
888
|
+
* @param groupName group name/ название группы
|
|
889
|
+
*/
|
|
890
|
+
get(t) {
|
|
891
|
+
var e;
|
|
892
|
+
return (e = this.list.value) == null ? void 0 : e[t];
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* Updates the group of rubber symbols if all conditions are met and returns true.
|
|
896
|
+
*
|
|
897
|
+
* Обновляет группу резиновых символов, если все условия подходят, и возвращает true.
|
|
898
|
+
* @param data values for verification/ значения для проверки
|
|
899
|
+
* @param groupName group name/ название группы
|
|
900
|
+
* @param char symbol for checking/ символ для проверки
|
|
901
|
+
*/
|
|
902
|
+
update(t, e, i) {
|
|
903
|
+
const s = this.get(e), r = t == null ? void 0 : t[e];
|
|
904
|
+
return s && r ? $(i, s == null ? void 0 : s.transitionChar) || s != null && s.maxLength && (s == null ? void 0 : s.maxLength) <= (r == null ? void 0 : r.chars.length) ? (this.rubberTransition.set(e), !1) : (r.end && this.match.is(i, e) && !this.rubberTransition.isChar(e) && (this.rubberItem.add(e), this.rubberTransition.reset()), !0) : !1;
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* Reduces the length of the entered symbol by its group.
|
|
908
|
+
*
|
|
909
|
+
* Уменьшает длину вводимого символа по его группе.
|
|
910
|
+
* @param groupName group name/ название группы
|
|
911
|
+
*/
|
|
912
|
+
pop(t) {
|
|
913
|
+
return this.rubberItem.pop(t);
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* Resets all states of all groups to the initial one.
|
|
917
|
+
*
|
|
918
|
+
* Сбрасывает все состояния всех групп до начального.
|
|
919
|
+
*/
|
|
920
|
+
reset() {
|
|
921
|
+
return this.rubberItem.reset(), this.rubberTransition.reset(), this;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
class ot {
|
|
925
|
+
/**
|
|
926
|
+
* Constructor
|
|
927
|
+
* @param props input data/ входные данные
|
|
928
|
+
* @param type object for working with the mask type/ объект для работы с типом маски
|
|
929
|
+
* @param rubberItem object for working with rubber elements/ объект для работы с резиновыми элементами
|
|
930
|
+
* @param characterLength object for managing input length/ объект управления длиной ввода
|
|
931
|
+
* @param date object for working with date types/ объект для работы с типом даты
|
|
932
|
+
* @param format object for managing numeric mask types/ объект для управления числовыми типами масок
|
|
933
|
+
* @param special object for working with special characters/ объект для работы со специальными символами
|
|
934
|
+
*/
|
|
935
|
+
constructor(t, e, i, s, r, n, l) {
|
|
936
|
+
/**
|
|
937
|
+
* Returns the current mask.
|
|
938
|
+
*
|
|
939
|
+
* Возвращает текущую маску.
|
|
940
|
+
*/
|
|
941
|
+
a(this, "item", u(() => this.type.isCurrencyOrNumber() ? this.format.mask.value : this.type.isDate() ? this.date.mask.value : this.basic.value));
|
|
942
|
+
/**
|
|
943
|
+
* Returns an array with information about the location of all special characters.
|
|
944
|
+
*
|
|
945
|
+
* Возвращает массив с информацией о расположении всех специальных символов.
|
|
946
|
+
*/
|
|
947
|
+
a(this, "info", u(() => {
|
|
948
|
+
const t = [];
|
|
949
|
+
let e = 0;
|
|
950
|
+
return this.item.value.forEach((i, s) => {
|
|
951
|
+
this.special.isSpecial(i) && (t.push({
|
|
952
|
+
index: e,
|
|
953
|
+
key: s,
|
|
954
|
+
char: i
|
|
955
|
+
}), e++);
|
|
956
|
+
}), t;
|
|
957
|
+
}));
|
|
958
|
+
/**
|
|
959
|
+
* Returns the length of the mask or the maximum length of masks if there are several.
|
|
960
|
+
*
|
|
961
|
+
* Возвращает длину маски или максимальную длину масок, если их несколько.
|
|
962
|
+
*/
|
|
963
|
+
a(this, "maxLength", u(() => {
|
|
964
|
+
const t = this.getMask();
|
|
965
|
+
return k(t) ? _(t) : this.item.value.length;
|
|
966
|
+
}));
|
|
967
|
+
/**
|
|
968
|
+
* Returns the active mask.
|
|
969
|
+
*
|
|
970
|
+
* Возвращает активную маску.
|
|
971
|
+
*/
|
|
972
|
+
a(this, "maskActive", u(() => {
|
|
973
|
+
const t = this.getMask();
|
|
974
|
+
return k(t) ? t.find((e) => this.getSpecialLength(e) >= this.characterLength.get()) || (t == null ? void 0 : t[t.length - 1]) || "" : t;
|
|
975
|
+
}));
|
|
976
|
+
/**
|
|
977
|
+
* Returns the number of special characters in the current mask.
|
|
978
|
+
*
|
|
979
|
+
* Возвращает количество специальных символов в текущей маске.
|
|
980
|
+
*/
|
|
981
|
+
a(this, "basic", u(() => this.rubberItem.expandMask(this.maskActive.value).split("")));
|
|
982
|
+
this.props = t, this.type = e, this.rubberItem = i, this.characterLength = s, this.date = r, this.format = n, this.special = l;
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* Returns the mask symbol by its index.
|
|
986
|
+
*
|
|
987
|
+
* Возвращает символ маски по его индексу.
|
|
988
|
+
* @param index index of the symbol's location/ индекс расположения символа
|
|
989
|
+
*/
|
|
990
|
+
get(t) {
|
|
991
|
+
var e, i;
|
|
992
|
+
return (i = (e = this.item.value) == null ? void 0 : e[t]) != null ? i : "";
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* Returns the location number for replacement by its input symbol.
|
|
996
|
+
*
|
|
997
|
+
* Возвращает номер нахождения для замены по его символу ввода.
|
|
998
|
+
* @param char input symbol/ символ ввода
|
|
999
|
+
* @param selection minimum index for search/ минимальный индекс для поиска
|
|
1000
|
+
*/
|
|
1001
|
+
getByChar(t, e = -1) {
|
|
1002
|
+
let i = e;
|
|
1003
|
+
return this.item.value.forEach((s, r) => {
|
|
1004
|
+
s === t && r >= e && (i = r);
|
|
1005
|
+
}), i;
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* Returns the length of the active mask.
|
|
1009
|
+
*
|
|
1010
|
+
* Возвращает длину активной маски.
|
|
1011
|
+
*/
|
|
1012
|
+
getLength() {
|
|
1013
|
+
return this.item.value.length;
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* Returns the length of only special characters.
|
|
1017
|
+
*
|
|
1018
|
+
* Возвращает длину только из специальных символов.
|
|
1019
|
+
*/
|
|
1020
|
+
getLengthBySpecial() {
|
|
1021
|
+
return this.info.value.length;
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
* Returns how many special characters were highlighted.
|
|
1025
|
+
*
|
|
1026
|
+
* Возвращает, сколько специальных символов было выделено.
|
|
1027
|
+
* @param start start of selection/ начало выделения
|
|
1028
|
+
* @param end end of selection/ конец выделения
|
|
1029
|
+
*/
|
|
1030
|
+
getQuantity(t, e) {
|
|
1031
|
+
if (t === e)
|
|
1032
|
+
return 1;
|
|
1033
|
+
let i = 0;
|
|
1034
|
+
for (let s = t; s < e; s++)
|
|
1035
|
+
this.special.isSpecial(this.get(s)) && i++;
|
|
1036
|
+
return i;
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* Returns a list of masks.
|
|
1040
|
+
*
|
|
1041
|
+
* Возвращает список масок.
|
|
1042
|
+
*/
|
|
1043
|
+
getMask() {
|
|
1044
|
+
var t;
|
|
1045
|
+
return (t = this.props.mask) != null ? t : "";
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* Returns the number of special characters in the current mask.
|
|
1049
|
+
*
|
|
1050
|
+
* Возвращает количество специальных символов в текущей маске.
|
|
1051
|
+
* @param mask selected mask/ выбранная маска
|
|
1052
|
+
*/
|
|
1053
|
+
getSpecialLength(t) {
|
|
1054
|
+
return t.split("").filter((e) => this.special.isSpecial(e)).length;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
class pt {
|
|
1058
|
+
/**
|
|
1059
|
+
* Constructor
|
|
1060
|
+
* @param special object for working with special characters/ объект для работы со специальными символами
|
|
1061
|
+
* @param mask object for managing masks/ объект управления маской
|
|
1062
|
+
*/
|
|
1063
|
+
constructor(t, e) {
|
|
1064
|
+
/** Selection value/ Значение выделения */
|
|
1065
|
+
a(this, "value", 0);
|
|
1066
|
+
/** Immediate selection value/ Значение непосредственного выделения */
|
|
1067
|
+
a(this, "immediate", 0);
|
|
1068
|
+
/** Shift flag/ Флаг сдвига */
|
|
1069
|
+
a(this, "shift", !1);
|
|
1070
|
+
this.special = t, this.mask = e;
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Getting the selection key number.
|
|
1074
|
+
*
|
|
1075
|
+
* Получение номера ключа выделения.
|
|
1076
|
+
*/
|
|
1077
|
+
get() {
|
|
1078
|
+
return this.value;
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Returns the selection number for the first element that is a special symbol.
|
|
1082
|
+
*
|
|
1083
|
+
* Возвращает номер выделения для первого элемента, являющегося специальным символом.
|
|
1084
|
+
*/
|
|
1085
|
+
getFirst() {
|
|
1086
|
+
var t, e, i;
|
|
1087
|
+
return (i = (e = (t = this.mask.info.value) == null ? void 0 : t[0]) == null ? void 0 : e.key) != null ? i : 0;
|
|
1088
|
+
}
|
|
1089
|
+
/**
|
|
1090
|
+
* Getting the current key of the selected character.
|
|
1091
|
+
*
|
|
1092
|
+
* Получение текущего ключа выделенного символа.
|
|
1093
|
+
*/
|
|
1094
|
+
getFocus() {
|
|
1095
|
+
return this.getCharacter(this.value);
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Getting the next key of the selected character.
|
|
1099
|
+
*
|
|
1100
|
+
* Получение следующего ключа выделенного символа.
|
|
1101
|
+
*/
|
|
1102
|
+
getNext() {
|
|
1103
|
+
return this.getCharacter(this.value + 1);
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
* Getting the previous key of the selected symbol.
|
|
1107
|
+
*
|
|
1108
|
+
* Получение предыдущего ключа выделенного символа.
|
|
1109
|
+
*/
|
|
1110
|
+
getPrevious() {
|
|
1111
|
+
return this.getCharacter(this.value - 1);
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Getting the key number of the nearest special character.
|
|
1115
|
+
*
|
|
1116
|
+
* Получение номера ключа ближайшего специального символа.
|
|
1117
|
+
*/
|
|
1118
|
+
getImmediate() {
|
|
1119
|
+
return this.getCharacter(this.immediate);
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* Getting the number of the key shifted to the left direction.
|
|
1123
|
+
*
|
|
1124
|
+
* Получение номера ключа, сдвинутого в левом направлении.
|
|
1125
|
+
*/
|
|
1126
|
+
getShift() {
|
|
1127
|
+
return this.shift ? this.value > 0 ? this.getCharacter(this.value - 1) + 1 : 0 : this.getFocus();
|
|
1128
|
+
}
|
|
1129
|
+
/**
|
|
1130
|
+
* Changing the selection key number.
|
|
1131
|
+
*
|
|
1132
|
+
* Изменение номера ключа выделения.
|
|
1133
|
+
* @param selection selection number/ номер выделения
|
|
1134
|
+
*/
|
|
1135
|
+
set(t) {
|
|
1136
|
+
return this.value = t, this;
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* Changes the selection key number according to the mask structure.
|
|
1140
|
+
*
|
|
1141
|
+
* Изменяет номер ключа выделения по структуре маски.
|
|
1142
|
+
* @param selection selection number/ номер выделения
|
|
1143
|
+
* @param focus is the element in focus/ элемент в фокусе ли
|
|
1144
|
+
*/
|
|
1145
|
+
setByMask(t, e = !0) {
|
|
1146
|
+
if (e) {
|
|
1147
|
+
let i, s;
|
|
1148
|
+
this.mask.info.value.forEach((r) => {
|
|
1149
|
+
i === void 0 && r.key >= t && (i = r.index), r.key <= t && (s = r.index);
|
|
1150
|
+
}), this.set(i !== void 0 ? i : this.mask.getLengthBySpecial()), this.setImmediate(s !== void 0 ? s : this.mask.getLengthBySpecial());
|
|
1151
|
+
}
|
|
1152
|
+
return this;
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* Changing the selection key for the nearest special character.
|
|
1156
|
+
*
|
|
1157
|
+
* Изменение ключа выделения для ближайшего специального символа.
|
|
1158
|
+
* @param immediate selection key number/ номер ключа выделения
|
|
1159
|
+
*/
|
|
1160
|
+
setImmediate(t) {
|
|
1161
|
+
return this.immediate = t, this;
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* Turning shift on or off.
|
|
1165
|
+
*
|
|
1166
|
+
* Включение или отключение сдвига.
|
|
1167
|
+
* @param shift value for shift/ значение для сдвига
|
|
1168
|
+
*/
|
|
1169
|
+
setShift(t) {
|
|
1170
|
+
return this.shift = t, this;
|
|
1171
|
+
}
|
|
1172
|
+
/**
|
|
1173
|
+
* Resets the selection key for the nearest special character to the selection location.
|
|
1174
|
+
*
|
|
1175
|
+
* Сбрасывает ключ выделения для ближайшего специального символа до места выделения.
|
|
1176
|
+
*/
|
|
1177
|
+
resetImmediate() {
|
|
1178
|
+
return this.immediate = this.value <= 0 ? 0 : this.value - 1, this;
|
|
1179
|
+
}
|
|
1180
|
+
/**
|
|
1181
|
+
* Move the selection location back by 1 step.
|
|
1182
|
+
*
|
|
1183
|
+
* Передвигаем место выделения назад на 1 шаг.
|
|
1184
|
+
*/
|
|
1185
|
+
goBack() {
|
|
1186
|
+
return this.value > 0 && this.value--, this;
|
|
1187
|
+
}
|
|
1188
|
+
/**
|
|
1189
|
+
* Move the selection location forward by 1 step.
|
|
1190
|
+
*
|
|
1191
|
+
* Передвигаем место выделения вперед на 1 шаг.
|
|
1192
|
+
*/
|
|
1193
|
+
goNext() {
|
|
1194
|
+
return this.value <= this.mask.getLength() && this.value++, this;
|
|
1195
|
+
}
|
|
1196
|
+
/**
|
|
1197
|
+
* Getting the key number at the selection location.
|
|
1198
|
+
*
|
|
1199
|
+
* Получение номера ключа по месту выделения.
|
|
1200
|
+
* @param selection selection location/ место выделения
|
|
1201
|
+
*/
|
|
1202
|
+
getCharacter(t) {
|
|
1203
|
+
for (const e of this.mask.info.value)
|
|
1204
|
+
if (e.index >= t)
|
|
1205
|
+
return e.key;
|
|
1206
|
+
return this.mask.getLength();
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
const b = "~", mt = "_";
|
|
1210
|
+
class ft {
|
|
1211
|
+
/**
|
|
1212
|
+
* Constructor
|
|
1213
|
+
* @param props input data/ входные данные
|
|
1214
|
+
* @param rubberItem object for working with rubber elements/ объект для работы с резиновыми элементами
|
|
1215
|
+
* @param characterLength object for managing input length/ объект управления длиной ввода
|
|
1216
|
+
* @param special object for working with special characters/ объект для работы со специальными символами
|
|
1217
|
+
* @param mask object for managing masks/ объект управления маской
|
|
1218
|
+
* @param selection object for managing cursor position/ объект для управления положением курсора
|
|
1219
|
+
*/
|
|
1220
|
+
constructor(t, e, i, s, r, n) {
|
|
1221
|
+
/** Entered characters list/ Список введённых символов */
|
|
1222
|
+
a(this, "item", C([]));
|
|
1223
|
+
this.props = t, this.rubberItem = e, this.characterLength = i, this.special = s, this.mask = r, this.selection = n;
|
|
1224
|
+
}
|
|
1225
|
+
/**
|
|
1226
|
+
* Checks if the value is filled.
|
|
1227
|
+
*
|
|
1228
|
+
* Проверяет, заполнено ли значение.
|
|
1229
|
+
*/
|
|
1230
|
+
is() {
|
|
1231
|
+
return this.item.value.length > 0;
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* Checks if the selected character was previously deleted.
|
|
1235
|
+
*
|
|
1236
|
+
* Проверяет, является ли выделенный символ ранее удалённым.
|
|
1237
|
+
*/
|
|
1238
|
+
isCharDelete() {
|
|
1239
|
+
const t = this.selection.get();
|
|
1240
|
+
return t in this.item.value && this.item.value[t] === b;
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Getting the selected mask character.
|
|
1244
|
+
*
|
|
1245
|
+
* Получение выбранного символа маски.
|
|
1246
|
+
*/
|
|
1247
|
+
getFocus() {
|
|
1248
|
+
return this.mask.get(this.selection.getFocus());
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Getting the mask character by the key number of the nearest special character.
|
|
1252
|
+
*
|
|
1253
|
+
* Получение символа маски по номеру ключа ближайшего специального символа.
|
|
1254
|
+
*/
|
|
1255
|
+
getImmediate() {
|
|
1256
|
+
return this.mask.get(this.selection.getImmediate());
|
|
1257
|
+
}
|
|
1258
|
+
/**
|
|
1259
|
+
* Getting the next mask character.
|
|
1260
|
+
*
|
|
1261
|
+
* Получение следующего символа маски.
|
|
1262
|
+
*/
|
|
1263
|
+
getNext() {
|
|
1264
|
+
return this.mask.get(this.selection.getNext());
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
* Adding 1 entered character at its selection location.
|
|
1268
|
+
*
|
|
1269
|
+
* Добавление 1 введённого символа по месту его выделения.
|
|
1270
|
+
* @param char entered character/ введённый символ
|
|
1271
|
+
*/
|
|
1272
|
+
add(t) {
|
|
1273
|
+
return this.item.value.splice(this.selection.get(), this.isCharDelete() ? 1 : 0, t), this.selection.goNext().resetImmediate(), this.updateLength(), this;
|
|
1274
|
+
}
|
|
1275
|
+
/**
|
|
1276
|
+
* Deleting 1 entered character at its selection location.
|
|
1277
|
+
*
|
|
1278
|
+
* Удаление 1 введённого символа по месту его выделения.
|
|
1279
|
+
*/
|
|
1280
|
+
pop() {
|
|
1281
|
+
const t = this.selection.get() - 1;
|
|
1282
|
+
return this.isSpecialNextAnother() ? this.item.value[t] = b : (this.item.value.splice(t, 1), this.updateLength()), this.selection.goBack().resetImmediate(), this;
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* Resets the values to the initial values.
|
|
1286
|
+
*
|
|
1287
|
+
* Сбрасывает значения до начальных.
|
|
1288
|
+
*/
|
|
1289
|
+
reset() {
|
|
1290
|
+
return this.item.value = [], this.selection.set(0).resetImmediate(), this.updateLength(), this;
|
|
1291
|
+
}
|
|
1292
|
+
/**
|
|
1293
|
+
* Shifts by 1 value depending on the direction of selection change.
|
|
1294
|
+
*
|
|
1295
|
+
* Сдвигает на 1 значение в зависимости от направления изменения выделения.
|
|
1296
|
+
* @param status shift status/ статус сдвига
|
|
1297
|
+
*/
|
|
1298
|
+
shift(t = 1) {
|
|
1299
|
+
return this.characterLength.set(this.item.value.length + t), this;
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Checks if there is another group of special characters ahead.
|
|
1303
|
+
*
|
|
1304
|
+
* Проверяет, есть ли впереди другая группа специальных символов.
|
|
1305
|
+
*/
|
|
1306
|
+
isSpecialNextAnother() {
|
|
1307
|
+
var i, s;
|
|
1308
|
+
const t = this.selection.get() - 1, e = this.item.value.length;
|
|
1309
|
+
if (this.props.groupSave && t >= 0 && t <= e) {
|
|
1310
|
+
const r = this.mask.info.value, n = (i = r == null ? void 0 : r[t]) == null ? void 0 : i.char;
|
|
1311
|
+
if (n && !this.rubberItem.is(n)) {
|
|
1312
|
+
for (let l = t; l < e; l++)
|
|
1313
|
+
if (r != null && r[l]) {
|
|
1314
|
+
const c = (s = r[l]) == null ? void 0 : s.char;
|
|
1315
|
+
if (c && this.special.isSpecial(c) && n !== c)
|
|
1316
|
+
return !0;
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
return !1;
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Updates the length of entered characters.
|
|
1324
|
+
*
|
|
1325
|
+
* Обновляет длину введённых символов.
|
|
1326
|
+
*/
|
|
1327
|
+
updateLength() {
|
|
1328
|
+
return this.characterLength.set(this.item.value.length), this;
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
class gt {
|
|
1332
|
+
/**
|
|
1333
|
+
* Constructor
|
|
1334
|
+
* @param rubberTransition object for managing the transition character/ объект для управления символом перехода
|
|
1335
|
+
* @param mask object for managing masks/ объект управления маской
|
|
1336
|
+
* @param special object for working with special characters/ объект для работы со специальными символами
|
|
1337
|
+
* @param character object for managing entered character/ объект для управления введённым символом
|
|
1338
|
+
*/
|
|
1339
|
+
constructor(t, e, i, s) {
|
|
1340
|
+
/**
|
|
1341
|
+
* Receiving basic standard values.
|
|
1342
|
+
*
|
|
1343
|
+
* Получение базовых стандартных значений.
|
|
1344
|
+
*/
|
|
1345
|
+
a(this, "item", u(() => {
|
|
1346
|
+
const t = this.character.item.value, e = [];
|
|
1347
|
+
let i = 0;
|
|
1348
|
+
for (const s of this.mask.item.value)
|
|
1349
|
+
if (!this.special.isSpecial(s))
|
|
1350
|
+
e.push(s);
|
|
1351
|
+
else if (i in t) {
|
|
1352
|
+
if (e.push(String(t[i++])), i > t.length && this.rubberTransition.is() && !this.rubberTransition.isChar(s))
|
|
1353
|
+
break;
|
|
1354
|
+
} else
|
|
1355
|
+
break;
|
|
1356
|
+
return e.join("");
|
|
1357
|
+
}));
|
|
1358
|
+
this.rubberTransition = t, this.mask = e, this.special = i, this.character = s;
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
* Checks if the values are filled in.
|
|
1362
|
+
*
|
|
1363
|
+
* Проверяет, заполнены ли значения.
|
|
1364
|
+
*/
|
|
1365
|
+
is() {
|
|
1366
|
+
return this.getLength() > 0;
|
|
1367
|
+
}
|
|
1368
|
+
/**
|
|
1369
|
+
* Getting the character from the basic standard values by its key number.
|
|
1370
|
+
*
|
|
1371
|
+
* Получение символа из базовых стандартных значений по его номеру ключа.
|
|
1372
|
+
* @param index key number/ номер ключа
|
|
1373
|
+
*/
|
|
1374
|
+
getChar(t) {
|
|
1375
|
+
var e;
|
|
1376
|
+
return (e = this.item.value) == null ? void 0 : e[t];
|
|
1377
|
+
}
|
|
1378
|
+
/**
|
|
1379
|
+
* Getting the length of basic standard values.
|
|
1380
|
+
*
|
|
1381
|
+
* Получение длины базовых стандартных значений.
|
|
1382
|
+
*/
|
|
1383
|
+
getLength() {
|
|
1384
|
+
return this.item.value.length;
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
class dt {
|
|
1388
|
+
/**
|
|
1389
|
+
* Constructor
|
|
1390
|
+
* @param props input data/ входные данные
|
|
1391
|
+
* @param type object for working with the mask type/ объект для работы с типом маски
|
|
1392
|
+
* @param date object for working with date types/ объект для работы с типом даты
|
|
1393
|
+
* @param format object for managing numeric mask types/ объект для управления числовыми типами масок
|
|
1394
|
+
* @param mask object for managing masks/ объект управления маской
|
|
1395
|
+
* @param special object for working with special characters/ объект для работы со специальными символами
|
|
1396
|
+
* @param valueBasic object for working with base values/ объект для работы с базовыми значениями
|
|
1397
|
+
*/
|
|
1398
|
+
constructor(t, e, i, s, r, n, l) {
|
|
1399
|
+
a(this, "infoCache");
|
|
1400
|
+
/**
|
|
1401
|
+
* Receiving a list with information about standard values/
|
|
1402
|
+
* Получение списка с информацией о стандартных значениях
|
|
1403
|
+
*/
|
|
1404
|
+
a(this, "info", u(() => {
|
|
1405
|
+
const t = this.valueBasic.item.value, e = {};
|
|
1406
|
+
return this.mask.item.value.forEach((i, s) => {
|
|
1407
|
+
if (this.special.isSpecial(i)) {
|
|
1408
|
+
const r = this.add(e, i);
|
|
1409
|
+
this.isStandard(s) && t[s] !== b && r.chars.push(String(t[s])), r.maxLength++, r.end = r.maxLength === r.chars.length, r.full = this.special.isDefault(i) || r.end, r.value = r.full ? r.chars.join("") : "";
|
|
1410
|
+
}
|
|
1411
|
+
}), e;
|
|
1412
|
+
}));
|
|
1413
|
+
/** Final value (shortcut)/ Финальное значение (ярлык) */
|
|
1414
|
+
a(this, "item", u(() => this.getValue(this.info.value)));
|
|
1415
|
+
/** Checks if the mask is fully filled/ Проверяет, полностью ли заполнена маска */
|
|
1416
|
+
a(this, "isFull", u(() => {
|
|
1417
|
+
for (const t of Object.values(this.info.value))
|
|
1418
|
+
if (!t.full)
|
|
1419
|
+
return !1;
|
|
1420
|
+
return !0;
|
|
1421
|
+
}));
|
|
1422
|
+
/** Checks if the mask is fully filled by length/ Проверяет, полностью ли заполнена маска по длине */
|
|
1423
|
+
a(this, "isEnd", u(() => {
|
|
1424
|
+
for (const t of Object.values(this.info.value))
|
|
1425
|
+
if (!t.end)
|
|
1426
|
+
return !1;
|
|
1427
|
+
return !0;
|
|
1428
|
+
}));
|
|
1429
|
+
/** Returns the final form of the value/ Возвращает финальный вид значения */
|
|
1430
|
+
a(this, "valueFinal", u(() => {
|
|
1431
|
+
const t = this.valueBasic.item.value.split(""), e = this.mask.item.value;
|
|
1432
|
+
let i = "";
|
|
1433
|
+
for (const s in e)
|
|
1434
|
+
if (s in t)
|
|
1435
|
+
i += t[s];
|
|
1436
|
+
else if (e[s]) {
|
|
1437
|
+
const r = this.special.getDefault(e[s]);
|
|
1438
|
+
r && (i += r);
|
|
1439
|
+
}
|
|
1440
|
+
return i;
|
|
1441
|
+
}));
|
|
1442
|
+
this.props = t, this.type = e, this.date = i, this.format = s, this.mask = r, this.special = n, this.valueBasic = l, y(this.info, (c, m) => {
|
|
1443
|
+
this.type.isDate() && (this.infoCache = m);
|
|
1444
|
+
});
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* Returns old values.
|
|
1448
|
+
*
|
|
1449
|
+
* Возвращает старые значения.
|
|
1450
|
+
*/
|
|
1451
|
+
getValueCache() {
|
|
1452
|
+
return this.infoCache ? this.getValue(this.infoCache) : this.item.value;
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Getting full information for global verification.
|
|
1456
|
+
*
|
|
1457
|
+
* Получение полной информации для глобальной проверки.
|
|
1458
|
+
*/
|
|
1459
|
+
getForCheck() {
|
|
1460
|
+
const t = this.item.value;
|
|
1461
|
+
return {
|
|
1462
|
+
group: v.getGroupDefault(),
|
|
1463
|
+
value: t,
|
|
1464
|
+
maxLength: t.length,
|
|
1465
|
+
full: this.isFull.value,
|
|
1466
|
+
end: this.isEnd.value,
|
|
1467
|
+
chars: t.split("")
|
|
1468
|
+
};
|
|
1469
|
+
}
|
|
1470
|
+
/**
|
|
1471
|
+
* Getting information for a specific group.
|
|
1472
|
+
*
|
|
1473
|
+
* Получение информации для конкретной группы.
|
|
1474
|
+
* @param groupName group name/ название группы
|
|
1475
|
+
*/
|
|
1476
|
+
getInfoItem(t) {
|
|
1477
|
+
var e;
|
|
1478
|
+
return (e = this.info.value) == null ? void 0 : e[t];
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* Checks if there is a value by the key number in the basic values.
|
|
1482
|
+
*
|
|
1483
|
+
* Проверяет, есть ли значение по номеру ключа в базовых значениях.
|
|
1484
|
+
* @param index key number/ номер ключа
|
|
1485
|
+
*/
|
|
1486
|
+
isStandard(t) {
|
|
1487
|
+
return !!this.valueBasic.getChar(t);
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* Returns values based on the specified data information structure.
|
|
1491
|
+
*
|
|
1492
|
+
* Возвращает значения по указанной структуре информации о данных.
|
|
1493
|
+
* @param info data information/ информация о данных
|
|
1494
|
+
*/
|
|
1495
|
+
getValue(t) {
|
|
1496
|
+
return this.type.isCurrencyOrNumber() ? this.format.getValueStandard(t) : this.type.isDate() ? this.isFull.value ? this.date.getValueStandard(t) : "" : this.props.fullOnly && !this.isFull.value ? "" : this.valueFinal.value;
|
|
1497
|
+
}
|
|
1498
|
+
/**
|
|
1499
|
+
* Adding a new character to the list divided by groups if it is not there and returning the property of the given group.
|
|
1500
|
+
*
|
|
1501
|
+
* Добавление нового символа в список, разделенный по группам, если его там нет, и возвращение свойства данной группы.
|
|
1502
|
+
* @param data data for verification/ данные для проверки
|
|
1503
|
+
* @param groupName group name/ название группы
|
|
1504
|
+
*/
|
|
1505
|
+
add(t, e) {
|
|
1506
|
+
return e in t || (t[e] = {
|
|
1507
|
+
group: e,
|
|
1508
|
+
value: "",
|
|
1509
|
+
maxLength: 0,
|
|
1510
|
+
full: !1,
|
|
1511
|
+
end: !1,
|
|
1512
|
+
chars: []
|
|
1513
|
+
}), t[e];
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
class vt {
|
|
1517
|
+
/**
|
|
1518
|
+
* Constructor
|
|
1519
|
+
* @param pattern object for working with input data validation/ объект для работы с проверкой введённых данных
|
|
1520
|
+
* @param value object for working with entered data/ объект для работы с введёнными данными
|
|
1521
|
+
*/
|
|
1522
|
+
constructor(t, e) {
|
|
1523
|
+
/** Validation error info or undefined/ Информация об ошибке или undefined */
|
|
1524
|
+
a(this, "item", u(() => {
|
|
1525
|
+
for (const t of Object.values(this.pattern.item.value)) {
|
|
1526
|
+
const e = this.value.getInfoItem(t.group);
|
|
1527
|
+
if (e && e.full) {
|
|
1528
|
+
const i = t.check(e.value);
|
|
1529
|
+
if (i && !i.status)
|
|
1530
|
+
return {
|
|
1531
|
+
...i,
|
|
1532
|
+
value: this.value.item.value
|
|
1533
|
+
};
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
return this.getValidationCheck();
|
|
1537
|
+
}));
|
|
1538
|
+
this.pattern = t, this.value = e;
|
|
1539
|
+
}
|
|
1540
|
+
/**
|
|
1541
|
+
* Checks if the current group has an error.
|
|
1542
|
+
*
|
|
1543
|
+
* Проверяет, есть ли ошибка у текущей группы.
|
|
1544
|
+
* @param groupName group name/ название группы
|
|
1545
|
+
*/
|
|
1546
|
+
isError(t) {
|
|
1547
|
+
var i;
|
|
1548
|
+
const e = (i = this.item.value) == null ? void 0 : i.group;
|
|
1549
|
+
return !!(e && (e === t || e === v.getGroupDefault()));
|
|
1550
|
+
}
|
|
1551
|
+
/**
|
|
1552
|
+
* Checks the correctness of filling in the values.
|
|
1553
|
+
*
|
|
1554
|
+
* Проверяет корректность заполнения значений.
|
|
1555
|
+
*/
|
|
1556
|
+
checkValidity() {
|
|
1557
|
+
return this.item.value === void 0;
|
|
1558
|
+
}
|
|
1559
|
+
/**
|
|
1560
|
+
* Getting global check data.
|
|
1561
|
+
*
|
|
1562
|
+
* Получение данных глобальной проверки.
|
|
1563
|
+
*/
|
|
1564
|
+
getValidationCheck() {
|
|
1565
|
+
var t;
|
|
1566
|
+
if (this.value.isFull.value) {
|
|
1567
|
+
const e = this.value.getForCheck();
|
|
1568
|
+
if (this.pattern.isCheck()) {
|
|
1569
|
+
const i = (t = this.pattern.getInput(e.group)) == null ? void 0 : t.check(e.value);
|
|
1570
|
+
if (i && !i.status)
|
|
1571
|
+
return i;
|
|
1572
|
+
}
|
|
1573
|
+
return {
|
|
1574
|
+
status: !0,
|
|
1575
|
+
value: e.value,
|
|
1576
|
+
isFull: !0
|
|
1577
|
+
};
|
|
1578
|
+
}
|
|
1579
|
+
return {
|
|
1580
|
+
status: !0,
|
|
1581
|
+
value: this.value.item.value,
|
|
1582
|
+
isFull: !1
|
|
1583
|
+
};
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
class bt {
|
|
1587
|
+
/**
|
|
1588
|
+
* Constructor
|
|
1589
|
+
* @param props input data/ входные данные
|
|
1590
|
+
* @param type object for working with the mask type/ объект для работы с типом маски
|
|
1591
|
+
* @param date object for working with date types/ объект для работы с типом даты
|
|
1592
|
+
* @param format object for managing numeric mask types/ объект для управления числовыми типами масок
|
|
1593
|
+
* @param special object for working with special characters/ объект для работы со специальными символами
|
|
1594
|
+
* @param rubber object for working with rubber types/ объект для работы с резиновыми типами
|
|
1595
|
+
* @param mask object for managing masks/ объект управления маской
|
|
1596
|
+
* @param valueBasic object for working with base values/ объект для работы с базовыми значениями
|
|
1597
|
+
* @param validation object for working with validation/ объект для работы с валидацией
|
|
1598
|
+
* @param className define class names for each symbol/ определить название класса для каждого символа
|
|
1599
|
+
*/
|
|
1600
|
+
constructor(t, e, i, s, r, n, l, c, m, o) {
|
|
1601
|
+
/** Class name prefix for item/ Класс для элемента */
|
|
1602
|
+
a(this, "classNameItem");
|
|
1603
|
+
/** View items list/ Список данных для отображения */
|
|
1604
|
+
a(this, "item", u(() => {
|
|
1605
|
+
const t = [], e = this.valueBasic.item.value;
|
|
1606
|
+
return this.mask.item.value.forEach((i, s) => {
|
|
1607
|
+
const r = e == null ? void 0 : e[s];
|
|
1608
|
+
t.push({
|
|
1609
|
+
className: `${this.classNameItem} ${this.classNameItem}--${this.getStatus(i, r)}`,
|
|
1610
|
+
value: this.getValue(i, r)
|
|
1611
|
+
});
|
|
1612
|
+
}), t;
|
|
1613
|
+
}));
|
|
1614
|
+
/** Input value with special view characters/ Значение ввода со спецсимволами отображения */
|
|
1615
|
+
a(this, "input", u(() => {
|
|
1616
|
+
const t = [], e = this.mask.item.value;
|
|
1617
|
+
return this.valueBasic.item.value.split("").forEach((i, s) => {
|
|
1618
|
+
var r, n;
|
|
1619
|
+
i === b ? t.push(
|
|
1620
|
+
(n = this.getSpecialToView((r = e == null ? void 0 : e[s]) != null ? r : "")) != null ? n : i
|
|
1621
|
+
) : t.push(i);
|
|
1622
|
+
}), t.join("");
|
|
1623
|
+
}));
|
|
1624
|
+
this.props = t, this.type = e, this.date = i, this.format = s, this.special = r, this.rubber = n, this.mask = l, this.valueBasic = c, this.validation = m, this.classNameItem = `${o}__character__item`;
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* Checks if the value is filled in.
|
|
1628
|
+
*
|
|
1629
|
+
* Проверяет, заполнено ли значение.
|
|
1630
|
+
* @param value checked value/ проверяемое значение
|
|
1631
|
+
*/
|
|
1632
|
+
isValue(t) {
|
|
1633
|
+
return !!(t && t !== b);
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* Returns the status by mask symbol and its position.
|
|
1637
|
+
*
|
|
1638
|
+
* Возвращает статус по символу маски и месту его расположения.
|
|
1639
|
+
* @param char mask symbol/ символ маски
|
|
1640
|
+
* @param value entered value for this position/ введённое значение для позиции
|
|
1641
|
+
*/
|
|
1642
|
+
getStatus(t, e) {
|
|
1643
|
+
return this.isValue(e) ? this.special.isSpecial(t) ? this.validation.isError(t) ? "error" : "special" : "standard" : this.rubber.isTransition(t) ? "transition" : "placeholder";
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1646
|
+
* Returns symbol for rendering: real value or placeholder.
|
|
1647
|
+
*
|
|
1648
|
+
* Возвращает символ для отображения: реальное значение или плейсхолдер.
|
|
1649
|
+
* @param char mask symbol/ символ маски
|
|
1650
|
+
* @param value entered value for position/ введённое значение позиции
|
|
1651
|
+
*/
|
|
1652
|
+
getValue(t, e) {
|
|
1653
|
+
return this.isValue(e) ? e : this.getSpecialToView(t);
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
* Returns display version of special mask symbol (placeholder).
|
|
1657
|
+
*
|
|
1658
|
+
* Возвращает отображаемую версию специального символа маски (плейсхолдер).
|
|
1659
|
+
* @param char mask symbol/ символ маски
|
|
1660
|
+
*/
|
|
1661
|
+
getSpecialToView(t) {
|
|
1662
|
+
var e, i, s;
|
|
1663
|
+
return this.special.isSpecial(t) ? (s = (i = (e = this.getViewChar(t)) != null ? e : this.special.getView(t)) != null ? i : this.props.view) != null ? s : mt : t;
|
|
1664
|
+
}
|
|
1665
|
+
/**
|
|
1666
|
+
* Returns special character for view by its group name.
|
|
1667
|
+
*
|
|
1668
|
+
* Возвращает специальный символ для отображения по имени группы.
|
|
1669
|
+
* @param groupName group name/ имя группы
|
|
1670
|
+
*/
|
|
1671
|
+
getViewChar(t) {
|
|
1672
|
+
if (this.type.isDate())
|
|
1673
|
+
return this.date.getView(t);
|
|
1674
|
+
if (this.type.isCurrencyOrNumber())
|
|
1675
|
+
return this.format.view.value;
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
class yt {
|
|
1679
|
+
/**
|
|
1680
|
+
* Constructor
|
|
1681
|
+
* @param validation object for working with validation/ объект для работы с валидацией
|
|
1682
|
+
* @param emits emit function (Design system bridge)/ функция вызова события
|
|
1683
|
+
*/
|
|
1684
|
+
constructor(t, e) {
|
|
1685
|
+
/** Current event type key/ Текущий ключ типа события */
|
|
1686
|
+
a(this, "type");
|
|
1687
|
+
/** Native event object/ Объект нативного события */
|
|
1688
|
+
a(this, "event");
|
|
1689
|
+
this.validation = t, this.emits = e;
|
|
1690
|
+
}
|
|
1691
|
+
/**
|
|
1692
|
+
* Checks whether extra data (validation) should be generated for current event
|
|
1693
|
+
*
|
|
1694
|
+
* Проверяет, нужно ли генерировать дополнительные данные (валидацию) для текущего события
|
|
1695
|
+
*/
|
|
1696
|
+
isValue() {
|
|
1697
|
+
return !!(this.type && ["input", "change"].indexOf(this.type) >= 0);
|
|
1698
|
+
}
|
|
1699
|
+
/**
|
|
1700
|
+
* Initializes event handling and emits event with optional validation payload
|
|
1701
|
+
*
|
|
1702
|
+
* Инициализирует обработку и вызывает событие с опциональной валидацией
|
|
1703
|
+
*/
|
|
1704
|
+
go() {
|
|
1705
|
+
var t, e;
|
|
1706
|
+
if (this.type && this.event) {
|
|
1707
|
+
const i = this.isValue() ? this.validation.item.value : void 0;
|
|
1708
|
+
(t = this.emits) == null || t.call(
|
|
1709
|
+
this,
|
|
1710
|
+
this.type,
|
|
1711
|
+
this.event,
|
|
1712
|
+
i
|
|
1713
|
+
), (this.type === "inputLite" || this.type === "changeLite") && ((e = this.emits) == null || e.call(
|
|
1714
|
+
this,
|
|
1715
|
+
this.type,
|
|
1716
|
+
i
|
|
1717
|
+
));
|
|
1718
|
+
}
|
|
1719
|
+
return this;
|
|
1720
|
+
}
|
|
1721
|
+
/**
|
|
1722
|
+
* Sets both event type and native event object
|
|
1723
|
+
*
|
|
1724
|
+
* Устанавливает одновременно тип события и объект события
|
|
1725
|
+
* @param type event name/ название события
|
|
1726
|
+
* @param event event object/ объект события
|
|
1727
|
+
*/
|
|
1728
|
+
set(t, e) {
|
|
1729
|
+
return this.setType(t), this.setEvent(e), this;
|
|
1730
|
+
}
|
|
1731
|
+
/**
|
|
1732
|
+
* Sets event type
|
|
1733
|
+
*
|
|
1734
|
+
* Устанавливает тип события
|
|
1735
|
+
* @param type event name/ название события
|
|
1736
|
+
*/
|
|
1737
|
+
setType(t) {
|
|
1738
|
+
return this.type = t, this;
|
|
1739
|
+
}
|
|
1740
|
+
/**
|
|
1741
|
+
* Sets native event object
|
|
1742
|
+
*
|
|
1743
|
+
* Устанавливает объект события
|
|
1744
|
+
* @param event event object/ объект события
|
|
1745
|
+
*/
|
|
1746
|
+
setEvent(t) {
|
|
1747
|
+
return this.event = t, this;
|
|
1748
|
+
}
|
|
1749
|
+
/**
|
|
1750
|
+
* Resets all internal state (type + event)
|
|
1751
|
+
*
|
|
1752
|
+
* Сбрасывает всё внутреннее состояние (тип и событие)
|
|
1753
|
+
*/
|
|
1754
|
+
reset() {
|
|
1755
|
+
return this.resetType(), this.resetEvent(), this;
|
|
1756
|
+
}
|
|
1757
|
+
/**
|
|
1758
|
+
* Resets stored event type
|
|
1759
|
+
*
|
|
1760
|
+
* Сбрасывает сохранённый тип события
|
|
1761
|
+
*/
|
|
1762
|
+
resetType() {
|
|
1763
|
+
return this.type = void 0, this;
|
|
1764
|
+
}
|
|
1765
|
+
/**
|
|
1766
|
+
* Resets stored native event
|
|
1767
|
+
*
|
|
1768
|
+
* Сбрасывает сохранённый объект события
|
|
1769
|
+
*/
|
|
1770
|
+
resetEvent() {
|
|
1771
|
+
return this.event = void 0, this;
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
class kt {
|
|
1775
|
+
/**
|
|
1776
|
+
* Constructor
|
|
1777
|
+
* @param type object for working with the mask type/ объект для работы с типом маски
|
|
1778
|
+
* @param buffer object for managing cached input data/ объект управления кешированными вводимыми данными
|
|
1779
|
+
* @param focus object for handling input field focus/ объект для работы с фокусом поля ввода
|
|
1780
|
+
* @param rubberTransition object for managing the transition character/ объект для управления символом перехода
|
|
1781
|
+
* @param date object for working with date types/ объект для работы с типом даты
|
|
1782
|
+
* @param special object for working with special characters/ объект для работы со специальными символами
|
|
1783
|
+
* @param match object for managing the input character match logic/ объект для управления совпадением символов ввода
|
|
1784
|
+
* @param rubber object for working with rubber types/ объект для работы с резиновыми типами
|
|
1785
|
+
* @param mask object for managing masks/ объект управления маской
|
|
1786
|
+
* @param selection object for managing caret position/ объект для управления положением курсора
|
|
1787
|
+
* @param character object for managing entered characters/ объект для управления введёнными символами
|
|
1788
|
+
* @param valueBasic object for working with base values/ объект для работы с базовыми значениями
|
|
1789
|
+
* @param value object for working with transformed value/ объект для работы с преобразованным значением
|
|
1790
|
+
* @param emit object for handling callback events/ объект для работы с событиями
|
|
1791
|
+
* @param element input element ref/ ссылка на элемент ввода
|
|
1792
|
+
*/
|
|
1793
|
+
constructor(t, e, i, s, r, n, l, c, m, o, p, f, g, T, F) {
|
|
1794
|
+
this.type = t, this.buffer = e, this.focus = i, this.rubberTransition = s, this.date = r, this.special = n, this.match = l, this.rubber = c, this.mask = m, this.selection = o, this.character = p, this.valueBasic = f, this.value = g, this.emit = T, this.element = F;
|
|
1795
|
+
}
|
|
1796
|
+
/**
|
|
1797
|
+
* Adds new characters entered by user
|
|
1798
|
+
*
|
|
1799
|
+
* Добавляет новые символы, вводимые пользователем
|
|
1800
|
+
* @param selection selected key index/ индекс выделенного ключа
|
|
1801
|
+
* @param chars list of characters (string or array)/ список вводимых символов
|
|
1802
|
+
* @param focus is element focused/ элемент в фокусе ли
|
|
1803
|
+
* @returns was value updated/ было ли обновлено значение
|
|
1804
|
+
*/
|
|
1805
|
+
add(t, e, i = !0) {
|
|
1806
|
+
let s = !1;
|
|
1807
|
+
return this.selection.setByMask(t, i), this.rubberTransition.reset(), j(e).forEach((r) => {
|
|
1808
|
+
const n = this.character.getFocus(), l = this.character.getImmediate();
|
|
1809
|
+
this.selection.setShift(
|
|
1810
|
+
this.rubber.update(this.value.info.value, l, r)
|
|
1811
|
+
), this.rubberTransition.is() && this.selection.setByMask(
|
|
1812
|
+
this.mask.getByChar(
|
|
1813
|
+
this.rubberTransition.item.value,
|
|
1814
|
+
this.selection.getImmediate()
|
|
1815
|
+
) + 1,
|
|
1816
|
+
i
|
|
1817
|
+
), this.match.is(r, n) && (this.character.shift(), this.character.getFocus() && (this.mask.maxLength.value > this.valueBasic.getLength() || this.character.isCharDelete()) && (this.character.add(r), s = !0));
|
|
1818
|
+
}), this.goSelection(), s;
|
|
1819
|
+
}
|
|
1820
|
+
/**
|
|
1821
|
+
* Removes (deletes) selected input characters
|
|
1822
|
+
*
|
|
1823
|
+
* Удаляет выделенные символы ввода
|
|
1824
|
+
* @param start start selection index/ индекс начала выделения
|
|
1825
|
+
* @param end end selection index/ индекс конца выделения
|
|
1826
|
+
* @param focus is element focused/ элемент в фокусе ли
|
|
1827
|
+
*/
|
|
1828
|
+
pop(t, e = t, i = !0) {
|
|
1829
|
+
if (t >= 0 && e <= this.mask.maxLength.value) {
|
|
1830
|
+
let s = this.mask.getQuantity(t, e);
|
|
1831
|
+
for (i && this.selection.setByMask(e); s--; )
|
|
1832
|
+
this.rubberTransition.reset(), this.character.pop(), this.character.shift(0), this.selection.setShift(
|
|
1833
|
+
this.rubber.pop(this.character.getFocus())
|
|
1834
|
+
);
|
|
1835
|
+
this.goSelection();
|
|
1836
|
+
}
|
|
1837
|
+
return this;
|
|
1838
|
+
}
|
|
1839
|
+
/**
|
|
1840
|
+
* Resets all values or applies provided value
|
|
1841
|
+
*
|
|
1842
|
+
* Сбрасывает все значения или применяет переданное
|
|
1843
|
+
* @param value new raw value to apply/ новое значение для применения
|
|
1844
|
+
*/
|
|
1845
|
+
reset(t = "") {
|
|
1846
|
+
if (this.character.reset(), this.rubber.reset(), P(t)) {
|
|
1847
|
+
const e = this.type.isDate() ? this.date.getValue(t) : t;
|
|
1848
|
+
this.add(0, this.extra(e.split("")));
|
|
1849
|
+
}
|
|
1850
|
+
return this;
|
|
1851
|
+
}
|
|
1852
|
+
/**
|
|
1853
|
+
* Removes redundant characters for paste operation
|
|
1854
|
+
*
|
|
1855
|
+
* Удаляет лишние символы при вставке
|
|
1856
|
+
* @param chars characters to insert/ вставляемые символы
|
|
1857
|
+
*/
|
|
1858
|
+
extra(t) {
|
|
1859
|
+
var n, l, c;
|
|
1860
|
+
if (this.character.is())
|
|
1861
|
+
return t;
|
|
1862
|
+
const e = this.mask.item.value, i = [...t];
|
|
1863
|
+
let s = this.match.get((l = (n = this.mask.info.value) == null ? void 0 : n[0]) == null ? void 0 : l.char), r = 0;
|
|
1864
|
+
if (s)
|
|
1865
|
+
for (const m in e) {
|
|
1866
|
+
const o = e[m];
|
|
1867
|
+
if (o) {
|
|
1868
|
+
if (this.special.isSpecial(o)) {
|
|
1869
|
+
for (let p = r; p < i.length && (r++, !((c = i == null ? void 0 : i[p]) != null && c.match(s))); p++)
|
|
1870
|
+
;
|
|
1871
|
+
s = this.match.get(o);
|
|
1872
|
+
} else if (o.match(s)) {
|
|
1873
|
+
let p = !1;
|
|
1874
|
+
for (let f = r; f < i.length; f++) {
|
|
1875
|
+
const g = i[f];
|
|
1876
|
+
if (r++, g != null && g.match(s)) {
|
|
1877
|
+
o === g ? (i.splice(f, 1), r--) : p = !0;
|
|
1878
|
+
break;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
if (p)
|
|
1882
|
+
break;
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
return i;
|
|
1887
|
+
}
|
|
1888
|
+
/**
|
|
1889
|
+
* Restores caret (selection) position
|
|
1890
|
+
*
|
|
1891
|
+
* Восстанавливает позицию курсора (выделения)
|
|
1892
|
+
* @param updateBuffer update from buffer first/ сначала обновить из буфера
|
|
1893
|
+
*/
|
|
1894
|
+
goSelection(t = !0) {
|
|
1895
|
+
return this.focus.is() && requestAnimationFrame(() => {
|
|
1896
|
+
if (this.element.value && (!t || !this.goBuffer())) {
|
|
1897
|
+
const e = this.valueBasic.getLength(), i = this.selection.getShift(), s = e < i ? e : i;
|
|
1898
|
+
this.element.value.selectionEnd = s, this.element.value.selectionStart = s;
|
|
1899
|
+
}
|
|
1900
|
+
}), this;
|
|
1901
|
+
}
|
|
1902
|
+
/**
|
|
1903
|
+
* Processes buffered data if present and emits events
|
|
1904
|
+
*
|
|
1905
|
+
* Обрабатывает данные из буфера (если есть) и вызывает события
|
|
1906
|
+
* @returns was buffer consumed/ был ли использован буфер
|
|
1907
|
+
*/
|
|
1908
|
+
goBuffer() {
|
|
1909
|
+
return this.buffer.is() ? (this.add(this.selection.getShift(), this.buffer.get()), this.buffer.resetChars(), !0) : (this.buffer.reset(), this.emit.go(), !1);
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
class St {
|
|
1913
|
+
/**
|
|
1914
|
+
* Constructor
|
|
1915
|
+
* @param buffer object for managing cached input data/ объект управления кешированными вводимыми данными
|
|
1916
|
+
* @param focus object for handling input field focus/ объект для работы с фокусировкой поля ввода
|
|
1917
|
+
* @param characterLength object for managing input length/ объект управления длиной ввода
|
|
1918
|
+
* @param right object for right alignment/ объект для выравнивания направо
|
|
1919
|
+
* @param selection object for managing cursor position/ объект для управления положением курсора
|
|
1920
|
+
* @param valueBasic object for working with base values/ объект для работы с базовыми значениями
|
|
1921
|
+
* @param emit object for handling callback events/ объект для работы с обратными событиями
|
|
1922
|
+
* @param data object for managing input/ объект для управления вводом
|
|
1923
|
+
*/
|
|
1924
|
+
constructor(t, e, i, s, r, n, l, c) {
|
|
1925
|
+
/** Change flag/ Флаг изменения */
|
|
1926
|
+
a(this, "change", !1);
|
|
1927
|
+
/** Unidentified selection data/ Данные неопознанного выделения */
|
|
1928
|
+
a(this, "unidentified");
|
|
1929
|
+
/**
|
|
1930
|
+
* Capture of the event in focus.
|
|
1931
|
+
*
|
|
1932
|
+
* Перехват события при получении фокуса.
|
|
1933
|
+
* @param event event object/ объект события
|
|
1934
|
+
*/
|
|
1935
|
+
a(this, "onFocus", (t) => {
|
|
1936
|
+
this.change = !1, this.focus.in(), this.emit.set("focus", t).go();
|
|
1937
|
+
});
|
|
1938
|
+
/**
|
|
1939
|
+
* Capture of the event when focus is lost.
|
|
1940
|
+
*
|
|
1941
|
+
* Перехват события при потере фокуса.
|
|
1942
|
+
* @param event event object/ объект события
|
|
1943
|
+
*/
|
|
1944
|
+
a(this, "onBlur", (t) => {
|
|
1945
|
+
this.change && this.emit.setType("change").go(), this.focus.out(), this.emit.set("blur", t).go();
|
|
1946
|
+
});
|
|
1947
|
+
/**
|
|
1948
|
+
* Intercepting key press to get a character.
|
|
1949
|
+
*
|
|
1950
|
+
* Перехват нажатия клавиши для получения символа.
|
|
1951
|
+
* @param event invoked event/ вызываемое событие
|
|
1952
|
+
*/
|
|
1953
|
+
a(this, "onKeydown", (t) => {
|
|
1954
|
+
const e = this.getSelectionInfo(t), { start: i, end: s } = e;
|
|
1955
|
+
this.emit.set("keydown", t).go(), this.isCut(t) && this.isSelection(e) && (this.data.pop(i, s), Y(
|
|
1956
|
+
t.target.value.slice(i, s)
|
|
1957
|
+
).then()), !this.isMetaKey(t) && (this.isKey(t) ? t.key === "Backspace" ? (i > 0 || i !== s) && this.data.pop(i, s) : t.key.length <= 1 && (i === s ? this.buffer.go(t.key) && this.data.add(i, t.key) : (this.buffer.goStart(), this.data.pop(i, s).add(this.selection.getShift(), t.key))) : this.unidentified = e);
|
|
1958
|
+
});
|
|
1959
|
+
/**
|
|
1960
|
+
* Intercept key release to check arrow presses.
|
|
1961
|
+
*
|
|
1962
|
+
* Перехват отпускания клавиши для проверки нажатия стрелок.
|
|
1963
|
+
* @param event invoked event/ вызываемое событие
|
|
1964
|
+
*/
|
|
1965
|
+
a(this, "onKeyup", (t) => {
|
|
1966
|
+
this.emit.set("keyup", t).go(), !this.isMetaKey(t) && this.isKey(t) && [
|
|
1967
|
+
"ArrowUp",
|
|
1968
|
+
"ArrowRight",
|
|
1969
|
+
"ArrowDown",
|
|
1970
|
+
"ArrowLeft"
|
|
1971
|
+
].indexOf(t.key) >= 0 && (this.makeToEnd(t), this.makeToStart(t));
|
|
1972
|
+
});
|
|
1973
|
+
/**
|
|
1974
|
+
* Intercepting the event before data modification.
|
|
1975
|
+
*
|
|
1976
|
+
* Перехват события перед изменением данных.
|
|
1977
|
+
* @param event invoked event/ вызываемое событие
|
|
1978
|
+
*/
|
|
1979
|
+
a(this, "onBeforeinput", (t) => {
|
|
1980
|
+
this.emit.set("beforeinput", t).go(), this.unidentified || (this.makeChange(t), H(t));
|
|
1981
|
+
});
|
|
1982
|
+
/**
|
|
1983
|
+
* Intercepting the event during data modification.
|
|
1984
|
+
*
|
|
1985
|
+
* Перехват события при изменении данных.
|
|
1986
|
+
* @param event invoked event/ вызываемое событие
|
|
1987
|
+
*/
|
|
1988
|
+
a(this, "onInput", (t) => {
|
|
1989
|
+
if (this.unidentified) {
|
|
1990
|
+
const e = t.target;
|
|
1991
|
+
(this.unidentified.length > e.value.length || this.unidentified.start !== this.unidentified.end) && this.data.pop(this.unidentified.start, this.unidentified.end), "data" in t ? t.data && this.buffer.go(t.data) && this.data.add(this.unidentified.start, t.data) : this.data.reset(e.value), this.makeChange(t), this.unidentified = void 0;
|
|
1992
|
+
}
|
|
1993
|
+
});
|
|
1994
|
+
/**
|
|
1995
|
+
* Intercept paste event for inserting data from clipboard.
|
|
1996
|
+
*
|
|
1997
|
+
* Перехват события вставки данных из буфера обмена.
|
|
1998
|
+
* @param event invoked event/ вызываемое событие
|
|
1999
|
+
*/
|
|
2000
|
+
a(this, "onPaste", (t) => {
|
|
2001
|
+
const { start: e, end: i } = this.getSelectionInfo(t);
|
|
2002
|
+
G(t).then((s) => {
|
|
2003
|
+
const r = s.split("");
|
|
2004
|
+
e === i ? this.data.add(e, this.data.extra(r)) : this.data.pop(e, i).add(this.selection.getShift(), this.data.extra(r)), this.change = !0, this.emit.set("paste", t).go();
|
|
2005
|
+
}).catch((s) => console.error("getClipboardData", s));
|
|
2006
|
+
});
|
|
2007
|
+
/**
|
|
2008
|
+
* Intercept change event (autocomplete support).
|
|
2009
|
+
*
|
|
2010
|
+
* Перехват события изменения (поддержка автозаполнения).
|
|
2011
|
+
* @param event invoked event/ вызываемое событие
|
|
2012
|
+
*/
|
|
2013
|
+
a(this, "onChange", (t) => {
|
|
2014
|
+
const e = t.target;
|
|
2015
|
+
this.data.reset(e.value), this.emit.set("change", t).go();
|
|
2016
|
+
});
|
|
2017
|
+
/**
|
|
2018
|
+
* Intercept click to adjust selection if needed.
|
|
2019
|
+
*
|
|
2020
|
+
* Перехват клика для корректировки выделения при необходимости.
|
|
2021
|
+
* @param event invoked event/ вызываемое событие
|
|
2022
|
+
*/
|
|
2023
|
+
a(this, "onClick", (t) => {
|
|
2024
|
+
this.makeToEnd(t), this.makeToStart(t);
|
|
2025
|
+
});
|
|
2026
|
+
this.buffer = t, this.focus = e, this.characterLength = i, this.right = s, this.selection = r, this.valueBasic = n, this.emit = l, this.data = c;
|
|
2027
|
+
}
|
|
2028
|
+
/**
|
|
2029
|
+
* Was a meta button pressed.
|
|
2030
|
+
*
|
|
2031
|
+
* Была ли нажата мета-кнопка.
|
|
2032
|
+
* @param event invoked event/ вызываемое событие
|
|
2033
|
+
*/
|
|
2034
|
+
isMetaKey(t) {
|
|
2035
|
+
return t.metaKey || t.altKey || t.ctrlKey;
|
|
2036
|
+
}
|
|
2037
|
+
/**
|
|
2038
|
+
* Was a cut operation performed.
|
|
2039
|
+
*
|
|
2040
|
+
* Была ли выполнена операция вырезания.
|
|
2041
|
+
* @param event invoked event/ вызываемое событие
|
|
2042
|
+
*/
|
|
2043
|
+
isCut(t) {
|
|
2044
|
+
return t.type === "cut" || !!(t.key.toLowerCase() === "x" && (t.metaKey || t.ctrlKey));
|
|
2045
|
+
}
|
|
2046
|
+
/**
|
|
2047
|
+
* Checks key value in the event.
|
|
2048
|
+
*
|
|
2049
|
+
* Проверяет значение key в событии.
|
|
2050
|
+
* @param event invoked event/ вызываемое событие
|
|
2051
|
+
*/
|
|
2052
|
+
isKey(t) {
|
|
2053
|
+
return "key" in t && t.key !== "Unidentified";
|
|
2054
|
+
}
|
|
2055
|
+
/**
|
|
2056
|
+
* Was there a selection.
|
|
2057
|
+
*
|
|
2058
|
+
* Было ли выделение.
|
|
2059
|
+
* @param info selection data/ данные выделения
|
|
2060
|
+
*/
|
|
2061
|
+
isSelection(t) {
|
|
2062
|
+
const { start: e, end: i } = t;
|
|
2063
|
+
return e > 0 || e !== i;
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
* Getting data about selection on the event element.
|
|
2067
|
+
*
|
|
2068
|
+
* Получение данных о выделении у элемента события.
|
|
2069
|
+
* @param event invoked event/ вызываемое событие
|
|
2070
|
+
*/
|
|
2071
|
+
getSelectionInfo(t) {
|
|
2072
|
+
var i, s;
|
|
2073
|
+
const e = t.target;
|
|
2074
|
+
return {
|
|
2075
|
+
target: e,
|
|
2076
|
+
start: (i = e.selectionStart) != null ? i : 0,
|
|
2077
|
+
end: (s = e.selectionEnd) != null ? s : 0,
|
|
2078
|
+
length: e.value.length
|
|
2079
|
+
};
|
|
2080
|
+
}
|
|
2081
|
+
/**
|
|
2082
|
+
* Preparing to send an event.
|
|
2083
|
+
*
|
|
2084
|
+
* Подготовка для отправки события.
|
|
2085
|
+
* @param event invoked event/ вызываемое событие
|
|
2086
|
+
*/
|
|
2087
|
+
makeChange(t) {
|
|
2088
|
+
this.change = !0, this.emit.set("input", t), !this.buffer.is() && (this.emit.go(), this.emit.resetType());
|
|
2089
|
+
}
|
|
2090
|
+
/**
|
|
2091
|
+
* Changes cursor position if alignment is right.
|
|
2092
|
+
*
|
|
2093
|
+
* Изменяет позицию курсора, если выравнивание справа.
|
|
2094
|
+
* @param event invoked event/ вызываемое событие
|
|
2095
|
+
*/
|
|
2096
|
+
makeToEnd(t) {
|
|
2097
|
+
if (this.right.isRight()) {
|
|
2098
|
+
const e = this.valueBasic.getLength(), { target: i, start: s, end: r } = this.getSelectionInfo(t);
|
|
2099
|
+
s > e && (i.selectionStart = e), r > e && (i.selectionEnd = e);
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
/**
|
|
2103
|
+
* Check selection from the start (before special chars).
|
|
2104
|
+
*
|
|
2105
|
+
* Проверка выделения спереди (перед спецсимволами).
|
|
2106
|
+
* @param event invoked event/ вызываемое событие
|
|
2107
|
+
*/
|
|
2108
|
+
makeToStart(t) {
|
|
2109
|
+
const e = this.selection.getFirst(), { target: i, start: s } = this.getSelectionInfo(t);
|
|
2110
|
+
s < e && (i.selectionStart = e, i.selectionEnd = e);
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
class Ct {
|
|
2114
|
+
/**
|
|
2115
|
+
* Constructor
|
|
2116
|
+
* @param props input data/ входные данные
|
|
2117
|
+
* @param refs input data in the form of reactive elements/ входные данные в виде реактивных элементов
|
|
2118
|
+
* @param element input element/ элемент ввода
|
|
2119
|
+
* @param classDesign design name/ название дизайна
|
|
2120
|
+
* @param className class name/ название класса
|
|
2121
|
+
* @param components object for working with components/ объект для работы с компонентами
|
|
2122
|
+
* @param slots object for working with slots/ объект для работы со слотами
|
|
2123
|
+
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
2124
|
+
*/
|
|
2125
|
+
constructor(t, e, i, s, r, n, l, c) {
|
|
2126
|
+
/** Type helper/ Объект для работы с типом */
|
|
2127
|
+
a(this, "type");
|
|
2128
|
+
/** Buffer helper/ Объект для буферизации ввода */
|
|
2129
|
+
a(this, "buffer");
|
|
2130
|
+
/** Focus helper/ Объект для работы с фокусом */
|
|
2131
|
+
a(this, "focus");
|
|
2132
|
+
/** Entered characters length helper/ Объект длины введённых символов */
|
|
2133
|
+
a(this, "characterLength");
|
|
2134
|
+
/** Rubber groups length helper/ Объект длины резиновых групп */
|
|
2135
|
+
a(this, "rubberItem");
|
|
2136
|
+
/** Rubber transition symbol helper/ Объект символа перехода резины */
|
|
2137
|
+
a(this, "rubberTransition");
|
|
2138
|
+
/** Date/time mask helper/ Объект для работы с датой/временем */
|
|
2139
|
+
a(this, "date");
|
|
2140
|
+
/** Number/currency format mask helper/ Объект форматирования числа/валюты */
|
|
2141
|
+
a(this, "format");
|
|
2142
|
+
/** Special symbols/groups helper/ Объект для спецсимволов и групп */
|
|
2143
|
+
a(this, "special");
|
|
2144
|
+
/** Match helper/ Объект проверки символов */
|
|
2145
|
+
a(this, "match");
|
|
2146
|
+
/** Pattern helper/ Объект паттернов валидации */
|
|
2147
|
+
a(this, "pattern");
|
|
2148
|
+
/** Alignment helper/ Объект выравнивания */
|
|
2149
|
+
a(this, "right");
|
|
2150
|
+
/** Rubber groups helper/ Объект для работы с резиновыми группами */
|
|
2151
|
+
a(this, "rubber");
|
|
2152
|
+
/** Mask item helper/ Объект для работы с маской */
|
|
2153
|
+
a(this, "item");
|
|
2154
|
+
/** Selection helper/ Объект для работы с выделением */
|
|
2155
|
+
a(this, "selection");
|
|
2156
|
+
/** Characters helper/ Объект для работы с введёнными символами */
|
|
2157
|
+
a(this, "character");
|
|
2158
|
+
/** Basic value helper/ Объект для работы с базовыми значениями */
|
|
2159
|
+
a(this, "valueBasic");
|
|
2160
|
+
/** Value helper/ Объект для работы с итоговым значением */
|
|
2161
|
+
a(this, "value");
|
|
2162
|
+
/** Validation helper/ Объект для работы с валидацией */
|
|
2163
|
+
a(this, "validation");
|
|
2164
|
+
/** View helper/ Объект для работы с отображением */
|
|
2165
|
+
a(this, "view");
|
|
2166
|
+
/** Emit helper/ Объект для работы с событиями */
|
|
2167
|
+
a(this, "emit");
|
|
2168
|
+
/** Data helper/ Объект для работы с вводом */
|
|
2169
|
+
a(this, "data");
|
|
2170
|
+
/** Event helper/ Объект для работы с DOM-событиями */
|
|
2171
|
+
a(this, "event");
|
|
2172
|
+
/** Receiving basic standard values/ Получение базовых стандартных значений */
|
|
2173
|
+
a(this, "basic", u(() => {
|
|
2174
|
+
if (this.right.isRight()) {
|
|
2175
|
+
let t = "";
|
|
2176
|
+
return this.view.item.value.forEach((e) => {
|
|
2177
|
+
t += e.value;
|
|
2178
|
+
}), t;
|
|
2179
|
+
}
|
|
2180
|
+
return this.view.input.value;
|
|
2181
|
+
}));
|
|
2182
|
+
/** Values for CSS class/ Значения для CSS-класса */
|
|
2183
|
+
a(this, "classes", u(() => ({
|
|
2184
|
+
[`${this.className}--value`]: this.characterLength.is(),
|
|
2185
|
+
[`${this.className}--end`]: this.right.isEnd()
|
|
2186
|
+
})));
|
|
2187
|
+
/**
|
|
2188
|
+
* Sets new value and reinitializes mask.
|
|
2189
|
+
*
|
|
2190
|
+
* Устанавливает новое значение и переинициализирует маску.
|
|
2191
|
+
* @param value new value/ новое значение
|
|
2192
|
+
*/
|
|
2193
|
+
a(this, "set", (t) => this.reset(t));
|
|
2194
|
+
/**
|
|
2195
|
+
* Clears value to default and focuses input.
|
|
2196
|
+
*
|
|
2197
|
+
* Очищает значение до значения по умолчанию и фокусирует поле ввода.
|
|
2198
|
+
*/
|
|
2199
|
+
a(this, "clear", () => {
|
|
2200
|
+
var t, e;
|
|
2201
|
+
this.data.reset(((t = this.props.valueDefault) != null ? t : "").toString()), this.emit.set("reset", {}).go(), (e = this.element.value) == null || e.focus();
|
|
2202
|
+
});
|
|
2203
|
+
this.props = t, this.refs = e, this.element = i, this.classDesign = s, this.className = r, this.components = n, this.slots = l, this.emits = c, this.type = new W(this.props), this.buffer = new X(), this.focus = new Z(this.buffer), this.characterLength = new tt(), this.rubberItem = new et(), this.rubberTransition = new it(), this.date = new rt(this.props, this.type), this.format = new at(this.props, this.type, this.rubberItem), this.special = new ht(
|
|
2204
|
+
this.props,
|
|
2205
|
+
this.type,
|
|
2206
|
+
this.date,
|
|
2207
|
+
this.format
|
|
2208
|
+
), this.match = new nt(this.props, this.special), this.pattern = new ut(
|
|
2209
|
+
this.props,
|
|
2210
|
+
this.type,
|
|
2211
|
+
this.date,
|
|
2212
|
+
this.special
|
|
2213
|
+
), this.right = new lt(this.props, this.type), this.rubber = new ct(
|
|
2214
|
+
this.props,
|
|
2215
|
+
this.type,
|
|
2216
|
+
this.rubberItem,
|
|
2217
|
+
this.rubberTransition,
|
|
2218
|
+
this.special,
|
|
2219
|
+
this.match,
|
|
2220
|
+
this.format
|
|
2221
|
+
), this.item = new ot(
|
|
2222
|
+
this.props,
|
|
2223
|
+
this.type,
|
|
2224
|
+
this.rubberItem,
|
|
2225
|
+
this.characterLength,
|
|
2226
|
+
this.date,
|
|
2227
|
+
this.format,
|
|
2228
|
+
this.special
|
|
2229
|
+
), this.selection = new pt(
|
|
2230
|
+
this.special,
|
|
2231
|
+
this.item
|
|
2232
|
+
), this.character = new ft(
|
|
2233
|
+
this.props,
|
|
2234
|
+
this.rubberItem,
|
|
2235
|
+
this.characterLength,
|
|
2236
|
+
this.special,
|
|
2237
|
+
this.item,
|
|
2238
|
+
this.selection
|
|
2239
|
+
), this.valueBasic = new gt(
|
|
2240
|
+
this.rubberTransition,
|
|
2241
|
+
this.item,
|
|
2242
|
+
this.special,
|
|
2243
|
+
this.character
|
|
2244
|
+
), this.value = new dt(
|
|
2245
|
+
this.props,
|
|
2246
|
+
this.type,
|
|
2247
|
+
this.date,
|
|
2248
|
+
this.format,
|
|
2249
|
+
this.item,
|
|
2250
|
+
this.special,
|
|
2251
|
+
this.valueBasic
|
|
2252
|
+
), this.validation = new vt(
|
|
2253
|
+
this.pattern,
|
|
2254
|
+
this.value
|
|
2255
|
+
), this.view = new bt(
|
|
2256
|
+
this.props,
|
|
2257
|
+
this.type,
|
|
2258
|
+
this.date,
|
|
2259
|
+
this.format,
|
|
2260
|
+
this.special,
|
|
2261
|
+
this.rubber,
|
|
2262
|
+
this.item,
|
|
2263
|
+
this.valueBasic,
|
|
2264
|
+
this.validation,
|
|
2265
|
+
this.className
|
|
2266
|
+
), this.emit = new yt(
|
|
2267
|
+
this.validation,
|
|
2268
|
+
this.emits
|
|
2269
|
+
), this.data = new kt(
|
|
2270
|
+
this.type,
|
|
2271
|
+
this.buffer,
|
|
2272
|
+
this.focus,
|
|
2273
|
+
this.rubberTransition,
|
|
2274
|
+
this.date,
|
|
2275
|
+
this.special,
|
|
2276
|
+
this.match,
|
|
2277
|
+
this.rubber,
|
|
2278
|
+
this.item,
|
|
2279
|
+
this.selection,
|
|
2280
|
+
this.character,
|
|
2281
|
+
this.valueBasic,
|
|
2282
|
+
this.value,
|
|
2283
|
+
this.emit,
|
|
2284
|
+
this.element
|
|
2285
|
+
), this.event = new St(
|
|
2286
|
+
this.buffer,
|
|
2287
|
+
this.focus,
|
|
2288
|
+
this.characterLength,
|
|
2289
|
+
this.right,
|
|
2290
|
+
this.selection,
|
|
2291
|
+
this.valueBasic,
|
|
2292
|
+
this.emit,
|
|
2293
|
+
this.data
|
|
2294
|
+
), y([e.value], () => this.reset(t.value)), y(this.basic, () => this.data.goSelection(!1)), y([U.getStandard(), e.language], () => this.reset(this.value.getValueCache())), t.value && this.data.reset(D(t.value));
|
|
2295
|
+
}
|
|
2296
|
+
/**
|
|
2297
|
+
* Resets all values or updates to the new one.
|
|
2298
|
+
*
|
|
2299
|
+
* Сбрасывает все значения или обновляется до нового.
|
|
2300
|
+
* @param value new values/ новые значения
|
|
2301
|
+
*/
|
|
2302
|
+
reset(t) {
|
|
2303
|
+
const e = D(t);
|
|
2304
|
+
return e !== this.props.valueDefault && (this.value.item.value !== e || this.valueBasic.item.value !== e && !q(e)) ? (this.data.reset(e), this.emit.set("reset", {}).go(), !0) : !1;
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
class Lt extends Q {
|
|
2308
|
+
/**
|
|
2309
|
+
* Constructor
|
|
2310
|
+
* @param name class name/ название класса
|
|
2311
|
+
* @param props properties/ свойства
|
|
2312
|
+
* @param options list of additional parameters/ список дополнительных параметров
|
|
2313
|
+
*/
|
|
2314
|
+
constructor(e, i, s) {
|
|
2315
|
+
super(
|
|
2316
|
+
e,
|
|
2317
|
+
i,
|
|
2318
|
+
s
|
|
2319
|
+
);
|
|
2320
|
+
a(this, "item");
|
|
2321
|
+
/**
|
|
2322
|
+
* Element for storing the final data.
|
|
2323
|
+
*
|
|
2324
|
+
* Элемент для хранения конечных данных.
|
|
2325
|
+
*/
|
|
2326
|
+
a(this, "renderData", () => this.props.name ? [
|
|
2327
|
+
d("input", {
|
|
2328
|
+
type: "hidden",
|
|
2329
|
+
name: this.props.name,
|
|
2330
|
+
value: this.item.value.item.value
|
|
2331
|
+
})
|
|
2332
|
+
] : []);
|
|
2333
|
+
/**
|
|
2334
|
+
* Rendering method for input.
|
|
2335
|
+
*
|
|
2336
|
+
* Метод рендеринга для ввода.
|
|
2337
|
+
*/
|
|
2338
|
+
a(this, "renderInput", () => {
|
|
2339
|
+
var e;
|
|
2340
|
+
return [
|
|
2341
|
+
d(
|
|
2342
|
+
"input",
|
|
2343
|
+
z(
|
|
2344
|
+
this.props.inputAttrs,
|
|
2345
|
+
{
|
|
2346
|
+
ref: this.element,
|
|
2347
|
+
class: (e = this.classes) == null ? void 0 : e.value.input,
|
|
2348
|
+
type: "text",
|
|
2349
|
+
value: this.item.basic.value,
|
|
2350
|
+
placeholder: "",
|
|
2351
|
+
onFocus: this.item.event.onFocus,
|
|
2352
|
+
onBlur: this.item.event.onBlur,
|
|
2353
|
+
onKeydown: this.item.event.onKeydown,
|
|
2354
|
+
onKeyup: this.item.event.onKeyup,
|
|
2355
|
+
onBeforeinput: this.item.event.onBeforeinput,
|
|
2356
|
+
onInput: this.item.event.onInput,
|
|
2357
|
+
onChange: this.item.event.onChange,
|
|
2358
|
+
onPaste: this.item.event.onPaste,
|
|
2359
|
+
onClick: this.item.event.onClick
|
|
2360
|
+
}
|
|
2361
|
+
)
|
|
2362
|
+
)
|
|
2363
|
+
];
|
|
2364
|
+
});
|
|
2365
|
+
/**
|
|
2366
|
+
* Rendering method for displaying the mask and the input data.
|
|
2367
|
+
*
|
|
2368
|
+
* Метод рендеринга для вывода маски и вводимых данных.
|
|
2369
|
+
*/
|
|
2370
|
+
a(this, "renderView", () => {
|
|
2371
|
+
var r;
|
|
2372
|
+
const e = this.item.view.item.value, i = [];
|
|
2373
|
+
let s;
|
|
2374
|
+
return e.length > 0 ? e.forEach((n, l) => {
|
|
2375
|
+
i.push(
|
|
2376
|
+
d("span", {
|
|
2377
|
+
key: l,
|
|
2378
|
+
class: n.className,
|
|
2379
|
+
innerHTML: n.value === " " ? " " : n.value
|
|
2380
|
+
})
|
|
2381
|
+
);
|
|
2382
|
+
}) : s = " ", [
|
|
2383
|
+
d(
|
|
2384
|
+
"span",
|
|
2385
|
+
{
|
|
2386
|
+
class: (r = this.classes) == null ? void 0 : r.value.character,
|
|
2387
|
+
"data-length": "1",
|
|
2388
|
+
...J.hidden(),
|
|
2389
|
+
innerHTML: s
|
|
2390
|
+
},
|
|
2391
|
+
i
|
|
2392
|
+
)
|
|
2393
|
+
];
|
|
2394
|
+
});
|
|
2395
|
+
this.item = new Ct(
|
|
2396
|
+
this.props,
|
|
2397
|
+
this.refs,
|
|
2398
|
+
this.element,
|
|
2399
|
+
this.getDesign(),
|
|
2400
|
+
this.getName(),
|
|
2401
|
+
this.components,
|
|
2402
|
+
this.slots,
|
|
2403
|
+
this.emits
|
|
2404
|
+
), this.init();
|
|
2405
|
+
}
|
|
2406
|
+
/**
|
|
2407
|
+
* Initialization of all the necessary properties for work
|
|
2408
|
+
*
|
|
2409
|
+
* Инициализация всех необходимых свойств для работы.
|
|
2410
|
+
*/
|
|
2411
|
+
initExpose() {
|
|
2412
|
+
return {
|
|
2413
|
+
valueBasic: this.item.basic,
|
|
2414
|
+
value: this.item.value.item,
|
|
2415
|
+
setValue: this.item.set,
|
|
2416
|
+
clear: this.item.clear
|
|
2417
|
+
};
|
|
2418
|
+
}
|
|
2419
|
+
/**
|
|
2420
|
+
* Improvement of the obtained list of classes.
|
|
2421
|
+
*
|
|
2422
|
+
* Доработка полученного списка классов.
|
|
2423
|
+
*/
|
|
2424
|
+
initClasses() {
|
|
2425
|
+
return {
|
|
2426
|
+
main: this.item.classes.value,
|
|
2427
|
+
// :classes [!] System label / Системная метка
|
|
2428
|
+
input: this.getSubClass("input"),
|
|
2429
|
+
character: this.getSubClass("character"),
|
|
2430
|
+
characterItem: this.getSubClass("character__item")
|
|
2431
|
+
};
|
|
2432
|
+
}
|
|
2433
|
+
/**
|
|
2434
|
+
* Refinement of the received list of styles.
|
|
2435
|
+
*
|
|
2436
|
+
* Доработка полученного списка стилей.
|
|
2437
|
+
*/
|
|
2438
|
+
initStyles() {
|
|
2439
|
+
return {};
|
|
2440
|
+
}
|
|
2441
|
+
/**
|
|
2442
|
+
* A method for rendering.
|
|
2443
|
+
*
|
|
2444
|
+
* Метод для рендеринга.
|
|
2445
|
+
*/
|
|
2446
|
+
initRender() {
|
|
2447
|
+
var i;
|
|
2448
|
+
const e = [
|
|
2449
|
+
...this.renderData(),
|
|
2450
|
+
...this.renderInput(),
|
|
2451
|
+
...this.renderView()
|
|
2452
|
+
];
|
|
2453
|
+
return d("span", {
|
|
2454
|
+
...this.getAttrs(),
|
|
2455
|
+
class: (i = this.classes) == null ? void 0 : i.value.main
|
|
2456
|
+
}, e);
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
export {
|
|
2460
|
+
b as MASK_CHAR_DELETE,
|
|
2461
|
+
mt as MASK_VIEW_DEFAULT,
|
|
2462
|
+
Ct as Mask,
|
|
2463
|
+
Lt as MaskDesign,
|
|
2464
|
+
Mt as defaultsMask
|
|
2465
|
+
};
|