aloha-vue 3.0.0-alpha.1 → 3.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/AGENTS.md +280 -0
  2. package/CHANGELOG.md +39 -9
  3. package/README.md +27 -0
  4. package/dist/aloha-vue.css +1848 -184
  5. package/dist/aloha-vue.css.map +1 -1
  6. package/dist/aloha-vue.es.js +32678 -26559
  7. package/dist/aloha-vue.umd.js +132 -112
  8. package/llms/components/accordion.md +34 -0
  9. package/llms/components/alert.md +600 -0
  10. package/llms/components/avatar.md +252 -0
  11. package/llms/components/button.md +1759 -0
  12. package/llms/components/calendar.md +1729 -0
  13. package/llms/components/carousel.md +1083 -0
  14. package/llms/components/checkbox.md +2852 -0
  15. package/llms/components/cloak.md +106 -0
  16. package/llms/components/color-picker.md +501 -0
  17. package/llms/components/confirm.md +272 -0
  18. package/llms/components/datepicker-range.md +380 -0
  19. package/llms/components/datepicker.md +806 -0
  20. package/llms/components/disclosure.md +768 -0
  21. package/llms/components/dropdown.md +1045 -0
  22. package/llms/components/element.md +1951 -0
  23. package/llms/components/fieldset-children.md +621 -0
  24. package/llms/components/fieldset.md +536 -0
  25. package/llms/components/filters-right.md +66 -0
  26. package/llms/components/filters.md +324 -0
  27. package/llms/components/form-element.md +145 -0
  28. package/llms/components/form.md +299 -0
  29. package/llms/components/group-button-dropdown.md +674 -0
  30. package/llms/components/group.md +51 -0
  31. package/llms/components/input-currency.md +870 -0
  32. package/llms/components/input-file.md +634 -0
  33. package/llms/components/input-number-range.md +335 -0
  34. package/llms/components/input-number.md +290 -0
  35. package/llms/components/input-otp.md +778 -0
  36. package/llms/components/input.md +588 -0
  37. package/llms/components/json.md +375 -0
  38. package/llms/components/link-copy.md +176 -0
  39. package/llms/components/link.md +1241 -0
  40. package/llms/components/list.md +803 -0
  41. package/llms/components/loading.md +271 -0
  42. package/llms/components/menu-basic.md +514 -0
  43. package/llms/components/modal-wizard.md +222 -0
  44. package/llms/components/modal.md +921 -0
  45. package/llms/components/multiselect-ordered.md +952 -0
  46. package/llms/components/notification.md +14 -0
  47. package/llms/components/one-checkbox.md +498 -0
  48. package/llms/components/pagination-pages.md +395 -0
  49. package/llms/components/pagination.md +499 -0
  50. package/llms/components/progress-circle.md +71 -0
  51. package/llms/components/progress.md +658 -0
  52. package/llms/components/radio.md +2747 -0
  53. package/llms/components/rate.md +772 -0
  54. package/llms/components/router-link-config.md +235 -0
  55. package/llms/components/select-icon.md +425 -0
  56. package/llms/components/select-style.md +793 -0
  57. package/llms/components/select.md +1748 -0
  58. package/llms/components/show-more.md +992 -0
  59. package/llms/components/skeleton.md +293 -0
  60. package/llms/components/slider.md +567 -0
  61. package/llms/components/spinner.md +175 -0
  62. package/llms/components/switch.md +626 -0
  63. package/llms/components/table-complex.md +141 -0
  64. package/llms/components/table-form.md +932 -0
  65. package/llms/components/table-pagination.md +599 -0
  66. package/llms/components/table-preview-down.md +79 -0
  67. package/llms/components/table-preview.md +159 -0
  68. package/llms/components/table-simple.md +512 -0
  69. package/llms/components/table-sort.md +741 -0
  70. package/llms/components/table-tree.md +115 -0
  71. package/llms/components/tabs.md +1181 -0
  72. package/llms/components/template.md +127 -0
  73. package/llms/components/textarea.md +534 -0
  74. package/llms/components/tooltip.md +447 -0
  75. package/llms/components/translation.md +236 -0
  76. package/llms/components/tree.md +784 -0
  77. package/llms/components/validated-json.md +218 -0
  78. package/llms/components/wizard.md +3225 -0
  79. package/llms/css/badge.md +21 -0
  80. package/llms/css/colors.md +9 -0
  81. package/llms/css/columns.md +158 -0
  82. package/llms/css/display.md +9 -0
  83. package/llms/css/float.md +5 -0
  84. package/llms/css/overflow.md +5 -0
  85. package/llms/css/position.md +13 -0
  86. package/llms/css/screenreader.md +5 -0
  87. package/llms/css/spacing.md +5 -0
  88. package/llms/css/text.md +140 -0
  89. package/llms/css/theming.md +174 -0
  90. package/llms/css/utilities.md +135 -0
  91. package/llms/css/vertical-align.md +5 -0
  92. package/llms/directives/on-hooks.md +61 -0
  93. package/llms/functions/filter-boolean.md +91 -0
  94. package/llms/functions/filter-capitalize.md +46 -0
  95. package/llms/functions/filter-currency.md +80 -0
  96. package/llms/functions/filter-date-relative.md +66 -0
  97. package/llms/functions/filter-date.md +64 -0
  98. package/llms/functions/filter-default-for-empty.md +58 -0
  99. package/llms/functions/filter-duration.md +97 -0
  100. package/llms/functions/filter-email.md +49 -0
  101. package/llms/functions/filter-escape-html.md +43 -0
  102. package/llms/functions/filter-file-size.md +122 -0
  103. package/llms/functions/filter-float.md +80 -0
  104. package/llms/functions/filter-initials.md +103 -0
  105. package/llms/functions/filter-json.md +167 -0
  106. package/llms/functions/filter-key-value.md +38 -0
  107. package/llms/functions/filter-limit-to.md +69 -0
  108. package/llms/functions/filter-link.md +88 -0
  109. package/llms/functions/filter-list.md +271 -0
  110. package/llms/functions/filter-lower-case.md +46 -0
  111. package/llms/functions/filter-mask.md +64 -0
  112. package/llms/functions/filter-number-compact.md +89 -0
  113. package/llms/functions/filter-percent.md +67 -0
  114. package/llms/functions/filter-property-by-value.md +51 -0
  115. package/llms/functions/filter-search-highlight.md +97 -0
  116. package/llms/functions/filter-strip-html.md +44 -0
  117. package/llms/functions/filter-title-case.md +44 -0
  118. package/llms/functions/filter-truncate-middle.md +64 -0
  119. package/llms/functions/filter-upper-case.md +46 -0
  120. package/llms/functions/filter-value-by-condition.md +120 -0
  121. package/llms/functions/utils-aorder-by.md +72 -0
  122. package/llms/functions/utils-asort-by.md +63 -0
  123. package/llms/functions/utils-get-total-nested-count.md +34 -0
  124. package/llms/functions/utils-is-array-of-arrays.md +45 -0
  125. package/llms/functions/utils-is-array-of-strings.md +49 -0
  126. package/llms/functions/utils-math-is-even.md +53 -0
  127. package/llms/functions/utils-math-is-odd.md +53 -0
  128. package/llms/installation/quick-start.md +71 -0
  129. package/llms/migrations/migrations-version1-to2.md +56 -0
  130. package/llms/migrations/migrations-version2-to3.md +298 -0
  131. package/llms/plugins/components-plugin.md +133 -0
  132. package/llms/plugins/icons-plugin.md +94 -0
  133. package/llms/plugins/mobile-plugin.md +59 -0
  134. package/llms/plugins/page-tab-title-plugin.md +57 -0
  135. package/llms/rest/scale.md +3 -0
  136. package/llms/rest/svg.md +3 -0
  137. package/package.json +45 -19
  138. package/scss/aloha-vue.scss +6 -1
  139. package/scss/components/AAvatar.scss +153 -0
  140. package/scss/components/ACalendar.scss +763 -0
  141. package/scss/components/ASkeleton.scss +119 -0
  142. package/scss/components/ATable.scss +82 -54
  143. package/scss/components/ATree.scss +209 -0
  144. package/scss/components/ui/AInputFile.scss +234 -11
  145. package/scss/components/ui/AInputOtp.scss +101 -0
  146. package/scss/components/ui/ARate.scss +150 -0
  147. package/scss/components/ui/ui.scss +3 -2
  148. package/scss/text/text_transform.scss +20 -0
  149. package/scss/tokens/tokens.scss +1 -0
  150. package/scss/utils/border_radius.scss +5 -1
  151. package/scss/utils/display.scss +8 -0
  152. package/scss/utils/interaction.scss +27 -0
  153. package/scss/utils/shadow.scss +12 -0
  154. package/src/AAlert/AAlert.js +19 -18
  155. package/src/AAlert/compositionAPI/IconAPI.js +6 -3
  156. package/src/{plugins/AAlertPlugin.js → AAlert/utils/icons.js} +5 -49
  157. package/src/AAvatar/AAvatar.js +190 -0
  158. package/src/AAvatar/__tests__/AAvatar.test.js +114 -0
  159. package/src/AAvatar/compositionAPI/AttributesAPI.js +56 -0
  160. package/src/AAvatar/compositionAPI/ColorAPI.js +39 -0
  161. package/src/AAvatar/compositionAPI/ImageAPI.js +30 -0
  162. package/src/AAvatar/compositionAPI/SizeAPI.js +45 -0
  163. package/src/AAvatar/const/index.js +14 -0
  164. package/src/AAvatar/i18n/AAvatarI18n.js +25 -0
  165. package/src/AAvatar/i18n/ar.json +8 -0
  166. package/src/AAvatar/i18n/de.json +8 -0
  167. package/src/AAvatar/i18n/en.json +8 -0
  168. package/src/AAvatar/i18n/es.json +8 -0
  169. package/src/AAvatar/i18n/fr.json +8 -0
  170. package/src/AAvatar/i18n/hr.json +8 -0
  171. package/src/AAvatar/i18n/it.json +8 -0
  172. package/src/AAvatar/i18n/nl.json +8 -0
  173. package/src/AAvatar/i18n/pl.json +8 -0
  174. package/src/AAvatar/i18n/ru.json +8 -0
  175. package/src/AAvatar/i18n/uk.json +8 -0
  176. package/src/AAvatar/utils/icons.js +3 -0
  177. package/src/AAvatarGroup/AAvatarGroup.js +117 -0
  178. package/src/ACalendar/ACalendar.js +1033 -0
  179. package/src/ACalendar/ACalendarPopover/ACalendarPopover.js +128 -0
  180. package/src/ACalendar/ACalendarPopover/compositionAPI/CloseAPI.js +49 -0
  181. package/src/ACalendar/ACalendarPopover/compositionAPI/PositionAPI.js +58 -0
  182. package/src/ACalendar/__tests__/ACalendar.interaction.test.js +258 -0
  183. package/src/ACalendar/__tests__/ACalendar.test.js +760 -0
  184. package/src/ACalendar/__tests__/ACalendar.views.test.js +182 -0
  185. package/src/ACalendar/__tests__/ics.test.js +157 -0
  186. package/src/ACalendar/__tests__/icsParse.test.js +210 -0
  187. package/src/ACalendar/__tests__/series.test.js +95 -0
  188. package/src/ACalendar/compositionAPI/AgendaAPI.js +29 -0
  189. package/src/ACalendar/compositionAPI/ClickAPI.js +59 -0
  190. package/src/ACalendar/compositionAPI/DisabledAPI.js +46 -0
  191. package/src/ACalendar/compositionAPI/DragAPI.js +232 -0
  192. package/src/ACalendar/compositionAPI/EventsAPI.js +144 -0
  193. package/src/ACalendar/compositionAPI/ExportAPI.js +44 -0
  194. package/src/ACalendar/compositionAPI/FocusAPI.js +105 -0
  195. package/src/ACalendar/compositionAPI/KeyboardEventAPI.js +146 -0
  196. package/src/ACalendar/compositionAPI/PeriodAPI.js +198 -0
  197. package/src/ACalendar/compositionAPI/PopoverAPI.js +55 -0
  198. package/src/ACalendar/compositionAPI/ResizeAPI.js +198 -0
  199. package/src/ACalendar/compositionAPI/SelectAPI.js +171 -0
  200. package/src/ACalendar/compositionAPI/TextsAPI.js +111 -0
  201. package/src/ACalendar/compositionAPI/WeekViewAPI.js +205 -0
  202. package/src/ACalendar/const/index.js +11 -0
  203. package/src/ACalendar/i18n/ACalendarI18n.js +25 -0
  204. package/src/ACalendar/i18n/ar.json +33 -0
  205. package/src/ACalendar/i18n/de.json +33 -0
  206. package/src/ACalendar/i18n/en.json +33 -0
  207. package/src/ACalendar/i18n/es.json +33 -0
  208. package/src/ACalendar/i18n/fr.json +33 -0
  209. package/src/ACalendar/i18n/hr.json +33 -0
  210. package/src/ACalendar/i18n/it.json +33 -0
  211. package/src/ACalendar/i18n/nl.json +33 -0
  212. package/src/ACalendar/i18n/pl.json +33 -0
  213. package/src/ACalendar/i18n/ru.json +33 -0
  214. package/src/ACalendar/i18n/uk.json +33 -0
  215. package/src/ACalendar/utils/dom.js +30 -0
  216. package/src/ACalendar/utils/icons.js +12 -0
  217. package/src/ACalendar/utils/ics.js +165 -0
  218. package/src/ACalendar/utils/icsParse.js +396 -0
  219. package/src/ACalendar/utils/series.js +140 -0
  220. package/src/ACalendar/utils/utils.js +355 -0
  221. package/src/ACalendar/utils/windowsTimeZones.js +150 -0
  222. package/src/ACarousel/ACarouselControls/ACarouselControlsIndicator/compositionAPI/IconAPI.js +6 -3
  223. package/src/ACarousel/utils/icons.js +12 -0
  224. package/src/ACloak/ACloak.js +11 -14
  225. package/src/AFilters/AFilters/AFilters.js +6 -6
  226. package/src/AGroupButtonDropdown/AGroupButtonDropdown.js +8 -8
  227. package/src/AIcon/Icons/ChevronDown.js +3 -0
  228. package/src/AIcon/Icons/ChevronUp.js +3 -0
  229. package/src/AIcon/Icons/Trash.js +4 -0
  230. package/src/ALoading/ALoading.js +10 -13
  231. package/src/AModal/AModal.js +20 -20
  232. package/src/AModalForm/AModalForm.js +25 -25
  233. package/src/AModalWizard/AModalWizard.js +19 -19
  234. package/src/ASkeleton/ASkeleton.js +131 -0
  235. package/src/ASkeleton/ASkeletonItem/ASkeletonItem.js +69 -0
  236. package/src/ASkeleton/__tests__/ASkeleton.test.js +110 -0
  237. package/src/ASkeleton/compositionAPI/ThrottleAPI.js +47 -0
  238. package/src/ASkeleton/i18n/ASkeletonI18n.js +25 -0
  239. package/src/ASkeleton/i18n/ar.json +3 -0
  240. package/src/ASkeleton/i18n/de.json +3 -0
  241. package/src/ASkeleton/i18n/en.json +3 -0
  242. package/src/ASkeleton/i18n/es.json +3 -0
  243. package/src/ASkeleton/i18n/fr.json +3 -0
  244. package/src/ASkeleton/i18n/hr.json +3 -0
  245. package/src/ASkeleton/i18n/it.json +3 -0
  246. package/src/ASkeleton/i18n/nl.json +3 -0
  247. package/src/ASkeleton/i18n/pl.json +3 -0
  248. package/src/ASkeleton/i18n/ru.json +3 -0
  249. package/src/ASkeleton/i18n/uk.json +3 -0
  250. package/src/ASpinner/ASpinner.js +8 -8
  251. package/src/ATable/ATable.js +9 -3
  252. package/src/ATable/ATableHeaderTh/compositionAPI/SortAPI.js +3 -3
  253. package/src/ATable/ATableTr/ATableTr.js +7 -1
  254. package/src/ATable/__tests__/ATable.RowStyles.test.js +80 -0
  255. package/src/ATree/ATree.js +549 -0
  256. package/src/ATree/__tests__/ATree.test.js +228 -0
  257. package/src/ATree/compositionAPI/CheckAPI.js +109 -0
  258. package/src/ATree/compositionAPI/ExpandAPI.js +142 -0
  259. package/src/ATree/compositionAPI/FilterAPI.js +71 -0
  260. package/src/ATree/compositionAPI/FocusAPI.js +78 -0
  261. package/src/ATree/compositionAPI/KeyboardAPI.js +117 -0
  262. package/src/ATree/compositionAPI/LoadAPI.js +49 -0
  263. package/src/ATree/compositionAPI/NodesAPI.js +141 -0
  264. package/src/ATree/i18n/ATreeI18n.js +25 -0
  265. package/src/ATree/i18n/ar.json +5 -0
  266. package/src/ATree/i18n/de.json +5 -0
  267. package/src/ATree/i18n/en.json +5 -0
  268. package/src/ATree/i18n/es.json +5 -0
  269. package/src/ATree/i18n/fr.json +5 -0
  270. package/src/ATree/i18n/hr.json +5 -0
  271. package/src/ATree/i18n/it.json +5 -0
  272. package/src/ATree/i18n/nl.json +5 -0
  273. package/src/ATree/i18n/pl.json +5 -0
  274. package/src/ATree/i18n/ru.json +5 -0
  275. package/src/ATree/i18n/uk.json +5 -0
  276. package/src/ATree/utils/icons.js +3 -0
  277. package/src/ATree/utils/utils.js +105 -0
  278. package/src/compositionAPI/AFiltersAPI.js +48 -0
  279. package/src/filters/__tests__/filterDateRelative.test.js +54 -0
  280. package/src/filters/__tests__/filterDuration.test.js +50 -0
  281. package/src/filters/__tests__/filterInitials.test.js +36 -0
  282. package/src/filters/__tests__/filterNumberCompact.test.js +57 -0
  283. package/src/filters/__tests__/filterPercent.test.js +38 -0
  284. package/src/filters/__tests__/filterStripHtml.test.js +30 -0
  285. package/src/filters/__tests__/filterTitleCase.test.js +31 -0
  286. package/src/filters/__tests__/filterTruncateMiddle.test.js +33 -0
  287. package/src/filters/filterDateRelative.js +44 -0
  288. package/src/filters/filterDuration.js +76 -0
  289. package/src/filters/filterInitials.js +42 -0
  290. package/src/filters/filterNumberCompact.js +63 -0
  291. package/src/filters/filterPercent.js +33 -0
  292. package/src/filters/filterStripHtml.js +23 -0
  293. package/src/filters/filterTitleCase.js +19 -0
  294. package/src/filters/filterTruncateMiddle.js +31 -0
  295. package/src/filters/i18n/ar.json +9 -1
  296. package/src/filters/i18n/de.json +9 -1
  297. package/src/filters/i18n/en.json +9 -1
  298. package/src/filters/i18n/es.json +9 -1
  299. package/src/filters/i18n/fr.json +9 -1
  300. package/src/filters/i18n/hr.json +9 -1
  301. package/src/filters/i18n/it.json +9 -1
  302. package/src/filters/i18n/nl.json +9 -1
  303. package/src/filters/i18n/pl.json +9 -1
  304. package/src/filters/i18n/ru.json +9 -1
  305. package/src/filters/i18n/uk.json +19 -11
  306. package/src/i18n/allLanguages.js +84 -0
  307. package/src/index.js +38 -32
  308. package/src/plugins/AComponentsPlugin.js +81 -0
  309. package/src/plugins/__tests__/AComponentsPlugin.test.js +84 -0
  310. package/src/ui/ADatepicker/ADatepicker.js +43 -36
  311. package/src/ui/AInputCurrency/AInputCurrency.js +18 -18
  312. package/src/ui/AInputFile/AInputFile.js +447 -88
  313. package/src/ui/AInputFile/__tests__/AInputFile.test.js +181 -0
  314. package/src/ui/AInputFile/compositionAPI/DropAPI.js +67 -0
  315. package/src/ui/AInputFile/compositionAPI/FilesAPI.js +133 -0
  316. package/src/ui/AInputFile/compositionAPI/HintAPI.js +54 -0
  317. package/src/ui/AInputFile/compositionAPI/ModelAPI.js +37 -0
  318. package/src/ui/AInputFile/compositionAPI/PreviewAPI.js +50 -0
  319. package/src/ui/AInputFile/i18n/AInputFileI18n.js +25 -0
  320. package/src/ui/AInputFile/i18n/ar.json +21 -0
  321. package/src/ui/AInputFile/i18n/de.json +21 -0
  322. package/src/ui/AInputFile/i18n/en.json +21 -0
  323. package/src/ui/AInputFile/i18n/es.json +21 -0
  324. package/src/ui/AInputFile/i18n/fr.json +21 -0
  325. package/src/ui/AInputFile/i18n/hr.json +21 -0
  326. package/src/ui/AInputFile/i18n/it.json +21 -0
  327. package/src/ui/AInputFile/i18n/nl.json +21 -0
  328. package/src/ui/AInputFile/i18n/pl.json +21 -0
  329. package/src/ui/AInputFile/i18n/ru.json +21 -0
  330. package/src/ui/AInputFile/i18n/uk.json +21 -0
  331. package/src/ui/AInputFile/utils/icons.js +20 -0
  332. package/src/ui/AInputFile/utils/utils.js +44 -0
  333. package/src/ui/AInputNumber/AInputNumber.js +16 -16
  334. package/src/ui/AInputOtp/AInputOtp.js +498 -0
  335. package/src/ui/AInputOtp/__tests__/AInputOtp.test.js +186 -0
  336. package/src/ui/AInputOtp/compositionAPI/AttributesAPI.js +47 -0
  337. package/src/ui/AInputOtp/compositionAPI/CharsAPI.js +145 -0
  338. package/src/ui/AInputOtp/compositionAPI/FocusAPI.js +73 -0
  339. package/src/ui/AInputOtp/compositionAPI/InputAPI.js +75 -0
  340. package/src/ui/AInputOtp/compositionAPI/KeyboardAPI.js +57 -0
  341. package/src/ui/AInputOtp/compositionAPI/ReadonlyAPI.js +28 -0
  342. package/src/ui/AInputOtp/compositionAPI/SeparatorAPI.js +35 -0
  343. package/src/ui/AInputOtp/i18n/AInputOtpI18n.js +25 -0
  344. package/src/ui/AInputOtp/i18n/ar.json +3 -0
  345. package/src/ui/AInputOtp/i18n/de.json +3 -0
  346. package/src/ui/AInputOtp/i18n/en.json +3 -0
  347. package/src/ui/AInputOtp/i18n/es.json +3 -0
  348. package/src/ui/AInputOtp/i18n/fr.json +3 -0
  349. package/src/ui/AInputOtp/i18n/hr.json +3 -0
  350. package/src/ui/AInputOtp/i18n/it.json +3 -0
  351. package/src/ui/AInputOtp/i18n/nl.json +3 -0
  352. package/src/ui/AInputOtp/i18n/pl.json +3 -0
  353. package/src/ui/AInputOtp/i18n/ru.json +3 -0
  354. package/src/ui/AInputOtp/i18n/uk.json +3 -0
  355. package/src/ui/AMultiselectOrdered/AMultiselectOrdered.js +60 -52
  356. package/src/ui/AMultiselectOrdered/compositionAPI/TextsAPI.js +55 -55
  357. package/src/ui/AMultiselectOrdered/utils/texts.js +10 -0
  358. package/src/ui/ARate/ARate.js +614 -0
  359. package/src/ui/ARate/__tests__/ARate.test.js +160 -0
  360. package/src/ui/ARate/compositionAPI/DeprecatedAPI.js +66 -0
  361. package/src/ui/ARate/compositionAPI/KeyboardAPI.js +68 -0
  362. package/src/ui/ARate/compositionAPI/LevelAPI.js +75 -0
  363. package/src/ui/ARate/compositionAPI/ModelAPI.js +86 -0
  364. package/src/ui/ARate/compositionAPI/PointerAPI.js +56 -0
  365. package/src/ui/ARate/compositionAPI/TextAPI.js +72 -0
  366. package/src/ui/ARate/i18n/ARateI18n.js +25 -0
  367. package/src/ui/ARate/i18n/ar.json +11 -0
  368. package/src/ui/ARate/i18n/de.json +11 -0
  369. package/src/ui/ARate/i18n/en.json +11 -0
  370. package/src/ui/ARate/i18n/es.json +11 -0
  371. package/src/ui/ARate/i18n/fr.json +11 -0
  372. package/src/ui/ARate/i18n/hr.json +11 -0
  373. package/src/ui/ARate/i18n/it.json +11 -0
  374. package/src/ui/ARate/i18n/nl.json +11 -0
  375. package/src/ui/ARate/i18n/pl.json +11 -0
  376. package/src/ui/ARate/i18n/ru.json +11 -0
  377. package/src/ui/ARate/i18n/uk.json +11 -0
  378. package/src/ui/ARate/utils/icons.js +7 -0
  379. package/src/ui/ARouterLinkConfig/ARouterLinkConfig.js +53 -27
  380. package/src/ui/ARouterLinkConfig/utils/routes.js +29 -0
  381. package/src/ui/ASelect/ASelect.js +45 -44
  382. package/src/ui/ASelectIcon/ASelectIcon.js +29 -28
  383. package/src/ui/ASelectStyle/ASelectStyle.js +25 -24
  384. package/src/ui/ASelectStyle/compositionAPI/DataAPI.js +7 -3
  385. package/src/ui/ASelectStyle/utils/cssClasses.js +2352 -0
  386. package/src/ui/ASlider/__tests__/ASlider.Form.test.js +38 -0
  387. package/src/ui/AUiComponents.js +6 -0
  388. package/src/ui/__tests__/ReadonlyValueParentClass.test.js +4 -0
  389. package/src/ui/compositionApi/UiAPI.js +1 -4
  390. package/src/ui/compositionApi/UiLabelPositionAPI.js +2 -11
  391. package/src/ui/compositionApi/__tests__/UiLabelPositionAPI.test.js +3 -5
  392. package/types/aloha-vue.d.ts +4198 -0
  393. package/web-types.json +12433 -0
  394. package/scss/components/ARate.scss +0 -85
  395. package/src/ARate/ARate.js +0 -254
  396. package/src/ARate/ARateIcon/ADecimalIcon/ADecimalIcon.js +0 -53
  397. package/src/ARate/ARateIcon/ARateIcon.js +0 -109
  398. package/src/plugins/ACarouselPlugin.js +0 -34
  399. package/src/plugins/ACloakPlugin.js +0 -26
  400. package/src/plugins/ADatepickerPlugin.js +0 -58
  401. package/src/plugins/AFiltersPlugin.js +0 -102
  402. package/src/plugins/AGroupButtonDropdownPlugin.js +0 -26
  403. package/src/plugins/AInputCurrencyPlugin.js +0 -32
  404. package/src/plugins/AInputNumberPlugin.js +0 -30
  405. package/src/plugins/ALoadingPlugin.js +0 -26
  406. package/src/plugins/AModalPlugin.js +0 -41
  407. package/src/plugins/AMultiselectOrderedPlugin.js +0 -89
  408. package/src/plugins/ARouterLinkConfigPlugin.js +0 -88
  409. package/src/plugins/ASelectPlugin.js +0 -62
  410. package/src/plugins/ASelectStylesPlugin.js +0 -2376
  411. package/src/plugins/ASpinnerPlugin.js +0 -26
  412. package/src/plugins/ATablePlugin.js +0 -28
