@flux-ui/components 3.0.0-next.34 → 3.0.0-next.38

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 (339) hide show
  1. package/dist/component/FluxActionBar.vue.d.ts +17 -17
  2. package/dist/component/FluxActionPane.vue.d.ts +7 -7
  3. package/dist/component/{FluxActions.vue.d.ts → FluxActionStack.vue.d.ts} +11 -15
  4. package/dist/component/{FluxAutoGrid.vue.d.ts → FluxAdaptiveGroup.vue.d.ts} +6 -3
  5. package/dist/component/FluxAdaptiveSlot.vue.d.ts +35 -0
  6. package/dist/component/FluxAspectRatio.vue.d.ts +3 -3
  7. package/dist/component/FluxBadgeStack.vue.d.ts +3 -3
  8. package/dist/component/FluxButtonGroup.vue.d.ts +3 -3
  9. package/dist/component/FluxButtonStack.vue.d.ts +3 -3
  10. package/dist/component/FluxCalendar.vue.d.ts +3 -3
  11. package/dist/component/FluxCalendarEvent.vue.d.ts +3 -3
  12. package/dist/component/FluxCheckbox.vue.d.ts +2 -1
  13. package/dist/component/FluxClickablePane.vue.d.ts +5 -5
  14. package/dist/component/FluxColorSelect.vue.d.ts +1 -0
  15. package/dist/component/{FluxPaneDeck.vue.d.ts → FluxColumn.vue.d.ts} +5 -5
  16. package/dist/component/FluxCommandPalette.vue.d.ts +52 -0
  17. package/dist/component/FluxCommandPaletteGroup.vue.d.ts +8 -0
  18. package/dist/component/FluxCommandPaletteItem.vue.d.ts +18 -0
  19. package/dist/component/FluxComment.vue.d.ts +3 -3
  20. package/dist/component/FluxContainer.vue.d.ts +3 -3
  21. package/dist/component/FluxDivider.vue.d.ts +5 -3
  22. package/dist/component/FluxDropZone.vue.d.ts +8 -7
  23. package/dist/component/FluxExpandableGroup.vue.d.ts +3 -3
  24. package/dist/component/FluxFader.vue.d.ts +3 -3
  25. package/dist/component/FluxFaderItem.vue.d.ts +3 -3
  26. package/dist/component/FluxFilter.vue.d.ts +3 -3
  27. package/dist/component/FluxFilterBar.vue.d.ts +3 -3
  28. package/dist/component/FluxFilterBase.vue.d.ts +4 -4
  29. package/dist/component/FluxFilterWindow.vue.d.ts +13 -17
  30. package/dist/component/FluxFlyout.vue.d.ts +19 -21
  31. package/dist/component/FluxForm.vue.d.ts +3 -3
  32. package/dist/component/FluxFormColumn.vue.d.ts +3 -3
  33. package/dist/component/FluxFormDateInput.vue.d.ts +18 -24
  34. package/dist/component/FluxFormDateRangeInput.vue.d.ts +18 -21
  35. package/dist/component/FluxFormDateTimeInput.vue.d.ts +18 -24
  36. package/dist/component/FluxFormField.vue.d.ts +7 -7
  37. package/dist/component/FluxFormGrid.vue.d.ts +3 -3
  38. package/dist/component/FluxFormInput.vue.d.ts +2 -9
  39. package/dist/component/FluxFormInputAddition.vue.d.ts +3 -3
  40. package/dist/component/FluxFormInputGroup.vue.d.ts +3 -3
  41. package/dist/component/FluxFormPinInput.vue.d.ts +2 -4
  42. package/dist/component/FluxFormRangeSlider.vue.d.ts +18 -2
  43. package/dist/component/FluxFormRow.vue.d.ts +3 -3
  44. package/dist/component/FluxFormSection.vue.d.ts +3 -3
  45. package/dist/component/FluxFormSelect.vue.d.ts +2 -4
  46. package/dist/component/FluxFormSelectAsync.vue.d.ts +2 -4
  47. package/dist/component/FluxFormSlider.vue.d.ts +11 -2
  48. package/dist/component/FluxFormTextArea.vue.d.ts +2 -6
  49. package/dist/component/FluxFormTimeZonePicker.vue.d.ts +2 -4
  50. package/dist/component/FluxFormTreeViewSelect.vue.d.ts +15 -37
  51. package/dist/component/FluxGallery.vue.d.ts +3 -3
  52. package/dist/component/FluxGrid.vue.d.ts +3 -3
  53. package/dist/component/FluxGridColumn.vue.d.ts +3 -3
  54. package/dist/component/FluxIcon.vue.d.ts +1 -0
  55. package/dist/component/FluxInfo.vue.d.ts +3 -3
  56. package/dist/component/FluxInfoStack.vue.d.ts +3 -3
  57. package/dist/component/FluxLayerPane.vue.d.ts +20 -0
  58. package/dist/component/FluxLayerPaneSecondary.vue.d.ts +20 -0
  59. package/dist/component/FluxMenu.vue.d.ts +3 -3
  60. package/dist/component/FluxMenuCollapsible.vue.d.ts +47 -0
  61. package/dist/component/FluxMenuGroup.vue.d.ts +3 -3
  62. package/dist/component/FluxMenuItem.vue.d.ts +5 -3
  63. package/dist/component/FluxMenuOptions.vue.d.ts +3 -3
  64. package/dist/component/FluxNotice.vue.d.ts +5 -5
  65. package/dist/component/FluxNoticeStack.vue.d.ts +3 -3
  66. package/dist/component/FluxOverflowBar.vue.d.ts +4 -4
  67. package/dist/component/FluxPane.vue.d.ts +5 -5
  68. package/dist/component/FluxPaneBody.vue.d.ts +3 -3
  69. package/dist/component/FluxPaneFooter.vue.d.ts +3 -3
  70. package/dist/component/FluxPaneGroup.vue.d.ts +3 -3
  71. package/dist/component/FluxPaneHeader.vue.d.ts +6 -6
  72. package/dist/component/FluxPaneIllustration.vue.d.ts +5 -5
  73. package/dist/component/FluxPressable.vue.d.ts +3 -3
  74. package/dist/component/FluxPrompt.vue.d.ts +3 -17
  75. package/dist/component/FluxRoot.vue.d.ts +3 -3
  76. package/dist/component/FluxRow.vue.d.ts +23 -0
  77. package/dist/component/FluxSegmentedControl.vue.d.ts +3 -2
  78. package/dist/component/FluxSplitButton.vue.d.ts +5 -5
  79. package/dist/component/FluxStack.vue.d.ts +3 -3
  80. package/dist/component/FluxStepper.vue.d.ts +6 -6
  81. package/dist/component/FluxStepperStep.vue.d.ts +3 -3
  82. package/dist/component/FluxTab.vue.d.ts +3 -3
  83. package/dist/component/FluxTabBar.vue.d.ts +3 -3
  84. package/dist/component/FluxTabBarItem.vue.d.ts +5 -7
  85. package/dist/component/FluxTableActions.vue.d.ts +3 -3
  86. package/dist/component/FluxTableBar.vue.d.ts +3 -3
  87. package/dist/component/FluxTableCell.vue.d.ts +5 -5
  88. package/dist/component/FluxTableHeader.vue.d.ts +3 -3
  89. package/dist/component/FluxTableRow.vue.d.ts +3 -3
  90. package/dist/component/FluxTabs.vue.d.ts +6 -6
  91. package/dist/component/FluxTag.vue.d.ts +1 -0
  92. package/dist/component/FluxTagStack.vue.d.ts +3 -3
  93. package/dist/component/FluxTimeline.vue.d.ts +3 -3
  94. package/dist/component/FluxTimelineItem.vue.d.ts +3 -3
  95. package/dist/component/FluxToggle.vue.d.ts +2 -3
  96. package/dist/component/FluxToolbar.vue.d.ts +3 -3
  97. package/dist/component/FluxToolbarGroup.vue.d.ts +3 -3
  98. package/dist/component/FluxWindow.vue.d.ts +3 -3
  99. package/dist/component/index.d.ts +11 -3
  100. package/dist/component/primitive/Anchor.vue.d.ts +3 -3
  101. package/dist/component/primitive/AnchorPopup.vue.d.ts +3 -3
  102. package/dist/component/primitive/CoordinatePicker.vue.d.ts +1 -0
  103. package/dist/component/primitive/DialogLayout.vue.d.ts +28 -0
  104. package/dist/component/primitive/FilterOptionBase.vue.d.ts +2 -2
  105. package/dist/component/primitive/SelectBase.vue.d.ts +19 -37
  106. package/dist/component/primitive/SliderThumb.vue.d.ts +4 -0
  107. package/dist/component/primitive/TreeNodeRenderer.vue.d.ts +30 -0
  108. package/dist/component/primitive/index.d.ts +2 -0
  109. package/dist/composable/index.d.ts +1 -0
  110. package/dist/composable/private/index.d.ts +8 -0
  111. package/dist/composable/private/useAsyncFilterOptions.d.ts +14 -0
  112. package/dist/composable/private/useCommandPalette.d.ts +38 -0
  113. package/dist/composable/private/useDateFlyout.d.ts +10 -0
  114. package/dist/composable/private/useDropdownPopup.d.ts +27 -0
  115. package/dist/composable/private/useFilterOption.d.ts +12 -0
  116. package/dist/composable/useAdaptiveGroupInjection.d.ts +2 -0
  117. package/dist/data/di.d.ts +11 -0
  118. package/dist/data/filter.d.ts +4 -17
  119. package/dist/data/i18n.d.ts +17 -0
  120. package/dist/data/timeZones.d.ts +3 -0
  121. package/dist/index.css +710 -349
  122. package/dist/index.d.ts +1 -1
  123. package/dist/index.js +6936 -5537
  124. package/dist/index.js.map +1 -1
  125. package/dist/transition/FluxAutoHeightTransition.vue.d.ts +5 -3
  126. package/dist/transition/FluxAutoWidthTransition.vue.d.ts +5 -3
  127. package/dist/transition/FluxBreakthroughTransition.vue.d.ts +5 -3
  128. package/dist/transition/FluxFadeTransition.vue.d.ts +5 -3
  129. package/dist/transition/FluxOverlayTransition.vue.d.ts +5 -3
  130. package/dist/transition/FluxRouteTransition.vue.d.ts +5 -3
  131. package/dist/transition/FluxSlideOverTransition.vue.d.ts +5 -3
  132. package/dist/transition/FluxTooltipTransition.vue.d.ts +5 -3
  133. package/dist/transition/FluxVerticalWindowTransition.vue.d.ts +5 -3
  134. package/dist/transition/FluxWindowTransition.vue.d.ts +5 -3
  135. package/package.json +19 -23
  136. package/src/component/FluxActionBar.vue +9 -8
  137. package/src/component/FluxActionPane.vue +4 -3
  138. package/src/component/{FluxActions.vue → FluxActionStack.vue} +2 -2
  139. package/src/component/FluxAdaptiveGroup.vue +112 -0
  140. package/src/component/FluxAdaptiveSlot.vue +159 -0
  141. package/src/component/FluxAlert.vue +8 -17
  142. package/src/component/FluxAnimatedColors.vue +1 -1
  143. package/src/component/FluxAspectRatio.vue +2 -1
  144. package/src/component/FluxBadge.vue +5 -1
  145. package/src/component/FluxBadgeStack.vue +2 -1
  146. package/src/component/FluxButtonGroup.vue +2 -1
  147. package/src/component/FluxButtonStack.vue +2 -1
  148. package/src/component/FluxCalendar.vue +8 -1
  149. package/src/component/FluxCalendarEvent.vue +2 -1
  150. package/src/component/FluxCheckbox.vue +33 -6
  151. package/src/component/FluxChip.vue +1 -0
  152. package/src/component/FluxClickablePane.vue +3 -2
  153. package/src/component/FluxColorPicker.vue +8 -1
  154. package/src/component/FluxColorSelect.vue +25 -4
  155. package/src/component/{FluxAutoGrid.vue → FluxColumn.vue} +5 -8
  156. package/src/component/FluxCommandPalette.vue +290 -0
  157. package/src/component/FluxCommandPaletteGroup.vue +23 -0
  158. package/src/component/FluxCommandPaletteItem.vue +60 -0
  159. package/src/component/FluxComment.vue +2 -2
  160. package/src/component/FluxConfirm.vue +8 -17
  161. package/src/component/FluxContainer.vue +3 -2
  162. package/src/component/FluxDataTable.vue +3 -1
  163. package/src/component/FluxDivider.vue +7 -3
  164. package/src/component/FluxDropZone.vue +22 -8
  165. package/src/component/FluxExpandable.vue +3 -2
  166. package/src/component/FluxExpandableGroup.vue +2 -2
  167. package/src/component/FluxFader.vue +2 -2
  168. package/src/component/FluxFaderItem.vue +2 -1
  169. package/src/component/FluxFilter.vue +2 -1
  170. package/src/component/FluxFilterBar.vue +3 -2
  171. package/src/component/FluxFilterBase.vue +17 -9
  172. package/src/component/FluxFilterOption.vue +3 -14
  173. package/src/component/FluxFilterOptionAsync.vue +17 -60
  174. package/src/component/FluxFilterOptions.vue +3 -25
  175. package/src/component/FluxFilterOptionsAsync.vue +9 -73
  176. package/src/component/FluxFilterWindow.vue +1 -1
  177. package/src/component/FluxFlyout.vue +13 -11
  178. package/src/component/FluxForm.vue +2 -1
  179. package/src/component/FluxFormColumn.vue +2 -1
  180. package/src/component/FluxFormDateInput.vue +9 -22
  181. package/src/component/FluxFormDateRangeInput.vue +20 -15
  182. package/src/component/FluxFormDateTimeInput.vue +17 -20
  183. package/src/component/FluxFormField.vue +4 -4
  184. package/src/component/FluxFormGrid.vue +2 -1
  185. package/src/component/FluxFormInput.vue +11 -10
  186. package/src/component/FluxFormInputAddition.vue +2 -1
  187. package/src/component/FluxFormInputGroup.vue +3 -2
  188. package/src/component/FluxFormPinInput.vue +14 -6
  189. package/src/component/FluxFormRangeSlider.vue +12 -2
  190. package/src/component/FluxFormRow.vue +2 -1
  191. package/src/component/FluxFormSection.vue +4 -3
  192. package/src/component/FluxFormSelect.vue +11 -4
  193. package/src/component/FluxFormSelectAsync.vue +14 -8
  194. package/src/component/FluxFormSlider.vue +8 -2
  195. package/src/component/FluxFormTextArea.vue +12 -7
  196. package/src/component/FluxFormTimeZonePicker.vue +13 -626
  197. package/src/component/FluxFormTreeViewSelect.vue +51 -79
  198. package/src/component/FluxGallery.vue +2 -1
  199. package/src/component/FluxGrid.vue +3 -2
  200. package/src/component/FluxGridColumn.vue +2 -1
  201. package/src/component/FluxIcon.vue +4 -2
  202. package/src/component/FluxInfo.vue +2 -1
  203. package/src/component/FluxInfoStack.vue +3 -2
  204. package/src/component/FluxLayerPane.vue +16 -0
  205. package/src/component/FluxLayerPaneSecondary.vue +16 -0
  206. package/src/component/FluxLegend.vue +9 -9
  207. package/src/component/FluxMenu.vue +2 -2
  208. package/src/component/FluxMenuCollapsible.vue +187 -0
  209. package/src/component/FluxMenuGroup.vue +2 -1
  210. package/src/component/FluxMenuItem.vue +9 -1
  211. package/src/component/FluxMenuOptions.vue +1 -1
  212. package/src/component/FluxNotice.vue +7 -2
  213. package/src/component/FluxNoticeStack.vue +2 -1
  214. package/src/component/FluxOverflowBar.vue +3 -3
  215. package/src/component/FluxPagination.vue +1 -0
  216. package/src/component/FluxPane.vue +3 -2
  217. package/src/component/FluxPaneBody.vue +2 -1
  218. package/src/component/FluxPaneFooter.vue +2 -1
  219. package/src/component/FluxPaneGroup.vue +2 -1
  220. package/src/component/FluxPaneHeader.vue +7 -6
  221. package/src/component/FluxPaneIllustration.vue +3 -3
  222. package/src/component/FluxPaneMedia.vue +1 -1
  223. package/src/component/FluxPercentageBar.vue +3 -1
  224. package/src/component/FluxPressable.vue +2 -1
  225. package/src/component/FluxProgressBar.vue +2 -1
  226. package/src/component/FluxPrompt.vue +16 -27
  227. package/src/component/FluxRemove.vue +4 -0
  228. package/src/component/FluxRoot.vue +2 -2
  229. package/src/component/FluxRow.vue +24 -0
  230. package/src/component/FluxSegmentedControl.vue +51 -4
  231. package/src/component/FluxSnackbar.vue +36 -12
  232. package/src/component/FluxSplitButton.vue +3 -2
  233. package/src/component/FluxStack.vue +4 -3
  234. package/src/component/FluxStepper.vue +3 -3
  235. package/src/component/FluxStepperStep.vue +2 -1
  236. package/src/component/FluxTab.vue +2 -1
  237. package/src/component/FluxTabBar.vue +3 -3
  238. package/src/component/FluxTableActions.vue +5 -4
  239. package/src/component/FluxTableBar.vue +2 -1
  240. package/src/component/FluxTableCell.vue +4 -3
  241. package/src/component/FluxTableHeader.vue +4 -2
  242. package/src/component/FluxTableRow.vue +2 -1
  243. package/src/component/FluxTabs.vue +15 -6
  244. package/src/component/FluxTag.vue +8 -2
  245. package/src/component/FluxTagStack.vue +2 -1
  246. package/src/component/FluxTimeline.vue +2 -1
  247. package/src/component/FluxTimelineItem.vue +2 -1
  248. package/src/component/FluxToggle.vue +20 -5
  249. package/src/component/FluxToolbar.vue +2 -1
  250. package/src/component/FluxToolbarGroup.vue +2 -1
  251. package/src/component/FluxTooltip.vue +1 -1
  252. package/src/component/FluxTreeView.vue +9 -35
  253. package/src/component/FluxWindow.vue +2 -2
  254. package/src/component/index.ts +11 -3
  255. package/src/component/primitive/Anchor.vue +3 -1
  256. package/src/component/primitive/AnchorPopup.vue +3 -3
  257. package/src/component/primitive/CoordinatePicker.vue +2 -1
  258. package/src/component/primitive/CoordinatePickerThumb.vue +2 -0
  259. package/src/component/primitive/DialogLayout.vue +44 -0
  260. package/src/component/primitive/SelectBase.vue +22 -28
  261. package/src/component/primitive/SliderBase.vue +0 -1
  262. package/src/component/primitive/SliderThumb.vue +9 -0
  263. package/src/component/primitive/TreeNodeRenderer.vue +77 -0
  264. package/src/component/primitive/index.ts +2 -0
  265. package/src/composable/index.ts +1 -0
  266. package/src/composable/private/index.ts +8 -0
  267. package/src/composable/private/useAsyncFilterOptions.ts +70 -0
  268. package/src/composable/private/useCommandPalette.ts +405 -0
  269. package/src/composable/private/useDateFlyout.ts +34 -0
  270. package/src/composable/private/useDropdownPopup.ts +99 -0
  271. package/src/composable/private/useFilterOption.ts +59 -0
  272. package/src/composable/useAdaptiveGroupInjection.ts +6 -0
  273. package/src/css/component/Action.module.scss +2 -2
  274. package/src/css/component/AdaptiveSlot.module.scss +25 -0
  275. package/src/css/component/Avatar.module.scss +10 -11
  276. package/src/css/component/Badge.module.scss +11 -4
  277. package/src/css/component/Button.module.scss +4 -16
  278. package/src/css/component/Calendar.module.scss +4 -4
  279. package/src/css/component/Chip.module.scss +6 -10
  280. package/src/css/component/Color.module.scss +1 -1
  281. package/src/css/component/CommandPalette.module.scss +332 -0
  282. package/src/css/component/DatePicker.module.scss +1 -1
  283. package/src/css/component/Expandable.module.scss +5 -5
  284. package/src/css/component/Fader.module.scss +2 -1
  285. package/src/css/component/Flyout.module.scss +1 -1
  286. package/src/css/component/FocalPoint.module.scss +1 -1
  287. package/src/css/component/Form.module.scss +56 -10
  288. package/src/css/component/Item.module.scss +4 -4
  289. package/src/css/component/LayerPane.module.scss +40 -0
  290. package/src/css/component/Layout.module.scss +11 -4
  291. package/src/css/component/Legend.module.scss +2 -2
  292. package/src/css/component/Menu.module.scss +59 -11
  293. package/src/css/component/Notice.module.scss +7 -7
  294. package/src/css/component/Overlay.module.scss +2 -2
  295. package/src/css/component/Pane.module.scss +10 -23
  296. package/src/css/component/PercentageBar.module.scss +1 -1
  297. package/src/css/component/Remove.module.scss +1 -1
  298. package/src/css/component/SegmentedControl.module.scss +1 -0
  299. package/src/css/component/Snackbar.module.scss +1 -1
  300. package/src/css/component/Statistic.module.scss +2 -2
  301. package/src/css/component/Stepper.module.scss +1 -1
  302. package/src/css/component/Tab.module.scss +11 -15
  303. package/src/css/component/Table.module.scss +13 -13
  304. package/src/css/component/Timeline.module.scss +2 -2
  305. package/src/css/component/Toolbar.module.scss +3 -3
  306. package/src/css/component/Tooltip.module.scss +3 -4
  307. package/src/css/component/Transition.module.scss +1 -1
  308. package/src/css/component/TreeView.module.scss +2 -15
  309. package/src/css/component/TreeViewSelect.module.scss +1 -15
  310. package/src/css/component/base/Button.module.scss +6 -7
  311. package/src/css/component/base/Effect.module.scss +2 -1
  312. package/src/css/component/primitive/Slider.module.scss +6 -7
  313. package/src/css/component/primitive/TreeNode.module.scss +19 -0
  314. package/src/css/mixin/button-active.scss +6 -0
  315. package/src/css/mixin/focus-ring.scss +1 -1
  316. package/src/css/mixin/index.scss +1 -0
  317. package/src/css/typography.scss +3 -2
  318. package/src/css/variables.scss +7 -2
  319. package/src/data/di.ts +13 -0
  320. package/src/data/filter.ts +24 -28
  321. package/src/data/i18n.ts +17 -0
  322. package/src/data/store.ts +46 -11
  323. package/src/data/timeZones.ts +619 -0
  324. package/src/index.ts +2 -0
  325. package/src/transition/FluxAutoHeightTransition.vue +5 -0
  326. package/src/transition/FluxAutoWidthTransition.vue +5 -0
  327. package/src/transition/FluxBreakthroughTransition.vue +5 -0
  328. package/src/transition/FluxFadeTransition.vue +5 -0
  329. package/src/transition/FluxOverlayTransition.vue +5 -0
  330. package/src/transition/FluxRouteTransition.vue +5 -0
  331. package/src/transition/FluxSlideOverTransition.vue +5 -0
  332. package/src/transition/FluxTooltipTransition.vue +5 -0
  333. package/src/transition/FluxVerticalWindowTransition.vue +5 -0
  334. package/src/transition/FluxWindowTransition.vue +5 -0
  335. package/dist/0db98648.svg +0 -3
  336. package/src/component/FluxPaneDeck.vue +0 -24
  337. package/src/css/component/base/Grid.module.scss +0 -8
  338. package/src/image/avatar-mask.svg +0 -3
  339. package/tsconfig.json +0 -7
