@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
@@ -0,0 +1,146 @@
1
+ var h = Object.defineProperty;
2
+ var g = (r, t, e) => t in r ? h(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
+ var s = (r, t, e) => g(r, typeof t != "symbol" ? t + "" : t, e);
4
+ import { shallowRef as l, computed as u } from "vue";
5
+ import { toCamelCase as x, executeFunction as o } from "@dxtmisha/functional";
6
+ const i = class i {
7
+ /**
8
+ * Constructor
9
+ * @param props Component properties/ Свойства компонента
10
+ */
11
+ constructor(t) {
12
+ s(this, "texts", {});
13
+ this.props = t;
14
+ }
15
+ /**
16
+ * Initialize global texts.
17
+ *
18
+ * Инициализация глобальных текстов.
19
+ * @param texts List of texts/ Список текстов
20
+ */
21
+ static initText(t) {
22
+ this.list.value = {
23
+ ...this.list.value,
24
+ ...t
25
+ };
26
+ }
27
+ /** Cancel text/ Текст отмены */
28
+ get cancel() {
29
+ return this.get("textCancel");
30
+ }
31
+ /** Character limit exceeded text/ Текст о превышении лимита символов */
32
+ get characterLimit() {
33
+ return this.get("textCharacterLimit");
34
+ }
35
+ /** Remaining characters text/ Текст об оставшихся символах */
36
+ get characterRemaining() {
37
+ return this.get("textCharacterRemaining");
38
+ }
39
+ /** Close text/ Текст закрытия */
40
+ get close() {
41
+ return this.get("textClose");
42
+ }
43
+ /** Copied to the clipboard text/ Текст о копировании в буфер обмена */
44
+ get copiedClipboard() {
45
+ return this.get("textCopiedClipboard");
46
+ }
47
+ /** Text for decreasing value/ Текст для уменьшения значения */
48
+ get decrement() {
49
+ return this.get("textDecrement");
50
+ }
51
+ /** Entries match text/ Текст о несовпадении записей */
52
+ get entriesMatch() {
53
+ return this.get("textEntriesMatch");
54
+ }
55
+ /** Hide text/ Текст скрытия */
56
+ get hide() {
57
+ return this.get("textHide");
58
+ }
59
+ /** Text for increasing value/ Текст для увеличения значения */
60
+ get increment() {
61
+ return this.get("textIncrement");
62
+ }
63
+ /** Loading text/ Текст загрузки */
64
+ get loading() {
65
+ return this.get("textLoading");
66
+ }
67
+ /** Next text/ Текст следующего */
68
+ get next() {
69
+ return this.get("textNext");
70
+ }
71
+ /** OK text/ Текст подтверждения */
72
+ get ok() {
73
+ return this.get("textOk");
74
+ }
75
+ /** Previous text/ Текст предыдущего */
76
+ get previous() {
77
+ return this.get("textPrevious");
78
+ }
79
+ /** Show text/ Текст показа */
80
+ get show() {
81
+ return this.get("textShow");
82
+ }
83
+ /**
84
+ * Get the text by its name.
85
+ *
86
+ * Получить текст по его названию.
87
+ * @param name property name/ название свойства
88
+ */
89
+ get(t) {
90
+ if (t in this.texts)
91
+ return this.texts[t];
92
+ const e = x(
93
+ String(t).replace("text", "")
94
+ ), c = u(
95
+ () => {
96
+ var n;
97
+ return this.getText(e, (n = this.props) == null ? void 0 : n[t]);
98
+ }
99
+ );
100
+ return this.texts[t] = c;
101
+ }
102
+ /**
103
+ * Get text by index, with priority to local value.
104
+ *
105
+ * Получение текста по индексу с приоритетом локального значения.
106
+ * @param index Text index/ Индекс текста
107
+ * @param value Local text value/ Локальное значение текста
108
+ */
109
+ getText(t, e) {
110
+ return e ? o(e) : this.getGlobalText(t);
111
+ }
112
+ /**
113
+ * Get text from global list.
114
+ *
115
+ * Получение текста из глобального списка.
116
+ * @param index Text index/ Индекс текста
117
+ */
118
+ getGlobalText(t) {
119
+ var e;
120
+ if ((e = i.list.value) != null && e[t])
121
+ return o(i.list.value[t]);
122
+ }
123
+ };
124
+ /**
125
+ * Global list of texts for all components/ Глобальный список текстов для всех компонентов
126
+ */
127
+ s(i, "list", l({
128
+ cancel: "Cancel",
129
+ characterLimit: "Character limit exceeded",
130
+ characterRemaining: "Remaining [left] characters",
131
+ close: "Close",
132
+ copiedClipboard: "Copied to the clipboard",
133
+ decrement: "Decrease",
134
+ entriesMatch: "Entries do not match",
135
+ hide: "Hide",
136
+ increment: "Increase",
137
+ loading: "Loading",
138
+ next: "Next",
139
+ ok: "OK",
140
+ previous: "Previous",
141
+ show: "Show"
142
+ }));
143
+ let a = i;
144
+ export {
145
+ a as T
146
+ };
@@ -29,7 +29,7 @@ class E {
29
29
  );
30
30
  }
