@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/menu.js CHANGED
@@ -1,21 +1,21 @@
1
- var c = Object.defineProperty;
2
- var d = (r, e, t) => e in r ? c(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var s = (r, e, t) => d(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { ref as a, computed as l, watch as m, h as v } from "vue";
5
- import { isFunction as g, executePromise as f, Api as w, isFilled as b, isObject as x, ListDataRef as S, DesignConstructorAbstract as C, toBinds as y } from "@dxtmisha/functional";
6
- import { E as B } from "./EventClickInclude-eDWqxK0d.js";
7
- import { M as k } from "./ModelInclude-BiYm_iCQ.js";
8
- import { B as V } from "./BarsInclude-IM3Gdslg.js";
9
- import { W as M } from "./WindowInclude-Is5RhGxt.js";
10
- import { M as $ } from "./MenuInclude-DfGCfr_I.js";
11
- class q {
1
+ var S = Object.defineProperty;
2
+ var C = (r, e, t) => e in r ? S(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var s = (r, e, t) => C(r, typeof e != "symbol" ? e + "" : e, t);
4
+ import { ref as h, computed as l, watch as y, h as B } from "vue";
5
+ import { isFunction as k, executePromise as V, Api as M, isFilled as q, isObject as L, ListDataRef as A, DesignConstructorAbstract as D, toBinds as N } from "@dxtmisha/functional";
6
+ import { E as T } from "./EventClickInclude-WHJqxZ1b.js";
7
+ import { M as j } from "./ModelInclude-BiYm_iCQ.js";
8
+ import { B as I } from "./BarsInclude-BOEoY-O4.js";
9
+ import { W } from "./WindowInclude-BWm4-0Gh.js";
10
+ import { M as tt } from "./MenuInclude-DfGCfr_I.js";
11
+ class E {
12
12
  /**
13
13
  * Constructor
14
14
  * @param props input data/ входные данные
15
15
  */
16
16
  constructor(e) {
17
- s(this, "progress", a(!1));
18
- s(this, "buffer", a());
17
+ s(this, "progress", h(!1));
18
+ s(this, "buffer", h());
19
19
  /**
20
20
  * Returns current list data.
21
21
  *
@@ -57,7 +57,7 @@ class q {
57
57
  * Возвращает данные из AJAX или функции запроса.
58
58
  */
59
59
  async getAjax() {
60
- return g(this.props.ajax) ? f(this.props.ajax) : await w.request({
60
+ return k(this.props.ajax) ? V(this.props.ajax) : await M.request({
61
61
  path: this.props.ajax,
62
62
  ...this.props.request
63
63
  });
@@ -71,13 +71,13 @@ class q {
71
71
  this.is() && (this.props.cache && this.buffer.value !== void 0 && e(this.buffer.value), this.progress.value = !0, e(await this.getAjax()), this.progress.value = !1);
72
72
  }
73
73
  }
74
- class L {
74
+ class F {
75
75
  /**
76
76
  * Constructor
77
77
  * @param props input data/ входные данные
78
78
  */
79
79
  constructor(e) {
80
- s(this, "item", a());
80
+ s(this, "item", h());
81
81
  /** Returns the search string/ Возвращает строку поиска */
82
82
  s(this, "value", l(() => this.props.highlight ? this.props.highlight : this.item.value));
83
83
  this.props = e;
@@ -107,19 +107,19 @@ class L {
107
107
  * @param value source value/ исходное значение
108
108
  */
109
109
  getValue(e) {
110
- if (b(e))
110
+ if (q(e))
111
111
  return e.trim();
112
112
  }
113
113
  }
114
- class N {
114
+ class O {
115
115
  /**
116
116
  * Constructor
117
117
  * @param props input data/ входные данные
118
118
  * @param request menu request handler/ обработчик запросов меню
119
119
  */
120
120
  constructor(e, t) {
121
- s(this, "lite", a());
122
- s(this, "control", a());
121
+ s(this, "lite", h());
122
+ s(this, "control", h());
123
123
  /**
124
124
  * Preparing data before opening the menu
125
125
  *
@@ -160,11 +160,13 @@ class N {
160
160
  preparation: this.preparation,
161
161
  opening: this.opening,
162
162
  closing: this.closing,
163
- role: "menu"
163
+ role: "menu",
164
+ autoTabIndex: !1,
165
+ openOnArrowDown: !0
164
166
  };
165
167
  }
166
168
  }
167
- class j {
169
+ class H {
168
170
  /**
169
171
  * Constructor
170
172
  * @param props input data/ входные данные
@@ -172,14 +174,14 @@ class j {
172
174
  * @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
173
175
  */
174
176
  constructor(e, t, i) {
175
- s(this, "value", a());
177
+ s(this, "value", h());
176
178
  /**
177
179
  * Computed selected value
178
180
  *
179
181
  * Вычисляемое выбранное значение
180
182
  */
181
183
  s(this, "selected", l(() => this.props.isSelectedByValue ? this.value.value : this.props.selected));
182
- this.props = e, this.refs = t, this.emits = i, this.props.isSelectedByValue && (new k("selected", this.emits, this.value), t.selected && m(
184
+ this.props = e, this.refs = t, this.emits = i, this.props.isSelectedByValue && (new j("selected", this.emits, this.value), t.selected && y(
183
185
  t.selected,
184
186
  (o) => {
185
187
  this.value.value = o;
@@ -196,10 +198,10 @@ class j {
196
198
  */
197
199
  setValue(e, t = !1) {
198
200
  var i;
199
- return this.props.isSelectedByValue && !x(e) && this.value.value !== e && (this.value.value = e, t && ((i = this.emits) == null || i.call(this, "updateValue", e))), this;
201
+ return this.props.isSelectedByValue && !L(e) && this.value.value !== e && (this.value.value = e, t && ((i = this.emits) == null || i.call(this, "updateValue", e))), this;
200
202
  }
201
203
  }
202
- class A {
204
+ class R {
203
205
  /**
204
206
  * Constructor
205
207
  * @param props input data/ входные данные
@@ -244,7 +246,7 @@ class A {
244
246
  return t && this.value.setValue(t, !0), t;
245
247
  }
246
248
  }
247
- class D {
249
+ class _ {
248
250
  /**
249
251
  * Constructor
250
252
  * @param props input data/ входные данные
@@ -255,8 +257,17 @@ class D {
255
257
  * @param components object for working with components/ объект для работы с компонентами
256
258
  * @param slots object for working with slots/ объект для работы со слотами
257
259
  * @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
260
+ * @param MenuRequestConstructor class for working with request/ класс для работы с запросом
261
+ * @param MenuSearchConstructor class for working with search/ класс для работы с поиском
262
+ * @param MenuValueConstructor class for working with value/ класс для работы со значением
263
+ * @param ListDataRefConstructor class for working with list data/ класс для работы с данными списка
264
+ * @param MenuGoConstructor class for working with navigation/ класс для работы с навигацией
265
+ * @param BarsIncludeConstructor class for working with bars/ класс для работы с барами
266
+ * @param MenuWindowConstructor class for working with menu window/ класс для работы с окном меню
267
+ * @param WindowIncludeConstructor class for working with window/ класс для работы с окном
268
+ * @param EventClickIncludeConstructor class for working with event click/ класс для работы с событием клика
258
269
  */
259
- constructor(e, t, i, o, h, n, u, p) {
270
+ constructor(e, t, i, o, a, n, u, p, d = E, c = F, m = H, v = A, f = R, g = I, w = O, b = W, x = T) {
260
271
  /** Request handler for list data/ Обработчик запросов данных списка */
261
272
  s(this, "request");
262
273
  /** Search helper for menu filtering/ Вспомогательный класс поиска для фильтрации меню */
@@ -291,7 +302,7 @@ class D {
291
302
  onClick: this.onClick,
292
303
  onClose: this.window.expose.toClose,
293
304
  itemAttrs: this.props.itemAttrs,
294
- control: !0
305
+ control: !this.props.embedded
295
306
  })));
296
307
  /**
297
308
  * Click handler.
@@ -314,7 +325,7 @@ class D {
314
325
  const t = e.target, i = t.closest("*[data-value]");
315
326
  i && !t.closest(`.${this.className}__list`) && ((o = this.emits) == null || o.call(this, "clickSlot", i.dataset.value));
316
327
  });
317
- this.props = e, this.refs = t, this.element = i, this.classDesign = o, this.className = h, this.components = n, this.slots = u, this.emits = p, this.request = new q(this.props), this.search = new L(this.props), this.value = new j(this.props, this.refs, this.emits), this.data = new S(
328
+ this.props = e, this.refs = t, this.element = i, this.classDesign = o, this.className = a, this.components = n, this.slots = u, this.emits = p, this.request = new d(this.props), this.search = new c(this.props), this.value = new m(this.props, this.refs, this.emits), this.data = new v(
318
329
  this.request.item,
319
330
  void 0,
320
331
  void 0,
@@ -323,18 +334,18 @@ class D {
323
334
  this.value.selected,
324
335
  this.refs.keyValue,
325
336
  this.refs.keyLabel
326
- ), this.go = new A(this.props, this.value, this.data), this.bars = new V(
337
+ ), this.go = new f(this.props, this.value, this.data), this.bars = new g(
327
338
  this.props,
328
339
  this.className,
329
340
  this.components,
330
341
  this.emits
331
- ), this.menuWindow = new N(this.props, this.request), this.window = new M(
342
+ ), this.menuWindow = new w(this.props, this.request), this.window = new b(
332
343
  this.props,
333
344
  this.className,
334
345
  this.components,
335
346
  this.emits,
336
347
  this.menuWindow.getExtra()
337
- ), this.event = new B(void 0, void 0, this.emits), this.slotData = {
348
+ ), this.event = new x(void 0, void 0, this.emits), this.slotData = {
338
349
  loading: this.request.progress,
339
350
  isSelected: this.data.isSelected,
340
351
  selectedList: this.data.selectedList,
@@ -354,23 +365,23 @@ class D {
354
365
  return this.slotData;
355
366
  }
356
367
  }
357
- const O = {
368
+ const U = {
358
369
  liteThreshold: 40,
359
370
  barsHide: !0,
360
371
  barsBackHide: !0,
361
372
  tag: "a",
362
373
  step: 1,
363
- autoClose: !0,
364
- roleItem: "menuitem"
374
+ autoClose: !0
365
375
  };
366
- class _ extends C {
376
+ class X extends D {
367
377
  /**
368
378
  * Constructor
369
379
  * @param name class name/ название класса
370
380
  * @param props properties/ свойства
371
381
  * @param options list of additional parameters/ список дополнительных параметров
382
+ * @param ItemConstructor class for working with the item/ класс для работы с элементом
372
383
  */
373
- constructor(t, i, o) {
384
+ constructor(t, i, o, a = _) {
374
385
  super(
375
386
  t,
376
387
  i,
@@ -404,11 +415,11 @@ class _ extends C {
404
415
  var o;
405
416
  const i = this.item.request.item.value;
406
417
  if (i) {
407
- const h = [];
408
- return this.initSlot("contextTop", h, this.getBinds(t)), this.props.hideList || h.push(
418
+ const a = [];
419
+ return this.initSlot("contextTop", a, this.getBinds(t)), this.props.hideList || a.push(
409
420
  this.components.render(
410
421
  "list",
411
- y(
422
+ N(
412
423
  {
413
424
  ...this.item.binds.value,
414
425
  class: (o = this.classes) == null ? void 0 : o.value.list,
@@ -416,20 +427,21 @@ class _ extends C {
416
427
  highlight: this.item.search.value.value,
417
428
  list: i,
418
429
  lite: this.item.menuWindow.lite.value,
430
+ role: this.props.roleList,
419
431
  roleItem: this.props.roleItem
420
432
  },
421
433
  this.props.listAttrs
422
434
  ),
423
435
  this.slots
424
436
  )
425
- ), this.initSlot("contextBottom", h, this.getBinds(t)), v(
437
+ ), this.initSlot("contextBottom", a, this.getBinds(t)), B(
426
438
  "div",
427
439
  {
428
440
  ...this.getAttrs(),
429
441
  ref: this.element,
430
442
  onClick: this.item.onClickSlot
431
443
  },
432
- h
444
+ a
433
445
  );
434
446
  }
435
447
  });
@@ -440,7 +452,7 @@ class _ extends C {
440
452
  * @param props data for the transferable property/ данные для передаваемого свойства
441
453
  */
442
454
  s(this, "renderFooter", (t) => this.initSlot("footer", void 0, this.getBinds(t)));
443
- this.item = new D(
455
+ this.item = new a(
444
456
  this.props,
445
457
  this.refs,
446
458
  this.element,
@@ -498,7 +510,10 @@ class _ extends C {
498
510
  footer: this.renderFooter
499
511
  },
500
512
  {
501
- class: (t = this.classes) == null ? void 0 : t.value.main
513
+ class: (t = this.classes) == null ? void 0 : t.value.main,
514
+ closeOnEsc: !1,
515
+ ariaHaspopup: "listbox",
516
+ embedded: this.props.embedded
502
517
  }
503
518
  );
504
519
  }
@@ -516,8 +531,8 @@ class _ extends C {
516
531
  }
517
532
  }
518
533
  export {
519
- D as Menu,
520
- _ as MenuDesign,
521
- $ as MenuInclude,
522
- O as defaultsMenu
534
+ _ as Menu,
535
+ X as MenuDesign,
536
+ tt as MenuInclude,
537
+ U as defaultsMenu
523
538
  };
package/dist/modal.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { computed as l } from "vue";
2
2
  import "@dxtmisha/functional";
3
- import { M as m, a as d } from "./ModalDesignAbstract-CjDr5JaN.js";
3
+ import { M as d, a as g } from "./ModalDesignAbstract-D4A_a_rC.js";
4
4
  const f = {
5
5
  barsBackHide: !0,
6
6
  // :default [!] System label / Системная метка
7
7
  imagePosition: "top"
8
8
  };
9
- class g extends m {
9
+ class m extends d {
10
10
  /**
11
11
  * Constructor
12
12
  * @param props input data/ входные данные
@@ -18,12 +18,12 @@ class g extends m {
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(t, s, e, i, a, o, h, n) {
21
+ constructor(t, s, i, e, a, o, h, n) {
22
22
  super(
23
23
  t,
24
24
  s,
25
- e,
26
25
  i,
26
+ e,
27
27
  a,
28
28
  o,
29
29
  h,
@@ -35,12 +35,12 @@ class g extends m {
35
35
  imagePosition: t.imagePosition,
36
36
  closeButton: t.barsBackHide
37
37
  }))
38
- ), this.props = t, this.refs = s, this.element = e, this.classDesign = i, this.className = a, this.components = o, this.slots = h, this.emits = n;
38
+ ), this.props = t, this.refs = s, this.element = i, this.classDesign = e, this.className = a, this.components = o, this.slots = h, this.emits = n;
39
39
  }
40
40
  }
41
- class M extends d {
42
- initItem() {
43
- return new g(
41
+ class M extends g {
42
+ initItem(t) {
43
+ return new (t != null ? t : m)(
44
44
  this.props,
45
45
  this.refs,
46
46
  this.element,
@@ -68,7 +68,7 @@ class M extends d {
68
68
  }
69
69
  }
70
70
  export {
71
- g as Modal,
71
+ m as Modal,
72
72
  M as ModalDesign,
73
73
  f as defaultsModal
74
74
  };