@@ -9,6 +9,7 @@
9
9
  <script
10
10
  lang="ts"
11
11
  setup>
12
+ import type { VNode } from 'vue';
12
13
  import $style from '$flux/css/component/Layout.module.scss';
13
14
 
14
15
  defineProps<{
@@ -16,6 +17,6 @@
16
17
  }>();
17
18
 
18
19
  defineSlots<{
19
- default(): any;
20
+ default(): VNode[];
20
21
  }>();
21
22
  </script>
@@ -40,7 +40,8 @@
40
40
  v-if="type === 'none' && isDeletable"
41
41
  :class="$style.badgeClose"
42
42
  type="button"
43
- @click="onDeleteClick()">
43
+ :aria-label="translate('flux.delete')"
44
+ @click.stop="onDeleteClick()">
44
45
  <FluxIcon name="xmark"/>
45
46
  </button>
46
47
  </FluxPressable>
@@ -51,6 +52,7 @@
51
52
  setup>
52
53
  import type { FluxButtonEmits, FluxColor, FluxIconName, FluxPressableType, FluxTo } from '@flux-ui/types';
53
54
  import { clsx } from 'clsx';
55
+ import { useTranslate } from '$flux/composable/private';
54
56
  import FluxIcon from './FluxIcon.vue';
55
57
  import FluxPressable from './FluxPressable.vue';
