@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/anchor.js CHANGED
@@ -1,25 +1,25 @@
1
1
  var b = Object.defineProperty;
2
- var y = (s, i, t) => i in s ? b(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t;
3
- var e = (s, i, t) => y(s, typeof i != "symbol" ? i + "" : i, t);
4
- import { computed as n, ref as A, onMounted as I, h as g } from "vue";
5
- import { goScrollSmooth as T, toNumber as k, writeClipboardData as w, DesignConstructorAbstract as x } from "@dxtmisha/functional";
6
- import { L as D } from "./LabelInclude-BtZrrbCf.js";
7
- import { T as H } from "./TextInclude-i1OBAFTG.js";
8
- import { T as S } from "./TooltipInclude--QRSE83v.js";
9
- import { g as L } from "./getClassTagAStatic-BnVYlXHI.js";
10
- import { A as $ } from "./AriaStaticInclude-CFGewqpn.js";
2
+ var A = (s, e, t) => e in s ? b(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
+ var i = (s, e, t) => A(s, typeof e != "symbol" ? e + "" : e, t);
4
+ import { computed as n, ref as I, onMounted as T, h as l } from "vue";
5
+ import { goScrollSmooth as k, toNumber as w, writeClipboardData as x, DesignConstructorAbstract as D } from "@dxtmisha/functional";
6
+ import { L as H } from "./LabelInclude-D-mLvjK5.js";
7
+ import { T as S } from "./TextInclude--GERRCGj.js";
8
+ import { T as L } from "./TooltipInclude--QRSE83v.js";
9
+ import { g as $ } from "./getClassTagAStatic-BnVYlXHI.js";
10
+ import { A as a } from "./AriaStaticInclude-CAURwJMb.js";
11
11
  class B {
12
12
  /**
13
13
  * Constructor
14
14
  * @param props input data / входные данные
15
15
  */
16
- constructor(i) {
16
+ constructor(e) {
17
17
  /** Computed href attribute/ Вычисляемый атрибут href */
18
- e(this, "href", n(() => {
18
+ i(this, "href", n(() => {
19
19
  if (this.props.name)
20
20
  return `#${this.props.name}`;
21
21
  }));
22
- this.props = i;
22
+ this.props = e;
23
23
  }
24
24
  /**
25
25
  * Check if href exists
@@ -53,8 +53,8 @@ class F {
53
53
  * @param element input element / элемент ввода
54
54
  * @param href href handler / обработчик ссылки
55
55
  */
56
- constructor(i, t, r) {
57
- this.props = i, this.element = t, this.href = r;
56
+ constructor(e, t, r) {
57
+ this.props = e, this.element = t, this.href = r;
58
58
  }
59
59
  /**
60
60
  * Scroll to element
@@ -62,14 +62,14 @@ class F {
62
62
  * Прокрутить к элементу
63
63
  */
64
64
  go() {
65
- this.element.value && (T(
65
+ this.element.value && (k(
66
66
  this.element.value,
67
67
  {
68
68
  behavior: this.props.behavior,
69
69
  block: this.props.block,
70
70
  inline: this.props.inline
71
71
  },
72
- k(this.props.shift)
72
+ w(this.props.shift)
73
73
  ), history.replaceState({}, "", this.href.get()));
74
74
  }
75
75
  }
@@ -81,19 +81,19 @@ class M {
81
81
  * @param href href handler / обработчик ссылки
82
82
  * @param to scroll handler / обработчик прокрутки
83
83
  */
84
- constructor(i, t, r, o) {
85
- e(this, "copy", A());
86
- e(this, "timeout");
84
+ constructor(e, t, r, o) {
85
+ i(this, "copy", I());
86
+ i(this, "timeout");
87
87
  /**
88
88
  * On click handler
89
89
  *
90
90
  * Обработчик нажатия
91
91
  */
92
- e(this, "onClick", (i) => {
92
+ i(this, "onClick", (e) => {
93
93
  var t;
94
- i.preventDefault(), this.props.isCopy ? w(this.href.getLink()).then(() => this.toCopy()) : (t = this.to) == null || t.go();
94
+ e.preventDefault(), this.props.isCopy ? x(this.href.getLink()).then(() => this.toCopy()) : (t = this.to) == null || t.go();
95
95
  });
96
- this.props = i, this.tooltip = t, this.href = r, this.to = o;
96
+ this.props = e, this.tooltip = t, this.href = r, this.to = o;
97
97
  }
98
98
  /**
99
99
  * Is copy state
@@ -109,10 +109,10 @@ class M {
109
109
  * Запустить состояние копирования
110
110
  */
111
111
  toCopy() {
112
- var i;
112
+ var e;
113
113
  clearTimeout(this.timeout), this.copy.value = !0, this.tooltip.open(), this.timeout = setTimeout(() => {
114
114
  this.copy.value = !1, this.tooltip.close();
115
- }, (i = this.props.delayHide) != null ? i : 1024);
115
+ }, (e = this.props.delayHide) != null ? e : 1024);
116
116
  }
117
117
  }
118
118
  class N {
@@ -121,19 +121,19 @@ class N {
121
121
  * @param props input data / входные данные
122
122
  * @param event event handler / обработчик событий
123
123
  */
124
- constructor(i, t) {
124
+ constructor(e, t) {
125
125
  /** Icon to display/ Иконка для отображения */
126
- e(this, "icon", n(() => {
126
+ i(this, "icon", n(() => {
127
127
  if (!this.props.hide)
128
128
  return this.props.isCopy ? this.props.iconTag : this.props.iconLink;
129
129
  }));
130
130
  /** Binds for the icon/ Привязки для иконки */
131
- e(this, "binds", n(() => ({
131
+ i(this, "binds", n(() => ({
132
132
  icon: this.icon.value,
133
- iconActive: this.props.iconContentCopy,
133
+ iconActive: this.props.isCopy ? this.props.iconContentCopy : void 0,
134
134
  active: this.event.isCopy()
135
135
  })));
136
- this.props = i, this.event = t;
136
+ this.props = e, this.event = t;
137
137
  }
138
138
  /**
139
139
  * Check if the icon is set
@@ -163,50 +163,51 @@ class E {
163
163
  * @param TextIncludeConstructor class for working with text/ класс для работы с текстом
164
164
  * @param TooltipIncludeConstructor class for working with tooltip/ класс для работы с подсказкой
165
165
  */
166
- constructor(i, t, r, o, h, v, p, C, l = B, a = F, c = M, u = N, m = D, d = H, f = S) {
167
- e(this, "label");
168
- e(this, "text");
169
- e(this, "tooltip");
170
- e(this, "href");
171
- e(this, "to");
172
- e(this, "event");
173
- e(this, "icon");
166
+ constructor(e, t, r, o, h, c, p, u, m = B, d = F, f = M, v = N, g = H, C = S, y = L) {
167
+ i(this, "label");
168
+ i(this, "text");
169
+ i(this, "tooltip");
170
+ i(this, "href");
171
+ i(this, "to");
172
+ i(this, "event");
173
+ i(this, "icon");
174
174
  /** Is hide anchor/ Скрыть якорь */
175
- e(this, "isHide", n(() => this.props.hide || !this.label.is.value && !this.props.isCopy));
175
+ i(this, "isHide", n(() => this.props.hide || !this.label.is.value && !this.props.isCopy));
176
176
  /**
177
177
  * Go if focus on anchor
178
178
  *
179
179
  * Перейти, если фокус на якоре
180
180
  */
181
- e(this, "goIsFocus", () => {
181
+ i(this, "goIsFocus", () => {
182
182
  location.hash === this.href.get() && this.to.go();
183
183
  });
184
- this.props = i, this.refs = t, this.element = r, this.classDesign = o, this.className = h, this.components = v, this.slots = p, this.emits = C, this.AnchorHrefConstructor = l, this.AnchorToConstructor = a, this.AnchorEventConstructor = c, this.AnchorIconConstructor = u, this.LabelIncludeConstructor = m, this.TextIncludeConstructor = d, this.TooltipIncludeConstructor = f, this.label = new m(i, h, void 0, p), this.text = new d(this.props), this.tooltip = new f(
184
+ this.props = e, this.refs = t, this.element = r, this.classDesign = o, this.className = h, this.components = c, this.slots = p, this.emits = u, this.label = new g(e, h, void 0, p), this.text = new C(this.props), this.tooltip = new y(
185
185
  this.props,
186
186
  this.className,
187
187
  this.components,
188
188
  n(() => ({
189
- description: this.text.copiedClipboard.value
189
+ description: this.text.copiedClipboard.value,
190
+ interactive: !1
190
191
  }))
191
- ), this.href = new l(this.props), this.to = new a(
192
+ ), this.href = new m(this.props), this.to = new d(
192
193
  this.props,
193
194
  this.element,
194
195
  this.href
195
- ), this.event = new c(
196
+ ), this.event = new f(
196
197
  this.props,
197
198
  this.tooltip,
198
199
  this.href,
199
200
  this.to
200
- ), this.icon = new u(this.props, this.event), I(() => {
201
+ ), this.icon = new v(this.props, this.event), T(() => {
201
202
  requestAnimationFrame(this.goIsFocus);
202
203
  });
203
204
  }
204
205
  }
205
- const K = {
206
+ const O = {
206
207
  shift: 64,
207
208
  delayHide: 3072
208
209
  };
209
- class Q extends x {
210
+ class Q extends D {
210
211
  /**
211
212
  * Constructor
212
213
  * @param name class name/ название класса
@@ -220,13 +221,13 @@ class Q extends x {
220
221
  r,
221
222
  o
222
223
  );
223
- e(this, "item");
224
+ i(this, "item");
224
225
  /**
225
226
  * Rendering the tooltip.
226
227
  *
227
228
  * Рендеринг подсказки.
228
229
  */
229
- e(this, "renderTooltip", () => this.item.tooltip.render(
230
+ i(this, "renderTooltip", () => this.item.tooltip.render(
230
231
  {
231
232
  control: (t) => this.renderItem(t)
232
233
  }
@@ -237,14 +238,14 @@ class Q extends x {
237
238
  * Рендеринг основного элемента.
238
239
  * @param props additional properties/ дополнительные свойства
239
240
  */
240
- e(this, "renderItem", (t) => {
241
+ i(this, "renderItem", (t) => {
241
242
  var o;
242
243
  const r = [
243
244
  (o = this.classes) == null ? void 0 : o.value.main,
244
- L(this.getDesign())
245
+ $(this.getDesign())
245
246
  ];
246
247
  return t && r.push(t.class), [
247
- g("a", {
248
+ l("a", {
248
249
  ...this.getMainProps(),
249
250
  class: r
250
251
  }, this.renderChildren())
@@ -255,11 +256,12 @@ class Q extends x {
255
256
  *
256
257
  * Рендеринг скрытого элемента.
257
258
  */
258
- e(this, "renderItemHide", () => [
259
- g("a", {
259
+ i(this, "renderItemHide", () => [
260
+ l("a", {
260
261
  ...this.getAttrs(),
261
262
  key: "main-hide",
262
- name: this.props.name
263
+ name: this.props.name,
264
+ ...a.hidden()
263
265
  })
264
266
  ]);
265
267
  /**
@@ -267,7 +269,7 @@ class Q extends x {
267
269
  *
268
270
  * Рендеринг иконки, если она задана.
269
271
  */
270
- e(this, "renderIcon", () => this.item.icon.is() ? this.components.render(
272
+ i(this, "renderIcon", () => this.item.icon.is() ? this.components.render(
271
273
  "icon",
272
274
  this.item.icon.binds.value
273
275
  ) : []);
@@ -276,7 +278,7 @@ class Q extends x {
276
278
  *
277
279
  * Рендеринг дочерних элементов.
278
280
  */
279
- e(this, "renderChildren", () => {
281
+ i(this, "renderChildren", () => {
280
282
  const t = [];
281
283
  return this.props.hide || t.push(
282
284
  ...this.renderIcon(),
@@ -345,14 +347,15 @@ class Q extends x {
345
347
  onClick: this.item.event.onClick,
346
348
  tabindex: 0
347
349
  };
348
- return this.props.isCopy || Object.assign(t, {
350
+ return this.props.isCopy ? t : {
351
+ ...t,
349
352
  href: this.item.href.get(),
350
- ...$.current("page")
351
- }), t;
353
+ ...a.current("page")
354
+ };
352
355
  }
353
356
  }
354
357
  export {
355
358
  E as Anchor,
356
359
  Q as AnchorDesign,
357
- K as defaultsAnchor
360
+ O as defaultsAnchor
358
361
  };
package/dist/arrow.js CHANGED
@@ -1,9 +1,9 @@
1
- var A = Object.defineProperty;
2
- var B = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
- var s = (n, t, e) => B(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { ref as u, watch as c, computed as l, onMounted as S, nextTick as R, onUnmounted as N, h as d } from "vue";
5
- import { isFilled as I, isDomRuntime as p, isString as E, toNumber as P, EventRef as y, EventItem as C, DesignConstructorAbstract as k } from "@dxtmisha/functional";
6
- import { A as $ } from "./AriaStaticInclude-CFGewqpn.js";
1
+ var I = Object.defineProperty;
2
+ var A = (n, t, e) => t in n ? I(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var s = (n, t, e) => A(n, typeof t != "symbol" ? t + "" : t, e);
4
+ import { ref as u, watch as c, computed as l, onMounted as B, nextTick as f, onUnmounted as S, h as d } from "vue";
5
+ import { isFilled as w, isDomRuntime as p, isString as N, toNumber as E, EventRef as v, EventItem as P, DesignConstructorAbstract as C } from "@dxtmisha/functional";
6
+ import { A as k } from "./AriaStaticInclude-CAURwJMb.js";
7
7
  import { A as Y } from "./ArrowInclude-CcpT637l.js";
8
8
  class H {
9
9
  /**
@@ -152,8 +152,8 @@ class L {
152
152
  initElement() {
153
153
  var e;
154
154
  const t = this.props.elementTarget;
155
- if (this.props.position === "auto" && I(t) && p())
156
- return E(t) ? (e = document.querySelector(t)) != null ? e : void 0 : t;
155
+ if (this.props.position === "auto" && w(t) && p())
156
+ return N(t) ? (e = document.querySelector(t)) != null ? e : void 0 : t;
157
157
  }
158
158
  }
159
159
  class M {
@@ -222,7 +222,7 @@ class M {
222
222
  * Получить ширину границы в виде числа.
223
223
  */
224
224
  getBorderRadius() {
225
- return P(this.borderRadius.value);
225
+ return E(this.borderRadius.value);
226
226
  }
227
227
  /**
228
228
  * Get computed styles of the parent element.
@@ -338,24 +338,24 @@ class O {
338
338
  const t = this.elementItem.getRectBorder(), e = this.elementItem.getRectArrowLine();
339
339
  if (t && e) {
340
340
  const i = `M0,0 L0,${t.height} L${t.width},${t.height} L${t.width},0 Z`;
341
- let r, h, a, m;
341
+ let r, a, h, m;
342
342
  switch (this.direction.value) {
343
343
  case o.TOP:
344
- r = e.left - t.left, h = 0, a = r + e.width, m = e.height;
344
+ r = e.left - t.left, a = 0, h = r + e.width, m = e.height;
345
345
  break;
346
346
  case o.BOTTOM:
347
- r = e.left - t.left, h = t.height - e.height, a = r + e.width, m = t.height;
347
+ r = e.left - t.left, a = t.height - e.height, h = r + e.width, m = t.height;
348
348
  break;
349
349
  case o.LEFT:
350
- r = 0, h = e.top - t.top, a = e.width, m = h + e.height;
350
+ r = 0, a = e.top - t.top, h = e.width, m = a + e.height;
351
351
  break;
352
352
  case o.RIGHT:
353
- r = t.width - e.width, h = e.top - t.top, a = t.width, m = h + e.height;
353
+ r = t.width - e.width, a = e.top - t.top, h = t.width, m = a + e.height;
354
354
  break;
355
355
  default:
356
356
  return;
357
357
  }
358
- const g = `M${r},${h} L${a},${h} L${a},${m} L${r},${m} Z`;
358
+ const g = `M${r},${a} L${h},${a} L${h},${m} L${r},${m} Z`;
359
359
  return `path('${i} ${g}')`;
360
360
  }
361
361
  }
@@ -370,7 +370,7 @@ class W {
370
370
  * @param parent parent object / объект родителя
371
371
  * @param position position object / объект позиции
372
372
  */
373
- constructor(t, e, i, r, h, a) {
373
+ constructor(t, e, i, r, a, h) {
374
374
  s(this, "eventItem");
375
375
  s(this, "eventTarget");
376
376
  s(this, "eventBody");
@@ -392,9 +392,9 @@ class W {
392
392
  s(this, "makeEvents", () => {
393
393
  this.elementTarget.is() ? this.initEvents().startEvents() : this.stopEvents();
394
394
  });
395
- this.props = t, this.refs = e, this.element = i, this.elementTarget = r, this.parent = h, this.position = a, p() && (S(async () => {
396
- await R(), c(this.elementTarget.element, this.makeEvents), c([...Object.values(this.refs)], this.update, { immediate: !0 });
397
- }), N(() => {
395
+ this.props = t, this.refs = e, this.element = i, this.elementTarget = r, this.parent = a, this.position = h, p() && (B(async () => {
396
+ await f(), c(this.elementTarget.element, this.makeEvents), c([...Object.values(this.refs)], this.update, { immediate: !0 });
397
+ }), S(() => {
398
398
  this.stopEvents();
399
399
  }));
400
400
  }
@@ -422,7 +422,7 @@ class W {
422
422
  * Инициализировать события.
423
423
  */
424
424
  initEvents() {
425
- return this.eventItem || (this.eventItem = new y(this.element, void 0, "resize", this.update)), this.eventTarget || (this.eventTarget = new y(this.elementTarget.element, void 0, "resize", this.update)), this.eventBody || (this.eventBody = new C(window, ["scroll", "resize"], this.update)), this;
425
+ return this.eventItem || (this.eventItem = new v(this.element, void 0, "resize", this.update)), this.eventTarget || (this.eventTarget = new v(this.elementTarget.element, void 0, "resize", this.update)), this.eventBody || (this.eventBody = new P(window, ["scroll", "resize"], this.update)), this;
426
426
  }
427
427
  }
428
428
  class x {
@@ -442,7 +442,7 @@ class x {
442
442
  * @param ArrowPositionConstructor class for working with the position of the arrow/ класс для работы с позицией стрелки
443
443
  * @param ArrowEventConstructor class for working with arrow events/ класс для работы с событиями стрелки
444
444
  */
445
- constructor(t, e, i, r, h, a, m, g, v = H, f = L, w = M, b = O, T = W) {
445
+ constructor(t, e, i, r, a, h, m, g, b = H, T = L, y = M, $ = O, R = W) {
446
446
  s(this, "elementItem");
447
447
  s(this, "elementTarget");
448
448
  s(this, "parent");
@@ -450,7 +450,7 @@ class x {
450
450
  s(this, "event");
451
451
  /** Direction of the arrow/ Направление стрелки */
452
452
  s(this, "direction", l(() => {
453
- if (I(this.props.position)) {
453
+ if (w(this.props.position)) {
454
454
  const t = this.position.direction.value;
455
455
  if (t)
456
456
  return t;
@@ -471,19 +471,19 @@ class x {
471
471
  };
472
472
  return this.parent.isBorder.value && this.position.clipPath.value && (t[`--${this.className}-sys-clipPath`] = this.position.clipPath.value), this.elementTarget.is() && this.position.shift.value && (t[`--${this.className}-sys-shift`] = this.position.shift.value), t;
473
473
  }));
474
- this.props = t, this.refs = e, this.element = i, this.classDesign = r, this.className = h, this.components = a, this.slots = m, this.emits = g, this.ArrowElementConstructor = v, this.ArrowElementTargetConstructor = f, this.ArrowParentConstructor = w, this.ArrowPositionConstructor = b, this.ArrowEventConstructor = T, this.elementItem = new v(
474
+ this.props = t, this.refs = e, this.element = i, this.classDesign = r, this.className = a, this.components = h, this.slots = m, this.emits = g, this.elementItem = new b(
475
475
  this.element,
476
476
  this.className
477
- ), this.elementTarget = new f(this.props), this.parent = new w(
477
+ ), this.elementTarget = new T(this.props), this.parent = new y(
478
478
  this.element,
479
479
  this.className,
480
480
  this.elementItem
481
- ), this.position = new b(
481
+ ), this.position = new $(
482
482
  this.props,
483
483
  this.elementItem,
484
484
  this.elementTarget,
485
485
  this.parent
486
- ), this.event = new T(
486
+ ), this.event = new R(
487
487
  this.props,
488
488
  this.refs,
489
489
  this.element,
@@ -497,7 +497,7 @@ const D = {
497
497
  // :default [!] System label / Системная метка
498
498
  position: "auto"
499
499
  };
500
- class G extends k {
500
+ class G extends C {
501
501
  /**
502
502
  * Constructor
503
503
  * @param name class name/ название класса
@@ -505,7 +505,7 @@ class G extends k {
505
505
  * @param options list of additional parameters/ список дополнительных параметров
506
506
  * @param ItemConstructor arrow item class/ класс элемента стрелки
507
507
  */
508
- constructor(e, i, r, h = x) {
508
+ constructor(e, i, r, a = x) {
509
509
  super(
510
510
  e,
511
511
  i,
@@ -531,7 +531,7 @@ class G extends k {
531
531
  return `0, ${i} ${e / 2}, 0 ${e}, ${i}`;
532
532
  }
533
533
  });
534
- this.item = new h(
534
+ this.item = new a(
535
535
  this.props,
536
536
  this.refs,
537
537
  this.element,
@@ -541,7 +541,7 @@ class G extends k {
541
541
  this.slots,
542
542
  this.emits
543
543
  ), this.init(), c([this.classes], () => {
544
- R().then(
544
+ f().then(
545
545
  () => requestAnimationFrame(() => {
546
546
  this.points.value = this.getRePoints();
547
547
  })
@@ -603,7 +603,7 @@ class G extends k {
603
603
  ref: this.element,
604
604
  class: (i = this.classes) == null ? void 0 : i.value.main,
605
605
  style: (r = this.styles) == null ? void 0 : r.value,
606
- ...$.hidden()
606
+ ...k.hidden()
607
607
  }, e);
608
608
  }
609
609
  /**
@@ -651,8 +651,7 @@ class G extends k {
651
651
  return [
652
652
  d("div", {
653
653
  key: "border",
654
- class: (e = this.classes) == null ? void 0 : e.value.border,
655
- ...$.hidden()
654
+ class: (e = this.classes) == null ? void 0 : e.value.border
656
655
  })
657
656
  ];
658
657
  }
package/dist/badge.js CHANGED
@@ -1,12 +1,12 @@
1
- var d = Object.defineProperty;
2
- var p = (e, t, s) => t in e ? d(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
- var r = (e, t, s) => p(e, typeof t != "symbol" ? t + "" : t, s);
4
- import { computed as h, h as g } from "vue";
5
- import { isFilled as c, DesignConstructorAbstract as b } from "@dxtmisha/functional";
6
- import { L as f } from "./LabelNumberInclude-DyifvMnr.js";
7
- import { I as v } from "./IconInclude-CLqwI29Q.js";
8
- import { A as u } from "./AriaStaticInclude-CFGewqpn.js";
9
- class I {
1
+ var b = Object.defineProperty;
2
+ var g = (i, t, s) => t in i ? b(i, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[t] = s;
3
+ var e = (i, t, s) => g(i, typeof t != "symbol" ? t + "" : t, s);
4
+ import { computed as l, h as f } from "vue";
5
+ import { isFilled as c, DesignConstructorAbstract as v } from "@dxtmisha/functional";
6
+ import { A as u } from "./AriaStaticInclude-CAURwJMb.js";
7
+ import { L as I } from "./LabelNumberInclude-Cn0qDEgX.js";
8
+ import { I as A } from "./IconInclude-CLqwI29Q.js";
9
+ class C {
10
10
  /**
11
11
  * Constructor
12
12
  * @param props input data/ входные данные
@@ -17,16 +17,18 @@ class I {
17
17
  * @param components object for working with components/ объект для работы с компонентами
18
18
  * @param slots object for working with slots/ объект для работы со слотами
19
19
  * @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
20
+ * @param LabelNumberIncludeConstructor class for working with label/ класс для работы с меткой
21
+ * @param IconIncludeConstructor class for working with icon/ класс для работы с иконкой
20
22
  */
21
- constructor(t, s, i, a, l, n, o, m) {
22
- r(this, "label");
23
- r(this, "icon");
23
+ constructor(t, s, r, n, a, o, h, m, d = I, p = A) {
24
+ e(this, "label");
25
+ e(this, "icon");
24
26
  /**
25
27
  * Computes if the badge should auto-hide when there is no dot, icon, or label.
26
28
  *
27
29
  * Вычисляет, должен ли бейдж автоматически скрываться, если нет точки, иконки и текста.
28
30
  */
29
- r(this, "autoHide", h(
31
+ e(this, "autoHide", l(
30
32
  () => !this.props.dot && !c(this.icon.isIcon.value) && !c(this.label.is.value)
31
33
  ));
32
34
  /**
@@ -34,42 +36,46 @@ class I {
34
36
  *
35
37
  * Классы для управления видимостью бейджа.
36
38
  */
37
- r(this, "classes", h(() => ({
39
+ e(this, "classes", l(() => ({
38
40
  [`${this.className}--hideAuto`]: this.autoHide.value
39
41
  })));
40
- this.props = t, this.refs = s, this.element = i, this.classDesign = a, this.className = l, this.components = n, this.slots = o, this.emits = m, this.label = new f(
42
+ e(this, "aria", l(() => this.props.ariaLabel ? {
43
+ ...u.hidden()
44
+ } : {}));
45
+ this.props = t, this.refs = s, this.element = r, this.classDesign = n, this.className = a, this.components = o, this.slots = h, this.emits = m, this.label = new d(
41
46
  t,
42
- l,
47
+ a,
43
48
  void 0,
44
- o
45
- ), this.icon = new v(
49
+ h
50
+ ), this.icon = new p(
46
51
  t,
47
- l,
48
- n
52
+ a,
53
+ o
49
54
  );
50
55
  }
51
56
  }
52
- const B = {
57
+ const H = {
53
58
  // :default [!] System label / Системная метка
54
59
  overlap: "rectangular",
55
60
  vertical: "top",
56
61
  horizontal: "right"
57
62
  };
58
- class L extends b {
63
+ class N extends v {
59
64
  /**
60
65
  * Constructor
61
66
  * @param name class name/ название класса
62
67
  * @param props properties/ свойства
63
68
  * @param options list of additional parameters/ список дополнительных параметров
69
+ * @param ItemConstructor class for working with the item/ класс для работы с элементом
64
70
  */
65
- constructor(s, i, a) {
71
+ constructor(s, r, n, a = C) {
66
72
  super(
67
73
  s,
68
- i,
69
- a
74
+ r,
75
+ n
70
76
  );
71
- r(this, "item");
72
- this.item = new I(
77
+ e(this, "item");
78
+ this.item = new a(
73
79
  this.props,
74
80
  this.refs,
75
81
  this.element,
@@ -115,22 +121,21 @@ class L extends b {
115
121
  * Метод для рендеринга.
116
122
  */
117
123
  initRender() {
118
- var i;
124
+ var r;
119
125
  const s = [];
120
126
  return this.props.dot || s.push(
121
- ...this.item.label.render(),
127
+ ...this.item.label.render(void 0, this.item.aria.value),
122
128
  ...this.item.icon.renderIcon()
123
- ), g("span", {
129
+ ), f("span", {
124
130
  ...this.getAttrs(),
125
131
  ref: this.element,
126
- class: (i = this.classes) == null ? void 0 : i.value.main,
127
- ...u.role("status"),
132
+ class: (r = this.classes) == null ? void 0 : r.value.main,
128
133
  ...u.label(this.props.ariaLabel)
129
134
  }, s);
130
135
  }
131
136
  }
132
137
  export {
133
- I as Badge,
134
- L as BadgeDesign,
135
- B as defaultsBadge
138
+ C as Badge,
139
+ N as BadgeDesign,
140
+ H as defaultsBadge
136
141
  };