aloha-vue 2.75.0 → 2.76.0

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 (957) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +117 -117
  3. package/dist/aloha-vue.css +13594 -13594
  4. package/dist/aloha-vue.es.js +59805 -59266
  5. package/dist/aloha-vue.umd.js +338 -338
  6. package/package.json +92 -92
  7. package/scss/components/AButton.scss +6 -6
  8. package/scss/components/ACloak.scss +12 -12
  9. package/scss/components/ADivider.scss +9 -9
  10. package/scss/components/AElement.scss +6 -6
  11. package/scss/components/AForm.scss +2 -2
  12. package/scss/components/AFormElement/ATextarea.scss +17 -17
  13. package/scss/components/AGroupButtonDropdown.scss +4 -4
  14. package/scss/components/AIcon.scss +17 -17
  15. package/scss/components/ALoading.scss +18 -18
  16. package/scss/components/AProgressCirle.scss +43 -43
  17. package/scss/components/AShowMore.scss +9 -9
  18. package/scss/components/ASpinner.scss +32 -32
  19. package/scss/components/ATableForm.scss +7 -7
  20. package/scss/components/ATabs.scss +186 -186
  21. package/scss/components/ui/ACheckbox.scss +17 -17
  22. package/scss/components/ui/AErrors.scss +4 -4
  23. package/scss/components/ui/AForm.scss +3 -3
  24. package/scss/components/ui/AInputFile.scss +15 -15
  25. package/scss/components/ui/AJson.scss +11 -11
  26. package/scss/components/ui/AMultiselectOrdered.scss +20 -20
  27. package/scss/components/ui/ARadio.scss +7 -7
  28. package/scss/text/text_line_height.scss +17 -17
  29. package/scss/text/text_size.scss +88 -88
  30. package/scss/utils/acordion.scss +173 -173
  31. package/scss/utils/alert.scss +81 -81
  32. package/scss/utils/aloha_prefix.scss +1 -1
  33. package/scss/utils/backdrop.scss +24 -24
  34. package/scss/utils/border.scss +65 -65
  35. package/scss/utils/border_radius.scss +61 -61
  36. package/scss/utils/breakpoint.scss +48 -48
  37. package/scss/utils/button_close.scss +22 -22
  38. package/scss/utils/button_group.scss +69 -69
  39. package/scss/utils/color_utils.scss +234 -234
  40. package/scss/utils/display.scss +67 -67
  41. package/scss/utils/dropdown.scss +97 -97
  42. package/scss/utils/flex.scss +141 -141
  43. package/scss/utils/float.scss +10 -10
  44. package/scss/utils/global.scss +44 -44
  45. package/scss/utils/global_variables.scss +26 -26
  46. package/scss/utils/grid.scss +95 -95
  47. package/scss/utils/list_columns.scss +31 -31
  48. package/scss/utils/list_group.scss +127 -127
  49. package/scss/utils/mixins.scss +35 -35
  50. package/scss/utils/notification.scss +36 -36
  51. package/scss/utils/overflow.scss +40 -40
  52. package/scss/utils/pagination.scss +94 -94
  53. package/scss/utils/position.scss +90 -90
  54. package/scss/utils/progress.scss +70 -70
  55. package/scss/utils/reset.scss +85 -85
  56. package/scss/utils/screenreader.scss +16 -16
  57. package/scss/utils/spinner.scss +35 -35
  58. package/scss/utils/utils.scss +19 -19
  59. package/scss/utils/vars_global.scss +12 -12
  60. package/scss/utils/vertical_align.scss +18 -18
  61. package/src/AAccordion/AAccordionItem/compositionAPI/AttributesAPI.js +109 -109
  62. package/src/AAccordion/AAccordionItem/compositionAPI/ChildrenAPI.js +28 -28
  63. package/src/AAccordion/AAccordionItem/compositionAPI/ClassAPI.js +44 -44
  64. package/src/AAccordion/AAccordionItem/compositionAPI/ToggleAPI.js +86 -86
  65. package/src/AAccordion/AAccordionItem/compositionAPI/VisibleAPI.js +46 -46
  66. package/src/AAccordion/compositionAPI/IndexesForOpenAPI.js +63 -63
  67. package/src/AAlert/compositionAPI/AttributesAPI.js +30 -30
  68. package/src/AAlert/compositionAPI/CloseAPI.js +26 -26
  69. package/src/AAlert/compositionAPI/IconAPI.js +28 -28
  70. package/src/AAlert/i18n/AAlertI18n.js +21 -19
  71. package/src/AAlert/i18n/uk.json +3 -0
  72. package/src/AButton/compositionAPI/EmitsAPI.js +9 -9
  73. package/src/ACarousel/i18n/ACarouselI18n.js +21 -19
  74. package/src/ACarousel/i18n/uk.json +9 -0
  75. package/src/ACloak/ACloak.js +135 -135
  76. package/src/ACloak/compositionAPI/ClassAPI.js +30 -30
  77. package/src/ACloak/i18n/ACloakI18n.js +2 -0
  78. package/src/ACloak/i18n/ar.json +2 -2
  79. package/src/ACloak/i18n/de.json +2 -2
  80. package/src/ACloak/i18n/en.json +3 -3
  81. package/src/ACloak/i18n/es.json +2 -2
  82. package/src/ACloak/i18n/fr.json +2 -2
  83. package/src/ACloak/i18n/hr.json +3 -3
  84. package/src/ACloak/i18n/it.json +2 -2
  85. package/src/ACloak/i18n/ru.json +2 -2
  86. package/src/ACloak/i18n/uk.json +3 -0
  87. package/src/ACollapse/ACollapse.pug +25 -25
  88. package/src/ACollapse/ACollapse.vue +2 -2
  89. package/src/ADisclosure/ADisclosure.js +282 -282
  90. package/src/ADisclosure/compositionAPI/BtnAttributesAPI.js +63 -63
  91. package/src/ADisclosure/compositionAPI/IsOpenAPI.js +19 -19
  92. package/src/ADisclosure/compositionAPI/TextOrHtmlAPI.js +45 -45
  93. package/src/ADisclosure/compositionAPI/ToggleAPI.js +33 -33
  94. package/src/ADisclosure/i18n/ADisclosureI18n.js +2 -0
  95. package/src/ADisclosure/i18n/ar.json +4 -4
  96. package/src/ADisclosure/i18n/de.json +4 -4
  97. package/src/ADisclosure/i18n/en.json +4 -4
  98. package/src/ADisclosure/i18n/es.json +4 -4
  99. package/src/ADisclosure/i18n/fr.json +4 -4
  100. package/src/ADisclosure/i18n/hr.json +4 -4
  101. package/src/ADisclosure/i18n/it.json +4 -4
  102. package/src/ADisclosure/i18n/ru.json +4 -4
  103. package/src/ADisclosure/i18n/uk.json +4 -0
  104. package/src/ADropdown/ADropdownAction/ADropdownAction.js +83 -83
  105. package/src/ADropdown/ADropdownAction/compositionAPI/AttributesAPI.js +38 -38
  106. package/src/ADropdown/ADropdownGroup.js +85 -85
  107. package/src/ADropdown/compositionAPI/ActionsAPI.js +145 -145
  108. package/src/ADropdown/compositionAPI/ClassAPI.js +45 -45
  109. package/src/ADropdown/compositionAPI/EventsAPI.js +75 -75
  110. package/src/ADropdown/compositionAPI/FocusAPI.js +25 -25
  111. package/src/ADropdown/compositionAPI/PopoverAPI.js +97 -97
  112. package/src/ADropdown/compositionAPI/RefsAPI.js +13 -13
  113. package/src/ADropdown/compositionAPI/ToggleAPI.js +296 -296
  114. package/src/AFilters/AFilersRight/AFilersRight.js +80 -80
  115. package/src/AFilters/AFilersRight/compositionAPI/IdAPI.js +16 -16
  116. package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/CloseFilterValueAPI.js +24 -24
  117. package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/FilterVisibleAPI.js +26 -26
  118. package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/GoToAPI.js +37 -37
  119. package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/HasFilterAPI.js +24 -24
  120. package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/IsDataLoadingAPI.js +42 -42
  121. package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/LabelAPI.js +33 -33
  122. package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/ModelValuesAPI.js +240 -240
  123. package/src/AFilters/AFilterCenter/compositionAPI/LoadingFiltersAPI.js +32 -32
  124. package/src/AFilters/AFilterCenter/compositionAPI/VisibleFiltersAPI.js +46 -46
  125. package/src/AFilters/AFilterCenter/utils/utils.js +15 -15
  126. package/src/AFilters/AFilters/compositionAPI/CloseFilterAPI.js +124 -124
  127. package/src/AFilters/AFilters/compositionAPI/DataKeyByKeyIdAPI.js +20 -20
  128. package/src/AFilters/AFilters/compositionAPI/ExcludeRenderAttributesAPI.js +24 -24
  129. package/src/AFilters/AFilters/compositionAPI/FiltersAPI.js +133 -133
  130. package/src/AFilters/AFilters/compositionAPI/SaveAPI.js +57 -57
  131. package/src/AFilters/AFilters/compositionAPI/StartSearchAPI.js +22 -22
  132. package/src/AFilters/AFilters/compositionAPI/ToggleAPI.js +47 -47
  133. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilter/compositionAPI/IdAPI.js +29 -29
  134. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilter/compositionAPI/IsFilterAPI.js +16 -16
  135. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilter/compositionAPI/LabelAPI.js +19 -19
  136. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilterUi/AFiltersHorizontalFilterUi.js +105 -105
  137. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilterUi/compositionAPI/ContainerAPI.js +20 -20
  138. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilterUi/compositionAPI/FilterSpecificTypeAPI.js +42 -42
  139. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilterUi/compositionAPI/IdAPI.js +16 -16
  140. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilterUi/compositionAPI/ModelAPI.js +30 -30
  141. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilterUi/compositionAPI/UpdateDataAPI.js +34 -34
  142. package/src/AFilters/AFiltersHorizontal/compositionAPI/DropdownAPI.js +30 -30
  143. package/src/AFilters/AFiltersHorizontal/compositionAPI/EventBusAPI.js +31 -31
  144. package/src/AFilters/AFiltersHorizontal/compositionAPI/FiltersHiddenAPI.js +54 -54
  145. package/src/AFilters/AFiltersHorizontal/compositionAPI/FiltersSaveAPI.js +102 -102
  146. package/src/AFilters/AFiltersHorizontal/compositionAPI/FormAPI.js +78 -78
  147. package/src/AFilters/AFiltersHorizontal/compositionAPI/IdAPI.js +16 -16
  148. package/src/AFilters/AFiltersHorizontal/compositionAPI/SearchAPI.js +22 -22
  149. package/src/AFilters/AFiltersMain/compositionAPI/IdAPI.js +16 -16
  150. package/src/AFilters/AFiltersMain/compositionAPI/MainFilterAPI.js +26 -26
  151. package/src/AFilters/AFiltersMain/compositionAPI/SearchAPI.js +18 -18
  152. package/src/AFilters/AFiltersSaveModal/AFiltersSaveModal.js +108 -108
  153. package/src/AFilters/AFiltersSaveModal/compositionAPI/DataFormAPI.js +54 -54
  154. package/src/AFilters/AFiltersSaveModal/compositionAPI/ModelAPI.js +29 -29
  155. package/src/AFilters/i18n/AFiltersI18n.js +2 -0
  156. package/src/AFilters/i18n/de.json +30 -30
  157. package/src/AFilters/i18n/uk.json +30 -0
  158. package/src/AGet/AGet.js +120 -120
  159. package/src/AGroupButtonDropdown/AGroupButtonDropdown.js +119 -119
  160. package/src/AGroupButtonDropdown/AGroupButtonDropdownItem/AGroupButtonDropdownItem.js +142 -142
  161. package/src/AGroupButtonDropdown/AGroupButtonDropdownItem/compositionAPI/DropdownAPI.js +27 -27
  162. package/src/AGroupButtonDropdown/compositionAPI/ActionsAPI.js +143 -143
  163. package/src/AIcon/AIcon.js +80 -80
  164. package/src/AIcon/Icons/Aloha.js +27 -27
  165. package/src/AIcon/Icons/EyeClose.js +14 -14
  166. package/src/AIcon/Icons/EyeOpen.js +14 -14
  167. package/src/AIcon/Icons/Lock.js +14 -14
  168. package/src/AIcon/Icons/Minus.js +3 -3
  169. package/src/AIcon/Icons/WeightForScale.js +11 -11
  170. package/src/AIcon/Icons/WeightForScaleEmpty.js +11 -11
  171. package/src/AIcon/Icons/WeightForScaleEmptyKG.js +24 -24
  172. package/src/AIcon/Icons/WeightForScaleKG.js +34 -34
  173. package/src/AIcon/Icons/_NoImage.js +11 -11
  174. package/src/AIcon/compositionAPI/AriaLabelHiddenAPI.js +23 -23
  175. package/src/AIcon/compositionAPI/ClassAPI.js +22 -22
  176. package/src/AIcon/compositionAPI/IconAPI.js +63 -63
  177. package/src/AInfiniteScroll/AInfiniteScroll.js +74 -74
  178. package/src/AInfiniteScroll/compositionAPI/ObserverAPI.js +61 -61
  179. package/src/ALinkCopy/i18n/ALinkCopyI18n.js +2 -0
  180. package/src/ALinkCopy/i18n/ar.json +3 -3
  181. package/src/ALinkCopy/i18n/de.json +4 -4
  182. package/src/ALinkCopy/i18n/en.json +4 -4
  183. package/src/ALinkCopy/i18n/es.json +4 -4
  184. package/src/ALinkCopy/i18n/fr.json +3 -3
  185. package/src/ALinkCopy/i18n/hr.json +4 -4
  186. package/src/ALinkCopy/i18n/it.json +4 -4
  187. package/src/ALinkCopy/i18n/ru.json +4 -4
  188. package/src/ALinkCopy/i18n/uk.json +4 -0
  189. package/src/AList/AList.js +132 -132
  190. package/src/AList/AListItem/AListItem.js +137 -137
  191. package/src/AList/AListItem/compositionAPI/ChildrenAPI.js +39 -39
  192. package/src/AList/AListItem/compositionAPI/LabelAPI.js +38 -38
  193. package/src/AList/compositionAPI/PlainTextAPI.js +30 -30
  194. package/src/AList/compositionAPI/TagAPI.js +22 -22
  195. package/src/ALoading/ALoading.js +146 -146
  196. package/src/ALoading/i18n/ALoadingI18n.js +2 -0
  197. package/src/ALoading/i18n/ar.json +2 -2
  198. package/src/ALoading/i18n/de.json +2 -2
  199. package/src/ALoading/i18n/en.json +3 -3
  200. package/src/ALoading/i18n/es.json +2 -2
  201. package/src/ALoading/i18n/fr.json +2 -2
  202. package/src/ALoading/i18n/hr.json +3 -3
  203. package/src/ALoading/i18n/it.json +2 -2
  204. package/src/ALoading/i18n/ru.json +2 -2
  205. package/src/ALoading/i18n/uk.json +3 -0
  206. package/src/AMenu/AMenuBreadcrumbs/compositionAPI/EventsAPI.js +27 -27
  207. package/src/AMenu/AMenuBreadcrumbs/compositionAPI/RenderTruncatedAPI.js +74 -74
  208. package/src/AMenu/AMenuPanel/AMenuPanel.js +186 -186
  209. package/src/AMenu/AMenuPanel/compositionAPI/GroupAPI.js +43 -43
  210. package/src/AMenu/AMenuPanel/compositionAPI/IdAPI.js +25 -25
  211. package/src/AMenu/AMenuPanel/compositionAPI/LevelAPI.js +25 -25
  212. package/src/AMenu/AMenuPanel/compositionAPI/PanelOpenAPI.js +39 -39
  213. package/src/AMenu/AMenuPanelGroup/AMenuPanelGroup.js +104 -104
  214. package/src/AMenu/AMenuPanelGroup/compositionAPI/GroupItemsAPI.js +16 -16
  215. package/src/AMenu/AMenuPanelGroup/compositionAPI/LabelIdAPI.js +29 -29
  216. package/src/AMenu/AMenuPanelLink/compositionAPI/ActiveAPI.js +24 -24
  217. package/src/AMenu/AMenuPanelLink/compositionAPI/ChildrenAPI.js +22 -22
  218. package/src/AMenu/AMenuPanelLink/compositionAPI/IdAPI.js +26 -26
  219. package/src/AMenu/AMenuPanelLink/compositionAPI/LinkAPI.js +29 -29
  220. package/src/AMenu/AMenuPanelLink/compositionAPI/LinkOpenAPI.js +31 -31
  221. package/src/AMenu/AMenuPanelLink/compositionAPI/SlotAPI.js +26 -26
  222. package/src/AMenu/AMenuPanelLink/compositionAPI/TabindexAPI.js +37 -37
  223. package/src/AMenu/AMenuPanelLink/compositionAPI/TitleAPI.js +53 -53
  224. package/src/AMenu/AMenuSearchPanel/AMenuSearchPanel.js +120 -120
  225. package/src/AMenu/AMenuSearchPanel/compositionAPI/NoneFoundAPI.js +20 -20
  226. package/src/AMenu/AMenuSearchPanel/compositionAPI/TextAPI.js +17 -17
  227. package/src/AMenu/AMenuSearchPanelBreadcrumbs/compositionAPI/BreadcrumbsItemsAPI.js +41 -41
  228. package/src/AMenu/AMenuSearchPanelBreadcrumbs/compositionAPI/EventsAPI.js +27 -27
  229. package/src/AMenu/compositionAPI/AMenuBlockerClickAPI.js +27 -27
  230. package/src/AMenu/compositionAPI/PanelMainAPI.js +17 -17
  231. package/src/AMenu/compositionAPI/PanelsAPI.js +78 -78
  232. package/src/AMenu/compositionAPI/PopoverAPI.js +139 -139
  233. package/src/AMenu/compositionAPI/SearchBtnAPI.js +38 -38
  234. package/src/AMenu/const/AKeyBreadcrumbs.js +1 -1
  235. package/src/AMenu/i18n/AMenu2I18n.js +2 -0
  236. package/src/AMenu/i18n/ar.json +14 -14
  237. package/src/AMenu/i18n/de.json +13 -13
  238. package/src/AMenu/i18n/en.json +14 -14
  239. package/src/AMenu/i18n/es.json +14 -14
  240. package/src/AMenu/i18n/fr.json +14 -14
  241. package/src/AMenu/i18n/hr.json +13 -13
  242. package/src/AMenu/i18n/it.json +14 -14
  243. package/src/AMenu/i18n/ru.json +13 -13
  244. package/src/AMenu/i18n/uk.json +14 -0
  245. package/src/AMenu/utils/utils.js +21 -21
  246. package/src/AModal/compositionAPI/AttributesAPI.js +21 -21
  247. package/src/AModal/compositionAPI/BodyHtmlAPI.js +21 -21
  248. package/src/AModal/compositionAPI/CloseFromOutsideAPI.js +29 -29
  249. package/src/AModal/compositionAPI/DisabledAPI.js +17 -17
  250. package/src/AModal/compositionAPI/EscapeAPI.js +27 -27
  251. package/src/AModal/compositionAPI/FocusAPI.js +73 -73
  252. package/src/AModal/compositionAPI/HideModalAPI.js +14 -14
  253. package/src/AModal/compositionAPI/KeydownAPI.js +29 -29
  254. package/src/AModal/compositionAPI/ShowModalAPI.js +26 -26
  255. package/src/AModal/compositionAPI/SizeAPI.js +19 -19
  256. package/src/AModal/compositionAPI/WrapperAPI.js +21 -21
  257. package/src/AModal/compositionAPI/ZIndexAPI.js +48 -48
  258. package/src/AModal/i18n/AModalI18n.js +2 -0
  259. package/src/AModal/i18n/ar.json +7 -7
  260. package/src/AModal/i18n/de.json +7 -7
  261. package/src/AModal/i18n/en.json +7 -7
  262. package/src/AModal/i18n/es.json +7 -7
  263. package/src/AModal/i18n/fr.json +7 -7
  264. package/src/AModal/i18n/hr.json +7 -7
  265. package/src/AModal/i18n/it.json +7 -7
  266. package/src/AModal/i18n/ru.json +7 -7
  267. package/src/AModal/i18n/uk.json +7 -0
  268. package/src/AModalConfirm/AModalConfirm.js +52 -52
  269. package/src/AModalConfirm/compositionAPI/CloseFromOutsideAPI.js +26 -26
  270. package/src/AModalForm/compositionAPI/DataFormAPI.js +16 -16
  271. package/src/AModalForm/compositionAPI/UpdateModalAPI.js +14 -14
  272. package/src/AModalWizard/compositionAPI/EmitsAPI.js +21 -21
  273. package/src/AModalWizard/compositionAPI/IdsAPI.js +21 -21
  274. package/src/AModalWizard/compositionAPI/ScrollAPI.js +26 -26
  275. package/src/AModalWizard/compositionAPI/VisibleAPI.js +21 -21
  276. package/src/ANotification/ANotification.js +60 -60
  277. package/src/API/frameworksApi.js +20 -20
  278. package/src/APageTabTitle/APageTabTitle.js +23 -23
  279. package/src/APagination/APaginationCountPerPage/compositionAPI/LimitAPI.js +42 -42
  280. package/src/APagination/APaginationPages/compositionAPI/DisabledAPI.js +24 -24
  281. package/src/APagination/APaginationPages/compositionAPI/TextsAPI.js +74 -74
  282. package/src/APagination/APaginationPages/compositionAPI/UpdateOffsetAPI.js +111 -111
  283. package/src/APagination/compositionAPI/EmitsAPI.js +14 -14
  284. package/src/APagination/i18n/APaginationI18n.js +2 -0
  285. package/src/APagination/i18n/de.json +12 -12
  286. package/src/APagination/i18n/en.json +12 -12
  287. package/src/APagination/i18n/uk.json +12 -0
  288. package/src/APopup/APopup.js +115 -115
  289. package/src/APopup/compositionAPI/ContainerAPI.js +29 -29
  290. package/src/APopup/compositionAPI/ToggleAPI.js +29 -29
  291. package/src/AProgress/AProgress.js +141 -141
  292. package/src/AProgress/compositionAPI/ClassBarAPI.js +25 -25
  293. package/src/AProgress/compositionAPI/DurationAPI.js +23 -23
  294. package/src/AProgress/compositionAPI/ValuePercentAPI.js +33 -33
  295. package/src/AProgress/compositionAPI/WidthAPI.js +18 -18
  296. package/src/AProgressCircle/AProgressCircle.js +160 -160
  297. package/src/AProgressCircle/compositionAPI/CircleAPI.js +35 -35
  298. package/src/AProgressCircle/compositionAPI/CircleSizesAPI.js +23 -23
  299. package/src/AProgressCircle/compositionAPI/SvgAPI.js +25 -25
  300. package/src/AScale/AScale.js +199 -199
  301. package/src/AScale/AScaleBalance/AScaleBalance.js +106 -106
  302. package/src/AScale/AScaleBalance/compositionAPI/SizesAPI.js +57 -57
  303. package/src/AScale/AScaleBowl/AScaleBowl.js +66 -66
  304. package/src/AScale/AScaleBowl/compositionAPI/SizesAPI.js +59 -59
  305. package/src/AScale/AScaleBowlDefs/AScaleBowlDefs.js +65 -65
  306. package/src/AScale/AScaleBowlDefs/compositionAPI/SizesAPI.js +30 -30
  307. package/src/AScale/AScaleStand/AScaleStand.js +70 -70
  308. package/src/AScale/AScaleStand/compositionAPI/SizesAPI.js +23 -23
  309. package/src/AScale/compositionAPI/ClassAPI.js +30 -30
  310. package/src/AScale/compositionAPI/DegreeAPI.js +22 -22
  311. package/src/AScale/compositionAPI/SizesAPI.js +34 -34
  312. package/src/AShowMore/AShowMore.js +327 -327
  313. package/src/AShowMore/compositionAPI/BtnAttributesAPI.js +76 -76
  314. package/src/AShowMore/compositionAPI/ExpandedAPI.js +20 -20
  315. package/src/AShowMore/compositionAPI/HeightAPI.js +26 -26
  316. package/src/AShowMore/compositionAPI/IsOpenAPI.js +19 -19
  317. package/src/AShowMore/compositionAPI/ObservingAPI.js +61 -61
  318. package/src/AShowMore/compositionAPI/ScreenReaderAPI.js +22 -22
  319. package/src/AShowMore/compositionAPI/TextLengthAPI.js +63 -63
  320. package/src/AShowMore/compositionAPI/TextOrHtmlAPI.js +19 -19
  321. package/src/AShowMore/compositionAPI/ToggleAPI.js +42 -42
  322. package/src/AShowMore/i18n/AShowMoreI18n.js +2 -0
  323. package/src/AShowMore/i18n/ar.json +6 -6
  324. package/src/AShowMore/i18n/de.json +6 -6
  325. package/src/AShowMore/i18n/en.json +6 -6
  326. package/src/AShowMore/i18n/es.json +6 -6
  327. package/src/AShowMore/i18n/fr.json +6 -6
  328. package/src/AShowMore/i18n/hr.json +6 -6
  329. package/src/AShowMore/i18n/it.json +6 -6
  330. package/src/AShowMore/i18n/ru.json +6 -6
  331. package/src/AShowMore/i18n/uk.json +6 -0
  332. package/src/ASlot/ASlot.js +7 -7
  333. package/src/ASlot/ASlot.pug +1 -1
  334. package/src/ASlot/ASlot.vue +2 -2
  335. package/src/ASpinner/ASpinner.js +71 -71
  336. package/src/ASpinner/compositionAPI/ClassAPI.js +20 -20
  337. package/src/ASpinner/i18n/ASpinnerI18n.js +2 -0
  338. package/src/ASpinner/i18n/ar.json +2 -2
  339. package/src/ASpinner/i18n/de.json +2 -2
  340. package/src/ASpinner/i18n/en.json +3 -3
  341. package/src/ASpinner/i18n/es.json +2 -2
  342. package/src/ASpinner/i18n/fr.json +2 -2
  343. package/src/ASpinner/i18n/hr.json +3 -3
  344. package/src/ASpinner/i18n/it.json +2 -2
  345. package/src/ASpinner/i18n/ru.json +2 -2
  346. package/src/ASpinner/i18n/uk.json +3 -0
  347. package/src/ATable/ATable.js +15 -15
  348. package/src/ATable/ATableHeader/ATableHeader.js +177 -177
  349. package/src/ATable/ATableHeader/compositionAPI/CheckboxAPI.js +48 -48
  350. package/src/ATable/ATableHeaderTh/ATableHeaderTh.js +188 -188
  351. package/src/ATable/ATableHeaderTh/compositionAPI/AttributesAPI.js +65 -65
  352. package/src/ATable/ATableHeaderThAction/ATableHeaderThActionItem/compositionAPI/AttributesComponentAPI.js +43 -43
  353. package/src/ATable/ATableHeaderThAction/ATableHeaderThActionItem/compositionAPI/ButtonVisibleAPI.js +80 -80
  354. package/src/ATable/ATableHeaderThAction/ATableHeaderThActionItem/compositionAPI/LabelAPI.js +38 -38
  355. package/src/ATable/ATableHeaderThAction/ATableHeaderThActionItem/compositionAPI/MoveColumnAPI.js +92 -92
  356. package/src/ATable/ATableHeaderThAction/compositionAPI/StylesThTdAction.js +23 -23
  357. package/src/ATable/ATableListItem/ATableListItem.js +100 -100
  358. package/src/ATable/ATablePreviewDown/compositionAPI/FocusAPI.js +21 -21
  359. package/src/ATable/ATablePreviewRight/compositionAPI/ArrowsAPI.js +69 -69
  360. package/src/ATable/ATablePreviewRight/compositionAPI/IdAPI.js +20 -20
  361. package/src/ATable/ATablePreviewRight/compositionAPI/MouseEventsAPI.js +36 -36
  362. package/src/ATable/ATablePreviewRight/compositionAPI/RowAPI.js +86 -86
  363. package/src/ATable/ATableSortingAdditional/compositionAPI/AttributesAPI.js +21 -21
  364. package/src/ATable/ATableSortingAdditional/compositionAPI/ColumnsAPI.js +39 -39
  365. package/src/ATable/ATableSortingAdditional/compositionAPI/DropdownAPI.js +26 -26
  366. package/src/ATable/ATableSortingAdditional/compositionAPI/FormAPI.js +92 -92
  367. package/src/ATable/ATableSortingAdditional/compositionAPI/ModelAPI.js +152 -152
  368. package/src/ATable/ATableTd/compositionAPI/AttributesAPI.js +42 -42
  369. package/src/ATable/ATableTd/compositionAPI/LinkAPI.js +81 -81
  370. package/src/ATable/ATableTd/compositionAPI/SlotAPI.js +25 -25
  371. package/src/ATable/ATableTd/compositionAPI/TextAPI.js +125 -125
  372. package/src/ATable/ATableTdAction/compositionAPI/ColumnsCountAPI.js +32 -32
  373. package/src/ATable/ATableTdAction/compositionAPI/RowNumberAPI.js +16 -16
  374. package/src/ATable/ATableTopPanel/compositionAPI/ActionsAPI.js +125 -125
  375. package/src/ATable/ATableTopPanel/compositionAPI/CountAllRowsAPI.js +22 -22
  376. package/src/ATable/ATableTopPanel/compositionAPI/IdAPI.js +20 -20
  377. package/src/ATable/ATableTopPanel/compositionAPI/MultipleAPI.js +75 -75
  378. package/src/ATable/ATableTopPanel/compositionAPI/ViewsAPI.js +21 -21
  379. package/src/ATable/ATableTr/compositionAPI/AttributesAPI.js +126 -126
  380. package/src/ATable/ATableTr/compositionAPI/CheckboxAPI.js +59 -59
  381. package/src/ATable/ATableTr/compositionAPI/ChildrenAPI.js +66 -66
  382. package/src/ATable/ATableTr/compositionAPI/ChildrenToggleAPI.js +54 -54
  383. package/src/ATable/ATableTr/compositionAPI/MobileAPI.js +50 -50
  384. package/src/ATable/ATableTr/compositionAPI/PreviewAPI.js +68 -68
  385. package/src/ATable/compositionAPI/ColumnAdditionalSpaceAPI.js +32 -32
  386. package/src/ATable/compositionAPI/ColumnSearchAPI.js +16 -16
  387. package/src/ATable/compositionAPI/ColumnsAPI.js +127 -127
  388. package/src/ATable/compositionAPI/ColumnsGroupedAPI.js +7 -7
  389. package/src/ATable/compositionAPI/ColumnsOrderingAPI.js +110 -110
  390. package/src/ATable/compositionAPI/DragAndDropChildAPI.js +97 -97
  391. package/src/ATable/compositionAPI/DragAndDropParentAPI.js +79 -79
  392. package/src/ATable/compositionAPI/FocusTableAPI.js +31 -31
  393. package/src/ATable/compositionAPI/InitAPI.js +53 -53
  394. package/src/ATable/compositionAPI/LimitOffsetAPI.js +99 -99
  395. package/src/ATable/compositionAPI/MobileColumnsAPI.js +27 -27
  396. package/src/ATable/compositionAPI/MultipleActionAPI.js +160 -160
  397. package/src/ATable/compositionAPI/PreviewRightRewAPI.js +16 -16
  398. package/src/ATable/compositionAPI/RowActionsAPI.js +361 -361
  399. package/src/ATable/compositionAPI/RowsAPI.js +121 -121
  400. package/src/ATable/compositionAPI/SortChangeAPI.js +79 -79
  401. package/src/ATable/compositionAPI/StickyAPI.js +20 -20
  402. package/src/ATable/compositionAPI/TableAttributesAPI.js +45 -45
  403. package/src/ATable/compositionAPI/TableColumnsVisibleFunctionAPI.js +23 -23
  404. package/src/ATable/compositionAPI/TextsAPI.js +23 -23
  405. package/src/ATable/compositionAPI/VariablesAPI.js +21 -21
  406. package/src/ATable/compositionAPI/ViewsAPI.js +66 -66
  407. package/src/ATable/i18n/ATableI18n.js +2 -0
  408. package/src/ATable/i18n/ar.json +53 -53
  409. package/src/ATable/i18n/de.json +54 -54
  410. package/src/ATable/i18n/en.json +53 -53
  411. package/src/ATable/i18n/es.json +53 -53
  412. package/src/ATable/i18n/fr.json +53 -53
  413. package/src/ATable/i18n/hr.json +53 -53
  414. package/src/ATable/i18n/it.json +53 -53
  415. package/src/ATable/i18n/ru.json +54 -54
  416. package/src/ATable/i18n/uk.json +54 -0
  417. package/src/ATable/utils/utils.js +115 -115
  418. package/src/ATableForm/ATableFormCell/compositionAPI/SlotAPI.js +38 -38
  419. package/src/ATableForm/ATableFormCellAction/compositionAPI/StylesAPI.js +3 -3
  420. package/src/ATableForm/ATableFormRow/ATableFormRow.js +144 -144
  421. package/src/ATableForm/ATableFormRow/compositionAPI/ClassAPI.js +55 -55
  422. package/src/ATableForm/ATableFormTh/ATableFormTh.js +64 -64
  423. package/src/ATableForm/compositionAPI/ColumnsAPI.js +42 -42
  424. package/src/ATableForm/compositionAPI/ColumnsGrowAPI.js +32 -32
  425. package/src/ATableForm/compositionAPI/DragAndDropAPI.js +306 -306
  426. package/src/ATableForm/compositionAPI/EditAPI.js +6 -6
  427. package/src/ATableForm/compositionAPI/TextsAPI.js +35 -35
  428. package/src/ATableForm/compositionAPI/WidthsAPI.js +1 -1
  429. package/src/ATableForm/i18n/ATableFormI18n.js +21 -19
  430. package/src/ATableForm/i18n/ar.json +18 -18
  431. package/src/ATableForm/i18n/de.json +18 -18
  432. package/src/ATableForm/i18n/en.json +18 -18
  433. package/src/ATableForm/i18n/es.json +18 -18
  434. package/src/ATableForm/i18n/fr.json +18 -18
  435. package/src/ATableForm/i18n/hr.json +18 -18
  436. package/src/ATableForm/i18n/it.json +18 -18
  437. package/src/ATableForm/i18n/ru.json +18 -18
  438. package/src/ATableForm/i18n/uk.json +18 -0
  439. package/src/ATabs/ATabs.js +171 -171
  440. package/src/ATabs/ATabsContent/compositionAPI/ContentAPI.js +25 -25
  441. package/src/ATabs/ATabsTab/compositionAPI/AttributesAPI.js +15 -15
  442. package/src/ATabs/ATabsTab/compositionAPI/ChangeAPI.js +36 -36
  443. package/src/ATabs/ATabsTab/compositionAPI/DisabledAPI.js +30 -30
  444. package/src/ATabs/ATabsTab/compositionAPI/LabelAPI.js +25 -25
  445. package/src/ATabs/ATabsTab/compositionAPI/TitleAPI.js +25 -25
  446. package/src/ATabs/compositionAPI/ATabAPI.js +43 -43
  447. package/src/ATabs/compositionAPI/ActiveAPI.js +76 -76
  448. package/src/ATooltip/ATooltip.js +221 -221
  449. package/src/ATooltip/compositionAPI/AttributesAPI.js +46 -46
  450. package/src/ATooltip/compositionAPI/PopperAPI.js +180 -180
  451. package/src/ATooltip/compositionAPI/PopperContainerAPI.js +27 -27
  452. package/src/ATooltip/compositionAPI/TagAPI.js +22 -22
  453. package/src/ATooltip/compositionAPI/ToggleAPI.js +40 -40
  454. package/src/ATranslation/ATranslation.js +179 -179
  455. package/src/ATranslation/compositionAPI/ATranslationAPI.js +84 -84
  456. package/src/ATranslation/compositionAPI/AriaLabelAPI.js +83 -83
  457. package/src/ATranslation/compositionAPI/AttributesAPI.js +39 -39
  458. package/src/ATranslation/compositionAPI/HtmlAPI.js +181 -181
  459. package/src/ATranslation/compositionAPI/PlaceholderAPI.js +83 -83
  460. package/src/ATranslation/compositionAPI/TextAPI.js +102 -102
  461. package/src/ATranslation/compositionAPI/TextAfterBeforeAPI.js +55 -55
  462. package/src/ATranslation/compositionAPI/TitleAPI.js +101 -101
  463. package/src/AVerticalScroll/compositionAPI/ListenerAPI.js +21 -21
  464. package/src/AVerticalScroll/compositionAPI/ObserverAPI.js +113 -113
  465. package/src/AVerticalScroll/i18n/AVerticalScrollI18n.js +2 -0
  466. package/src/AVerticalScroll/i18n/ar.json +4 -4
  467. package/src/AVerticalScroll/i18n/de.json +4 -4
  468. package/src/AVerticalScroll/i18n/en.json +3 -3
  469. package/src/AVerticalScroll/i18n/es.json +3 -3
  470. package/src/AVerticalScroll/i18n/fr.json +3 -3
  471. package/src/AVerticalScroll/i18n/hr.json +3 -3
  472. package/src/AVerticalScroll/i18n/it.json +3 -3
  473. package/src/AVerticalScroll/i18n/ru.json +3 -3
  474. package/src/AVerticalScroll/i18n/uk.json +4 -0
  475. package/src/AWizard/AWizardStep/compositionAPI/ActiveAPI.js +22 -22
  476. package/src/AWizard/AWizardStep/compositionAPI/AttributesAPI.js +40 -40
  477. package/src/AWizard/AWizardStep/compositionAPI/DisabledAPI.js +39 -39
  478. package/src/AWizard/AWizardStep/compositionAPI/ErrorWarningAPI.js +39 -39
  479. package/src/AWizard/AWizardStep/compositionAPI/EventsAPI.js +38 -38
  480. package/src/AWizard/AWizardStep/compositionAPI/LinkClassAPI.js +27 -27
  481. package/src/AWizard/AWizardStep/compositionAPI/NumberAPI.js +36 -36
  482. package/src/AWizard/AWizardStep/compositionAPI/StatusTextAPI.js +21 -21
  483. package/src/AWizard/AWizardTab/AWizardTab.js +92 -92
  484. package/src/AWizard/AWizardTab/compositionAPI/ActiveAPI.js +17 -17
  485. package/src/AWizard/AWizardTab/compositionAPI/ContentIdAPI.js +17 -17
  486. package/src/AWizard/AWizardTab/compositionAPI/FocusIdAPI.js +17 -17
  487. package/src/AWizard/AWizardTab/compositionAPI/VisibilityAPI.js +24 -24
  488. package/src/AWizard/AWizardToolbar/AWizardToolbar.js +197 -197
  489. package/src/AWizard/AWizardToolbar/compositionAPI/DisabledAPI.js +31 -31
  490. package/src/AWizard/AWizardToolbar/compositionAPI/EventsAPI.js +14 -14
  491. package/src/AWizard/AWizardToolbar/compositionAPI/FirstLastAPI.js +22 -22
  492. package/src/AWizard/AWizardToolbar/compositionAPI/HideAPI.js +33 -33
  493. package/src/AWizard/compositionAPI/AttributesAPI.js +88 -88
  494. package/src/AWizard/compositionAPI/ChangeStepAPI.js +19 -19
  495. package/src/AWizard/compositionAPI/ClassAPI.js +31 -31
  496. package/src/AWizard/compositionAPI/EventsAPI.js +74 -74
  497. package/src/AWizard/compositionAPI/FocusAPI.js +32 -32
  498. package/src/AWizard/compositionAPI/LocalAPI.js +65 -65
  499. package/src/AWizard/compositionAPI/MobileAPI.js +22 -22
  500. package/src/AWizard/compositionAPI/StepsAPI.js +23 -23
  501. package/src/AWizard/compositionAPI/TeleportAPI.js +24 -24
  502. package/src/AWizard/compositionAPI/TypeAPI.js +25 -25
  503. package/src/AWizard/i18n/AWizardI18n.js +2 -0
  504. package/src/AWizard/i18n/ar.json +16 -16
  505. package/src/AWizard/i18n/de.json +16 -16
  506. package/src/AWizard/i18n/en.json +16 -16
  507. package/src/AWizard/i18n/es.json +16 -16
  508. package/src/AWizard/i18n/fr.json +16 -16
  509. package/src/AWizard/i18n/hr.json +16 -16
  510. package/src/AWizard/i18n/it.json +16 -16
  511. package/src/AWizard/i18n/ru.json +16 -16
  512. package/src/AWizard/i18n/uk.json +16 -0
  513. package/src/PVP/new.txt +39 -39
  514. package/src/PuxDatepicker/PuxDatepicker.js +670 -670
  515. package/src/PuxDatepicker/PuxDatepicker.pug +131 -131
  516. package/src/PuxDatepicker/PuxDatepicker.vue +2 -2
  517. package/src/PuxDatepicker/PuxDatepickerCalendarPanel/PuxDatepickerCalendarPanel.pug +136 -136
  518. package/src/PuxDatepicker/PuxDatepickerCalendarPanel/PuxDatepickerCalendarPanel.vue +2 -2
  519. package/src/PuxDatepicker/PuxDatepickerIcon/PuxDatepickerIcon.js +30 -30
  520. package/src/PuxDatepicker/PuxDatepickerIcon/PuxDatepickerIcon.pug +6 -6
  521. package/src/PuxDatepicker/PuxDatepickerIcon/PuxDatepickerIcon.vue +2 -2
  522. package/src/PuxDatepicker/locale/languages.js +174 -174
  523. package/src/PuxDatepicker/mixins/PanelMixin.js +76 -76
  524. package/src/PuxDatepicker/panel/PanelDate/PanelDate.pug +41 -41
  525. package/src/PuxDatepicker/panel/PanelDate/PanelDate.vue +2 -2
  526. package/src/PuxDatepicker/panel/PanelMonth/PanelMonth.pug +16 -16
  527. package/src/PuxDatepicker/panel/PanelMonth/PanelMonth.vue +2 -2
  528. package/src/PuxDatepicker/panel/PanelTime/PanelTime.pug +20 -20
  529. package/src/PuxDatepicker/panel/PanelTime/PanelTime.vue +2 -2
  530. package/src/PuxDatepicker/panel/PanelYear/PanelYear.pug +16 -16
  531. package/src/PuxDatepicker/panel/PanelYear/PanelYear.vue +2 -2
  532. package/src/PuxDatepicker/panel/PanelYearItem/PanelYearItem.js +55 -55
  533. package/src/PuxDatepicker/panel/PanelYearItem/PanelYearItem.pug +9 -9
  534. package/src/PuxDatepicker/panel/PanelYearItem/PanelYearItem.vue +2 -2
  535. package/src/PuxDatepicker/utils/keysCode.js +9 -9
  536. package/src/PuxDatepicker/utils/scroll-into-view.js +23 -23
  537. package/src/PuxDatepicker/utils/transform.js +23 -23
  538. package/src/compositionAPI/AConfirmAPI.js +58 -58
  539. package/src/compositionAPI/ADropdownGlobalAPI.js +20 -20
  540. package/src/compositionAPI/ANotificationAPI.js +64 -64
  541. package/src/compositionAPI/APageTabTitleAPI.js +84 -84
  542. package/src/compositionAPI/APopupAPI.js +74 -74
  543. package/src/compositionAPI/ARemPxAPI.js +47 -47
  544. package/src/const/AFocusableElements.js +13 -13
  545. package/src/const/AKeyId.js +1 -1
  546. package/src/const/AKeysCode.js +19 -19
  547. package/src/const/colors.js +10 -10
  548. package/src/const/frameworks.js +6 -6
  549. package/src/const/placements.js +17 -17
  550. package/src/directives/AOnHooks.js +43 -43
  551. package/src/directives/ASafeHtml.js +16 -16
  552. package/src/filters/filterBoolean.js +32 -32
  553. package/src/filters/filterCapitalize.js +20 -20
  554. package/src/filters/filterCurrency.js +16 -16
  555. package/src/filters/filterDate.js +39 -39
  556. package/src/filters/filterDefaultForEmpty.js +20 -20
  557. package/src/filters/filterEmail.js +27 -27
  558. package/src/filters/filterEscapeHtml.js +16 -16
  559. package/src/filters/filterFileSize.js +67 -67
  560. package/src/filters/filterFloat.js +71 -71
  561. package/src/filters/filterKeyValue.js +17 -17
  562. package/src/filters/filterLimitTo.js +45 -45
  563. package/src/filters/filterLink.js +31 -31
  564. package/src/filters/filterList.js +204 -204
  565. package/src/filters/filterLowerCase.js +26 -26
  566. package/src/filters/filterMask.js +67 -67
  567. package/src/filters/filterPropertyByValue.js +18 -18
  568. package/src/filters/filterSearchHighlight.js +95 -95
  569. package/src/filters/filterUpperCase.js +26 -26
  570. package/src/filters/i18n/Filters18n.js +2 -0
  571. package/src/filters/i18n/ar.json +11 -11
  572. package/src/filters/i18n/de.json +11 -11
  573. package/src/filters/i18n/en.json +11 -11
  574. package/src/filters/i18n/es.json +11 -11
  575. package/src/filters/i18n/fr.json +11 -11
  576. package/src/filters/i18n/hr.json +10 -10
  577. package/src/filters/i18n/it.json +11 -11
  578. package/src/filters/i18n/ru.json +10 -10
  579. package/src/filters/i18n/uk.json +11 -0
  580. package/src/i18n/allLanguages.js +419 -377
  581. package/src/i18n/uk.json +4 -0
  582. package/src/index.js +405 -403
  583. package/src/plugins/ACloakPlugin.js +26 -26
  584. package/src/plugins/ADataRetrievePlugin.js +63 -63
  585. package/src/plugins/AFormPlugin.js +18 -18
  586. package/src/plugins/AGroupButtonDropdownPlugin.js +26 -26
  587. package/src/plugins/AHttpPlugin.js +23 -23
  588. package/src/plugins/AI18nPlugin.js +32 -32
  589. package/src/plugins/AIconPlugin.js +25 -25
  590. package/src/plugins/AInputNumberPlugin.js +29 -29
  591. package/src/plugins/ALoadingPlugin.js +26 -26
  592. package/src/plugins/AMobilePlugin.js +32 -32
  593. package/src/plugins/AModalPlugin.js +41 -41
  594. package/src/plugins/APageTabTitlePlugin.js +9 -9
  595. package/src/plugins/ARemPxPlugin.js +37 -37
  596. package/src/plugins/ARouterLinkConfigPlugin.js +88 -88
  597. package/src/plugins/ASpinnerPlugin.js +26 -26
  598. package/src/plugins/ATablePlugin.js +28 -28
  599. package/src/plugins/alohaPlugin.js +5 -5
  600. package/src/svg/ACircle/ACircle.js +47 -47
  601. package/src/svg/AEllipse/AEllipse.js +53 -53
  602. package/src/svg/ALine/ALine.js +49 -49
  603. package/src/svg/APath/APath.js +44 -44
  604. package/src/svg/APolygon/APolygon.js +55 -55
  605. package/src/svg/APolyline/APolyline.js +48 -48
  606. package/src/svg/ARect/ARect.js +63 -63
  607. package/src/svg/compositionAPI/PointsAPI.js +42 -42
  608. package/src/ui/ACheckbox/ACheckbox.js +0 -0
  609. package/src/ui/ACheckbox/ACheckboxItem/ACheckboxItem.js +323 -323
  610. package/src/ui/ACheckbox/ACheckboxItem/compositionAPI/ButtonGroupAPI.js +21 -21
  611. package/src/ui/ACheckbox/ACheckboxItem/compositionAPI/CheckedAPI.js +18 -18
  612. package/src/ui/ACheckbox/ACheckboxItem/compositionAPI/EventsAPI.js +55 -55
  613. package/src/ui/ACheckbox/ACheckboxLegend/ACheckboxLegend.js +187 -187
  614. package/src/ui/ACheckbox/ACheckboxLegend/compositionAPI/IdAPI.js +21 -21
  615. package/src/ui/ACheckbox/ACheckboxLegend/compositionAPI/LabelSearchAPI.js +28 -28
  616. package/src/ui/ACheckbox/compositionAPI/AttributesAPI.js +27 -27
  617. package/src/ui/ACheckbox/compositionAPI/ChangeAPI.js +25 -25
  618. package/src/ui/ACheckbox/compositionAPI/ModelAPI.js +44 -44
  619. package/src/ui/ACheckbox/i18n/ACheckboxI18n.js +2 -0
  620. package/src/ui/ACheckbox/i18n/ar.json +5 -5
  621. package/src/ui/ACheckbox/i18n/de.json +5 -5
  622. package/src/ui/ACheckbox/i18n/en.json +5 -5
  623. package/src/ui/ACheckbox/i18n/es.json +5 -5
  624. package/src/ui/ACheckbox/i18n/fr.json +5 -5
  625. package/src/ui/ACheckbox/i18n/hr.json +5 -5
  626. package/src/ui/ACheckbox/i18n/it.json +5 -5
  627. package/src/ui/ACheckbox/i18n/ru.json +5 -5
  628. package/src/ui/ACheckbox/i18n/uk.json +5 -0
  629. package/src/ui/ACheckboxRadioGroups/ACheckboxRadioGroups.js +327 -327
  630. package/src/ui/ACheckboxRadioGroups/compostionAPI/ChangeModelAPI.js +9 -9
  631. package/src/ui/ACheckboxRadioGroups/compostionAPI/ComponentAPI.js +35 -35
  632. package/src/ui/ACheckboxRadioGroups/compostionAPI/DataAPI.js +33 -33
  633. package/src/ui/ADatepicker/ADatepicker.js +6 -5
  634. package/src/ui/ADatepicker/ADatepickerCalendarPanel/ADatepickerCalendarPanel.js +68 -68
  635. package/src/ui/ADatepicker/ADatepickerIcon/ADatepickerIcon.js +29 -29
  636. package/src/ui/ADatepicker/compositionAPI/AttributesAPI.js +62 -62
  637. package/src/ui/ADatepicker/compositionAPI/LanguagesAPI.js +13 -13
  638. package/src/ui/ADatepicker/compositionAPI/PlaceholderAPI.js +32 -32
  639. package/src/ui/ADatepicker/compositionAPI/PopoverAPI.js +116 -116
  640. package/src/ui/ADatepicker/compositionAPI/RefsAPI.js +19 -19
  641. package/src/ui/ADatepicker/compositionAPI/TypeAPI.js +57 -57
  642. package/src/ui/ADatepicker/i18n/ADatepickerI18n.js +21 -19
  643. package/src/ui/ADatepicker/i18n/ar.json +11 -11
  644. package/src/ui/ADatepicker/i18n/de.json +10 -10
  645. package/src/ui/ADatepicker/i18n/en.json +10 -10
  646. package/src/ui/ADatepicker/i18n/es.json +11 -11
  647. package/src/ui/ADatepicker/i18n/fr.json +11 -11
  648. package/src/ui/ADatepicker/i18n/hr.json +11 -11
  649. package/src/ui/ADatepicker/i18n/it.json +11 -11
  650. package/src/ui/ADatepicker/i18n/ru.json +10 -10
  651. package/src/ui/ADatepicker/i18n/uk.json +58 -0
  652. package/src/ui/ADatepicker/mixins/PanelMixin.js +74 -74
  653. package/src/ui/ADatepicker/panel/APanelTime/APanelTime.js +147 -147
  654. package/src/ui/ADatepicker/panel/APanelTime/compositionAPI/TimesAPI.js +169 -169
  655. package/src/ui/ADatepicker/panel/APanelYear/APanelYear.js +123 -123
  656. package/src/ui/ADatepicker/utils/scroll-into-view.js +23 -23
  657. package/src/ui/ADatepicker/utils/transform.js +14 -14
  658. package/src/ui/ADatepickerAlt/ADatepickerCalendarPanel/ADatepickerCalendarPanel.js +804 -804
  659. package/src/ui/ADatepickerAlt/ADatepickerIcon/ADatepickerIcon.js +29 -29
  660. package/src/ui/ADatepickerAlt/locale/languages.js +174 -174
  661. package/src/ui/ADatepickerAlt/mixins/PanelMixin.js +74 -74
  662. package/src/ui/ADatepickerAlt/panel/APanelDate/APanelDate.js +353 -353
  663. package/src/ui/ADatepickerAlt/panel/APanelMonth/APanelMonth.js +187 -187
  664. package/src/ui/ADatepickerAlt/panel/APanelTime/APanelTime.js +303 -303
  665. package/src/ui/ADatepickerAlt/panel/APanelYear/APanelYear.js +162 -162
  666. package/src/ui/ADatepickerAlt/panel/APanelYearItem/APanelYearItem.js +85 -85
  667. package/src/ui/ADatepickerAlt/utils/scroll-into-view.js +23 -23
  668. package/src/ui/ADatepickerAlt/utils/transform.js +14 -14
  669. package/src/ui/ADatepickerRange/ADatepickerRange.js +19 -15
  670. package/src/ui/ADatepickerRange/compositionAPI/FocusAPI.js +18 -18
  671. package/src/ui/ADatepickerRange/compositionAPI/IdAPI.js +20 -20
  672. package/src/ui/ADatepickerRange/compositionAPI/InputAttributesAPI.js +39 -39
  673. package/src/ui/ADatepickerRange/compositionAPI/ModelAPI.js +43 -43
  674. package/src/ui/ADatepickerRange/i18n/ADatepickerRangeI18n.js +2 -0
  675. package/src/ui/ADatepickerRange/i18n/ar.json +4 -4
  676. package/src/ui/ADatepickerRange/i18n/de.json +4 -4
  677. package/src/ui/ADatepickerRange/i18n/en.json +4 -4
  678. package/src/ui/ADatepickerRange/i18n/es.json +4 -4
  679. package/src/ui/ADatepickerRange/i18n/fr.json +4 -4
  680. package/src/ui/ADatepickerRange/i18n/hr.json +4 -4
  681. package/src/ui/ADatepickerRange/i18n/it.json +4 -4
  682. package/src/ui/ADatepickerRange/i18n/ru.json +4 -4
  683. package/src/ui/ADatepickerRange/i18n/uk.json +4 -0
  684. package/src/ui/ADatepickerRange/utils/Types.js +14 -14
  685. package/src/ui/AErrors/AErrors.js +149 -149
  686. package/src/ui/AErrors/AErrorsElement/AErrorsElement.js +178 -178
  687. package/src/ui/AErrors/AErrorsElement/compositionAPI/ErrorTypeAPI.js +32 -32
  688. package/src/ui/AErrors/AErrorsElement/compositionAPI/LabelAPI.js +38 -38
  689. package/src/ui/AErrors/AErrorsElement/compositionAPI/LinkAPI.js +83 -83
  690. package/src/ui/AErrors/compositionAPI/CloseAPI.js +9 -9
  691. package/src/ui/AErrors/compositionAPI/ErrorsAPI.js +20 -20
  692. package/src/ui/AErrors/compositionAPI/FocusAPI.js +26 -26
  693. package/src/ui/AErrors/compositionAPI/LabelsAPI.js +122 -122
  694. package/src/ui/AErrors/i18n/AErrorsI18n.js +21 -19
  695. package/src/ui/AErrors/i18n/uk.json +3 -0
  696. package/src/ui/AErrorsText/AErrorsText.js +0 -0
  697. package/src/ui/AFieldset/AFieldset.js +4 -0
  698. package/src/ui/AFieldset/i18n/AFieldsetI18n.js +2 -0
  699. package/src/ui/AFieldset/i18n/ar.json +3 -3
  700. package/src/ui/AFieldset/i18n/de.json +4 -4
  701. package/src/ui/AFieldset/i18n/en.json +3 -3
  702. package/src/ui/AFieldset/i18n/es.json +3 -3
  703. package/src/ui/AFieldset/i18n/fr.json +3 -3
  704. package/src/ui/AFieldset/i18n/hr.json +3 -3
  705. package/src/ui/AFieldset/i18n/it.json +3 -3
  706. package/src/ui/AFieldset/i18n/ru.json +4 -4
  707. package/src/ui/AFieldset/i18n/uk.json +4 -0
  708. package/src/ui/AForm/AForm.js +3 -0
  709. package/src/ui/AForm/compositionAPI/HideAPI.js +16 -16
  710. package/src/ui/AForm/compositionAPI/ModelAPI.js +44 -44
  711. package/src/ui/AForm/compositionAPI/RequiredAPI.js +36 -36
  712. package/src/ui/AFormElement/AFormElement.js +5 -0
  713. package/src/ui/AFormElementBtnClear/compositionAPI/ClearAPI.js +11 -11
  714. package/src/ui/AFormElementBtnClear/i18n/AFormElementBtnClearI18n.js +21 -19
  715. package/src/ui/AFormElementBtnClear/i18n/uk.json +3 -0
  716. package/src/ui/AFormReadonly/AFormReadonly.js +193 -193
  717. package/src/ui/AFormReadonly/compositionAPI/ModelAPI.js +25 -25
  718. package/src/ui/AGroup/AGroup.js +3 -0
  719. package/src/ui/AGroup/compositionAPI/SpecificTypeAPI.js +50 -50
  720. package/src/ui/AInput/AInput.js +0 -0
  721. package/src/ui/AInput/compositionAPI/ColorAPI.js +21 -21
  722. package/src/ui/AInput/compositionAPI/FocusAPI.js +16 -16
  723. package/src/ui/AInput/compositionAPI/ModelAPI.js +39 -39
  724. package/src/ui/AInput/compositionAPI/PasswordAPI.js +46 -46
  725. package/src/ui/AInput/compositionAPI/ReadonlyAPI.js +27 -27
  726. package/src/ui/AInput/compositionAPI/TypeAPI.js +32 -32
  727. package/src/ui/AInput/i18n/AInputI18n.js +2 -0
  728. package/src/ui/AInput/i18n/ar.json +3 -3
  729. package/src/ui/AInput/i18n/de.json +3 -3
  730. package/src/ui/AInput/i18n/en.json +4 -4
  731. package/src/ui/AInput/i18n/es.json +3 -3
  732. package/src/ui/AInput/i18n/fr.json +3 -3
  733. package/src/ui/AInput/i18n/hr.json +4 -4
  734. package/src/ui/AInput/i18n/it.json +3 -3
  735. package/src/ui/AInput/i18n/ru.json +3 -3
  736. package/src/ui/AInput/i18n/uk.json +4 -0
  737. package/src/ui/AInputCurrency/compositionAPI/VerifyAPI.js +27 -27
  738. package/src/ui/AInputCurrency/compositionAPI/WidthAPI.js +31 -31
  739. package/src/ui/AInputCurrency/i18n/AInputCurrencyI18n.js +2 -0
  740. package/src/ui/AInputCurrency/i18n/ar.json +3 -3
  741. package/src/ui/AInputCurrency/i18n/de.json +3 -3
  742. package/src/ui/AInputCurrency/i18n/en.json +4 -4
  743. package/src/ui/AInputCurrency/i18n/es.json +3 -3
  744. package/src/ui/AInputCurrency/i18n/fr.json +3 -3
  745. package/src/ui/AInputCurrency/i18n/hr.json +3 -3
  746. package/src/ui/AInputCurrency/i18n/it.json +3 -3
  747. package/src/ui/AInputCurrency/i18n/ru.json +3 -3
  748. package/src/ui/AInputCurrency/i18n/uk.json +4 -0
  749. package/src/ui/AInputFile/AInputFile.js +5 -5
  750. package/src/ui/AInputNumber/AInputNumber.js +0 -0
  751. package/src/ui/AInputNumber/compositionAPI/IncreaseDecreaseAPI.js +53 -53
  752. package/src/ui/AInputNumber/compositionAPI/MinAPI.js +32 -32
  753. package/src/ui/AInputNumber/compositionAPI/NumberAttributesAPI.js +40 -40
  754. package/src/ui/AInputNumber/compositionAPI/VerifyAPI.js +89 -89
  755. package/src/ui/AInputNumber/compositionAPI/WidthAPI.js +31 -31
  756. package/src/ui/AInputNumber/i18n/AInputNumberI18n.js +2 -0
  757. package/src/ui/AInputNumber/i18n/ar.json +3 -3
  758. package/src/ui/AInputNumber/i18n/de.json +3 -3
  759. package/src/ui/AInputNumber/i18n/en.json +4 -4
  760. package/src/ui/AInputNumber/i18n/es.json +3 -3
  761. package/src/ui/AInputNumber/i18n/fr.json +3 -3
  762. package/src/ui/AInputNumber/i18n/hr.json +3 -3
  763. package/src/ui/AInputNumber/i18n/it.json +3 -3
  764. package/src/ui/AInputNumber/i18n/ru.json +3 -3
  765. package/src/ui/AInputNumber/i18n/uk.json +4 -0
  766. package/src/ui/AInputNumberRange/AInputNumberRange.js +19 -15
  767. package/src/ui/AInputNumberRange/compositionAPI/FocusAPI.js +18 -18
  768. package/src/ui/AInputNumberRange/compositionAPI/IdAPI.js +20 -20
  769. package/src/ui/AInputNumberRange/compositionAPI/InputAttributesAPI.js +39 -39
  770. package/src/ui/AInputNumberRange/compositionAPI/ModelAPI.js +43 -43
  771. package/src/ui/AInputNumberRange/compositionAPI/TypeAPI.js +16 -16
  772. package/src/ui/AInputNumberRange/i18n/AInputNumberRangeI18n.js +2 -0
  773. package/src/ui/AInputNumberRange/i18n/ar.json +4 -4
  774. package/src/ui/AInputNumberRange/i18n/de.json +3 -3
  775. package/src/ui/AInputNumberRange/i18n/en.json +3 -3
  776. package/src/ui/AInputNumberRange/i18n/es.json +3 -3
  777. package/src/ui/AInputNumberRange/i18n/fr.json +3 -3
  778. package/src/ui/AInputNumberRange/i18n/hr.json +3 -3
  779. package/src/ui/AInputNumberRange/i18n/it.json +3 -3
  780. package/src/ui/AInputNumberRange/i18n/ru.json +3 -3
  781. package/src/ui/AInputNumberRange/i18n/uk.json +4 -0
  782. package/src/ui/AInputNumberRange/utils/Types.js +15 -15
  783. package/src/ui/AJson/compositionAPI/HeightAPI.js +29 -29
  784. package/src/ui/AJson/compositionAPI/ReadonlyAPI.js +32 -32
  785. package/src/ui/AJson/i18n/AJsonI18n.js +2 -0
  786. package/src/ui/AJson/i18n/ar.json +7 -7
  787. package/src/ui/AJson/i18n/de.json +7 -7
  788. package/src/ui/AJson/i18n/en.json +7 -7
  789. package/src/ui/AJson/i18n/es.json +7 -7
  790. package/src/ui/AJson/i18n/fr.json +7 -7
  791. package/src/ui/AJson/i18n/hr.json +7 -7
  792. package/src/ui/AJson/i18n/it.json +7 -7
  793. package/src/ui/AJson/i18n/ru.json +7 -7
  794. package/src/ui/AJson/i18n/uk.json +8 -0
  795. package/src/ui/ALabel/ALabel.js +188 -188
  796. package/src/ui/ALabel/compositionAPI/ClickAPI.js +51 -51
  797. package/src/ui/ALabel/compositionAPI/IdAPI.js +35 -35
  798. package/src/ui/ALabel/compositionAPI/LabelAPI.js +48 -48
  799. package/src/ui/ALabel/compositionAPI/PropsTypeAPI.js +66 -66
  800. package/src/ui/AMultiselectOrdered/AMultiselectOrdered.js +24 -24
  801. package/src/ui/AMultiselectOrdered/AMultiselectOrderedItem/AMultiselectOrderedItem.js +217 -217
  802. package/src/ui/AMultiselectOrdered/i18n/AMultiselectOrderedI18n.js +2 -0
  803. package/src/ui/AMultiselectOrdered/i18n/ar.json +12 -12
  804. package/src/ui/AMultiselectOrdered/i18n/de.json +12 -12
  805. package/src/ui/AMultiselectOrdered/i18n/en.json +12 -12
  806. package/src/ui/AMultiselectOrdered/i18n/es.json +12 -12
  807. package/src/ui/AMultiselectOrdered/i18n/fr.json +12 -12
  808. package/src/ui/AMultiselectOrdered/i18n/hr.json +12 -12
  809. package/src/ui/AMultiselectOrdered/i18n/it.json +12 -12
  810. package/src/ui/AMultiselectOrdered/i18n/ru.json +12 -12
  811. package/src/ui/AMultiselectOrdered/i18n/uk.json +12 -0
  812. package/src/ui/AOneCheckbox/AOneCheckbox.js +0 -0
  813. package/src/ui/AOneCheckbox/compositionAPI/LabelAPI.js +20 -20
  814. package/src/ui/AOneCheckbox/compositionAPI/TrueFalseValueAPI.js +47 -47
  815. package/src/ui/ARadio/ARadio.js +0 -0
  816. package/src/ui/ARadio/ARadioItem/ARadioItem.js +324 -324
  817. package/src/ui/ARadio/ARadioItem/compositionAPI/CheckedAPI.js +25 -25
  818. package/src/ui/ARadio/ARadioItem/compositionAPI/EventsAPI.js +43 -43
  819. package/src/ui/ARadio/compositionAPI/ChangeAPI.js +58 -58
  820. package/src/ui/ARadio/i18n/ARadioI18n.js +2 -0
  821. package/src/ui/ARadio/i18n/ar.json +5 -5
  822. package/src/ui/ARadio/i18n/de.json +5 -5
  823. package/src/ui/ARadio/i18n/en.json +5 -5
  824. package/src/ui/ARadio/i18n/es.json +5 -5
  825. package/src/ui/ARadio/i18n/fr.json +5 -5
  826. package/src/ui/ARadio/i18n/hr.json +5 -5
  827. package/src/ui/ARadio/i18n/it.json +5 -5
  828. package/src/ui/ARadio/i18n/ru.json +5 -5
  829. package/src/ui/ARadio/i18n/uk.json +5 -0
  830. package/src/ui/ARequired/ARequired.js +27 -27
  831. package/src/ui/ARequired/i18n/ARequiredI18n.js +2 -0
  832. package/src/ui/ARequired/i18n/ar.json +2 -2
  833. package/src/ui/ARequired/i18n/de.json +3 -3
  834. package/src/ui/ARequired/i18n/en.json +2 -2
  835. package/src/ui/ARequired/i18n/es.json +2 -2
  836. package/src/ui/ARequired/i18n/fr.json +2 -2
  837. package/src/ui/ARequired/i18n/hr.json +2 -2
  838. package/src/ui/ARequired/i18n/it.json +2 -2
  839. package/src/ui/ARequired/i18n/ru.json +2 -2
  840. package/src/ui/ARequired/i18n/uk.json +3 -0
  841. package/src/ui/ARouterLinkConfig/ARouterLinkConfig.js +8 -0
  842. package/src/ui/ARouterLinkConfig/compositionAPI/ParamAPI.js +65 -65
  843. package/src/ui/ARouterLinkConfig/i18n/ARouterLinkConfigI18n.js +2 -0
  844. package/src/ui/ARouterLinkConfig/i18n/ar.json +3 -3
  845. package/src/ui/ARouterLinkConfig/i18n/de.json +13 -13
  846. package/src/ui/ARouterLinkConfig/i18n/en.json +13 -13
  847. package/src/ui/ARouterLinkConfig/i18n/es.json +13 -13
  848. package/src/ui/ARouterLinkConfig/i18n/fr.json +13 -13
  849. package/src/ui/ARouterLinkConfig/i18n/hr.json +13 -13
  850. package/src/ui/ARouterLinkConfig/i18n/it.json +13 -13
  851. package/src/ui/ARouterLinkConfig/i18n/ru.json +13 -13
  852. package/src/ui/ARouterLinkConfig/i18n/uk.json +14 -0
  853. package/src/ui/ASelect/ASelect.js +0 -0
  854. package/src/ui/ASelect/ASelectElement/ASelectElement.js +0 -0
  855. package/src/ui/ASelect/ASelectElement/compositionAPI/CheckedAPI.js +22 -22
  856. package/src/ui/ASelect/ASelectElement/compositionAPI/EventsAPI.js +43 -43
  857. package/src/ui/ASelect/ASelectLabelElement/ASelectLabelElement.js +88 -88
  858. package/src/ui/ASelect/ASelectValueCloseable/compositionAPI/GroupAPI.js +50 -50
  859. package/src/ui/ASelect/ASelectValueCloseable/compositionAPI/LabelAPI.js +34 -34
  860. package/src/ui/ASelect/compositionAPI/AttributesAPI.js +33 -33
  861. package/src/ui/ASelect/compositionAPI/DisabledAPI.js +38 -38
  862. package/src/ui/ASelect/compositionAPI/DividerAPI.js +19 -19
  863. package/src/ui/ASelect/compositionAPI/ModeAPI.js +16 -16
  864. package/src/ui/ASelect/compositionAPI/ModelAPI.js +74 -74
  865. package/src/ui/ASelect/compositionAPI/ModelChangeAPI.js +173 -173
  866. package/src/ui/ASelect/compositionAPI/SelectedFirstAPI.js +78 -78
  867. package/src/ui/ASelect/compositionAPI/SelectedTitleAPI.js +99 -99
  868. package/src/ui/ASelect/compositionAPI/SelectedVisibleAPI.js +76 -76
  869. package/src/ui/ASelect/i18n/ASelectI18n.js +2 -0
  870. package/src/ui/ASelect/i18n/ar.json +5 -5
  871. package/src/ui/ASelect/i18n/de.json +4 -4
  872. package/src/ui/ASelect/i18n/en.json +5 -5
  873. package/src/ui/ASelect/i18n/es.json +5 -5
  874. package/src/ui/ASelect/i18n/fr.json +5 -5
  875. package/src/ui/ASelect/i18n/hr.json +5 -5
  876. package/src/ui/ASelect/i18n/it.json +5 -5
  877. package/src/ui/ASelect/i18n/ru.json +5 -5
  878. package/src/ui/ASelect/i18n/uk.json +11 -0
  879. package/src/ui/ASelectIcon/ASelectIcon.js +11 -11
  880. package/src/ui/ASelectIcon/ASelectIconSlot/ASelectIconSlot.js +51 -51
  881. package/src/ui/ASelectIcon/compositionAPI/EventsAPI.js +24 -24
  882. package/src/ui/ASelectIcon/compositionAPI/IconsAPI.js +39 -39
  883. package/src/ui/ASelectIcon/compositionAPI/TypeAPI.js +24 -24
  884. package/src/ui/ASelectStyle/ASelectStyle.js +11 -11
  885. package/src/ui/ASelectStyle/i18n/ASelectStyleI18n.js +21 -19
  886. package/src/ui/ASelectStyle/i18n/ar.json +16 -16
  887. package/src/ui/ASelectStyle/i18n/de.json +16 -16
  888. package/src/ui/ASelectStyle/i18n/en.json +16 -16
  889. package/src/ui/ASelectStyle/i18n/es.json +16 -16
  890. package/src/ui/ASelectStyle/i18n/fr.json +16 -16
  891. package/src/ui/ASelectStyle/i18n/hr.json +16 -16
  892. package/src/ui/ASelectStyle/i18n/it.json +16 -16
  893. package/src/ui/ASelectStyle/i18n/ru.json +16 -16
  894. package/src/ui/ASelectStyle/i18n/uk.json +293 -0
  895. package/src/ui/ASlider/compositionAPI/DataAPI.js +115 -115
  896. package/src/ui/ASlider/i18n/ASliderI18n.js +21 -19
  897. package/src/ui/ASlider/i18n/uk.json +5 -0
  898. package/src/ui/ASwitch/ASwitch.js +5 -5
  899. package/src/ui/ASwitch/compositionAPI/CheckedAPI.js +22 -22
  900. package/src/ui/ASwitch/compositionAPI/LabelAPI.js +32 -32
  901. package/src/ui/ASwitch/compositionAPI/ModelAPI.js +30 -30
  902. package/src/ui/ASwitch/compositionAPI/OnInputAPI.js +51 -51
  903. package/src/ui/ASwitch/i18n/ASwitchI18n.js +2 -0
  904. package/src/ui/ASwitch/i18n/ar.json +4 -4
  905. package/src/ui/ASwitch/i18n/de.json +4 -4
  906. package/src/ui/ASwitch/i18n/en.json +4 -4
  907. package/src/ui/ASwitch/i18n/es.json +4 -4
  908. package/src/ui/ASwitch/i18n/fr.json +4 -4
  909. package/src/ui/ASwitch/i18n/hr.json +4 -4
  910. package/src/ui/ASwitch/i18n/it.json +4 -4
  911. package/src/ui/ASwitch/i18n/ru.json +4 -4
  912. package/src/ui/ASwitch/i18n/uk.json +5 -0
  913. package/src/ui/ATemplate/ATemplate.js +166 -162
  914. package/src/ui/ATextarea/ATextarea.js +0 -0
  915. package/src/ui/ATextarea/compositionAPI/AutosizeAPI.js +42 -42
  916. package/src/ui/ATextarea/compositionAPI/ModelAPI.js +37 -37
  917. package/src/ui/ATextarea/compositionAPI/ResizeClass.js +23 -23
  918. package/src/ui/ATextarea/compositionAPI/RowsAPI.js +25 -25
  919. package/src/ui/AValidatedJson/AValidatedJson.js +10 -0
  920. package/src/ui/AValidatedJson/AValidatedJsonItem/compositionAPI/IdAPI.js +27 -27
  921. package/src/ui/AValidatedJson/AValidatedJsonItem/compositionAPI/LabelAPI.js +49 -49
  922. package/src/ui/AValidatedJson/AValidatedJsonModalCreateOrUpdate/AValidatedJsonModalCreateOrUpdate.js +159 -159
  923. package/src/ui/AValidatedJson/AValidatedJsonModalCreateOrUpdate/composiitionAPI/DataFormAPI.js +69 -69
  924. package/src/ui/AValidatedJson/AValidatedJsonModalCreateOrUpdate/composiitionAPI/ErrorsAPI.js +28 -28
  925. package/src/ui/AValidatedJson/AValidatedJsonModalCreateOrUpdate/composiitionAPI/ModelAPI.js +31 -31
  926. package/src/ui/AValidatedJson/compositionAPI/AttributesAPI.js +15 -15
  927. package/src/ui/AValidatedJson/compositionAPI/ChildrenAPI.js +70 -70
  928. package/src/ui/AValidatedJson/compositionAPI/TranslateAPI.js +22 -22
  929. package/src/ui/AValidatedJson/i18n/AValidatedJsonI18n.js +21 -19
  930. package/src/ui/AValidatedJson/i18n/uk.json +4 -0
  931. package/src/ui/compositionApi/UIDataGroupAPI.js +52 -52
  932. package/src/ui/compositionApi/UIExcludeRenderAttributesAPI.js +25 -25
  933. package/src/ui/compositionApi/UiDataFromServerAPI.js +423 -423
  934. package/src/ui/compositionApi/UiDataWatchEmitAPI.js +18 -18
  935. package/src/ui/compositionApi/UiDataWithKeyIdAndLabelAPI.js +89 -89
  936. package/src/ui/compositionApi/UiDisabledAPI.js +20 -20
  937. package/src/ui/compositionApi/UiDisabledElementAPI.js +30 -30
  938. package/src/ui/compositionApi/UiErrorsAPI.js +38 -38
  939. package/src/ui/compositionApi/UiLabelClickEventBusAPI.js +35 -35
  940. package/src/ui/compositionApi/UiLoadingAPI.js +19 -19
  941. package/src/ui/compositionApi/UiModelDependenciesProvideAPI.js +11 -0
  942. package/src/ui/compositionApi/UiSearchAPI.js +260 -260
  943. package/src/ui/compositionApi/UiStyleHideAPI.js +65 -48
  944. package/src/ui/compositionApi/UiTextAfterLabelAPI.js +16 -16
  945. package/src/ui/compositionApi/UiTitleElementAPI.js +28 -28
  946. package/src/ui/compositionApi/UiVisibleElementWithSearchAPI.js +55 -55
  947. package/src/ui/compositionApi/__tests__/UiStyleHideAPI.test.js +113 -0
  948. package/src/ui/const/UiInjectionKeys.js +2 -1
  949. package/src/ui/mixins/UiClearButtonMixinProps.js +14 -14
  950. package/src/ui/mixins/UiDependenciesMixinProps.js +14 -0
  951. package/src/ui/utils/utils.js +79 -79
  952. package/src/utils/actions.js +67 -67
  953. package/src/utils/colors.js +109 -109
  954. package/src/utils/isBrowser.js +12 -12
  955. package/src/utils/utilsArray.js +29 -29
  956. package/src/utils/utilsMath.js +69 -69
  957. package/src/utils/utilsUi.js +37 -37