56
58
  import FluxSpinner from './FluxSpinner.vue';
@@ -78,6 +80,8 @@
78
80
  readonly to?: FluxTo;
79
81
  }>();
80
82
 
83
+ const translate = useTranslate();
84
+
81
85
  function onDeleteClick(): void {
82
86
  emit('delete');
83
87
  }
@@ -10,9 +10,10 @@
10
10
  <script
11
11
  lang="ts"
12
12
  setup>
13
+ import type { VNode } from 'vue';
13
14
  import FluxStack from './FluxStack.vue';
14
15
 
15
16
  defineSlots<{
16
- default(): any;
17
+ default(): VNode[];
17
18
  }>();
18
19
  </script>
@@ -7,9 +7,10 @@
7
7
  <script
8
8
  lang="ts"
9
9
  setup>
10
+ import type { VNode } from 'vue';
10
11
  import $style from '$flux/css/component/Button.module.scss';
11
12
 
12
13
  defineSlots<{
13
- default(): any;
14
+ default(): VNode[];
14
15
  }>();
15
16
  </script>
@@ -10,6 +10,7 @@
10
10
  <script
11
11
  lang="ts"
12
12
  setup>
13
+ import type { VNode } from 'vue';
13
14
  import type { FluxDirection } from '@flux-ui/types';
