@dxtmisha/constructor 0.23.0 → 0.30.1

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 (343) hide show
  1. package/package.json +36 -6
  2. package/src/classes/AriaStaticInclude.ts +269 -0
  3. package/src/classes/DescriptionInclude.ts +19 -2
  4. package/src/classes/EnabledInclude.ts +11 -0
  5. package/src/classes/EventClickInclude.ts +2 -2
  6. package/src/classes/LabelHighlightInclude.ts +35 -0
  7. package/src/classes/LabelInclude.ts +40 -5
  8. package/src/classes/ModelInclude.ts +50 -1
  9. package/src/classes/ModelValueInclude.ts +73 -0
  10. package/src/classes/TabIndexInclude.ts +260 -0
  11. package/src/classes/TextInclude.ts +102 -0
  12. package/src/classes/TouchEventInclude.ts +284 -0
  13. package/src/classes/field/FieldArrowInclude.ts +189 -0
  14. package/src/classes/field/FieldAttributesInclude.ts +87 -28
  15. package/src/classes/field/FieldChangeInclude.ts +1 -1
  16. package/src/classes/field/FieldElementInclude.ts +1 -1
  17. package/src/classes/field/FieldEventInclude.ts +253 -0
  18. package/src/classes/field/FieldInputModeInclude.ts +48 -0
  19. package/src/classes/field/FieldMatchInclude.ts +9 -3
  20. package/src/classes/field/FieldTypeInclude.ts +11 -6
  21. package/src/classes/field/FieldValidationInclude.ts +1 -4
  22. package/src/classes/field/FieldValueInclude.ts +10 -0
  23. package/src/constructors/Accordion/Accordion.ts +68 -0
  24. package/src/constructors/Accordion/AccordionDesign.tsx +192 -0
  25. package/src/constructors/Accordion/basicTypes.ts +0 -0
  26. package/src/constructors/Accordion/index.ts +5 -0
  27. package/src/constructors/Accordion/properties.json +16 -0
  28. package/src/constructors/Accordion/props.ts +55 -0
  29. package/src/constructors/Accordion/style.scss +12 -0
  30. package/src/constructors/Accordion/types.ts +63 -0
  31. package/src/constructors/ActionSheet/ActionSheet.ts +78 -0
  32. package/src/constructors/ActionSheet/ActionSheetDesign.tsx +125 -0
  33. package/src/constructors/ActionSheet/basicTypes.ts +0 -0
  34. package/src/constructors/ActionSheet/index.ts +5 -0
  35. package/src/constructors/ActionSheet/properties.json +14 -0
  36. package/src/constructors/ActionSheet/props.ts +44 -0
  37. package/src/constructors/ActionSheet/style.scss +25 -0
  38. package/src/constructors/ActionSheet/types.ts +54 -0
  39. package/src/constructors/Actions/Actions.ts +60 -0
  40. package/src/constructors/Actions/ActionsDesign.tsx +212 -0
  41. package/src/constructors/Actions/ActionsInclude.ts +109 -0
  42. package/src/constructors/Actions/basicTypes.ts +40 -0
  43. package/src/constructors/Actions/index.ts +6 -0
  44. package/src/constructors/Actions/properties.json +63 -0
  45. package/src/constructors/Actions/props.ts +42 -0
  46. package/src/constructors/Actions/style.scss +11 -0
  47. package/src/constructors/Actions/types.ts +52 -0
  48. package/src/constructors/Anchor/Anchor.ts +113 -0
  49. package/src/constructors/Anchor/AnchorDesign.tsx +242 -0
  50. package/src/constructors/Anchor/AnchorEvent.ts +76 -0
  51. package/src/constructors/Anchor/AnchorHref.ts +54 -0
  52. package/src/constructors/Anchor/AnchorIcon.ts +54 -0
  53. package/src/constructors/Anchor/AnchorTo.ts +46 -0
  54. package/src/constructors/Anchor/basicTypes.ts +9 -0
  55. package/src/constructors/Anchor/index.ts +5 -0
  56. package/src/constructors/Anchor/properties.json +3 -0
  57. package/src/constructors/Anchor/props.ts +54 -0
  58. package/src/constructors/Anchor/style.scss +10 -0
  59. package/src/constructors/Anchor/types.ts +47 -0
  60. package/src/constructors/Arrow/Arrow.ts +134 -0
  61. package/src/constructors/Arrow/ArrowDesign.tsx +226 -0
  62. package/src/constructors/Arrow/ArrowElement.ts +139 -0
  63. package/src/constructors/Arrow/ArrowElementTarget.ts +72 -0
  64. package/src/constructors/Arrow/ArrowEvent.ts +126 -0
  65. package/src/constructors/Arrow/ArrowInclude.ts +85 -0
  66. package/src/constructors/Arrow/ArrowParent.ts +100 -0
  67. package/src/constructors/Arrow/ArrowPosition.ts +231 -0
  68. package/src/constructors/Arrow/basicTypes.ts +50 -0
  69. package/src/constructors/Arrow/index.ts +6 -0
  70. package/src/constructors/Arrow/properties.json +23 -0
  71. package/src/constructors/Arrow/props.ts +31 -0
  72. package/src/constructors/Arrow/style.scss +133 -0
  73. package/src/constructors/Arrow/types.ts +54 -0
  74. package/src/constructors/Badge/BadgeDesign.tsx +4 -1
  75. package/src/constructors/Badge/properties.json +36 -36
  76. package/src/constructors/Badge/props.ts +3 -1
  77. package/src/constructors/Badge/types.ts +3 -3
  78. package/src/constructors/Bars/Bars.ts +10 -4
  79. package/src/constructors/Bars/BarsDesign.tsx +17 -11
  80. package/src/constructors/Bars/BarsInclude.ts +5 -2
  81. package/src/constructors/Bars/properties.json +6 -6
  82. package/src/constructors/Bars/props.ts +3 -1
  83. package/src/constructors/Bars/style.scss +4 -0
  84. package/src/constructors/Bars/types.ts +3 -3
  85. package/src/constructors/Block/Block.ts +105 -0
  86. package/src/constructors/Block/BlockDesign.tsx +219 -0
  87. package/src/constructors/Block/basicTypes.ts +0 -0
  88. package/src/constructors/Block/index.ts +5 -0
  89. package/src/constructors/Block/properties.json +10 -0
  90. package/src/constructors/Block/props.ts +46 -0
  91. package/src/constructors/Block/style.scss +11 -0
  92. package/src/constructors/Block/types.ts +64 -0
  93. package/src/constructors/Button/Button.ts +26 -2
  94. package/src/constructors/Button/ButtonDesign.tsx +11 -6
  95. package/src/constructors/Button/ButtonInclude.ts +8 -5
  96. package/src/constructors/Button/index.ts +1 -0
  97. package/src/constructors/Button/properties.json +84 -84
  98. package/src/constructors/Button/props.ts +5 -1
  99. package/src/constructors/Button/style.scss +1 -1
  100. package/src/constructors/Button/types.ts +2 -2
  101. package/src/constructors/Cell/Cell.ts +23 -6
  102. package/src/constructors/Cell/CellDesign.tsx +53 -22
  103. package/src/constructors/Cell/basicTypes.ts +33 -0
  104. package/src/constructors/Cell/properties.json +52 -52
  105. package/src/constructors/Cell/props.ts +16 -13
  106. package/src/constructors/Cell/style.scss +1 -1
  107. package/src/constructors/Cell/types.ts +3 -3
  108. package/src/constructors/Chip/ChipDesign.tsx +5 -5
  109. package/src/constructors/Chip/ChipInclude.ts +83 -0
  110. package/src/constructors/Chip/basicTypes.ts +12 -0
  111. package/src/constructors/Chip/index.ts +2 -0
  112. package/src/constructors/Chip/properties.json +3 -3
  113. package/src/constructors/Chip/types.ts +5 -5
  114. package/src/constructors/ChipGroup/ChipGroup.ts +74 -0
  115. package/src/constructors/ChipGroup/ChipGroupDesign.tsx +162 -0
  116. package/src/constructors/ChipGroup/basicTypes.ts +6 -0
  117. package/src/constructors/ChipGroup/index.ts +5 -0
  118. package/src/constructors/ChipGroup/properties.json +3 -0
  119. package/src/constructors/ChipGroup/props.ts +50 -0
  120. package/src/constructors/ChipGroup/style.scss +6 -0
  121. package/src/constructors/ChipGroup/types.ts +47 -0
  122. package/src/constructors/Dialog/Dialog.ts +145 -0
  123. package/src/constructors/Dialog/DialogDesign.tsx +135 -0
  124. package/src/constructors/Dialog/basicTypes.ts +0 -0
  125. package/src/constructors/Dialog/index.ts +5 -0
  126. package/src/constructors/Dialog/properties.json +23 -0
  127. package/src/constructors/Dialog/props.ts +76 -0
  128. package/src/constructors/Dialog/style.scss +18 -0
  129. package/src/constructors/Dialog/types.ts +67 -0
  130. package/src/constructors/Field/Field.ts +58 -19
  131. package/src/constructors/Field/FieldDesign.tsx +35 -17
  132. package/src/constructors/Field/FieldInclude.ts +141 -11
  133. package/src/constructors/Field/basicTypes.ts +35 -19
  134. package/src/constructors/Field/properties.json +92 -86
  135. package/src/constructors/Field/props.ts +6 -3
  136. package/src/constructors/Field/style.scss +36 -20
  137. package/src/constructors/Field/types.ts +13 -13
  138. package/src/constructors/FieldCounter/FieldCounterDesign.tsx +1 -0
  139. package/src/constructors/FieldCounter/FieldCounterInclude.ts +3 -1
  140. package/src/constructors/FieldCounter/basicTypes.ts +1 -0
  141. package/src/constructors/FieldCounter/properties.json +3 -3
  142. package/src/constructors/FieldCounter/props.ts +5 -2
  143. package/src/constructors/FieldCounter/types.ts +1 -1
  144. package/src/constructors/FieldLabel/FieldLabelDesign.tsx +6 -2
  145. package/src/constructors/FieldLabel/FieldLabelInclude.ts +13 -4
  146. package/src/constructors/FieldLabel/properties.json +4 -4
  147. package/src/constructors/FieldLabel/props.ts +2 -2
  148. package/src/constructors/FieldLabel/types.ts +2 -2
  149. package/src/constructors/FieldMessage/FieldMessage.ts +19 -0
  150. package/src/constructors/FieldMessage/FieldMessageDesign.tsx +36 -4
  151. package/src/constructors/FieldMessage/FieldMessageInclude.ts +11 -1
  152. package/src/constructors/FieldMessage/basicTypes.ts +15 -1
  153. package/src/constructors/FieldMessage/properties.json +10 -9
  154. package/src/constructors/FieldMessage/props.ts +4 -0
  155. package/src/constructors/FieldMessage/style.scss +16 -1
  156. package/src/constructors/FieldMessage/types.ts +4 -2
  157. package/src/constructors/Icon/Icon.ts +37 -2
  158. package/src/constructors/Icon/IconDesign.tsx +46 -39
  159. package/src/constructors/Icon/properties.json +25 -25
  160. package/src/constructors/Icon/props.ts +22 -16
  161. package/src/constructors/Icon/types.ts +1 -1
  162. package/src/constructors/Image/Image.ts +68 -10
  163. package/src/constructors/Image/ImageBackground.ts +15 -2
  164. package/src/constructors/Image/ImageCoordinator.ts +4 -2
  165. package/src/constructors/Image/ImageData.ts +4 -0
  166. package/src/constructors/Image/ImageDesign.tsx +81 -15
  167. package/src/constructors/Image/ImageFile.ts +2 -13
  168. package/src/constructors/Image/ImageImg.ts +218 -0
  169. package/src/constructors/Image/ImagePdf.ts +2 -2
  170. package/src/constructors/Image/basicTypes.ts +5 -0
  171. package/src/constructors/Image/properties.json +17 -17
  172. package/src/constructors/Image/props.ts +34 -7
  173. package/src/constructors/Image/style.scss +42 -0
  174. package/src/constructors/Image/types.ts +1 -1
  175. package/src/constructors/Input/Input.ts +146 -0
  176. package/src/constructors/Input/InputDesign.tsx +174 -0
  177. package/src/constructors/Input/InputPassword.ts +54 -0
  178. package/src/constructors/Input/basicTypes.ts +3 -0
  179. package/src/constructors/Input/index.ts +5 -0
  180. package/src/constructors/Input/properties.json +2 -0
  181. package/src/constructors/Input/props.ts +53 -0
  182. package/src/constructors/Input/style.scss +5 -0
  183. package/src/constructors/Input/types.ts +48 -0
  184. package/src/constructors/List/List.ts +36 -11
  185. package/src/constructors/List/ListControl.ts +2 -2
  186. package/src/constructors/List/ListDesign.tsx +59 -38
  187. package/src/constructors/List/ListGo.ts +5 -3
  188. package/src/constructors/List/properties.json +16 -16
  189. package/src/constructors/List/props.ts +7 -0
  190. package/src/constructors/List/style.scss +14 -0
  191. package/src/constructors/List/types.ts +9 -9
  192. package/src/constructors/ListGroup/ListGroupDesign.tsx +8 -3
  193. package/src/constructors/ListGroup/basicTypes.ts +7 -0
  194. package/src/constructors/ListGroup/properties.json +15 -15
  195. package/src/constructors/ListGroup/props.ts +4 -4
  196. package/src/constructors/ListGroup/types.ts +2 -1
  197. package/src/constructors/ListItem/ListItem.ts +67 -7
  198. package/src/constructors/ListItem/ListItemDesign.tsx +13 -10
  199. package/src/constructors/ListItem/properties.json +52 -52
  200. package/src/constructors/ListItem/props.ts +24 -15
  201. package/src/constructors/ListItem/types.ts +12 -12
  202. package/src/constructors/ListMenu/ListMenu.ts +2 -1
  203. package/src/constructors/ListMenu/ListMenuDesign.tsx +3 -3
  204. package/src/constructors/ListMenu/properties.json +19 -19
  205. package/src/constructors/ListMenu/types.ts +3 -3
  206. package/src/constructors/Mask/MaskDesign.tsx +33 -28
  207. package/src/constructors/Mask/MaskEvent.ts +41 -2
  208. package/src/constructors/Mask/MaskInclude.ts +147 -0
  209. package/src/constructors/Mask/basicTypes.ts +19 -1
  210. package/src/constructors/Mask/properties.json +30 -29
  211. package/src/constructors/Mask/props.ts +1 -1
  212. package/src/constructors/Mask/style.scss +2 -4
  213. package/src/constructors/Mask/types.ts +4 -4
  214. package/src/constructors/Menu/Menu.ts +17 -5
  215. package/src/constructors/Menu/MenuDesign.tsx +11 -11
  216. package/src/constructors/Menu/MenuGo.ts +72 -0
  217. package/src/constructors/Menu/MenuInclude.ts +20 -10
  218. package/src/constructors/Menu/MenuSearch.ts +20 -1
  219. package/src/constructors/Menu/MenuValue.ts +7 -3
  220. package/src/constructors/Menu/MenuWindow.ts +2 -1
  221. package/src/constructors/Menu/basicTypes.ts +21 -4
  222. package/src/constructors/Menu/properties.json +17 -17
  223. package/src/constructors/Menu/props.ts +15 -3
  224. package/src/constructors/Menu/types.ts +6 -16
  225. package/src/constructors/Modal/Modal.ts +53 -0
  226. package/src/constructors/Modal/ModalAbstract.ts +74 -0
  227. package/src/constructors/Modal/ModalDesign.tsx +63 -0
  228. package/src/constructors/Modal/ModalDesignAbstract.tsx +226 -0
  229. package/src/constructors/Modal/basicTypes.ts +0 -0
  230. package/src/constructors/Modal/index.ts +5 -0
  231. package/src/constructors/Modal/properties.json +17 -0
  232. package/src/constructors/Modal/props.ts +45 -0
  233. package/src/constructors/Modal/style.scss +20 -0
  234. package/src/constructors/Modal/types.ts +62 -0
  235. package/src/constructors/MotionTransform/MotionTransform.ts +65 -8
  236. package/src/constructors/MotionTransform/MotionTransformDesign.tsx +55 -21
  237. package/src/constructors/MotionTransform/MotionTransformElement.ts +7 -2
  238. package/src/constructors/MotionTransform/MotionTransformInclude.ts +2 -1
  239. package/src/constructors/MotionTransform/MotionTransformState.ts +5 -0
  240. package/src/constructors/MotionTransform/basicTypes.ts +18 -2
  241. package/src/constructors/MotionTransform/properties.json +35 -35
  242. package/src/constructors/MotionTransform/props.ts +13 -7
  243. package/src/constructors/MotionTransform/style.scss +24 -2
  244. package/src/constructors/MotionTransform/types.ts +7 -7
  245. package/src/constructors/Progress/Progress.ts +12 -2
  246. package/src/constructors/Progress/ProgressDesign.tsx +75 -53
  247. package/src/constructors/Progress/ProgressInclude.ts +13 -1
  248. package/src/constructors/Progress/properties.json +47 -47
  249. package/src/constructors/Progress/props.ts +5 -1
  250. package/src/constructors/Progress/style.scss +2 -2
  251. package/src/constructors/Progress/types.ts +4 -4
  252. package/src/constructors/Ripple/Ripple.ts +1 -1
  253. package/src/constructors/Ripple/RippleDesign.tsx +7 -4
  254. package/src/constructors/Ripple/RippleItem.ts +1 -1
  255. package/src/constructors/Ripple/style.scss +4 -0
  256. package/src/constructors/Ripple/types.ts +2 -2
  257. package/src/constructors/Scrollbar/Scrollbar.ts +3 -3
  258. package/src/constructors/Scrollbar/ScrollbarDesign.tsx +1 -1
  259. package/src/constructors/Scrollbar/properties.json +33 -33
  260. package/src/constructors/Scrollbar/types.ts +1 -1
  261. package/src/constructors/Section/Section.ts +33 -0
  262. package/src/constructors/Section/SectionDesign.tsx +127 -0
  263. package/src/constructors/Section/basicTypes.ts +0 -0
  264. package/src/constructors/Section/index.ts +5 -0
  265. package/src/constructors/Section/properties.json +2 -0
  266. package/src/constructors/Section/props.ts +29 -0
  267. package/src/constructors/Section/style.scss +5 -0
  268. package/src/constructors/Section/types.ts +47 -0
  269. package/src/constructors/Select/Select.ts +172 -0
  270. package/src/constructors/Select/SelectDesign.tsx +288 -0
  271. package/src/constructors/Select/SelectFilter.ts +43 -0
  272. package/src/constructors/Select/SelectInput.ts +68 -0
  273. package/src/constructors/Select/basicTypes.ts +0 -0
  274. package/src/constructors/Select/index.ts +5 -0
  275. package/src/constructors/Select/properties.json +3 -0
  276. package/src/constructors/Select/props.ts +63 -0
  277. package/src/constructors/Select/style.scss +5 -0
  278. package/src/constructors/Select/types.ts +53 -0
  279. package/src/constructors/SelectValue/SelectValue.ts +95 -0
  280. package/src/constructors/SelectValue/SelectValueDesign.tsx +198 -0
  281. package/src/constructors/SelectValue/SelectValueInclude.ts +92 -0
  282. package/src/constructors/SelectValue/basicTypes.ts +17 -0
  283. package/src/constructors/SelectValue/index.ts +6 -0
  284. package/src/constructors/SelectValue/properties.json +7 -0
  285. package/src/constructors/SelectValue/props.ts +48 -0
  286. package/src/constructors/SelectValue/style.scss +14 -0
  287. package/src/constructors/SelectValue/types.ts +47 -0
  288. package/src/constructors/Skeleton/Skeleton.ts +1 -3
  289. package/src/constructors/Skeleton/SkeletonDesign.tsx +7 -1
  290. package/src/constructors/Skeleton/SkeletonInclude.ts +5 -0
  291. package/src/constructors/Skeleton/properties.json +24 -24
  292. package/src/constructors/Skeleton/types.ts +1 -1
  293. package/src/constructors/TextareaAutosize/TextareaAutosize.ts +41 -0
  294. package/src/constructors/TextareaAutosize/TextareaAutosizeDesign.tsx +147 -0
  295. package/src/constructors/TextareaAutosize/TextareaAutosizeResize.ts +109 -0
  296. package/src/constructors/TextareaAutosize/TextareaAutosizeValue.ts +69 -0
  297. package/src/constructors/TextareaAutosize/basicTypes.ts +0 -0
  298. package/src/constructors/TextareaAutosize/index.ts +5 -0
  299. package/src/constructors/TextareaAutosize/properties.json +6 -0
  300. package/src/constructors/TextareaAutosize/props.ts +34 -0
  301. package/src/constructors/TextareaAutosize/style.scss +31 -0
  302. package/src/constructors/TextareaAutosize/types.ts +50 -0
  303. package/src/constructors/Tooltip/Tooltip.ts +138 -0
  304. package/src/constructors/Tooltip/TooltipClasses.ts +90 -0
  305. package/src/constructors/Tooltip/TooltipDesign.tsx +198 -0
  306. package/src/constructors/Tooltip/TooltipEvent.ts +103 -0
  307. package/src/constructors/Tooltip/TooltipInclude.ts +114 -0
  308. package/src/constructors/Tooltip/TooltipOpen.ts +128 -0
  309. package/src/constructors/Tooltip/TooltipPosition.ts +92 -0
  310. package/src/constructors/Tooltip/TooltipStatus.ts +97 -0
  311. package/src/constructors/Tooltip/TooltipStyle.ts +123 -0
  312. package/src/constructors/Tooltip/basicTypes.ts +39 -0
  313. package/src/constructors/Tooltip/index.ts +6 -0
  314. package/src/constructors/Tooltip/properties.json +14 -0
  315. package/src/constructors/Tooltip/props.ts +49 -0
  316. package/src/constructors/Tooltip/style.scss +43 -0
  317. package/src/constructors/Tooltip/types.ts +58 -0
  318. package/src/constructors/Window/Window.ts +52 -16
  319. package/src/constructors/Window/WindowClasses.ts +33 -0
  320. package/src/constructors/Window/WindowClient.ts +39 -0
  321. package/src/constructors/Window/WindowDesign.tsx +31 -14
  322. package/src/constructors/Window/WindowEsc.ts +114 -0
  323. package/src/constructors/Window/WindowHidden.ts +120 -0
  324. package/src/constructors/Window/WindowInclude.ts +2 -2
  325. package/src/constructors/Window/WindowOpen.ts +10 -1
  326. package/src/constructors/Window/WindowOrigin.ts +5 -1
  327. package/src/constructors/Window/WindowStatic.ts +3 -1
  328. package/src/constructors/Window/WindowVerification.ts +8 -5
  329. package/src/constructors/Window/basicTypes.ts +26 -16
  330. package/src/constructors/Window/properties.json +239 -236
  331. package/src/constructors/Window/props.ts +10 -1
  332. package/src/constructors/Window/style.scss +11 -0
  333. package/src/constructors/Window/types.ts +2 -2
  334. package/src/functions/{getClassTegAStatic.ts → getClassTagAStatic.ts} +1 -1
  335. package/src/library.ts +13 -1
  336. package/src/types/ariaTypes.ts +366 -0
  337. package/src/types/descriptionTypes.ts +8 -0
  338. package/src/types/fieldTypes.ts +120 -16
  339. package/src/types/labelTypes.ts +39 -0
  340. package/src/types/modelTypes.ts +16 -0
  341. package/src/types/roleTypes.ts +88 -0
  342. package/src/types/textTypes.ts +33 -0
  343. package/src/types/touchEventTypes.ts +43 -0
