@flux-ui/components 3.0.0-next.35 → 3.0.0-next.39

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 (330) 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/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/FluxComment.vue.d.ts +3 -3
  17. package/dist/component/FluxContainer.vue.d.ts +3 -3
  18. package/dist/component/FluxDivider.vue.d.ts +5 -3
  19. package/dist/component/FluxDropZone.vue.d.ts +8 -7
  20. package/dist/component/FluxExpandableGroup.vue.d.ts +3 -3
  21. package/dist/component/FluxFader.vue.d.ts +3 -3
  22. package/dist/component/FluxFaderItem.vue.d.ts +3 -3
  23. package/dist/component/FluxFilter.vue.d.ts +3 -3
  24. package/dist/component/FluxFilterBar.vue.d.ts +3 -3
  25. package/dist/component/FluxFilterBase.vue.d.ts +4 -4
  26. package/dist/component/FluxFilterWindow.vue.d.ts +13 -17
  27. package/dist/component/FluxFlyout.vue.d.ts +19 -21
  28. package/dist/component/FluxForm.vue.d.ts +3 -3
  29. package/dist/component/FluxFormColumn.vue.d.ts +3 -3
  30. package/dist/component/FluxFormDateInput.vue.d.ts +18 -24
  31. package/dist/component/FluxFormDateRangeInput.vue.d.ts +18 -21
  32. package/dist/component/FluxFormDateTimeInput.vue.d.ts +18 -24
  33. package/dist/component/FluxFormField.vue.d.ts +7 -7
  34. package/dist/component/FluxFormGrid.vue.d.ts +3 -3
  35. package/dist/component/FluxFormInput.vue.d.ts +2 -9
  36. package/dist/component/FluxFormInputAddition.vue.d.ts +3 -3
  37. package/dist/component/FluxFormInputGroup.vue.d.ts +3 -3
  38. package/dist/component/FluxFormPinInput.vue.d.ts +2 -4
  39. package/dist/component/FluxFormRangeSlider.vue.d.ts +18 -2
  40. package/dist/component/FluxFormRow.vue.d.ts +3 -3
  41. package/dist/component/FluxFormSection.vue.d.ts +3 -3
  42. package/dist/component/FluxFormSelect.vue.d.ts +2 -4
  43. package/dist/component/FluxFormSelectAsync.vue.d.ts +2 -4
  44. package/dist/component/FluxFormSlider.vue.d.ts +11 -2
  45. package/dist/component/FluxFormTextArea.vue.d.ts +2 -6
  46. package/dist/component/FluxFormTimeZonePicker.vue.d.ts +2 -4
  47. package/dist/component/FluxFormTreeViewSelect.vue.d.ts +15 -37
  48. package/dist/component/FluxGallery.vue.d.ts +3 -3
  49. package/dist/component/FluxGrid.vue.d.ts +3 -3
  50. package/dist/component/FluxGridColumn.vue.d.ts +3 -3
  51. package/dist/component/FluxIcon.vue.d.ts +1 -0
  52. package/dist/component/FluxInfo.vue.d.ts +3 -3
  53. package/dist/component/FluxInfoStack.vue.d.ts +3 -3
  54. package/dist/component/FluxLayerPane.vue.d.ts +20 -0
  55. package/dist/component/FluxLayerPaneSecondary.vue.d.ts +20 -0
  56. package/dist/component/FluxMenu.vue.d.ts +3 -3
  57. package/dist/component/FluxMenuCollapsible.vue.d.ts +47 -0
  58. package/dist/component/FluxMenuGroup.vue.d.ts +3 -3
  59. package/dist/component/FluxMenuItem.vue.d.ts +5 -3
  60. package/dist/component/FluxMenuOptions.vue.d.ts +3 -3
  61. package/dist/component/FluxNotice.vue.d.ts +5 -5
  62. package/dist/component/FluxNoticeStack.vue.d.ts +3 -3
  63. package/dist/component/FluxOverflowBar.vue.d.ts +4 -4
  64. package/dist/component/FluxPane.vue.d.ts +5 -5
  65. package/dist/component/FluxPaneBody.vue.d.ts +3 -3
  66. package/dist/component/FluxPaneFooter.vue.d.ts +3 -3
  67. package/dist/component/FluxPaneGroup.vue.d.ts +3 -3
  68. package/dist/component/FluxPaneHeader.vue.d.ts +6 -6
  69. package/dist/component/FluxPaneIllustration.vue.d.ts +5 -5
  70. package/dist/component/FluxPressable.vue.d.ts +3 -3
  71. package/dist/component/FluxPrompt.vue.d.ts +3 -17
  72. package/dist/component/FluxRoot.vue.d.ts +3 -3
  73. package/dist/component/FluxRow.vue.d.ts +23 -0
  74. package/dist/component/FluxSegmentedControl.vue.d.ts +3 -2
  75. package/dist/component/FluxSplitButton.vue.d.ts +5 -5
  76. package/dist/component/FluxStack.vue.d.ts +3 -3
  77. package/dist/component/FluxStepper.vue.d.ts +6 -6
  78. package/dist/component/FluxStepperStep.vue.d.ts +3 -3
  79. package/dist/component/FluxTab.vue.d.ts +3 -3
  80. package/dist/component/FluxTabBar.vue.d.ts +3 -3
  81. package/dist/component/FluxTabBarItem.vue.d.ts +5 -7
  82. package/dist/component/FluxTableActions.vue.d.ts +3 -3
  83. package/dist/component/FluxTableBar.vue.d.ts +3 -3
  84. package/dist/component/FluxTableCell.vue.d.ts +5 -5
  85. package/dist/component/FluxTableHeader.vue.d.ts +3 -3
  86. package/dist/component/FluxTableRow.vue.d.ts +3 -3
  87. package/dist/component/FluxTabs.vue.d.ts +6 -6
  88. package/dist/component/FluxTagStack.vue.d.ts +3 -3
  89. package/dist/component/FluxTimeline.vue.d.ts +3 -3
  90. package/dist/component/FluxTimelineItem.vue.d.ts +3 -3
  91. package/dist/component/FluxToggle.vue.d.ts +2 -3
  92. package/dist/component/FluxToolbar.vue.d.ts +3 -3
  93. package/dist/component/FluxToolbarGroup.vue.d.ts +3 -3
  94. package/dist/component/FluxWindow.vue.d.ts +3 -3
  95. package/dist/component/index.d.ts +7 -2
  96. package/dist/component/primitive/Anchor.vue.d.ts +3 -3
  97. package/dist/component/primitive/AnchorPopup.vue.d.ts +3 -3
  98. package/dist/component/primitive/CoordinatePicker.vue.d.ts +1 -0
  99. package/dist/component/primitive/DialogLayout.vue.d.ts +28 -0
  100. package/dist/component/primitive/FilterOptionBase.vue.d.ts +2 -2
  101. package/dist/component/primitive/SelectBase.vue.d.ts +19 -37
  102. package/dist/component/primitive/SliderThumb.vue.d.ts +4 -0
  103. package/dist/component/primitive/TreeNodeRenderer.vue.d.ts +30 -0
  104. package/dist/component/primitive/index.d.ts +2 -0
  105. package/dist/composable/index.d.ts +1 -0
  106. package/dist/composable/private/index.d.ts +8 -0
  107. package/dist/composable/private/useAsyncFilterOptions.d.ts +14 -0
  108. package/dist/composable/private/useDateFlyout.d.ts +10 -0
  109. package/dist/composable/private/useDropdownPopup.d.ts +27 -0
  110. package/dist/composable/private/useFilterOption.d.ts +12 -0
  111. package/dist/composable/useAdaptiveGroupInjection.d.ts +2 -0
  112. package/dist/data/di.d.ts +11 -0
  113. package/dist/data/filter.d.ts +4 -17
  114. package/dist/data/i18n.d.ts +17 -0
  115. package/dist/data/timeZones.d.ts +3 -0
  116. package/dist/index.css +372 -331
  117. package/dist/index.d.ts +1 -1
  118. package/dist/index.js +7105 -6275
  119. package/dist/index.js.map +1 -1
  120. package/dist/transition/FluxAutoHeightTransition.vue.d.ts +5 -3
  121. package/dist/transition/FluxAutoWidthTransition.vue.d.ts +5 -3
  122. package/dist/transition/FluxBreakthroughTransition.vue.d.ts +5 -3
  123. package/dist/transition/FluxFadeTransition.vue.d.ts +5 -3
  124. package/dist/transition/FluxOverlayTransition.vue.d.ts +5 -3
  125. package/dist/transition/FluxRouteTransition.vue.d.ts +5 -3
  126. package/dist/transition/FluxSlideOverTransition.vue.d.ts +5 -3
  127. package/dist/transition/FluxTooltipTransition.vue.d.ts +5 -3
  128. package/dist/transition/FluxVerticalWindowTransition.vue.d.ts +5 -3
  129. package/dist/transition/FluxWindowTransition.vue.d.ts +5 -3
  130. package/package.json +19 -23
  131. package/src/component/FluxActionBar.vue +9 -8
  132. package/src/component/FluxActionPane.vue +4 -3
  133. package/src/component/FluxActionStack.vue +2 -2
  134. package/src/component/FluxAdaptiveGroup.vue +112 -0
  135. package/src/component/FluxAdaptiveSlot.vue +159 -0
  136. package/src/component/FluxAlert.vue +8 -17
  137. package/src/component/FluxAnimatedColors.vue +1 -1
  138. package/src/component/FluxAspectRatio.vue +2 -1
  139. package/src/component/FluxBadge.vue +5 -1
  140. package/src/component/FluxBadgeStack.vue +2 -1
  141. package/src/component/FluxButtonGroup.vue +2 -1
  142. package/src/component/FluxButtonStack.vue +2 -1
  143. package/src/component/FluxCalendar.vue +8 -1
  144. package/src/component/FluxCalendarEvent.vue +2 -1
  145. package/src/component/FluxCheckbox.vue +33 -6
  146. package/src/component/FluxChip.vue +1 -0
  147. package/src/component/FluxClickablePane.vue +3 -2
  148. package/src/component/FluxColorPicker.vue +8 -1
  149. package/src/component/FluxColorSelect.vue +25 -4
  150. package/src/component/{FluxAutoGrid.vue → FluxColumn.vue} +5 -8
  151. package/src/component/FluxComment.vue +2 -2
  152. package/src/component/FluxConfirm.vue +8 -17
  153. package/src/component/FluxContainer.vue +3 -2
  154. package/src/component/FluxDataTable.vue +3 -1
  155. package/src/component/FluxDivider.vue +7 -3
  156. package/src/component/FluxDropZone.vue +22 -8
  157. package/src/component/FluxExpandable.vue +3 -2
  158. package/src/component/FluxExpandableGroup.vue +2 -2
  159. package/src/component/FluxFader.vue +2 -2
  160. package/src/component/FluxFaderItem.vue +2 -1
  161. package/src/component/FluxFilter.vue +2 -1
  162. package/src/component/FluxFilterBar.vue +3 -2
  163. package/src/component/FluxFilterBase.vue +17 -9
  164. package/src/component/FluxFilterOption.vue +3 -14
  165. package/src/component/FluxFilterOptionAsync.vue +17 -60
  166. package/src/component/FluxFilterOptions.vue +3 -25
  167. package/src/component/FluxFilterOptionsAsync.vue +9 -73
  168. package/src/component/FluxFilterWindow.vue +1 -1
  169. package/src/component/FluxFlyout.vue +13 -11
  170. package/src/component/FluxForm.vue +2 -1
  171. package/src/component/FluxFormColumn.vue +2 -1
  172. package/src/component/FluxFormDateInput.vue +9 -22
  173. package/src/component/FluxFormDateRangeInput.vue +20 -15
  174. package/src/component/FluxFormDateTimeInput.vue +17 -20
  175. package/src/component/FluxFormField.vue +4 -4
  176. package/src/component/FluxFormGrid.vue +2 -1
  177. package/src/component/FluxFormInput.vue +11 -10
  178. package/src/component/FluxFormInputAddition.vue +2 -1
  179. package/src/component/FluxFormInputGroup.vue +3 -2
  180. package/src/component/FluxFormPinInput.vue +14 -6
  181. package/src/component/FluxFormRangeSlider.vue +12 -2
  182. package/src/component/FluxFormRow.vue +2 -1
  183. package/src/component/FluxFormSection.vue +4 -3
  184. package/src/component/FluxFormSelect.vue +11 -4
  185. package/src/component/FluxFormSelectAsync.vue +14 -8
  186. package/src/component/FluxFormSlider.vue +8 -2
  187. package/src/component/FluxFormTextArea.vue +12 -7
  188. package/src/component/FluxFormTimeZonePicker.vue +13 -626
  189. package/src/component/FluxFormTreeViewSelect.vue +51 -79
  190. package/src/component/FluxGallery.vue +2 -1
  191. package/src/component/FluxGrid.vue +3 -2
  192. package/src/component/FluxGridColumn.vue +2 -1
  193. package/src/component/FluxIcon.vue +4 -2
  194. package/src/component/FluxInfo.vue +2 -1
  195. package/src/component/FluxInfoStack.vue +3 -2
  196. package/src/component/FluxLayerPane.vue +16 -0
  197. package/src/component/FluxLayerPaneSecondary.vue +16 -0
  198. package/src/component/FluxLegend.vue +9 -9
  199. package/src/component/FluxMenu.vue +2 -2
  200. package/src/component/FluxMenuCollapsible.vue +187 -0
  201. package/src/component/FluxMenuGroup.vue +2 -1
  202. package/src/component/FluxMenuItem.vue +9 -1
  203. package/src/component/FluxMenuOptions.vue +1 -1
  204. package/src/component/FluxNotice.vue +7 -2
  205. package/src/component/FluxNoticeStack.vue +2 -1
  206. package/src/component/FluxOverflowBar.vue +3 -3
  207. package/src/component/FluxPagination.vue +1 -0
  208. package/src/component/FluxPane.vue +3 -2
  209. package/src/component/FluxPaneBody.vue +2 -1
  210. package/src/component/FluxPaneFooter.vue +2 -1
  211. package/src/component/FluxPaneGroup.vue +2 -1
  212. package/src/component/FluxPaneHeader.vue +7 -6
  213. package/src/component/FluxPaneIllustration.vue +3 -3
  214. package/src/component/FluxPaneMedia.vue +1 -1
  215. package/src/component/FluxPercentageBar.vue +3 -1
  216. package/src/component/FluxPressable.vue +2 -1
  217. package/src/component/FluxProgressBar.vue +2 -1
  218. package/src/component/FluxPrompt.vue +16 -27
  219. package/src/component/FluxRemove.vue +4 -0
  220. package/src/component/FluxRoot.vue +2 -2
  221. package/src/component/FluxRow.vue +24 -0
  222. package/src/component/FluxSegmentedControl.vue +51 -4
  223. package/src/component/FluxSnackbar.vue +36 -12
  224. package/src/component/FluxSplitButton.vue +3 -2
  225. package/src/component/FluxStack.vue +4 -3
  226. package/src/component/FluxStepper.vue +3 -3
  227. package/src/component/FluxStepperStep.vue +2 -1
  228. package/src/component/FluxTab.vue +2 -1
  229. package/src/component/FluxTabBar.vue +3 -3
  230. package/src/component/FluxTableActions.vue +2 -1
  231. package/src/component/FluxTableBar.vue +2 -1
  232. package/src/component/FluxTableCell.vue +4 -3
  233. package/src/component/FluxTableHeader.vue +4 -2
  234. package/src/component/FluxTableRow.vue +2 -1
  235. package/src/component/FluxTabs.vue +15 -6
  236. package/src/component/FluxTag.vue +5 -1
  237. package/src/component/FluxTagStack.vue +2 -1
  238. package/src/component/FluxTimeline.vue +2 -1
  239. package/src/component/FluxTimelineItem.vue +2 -1
  240. package/src/component/FluxToggle.vue +20 -5
  241. package/src/component/FluxToolbar.vue +2 -1
  242. package/src/component/FluxToolbarGroup.vue +2 -1
  243. package/src/component/FluxTooltip.vue +1 -1
  244. package/src/component/FluxTreeView.vue +9 -35
  245. package/src/component/FluxWindow.vue +2 -2
  246. package/src/component/index.ts +7 -2
  247. package/src/component/primitive/Anchor.vue +3 -1
  248. package/src/component/primitive/AnchorPopup.vue +3 -3
  249. package/src/component/primitive/CoordinatePicker.vue +2 -1
  250. package/src/component/primitive/CoordinatePickerThumb.vue +2 -0
  251. package/src/component/primitive/DialogLayout.vue +44 -0
  252. package/src/component/primitive/SelectBase.vue +22 -28
  253. package/src/component/primitive/SliderBase.vue +0 -1
  254. package/src/component/primitive/SliderThumb.vue +9 -0
  255. package/src/component/primitive/TreeNodeRenderer.vue +77 -0
  256. package/src/component/primitive/index.ts +2 -0
  257. package/src/composable/index.ts +1 -0
  258. package/src/composable/private/index.ts +8 -0
  259. package/src/composable/private/useAsyncFilterOptions.ts +70 -0
  260. package/src/composable/private/useCommandPalette.ts +1 -1
  261. package/src/composable/private/useDateFlyout.ts +34 -0
  262. package/src/composable/private/useDropdownPopup.ts +99 -0
  263. package/src/composable/private/useFilterOption.ts +59 -0
  264. package/src/composable/useAdaptiveGroupInjection.ts +6 -0
  265. package/src/css/component/Action.module.scss +2 -2
  266. package/src/css/component/AdaptiveSlot.module.scss +25 -0
  267. package/src/css/component/Avatar.module.scss +10 -11
  268. package/src/css/component/Badge.module.scss +4 -4
  269. package/src/css/component/Button.module.scss +4 -16
  270. package/src/css/component/Calendar.module.scss +4 -4
  271. package/src/css/component/Chip.module.scss +6 -10
  272. package/src/css/component/Color.module.scss +1 -1
  273. package/src/css/component/DatePicker.module.scss +1 -1
  274. package/src/css/component/Expandable.module.scss +5 -5
  275. package/src/css/component/Fader.module.scss +2 -1
  276. package/src/css/component/Flyout.module.scss +1 -1
  277. package/src/css/component/FocalPoint.module.scss +1 -1
  278. package/src/css/component/Form.module.scss +56 -10
  279. package/src/css/component/Item.module.scss +4 -4
  280. package/src/css/component/LayerPane.module.scss +40 -0
  281. package/src/css/component/Layout.module.scss +11 -4
  282. package/src/css/component/Legend.module.scss +2 -2
  283. package/src/css/component/Menu.module.scss +59 -11
  284. package/src/css/component/Notice.module.scss +7 -7
  285. package/src/css/component/Overlay.module.scss +2 -2
  286. package/src/css/component/Pane.module.scss +10 -23
  287. package/src/css/component/PercentageBar.module.scss +1 -1
  288. package/src/css/component/Remove.module.scss +1 -1
  289. package/src/css/component/SegmentedControl.module.scss +1 -0
  290. package/src/css/component/Snackbar.module.scss +1 -1
  291. package/src/css/component/Statistic.module.scss +2 -2
  292. package/src/css/component/Stepper.module.scss +1 -1
  293. package/src/css/component/Tab.module.scss +11 -15
  294. package/src/css/component/Table.module.scss +13 -13
  295. package/src/css/component/Timeline.module.scss +2 -2
  296. package/src/css/component/Toolbar.module.scss +3 -3
  297. package/src/css/component/Tooltip.module.scss +3 -4
  298. package/src/css/component/Transition.module.scss +1 -1
  299. package/src/css/component/TreeView.module.scss +2 -15
  300. package/src/css/component/TreeViewSelect.module.scss +1 -15
  301. package/src/css/component/base/Button.module.scss +6 -7
  302. package/src/css/component/base/Effect.module.scss +2 -1
  303. package/src/css/component/primitive/Slider.module.scss +6 -7
  304. package/src/css/component/primitive/TreeNode.module.scss +19 -0
  305. package/src/css/mixin/button-active.scss +6 -0
  306. package/src/css/mixin/focus-ring.scss +1 -1
  307. package/src/css/mixin/index.scss +1 -0
  308. package/src/css/typography.scss +3 -2
  309. package/src/css/variables.scss +7 -2
  310. package/src/data/di.ts +13 -0
  311. package/src/data/filter.ts +24 -28
  312. package/src/data/i18n.ts +17 -0
  313. package/src/data/store.ts +46 -11
  314. package/src/data/timeZones.ts +619 -0
  315. package/src/index.ts +2 -0
  316. package/src/transition/FluxAutoHeightTransition.vue +5 -0
  317. package/src/transition/FluxAutoWidthTransition.vue +5 -0
  318. package/src/transition/FluxBreakthroughTransition.vue +5 -0
  319. package/src/transition/FluxFadeTransition.vue +5 -0
  320. package/src/transition/FluxOverlayTransition.vue +5 -0
  321. package/src/transition/FluxRouteTransition.vue +5 -0
  322. package/src/transition/FluxSlideOverTransition.vue +5 -0
  323. package/src/transition/FluxTooltipTransition.vue +5 -0
  324. package/src/transition/FluxVerticalWindowTransition.vue +5 -0
  325. package/src/transition/FluxWindowTransition.vue +5 -0
  326. package/dist/0db98648.svg +0 -3
  327. package/src/component/FluxPaneDeck.vue +0 -24
  328. package/src/css/component/base/Grid.module.scss +0 -8
  329. package/src/image/avatar-mask.svg +0 -3
  330. 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>
