@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.
Files changed (193) hide show
  1. package/dist/{AriaStaticInclude-CFGewqpn.js → AriaStaticInclude-CAURwJMb.js} +47 -9
  2. package/dist/{BarsInclude-IM3Gdslg.js → BarsInclude-BOEoY-O4.js} +19 -14
  3. package/dist/{BlockDesign-D67yDT9N.js → BlockDesign-CwRNJi0I.js} +49 -38
  4. package/dist/ButtonDesign-DgZNw44L.js +198 -0
  5. package/dist/CaptionInclude-NzS6EYYj.js +70 -0
  6. package/dist/{DescriptionInclude-DxWNon_J.js → DescriptionInclude-D4ane9aR.js} +20 -30
  7. package/dist/{EnabledInclude-DGeuJhOr.js → EnabledInclude-Dk-rP4jp.js} +1 -1
  8. package/dist/{EventClickInclude-eDWqxK0d.js → EventClickInclude-WHJqxZ1b.js} +13 -3
  9. package/dist/{FieldCounterInclude-BR6n8WlH.js → FieldCounterInclude-D0oojGWY.js} +2 -2
  10. package/dist/{FieldEventInclude-zg02dtQi.js → FieldEventInclude-DBRqmzpF.js} +11 -8
  11. package/dist/{FieldInclude-c6DSD0-y.js → FieldInclude-BKoBWZdj.js} +23 -12
  12. package/dist/{FieldLabelInclude-B4OGaJ1r.js → FieldLabelInclude-Bkxf6rRw.js} +30 -23
  13. package/dist/{FieldMatchInclude-Vl2gJUaM.js → FieldMatchInclude-GgyucDC_.js} +35 -19
  14. package/dist/{FieldMessageInclude-CktVHvWW.js → FieldMessageInclude-BJDnir34.js} +34 -28
  15. package/dist/{LabelHighlightInclude-Dhj3p9NW.js → LabelHighlightInclude-CLmTvW_6.js} +1 -1
  16. package/dist/{LabelInclude-BtZrrbCf.js → LabelInclude-D-mLvjK5.js} +32 -50
  17. package/dist/{LabelNumberInclude-DyifvMnr.js → LabelNumberInclude-Cn0qDEgX.js} +1 -1
  18. package/dist/{ModalDesignAbstract-CjDr5JaN.js → ModalDesignAbstract-D4A_a_rC.js} +42 -42
  19. package/dist/{Plugin-DUJ0epm4.js → Plugin-CBNCh_iN.js} +2 -2
  20. package/dist/{ProgressInclude-UBipdctr.js → ProgressInclude-9MfZWtGP.js} +5 -5
  21. package/dist/{SuffixInclude-C7JNYCJK.js → SuffixInclude-maZ7235l.js} +48 -20
  22. package/dist/{TabIndexInclude-d7A_R6KD.js → TabIndexInclude-xcSFV8yP.js} +43 -33
  23. package/dist/TextInclude--GERRCGj.js +146 -0
  24. package/dist/{WindowEsc-Dp9AvJt7.js → WindowEsc-DTwn4Vsz.js} +2 -2
  25. package/dist/{WindowInclude-Is5RhGxt.js → WindowInclude-BWm4-0Gh.js} +24 -20
  26. package/dist/accordion.js +66 -50
  27. package/dist/actionSheet.js +2 -4
  28. package/dist/actions.js +38 -36
  29. package/dist/anchor.js +63 -60
  30. package/dist/arrow.js +32 -33
  31. package/dist/badge.js +40 -35
  32. package/dist/bars.js +91 -57
  33. package/dist/block.js +1 -1
  34. package/dist/button.js +12 -15
  35. package/dist/cell.js +44 -37
  36. package/dist/chip.js +1 -1
  37. package/dist/chipGroup.js +25 -21
  38. package/dist/classes/AriaStaticInclude.d.ts +28 -0
  39. package/dist/classes/CaptionInclude.d.ts +64 -1
  40. package/dist/classes/DescriptionInclude.d.ts +4 -16
  41. package/dist/classes/EventClickInclude.d.ts +8 -0
  42. package/dist/classes/Field/FieldInputModeInclude.d.ts +1 -0
  43. package/dist/classes/LabelInclude.d.ts +4 -17
  44. package/dist/classes/PrefixInclude.d.ts +9 -1
  45. package/dist/classes/SuffixInclude.d.ts +9 -1
  46. package/dist/classes/TabIndexInclude.d.ts +14 -8
  47. package/dist/classes/TextInclude.d.ts +33 -5
  48. package/dist/constructors/Accordion/Accordion.d.ts +28 -1
  49. package/dist/constructors/Actions/Actions.d.ts +2 -1
  50. package/dist/constructors/Actions/ActionsDesign.d.ts +2 -1
  51. package/dist/constructors/Actions/props.d.ts +1 -0
  52. package/dist/constructors/Anchor/Anchor.d.ts +0 -7
  53. package/dist/constructors/Anchor/AnchorIcon.d.ts +3 -3
  54. package/dist/constructors/Anchor/props.d.ts +5 -4
  55. package/dist/constructors/Anchor/types.d.ts +2 -2
  56. package/dist/constructors/Arrow/Arrow.d.ts +0 -5
  57. package/dist/constructors/Badge/Badge.d.ts +5 -1
  58. package/dist/constructors/Badge/BadgeDesign.d.ts +2 -1
  59. package/dist/constructors/Bars/Bars.d.ts +30 -2
  60. package/dist/constructors/Bars/BarsAction.d.ts +6 -2
  61. package/dist/constructors/Bars/BarsDesign.d.ts +2 -1
  62. package/dist/constructors/Bars/BarsInclude.d.ts +7 -2
  63. package/dist/constructors/Bars/props.d.ts +2 -3
  64. package/dist/constructors/Bars/types.d.ts +3 -3
  65. package/dist/constructors/Block/Block.d.ts +0 -4
  66. package/dist/constructors/Block/BlockDesign.d.ts +9 -1
  67. package/dist/constructors/Block/types.d.ts +3 -3
  68. package/dist/constructors/Button/Button.d.ts +22 -1
  69. package/dist/constructors/Button/ButtonDesign.d.ts +2 -1
  70. package/dist/constructors/Button/props.d.ts +3 -5
  71. package/dist/constructors/Button/types.d.ts +2 -2
  72. package/dist/constructors/Cell/Cell.d.ts +10 -1
  73. package/dist/constructors/Cell/CellDesign.d.ts +2 -1
  74. package/dist/constructors/Cell/types.d.ts +3 -3
  75. package/dist/constructors/ChipGroup/ChipGroup.d.ts +4 -1
  76. package/dist/constructors/ChipGroup/ChipGroupDesign.d.ts +2 -1
  77. package/dist/constructors/Field/Field.d.ts +33 -6
  78. package/dist/constructors/Field/FieldDesign.d.ts +2 -1
  79. package/dist/constructors/Field/FieldIcons.d.ts +4 -1
  80. package/dist/constructors/Field/FieldInclude.d.ts +8 -0
  81. package/dist/constructors/Field/props.d.ts +2 -1
  82. package/dist/constructors/FieldCounter/FieldCounter.d.ts +22 -1
  83. package/dist/constructors/FieldCounter/FieldCounterDesign.d.ts +9 -2
  84. package/dist/constructors/FieldCounter/props.d.ts +7 -1
  85. package/dist/constructors/FieldCounter/types.d.ts +1 -0
  86. package/dist/constructors/FieldLabel/FieldLabel.d.ts +5 -1
  87. package/dist/constructors/FieldLabel/FieldLabelDesign.d.ts +2 -1
  88. package/dist/constructors/FieldLabel/FieldLabelInclude.d.ts +7 -5
  89. package/dist/constructors/FieldLabel/props.d.ts +1 -0
  90. package/dist/constructors/FieldLabel/types.d.ts +2 -2
  91. package/dist/constructors/FieldMessage/FieldMessage.d.ts +16 -1
  92. package/dist/constructors/FieldMessage/FieldMessageDesign.d.ts +2 -1
  93. package/dist/constructors/FieldMessage/FieldMessageInclude.d.ts +8 -9
  94. package/dist/constructors/Icon/Icon.d.ts +7 -2
  95. package/dist/constructors/Icon/props.d.ts +3 -1
  96. package/dist/constructors/Icon/types.d.ts +3 -2
  97. package/dist/constructors/Image/Image.d.ts +0 -7
  98. package/dist/constructors/Input/Input.d.ts +20 -1
  99. package/dist/constructors/Input/InputDesign.d.ts +2 -1
  100. package/dist/constructors/Input/InputPassword.d.ts +4 -1
  101. package/dist/constructors/List/List.d.ts +18 -9
  102. package/dist/constructors/List/ListDesign.d.ts +2 -1
  103. package/dist/constructors/List/ListFocus.d.ts +10 -2
  104. package/dist/constructors/List/ListGo.d.ts +22 -4
  105. package/dist/constructors/List/props.d.ts +4 -2
  106. package/dist/constructors/ListGroup/ListGroup.d.ts +2 -1
  107. package/dist/constructors/ListGroup/ListGroupDesign.d.ts +2 -1
  108. package/dist/constructors/ListItem/ListItem.d.ts +17 -60
  109. package/dist/constructors/ListItem/props.d.ts +2 -3
  110. package/dist/constructors/ListMenu/ListMenu.d.ts +3 -1
  111. package/dist/constructors/ListMenu/ListMenuDesign.d.ts +2 -1
  112. package/dist/constructors/Mask/Mask.d.ts +24 -1
  113. package/dist/constructors/Mask/MaskDesign.d.ts +2 -1
  114. package/dist/constructors/Menu/Menu.d.ts +10 -1
  115. package/dist/constructors/Menu/MenuDesign.d.ts +2 -1
  116. package/dist/constructors/Menu/props.d.ts +2 -1
  117. package/dist/constructors/Modal/ModalDesign.d.ts +1 -1
  118. package/dist/constructors/Modal/ModalDesignAbstract.d.ts +3 -2
  119. package/dist/constructors/MotionTransform/MotionTransform.d.ts +10 -8
  120. package/dist/constructors/MotionTransform/MotionTransformDesign.d.ts +13 -2
  121. package/dist/constructors/MotionTransform/MotionTransformEvent.d.ts +14 -0
  122. package/dist/constructors/MotionTransform/props.d.ts +2 -2
  123. package/dist/constructors/Progress/Progress.d.ts +20 -0
  124. package/dist/constructors/Progress/ProgressDesign.d.ts +4 -60
  125. package/dist/constructors/Progress/props.d.ts +3 -3
  126. package/dist/constructors/Ripple/RippleDesign.d.ts +2 -1
  127. package/dist/constructors/Scrollbar/Scrollbar.d.ts +3 -1
  128. package/dist/constructors/Scrollbar/ScrollbarDesign.d.ts +2 -1
  129. package/dist/constructors/Select/Select.d.ts +12 -1
  130. package/dist/constructors/Select/SelectDesign.d.ts +2 -1
  131. package/dist/constructors/SelectValue/SelectValue.d.ts +4 -1
  132. package/dist/constructors/SelectValue/SelectValueDesign.d.ts +2 -1
  133. package/dist/constructors/Skeleton/SkeletonDesign.d.ts +2 -1
  134. package/dist/constructors/TextareaAutosize/TextareaAutosize.d.ts +3 -1
  135. package/dist/constructors/TextareaAutosize/TextareaAutosizeDesign.d.ts +2 -1
  136. package/dist/constructors/Tooltip/Tooltip.d.ts +82 -13
  137. package/dist/constructors/Tooltip/TooltipEvent.d.ts +5 -1
  138. package/dist/constructors/Tooltip/TooltipOpen.d.ts +6 -0
  139. package/dist/constructors/Tooltip/props.d.ts +10 -1
  140. package/dist/constructors/Window/Window.d.ts +25 -1
  141. package/dist/constructors/Window/WindowDesign.d.ts +5 -63
  142. package/dist/constructors/Window/WindowEsc.d.ts +2 -2
  143. package/dist/constructors/Window/WindowEvent.d.ts +20 -3
  144. package/dist/constructors/Window/WindowHidden.d.ts +9 -3
  145. package/dist/constructors/Window/WindowInclude.d.ts +5 -1
  146. package/dist/constructors/Window/basicTypes.d.ts +5 -1
  147. package/dist/constructors/Window/props.d.ts +15 -3
  148. package/dist/dialog.js +4 -4
  149. package/dist/field.js +161 -126
  150. package/dist/fieldCounter.js +107 -38
  151. package/dist/fieldLabel.js +41 -37
  152. package/dist/fieldMessage.js +87 -65
  153. package/dist/icon.js +55 -39
  154. package/dist/image.js +108 -110
  155. package/dist/input.js +102 -80
  156. package/dist/library.js +14 -14
  157. package/dist/list.js +152 -87
  158. package/dist/listGroup.js +23 -21
  159. package/dist/listItem.js +116 -100
  160. package/dist/listMenu.js +26 -20
  161. package/dist/mask.js +113 -89
  162. package/dist/menu.js +64 -49
  163. package/dist/modal.js +9 -9
  164. package/dist/motionTransform.js +138 -106
  165. package/dist/page.js +1 -1
  166. package/dist/plugin.js +1 -1
  167. package/dist/progress.js +65 -38
  168. package/dist/ripple.js +4 -3
  169. package/dist/scrollbar.js +23 -20
  170. package/dist/section.js +1 -1
  171. package/dist/select.js +105 -90
  172. package/dist/selectValue.js +29 -25
  173. package/dist/skeleton.js +20 -22
  174. package/dist/textareaAutosize.js +26 -23
  175. package/dist/tooltip.js +140 -91
  176. package/dist/types/ariaTypes.d.ts +7 -0
  177. package/dist/types/captionTypes.d.ts +2 -0
  178. package/dist/types/descriptionTypes.d.ts +2 -10
  179. package/dist/types/labelTypes.d.ts +0 -7
  180. package/dist/types/prefixTypes.d.ts +2 -0
  181. package/dist/types/suffixTypes.d.ts +2 -0
  182. package/dist/types/textTypes.d.ts +42 -2
  183. package/dist/window.js +169 -105
  184. package/package.json +2 -2
  185. package/src/constructors/Actions/style.scss +0 -1
  186. package/src/constructors/Bars/style.scss +2 -0
  187. package/src/constructors/FieldCounter/style.scss +5 -0
  188. package/src/constructors/Progress/style.scss +2 -0
  189. package/src/constructors/Tooltip/style.scss +10 -2
  190. package/src/constructors/Window/style.scss +7 -1
  191. package/dist/ButtonDesign-DZ7QCmHk.js +0 -169
  192. package/dist/CaptionInclude-AFVF4qyd.js +0 -52
  193. package/dist/TextInclude-i1OBAFTG.js +0 -76