14
15
  import FluxStack from './FluxStack.vue';
15
16
 
@@ -23,6 +24,6 @@
23
24
  }>();
24
25
 
25
26
  defineSlots<{
26
- default(): any;
27
+ default(): VNode[];
27
28
  }>();
28
29
  </script>
@@ -9,6 +9,7 @@
9
9
  <template #opener="{open}">
10
10
  <button
11
11
  :class="$style.calendarCurrentMonth"
12
+ :aria-label="translate('flux.selectMonth')"
12
13
  type="button"
13
14
  @click="open">
14
15
  {{ viewMonth }}
@@ -33,6 +34,7 @@
33
34
  <template #opener="{open}">
34
35
  <button
35
36
  :class="$style.calendarCurrentYear"
37
+ :aria-label="translate('flux.selectYear')"
36
38
  type="button"
37
39
  @click="open">
38
40
  {{ viewYear }}
@@ -42,6 +44,7 @@
42
44
  <template #default="{close}">
43
45
  <div :class="$styleDatePicker.datePickerYears">
44
46
  <FluxSecondaryButton
47
+ :aria-label="translate('flux.previousYears')"
45
48
  icon-leading="angle-left"
46
49
  tabindex="-1"
47
50
  @click="previousYears"/>
@@ -56,6 +59,7 @@
56
59
  </template>