@@ -38,7 +38,7 @@
38
38
  import type { FluxIconName } from '@flux-ui/types';
39
39
  import { clsx } from 'clsx';
40
40
  import type { DateTime } from 'luxon';
41
- import { computed } from 'vue';
41
+ import { computed, type VNode } from 'vue';
42
42
  import { useTranslate } from '$flux/composable/private';
43
43
  import FluxAvatar from './FluxAvatar.vue';
44
44
  import $style from '$flux/css/component/Comment.module.scss';
@@ -60,7 +60,7 @@
60
60
  }>();
61
61
 
62
62
  defineSlots<{
63
- default(): any;
63
+ default(): VNode[];
64
64
  }>();
65
65
 
66
66
  const translate = useTranslate();
@@ -1,14 +1,9 @@
1
1
  <template>
2
- <FluxPane>
3
- <FluxPaneHeader
4
- :icon="confirm.icon"
5
- :title="confirm.title"/>
6
-
7
- <FluxPaneBody v-html="confirm.message"/>
8
-
9
- <FluxPaneFooter>
10
- <FluxSpacer/>
11
-
2
+ <DialogLayout
3
+ :icon="confirm.icon"
4
+ :message="confirm.message"
5
+ :title="confirm.title">
6
+ <template #footer>
12
7
  <FluxSecondaryButton
