@dxtmisha/constructor 0.23.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +36 -6
- package/src/classes/AriaStaticInclude.ts +269 -0
- package/src/classes/DescriptionInclude.ts +19 -2
- package/src/classes/EnabledInclude.ts +11 -0
- package/src/classes/EventClickInclude.ts +2 -2
- package/src/classes/LabelHighlightInclude.ts +35 -0
- package/src/classes/LabelInclude.ts +40 -5
- package/src/classes/ModelInclude.ts +50 -1
- package/src/classes/ModelValueInclude.ts +73 -0
- package/src/classes/TabIndexInclude.ts +260 -0
- package/src/classes/TextInclude.ts +102 -0
- package/src/classes/TouchEventInclude.ts +284 -0
- package/src/classes/field/FieldArrowInclude.ts +189 -0
- package/src/classes/field/FieldAttributesInclude.ts +87 -28
- package/src/classes/field/FieldChangeInclude.ts +1 -1
- package/src/classes/field/FieldElementInclude.ts +1 -1
- package/src/classes/field/FieldEventInclude.ts +253 -0
- package/src/classes/field/FieldInputModeInclude.ts +48 -0
- package/src/classes/field/FieldMatchInclude.ts +9 -3
- package/src/classes/field/FieldTypeInclude.ts +11 -6
- package/src/classes/field/FieldValidationInclude.ts +1 -4
- package/src/classes/field/FieldValueInclude.ts +10 -0
- package/src/constructors/Accordion/Accordion.ts +68 -0
- package/src/constructors/Accordion/AccordionDesign.tsx +192 -0
- package/src/constructors/Accordion/basicTypes.ts +0 -0
- package/src/constructors/Accordion/index.ts +5 -0
- package/src/constructors/Accordion/properties.json +16 -0
- package/src/constructors/Accordion/props.ts +55 -0
- package/src/constructors/Accordion/style.scss +12 -0
- package/src/constructors/Accordion/types.ts +63 -0
- package/src/constructors/ActionSheet/ActionSheet.ts +78 -0
- package/src/constructors/ActionSheet/ActionSheetDesign.tsx +125 -0
- package/src/constructors/ActionSheet/basicTypes.ts +0 -0
- package/src/constructors/ActionSheet/index.ts +5 -0
- package/src/constructors/ActionSheet/properties.json +14 -0
- package/src/constructors/ActionSheet/props.ts +44 -0
- package/src/constructors/ActionSheet/style.scss +25 -0
- package/src/constructors/ActionSheet/types.ts +54 -0
- package/src/constructors/Actions/Actions.ts +60 -0
- package/src/constructors/Actions/ActionsDesign.tsx +212 -0
- package/src/constructors/Actions/ActionsInclude.ts +109 -0
- package/src/constructors/Actions/basicTypes.ts +40 -0
- package/src/constructors/Actions/index.ts +6 -0
- package/src/constructors/Actions/properties.json +63 -0
- package/src/constructors/Actions/props.ts +42 -0
- package/src/constructors/Actions/style.scss +11 -0
- package/src/constructors/Actions/types.ts +52 -0
- package/src/constructors/Anchor/Anchor.ts +113 -0
- package/src/constructors/Anchor/AnchorDesign.tsx +242 -0
- package/src/constructors/Anchor/AnchorEvent.ts +76 -0
- package/src/constructors/Anchor/AnchorHref.ts +54 -0
- package/src/constructors/Anchor/AnchorIcon.ts +54 -0
- package/src/constructors/Anchor/AnchorTo.ts +46 -0
- package/src/constructors/Anchor/basicTypes.ts +9 -0
- package/src/constructors/Anchor/index.ts +5 -0
- package/src/constructors/Anchor/properties.json +3 -0
- package/src/constructors/Anchor/props.ts +54 -0
- package/src/constructors/Anchor/style.scss +10 -0
- package/src/constructors/Anchor/types.ts +47 -0
- package/src/constructors/Arrow/Arrow.ts +134 -0
- package/src/constructors/Arrow/ArrowDesign.tsx +226 -0
- package/src/constructors/Arrow/ArrowElement.ts +139 -0
- package/src/constructors/Arrow/ArrowElementTarget.ts +72 -0
- package/src/constructors/Arrow/ArrowEvent.ts +126 -0
- package/src/constructors/Arrow/ArrowInclude.ts +85 -0
- package/src/constructors/Arrow/ArrowParent.ts +100 -0
- package/src/constructors/Arrow/ArrowPosition.ts +231 -0
- package/src/constructors/Arrow/basicTypes.ts +50 -0
- package/src/constructors/Arrow/index.ts +6 -0
- package/src/constructors/Arrow/properties.json +23 -0
- package/src/constructors/Arrow/props.ts +31 -0
- package/src/constructors/Arrow/style.scss +133 -0
- package/src/constructors/Arrow/types.ts +54 -0
- package/src/constructors/Badge/BadgeDesign.tsx +4 -1
- package/src/constructors/Badge/properties.json +36 -36
- package/src/constructors/Badge/props.ts +3 -1
- package/src/constructors/Badge/types.ts +3 -3
- package/src/constructors/Bars/Bars.ts +10 -4
- package/src/constructors/Bars/BarsDesign.tsx +17 -11
- package/src/constructors/Bars/BarsInclude.ts +5 -2
- package/src/constructors/Bars/properties.json +6 -6
- package/src/constructors/Bars/props.ts +3 -1
- package/src/constructors/Bars/style.scss +4 -0
- package/src/constructors/Bars/types.ts +3 -3
- package/src/constructors/Block/Block.ts +105 -0
- package/src/constructors/Block/BlockDesign.tsx +219 -0
- package/src/constructors/Block/basicTypes.ts +0 -0
- package/src/constructors/Block/index.ts +5 -0
- package/src/constructors/Block/properties.json +10 -0
- package/src/constructors/Block/props.ts +46 -0
- package/src/constructors/Block/style.scss +11 -0
- package/src/constructors/Block/types.ts +64 -0
- package/src/constructors/Button/Button.ts +26 -2
- package/src/constructors/Button/ButtonDesign.tsx +11 -6
- package/src/constructors/Button/ButtonInclude.ts +8 -5
- package/src/constructors/Button/index.ts +1 -0
- package/src/constructors/Button/properties.json +84 -84
- package/src/constructors/Button/props.ts +5 -1
- package/src/constructors/Button/style.scss +1 -1
- package/src/constructors/Button/types.ts +2 -2
- package/src/constructors/Cell/Cell.ts +23 -6
- package/src/constructors/Cell/CellDesign.tsx +53 -22
- package/src/constructors/Cell/basicTypes.ts +33 -0
- package/src/constructors/Cell/properties.json +52 -52
- package/src/constructors/Cell/props.ts +16 -13
- package/src/constructors/Cell/style.scss +1 -1
- package/src/constructors/Cell/types.ts +3 -3
- package/src/constructors/Chip/ChipDesign.tsx +5 -5
- package/src/constructors/Chip/ChipInclude.ts +83 -0
- package/src/constructors/Chip/basicTypes.ts +12 -0
- package/src/constructors/Chip/index.ts +2 -0
- package/src/constructors/Chip/properties.json +3 -3
- package/src/constructors/Chip/types.ts +5 -5
- package/src/constructors/ChipGroup/ChipGroup.ts +74 -0
- package/src/constructors/ChipGroup/ChipGroupDesign.tsx +162 -0
- package/src/constructors/ChipGroup/basicTypes.ts +6 -0
- package/src/constructors/ChipGroup/index.ts +5 -0
- package/src/constructors/ChipGroup/properties.json +3 -0
- package/src/constructors/ChipGroup/props.ts +50 -0
- package/src/constructors/ChipGroup/style.scss +6 -0
- package/src/constructors/ChipGroup/types.ts +47 -0
- package/src/constructors/Dialog/Dialog.ts +145 -0
- package/src/constructors/Dialog/DialogDesign.tsx +135 -0
- package/src/constructors/Dialog/basicTypes.ts +0 -0
- package/src/constructors/Dialog/index.ts +5 -0
- package/src/constructors/Dialog/properties.json +23 -0
- package/src/constructors/Dialog/props.ts +76 -0
- package/src/constructors/Dialog/style.scss +18 -0
- package/src/constructors/Dialog/types.ts +67 -0
- package/src/constructors/Field/Field.ts +58 -19
- package/src/constructors/Field/FieldDesign.tsx +35 -17
- package/src/constructors/Field/FieldInclude.ts +141 -11
- package/src/constructors/Field/basicTypes.ts +35 -19
- package/src/constructors/Field/properties.json +92 -86
- package/src/constructors/Field/props.ts +6 -3
- package/src/constructors/Field/style.scss +36 -20
- package/src/constructors/Field/types.ts +13 -13
- package/src/constructors/FieldCounter/FieldCounterDesign.tsx +1 -0
- package/src/constructors/FieldCounter/FieldCounterInclude.ts +3 -1
- package/src/constructors/FieldCounter/basicTypes.ts +1 -0
- package/src/constructors/FieldCounter/properties.json +3 -3
- package/src/constructors/FieldCounter/props.ts +5 -2
- package/src/constructors/FieldCounter/types.ts +1 -1
- package/src/constructors/FieldLabel/FieldLabelDesign.tsx +6 -2
- package/src/constructors/FieldLabel/FieldLabelInclude.ts +13 -4
- package/src/constructors/FieldLabel/properties.json +4 -4
- package/src/constructors/FieldLabel/props.ts +2 -2
- package/src/constructors/FieldLabel/types.ts +2 -2
- package/src/constructors/FieldMessage/FieldMessage.ts +19 -0
- package/src/constructors/FieldMessage/FieldMessageDesign.tsx +36 -4
- package/src/constructors/FieldMessage/FieldMessageInclude.ts +11 -1
- package/src/constructors/FieldMessage/basicTypes.ts +15 -1
- package/src/constructors/FieldMessage/properties.json +10 -9
- package/src/constructors/FieldMessage/props.ts +4 -0
- package/src/constructors/FieldMessage/style.scss +16 -1
- package/src/constructors/FieldMessage/types.ts +4 -2
- package/src/constructors/Icon/Icon.ts +37 -2
- package/src/constructors/Icon/IconDesign.tsx +46 -39
- package/src/constructors/Icon/properties.json +25 -25
- package/src/constructors/Icon/props.ts +22 -16
- package/src/constructors/Icon/types.ts +1 -1
- package/src/constructors/Image/Image.ts +68 -10
- package/src/constructors/Image/ImageBackground.ts +15 -2
- package/src/constructors/Image/ImageCoordinator.ts +4 -2
- package/src/constructors/Image/ImageData.ts +4 -0
- package/src/constructors/Image/ImageDesign.tsx +81 -15
- package/src/constructors/Image/ImageFile.ts +2 -13
- package/src/constructors/Image/ImageImg.ts +218 -0
- package/src/constructors/Image/ImagePdf.ts +2 -2
- package/src/constructors/Image/basicTypes.ts +5 -0
- package/src/constructors/Image/properties.json +17 -17
- package/src/constructors/Image/props.ts +34 -7
- package/src/constructors/Image/style.scss +42 -0
- package/src/constructors/Image/types.ts +1 -1
- package/src/constructors/Input/Input.ts +146 -0
- package/src/constructors/Input/InputDesign.tsx +174 -0
- package/src/constructors/Input/InputPassword.ts +54 -0
- package/src/constructors/Input/basicTypes.ts +3 -0
- package/src/constructors/Input/index.ts +5 -0
- package/src/constructors/Input/properties.json +2 -0
- package/src/constructors/Input/props.ts +53 -0
- package/src/constructors/Input/style.scss +5 -0
- package/src/constructors/Input/types.ts +48 -0
- package/src/constructors/List/List.ts +36 -11
- package/src/constructors/List/ListControl.ts +2 -2
- package/src/constructors/List/ListDesign.tsx +59 -38
- package/src/constructors/List/ListGo.ts +5 -3
- package/src/constructors/List/properties.json +16 -16
- package/src/constructors/List/props.ts +7 -0
- package/src/constructors/List/style.scss +14 -0
- package/src/constructors/List/types.ts +9 -9
- package/src/constructors/ListGroup/ListGroupDesign.tsx +8 -3
- package/src/constructors/ListGroup/basicTypes.ts +7 -0
- package/src/constructors/ListGroup/properties.json +15 -15
- package/src/constructors/ListGroup/props.ts +4 -4
- package/src/constructors/ListGroup/types.ts +2 -1
- package/src/constructors/ListItem/ListItem.ts +67 -7
- package/src/constructors/ListItem/ListItemDesign.tsx +13 -10
- package/src/constructors/ListItem/properties.json +52 -52
- package/src/constructors/ListItem/props.ts +24 -15
- package/src/constructors/ListItem/types.ts +12 -12
- package/src/constructors/ListMenu/ListMenu.ts +2 -1
- package/src/constructors/ListMenu/ListMenuDesign.tsx +3 -3
- package/src/constructors/ListMenu/properties.json +19 -19
- package/src/constructors/ListMenu/types.ts +3 -3
- package/src/constructors/Mask/MaskDesign.tsx +33 -28
- package/src/constructors/Mask/MaskEvent.ts +41 -2
- package/src/constructors/Mask/MaskInclude.ts +147 -0
- package/src/constructors/Mask/basicTypes.ts +19 -1
- package/src/constructors/Mask/properties.json +30 -29
- package/src/constructors/Mask/props.ts +1 -1
- package/src/constructors/Mask/style.scss +2 -4
- package/src/constructors/Mask/types.ts +4 -4
- package/src/constructors/Menu/Menu.ts +17 -5
- package/src/constructors/Menu/MenuDesign.tsx +11 -11
- package/src/constructors/Menu/MenuGo.ts +72 -0
- package/src/constructors/Menu/MenuInclude.ts +20 -10
- package/src/constructors/Menu/MenuSearch.ts +20 -1
- package/src/constructors/Menu/MenuValue.ts +7 -3
- package/src/constructors/Menu/MenuWindow.ts +2 -1
- package/src/constructors/Menu/basicTypes.ts +21 -4
- package/src/constructors/Menu/properties.json +17 -17
- package/src/constructors/Menu/props.ts +15 -3
- package/src/constructors/Menu/types.ts +6 -16
- package/src/constructors/Modal/Modal.ts +53 -0
- package/src/constructors/Modal/ModalAbstract.ts +74 -0
- package/src/constructors/Modal/ModalDesign.tsx +63 -0
- package/src/constructors/Modal/ModalDesignAbstract.tsx +226 -0
- package/src/constructors/Modal/basicTypes.ts +0 -0
- package/src/constructors/Modal/index.ts +5 -0
- package/src/constructors/Modal/properties.json +17 -0
- package/src/constructors/Modal/props.ts +45 -0
- package/src/constructors/Modal/style.scss +20 -0
- package/src/constructors/Modal/types.ts +62 -0
- package/src/constructors/MotionTransform/MotionTransform.ts +65 -8
- package/src/constructors/MotionTransform/MotionTransformDesign.tsx +55 -21
- package/src/constructors/MotionTransform/MotionTransformElement.ts +7 -2
- package/src/constructors/MotionTransform/MotionTransformInclude.ts +2 -1
- package/src/constructors/MotionTransform/MotionTransformState.ts +5 -0
- package/src/constructors/MotionTransform/basicTypes.ts +18 -2
- package/src/constructors/MotionTransform/properties.json +35 -35
- package/src/constructors/MotionTransform/props.ts +13 -7
- package/src/constructors/MotionTransform/style.scss +24 -2
- package/src/constructors/MotionTransform/types.ts +7 -7
- package/src/constructors/Progress/Progress.ts +12 -2
- package/src/constructors/Progress/ProgressDesign.tsx +75 -53
- package/src/constructors/Progress/ProgressInclude.ts +13 -1
- package/src/constructors/Progress/properties.json +47 -47
- package/src/constructors/Progress/props.ts +5 -1
- package/src/constructors/Progress/style.scss +2 -2
- package/src/constructors/Progress/types.ts +4 -4
- package/src/constructors/Ripple/Ripple.ts +1 -1
- package/src/constructors/Ripple/RippleDesign.tsx +7 -4
- package/src/constructors/Ripple/RippleItem.ts +1 -1
- package/src/constructors/Ripple/style.scss +4 -0
- package/src/constructors/Ripple/types.ts +2 -2
- package/src/constructors/Scrollbar/Scrollbar.ts +3 -3
- package/src/constructors/Scrollbar/ScrollbarDesign.tsx +1 -1
- package/src/constructors/Scrollbar/properties.json +33 -33
- package/src/constructors/Scrollbar/types.ts +1 -1
- package/src/constructors/Section/Section.ts +33 -0
- package/src/constructors/Section/SectionDesign.tsx +127 -0
- package/src/constructors/Section/basicTypes.ts +0 -0
- package/src/constructors/Section/index.ts +5 -0
- package/src/constructors/Section/properties.json +2 -0
- package/src/constructors/Section/props.ts +29 -0
- package/src/constructors/Section/style.scss +5 -0
- package/src/constructors/Section/types.ts +47 -0
- package/src/constructors/Select/Select.ts +172 -0
- package/src/constructors/Select/SelectDesign.tsx +288 -0
- package/src/constructors/Select/SelectFilter.ts +43 -0
- package/src/constructors/Select/SelectInput.ts +68 -0
- package/src/constructors/Select/basicTypes.ts +0 -0
- package/src/constructors/Select/index.ts +5 -0
- package/src/constructors/Select/properties.json +3 -0
- package/src/constructors/Select/props.ts +63 -0
- package/src/constructors/Select/style.scss +5 -0
- package/src/constructors/Select/types.ts +53 -0
- package/src/constructors/SelectValue/SelectValue.ts +95 -0
- package/src/constructors/SelectValue/SelectValueDesign.tsx +198 -0
- package/src/constructors/SelectValue/SelectValueInclude.ts +92 -0
- package/src/constructors/SelectValue/basicTypes.ts +17 -0
- package/src/constructors/SelectValue/index.ts +6 -0
- package/src/constructors/SelectValue/properties.json +7 -0
- package/src/constructors/SelectValue/props.ts +48 -0
- package/src/constructors/SelectValue/style.scss +14 -0
- package/src/constructors/SelectValue/types.ts +47 -0
- package/src/constructors/Skeleton/Skeleton.ts +1 -3
- package/src/constructors/Skeleton/SkeletonDesign.tsx +7 -1
- package/src/constructors/Skeleton/SkeletonInclude.ts +5 -0
- package/src/constructors/Skeleton/properties.json +24 -24
- package/src/constructors/Skeleton/types.ts +1 -1
- package/src/constructors/TextareaAutosize/TextareaAutosize.ts +41 -0
- package/src/constructors/TextareaAutosize/TextareaAutosizeDesign.tsx +147 -0
- package/src/constructors/TextareaAutosize/TextareaAutosizeResize.ts +109 -0
- package/src/constructors/TextareaAutosize/TextareaAutosizeValue.ts +69 -0
- package/src/constructors/TextareaAutosize/basicTypes.ts +0 -0
- package/src/constructors/TextareaAutosize/index.ts +5 -0
- package/src/constructors/TextareaAutosize/properties.json +6 -0
- package/src/constructors/TextareaAutosize/props.ts +34 -0
- package/src/constructors/TextareaAutosize/style.scss +31 -0
- package/src/constructors/TextareaAutosize/types.ts +50 -0
- package/src/constructors/Tooltip/Tooltip.ts +138 -0
- package/src/constructors/Tooltip/TooltipClasses.ts +90 -0
- package/src/constructors/Tooltip/TooltipDesign.tsx +198 -0
- package/src/constructors/Tooltip/TooltipEvent.ts +103 -0
- package/src/constructors/Tooltip/TooltipInclude.ts +114 -0
- package/src/constructors/Tooltip/TooltipOpen.ts +128 -0
- package/src/constructors/Tooltip/TooltipPosition.ts +92 -0
- package/src/constructors/Tooltip/TooltipStatus.ts +97 -0
- package/src/constructors/Tooltip/TooltipStyle.ts +123 -0
- package/src/constructors/Tooltip/basicTypes.ts +39 -0
- package/src/constructors/Tooltip/index.ts +6 -0
- package/src/constructors/Tooltip/properties.json +14 -0
- package/src/constructors/Tooltip/props.ts +49 -0
- package/src/constructors/Tooltip/style.scss +43 -0
- package/src/constructors/Tooltip/types.ts +58 -0
- package/src/constructors/Window/Window.ts +52 -16
- package/src/constructors/Window/WindowClasses.ts +33 -0
- package/src/constructors/Window/WindowClient.ts +39 -0
- package/src/constructors/Window/WindowDesign.tsx +31 -14
- package/src/constructors/Window/WindowEsc.ts +114 -0
- package/src/constructors/Window/WindowHidden.ts +120 -0
- package/src/constructors/Window/WindowInclude.ts +2 -2
- package/src/constructors/Window/WindowOpen.ts +10 -1
- package/src/constructors/Window/WindowOrigin.ts +5 -1
- package/src/constructors/Window/WindowStatic.ts +3 -1
- package/src/constructors/Window/WindowVerification.ts +8 -5
- package/src/constructors/Window/basicTypes.ts +26 -16
- package/src/constructors/Window/properties.json +239 -236
- package/src/constructors/Window/props.ts +10 -1
- package/src/constructors/Window/style.scss +11 -0
- package/src/constructors/Window/types.ts +2 -2
- package/src/functions/{getClassTegAStatic.ts → getClassTagAStatic.ts} +1 -1
- package/src/library.ts +13 -1
- package/src/types/ariaTypes.ts +366 -0
- package/src/types/descriptionTypes.ts +8 -0
- package/src/types/fieldTypes.ts +120 -16
- package/src/types/labelTypes.ts +39 -0
- package/src/types/modelTypes.ts +16 -0
- package/src/types/roleTypes.ts +88 -0
- package/src/types/textTypes.ts +33 -0
- package/src/types/touchEventTypes.ts +43 -0
|
@@ -1,86 +1,92 @@
|
|
|
1
|
-
{
|
|
2
|
-
"padding": {
|
|
3
|
-
"_type": "var"
|
|
4
|
-
},
|
|
5
|
-
"space": {
|
|
6
|
-
"_type": "var"
|
|
7
|
-
},
|
|
8
|
-
"height": {
|
|
9
|
-
"_type": "var"
|
|
10
|
-
},
|
|
11
|
-
"border-width": {
|
|
12
|
-
"_type": "var"
|
|
13
|
-
},
|
|
14
|
-
"border-color": {
|
|
15
|
-
"_type": "var"
|
|
16
|
-
},
|
|
17
|
-
"border-opacity": {
|
|
18
|
-
"_type": "var"
|
|
19
|
-
},
|
|
20
|
-
"border-radius": {
|
|
21
|
-
"_type": "var"
|
|
22
|
-
},
|
|
23
|
-
"focusWithin": {
|
|
24
|
-
"_type": "var"
|
|
25
|
-
},
|
|
26
|
-
"validation": {
|
|
27
|
-
"_type": "var"
|
|
28
|
-
},
|
|
29
|
-
"#body": {
|
|
30
|
-
"#input": {},
|
|
31
|
-
"#title": {
|
|
32
|
-
"#label": {
|
|
33
|
-
"#text": {}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"#scoreboard": {
|
|
37
|
-
"#left": {},
|
|
38
|
-
"#right": {},
|
|
39
|
-
"#space": {},
|
|
40
|
-
"#input": {}
|
|
41
|
-
},
|
|
42
|
-
"#border": {}
|
|
43
|
-
},
|
|
44
|
-
"#required": {},
|
|
45
|
-
"focus": {},
|
|
46
|
-
"active": {},
|
|
47
|
-
"~selected": {},
|
|
48
|
-
"readonly": {},
|
|
49
|
-
"disabled": {},
|
|
50
|
-
"~block": {},
|
|
51
|
-
"~isValue": {},
|
|
52
|
-
"~basic": {
|
|
53
|
-
"_category": "style"
|
|
54
|
-
},
|
|
55
|
-
"~boxed": {
|
|
56
|
-
"_category": "style"
|
|
57
|
-
},
|
|
58
|
-
"~tonal": {
|
|
59
|
-
"_category": "style"
|
|
60
|
-
},
|
|
61
|
-
"~filled": {
|
|
62
|
-
"_category": "style"
|
|
63
|
-
},
|
|
64
|
-
"~outlined": {
|
|
65
|
-
"_category": "style"
|
|
66
|
-
},
|
|
67
|
-
"~classic": {
|
|
68
|
-
"_category": "style"
|
|
69
|
-
},
|
|
70
|
-
"~arrowCarousel": {},
|
|
71
|
-
"~arrowStepper": {},
|
|
72
|
-
"~
|
|
73
|
-
"~
|
|
74
|
-
"~
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"~
|
|
80
|
-
"~
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"padding": {
|
|
3
|
+
"_type": "var"
|
|
4
|
+
},
|
|
5
|
+
"space": {
|
|
6
|
+
"_type": "var"
|
|
7
|
+
},
|
|
8
|
+
"height": {
|
|
9
|
+
"_type": "var"
|
|
10
|
+
},
|
|
11
|
+
"border-width": {
|
|
12
|
+
"_type": "var"
|
|
13
|
+
},
|
|
14
|
+
"border-color": {
|
|
15
|
+
"_type": "var"
|
|
16
|
+
},
|
|
17
|
+
"border-opacity": {
|
|
18
|
+
"_type": "var"
|
|
19
|
+
},
|
|
20
|
+
"border-radius": {
|
|
21
|
+
"_type": "var"
|
|
22
|
+
},
|
|
23
|
+
"focusWithin": {
|
|
24
|
+
"_type": "var"
|
|
25
|
+
},
|
|
26
|
+
"validation": {
|
|
27
|
+
"_type": "var"
|
|
28
|
+
},
|
|
29
|
+
"#body": {
|
|
30
|
+
"#input": {},
|
|
31
|
+
"#title": {
|
|
32
|
+
"#label": {
|
|
33
|
+
"#text": {}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"#scoreboard": {
|
|
37
|
+
"#left": {},
|
|
38
|
+
"#right": {},
|
|
39
|
+
"#space": {},
|
|
40
|
+
"#input": {}
|
|
41
|
+
},
|
|
42
|
+
"#border": {}
|
|
43
|
+
},
|
|
44
|
+
"#required": {},
|
|
45
|
+
"focus": {},
|
|
46
|
+
"active": {},
|
|
47
|
+
"~selected": {},
|
|
48
|
+
"readonly": {},
|
|
49
|
+
"disabled": {},
|
|
50
|
+
"~block": {},
|
|
51
|
+
"~isValue": {},
|
|
52
|
+
"~basic": {
|
|
53
|
+
"_category": "style"
|
|
54
|
+
},
|
|
55
|
+
"~boxed": {
|
|
56
|
+
"_category": "style"
|
|
57
|
+
},
|
|
58
|
+
"~tonal": {
|
|
59
|
+
"_category": "style"
|
|
60
|
+
},
|
|
61
|
+
"~filled": {
|
|
62
|
+
"_category": "style"
|
|
63
|
+
},
|
|
64
|
+
"~outlined": {
|
|
65
|
+
"_category": "style"
|
|
66
|
+
},
|
|
67
|
+
"~classic": {
|
|
68
|
+
"_category": "style"
|
|
69
|
+
},
|
|
70
|
+
"~arrowCarousel": {},
|
|
71
|
+
"~arrowStepper": {},
|
|
72
|
+
"~arrowAlign": {
|
|
73
|
+
"~center": {},
|
|
74
|
+
"~right": {},
|
|
75
|
+
"~left": {},
|
|
76
|
+
"_default": "right"
|
|
77
|
+
},
|
|
78
|
+
"~cancel": {
|
|
79
|
+
"~auto": {},
|
|
80
|
+
"~always": {},
|
|
81
|
+
"~none": {},
|
|
82
|
+
"_default": "auto"
|
|
83
|
+
},
|
|
84
|
+
"~align": {
|
|
85
|
+
"~center": {},
|
|
86
|
+
"~right": {},
|
|
87
|
+
"~left": {}
|
|
88
|
+
},
|
|
89
|
+
"~width": {
|
|
90
|
+
"_style": true
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -27,7 +27,8 @@ interface FieldPropsToken {
|
|
|
27
27
|
classic?: boolean
|
|
28
28
|
arrowCarousel?: boolean
|
|
29
29
|
arrowStepper?: boolean
|
|
30
|
-
|
|
30
|
+
arrowAlign?: 'center' | 'right' | 'left'
|
|
31
|
+
cancel?: 'auto' | 'always' | 'none'
|
|
31
32
|
align?: 'center' | 'right' | 'left'
|
|
32
33
|
width?: string | 'custom'
|
|
33
34
|
// :type [!] System label / Системная метка
|
|
@@ -54,6 +55,8 @@ export interface FieldPropsBasic<
|
|
|
54
55
|
disabledNext?: boolean
|
|
55
56
|
|
|
56
57
|
// Style
|
|
58
|
+
id?: string | number
|
|
59
|
+
|
|
57
60
|
counterTop?: boolean
|
|
58
61
|
|
|
59
62
|
cancelShow?: boolean
|
|
@@ -81,8 +84,8 @@ export interface FieldProps extends FieldPropsBasic, FieldPropsToken {
|
|
|
81
84
|
export const defaultsField = {
|
|
82
85
|
...{
|
|
83
86
|
// :default [!] System label / Системная метка
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
arrowAlign: 'right',
|
|
88
|
+
cancel: 'auto'
|
|
86
89
|
// :default [!] System label / Системная метка
|
|
87
90
|
}
|
|
88
91
|
}
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
max-width: 100%;
|
|
106
106
|
|
|
107
107
|
border-radius: inherit;
|
|
108
|
+
outline: transparent solid 0;
|
|
108
109
|
|
|
109
110
|
transition-timing-function: inherit;
|
|
110
111
|
transition-duration: inherit;
|
|
@@ -124,7 +125,9 @@
|
|
|
124
125
|
min-height: ui.v('??height');
|
|
125
126
|
|
|
126
127
|
font: inherit;
|
|
127
|
-
|
|
128
|
+
letter-spacing: inherit;
|
|
129
|
+
text-align: left;
|
|
130
|
+
line-height: calc(#{ui.v('??sys.title.half')} * 2);
|
|
128
131
|
|
|
129
132
|
background-color: transparent;
|
|
130
133
|
border: none;
|
|
@@ -146,6 +149,12 @@
|
|
|
146
149
|
display: none;
|
|
147
150
|
}
|
|
148
151
|
|
|
152
|
+
&__focus {
|
|
153
|
+
@include ui.absolute;
|
|
154
|
+
z-index: 8;
|
|
155
|
+
opacity: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
149
158
|
&__title {
|
|
150
159
|
display: flex;
|
|
151
160
|
@include ui.absoluteTop;
|
|
@@ -355,6 +364,9 @@
|
|
|
355
364
|
|
|
356
365
|
@include ui.focus($this) {
|
|
357
366
|
@include ui.subclass('body') {
|
|
367
|
+
outline-width: ui.v('??focusWithin.outlineWidth');
|
|
368
|
+
@include ui.outlineColor(ui.v('??focusWithin.outlineColor'), ui.v('??focusWithin.outlineOpacity'));
|
|
369
|
+
|
|
358
370
|
&__title {
|
|
359
371
|
@include ui.color(ui.v('??focusWithin.color'), ui.v('??focusWithin.colorOpacity'));
|
|
360
372
|
}
|
|
@@ -514,23 +526,37 @@
|
|
|
514
526
|
width: 100%;
|
|
515
527
|
}
|
|
516
528
|
|
|
517
|
-
&--
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
&
|
|
521
|
-
|
|
529
|
+
&--align {
|
|
530
|
+
&--right {
|
|
531
|
+
@include ui.subclass('body') {
|
|
532
|
+
&__input {
|
|
533
|
+
text-align: right;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
&__scoreboard__space {
|
|
537
|
+
flex-direction: row-reverse;
|
|
522
538
|
}
|
|
523
539
|
}
|
|
540
|
+
|
|
541
|
+
@include ui.subclass('caption') {
|
|
542
|
+
@include ui.textAlign('right');
|
|
543
|
+
}
|
|
524
544
|
}
|
|
525
545
|
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
546
|
+
&--center {
|
|
547
|
+
@include ui.subclass('caption') {
|
|
548
|
+
display: none;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
@include ui.subclass('body') {
|
|
552
|
+
&__input {
|
|
553
|
+
text-align: center;
|
|
554
|
+
}
|
|
529
555
|
}
|
|
530
556
|
}
|
|
531
557
|
}
|
|
532
558
|
|
|
533
|
-
&--
|
|
559
|
+
&--arrowAlign {
|
|
534
560
|
&--right {
|
|
535
561
|
@include ui.subclass('previous') {
|
|
536
562
|
order: 94;
|
|
@@ -542,15 +568,5 @@
|
|
|
542
568
|
order: 6;
|
|
543
569
|
}
|
|
544
570
|
}
|
|
545
|
-
|
|
546
|
-
&--center {
|
|
547
|
-
@include ui.state('arrow') {
|
|
548
|
-
@include ui.subclass('body') {
|
|
549
|
-
&__input {
|
|
550
|
-
text-align: center;
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
571
|
}
|
|
556
572
|
}
|
|
@@ -61,18 +61,18 @@ export interface FieldSlots extends CaptionSlots,
|
|
|
61
61
|
*/
|
|
62
62
|
export type FieldClasses = {
|
|
63
63
|
main: ConstrClass
|
|
64
|
-
// :classes [!] System label / Системная метка
|
|
65
|
-
body: string
|
|
66
|
-
bodyInput: string
|
|
67
|
-
bodyTitle: string
|
|
68
|
-
bodyTitleLabel: string
|
|
69
|
-
bodyTitleLabelText: string
|
|
70
|
-
bodyScoreboard: string
|
|
71
|
-
bodyScoreboardLeft: string
|
|
72
|
-
bodyScoreboardRight: string
|
|
73
|
-
bodyScoreboardSpace: string
|
|
74
|
-
bodyScoreboardInput: string
|
|
75
|
-
bodyBorder: string
|
|
76
|
-
required: string
|
|
64
|
+
// :classes [!] System label / Системная метка
|
|
65
|
+
body: string
|
|
66
|
+
bodyInput: string
|
|
67
|
+
bodyTitle: string
|
|
68
|
+
bodyTitleLabel: string
|
|
69
|
+
bodyTitleLabelText: string
|
|
70
|
+
bodyScoreboard: string
|
|
71
|
+
bodyScoreboardLeft: string
|
|
72
|
+
bodyScoreboardRight: string
|
|
73
|
+
bodyScoreboardSpace: string
|
|
74
|
+
bodyScoreboardInput: string
|
|
75
|
+
bodyBorder: string
|
|
76
|
+
required: string
|
|
77
77
|
// :classes [!] System label / Системная метка
|
|
78
78
|
}
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
DesignComponents,
|
|
5
5
|
getRef,
|
|
6
6
|
isFilled,
|
|
7
|
+
isNull,
|
|
7
8
|
type RefOrNormal,
|
|
8
9
|
toBinds
|
|
9
10
|
} from '@dxtmisha/functional'
|
|
@@ -44,7 +45,7 @@ export class FieldCounterInclude<
|
|
|
44
45
|
readonly isCounter = computed<boolean>(() =>
|
|
45
46
|
Boolean(
|
|
46
47
|
this.props.counterShow && (
|
|
47
|
-
|
|
48
|
+
!isNull(this.props.counter)
|
|
48
49
|
|| isFilled(this.props.maxlength)
|
|
49
50
|
)
|
|
50
51
|
)
|
|
@@ -55,6 +56,7 @@ export class FieldCounterInclude<
|
|
|
55
56
|
return toBinds<PropsExtra>(
|
|
56
57
|
getRef(this.extra),
|
|
57
58
|
{
|
|
59
|
+
id: this.props.counterId,
|
|
58
60
|
counter: this.props.counter,
|
|
59
61
|
maxlength: this.props.maxlength,
|
|
60
62
|
template: this.props.counterTemplate
|
|
@@ -20,6 +20,7 @@ export interface FieldCounterPropsInclude<
|
|
|
20
20
|
counter?: FieldCounterPropsBasic['counter']
|
|
21
21
|
counterShow?: boolean
|
|
22
22
|
counterTemplate?: FieldCounterPropsBasic['template']
|
|
23
|
+
counterId?: string
|
|
23
24
|
maxlength?: FieldCounterPropsBasic['maxlength']
|
|
24
25
|
fieldCounterAttrs?: ConstrBind<FieldCounter>
|
|
25
26
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"white-space": "nowrap"
|
|
3
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"white-space": "nowrap"
|
|
3
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface FieldCounterPropsToken {
|
|
2
|
-
// :type [!] System label / Системная метка
|
|
2
|
+
// :type [!] System label / Системная метка
|
|
3
3
|
// :type [!] System label / Системная метка
|
|
4
4
|
}
|
|
5
5
|
|
|
@@ -9,6 +9,9 @@ export interface FieldCounterPropsBasic {
|
|
|
9
9
|
maxlength?: string | number
|
|
10
10
|
|
|
11
11
|
template?: string
|
|
12
|
+
|
|
13
|
+
// Technical
|
|
14
|
+
id?: string
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
/**
|
|
@@ -26,7 +29,7 @@ export interface FieldCounterProps extends FieldCounterPropsBasic, FieldCounterP
|
|
|
26
29
|
*/
|
|
27
30
|
export const defaultsFieldCounter = {
|
|
28
31
|
...{
|
|
29
|
-
// :default [!] System label / Системная метка
|
|
32
|
+
// :default [!] System label / Системная метка
|
|
30
33
|
// :default [!] System label / Системная метка
|
|
31
34
|
}
|
|
32
35
|
}
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
DesignConstructorAbstract
|
|
6
6
|
} from '@dxtmisha/functional'
|
|
7
7
|
|
|
8
|
+
import { AriaStaticInclude } from '../../classes/AriaStaticInclude'
|
|
8
9
|
import { FieldLabel } from './FieldLabel'
|
|
9
10
|
|
|
10
11
|
import {
|
|
@@ -74,7 +75,9 @@ export class FieldLabelDesign<
|
|
|
74
75
|
* Инициализация всех необходимых свойств для работы.
|
|
75
76
|
*/
|
|
76
77
|
protected initExpose(): EXPOSE {
|
|
77
|
-
return {
|
|
78
|
+
return {
|
|
79
|
+
...this.item.label.expose
|
|
80
|
+
} as EXPOSE
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
/**
|
|
@@ -144,7 +147,8 @@ export class FieldLabelDesign<
|
|
|
144
147
|
h(
|
|
145
148
|
'span',
|
|
146
149
|
{
|
|
147
|
-
class: this.classes?.value.required
|
|
150
|
+
class: this.classes?.value.required,
|
|
151
|
+
...AriaStaticInclude.hidden()
|
|
148
152
|
},
|
|
149
153
|
'*'
|
|
150
154
|
)
|
|
@@ -3,8 +3,10 @@ import {
|
|
|
3
3
|
type ConstrBind,
|
|
4
4
|
DesignComponents,
|
|
5
5
|
getRef,
|
|
6
|
-
isFilled,
|
|
7
|
-
type
|
|
6
|
+
isFilled,
|
|
7
|
+
type RawSlots,
|
|
8
|
+
type RefOrNormal,
|
|
9
|
+
type RefType,
|
|
8
10
|
toBinds
|
|
9
11
|
} from '@dxtmisha/functional'
|
|
10
12
|
|
|
@@ -32,6 +34,8 @@ export class FieldLabelInclude<
|
|
|
32
34
|
* @param components object for working with components/ объект для работы с компонентами
|
|
33
35
|
* @param slots object for working with slots/ объект для работы со слотами
|
|
34
36
|
* @param isCounter whether to display the counter/ отображать ли счетчик
|
|
37
|
+
* @param labelId label identifier/ идентификатор метки
|
|
38
|
+
* @param counterId counter identifier/ идентификатор счетчика
|
|
35
39
|
* @param extra additional parameter or property name/ дополнительный параметр или имя свойства
|
|
36
40
|
* @param index index identifier/ идентификатор индекса
|
|
37
41
|
*/
|
|
@@ -41,6 +45,8 @@ export class FieldLabelInclude<
|
|
|
41
45
|
protected readonly components?: DesignComponents<FieldLabelComponentInclude, Props>,
|
|
42
46
|
protected readonly slots?: FieldLabelSlotsInclude,
|
|
43
47
|
protected readonly isCounter?: RefType<boolean | undefined>,
|
|
48
|
+
protected readonly labelId?: string,
|
|
49
|
+
protected readonly counterId?: string,
|
|
44
50
|
protected readonly extra?: RefOrNormal<PropsExtra>,
|
|
45
51
|
protected readonly index?: string
|
|
46
52
|
) {
|
|
@@ -48,7 +54,7 @@ export class FieldLabelInclude<
|
|
|
48
54
|
}
|
|
49
55
|
|
|
50
56
|
/** Checks if label should be displayed/ Проверяет, надо ли отображать метку */
|
|
51
|
-
readonly is = computed<boolean>(() => isFilled(this.props.label))
|
|
57
|
+
readonly is = computed<boolean>(() => isFilled(this.props.label) || Boolean(this.isCounter?.value))
|
|
52
58
|
|
|
53
59
|
/** Computed bindings for FieldLabel/ Вычисляемые привязки для FieldLabel */
|
|
54
60
|
readonly binds = computed<PropsExtra>(() =>
|
|
@@ -59,7 +65,10 @@ export class FieldLabelInclude<
|
|
|
59
65
|
: {},
|
|
60
66
|
{
|
|
61
67
|
label: this.props.label,
|
|
62
|
-
required: this.props.required
|
|
68
|
+
required: this.props.required,
|
|
69
|
+
|
|
70
|
+
labelId: this.props.labelId ?? this.labelId,
|
|
71
|
+
counterId: this.props.counterId ?? this.counterId
|
|
63
72
|
},
|
|
64
73
|
this.props.fieldLabelAttrs
|
|
65
74
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"#label": {},
|
|
3
|
-
"#required": {}
|
|
4
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"#label": {},
|
|
3
|
+
"#required": {}
|
|
4
|
+
}
|
|
@@ -4,7 +4,7 @@ import type { FieldCounterPropsBasic, FieldCounterPropsInclude } from '../FieldC
|
|
|
4
4
|
import type { SkeletonPropsInclude } from '../Skeleton'
|
|
5
5
|
|
|
6
6
|
interface FieldLabelPropsToken {
|
|
7
|
-
// :type [!] System label / Системная метка
|
|
7
|
+
// :type [!] System label / Системная метка
|
|
8
8
|
// :type [!] System label / Системная метка
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -34,7 +34,7 @@ export interface FieldLabelProps extends FieldLabelPropsBasic, FieldLabelPropsTo
|
|
|
34
34
|
*/
|
|
35
35
|
export const defaultsFieldLabel = {
|
|
36
36
|
...{
|
|
37
|
-
// :default [!] System label / Системная метка
|
|
37
|
+
// :default [!] System label / Системная метка
|
|
38
38
|
// :default [!] System label / Системная метка
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ConstrClass } from '@dxtmisha/functional'
|
|
2
|
-
import type { LabelAlternativeSlots } from '../../types/labelTypes'
|
|
2
|
+
import type { LabelAlternativeSlots, LabelExpose } from '../../types/labelTypes'
|
|
3
3
|
import { type FieldCounterComponentInclude } from '../FieldCounter'
|
|
4
4
|
import { type ProgressComponentInclude } from '../Progress'
|
|
5
5
|
|
|
@@ -24,7 +24,7 @@ export type FieldLabelEmits = {}
|
|
|
24
24
|
*
|
|
25
25
|
* Тип, описывающий доступные свойства.
|
|
26
26
|
*/
|
|
27
|
-
export interface FieldLabelExpose {
|
|
27
|
+
export interface FieldLabelExpose extends LabelExpose {
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -6,6 +6,7 @@ import { FieldMessageMessage } from './FieldMessageMessage'
|
|
|
6
6
|
import { SkeletonInclude } from '../Skeleton'
|
|
7
7
|
|
|
8
8
|
import type { FieldMessageComponents, FieldMessageEmits, FieldMessageSlots } from './types'
|
|
9
|
+
import type { FieldMessageSlot } from './basicTypes'
|
|
9
10
|
import type { FieldMessageProps } from './props'
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -76,4 +77,22 @@ export class FieldMessage {
|
|
|
76
77
|
readonly classes = computed<ConstrClassObject>(() => ({
|
|
77
78
|
[`${this.className}--validation`]: this.message.isValidation.value
|
|
78
79
|
}))
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Data for helper slot/ Данные для слота helper
|
|
83
|
+
*/
|
|
84
|
+
readonly slotHelperData = computed<FieldMessageSlot>(() => ({
|
|
85
|
+
message: this.props.helperMessage,
|
|
86
|
+
helperMessage: this.props.helperMessage,
|
|
87
|
+
validationMessage: this.props.validationMessage
|
|
88
|
+
}))
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Data for validation slot/ Данные для слота validation
|
|
92
|
+
*/
|
|
93
|
+
readonly slotValidationData = computed<FieldMessageSlot>(() => ({
|
|
94
|
+
message: this.props.validationMessage,
|
|
95
|
+
helperMessage: this.props.helperMessage,
|
|
96
|
+
validationMessage: this.props.validationMessage
|
|
97
|
+
}))
|
|
79
98
|
}
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
type FieldMessageExpose,
|
|
18
18
|
type FieldMessageSlots
|
|
19
19
|
} from './types'
|
|
20
|
+
import { AriaStaticInclude } from '../../classes/AriaStaticInclude'
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* FieldMessageDesign
|
|
@@ -87,7 +88,8 @@ export class FieldMessageDesign<
|
|
|
87
88
|
main: this.item.classes.value,
|
|
88
89
|
...{
|
|
89
90
|
// :classes [!] System label / Системная метка
|
|
90
|
-
info: this.getSubClass('info')
|
|
91
|
+
info: this.getSubClass('info'),
|
|
92
|
+
error: this.getSubClass('error')
|
|
91
93
|
// :classes [!] System label / Системная метка
|
|
92
94
|
}
|
|
93
95
|
} as Partial<CLASSES>
|
|
@@ -118,6 +120,7 @@ export class FieldMessageDesign<
|
|
|
118
120
|
},
|
|
119
121
|
[
|
|
120
122
|
...this.renderInfo(),
|
|
123
|
+
...this.renderError(),
|
|
121
124
|
...this.item.fieldCounter.render()
|
|
122
125
|
]
|
|
123
126
|
)
|
|
@@ -135,17 +138,46 @@ export class FieldMessageDesign<
|
|
|
135
138
|
const children: VNode[] = []
|
|
136
139
|
const props: Record<string, any> = {
|
|
137
140
|
key: 'message',
|
|
141
|
+
id: this.props.helperId,
|
|
138
142
|
class: [
|
|
139
143
|
this.classes?.value.info,
|
|
140
144
|
this.item.skeleton.classes.value
|
|
141
145
|
]
|
|
142
146
|
}
|
|
143
147
|
|
|
144
|
-
this.initSlot('helper', children)
|
|
145
|
-
this.initSlot('validation', children)
|
|
148
|
+
this.initSlot('helper', children, this.item.slotHelperData.value)
|
|
146
149
|
|
|
147
150
|
if (children.length < 1) {
|
|
148
|
-
props.innerHTML = this.
|
|
151
|
+
props.innerHTML = this.props.helperMessage
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return [
|
|
155
|
+
h(
|
|
156
|
+
'div',
|
|
157
|
+
props,
|
|
158
|
+
children
|
|
159
|
+
)
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Rendering error.
|
|
165
|
+
*
|
|
166
|
+
* Рендеринг ошибки.
|
|
167
|
+
*/
|
|
168
|
+
protected renderError = (): VNode[] => {
|
|
169
|
+
const children: VNode[] = []
|
|
170
|
+
const props: Record<string, any> = {
|
|
171
|
+
key: 'message',
|
|
172
|
+
id: this.props.validationId,
|
|
173
|
+
class: this.classes?.value.error,
|
|
174
|
+
...AriaStaticInclude.role('alert')
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
this.initSlot('validation', children, this.item.slotValidationData.value)
|
|
178
|
+
|
|
179
|
+
if (children.length < 1) {
|
|
180
|
+
props.innerHTML = this.props.validationMessage
|
|
149
181
|
}
|
|
150
182
|
|
|
151
183
|
return [
|