57
60
 
58
61
  <FluxSecondaryButton
62
+ :aria-label="translate('flux.nextYears')"
59
63
  icon-leading="angle-right"
60
64
  tabindex="-1"
61
65
  @click="nextYears"/>
@@ -67,15 +71,18 @@
67
71
 
68
72
  <template #actionsEnd>
69
73
  <FluxSecondaryButton
74
+ :aria-label="translate('flux.today')"
70
75
  :label="translate('flux.today')"
71
76
  @click="setToday"/>
72
77
 
73
78
  <FluxButtonGroup>
74
79
  <FluxSecondaryButton
80
+ :aria-label="translate('flux.previousMonth')"
75
81
  icon-leading="angle-left"
76
82
  @click="previousMonth"/>
77
83
 
78
84
  <FluxSecondaryButton
85
+ :aria-label="translate('flux.nextMonth')"
79
86
  icon-leading="angle-right"
80
87
  @click="nextMonth"/>
81
88
  </FluxButtonGroup>
@@ -168,7 +175,7 @@
168
175
  }>();
169
176
 
170
177
  const slots = defineSlots<{
171
- default?(): any;
178
+ default?(): VNode[];
172
179
  }>();
173
180
 
174
181
  const {
@@ -18,6 +18,7 @@
18
18
  <script
19
19
  lang="ts"
20
20
  setup>
21
+ import type { VNode } from 'vue';
21
22
  import type { DateTime } from 'luxon';
22
23
  import FluxTooltip from './FluxTooltip.vue';
23
24
  import $style from '$flux/css/component/Calendar.module.scss';
@@ -32,7 +33,7 @@
32
33
  }>();