31
31
  /**
32
- * Start listening for Escape key press.
32
+ * Start listening for the Escape key press.
33
33
  *
34
34
  * Начать прослушивание нажатия клавиши Escape.
35
35
  */
@@ -38,7 +38,7 @@ class E {
38
38
  return this.make(), (t = this.event) == null || t.start(), this;
39
39
  }
40
40
  /**
41
- * Stop listening for Escape key press.
41
+ * Stop listening for the Escape key press.
42
42
  *
43
43
  * Остановить прослушивание нажатия клавиши Escape.
44
44
  */
@@ -1,9 +1,9 @@
1
- var d = Object.defineProperty;
2
- var g = (p, e, t) => e in p ? d(p, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[e] = t;
3
- var o = (p, e, t) => g(p, typeof e != "symbol" ? e + "" : e, t);
4
- import { ref as m, computed as l } from "vue";
5
- import { toBind as h, getRef as a } from "@dxtmisha/functional";
6
- class v {
1
+ var g = Object.defineProperty;
2
+ var m = (a, e, t) => e in a ? g(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
+ var o = (a, e, t) => m(a, typeof e != "symbol" ? e + "" : e, t);
4
+ import { ref as u, computed as l } from "vue";
5
+ import { toBind as h, getRef as p } from "@dxtmisha/functional";
6
+ class y {
7
7
  /**
8
8
  * Constructor
9
9
  * @param props input parameter/ входной параметр
@@ -11,24 +11,28 @@ class v {
11
11
  * @param components object for working with components/ объект для работы с компонентами
12
12
  * @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
13
13
  * @param extra additional parameter or property name/ дополнительный параметр или имя свойства
14
+ * @param ariaLabelledby identifier for the label/ идентификатор для метки
15
+ * @param ariaDescribedby identifier for the description/ идентификатор для описания
14
16
  * @param index index identifier/ идентификатор индекса
15
17
  */
16
- constructor(e, t, n, i, s, r) {
18
+ constructor(e, t, i, s, n, r, d, c) {
17
19
  /** Reference to window element expose/ Ссылка на expose элемента окна */
18
- o(this, "element", m());
20
+ o(this, "element", u());
19
21
  /** Computed bindings for the window/ Вычисляемые привязки для окна */
20
22
  o(this, "binds", l(() => {
21
- var t, n;
23
+ var t, i;
22
24
  return {
23
25
  ...h(
24
- (t = a(this.extra)) != null ? t : {},
25
- (n = this.props.windowAttrs) != null ? n : {}
26
+ (t = p(this.extra)) != null ? t : {},
27
+ (i = this.props.windowAttrs) != null ? i : {}
26
28
  ),
27
29
  disabled: this.props.disabled,
28
30
  autoClose: this.props.autoClose,
29
31
  preparation: this.getPreparation,
30
32
  opening: this.getOpening,
31
- closing: this.getClosing
33
+ closing: this.getClosing,
34
+ ariaLabelledby: this.ariaLabelledby,
35
+ ariaDescribedby: this.ariaDescribedby
32
36
  };
33
37
  }));
34
38
  /**
@@ -87,18 +91,18 @@ class v {
87
91
  ) : []);
88
92
  /** Returns preparation result/ Возвращает результат preparation */
89
93
  o(this, "getPreparation", () => {
90
- var e, t, n, i, s;
91
- return (s = (t = (e = a(this.extra)) == null ? void 0 : e.preparation) == null ? void 0 : t.call(e)) != null ? s : (i = (n = this.props.windowAttrs) == null ? void 0 : n.preparation) == null ? void 0 : i.call(n);
94
+ var e, t, i, s, n;
95
+ return (n = (t = (e = p(this.extra)) == null ? void 0 : e.preparation) == null ? void 0 : t.call(e)) != null ? n : (s = (i = this.props.windowAttrs) == null ? void 0 : i.preparation) == null ? void 0 : s.call(i);
92
96
  });
93
97
  /** Returns opening result/ Возвращает результат opening */
94
98
  o(this, "getOpening", () => {
95
- var e, t, n, i, s, r;
96
- return (r = (s = (t = (e = a(this.extra)) == null ? void 0 : e.opening) == null ? void 0 : t.call(e)) != null ? s : (i = (n = this.props.windowAttrs) == null ? void 0 : n.opening) == null ? void 0 : i.call(n)) != null ? r : !0;
99
+ var e, t, i, s, n, r;
100
+ return (r = (n = (t = (e = p(this.extra)) == null ? void 0 : e.opening) == null ? void 0 : t.call(e)) != null ? n : (s = (i = this.props.windowAttrs) == null ? void 0 : i.opening) == null ? void 0 : s.call(i)) != null ? r : !0;
97
101
  });
98
102
  /** Returns closing result/ Возвращает результат closing */
99
103
  o(this, "getClosing", () => {
100
- var e, t, n, i, s, r;
101
- return (r = (s = (t = (e = a(this.extra)) == null ? void 0 : e.closing) == null ? void 0 : t.call(e)) != null ? s : (i = (n = this.props.windowAttrs) == null ? void 0 : n.closing) == null ? void 0 : i.call(n)) != null ? r : !0;
104
+ var e, t, i, s, n, r;
105
+ return (r = (n = (t = (e = p(this.extra)) == null ? void 0 : e.closing) == null ? void 0 : t.call(e)) != null ? n : (s = (i = this.props.windowAttrs) == null ? void 0 : i.closing) == null ? void 0 : s.call(i)) != null ? r : !0;
102
106
  });
103
107
  /**
104
108
  * Emits 'window' event upward/
@@ -109,9 +113,9 @@ class v {
109
113
  var t;
110
114
  (t = this.emits) == null || t.call(this, "window", e);
111
115
  });
112
- this.props = e, this.className = t, this.components = n, this.emits = i, this.extra = s, this.index = r;
116
+ this.props = e, this.className = t, this.components = i, this.emits = s, this.extra = n, this.ariaLabelledby = r, this.ariaDescribedby = d, this.index = c;
113
117
  }
114
118
  }
115
119
  export {
116
- v as W
120
+ y as W
117
121
  };
package/dist/accordion.js CHANGED
@@ -1,11 +1,11 @@
1
1
  var p = Object.defineProperty;
2
- var u = (r, s, i) => s in r ? p(r, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[s] = i;
3
- var o = (r, s, i) => u(r, typeof s != "symbol" ? s + "" : s, i);
4
- import { computed as v, ref as c, h as f } from "vue";
5
- import { DesignConstructorAbstract as b, toBinds as g } from "@dxtmisha/functional";
6
- import { E as y } from "./EventClickInclude-eDWqxK0d.js";
7
- import { M as S } from "./ModelInclude-BiYm_iCQ.js";
8
- import { M as A } from "./MotionTransformInclude-P_oRs3JZ.js";
2
+ var u = (r, e, i) => e in r ? p(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i;
3
+ var t = (r, e, i) => u(r, typeof e != "symbol" ? e + "" : e, i);
4
+ import { computed as a, ref as h, h as b } from "vue";
5
+ import { getElementId as c, DesignConstructorAbstract as v, toBinds as f } from "@dxtmisha/functional";
6
+ import { E as y } from "./EventClickInclude-WHJqxZ1b.js";
7
+ import { M as g } from "./ModelInclude-BiYm_iCQ.js";
8
+ import { M as I } from "./MotionTransformInclude-P_oRs3JZ.js";
9
9
  class C {
10
10
  /**
11
11
  * Constructor
@@ -18,81 +18,97 @@ class C {
18
18
  * @param slots object for working with slots/ объект для работы со слотами
19
19
  * @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
20
20
  */
21
- constructor(s, i, n, e, l, t, m, a) {
22
- o(this, "motionTransform");
23
- o(this, "event");
24
- o(this, "open", c(!1));
25
- o(this, "model");
26
- o(this, "elementHead", c());
27
- this.props = s, this.refs = i, this.element = n, this.classDesign = e, this.className = l, this.components = t, this.slots = m, this.emits = a, this.motionTransform = new A(
21
+ constructor(e, i, n, o, l, s, m, d) {
22
+ /** Motion transform manager/ Менеджер анимации перехода */
23
+ t(this, "motionTransform");
24
+ /** Event manager/ Менеджер событий */
25
+ t(this, "event");
26
+ /** Open state/ Состояние открытия */
27
+ t(this, "open", h(!1));
28
+ /** Model manager/ Менеджер модели */
29
+ t(this, "model");
30
+ /** Head element reference/ Ссылка на элемент заголовка */
31
+ t(this, "elementHead", h());
32
+ t(this, "labelId", c());
33
+ t(this, "descriptionId", c());
34
+ /**
35
+ * Computed bindings for the cell.
36
+ *
37
+ * Вычисляемые привязки для ячейки.
38
+ */
39
+ t(this, "bindsCell", a(() => ({
40
+ ref: this.elementHead,
41
+ icon: this.props.icon,
42
+ iconTrailing: this.props.iconArrowDown,
43
+ label: this.props.label,
44
+ description: this.props.description,
45
+ dynamic: !0,
46
+ labelId: this.labelId,
47
+ descriptionId: this.descriptionId,
48
+ onClick: this.event.onClick,
49
+ onKeydown: this.event.onKeydown
50
+ })));
51
+ this.props = e, this.refs = i, this.element = n, this.classDesign = o, this.className = l, this.components = s, this.slots = m, this.emits = d, this.motionTransform = new I(
28
52
  this.props,
29
53
  this.className,
30
54
  this.components,
31
55
  this.emits,
32
- v(() => {
33
- var d, h;
34
- return {
35
- section: !0,
36
- adaptive: "planeAlways",
37
- inDom: !0,
38
- ariaLabelledby: (d = this.elementHead.value) == null ? void 0 : d.labelId,
39
- ariaDescribedby: (h = this.elementHead.value) == null ? void 0 : h.descriptionId
40
- };
41
- })
56
+ a(() => ({
57
+ section: !0,
58
+ adaptive: "planeAlways",
59
+ inDom: !0,
60
+ ariaLabelledby: this.labelId,
61
+ ariaDescribedby: this.descriptionId
62
+ }))
42
63
  ), this.event = new y(
43
64
  void 0,
44
65
  void 0,
45
- a
46
- ), this.model = new S("open", this.emits, this.open);
66
+ d
67
+ ), this.model = new g("open", this.emits, this.open);
47
68
  }
48
69
  }
49
- const x = {
70
+ const k = {
50
71
  clickOpen: !0,
51
72
  autoClose: !0,
52
73
  // :default [!] System label / Системная метка
53
74
  divider: !0
54
75
  };
55
- class B extends b {
76
+ class x extends v {
56
77
  /**
57
78
  * Constructor
58
79
  * @param name class name/ название класса
59
80
  * @param props properties/ свойства
60
81
  * @param options list of additional parameters/ список дополнительных параметров
61
82
  */
62
- constructor(i, n, e) {
83
+ constructor(i, n, o) {
63
84
  super(
64
85
  i,
65
86
  n,
66
- e
87
+ o
67
88
  );
68
- o(this, "item");
89
+ t(this, "item");
69
90
  /**
70
91
  * Generates data for the header.
71
92
  *
72
93
  * Генерирует данные для заголовка.
73
94
  * @param open open status/ статус открытия
74
95
  */
75
- o(this, "renderHead", ({ isOpen: i, binds: n }) => {
96
+ t(this, "renderHead", ({ isOpen: i, binds: n }) => {
76
97
  var l;
77
- const e = {};
78
- return this.slots && ("label" in this.slots && (e.label = (t) => this.initSlot("label", void 0, t)), "description" in this.slots && (e.description = (t) => this.initSlot("description", void 0, t)), "caption" in this.slots && (e.caption = (t) => this.initSlot("caption", void 0, t)), "trailing" in this.slots && (e.trailing = (t) => this.initSlot("trailing", void 0, t)), "body" in this.slots && (e.body = (t) => this.initSlot("body", void 0, t))), this.components.renderOne(
98
+ const o = {};
99
+ return this.slots && ("label" in this.slots && (o.label = (s) => this.initSlot("label", void 0, s)), "description" in this.slots && (o.description = (s) => this.initSlot("description", void 0, s)), "caption" in this.slots && (o.caption = (s) => this.initSlot("caption", void 0, s)), "trailing" in this.slots && (o.trailing = (s) => this.initSlot("trailing", void 0, s)), "body" in this.slots && (o.body = (s) => this.initSlot("body", void 0, s))), this.components.renderOne(
79
100
  "cell",
80
- g(
101
+ f(
102
+ this.item.bindsCell.value,
103
+ n,
104
+ this.props.cellAttrs,
81
105
  {
82
106
  ref: this.item.elementHead,
83
- icon: this.props.icon,
84
- iconTrailing: this.props.iconArrowDown,
85
107
  iconTurn: i.value,
86
- label: this.props.label,
87
- description: this.props.description,
88
- class: (l = this.classes) == null ? void 0 : l.value.head,
89
- dynamic: !0,
90
- onClick: this.item.event.onClick,
91
- ...n
92
- },
93
- this.props.cellAttrs
108
+ class: (l = this.classes) == null ? void 0 : l.value.head
109
+ }
94
110
  ),
95
- e
111
+ o
96
112
  );
97
113
  });
98
114
  /**
@@ -100,9 +116,9 @@ class B extends b {
100
116
  *
101
117
  * Генерирует данные для тела.
102
118
  */
103
- o(this, "renderBody", (i) => {
119
+ t(this, "renderBody", (i) => {
104
120
  var n;
105
- return f(
121
+ return b(
106
122
  "div",
107
123
  { class: (n = this.classes) == null ? void 0 : n.value.body },
108
124
  this.initSlot("default", void 0, i)
@@ -173,6 +189,6 @@ class B extends b {
173
189
  }
174
190
  export {
175
191
  C as Accordion,
176
- B as AccordionDesign,
177
- x as defaultsAccordion
192
+ x as AccordionDesign,
193
+ k as defaultsAccordion
178
194
  };
@@ -3,7 +3,7 @@ var g = (s, e, t) => e in s ? f(s, e, { enumerable: !0, configurable: !0, writab
3
3
  var r = (s, e, t) => g(s, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { computed as v, h as d } from "vue";
5
5
  import { toBinds as p } from "@dxtmisha/functional";
6
- import { M as C, a as S } from "./ModalDesignAbstract-CjDr5JaN.js";
6
+ import { M as C, a as S } from "./ModalDesignAbstract-D4A_a_rC.js";
7
7
  import { T } from "./TouchEventInclude-DctYCjt8.js";
8
8
  class _ extends C {
9
9
  /**
@@ -34,9 +34,7 @@ class _ extends C {
34
34
  closeMobileHide: t.touchClose
35
35
  })),
36
36
  void 0,
37
- {
38
- align: "auto"
39
- }
37
+ { align: "auto" }
40
38
  );
41
39
  r(this, "touchEvent");
42
40
  this.props = t, this.refs = i, this.element = o, this.classDesign = h, this.className = n, this.components = a, this.slots = l, this.emits = u, this.touchEvent = new T(
package/dist/actions.js CHANGED
@@ -1,11 +1,11 @@
1
- var u = Object.defineProperty;
2
- var m = (e, t, s) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
- var i = (e, t, s) => m(e, typeof t != "symbol" ? t + "" : t, s);
1
+ var m = Object.defineProperty;
2
+ var v = (r, t, s) => t in r ? m(r, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : r[t] = s;
3
+ var e = (r, t, s) => v(r, typeof t != "symbol" ? t + "" : t, s);
4
4
  import { computed as c, h } from "vue";
5
- import { DesignConstructorAbstract as v, toBinds as d } from "@dxtmisha/functional";
6
- import { E as S } from "./EventClickInclude-eDWqxK0d.js";
7
- import { A as L } from "./ActionsInclude-H5ZWeXJj.js";
8
- class f {
5
+ import { DesignConstructorAbstract as S, toBinds as d } from "@dxtmisha/functional";
6
+ import { E as f } from "./EventClickInclude-WHJqxZ1b.js";
7
+ import { A as k } from "./ActionsInclude-H5ZWeXJj.js";
8
+ class y {
9
9
  /**
10
10
  * Constructor
11
11
  * @param props input data/ входные данные
@@ -16,53 +16,55 @@ class f {
16
16
  * @param components object for working with components/ объект для работы с компонентами
17
17
  * @param slots object for working with slots/ объект для работы со слотами
18
18
  * @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
19
+ * @param EventConstructor class for creating an event/ класс для создания события
19
20
  */
20
- constructor(t, s, r, n, o, a, p, l) {
21
- i(this, "event");
21
+ constructor(t, s, n, o, i, a, p, l, u = f) {
22
+ e(this, "event");
22
23
  /**
23
24
  * Checks if the main list needs to be displayed/
24
25
  * Проверяет, нужно ли выводить главный список
25
26
  */
26
- i(this, "isList", c(() => !!(this.props.list || this.slots && "default" in this.slots)));
27
+ e(this, "isList", c(() => !!(this.props.list || this.slots && "default" in this.slots)));
27
28
  /**
28
29
  * Checks if the secondary list needs to be displayed/
29
30
  * Проверяет, нужно ли выводить второстепенный список
30
31
  */
31
- i(this, "isSecondary", c(() => !!(this.props.listSecondary || this.slots && "secondary" in this.slots)));
32
- this.props = t, this.refs = s, this.element = r, this.classDesign = n, this.className = o, this.components = a, this.slots = p, this.emits = l, this.event = new S(
32
+ e(this, "isSecondary", c(() => !!(this.props.listSecondary || this.slots && "secondary" in this.slots)));
33
+ this.props = t, this.refs = s, this.element = n, this.classDesign = o, this.className = i, this.components = a, this.slots = p, this.emits = l, this.event = new u(
33
34
  void 0,
34
35
  void 0,
35
36
  l
36
37
  );
37
38
  }
38
39
  }
39
- const C = {
40
+ const E = {
40
41
  // :default [!] System label / Системная метка
41
42
  align: "right"
42
43
  };
43
- class E extends v {
44
+ class x extends S {
44
45
  /**
45
46
  * Constructor
46
47
  * @param name class name/ название класса
47
48
  * @param props properties/ свойства
48
49
  * @param options list of additional parameters/ список дополнительных параметров
50
+ * @param ItemConstructor actions item class/ класс элемента действий
49
51
  */
50
- constructor(s, r, n) {
52
+ constructor(s, n, o, i = y) {
51
53
  super(
52
54
  s,
53
- r,
54
- n
55
+ n,
56
+ o
55
57
  );
56
- i(this, "item");
58
+ e(this, "item");
57
59
  /**
58
60
  * List rendering.
59
61
  *
60
62
  * Рендеринг списка.
61
63
  */
62
- i(this, "renderList", () => {
64
+ e(this, "renderList", () => {
63
65
  const s = [];
64
- return this.item.isList.value && (this.props.list && this.props.list.forEach((r, n) => {
65
- var o, a;
66
+ return this.item.isList.value && (this.props.list && this.props.list.forEach((n, o) => {
67
+ var i, a;
66
68
  this.components.renderAdd(
67
69
  s,
68
70
  "button",
@@ -71,16 +73,16 @@ class E extends v {
71
73
  onClick: this.item.event.onClick
72
74
  },
73
75
  this.props.buttonAttrs,
74
- r,
76
+ n,
75
77
  {
76
78
  class: [
77
- (o = this.classes) == null ? void 0 : o.value.item,
79
+ (i = this.classes) == null ? void 0 : i.value.item,
78
80
  (a = this.classes) == null ? void 0 : a.value.list
79
81
  ]
80
82
  }
81
83
  ),
82
84
  void 0,
83
- `list-${n}`
85
+ `list-${o}`
84
86
  );
85
87
  }), this.initSlot("default", s)), s;
86
88
  });
@@ -89,25 +91,25 @@ class E extends v {
89
91
  *
90
92
  * Рендеринг вторичного списка.
91
93
  */
92
- i(this, "renderSecondary", () => {
94
+ e(this, "renderSecondary", () => {
93
95
  const s = [];
94
- return this.item.isSecondary.value && (this.props.listSecondary && this.props.listSecondary.forEach((r, n) => {
95
- var o, a;
96
+ return this.item.isSecondary.value && (this.props.listSecondary && this.props.listSecondary.forEach((n, o) => {
97
+ var i, a;
96
98
  this.components.renderAdd(
97
99
  s,
98
100
  "button",
99
101
  d(
100
102
  this.props.buttonSecondaryAttrs,
101
- r,
103
+ n,
102
104
  {
103
105
  class: [
104
- (o = this.classes) == null ? void 0 : o.value.item,
106
+ (i = this.classes) == null ? void 0 : i.value.item,
105
107
  (a = this.classes) == null ? void 0 : a.value.secondary
106
108
  ]
107
109
  }
108
110
  ),
109
111
  void 0,
110
- `secondary-${n}`
112
+ `secondary-${o}`
111
113
  );
112
114
  }), this.initSlot("secondary", s)), s;
113
115
  });
@@ -116,11 +118,11 @@ class E extends v {
116
118
  *
117
119
  * Рендеринг разделителя.
118
120
  */
119
- i(this, "renderSpacer", () => {
121
+ e(this, "renderSpacer", () => {
120
122
  var s;
121
123
  return [h("div", { class: (s = this.classes) == null ? void 0 : s.value.spacer })];
122
124
  });
123
- this.item = new f(
125
+ this.item = new i(
124
126
  this.props,
125
127
  this.refs,
126
128
  this.element,
@@ -184,8 +186,8 @@ class E extends v {
184
186
  }
185
187
  }
186
188
  export {
187
- f as Actions,
188
- E as ActionsDesign,
189
- L as ActionsInclude,
190
- C as defaultsActions
189
+ y as Actions,
190
+ x as ActionsDesign,
191
+ k as ActionsInclude,
192
+ E as defaultsActions
191
193
  };