@@ -1,670 +1,670 @@
1
- import PuxDatepickerCalendarPanel from "./PuxDatepickerCalendarPanel/PuxDatepickerCalendarPanel.vue";
2
- import PuxDatepickerIcon from "./PuxDatepickerIcon/PuxDatepickerIcon.vue";
3
- import {
4
- AButton,
5
- } from "aloha-vue";
6
-
7
- import Languages from "./locale/languages";
8
- import keysCode from "./utils/keysCode";
9
- import moment from "moment";
10
- import {
11
- formatDate,
12
- isDateObject,
13
- isPlainObject,
14
- isValidDate,
15
- isValidRangeDate,
16
- parseDate,
17
- throttle,
18
- } from "./utils";
19
- import {
20
- gettext,
21
- } from "../../functions/utils";
22
- import {
23
- transformDate,
24
- } from "./utils/transform";
25
-
26
-
27
- // @vue/component
28
- export default {
29
- name: "DatePicker",
30
- components: {
31
- AButton,
32
- PuxDatepickerCalendarPanel,
33
- PuxDatepickerIcon,
34
- },
35
- props: {
36
- id: {
37
- type: String,
38
- required: true,
39
- },
40
- value: {
41
- type: [String, Number, Boolean, Array, Object, Date, Function, Symbol],
42
- default: undefined,
43
- },
44
- valueType: {
45
- default: "date",
46
- validator: function(value) {
47
- return ["timestamp", "format", "date"].indexOf(value) !== -1 || isPlainObject(value);
48
- },
49
- },
50
- placeholder: {
51
- type: String,
52
- default: null,
53
- },
54
- lang: {
55
- type: String,
56
- default: "de",
57
- required: false,
58
- },
59
- languages: {
60
- type: Object,
61
- default: undefined,
62
- required: false,
63
- },
64
- format: {
65
- type: [String, Object],
66
- default: "YYYY-MM-DD",
67
- },
68
- dateFormat: {
69
- type: String, // format the time header and date tooltip
70
- default: undefined,
71
- },
72
- type: {
73
- type: String,
74
- default: "date", // ["date", "datetime"] zendy added "month", "year", mxie added "time"
75
- },
76
- range: {
77
- type: Boolean,
78
- default: false,
79
- },
80
- rangeSeparator: {
81
- type: String,
82
- default: "~",
83
- },
84
- width: {
85
- type: [String, Number],
86
- default: null,
87
- },
88
- confirmText: {
89
- type: String,
90
- default: "OK",
91
- },
92
- confirm: {
93
- type: Boolean,
94
- default: false,
95
- },
96
- editable: {
97
- type: Boolean,
98
- default: true,
99
- },
100
- disabled: {
101
- type: Boolean,
102
- default: false,
103
- },
104
- clearable: {
105
- type: Boolean,
106
- default: true,
107
- },
108
- shortcuts: {
109
- type: [Boolean, Array],
110
- default: true,
111
- },
112
- inputName: {
113
- type: String,
114
- default: "date",
115
- },
116
- inputClass: {
117
- type: [String, Number, Boolean, Array, Object, Date, Function, Symbol],
118
- default: "pux_datepicker__input",
119
- },
120
- inputAttr: {
121
- type: Object,
122
- default: undefined,
123
- },
124
- appendToBody: {
125
- type: Boolean,
126
- default: false,
127
- },
128
- popupStyle: {
129
- type: Object,
130
- default: undefined,
131
- },
132
- iconDay: {
133
- type: [Number, String],
134
- default: undefined,
135
- },
136
- },
137
- emits: [
138
- "blur",
139
- "change",
140
- "clear",
141
- "confirm",
142
- "focus",
143
- "input",
144
- "inputError",
145
- "changeCalendarMonth",
146
- "changeCalendarYear",
147
- ],
148
- data() {
149
- return {
150
- currentValue: this.range ? [null, null] : null,
151
- userInput: null,
152
- popupVisible: false,
153
- position: {},
154
- };
155
- },
156
- computed: {
157
- transform() {
158
- const type = this.valueType;
159
- if (isPlainObject(type)) {
160
- return { ...transformDate.date, ...type };
161
- }
162
- if (type === "format") {
163
- return {
164
- value2date: this.parse.bind(this),
165
- date2value: this.stringify.bind(this),
166
- };
167
- }
168
- return transformDate[type] || transformDate.date;
169
- },
170
-
171
- languagesLocal() {
172
- if (isPlainObject(this.languages)) {
173
- return {
174
- ...Languages,
175
- ...this.languages,
176
- };
177
- }
178
- return Languages;
179
- },
180
-
181
- currentLanguage() {
182
- return this.languagesLocal[this.lang];
183
- },
184
-
185
- innerPlaceholder() {
186
- if (typeof this.placeholder === "string") {
187
- return gettext(this.placeholder);
188
- }
189
- if (this.range) {
190
- return this.currentLanguage.placeholder.dateRange;
191
- }
192
- if (this.type === "time") {
193
- return this.currentLanguage.placeholder.time;
194
- }
195
- return this.currentLanguage.placeholder.date;
196
- },
197
-
198
- text() {
199
- if (this.userInput !== null) {
200
- return this.userInput;
201
- }
202
- const {
203
- value2date,
204
- } = this.transform;
205
- if (!this.range) {
206
- return this.isValidValue(this.value)
207
- ? this.stringify(value2date(this.value))
208
- : "";
209
- }
210
- return this.isValidRangeValue(this.value)
211
- ? `${ this.stringify(value2date(this.value[0])) } ${ this.rangeSeparator } ${ this.stringify(value2date(this.value[1])) }`
212
- : "";
213
- },
214
-
215
- computedWidth() {
216
- if (typeof this.width === "number" || (typeof this.width === "string" && /^\d+$/.test(this.width))) {
217
- return this.width + "px";
218
- }
219
- return this.width;
220
- },
221
-
222
- showClearIcon() {
223
- return !this.disabled && this.clearable && (this.range ? this.isValidRangeValue(this.value) : this.isValidValue(this.value));
224
- },
225
-
226
- innerType() {
227
- return String(this.type).toLowerCase();
228
- },
229
-
230
- innerShortcuts() {
231
- if (Array.isArray(this.shortcuts)) {
232
- return this.shortcuts;
233
- }
234
- if (this.shortcuts === false) {
235
- return [];
236
- }
237
- const pickers = this.currentLanguage.pickers;
238
- const arr = [
239
- {
240
- text: pickers[0],
241
- onClick(self) {
242
- self.currentValue = [new Date(), new Date(Date.now() + 3600 * 1000 * 24 * 7)];
243
- self.updateDate(true);
244
- },
245
- },
246
- {
247
- text: pickers[1],
248
- onClick(self) {
249
- self.currentValue = [new Date(), new Date(Date.now() + 3600 * 1000 * 24 * 30)];
250
- self.updateDate(true);
251
- },
252
- },
253
- {
254
- text: pickers[2],
255
- onClick(self) {
256
- self.currentValue = [new Date(Date.now() - 3600 * 1000 * 24 * 7), new Date()];
257
- self.updateDate(true);
258
- },
259
- },
260
- {
261
- text: pickers[3],
262
- onClick(self) {
263
- self.currentValue = [new Date(Date.now() - 3600 * 1000 * 24 * 30), new Date()];
264
- self.updateDate(true);
265
- },
266
- },
267
- ];
268
- return arr;
269
- },
270
-
271
- innerDateFormat() {
272
- if (this.dateFormat) {
273
- return this.dateFormat;
274
- }
275
- if (typeof this.format !== "string") {
276
- return "YYYY-MM-DD";
277
- }
278
- if (this.innerType === "date") {
279
- return this.format;
280
- }
281
- return this.format.replace(/[Hh]+.*[msSaAZ]|\[.*?\]/g, "").trim() || "YYYY-MM-DD";
282
- },
283
-
284
- innerPopupStyle() {
285
- return { ...this.position, ...this.popupStyle };
286
- },
287
-
288
- idForPanel() {
289
- return `${ this.id }_panel`;
290
- },
291
-
292
- idsForPanelRange() {
293
- return [
294
- `${ this.idForPanel }_0`,
295
- `${ this.idForPanel }_1`,
296
- ];
297
- },
298
-
299
- ariaHiddenForCalendar() {
300
- return `${ !this.popupVisible }`;
301
- },
302
-
303
- ariaExpandedForCalendar() {
304
- return `${ this.popupVisible }`;
305
- },
306
-
307
- idForCalendar() {
308
- return `${ this.id }_calendar`;
309
- },
310
-
311
- modalBody() {
312
- return document.querySelector("div.modal_body"); // Workaround till updated by ADatePicker
313
- },
314
- },
315
- watch: {
316
- value: {
317
- immediate: true,
318
- handler: "handleValueChange",
319
- },
320
-
321
- popupVisible(val) {
322
- if (val) {
323
- this.initCalendar();
324
- } else {
325
- this.userInput = null;
326
- this.blur();
327
- }
328
- },
329
- },
330
- mounted() {
331
- if (this.appendToBody) {
332
- this.popupElm = this.$refs.calendar;
333
- document.body.appendChild(this.popupElm);
334
- }
335
- // clickoutside close popup
336
- let mousedownTarget;
337
- this._bindDocmentMousedown = evt => {
338
- mousedownTarget = evt.target;
339
- };
340
- this._bindDocumentMouseup = evt => {
341
- const mouseupTarget = evt.target;
342
- const el = this.$el;
343
- const { popupElm } = this;
344
- if (
345
- !mousedownTarget ||
346
- !mouseupTarget ||
347
- el.contains(mousedownTarget) ||
348
- el.contains(mouseupTarget) ||
349
- (popupElm && (popupElm.contains(mousedownTarget) || popupElm.contains(mouseupTarget)))
350
- ) {
351
- return;
352
- }
353
- mousedownTarget = null;
354
- this.closePopup();
355
- };
356
- this._startEvt = "mousedown";
357
- this._endEvt = "mouseup";
358
- if ("ontouchend" in document) {
359
- this._startEvt = "touchstart";
360
- this._endEvt = "touchend";
361
- }
362
- document.addEventListener(this._startEvt, this._bindDocmentMousedown);
363
- document.addEventListener(this._endEvt, this._bindDocumentMouseup);
364
-
365
- this._displayPopup = throttle(() => {
366
- if (this.popupVisible) {
367
- this.displayPopup();
368
- }
369
- }, 200);
370
- window.addEventListener("resize", this._displayPopup);
371
- window.addEventListener("scroll", this._displayPopup);
372
-
373
- // Workaround till updated by ADatePicker
374
- if (this.modalBody) {
375
- this.modalBody.addEventListener("scroll", this._displayPopup);
376
- }
377
- },
378
- beforeUnmount() {
379
- if (this.popupElm && this.popupElm.parentNode === document.body) {
380
- document.body.removeChild(this.popupElm);
381
- }
382
- document.removeEventListener(this._startEvt, this._bindDocmentMousedown);
383
- document.removeEventListener(this._endEvt, this._bindDocumentMouseup);
384
- window.removeEventListener("resize", this._displayPopup);
385
- window.removeEventListener("scroll", this._displayPopup);
386
-
387
- // Workaround till updated by ADatePicker
388
- if (this.modalBody) {
389
- this.modalBody.removeEventListener("scroll", this._displayPopup);
390
- }
391
- },
392
- methods: {
393
- initCalendar() {
394
- this.handleValueChange(this.value);
395
- this.displayPopup();
396
- },
397
-
398
- stringify(date) {
399
- return (isPlainObject(this.format) && typeof this.format.stringify === "function")
400
- ? this.format.stringify(date)
401
- : formatDate(date, this.format);
402
- },
403
-
404
- parse(value) {
405
- return (isPlainObject(this.format) && typeof this.format.parse === "function")
406
- ? this.format.parse(value)
407
- : parseDate(value, this.format);
408
- },
409
-
410
- isValidValue(value) {
411
- const { value2date } = this.transform;
412
- return isValidDate(value2date(value));
413
- },
414
-
415
- isValidRangeValue(value) {
416
- const { value2date } = this.transform;
417
- return Array.isArray(value) && value.length === 2 && this.isValidValue(value[0]) &&
418
- this.isValidValue(value[1]) && (value2date(value[1]).getTime() >= value2date(value[0]).getTime());
419
- },
420
-
421
- dateEqual(a, b) {
422
- return isDateObject(a) && isDateObject(b) && a.getTime() === b.getTime();
423
- },
424
-
425
- rangeEqual(a, b) {
426
- return Array.isArray(a) && Array.isArray(b) && a.length === b.length && a.every((item, index) => this.dateEqual(item, b[index]));
427
- },
428
-
429
- selectRange(range) {
430
- if (typeof range.onClick === "function") {
431
- const close = range.onClick(this);
432
- if (close !== false) {
433
- this.closePopup();
434
- }
435
- } else {
436
- this.currentValue = [new Date(range.start), new Date(range.end)];
437
- this.updateDate(true);
438
- this.closePopup();
439
- }
440
- },
441
-
442
- clearDate() {
443
- const date = this.range ? [null, null] : null;
444
- this.currentValue = date;
445
- this.updateDate(true);
446
- this.$emit("clear");
447
- },
448
-
449
- confirmDate() {
450
- const valid = this.range ? isValidRangeDate(this.currentValue) : isValidDate(this.currentValue);
451
- if (valid) {
452
- this.updateDate(true);
453
- }
454
- this.emitDate("confirm");
455
- this.closePopup();
456
- },
457
-
458
- updateDate(confirm = false) {
459
- if ((this.confirm && !confirm) || this.disabled) {
460
- return false;
461
- }
462
- const equal = this.range ? this.rangeEqual(this.value, this.currentValue) : this.dateEqual(this.value, this.currentValue);
463
- if (equal) {
464
- return false;
465
- }
466
- this.emitDate("input");
467
- this.emitDate("change");
468
- return true;
469
- },
470
-
471
- emitDate(eventName) {
472
- const { date2value } = this.transform;
473
- const value = this.range
474
- ? this.currentValue.map(date2value)
475
- : date2value(this.currentValue);
476
- this.$emit(eventName, value);
477
- },
478
-
479
- handleValueChange(value) {
480
- const { value2date } = this.transform;
481
- if (this.range) {
482
- this.currentValue = this.isValidRangeValue(value) ? value.map(value2date) : [null, null];
483
- } else {
484
- this.currentValue = this.isValidValue(value) ? value2date(value) : null;
485
- }
486
- },
487
-
488
- selectDate(date) {
489
- this.currentValue = date;
490
- this.updateDate() && this.closePopup();
491
- this.setCloseFocus();
492
- },
493
-
494
- selectStartDate(date) {
495
- this.currentValue[0] = date;
496
- if (this.currentValue[1]) {
497
- this.updateDate();
498
- }
499
- },
500
-
501
- selectEndDate(date) {
502
- this.currentValue[1] = date;
503
- if (this.currentValue[0]) {
504
- this.updateDate();
505
- }
506
- },
507
-
508
- selectTime(time, close) {
509
- this.currentValue = time;
510
- this.updateDate() && close && this.closePopup();
511
- if (close) {
512
- this.setCloseFocus();
513
- }
514
- },
515
-
516
- selectStartTime(time) {
517
- this.selectStartDate(time);
518
- },
519
-
520
- selectEndTime(time) {
521
- this.selectEndDate(time);
522
- },
523
-
524
- showPopup() {
525
- if (this.disabled) {
526
- return;
527
- }
528
- this.popupVisible = true;
529
- },
530
-
531
- closePopup(isSetFocusByClose) {
532
- this.popupVisible = false;
533
- if (isSetFocusByClose) {
534
- this.setCloseFocus();
535
- }
536
- },
537
-
538
- getPopupSize(element) {
539
- const originalDisplay = element.style.display;
540
- const originalVisibility = element.style.visibility;
541
- element.style.display = "block";
542
- element.style.visibility = "hidden";
543
- const styles = window.getComputedStyle(element);
544
- const width = element.offsetWidth + parseInt(styles.marginLeft) + parseInt(styles.marginRight);
545
- const height = element.offsetHeight + parseInt(styles.marginTop) + parseInt(styles.marginBottom);
546
- const result = { width, height };
547
- element.style.display = originalDisplay;
548
- element.style.visibility = originalVisibility;
549
- return result;
550
- },
551
-
552
- displayPopup() {
553
- if (!this.$el?.getBoundingClientRect) {
554
- return;
555
- }
556
-
557
- const dw = document.documentElement.clientWidth;
558
- const dh = document.documentElement.clientHeight;
559
- const InputRect = this.$el.getBoundingClientRect();
560
- const PopupRect = this._popupRect || (this._popupRect = this.getPopupSize(this.$refs.calendar));
561
- const position = {};
562
- let offsetRelativeToInputX = 0;
563
- let offsetRelativeToInputY = 0;
564
- if (this.appendToBody) {
565
- offsetRelativeToInputX = window.scrollX + InputRect.left;
566
- offsetRelativeToInputY = window.scrollY + InputRect.top;
567
- }
568
- if (
569
- dw - InputRect.left < PopupRect.width &&
570
- InputRect.right < PopupRect.width
571
- ) {
572
- position.left = offsetRelativeToInputX - InputRect.left + 1 + "px";
573
- } else if (InputRect.left + InputRect.width / 2 <= dw / 2) {
574
- position.left = offsetRelativeToInputX + "px";
575
- } else {
576
- position.left = offsetRelativeToInputX + InputRect.width - PopupRect.width + "px";
577
- }
578
- if (
579
- InputRect.top <= PopupRect.height &&
580
- dh - InputRect.bottom <= PopupRect.height
581
- ) {
582
- position.top = offsetRelativeToInputY + dh - InputRect.top - PopupRect.height + "px";
583
- } else if (InputRect.top + InputRect.height / 2 <= dh / 2) {
584
- position.top = offsetRelativeToInputY + InputRect.height + "px";
585
- } else {
586
- position.top = offsetRelativeToInputY - PopupRect.height + "px";
587
- }
588
- if (position.top !== this.position.top || position.left !== this.position.left) {
589
- this.position = position;
590
- }
591
- },
592
-
593
- blur() {
594
- this.$refs.input.blur();
595
- },
596
-
597
- handleBlur(event) {
598
- this.$emit("blur", event);
599
- },
600
-
601
- handleFocus(event) {
602
- if (!this.popupVisible) {
603
- this.showPopup();
604
- }
605
- this.$emit("focus", event);
606
- },
607
-
608
- handleKeydown($event) {
609
- const KEY_CODE = $event.keyCode;
610
- if (KEY_CODE === keysCode.tab || KEY_CODE === keysCode.enter) {
611
- // ie emit the watch before the change event
612
- this.handleChange();
613
- this.userInput = null;
614
- this.closePopup();
615
- } else if (KEY_CODE === keysCode.arrowUp || KEY_CODE === keysCode.arrowDown) {
616
- this.setFocusToPanel();
617
- $event.stopPropagation();
618
- $event.preventDefault();
619
- }
620
- },
621
-
622
- handleInput(event) {
623
- this.userInput = event.target.value;
624
- },
625
-
626
- handleChange() {
627
- if (this.editable && this.userInput !== null) {
628
- let value = this.text;
629
- const checkDate = this.$refs.calendarPanel.isDisabledTime;
630
- if (!value) {
631
- this.clearDate();
632
- return;
633
- }
634
- if (this.range) {
635
- const range = value.split(` ${ this.rangeSeparator } `);
636
- if (range.length === 2) {
637
- const start = this.parse(range[0]);
638
- const end = this.parse(range[1]);
639
- if (start && end && !checkDate(start, null, end) && !checkDate(end, start, null)) {
640
- this.currentValue = [start, end];
641
- this.updateDate(true);
642
- this.closePopup();
643
- return;
644
- }
645
- }
646
- } else {
647
- if (this.type === "time") {
648
- value = `${ moment().format("DD.MM.YYYY") } ${ value }`;
649
- }
650
- const date = this.parse(value);
651
- if (date && !checkDate(date, null, null)) {
652
- this.currentValue = date;
653
- this.updateDate(true);
654
- this.closePopup();
655
- return;
656
- }
657
- }
658
- this.$emit("inputError", value);
659
- }
660
- },
661
-
662
- setFocusToPanel() {
663
- this.$refs.calendarPanel.setFocusToActivePanelFromParent();
664
- },
665
-
666
- setCloseFocus() {
667
- this.$refs.focusByClose.focus();
668
- },
669
- },
670
- };
1
+ import PuxDatepickerCalendarPanel from "./PuxDatepickerCalendarPanel/PuxDatepickerCalendarPanel.vue";
2
+ import PuxDatepickerIcon from "./PuxDatepickerIcon/PuxDatepickerIcon.vue";
3
+ import {
4
+ AButton,
5
+ } from "aloha-vue";
6
+
7
+ import Languages from "./locale/languages";
8
+ import keysCode from "./utils/keysCode";
9
+ import moment from "moment";
10
+ import {
11
+ formatDate,
12
+ isDateObject,
13
+ isPlainObject,
14
+ isValidDate,
15
+ isValidRangeDate,
16
+ parseDate,
17
+ throttle,
18
+ } from "./utils";
19
+ import {
20
+ gettext,
21
+ } from "../../functions/utils";
22
+ import {
23
+ transformDate,
24
+ } from "./utils/transform";
25
+
26
+
27
+ // @vue/component
28
+ export default {
29
+ name: "DatePicker",
30
+ components: {
31
+ AButton,
32
+ PuxDatepickerCalendarPanel,
33
+ PuxDatepickerIcon,
34
+ },
35
+ props: {
36
+ id: {
37
+ type: String,
38
+ required: true,
39
+ },
40
+ value: {
41
+ type: [String, Number, Boolean, Array, Object, Date, Function, Symbol],
42
+ default: undefined,
43
+ },
44
+ valueType: {
45
+ default: "date",
46
+ validator: function(value) {
47
+ return ["timestamp", "format", "date"].indexOf(value) !== -1 || isPlainObject(value);
48
+ },
49
+ },
50
+ placeholder: {
51
+ type: String,
52
+ default: null,
53
+ },
54
+ lang: {
55
+ type: String,
56
+ default: "de",
57
+ required: false,
58
+ },
59
+ languages: {
60
+ type: Object,
61
+ default: undefined,
62
+ required: false,
63
+ },
64
+ format: {
65
+ type: [String, Object],
66
+ default: "YYYY-MM-DD",
67
+ },
68
+ dateFormat: {
69
+ type: String, // format the time header and date tooltip
70
+ default: undefined,
71
+ },
72
+ type: {
73
+ type: String,
74
+ default: "date", // ["date", "datetime"] zendy added "month", "year", mxie added "time"
75
+ },
76
+ range: {
77
+ type: Boolean,
78
+ default: false,
79
+ },
80
+ rangeSeparator: {
81
+ type: String,
82
+ default: "~",
83
+ },
84
+ width: {
85
+ type: [String, Number],
86
+ default: null,
87
+ },
88
+ confirmText: {
89
+ type: String,
90
+ default: "OK",
91
+ },
92
+ confirm: {
93
+ type: Boolean,
94
+ default: false,
95
+ },
96
+ editable: {
97
+ type: Boolean,
98
+ default: true,
99
+ },
100
+ disabled: {
101
+ type: Boolean,
102
+ default: false,
103
+ },
104
+ clearable: {
105
+ type: Boolean,
106
+ default: true,
107
+ },
108
+ shortcuts: {
109
+ type: [Boolean, Array],
110
+ default: true,
111
+ },
112
+ inputName: {
113
+ type: String,
114
+ default: "date",
115
+ },
116
+ inputClass: {
117
+ type: [String, Number, Boolean, Array, Object, Date, Function, Symbol],
118
+ default: "pux_datepicker__input",
119
+ },
120
+ inputAttr: {
121
+ type: Object,
122
+ default: undefined,
123
+ },
124
+ appendToBody: {
125
+ type: Boolean,
126
+ default: false,
127
+ },
128
+ popupStyle: {
129
+ type: Object,
130
+ default: undefined,
131
+ },
132
+ iconDay: {
133
+ type: [Number, String],
134
+ default: undefined,
135
+ },
136
+ },
137
+ emits: [
138
+ "blur",
139
+ "change",
140
+ "clear",
141
+ "confirm",
142
+ "focus",
143
+ "input",
144
+ "inputError",
145
+ "changeCalendarMonth",
146
+ "changeCalendarYear",
147
+ ],
148
+ data() {
149
+ return {
150
+ currentValue: this.range ? [null, null] : null,
151
+ userInput: null,
152
+ popupVisible: false,
153
+ position: {},
154
+ };
155
+ },
156
+ computed: {
157
+ transform() {
158
+ const type = this.valueType;
159
+ if (isPlainObject(type)) {
160
+ return { ...transformDate.date, ...type };
161
+ }
162
+ if (type === "format") {
163
+ return {
164
+ value2date: this.parse.bind(this),
165
+ date2value: this.stringify.bind(this),
166
+ };
167
+ }
168
+ return transformDate[type] || transformDate.date;
169
+ },
170
+
171
+ languagesLocal() {
172
+ if (isPlainObject(this.languages)) {
173
+ return {
174
+ ...Languages,
175
+ ...this.languages,
176
+ };
177
+ }
178
+ return Languages;
179
+ },
180
+
181
+ currentLanguage() {
182
+ return this.languagesLocal[this.lang];
183
+ },
184
+
185
+ innerPlaceholder() {
186
+ if (typeof this.placeholder === "string") {
187
+ return gettext(this.placeholder);
188
+ }
189
+ if (this.range) {
190
+ return this.currentLanguage.placeholder.dateRange;
191
+ }
192
+ if (this.type === "time") {
193
+ return this.currentLanguage.placeholder.time;
194
+ }
195
+ return this.currentLanguage.placeholder.date;
196
+ },
197
+
198
+ text() {
199
+ if (this.userInput !== null) {
200
+ return this.userInput;
201
+ }
202
+ const {
203
+ value2date,
204
+ } = this.transform;
205
+ if (!this.range) {
206
+ return this.isValidValue(this.value)
207
+ ? this.stringify(value2date(this.value))
208
+ : "";
209
+ }
210
+ return this.isValidRangeValue(this.value)
211
+ ? `${ this.stringify(value2date(this.value[0])) } ${ this.rangeSeparator } ${ this.stringify(value2date(this.value[1])) }`
212
+ : "";
213
+ },
214
+
215
+ computedWidth() {
216
+ if (typeof this.width === "number" || (typeof this.width === "string" && /^\d+$/.test(this.width))) {
217
+ return this.width + "px";
218
+ }
219
+ return this.width;
220
+ },
221
+
222
+ showClearIcon() {
223
+ return !this.disabled && this.clearable && (this.range ? this.isValidRangeValue(this.value) : this.isValidValue(this.value));
224
+ },
225
+
226
+ innerType() {
227
+ return String(this.type).toLowerCase();
228
+ },
229
+
230
+ innerShortcuts() {
231
+ if (Array.isArray(this.shortcuts)) {
232
+ return this.shortcuts;
233
+ }
234
+ if (this.shortcuts === false) {
235
+ return [];
236
+ }
237
+ const pickers = this.currentLanguage.pickers;
238
+ const arr = [
239
+ {
240
+ text: pickers[0],
241
+ onClick(self) {
242
+ self.currentValue = [new Date(), new Date(Date.now() + 3600 * 1000 * 24 * 7)];
243
+ self.updateDate(true);
244
+ },
245
+ },
246
+ {
247
+ text: pickers[1],
248
+ onClick(self) {
249
+ self.currentValue = [new Date(), new Date(Date.now() + 3600 * 1000 * 24 * 30)];
250
+ self.updateDate(true);
251
+ },
252
+ },
253
+ {
254
+ text: pickers[2],
255
+ onClick(self) {
256
+ self.currentValue = [new Date(Date.now() - 3600 * 1000 * 24 * 7), new Date()];
257
+ self.updateDate(true);
258
+ },
259
+ },
260
+ {
261
+ text: pickers[3],
262
+ onClick(self) {
263
+ self.currentValue = [new Date(Date.now() - 3600 * 1000 * 24 * 30), new Date()];
264
+ self.updateDate(true);
265
+ },
266
+ },
267
+ ];
268
+ return arr;
269
+ },
270
+
271
+ innerDateFormat() {
272
+ if (this.dateFormat) {
273
+ return this.dateFormat;
274
+ }
275
+ if (typeof this.format !== "string") {
276
+ return "YYYY-MM-DD";
277
+ }
278
+ if (this.innerType === "date") {
279
+ return this.format;
280
+ }
281
+ return this.format.replace(/[Hh]+.*[msSaAZ]|\[.*?\]/g, "").trim() || "YYYY-MM-DD";
282
+ },
283
+
284
+ innerPopupStyle() {
285
+ return { ...this.position, ...this.popupStyle };
286
+ },
287
+
288
+ idForPanel() {
289
+ return `${ this.id }_panel`;
290
+ },
291
+
292
+ idsForPanelRange() {
293
+ return [
294
+ `${ this.idForPanel }_0`,
295
+ `${ this.idForPanel }_1`,
296
+ ];
297
+ },
298
+
299
+ ariaHiddenForCalendar() {
300
+ return `${ !this.popupVisible }`;
301
+ },
302
+
303
+ ariaExpandedForCalendar() {
304
+ return `${ this.popupVisible }`;
305
+ },
306
+
307
+ idForCalendar() {
308
+ return `${ this.id }_calendar`;
309
+ },
310
+
311
+ modalBody() {
312
+ return document.querySelector("div.modal_body"); // Workaround till updated by ADatePicker
313
+ },
314
+ },
315
+ watch: {
316
+ value: {
317
+ immediate: true,
318
+ handler: "handleValueChange",
319
+ },
320
+
321
+ popupVisible(val) {
322
+ if (val) {
323
+ this.initCalendar();
324
+ } else {
325
+ this.userInput = null;
326
+ this.blur();
327
+ }
328
+ },
329
+ },
330
+ mounted() {
331
+ if (this.appendToBody) {
332
+ this.popupElm = this.$refs.calendar;
333
+ document.body.appendChild(this.popupElm);
334
+ }
335
+ // clickoutside close popup
336
+ let mousedownTarget;
337
+ this._bindDocmentMousedown = evt => {
338
+ mousedownTarget = evt.target;
339
+ };
340
+ this._bindDocumentMouseup = evt => {
341
+ const mouseupTarget = evt.target;
342
+ const el = this.$el;
343
+ const { popupElm } = this;
344
+ if (
345
+ !mousedownTarget ||
346
+ !mouseupTarget ||
347
+ el.contains(mousedownTarget) ||
348
+ el.contains(mouseupTarget) ||
349
+ (popupElm && (popupElm.contains(mousedownTarget) || popupElm.contains(mouseupTarget)))
350
+ ) {
351
+ return;
352
+ }
353
+ mousedownTarget = null;
354
+ this.closePopup();
355
+ };
356
+ this._startEvt = "mousedown";
357
+ this._endEvt = "mouseup";
358
+ if ("ontouchend" in document) {
359
+ this._startEvt = "touchstart";
360
+ this._endEvt = "touchend";
361
+ }
362
+ document.addEventListener(this._startEvt, this._bindDocmentMousedown);
363
+ document.addEventListener(this._endEvt, this._bindDocumentMouseup);
364
+
365
+ this._displayPopup = throttle(() => {
366
+ if (this.popupVisible) {
367
+ this.displayPopup();
368
+ }
369
+ }, 200);
370
+ window.addEventListener("resize", this._displayPopup);
371
+ window.addEventListener("scroll", this._displayPopup);
372
+
373
+ // Workaround till updated by ADatePicker
374
+ if (this.modalBody) {
375
+ this.modalBody.addEventListener("scroll", this._displayPopup);
376
+ }
377
+ },
378
+ beforeUnmount() {
379
+ if (this.popupElm && this.popupElm.parentNode === document.body) {
380
+ document.body.removeChild(this.popupElm);
381
+ }
382
+ document.removeEventListener(this._startEvt, this._bindDocmentMousedown);
383
+ document.removeEventListener(this._endEvt, this._bindDocumentMouseup);
384
+ window.removeEventListener("resize", this._displayPopup);
385
+ window.removeEventListener("scroll", this._displayPopup);
386
+
387
+ // Workaround till updated by ADatePicker
388
+ if (this.modalBody) {
389
+ this.modalBody.removeEventListener("scroll", this._displayPopup);
390
+ }
391
+ },
392
+ methods: {
393
+ initCalendar() {
394
+ this.handleValueChange(this.value);
395
+ this.displayPopup();
396
+ },
397
+
398
+ stringify(date) {
399
+ return (isPlainObject(this.format) && typeof this.format.stringify === "function")
400
+ ? this.format.stringify(date)
401
+ : formatDate(date, this.format);
402
+ },
403
+
404
+ parse(value) {
405
+ return (isPlainObject(this.format) && typeof this.format.parse === "function")
406
+ ? this.format.parse(value)
407
+ : parseDate(value, this.format);
408
+ },
409
+
410
+ isValidValue(value) {
411
+ const { value2date } = this.transform;
412
+ return isValidDate(value2date(value));
413
+ },
414
+
415
+ isValidRangeValue(value) {
416
+ const { value2date } = this.transform;
417
+ return Array.isArray(value) && value.length === 2 && this.isValidValue(value[0]) &&
418
+ this.isValidValue(value[1]) && (value2date(value[1]).getTime() >= value2date(value[0]).getTime());
419
+ },
420
+
421
+ dateEqual(a, b) {
422
+ return isDateObject(a) && isDateObject(b) && a.getTime() === b.getTime();
423
+ },
424
+
425
+ rangeEqual(a, b) {
426
+ return Array.isArray(a) && Array.isArray(b) && a.length === b.length && a.every((item, index) => this.dateEqual(item, b[index]));
427
+ },
428
+
429
+ selectRange(range) {
430
+ if (typeof range.onClick === "function") {
431
+ const close = range.onClick(this);
432
+ if (close !== false) {
433
+ this.closePopup();
434
+ }
435
+ } else {
436
+ this.currentValue = [new Date(range.start), new Date(range.end)];
437
+ this.updateDate(true);
438
+ this.closePopup();
439
+ }
440
+ },
441
+
442
+ clearDate() {
443
+ const date = this.range ? [null, null] : null;
444
+ this.currentValue = date;
445
+ this.updateDate(true);
446
+ this.$emit("clear");
447
+ },
448
+
449
+ confirmDate() {
450
+ const valid = this.range ? isValidRangeDate(this.currentValue) : isValidDate(this.currentValue);
451
+ if (valid) {
452
+ this.updateDate(true);
453
+ }
454
+ this.emitDate("confirm");
455
+ this.closePopup();
456
+ },
457
+
458
+ updateDate(confirm = false) {
459
+ if ((this.confirm && !confirm) || this.disabled) {
460
+ return false;
461
+ }
462
+ const equal = this.range ? this.rangeEqual(this.value, this.currentValue) : this.dateEqual(this.value, this.currentValue);
463
+ if (equal) {
464
+ return false;
465
+ }
466
+ this.emitDate("input");
467
+ this.emitDate("change");
468
+ return true;
469
+ },
470
+
471
+ emitDate(eventName) {
472
+ const { date2value } = this.transform;
473
+ const value = this.range
474
+ ? this.currentValue.map(date2value)
475
+ : date2value(this.currentValue);
476
+ this.$emit(eventName, value);
477
+ },
478
+
479
+ handleValueChange(value) {
480
+ const { value2date } = this.transform;
481
+ if (this.range) {
482
+ this.currentValue = this.isValidRangeValue(value) ? value.map(value2date) : [null, null];
483
+ } else {
484
+ this.currentValue = this.isValidValue(value) ? value2date(value) : null;
485
+ }
486
+ },
487
+
488
+ selectDate(date) {
489
+ this.currentValue = date;
490
+ this.updateDate() && this.closePopup();
491
+ this.setCloseFocus();
492
+ },
493
+
494
+ selectStartDate(date) {
495
+ this.currentValue[0] = date;
496
+ if (this.currentValue[1]) {
497
+ this.updateDate();
498
+ }
499
+ },
500
+
501
+ selectEndDate(date) {
502
+ this.currentValue[1] = date;
503
+ if (this.currentValue[0]) {
504
+ this.updateDate();
505
+ }
506
+ },
507
+
508
+ selectTime(time, close) {
509
+ this.currentValue = time;
510
+ this.updateDate() && close && this.closePopup();
511
+ if (close) {
512
+ this.setCloseFocus();
513
+ }
514
+ },
515
+
516
+ selectStartTime(time) {
517
+ this.selectStartDate(time);
518
+ },
519
+
520
+ selectEndTime(time) {
521
+ this.selectEndDate(time);
522
+ },
523
+
524
+ showPopup() {
525
+ if (this.disabled) {
526
+ return;
527
+ }
528
+ this.popupVisible = true;
529
+ },
530
+
531
+ closePopup(isSetFocusByClose) {
532
+ this.popupVisible = false;
533
+ if (isSetFocusByClose) {
534
+ this.setCloseFocus();
535
+ }
536
+ },
537
+
538
+ getPopupSize(element) {
539
+ const originalDisplay = element.style.display;
540
+ const originalVisibility = element.style.visibility;
541
+ element.style.display = "block";
542
+ element.style.visibility = "hidden";
543
+ const styles = window.getComputedStyle(element);
544
+ const width = element.offsetWidth + parseInt(styles.marginLeft) + parseInt(styles.marginRight);
545
+ const height = element.offsetHeight + parseInt(styles.marginTop) + parseInt(styles.marginBottom);
546
+ const result = { width, height };
547
+ element.style.display = originalDisplay;
548
+ element.style.visibility = originalVisibility;
549
+ return result;
550
+ },
551
+
552
+ displayPopup() {
553
+ if (!this.$el?.getBoundingClientRect) {
554
+ return;
555
+ }
556
+
557
+ const dw = document.documentElement.clientWidth;
558
+ const dh = document.documentElement.clientHeight;
559
+ const InputRect = this.$el.getBoundingClientRect();
560
+ const PopupRect = this._popupRect || (this._popupRect = this.getPopupSize(this.$refs.calendar));
561
+ const position = {};
562
+ let offsetRelativeToInputX = 0;
563
+ let offsetRelativeToInputY = 0;
564
+ if (this.appendToBody) {
565
+ offsetRelativeToInputX = window.scrollX + InputRect.left;
566
+ offsetRelativeToInputY = window.scrollY + InputRect.top;
567
+ }
568
+ if (
569
+ dw - InputRect.left < PopupRect.width &&
570
+ InputRect.right < PopupRect.width
571
+ ) {
572
+ position.left = offsetRelativeToInputX - InputRect.left + 1 + "px";
573
+ } else if (InputRect.left + InputRect.width / 2 <= dw / 2) {
574
+ position.left = offsetRelativeToInputX + "px";
575
+ } else {
576
+ position.left = offsetRelativeToInputX + InputRect.width - PopupRect.width + "px";
577
+ }
578
+ if (
579
+ InputRect.top <= PopupRect.height &&
580
+ dh - InputRect.bottom <= PopupRect.height
581
+ ) {
582
+ position.top = offsetRelativeToInputY + dh - InputRect.top - PopupRect.height + "px";
583
+ } else if (InputRect.top + InputRect.height / 2 <= dh / 2) {
584
+ position.top = offsetRelativeToInputY + InputRect.height + "px";
585
+ } else {
586
+ position.top = offsetRelativeToInputY - PopupRect.height + "px";
587
+ }
588
+ if (position.top !== this.position.top || position.left !== this.position.left) {
589
+ this.position = position;
590
+ }
591
+ },
592
+
593
+ blur() {
594
+ this.$refs.input.blur();
595
+ },
596
+
597
+ handleBlur(event) {
598
+ this.$emit("blur", event);
599
+ },
600
+
601
+ handleFocus(event) {
602
+ if (!this.popupVisible) {
603
+ this.showPopup();
604
+ }
605
+ this.$emit("focus", event);
606
+ },
607
+
608
+ handleKeydown($event) {
609
+ const KEY_CODE = $event.keyCode;
610
+ if (KEY_CODE === keysCode.tab || KEY_CODE === keysCode.enter) {
611
+ // ie emit the watch before the change event
612
+ this.handleChange();
613
+ this.userInput = null;
614
+ this.closePopup();
615
+ } else if (KEY_CODE === keysCode.arrowUp || KEY_CODE === keysCode.arrowDown) {
616
+ this.setFocusToPanel();
617
+ $event.stopPropagation();
618
+ $event.preventDefault();
619
+ }
620
+ },
621
+
622
+ handleInput(event) {
623
+ this.userInput = event.target.value;
624
+ },
625
+
626
+ handleChange() {
627
+ if (this.editable && this.userInput !== null) {
628
+ let value = this.text;
629
+ const checkDate = this.$refs.calendarPanel.isDisabledTime;
630
+ if (!value) {
631
+ this.clearDate();
632
+ return;
633
+ }
634
+ if (this.range) {
635
+ const range = value.split(` ${ this.rangeSeparator } `);
636
+ if (range.length === 2) {
637
+ const start = this.parse(range[0]);
638
+ const end = this.parse(range[1]);
639
+ if (start && end && !checkDate(start, null, end) && !checkDate(end, start, null)) {
640
+ this.currentValue = [start, end];
641
+ this.updateDate(true);
642
+ this.closePopup();
643
+ return;
644
+ }
645
+ }
646
+ } else {
647
+ if (this.type === "time") {
648
+ value = `${ moment().format("DD.MM.YYYY") } ${ value }`;
649
+ }
650
+ const date = this.parse(value);
651
+ if (date && !checkDate(date, null, null)) {
652
+ this.currentValue = date;
653
+ this.updateDate(true);
654
+ this.closePopup();
655
+ return;
656
+ }
657
+ }
658
+ this.$emit("inputError", value);
659
+ }
660
+ },
661
+
662
+ setFocusToPanel() {
663
+ this.$refs.calendarPanel.setFocusToActivePanelFromParent();
664
+ },
665
+
666
+ setCloseFocus() {
667
+ this.$refs.focusByClose.focus();
668
+ },
669
+ },
670
+ };