33
34
 
34
35
  defineSlots<{
35
- tooltip(): any;
36
+ tooltip(): VNode[];
36
37
  }>();
37
38
 
38
39
  function onClick(evt: MouseEvent): void {
@@ -1,13 +1,23 @@
1
1
  <template>
2
2
  <label
3
- :class="$style.checkbox"
3
+ :class="clsx(
4
+ $style.checkbox,
5
+ disabled && $style.isDisabled,
6
+ isReadonly && $style.isReadonly,
7
+ error && $style.isInvalid
8
+ )"
4
9
  :for="id">
5
10
  <input
6
11
  v-model="modelValue"
7
12
  ref="input"
8
13
  type="checkbox"
9
14
  :class="$style.checkboxNative"
10
- :id="id"/>
15
+ :id="id"
16
+ :disabled="disabled"
17
+ :aria-disabled="disabled ? true : undefined"
18
+ :aria-readonly="isReadonly ? true : undefined"
19
+ :aria-invalid="error ? true : undefined"
20
+ @click="onClick"/>
11
21
 
12
22
  <button
13
23
  aria-hidden="true"
@@ -35,8 +45,10 @@
35
45
  <script
36
46
  lang="ts"
37
47
  setup>
38
- import { computed, unref, useTemplateRef, watchEffect } from 'vue';
39
- import { useFormFieldInjection } from '$flux/composable';
48
+ import type { FluxFormInputBaseProps } from '@flux-ui/types';
49
+ import { clsx } from 'clsx';
50
+ import { computed, toRef, unref, useTemplateRef, watchEffect } from 'vue';
51
+ import { useDisabled, useFormFieldInjection } from '$flux/composable';
40
52
  import FluxIcon from './FluxIcon.vue';