13
8
  :label="translate('flux.cancel')"
14
9
  @click="confirm.onCancel()"/>
@@ -17,8 +12,8 @@
17
12
  icon-leading="circle-check"
18
13
  :label="translate('flux.ok')"
19
14
  @click="confirm.onConfirm()"/>
20
- </FluxPaneFooter>
21
- </FluxPane>
15
+ </template>
16
+ </DialogLayout>
22
17
  </template>
23
18
 
24
19
  <script
@@ -26,13 +21,9 @@
26
21
  setup>
27
22
  import type { FluxConfirmObject } from '@flux-ui/types';
28
23
  import { useTranslate } from '$flux/composable/private';
29
- import FluxPane from './FluxPane.vue';
30
- import FluxPaneBody from './FluxPaneBody.vue';
31
- import FluxPaneFooter from './FluxPaneFooter.vue';
32
- import FluxPaneHeader from './FluxPaneHeader.vue';
33
24
  import FluxPrimaryButton from './FluxPrimaryButton.vue';
34
25
  import FluxSecondaryButton from './FluxSecondaryButton.vue';
35
- import FluxSpacer from './FluxSpacer.vue';
26
+ import { DialogLayout } from './primitive';
36
27
 
37
28
  defineProps<{
38
29
  readonly confirm: FluxConfirmObject;
@@ -9,15 +9,16 @@
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
  const {
15
- gutter = 21
16
+ gutter = 18
16
17
  } = defineProps<{
17
18
  readonly gutter?: number;
18
19
  }>();
19
20
 
20
21
  defineSlots<{
21
- default(): any;
22
+ default(): VNode[];
22
23
  }>();
23
24
  </script>
@@ -15,7 +15,9 @@
15
15
  <template
16
16
  v-if="'header' in slots"
17
17
  #header>
18
- <slot name="filter" v-bind="{page, perPage, items: limitedItems, total}"/>
18
+ <slot
19
+ name="filter"
20
+ v-bind="{page, perPage, items: limitedItems, total}"/>
19
21
 
20
22
  <FluxTableRow>
21
23
  <slot
@@ -6,7 +6,7 @@
6
6
  contentPlacement === 'end' && $style.dividerContentEnd
7
7
  )"