package/AGENTS.md ADDED
@@ -0,0 +1,280 @@
1
+ # aloha-vue: guide for AI agents
2
+
3
+ > Generated by `npm run build-llms` from the docs (`docs/scripts/build-llms.mjs`, this text: `docs/scripts/AGENTS.template.md`). Do not edit `AGENTS.md` and `llms/` by hand.
4
+
5
+ **aloha-vue** is an accessible component library for **Vue 3**. Version 3.x.
6
+
7
+ - Components start with `A`: `AButton` → `<a-button>`. All exports are listed in `src/index.js`.
8
+ - CSS classes start with `a_` (`a_btn`, `a_mt_3`), CSS custom properties with `--a_` (`--a_color_primary`).
9
+ - Every page of the docs is in `llms/` (list below): props, slots, events, exposes, CSS variables and examples. **Read the page of a component before using it, do not guess props.**
10
+ - The sources are in `src/`, the styles in `scss/`.
11
+ - Types of all components and their props: `types/aloha-vue.d.ts` (TypeScript, Volar) and `web-types.json` (JetBrains).
12
+ - The same docs online: https://ilia-brykin.github.io/aloha/llms.txt
13
+
14
+ ## Setup
15
+
16
+ New project with everything configured (Vite, translations, icons, a form and a table):
17
+
18
+ ```bash
19
+ npx degit ilia-brykin/aloha/starter my-app
20
+ cd my-app
21
+ npm install
22
+ npm run dev
23
+ ```
24
+
25
+ Existing project:
26
+
27
+ ```bash
28
+ npm install aloha-vue aloha-svg
29
+ ```
30
+
31
+ `main.js`:
32
+
33
+ ```js
34
+ import { createApp } from "vue";
35
+ import App from "./App.vue";
36
+ import "aloha-vue/dist/aloha-vue.css"; // or @use "aloha-vue/scss/aloha-vue"; in your SCSS
37
+ import {
38
+ AComponentsPlugin,
39
+ AI18nPlugin,
40
+ AIconPlugin,
41
+ AMobilePlugin,
42
+ i18nDE,
43
+ i18nEN,
44
+ } from "aloha-vue";
45
+ import Bell from "aloha-svg/dist/js/bootstrap/Bell";
46
+ import myDe from "./i18n/de.json";
47
+ import myEn from "./i18n/en.json";
48
+
49
+ const app = createApp(App);
50
+
51
+ // Translations: dictionaries of the library + own dictionaries, start language
52
+ app.use(AI18nPlugin, {
53
+ de: { ...i18nDE, ...myDe },
54
+ en: { ...i18nEN, ...myEn },
55
+ }, "de");
56
+
57
+ // Icons for the props icon, icon-left, icon-right… (name → svg string)
58
+ app.use(AIconPlugin, { icons: { Bell } });
59
+
60
+ // Mobile view below this width (px)
61
+ app.use(AMobilePlugin, { breakpoint: 991 });
62
+
63
+ // Optional: defaults and settings of the components
64
+ app.use(AComponentsPlugin, {
65
+ AModal: { props: { closeButtonClass: "a_btn a_btn_link" } },
66
+ ATable: { props: { isStriped: true } },
67
+ });
68
+
69
+ app.mount("#app");
70
+ ```
71
+
72
+ Components are imported where they are used:
73
+
74
+ ```js
75
+ import { AButton, AModal } from "aloha-vue";
76
+
77
+ export default {
78
+ components: { AButton, AModal },
79
+ };
80
+ ```
81
+
82
+ Other plugins (`AHttpPlugin`, `ADataRetrievePlugin`, `AFormPlugin`, `APageTabTitlePlugin`, `ARemPxPlugin`) are only needed for the features they configure, see `llms/plugins/` and `src/plugins/`.
83
+
84
+ ## Translations
85
+
86
+ - Text props (`text`, `html`, `safe-html`, `label`, `placeholder`, `title`, `aria-label`…) accept a key of the dictionary, e.g. `text="_SAVE_"`. A text that is not a key is shown as it is.
87
+ - Placeholders: `"_HELLO_": "Hello {{ name }}"` + `:extra="{ name: 'Anna' }"`.
88
+ - Own texts in templates: `<a-translation tag="p" text="_MY_KEY_" />`, see `llms/components/translation.md`.
89
+ - In JavaScript: `getTranslatedText({ placeholder: "_MY_KEY_", extra })`.
90
+ - Change the language: `setLanguage("en")`. Add keys later: `updateI18nForLanguage({ language: "en", i18n: { … } })`.
91
+ - Dictionaries of the library: `i18nAR`, `i18nDE`, `i18nEN`, `i18nES`, `i18nFR`, `i18nHR`, `i18nIT`, `i18nNL`, `i18nPL`, `i18nRU`, `i18nUK`. Their keys are listed in the section **Translations** of each component page.
92
+
93
+ ## Filters and utils
94
+
95
+ Pure functions for formatting, also usable outside of components:
96
+
97
+ ```js
98
+ import { filterCurrency, filterDate } from "aloha-vue";
99
+
100
+ filterCurrency(1234.5); // "1.234,50 €"
101
+ ```
102
+
103
+ In `setup()` they are also available with `const { filterCurrency } = AFiltersAPI();`. All filters: `llms/functions/`.
104
+
105
+ ## Styles
106
+
107
+ - Utility classes for spacing, colors, display, text…: `llms/css/`. Prefer them to own CSS.
108
+ - Theming with CSS custom properties: `llms/css/theming.md`. Every component page ends with its CSS variables.
109
+
110
+ ## Rules
111
+
112
+ - In tables a column with `filter` (e.g. `filter: "date"`) also needs `slot: "get"`.
113
+ - Use the components and props described in `llms/`. If something is missing, check the props in `src/<Component>/<Component>.js`.
114
+ - Keep the accessibility: give buttons with only an icon a `title` or `aria-label`, give form elements a `label`.
115
+ - Migration from 2.x: `llms/migrations/migrations-version2-to3.md`.
116
+
117
+ ## Pages
118
+
119
+ ### Installation
120
+
121
+ - [Quick start](llms/installation/quick-start.md)
122
+
123
+ ### Migrations
124
+
125
+ - [Migration 2.x -> 3.0.x](llms/migrations/migrations-version2-to3.md) — Version 3.0 changes the styles: all colors, sizes and the focus ring are configured with **CSS** custom properties, the components got a more modern look and are accessible by default.
126
+ - [Migration 1.2.x -> 2.0.x](llms/migrations/migrations-version1-to2.md)
127
+
128
+ ### Plugins
129
+
130
+ - [Components plugin](llms/plugins/components-plugin.md)
131
+ - [Icons plugin](llms/plugins/icons-plugin.md)
132
+ - [Mobile plugin](llms/plugins/mobile-plugin.md)
133
+ - [Page tab title plugin](llms/plugins/page-tab-title-plugin.md)
134
+
135
+ ### Components
136
+
137
+ - [Accordion](llms/components/accordion.md)
138
+ - [Alert](llms/components/alert.md) — Displays important alert messages.
139
+ - [Avatar](llms/components/avatar.md) — The **AAvatar** component shows a person or an organization as a picture, as initials or as an icon.
140
+ - [Button](llms/components/button.md) — The **AButton** component is a versatile button with extensive customization options via props.
141
+ - [Calendar](llms/components/calendar.md) — The **ACalendar** component shows a month, a week or a day with events, like Outlook.
142
+ - [Carousel](llms/components/carousel.md) — A carousel is a component for cyclically displaying elements (images, text, etc.) in a limited space.
143
+ - [Cloak](llms/components/cloak.md) — The **ACloak** component displays a loading indicator with text indicating the current loading of the page or a large component.
144
+ - [Confirm](llms/components/confirm.md) — AConfirm is a confirmation dialog API built on top of the modal system.
145
+ - [Disclosure](llms/components/disclosure.md) — The component allows users to show or hide text content by clicking on a button.
146
+ - [filters](llms/components/filters.md) — Allows filtering data by various criteria.
147
+ - [filtersRight](llms/components/filters-right.md) — With `view="right"` the component **AFilters** shows the filters in a column on the right of the content instead of above it.
148
+ - [Dropdown](llms/components/dropdown.md) — The ADropdown component is a dropdown component for Vue.js that allows you to display a list of actions in a dropdown menu.
149
+ - [Element](llms/components/element.md) — The **AElement** component is a universal element with advanced configuration through props, allowing customization of accessibility, classes, IDs, loading state, and other parameters.
150
+ - **Form**
151
+ - [Checkbox](llms/components/checkbox.md) — The **ACheckbox** component provides an interface for creating a group of checkboxes, allowing users to select multiple options from a list.
152
+ - [Color picker](llms/components/color-picker.md) — The **AColorPicker** component selects a color in a dialog: saturation and brightness area, hue and opacity sliders, a text field for any color format and predefined colors.
153
+ - [Datepicker](llms/components/datepicker.md) — Allows interactive selection of a date and, depending on the configuration, also time.
154
+ - [DatepickerRange](llms/components/datepicker-range.md) — Allows interactive selection of a date range by providing two date fields to define 'From' and 'To' values.
155
+ - **Fieldset**
156
+ - [Fieldset](llms/components/fieldset.md) — The **AFieldset** component is used to group form elements into a logical set.
157
+ - [Fieldset (children)](llms/components/fieldset-children.md) — This page covers the use of **children** in the **AFieldset** component, as well as related properties such as **class-column-default** for customizing the classes of individual child elements, **class-columns** for the parent container, and **errors-all** for displaying child element errors.
158
+ - **Form**
159
+ - [Form](llms/components/form.md) — The **AForm** component builds a complete form from a configuration array.
160
+ - [Form-Element](llms/components/form-element.md) — A wrapper component for dynamically displaying various form elements based on the provided type.
161
+ - [Group](llms/components/group.md) — AGroup is a component for displaying and managing grouped form elements or options.
162
+ - [Input](llms/components/input.md) — The **AInput** component provides data input functionality with support for various data types such as **text**, **password**, **number**, **email**, and others.
163
+ - [Input currency](llms/components/input-currency.md) — The **AInputCurrency** component provides the ability to input and format currency values.
164
+ - [Input number](llms/components/input-number.md) — The **AInputNumber** component is a field for numbers: integers or decimals with a fixed number of digits, a minimum and a maximum and buttons to increase and decrease the value.
165
+ - [Input number range](llms/components/input-number-range.md) — The **AInputNumberRange** component consists of two number fields "from" and "to".
166
+ - [Input file](llms/components/input-file.md) — The **AInputFile** component chooses files with a button or a dropzone, checks the type, the size and the number of the files, shows them in a list and shows the upload status of every file.
167
+ - [Input OTP](llms/components/input-otp.md) — The **AInputOtp** component enters a one-time code (OTP), for example a confirmation code from an SMS or an authenticator app.
168
+ - [JSON](llms/components/json.md) — **AJson** is a Vue.js component designed for displaying and editing **JSON** data.
169
+ - [Multiselect ordered](llms/components/multiselect-ordered.md) — The component allows selecting multiple items with the ability to set their order.
170
+ - [One checkbox](llms/components/one-checkbox.md) — The **AOneCheckbox** component represents a single checkbox with the ability to bind to a data model.
171
+ - [Radio](llms/components/radio.md) — The **ARadio** component represents a set of radio buttons, where the user can select only one item from the given options.
172
+ - [Rate](llms/components/rate.md) — The **ARate** component shows a rating with icons and lets the user choose a value from 1 to **max**.
173
+ - [RouterLinkConfig](llms/components/router-link-config.md) — The **ARouterLinkConfig** component provides an interface for configuring navigation links with route, query, params, and target values.
174
+ - [Select](llms/components/select.md) — ASelect is a component that allows users to make one or more choices from a predefined list of options.
175
+ - [Select icon](llms/components/select-icon.md) — A component based on **ASelect** that allows selecting one or multiple icons available in the system.
176
+ - [Select style](llms/components/select-style.md) — Component for selecting styles from a predefined set of styles
177
+ - [Slider](llms/components/slider.md) — ASlider is a component for selecting a numeric value or a range within a specified interval.
178
+ - [Switch](llms/components/switch.md) — The **ASwitch** component is a switch with support for various states that can be bound to a data model.
179
+ - [Template](llms/components/template.md) — The **ATemplate** component is used as a universal slot for components such as **[AFieldset](llms/components/fieldset.md)** and **[AForm](llms/components/form.md)**.
180
+ - [Textarea](llms/components/textarea.md) — The **ATextarea** component provides the functionality of a text field with various settings such as scalability, a clear button, and the ability to resize.
181
+ - [Validated JSON](llms/components/validated-json.md) — AValidatedJson is a component for editing structured data with validation rules.
182
+ - [GroupButtonDropdown](llms/components/group-button-dropdown.md) — This component allows you to flexibly configure a group of buttons and links.
183
+ - [Link](llms/components/link.md) — Provides a connection to an internal or external source that the user can access by clicking or keyboard tapping.
184
+ - [Link copy](llms/components/link-copy.md) — The ALinkCopy component is a Vue.js component that provides a user interface to present a link and offers a button to copy the link text to the clipboard.
185
+ - [List](llms/components/list.md) — The **AList** component allows easy rendering of lists with flexible configuration options for data presentation.
186
+ - [Loading](llms/components/loading.md) — The **ALoading** component displays a loading spinner with text over the content when the **is-loading** property is set to **true**.
187
+ - **Menu**
188
+ - [Menu basic](llms/components/menu-basic.md) — AMenu provides navigation with nested panels, search, groups and disabled links.
189
+ - [Modal](llms/components/modal.md) — AModal is a component that enables the implementation of modal windows.
190
+ - [Notification](llms/components/notification.md)
191
+ - **Progress**
192
+ - [Progress bar](llms/components/progress.md) — AProgress component is a customisable progress bar for Vue.js applications.
193
+ - [Progress circle](llms/components/progress-circle.md) — The **AProgressCircle** component displays progress as a circular indicator.
194
+ - [Show more](llms/components/show-more.md) — The 'AShowMore' component makes it possible to hide part of the content of a web page and show it when needed.
195
+ - [Skeleton](llms/components/skeleton.md) — The **ASkeleton** component shows gray placeholders in the shape of the content while it is loading.
196
+ - [Spinner](llms/components/spinner.md) — The **ASpinner** component is used to display a loading indicator.
197
+ - [Pagination](llms/components/pagination.md) — The **APagination** component renders navigation for large data sets.
198
+ - [Pagination pages](llms/components/pagination-pages.md) — The **APaginationPages** component renders page navigation only.
199
+ - **Tables**
200
+ - [Table complex](llms/components/table-complex.md) — The **ATable** component shows data in a table with sorting, pagination, filters, quick search, row and table actions, selection of rows, a preview, hiding and moving of columns, saved views and a mobile view.
201
+ - [Table pagination](llms/components/table-pagination.md)
202
+ - [Table simple](llms/components/table-simple.md)
203
+ - [Table sort](llms/components/table-sort.md)
204
+ - [Table preview](llms/components/table-preview.md)
205
+ - [Table preview down](llms/components/table-preview-down.md)
206
+ - [Table tree](llms/components/table-tree.md)
207
+ - [Table form](llms/components/table-form.md)
208
+ - [Tabs](llms/components/tabs.md) — The **ATabs** component is used for organizing content through tabs.
209
+ - [Tooltip](llms/components/tooltip.md) — ATooltip displays additional information when the user hovers over or focuses an element.
210
+ - [Tree](llms/components/tree.md) — The **ATree** component shows hierarchical data: nodes can be expanded, selected and checked, searched and loaded lazily.
211
+ - [Translation](llms/components/translation.md) — **ATranslation** is a powerful and versatile **Vue.js** component that allows developers to seamlessly integrate translations into **Vue.js** applications.
212
+ - **Wizard**
213
+ - [Wizard normal](llms/components/wizard.md) — A wizard is a sequential, step-by-step interface designed to guide users through complex tasks or processes by breaking them into manageable steps.
214
+ - [Modal Wizard](llms/components/modal-wizard.md) — This component is a combination of a modal window (AModal) and a wizard (AWizard).
215
+
216
+ ### CSS
217
+
218
+ - [Theming](llms/css/theming.md) — All styles of **aloha-vue** are configured with **CSS** custom properties (tokens).
219
+ - [Badge](llms/css/badge.md)
220
+ - [Columns](llms/css/columns.md)
221
+ - [Colors](llms/css/colors.md)
222
+ - [Display](llms/css/display.md)
223
+ - [Float](llms/css/float.md)
224
+ - [Overflow](llms/css/overflow.md)
225
+ - [Screen reader](llms/css/screenreader.md)
226
+ - [Vertical align](llms/css/vertical-align.md)
227
+ - [Position](llms/css/position.md)
228
+ - [Spacing](llms/css/spacing.md)
229
+ - [Text](llms/css/text.md)
230
+ - [Utilities](llms/css/utilities.md)
231
+
232
+ ### Directives
233
+
234
+ - [OnHooks](llms/directives/on-hooks.md) — AOnHooks is a powerful Vue.js directive allowing for binding of the specific functions executions when different lifecycle stages of a Vue.js component or HTML tag are reached.
235
+
236
+ ### Functions
237
+
238
+ - **Filters**
239
+ - [filterBoolean](llms/functions/filter-boolean.md) — The function **filterBoolean** is used to convert a **boolean value** into translated text.
240
+ - [filterCapitalize](llms/functions/filter-capitalize.md) — Converts the first character of string to upper case and the remaining to lower case.
241
+ - [filterCurrency](llms/functions/filter-currency.md) — The function **filterCurrency** is a specialized extension of the [**filterFloat**](llms/functions/filter-float.md) function and serves to format numeric values as currency.
242
+ - [filterDate](llms/functions/filter-date.md) — The function **filterDate** uses the [moment.js](https://momentjs.com/docs/#/displaying/format/) library to format dates and times.
243
+ - [filterDateRelative](llms/functions/filter-date-relative.md) — The function **filterDateRelative** formats a date relative to now, e.g.
244
+ - [filterDefaultForEmpty](llms/functions/filter-default-for-empty.md) — The function **filterDefaultForEmpty** is used to check a value and return a default value if the checked value is considered empty.
245
+ - [filterDuration](llms/functions/filter-duration.md) — The function **filterDuration** formats a duration, e.g.
246
+ - [filterEmail](llms/functions/filter-email.md) — The function **filterEmail** creates an HTML link for an email address.
247
+ - [filterEscapeHTML](llms/functions/filter-escape-html.md) — Escapes HTML special characters in a string to prevent XSS attacks.
248
+ - [filterFileSize](llms/functions/filter-file-size.md) — The function **filterFileSize** converts a size from a source unit (e.g., Bytes) to a target size in a specific unit (e.g., Kilobytes, Megabytes) and returns the result as a formatted string.
249
+ - [filterFloat](llms/functions/filter-float.md) — The function **filterFloat** formats numeric values according to the specified parameters.
250
+ - [filterInitials](llms/functions/filter-initials.md) — The function **filterInitials** returns the initials of a name, e.g.
251
+ - [filterJson](llms/functions/filter-json.md) — The function **filterJson** converts a JavaScript object or value into a formatted JSON string.
252
+ - [filterKeyValue](llms/functions/filter-key-value.md) — The function **filterKeyValue** creates a formatted string from the key-value pairs of a JavaScript object.
253
+ - [filterLimitTo](llms/functions/filter-limit-to.md) — The function **filterLimitTo** is used to limit an input string to a specific maximum length and optionally apply a special logic for ellipses at the end of the string.
254
+ - [filterLink](llms/functions/filter-link.md) — The function **filterLink** creates an HTML link based on the provided URL.
255
+ - [filterList](llms/functions/filter-list.md) — The function creates a list from an array.
256
+ - [filterLowerCase](llms/functions/filter-lower-case.md) — Converts the input string to lowercase.
257
+ - [filterMask](llms/functions/filter-mask.md) — Masks a given value, displaying only the last few characters.
258
+ - [filterNumberCompact](llms/functions/filter-number-compact.md) — The function **filterNumberCompact** shortens a large number with a unit (thousand, million, billion, trillion), e.g.
259
+ - [filterPercent](llms/functions/filter-percent.md) — The function **filterPercent** formats a value as a percentage, e.g.
260
+ - [filterPropertyByValue](llms/functions/filter-property-by-value.md) — The function **filterPropertyByValue** allows for mapping values to predefined properties in a mapping object.
261
+ - [filterSearchHighlight](llms/functions/filter-search-highlight.md) — The function **filterSearchHighlight** is used to mark a search term in a value by enclosing the search term with **HTML** tags.
262
+ - [filterStripHtml](llms/functions/filter-strip-html.md) — The function **filterStripHtml** removes HTML tags from a string and returns its text, e.g.
263
+ - [filterTitleCase](llms/functions/filter-title-case.md) — The function **filterTitleCase** converts the first letter of every word to upper case.
264
+ - [filterTruncateMiddle](llms/functions/filter-truncate-middle.md) — The function **filterTruncateMiddle** shortens a string in the middle and keeps its start and its end, e.g.
265
+ - [filterUpperCase](llms/functions/filter-upper-case.md) — Converts the input string to uppercase.
266
+ - [filterValueByCondition](llms/functions/filter-value-by-condition.md) — The function **filterValueByCondition** returns a result based on the first matching condition.
267
+ - **Utils**
268
+ - [aOrderBy](llms/functions/utils-aorder-by.md) — Extends lodash's orderBy with case-insensitive comparison by default while preserving all iteratee and order combinations.
269
+ - [aSortBy](llms/functions/utils-asort-by.md) — Extends lodash's sortBy with case-insensitive comparison by default while keeping support for every iteratee shorthand.
270
+ - [getTotalNestedCount](llms/functions/utils-get-total-nested-count.md) — Calculates the total count of elements within a nested structure, including all children and sub-children, based on the specified child key.
271
+ - [isArrayOfArrays](llms/functions/utils-is-array-of-arrays.md) — Checks if the given input is an array of arrays.
272
+ - [isArrayOfStrings](llms/functions/utils-is-array-of-strings.md) — Checks if the given input is an array of strings.
273
+ - **Utils math**
274
+ - [isEven](llms/functions/utils-math-is-even.md) — Determines if a given number is even.
275
+ - [isOdd](llms/functions/utils-math-is-odd.md) — Determines if a given number is odd.
276
+
277
+ ### Rest
278
+
279
+ - [Scale](llms/rest/scale.md)
280
+ - [Svg](llms/rest/svg.md)
package/CHANGELOG.md CHANGED
@@ -7,6 +7,45 @@
7
7
  ---
8
8
  # Versions
9
9
 
10
+ ## 3.0.0-alpha.2
11
+
12
+ Changes since 3.0.0-alpha.1. Migration notes: docs page **Migration 2.x → 3.0** (`PageMigrationsVersion2To3`).
13
+
14
+ ### Breaking
15
+
16
+ - feat(plugins)!: new `AComponentsPlugin` holds the settings of all components, the key is the name of the component: `app.use(AComponentsPlugin, { AModal: { props: { useEscape: false } }, AAlert: { icons: { info } }, ATable: { props: { isStriped: true }, config: {} }, ASelectStyle: { cssClasses: [] }, ARouterLinkConfig: { routes, excludedPathRoutes } })`. `getPropDefault()` / `getComponentOption()` for own components. Prop defaults are inherited: `AModalForm`, `AModalWizard` → `AModal`; `ASelectIcon`, `ASelectStyle` → `ASelect` (`extends` for own components). `propsDefault` was removed. Removed plugins: `AAlertPlugin`, `ACarouselPlugin`, `ACloakPlugin`, `AFiltersPlugin` (its `config` was not used), `AGroupButtonDropdownPlugin`, `AInputCurrencyPlugin`, `AInputNumberPlugin`, `ALoadingPlugin`, `AModalPlugin`, `AMultiselectOrderedPlugin`, `ARouterLinkConfigPlugin`, `ASelectPlugin`, `ASelectStylesPlugin`, `ASpinnerPlugin`, `ATablePlugin` and the exports `AInputCurrencyPluginOptions`, `AInputNumberPluginOptions`, `AMultiselectOrderedPluginOptions`, `ARouterLinkConfigPluginOptions`, `ASelectStylePluginOptions`. The class `a_spinner` of `ASpinner` is fixed.
17
+ - feat(ui)!: `ARate` rebuilt as a form element (`src/ui/ARate`, the export is unchanged). A double click no longer clears the rating (use `clearable`). Classes renamed (`.a_rate_container` → `.a_rate`, `.a_rate_icon` → `.a_rate__item`…), `scss/components/ARate.scss` → `scss/components/ui/ARate.scss`, `--a_rate_empty_color` → `--a_rate_void_color`. Old props (`rating`, `halfIcon`, `icon`, `iconFill`, `color`, `hoveredColor`, `text`, size `"medium"` / `"big"`) still work.
18
+ - feat(AInputFile)!: classes renamed to `.a_file__label` / `.a_file__input`.
19
+ - build!: `vue` is a peer dependency (`^3.5.0`) instead of the dependency `3.5.43`. Projects with another version of Vue no longer get a second copy of Vue (two Vue runtimes, broken types).
20
+
21
+ ### Features
22
+
23
+ - feat: `ACalendar`, a calendar like Outlook: views month, week, work week, day and agenda; events on several days as bars, all-day events, colors; drag and drop and resize of events (mouse, touch, keyboard with Alt + arrows); recurring events with the helpers `detachCalendarOccurrence`, `splitCalendarSeries`, `moveCalendarSeries`, `addCalendarException`; iCal export `getCalendarIcs` and import `parseCalendarIcs` (also Windows time zones of Outlook); range selection, popover with the details of an event, working hours, `minDate` / `maxDate` / `disabledDates`, week numbers, print styles; WAI-ARIA keyboard navigation, translations in 11 languages.
24
+ - feat: `ATree`: plain JSON data or any JSON value (json mode), selection, expanding, checkboxes with cascade and mixed state, search with highlight, lazy loading with retry, slots `node` and `empty`, methods `expandAll`, `collapseAll`, `focus`, `setSelected`, `getCheckedItems`…; WAI-ARIA tree pattern with full keyboard.
25
+ - feat: `AAvatar` (image, initials or icon, fallback to the initials, color by the name, sizes, shapes, status dot) and `AAvatarGroup` (overlapping avatars, `max` with "+N").
26
+ - feat: `ASkeleton` (default layout, `loading`, `count`, `animated`, `throttle`) and `ASkeletonItem` (text, heading, circle, rect, button, input, image).
27
+ - feat(ui): `AInputOtp`, one-time code input with a cell per character: `length`, `charType`, `validator`, `mask`, `separator`, variants, paste and `autocomplete="one-time-code"`, event `finish`; AForm / AGroup type `"otp"`.
28
+ - feat(ui): `ARate`: `max`, `allowHalf`, `clearable`, `size`, colors and icons per level, `showText`, `showScore`; one focusable `role="slider"` with full keyboard; AForm / AGroup type `"rate"`.
29
+ - feat(AInputFile): dropzone (`isDropzone`), checks of `accept`, `maxSize`, `maxFiles` with the event `reject`, file list with remove button and image preview (`isPreview`), upload status per file (progress, status, `errorText`), `isAppend`; translations in 11 languages (the button text was always German before).
30
+ - feat(ATable): modern styles (frame with rounded corners, muted header, more cell padding, tabular digits, selected and preview rows highlighted) and the new prop `isStriped` (global default: `AComponentsPlugin`, `ATable: { props: { isStriped: true } }`).
31
+ - feat(filters): `filterInitials`, `filterTruncateMiddle`, `filterDuration`, `filterNumberCompact`, `filterDateRelative`, `filterPercent`, `filterStripHtml`, `filterTitleCase` (also in `AFiltersAPI`).
32
+ - feat(css): utilities `a_text_monospace`, `a_text_tabular_nums`, `a_text_underline_offset`, `a_text_line_through_muted`, `a_cursor_*`, `a_pointer_events_none` / `_auto`, `a_text_select_all` / `_none`, `a_shadow_none` / `_sm` / `_md` / `_lg`, `a_visible`, `a_invisible`, `a_rounded_circle`; token `--a_text_underline_offset`.
33
+ - feat: TypeScript types of all components and their props and events (`types/aloha-vue.d.ts`, also `GlobalComponents` for Volar) and `web-types.json` for JetBrains IDEs, generated with `npm run build-types`.
34
+ - feat: docs for AI coding agents in the package: `AGENTS.md` (setup, translations, filters, styles, rules) and one markdown file per docs page in `llms/`, generated from the docs with `npm run build-llms`. On the docs site: `llms.txt`, `llms-full.txt` and `AGENTS.md`. `context7.json` for Context7.
35
+ - feat: starter template `starter/` (Vite, translations, icons, a form and a table, `AGENTS.md` / `CLAUDE.md` for AI agents): `npx degit ilia-brykin/aloha/starter my-app`.
36
+
37
+ ### Fixes
38
+
39
+ - fix(exports): `import "aloha-vue/dist/aloha-vue.css"` (the path in the docs) resolved to `dist/dist/aloha-vue.css` and was not loaded. New entries `./dist/*`, `./scss/*` and `./package.json`, the old path `aloha-vue/aloha-vue.css` still works.
40
+ - fix(ASlider): register the form type `"slider"`, AForm, AFormElement, AFieldset, AGroup and the filters did not render it.
41
+
42
+ ### Docs
43
+
44
+ - docs: pages for all new components and filters, the form types list links to the pages of `otp`, `rate` and `slider`, the filter pages show the right tests.
45
+ - docs: missing translations and broken examples fixed, props and slots of `ATooltip` (the page showed the props of `ADisclosure`), route `PageTitle` → `PageTooltip`.
46
+ - docs(migration): `cssClasses` of `ASelectStyle` are replaced on repeated install.
47
+ - docs: README with quick start, TypeScript and AI agents, shorter description and keywords in `package.json`.
48
+
10
49
  ## 3.0.0-alpha.1
11
50
 
12
51
  Big style refactoring. The JavaScript API of the components stays compatible, only some defaults changed. Step-by-step guide: docs page **Migration 2.x → 3.0** (`PageMigrationsVersion2To3`). Includes all changes of 2.86.0 and 2.87.0.
@@ -321,12 +360,10 @@ Feature: Add `fullWidthRowCallback` and `fullWidthRow` slot to `ATableForm` for
321
360
 
322
361
  - Feature: Add `teleportSelector` prop to `AModal` and `AModalForm` for customizable teleport target with default plugin option.
323
362
 
324
-
325
363
  ## 2.48.1
326
364
 
327
365
  - Fix: Add `class` binding to `ASelect` for dynamic class support.
328
366
 
329
-
330
367
  ## 2.48.0
331
368
 
332
369
  - Feature: Enhance `ADatepicker` placeholder logic with `isInputFocused` state and improved `PlaceholderAPI` integration. Adjust default `isLabelFloat` prop to `true`.
@@ -338,7 +375,6 @@ Feature: Add `fullWidthRowCallback` and `fullWidthRow` slot to `ATableForm` for
338
375
  - Fix: Correct display value, when decimal part is not set in `AInputCurrency`
339
376
  - Fix: validator for thousandDivider now accepts empty string in `AInputCurrency`
340
377
 
341
-
342
378
  ## 2.47.2
343
379
 
344
380
  - Fix: Correct model handling when required and the model is empty in `AInputCurrency`
@@ -379,12 +415,10 @@ Feature: Add `fullWidthRowCallback` and `fullWidthRow` slot to `ATableForm` for
379
415
 
380
416
  - Feature: Add `class` and `classMenuSearch` props to `ASelect`, with default values in `ASelectPluginOptions`. Enhance menu class binding to support conditional styling for search functionality.
381
417
 
382
-
383
418
  ## 2.43.1
384
419
 
385
420
  - Feature: `countAllRows` in ATableTopPanel multipleActionActiveSlot
386
421
 
387
-
388
422
  ## 2.43.0
389
423
 
390
424
  - Feature: Introduce `aSortBy` utility with extended sorting capabilities, including case-insensitive sorting and mixed iteratee support. Add comprehensive test coverage.
@@ -392,7 +426,6 @@ Feature: Add `fullWidthRowCallback` and `fullWidthRow` slot to `ATableForm` for
392
426
  - Refactor: Replace `lodash-es` `sortBy` with internal `aSortBy` utility across multiple components for consistency and enhanced functionality
393
427
  - Refactor: Replace `lodash-es` `orderBy` with internal `aOrderBy` utility across composition APIs for consistency and extended functionality.
394
428
 
395
-
396
429
  ## 2.42.1
397
430
 
398
431
  - Fixed bug when model is updated outside `AInputCurrency`
@@ -495,7 +528,6 @@ Feature: Add `fullWidthRowCallback` and `fullWidthRow` slot to `ATableForm` for
495
528
  - `ASlider`: enhanced dragging and keyboard accessibility, added support for `step`, and integrated proper focus management for accessible interactions.
496
529
  - `Documentation`: added new usage examples to the documentation, including `PageSliderVertical`, `PageSliderStops`, `PageSliderRange`, `PageSliderMinMax`, `PageSliderErrors`, `PageSliderHelpText`, `PageSliderLabelDescription`, and `PageSliderChange`, with accompanying Pug templates, JavaScript content, and i18n keys.
497
530
 
498
-
499
531
  ## 2.34.0
500
532
 
501
533
  - Add gap utilities for spacing, including `.a_gap_*`, `.a_gap_x_*`, and `.a_gap_y_*` classes based on `$a_spacing_values`.
@@ -593,7 +625,6 @@ Feature: Add `fullWidthRowCallback` and `fullWidthRow` slot to `ATableForm` for
593
625
 
594
626
  - Refactor: Update component mappings to include `AValidatedJson` only in `AUiComponents`
595
627
 
596
-
597
628
  ## 2.28.2
598
629
 
599
630
  - Add `AValidatedJson` to `AFieldset` and ´AUiContainerComponents´ for extended component support.
@@ -1089,7 +1120,6 @@ An exclusive option can be defined as a special choice that, when selected, prev
1089
1120
 
1090
1121
  - Excluded `isConfirm` and `callbackLocal` attributes from the rendering of the `ADropdown` component to improve accessibility.
1091
1122
 
1092
-
1093
1123
  ## 1.2.280
1094
1124
 
1095
1125
  - Excluded `isConfirm` and `callbackLocal` attributes from the rendering of the `AGroupButtonDropdown` component to improve accessibility.
package/README.md CHANGED
@@ -10,6 +10,17 @@
10
10
 
11
11
  Aloha is a Vue.js-based, highly customizable, internationalized framework for helping developers write code faster and more efficiently, with a special focus on accessibility.
12
12
 
13
+ ## Quick start
14
+
15
+ New project with Vite, translations, icons, a form and a table, ready to run:
16
+
17
+ ```bash
18
+ npx degit ilia-brykin/aloha/starter my-app
19
+ cd my-app
20
+ npm install
21
+ npm run dev
22
+ ```
23
+
13
24
  ## Installation
14
25
 
15
26
  Aloha-vue can be installed using npm, yarn, or pnpm:
@@ -80,6 +91,22 @@ export default {
80
91
  </script>
81
92
  ```
82
93
 
94
+ ## AI agents
95
+
96
+ The package contains documentation for AI coding agents (Claude Code, Cursor, Copilot, Codex…): `node_modules/aloha-vue/AGENTS.md` (setup, translations, filters, styles) and one markdown file per docs page in `node_modules/aloha-vue/llms/`. Add this line to the `AGENTS.md` / `CLAUDE.md` of your project:
97
+
98
+ ```md
99
+ UI library: aloha-vue. Before using it, read node_modules/aloha-vue/AGENTS.md.
100
+ ```
101
+
102
+ The same docs are online for agents without the package: [llms.txt](https://ilia-brykin.github.io/aloha/llms.txt) (index) and [llms-full.txt](https://ilia-brykin.github.io/aloha/llms-full.txt) (all pages in one file).
103
+
104
+ After changes in the docs, regenerate the files with `npm run build-llms`.
105
+
106
+ ## TypeScript
107
+
108
+ The package contains the types of all components and their props (`types/aloha-vue.d.ts`), so editors (Volar, vue-tsc) and agents see wrong or misspelled props. JetBrains IDEs read `web-types.json`. After changes in the props, regenerate both files with `npm run build-types`.
109
+
83
110
  ## Development
84
111
 
85
112
  ### Documentation