@dxtmisha/constructor 0.39.5 → 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-DUJ0epm4.js → Plugin-CBNCh_iN.js} +2 -2
- 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/FieldInputModeInclude.d.ts +1 -0
- package/dist/classes/LabelInclude.d.ts +4 -17
- 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/Actions/Actions.d.ts +2 -1
- package/dist/constructors/Actions/ActionsDesign.d.ts +2 -1
- package/dist/constructors/Actions/props.d.ts +1 -0
- package/dist/constructors/Anchor/Anchor.d.ts +0 -7
- package/dist/constructors/Anchor/AnchorIcon.d.ts +3 -3
- package/dist/constructors/Anchor/props.d.ts +5 -4
- package/dist/constructors/Anchor/types.d.ts +2 -2
- package/dist/constructors/Arrow/Arrow.d.ts +0 -5
- package/dist/constructors/Badge/Badge.d.ts +5 -1
- package/dist/constructors/Badge/BadgeDesign.d.ts +2 -1
- package/dist/constructors/Bars/Bars.d.ts +30 -2
- 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/props.d.ts +2 -3
- 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/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/props.d.ts +3 -5
- 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/types.d.ts +3 -3
- package/dist/constructors/ChipGroup/ChipGroup.d.ts +4 -1
- package/dist/constructors/ChipGroup/ChipGroupDesign.d.ts +2 -1
- 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 +8 -0
- package/dist/constructors/Field/props.d.ts +2 -1
- 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 +7 -1
- 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/props.d.ts +1 -0
- 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/Icon/Icon.d.ts +7 -2
- package/dist/constructors/Icon/props.d.ts +3 -1
- package/dist/constructors/Icon/types.d.ts +3 -2
- package/dist/constructors/Image/Image.d.ts +0 -7
- package/dist/constructors/Input/Input.d.ts +20 -1
- package/dist/constructors/Input/InputDesign.d.ts +2 -1
- package/dist/constructors/Input/InputPassword.d.ts +4 -1
- package/dist/constructors/List/List.d.ts +18 -9
- 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 +4 -2
- package/dist/constructors/ListGroup/ListGroup.d.ts +2 -1
- package/dist/constructors/ListGroup/ListGroupDesign.d.ts +2 -1
- package/dist/constructors/ListItem/ListItem.d.ts +17 -60
- package/dist/constructors/ListItem/props.d.ts +2 -3
- package/dist/constructors/ListMenu/ListMenu.d.ts +3 -1
- package/dist/constructors/ListMenu/ListMenuDesign.d.ts +2 -1
- package/dist/constructors/Mask/Mask.d.ts +24 -1
- package/dist/constructors/Mask/MaskDesign.d.ts +2 -1
- package/dist/constructors/Menu/Menu.d.ts +10 -1
- package/dist/constructors/Menu/MenuDesign.d.ts +2 -1
- package/dist/constructors/Menu/props.d.ts +2 -1
- package/dist/constructors/Modal/ModalDesign.d.ts +1 -1
- package/dist/constructors/Modal/ModalDesignAbstract.d.ts +3 -2
- 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 +2 -2
- package/dist/constructors/Progress/Progress.d.ts +20 -0
- package/dist/constructors/Progress/ProgressDesign.d.ts +4 -60
- package/dist/constructors/Progress/props.d.ts +3 -3
- package/dist/constructors/Ripple/RippleDesign.d.ts +2 -1
- package/dist/constructors/Scrollbar/Scrollbar.d.ts +3 -1
- package/dist/constructors/Scrollbar/ScrollbarDesign.d.ts +2 -1
- package/dist/constructors/Select/Select.d.ts +12 -1
- package/dist/constructors/Select/SelectDesign.d.ts +2 -1
- package/dist/constructors/SelectValue/SelectValue.d.ts +4 -1
- package/dist/constructors/SelectValue/SelectValueDesign.d.ts +2 -1
- package/dist/constructors/Skeleton/SkeletonDesign.d.ts +2 -1
- package/dist/constructors/TextareaAutosize/TextareaAutosize.d.ts +3 -1
- package/dist/constructors/TextareaAutosize/TextareaAutosizeDesign.d.ts +2 -1
- package/dist/constructors/Tooltip/Tooltip.d.ts +82 -13
- package/dist/constructors/Tooltip/TooltipEvent.d.ts +5 -1
- package/dist/constructors/Tooltip/TooltipOpen.d.ts +6 -0
- package/dist/constructors/Tooltip/props.d.ts +10 -1
- 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 +5 -1
- package/dist/constructors/Window/props.d.ts +15 -3
- 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.js +14 -14
- 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/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 +1 -1
- 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 +7 -0
- package/dist/types/captionTypes.d.ts +2 -0
- package/dist/types/descriptionTypes.d.ts +2 -10
- package/dist/types/labelTypes.d.ts +0 -7
- package/dist/types/prefixTypes.d.ts +2 -0
- package/dist/types/suffixTypes.d.ts +2 -0
- package/dist/types/textTypes.d.ts +42 -2
- package/dist/window.js +169 -105
- package/package.json +2 -2
- 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/progress.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var t = (
|
|
4
|
-
import { watch as
|
|
5
|
-
import { toNumber as o, DesignConstructorAbstract as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
2
|
+
var b = (a, e, s) => e in a ? d(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
|
|
3
|
+
var t = (a, e, s) => b(a, typeof e != "symbol" ? e + "" : e, s);
|
|
4
|
+
import { watch as f, onUnmounted as g, ref as p, computed as l, h as u } from "vue";
|
|
5
|
+
import { toNumber as o, DesignConstructorAbstract as x } from "@dxtmisha/functional";
|
|
6
|
+
import { T as y } from "./TextInclude--GERRCGj.js";
|
|
7
|
+
import { A as n } from "./AriaStaticInclude-CAURwJMb.js";
|
|
8
|
+
import { P as $ } from "./ProgressInclude-9MfZWtGP.js";
|
|
9
|
+
class P {
|
|
9
10
|
/**
|
|
10
11
|
* Constructor
|
|
11
12
|
* @param props input data/ входные данные
|
|
@@ -17,22 +18,29 @@ class x {
|
|
|
17
18
|
* @param slots object for working with slots/ объект для работы со слотами
|
|
18
19
|
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
19
20
|
*/
|
|
20
|
-
constructor(e, s, i, r,
|
|
21
|
+
constructor(e, s, i, r, h, c, m, v) {
|
|
21
22
|
t(this, "timeout");
|
|
22
|
-
t(this, "hide",
|
|
23
|
-
t(this, "visible",
|
|
23
|
+
t(this, "hide", p(!1));
|
|
24
|
+
t(this, "visible", p(!1));
|
|
25
|
+
t(this, "text");
|
|
26
|
+
/**
|
|
27
|
+
* Checks if the component is in progress bar mode.
|
|
28
|
+
*
|
|
29
|
+
* Проверяет, находится ли компонент в режиме прогресс-бара.
|
|
30
|
+
*/
|
|
31
|
+
t(this, "isProgressbar", l(() => this.isValue()));
|
|
24
32
|
/**
|
|
25
33
|
* Returns the tag type for the element.
|
|
26
34
|
*
|
|
27
35
|
* Возвращает тип тега для элемента.
|
|
28
36
|
*/
|
|
29
|
-
t(this, "tag",
|
|
37
|
+
t(this, "tag", l(() => this.props.circular ? "svg" : "div"));
|
|
30
38
|
/**
|
|
31
39
|
* Returns values.
|
|
32
40
|
*
|
|
33
41
|
* Возвращает значения.
|
|
34
42
|
*/
|
|
35
|
-
t(this, "value",
|
|
43
|
+
t(this, "value", l(() => {
|
|
36
44
|
var e;
|
|
37
45
|
return o((e = this.props.value) != null ? e : 0);
|
|
38
46
|
}));
|
|
@@ -41,19 +49,36 @@ class x {
|
|
|
41
49
|
*
|
|
42
50
|
* Возвращает значения в процентах.
|
|
43
51
|
*/
|
|
44
|
-
t(this, "valueInPercent",
|
|
52
|
+
t(this, "valueInPercent", l(() => {
|
|
45
53
|
if (this.isValue()) {
|
|
46
54
|
const e = this.value.value, s = 100 / this.getMax() * e;
|
|
47
55
|
return this.props.circular ? s.toString() : `${100 - s}%`;
|
|
48
56
|
}
|
|
49
57
|
return null;
|
|
50
58
|
}));
|
|
59
|
+
/**
|
|
60
|
+
* Returns the label text.
|
|
61
|
+
*
|
|
62
|
+
* Возвращает текст метки.
|
|
63
|
+
*/
|
|
64
|
+
t(this, "label", l(() => {
|
|
65
|
+
if (this.props.ariaLabel)
|
|
66
|
+
return this.props.ariaLabel;
|
|
67
|
+
if (!this.isValue() && this.props.visible)
|
|
68
|
+
return this.text.loading.value;
|
|
69
|
+
}));
|
|
70
|
+
/**
|
|
71
|
+
* Returns the role for the component.
|
|
72
|
+
*
|
|
73
|
+
* Возвращает роль для компонента.
|
|
74
|
+
*/
|
|
75
|
+
t(this, "role", l(() => this.isValue() ? "progressbar" : "status"));
|
|
51
76
|
/**
|
|
52
77
|
* Values for the class.
|
|
53
78
|
*
|
|
54
79
|
* Значения для класса.
|
|
55
80
|
*/
|
|
56
|
-
t(this, "classes",
|
|
81
|
+
t(this, "classes", l(() => ({
|
|
57
82
|
[`${this.className}--hide`]: this.hide.value,
|
|
58
83
|
[`${this.className}--visible`]: this.visible.value,
|
|
59
84
|
[`${this.className}--value`]: this.isValue()
|
|
@@ -63,7 +88,7 @@ class x {
|
|
|
63
88
|
*
|
|
64
89
|
* Возвращает свойство для стиля.
|
|
65
90
|
*/
|
|
66
|
-
t(this, "styles",
|
|
91
|
+
t(this, "styles", l(() => ({
|
|
67
92
|
[`--${this.className}-sys-value`]: this.valueInPercent.value
|
|
68
93
|
})));
|
|
69
94
|
/**
|
|
@@ -87,15 +112,15 @@ class x {
|
|
|
87
112
|
if (clearTimeout(this.timeout), this.isValue())
|
|
88
113
|
this.reset();
|
|
89
114
|
else if (!!this.visible.value !== e) {
|
|
90
|
-
const r = o((s = this.props.delay) != null ? s : 0),
|
|
91
|
-
e && r ? this.timeout = setTimeout(() => this.update(), r) : !e &&
|
|
115
|
+
const r = o((s = this.props.delay) != null ? s : 0), h = o((i = this.props.delayHide) != null ? i : 0);
|
|
116
|
+
e && r ? this.timeout = setTimeout(() => this.update(), r) : !e && h ? this.timeout = setTimeout(() => this.update(), h) : this.update();
|
|
92
117
|
}
|
|
93
118
|
});
|
|
94
|
-
this.props = e, this.refs = s, this.element = i, this.classDesign = r, this.className =
|
|
119
|
+
this.props = e, this.refs = s, this.element = i, this.classDesign = r, this.className = h, this.components = c, this.slots = m, this.emits = v, this.text = new y(this.props), f(
|
|
95
120
|
[s.visible],
|
|
96
121
|
this.switch,
|
|
97
122
|
{ immediate: !0 }
|
|
98
|
-
),
|
|
123
|
+
), g(() => {
|
|
99
124
|
clearTimeout(this.timeout);
|
|
100
125
|
});
|
|
101
126
|
}
|
|
@@ -133,24 +158,24 @@ class x {
|
|
|
133
158
|
return this.hide.value = !1, this.visible.value = !1, this;
|
|
134
159
|
}
|
|
135
160
|
}
|
|
136
|
-
const
|
|
161
|
+
const w = {
|
|
137
162
|
max: 100,
|
|
138
163
|
delay: 360,
|
|
139
164
|
delayHide: 200,
|
|
140
|
-
ariaLive: "polite",
|
|
141
165
|
// :default [!] System label / Системная метка
|
|
142
166
|
linear: !0,
|
|
143
167
|
indeterminate: "type1",
|
|
144
168
|
position: "top"
|
|
145
169
|
};
|
|
146
|
-
class M extends
|
|
170
|
+
class M extends x {
|
|
147
171
|
/**
|
|
148
172
|
* Constructor
|
|
149
173
|
* @param name class name/ название класса
|
|
150
174
|
* @param props properties/ свойства
|
|
151
175
|
* @param options list of additional parameters/ список дополнительных параметров
|
|
176
|
+
* @param ItemConstructor progress item class/ класс элемента progress
|
|
152
177
|
*/
|
|
153
|
-
constructor(s, i, r) {
|
|
178
|
+
constructor(s, i, r, h = P) {
|
|
154
179
|
super(
|
|
155
180
|
s,
|
|
156
181
|
i,
|
|
@@ -165,17 +190,19 @@ class M extends y {
|
|
|
165
190
|
t(this, "renderCircle", () => {
|
|
166
191
|
var s, i;
|
|
167
192
|
return this.props.circular ? [
|
|
168
|
-
|
|
193
|
+
u("circle", {
|
|
169
194
|
class: (s = this.classes) == null ? void 0 : s.value.circleSub,
|
|
170
195
|
cx: "24",
|
|
171
196
|
cy: "24",
|
|
172
|
-
r: "20"
|
|
197
|
+
r: "20",
|
|
198
|
+
...n.hidden()
|
|
173
199
|
}),
|
|
174
|
-
|
|
200
|
+
u("circle", {
|
|
175
201
|
class: (i = this.classes) == null ? void 0 : i.value.circle,
|
|
176
202
|
cx: "24",
|
|
177
203
|
cy: "24",
|
|
178
|
-
r: "20"
|
|
204
|
+
r: "20",
|
|
205
|
+
...n.hidden()
|
|
179
206
|
})
|
|
180
207
|
] : [];
|
|
181
208
|
});
|
|
@@ -186,31 +213,31 @@ class M extends y {
|
|
|
186
213
|
*/
|
|
187
214
|
t(this, "renderPoint", () => {
|
|
188
215
|
var s;
|
|
189
|
-
return this.props.linear && this.props.point && (this.props.value || this.props.indeterminate === "type1") ? [
|
|
216
|
+
return this.props.linear && this.props.point && (this.props.value || this.props.indeterminate === "type1") ? [u("span", { class: (s = this.classes) == null ? void 0 : s.value.point })] : [];
|
|
190
217
|
});
|
|
191
218
|
/**
|
|
192
219
|
* Props for the main element/ Свойства для главного элемента
|
|
193
220
|
*/
|
|
194
|
-
t(this, "propsMain",
|
|
221
|
+
t(this, "propsMain", l(() => {
|
|
195
222
|
var i, r;
|
|
196
223
|
const s = {
|
|
197
224
|
...this.getAttrs(),
|
|
198
225
|
class: (i = this.classes) == null ? void 0 : i.value.main,
|
|
199
226
|
style: (r = this.styles) == null ? void 0 : r.value,
|
|
200
|
-
viewBox: "0 0 48 48",
|
|
201
227
|
onAnimationend: this.item.onAnimation,
|
|
202
|
-
...
|
|
228
|
+
...n.role(this.item.role.value),
|
|
229
|
+
...n.label(this.item.label.value)
|
|
203
230
|
};
|
|
204
|
-
return this.props.value ? {
|
|
231
|
+
return this.props.circular && (s.viewBox = "0 0 48 48"), this.props.value ? {
|
|
205
232
|
...s,
|
|
206
|
-
...
|
|
233
|
+
...n.valueMinMax(
|
|
207
234
|
this.props.value,
|
|
208
235
|
0,
|
|
209
236
|
this.props.max
|
|
210
237
|
)
|
|
211
238
|
} : s;
|
|
212
239
|
}));
|
|
213
|
-
this.item = new
|
|
240
|
+
this.item = new h(
|
|
214
241
|
this.props,
|
|
215
242
|
this.refs,
|
|
216
243
|
this.element,
|
|
@@ -261,7 +288,7 @@ class M extends y {
|
|
|
261
288
|
...this.renderCircle(),
|
|
262
289
|
...this.renderPoint()
|
|
263
290
|
];
|
|
264
|
-
return
|
|
291
|
+
return u(
|
|
265
292
|
this.item.tag.value,
|
|
266
293
|
this.propsMain.value,
|
|
267
294
|
s
|
|
@@ -269,8 +296,8 @@ class M extends y {
|
|
|
269
296
|
}
|
|
270
297
|
}
|
|
271
298
|
export {
|
|
272
|
-
|
|
299
|
+
P as Progress,
|
|
273
300
|
M as ProgressDesign,
|
|
274
|
-
|
|
275
|
-
|
|
301
|
+
$ as ProgressInclude,
|
|
302
|
+
w as defaultsProgress
|
|
276
303
|
};
|
package/dist/ripple.js
CHANGED
|
@@ -3,7 +3,7 @@ var c = (n, s, t) => s in n ? h(n, s, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var l = (n, s, t) => c(n, typeof s != "symbol" ? s + "" : s, t);
|
|
4
4
|
import { createElement as m, DesignConstructorAbstract as p } from "@dxtmisha/functional";
|
|
5
5
|
import { h as d } from "vue";
|
|
6
|
-
import { A as u } from "./AriaStaticInclude-
|
|
6
|
+
import { A as u } from "./AriaStaticInclude-CAURwJMb.js";
|
|
7
7
|
import { R as X } from "./RippleInclude-Du5yIzX_.js";
|
|
8
8
|
class y {
|
|
9
9
|
/**
|
|
@@ -69,15 +69,16 @@ class N extends p {
|
|
|
69
69
|
* @param name class name/ название класса
|
|
70
70
|
* @param props properties/ свойства
|
|
71
71
|
* @param options list of additional parameters/ список дополнительных параметров
|
|
72
|
+
* @param ItemConstructor ripple item class/ класс элемента ripple
|
|
72
73
|
*/
|
|
73
|
-
constructor(t, i, a) {
|
|
74
|
+
constructor(t, i, a, e = f) {
|
|
74
75
|
super(
|
|
75
76
|
t,
|
|
76
77
|
i,
|
|
77
78
|
a
|
|
78
79
|
);
|
|
79
80
|
l(this, "item");
|
|
80
|
-
this.item = new
|
|
81
|
+
this.item = new e(
|
|
81
82
|
this.props,
|
|
82
83
|
this.refs,
|
|
83
84
|
this.element,
|
package/dist/scrollbar.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var h = (n, t, e) =>
|
|
4
|
-
import { watch as
|
|
5
|
-
import { EventItem as r, ScrollbarWidthRef as
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var p = (n, t, e) => t in n ? u(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var h = (n, t, e) => p(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { watch as b, onUnmounted as f, computed as g, h as S } from "vue";
|
|
5
|
+
import { EventItem as r, ScrollbarWidthRef as w, DesignConstructorAbstract as B } from "@dxtmisha/functional";
|
|
6
6
|
const a = 8;
|
|
7
|
-
class
|
|
7
|
+
class T {
|
|
8
8
|
/**
|
|
9
9
|
* Constructor for ScrollbarBorder class.
|
|
10
10
|
*
|
|
@@ -64,13 +64,13 @@ class w {
|
|
|
64
64
|
t.scrollTop < t.scrollHeight - t.clientHeight - a
|
|
65
65
|
);
|
|
66
66
|
});
|
|
67
|
-
this.props = t, this.element = s, this.className = i, this.emits = o,
|
|
67
|
+
this.props = t, this.element = s, this.className = i, this.emits = o, b([
|
|
68
68
|
this.element,
|
|
69
69
|
e.divider,
|
|
70
70
|
e.dividerTop,
|
|
71
71
|
e.dividerBottom,
|
|
72
72
|
e.inverse
|
|
73
|
-
], this.reset, { immediate: !0 }),
|
|
73
|
+
], this.reset, { immediate: !0 }), f(() => this.stop());
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* Start monitoring the scroll.
|
|
@@ -120,7 +120,7 @@ class w {
|
|
|
120
120
|
return this.bottom !== t && (this.bottom = t, (e = this.emits) == null || e.call(this, "bottom", t), (s = this.emits) == null || s.call(this, "edge", this.top, t, "bottom"), t ? (i = this.emits) == null || i.call(this, "reachBottom") : (o = this.emits) == null || o.call(this, "leaveBottom")), this;
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
class
|
|
123
|
+
class D {
|
|
124
124
|
/**
|
|
125
125
|
* Constructor for Scrollbar class.
|
|
126
126
|
*
|
|
@@ -133,8 +133,10 @@ class B {
|
|
|
133
133
|
* @param components object for working with components/ объект для работы с компонентами
|
|
134
134
|
* @param slots object for working with slots/ объект для работы со слотами
|
|
135
135
|
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
136
|
+
* @param ScrollbarWidthRefConstructor class for working with scrollbar width/ класс для работы с шириной скролла
|
|
137
|
+
* @param ScrollbarBorderConstructor class for working with scrollbar border/ класс для работы с границей скролла
|
|
136
138
|
*/
|
|
137
|
-
constructor(t, e, s, i, o, m, d, l) {
|
|
139
|
+
constructor(t, e, s, i, o, m, d, l, c = w, v = T) {
|
|
138
140
|
h(this, "width");
|
|
139
141
|
h(this, "border");
|
|
140
142
|
/**
|
|
@@ -142,10 +144,10 @@ class B {
|
|
|
142
144
|
*
|
|
143
145
|
* Возвращает значения для класса.
|
|
144
146
|
*/
|
|
145
|
-
h(this, "classes",
|
|
147
|
+
h(this, "classes", g(() => ({
|
|
146
148
|
[`${this.className}--disabled`]: !!this.width.item.value
|
|
147
149
|
})));
|
|
148
|
-
this.props = t, this.refs = e, this.element = s, this.classDesign = i, this.className = o, this.components = m, this.slots = d, this.emits = l, this.width = new
|
|
150
|
+
this.props = t, this.refs = e, this.element = s, this.classDesign = i, this.className = o, this.components = m, this.slots = d, this.emits = l, this.width = new c(), this.border = new v(
|
|
149
151
|
t,
|
|
150
152
|
e,
|
|
151
153
|
s,
|
|
@@ -154,24 +156,25 @@ class B {
|
|
|
154
156
|
);
|
|
155
157
|
}
|
|
156
158
|
}
|
|
157
|
-
const
|
|
159
|
+
const R = {
|
|
158
160
|
tag: "div"
|
|
159
161
|
};
|
|
160
|
-
class
|
|
162
|
+
class x extends B {
|
|
161
163
|
/**
|
|
162
164
|
* Constructor
|
|
163
165
|
* @param name class name/ название класса
|
|
164
166
|
* @param props properties/ свойства
|
|
165
167
|
* @param options list of additional parameters/ список дополнительных параметров
|
|
168
|
+
* @param ItemConstructor class for working with the item/ класс для работы с элементом
|
|
166
169
|
*/
|
|
167
|
-
constructor(e, s, i) {
|
|
170
|
+
constructor(e, s, i, o = D) {
|
|
168
171
|
super(
|
|
169
172
|
e,
|
|
170
173
|
s,
|
|
171
174
|
i
|
|
172
175
|
);
|
|
173
176
|
h(this, "item");
|
|
174
|
-
this.item = new
|
|
177
|
+
this.item = new o(
|
|
175
178
|
this.props,
|
|
176
179
|
this.refs,
|
|
177
180
|
this.element,
|
|
@@ -217,7 +220,7 @@ class L extends S {
|
|
|
217
220
|
var s, i;
|
|
218
221
|
const e = [this.initSlot("default")];
|
|
219
222
|
if (this.item.width.is.value)
|
|
220
|
-
return
|
|
223
|
+
return S(
|
|
221
224
|
(s = this.props.tag) != null ? s : "div",
|
|
222
225
|
{
|
|
223
226
|
...this.getAttrs(),
|
|
@@ -229,7 +232,7 @@ class L extends S {
|
|
|
229
232
|
}
|
|
230
233
|
}
|
|
231
234
|
export {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
+
D as Scrollbar,
|
|
236
|
+
x as ScrollbarDesign,
|
|
237
|
+
R as defaultsScrollbar
|
|
235
238
|
};
|
package/dist/section.js
CHANGED