aloha-vue 2.7.0 → 2.7.2

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 (411) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +21 -21
  3. package/dist/aloha-vue.es.js +6669 -6559
  4. package/dist/aloha-vue.umd.js +55 -55
  5. package/package.json +1 -1
  6. package/src/AAccordion/AAccordionItem/compositionAPI/AttributesAPI.js +96 -96
  7. package/src/AAccordion/AAccordionItem/compositionAPI/ChildrenAPI.js +28 -28
  8. package/src/AAccordion/AAccordionItem/compositionAPI/ClassAPI.js +44 -44
  9. package/src/AAccordion/AAccordionItem/compositionAPI/ToggleAPI.js +81 -81
  10. package/src/AAccordion/AAccordionItem/compositionAPI/VisibleAPI.js +46 -46
  11. package/src/AAccordion/compositionAPI/IndexesForOpenAPI.js +61 -61
  12. package/src/AAlert/compositionAPI/ClassAPI.js +16 -16
  13. package/src/AAlert/compositionAPI/CloseAPI.js +26 -26
  14. package/src/AAlert/compositionAPI/IconAPI.js +28 -28
  15. package/src/AButton/compositionAPI/EmitsAPI.js +9 -9
  16. package/src/ACloak/i18n/ACloakI18n.js +7 -7
  17. package/src/ACollapse/ACollapse.js +103 -103
  18. package/src/ACollapse/ACollapse.pug +25 -25
  19. package/src/ACollapse/ACollapse.vue +2 -2
  20. package/src/ADisclosure/compositionAPI/BtnAttributesAPI.js +61 -61
  21. package/src/ADisclosure/i18n/ADisclosureI18n.js +19 -19
  22. package/src/ADisclosure/i18n/ar.json +4 -4
  23. package/src/ADisclosure/i18n/de.json +4 -4
  24. package/src/ADisclosure/i18n/en.json +4 -4
  25. package/src/ADisclosure/i18n/es.json +4 -4
  26. package/src/ADisclosure/i18n/fr.json +4 -4
  27. package/src/ADisclosure/i18n/hr.json +4 -4
  28. package/src/ADisclosure/i18n/it.json +4 -4
  29. package/src/ADisclosure/i18n/ru.json +4 -4
  30. package/src/ADropdown/ADropdownAction/compositionAPI/AttributesAPI.js +38 -38
  31. package/src/ADropdown/compositionAPI/ActionsAPI.js +27 -27
  32. package/src/ADropdown/compositionAPI/AttributesAPI.js +75 -75
  33. package/src/ADropdown/compositionAPI/ClassAPI.js +41 -41
  34. package/src/ADropdown/compositionAPI/EventsAPI.js +70 -70
  35. package/src/ADropdown/compositionAPI/FocusAPI.js +25 -25
  36. package/src/ADropdown/compositionAPI/RefsAPI.js +13 -13
  37. package/src/AElement/comositionAPI/AttributesAPI.js +51 -51
  38. package/src/AElement/comositionAPI/ComponentLocalAPI.js +23 -23
  39. package/src/AElement/comositionAPI/LoadingAPI.js +22 -22
  40. package/src/AElement/comositionAPI/RouterLinkAPI.js +20 -20
  41. package/src/AElement/comositionAPI/SwitchAPI.js +33 -33
  42. package/src/AElement/comositionAPI/TagAPI.js +34 -34
  43. package/src/AElement/comositionAPI/TextAPI.js +78 -78
  44. package/src/AElement/comositionAPI/TitleAPI.js +29 -29
  45. package/src/AFilters/AFilersRight/compositionAPI/IdAPI.js +16 -16
  46. package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/CloseFilterValueAPI.js +24 -24
  47. package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/FilterVisibleAPI.js +26 -26
  48. package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/HasFilterAPI.js +24 -24
  49. package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/LabelAPI.js +33 -33
  50. package/src/AFilters/AFilterCenter/compositionAPI/LoadingFiltersAPI.js +32 -32
  51. package/src/AFilters/AFilterCenter/utils/utils.js +15 -15
  52. package/src/AFilters/AFilters/compositionAPI/CloseFilterAPI.js +5 -5
  53. package/src/AFilters/AFilters/compositionAPI/ExcludeRenderAttributesAPI.js +24 -24
  54. package/src/AFilters/AFilters/compositionAPI/SaveAPI.js +57 -57
  55. package/src/AFilters/AFilters/compositionAPI/ToggleAPI.js +3 -3
  56. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilter/compositionAPI/IdAPI.js +29 -29
  57. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilter/compositionAPI/IsFilterAPI.js +16 -16
  58. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilter/compositionAPI/LabelAPI.js +19 -19
  59. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilterUi/compositionAPI/ComponentTypesAPI.js +18 -18
  60. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilterUi/compositionAPI/ContainerAPI.js +20 -20
  61. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilterUi/compositionAPI/FilterSpecificTypeAPI.js +42 -42
  62. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilterUi/compositionAPI/IdAPI.js +16 -16
  63. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilterUi/compositionAPI/UpdateDataAPI.js +34 -34
  64. package/src/AFilters/AFiltersHorizontal/compositionAPI/DropdownAPI.js +30 -30
  65. package/src/AFilters/AFiltersHorizontal/compositionAPI/FiltersSavedDeleteAPI.js +108 -108
  66. package/src/AFilters/AFiltersHorizontal/compositionAPI/IdAPI.js +16 -16
  67. package/src/AFilters/AFiltersHorizontal/compositionAPI/SearchAPI.js +22 -22
  68. package/src/AFilters/AFiltersMain/compositionAPI/IdAPI.js +16 -16
  69. package/src/AFilters/AFiltersMain/compositionAPI/MainFilterAPI.js +26 -26
  70. package/src/AFilters/AFiltersMain/compositionAPI/SearchAPI.js +18 -18
  71. package/src/AFilters/AFiltersSaveModal/compositionAPI/DataFormAPI.js +54 -54
  72. package/src/AFilters/AFiltersSaveModal/compositionAPI/SaveAPI.js +65 -65
  73. package/src/AFilters/i18n/AFiltersI18n.js +19 -19
  74. package/src/AFilters/i18n/ar.json +23 -23
  75. package/src/AFilters/i18n/de.json +30 -30
  76. package/src/AFilters/i18n/en.json +28 -28
  77. package/src/AFilters/i18n/es.json +23 -23
  78. package/src/AFilters/i18n/fr.json +23 -23
  79. package/src/AFilters/i18n/hr.json +23 -23
  80. package/src/AFilters/i18n/it.json +23 -23
  81. package/src/AGroupButtonDropdown/AGroupButtonDropdownItem/compositionAPI/DropdownAPI.js +27 -27
  82. package/src/AGroupButtonDropdown/compositionAPI/ActionsAPI.js +141 -141
  83. package/src/AIcon/Icons/Aloha.js +27 -27
  84. package/src/AIcon/Icons/EyeClose.js +14 -14
  85. package/src/AIcon/Icons/EyeOpen.js +14 -14
  86. package/src/AIcon/Icons/Lock.js +14 -14
  87. package/src/AIcon/Icons/Minus.js +3 -3
  88. package/src/AIcon/Icons/WeightForScale.js +11 -11
  89. package/src/AIcon/Icons/WeightForScaleEmpty.js +11 -11
  90. package/src/AIcon/Icons/WeightForScaleEmptyKG.js +24 -24
  91. package/src/AIcon/Icons/WeightForScaleKG.js +34 -34
  92. package/src/AIcon/Icons/_NoImage.js +11 -11
  93. package/src/AIcon/compositionAPI/AriaLabelHiddenAPI.js +23 -23
  94. package/src/AInfiniteScroll/AInfiniteScroll.js +74 -74
  95. package/src/AInfiniteScroll/compositionAPI/ObserverAPI.js +61 -61
  96. package/src/ALinkCopy/compositionAPI/CopyAPI.js +48 -48
  97. package/src/ALinkCopy/i18n/ALinkCopyI18n.js +19 -19
  98. package/src/ALinkCopy/i18n/de.json +4 -4
  99. package/src/ALinkCopy/i18n/hr.json +4 -4
  100. package/src/ALinkCopy/i18n/ru.json +4 -4
  101. package/src/AList/AList.js +132 -132
  102. package/src/AList/AListItem/compositionAPI/ChildrenAPI.js +39 -39
  103. package/src/AList/AListItem/compositionAPI/LabelAPI.js +38 -38
  104. package/src/AList/compositionAPI/PlainTextAPI.js +30 -30
  105. package/src/AList/compositionAPI/TagAPI.js +22 -22
  106. package/src/AMenu/compositionAPI/AMenuBlockerClickAPI.js +27 -27
  107. package/src/AModal/compositionAPI/AttributesAPI.js +21 -21
  108. package/src/AModal/compositionAPI/CloseFromOutsideAPI.js +29 -29
  109. package/src/AModal/compositionAPI/DisabledAPI.js +17 -17
  110. package/src/AModal/compositionAPI/FocusByDestroyAPI.js +67 -67
  111. package/src/AModal/compositionAPI/HideModalAPI.js +14 -14
  112. package/src/AModal/compositionAPI/KeydownAPI.js +29 -29
  113. package/src/AModal/compositionAPI/ShowModalAPI.js +26 -26
  114. package/src/AModal/compositionAPI/SizeAPI.js +19 -19
  115. package/src/AModal/compositionAPI/WrapperAPI.js +21 -21
  116. package/src/AModal/compositionAPI/ZIndexAPI.js +48 -48
  117. package/src/AModal/i18n/AModalI18n.js +19 -19
  118. package/src/AModal/i18n/ar.json +7 -7
  119. package/src/AModal/i18n/de.json +7 -7
  120. package/src/AModal/i18n/en.json +7 -7
  121. package/src/AModal/i18n/es.json +7 -7
  122. package/src/AModal/i18n/fr.json +7 -7
  123. package/src/AModal/i18n/hr.json +7 -7
  124. package/src/AModal/i18n/it.json +7 -7
  125. package/src/AModal/i18n/ru.json +7 -7
  126. package/src/AModalConfirm/compositionAPI/CloseFromOutsideAPI.js +26 -26
  127. package/src/AModalForm/compositionAPI/DataFormAPI.js +16 -16
  128. package/src/AModalWizard/compositionAPI/EmitsAPI.js +13 -13
  129. package/src/ANotification/ANotification.js +50 -50
  130. package/src/API/frameworksApi.js +20 -20
  131. package/src/APageTabTitle/APageTabTitle.js +23 -23
  132. package/src/APagination/APaginationCountPerPage/compositionAPI/LimitAPI.js +42 -42
  133. package/src/APagination/APaginationCountPerPage/compositionAPI/MainAPI.js +40 -40
  134. package/src/APagination/APaginationPages/compositionAPI/DisabledAPI.js +24 -24
  135. package/src/APagination/APaginationPages/compositionAPI/UpdateOffsetAPI.js +111 -111
  136. package/src/APagination/compositionAPI/EmitsAPI.js +14 -14
  137. package/src/APagination/i18n/APaginationI18n.js +19 -19
  138. package/src/APagination/i18n/ar.json +12 -12
  139. package/src/APagination/i18n/de.json +12 -12
  140. package/src/APagination/i18n/en.json +12 -12
  141. package/src/APagination/i18n/es.json +12 -12
  142. package/src/APagination/i18n/fr.json +12 -12
  143. package/src/APagination/i18n/hr.json +12 -12
  144. package/src/APagination/i18n/it.json +12 -12
  145. package/src/APagination/i18n/ru.json +12 -12
  146. package/src/APopup/compositionAPI/ContainerAPI.js +29 -29
  147. package/src/APopup/compositionAPI/ToggleAPI.js +29 -29
  148. package/src/AProgress/AProgress.js +141 -141
  149. package/src/AProgress/compositionAPI/ClassBarAPI.js +25 -25
  150. package/src/AProgress/compositionAPI/DurationAPI.js +23 -23
  151. package/src/AProgress/compositionAPI/ValuePercentAPI.js +33 -33
  152. package/src/AProgress/compositionAPI/WidthAPI.js +18 -18
  153. package/src/AProgressCircle/AProgressCircle.js +160 -160
  154. package/src/AProgressCircle/compositionAPI/CircleAPI.js +35 -35
  155. package/src/AProgressCircle/compositionAPI/CircleSizesAPI.js +23 -23
  156. package/src/AProgressCircle/compositionAPI/SvgAPI.js +25 -25
  157. package/src/AScale/AScale.js +199 -199
  158. package/src/AScale/AScaleBalance/AScaleBalance.js +106 -106
  159. package/src/AScale/AScaleBalance/compositionAPI/SizesAPI.js +57 -57
  160. package/src/AScale/AScaleBowl/compositionAPI/SizesAPI.js +59 -59
  161. package/src/AScale/AScaleBowlDefs/AScaleBowlDefs.js +65 -65
  162. package/src/AScale/AScaleBowlDefs/compositionAPI/SizesAPI.js +30 -30
  163. package/src/AScale/AScaleStand/AScaleStand.js +70 -70
  164. package/src/AScale/AScaleStand/compositionAPI/SizesAPI.js +23 -23
  165. package/src/AScale/compositionAPI/SizesAPI.js +34 -34
  166. package/src/AShowMore/compositionAPI/BtnAttributesAPI.js +76 -76
  167. package/src/AShowMore/compositionAPI/ExpandedAPI.js +20 -20
  168. package/src/AShowMore/compositionAPI/HeightAPI.js +26 -26
  169. package/src/AShowMore/compositionAPI/ScreenReaderAPI.js +22 -22
  170. package/src/AShowMore/compositionAPI/TextLengthAPI.js +63 -63
  171. package/src/AShowMore/compositionAPI/TextOrHtmlAPI.js +19 -19
  172. package/src/AShowMore/i18n/AShowMoreI18n.js +19 -19
  173. package/src/AShowMore/i18n/ar.json +6 -6
  174. package/src/AShowMore/i18n/de.json +6 -6
  175. package/src/AShowMore/i18n/en.json +6 -6
  176. package/src/AShowMore/i18n/es.json +6 -6
  177. package/src/AShowMore/i18n/fr.json +6 -6
  178. package/src/AShowMore/i18n/hr.json +6 -6
  179. package/src/AShowMore/i18n/it.json +6 -6
  180. package/src/AShowMore/i18n/ru.json +6 -6
  181. package/src/ASlot/ASlot.js +7 -7
  182. package/src/ASlot/ASlot.pug +1 -1
  183. package/src/ASlot/ASlot.vue +2 -2
  184. package/src/ATable/ATableHeader/ATableHeader.js +177 -177
  185. package/src/ATable/ATableHeaderTh/compositionAPI/AttributesAPI.js +65 -65
  186. package/src/ATable/ATableHeaderThAction/ATableHeaderThActionItem/compositionAPI/AttributesComponentAPI.js +43 -43
  187. package/src/ATable/ATablePreviewRight/compositionAPI/ArrowsAPI.js +69 -69
  188. package/src/ATable/ATablePreviewRight/compositionAPI/IdAPI.js +20 -20
  189. package/src/ATable/ATablePreviewRight/compositionAPI/MouseEventsAPI.js +36 -36
  190. package/src/ATable/ATablePreviewRight/compositionAPI/RowAPI.js +86 -86
  191. package/src/ATable/ATableSortingAdditional/compositionAPI/AttributesAPI.js +21 -21
  192. package/src/ATable/ATableSortingAdditional/compositionAPI/ColumnsAPI.js +39 -39
  193. package/src/ATable/ATableSortingAdditional/compositionAPI/DropdownAPI.js +26 -26
  194. package/src/ATable/ATableSortingAdditional/compositionAPI/FormAPI.js +92 -92
  195. package/src/ATable/ATableSortingAdditional/compositionAPI/ModelAPI.js +150 -150
  196. package/src/ATable/ATableTd/compositionAPI/AttributesAPI.js +42 -42
  197. package/src/ATable/ATableTd/compositionAPI/SlotAPI.js +25 -25
  198. package/src/ATable/ATableTdAction/compositionAPI/RowNumberAPI.js +16 -16
  199. package/src/ATable/ATableTopPanel/compositionAPI/CountAllRowsAPI.js +22 -22
  200. package/src/ATable/ATableTopPanel/compositionAPI/ViewsAPI.js +21 -21
  201. package/src/ATable/ATableTr/compositionAPI/CheckboxAPI.js +59 -59
  202. package/src/ATable/ATableTr/compositionAPI/ChildrenAPI.js +66 -66
  203. package/src/ATable/ATableTr/compositionAPI/PreviewAPI.js +68 -68
  204. package/src/ATable/compositionAPI/ColumnSearchAPI.js +16 -16
  205. package/src/ATable/compositionAPI/ColumnStylesAPI.js +39 -39
  206. package/src/ATable/compositionAPI/ColumnsAPI.js +127 -127
  207. package/src/ATable/compositionAPI/DragAndDropChildAPI.js +97 -97
  208. package/src/ATable/compositionAPI/DragAndDropParentAPI.js +79 -79
  209. package/src/ATable/compositionAPI/FocusTableAPI.js +31 -31
  210. package/src/ATable/compositionAPI/MobileColumnsAPI.js +27 -27
  211. package/src/ATable/compositionAPI/PreviewRightRewAPI.js +16 -16
  212. package/src/ATable/compositionAPI/RowsAPI.js +121 -121
  213. package/src/ATable/compositionAPI/SortChangeAPI.js +79 -79
  214. package/src/ATable/compositionAPI/StickyAPI.js +20 -20
  215. package/src/ATable/compositionAPI/TableAttributesAPI.js +45 -45
  216. package/src/ATable/compositionAPI/TableColumnsVisibleFunctionAPI.js +23 -23
  217. package/src/ATable/compositionAPI/TextsAPI.js +23 -23
  218. package/src/ATable/compositionAPI/VariablesAPI.js +21 -21
  219. package/src/ATable/compositionAPI/ViewsAPI.js +66 -66
  220. package/src/ATable/i18n/ATableI18n.js +19 -19
  221. package/src/ATooltip/compositionAPI/PopperContainerAPI.js +27 -27
  222. package/src/ATooltip/compositionAPI/TagAPI.js +22 -22
  223. package/src/ATooltip/compositionAPI/ToggleAPI.js +40 -40
  224. package/src/ATranslation/compositionAPI/ATranslationAPI.js +67 -67
  225. package/src/ATranslation/compositionAPI/AriaLabelAPI.js +83 -83
  226. package/src/ATranslation/compositionAPI/AttributesAPI.js +39 -39
  227. package/src/ATranslation/compositionAPI/TextAPI.js +102 -102
  228. package/src/ATranslation/compositionAPI/TextAfterBeforeAPI.js +55 -55
  229. package/src/ATranslation/compositionAPI/TitleAPI.js +101 -101
  230. package/src/ATranslation/compositionAPI/UtilsAPI.js +144 -144
  231. package/src/AVerticalScroll/compositionAPI/ListenerAPI.js +21 -21
  232. package/src/AVerticalScroll/compositionAPI/ScrollAPI.js +52 -52
  233. package/src/AVerticalScroll/i18n/AVerticalScrollI18n.js +19 -19
  234. package/src/AVerticalScroll/i18n/ar.json +4 -4
  235. package/src/AVerticalScroll/i18n/de.json +4 -4
  236. package/src/AVerticalScroll/i18n/en.json +3 -3
  237. package/src/AVerticalScroll/i18n/es.json +3 -3
  238. package/src/AVerticalScroll/i18n/fr.json +3 -3
  239. package/src/AVerticalScroll/i18n/hr.json +3 -3
  240. package/src/AVerticalScroll/i18n/it.json +3 -3
  241. package/src/AVerticalScroll/i18n/ru.json +3 -3
  242. package/src/AWizard/AWizardStep/compositionAPI/DisabledAPI.js +39 -39
  243. package/src/AWizard/AWizardStep/compositionAPI/NumberAPI.js +36 -36
  244. package/src/AWizard/AWizardTab/compositionAPI/ActiveAPI.js +17 -17
  245. package/src/AWizard/AWizardTab/compositionAPI/ContentIdAPI.js +17 -17
  246. package/src/AWizard/AWizardTab/compositionAPI/FocusIdAPI.js +17 -17
  247. package/src/AWizard/AWizardTab/compositionAPI/VisibilityAPI.js +24 -24
  248. package/src/AWizard/AWizardToolbar/compositionAPI/DisabledAPI.js +31 -31
  249. package/src/AWizard/AWizardToolbar/compositionAPI/EventsAPI.js +14 -14
  250. package/src/AWizard/AWizardToolbar/compositionAPI/FirstLastAPI.js +22 -22
  251. package/src/AWizard/AWizardToolbar/compositionAPI/HideAPI.js +33 -33
  252. package/src/AWizard/compositionAPI/EventsAPI.js +74 -74
  253. package/src/AWizard/compositionAPI/FocusAPI.js +32 -32
  254. package/src/AWizard/compositionAPI/LocalAPI.js +60 -60
  255. package/src/AWizard/compositionAPI/MobileAPI.js +22 -22
  256. package/src/AWizard/compositionAPI/StepsAPI.js +23 -23
  257. package/src/AWizard/compositionAPI/TeleportAPI.js +24 -24
  258. package/src/AWizard/i18n/AWizardI18n.js +19 -19
  259. package/src/PVP/new.txt +39 -39
  260. package/src/compositionAPI/ADropdownGlobalAPI.js +20 -20
  261. package/src/compositionAPI/AEventOutsideAPI.js +46 -46
  262. package/src/compositionAPI/AMobileAPI.js +24 -24
  263. package/src/compositionAPI/APageTabTitleAPI.js +73 -73
  264. package/src/const/AFocusableElements.js +13 -13
  265. package/src/const/AKeyChildren.js +1 -1
  266. package/src/const/AKeyId.js +1 -1
  267. package/src/const/AKeyLabel.js +1 -1
  268. package/src/const/AKeyParent.js +1 -1
  269. package/src/const/colors.js +10 -10
  270. package/src/const/frameworks.js +6 -6
  271. package/src/const/placements.js +17 -17
  272. package/src/directives/AOnHooks.js +0 -0
  273. package/src/filters/filterCurrency.js +16 -16
  274. package/src/filters/filterDefaultForEmpty.js +20 -20
  275. package/src/filters/filterEmail.js +27 -27
  276. package/src/filters/filterKeyValue.js +17 -17
  277. package/src/filters/filterLimitTo.js +45 -45
  278. package/src/filters/filterLink.js +31 -31
  279. package/src/filters/filterPropertyByValue.js +18 -18
  280. package/src/filters/i18n/Filters18n.js +19 -19
  281. package/src/filters/i18n/ar.json +11 -11
  282. package/src/filters/i18n/de.json +11 -11
  283. package/src/filters/i18n/en.json +11 -11
  284. package/src/filters/i18n/es.json +11 -11
  285. package/src/filters/i18n/fr.json +11 -11
  286. package/src/filters/i18n/hr.json +10 -10
  287. package/src/filters/i18n/it.json +11 -11
  288. package/src/filters/i18n/ru.json +10 -10
  289. package/src/plugins/AFiltersPlugin.js +99 -99
  290. package/src/plugins/AGroupButtonDropdownPlugin.js +26 -26
  291. package/src/plugins/AHttpPlugin.js +23 -23
  292. package/src/plugins/AI18nPlugin.js +32 -32
  293. package/src/plugins/APageTabTitlePlugin.js +9 -9
  294. package/src/plugins/ATablePlugin.js +28 -28
  295. package/src/plugins/alohaPlugin.js +5 -5
  296. package/src/svg/ACircle/ACircle.js +47 -47
  297. package/src/svg/AEllipse/AEllipse.js +53 -53
  298. package/src/svg/ALine/ALine.js +49 -49
  299. package/src/svg/APath/APath.js +44 -44
  300. package/src/svg/APolygon/APolygon.js +55 -55
  301. package/src/svg/APolyline/APolyline.js +48 -48
  302. package/src/svg/ARect/ARect.js +63 -63
  303. package/src/ui/ACheckbox/ACheckbox.js +0 -0
  304. package/src/ui/ACheckbox/ACheckboxItem/ACheckboxItem.js +0 -0
  305. package/src/ui/ACheckbox/ACheckboxItem/compositionAPI/ButtonGroupAPI.js +21 -21
  306. package/src/ui/ACheckbox/ACheckboxItem/compositionAPI/CheckedAPI.js +18 -18
  307. package/src/ui/ACheckbox/ACheckboxItem/compositionAPI/EventsAPI.js +55 -55
  308. package/src/ui/ACheckbox/compositionAPI/ChangeAPI.js +25 -25
  309. package/src/ui/ACheckbox/compositionAPI/TextAfterLabelAPI.js +16 -16
  310. package/src/ui/ACheckbox/i18n/ACheckboxI18n.js +19 -19
  311. package/src/ui/ACheckboxRadioGroups/ACheckboxRadioGroups.js +0 -0
  312. package/src/ui/ACheckboxRadioGroups/compostionAPI/ChangeModelAPI.js +9 -9
  313. package/src/ui/ACheckboxRadioGroups/compostionAPI/ComponentAPI.js +35 -35
  314. package/src/ui/ACheckboxRadioGroups/compostionAPI/DataAPI.js +33 -33
  315. package/src/ui/ADatepicker/compositionAPI/RefsAPI.js +19 -19
  316. package/src/ui/ADatepicker/locale/languages.js +174 -174
  317. package/src/ui/ADatepicker/utils/scroll-into-view.js +23 -23
  318. package/src/ui/ADatepicker/utils/transform.js +14 -14
  319. package/src/ui/ADatepickerAlt/locale/languages.js +174 -174
  320. package/src/ui/ADatepickerAlt/utils/scroll-into-view.js +23 -23
  321. package/src/ui/ADatepickerAlt/utils/transform.js +14 -14
  322. package/src/ui/ADatepickerRange/compositionAPI/IdAPI.js +20 -20
  323. package/src/ui/ADatepickerRange/compositionAPI/InputAttributesAPI.js +39 -39
  324. package/src/ui/ADatepickerRange/compositionAPI/ModelAPI.js +43 -43
  325. package/src/ui/ADatepickerRange/compositionAPI/ReadonlyAPI.js +35 -35
  326. package/src/ui/ADatepickerRange/i18n/ADatepickerRangeI18n.js +19 -19
  327. package/src/ui/ADatepickerRange/i18n/ar.json +4 -4
  328. package/src/ui/ADatepickerRange/i18n/de.json +4 -4
  329. package/src/ui/ADatepickerRange/i18n/en.json +4 -4
  330. package/src/ui/ADatepickerRange/i18n/es.json +4 -4
  331. package/src/ui/ADatepickerRange/i18n/fr.json +4 -4
  332. package/src/ui/ADatepickerRange/i18n/hr.json +4 -4
  333. package/src/ui/ADatepickerRange/i18n/it.json +4 -4
  334. package/src/ui/ADatepickerRange/i18n/ru.json +4 -4
  335. package/src/ui/ADatepickerRange/utils/Types.js +14 -14
  336. package/src/ui/AErrors/AErrors.js +0 -0
  337. package/src/ui/AErrors/AErrorsElement/AErrorsElement.js +0 -0
  338. package/src/ui/AErrors/compositionAPI/CloseAPI.js +9 -9
  339. package/src/ui/AErrors/compositionAPI/ErrorsAPI.js +20 -20
  340. package/src/ui/AErrors/compositionAPI/FocusAPI.js +26 -26
  341. package/src/ui/AErrorsText/AErrorsText.js +51 -51
  342. package/src/ui/AFieldset/AFieldset.js +0 -0
  343. package/src/ui/AFieldset/compositionAPI/ReadonlyAPI.js +33 -33
  344. package/src/ui/AFieldset/i18n/AFieldsetI18n.js +19 -19
  345. package/src/ui/AFieldset/i18n/de.json +4 -4
  346. package/src/ui/AFieldset/i18n/ru.json +4 -4
  347. package/src/ui/AForm/AForm.js +0 -0
  348. package/src/ui/AFormElement/AFormElement.js +145 -145
  349. package/src/ui/AFormHelpText/AFormHelpText.js +37 -37
  350. package/src/ui/AFormReadonly/AFormReadonly.js +188 -188
  351. package/src/ui/AFormReadonly/compositionAPI/AttributesAPI.js +72 -72
  352. package/src/ui/AGroup/AGroup.js +0 -0
  353. package/src/ui/AGroup/compositionAPI/SpecificTypeAPI.js +50 -50
  354. package/src/ui/AInput/AInput.js +0 -0
  355. package/src/ui/AInputCurrency/compositionAPI/UtilsAPI.js +52 -52
  356. package/src/ui/AInputFile/AInputFile.js +0 -0
  357. package/src/ui/AInputNumber/AInputNumber.js +0 -0
  358. package/src/ui/AInputNumber/compositionAPI/MinAPI.js +32 -32
  359. package/src/ui/AInputNumber/compositionAPI/NumberAttributesAPI.js +40 -40
  360. package/src/ui/AInputNumber/compositionAPI/WidthAPI.js +31 -31
  361. package/src/ui/AInputNumberRange/AInputNumberRange.js +0 -0
  362. package/src/ui/AInputNumberRange/compositionAPI/IdAPI.js +20 -20
  363. package/src/ui/AInputNumberRange/compositionAPI/InputAttributesAPI.js +39 -39
  364. package/src/ui/AInputNumberRange/compositionAPI/ReadonlyAPI.js +35 -35
  365. package/src/ui/AInputNumberRange/compositionAPI/TypeAPI.js +16 -16
  366. package/src/ui/AInputNumberRange/i18n/AInputNumberRangeI18n.js +19 -19
  367. package/src/ui/AInputNumberRange/i18n/de.json +3 -3
  368. package/src/ui/AInputNumberRange/utils/Types.js +15 -15
  369. package/src/ui/ALabel/ALabel.js +0 -0
  370. package/src/ui/ALabel/compositionAPI/PropsTypeAPI.js +66 -66
  371. package/src/ui/AOneCheckbox/AOneCheckbox.js +0 -0
  372. package/src/ui/AOneCheckbox/compositionAPI/LabelAPI.js +20 -20
  373. package/src/ui/AOneCheckbox/compositionAPI/ReadonlyAPI.js +26 -26
  374. package/src/ui/ARadio/ARadio.js +0 -0
  375. package/src/ui/ARadio/ARadioItem/ARadioItem.js +0 -0
  376. package/src/ui/ARadio/ARadioItem/compositionAPI/CheckedAPI.js +25 -25
  377. package/src/ui/ARadio/ARadioItem/compositionAPI/EventsAPI.js +43 -43
  378. package/src/ui/ARadio/compositionAPI/ChangeAPI.js +58 -58
  379. package/src/ui/ARadio/compositionAPI/ReadonlyAPI.js +36 -36
  380. package/src/ui/ARadio/i18n/ARadioI18n.js +19 -19
  381. package/src/ui/ARequired/ARequired.js +27 -27
  382. package/src/ui/ARequired/i18n/ARequiredI18n.js +19 -19
  383. package/src/ui/ARouterLinkConfig/ARouterLinkConfig.js +325 -325
  384. package/src/ui/ARouterLinkConfig/compositionAPI/DataFormAPI.js +100 -100
  385. package/src/ui/ASelect/ASelect.js +0 -0
  386. package/src/ui/ASelect/ASelectElement/ASelectElement.js +0 -0
  387. package/src/ui/ASelect/ASelectElement/compositionAPI/CheckedAPI.js +22 -22
  388. package/src/ui/ASelect/ASelectElement/compositionAPI/EventsAPI.js +39 -39
  389. package/src/ui/ASelect/ASelectLabelElement.js +0 -0
  390. package/src/ui/ASelect/ASelectValueCloseable.js +0 -0
  391. package/src/ui/ASelect/compositionAPI/DividerAPI.js +19 -19
  392. package/src/ui/ASelect/i18n/ASelectI18n.js +19 -19
  393. package/src/ui/ASwitch/ASwitch.js +0 -0
  394. package/src/ui/ASwitch/compositionAPI/CheckedAPI.js +22 -22
  395. package/src/ui/ASwitch/compositionAPI/ModelAPI.js +30 -30
  396. package/src/ui/ASwitch/compositionAPI/OnInputAPI.js +51 -51
  397. package/src/ui/ATemplate/ATemplate.js +74 -4
  398. package/src/ui/ATextarea/ATextarea.js +0 -0
  399. package/src/ui/ATextarea/compositionAPI/ResizeClass.js +23 -23
  400. package/src/ui/compositionApi/UIExcludeRenderAttributesAPI.js +25 -25
  401. package/src/ui/compositionApi/UiCheckboxRadioItemAPI.js +39 -39
  402. package/src/ui/compositionApi/UiDataSortAPI.js +26 -26
  403. package/src/ui/compositionApi/UiDataWatchEmitAPI.js +18 -18
  404. package/src/ui/compositionApi/UiDisabledElementAPI.js +2 -1
  405. package/src/ui/compositionApi/UiErrorsAPI.js +37 -37
  406. package/src/ui/compositionApi/UiInputAutofillAPI.js +41 -41
  407. package/src/ui/compositionApi/UiLoadingAPI.js +19 -19
  408. package/src/ui/compositionApi/UiTitleElementAPI.js +28 -28
  409. package/src/ui/compositionApi/UiVisibleElementWithSearchAPI.js +51 -51
  410. package/src/ui/const/AUiTypes.js +65 -65
  411. package/src/ui/utils/utils.js +3 -3
