@dxtmisha/constructor 0.39.3 → 0.39.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) 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-CBNCh_iN.js +628 -0
  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 → Field}/FieldInputModeInclude.d.ts +1 -0
  43. package/dist/classes/LabelInclude.d.ts +4 -17
  44. package/dist/classes/Plugin/Plugin.d.ts +80 -0
  45. package/dist/classes/Plugin/PluginCode.d.ts +94 -0
  46. package/dist/classes/Plugin/PluginComponents.d.ts +38 -0
  47. package/dist/classes/Plugin/PluginData.d.ts +81 -0
  48. package/dist/classes/Plugin/PluginImport.d.ts +34 -0
  49. package/dist/classes/Plugin/PluginStyle.d.ts +71 -0
  50. package/dist/classes/Plugin/PluginTool.d.ts +42 -0
  51. package/dist/classes/PrefixInclude.d.ts +9 -1
  52. package/dist/classes/SuffixInclude.d.ts +9 -1
  53. package/dist/classes/TabIndexInclude.d.ts +14 -8
  54. package/dist/classes/TextInclude.d.ts +33 -5
  55. package/dist/constructors/Accordion/Accordion.d.ts +28 -1
  56. package/dist/constructors/Accordion/props.d.ts +5 -7
  57. package/dist/constructors/ActionSheet/props.d.ts +4 -7
  58. package/dist/constructors/Actions/Actions.d.ts +2 -1
  59. package/dist/constructors/Actions/ActionsDesign.d.ts +2 -1
  60. package/dist/constructors/Actions/basicTypes.d.ts +2 -2
  61. package/dist/constructors/Actions/props.d.ts +6 -7
  62. package/dist/constructors/Anchor/Anchor.d.ts +0 -7
  63. package/dist/constructors/Anchor/AnchorIcon.d.ts +4 -4
  64. package/dist/constructors/Anchor/basicTypes.d.ts +2 -2
  65. package/dist/constructors/Anchor/props.d.ts +8 -10
  66. package/dist/constructors/Anchor/types.d.ts +2 -2
  67. package/dist/constructors/Arrow/Arrow.d.ts +0 -5
  68. package/dist/constructors/Arrow/basicTypes.d.ts +2 -2
  69. package/dist/constructors/Arrow/props.d.ts +5 -7
  70. package/dist/constructors/Badge/Badge.d.ts +5 -1
  71. package/dist/constructors/Badge/BadgeDesign.d.ts +2 -1
  72. package/dist/constructors/Badge/basicTypes.d.ts +2 -2
  73. package/dist/constructors/Badge/props.d.ts +5 -7
  74. package/dist/constructors/Bars/Bars.d.ts +33 -8
  75. package/dist/constructors/Bars/BarsAction.d.ts +6 -2
  76. package/dist/constructors/Bars/BarsDesign.d.ts +2 -1
  77. package/dist/constructors/Bars/BarsInclude.d.ts +7 -2
  78. package/dist/constructors/Bars/basicTypes.d.ts +2 -2
  79. package/dist/constructors/Bars/props.d.ts +5 -8
  80. package/dist/constructors/Bars/types.d.ts +3 -3
  81. package/dist/constructors/Block/Block.d.ts +0 -4
  82. package/dist/constructors/Block/BlockDesign.d.ts +9 -1
  83. package/dist/constructors/Block/props.d.ts +4 -7
  84. package/dist/constructors/Block/types.d.ts +3 -3
  85. package/dist/constructors/Button/Button.d.ts +22 -1
  86. package/dist/constructors/Button/ButtonDesign.d.ts +2 -1
  87. package/dist/constructors/Button/basicTypes.d.ts +2 -2
  88. package/dist/constructors/Button/props.d.ts +7 -11
  89. package/dist/constructors/Button/types.d.ts +2 -2
  90. package/dist/constructors/Cell/Cell.d.ts +10 -1
  91. package/dist/constructors/Cell/CellDesign.d.ts +2 -1
  92. package/dist/constructors/Cell/props.d.ts +5 -7
  93. package/dist/constructors/Cell/types.d.ts +3 -3
  94. package/dist/constructors/Chip/basicTypes.d.ts +2 -2
  95. package/dist/constructors/Chip/props.d.ts +4 -7
  96. package/dist/constructors/ChipGroup/ChipGroup.d.ts +4 -1
  97. package/dist/constructors/ChipGroup/ChipGroupDesign.d.ts +2 -1
  98. package/dist/constructors/ChipGroup/props.d.ts +4 -7
  99. package/dist/constructors/Dialog/Dialog.d.ts +1 -2
  100. package/dist/constructors/Dialog/props.d.ts +5 -7
  101. package/dist/constructors/Field/Field.d.ts +33 -6
  102. package/dist/constructors/Field/FieldDesign.d.ts +2 -1
  103. package/dist/constructors/Field/FieldIcons.d.ts +4 -1
  104. package/dist/constructors/Field/FieldInclude.d.ts +11 -3
  105. package/dist/constructors/Field/basicTypes.d.ts +2 -2
  106. package/dist/constructors/Field/props.d.ts +6 -7
  107. package/dist/constructors/FieldCounter/FieldCounter.d.ts +22 -1
  108. package/dist/constructors/FieldCounter/FieldCounterDesign.d.ts +9 -2
  109. package/dist/constructors/FieldCounter/props.d.ts +10 -7
  110. package/dist/constructors/FieldCounter/types.d.ts +1 -0
  111. package/dist/constructors/FieldLabel/FieldLabel.d.ts +5 -1
  112. package/dist/constructors/FieldLabel/FieldLabelDesign.d.ts +2 -1
  113. package/dist/constructors/FieldLabel/FieldLabelInclude.d.ts +7 -5
  114. package/dist/constructors/FieldLabel/basicTypes.d.ts +2 -2
  115. package/dist/constructors/FieldLabel/props.d.ts +5 -7
  116. package/dist/constructors/FieldLabel/types.d.ts +2 -2
  117. package/dist/constructors/FieldMessage/FieldMessage.d.ts +16 -1
  118. package/dist/constructors/FieldMessage/FieldMessageDesign.d.ts +2 -1
  119. package/dist/constructors/FieldMessage/FieldMessageInclude.d.ts +8 -9
  120. package/dist/constructors/FieldMessage/props.d.ts +4 -7
  121. package/dist/constructors/Icon/Icon.d.ts +7 -2
  122. package/dist/constructors/Icon/IconLiteInclude.d.ts +1 -2
  123. package/dist/constructors/Icon/basicTypes.d.ts +6 -6
  124. package/dist/constructors/Icon/props.d.ts +8 -8
  125. package/dist/constructors/Icon/types.d.ts +3 -2
  126. package/dist/constructors/Image/Image.d.ts +0 -7
  127. package/dist/constructors/Image/basicTypes.d.ts +2 -2
  128. package/dist/constructors/Image/props.d.ts +5 -7
  129. package/dist/constructors/Input/Input.d.ts +33 -14
  130. package/dist/constructors/Input/InputDesign.d.ts +2 -1
  131. package/dist/constructors/Input/InputPassword.d.ts +5 -2
  132. package/dist/constructors/Input/props.d.ts +3 -7
  133. package/dist/constructors/List/List.d.ts +35 -27
  134. package/dist/constructors/List/ListDesign.d.ts +2 -1
  135. package/dist/constructors/List/ListFocus.d.ts +10 -2
  136. package/dist/constructors/List/ListGo.d.ts +22 -4
  137. package/dist/constructors/List/props.d.ts +8 -8
  138. package/dist/constructors/ListGroup/ListGroup.d.ts +2 -1
  139. package/dist/constructors/ListGroup/ListGroupDesign.d.ts +2 -1
  140. package/dist/constructors/ListGroup/basicTypes.d.ts +2 -2
  141. package/dist/constructors/ListGroup/props.d.ts +5 -7
  142. package/dist/constructors/ListItem/ListItem.d.ts +17 -60
  143. package/dist/constructors/ListItem/props.d.ts +7 -10
  144. package/dist/constructors/ListMenu/ListMenu.d.ts +3 -1
  145. package/dist/constructors/ListMenu/ListMenuDesign.d.ts +2 -1
  146. package/dist/constructors/ListMenu/props.d.ts +4 -7
  147. package/dist/constructors/Mask/Mask.d.ts +24 -1
  148. package/dist/constructors/Mask/MaskDesign.d.ts +2 -1
  149. package/dist/constructors/Mask/MaskInclude.d.ts +2 -2
  150. package/dist/constructors/Mask/MaskPattern.d.ts +1 -1
  151. package/dist/constructors/Mask/props.d.ts +5 -7
  152. package/dist/constructors/Menu/Menu.d.ts +11 -7
  153. package/dist/constructors/Menu/MenuDesign.d.ts +2 -1
  154. package/dist/constructors/Menu/MenuRequest.d.ts +1 -5
  155. package/dist/constructors/Menu/basicTypes.d.ts +2 -2
  156. package/dist/constructors/Menu/props.d.ts +7 -8
  157. package/dist/constructors/Modal/ModalDesign.d.ts +1 -1
  158. package/dist/constructors/Modal/ModalDesignAbstract.d.ts +3 -2
  159. package/dist/constructors/Modal/props.d.ts +5 -7
  160. package/dist/constructors/MotionTransform/MotionTransform.d.ts +10 -8
  161. package/dist/constructors/MotionTransform/MotionTransformDesign.d.ts +13 -2
  162. package/dist/constructors/MotionTransform/MotionTransformEvent.d.ts +14 -0
  163. package/dist/constructors/MotionTransform/props.d.ts +6 -8
  164. package/dist/constructors/Page/props.d.ts +3 -7
  165. package/dist/constructors/Progress/Progress.d.ts +20 -0
  166. package/dist/constructors/Progress/ProgressDesign.d.ts +4 -60
  167. package/dist/constructors/Progress/basicTypes.d.ts +2 -2
  168. package/dist/constructors/Progress/props.d.ts +7 -9
  169. package/dist/constructors/Ripple/RippleDesign.d.ts +2 -1
  170. package/dist/constructors/Ripple/props.d.ts +4 -7
  171. package/dist/constructors/Scrollbar/Scrollbar.d.ts +3 -1
  172. package/dist/constructors/Scrollbar/ScrollbarDesign.d.ts +2 -1
  173. package/dist/constructors/Scrollbar/basicTypes.d.ts +2 -2
  174. package/dist/constructors/Scrollbar/props.d.ts +5 -7
  175. package/dist/constructors/Section/props.d.ts +3 -7
  176. package/dist/constructors/Select/Select.d.ts +19 -8
  177. package/dist/constructors/Select/SelectDesign.d.ts +2 -1
  178. package/dist/constructors/Select/SelectInput.d.ts +3 -3
  179. package/dist/constructors/Select/props.d.ts +4 -7
  180. package/dist/constructors/SelectValue/SelectValue.d.ts +4 -1
  181. package/dist/constructors/SelectValue/SelectValueDesign.d.ts +2 -1
  182. package/dist/constructors/SelectValue/props.d.ts +4 -7
  183. package/dist/constructors/Skeleton/SkeletonDesign.d.ts +2 -1
  184. package/dist/constructors/Skeleton/basicTypes.d.ts +2 -2
  185. package/dist/constructors/Skeleton/props.d.ts +4 -7
  186. package/dist/constructors/TextareaAutosize/TextareaAutosize.d.ts +3 -1
  187. package/dist/constructors/TextareaAutosize/TextareaAutosizeDesign.d.ts +2 -1
  188. package/dist/constructors/TextareaAutosize/props.d.ts +4 -7
  189. package/dist/constructors/Tooltip/Tooltip.d.ts +82 -13
  190. package/dist/constructors/Tooltip/TooltipEvent.d.ts +6 -2
  191. package/dist/constructors/Tooltip/TooltipOpen.d.ts +7 -1
  192. package/dist/constructors/Tooltip/basicTypes.d.ts +2 -2
  193. package/dist/constructors/Tooltip/props.d.ts +13 -7
  194. package/dist/constructors/Window/Window.d.ts +25 -1
  195. package/dist/constructors/Window/WindowDesign.d.ts +5 -63
  196. package/dist/constructors/Window/WindowEsc.d.ts +2 -2
  197. package/dist/constructors/Window/WindowEvent.d.ts +20 -3
  198. package/dist/constructors/Window/WindowHidden.d.ts +9 -3
  199. package/dist/constructors/Window/WindowInclude.d.ts +5 -1
  200. package/dist/constructors/Window/basicTypes.d.ts +7 -3
  201. package/dist/constructors/Window/props.d.ts +19 -9
  202. package/dist/dialog.js +4 -4
  203. package/dist/field.js +161 -126
  204. package/dist/fieldCounter.js +107 -38
  205. package/dist/fieldLabel.js +41 -37
  206. package/dist/fieldMessage.js +87 -65
  207. package/dist/icon.js +55 -39
  208. package/dist/image.js +108 -110
  209. package/dist/input.js +102 -80
  210. package/dist/library/plugin.d.ts +2 -0
  211. package/dist/library.d.ts +22 -14
  212. package/dist/library.js +55 -47
  213. package/dist/list.js +152 -87
  214. package/dist/listGroup.js +23 -21
  215. package/dist/listItem.js +116 -100
  216. package/dist/listMenu.js +26 -20
  217. package/dist/mask.js +113 -89
  218. package/dist/media/styleModification.d.ts +6 -0
  219. package/dist/menu.js +64 -49
  220. package/dist/modal.js +9 -9
  221. package/dist/motionTransform.js +138 -106
  222. package/dist/page.js +1 -1
  223. package/dist/plugin.js +4 -0
  224. package/dist/progress.js +65 -38
  225. package/dist/ripple.js +4 -3
  226. package/dist/scrollbar.js +23 -20
  227. package/dist/section.js +1 -1
  228. package/dist/select.js +105 -90
  229. package/dist/selectValue.js +29 -25
  230. package/dist/skeleton.js +20 -22
  231. package/dist/textareaAutosize.js +26 -23
  232. package/dist/tooltip.js +140 -91
  233. package/dist/types/ariaTypes.d.ts +22 -16
  234. package/dist/types/captionTypes.d.ts +4 -2
  235. package/dist/types/descriptionTypes.d.ts +4 -12
  236. package/dist/types/enabledTypes.d.ts +2 -2
  237. package/dist/types/eventClickTypes.d.ts +2 -2
  238. package/dist/types/fieldTypes.d.ts +40 -41
  239. package/dist/types/labelTypes.d.ts +6 -13
  240. package/dist/types/modelTypes.d.ts +4 -4
  241. package/dist/types/pluginTypes.d.ts +17 -0
  242. package/dist/types/prefixTypes.d.ts +4 -2
  243. package/dist/types/suffixTypes.d.ts +4 -2
  244. package/dist/types/textTypes.d.ts +50 -11
  245. package/dist/window.js +169 -105
  246. package/package.json +89 -90
  247. package/src/constructors/Actions/style.scss +0 -1
  248. package/src/constructors/Bars/style.scss +2 -0
  249. package/src/constructors/FieldCounter/style.scss +5 -0
  250. package/src/constructors/Progress/style.scss +2 -0
  251. package/src/constructors/Tooltip/style.scss +10 -2
  252. package/src/constructors/Window/style.scss +7 -1
  253. package/dist/ButtonDesign-DZ7QCmHk.js +0 -169
  254. package/dist/CaptionInclude-AFVF4qyd.js +0 -52
  255. package/dist/TextInclude-i1OBAFTG.js +0 -76
  256. /package/dist/classes/{field → Field}/FieldArrowInclude.d.ts +0 -0
  257. /package/dist/classes/{field → Field}/FieldAttributesInclude.d.ts +0 -0
  258. /package/dist/classes/{field → Field}/FieldChangeInclude.d.ts +0 -0
  259. /package/dist/classes/{field → Field}/FieldCodeInclude.d.ts +0 -0
  260. /package/dist/classes/{field → Field}/FieldElementInclude.d.ts +0 -0
  261. /package/dist/classes/{field → Field}/FieldEventInclude.d.ts +0 -0
  262. /package/dist/classes/{field → Field}/FieldInputCheckInclude.d.ts +0 -0
  263. /package/dist/classes/{field → Field}/FieldMatchInclude.d.ts +0 -0
  264. /package/dist/classes/{field → Field}/FieldPatternInclude.d.ts +0 -0
  265. /package/dist/classes/{field → Field}/FieldTypeInclude.d.ts +0 -0
  266. /package/dist/classes/{field → Field}/FieldValidationInclude.d.ts +0 -0
  267. /package/dist/classes/{field → Field}/FieldValueInclude.d.ts +0 -0
  268. /package/dist/classes/{field → Field}/FieldVisibilityInclude.d.ts +0 -0