8
8
  role="separator"
9
- aria-orientation="horizontal">
9
+ :aria-orientation="direction">
10
10
  <div
11
11
  v-if="slots.default"
12
12
  :class="$style.dividerContent">
@@ -22,16 +22,20 @@
22
22
  <script
23
23
  lang="ts"
24
24
  setup>
25
+ import type { VNode } from 'vue';
26
+ import type { FluxDirection } from '@flux-ui/types';
25
27
  import { clsx } from 'clsx';
26
28
  import $style from '$flux/css/component/Divider.module.scss';
27
29
 
28
30
  const {
29
- contentPlacement = 'center'
31
+ contentPlacement = 'center',
32
+ direction = 'horizontal'
30
33
  } = defineProps<{
31
34
  readonly contentPlacement?: 'start' | 'center' | 'end';
35
+ readonly direction?: FluxDirection;
32
36
  }>();
33
37
 
34
38
  const slots = defineSlots<{
35
- default?(): any;
39
+ default?(): VNode[];
36
40
  }>();
37
41
  </script>
@@ -5,7 +5,10 @@
5
5
  isDragging && $style.isDragging,
6
6
  isDraggingOver && $style.isDraggingOver
7
7
  ]"
8
- :aria-disabled="disabled ? true : undefined">
8
+ :aria-disabled="disabled ? true : undefined"
9
+ :aria-label="ariaLabel ?? translate('flux.dropFilesOrClick')"
10
+ :tabindex="disabled ? -1 : 0"
11
+ @keydown.self="onKeyDown">
9
12
  <div