package/dist/progress.js CHANGED
@@ -1,11 +1,12 @@
1
1
  var d = Object.defineProperty;
2
- var f = (l, e, s) => e in l ? d(l, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : l[e] = s;
3
- var t = (l, e, s) => f(l, typeof e != "symbol" ? e + "" : e, s);
4
- import { watch as g, onUnmounted as b, ref as u, computed as a, h } from "vue";
5
- import { toNumber as o, DesignConstructorAbstract as y } from "@dxtmisha/functional";
6
- import { A as c } from "./AriaStaticInclude-CFGewqpn.js";
7
- import { P as D } from "./ProgressInclude-UBipdctr.js";
8
- class x {
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, n, p, m, v) {
21
+ constructor(e, s, i, r, h, c, m, v) {
21
22
  t(this, "timeout");
22
- t(this, "hide", u(!1));
23
- t(this, "visible", u(!1));
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", a(() => this.props.circular ? "svg" : "div"));
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", a(() => {
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", a(() => {
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", a(() => ({
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", a(() => ({
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), n = o((i = this.props.delayHide) != null ? i : 0);
91
- e && r ? this.timeout = setTimeout(() => this.update(), r) : !e && n ? this.timeout = setTimeout(() => this.update(), n) : this.update();
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 = n, this.components = p, this.slots = m, this.emits = v, g(
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
- ), b(() => {
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 N = {
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 y {
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
- h("circle", {
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
- h("circle", {
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") ? [h("span", { class: (s = this.classes) == null ? void 0 : s.value.point })] : [];
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", a(() => {
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
- ...c.role("progressbar")
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
- ...c.valueMinMax(
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 x(
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 h(
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
- x as Progress,
299
+ P as Progress,
273
300
  M as ProgressDesign,
274
- D as ProgressInclude,
275
- N as defaultsProgress
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-CFGewqpn.js";
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 f(
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 c = Object.defineProperty;
2
- var v = (n, t, e) => t in n ? c(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
- var h = (n, t, e) => v(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { watch as u, onUnmounted as p, computed as b, h as f } from "vue";
5
- import { EventItem as r, ScrollbarWidthRef as g, DesignConstructorAbstract as S } from "@dxtmisha/functional";
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 w {
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, u([
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 }), p(() => this.stop());
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 B {
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", b(() => ({
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 g(), this.border = new w(
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 E = {
159
+ const R = {
158
160
  tag: "div"
159
161
  };
160
- class L extends S {
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 B(
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 f(
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
- B as Scrollbar,
233
- L as ScrollbarDesign,
234
- E as defaultsScrollbar
235
+ D as Scrollbar,
236
+ x as ScrollbarDesign,
237
+ R as defaultsScrollbar
235
238
  };
package/dist/section.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as n, a } from "./BlockDesign-D67yDT9N.js";
1
+ import { B as n, a } from "./BlockDesign-CwRNJi0I.js";
2
2
  import "@dxtmisha/functional";
3
3
  class i extends n {
4
4
  }