@dxtmisha/constructor 0.39.3 → 0.39.7
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/dist/{AriaStaticInclude-CFGewqpn.js → AriaStaticInclude-CAURwJMb.js} +47 -9
- package/dist/{BarsInclude-IM3Gdslg.js → BarsInclude-BOEoY-O4.js} +19 -14
- package/dist/{BlockDesign-D67yDT9N.js → BlockDesign-CwRNJi0I.js} +49 -38
- package/dist/ButtonDesign-DgZNw44L.js +198 -0
- package/dist/CaptionInclude-NzS6EYYj.js +70 -0
- package/dist/{DescriptionInclude-DxWNon_J.js → DescriptionInclude-D4ane9aR.js} +20 -30
- package/dist/{EnabledInclude-DGeuJhOr.js → EnabledInclude-Dk-rP4jp.js} +1 -1
- package/dist/{EventClickInclude-eDWqxK0d.js → EventClickInclude-WHJqxZ1b.js} +13 -3
- package/dist/{FieldCounterInclude-BR6n8WlH.js → FieldCounterInclude-D0oojGWY.js} +2 -2
- package/dist/{FieldEventInclude-zg02dtQi.js → FieldEventInclude-DBRqmzpF.js} +11 -8
- package/dist/{FieldInclude-c6DSD0-y.js → FieldInclude-BKoBWZdj.js} +23 -12
- package/dist/{FieldLabelInclude-B4OGaJ1r.js → FieldLabelInclude-Bkxf6rRw.js} +30 -23
- package/dist/{FieldMatchInclude-Vl2gJUaM.js → FieldMatchInclude-GgyucDC_.js} +35 -19
- package/dist/{FieldMessageInclude-CktVHvWW.js → FieldMessageInclude-BJDnir34.js} +34 -28
- package/dist/{LabelHighlightInclude-Dhj3p9NW.js → LabelHighlightInclude-CLmTvW_6.js} +1 -1
- package/dist/{LabelInclude-BtZrrbCf.js → LabelInclude-D-mLvjK5.js} +32 -50
- package/dist/{LabelNumberInclude-DyifvMnr.js → LabelNumberInclude-Cn0qDEgX.js} +1 -1
- package/dist/{ModalDesignAbstract-CjDr5JaN.js → ModalDesignAbstract-D4A_a_rC.js} +42 -42
- package/dist/Plugin-CBNCh_iN.js +628 -0
- package/dist/{ProgressInclude-UBipdctr.js → ProgressInclude-9MfZWtGP.js} +5 -5
- package/dist/{SuffixInclude-C7JNYCJK.js → SuffixInclude-maZ7235l.js} +48 -20
- package/dist/{TabIndexInclude-d7A_R6KD.js → TabIndexInclude-xcSFV8yP.js} +43 -33
- package/dist/TextInclude--GERRCGj.js +146 -0
- package/dist/{WindowEsc-Dp9AvJt7.js → WindowEsc-DTwn4Vsz.js} +2 -2
- package/dist/{WindowInclude-Is5RhGxt.js → WindowInclude-BWm4-0Gh.js} +24 -20
- package/dist/accordion.js +66 -50
- package/dist/actionSheet.js +2 -4
- package/dist/actions.js +38 -36
- package/dist/anchor.js +63 -60
- package/dist/arrow.js +32 -33
- package/dist/badge.js +40 -35
- package/dist/bars.js +91 -57
- package/dist/block.js +1 -1
- package/dist/button.js +12 -15
- package/dist/cell.js +44 -37
- package/dist/chip.js +1 -1
- package/dist/chipGroup.js +25 -21
- package/dist/classes/AriaStaticInclude.d.ts +28 -0
- package/dist/classes/CaptionInclude.d.ts +64 -1
- package/dist/classes/DescriptionInclude.d.ts +4 -16
- package/dist/classes/EventClickInclude.d.ts +8 -0
- package/dist/classes/{field → Field}/FieldInputModeInclude.d.ts +1 -0
- package/dist/classes/LabelInclude.d.ts +4 -17
- package/dist/classes/Plugin/Plugin.d.ts +80 -0
- package/dist/classes/Plugin/PluginCode.d.ts +94 -0
- package/dist/classes/Plugin/PluginComponents.d.ts +38 -0
- package/dist/classes/Plugin/PluginData.d.ts +81 -0
- package/dist/classes/Plugin/PluginImport.d.ts +34 -0
- package/dist/classes/Plugin/PluginStyle.d.ts +71 -0
- package/dist/classes/Plugin/PluginTool.d.ts +42 -0
- package/dist/classes/PrefixInclude.d.ts +9 -1
- package/dist/classes/SuffixInclude.d.ts +9 -1
- package/dist/classes/TabIndexInclude.d.ts +14 -8
- package/dist/classes/TextInclude.d.ts +33 -5
- package/dist/constructors/Accordion/Accordion.d.ts +28 -1
- package/dist/constructors/Accordion/props.d.ts +5 -7
- package/dist/constructors/ActionSheet/props.d.ts +4 -7
- package/dist/constructors/Actions/Actions.d.ts +2 -1
- package/dist/constructors/Actions/ActionsDesign.d.ts +2 -1
- package/dist/constructors/Actions/basicTypes.d.ts +2 -2
- package/dist/constructors/Actions/props.d.ts +6 -7
- package/dist/constructors/Anchor/Anchor.d.ts +0 -7
- package/dist/constructors/Anchor/AnchorIcon.d.ts +4 -4
- package/dist/constructors/Anchor/basicTypes.d.ts +2 -2
- package/dist/constructors/Anchor/props.d.ts +8 -10
- package/dist/constructors/Anchor/types.d.ts +2 -2
- package/dist/constructors/Arrow/Arrow.d.ts +0 -5
- package/dist/constructors/Arrow/basicTypes.d.ts +2 -2
- package/dist/constructors/Arrow/props.d.ts +5 -7
- package/dist/constructors/Badge/Badge.d.ts +5 -1
- package/dist/constructors/Badge/BadgeDesign.d.ts +2 -1
- package/dist/constructors/Badge/basicTypes.d.ts +2 -2
- package/dist/constructors/Badge/props.d.ts +5 -7
- package/dist/constructors/Bars/Bars.d.ts +33 -8
- package/dist/constructors/Bars/BarsAction.d.ts +6 -2
- package/dist/constructors/Bars/BarsDesign.d.ts +2 -1
- package/dist/constructors/Bars/BarsInclude.d.ts +7 -2
- package/dist/constructors/Bars/basicTypes.d.ts +2 -2
- package/dist/constructors/Bars/props.d.ts +5 -8
- package/dist/constructors/Bars/types.d.ts +3 -3
- package/dist/constructors/Block/Block.d.ts +0 -4
- package/dist/constructors/Block/BlockDesign.d.ts +9 -1
- package/dist/constructors/Block/props.d.ts +4 -7
- package/dist/constructors/Block/types.d.ts +3 -3
- package/dist/constructors/Button/Button.d.ts +22 -1
- package/dist/constructors/Button/ButtonDesign.d.ts +2 -1
- package/dist/constructors/Button/basicTypes.d.ts +2 -2
- package/dist/constructors/Button/props.d.ts +7 -11
- package/dist/constructors/Button/types.d.ts +2 -2
- package/dist/constructors/Cell/Cell.d.ts +10 -1
- package/dist/constructors/Cell/CellDesign.d.ts +2 -1
- package/dist/constructors/Cell/props.d.ts +5 -7
- package/dist/constructors/Cell/types.d.ts +3 -3
- package/dist/constructors/Chip/basicTypes.d.ts +2 -2
- package/dist/constructors/Chip/props.d.ts +4 -7
- package/dist/constructors/ChipGroup/ChipGroup.d.ts +4 -1
- package/dist/constructors/ChipGroup/ChipGroupDesign.d.ts +2 -1
- package/dist/constructors/ChipGroup/props.d.ts +4 -7
- package/dist/constructors/Dialog/Dialog.d.ts +1 -2
- package/dist/constructors/Dialog/props.d.ts +5 -7
- package/dist/constructors/Field/Field.d.ts +33 -6
- package/dist/constructors/Field/FieldDesign.d.ts +2 -1
- package/dist/constructors/Field/FieldIcons.d.ts +4 -1
- package/dist/constructors/Field/FieldInclude.d.ts +11 -3
- package/dist/constructors/Field/basicTypes.d.ts +2 -2
- package/dist/constructors/Field/props.d.ts +6 -7
- package/dist/constructors/FieldCounter/FieldCounter.d.ts +22 -1
- package/dist/constructors/FieldCounter/FieldCounterDesign.d.ts +9 -2
- package/dist/constructors/FieldCounter/props.d.ts +10 -7
- package/dist/constructors/FieldCounter/types.d.ts +1 -0
- package/dist/constructors/FieldLabel/FieldLabel.d.ts +5 -1
- package/dist/constructors/FieldLabel/FieldLabelDesign.d.ts +2 -1
- package/dist/constructors/FieldLabel/FieldLabelInclude.d.ts +7 -5
- package/dist/constructors/FieldLabel/basicTypes.d.ts +2 -2
- package/dist/constructors/FieldLabel/props.d.ts +5 -7
- package/dist/constructors/FieldLabel/types.d.ts +2 -2
- package/dist/constructors/FieldMessage/FieldMessage.d.ts +16 -1
- package/dist/constructors/FieldMessage/FieldMessageDesign.d.ts +2 -1
- package/dist/constructors/FieldMessage/FieldMessageInclude.d.ts +8 -9
- package/dist/constructors/FieldMessage/props.d.ts +4 -7
- package/dist/constructors/Icon/Icon.d.ts +7 -2
- package/dist/constructors/Icon/IconLiteInclude.d.ts +1 -2
- package/dist/constructors/Icon/basicTypes.d.ts +6 -6
- package/dist/constructors/Icon/props.d.ts +8 -8
- package/dist/constructors/Icon/types.d.ts +3 -2
- package/dist/constructors/Image/Image.d.ts +0 -7
- package/dist/constructors/Image/basicTypes.d.ts +2 -2
- package/dist/constructors/Image/props.d.ts +5 -7
- package/dist/constructors/Input/Input.d.ts +33 -14
- package/dist/constructors/Input/InputDesign.d.ts +2 -1
- package/dist/constructors/Input/InputPassword.d.ts +5 -2
- package/dist/constructors/Input/props.d.ts +3 -7
- package/dist/constructors/List/List.d.ts +35 -27
- package/dist/constructors/List/ListDesign.d.ts +2 -1
- package/dist/constructors/List/ListFocus.d.ts +10 -2
- package/dist/constructors/List/ListGo.d.ts +22 -4
- package/dist/constructors/List/props.d.ts +8 -8
- package/dist/constructors/ListGroup/ListGroup.d.ts +2 -1
- package/dist/constructors/ListGroup/ListGroupDesign.d.ts +2 -1
- package/dist/constructors/ListGroup/basicTypes.d.ts +2 -2
- package/dist/constructors/ListGroup/props.d.ts +5 -7
- package/dist/constructors/ListItem/ListItem.d.ts +17 -60
- package/dist/constructors/ListItem/props.d.ts +7 -10
- package/dist/constructors/ListMenu/ListMenu.d.ts +3 -1
- package/dist/constructors/ListMenu/ListMenuDesign.d.ts +2 -1
- package/dist/constructors/ListMenu/props.d.ts +4 -7
- package/dist/constructors/Mask/Mask.d.ts +24 -1
- package/dist/constructors/Mask/MaskDesign.d.ts +2 -1
- package/dist/constructors/Mask/MaskInclude.d.ts +2 -2
- package/dist/constructors/Mask/MaskPattern.d.ts +1 -1
- package/dist/constructors/Mask/props.d.ts +5 -7
- package/dist/constructors/Menu/Menu.d.ts +11 -7
- package/dist/constructors/Menu/MenuDesign.d.ts +2 -1
- package/dist/constructors/Menu/MenuRequest.d.ts +1 -5
- package/dist/constructors/Menu/basicTypes.d.ts +2 -2
- package/dist/constructors/Menu/props.d.ts +7 -8
- package/dist/constructors/Modal/ModalDesign.d.ts +1 -1
- package/dist/constructors/Modal/ModalDesignAbstract.d.ts +3 -2
- package/dist/constructors/Modal/props.d.ts +5 -7
- package/dist/constructors/MotionTransform/MotionTransform.d.ts +10 -8
- package/dist/constructors/MotionTransform/MotionTransformDesign.d.ts +13 -2
- package/dist/constructors/MotionTransform/MotionTransformEvent.d.ts +14 -0
- package/dist/constructors/MotionTransform/props.d.ts +6 -8
- package/dist/constructors/Page/props.d.ts +3 -7
- package/dist/constructors/Progress/Progress.d.ts +20 -0
- package/dist/constructors/Progress/ProgressDesign.d.ts +4 -60
- package/dist/constructors/Progress/basicTypes.d.ts +2 -2
- package/dist/constructors/Progress/props.d.ts +7 -9
- package/dist/constructors/Ripple/RippleDesign.d.ts +2 -1
- package/dist/constructors/Ripple/props.d.ts +4 -7
- package/dist/constructors/Scrollbar/Scrollbar.d.ts +3 -1
- package/dist/constructors/Scrollbar/ScrollbarDesign.d.ts +2 -1
- package/dist/constructors/Scrollbar/basicTypes.d.ts +2 -2
- package/dist/constructors/Scrollbar/props.d.ts +5 -7
- package/dist/constructors/Section/props.d.ts +3 -7
- package/dist/constructors/Select/Select.d.ts +19 -8
- package/dist/constructors/Select/SelectDesign.d.ts +2 -1
- package/dist/constructors/Select/SelectInput.d.ts +3 -3
- package/dist/constructors/Select/props.d.ts +4 -7
- package/dist/constructors/SelectValue/SelectValue.d.ts +4 -1
- package/dist/constructors/SelectValue/SelectValueDesign.d.ts +2 -1
- package/dist/constructors/SelectValue/props.d.ts +4 -7
- package/dist/constructors/Skeleton/SkeletonDesign.d.ts +2 -1
- package/dist/constructors/Skeleton/basicTypes.d.ts +2 -2
- package/dist/constructors/Skeleton/props.d.ts +4 -7
- package/dist/constructors/TextareaAutosize/TextareaAutosize.d.ts +3 -1
- package/dist/constructors/TextareaAutosize/TextareaAutosizeDesign.d.ts +2 -1
- package/dist/constructors/TextareaAutosize/props.d.ts +4 -7
- package/dist/constructors/Tooltip/Tooltip.d.ts +82 -13
- package/dist/constructors/Tooltip/TooltipEvent.d.ts +6 -2
- package/dist/constructors/Tooltip/TooltipOpen.d.ts +7 -1
- package/dist/constructors/Tooltip/basicTypes.d.ts +2 -2
- package/dist/constructors/Tooltip/props.d.ts +13 -7
- package/dist/constructors/Window/Window.d.ts +25 -1
- package/dist/constructors/Window/WindowDesign.d.ts +5 -63
- package/dist/constructors/Window/WindowEsc.d.ts +2 -2
- package/dist/constructors/Window/WindowEvent.d.ts +20 -3
- package/dist/constructors/Window/WindowHidden.d.ts +9 -3
- package/dist/constructors/Window/WindowInclude.d.ts +5 -1
- package/dist/constructors/Window/basicTypes.d.ts +7 -3
- package/dist/constructors/Window/props.d.ts +19 -9
- package/dist/dialog.js +4 -4
- package/dist/field.js +161 -126
- package/dist/fieldCounter.js +107 -38
- package/dist/fieldLabel.js +41 -37
- package/dist/fieldMessage.js +87 -65
- package/dist/icon.js +55 -39
- package/dist/image.js +108 -110
- package/dist/input.js +102 -80
- package/dist/library/plugin.d.ts +2 -0
- package/dist/library.d.ts +22 -14
- package/dist/library.js +55 -47
- package/dist/list.js +152 -87
- package/dist/listGroup.js +23 -21
- package/dist/listItem.js +116 -100
- package/dist/listMenu.js +26 -20
- package/dist/mask.js +113 -89
- package/dist/media/styleModification.d.ts +6 -0
- package/dist/menu.js +64 -49
- package/dist/modal.js +9 -9
- package/dist/motionTransform.js +138 -106
- package/dist/page.js +1 -1
- package/dist/plugin.js +4 -0
- package/dist/progress.js +65 -38
- package/dist/ripple.js +4 -3
- package/dist/scrollbar.js +23 -20
- package/dist/section.js +1 -1
- package/dist/select.js +105 -90
- package/dist/selectValue.js +29 -25
- package/dist/skeleton.js +20 -22
- package/dist/textareaAutosize.js +26 -23
- package/dist/tooltip.js +140 -91
- package/dist/types/ariaTypes.d.ts +22 -16
- package/dist/types/captionTypes.d.ts +4 -2
- package/dist/types/descriptionTypes.d.ts +4 -12
- package/dist/types/enabledTypes.d.ts +2 -2
- package/dist/types/eventClickTypes.d.ts +2 -2
- package/dist/types/fieldTypes.d.ts +40 -41
- package/dist/types/labelTypes.d.ts +6 -13
- package/dist/types/modelTypes.d.ts +4 -4
- package/dist/types/pluginTypes.d.ts +17 -0
- package/dist/types/prefixTypes.d.ts +4 -2
- package/dist/types/suffixTypes.d.ts +4 -2
- package/dist/types/textTypes.d.ts +50 -11
- package/dist/window.js +169 -105
- package/package.json +89 -90
- package/src/constructors/Actions/style.scss +0 -1
- package/src/constructors/Bars/style.scss +2 -0
- package/src/constructors/FieldCounter/style.scss +5 -0
- package/src/constructors/Progress/style.scss +2 -0
- package/src/constructors/Tooltip/style.scss +10 -2
- package/src/constructors/Window/style.scss +7 -1
- package/dist/ButtonDesign-DZ7QCmHk.js +0 -169
- package/dist/CaptionInclude-AFVF4qyd.js +0 -52
- package/dist/TextInclude-i1OBAFTG.js +0 -76
- /package/dist/classes/{field → Field}/FieldArrowInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldAttributesInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldChangeInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldCodeInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldElementInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldEventInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldInputCheckInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldMatchInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldPatternInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldTypeInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldValidationInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldValueInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldVisibilityInclude.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isString as e } from "@dxtmisha/functional";
|
|
2
|
-
class
|
|
2
|
+
class l {
|
|
3
3
|
/**
|
|
4
4
|
* Get role by props.
|
|
5
5
|
*
|
|
@@ -33,6 +33,15 @@ class n {
|
|
|
33
33
|
"aria-checked": this.isTrueOrFalse(a)
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Get ARIA controls attribute.
|
|
38
|
+
*
|
|
39
|
+
* Получить атрибут ARIA controls.
|
|
40
|
+
* @param controls ARIA controls attribute/ Атрибут ARIA controls
|
|
41
|
+
*/
|
|
42
|
+
static controls(a) {
|
|
43
|
+
return this.isDataToData("aria-controls", a);
|
|
44
|
+
}
|
|
36
45
|
/**
|
|
37
46
|
* Get ARIA current attribute.
|
|
38
47
|
*
|
|
@@ -70,9 +79,9 @@ class n {
|
|
|
70
79
|
* @param isDisabled is disabled/ является отключенным
|
|
71
80
|
*/
|
|
72
81
|
static disabled(a = !0) {
|
|
73
|
-
return {
|
|
82
|
+
return a ? {
|
|
74
83
|
"aria-disabled": this.isTrueOrFalse(a)
|
|
75
|
-
};
|
|
84
|
+
} : {};
|
|
76
85
|
}
|
|
77
86
|
/**
|
|
78
87
|
* Get ARIA expanded attribute.
|
|
@@ -135,7 +144,7 @@ class n {
|
|
|
135
144
|
static control(a, t, r, i) {
|
|
136
145
|
return {
|
|
137
146
|
id: a,
|
|
138
|
-
|
|
147
|
+
...this.controls(t),
|
|
139
148
|
...this.haspopup(r),
|
|
140
149
|
...this.expanded(i)
|
|
141
150
|
};
|
|
@@ -158,9 +167,16 @@ class n {
|
|
|
158
167
|
* @param live ARIA live attribute/ Атрибут ARIA live
|
|
159
168
|
*/
|
|
160
169
|
static live(a) {
|
|
161
|
-
return
|
|
162
|
-
|
|
163
|
-
|
|
170
|
+
return this.isDataToData("aria-live", a);
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Get ARIA modal attribute.
|
|
174
|
+
*
|
|
175
|
+
* Получить атрибут ARIA modal.
|
|
176
|
+
* @param isModal is modal/ является модальным
|
|
177
|
+
*/
|
|
178
|
+
static ariaModal(a = !0) {
|
|
179
|
+
return this.isDataToData("aria-modal", a);
|
|
164
180
|
}
|
|
165
181
|
/**
|
|
166
182
|
* Get modal role.
|
|
@@ -172,11 +188,33 @@ class n {
|
|
|
172
188
|
*/
|
|
173
189
|
static modal(a = !0, t, r) {
|
|
174
190
|
return {
|
|
175
|
-
...this.
|
|
191
|
+
...this.ariaModal(a),
|
|
176
192
|
...this.labelledby(t),
|
|
177
193
|
...this.describedby(r)
|
|
178
194
|
};
|
|
179
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* Get ARIA multiselectable attribute.
|
|
198
|
+
*
|
|
199
|
+
* Получить атрибут ARIA multiselectable.
|
|
200
|
+
* @param isMultiselectable is multiselectable/ является множественным выбором
|
|
201
|
+
*/
|
|
202
|
+
static multiselectable(a) {
|
|
203
|
+
return {
|
|
204
|
+
"aria-multiselectable": this.isTrueOrFalse(a)
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Get ARIA selected attribute.
|
|
209
|
+
*
|
|
210
|
+
* Получить атрибут ARIA selected.
|
|
211
|
+
* @param isSelected is selected/ является выбранным
|
|
212
|
+
*/
|
|
213
|
+
static selected(a) {
|
|
214
|
+
return {
|
|
215
|
+
"aria-selected": this.isTrueOrFalse(a)
|
|
216
|
+
};
|
|
217
|
+
}
|
|
180
218
|
/**
|
|
181
219
|
* Returns ARIA value now, min and max.
|
|
182
220
|
*
|
|
@@ -215,5 +253,5 @@ class n {
|
|
|
215
253
|
}
|
|
216
254
|
}
|
|
217
255
|
export {
|
|
218
|
-
|
|
256
|
+
l as A
|
|
219
257
|
};
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var r = (
|
|
4
|
-
import { ref as
|
|
5
|
-
import { toBinds as m, getRef as
|
|
6
|
-
class
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var d = (t, s, i) => s in t ? c(t, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[s] = i;
|
|
3
|
+
var r = (t, s, i) => d(t, typeof s != "symbol" ? s + "" : s, i);
|
|
4
|
+
import { ref as l, computed as a } from "vue";
|
|
5
|
+
import { toBinds as m, getRef as k } from "@dxtmisha/functional";
|
|
6
|
+
class u {
|
|
7
7
|
/**
|
|
8
8
|
* Constructor
|
|
9
9
|
* @param props input parameter/ входной параметр
|
|
10
10
|
* @param className class name/ название класса
|
|
11
11
|
* @param components object for working with components/ объект для работы с компонентами
|
|
12
12
|
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
13
|
-
* @param extra additional parameter or property name/ дополнительный параметр или имя
|
|
13
|
+
* @param extra additional parameter or property name/ дополнительный параметр или имя
|
|
14
|
+
* @param labelId identifier for the label/ идентификатор для метки
|
|
15
|
+
* @param descriptionId identifier for the description/ идентификатор для описания
|
|
14
16
|
* @param index index identifier/ идентификатор индекса
|
|
15
17
|
*/
|
|
16
|
-
constructor(s,
|
|
17
|
-
|
|
18
|
+
constructor(s, i, e, o, p, n, h, b) {
|
|
19
|
+
/** Element reference/ Ссылка на элемент */
|
|
20
|
+
r(this, "element", l());
|
|
18
21
|
/**
|
|
19
22
|
* Checks whether bars should be displayed/
|
|
20
23
|
* Проверяет, нужно ли отображать панели
|
|
@@ -23,11 +26,13 @@ class B {
|
|
|
23
26
|
/** Computed bindings for the bars/ Вычисляемые привязки для панелей */
|
|
24
27
|
r(this, "binds", a(() => ({
|
|
25
28
|
...m(
|
|
26
|
-
|
|
29
|
+
k(this.extra),
|
|
27
30
|
this.props.barsAttrs,
|
|
28
31
|
{ class: `${this.className}__bars` }
|
|
29
32
|
),
|
|
33
|
+
labelId: this.labelId,
|
|
30
34
|
label: this.props.barsLabel,
|
|
35
|
+
descriptionId: this.descriptionId,
|
|
31
36
|
description: this.props.barsDescription,
|
|
32
37
|
backHide: this.props.barsBackHide,
|
|
33
38
|
bars: this.props.barsList
|
|
@@ -57,13 +62,13 @@ class B {
|
|
|
57
62
|
* @param event native mouse event/ native событие мыши
|
|
58
63
|
* @param value payload with { type, value, detail }/ данные события с { type, value, detail }
|
|
59
64
|
*/
|
|
60
|
-
r(this, "onClick", (s,
|
|
65
|
+
r(this, "onClick", (s, i) => {
|
|
61
66
|
var e, o, p;
|
|
62
|
-
(e = this.emits) == null || e.call(this, "bars", s,
|
|
67
|
+
(e = this.emits) == null || e.call(this, "bars", s, i), (o = this.emits) == null || o.call(this, "barsLite", i), i.type === "back" && ((p = this.emits) == null || p.call(this, "barsBack", i));
|
|
63
68
|
});
|
|
64
|
-
this.props = s, this.className =
|
|
69
|
+
this.props = s, this.className = i, this.components = e, this.emits = o, this.extra = p, this.labelId = n, this.descriptionId = h, this.index = b;
|
|
65
70
|
}
|
|
66
71
|
}
|
|
67
72
|
export {
|
|
68
|
-
B
|
|
73
|
+
u as B
|
|
69
74
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var f = (r, s, e) => s in r ? v(r, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[s] = e;
|
|
3
|
+
var t = (r, s, e) => f(r, typeof s != "symbol" ? s + "" : s, e);
|
|
4
4
|
import { computed as o, h as l } from "vue";
|
|
5
|
-
import { DesignConstructorAbstract as
|
|
6
|
-
import { A as
|
|
7
|
-
import { L as
|
|
8
|
-
import { D as C } from "./DescriptionInclude-
|
|
9
|
-
import { C as H } from "./CaptionInclude-
|
|
5
|
+
import { DesignConstructorAbstract as y } from "@dxtmisha/functional";
|
|
6
|
+
import { A as c } from "./AriaStaticInclude-CAURwJMb.js";
|
|
7
|
+
import { L as S } from "./LabelInclude-D-mLvjK5.js";
|
|
8
|
+
import { D as C } from "./DescriptionInclude-D4ane9aR.js";
|
|
9
|
+
import { C as H } from "./CaptionInclude-NzS6EYYj.js";
|
|
10
10
|
import { I } from "./IconInclude-CLqwI29Q.js";
|
|
11
11
|
class k {
|
|
12
12
|
/**
|
|
@@ -24,45 +24,45 @@ class k {
|
|
|
24
24
|
* @param CaptionIncludeConstructor class for working with the caption/ класс для работы с подписью
|
|
25
25
|
* @param IconIncludeConstructor class for working with the icon/ класс для работы с иконкой
|
|
26
26
|
*/
|
|
27
|
-
constructor(
|
|
27
|
+
constructor(s, e, i, a, n, d, h, u, p = S, m = C, b = H, g = I) {
|
|
28
28
|
/**
|
|
29
29
|
* Object for working with label/
|
|
30
30
|
* Объект для работы с меткой
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
t(this, "label");
|
|
33
33
|
/**
|
|
34
34
|
* Object for working with description/
|
|
35
35
|
* Объект для работы с описанием
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
t(this, "description");
|
|
38
38
|
/**
|
|
39
39
|
* Object for working with caption/
|
|
40
40
|
* Объект для работы с подписью
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
t(this, "caption");
|
|
43
43
|
/**
|
|
44
44
|
* Object for working with icon/
|
|
45
45
|
* Объект для работы с иконкой
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
t(this, "icon");
|
|
48
48
|
/**
|
|
49
49
|
* Checks if the headline exists/
|
|
50
50
|
* Проверяет, существует ли заголовок
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
t(this, "isHeadline", o(() => !!(this.props.headline || this.slots && "headline" in this.slots)));
|
|
53
53
|
/**
|
|
54
54
|
* Checks if the header exists/
|
|
55
55
|
* Проверяет, существует ли шапка
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
t(this, "isHeader", o(() => this.label.is.value || this.caption.is.value || this.description.is.value));
|
|
58
58
|
/**
|
|
59
59
|
* Tag name/
|
|
60
60
|
* Название тега
|
|
61
61
|
*/
|
|
62
|
-
|
|
63
|
-
this.props =
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
t(this, "tag", o(() => this.props.tag || "div"));
|
|
63
|
+
this.props = s, this.refs = e, this.element = i, this.classDesign = a, this.className = n, this.components = d, this.slots = h, this.emits = u, this.label = new p(
|
|
64
|
+
s,
|
|
65
|
+
n,
|
|
66
66
|
void 0,
|
|
67
67
|
h,
|
|
68
68
|
void 0,
|
|
@@ -70,10 +70,10 @@ class k {
|
|
|
70
70
|
!0,
|
|
71
71
|
void 0,
|
|
72
72
|
o(() => this.props.tagHeader || "h3")
|
|
73
|
-
), this.caption = new
|
|
73
|
+
), this.caption = new b(s, n, h), this.description = new m(s, n, h), this.icon = new g(s, n, d);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
class
|
|
76
|
+
class P extends y {
|
|
77
77
|
/**
|
|
78
78
|
* Constructor
|
|
79
79
|
* @param name class name/ название класса
|
|
@@ -81,19 +81,19 @@ class R extends f {
|
|
|
81
81
|
* @param options list of additional parameters/ список дополнительных параметров
|
|
82
82
|
* @param ItemConstructor block item class/ класс элемента блока
|
|
83
83
|
*/
|
|
84
|
-
constructor(e, i, a,
|
|
84
|
+
constructor(e, i, a, n = k) {
|
|
85
85
|
super(
|
|
86
86
|
e,
|
|
87
87
|
i,
|
|
88
88
|
a
|
|
89
89
|
);
|
|
90
|
-
|
|
90
|
+
t(this, "item");
|
|
91
91
|
/**
|
|
92
92
|
* Headline rendering.
|
|
93
93
|
*
|
|
94
94
|
* Рендеринг заголовка.
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
t(this, "renderHeadline", () => {
|
|
97
97
|
var e;
|
|
98
98
|
if (this.item.isHeadline.value) {
|
|
99
99
|
const i = [];
|
|
@@ -111,7 +111,7 @@ class R extends f {
|
|
|
111
111
|
*
|
|
112
112
|
* Рендеринг заголовка.
|
|
113
113
|
*/
|
|
114
|
-
|
|
114
|
+
t(this, "renderHeader", () => {
|
|
115
115
|
var e;
|
|
116
116
|
if (this.item.isHeader.value) {
|
|
117
117
|
const i = [
|
|
@@ -123,8 +123,7 @@ class R extends f {
|
|
|
123
123
|
return [
|
|
124
124
|
l("div", {
|
|
125
125
|
key: "header",
|
|
126
|
-
class: (e = this.classes) == null ? void 0 : e.value.header
|
|
127
|
-
...S.labelledby(this.item.label.idElement.value)
|
|
126
|
+
class: (e = this.classes) == null ? void 0 : e.value.header
|
|
128
127
|
}, i)
|
|
129
128
|
];
|
|
130
129
|
}
|
|
@@ -135,7 +134,7 @@ class R extends f {
|
|
|
135
134
|
*
|
|
136
135
|
* Рендеринг правого контента.
|
|
137
136
|
*/
|
|
138
|
-
|
|
137
|
+
t(this, "renderTrailing", () => {
|
|
139
138
|
var i, a;
|
|
140
139
|
const e = [];
|
|
141
140
|
return (i = this.slots) != null && i.trailing && (e.push(l("div", {
|
|
@@ -148,7 +147,7 @@ class R extends f {
|
|
|
148
147
|
*
|
|
149
148
|
* Рендеринг тела.
|
|
150
149
|
*/
|
|
151
|
-
|
|
150
|
+
t(this, "renderBody", () => {
|
|
152
151
|
var i;
|
|
153
152
|
const e = [
|
|
154
153
|
...this.renderHeadline(),
|
|
@@ -162,7 +161,7 @@ class R extends f {
|
|
|
162
161
|
}, e)
|
|
163
162
|
];
|
|
164
163
|
});
|
|
165
|
-
this.item = new
|
|
164
|
+
this.item = new n(
|
|
166
165
|
this.props,
|
|
167
166
|
this.refs,
|
|
168
167
|
this.element,
|
|
@@ -179,10 +178,7 @@ class R extends f {
|
|
|
179
178
|
* Инициализация всех необходимых свойств для работы.
|
|
180
179
|
*/
|
|
181
180
|
initExpose() {
|
|
182
|
-
return {
|
|
183
|
-
...this.item.label.expose,
|
|
184
|
-
...this.item.description.expose
|
|
185
|
-
};
|
|
181
|
+
return {};
|
|
186
182
|
}
|
|
187
183
|
/**
|
|
188
184
|
* Improvement of the obtained list of classes.
|
|
@@ -217,17 +213,32 @@ class R extends f {
|
|
|
217
213
|
* Метод для рендеринга.
|
|
218
214
|
*/
|
|
219
215
|
initRender() {
|
|
220
|
-
var i;
|
|
221
216
|
const e = [
|
|
222
217
|
...this.renderBody()
|
|
223
218
|
];
|
|
224
|
-
return this.initSlot("default", e), l(this.item.tag.value,
|
|
219
|
+
return this.initSlot("default", e), l(this.item.tag.value, this.getProps(), e);
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Returns properties for the main element.
|
|
223
|
+
*
|
|
224
|
+
* Возвращает свойства для главного элемента.
|
|
225
|
+
*/
|
|
226
|
+
getProps() {
|
|
227
|
+
var i;
|
|
228
|
+
const e = {
|
|
225
229
|
...this.getAttrs(),
|
|
226
230
|
class: (i = this.classes) == null ? void 0 : i.value.main
|
|
227
|
-
}
|
|
231
|
+
};
|
|
232
|
+
return this.item.label.is.value && Object.assign(
|
|
233
|
+
e,
|
|
234
|
+
c.labelledby(this.item.label.id.value)
|
|
235
|
+
), this.item.description.is.value && Object.assign(
|
|
236
|
+
e,
|
|
237
|
+
c.describedby(this.item.description.id.value)
|
|
238
|
+
), e;
|
|
228
239
|
}
|
|
229
240
|
}
|
|
230
241
|
export {
|
|
231
242
|
k as B,
|
|
232
|
-
|
|
243
|
+
P as a
|
|
233
244
|
};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
var w = Object.defineProperty;
|
|
2
|
+
var C = (i, t, s) => t in i ? w(i, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[t] = s;
|
|
3
|
+
var e = (i, t, s) => C(i, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
+
import { computed as o, h as S } from "vue";
|
|
5
|
+
import { DesignConstructorAbstract as k, RouterItemRef as B } from "@dxtmisha/functional";
|
|
6
|
+
import { g as y } from "./getClassTagAStatic-BnVYlXHI.js";
|
|
7
|
+
import { L as x } from "./LabelInclude-D-mLvjK5.js";
|
|
8
|
+
import { E } from "./EnabledInclude-Dk-rP4jp.js";
|
|
9
|
+
import { A as h } from "./AriaStaticInclude-CAURwJMb.js";
|
|
10
|
+
import { E as T } from "./EventClickInclude-WHJqxZ1b.js";
|
|
11
|
+
import { I as A } from "./IconTrailingInclude-CdsOcDxv.js";
|
|
12
|
+
import { P as D } from "./ProgressInclude-9MfZWtGP.js";
|
|
13
|
+
import { R as L } from "./RippleInclude-Du5yIzX_.js";
|
|
14
|
+
import { S as R } from "./SkeletonInclude-BIUzAO2s.js";
|
|
15
|
+
class K {
|
|
16
|
+
/**
|
|
17
|
+
* Constructor
|
|
18
|
+
* @param props input data/ входные данные
|
|
19
|
+
* @param refs input data in the form of reactive elements/ входные данные в виде реактивных элементов
|
|
20
|
+
* @param element input element/ элемент ввода
|
|
21
|
+
* @param classDesign design name/ название дизайна
|
|
22
|
+
* @param className class name/ название класса
|
|
23
|
+
* @param components object for working with components/ объект для работы с компонентами
|
|
24
|
+
* @param slots object for working with slots/ объект для работы со слотами
|
|
25
|
+
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
26
|
+
* @param LabelConstructor class for creating a label/ класс для создания метки
|
|
27
|
+
* @param EnabledConstructor class for creating the enabled state/ класс для создания состояния активности
|
|
28
|
+
* @param IconConstructor class for creating an icon/ класс для создания иконки
|
|
29
|
+
* @param ProgressConstructor class for creating a progress indicator/ класс для создания индикатора прогресса
|
|
30
|
+
* @param RippleConstructor class for creating a ripple effect/ класс для создания эффекта волны
|
|
31
|
+
* @param SkeletonConstructor class for creating a skeleton/ класс для создания скелета
|
|
32
|
+
* @param EventConstructor class for creating an event/ класс для создания события
|
|
33
|
+
*/
|
|
34
|
+
constructor(t, s, n, a, r, l, u, c, m = x, d = E, g = A, b = D, v = L, f = R, I = T) {
|
|
35
|
+
e(this, "label");
|
|
36
|
+
e(this, "enabled");
|
|
37
|
+
e(this, "icon");
|
|
38
|
+
e(this, "progress");
|
|
39
|
+
e(this, "ripple");
|
|
40
|
+
e(this, "skeleton");
|
|
41
|
+
e(this, "event");
|
|
42
|
+
/** tag name/ название тега */
|
|
43
|
+
e(this, "tag", o(() => this.props.tag ? this.props.tag : this.props.href ? "a" : "button"));
|
|
44
|
+
/** values for the class/ значения для класса */
|
|
45
|
+
e(this, "classes", o(() => ({
|
|
46
|
+
[`${this.className}--icon`]: this.icon.isIcon.value,
|
|
47
|
+
[y(this.classDesign)]: !0,
|
|
48
|
+
...this.skeleton.classes.value
|
|
49
|
+
})));
|
|
50
|
+
/**
|
|
51
|
+
* list of aria properties for the button component/
|
|
52
|
+
* список aria свойств для компонента Button
|
|
53
|
+
*/
|
|
54
|
+
e(this, "aria", o(() => {
|
|
55
|
+
const t = {
|
|
56
|
+
...this.progress.aria.value,
|
|
57
|
+
...h.label(this.props.ariaLabel)
|
|
58
|
+
};
|
|
59
|
+
return this.isTagNotButton() ? {
|
|
60
|
+
tabindex: "0",
|
|
61
|
+
...t,
|
|
62
|
+
...h.role("button"),
|
|
63
|
+
...h.disabled(this.progress.is.value || !this.enabled.isEnabled.value)
|
|
64
|
+
} : t;
|
|
65
|
+
}));
|
|
66
|
+
/**
|
|
67
|
+
* Events for the button component.
|
|
68
|
+
*
|
|
69
|
+
* События для компонента кнопки.
|
|
70
|
+
*/
|
|
71
|
+
e(this, "eventList", o(() => {
|
|
72
|
+
const t = {
|
|
73
|
+
onClick: this.event.onClick
|
|
74
|
+
};
|
|
75
|
+
return this.isTagNotButton() && (t.onKeydown = this.event.onKeydown), t;
|
|
76
|
+
}));
|
|
77
|
+
this.props = t, this.refs = s, this.element = n, this.classDesign = a, this.className = r, this.components = l, this.slots = u, this.emits = c;
|
|
78
|
+
const p = new b(
|
|
79
|
+
t,
|
|
80
|
+
r,
|
|
81
|
+
l,
|
|
82
|
+
{
|
|
83
|
+
circular: !0,
|
|
84
|
+
inverse: !0
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
this.label = new m(t, r, void 0, u), this.enabled = new d(t, p), this.icon = new g(t, r, l), this.progress = p, this.ripple = new v(r, l, this.enabled), this.skeleton = new f(
|
|
88
|
+
t,
|
|
89
|
+
a,
|
|
90
|
+
["classBackground"]
|
|
91
|
+
), this.event = new I(
|
|
92
|
+
t,
|
|
93
|
+
this.enabled,
|
|
94
|
+
c
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Checks if the tag is not a button or link.
|
|
99
|
+
*
|
|
100
|
+
* Проверяет, не является ли тег кнопкой или ссылкой.
|
|
101
|
+
*/
|
|
102
|
+
isTagNotButton() {
|
|
103
|
+
return !!(this.props.tag && ["a", "button"].indexOf(this.props.tag) === -1);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
class M extends k {
|
|
107
|
+
/**
|
|
108
|
+
* Constructor
|
|
109
|
+
* @param name class name/ название класса
|
|
110
|
+
* @param props properties/ свойства
|
|
111
|
+
* @param options list of additional parameters/ список дополнительных параметров
|
|
112
|
+
* @param ItemConstructor button item class/ класс элемента кнопки
|
|
113
|
+
*/
|
|
114
|
+
constructor(s, n, a, r = K) {
|
|
115
|
+
super(
|
|
116
|
+
s,
|
|
117
|
+
n,
|
|
118
|
+
a
|
|
119
|
+
);
|
|
120
|
+
e(this, "item");
|
|
121
|
+
this.item = new r(
|
|
122
|
+
this.props,
|
|
123
|
+
this.refs,
|
|
124
|
+
this.element,
|
|
125
|
+
this.getDesign(),
|
|
126
|
+
this.getName(),
|
|
127
|
+
this.components,
|
|
128
|
+
this.slots,
|
|
129
|
+
this.emits
|
|
130
|
+
), this.init();
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Initialization of all the necessary properties for work
|
|
134
|
+
*
|
|
135
|
+
* Инициализация всех необходимых свойств для работы.
|
|
136
|
+
*/
|
|
137
|
+
initExpose() {
|
|
138
|
+
return {
|
|
139
|
+
...this.item.event.expose
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Improvement of the obtained list of classes.
|
|
144
|
+
*
|
|
145
|
+
* Доработка полученного списка классов.
|
|
146
|
+
*/
|
|
147
|
+
initClasses() {
|
|
148
|
+
return {
|
|
149
|
+
main: this.item.classes.value,
|
|
150
|
+
// :classes [!] System label / Системная метка
|
|
151
|
+
label: this.getSubClass("label"),
|
|
152
|
+
icon: this.getSubClass("icon"),
|
|
153
|
+
trailing: this.getSubClass("trailing"),
|
|
154
|
+
loading: this.getSubClass("loading")
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Refinement of the received list of styles.
|
|
159
|
+
*
|
|
160
|
+
* Доработка полученного списка стилей.
|
|
161
|
+
*/
|
|
162
|
+
initStyles() {
|
|
163
|
+
return {};
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* A method for rendering.
|
|
167
|
+
*
|
|
168
|
+
* Метод для рендеринга.
|
|
169
|
+
*/
|
|
170
|
+
initRender() {
|
|
171
|
+
var s, n;
|
|
172
|
+
return S(
|
|
173
|
+
this.item.tag.value,
|
|
174
|
+
{
|
|
175
|
+
...this.getAttrs(),
|
|
176
|
+
ref: this.element,
|
|
177
|
+
type: this.props.type,
|
|
178
|
+
class: (s = this.classes) == null ? void 0 : s.value.main,
|
|
179
|
+
style: (n = this.styles) == null ? void 0 : n.value,
|
|
180
|
+
"data-value": this.props.value,
|
|
181
|
+
disabled: this.item.enabled.isDisabledOrUndefined.value,
|
|
182
|
+
...B.rawToHref(this.props.to),
|
|
183
|
+
...this.item.eventList.value,
|
|
184
|
+
...this.item.aria.value
|
|
185
|
+
},
|
|
186
|
+
[
|
|
187
|
+
...this.item.progress.render(),
|
|
188
|
+
...this.item.label.render(),
|
|
189
|
+
...this.item.icon.render(),
|
|
190
|
+
...this.item.ripple.render()
|
|
191
|
+
]
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
export {
|
|
196
|
+
K as B,
|
|
197
|
+
M as a
|
|
198
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var c = (i, t, s) => t in i ? a(i, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[t] = s;
|
|
3
|
+
var n = (i, t, s) => c(i, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
+
import { computed as p } from "vue";
|
|
5
|
+
import { isFilled as l, render as h } from "@dxtmisha/functional";
|
|
6
|
+
import { A as r } from "./AriaStaticInclude-CAURwJMb.js";
|
|
7
|
+
class v {
|
|
8
|
+
/**
|
|
9
|
+
* Constructor
|
|
10
|
+
* @param props input property/ входное свойство
|
|
11
|
+
* @param className class name/ название класса
|
|
12
|
+
* @param slots object for working with slots/ объект для работы со слотами
|
|
13
|
+
* @param skeleton optional skeleton for loading state/ необязательный скелетон для состояния загрузки
|
|
14
|
+
*/
|
|
15
|
+
constructor(t, s, o, e) {
|
|
16
|
+
/**
|
|
17
|
+
* Returns true if the caption is filled
|
|
18
|
+
*
|
|
19
|
+
* Возвращает true, если caption заполнен
|
|
20
|
+
*/
|
|
21
|
+
n(this, "is", p(() => {
|
|
22
|
+
var t;
|
|
23
|
+
return !!(this.props.caption || (t = this.slots) != null && t.caption);
|
|
24
|
+
}));
|
|
25
|
+
/**
|
|
26
|
+
* Returns bindings for the caption element.
|
|
27
|
+
*
|
|
28
|
+
* Возвращает привязки для элемента подписи.
|
|
29
|
+
*/
|
|
30
|
+
n(this, "binds", p(() => {
|
|
31
|
+
var s;
|
|
32
|
+
const t = {
|
|
33
|
+
class: {
|
|
34
|
+
[`${this.className}__caption`]: !0,
|
|
35
|
+
...(s = this.skeleton) == null ? void 0 : s.classes.value
|
|
36
|
+
},
|
|
37
|
+
"data-event-type": "caption"
|
|
38
|
+
};
|
|
39
|
+
return this.props.captionDecorative ? {
|
|
40
|
+
...t,
|
|
41
|
+
...r.hidden()
|
|
42
|
+
} : {
|
|
43
|
+
...t,
|
|
44
|
+
...r.live("polite"),
|
|
45
|
+
...r.atomic(!0)
|
|
46
|
+
};
|
|
47
|
+
}));
|
|
48
|
+
this.props = t, this.className = s, this.slots = o, this.skeleton = e;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Renders caption element with content from props or slots.
|
|
52
|
+
*
|
|
53
|
+
* Отображает элемент caption с содержимым из props или slots.
|
|
54
|
+
*/
|
|
55
|
+
render() {
|
|
56
|
+
var s, o, e;
|
|
57
|
+
const t = [];
|
|
58
|
+
return l(this.props.caption) && t.push(this.props.caption), (s = this.slots) != null && s.caption && t.push((e = (o = this.slots).caption) == null ? void 0 : e.call(o, {})), t.length > 0 ? [
|
|
59
|
+
h(
|
|
60
|
+
"div",
|
|
61
|
+
this.binds.value,
|
|
62
|
+
t,
|
|
63
|
+
"caption"
|
|
64
|
+
)
|
|
65
|
+
] : [];
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
v as C
|
|
70
|
+
};
|