@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
@@ -1,9 +1,9 @@
1
- var c = Object.defineProperty;
2
- var d = (i, e, t) => e in i ? c(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
- var s = (i, e, t) => d(i, typeof e != "symbol" ? e + "" : e, t);
4
- import { DesignConstructorAbstract as g } from "@dxtmisha/functional";
5
- import { watch as l, ref as u, nextTick as f, h as r } from "vue";
6
- class v {
1
+ var g = Object.defineProperty;
2
+ var f = (i, e, t) => e in i ? g(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var s = (i, e, t) => f(i, typeof e != "symbol" ? e + "" : e, t);
4
+ import { DesignConstructorAbstract as v } from "@dxtmisha/functional";
5
+ import { watch as u, ref as o, nextTick as z, h as l } from "vue";
6
+ class x {
7
7
  /**
8
8
  * Constructor
9
9
  * @param props input data/ входные данные
@@ -11,8 +11,8 @@ class v {
11
11
  * @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
12
12
  */
13
13
  constructor(e, t, n) {
14
- s(this, "item", u(""));
15
- this.props = e, this.refs = t, this.emits = n, l(
14
+ s(this, "item", o(""));
15
+ this.props = e, this.refs = t, this.emits = n, u(
16
16
  [t.value],
17
17
  () => this.set(e.value),
18
18
  { immediate: !0 }
@@ -47,7 +47,7 @@ class v {
47
47
  return this.item.value !== e;
48
48
  }
49
49
  }
50
- class z {
50
+ class T {
51
51
  /**
52
52
  * Constructor
53
53
  * @param props input data/ входные данные
@@ -55,7 +55,7 @@ class z {
55
55
  * @param value object for working with values/ объект для работы со значениями
56
56
  */
57
57
  constructor(e, t, n) {
58
- s(this, "clone", u());
58
+ s(this, "clone", o());
59
59
  /**
60
60
  * Changes the size of the field.
61
61
  *
@@ -92,7 +92,7 @@ class z {
92
92
  s(this, "updateHeight", () => {
93
93
  this.isElements() && (this.element.value.style.height = `${this.clone.value.offsetHeight}px`);
94
94
  });
95
- this.props = e, this.element = t, this.value = n, l(this.value.item, this.on), f().then(() => requestAnimationFrame(this.on));
95
+ this.props = e, this.element = t, this.value = n, u(this.value.item, this.on), z().then(() => requestAnimationFrame(this.on));
96
96
  }
97
97
  /**
98
98
  * Checks if all elements are present.
@@ -111,7 +111,7 @@ class z {
111
111
  this.isElements() && (this.clone.value.innerText = `${this.value.item.value} --`, requestAnimationFrame(this.updateHeight));
112
112
  }
113
113
  }
114
- class x {
114
+ class A {
115
115
  /**
116
116
  * Constructor
117
117
  * @param props input data/ входные данные
@@ -122,24 +122,27 @@ class x {
122
122
  * @param components object for working with components/ объект для работы с компонентами
123
123
  * @param slots object for working with slots/ объект для работы со слотами
124
124
  * @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
125
+ * @param TextareaAutosizeValueConstructor class for working with value/ класс для работы со значением
126
+ * @param TextareaAutosizeResizeConstructor class for working with resize/ класс для работы с изменением размера
125
127
  */
126
- constructor(e, t, n, a, o, m, p, h) {
128
+ constructor(e, t, n, a, h, m, p, r, c = x, d = T) {
127
129
  s(this, "value");
128
130
  s(this, "resize");
129
- this.props = e, this.refs = t, this.element = n, this.classDesign = a, this.className = o, this.components = m, this.slots = p, this.emits = h, this.value = new v(e, t, h), this.resize = new z(e, n, this.value);
131
+ this.props = e, this.refs = t, this.element = n, this.classDesign = a, this.className = h, this.components = m, this.slots = p, this.emits = r, this.value = new c(e, t, r), this.resize = new d(e, n, this.value);
130
132
  }
131
133
  }
132
- const C = {
134
+ const D = {
133
135
  autosize: !0
134
136
  };
135
- class S extends g {
137
+ class E extends v {
136
138
  /**
137
139
  * Constructor
138
140
  * @param name class name/ название класса
139
141
  * @param props properties/ свойства
140
142
  * @param options list of additional parameters/ список дополнительных параметров
143
+ * @param ItemConstructor class for working with the item/ класс для работы с элементом
141
144
  */
142
- constructor(t, n, a) {
145
+ constructor(t, n, a, h = A) {
143
146
  super(
144
147
  t,
145
148
  n,
@@ -153,7 +156,7 @@ class S extends g {
153
156
  */
154
157
  s(this, "renderTextarea", () => {
155
158
  var t;
156
- return r("textarea", {
159
+ return l("textarea", {
157
160
  ...this.getAttrs(),
158
161
  ...this.props.inputAttrs,
159
162
  ref: this.element,
@@ -170,12 +173,12 @@ class S extends g {
170
173
  */
171
174
  s(this, "renderClone", () => {
172
175
  var t;
173
- return r("div", {
176
+ return l("div", {
174
177
  ref: this.item.resize.clone,
175
178
  class: (t = this.classes) == null ? void 0 : t.value.clone
176
179
  });
177
180
  });
178
- this.item = new x(
181
+ this.item = new h(
179
182
  this.props,
180
183
  this.refs,
181
184
  this.element,
@@ -229,7 +232,7 @@ class S extends g {
229
232
  }
230
233
  }
231
234
  export {
232
- x as TextareaAutosize,
233
- S as TextareaAutosizeDesign,
234
- C as defaultsTextareaAutosize
235
+ A as TextareaAutosize,
236
+ E as TextareaAutosizeDesign,
237
+ D as defaultsTextareaAutosize
235
238
  };
package/dist/tooltip.js CHANGED
@@ -1,14 +1,14 @@
1
- var I = Object.defineProperty;
2
- var x = (l, t, s) => t in l ? I(l, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : l[t] = s;
3
- var e = (l, t, s) => x(l, typeof t != "symbol" ? t + "" : t, s);
4
- import { ref as c, computed as m, watch as M, nextTick as S, onUnmounted as B, h as N, Teleport as P } from "vue";
5
- import { getElementId as $, isDomRuntime as A, EventItem as D, DesignConstructorAbstract as L } from "@dxtmisha/functional";
6
- import { A as b } from "./AriaStaticInclude-CFGewqpn.js";
7
- import { L as H } from "./LabelInclude-BtZrrbCf.js";
8
- import { D as k } from "./DescriptionInclude-DxWNon_J.js";
9
- import { A as q } from "./ArrowInclude-CcpT637l.js";
10
- import { T as st } from "./TooltipInclude--QRSE83v.js";
11
- class E {
1
+ var $ = Object.defineProperty;
2
+ var I = (r, t, s) => t in r ? $(r, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : r[t] = s;
3
+ var e = (r, t, s) => I(r, typeof t != "symbol" ? t + "" : t, s);
4
+ import { ref as m, computed as h, watch as x, nextTick as d, onUnmounted as B, h as v, Teleport as M } from "vue";
5
+ import { getElementId as g, isDomRuntime as P, EventItem as A, DesignConstructorAbstract as L } from "@dxtmisha/functional";
6
+ import { A as p } from "./AriaStaticInclude-CAURwJMb.js";
7
+ import { L as D } from "./LabelInclude-D-mLvjK5.js";
8
+ import { D as H } from "./DescriptionInclude-D4ane9aR.js";
9
+ import { A as E } from "./ArrowInclude-CcpT637l.js";
10
+ import { T as tt } from "./TooltipInclude--QRSE83v.js";
11
+ class k {
12
12
  /**
13
13
  * Constructor
14
14
  * @param className class name/ название класса
@@ -18,8 +18,8 @@ class E {
18
18
  * Identification of the current window. Used to search for the current component and its control/
19
19
  * Идентификация текущего окна. Используется для поиска текущего компонента и его контроля
20
20
  */
21
- e(this, "id", `tooltip--${$()}`);
22
- e(this, "idItem", `tooltip--${$()}-item`);
21
+ e(this, "id", `tooltip--${g()}`);
22
+ e(this, "idItem", `tooltip--${g()}-item`);
23
23
  this.className = t;
24
24
  }
25
25
  /**
@@ -69,7 +69,7 @@ class E {
69
69
  */
70
70
  findControl() {
71
71
  var t;
72
- if (A())
72
+ if (P())
73
73
  return (t = document.querySelector(this.getSelectorControl())) != null ? t : void 0;
74
74
  }
75
75
  /**
@@ -83,7 +83,7 @@ class E {
83
83
  return (s = t.closest(this.getSelectorControl())) != null ? s : void 0;
84
84
  }
85
85
  }
86
- class F {
86
+ class q {
87
87
  /**
88
88
  * Constructor
89
89
  * @param element instance of the element itself/ экземпляр самого элемента
@@ -154,30 +154,30 @@ class F {
154
154
  t && (t.classList.remove(`${this.className}--preparation`), t.classList.remove(`${this.className}--show`));
155
155
  }
156
156
  }
157
- class O {
157
+ class F {
158
158
  /**
159
159
  * Constructor
160
160
  * @param props input data/ входные данные
161
161
  * @param slots object for working with slots/ объект для работы со слотами
162
162
  */
163
163
  constructor(t, s) {
164
- e(this, "open", c(!1));
165
- e(this, "show", c(!1));
166
- e(this, "preparation", c(!1));
164
+ e(this, "open", m(!1));
165
+ e(this, "show", m(!1));
166
+ e(this, "preparation", m(!1));
167
167
  /**
168
168
  * Checks if there is text to display.
169
169
  *
170
170
  * Проверяет, есть ли текст для отображения.
171
171
  */
172
- e(this, "isText", m(
172
+ e(this, "isText", h(
173
173
  () => !this.props.disabled && !!(this.props.label || this.props.description || this.slots && ("default" in this.slots || "description" in this.slots || "body" in this.slots))
174
174
  ));
175
175
  /** Checks if the element needs to be displayed/ Проверяет, нужно ли отображать элемент */
176
- e(this, "isShow", m(
176
+ e(this, "isShow", h(
177
177
  () => !!(this.show.value || this.open.value || this.props.inDom) && this.isText.value
178
178
  ));
179
179
  /** Checks if the content is an array/ Проверяет, является ли содержимое массивом */
180
- e(this, "isArray", m(
180
+ e(this, "isArray", h(
181
181
  () => !!(this.props.arrowShow && this.preparation.value)
182
182
  ));
183
183
  this.props = t, this.slots = s;
@@ -219,7 +219,7 @@ class O {
219
219
  this.preparation.value = t;
220
220
  }
221
221
  }
222
- class R {
222
+ class O {
223
223
  /**
224
224
  * Constructor
225
225
  * @param props input data/ входные данные
@@ -238,13 +238,13 @@ class R {
238
238
  update() {
239
239
  const t = this.element.value, s = this.classes.findControl();
240
240
  if (t && s) {
241
- const i = s.getBoundingClientRect(), o = t.getBoundingClientRect(), n = this.getIndent(), h = this.isTop(i, o), r = i.left + i.width / 2 - o.width / 2, p = h ? i.top - o.height - n : i.bottom + n;
242
- let a = 0;
243
- r < 0 ? a = 0 - r : r + o.width > window.innerWidth && (a = window.innerWidth - (r + o.width)), this.style.set(
244
- h,
245
- r,
246
- p,
247
- a
241
+ const i = s.getBoundingClientRect(), o = t.getBoundingClientRect(), n = this.getIndent(), a = this.isTop(i, o), l = i.left + i.width / 2 - o.width / 2, c = a ? i.top - o.height - n : i.bottom + n;
242
+ let u = 0;
243
+ l < 0 ? u = 0 - l : l + o.width > window.innerWidth && (u = window.innerWidth - (l + o.width)), this.style.set(
244
+ a,
245
+ l,
246
+ c,
247
+ u
248
248
  );
249
249
  }
250
250
  }
@@ -269,7 +269,7 @@ class R {
269
269
  return (t = this.props.indent) != null ? t : 0;
270
270
  }
271
271
  }
272
- class W {
272
+ class R {
273
273
  /**
274
274
  * Constructor
275
275
  * @param props input data/ входные данные
@@ -279,7 +279,7 @@ class W {
279
279
  * @param position object for working with the position of the element/ объект для работы с положением элемента
280
280
  * @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
281
281
  */
282
- constructor(t, s, i, o, n, h) {
282
+ constructor(t, s, i, o, n, a) {
283
283
  e(this, "timeout");
284
284
  e(this, "timeoutHide");
285
285
  e(this, "timeoutTo");
@@ -292,15 +292,15 @@ class W {
292
292
  * @param flesh immediate display without delay/ мгновенное отображение без задержки
293
293
  */
294
294
  e(this, "toggle", async (t, s) => {
295
- this.status.isText.value && !this.status.isMatch(t) && (clearTimeout(this.timeout), clearTimeout(this.timeoutHide), t ? (this.status.setOpen(t), this.status.setShow(!0), await S(), this.position.update(), this.status.setPreparation(!0), await S(), requestAnimationFrame(() => {
295
+ this.status.isText.value && !this.status.isMatch(t) && (clearTimeout(this.timeout), clearTimeout(this.timeoutHide), t ? (this.status.setOpen(t), this.status.setShow(!0), await d(), this.position.update(), this.status.setPreparation(!0), await d(), requestAnimationFrame(() => {
296
296
  this.timeout = setTimeout(() => {
297
297
  this.style.setPreparation(!0), requestAnimationFrame(() => {
298
298
  var i;
299
- this.style.setShow(!0), this.event.start(), (i = this.emits) == null || i.call(this, "tooltip", !0), this.props.delayHide && (this.timeoutHide = setTimeout(() => this.toggle(!1), Number(this.props.delayHide)));
299
+ this.style.setShow(!0), this.eventStart(), (i = this.emits) == null || i.call(this, "tooltip", !0), this.props.delayHide && (this.timeoutHide = setTimeout(() => this.toggle(!1), Number(this.props.delayHide)));
300
300
  });
301
301
  }, s ? 48 : this.props.delay);
302
302
  })) : this.timeoutTo = setTimeout(() => {
303
- this.status.setOpen(t), this.style.resetShow(), this.event.stop(), this.timeout = setTimeout(() => {
303
+ this.status.setOpen(t), this.style.resetShow(), this.eventStop(), this.timeout = setTimeout(() => {
304
304
  var i;
305
305
  this.status.setShow(!1), this.status.setPreparation(!1), (i = this.emits) == null || i.call(this, "tooltip", !1);
306
306
  }, 128);
@@ -312,7 +312,7 @@ class W {
312
312
  * Управление событиями скролла.
313
313
  */
314
314
  e(this, "onScroll", () => this.toggle(!1, !0));
315
- this.props = t, this.style = i, this.status = o, this.position = n, this.emits = h, this.event = new D(window, ["scroll-sync"], this.onScroll), M([s.open], () => {
315
+ this.props = t, this.style = i, this.status = o, this.position = n, this.emits = a, this.event = new A(window, ["scroll-sync"], this.onScroll), x([s.open], () => {
316
316
  this.toggle(!!this.props.open).then();
317
317
  }, { immediate: this.props.open });
318
318
  }
@@ -329,19 +329,28 @@ class W {
329
329
  *
330
330
  * Запуск прослушивания событий скролла.
331
331
  */
332
+ eventStart() {
333
+ this.props.embedded || this.event.start();
334
+ }
335
+ /**
336
+ * Stop listening to scroll events.
337
+ *
338
+ * Остановка прослушивания событий скролла.
339
+ */
332
340
  eventStop() {
333
341
  this.event.stop();
334
342
  }
335
343
  }
336
- class _ {
344
+ class W {
337
345
  /**
338
346
  * Constructor
347
+ * @param props input data/ входные данные
339
348
  * @param classes object for working with the class/ объект для работы с классом
340
349
  * @param style object for working with styles/ объект для работы со стилями
341
350
  * @param status object for working with statuses/ объект для работы со статусами
342
351
  * @param open data opening management/ управление открытием данных
343
352
  */
344
- constructor(t, s, i, o) {
353
+ constructor(t, s, i, o, n) {
345
354
  e(this, "next", !1);
346
355
  e(this, "timeout");
347
356
  /**
@@ -350,7 +359,7 @@ class _ {
350
359
  * События при клике на элементе в мобильном приложении.
351
360
  */
352
361
  e(this, "onClick", () => {
353
- requestAnimationFrame(async () => {
362
+ this.isNotEmbedded() && requestAnimationFrame(async () => {
354
363
  this.next || (clearTimeout(this.timeout), await this.open.toggle(!this.status.open.value, !0), this.next = !1);
355
364
  });
356
365
  });
@@ -361,13 +370,13 @@ class _ {
361
370
  * @param target selected element/ выбранный элемент
362
371
  */
363
372
  e(this, "onMouseover", ({ target: t }) => {
364
- clearTimeout(this.timeout), this.next = !0, requestAnimationFrame(async () => {
373
+ this.isNotEmbedded() && (clearTimeout(this.timeout), this.next = !0, requestAnimationFrame(async () => {
365
374
  await this.open.toggle(
366
375
  !!this.classes.findControlByTarget(t)
367
376
  ), this.timeout = setTimeout(() => {
368
377
  this.next = !1;
369
378
  }, 640);
370
- });
379
+ }));
371
380
  });
372
381
  /**
373
382
  * Element management events on receiving focus on the tooltip itself.
@@ -384,7 +393,7 @@ class _ {
384
393
  * @param relatedTarget selected element/ выбранный элемент
385
394
  */
386
395
  e(this, "onMouseout", ({ relatedTarget: t }) => {
387
- t && this.open.toggle(
396
+ this.isNotEmbedded() && t && this.open.toggle(
388
397
  !!this.classes.findControlByTarget(t)
389
398
  ).then();
390
399
  });
@@ -397,10 +406,13 @@ class _ {
397
406
  e(this, "onTransitionend", (t) => {
398
407
  t.propertyName === "transform" && this.status.open.value && this.style.setMove(!0);
399
408
  });
400
- this.classes = t, this.style = s, this.status = i, this.open = o;
409
+ this.props = t, this.classes = s, this.style = i, this.status = o, this.open = n;
410
+ }
411
+ isNotEmbedded() {
412
+ return !this.props.embedded;
401
413
  }
402
414
  }
403
- class U {
415
+ class _ {
404
416
  /**
405
417
  * Constructor
406
418
  * @param props input data/ входные данные
@@ -421,71 +433,110 @@ class U {
421
433
  * @param LabelIncludeConstructor class for working with label/ класс для работы с меткой
422
434
  * @param DescriptionIncludeConstructor class for working with description/ класс для работы с описанием
423
435
  */
424
- constructor(t, s, i, o, n, h, r, p, a = E, u = F, d = O, g = R, y = W, v = _, f = q, w = H, T = k) {
436
+ constructor(t, s, i, o, n, a, l, c, u = k, y = q, f = F, w = O, b = R, T = W, C = E, N = D, S = H) {
437
+ /** Class manager for tooltip classes/ Менеджер классов для подсказки */
425
438
  e(this, "classes");
439
+ /** Style manager for tooltip styles/ Менеджер стилей для подсказки */
426
440
  e(this, "style");
441
+ /** Status manager for tooltip state/ Менеджер статуса для состояния подсказки */
427
442
  e(this, "status");
443
+ /** Position manager for tooltip placement/ Менеджер позиции для размещения подсказки */
428
444
  e(this, "position");
445
+ /** Open manager for tooltip visibility/ Менеджер открытия для видимости подсказки */
429
446
  e(this, "open");
447
+ /** Event manager for tooltip interactions/ Менеджер событий для взаимодействий с подсказкой */
430
448
  e(this, "event");
449
+ /** Arrow manager/ Менеджер стрелки */
431
450
  e(this, "arrow");
451
+ /** Label manager/ Менеджер метки */
432
452
  e(this, "label");
453
+ /** Description manager/ Менеджер описания */
433
454
  e(this, "description");
455
+ /**
456
+ * Computed bindings for the tooltip element/
457
+ * Вычисляемые привязки для элемента подсказки
458
+ */
459
+ e(this, "binds", h(() => ({
460
+ id: this.classes.getIdItem(),
461
+ onMouseover: this.event.onMouseoverTooltip,
462
+ onMouseout: this.event.onMouseout,
463
+ onTransitionend: this.event.onTransitionend,
464
+ ...p.role(this.role.value),
465
+ ...p.labelledby(this.label.id.value),
466
+ ...p.describedby(this.description.id.value)
467
+ })));
468
+ /**
469
+ * Computed bindings for the control element/
470
+ * Вычисляемые привязки для элемента управления
471
+ */
472
+ e(this, "bindsControl", h(() => {
473
+ const t = {
474
+ class: this.classes.getControl(),
475
+ onclick: this.event.onClick,
476
+ onmouseover: this.event.onMouseover,
477
+ onmouseout: this.event.onMouseout
478
+ };
479
+ return this.props.interactive ? {
480
+ ...t,
481
+ ...p.expanded(this.status.open.value),
482
+ ...p.controls(this.classes.getIdItem())
483
+ } : {
484
+ ...t,
485
+ ...p.describedby(this.classes.getIdItem())
486
+ };
487
+ }));
434
488
  /** Data for the control slot/ Данные для слота управления */
435
- e(this, "slotData");
436
- this.props = t, this.refs = s, this.element = i, this.classDesign = o, this.className = n, this.components = h, this.slots = r, this.emits = p, this.TooltipClassesConstructor = a, this.TooltipStyleConstructor = u, this.TooltipStatusConstructor = d, this.TooltipPositionConstructor = g, this.TooltipOpenConstructor = y, this.TooltipEventConstructor = v, this.ArrowIncludeConstructor = f, this.LabelIncludeConstructor = w, this.DescriptionIncludeConstructor = T, this.classes = new a(this.className), this.style = new u(this.element, this.className), this.status = new d(this.props, this.slots), this.position = new g(
489
+ e(this, "slotData", h(() => ({
490
+ ...this.bindsControl.value,
491
+ open: this.status.open,
492
+ binds: this.bindsControl.value
493
+ })));
494
+ /** Computed role for the tooltip/ Вычисляемая роль для подсказки */
495
+ e(this, "role", h(() => this.props.interactive ? "region" : "tooltip"));
496
+ this.props = t, this.refs = s, this.element = i, this.classDesign = o, this.className = n, this.components = a, this.slots = l, this.emits = c, this.classes = new u(this.className), this.style = new y(this.element, this.className), this.status = new f(this.props, this.slots), this.position = new w(
437
497
  this.props,
438
498
  this.element,
439
499
  this.classes,
440
500
  this.style
441
- ), this.open = new y(
501
+ ), this.open = new b(
442
502
  this.props,
443
503
  this.refs,
444
504
  this.style,
445
505
  this.status,
446
506
  this.position
447
- ), this.event = new v(
507
+ ), this.event = new T(
508
+ this.props,
448
509
  this.classes,
449
510
  this.style,
450
511
  this.status,
451
512
  this.open
452
- ), this.arrow = new f(
513
+ ), this.arrow = new C(
453
514
  this.props,
454
515
  this.className,
455
516
  this.components,
456
517
  this.classes.getSelectorControl()
457
- ), this.label = new w(
518
+ ), this.label = new N(
458
519
  this.props,
459
520
  this.className,
460
521
  void 0,
461
522
  this.slots
462
- ), this.description = new T(
523
+ ), this.description = new S(
463
524
  this.props,
464
525
  this.className,
465
526
  this.slots
466
- );
467
- const C = {
468
- class: this.classes.getControl(),
469
- onclick: this.event.onClick,
470
- onmouseover: this.event.onMouseover,
471
- onmouseout: this.event.onMouseout,
472
- ...b.describedby(this.classes.getIdItem())
473
- };
474
- this.slotData = {
475
- ...C,
476
- open: this.status.open,
477
- binds: C
478
- }, B(() => {
527
+ ), B(() => {
479
528
  this.open.eventStop();
480
529
  });
481
530
  }
482
531
  }
483
- const X = {
532
+ const V = {
484
533
  indent: 4,
485
534
  delay: 64,
486
- delayHide: 0
535
+ delayHide: 0,
536
+ // :default [!] System label / Системная метка
537
+ interactive: !0
487
538
  };
488
- class Y extends L {
539
+ class X extends L {
489
540
  /**
490
541
  * Constructor
491
542
  * @param name class name/ название класса
@@ -493,7 +544,7 @@ class Y extends L {
493
544
  * @param options list of additional parameters/ список дополнительных параметров
494
545
  * @param ItemConstructor tooltip item class/ класс элемента тултипа
495
546
  */
496
- constructor(s, i, o, n = U) {
547
+ constructor(s, i, o, n = _) {
497
548
  super(
498
549
  s,
499
550
  i,
@@ -506,7 +557,7 @@ class Y extends L {
506
557
  * Рендеринг слота управления.
507
558
  */
508
559
  e(this, "renderControl", () => [
509
- this.initSlot("control", void 0, this.item.slotData)
560
+ this.initSlot("control", void 0, this.item.slotData.value)
510
561
  ]);
511
562
  /**
512
563
  * Rendering of the tooltip.
@@ -521,28 +572,26 @@ class Y extends L {
521
572
  ...this.item.description.render(),
522
573
  ...this.renderBody()
523
574
  ];
524
- return this.item.status.isArray.value && i.push(
575
+ this.item.status.isArray.value && i.push(
525
576
  ...this.item.arrow.render()
526
- ), [
527
- N(
528
- P,
577
+ );
578
+ const o = v(
579
+ "div",
580
+ {
581
+ ref: this.element,
582
+ class: (s = this.classes) == null ? void 0 : s.value.main,
583
+ ...this.item.binds.value
584
+ },
585
+ i
586
+ );
587
+ return this.props.embedded ? [o] : [
588
+ v(
589
+ M,
529
590
  {
530
591
  key: "teleport",
531
592
  to: "body"
532
593
  },
533
- N(
534
- "div",
535
- {
536
- ref: this.element,
537
- id: this.item.classes.getIdItem(),
538
- class: (s = this.classes) == null ? void 0 : s.value.main,
539
- onMouseover: this.item.event.onMouseoverTooltip,
540
- onMouseout: this.item.event.onMouseout,
541
- onTransitionend: this.item.event.onTransitionend,
542
- ...b.role("tooltip")
543
- },
544
- i
545
- )
594
+ o
546
595
  )
547
596
  ];
548
597
  }
@@ -612,8 +661,8 @@ class Y extends L {
612
661
  }
613
662
  }
614
663
  export {
615
- U as Tooltip,
616
- Y as TooltipDesign,
617
- st as TooltipInclude,
618
- X as defaultsTooltip
664
+ _ as Tooltip,
665
+ X as TooltipDesign,
666
+ tt as TooltipInclude,
667
+ V as defaultsTooltip
619
668
  };
@@ -274,6 +274,13 @@ export type AriaDescriptionPropsInclude = {
274
274
  export type AriaHaspopupPropsInclude = {
275
275
  ariaHaspopup?: AriaList['aria-haspopup'];
276
276
  };
277
+ /**
278
+ * ARIA multiselectable prop/
279
+ * ARIA проп multiselectable
280
+ */
281
+ export type AriaMultiselectablePropsInclude = {
282
+ ariaMultiselectable?: boolean;
283
+ };
277
284
  /**
278
285
  * ARIA live prop/
279
286
  * ARIA проп live
@@ -11,4 +11,6 @@ export interface CaptionSlots {
11
11
  export type CaptionProps = {
12
12
  /** Caption text or number/ Текст или число заголовка */
13
13
  caption?: string | number;
14
+ /** Whether the caption is decorative/ Является ли подпись декоративной */
15
+ captionDecorative?: boolean;
14
16
  };
@@ -1,13 +1,3 @@
1
- /**
2
- * Expose for description functionality/ Экспоз для функциональности описания
3
- */
4
- export interface DescriptionExpose {
5
- /** Description identifier/ Идентификатор описания */
6
- descriptionId: string;
7
- }
8
- /**
9
- * Slots for description functionality/ Слоты для функциональности описания
10
- */
11
1
  export interface DescriptionSlots {
12
2
  /** Description slot/ Слот описания */
13
3
  description?(props: any): any;
@@ -18,4 +8,6 @@ export interface DescriptionSlots {
18
8
  export type DescriptionProps = {
19
9
  /** Description text or number/ Текст или число описания */
20
10
  description?: string | number;
11
+ /** Description identifier/ Идентификатор описания */
12
+ descriptionId?: string;
21
13
  };
@@ -1,11 +1,4 @@
1
1
  import { NumberOrString } from '@dxtmisha/functional';
2
- /**
3
- * Exposed properties for label components/ Экспонируемые свойства для компонентов меток
4
- */
5
- export interface LabelExpose {
6
- /** Label element ID/ Идентификатор элемента метки */
7
- labelId: string;
8
- }
9
2
  /**
10
3
  * Slot definitions for label components/ Определения слотов для компонентов меток
11
4
  */
@@ -11,4 +11,6 @@ export interface PrefixSlots {
11
11
  export type PrefixProps = {
12
12
  /** Prefix text or number/ Текст или число префикса */
13
13
  prefix?: string | number;
14
+ /** Unique identifier for the prefix element/ Уникальный идентификатор для элемента префикса */
15
+ prefixId?: string;
14
16
  };
@@ -11,4 +11,6 @@ export interface SuffixSlots {
11
11
  export type SuffixProps = {
12
12
  /** Suffix text or number/ Текст или число суффикса */
13
13
  suffix?: string | number;
14
+ /** Unique identifier for the suffix element/ Уникальный идентификатор для элемента суффикса */
15
+ suffixId?: string;
14
16
  };