@@ -0,0 +1,366 @@
1
+ import type { NumberOrString } from '@dxtmisha/functional'
2
+ import type { RoleType } from './roleTypes'
3
+
4
+ /** ARIA true or false type/ ARIA тип true или false */
5
+ export type AriaTrueOrFalse = 'true' | 'false' | boolean
6
+
7
+ /** ARIA list type/ ARIA тип списка */
8
+ export type AriaList = {
9
+ /** Element ID/ ID элемента */
10
+ 'id'?: string
11
+
12
+ /** ARIA role type/ Тип ARIA роли */
13
+ 'role'?: RoleType
14
+
15
+ /**
16
+ * Tabindex attribute - indicates if the element can be focused/
17
+ * Атрибут Tabindex - указывает, может ли элемент получать фокус
18
+ */
19
+ 'tabindex'?: NumberOrString
20
+
21
+ /**
22
+ * ARIA activedescendant attribute - identifies the currently active element/
23
+ * Атрибут ARIA activedescendant - идентифицирует текущий активный элемент
24
+ */
25
+ 'aria-activedescendant'?: string
26
+
27
+ /**
28
+ * ARIA atomic attribute - indicates whether assistive technologies will present all or only parts of the changed region/
29
+ * Атрибут ARIA atomic - указывает, будут ли вспомогательные технологии представлять весь или только части измененного региона
30
+ */
31
+ 'aria-atomic'?: AriaTrueOrFalse
32
+
33
+ /**
34
+ * ARIA autocomplete attribute - indicates whether inputting text could trigger display of suggestions/
35
+ * Атрибут ARIA autocomplete - указывает, может ли ввод текста вызвать отображение предложений
36
+ */
37
+ 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both'
38
+
39
+ /**
40
+ * ARIA busy attribute - indicates an element is being modified/
41
+ * Атрибут ARIA busy - указывает, что элемент изменяется
42
+ */
43
+ 'aria-busy'?: AriaTrueOrFalse
44
+
45
+ /**
46
+ * ARIA checked attribute - indicates the current checked state/
47
+ * Атрибут ARIA checked - указывает текущее состояние отметки
48
+ */
49
+ 'aria-checked'?: AriaTrueOrFalse | 'mixed'
50
+
51
+ /**
52
+ * ARIA colcount attribute - defines the total number of columns/
53
+ * Атрибут ARIA colcount - определяет общее количество столбцов
54
+ */
55
+ 'aria-colcount'?: number
56
+
57
+ /**
58
+ * ARIA colindex attribute - defines an element's column index/
59
+ * Атрибут ARIA colindex - определяет индекс столбца элемента
60
+ */
61
+ 'aria-colindex'?: number
62
+
63
+ /**
64
+ * ARIA colspan attribute - defines the number of columns spanned by a cell/
65
+ * Атрибут ARIA colspan - определяет количество столбцов, занимаемых ячейкой
66
+ */
67
+ 'aria-colspan'?: number
68
+
69
+ /**
70
+ * ARIA controls attribute - identifies controlled element/
71
+ * Атрибут ARIA controls - идентифицирует управляемый элемент
72
+ */
73
+ 'aria-controls'?: string
74
+
75
+ /**
76
+ * ARIA current attribute - indicates the current item within a container/
77
+ * Атрибут ARIA current - указывает текущий элемент в контейнере
78
+ */
79
+ 'aria-current'?: AriaTrueOrFalse | 'page' | 'step' | 'location' | 'date' | 'time'
80
+
81
+ /**
82
+ * ARIA describedby attribute - identifies describing element/
83
+ * Атрибут ARIA describedby - идентифицирует описывающий элемент
84
+ */
85
+ 'aria-describedby'?: string
86
+
87
+ /**
88
+ * ARIA details attribute - identifies the element that provides detailed information/
89
+ * Атрибут ARIA details - идентифицирует элемент, предоставляющий подробную информацию
90
+ */
91
+ 'aria-details'?: string
92
+
93
+ /**
94
+ * ARIA disabled attribute - indicates that the element is not editable or operable/
95
+ * Атрибут ARIA disabled - указывает, что элемент не редактируется и не работает
96
+ */
97
+ 'aria-disabled'?: AriaTrueOrFalse
98
+
99
+ /**
100
+ * ARIA errormessage attribute - identifies the element that provides an error message/
101
+ * Атрибут ARIA errormessage - идентифицирует элемент, предоставляющий сообщение об ошибке
102
+ */
103
+ 'aria-errormessage'?: string
104
+
105
+ /**
106
+ * ARIA expanded state attribute/
107
+ * Атрибут ARIA состояния развёрнутости
108
+ */
109
+ 'aria-expanded'?: AriaTrueOrFalse
110
+
111
+ /**
112
+ * ARIA flowto attribute - identifies the next element in an alternate reading order/
113
+ * Атрибут ARIA flowto - идентифицирует следующий элемент в альтернативном порядке чтения
114
+ */
115
+ 'aria-flowto'?: string
116
+
117
+ /**
118
+ * ARIA grabbed attribute - indicates an element's grabbed state in a drag-and-drop operation/
119
+ * Атрибут ARIA grabbed - указывает состояние захвата элемента в операции перетаскивания
120
+ */
121
+ 'aria-grabbed'?: AriaTrueOrFalse
122
+
123
+ /**
124
+ * ARIA haspopup attribute - indicates the availability of a popup element/
125
+ * Атрибут ARIA haspopup - указывает на наличие всплывающего элемента
126
+ */
127
+ 'aria-haspopup'?: AriaTrueOrFalse | 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid'
128
+
129
+ /**
130
+ * ARIA hidden attribute - indicates whether the element is exposed to an accessibility API/
131
+ * Атрибут ARIA hidden - указывает, открыт ли элемент для API доступности
132
+ */
133
+ 'aria-hidden'?: AriaTrueOrFalse
134
+
135
+ /**
136
+ * ARIA invalid attribute - indicates the entered value does not conform to the format expected/
137
+ * Атрибут ARIA invalid - указывает, что введенное значение не соответствует ожидаемому формату
138
+ */
139
+ 'aria-invalid'?: AriaTrueOrFalse | 'grammar' | 'spelling'
140
+
141
+ /**
142
+ * ARIA keyshortcuts attribute - indicates keyboard shortcuts that an author has implemented/
143
+ * Атрибут ARIA keyshortcuts - указывает сочетания клавиш, реализованные автором
144
+ */
145
+ 'aria-keyshortcuts'?: string
146
+
147
+ /**
148
+ * ARIA label attribute - defines a string value that labels the current element/
149
+ * Атрибут ARIA label - определяет строковое значение, которое обозначает текущий элемент
150
+ */
151
+ 'aria-label'?: string
152
+
153
+ /**
154
+ * ARIA labelledby attribute - identifies labeling element/
155
+ * Атрибут ARIA labelledby - идентифицирует обозначающий элемент
156
+ */
157
+ 'aria-labelledby'?: string
158
+
159
+ /**
160
+ * ARIA level attribute - defines the hierarchical level of an element/
161
+ * Атрибут ARIA level - определяет иерархический уровень элемента
162
+ */
163
+ 'aria-level'?: number
164
+
165
+ /**
166
+ * ARIA live attribute - indicates that an element will be updated/
167
+ * Атрибут ARIA live - указывает, что элемент будет обновляться
168
+ */
169
+ 'aria-live'?: 'off' | 'polite' | 'assertive'
170
+
171
+ /**
172
+ * ARIA modal attribute - indicates modal state/
173
+ * Атрибут ARIA modal - указывает модальное состояние
174
+ */
175
+ 'aria-modal'?: AriaTrueOrFalse
176
+
177
+ /**
178
+ * ARIA multiline attribute - indicates whether a text box accepts multiple lines of input/
179
+ * Атрибут ARIA multiline - указывает, принимает ли текстовое поле несколько строк ввода
180
+ */
181
+ 'aria-multiline'?: AriaTrueOrFalse
182
+
183
+ /**
184
+ * ARIA multiselectable attribute - indicates that the user may select more than one item/
185
+ * Атрибут ARIA multiselectable - указывает, что пользователь может выбрать более одного элемента
186
+ */
187
+ 'aria-multiselectable'?: AriaTrueOrFalse
188
+
189
+ /**
190
+ * ARIA orientation attribute - indicates whether the element's orientation is horizontal, vertical, or unknown/
191
+ * Атрибут ARIA orientation - указывает, является ли ориентация элемента горизонтальной, вертикальной или неизвестной
192
+ */
193
+ 'aria-orientation'?: 'horizontal' | 'vertical' | 'undefined'
194
+
195
+ /**
196
+ * ARIA owns attribute - identifies an element to define a visual, functional, or contextual parent/
197
+ * Атрибут ARIA owns - идентифицирует элемент для определения визуального, функционального или контекстного родителя
198
+ */
199
+ 'aria-owns'?: string
200
+
201
+ /**
202
+ * ARIA placeholder attribute - defines a short hint to help the user with data entry/
203
+ * Атрибут ARIA placeholder - определяет краткую подсказку для помощи пользователю при вводе данных
204
+ */
205
+ 'aria-placeholder'?: string
206
+
207
+ /**
208
+ * ARIA posinset attribute - defines an element's number or position in the current set/
209
+ * Атрибут ARIA posinset - определяет номер или позицию элемента в текущем наборе
210
+ */
211
+ 'aria-posinset'?: number
212
+
213
+ /**
214
+ * ARIA pressed attribute - indicates the current pressed state of toggle buttons/
215
+ * Атрибут ARIA pressed - указывает текущее состояние нажатия кнопок-переключателей
216
+ */
217
+ 'aria-pressed'?: AriaTrueOrFalse | 'mixed'
218
+
219
+ /**
220
+ * ARIA readonly attribute - indicates that the element is not editable/
221
+ * Атрибут ARIA readonly - указывает, что элемент не редактируется
222
+ */
223
+ 'aria-readonly'?: AriaTrueOrFalse
224
+
225
+ /**
226
+ * ARIA relevant attribute - indicates what notifications the user agent will trigger/
227
+ * Атрибут ARIA relevant - указывает, какие уведомления будет вызывать пользовательский агент
228
+ */
229
+ 'aria-relevant'?: 'additions' | 'removals' | 'text' | 'all' | string
230
+
231
+ /**
232
+ * ARIA required attribute - indicates that user input is required/
233
+ * Атрибут ARIA required - указывает, что требуется ввод пользователя
234
+ */
235
+ 'aria-required'?: AriaTrueOrFalse
236
+
237
+ /**
238
+ * ARIA roledescription attribute - defines a human-readable description for the role/
239
+ * Атрибут ARIA roledescription - определяет читаемое человеком описание роли
240
+ */
241
+ 'aria-roledescription'?: string
242
+
243
+ /**
244
+ * ARIA rowcount attribute - defines the total number of rows/
245
+ * Атрибут ARIA rowcount - определяет общее количество строк
246
+ */
247
+ 'aria-rowcount'?: number
248
+
249
+ /**
250
+ * ARIA rowindex attribute - defines an element's row index/
251
+ * Атрибут ARIA rowindex - определяет индекс строки элемента
252
+ */
253
+ 'aria-rowindex'?: number
254
+
255
+ /**
256
+ * ARIA rowspan attribute - defines the number of rows spanned by a cell/
257
+ * Атрибут ARIA rowspan - определяет количество строк, занимаемых ячейкой
258
+ */
259
+ 'aria-rowspan'?: number
260
+
261
+ /**
262
+ * ARIA selected attribute - indicates the current selected state/
263
+ * Атрибут ARIA selected - указывает текущее состояние выбора
264
+ */
265
+ 'aria-selected'?: AriaTrueOrFalse
266
+
267
+ /**
268
+ * ARIA setsize attribute - defines the number of items in the current set/
269
+ * Атрибут ARIA setsize - определяет количество элементов в текущем наборе
270
+ */
271
+ 'aria-setsize'?: number
272
+
273
+ /**
274
+ * ARIA sort attribute - indicates if items are sorted/
275
+ * Атрибут ARIA sort - указывает, отсортированы ли элементы
276
+ */
277
+ 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other'
278
+
279
+ /**
280
+ * ARIA valuemax attribute - defines the maximum allowed value/
281
+ * Атрибут ARIA valuemax - определяет максимально допустимое значение
282
+ */
283
+ 'aria-valuemax'?: string | number
284
+
285
+ /**
286
+ * ARIA valuemin attribute - defines the minimum allowed value/
287
+ * Атрибут ARIA valuemin - определяет минимально допустимое значение
288
+ */
289
+ 'aria-valuemin'?: string | number
290
+
291
+ /**
292
+ * ARIA valuenow attribute - defines the current value/
293
+ * Атрибут ARIA valuenow - определяет текущее значение
294
+ */
295
+ 'aria-valuenow'?: string | number
296
+
297
+ /**
298
+ * ARIA valuetext attribute - defines the human readable text alternative of aria-valuenow/
299
+ * Атрибут ARIA valuetext - определяет читаемую человеком текстовую альтернативу aria-valuenow
300
+ */
301
+ 'aria-valuetext'?: string
302
+ }
303
+
304
+ /** Basic ARIA role props/ Базовые ARIA пропсы роли */
305
+ export interface AriaRolePropsInclude {
306
+ role?: RoleType
307
+ }
308
+
309
+ /**
310
+ * ARIA label prop/
311
+ * ARIA проп label
312
+ */
313
+ export interface AriaLabelPropsInclude {
314
+ ariaLabel?: string
315
+ }
316
+
317
+ /**
318
+ * ARIA description prop/
319
+ * ARIA проп description
320
+ */
321
+ export interface AriaDescriptionPropsInclude {
322
+ ariaDescription?: string
323
+ }
324
+
325
+ /**
326
+ * ARIA haspopup prop/
327
+ * ARIA проп haspopup
328
+ */
329
+ export interface AriaHaspopupPropsInclude {
330
+ ariaHaspopup?: AriaList['aria-haspopup']
331
+ }
332
+
333
+ /**
334
+ * ARIA live prop/
335
+ * ARIA проп live
336
+ */
337
+ export interface AriaLivePropsInclude {
338
+ ariaLive?: AriaList['aria-live']
339
+ }
340
+
341
+ /**
342
+ * ARIA props with labelledby and describedby/
343
+ * ARIA пропсы с labelledby и describedby
344
+ */
345
+ export interface AriaByPropsInclude {
346
+ ariaLabelledby?: string
347
+ ariaDescribedby?: string
348
+ }
349
+
350
+ /**
351
+ * ARIA role props with labelledby and describedby/
352
+ * ARIA пропсы роли с labelledby и describedby
353
+ */
354
+ export interface AriaRoleByPropsInclude extends AriaRolePropsInclude, AriaByPropsInclude {
355
+ }
356
+
357
+ /**
358
+ * ARIA control role props with controls and expanded/
359
+ * ARIA пропсы роли управления с controls и expanded
360
+ */
361
+ export interface AriaRoleControlPropsInclude extends AriaRolePropsInclude, AriaHaspopupPropsInclude {
362
+ id?: string
363
+ ariaControls?: string
364
+ ariaHaspopup?: AriaList['aria-haspopup']
365
+ ariaExpanded?: string
366
+ }
@@ -1,3 +1,11 @@
1
+ /**
2
+ * Expose for description functionality/ Экспоз для функциональности описания
3
+ */
4
+ export interface DescriptionExpose {
5
+ /** Description identifier/ Идентификатор описания */
6
+ descriptionId: string
7
+ }
8
+
1
9
  /**
2
10
  * Slots for description functionality/ Слоты для функциональности описания
3
11
  */
