@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/image.js
ADDED
|
@@ -0,0 +1,1350 @@
|
|
|
1
|
+
var H = Object.defineProperty;
|
|
2
|
+
var E = (r, t, e) => t in r ? H(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
+
var i = (r, t, e) => E(r, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { computed as h, watchEffect as B, ref as I, toRefs as W, watch as k, onUnmounted as R, h as f } from "vue";
|
|
5
|
+
import { isDomRuntime as j, resizeImageByMax as N, isString as p, isFilled as F, GEO_FLAG_ICON_NAME as L, Icons as A, isArray as M, EventItem as D, forEach as O, toNumber as S, getElementId as _, isNumber as U, useLazyItemByMarginRef as G, DesignConstructorAbstract as X } from "@dxtmisha/functional";
|
|
6
|
+
import { A as z } from "./AriaStaticInclude-CFGewqpn.js";
|
|
7
|
+
const K = 1280;
|
|
8
|
+
class P {
|
|
9
|
+
/**
|
|
10
|
+
* Checks if the file is an image.
|
|
11
|
+
*
|
|
12
|
+
* Проверяет, является ли файл изображением.
|
|
13
|
+
* @param file verified file/ проверяемый файл
|
|
14
|
+
*/
|
|
15
|
+
static isImage(t) {
|
|
16
|
+
return !!t.type.match(/^image\//);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Creates an image based on a file or a link.
|
|
20
|
+
*
|
|
21
|
+
* Создает изображение на основе файла или ссылки.
|
|
22
|
+
* @param src file or link/ файл или ссылка
|
|
23
|
+
*/
|
|
24
|
+
static createImage(t) {
|
|
25
|
+
return new Promise((e) => {
|
|
26
|
+
if (t) {
|
|
27
|
+
const s = new Image();
|
|
28
|
+
s.onerror = () => e(void 0), s.onload = () => {
|
|
29
|
+
e({
|
|
30
|
+
image: s,
|
|
31
|
+
src: this.getSRC(s, t),
|
|
32
|
+
width: s.naturalWidth,
|
|
33
|
+
height: s.naturalHeight
|
|
34
|
+
});
|
|
35
|
+
}, (async () => s.src = t instanceof File ? await this.getFileResult(t) : t)();
|
|
36
|
+
} else
|
|
37
|
+
e(void 0);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns a link to the image.
|
|
42
|
+
*
|
|
43
|
+
* Возвращает ссылку на изображение.
|
|
44
|
+
* @param src file or link/ файл или ссылка
|
|
45
|
+
*/
|
|
46
|
+
static async getPath(t) {
|
|
47
|
+
return this.createImage(t).then((e) => {
|
|
48
|
+
var s;
|
|
49
|
+
return (s = e == null ? void 0 : e.src) != null ? s : "";
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer.
|
|
54
|
+
*
|
|
55
|
+
* Асинхронно читать содержимое файлов (или буферы данных), хранящиеся на компьютере пользователя.
|
|
56
|
+
* @param file the Blob or File from which to read/ Blob или File которые следует прочитать
|
|
57
|
+
*/
|
|
58
|
+
static getFileResult(t) {
|
|
59
|
+
return new Promise((e) => {
|
|
60
|
+
this.isImage(t) ? this.getFileReader(t).then((s) => e(s)) : e("");
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer.
|
|
65
|
+
*
|
|
66
|
+
* Асинхронно читать содержимое файлов (или буферы данных), хранящиеся на компьютере пользователя.
|
|
67
|
+
* @param file the Blob or File from which to read/ Blob или File которые следует прочитать
|
|
68
|
+
*/
|
|
69
|
+
static getFileReader(t) {
|
|
70
|
+
return new Promise((e) => {
|
|
71
|
+
const s = new FileReader();
|
|
72
|
+
s.onload = () => e(typeof s.result == "string" ? s.result : ""), s.readAsDataURL(t);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Image size adaptation. Checks if the image size is larger than maxSize, reduces it to maxSize.
|
|
77
|
+
*
|
|
78
|
+
* Адаптация размера изображения. Проверяет, если размер изображения больше maxSize, уменьшает его до maxSize.
|
|
79
|
+
* @param image image element/ элемент изображения
|
|
80
|
+
* @param src link to image/ ссылка на изображение
|
|
81
|
+
* @param maxSize maximum allowable image size/ максимальный допустимый размер изображения
|
|
82
|
+
*/
|
|
83
|
+
static getSRC(t, e, s = K) {
|
|
84
|
+
var n;
|
|
85
|
+
return j() && (e instanceof File || e === void 0) && (t.naturalHeight > s || t.naturalWidth > s) ? (n = N(t, s)) != null ? n : "" : t.src;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
const x = "#toolbar=0&scrollbar=1";
|
|
89
|
+
class C {
|
|
90
|
+
/**
|
|
91
|
+
* Checks if the file is an image.
|
|
92
|
+
*
|
|
93
|
+
* Проверяет, является ли файл PDF.
|
|
94
|
+
* @param file verified file/ проверяемый файл
|
|
95
|
+
*/
|
|
96
|
+
static isPdf(t) {
|
|
97
|
+
return p(t) ? !!t.match(/\.pdf$/i) : j() && !!t.type.match(/\/pdf$/i);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer.
|
|
101
|
+
*
|
|
102
|
+
* Асинхронно читать содержимое файлов (или буферы данных), хранящиеся на компьютере пользователя.
|
|
103
|
+
* @param file the Blob or File from which to read/ Blob или File которые следует прочитать
|
|
104
|
+
*/
|
|
105
|
+
static async get(t) {
|
|
106
|
+
return p(t) ? `${t}${x}` : this.isPdf(t) ? `${await P.getFileReader(t)}${x}` : "";
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
var a = /* @__PURE__ */ ((r) => (r.pdf = "pdf", r.file = "file", r.image = "image", r.flag = "flag", r.flagCompressed = "flag-compressed", r.color = "color", r.public = "public", r.filled = "filled", r.outlined = "outlined", r.round = "round", r.sharp = "sharp", r.twoTone = "two-tone", r.material = "material", r.icon = "icon", r))(a || {});
|
|
110
|
+
class Y {
|
|
111
|
+
/**
|
|
112
|
+
* Constructor
|
|
113
|
+
* @param props input data/ входные данные
|
|
114
|
+
*/
|
|
115
|
+
constructor(t) {
|
|
116
|
+
/**
|
|
117
|
+
* Get the image type.
|
|
118
|
+
*
|
|
119
|
+
* Получения тип изображения.
|
|
120
|
+
*/
|
|
121
|
+
i(this, "item", h(() => {
|
|
122
|
+
const t = this.props.value;
|
|
123
|
+
if (t instanceof File || F(t)) {
|
|
124
|
+
if (C.isPdf(t))
|
|
125
|
+
return a.pdf;
|
|
126
|
+
if (t instanceof File)
|
|
127
|
+
return a.file;
|
|
128
|
+
if (t.match(/\//))
|
|
129
|
+
return a.image;
|
|
130
|
+
if (t.match(L))
|
|
131
|
+
return a.icon;
|
|
132
|
+
if (t.match(/^#/))
|
|
133
|
+
return a.color;
|
|
134
|
+
if (t.match(/^@/))
|
|
135
|
+
return a.public;
|
|
136
|
+
if (t.match(/^\$/))
|
|
137
|
+
return a.material;
|
|
138
|
+
if (t.match(/^flag-[a-z]{2}$/))
|
|
139
|
+
return a.flag;
|
|
140
|
+
if (t.match(/^f-[a-z]{2}$/))
|
|
141
|
+
return a.flagCompressed;
|
|
142
|
+
const e = t.match(/^(outlined|round|sharp|material)-/);
|
|
143
|
+
return e ? e[1] : A.is(t) ? a.public : a.outlined;
|
|
144
|
+
}
|
|
145
|
+
}));
|
|
146
|
+
this.props = t;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const nt = {
|
|
150
|
+
adaptiveGroup: "basic",
|
|
151
|
+
preloadOffset: "1024px"
|
|
152
|
+
};
|
|
153
|
+
class q {
|
|
154
|
+
/**
|
|
155
|
+
* Constructor
|
|
156
|
+
* @param props input data/ входные данные
|
|
157
|
+
* @param type image type/ тип изображения
|
|
158
|
+
*/
|
|
159
|
+
constructor(t, e) {
|
|
160
|
+
/**
|
|
161
|
+
* Returns images.
|
|
162
|
+
*
|
|
163
|
+
* Возвращает изображения.
|
|
164
|
+
*/
|
|
165
|
+
i(this, "image", I());
|
|
166
|
+
this.props = t, this.type = e, B(async () => {
|
|
167
|
+
this.image.value = await this.init();
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Checks if there are values.
|
|
172
|
+
*
|
|
173
|
+
* Проверяет, есть ли значения.
|
|
174
|
+
*/
|
|
175
|
+
is() {
|
|
176
|
+
return this.image.value !== void 0;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Checks if the value is a link, that is, a type of string.
|
|
180
|
+
*
|
|
181
|
+
* Проверяет, является ли значение ссылкой, то есть видом строки.
|
|
182
|
+
*/
|
|
183
|
+
isLink() {
|
|
184
|
+
return this.is() && typeof this.image.value == "string";
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Checks if the value is an image object.
|
|
188
|
+
*
|
|
189
|
+
* Проверяет, является ли значение объектом изображения.
|
|
190
|
+
*/
|
|
191
|
+
isImage() {
|
|
192
|
+
return this.is() && typeof this.image.value != "string";
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Calculates the image value and returns it.
|
|
196
|
+
*
|
|
197
|
+
* Вычисляет значение изображения и возвращает его.
|
|
198
|
+
*/
|
|
199
|
+
async init() {
|
|
200
|
+
const t = this.props.value;
|
|
201
|
+
if (t)
|
|
202
|
+
switch (this.type.item.value) {
|
|
203
|
+
case a.pdf:
|
|
204
|
+
return await C.get(t);
|
|
205
|
+
case a.image:
|
|
206
|
+
case a.file:
|
|
207
|
+
try {
|
|
208
|
+
return this.props.lazy ? this.props.value : await P.createImage(t);
|
|
209
|
+
} catch (e) {
|
|
210
|
+
console.error("ImageData.initImage: ", t);
|
|
211
|
+
}
|
|
212
|
+
break;
|
|
213
|
+
case a.public:
|
|
214
|
+
case a.icon:
|
|
215
|
+
case a.flag:
|
|
216
|
+
if (p(t))
|
|
217
|
+
return await A.get(t, this.props.url);
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
class Z {
|
|
223
|
+
/**
|
|
224
|
+
* Constructor
|
|
225
|
+
* @param props input data/ входные данные
|
|
226
|
+
*/
|
|
227
|
+
constructor(t) {
|
|
228
|
+
/**
|
|
229
|
+
* Returns coordinates.
|
|
230
|
+
*
|
|
231
|
+
* Возвращает координаты.
|
|
232
|
+
*/
|
|
233
|
+
i(this, "coordinator", h(() => {
|
|
234
|
+
var t, e, s, n, c, g, m, u, v, y, b, w;
|
|
235
|
+
if (this.is()) {
|
|
236
|
+
const o = this.props.coordinator;
|
|
237
|
+
switch (o.length) {
|
|
238
|
+
case 1:
|
|
239
|
+
return [
|
|
240
|
+
(t = o[0]) != null ? t : 0,
|
|
241
|
+
(e = o[0]) != null ? e : 0,
|
|
242
|
+
(s = o[0]) != null ? s : 0,
|
|
243
|
+
(n = o[0]) != null ? n : 0
|
|
244
|
+
];
|
|
245
|
+
case 2:
|
|
246
|
+
return [
|
|
247
|
+
(c = o[0]) != null ? c : 0,
|
|
248
|
+
(g = o[1]) != null ? g : 0,
|
|
249
|
+
(m = o[0]) != null ? m : 0,
|
|
250
|
+
(u = o[1]) != null ? u : 0
|
|
251
|
+
];
|
|
252
|
+
case 3:
|
|
253
|
+
return [
|
|
254
|
+
(v = o[0]) != null ? v : 0,
|
|
255
|
+
(y = o[1]) != null ? y : 0,
|
|
256
|
+
(b = o[2]) != null ? b : 0,
|
|
257
|
+
(w = o[1]) != null ? w : 0
|
|
258
|
+
];
|
|
259
|
+
case 4:
|
|
260
|
+
return o;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return [0, 0, 0, 0];
|
|
264
|
+
}));
|
|
265
|
+
/**
|
|
266
|
+
* Returns the sizes for the background-position property by coordinates.
|
|
267
|
+
*
|
|
268
|
+
* Возвращает размеры для свойства background-position по координатам.
|
|
269
|
+
*/
|
|
270
|
+
i(this, "size", h(() => {
|
|
271
|
+
const t = this.coordinator.value;
|
|
272
|
+
return {
|
|
273
|
+
width: 100 - t[1] - t[3],
|
|
274
|
+
height: 100 - t[2] - t[0]
|
|
275
|
+
};
|
|
276
|
+
}));
|
|
277
|
+
this.props = t;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Checks if there are coordinates for calculation.
|
|
281
|
+
*
|
|
282
|
+
* Проверяет, есть ли координаты для вычисления.
|
|
283
|
+
*/
|
|
284
|
+
is() {
|
|
285
|
+
const t = this.props.coordinator;
|
|
286
|
+
return M(t) && t.length > 0 && t.length < 5;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Returns the values for the background property.
|
|
290
|
+
*
|
|
291
|
+
* Возвращает значения для свойства background.
|
|
292
|
+
*/
|
|
293
|
+
getSize() {
|
|
294
|
+
const t = this.size.value, e = t.width === 0 ? 100 : t.width, s = t.height === 0 ? 100 : t.height;
|
|
295
|
+
return {
|
|
296
|
+
width: `${100 / e * 100}%`,
|
|
297
|
+
height: `${100 / s * 100}%`
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
class J {
|
|
302
|
+
/**
|
|
303
|
+
* Constructor
|
|
304
|
+
* @param props input data/ входные данные
|
|
305
|
+
* @param coordinator coordinates for margins/ координаты для отступов
|
|
306
|
+
*/
|
|
307
|
+
constructor(t, e) {
|
|
308
|
+
/**
|
|
309
|
+
* Returns the position on the left.
|
|
310
|
+
*
|
|
311
|
+
* Возвращает позицию слева.
|
|
312
|
+
*/
|
|
313
|
+
i(this, "x", h(() => {
|
|
314
|
+
var t;
|
|
315
|
+
return this.coordinator.is() ? `${this.coordinator.coordinator.value[3] + this.coordinator.size.value.width / 2}%` : ((t = this.props.x) == null ? void 0 : t.toString()) || "center";
|
|
316
|
+
}));
|
|
317
|
+
/**
|
|
318
|
+
* Returns the position on the top.
|
|
319
|
+
*
|
|
320
|
+
* Возвращает позицию сверху.
|
|
321
|
+
*/
|
|
322
|
+
i(this, "y", h(() => {
|
|
323
|
+
var t;
|
|
324
|
+
return this.coordinator.is() ? `${this.coordinator.coordinator.value[0] + this.coordinator.size.value.height / 2}%` : ((t = this.props.y) == null ? void 0 : t.toString()) || "center";
|
|
325
|
+
}));
|
|
326
|
+
this.props = t, this.coordinator = e;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
class Q {
|
|
330
|
+
/**
|
|
331
|
+
* Constructor
|
|
332
|
+
* @param name group name/ название группы
|
|
333
|
+
*/
|
|
334
|
+
constructor(t) {
|
|
335
|
+
i(this, "factorMax", 1);
|
|
336
|
+
i(this, "size", {
|
|
337
|
+
width: 0,
|
|
338
|
+
height: 0
|
|
339
|
+
});
|
|
340
|
+
i(this, "offset", {
|
|
341
|
+
width: 7680,
|
|
342
|
+
height: 7680
|
|
343
|
+
});
|
|
344
|
+
this.name = t;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Checks whether the element belongs to the current group.
|
|
348
|
+
*
|
|
349
|
+
* Проверяет, принадлежит ли элемент к текущей группе.
|
|
350
|
+
* @param name name of the checked group/ название проверяемой группы
|
|
351
|
+
*/
|
|
352
|
+
is(t) {
|
|
353
|
+
return this.name === t;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Checks if the group has elements with sizes. It is used to check if there is data for work.
|
|
357
|
+
*
|
|
358
|
+
* Проверяет, есть ли у группы элементы с размерами. Используется для проверки, есть ли данные для работы.
|
|
359
|
+
*/
|
|
360
|
+
isSize() {
|
|
361
|
+
return !!(this.size.width || this.size.width);
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Returns the maximum physical width.
|
|
365
|
+
*
|
|
366
|
+
* Возвращает максимальную физическую ширину.
|
|
367
|
+
*/
|
|
368
|
+
getWidth() {
|
|
369
|
+
return this.size.width;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Returns the maximum physical height.
|
|
373
|
+
*
|
|
374
|
+
* Возвращает максимальную физическую высоту.
|
|
375
|
+
*/
|
|
376
|
+
getHeight() {
|
|
377
|
+
return this.size.height;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Returns the actual width.
|
|
381
|
+
*
|
|
382
|
+
* Возвращает фактическую ширину.
|
|
383
|
+
*/
|
|
384
|
+
getOffsetWidth() {
|
|
385
|
+
return this.offset.width;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Returns the actual height.
|
|
389
|
+
*
|
|
390
|
+
* Возвращает фактическую высоту.
|
|
391
|
+
*/
|
|
392
|
+
getOffsetHeight() {
|
|
393
|
+
return this.offset.height;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Returns the maximum multiplier for scaling.
|
|
397
|
+
*
|
|
398
|
+
* Возвращает максимальный множитель для масштабирования.
|
|
399
|
+
*/
|
|
400
|
+
getFactorMax() {
|
|
401
|
+
return this.factorMax;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Updating size.width, if it is less than the selected value.
|
|
405
|
+
*
|
|
406
|
+
* Обновление size.width, если она меньше выбранного значения.
|
|
407
|
+
* @param width value of the selected width/ значение выбранной ширины
|
|
408
|
+
*/
|
|
409
|
+
makeWidth(t) {
|
|
410
|
+
return t > this.size.width && (this.size.width = t), this;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Updating size.height, if it is less than the selected value.
|
|
414
|
+
*
|
|
415
|
+
* Обновление size.height, если она меньше выбранного значения.
|
|
416
|
+
* @param height value of the selected height/ значение выбранной высоты
|
|
417
|
+
*/
|
|
418
|
+
makeHeight(t) {
|
|
419
|
+
return t > this.size.height && (this.size.height = t), this;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Updating offset.width, if it is larger than the selected value.
|
|
423
|
+
*
|
|
424
|
+
* Обновление offset.width, если она больше выбранного значения.
|
|
425
|
+
* @param width value of the selected width/ значение выбранной ширины
|
|
426
|
+
*/
|
|
427
|
+
makeOffsetWidth(t) {
|
|
428
|
+
return t < this.offset.width && (this.offset.width = t), this;
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Updating offset.height, if it is larger than the selected value.
|
|
432
|
+
*
|
|
433
|
+
* Обновление offset.height, если она больше выбранного значения.
|
|
434
|
+
* @param height value of the selected height/ значение выбранной высоты
|
|
435
|
+
*/
|
|
436
|
+
makeOffsetHeight(t) {
|
|
437
|
+
return t < this.offset.height && (this.offset.height = t), this;
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Changes the multiplier value if it is greater than the checked value.
|
|
441
|
+
*
|
|
442
|
+
* Изменяет значение множителя, если оно больше проверяемого значения.
|
|
443
|
+
* @param value values for verification/ значения для проверки
|
|
444
|
+
*/
|
|
445
|
+
makeFactorMax(t) {
|
|
446
|
+
return t < this.factorMax && (this.factorMax = t), this;
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Restoring the value to its original state.
|
|
450
|
+
*
|
|
451
|
+
* Восстановление значения в изначальное состояние.
|
|
452
|
+
*/
|
|
453
|
+
reset() {
|
|
454
|
+
return this.factorMax = 1, this.size = {
|
|
455
|
+
width: 0,
|
|
456
|
+
height: 0
|
|
457
|
+
}, this.offset = {
|
|
458
|
+
width: 7680,
|
|
459
|
+
height: 7680
|
|
460
|
+
}, this;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
class l {
|
|
464
|
+
/**
|
|
465
|
+
* Checks if the group has elements with sizes. It is used to check if there is data for work.
|
|
466
|
+
*
|
|
467
|
+
* Проверяет, есть ли у группы элементы с размерами. Используется для проверки, есть ли данные для работы.
|
|
468
|
+
*/
|
|
469
|
+
static isSize() {
|
|
470
|
+
return this.items.find((t) => t.isSize()) !== void 0;
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Returns an object with data for calculation by the name of its group.
|
|
474
|
+
*
|
|
475
|
+
* Возвращает объект с данными для вычисления по названию его группы.
|
|
476
|
+
* @param name group name/ название группы
|
|
477
|
+
*/
|
|
478
|
+
static get(t) {
|
|
479
|
+
return this.find(t) || this.init(t);
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Resets all parameters for all groups.
|
|
483
|
+
*
|
|
484
|
+
* Сбрасывает все параметры для всех групп.
|
|
485
|
+
*/
|
|
486
|
+
static reset() {
|
|
487
|
+
this.items.forEach((t) => t.reset());
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Search for the ImageCalculation object by the name of the group.
|
|
491
|
+
*
|
|
492
|
+
* Поиск объекта ImageCalculation по названию группы.
|
|
493
|
+
* @param name group name/ название группы
|
|
494
|
+
*/
|
|
495
|
+
static find(t) {
|
|
496
|
+
return this.items.find((e) => e.is(t));
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Creating a new ImageCalculation object by the name of the group.
|
|
500
|
+
*
|
|
501
|
+
* Создание нового объекта ImageCalculation по названию группы.
|
|
502
|
+
* @param name group name/ название группы
|
|
503
|
+
*/
|
|
504
|
+
static init(t) {
|
|
505
|
+
const e = new Q(t);
|
|
506
|
+
return this.items.push(e), e;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
i(l, "items", []);
|
|
510
|
+
class d {
|
|
511
|
+
/**
|
|
512
|
+
* Checks if an element is present in the list.
|
|
513
|
+
*
|
|
514
|
+
* Проверяет, присутствует ли элемент в списке.
|
|
515
|
+
* @param item object for working with images/ объект для работы с изображениями
|
|
516
|
+
*/
|
|
517
|
+
static is(t) {
|
|
518
|
+
return this.objects.findIndex((e) => e === t) !== -1;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Adding a new element for tracking.
|
|
522
|
+
*
|
|
523
|
+
* Добавление нового элемента для отслеживания.
|
|
524
|
+
* @param item object for working with images/ объект для работы с изображениями
|
|
525
|
+
*/
|
|
526
|
+
static add(t) {
|
|
527
|
+
this.is(t) || (this.objects.push(t), this.make());
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Removal of the element.
|
|
531
|
+
*
|
|
532
|
+
* Удаления элемента.
|
|
533
|
+
* @param item object for working with images/ объект для работы с изображениями
|
|
534
|
+
*/
|
|
535
|
+
static remove(t) {
|
|
536
|
+
const e = this.objects.findIndex((s) => s === t);
|
|
537
|
+
e !== -1 && (this.objects.splice(e, 1), this.cache = []), this.make();
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* Resets all cached data and rereads scaling for all elements.
|
|
541
|
+
*
|
|
542
|
+
* Обнуляет все кэшированные данные и перечитывает масштабирование для всех элементов.
|
|
543
|
+
*/
|
|
544
|
+
static reset() {
|
|
545
|
+
this.cache = [], this.start();
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Starts the calculation process or turns it off if there are no active elements in the list.
|
|
549
|
+
*
|
|
550
|
+
* Запускает процесс вычисления или отключает его, если в списке нет активных элементов.
|
|
551
|
+
*/
|
|
552
|
+
static make() {
|
|
553
|
+
this.event && this.objects.length < 1 ? (this.event.stop(), this.event = void 0) : this.objects.length > 0 && (this.event || (this.event = new D(window, ["scroll-sync"], () => this.start()).start()), this.time || (this.time = !0, requestAnimationFrame(() => {
|
|
554
|
+
this.time = !1, this.start();
|
|
555
|
+
})));
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Returns a list of elements that are visible or constantly being calculated.
|
|
559
|
+
*
|
|
560
|
+
* Возвращает список элементов, которые видны или постоянно вычисляются.
|
|
561
|
+
*/
|
|
562
|
+
static getItemIdByVisible() {
|
|
563
|
+
return O(this.objectsAdaptive, (t) => t.getId());
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Method for starting the calculation of scaling elements in the list.
|
|
567
|
+
*
|
|
568
|
+
* Метод для запуска вычисления масштабирования элементов в списке.
|
|
569
|
+
*/
|
|
570
|
+
static start() {
|
|
571
|
+
var t;
|
|
572
|
+
if (this.isAdaptive()) {
|
|
573
|
+
this.makeAdaptive();
|
|
574
|
+
const e = this.getItemIdByVisible();
|
|
575
|
+
this.isCache(e) && (this.cache = e, this.makeSize(), this.makePercent(), this.makeFactorMax());
|
|
576
|
+
} else
|
|
577
|
+
(t = this.event) == null || t.stop();
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* Updates the list of elements available for calculation. These are the
|
|
581
|
+
* elements that are close to the border of the visible area.
|
|
582
|
+
*
|
|
583
|
+
* Обновляет список доступных для вычисления элементов. Это те элементы,
|
|
584
|
+
* которые близки к границе видимой области.
|
|
585
|
+
*/
|
|
586
|
+
static makeAdaptive() {
|
|
587
|
+
this.objectsAdaptive = [], this.objects.forEach((t) => {
|
|
588
|
+
t.make(), t.isBeyond() && this.objectsAdaptive.push(t);
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* Calculates the dimensions of an element relative to the image size,
|
|
593
|
+
* the size of the element, and its physical location on the image.
|
|
594
|
+
*
|
|
595
|
+
* Вычисляет размеры элемента относительно размера изображения,
|
|
596
|
+
* размера элемента и его физического расположения на изображении.
|
|
597
|
+
*/
|
|
598
|
+
static makeSize() {
|
|
599
|
+
l.reset(), this.objectsAdaptive.forEach((t) => {
|
|
600
|
+
const e = t.element.value;
|
|
601
|
+
e && l.get(t.group.value).makeWidth(t.width.value).makeHeight(t.height.value).makeOffsetWidth(e.offsetWidth).makeOffsetHeight(e.offsetHeight);
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* Calculation of the basic scaling of an element without taking into account other elements.
|
|
606
|
+
*
|
|
607
|
+
* Вычисление базового масштабирования элемента без учета других элементов.
|
|
608
|
+
*/
|
|
609
|
+
static makePercent() {
|
|
610
|
+
l.isSize() && this.objectsAdaptive.forEach((t) => {
|
|
611
|
+
const e = t.element.value, s = l.get(t.group.value);
|
|
612
|
+
if (e) {
|
|
613
|
+
const n = s.getWidth(), c = s.getHeight();
|
|
614
|
+
t.setPercent(
|
|
615
|
+
t.width.value * (n ? 1 / n : 0) * (s.getOffsetWidth() / e.offsetWidth),
|
|
616
|
+
t.height.value * (c ? 1 / c : 0) * (s.getOffsetHeight() / e.offsetHeight)
|
|
617
|
+
);
|
|
618
|
+
}
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Calculation of the largest element to determine the base size.
|
|
623
|
+
* This parameter is used for scaling other elements,
|
|
624
|
+
* reducing them to the necessary proportion.
|
|
625
|
+
*
|
|
626
|
+
* Вычисление самого большого элемента для определения базового размера.
|
|
627
|
+
* Этот параметр используется для масштабирования других элементов,
|
|
628
|
+
* уменьшая их до нужной пропорции.
|
|
629
|
+
*/
|
|
630
|
+
static makeFactorMax() {
|
|
631
|
+
l.isSize() && this.objectsAdaptive.forEach((t) => {
|
|
632
|
+
l.get(t.group.value).makeFactorMax(t.factor.value);
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Checks if there is an active element at the moment.
|
|
637
|
+
*
|
|
638
|
+
* Проверяет, есть ли в текущий момент активный элемент.
|
|
639
|
+
*/
|
|
640
|
+
static isAdaptive() {
|
|
641
|
+
return !!this.objects.find((t) => t.is());
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* Checks whether the composition of visible elements has changed.
|
|
645
|
+
*
|
|
646
|
+
* Проверяет, изменился ли состав видимых элементов.
|
|
647
|
+
* @param visible list of indices of visible elements/ список индексов видимых элементов
|
|
648
|
+
*/
|
|
649
|
+
static isCache(t) {
|
|
650
|
+
return this.cache.join("|") !== t.join("|");
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
i(d, "objects", []), i(d, "objectsAdaptive", []), i(d, "cache", []), i(d, "event"), i(d, "time");
|
|
654
|
+
const T = "main", $ = 512;
|
|
655
|
+
class V {
|
|
656
|
+
/**
|
|
657
|
+
* Constructor
|
|
658
|
+
* @param props input data/ входные данные
|
|
659
|
+
* @param element image element for scaling/ элемент изображения для масштабирования
|
|
660
|
+
* @param data image data/ данные изображения
|
|
661
|
+
*/
|
|
662
|
+
constructor(t, e, s) {
|
|
663
|
+
i(this, "percent", I({
|
|
664
|
+
width: 0,
|
|
665
|
+
height: 0
|
|
666
|
+
}));
|
|
667
|
+
i(this, "beyond", !1);
|
|
668
|
+
i(this, "visible", !1);
|
|
669
|
+
/**
|
|
670
|
+
* Is the element active for size alignment.
|
|
671
|
+
*
|
|
672
|
+
* Активен ли элемент для выравнивания размера.
|
|
673
|
+
*/
|
|
674
|
+
i(this, "active", h(
|
|
675
|
+
() => !!(this.props.adaptive && (this.width.value || this.height.value)) && this.data.isImage()
|
|
676
|
+
));
|
|
677
|
+
/**
|
|
678
|
+
* Returns the name of the group.
|
|
679
|
+
*
|
|
680
|
+
* Возвращает название группы.
|
|
681
|
+
*/
|
|
682
|
+
i(this, "group", h(() => {
|
|
683
|
+
var t;
|
|
684
|
+
return (t = this.props.adaptiveGroup) != null ? t : T;
|
|
685
|
+
}));
|
|
686
|
+
/**
|
|
687
|
+
* Returns the physical width of the object.
|
|
688
|
+
*
|
|
689
|
+
* Возвращает физическую ширину объекта.
|
|
690
|
+
*/
|
|
691
|
+
i(this, "width", h(() => {
|
|
692
|
+
var t;
|
|
693
|
+
return S((t = this.props.objectWidth) != null ? t : 0);
|
|
694
|
+
}));
|
|
695
|
+
/**
|
|
696
|
+
* Returns the physical height of the object.
|
|
697
|
+
*
|
|
698
|
+
* Возвращает физическую высоту объекта.
|
|
699
|
+
*/
|
|
700
|
+
i(this, "height", h(() => {
|
|
701
|
+
var t, e;
|
|
702
|
+
return S((e = (t = this.props) == null ? void 0 : t.objectHeight) != null ? e : 0);
|
|
703
|
+
}));
|
|
704
|
+
/**
|
|
705
|
+
* Returns the axis for scaling.
|
|
706
|
+
*
|
|
707
|
+
* Возвращает ось для масштабирования.
|
|
708
|
+
*/
|
|
709
|
+
i(this, "type", h(() => {
|
|
710
|
+
if (this.width.value && this.percent.value.width > 0)
|
|
711
|
+
return "x";
|
|
712
|
+
if (this.height.value && this.percent.value.height > 0)
|
|
713
|
+
return "y";
|
|
714
|
+
}));
|
|
715
|
+
/**
|
|
716
|
+
* Calculation of the base size of the image to determine how to scale the image.
|
|
717
|
+
*
|
|
718
|
+
* Вычисление базового размера изображения, чтобы определить, как надо масштабировать изображение.
|
|
719
|
+
*/
|
|
720
|
+
i(this, "size", h(() => {
|
|
721
|
+
if (this.element.value && this.data.isImage()) {
|
|
722
|
+
const t = this.data.image.value;
|
|
723
|
+
switch (this.type.value) {
|
|
724
|
+
case "x":
|
|
725
|
+
return t.height * (this.element.value.offsetWidth * this.percent.value.width / t.width);
|
|
726
|
+
case "y":
|
|
727
|
+
return t.width * (this.element.value.offsetHeight * this.percent.value.height / t.height);
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
return 0;
|
|
731
|
+
}));
|
|
732
|
+
/**
|
|
733
|
+
* Multiplier for determining the level of image scaling relative to other elements.
|
|
734
|
+
*
|
|
735
|
+
* Множитель для определения уровня масштабирования изображения относительно других элементов.
|
|
736
|
+
*/
|
|
737
|
+
i(this, "factor", h(() => {
|
|
738
|
+
const t = this.element.value;
|
|
739
|
+
if (t) {
|
|
740
|
+
const e = this.size.value;
|
|
741
|
+
if (this.type.value === "x" && e > t.offsetHeight)
|
|
742
|
+
return t.offsetHeight / e;
|
|
743
|
+
if (this.type.value === "y" && e > t.offsetWidth)
|
|
744
|
+
return t.offsetWidth / e;
|
|
745
|
+
}
|
|
746
|
+
return 1;
|
|
747
|
+
}));
|
|
748
|
+
this.props = t, this.data = e, this.element = s, B(() => {
|
|
749
|
+
this.is() ? d.add(this) : d.remove(this);
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Checks if the element’s conditions are suitable for scaling.
|
|
754
|
+
*
|
|
755
|
+
* Проверяет, подходить ли у элемента условия для масштабирования.
|
|
756
|
+
*/
|
|
757
|
+
is() {
|
|
758
|
+
var t;
|
|
759
|
+
return this.active.value && !!((t = this.element.value) != null && t.closest("body"));
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Checks for compliance with the group.
|
|
763
|
+
*
|
|
764
|
+
* Проверяет на соответствие группе.
|
|
765
|
+
* @param name name of the checked group/ название проверяемой группы
|
|
766
|
+
*/
|
|
767
|
+
isGroup(t) {
|
|
768
|
+
return this.group.value === t;
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Is it available for calculation.
|
|
772
|
+
*
|
|
773
|
+
* Доступен ли для вычисления.
|
|
774
|
+
*/
|
|
775
|
+
isBeyond() {
|
|
776
|
+
return this.beyond;
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Is the element visible.
|
|
780
|
+
*
|
|
781
|
+
* Виден ли элемент.
|
|
782
|
+
*/
|
|
783
|
+
isVisible() {
|
|
784
|
+
return this.visible;
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Returns the identifier of the element.
|
|
788
|
+
*
|
|
789
|
+
* Возвращает идентификатор элемента.
|
|
790
|
+
*/
|
|
791
|
+
getId() {
|
|
792
|
+
return _(this.element.value);
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Returns values for the background-size property.
|
|
796
|
+
*
|
|
797
|
+
* Возвращает значения для свойства background-size.
|
|
798
|
+
*/
|
|
799
|
+
getBackgroundSize() {
|
|
800
|
+
const t = l.get(this.group.value).getFactorMax();
|
|
801
|
+
switch (this.type.value) {
|
|
802
|
+
case "x":
|
|
803
|
+
return `${100 * this.percent.value.width * t}% auto`;
|
|
804
|
+
case "y":
|
|
805
|
+
return `auto ${100 * this.percent.value.height * t}%`;
|
|
806
|
+
}
|
|
807
|
+
return null;
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* Size change for calculation.
|
|
811
|
+
*
|
|
812
|
+
* Изменение размера для вычисления.
|
|
813
|
+
* @param width width value/ значение ширины
|
|
814
|
+
* @param height height value/ значение высоты
|
|
815
|
+
*/
|
|
816
|
+
setPercent(t, e) {
|
|
817
|
+
return (this.percent.value.width !== t || this.percent.value.height !== e) && (this.percent.value = {
|
|
818
|
+
width: t,
|
|
819
|
+
height: e
|
|
820
|
+
}), this;
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* Removal of an element from the scaling list.
|
|
824
|
+
*
|
|
825
|
+
* Удаление элемента из списка для масштабирования.
|
|
826
|
+
*/
|
|
827
|
+
remove() {
|
|
828
|
+
this.active.value && d.remove(this);
|
|
829
|
+
}
|
|
830
|
+
/**
|
|
831
|
+
* Updating the visibility and activity status of the element.
|
|
832
|
+
*
|
|
833
|
+
* Обновление статуса видимости и активности элемента.
|
|
834
|
+
*/
|
|
835
|
+
make() {
|
|
836
|
+
if (this.beyond = !1, this.visible = !1, this.element.value && this.is())
|
|
837
|
+
if (this.props.adaptiveAlways)
|
|
838
|
+
this.beyond = !0, this.visible = !0;
|
|
839
|
+
else {
|
|
840
|
+
const t = this.element.value.getBoundingClientRect();
|
|
841
|
+
this.beyond = !(t.bottom < 0 - $ || t.top > window.innerHeight + $), this.visible = !(t.bottom < 0 || t.top > window.innerHeight);
|
|
842
|
+
}
|
|
843
|
+
return this;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
class tt {
|
|
847
|
+
/**
|
|
848
|
+
* Constructor
|
|
849
|
+
* @param props input data/ входные данные
|
|
850
|
+
* @param data image data/ данные изображения
|
|
851
|
+
* @param coordinator object for working with coordinates/ объект для работы с координатами
|
|
852
|
+
* @param adaptive an object for working with adapted scaling/ объект для работы с адаптированным масштабированием
|
|
853
|
+
*/
|
|
854
|
+
constructor(t, e, s, n) {
|
|
855
|
+
/**
|
|
856
|
+
* Returns values for the background-image property.
|
|
857
|
+
*
|
|
858
|
+
* Возвращает значения для свойства background-image.
|
|
859
|
+
*/
|
|
860
|
+
i(this, "image", h(() => {
|
|
861
|
+
const t = this.imageSrc.value;
|
|
862
|
+
return t ? `url("${t}")` : null;
|
|
863
|
+
}));
|
|
864
|
+
/**
|
|
865
|
+
* Returns the image source/ Возвращает источник изображения
|
|
866
|
+
*/
|
|
867
|
+
i(this, "imageSrc", h(() => {
|
|
868
|
+
const t = this.data.image.value;
|
|
869
|
+
switch (typeof t) {
|
|
870
|
+
case "string":
|
|
871
|
+
return t;
|
|
872
|
+
case "object":
|
|
873
|
+
return t.src;
|
|
874
|
+
default:
|
|
875
|
+
return null;
|
|
876
|
+
}
|
|
877
|
+
}));
|
|
878
|
+
/**
|
|
879
|
+
* Returns values for the background property.
|
|
880
|
+
*
|
|
881
|
+
* Возвращает значения для свойства background.
|
|
882
|
+
*/
|
|
883
|
+
i(this, "size", h(() => {
|
|
884
|
+
if (this.coordinator.is())
|
|
885
|
+
return this.getSizeByCoordinator();
|
|
886
|
+
if (this.adaptive.is()) {
|
|
887
|
+
const t = this.adaptive.getBackgroundSize();
|
|
888
|
+
if (t)
|
|
889
|
+
return t;
|
|
890
|
+
}
|
|
891
|
+
return this.getSizeForItem();
|
|
892
|
+
}));
|
|
893
|
+
this.props = t, this.data = e, this.coordinator = s, this.adaptive = n;
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* Checks if the object is an image.
|
|
897
|
+
*
|
|
898
|
+
* Проверяет, является ли объект изображением.
|
|
899
|
+
*/
|
|
900
|
+
isImage() {
|
|
901
|
+
return !!this.image.value;
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* Returns the value for the background-size property.
|
|
905
|
+
*
|
|
906
|
+
* Возвращает значение для свойства background-size.
|
|
907
|
+
* @param width width value/ значение ширины
|
|
908
|
+
* @param height height value/ значение высоты
|
|
909
|
+
*/
|
|
910
|
+
getSize(t, e) {
|
|
911
|
+
const s = this.data.image.value;
|
|
912
|
+
return typeof s == "object" ? s.height < s.width ? `auto ${e}` : `${t} auto` : null;
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* Returns sizes according to the coordinator property.
|
|
916
|
+
*
|
|
917
|
+
* Возвращает размеры по свойству координатора.
|
|
918
|
+
*/
|
|
919
|
+
getSizeByCoordinator() {
|
|
920
|
+
const {
|
|
921
|
+
width: t,
|
|
922
|
+
height: e
|
|
923
|
+
} = this.coordinator.getSize();
|
|
924
|
+
return this.getSize(t, e);
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Returns the scaling sizes.
|
|
928
|
+
*
|
|
929
|
+
* Возвращает размеры масштабирования.
|
|
930
|
+
*/
|
|
931
|
+
getSizeForItem() {
|
|
932
|
+
const t = this.props.size;
|
|
933
|
+
return F(t) ? t.toString().match(/%$/) ? this.getSize(t, t) : t.toString() : null;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
class et {
|
|
937
|
+
constructor(t, e, s, n, c) {
|
|
938
|
+
i(this, "lazyInit", I(!1));
|
|
939
|
+
i(this, "lazyStatus");
|
|
940
|
+
/**
|
|
941
|
+
* Determines whether to use the img tag/ Определяет, использовать ли тег img
|
|
942
|
+
*/
|
|
943
|
+
i(this, "is", h(() => !!this.props.tagImg && this.isType()));
|
|
944
|
+
/**
|
|
945
|
+
* Determines whether lazy loading is enabled/ Определяет, включена ли ленивя загрузка
|
|
946
|
+
*/
|
|
947
|
+
i(this, "isLazy", h(() => !!this.props.lazy && !this.lazyInit.value));
|
|
948
|
+
/**
|
|
949
|
+
* Determines whether to use the picture tag/ Определяет, использовать ли тег picture
|
|
950
|
+
*/
|
|
951
|
+
i(this, "isPicture", h(() => this.is.value && !!this.props.picture));
|
|
952
|
+
/**
|
|
953
|
+
* Calculates all properties for binding to the element/
|
|
954
|
+
* Вычисляет все свойства для привязки к элементу
|
|
955
|
+
*/
|
|
956
|
+
i(this, "binds", h(
|
|
957
|
+
() => {
|
|
958
|
+
var e;
|
|
959
|
+
const t = {
|
|
960
|
+
key: "img"
|
|
961
|
+
};
|
|
962
|
+
return this.is.value && (t.src = this.background.imageSrc.value, t.alt = (e = this.props.alt) != null ? e : "", t.width = "100%", t.height = "100%", t.style = this.styles.value, this.props.lazy && (t.loading = this.isLazy.value ? "lazy" : "auto"), this.props.srcset && (t.srcset = this.getSrcset())), t;
|
|
963
|
+
}
|
|
964
|
+
));
|
|
965
|
+
/**
|
|
966
|
+
* Calculates the picture sources for different resolutions/
|
|
967
|
+
* Вычисляет источники picture для разных разрешений
|
|
968
|
+
*/
|
|
969
|
+
i(this, "picture", h(() => {
|
|
970
|
+
if (this.props.picture)
|
|
971
|
+
return M(this.props.picture) ? this.props.picture : O(
|
|
972
|
+
this.props.picture,
|
|
973
|
+
(t, e) => ({
|
|
974
|
+
key: e,
|
|
975
|
+
srcset: t,
|
|
976
|
+
media: `(width >= ${e})`
|
|
977
|
+
})
|
|
978
|
+
);
|
|
979
|
+
}));
|
|
980
|
+
/**
|
|
981
|
+
* Calculates styles for binding to the element.
|
|
982
|
+
*
|
|
983
|
+
* Вычисляет стили для привязки к элементу.
|
|
984
|
+
*/
|
|
985
|
+
i(this, "styles", h(() => {
|
|
986
|
+
const t = {
|
|
987
|
+
"object-position": `${this.position.x.value} ${this.position.y.value}`,
|
|
988
|
+
"--sys-transform-originX": this.position.x.value,
|
|
989
|
+
"--sys-transform-originY": this.position.y.value
|
|
990
|
+
};
|
|
991
|
+
return this.isSize() && (t["--sys-transform-scale"] = this.getSize()), t;
|
|
992
|
+
}));
|
|
993
|
+
this.props = t, this.element = e, this.type = s, this.position = n, this.background = c;
|
|
994
|
+
const {
|
|
995
|
+
lazy: g,
|
|
996
|
+
preloadOffset: m
|
|
997
|
+
} = W(t);
|
|
998
|
+
k(
|
|
999
|
+
[g, m, e],
|
|
1000
|
+
() => {
|
|
1001
|
+
var u;
|
|
1002
|
+
this.props.lazy && this.element.value ? this.makeLazy() : (this.lazyInit.value = !1, (u = this.lazyStatus) == null || u.stop(), this.lazyStatus = void 0);
|
|
1003
|
+
},
|
|
1004
|
+
{ immediate: !0 }
|
|
1005
|
+
);
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* Checks if the type is file or image.
|
|
1009
|
+
*
|
|
1010
|
+
* Проверяет, является ли тип файлом или изображением.
|
|
1011
|
+
*/
|
|
1012
|
+
isType() {
|
|
1013
|
+
const t = this.type.item.value;
|
|
1014
|
+
return t === a.file || t === a.image;
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Checks if the size is contained or cover.
|
|
1018
|
+
*
|
|
1019
|
+
* Проверяет, является ли размер contain или cover.
|
|
1020
|
+
*/
|
|
1021
|
+
isSize() {
|
|
1022
|
+
const t = this.background.size.value;
|
|
1023
|
+
return !!(t && t.match("[% ]"));
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Returns the value for the transform scale.
|
|
1027
|
+
*
|
|
1028
|
+
* Возвращает значение для свойства transform scale.
|
|
1029
|
+
*/
|
|
1030
|
+
getSize() {
|
|
1031
|
+
var t, e;
|
|
1032
|
+
return (e = (t = this.background.size.value) == null ? void 0 : t.replace("auto", "")) == null ? void 0 : e.trim();
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* Returns the srcset attribute value.
|
|
1036
|
+
*
|
|
1037
|
+
* Возвращает значение атрибута srcset.
|
|
1038
|
+
*/
|
|
1039
|
+
getSrcset() {
|
|
1040
|
+
if (this.props.srcset)
|
|
1041
|
+
return typeof this.props.srcset == "string" ? this.props.srcset : Object.entries(this.props.srcset).map(([t, e]) => `${e} ${this.toSrcsetKey(t)}`).join(", ");
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
* Converts the srcset key to a string.
|
|
1045
|
+
*
|
|
1046
|
+
* Преобразует ключ srcset в строку.
|
|
1047
|
+
* @param key key/ ключ
|
|
1048
|
+
*/
|
|
1049
|
+
toSrcsetKey(t) {
|
|
1050
|
+
return U(t) ? `${t}w` : String(t);
|
|
1051
|
+
}
|
|
1052
|
+
/**
|
|
1053
|
+
* Initializes lazy loading.
|
|
1054
|
+
*
|
|
1055
|
+
* Инициализирует ленивую загрузку.
|
|
1056
|
+
*/
|
|
1057
|
+
makeLazy() {
|
|
1058
|
+
const t = G(this.element, `${this.props.preloadOffset} 0px`).lazyItemStatus;
|
|
1059
|
+
this.lazyStatus = k(t, () => {
|
|
1060
|
+
this.lazyInit.value = t.value;
|
|
1061
|
+
}, { immediate: !0 });
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
let it = class {
|
|
1065
|
+
/**
|
|
1066
|
+
* Constructor
|
|
1067
|
+
* @param props input data/ входные данные
|
|
1068
|
+
* @param element input element/ элемент ввода
|
|
1069
|
+
* @param className class name/ название класса
|
|
1070
|
+
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
1071
|
+
* @param ImageTypeConstructor class for working with image type/ класс для работы с типом изображения
|
|
1072
|
+
* @param ImageDataConstructor class for working with image data/ класс для работы с данными изображения
|
|
1073
|
+
* @param ImageCoordinatorConstructor class for working with image coordinates/ класс для работы с координатами изображения
|
|
1074
|
+
* @param ImagePositionConstructor class for working with image position/ класс для работы с позицией изображения
|
|
1075
|
+
* @param ImageAdaptiveItemConstructor class for working with adaptive image item/ класс для работы с адаптивным элементом изображения
|
|
1076
|
+
* @param ImageBackgroundConstructor class for working with image background/ класс для работы с фоном изображения
|
|
1077
|
+
* @param ImageImgConstructor class for working with image tag/ класс для работы с тегом изображения
|
|
1078
|
+
*/
|
|
1079
|
+
constructor(t, e, s, n, c = Y, g = q, m = Z, u = J, v = V, y = tt, b = et) {
|
|
1080
|
+
i(this, "type");
|
|
1081
|
+
i(this, "data");
|
|
1082
|
+
i(this, "coordinator");
|
|
1083
|
+
i(this, "position");
|
|
1084
|
+
i(this, "adaptiveItem");
|
|
1085
|
+
i(this, "background");
|
|
1086
|
+
i(this, "img");
|
|
1087
|
+
/**
|
|
1088
|
+
* Determines the tag to use/ Определяет используемый тег
|
|
1089
|
+
*/
|
|
1090
|
+
i(this, "tag", h(() => this.img.is.value ? "img" : "span"));
|
|
1091
|
+
/**
|
|
1092
|
+
* Values for the text. Text is used for the type of icon that works as a background.
|
|
1093
|
+
*
|
|
1094
|
+
* Значения для текста. Текст используется для типа иконки, который работает как фон.
|
|
1095
|
+
*/
|
|
1096
|
+
i(this, "text", h(() => {
|
|
1097
|
+
const t = this.type.item.value;
|
|
1098
|
+
if (t === a.pdf) {
|
|
1099
|
+
const s = this.data.image.value;
|
|
1100
|
+
if (p(s))
|
|
1101
|
+
return s;
|
|
1102
|
+
}
|
|
1103
|
+
const e = this.props.value;
|
|
1104
|
+
if (t === a.flagCompressed && e)
|
|
1105
|
+
return String(e).replace("f-", "").toUpperCase();
|
|
1106
|
+
if (t && p(e) && [
|
|
1107
|
+
"filled",
|
|
1108
|
+
"outlined",
|
|
1109
|
+
"round",
|
|
1110
|
+
"sharp",
|
|
1111
|
+
"two-tone",
|
|
1112
|
+
"material"
|
|
1113
|
+
].indexOf(t) !== -1)
|
|
1114
|
+
return e.replace(/^(filled|outlined|round|sharp|two-tone)-/, "");
|
|
1115
|
+
}));
|
|
1116
|
+
/**
|
|
1117
|
+
* Values for the class.
|
|
1118
|
+
*
|
|
1119
|
+
* Значения для класса.
|
|
1120
|
+
*/
|
|
1121
|
+
i(this, "classes", h(() => {
|
|
1122
|
+
const t = this.type.item.value, e = {
|
|
1123
|
+
[`${this.className}--type--${t}`]: t !== void 0,
|
|
1124
|
+
[`${this.className}--background`]: this.background.isImage(),
|
|
1125
|
+
notranslate: !0
|
|
1126
|
+
};
|
|
1127
|
+
switch (this.img.is.value && (e[`${this.className}--img`] = !0), t) {
|
|
1128
|
+
case "outlined":
|
|
1129
|
+
e["material-symbols-outlined"] = !0;
|
|
1130
|
+
break;
|
|
1131
|
+
case "round":
|
|
1132
|
+
e["material-symbols-rounded"] = !0;
|
|
1133
|
+
break;
|
|
1134
|
+
case "sharp":
|
|
1135
|
+
e["material-symbols-sharp"] = !0;
|
|
1136
|
+
break;
|
|
1137
|
+
case "material":
|
|
1138
|
+
e["material-icons"] = !0;
|
|
1139
|
+
break;
|
|
1140
|
+
}
|
|
1141
|
+
return e;
|
|
1142
|
+
}));
|
|
1143
|
+
/**
|
|
1144
|
+
* Calculates all properties for the style of the element/
|
|
1145
|
+
* Вычисляет все свойства для стиля элемента
|
|
1146
|
+
*/
|
|
1147
|
+
i(this, "styles", h(() => {
|
|
1148
|
+
const t = this.props.value;
|
|
1149
|
+
if (t)
|
|
1150
|
+
switch (this.type.item.value) {
|
|
1151
|
+
case a.file:
|
|
1152
|
+
case a.image:
|
|
1153
|
+
return {
|
|
1154
|
+
"background-image": this.background.image.value,
|
|
1155
|
+
"background-size": this.background.size.value,
|
|
1156
|
+
"background-position-x": this.position.x.value,
|
|
1157
|
+
"background-position-y": this.position.y.value
|
|
1158
|
+
};
|
|
1159
|
+
case a.icon:
|
|
1160
|
+
return {
|
|
1161
|
+
"background-image": this.background.image.value
|
|
1162
|
+
};
|
|
1163
|
+
case a.flag:
|
|
1164
|
+
return {
|
|
1165
|
+
"background-image": this.background.image.value,
|
|
1166
|
+
"background-size": "contain"
|
|
1167
|
+
};
|
|
1168
|
+
case a.public:
|
|
1169
|
+
return { "mask-image": this.background.image.value };
|
|
1170
|
+
case a.color:
|
|
1171
|
+
if (p(t))
|
|
1172
|
+
return { "background-color": t };
|
|
1173
|
+
}
|
|
1174
|
+
return {};
|
|
1175
|
+
}));
|
|
1176
|
+
/**
|
|
1177
|
+
* Computed bindings for the image element.
|
|
1178
|
+
*
|
|
1179
|
+
* Вычисляемые привязки для элемента изображения.
|
|
1180
|
+
*/
|
|
1181
|
+
i(this, "binds", h(() => ({
|
|
1182
|
+
translate: "no",
|
|
1183
|
+
...z.role("img"),
|
|
1184
|
+
...z.label(this.props.alt),
|
|
1185
|
+
...z.hidden()
|
|
1186
|
+
})));
|
|
1187
|
+
/**
|
|
1188
|
+
* Bindings for the image value.
|
|
1189
|
+
*
|
|
1190
|
+
* Привязки для значения изображения.
|
|
1191
|
+
*/
|
|
1192
|
+
i(this, "valueBinds", h(() => ({
|
|
1193
|
+
key: "value",
|
|
1194
|
+
data: this.data.image.value
|
|
1195
|
+
})));
|
|
1196
|
+
this.props = t, this.element = e, this.className = s, this.emits = n, this.ImageTypeConstructor = c, this.ImageDataConstructor = g, this.ImageCoordinatorConstructor = m, this.ImagePositionConstructor = u, this.ImageAdaptiveItemConstructor = v, this.ImageBackgroundConstructor = y, this.ImageImgConstructor = b, this.type = new c(t), this.data = new g(t, this.type), this.coordinator = new m(t), this.position = new u(t, this.coordinator), this.adaptiveItem = new v(
|
|
1197
|
+
t,
|
|
1198
|
+
this.data,
|
|
1199
|
+
e
|
|
1200
|
+
), this.background = new y(
|
|
1201
|
+
t,
|
|
1202
|
+
this.data,
|
|
1203
|
+
this.coordinator,
|
|
1204
|
+
this.adaptiveItem
|
|
1205
|
+
), this.img = new b(
|
|
1206
|
+
this.props,
|
|
1207
|
+
e,
|
|
1208
|
+
this.type,
|
|
1209
|
+
this.position,
|
|
1210
|
+
this.background
|
|
1211
|
+
), n && k(this.data.image, (w) => {
|
|
1212
|
+
n("load", {
|
|
1213
|
+
type: this.type.item.value,
|
|
1214
|
+
image: w
|
|
1215
|
+
});
|
|
1216
|
+
}), R(() => this.adaptiveItem.remove());
|
|
1217
|
+
}
|
|
1218
|
+
};
|
|
1219
|
+
class ct extends X {
|
|
1220
|
+
/**
|
|
1221
|
+
* Constructor
|
|
1222
|
+
* @param name class name/ название класса
|
|
1223
|
+
* @param props properties/ свойства
|
|
1224
|
+
* @param options list of additional parameters/ список дополнительных параметров
|
|
1225
|
+
* @param ItemConstructor image item class/ класс элемента изображения
|
|
1226
|
+
*/
|
|
1227
|
+
constructor(e, s, n, c = it) {
|
|
1228
|
+
super(
|
|
1229
|
+
e,
|
|
1230
|
+
s,
|
|
1231
|
+
n
|
|
1232
|
+
);
|
|
1233
|
+
i(this, "item");
|
|
1234
|
+
/**
|
|
1235
|
+
* Properties for the image tag.
|
|
1236
|
+
*
|
|
1237
|
+
* Свойства для тега image.
|
|
1238
|
+
*/
|
|
1239
|
+
i(this, "propsImage", h(() => {
|
|
1240
|
+
var e;
|
|
1241
|
+
return {
|
|
1242
|
+
...this.getAttrs(),
|
|
1243
|
+
ref: this.element,
|
|
1244
|
+
key: "image",
|
|
1245
|
+
class: (e = this.classes) == null ? void 0 : e.value.main
|
|
1246
|
+
};
|
|
1247
|
+
}));
|
|
1248
|
+
/**
|
|
1249
|
+
* Main properties.
|
|
1250
|
+
*
|
|
1251
|
+
* Основные свойства.
|
|
1252
|
+
*/
|
|
1253
|
+
i(this, "propsMain", h(() => {
|
|
1254
|
+
var e;
|
|
1255
|
+
return {
|
|
1256
|
+
...this.propsImage.value,
|
|
1257
|
+
...this.item.binds.value,
|
|
1258
|
+
style: (e = this.styles) == null ? void 0 : e.value
|
|
1259
|
+
};
|
|
1260
|
+
}));
|
|
1261
|
+
/**
|
|
1262
|
+
* Rendering the picture tag.
|
|
1263
|
+
*
|
|
1264
|
+
* Рендеринг тега picture.
|
|
1265
|
+
*/
|
|
1266
|
+
i(this, "renderPicture", () => {
|
|
1267
|
+
const e = this.item.img.picture.value, s = [];
|
|
1268
|
+
return e && e.forEach(
|
|
1269
|
+
(n) => s.push(f("source", n))
|
|
1270
|
+
), s.push(this.renderImgItem()), f("picture", this.propsImage.value, s);
|
|
1271
|
+
});
|
|
1272
|
+
/**
|
|
1273
|
+
* Rendering the img tag.
|
|
1274
|
+
*
|
|
1275
|
+
* Рендеринг тега img.
|
|
1276
|
+
*/
|
|
1277
|
+
i(this, "renderImg", () => f("span", this.propsImage.value, this.renderImgItem()));
|
|
1278
|
+
/**
|
|
1279
|
+
* Rendering the img item.
|
|
1280
|
+
*
|
|
1281
|
+
* Рендеринг элемента img.
|
|
1282
|
+
*/
|
|
1283
|
+
i(this, "renderImgItem", () => f("img", this.item.img.binds.value));
|
|
1284
|
+
/**
|
|
1285
|
+
* Rendering the value for the component.
|
|
1286
|
+
*
|
|
1287
|
+
* Рендеринг значения для компонента.
|
|
1288
|
+
*/
|
|
1289
|
+
i(this, "renderValue", () => this.item.type.item.value === a.pdf ? f(
|
|
1290
|
+
"object",
|
|
1291
|
+
this.item.valueBinds.value
|
|
1292
|
+
) : this.item.type.item.value === a.flagCompressed ? f(
|
|
1293
|
+
"span",
|
|
1294
|
+
{ class: `ui-sys-flags ui-sys-flags--${this.item.text.value}` }
|
|
1295
|
+
) : this.item.text.value);
|
|
1296
|
+
this.item = new c(
|
|
1297
|
+
this.props,
|
|
1298
|
+
this.element,
|
|
1299
|
+
this.getName(),
|
|
1300
|
+
this.emits
|
|
1301
|
+
), this.init();
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Initialization of all the necessary properties for work
|
|
1305
|
+
*
|
|
1306
|
+
* Инициализация всех необходимых свойств для работы.
|
|
1307
|
+
*/
|
|
1308
|
+
initExpose() {
|
|
1309
|
+
return {
|
|
1310
|
+
type: this.item.type.item,
|
|
1311
|
+
data: this.item.data.image
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Improvement of the obtained list of classes.
|
|
1316
|
+
*
|
|
1317
|
+
* Доработка полученного списка классов.
|
|
1318
|
+
*/
|
|
1319
|
+
initClasses() {
|
|
1320
|
+
return {
|
|
1321
|
+
main: this.item.classes.value
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Refinement of the received list of styles.
|
|
1326
|
+
*
|
|
1327
|
+
* Доработка полученного списка стилей.
|
|
1328
|
+
*/
|
|
1329
|
+
initStyles() {
|
|
1330
|
+
return this.item.styles.value;
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* A method for rendering.
|
|
1334
|
+
*
|
|
1335
|
+
* Метод для рендеринга.
|
|
1336
|
+
*/
|
|
1337
|
+
initRender() {
|
|
1338
|
+
return this.item.img.isPicture.value ? this.renderPicture() : this.item.img.is.value ? this.renderImg() : f(
|
|
1339
|
+
"span",
|
|
1340
|
+
this.propsMain.value,
|
|
1341
|
+
this.renderValue()
|
|
1342
|
+
);
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
export {
|
|
1346
|
+
it as Image,
|
|
1347
|
+
ct as ImageDesign,
|
|
1348
|
+
a as ImageTypeValue,
|
|
1349
|
+
nt as defaultsImage
|
|
1350
|
+
};
|