10
13
  :class="$style.dropZoneContent"
11
14
  @dragleave.capture="onDragLeave"
@@ -52,8 +55,9 @@
52
55
  lang="ts"
53
56
  setup>
54
57
  import { roundStep } from '@basmilius/utils';
55
- import { onMounted, onUnmounted, ref, toRef, unref, useTemplateRef, watch } from 'vue';
58
+ import { onMounted, onUnmounted, ref, toRef, unref, useTemplateRef, type VNode, watch } from 'vue';
56
59
  import { useDisabled } from '$flux/composable';
60
+ import { useTranslate } from '$flux/composable/private';
57
61
  import { FluxFadeTransition } from '$flux/transition';
58
62
  import FluxSpinner from './FluxSpinner.vue';
59
63
  import $style from '$flux/css/component/DropZone.module.scss';
@@ -65,10 +69,12 @@
65
69
 
66
70
  const {
67
71
  accept,
72
+ ariaLabel,
68
73
  disabled: componentDisabled,
69
74
  isMultiple
70
75
  } = defineProps<{
71
76
  readonly accept?: string;
77
+ readonly ariaLabel?: string;
72
78
  readonly disabled?: boolean;
73
79
  readonly isLoading?: boolean;
74
80
  readonly isMultiple?: boolean;
@@ -80,25 +86,26 @@
80
86
  readonly isDraggingOver: boolean;
81
87
 
82
88
  showPicker(): void;
83
- }): any;
89
+ }): VNode[];
84
90
 