41
53
  import $style from '$flux/css/component/Form.module.scss';
42
54
 
@@ -44,17 +56,32 @@
44
56
  default: false
45
57
  });
46
58
 
47
- defineProps<{
59
+ const {
60
+ disabled: componentDisabled,
61
+ isReadonly
62
+ } = defineProps<Pick<FluxFormInputBaseProps, 'disabled' | 'error' | 'isReadonly'> & {
48
63
  readonly label?: string;
49
64
  }>();
50
65
 
51
66
  const inputRef = useTemplateRef('input');
52
67
  const {id} = useFormFieldInjection();
53
68
 
69
+ const disabled = useDisabled(toRef(() => componentDisabled));
54
70
  const isIndeterminate = computed(() => unref(modelValue) === null);
55
71
 
72
+ function onClick(evt: MouseEvent): void {
73
+ if (isReadonly) {
74
+ evt.preventDefault();
75
+ }
76
+ }
77
+
56
78
  watchEffect(() => {
57
79
  const input = unref(inputRef);
58
- input && (input.indeterminate = unref(isIndeterminate));
80
+
81
+ if (!input) {
82
+ return;
83
+ }
84
+
85
+ input.indeterminate = unref(isIndeterminate);
59
86
  });
60
87
  </script>
@@ -6,6 +6,7 @@
6
6
  isSelectable && $style.isSelectable,
7
7
  isSelected && $style.isSelected
8
8
  )"
9
+ :aria-pressed="isSelectable ? isSelected : undefined"
9
10
  @click="$emit('click', $event)">
10
11
  <FluxFadeTransition v-if="isSelectable">
11
12
  <FluxIcon
@@ -29,6 +29,7 @@
29
29
  <script
30
30
  lang="ts"
31
31
  setup>
32
+ import type { VNode } from 'vue';
32
33
  import type { FluxPressableType, FluxTo } from '@flux-ui/types';
33
34
  import FluxPressable from './FluxPressable.vue';
34
35
  import FluxSpinner from './FluxSpinner.vue';
@@ -55,7 +56,7 @@
55
56
  }>();
56
57
 
57
58
  defineSlots<{
58
- default(): any;
59
- loader(): any;
59
+ default(): VNode[];
60
+ loader(): VNode[];
60
61
  }>();
61
62
  </script>
@@ -6,6 +6,7 @@
6
6
  }">
7
7
  <CoordinatePicker
8
8
  v-model="saturationValue"
9
+ :aria-label="translate('flux.colorSaturationBrightness')"
9
10
  :class="$style.colorPickerSaturation"
10
11
  :max="1"
11
12
  :min="0"
@@ -14,6 +15,7 @@
14
15
 
15
16
  <FluxFormSlider
16
17
  v-model="hue"
18
+ :aria-label="translate('flux.hue')"
17
19
  :class="$style.colorPickerHueSlider"
18
20
  is-tooltip-disabled
19
21
  :max="360"
@@ -23,6 +25,7 @@
23
25
  <FluxFormSlider
24
26
  v-if="isAlphaEnabled"
25
27
  v-model="alpha"
28
+ :aria-label="translate('flux.opacity')"
26
29
  :class="$style.colorPickerAlphaSlider"
27
30
  is-tooltip-disabled
28
31
  :max="1"
@@ -34,7 +37,8 @@
34
37
  :class="$style.colorPickerPreview"
35
38
  :style="{
36
39
  '--color': rgb
37
- }"/>
40
+ }"
41
+ aria-hidden="true"/>
38
42
 
39
43
  <FluxFormField
40
44
  v-if="type === 'hex'"
@@ -129,6 +133,7 @@
129
133
  import { hexToRGB, hslToHSV, hslToRGB, hsvToHSL, hsvToRGB, rgbToHEX, rgbToHSL, rgbToHSV } from '@basmilius/utils';