package/dist/field.js CHANGED
@@ -1,31 +1,33 @@
1
- var u = Object.defineProperty;
2
- var m = (n, e, s) => e in n ? u(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s;
3
- var t = (n, e, s) => m(n, typeof e != "symbol" ? e + "" : e, s);
4
- import { computed as a, watch as b, onUnmounted as f, onMounted as y, onUpdated as v, h as r } from "vue";
5
- import { isDomRuntime as g, EventItem as _, getElementId as S, DesignConstructorAbstract as I, isString as w } from "@dxtmisha/functional";
6
- import { C as N } from "./CaptionInclude-AFVF4qyd.js";
7
- import { P as x, S as B } from "./SuffixInclude-C7JNYCJK.js";
8
- import { E as $ } from "./EnabledInclude-DGeuJhOr.js";
9
- import { E as C } from "./EventClickInclude-eDWqxK0d.js";
10
- import { A as d } from "./AriaStaticInclude-CFGewqpn.js";
11
- import { F as L } from "./FieldLabelInclude-B4OGaJ1r.js";
12
- import { F as E } from "./FieldMessageInclude-CktVHvWW.js";
13
- import { S as k } from "./SkeletonInclude-BIUzAO2s.js";
14
- import { I as A } from "./IconTrailingInclude-CdsOcDxv.js";
15
- import { P as F } from "./ProgressInclude-UBipdctr.js";
16
- class T {
1
+ var B = Object.defineProperty;
2
+ var I = (n, t, s) => t in n ? B(n, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[t] = s;
3
+ var e = (n, t, s) => I(n, typeof t != "symbol" ? t + "" : t, s);
4
+ import { computed as r, watch as $, onUnmounted as L, onMounted as E, onUpdated as k, h as l } from "vue";
5
+ import { isDomRuntime as A, EventItem as T, getElementId as F, DesignConstructorAbstract as q, isString as P } from "@dxtmisha/functional";
6
+ import { A as d } from "./AriaStaticInclude-CAURwJMb.js";
7
+ import { C as M } from "./CaptionInclude-NzS6EYYj.js";
8
+ import { P as D, S as V } from "./SuffixInclude-maZ7235l.js";
9
+ import { E as R } from "./EnabledInclude-Dk-rP4jp.js";
10
+ import { E as z } from "./EventClickInclude-WHJqxZ1b.js";
11
+ import { T as W } from "./TextInclude--GERRCGj.js";
12
+ import { F as K } from "./FieldLabelInclude-Bkxf6rRw.js";
13
+ import { F as U } from "./FieldMessageInclude-BJDnir34.js";
14
+ import { S as j } from "./SkeletonInclude-BIUzAO2s.js";
15
+ import { I as H } from "./IconTrailingInclude-CdsOcDxv.js";
16
+ import { P as G } from "./ProgressInclude-9MfZWtGP.js";
17
+ class J {
17
18
  /**
18
19
  * Constructor
19
20
  * @param props input data/ входные данные
20
21
  * @param className class name/ название класса
22
+ * @param text text include/ Подключение текста
21
23
  */
22
- constructor(e, s) {
24
+ constructor(t, s, i) {
23
25
  /**
24
26
  * Determines whether to display arrows.
25
27
  *
26
28
  * Определяет, требуется ли отображение стрелок.
27
29
  */
28
- t(this, "isArrow", a(
30
+ e(this, "isArrow", r(
29
31
  () => !!((this.props.arrowCarousel || this.props.arrowStepper) && !this.props.disabled)
30
32
  ));
31
33
  /**
@@ -33,72 +35,75 @@ class T {
33
35
  *
34
36
  * Определяет, требуется ли отображение кнопки "Удалить".
35
37
  */
36
- t(this, "isCancel", a(() => !!(this.props.cancel && !this.props.readonly && !this.props.disabled && !this.props.arrowCarousel && !this.props.arrowStepper && (this.props.cancel === "auto" && this.props.cancelShow || this.props.cancel === "always"))));
38
+ e(this, "isCancel", r(() => !!(this.props.cancel && !this.props.readonly && !this.props.disabled && !this.props.arrowCarousel && !this.props.arrowStepper && (this.props.cancel === "auto" && this.props.cancelShow || this.props.cancel === "always"))));
37
39
  /**
38
40
  * Returns data for the data deletion button.
39
41
  *
40
42
  * Возвращает данные для кнопки удаления данных.
41
43
  */
42
- t(this, "cancelBind", a(() => ({
44
+ e(this, "cancelBind", r(() => ({
43
45
  class: `${this.className}__cancel`,
44
46
  icon: this.props.iconClose,
45
47
  dynamic: !0,
46
- "data-event-type": "cancel"
48
+ "data-event-type": "cancel",
49
+ ariaLabel: this.text.cancel.value
47
50
  })));
48
51
  /**
49
52
  * Returns data for the left arrow.
50
53
  *
51
54
  * Возвращает данные для стрелки слева.
52
55
  */
53
- t(this, "previousBind", a(() => ({
56
+ e(this, "previousBind", r(() => ({
54
57
  class: `${this.className}__previous`,
55
58
  icon: this.props.arrowCarousel ? this.props.iconArrowLeft : this.props.iconMinus,
56
59
  disabled: this.props.disabled || this.props.disabledPrevious,
57
60
  dynamic: !0,
58
- "data-event-type": "previous"
61
+ "data-event-type": "previous",
62
+ ariaLabel: this.props.arrowCarousel ? this.text.previous.value : this.text.decrement.value
59
63
  })));
60
64
  /**
61
65
  * Returns data for the right arrow.
62
66
  *
63
67
  * Возвращает данные для стрелки справа.
64
68
  */
65
- t(this, "nextBind", a(() => ({
69
+ e(this, "nextBind", r(() => ({
66
70
  class: `${this.className}__next`,
67
71
  icon: this.props.arrowCarousel ? this.props.iconArrowRight : this.props.iconPlus,
68
72
  disabled: this.props.disabled || this.props.disabledNext,
69
73
  dynamic: !0,
70
- "data-event-type": "next"
74
+ "data-event-type": "next",
75
+ ariaLabel: this.props.arrowCarousel ? this.text.next.value : this.text.increment.value
71
76
  })));
72
- this.props = e, this.className = s;
77
+ this.props = t, this.className = s, this.text = i;
73
78
  }
74
79
  }
75
- class q {
80
+ class O {
76
81
  /**
77
82
  * Constructor
78
83
  * @param element main element/ главный элемент
79
84
  * @param className class name/ название класса
80
85
  */
81
- constructor(e, s) {
82
- t(this, "left", 0);
83
- t(this, "right", 0);
84
- t(this, "title", 0);
85
- t(this, "event");
86
+ constructor(t, s) {
87
+ e(this, "left", 0);
88
+ e(this, "right", 0);
89
+ e(this, "title", 0);
90
+ e(this, "event");
86
91
  /**
87
92
  * Update margins.
88
93
  *
89
94
  * Обновление отступов.
90
95
  */
91
- t(this, "update", () => {
96
+ e(this, "update", () => {
92
97
  requestAnimationFrame(() => {
93
- var i, o, l, h;
94
- const e = this.getElementSpace(), s = this.getElementPrefix();
95
- e && (this.left = e.offsetLeft, this.right = ((o = (i = e.parentElement) == null ? void 0 : i.offsetWidth) != null ? o : 0) - this.left - e.offsetWidth), this.title = (h = (l = s == null ? void 0 : s.offsetLeft) != null ? l : e == null ? void 0 : e.offsetLeft) != null ? h : 0, this.make();
98
+ var i, o, a, h;
99
+ const t = this.getElementSpace(), s = this.getElementPrefix();
100
+ t && (this.left = t.offsetLeft, this.right = ((o = (i = t.parentElement) == null ? void 0 : i.offsetWidth) != null ? o : 0) - this.left - t.offsetWidth), this.title = (h = (a = s == null ? void 0 : s.offsetLeft) != null ? a : t == null ? void 0 : t.offsetLeft) != null ? h : 0, this.make();
96
101
  });
97
102
  });
98
- this.element = e, this.className = s, b(e, () => this.update, { immediate: !0 }), g() && (this.event = new _(window, "resize", this.update), f(() => {
103
+ this.element = t, this.className = s, $(t, () => this.update, { immediate: !0 }), A() && (this.event = new T(window, "resize", this.update), L(() => {
99
104
  var i;
100
105
  return (i = this.event) == null ? void 0 : i.stop();
101
- })), y(this.update), v(this.update);
106
+ })), E(this.update), k(this.update);
102
107
  }
103
108
  /**
104
109
  * Returns separator elements.
@@ -106,8 +111,8 @@ class q {
106
111
  * Возвращает элементы-разделители.
107
112
  */
108
113
  getElementSpace() {
109
- var e, s;
110
- return (s = (e = this.element.value) == null ? void 0 : e.querySelector(`.${this.className}__body__scoreboard__space`)) != null ? s : void 0;
114
+ var t, s;
115
+ return (s = (t = this.element.value) == null ? void 0 : t.querySelector(`.${this.className}__body__scoreboard__space`)) != null ? s : void 0;
111
116
  }
112
117
  /**
113
118
  * Returns element with prefix.
@@ -115,8 +120,8 @@ class q {
115
120
  * Возвращает элемент с префиксом.
116
121
  */
117
122
  getElementPrefix() {
118
- var e, s;
119
- return (s = (e = this.element.value) == null ? void 0 : e.querySelector(`.${this.className}__prefix`)) != null ? s : void 0;
123
+ var t, s;
124
+ return (s = (t = this.element.value) == null ? void 0 : t.querySelector(`.${this.className}__prefix`)) != null ? s : void 0;
120
125
  }
121
126
  /**
122
127
  * Update input field margins.
@@ -124,11 +129,11 @@ class q {
124
129
  * Обновление отступов для поля ввода.
125
130
  */
126
131
  make() {
127
- const e = this.element.value;
128
- e && (e.style.setProperty(`--${this.className}-sys-left`, `${this.left}px`), e.style.setProperty(`--${this.className}-sys-right`, `${this.right}px`), e.style.setProperty(`--${this.className}-sys-title`, `${this.title}px`), e.classList.contains(`${this.className}--show`) || requestAnimationFrame(() => e.classList.add(`${this.className}--show`)));
132
+ const t = this.element.value;
133
+ t && (t.style.setProperty(`--${this.className}-sys-left`, `${this.left}px`), t.style.setProperty(`--${this.className}-sys-right`, `${this.right}px`), t.style.setProperty(`--${this.className}-sys-title`, `${this.title}px`), t.classList.contains(`${this.className}--show`) || requestAnimationFrame(() => t.classList.add(`${this.className}--show`)));
129
134
  }
130
135
  }
131
- class P {
136
+ class Q {
132
137
  /**
133
138
  * Constructor
134
139
  * @param props input data/ входные данные
@@ -139,29 +144,57 @@ class P {
139
144
  * @param components object for working with components/ объект для работы с компонентами
140
145
  * @param slots object for working with slots/ объект для работы со слотами
141
146
  * @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
147
+ * @param SkeletonIncludeConstructor class for working with skeleton/ класс для работы со скелетоном
148
+ * @param IconTrailingIncludeConstructor class for working with icon/ класс для работы с иконкой
149
+ * @param CaptionIncludeConstructor class for working with caption/ класс для работы с подписью
150
+ * @param PrefixIncludeConstructor class for working with prefix/ класс для работы с префиксом
151
+ * @param SuffixIncludeConstructor class for working with suffix/ класс для работы с суффиксом
152
+ * @param FieldLabelIncludeConstructor class for working with field label/ класс для работы с меткой поля
153
+ * @param FieldMessageIncludeConstructor class for working with field message/ класс для работы с сообщением поля
154
+ * @param ProgressIncludeConstructor class for working with progress/ класс для работы с прогрессом
155
+ * @param EnabledIncludeConstructor class for working with enabled/ класс для работы с активностью
156
+ * @param EventClickIncludeConstructor class for working with event click/ класс для работы с событием клика
157
+ * @param FieldIconsConstructor class for working with field icons/ класс для работы с иконками поля
158
+ * @param FieldSizeConstructor class for working with field size/ класс для работы с размером поля
159
+ * @param TextIncludeConstructor class for working with text/ класс для работы с текстом
142
160
  */
143
- constructor(e, s, i, o, l, h, c, p) {
144
- t(this, "id", S());
145
- t(this, "labelId", `${this.id}-label`);
146
- t(this, "helperId", `${this.id}-helper`);
147
- t(this, "validationId", `${this.id}-validation`);
148
- t(this, "counterId", `${this.id}-counter`);
149
- t(this, "icon");
150
- t(this, "caption");
151
- t(this, "prefix");
152
- t(this, "suffix");
153
- t(this, "fieldLabel");
154
- t(this, "fieldMessage");
155
- t(this, "progress");
156
- t(this, "enabled");
157
- t(this, "event");
158
- t(this, "skeleton");
159
- t(this, "icons");
160
- t(this, "size");
161
+ constructor(t, s, i, o, a, h, c, p, u = j, m = H, b = M, f = D, v = V, y = K, g = U, _ = G, S = R, x = z, w = J, C = O, N = W) {
162
+ /** Text include/ Подключение текста */
163
+ e(this, "text");
164
+ /** Icon trailing include/ Подключение иконки в конце */
165
+ e(this, "icon");
166
+ /** Caption include/ Подключение подписи */
167
+ e(this, "caption");
168
+ /** Prefix include/ Подключение префикса */
169
+ e(this, "prefix");
170
+ /** Suffix include/ Подключение суффикса */
171
+ e(this, "suffix");
172
+ /** Field label include/ Подключение метки поля */
173
+ e(this, "fieldLabel");
174
+ /** Field message include/ Подключение сообщения поля */
175
+ e(this, "fieldMessage");
176
+ /** Progress include/ Подключение прогресса */
177
+ e(this, "progress");
178
+ /** Enabled include/ Подключение активности */
179
+ e(this, "enabled");
180
+ /** Event click include/ Подключение события клика */
181
+ e(this, "event");
182
+ /** Skeleton include/ Подключение скелетона */
183
+ e(this, "skeleton");
184
+ /** Field icons/ Иконки поля */
185
+ e(this, "icons");
186
+ /** Field size/ Размер поля */
187
+ e(this, "size");
188
+ /** Checks if the field is classic/ Проверяет, является ли поле классическим */
189
+ e(this, "isClassic", r(
190
+ () => !!(this.props.classic && !this.props.basic && !this.props.boxed && !this.props.filled && !this.props.outlined && !this.props.tonal)
191
+ ));
161
192
  /** Checks if an error needs to be displayed/ Проверяет, надо ли выводить ошибку */
162
- t(this, "isValidation", a(() => !!(this.props.validationMessage && (this.props.forceShowMessage || !this.props.readonly && !this.props.disabled))));
193
+ e(this, "isValidation", r(() => !!(this.props.validationMessage && (this.props.forceShowMessage || !this.props.readonly && !this.props.disabled))));
194
+ /** Field identifier/ Идентификатор поля */
195
+ e(this, "id", r(() => String(this.props.id || F())));
163
196
  /** Values for the class/ Значения для класса */
164
- t(this, "classes", a(() => ({
197
+ e(this, "classes", r(() => ({
165
198
  [`${this.className}--cancel`]: this.icons.isCancel.value,
166
199
  [`${this.className}--suffix`]: this.props.suffix,
167
200
  [`${this.className}--validation`]: this.isValidation.value
@@ -169,46 +202,41 @@ class P {
169
202
  /**
170
203
  * Returns data for the slot/ Возвращает данные для слота
171
204
  */
172
- t(this, "control", a(() => {
173
- const e = String(this.props.id || this.id), s = `${this.className}__body__input ${this.skeleton.classesSkeleton.classText}`;
205
+ e(this, "control", r(() => {
206
+ const t = `${this.className}__body__input ${this.skeleton.classesSkeleton.classText}`;
174
207
  return {
175
- id: e,
176
- className: s,
208
+ id: this.id.value,
209
+ className: t,
177
210
  classHidden: `${this.className}__body__hidden`,
178
211
  classForFocus: `${this.className}__body__focus`,
179
212
  binds: {
180
- id: e,
181
- className: s,
182
- ...d.labelledby(this.labelId),
183
- ...d.describedby(this.getDescribedby()),
184
- ...d.invalid(this.isValidation.value)
213
+ id: this.id.value,
214
+ className: t,
215
+ ...d.invalid(this.isValidation.value),
216
+ ...d.describedby(this.getDescribedby())
185
217
  }
186
218
  };
187
219
  }));
188
- this.props = e, this.refs = s, this.element = i, this.classDesign = o, this.className = l, this.components = h, this.slots = c, this.emits = p, this.skeleton = new k(
220
+ this.props = t, this.refs = s, this.element = i, this.classDesign = o, this.className = a, this.components = h, this.slots = c, this.emits = p, this.skeleton = new u(
189
221
  this.props,
190
222
  this.classDesign,
191
223
  ["classBackground"]
192
- ), this.icon = new A(this.props, this.className, this.components), this.caption = new N(this.props, this.className, this.slots), this.prefix = new x(this.props, this.className, this.slots), this.suffix = new B(this.props, this.className, this.slots), this.fieldLabel = new L(
224
+ ), this.icon = new m(this.props, this.className, this.components), this.text = new N(this.props), this.caption = new b(this.props, this.className, this.slots), this.prefix = new f(this.props, this.className, this.slots), this.suffix = new v(this.props, this.className, this.slots), this.fieldLabel = new y(
193
225
  this.props,
194
226
  this.className,
195
227
  this.components,
196
228
  this.slots,
229
+ this.id,
197
230
  this.refs.counterTop,
198
- this.labelId,
199
- this.counterId,
200
231
  this.skeleton.binds
201
- ), this.fieldMessage = new E(
232
+ ), this.fieldMessage = new g(
202
233
  this.props,
203
234
  this.className,
204
235
  this.components,
205
236
  void 0,
206
- a(() => !this.props.counterTop),
207
- this.helperId,
208
- this.validationId,
209
- this.counterId,
237
+ r(() => !this.props.counterTop),
210
238
  this.skeleton.binds
211
- ), this.progress = new F(
239
+ ), this.progress = new _(
212
240
  this.props,
213
241
  this.className,
214
242
  this.components,
@@ -217,7 +245,7 @@ class P {
217
245
  position: "static",
218
246
  dense: !0
219
247
  }
220
- ), this.enabled = new $(this.props, this.progress), this.event = new C(this.props, this.enabled, this.emits), this.icons = new T(this.props, this.className), this.size = new q(this.element, this.className);
248
+ ), this.enabled = new S(this.props, this.progress), this.event = new x(this.props, this.enabled, this.emits), this.icons = new w(this.props, this.className, this.text), this.size = new C(this.element, this.className);
221
249
  }
222
250
  /**
223
251
  * Get ARIA describedby attribute.
@@ -225,35 +253,40 @@ class P {
225
253
  * Получить атрибут ARIA describedby.
226
254
  */
227
255
  getDescribedby() {
228
- const e = [];
229
- return this.props.helperMessage && e.push(this.helperId), this.isValidation.value && e.push(this.validationId), this.props.counterShow && e.push(this.counterId), e.join(" ");
256
+ return [
257
+ this.prefix.describedby.value,
258
+ this.suffix.describedby.value,
259
+ this.fieldLabel.id.value,
260
+ this.fieldMessage.id.value
261
+ ].join(" ").trim();
230
262
  }
231
263
  }
232
- const Q = {
264
+ const cs = {
233
265
  // :default [!] System label / Системная метка
234
266
  arrowAlign: "right",
235
267
  cancel: "auto"
236
268
  };
237
- class X extends I {
269
+ class ps extends q {
238
270
  /**
239
271
  * Constructor
240
272
  * @param name class name/ название класса
241
273
  * @param props properties/ свойства
242
274
  * @param options list of additional parameters/ список дополнительных параметров
275
+ * @param ItemConstructor class for working with the item/ класс для работы с элементом
243
276
  */
244
- constructor(s, i, o) {
277
+ constructor(s, i, o, a = Q) {
245
278
  super(
246
279
  s,
247
280
  i,
248
281
  o
249
282
  );
250
- t(this, "item");
283
+ e(this, "item");
251
284
  /**
252
285
  * Generates body.
253
286
  *
254
287
  * Генерирует тело.
255
288
  */
256
- t(this, "renderBody", () => {
289
+ e(this, "renderBody", () => {
257
290
  var i;
258
291
  const s = [
259
292
  this.initSlot("default", void 0, this.item.control.value),
@@ -262,14 +295,15 @@ class X extends I {
262
295
  this.renderBodyBorder()
263
296
  ];
264
297
  return [
265
- r(
298
+ l(
266
299
  "span",
267
300
  {
268
301
  class: [
269
302
  (i = this.classes) == null ? void 0 : i.value.body,
270
303
  this.item.skeleton.classes.value
271
304
  ],
272
- onClick: this.item.event.onClick
305
+ onClick: this.item.event.onClick,
306
+ onKeydown: this.item.event.onKeydown
273
307
  },
274
308
  s
275
309
  )
@@ -280,21 +314,21 @@ class X extends I {
280
314
  *
281
315
  * Генерирует данные для заголовка.
282
316
  */
283
- t(this, "renderBodyLabel", () => {
284
- var i, o, l, h;
317
+ e(this, "renderBodyLabel", () => {
318
+ var i, o, a, h;
285
319
  const s = [
286
320
  this.props.label
287
321
  ];
288
- return this.props.required && s.push(r(
322
+ return this.props.required && s.push(l(
289
323
  "span",
290
324
  { class: (i = this.classes) == null ? void 0 : i.value.required }
291
- )), r(
325
+ )), l(
292
326
  "span",
293
327
  { class: (o = this.classes) == null ? void 0 : o.value.bodyTitle },
294
- r(
328
+ l(
295
329
  "span",
296
- { class: (l = this.classes) == null ? void 0 : l.value.bodyTitleLabel },
297
- r(
330
+ { class: (a = this.classes) == null ? void 0 : a.value.bodyTitleLabel },
331
+ l(
298
332
  "span",
299
333
  { class: (h = this.classes) == null ? void 0 : h.value.bodyTitleLabelText },
300
334
  s
@@ -307,7 +341,7 @@ class X extends I {
307
341
  *
308
342
  * Генерирует данные для дополнительных управлений.
309
343
  */
310
- t(this, "renderBodyScoreboard", () => {
344
+ e(this, "renderBodyScoreboard", () => {
311
345
  var i;
312
346
  const s = [
313
347
  ...this.renderBodyScoreboardSlot(),
@@ -317,7 +351,7 @@ class X extends I {
317
351
  ...this.item.progress.render(),
318
352
  ...this.renderBodyScoreboardSpace()
319
353
  ];
320
- return r("span", {
354
+ return l("span", {
321
355
  class: (i = this.classes) == null ? void 0 : i.value.bodyScoreboard,
322
356
  "data-element": "scoreboard"
323
357
  }, s);
@@ -327,14 +361,14 @@ class X extends I {
327
361
  *
328
362
  * Генерирует данные для слота.
329
363
  */
330
- t(this, "renderBodyScoreboardSlot", () => {
364
+ e(this, "renderBodyScoreboardSlot", () => {
331
365
  var i, o;
332
366
  const s = [];
333
- return this.slots && ("leading" in this.slots && s.push(r(
367
+ return this.slots && ("leading" in this.slots && s.push(l(
334
368
  "span",
335
369
  { class: (i = this.classes) == null ? void 0 : i.value.bodyScoreboardLeft },
336
370
  this.initSlot("leading")
337
- )), "trailing" in this.slots && s.push(r(
371
+ )), "trailing" in this.slots && s.push(l(
338
372
  "span",
339
373
  { class: (o = this.classes) == null ? void 0 : o.value.bodyScoreboardRight },
340
374
  this.initSlot("trailing")
@@ -345,7 +379,7 @@ class X extends I {
345
379
  *
346
380
  * Генерирует все доступные иконки.
347
381
  */
348
- t(this, "renderBodyScoreboardIcon", () => {
382
+ e(this, "renderBodyScoreboardIcon", () => {
349
383
  const s = [...this.item.icon.render()];
350
384
  return this.item.icons.isCancel.value && this.components.renderAdd(
351
385
  s,
@@ -372,11 +406,11 @@ class X extends I {
372
406
  *
373
407
  * Генерирует разделители и дополнительные описания.
374
408
  */
375
- t(this, "renderBodyScoreboardSpace", () => {
409
+ e(this, "renderBodyScoreboardSpace", () => {
376
410
  var i, o;
377
411
  const s = [];
378
412
  return this.item.caption.is.value && s.push(
379
- r(
413
+ l(
380
414
  "span",
381
415
  {
382
416
  class: (i = this.classes) == null ? void 0 : i.value.bodyScoreboardInput,
@@ -386,7 +420,7 @@ class X extends I {
386
420
  ),
387
421
  ...this.item.caption.render()
388
422
  ), [
389
- r(
423
+ l(
390
424
  "span",
391
425
  { class: (o = this.classes) == null ? void 0 : o.value.bodyScoreboardSpace },
392
426
  s
@@ -398,22 +432,22 @@ class X extends I {
398
432
  *
399
433
  * Генерирует border.
400
434
  */
401
- t(this, "renderBodyBorder", () => {
435
+ e(this, "renderBodyBorder", () => {
402
436
  var s;
403
- return r("span", { class: (s = this.classes) == null ? void 0 : s.value.bodyBorder });
437
+ return l("span", { class: (s = this.classes) == null ? void 0 : s.value.bodyBorder });
404
438
  });
405
439
  /**
406
440
  * Value for focus.
407
441
  *
408
442
  * Значение для фокуса.
409
443
  */
410
- t(this, "focusValue", () => !this.lengthElement.value && w(this.props.value) ? this.props.value : "");
444
+ e(this, "focusValue", () => !this.lengthElement.value && P(this.props.value) ? this.props.value : "");
411
445
  /**
412
446
  * Length value.
413
447
  *
414
448
  * Значение длины.
415
449
  */
416
- t(this, "lengthValue", () => {
450
+ e(this, "lengthValue", () => {
417
451
  if (this.lengthElement.value)
418
452
  return `${this.lengthElement.value.offsetWidth}px`;
419
453
  });
@@ -422,7 +456,7 @@ class X extends I {
422
456
  *
423
457
  * Элемент для подсчёта символов.
424
458
  */
425
- t(this, "lengthElement", a(() => {
459
+ e(this, "lengthElement", r(() => {
426
460
  var s, i;
427
461
  return (i = (s = this.element.value) == null ? void 0 : s.querySelector("*[data-length]")) != null ? i : void 0;
428
462
  }));
@@ -431,11 +465,11 @@ class X extends I {
431
465
  *
432
466
  * Элемент ввода.
433
467
  */
434
- t(this, "inputElement", a(() => {
435
- var s, i, o, l;
436
- return (l = (o = this.element.value) == null ? void 0 : o.querySelector(`input.${(s = this.classes) == null ? void 0 : s.value.bodyInput}, .${(i = this.classes) == null ? void 0 : i.value.bodyInput} input`)) != null ? l : void 0;
468
+ e(this, "inputElement", r(() => {
469
+ var s, i, o, a;
470
+ return (a = (o = this.element.value) == null ? void 0 : o.querySelector(`input.${(s = this.classes) == null ? void 0 : s.value.bodyInput}, .${(i = this.classes) == null ? void 0 : i.value.bodyInput} input`)) != null ? a : void 0;
437
471
  }));
438
- this.item = new P(
472
+ this.item = new a(
439
473
  this.props,
440
474
  this.refs,
441
475
  this.element,
@@ -493,23 +527,24 @@ class X extends I {
493
527
  initRender() {
494
528
  var i, o;
495
529
  const s = [];
496
- return this.props.classic && !this.props.basic && !this.props.boxed && !this.props.filled && !this.props.outlined && !this.props.tonal && s.push(...this.item.fieldLabel.render()), s.push(
530
+ return this.item.isClassic.value && s.push(...this.item.fieldLabel.render()), s.push(
497
531
  ...this.renderBody(),
498
532
  ...this.item.fieldMessage.render()
499
- ), r(
500
- "label",
533
+ ), l(
534
+ this.item.isClassic.value ? "div" : "label",
501
535
  {
502
536
  ...this.getAttrs(),
503
537
  ref: this.element,
504
538
  class: (i = this.classes) == null ? void 0 : i.value.main,
505
- style: (o = this.styles) == null ? void 0 : o.value
539
+ style: (o = this.styles) == null ? void 0 : o.value,
540
+ for: this.item.isClassic.value ? void 0 : this.item.id.value
506
541
  },
507
542
  s
508
543
  );
509
544
  }
510
545
  }
511
546
  export {
512
- P as Field,
513
- X as FieldDesign,
514
- Q as defaultsField
547
+ Q as Field,
548
+ ps as FieldDesign,
549
+ cs as defaultsField
515
550
  };