85
91
  actions?(props: {
86
92
  readonly isDragging: boolean;
87
93
  readonly isDraggingOver: boolean;
88
94
 
89
95
  showPicker(): void;
90
- }): any;
96
+ }): VNode[];
91
97
 
92
98
  extra?(props: {
93
99
  readonly isDragging: boolean;
94
100
  readonly isDraggingOver: boolean;
95
101
 
96
102
  showPicker(): void;
97
- }): any;
103
+ }): VNode[];
98
104
  }>();
99
105
 
100
106
  const contentRef = useTemplateRef('content');
101
107
  const disabled = useDisabled(toRef(() => componentDisabled));
108
+ const translate = useTranslate();
102
109
 
103
110
  const isDragging = ref(false);
104
111
  const isDraggingOver = ref(false);
@@ -111,11 +118,18 @@
111
118
  });
112
119
 
113
120
  onUnmounted(() => {
114
- window.removeEventListener('dragleave', onWindowDragEnd);
115
- window.removeEventListener('dragover', onWindowDragStart);
116
- window.removeEventListener('drop', onWindowDrop);
121
+ window.removeEventListener('dragleave', onWindowDragEnd, {capture: true});
122
+ window.removeEventListener('dragover', onWindowDragStart, {capture: true});
123
+ window.removeEventListener('drop', onWindowDrop, {capture: true});
117
124
  });