130
134
  import { blue500 } from '@flux-ui/internals';
131
135
  import { computed, type ComputedRef, ref, unref, watch } from 'vue';
136
+ import { useTranslate } from '$flux/composable/private';
132
137
  import CoordinatePicker from './primitive/CoordinatePicker.vue';
133
138
  import FluxFormField from './FluxFormField.vue';
134
139
  import FluxFormInput from './FluxFormInput.vue';
@@ -146,6 +151,8 @@
146
151
  readonly type?: 'hex' | 'rgb' | 'hsl' | 'hsv';
147
152
  }>();
148
153
 
154
+ const translate = useTranslate();
155
+
149
156
  const alpha = ref(1);
150
157
  const hsv = ref<[number, number, number]>([0, 0, 0]);
151
158
  const isDragging = ref(false);
@@ -1,22 +1,35 @@
1
1
  <template>
2
- <div :class="$style.colorSelect">
2
+ <div
3
+ :class="$style.colorSelect"
4
+ role="radiogroup">
3
5
  <button
4
6
  v-for="color of colors"
7
+ :key="color"
5
8
  :class="modelValue === color ? $style.colorSelectColorSelected : $style.colorSelectColorDeselected"
6
9
  :style="{
7
10
  '--color': color
8
11
  }"
12
+ type="button"
13
+ role="radio"
14
+ :aria-checked="modelValue === color"
15
+ :aria-label="color"
16
+ :disabled="disabled"
17
+ :tabindex="disabled ? -1 : 0"
9
18
  @click="select(color)">
10
19
  <FluxIcon
11
20
  :class="$style.colorSelectCheck"
12
21
  name="check"
13
- :size="16"/>
22
+ :size="14"/>
14
23
  </button>
15
24
 
16
25
  <FluxFlyout v-if="isCustomAllowed">
17
26
  <template #opener="{open}">
18
27
  <button
19
28
  :class="$style.colorSelectCustom"
29
+ type="button"
30
+ :disabled="disabled"
31
+ :tabindex="disabled ? -1 : 0"
32
+ :aria-label="translate('flux.customColor')"
20
33
  @click="open()">
21
34
  <FluxIcon
22
35
  name="ellipsis-h"
@@ -47,7 +60,8 @@
47
60
  lang="ts"
48
61
  setup>
49
62
  import { amber500, blue500, cyan500, emerald500, fuchsia500, green500, indigo500, lime500, orange500, pink500, purple500, red500, rose500, sky500, teal500, violet500, yellow500 } from '@flux-ui/internals';
50
- import { ref, watch } from 'vue';
63
+ import { ref, toRef, unref, watch } from 'vue';
64
+ import { useDisabled } from '$flux/composable';
51
65
  import { useTranslate } from '$flux/composable/private';
52
66
  import FluxColorPicker from './FluxColorPicker.vue';
53
67
  import FluxFlyout from './FluxFlyout.vue';
@@ -62,17 +76,24 @@
62
76
  });
63
77
 
64
78
  const {
65
- colors = [red500, orange500, amber500, yellow500, lime500, green500, emerald500, teal500, cyan500, sky500, blue500, indigo500, violet500, purple500, fuchsia500, pink500, rose500]
79
+ colors = [red500, orange500, amber500, yellow500, lime500, green500, emerald500, teal500, cyan500, sky500, blue500, indigo500, violet500, purple500, fuchsia500, pink500, rose500],
80
+ disabled: componentDisabled
66
81
  } = defineProps<{
67
82
  readonly colors?: string[];
83
+ readonly disabled?: boolean;
68
84
  readonly isCustomAllowed?: boolean;
69
85
  }>();
70
86
 
87
+ const disabled = useDisabled(toRef(() => componentDisabled));
71
88
  const translate = useTranslate();
72
89
 
73
90
  const customColor = ref('#000000');
74
91
 
75
92
  function select(color: string, close?: () => void): void {
93
+ if (unref(disabled)) {
94
+ return;
95
+ }
96
+
76
97
  modelValue.value = color;
77
98
  close?.();
78
99
  }
@@ -1,10 +1,7 @@
1
1
  <template>
2
2
  <div
3
- :class="$style.autoGrid"
4
- :style="{
5
- gap: `${gap}px`,
6
- '--min-column-width': minColumnWidth
7
- }">
3
+ :class="$style.column"
4
+ :style="{'--gap': `${gap}px`}">
8
5
  <slot/>
9
6
  </div>
10
7
  </template>
@@ -12,16 +9,16 @@
12
9
  <script
13
10
  lang="ts"
14
11
  setup>
12
+ import type { VNode } from 'vue';
15
13
  import $style from '$flux/css/component/Layout.module.scss';
16
14
 
17
15
  const {
18
- gap = 21
16
+ gap = 18
19
17
  } = defineProps<{
20
18
  readonly gap?: number;
21
- readonly minColumnWidth: number;
22
19
  }>();
23
20
 
24
21
  defineSlots<{
25
- default(): any;
22
+ default(): VNode[];
26
23
  }>();
27
24
  </script>