@@ -1,48 +1,48 @@
1
- import {
2
- h,
3
- } from "vue";
4
-
5
- import PointsAPI from "../compositionAPI/PointsAPI";
6
-
7
- export default {
8
- name: "APolyline",
9
- props: {
10
- points: {
11
- type: [Array, String],
12
- required: true,
13
- default: [],
14
- },
15
- fill: {
16
- type: String,
17
- required: false,
18
- default: "none",
19
- },
20
- stroke: {
21
- type: String,
22
- required: false,
23
- default: "currentColor",
24
- },
25
- strokeWidth: {
26
- type: [Number, String],
27
- required: false,
28
- default: undefined,
29
- },
30
- },
31
- setup(props) {
32
- const {
33
- pointsLocal,
34
- } = PointsAPI(props);
35
-
36
- return {
37
- pointsLocal,
38
- };
39
- },
40
- render() {
41
- return h("polyline", {
42
- points: this.pointsLocal,
43
- fill: this.fill,
44
- stroke: this.stroke,
45
- "stroke-width": this.strokeWidth,
46
- });
47
- },
48
- };
1
+ import {
2
+ h,
3
+ } from "vue";
4
+
5
+ import PointsAPI from "../compositionAPI/PointsAPI";
6
+
7
+ export default {
8
+ name: "APolyline",
9
+ props: {
10
+ points: {
11
+ type: [Array, String],
12
+ required: true,
13
+ default: [],
14
+ },
15
+ fill: {
16
+ type: String,
17
+ required: false,
18
+ default: "none",
19
+ },
20
+ stroke: {
21
+ type: String,
22
+ required: false,
23
+ default: "currentColor",
24
+ },
25
+ strokeWidth: {
26
+ type: [Number, String],
27
+ required: false,
28
+ default: undefined,
29
+ },
30
+ },
31
+ setup(props) {
32
+ const {
33
+ pointsLocal,
34
+ } = PointsAPI(props);
35
+
36
+ return {
37
+ pointsLocal,
38
+ };
39
+ },
40
+ render() {
41
+ return h("polyline", {
42
+ points: this.pointsLocal,
43
+ fill: this.fill,
44
+ stroke: this.stroke,
45
+ "stroke-width": this.strokeWidth,
46
+ });
47
+ },
48
+ };
@@ -1,63 +1,63 @@
1
- import {
2
- h,
3
- } from "vue";
4
-
5
- export default {
6
- name: "ARect",
7
- props: {
8
- width: {
9
- type: [Number, String],
10
- required: true,
11
- },
12
- height: {
13
- type: [Number, String],
14
- required: true,
15
- },
16
- x: {
17
- type: [Number, String],
18
- required: true,
19
- },
20
- y: {
21
- type: [Number, String],
22
- required: true,
23
- },
24
- rx: {
25
- type: [Number, String],
26
- required: false,
27
- default: 0,
28
- },
29
- ry: {
30
- type: [Number, String],
31
- required: false,
32
- default: 0,
33
- },
34
- fill: {
35
- type: String,
36
- required: false,
37
- default: undefined,
38
- },
39
- stroke: {
40
- type: String,
41
- required: false,
42
- default: undefined,
43
- },
44
- strokeWidth: {
45
- type: [Number, String],
46
- required: false,
47
- default: undefined,
48
- },
49
- },
50
- render() {
51
- return h("rect", {
52
- width: this.width,
53
- height: this.height,
54
- x: this.x,
55
- y: this.y,
56
- rx: this.rx,
57
- ry: this.ry,
58
- fill: this.fill,
59
- stroke: this.stroke,
60
- strokeWidth: this.strokeWidth,
61
- });
62
- },
63
- };
1
+ import {
2
+ h,
3
+ } from "vue";
4
+
5
+ export default {
6
+ name: "ARect",
7
+ props: {
8
+ width: {
9
+ type: [Number, String],
10
+ required: true,
11
+ },
12
+ height: {
13
+ type: [Number, String],
14
+ required: true,
15
+ },
16
+ x: {
17
+ type: [Number, String],
18
+ required: true,
19
+ },
20
+ y: {
21
+ type: [Number, String],
22
+ required: true,
23
+ },
24
+ rx: {
25
+ type: [Number, String],
26
+ required: false,
27
+ default: 0,
28
+ },
29
+ ry: {
30
+ type: [Number, String],
31
+ required: false,
32
+ default: 0,
33
+ },
34
+ fill: {
35
+ type: String,
36
+ required: false,
37
+ default: undefined,
38
+ },
39
+ stroke: {
40
+ type: String,
41
+ required: false,
42
+ default: undefined,
43
+ },
44
+ strokeWidth: {
45
+ type: [Number, String],
46
+ required: false,
47
+ default: undefined,
48
+ },
49
+ },
50
+ render() {
51
+ return h("rect", {
52
+ width: this.width,
53
+ height: this.height,
54
+ x: this.x,
55
+ y: this.y,
56
+ rx: this.rx,
57
+ ry: this.ry,
58
+ fill: this.fill,
59
+ stroke: this.stroke,
60
+ strokeWidth: this.strokeWidth,
61
+ });
62
+ },
63
+ };
File without changes
File without changes
@@ -1,21 +1,21 @@
1
- import {
2
- computed,
3
- toRef,
4
- } from "vue";
5
-
6
- export default function ButtonGroupAPI(props) {
7
- const dataItem = toRef(props, "dataItem");
8
- const isButtonGroup = toRef(props, "isButtonGroup");
9
- const classButtonGroupDefault = toRef(props, "classButtonGroupDefault");
10
-
11
- const classButton = computed(() => {
12
- if (isButtonGroup.value) {
13
- return dataItem.value.classButton || classButtonGroupDefault.value;
14
- }
15
- return undefined;
16
- });
17
-
18
- return {
19
- classButton,
20
- };
21
- }
1
+ import {
2
+ computed,
3
+ toRef,
4
+ } from "vue";
5
+
6
+ export default function ButtonGroupAPI(props) {
7
+ const dataItem = toRef(props, "dataItem");
8
+ const isButtonGroup = toRef(props, "isButtonGroup");
9
+ const classButtonGroupDefault = toRef(props, "classButtonGroupDefault");
10
+
11
+ const classButton = computed(() => {
12
+ if (isButtonGroup.value) {
13
+ return dataItem.value.classButton || classButtonGroupDefault.value;
14
+ }
15
+ return undefined;
16
+ });
17
+
18
+ return {
19
+ classButton,
20
+ };
21
+ }
@@ -1,18 +1,18 @@
1
- import {
2
- computed,
3
- toRef,
4
- } from "vue";
5
-
6
- export default function CheckedAPI(props, {
7
- valueLocal = computed(() => undefined),
8
- }) {
9
- const modelValue = toRef(props, "modelValue");
10
-
11
- const isChecked = computed(() => {
12
- return modelValue.value && modelValue.value.indexOf(valueLocal.value) !== -1;
13
- });
14
-
15
- return {
16
- isChecked,
17
- };
18
- }
1
+ import {
2
+ computed,
3
+ toRef,
4
+ } from "vue";
5
+
6
+ export default function CheckedAPI(props, {
7
+ valueLocal = computed(() => undefined),
8
+ }) {
9
+ const modelValue = toRef(props, "modelValue");
10
+
11
+ const isChecked = computed(() => {
12
+ return modelValue.value && modelValue.value.indexOf(valueLocal.value) !== -1;
13
+ });
14
+
15
+ return {
16
+ isChecked,
17
+ };
18
+ }
@@ -1,55 +1,55 @@
1
- import {
2
- computed,
3
- toRef,
4
- } from "vue";
5
-
6
- import AKeysCode from "../../../../const/AKeysCode";
7
- import {
8
- cloneDeep,
9
- } from "lodash-es";
10
-
11
- export default function EventsAPI(props, { emit }, {
12
- disabledElement = computed(() => undefined),
13
- isChecked = computed(() => false),
14
- valueLocal = computed(() => undefined),
15
- }) {
16
- const dataItem = toRef(props, "dataItem");
17
- const modelValue = toRef(props, "modelValue");
18
-
19
- const onClick = $event => {
20
- if (disabledElement.value) {
21
- $event.preventDefault();
22
- $event.stopPropagation();
23
- return;
24
- }
25
- const MODEL = cloneDeep(modelValue.value) || [];
26
- if (isChecked.value) {
27
- const INDEX = MODEL.indexOf(valueLocal.value);
28
- MODEL.splice(INDEX, 1);
29
- } else {
30
- MODEL.push(valueLocal.value);
31
- }
32
-
33
- emit("changeModelValue", {
34
- model: MODEL,
35
- item: dataItem.value,
36
- $event,
37
- });
38
- $event.preventDefault();
39
- $event.stopPropagation();
40
- };
41
-
42
- const onKeydown = $event => {
43
- if ($event.key === "Enter" ||
44
- $event.keyCode === AKeysCode.space) {
45
- onClick($event);
46
- $event.stopPropagation();
47
- $event.preventDefault();
48
- }
49
- };
50
-
51
- return {
52
- onClick,
53
- onKeydown,
54
- };
55
- }
1
+ import {
2
+ computed,
3
+ toRef,
4
+ } from "vue";
5
+
6
+ import AKeysCode from "../../../../const/AKeysCode";
7
+ import {
8
+ cloneDeep,
9
+ } from "lodash-es";
10
+
11
+ export default function EventsAPI(props, { emit }, {
12
+ disabledElement = computed(() => undefined),
13
+ isChecked = computed(() => false),
14
+ valueLocal = computed(() => undefined),
15
+ }) {
16
+ const dataItem = toRef(props, "dataItem");
17
+ const modelValue = toRef(props, "modelValue");
18
+
19
+ const onClick = $event => {
20
+ if (disabledElement.value) {
21
+ $event.preventDefault();
22
+ $event.stopPropagation();
23
+ return;
24
+ }
25
+ const MODEL = cloneDeep(modelValue.value) || [];
26
+ if (isChecked.value) {
27
+ const INDEX = MODEL.indexOf(valueLocal.value);
28
+ MODEL.splice(INDEX, 1);
29
+ } else {
30
+ MODEL.push(valueLocal.value);
31
+ }
32
+
33
+ emit("changeModelValue", {
34
+ model: MODEL,
35
+ item: dataItem.value,
36
+ $event,
37
+ });
38
+ $event.preventDefault();
39
+ $event.stopPropagation();
40
+ };
41
+
42
+ const onKeydown = $event => {
43
+ if ($event.key === "Enter" ||
44
+ $event.keyCode === AKeysCode.space) {
45
+ onClick($event);
46
+ $event.stopPropagation();
47
+ $event.preventDefault();
48
+ }
49
+ };
50
+
51
+ return {
52
+ onClick,
53
+ onKeydown,
54
+ };
55
+ }
@@ -1,25 +1,25 @@
1
- import {
2
- toRef,
3
- } from "vue";
4
-
5
- export default function ChangeAPI(props, {
6
- changeModel = () => {},
7
- }) {
8
- const disabled = toRef(props, "disabled");
9
-
10
- const onChangeModelValue = ({ model, $event }) => {
11
- if (disabled.value) {
12
- return;
13
- }
14
- setTimeout(() => {
15
- changeModel({
16
- model,
17
- $event,
18
- });
19
- });
20
- };
21
-
22
- return {
23
- onChangeModelValue,
24
- };
25
- }
1
+ import {
2
+ toRef,
3
+ } from "vue";
4
+
5
+ export default function ChangeAPI(props, {
6
+ changeModel = () => {},
7
+ }) {
8
+ const disabled = toRef(props, "disabled");
9
+
10
+ const onChangeModelValue = ({ model, $event }) => {
11
+ if (disabled.value) {
12
+ return;
13
+ }
14
+ setTimeout(() => {
15
+ changeModel({
16
+ model,
17
+ $event,
18
+ });
19
+ });
20
+ };
21
+
22
+ return {
23
+ onChangeModelValue,
24
+ };
25
+ }
@@ -1,16 +1,16 @@
1
- import {
2
- computed,
3
- toRef,
4
- } from "vue";
5
-
6
- export default function TextAfterLabelAPI(props) {
7
- const required = toRef(props, "required");
8
-
9
- const textAfterLabel = computed(() => {
10
- return required.value ? "*" : "";
11
- });
12
-
13
- return {
14
- textAfterLabel,
15
- };
16
- }
1
+ import {
2
+ computed,
3
+ toRef,
4
+ } from "vue";
5
+
6
+ export default function TextAfterLabelAPI(props) {
7
+ const required = toRef(props, "required");
8
+
9
+ const textAfterLabel = computed(() => {
10
+ return required.value ? "*" : "";
11
+ });
12
+
13
+ return {
14
+ textAfterLabel,
15
+ };
16
+ }
@@ -1,19 +1,19 @@
1
- import ar from "./ar.json";
2
- import de from "./de.json";
3
- import en from "./en.json";
4
- import es from "./es.json";
5
- import fr from "./fr.json";
6
- import hr from "./hr.json";
7
- import it from "./it.json";
8
- import ru from "./ru.json";
9
-
10
- export default {
11
- ar,
12
- de,
13
- en,
14
- es,
15
- fr,
16
- hr,
17
- it,
18
- ru,
19
- };
1
+ import ar from "./ar.json";
2
+ import de from "./de.json";
3
+ import en from "./en.json";
4
+ import es from "./es.json";
5
+ import fr from "./fr.json";
6
+ import hr from "./hr.json";
7
+ import it from "./it.json";
8
+ import ru from "./ru.json";
9
+
10
+ export default {
11
+ ar,
12
+ de,
13
+ en,
14
+ es,
15
+ fr,
16
+ hr,
17
+ it,
18
+ ru,
19
+ };
@@ -1,9 +1,9 @@
1
- export default function ChangeModelAPI({ emit }) {
2
- const onChangeModelValue = arg => {
3
- emit("changeModelValue", arg);
4
- };
5
-
6
- return {
7
- onChangeModelValue,
8
- };
9
- }
1
+ export default function ChangeModelAPI({ emit }) {
2
+ const onChangeModelValue = arg => {
3
+ emit("changeModelValue", arg);
4
+ };
5
+
6
+ return {
7
+ onChangeModelValue,
8
+ };
9
+ }
@@ -1,35 +1,35 @@
1
- import {
2
- computed,
3
- toRef,
4
- } from "vue";
5
-
6
- import ACheckboxItem from "../../ACheckbox/ACheckboxItem/ACheckboxItem";
7
- import ARadioItem from "../../ARadio/ARadioItem/ARadioItem";
8
- import ASelectElement from "../../ASelect/ASelectElement/ASelectElement";
9
-
10
- export default function ComponentAPI(props) {
11
- const type = toRef(props, "type");
12
-
13
- const isComponentSelect = computed(() => {
14
- return type.value === "select" ||
15
- type.value === "multiselect";
16
- });
17
-
18
- const currentComponent = computed(() => {
19
- if (type.value === "radio") {
20
- return ARadioItem;
21
- }
22
- if (type.value === "checkbox") {
23
- return ACheckboxItem;
24
- }
25
- if (isComponentSelect.value) {
26
- return ASelectElement;
27
- }
28
- return "";
29
- });
30
-
31
- return {
32
- currentComponent,
33
- isComponentSelect,
34
- };
35
- }
1
+ import {
2
+ computed,
3
+ toRef,
4
+ } from "vue";
5
+
6
+ import ACheckboxItem from "../../ACheckbox/ACheckboxItem/ACheckboxItem";
7
+ import ARadioItem from "../../ARadio/ARadioItem/ARadioItem";
8
+ import ASelectElement from "../../ASelect/ASelectElement/ASelectElement";
9
+
10
+ export default function ComponentAPI(props) {
11
+ const type = toRef(props, "type");
12
+
13
+ const isComponentSelect = computed(() => {
14
+ return type.value === "select" ||
15
+ type.value === "multiselect";
16
+ });
17
+
18
+ const currentComponent = computed(() => {
19
+ if (type.value === "radio") {
20
+ return ARadioItem;
21
+ }
22
+ if (type.value === "checkbox") {
23
+ return ACheckboxItem;
24
+ }
25
+ if (isComponentSelect.value) {
26
+ return ASelectElement;
27
+ }
28
+ return "";
29
+ });
30
+
31
+ return {
32
+ currentComponent,
33
+ isComponentSelect,
34
+ };
35
+ }