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