@@ -1,5 +1,25 @@
1
- import type { NumberOrString } from '@dxtmisha/functional'
2
- import type { ModelProps } from './modelTypes'
1
+ import type { ComputedRef, ShallowRef } from 'vue'
2
+ import type { ListRecord, NumberOrString } from '@dxtmisha/functional'
3
+ import type { ModelEmits, ModelProps } from './modelTypes'
4
+
5
+ /** Supported field types/ Поддерживаемые типы полей */
6
+ export type FieldType
7
+ = 'text'
8
+ | 'search'
9
+ | 'number'
10
+ | 'number-format'
11
+ | 'currency'
12
+ | 'email'
13
+ | 'password'
14
+ | 'datetime'
15
+ | 'date'
16
+ | 'year-month'
17
+ | 'time'
18
+ | 'hour-minute'
19
+ | 'tel'
20
+ | 'url'
21
+ | 'checkbox'
22
+ | 'radio'
3
23
 
4
24
  /** Base input or textarea element/ Базовый элемент input или textarea */
5
25
  export type FieldElementDom = HTMLInputElement | HTMLTextAreaElement
@@ -98,6 +118,42 @@ export type FieldValidationItem<Value = any>
98
118
  detail?: Record<string, any>
99
119
  }
100
120
 
121
+ /**
122
+ * Emitted events for field components/
123
+ * Эмитируемые события для компонентов поля
124
+ */
125
+ export type FieldBasicEmits<T = string>
126
+ = ModelEmits
127
+ & {
128
+ /**
129
+ * Emitted on input events (every change while typing)/
130
+ * Эмит при вводе (каждое изменение): [event, value]
131
+ */
132
+ input: [event: InputEvent | Event, value: FieldValidationItem<T>]
133
+ /**
134
+ * Lightweight input emit without DOM event/
135
+ * Лёгкий эмит ввода без DOM-события: [value]
136
+ */
137
+ inputLite: [value: FieldValidationItem<T>]
138
+ /**
139
+ * Emitted when value is committed (blur/confirm)/
140
+ * Эмит при подтверждении значения (blur/confirm): [event, value]
141
+ */
142
+ change: [event: InputEvent | Event, value: FieldValidationItem<T>]
143
+ /**
144
+ * Lightweight change emit without DOM event/
145
+ * Лёгкий эмит подтверждения без события: [value]
146
+ */
147
+ changeLite: [value: FieldValidationItem<T>]
148
+ }
149
+
150
+ export type FieldBasicExpose<T = string> = {
151
+ value: ShallowRef<T | undefined>
152
+
153
+ checkValidity: () => boolean
154
+ validationMessage: ComputedRef<string>
155
+ }
156
+
101
157
  /**
102
158
  * Properties that describe the value and its handling/
103
159
  * Свойства, описывающие значение и работу с ним
@@ -114,6 +170,8 @@ export interface FieldValueProps<Value = any> extends ModelProps<Value> {
114
170
  maxlength?: NumberOrString
115
171
  /** Controlled value (without v-model)/ Контролируемое значение (без v-model) */
