@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
package/dist/icon.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var I = (s, t, i) => t in s ? v(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
|
|
3
|
+
var e = (s, t, i) => I(s, typeof t != "symbol" ? t + "" : t, i);
|
|
4
4
|
import { computed as n, h as A } from "vue";
|
|
5
|
-
import { getBindRef as
|
|
6
|
-
import { A as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { I as
|
|
10
|
-
|
|
5
|
+
import { getBindRef as d, DesignConstructorAbstract as f } from "@dxtmisha/functional";
|
|
6
|
+
import { A as h } from "./AriaStaticInclude-CAURwJMb.js";
|
|
7
|
+
import { E as g } from "./EventClickInclude-WHJqxZ1b.js";
|
|
8
|
+
import { S as y } from "./SkeletonInclude-BIUzAO2s.js";
|
|
9
|
+
import { I as E, a as K } from "./IconInclude-CLqwI29Q.js";
|
|
10
|
+
import { I as O } from "./IconTrailingInclude-CdsOcDxv.js";
|
|
11
|
+
class b {
|
|
11
12
|
/**
|
|
12
13
|
* Constructor
|
|
13
14
|
* @param props input data/ входные данные
|
|
@@ -18,29 +19,34 @@ class g {
|
|
|
18
19
|
* @param components object for working with components/ объект для работы с компонентами
|
|
19
20
|
* @param slots object for working with slots/ объект для работы со слотами
|
|
20
21
|
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
22
|
+
* @param EventClickIncludeConstructor class for working with events/ класс для работы с событиями
|
|
21
23
|
* @param SkeletonIncludeConstructor class for working with Skeleton/ класс для работы с Skeleton
|
|
22
24
|
*/
|
|
23
|
-
constructor(t, i, c, r, o, l,
|
|
25
|
+
constructor(t, i, c, r, o, p, l, a, m = g, u = y) {
|
|
24
26
|
/**
|
|
25
27
|
* Returns the property for the base icon/ Возвращает свойство для базовой иконки
|
|
26
28
|
*/
|
|
27
|
-
|
|
29
|
+
e(this, "iconBind");
|
|
28
30
|
/**
|
|
29
31
|
* Returns the property for the additional icon/ Возвращает свойство для дополнительной иконки
|
|
30
32
|
*/
|
|
31
|
-
|
|
33
|
+
e(this, "iconActiveBind");
|
|
32
34
|
/**
|
|
33
35
|
* An object for working with the Skeleton/ Объект для работы с Skeleton
|
|
34
36
|
*/
|
|
35
|
-
|
|
37
|
+
e(this, "skeleton");
|
|
38
|
+
/**
|
|
39
|
+
* Object for working with events/ Объект для работы с событиями
|
|
40
|
+
*/
|
|
41
|
+
e(this, "event");
|
|
36
42
|
/**
|
|
37
43
|
* Checks if the additional icon is active/ Проверяет, активна ли дополнительная иконка
|
|
38
44
|
*/
|
|
39
|
-
|
|
45
|
+
e(this, "isActive", n(() => !!(this.props.active && this.props.iconActive)));
|
|
40
46
|
/**
|
|
41
47
|
* Values for the class/ Значения для класса
|
|
42
48
|
*/
|
|
43
|
-
|
|
49
|
+
e(this, "classes", n(() => ({
|
|
44
50
|
...this.skeleton.classes.value
|
|
45
51
|
})));
|
|
46
52
|
/**
|
|
@@ -48,24 +54,29 @@ class g {
|
|
|
48
54
|
*
|
|
49
55
|
* Вычисляемые привязки для элемента иконки.
|
|
50
56
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
e(this, "binds", n(() => {
|
|
58
|
+
var t;
|
|
59
|
+
return {
|
|
60
|
+
key: "icon",
|
|
61
|
+
tabindex: this.props.dynamic ? (t = this.props.tabindex) != null ? t : 0 : void 0,
|
|
62
|
+
onClick: this.props.dynamic ? this.event.onClick : void 0,
|
|
63
|
+
onKeydown: this.props.dynamic ? this.event.onKeydown : void 0,
|
|
64
|
+
...h.role(this.getRole()),
|
|
65
|
+
...h.label(this.props.ariaLabel),
|
|
66
|
+
...h.hidden(!this.props.dynamic)
|
|
67
|
+
};
|
|
68
|
+
}));
|
|
58
69
|
/**
|
|
59
70
|
* Triggers an event when the image loading is complete.
|
|
60
71
|
*
|
|
61
72
|
* Вызывает событие, когда завершится загрузка картинки.
|
|
62
73
|
* @param event event object/ объект события
|
|
63
74
|
*/
|
|
64
|
-
|
|
75
|
+
e(this, "onLoad", (t) => {
|
|
65
76
|
var i;
|
|
66
77
|
return (i = this.emits) == null ? void 0 : i.call(this, "load", t);
|
|
67
78
|
});
|
|
68
|
-
this.props = t, this.refs = i, this.element = c, this.classDesign = r, this.className = o, this.components =
|
|
79
|
+
this.props = t, this.refs = i, this.element = c, this.classDesign = r, this.className = o, this.components = p, this.slots = l, this.emits = a, this.iconBind = d(
|
|
69
80
|
i.icon,
|
|
70
81
|
n(() => ({
|
|
71
82
|
key: "mainIcon",
|
|
@@ -75,7 +86,7 @@ class g {
|
|
|
75
86
|
hide: this.isActive.value,
|
|
76
87
|
onLoad: this.onLoad
|
|
77
88
|
}))
|
|
78
|
-
), this.iconActiveBind =
|
|
89
|
+
), this.iconActiveBind = d(
|
|
79
90
|
i.iconActive,
|
|
80
91
|
n(() => ({
|
|
81
92
|
key: "activeIcon",
|
|
@@ -84,7 +95,11 @@ class g {
|
|
|
84
95
|
disabled: this.props.disabled,
|
|
85
96
|
hide: !this.isActive.value
|
|
86
97
|
}))
|
|
87
|
-
), this.
|
|
98
|
+
), this.event = new m(
|
|
99
|
+
t,
|
|
100
|
+
void 0,
|
|
101
|
+
a
|
|
102
|
+
), this.skeleton = new u(
|
|
88
103
|
t,
|
|
89
104
|
r,
|
|
90
105
|
["classBackgroundVariant"]
|
|
@@ -102,11 +117,11 @@ class g {
|
|
|
102
117
|
return "button";
|
|
103
118
|
}
|
|
104
119
|
}
|
|
105
|
-
const
|
|
120
|
+
const S = {
|
|
106
121
|
// :default [!] System label / Системная метка
|
|
107
122
|
animationType: "type1"
|
|
108
123
|
};
|
|
109
|
-
class
|
|
124
|
+
class R extends f {
|
|
110
125
|
/**
|
|
111
126
|
* Constructor
|
|
112
127
|
* @param name class name/ название класса
|
|
@@ -114,19 +129,19 @@ class S extends I {
|
|
|
114
129
|
* @param options list of additional parameters/ список дополнительных параметров
|
|
115
130
|
* @param ItemConstructor icon item class/ класс элемента иконки
|
|
116
131
|
*/
|
|
117
|
-
constructor(i, c, r, o =
|
|
132
|
+
constructor(i, c, r, o = b) {
|
|
118
133
|
super(
|
|
119
134
|
i,
|
|
120
135
|
c,
|
|
121
136
|
r
|
|
122
137
|
);
|
|
123
|
-
|
|
138
|
+
e(this, "item");
|
|
124
139
|
/**
|
|
125
140
|
* Computed properties for the main element.
|
|
126
141
|
*
|
|
127
142
|
* Вычисляемые свойства для главного элемента.
|
|
128
143
|
*/
|
|
129
|
-
|
|
144
|
+
e(this, "propsMain", n(() => {
|
|
130
145
|
var i;
|
|
131
146
|
return {
|
|
132
147
|
...this.getAttrs(),
|
|
@@ -139,7 +154,7 @@ class S extends I {
|
|
|
139
154
|
*
|
|
140
155
|
* Рендер основной иконки.
|
|
141
156
|
*/
|
|
142
|
-
|
|
157
|
+
e(this, "renderIcon", () => this.components.renderOne(
|
|
143
158
|
"image",
|
|
144
159
|
this.item.iconBind.value,
|
|
145
160
|
void 0,
|
|
@@ -150,7 +165,7 @@ class S extends I {
|
|
|
150
165
|
*
|
|
151
166
|
* Рендер вторичной иконки.
|
|
152
167
|
*/
|
|
153
|
-
|
|
168
|
+
e(this, "renderIconActive", () => this.components.renderOne(
|
|
154
169
|
"image",
|
|
155
170
|
this.item.iconActiveBind.value,
|
|
156
171
|
void 0,
|
|
@@ -173,6 +188,7 @@ class S extends I {
|
|
|
173
188
|
*/
|
|
174
189
|
initExpose() {
|
|
175
190
|
return {
|
|
191
|
+
...this.item.event.expose,
|
|
176
192
|
isActive: this.item.isActive
|
|
177
193
|
};
|
|
178
194
|
}
|
|
@@ -203,10 +219,10 @@ class S extends I {
|
|
|
203
219
|
}
|
|
204
220
|
}
|
|
205
221
|
export {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
222
|
+
b as Icon,
|
|
223
|
+
R as IconDesign,
|
|
224
|
+
E as IconInclude,
|
|
225
|
+
K as IconLiteInclude,
|
|
226
|
+
O as IconTrailingInclude,
|
|
227
|
+
S as defaultsIcon
|
|
212
228
|
};
|