118
125
 
126
+ function onKeyDown(evt: KeyboardEvent): void {
127
+ if (evt.key === 'Enter' || evt.key === ' ') {
128
+ showPicker();
129
+ evt.preventDefault();
130
+ }
131
+ }
132
+
119
133
  function onDragEnter(evt: DragEvent): void {
120
134
  isDraggingOver.value = true;
121
135
  evt.preventDefault();
@@ -34,6 +34,7 @@
34
34
  v-if="isOpen"
35
35
  :class="$style.expandableBody"
36
36
  :id="contentId"
37
+ role="region"
37
38
  :aria-labelledby="headerId">
38
39
  <slot
39
40
  v-bind="{label, close}"
@@ -80,8 +81,8 @@
80
81
 
81
82
  const expandIcon = computed<FluxIconName>(() => unref(isOpen) ? 'minus' : 'plus');
82
83
 
83
- onBeforeMount(() => register?.(unref(componentId), instance));
84
- onUnmounted(() => unregister?.(unref(componentId)));
84
+ onBeforeMount(() => register?.(componentId.value, instance));
85
+ onUnmounted(() => unregister?.(componentId.value));
85
86
 
86
87
  function close(): void {
87
88
  isOpen.value = false;
@@ -8,7 +8,7 @@
8
8
  lang="ts"
9
9
  setup>
10
10
  import { getExposedRef } from '@flux-ui/internals';
11
- import { type ComponentInternalInstance, provide } from 'vue';
11
+ import { type ComponentInternalInstance, provide, type VNode } from 'vue';
12
12
  import { FluxExpandableGroupInjectionKey } from '$flux/data';
13
13
  import $style from '$flux/css/component/Expandable.module.scss';
14
14
 
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
  defineSlots<{
23
- default(): any;
23
+ default(): VNode[];
24
24
  }>();
25
25
 
26
26
  const expandables: { [key: number]: ComponentInternalInstance; } = {};