116
172
  value?: Value
173
+ /** Additional event details/ Дополнительные детали события */
174
+ detail?: Record<string, any> | undefined
117
175
  }
118
176
 
119
177
  /**
@@ -123,11 +181,27 @@ export interface FieldValueProps<Value = any> extends ModelProps<Value> {
123
181
  export interface FieldBasicProps<Value = any>
124
182
  extends Omit<FieldValueProps<Value>, 'multiple' | 'maxlength'> {
125
183
  /** Input type/ Тип инпута */
126
- type?: string
184
+ type?: 'text'
185
+ | 'search'
186
+ | 'number'
187
+ | 'number-format'
188
+ | 'currency'
189
+ | 'email'
190
+ | 'password'
191
+ | 'datetime'
192
+ | 'date'
193
+ | 'year-month'
194
+ | 'time'
195
+ | 'hour-minute'
196
+ | 'tel'
197
+ | 'url'
198
+ | 'checkbox'
199
+ | 'radio'
200
+
127
201
  /** Input name attribute/ Атрибут name */
128
202
  name?: string
129
203
  /** Input id attribute/ Атрибут id */
130
- id?: string
204
+ id?: string | number
131
205
 
132
206
  /** Required flag/ Обязательное поле */
133
207
  required?: boolean
@@ -172,17 +246,39 @@ export interface FieldStepProps {
172
246
  max?: NumberOrString
173
247
  }
174
248
 
249
+ /**
250
+ * Input arrow controls (for type="number")/
251
+ * Управление стрелками ввода (для type="number")
252
+ */
253
+ export interface FieldArrowProps {
254
+ /** Arrow type/ Тип стрелок */
255
+ arrow?: 'auto' | 'carousel' | 'stepper' | 'none'
256
+ /** Step size for input arrows (type="number" only)/ Шаг для стрелок ввода (только для type="number") */
257
+ arrowStep?: NumberOrString
258
+ /** Arrow alignment/ Выравнивание стрелок */
259
+ arrowAlign?: 'center' | 'right' | 'left'
260
+ }
261
+
175
262
  /**
176
263
  * Text length constraints (characters, items)/
177
264
  * Ограничения длины текста (символы, элементы)
178
265
  */
179
- export interface FieldLength {
266
+ export interface FieldLengthProps {
180
267
  /** Minimum length/ Минимальная длина */
181
268
  minlength?: NumberOrString
182
269
  /** Maximum length/ Максимальная длина */
183
270
  maxlength?: NumberOrString
184
271
  }
185
272
 
273
+ /**
274
+ * Validation pattern attribute/
275
+ * Атрибут паттерна валидации
276
+ */
277
+ export interface FieldPatternProps {
278
+ /** Validation pattern (regexp)/ Паттерн валидации (рег. выражение) */
279
+ pattern?: string
280
+ }
281
+
186
282
  /**
187
283
  * UX input control attributes/
188
284
  * Атрибуты управления UX вводом
@@ -193,9 +289,9 @@ export interface FieldUxProps {
193
289
  /** Auto capitalization mode/ Режим авто-капитализации */
194
290
  autocapitalize?: 'off' | 'none' | 'sentences' | 'words' | 'characters' | string
195
291
  /** Input mode hint (virtual keyboard)/ Подсказка режима ввода (виртуальная клавиатура) */
196
- inputmode?: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url' | string
292
+ inputMode?: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url' | string
197
293
  /** Enter key hint/ Подсказка для клавиши Enter */
198
- enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | string
294
+ enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | string
199
295
  /** Spellcheck flag/ Проверка орфографии */
200
296
  spellcheck?: boolean | 'true' | 'false'
201
297
  /** Autocorrect mode (iOS/Safari)/ Режим автокоррекции (iOS/Safari) */
@@ -207,11 +303,18 @@ export interface FieldUxProps {
207
303
  * Составные свойства стандартных текстовых / числовых инпутов
208
304
  */
209
305
  export interface FieldInputProps<Value = any>
210
- extends FieldBasicProps<Value>, FieldStepProps, FieldLength, FieldUxProps {
211
- /** Validation pattern (regexp)/ Паттерн валидации (рег. выражение) */
212
- pattern?: string
306
+ extends FieldBasicProps<Value>,
307
+ FieldStepProps,
308
+ FieldArrowProps,
309
+ FieldLengthProps,
310
+ FieldPatternProps,
311
+ FieldUxProps {
213
312
  /** Datalist id reference/ Ссылка на datalist */
214
313
  list?: string
314
+
315
+ // Style
316
+ iconVisibility?: string
317
+ iconVisibilityOff?: string
215
318
  }
216
319
 
217
320
  /**
@@ -219,16 +322,13 @@ export interface FieldInputProps<Value = any>
219
322
  * Свойства для инпутов выбора файлов (type="file")
220
323
  */
221
324
  export interface FieldInputFileProps<Value = any>
222
- extends Omit<FieldBasicProps<Value>, 'type'>, FieldLength, FieldUxProps {
325
+ extends Omit<FieldBasicProps<Value>, 'type'>, FieldLengthProps, FieldUxProps {
223
326
  /** Multiple files selection flag/ Флаг выбора нескольких файлов */
224
327
  multiple?: boolean
225
328
  /** Accept file types list (MIME, extensions)/ Список допустимых типов (MIME, расширения) */
226
329
  accept?: string
227
330
  /** Capture mode for media input (mobile)/ Режим захвата для медиа (мобильные устройства) */
228
331
  capture?: string | boolean
229
-
230
- /** Show number input arrows (type="number" only)/ Показать стрелки числового ввода (только для type="number") */
231
- arrow?: string
232
332
  }
233
333
 
234
334
  /**
@@ -248,7 +348,7 @@ export interface FieldInputCheckProps<Value = any>
248
348
  * Свойства для textarea с поддержкой размеров и переноса
249
349
  */
250
350
  export interface FieldTextareaProps<Value = any>
251
- extends Omit<FieldBasicProps<Value>, 'type'>, FieldLength, FieldUxProps {
351
+ extends Omit<FieldBasicProps<Value>, 'type'>, FieldLengthProps, FieldUxProps {
252
352
  /** Number of visible text lines/ Количество видимых строк */
253
353
  rows?: NumberOrString
254
354
  /** Number of visible columns/ Количество видимых колонок */
@@ -264,7 +364,11 @@ export interface FieldTextareaProps<Value = any>
264
364
  * Свойства для select элементов (одиночный и множественный выбор)
265
365
  */
266
366
  export interface FieldSelectProps<Value = any>
267
- extends Omit<FieldBasicProps<Value>, 'type'> {
367
+ extends Omit<FieldBasicProps<Value>, 'type'>, Omit<FieldStepProps, 'min' | 'step'>, FieldArrowProps, FieldUxProps {
368
+ // Value
369
+ option?: ListRecord
370
+
371
+ // Style
268
372
  /** Multiple selection mode/ Режим множественного выбора */
269
373
  multiple?: boolean
270
374
  }
@@ -1,30 +1,69 @@
1
1
  import type { NumberOrString } from '@dxtmisha/functional'
2
2
 
3
+ /**
4
+ * Exposed properties for label components/ Экспонируемые свойства для компонентов меток
5
+ */
6
+ export interface LabelExpose {
7
+ /** Label element ID/ Идентификатор элемента метки */
8
+ labelId: string
9
+ }
10
+
11
+ /**
12
+ * Slot definitions for label components/ Определения слотов для компонентов меток
13
+ */
3
14
  export interface LabelSlots {
15
+ /** Default slot content/ Содержимое слота по умолчанию */
4
16
  default?(props: any): any
5
17
  }
6
18
 
19
+ /**
20
+ * Alternative slot definitions for label components/ Альтернативные определения слотов для компонентов меток
21
+ */
7
22
  export interface LabelAlternativeSlots {
23
+ /** Label slot content/ Содержимое слота метки */
8
24
  label?(props: any): any
9
25
  }
10
26
 
27
+ /**
28
+ * Slot definitions for numeric label components/ Определения слотов для числовых компонентов меток
29
+ */
11
30
  export interface LabelNumberSlots extends LabelSlots {
12
31
  }
13
32
 
33
+ /**
34
+ * Slot definitions for highlighted label components/ Определения слотов для компонентов меток с подсветкой
35
+ */
14
36
  export interface LabelHighlightSlots extends LabelSlots {
15
37
  }
16
38
 
39
+ /**
40
+ * Properties for label components/ Свойства для компонентов меток
41
+ */
17
42
  export interface LabelProps {
43
+ /** Label text or number/ Текст или число метки */
18
44
  label?: NumberOrString
45
+ /** Label element ID/ Идентификатор элемента метки */
46
+ labelId?: string
19
47
  }
20
48
 
49
+ /**
50
+ * Properties for numeric label components/ Свойства для числовых компонентов меток
51
+ */
21
52
  export interface LabelNumberProps extends LabelProps {
53
+ /** Maximum value for the label/ Максимальное значение для метки */
22
54
  labelMax?: NumberOrString
55
+ /** Enable number formatting/ Включить форматирование чисел */
23
56
  formatting?: boolean
24
57
  }
25
58
 
59
+ /**
60
+ * Properties for highlighted label components/ Свойства для компонентов меток с подсветкой
61
+ */
26
62
  export interface LabelHighlightProps extends LabelProps {
63
+ /** Text to highlight/ Текст для подсветки */
27
64
  highlight?: string
65
+ /** Starting length for highlight/ Начальная длина для подсветки */
28
66
  highlightLengthStart?: number
67
+ /** Current value/ Текущее значение */
29
68
  value?: any
30
69
  }