@flux-ui/components 3.0.0-next.57 → 3.0.0-next.59
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.
- package/dist/component/FluxButtonStack.vue.d.ts +1 -1
- package/dist/component/FluxCalendar.vue.d.ts +63 -2
- package/dist/component/{FluxCalendarEvent.vue.d.ts → FluxCalendarItem.vue.d.ts} +9 -7
- package/dist/component/FluxClickablePane.vue.d.ts +1 -1
- package/dist/component/FluxDivider.vue.d.ts +1 -1
- package/dist/component/FluxFilter.vue.d.ts +1 -1
- package/dist/component/FluxFilterBar.vue.d.ts +1 -1
- package/dist/component/FluxFormInput.vue.d.ts +2 -2
- package/dist/component/FluxFormInputAddition.vue.d.ts +1 -1
- package/dist/component/FluxFormTreeViewSelect.vue.d.ts +3 -3
- package/dist/component/FluxGallery.vue.d.ts +1 -1
- package/dist/component/FluxInfo.vue.d.ts +1 -1
- package/dist/component/FluxKanban.vue.d.ts +17 -5
- package/dist/component/FluxKanbanColumn.vue.d.ts +13 -2
- package/dist/component/{FluxKanbanCard.vue.d.ts → FluxKanbanItem.vue.d.ts} +2 -1
- package/dist/component/FluxMenuItem.vue.d.ts +1 -1
- package/dist/component/FluxNotice.vue.d.ts +1 -1
- package/dist/component/FluxPaneHeader.vue.d.ts +1 -1
- package/dist/component/FluxPressable.vue.d.ts +1 -1
- package/dist/component/FluxPrompt.vue.d.ts +3 -3
- package/dist/component/FluxSplitButton.vue.d.ts +1 -1
- package/dist/component/FluxStack.vue.d.ts +1 -1
- package/dist/component/FluxTab.vue.d.ts +1 -1
- package/dist/component/FluxTabBar.vue.d.ts +4 -1
- package/dist/component/FluxTabs.vue.d.ts +4 -1
- package/dist/component/FluxTimelineItem.vue.d.ts +1 -1
- package/dist/component/calendar/FluxCalendarItemDisplay.vue.d.ts +9 -0
- package/dist/component/calendar/FluxCalendarMonthView.vue.d.ts +19 -0
- package/dist/component/calendar/FluxCalendarTimeGridView.vue.d.ts +36 -0
- package/dist/component/calendar/index.d.ts +3 -0
- package/dist/component/index.d.ts +2 -2
- package/dist/component/primitive/DialogLayout.vue.d.ts +1 -1
- package/dist/component/primitive/SelectBase.vue.d.ts +3 -3
- package/dist/composable/index.d.ts +3 -0
- package/dist/composable/private/index.d.ts +5 -8
- package/dist/composable/private/useAsyncFilterOptions.d.ts +1 -1
- package/dist/composable/private/useKanban.d.ts +14 -4
- package/dist/composable/private/useKanbanAutoScroll.d.ts +13 -0
- package/dist/composable/useCalendarInjection.d.ts +2 -0
- package/dist/composable/useKanbanInjection.d.ts +2 -0
- package/dist/composable/useTabBarInjection.d.ts +2 -0
- package/dist/data/di.d.ts +80 -9
- package/dist/data/i18n.d.ts +4 -0
- package/dist/index.css +1603 -1204
- package/dist/index.js +4567 -2819
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/component/FluxAction.vue +1 -1
- package/src/component/FluxActionBar.vue +2 -2
- package/src/component/FluxActionPane.vue +1 -1
- package/src/component/FluxAdaptiveGroup.vue +2 -2
- package/src/component/FluxAdaptiveSlot.vue +2 -2
- package/src/component/FluxAlert.vue +1 -1
- package/src/component/FluxAnimatedColors.vue +1 -1
- package/src/component/FluxAspectRatio.vue +1 -1
- package/src/component/FluxAvatar.vue +2 -2
- package/src/component/FluxBadge.vue +2 -2
- package/src/component/FluxBorderShine.vue +1 -1
- package/src/component/FluxBoxedIcon.vue +1 -1
- package/src/component/FluxButton.vue +2 -2
- package/src/component/FluxButtonGroup.vue +1 -1
- package/src/component/FluxButtonStack.vue +1 -1
- package/src/component/FluxCalendar.vue +588 -179
- package/src/component/FluxCalendarItem.vue +79 -0
- package/src/component/FluxCheckbox.vue +2 -2
- package/src/component/FluxChip.vue +2 -2
- package/src/component/FluxClickablePane.vue +2 -2
- package/src/component/FluxColorPicker.vue +2 -2
- package/src/component/FluxColorSelect.vue +3 -3
- package/src/component/FluxColumn.vue +1 -1
- package/src/component/FluxCommandPalette.vue +4 -4
- package/src/component/FluxCommandPaletteGroup.vue +1 -1
- package/src/component/FluxCommandPaletteItem.vue +1 -1
- package/src/component/FluxComment.vue +2 -2
- package/src/component/FluxConfirm.vue +1 -1
- package/src/component/FluxContainer.vue +1 -1
- package/src/component/FluxDataTable.vue +1 -2
- package/src/component/FluxDatePicker.vue +3 -3
- package/src/component/FluxDestructiveButton.vue +1 -1
- package/src/component/FluxDisabled.vue +1 -1
- package/src/component/FluxDivider.vue +2 -2
- package/src/component/FluxDotPattern.vue +1 -1
- package/src/component/FluxDropZone.vue +4 -4
- package/src/component/FluxExpandable.vue +3 -3
- package/src/component/FluxExpandableGroup.vue +2 -2
- package/src/component/FluxFader.vue +1 -1
- package/src/component/FluxFaderItem.vue +1 -1
- package/src/component/FluxFilter.vue +2 -2
- package/src/component/FluxFilterBar.vue +5 -6
- package/src/component/FluxFilterBase.vue +2 -2
- package/src/component/FluxFilterDate.vue +2 -2
- package/src/component/FluxFilterDateRange.vue +2 -2
- package/src/component/FluxFilterOption.vue +2 -2
- package/src/component/FluxFilterOptionAsync.vue +1 -1
- package/src/component/FluxFilterOptions.vue +2 -2
- package/src/component/FluxFilterOptionsAsync.vue +1 -1
- package/src/component/FluxFilterRange.vue +2 -2
- package/src/component/FluxFilterWindow.vue +3 -3
- package/src/component/FluxFlickeringGrid.vue +1 -1
- package/src/component/FluxFlyout.vue +2 -2
- package/src/component/FluxFocalPointEditor.vue +3 -3
- package/src/component/FluxFocalPointImage.vue +1 -1
- package/src/component/FluxForm.vue +1 -1
- package/src/component/FluxFormColumn.vue +1 -1
- package/src/component/FluxFormDateInput.vue +3 -3
- package/src/component/FluxFormDateRangeInput.vue +4 -4
- package/src/component/FluxFormDateTimeInput.vue +3 -3
- package/src/component/FluxFormField.vue +3 -3
- package/src/component/FluxFormFieldAddition.vue +1 -1
- package/src/component/FluxFormGrid.vue +1 -1
- package/src/component/FluxFormInput.vue +3 -3
- package/src/component/FluxFormInputAddition.vue +2 -2
- package/src/component/FluxFormInputGroup.vue +2 -2
- package/src/component/FluxFormPinInput.vue +3 -3
- package/src/component/FluxFormRangeSlider.vue +3 -3
- package/src/component/FluxFormRow.vue +1 -1
- package/src/component/FluxFormSection.vue +1 -1
- package/src/component/FluxFormSelect.vue +4 -4
- package/src/component/FluxFormSelectAsync.vue +6 -6
- package/src/component/FluxFormSlider.vue +2 -2
- package/src/component/FluxFormTextArea.vue +2 -2
- package/src/component/FluxFormTimeZonePicker.vue +4 -4
- package/src/component/FluxFormTreeViewSelect.vue +9 -12
- package/src/component/FluxGallery.vue +3 -3
- package/src/component/FluxGalleryItem.vue +1 -1
- package/src/component/FluxGrid.vue +1 -1
- package/src/component/FluxGridColumn.vue +1 -1
- package/src/component/FluxGridPattern.vue +1 -1
- package/src/component/FluxIcon.vue +2 -2
- package/src/component/FluxInfo.vue +2 -2
- package/src/component/FluxItem.vue +1 -1
- package/src/component/FluxItemActions.vue +1 -1
- package/src/component/FluxItemContent.vue +1 -1
- package/src/component/FluxItemMedia.vue +1 -1
- package/src/component/FluxItemStack.vue +1 -1
- package/src/component/FluxKanban.vue +78 -7
- package/src/component/FluxKanbanColumn.vue +225 -32
- package/src/component/FluxKanbanItem.vue +162 -0
- package/src/component/FluxLayerPane.vue +1 -1
- package/src/component/FluxLayerPaneSecondary.vue +1 -1
- package/src/component/FluxLegend.vue +1 -1
- package/src/component/FluxLink.vue +1 -1
- package/src/component/FluxMenu.vue +1 -1
- package/src/component/FluxMenuCollapsible.vue +3 -3
- package/src/component/FluxMenuGroup.vue +1 -1
- package/src/component/FluxMenuItem.vue +2 -2
- package/src/component/FluxMenuSubHeader.vue +1 -1
- package/src/component/FluxMenuTitle.vue +1 -1
- package/src/component/FluxNotice.vue +3 -3
- package/src/component/FluxOverflowBar.vue +1 -1
- package/src/component/FluxOverlay.vue +3 -3
- package/src/component/FluxOverlayProvider.vue +2 -2
- package/src/component/FluxPagination.vue +3 -3
- package/src/component/FluxPaginationBar.vue +2 -2
- package/src/component/FluxPaginationButton.vue +1 -1
- package/src/component/FluxPane.vue +1 -1
- package/src/component/FluxPaneBody.vue +1 -1
- package/src/component/FluxPaneFooter.vue +1 -1
- package/src/component/FluxPaneGroup.vue +1 -1
- package/src/component/FluxPaneHeader.vue +2 -2
- package/src/component/FluxPaneIllustration.vue +1 -1
- package/src/component/FluxPaneMedia.vue +1 -1
- package/src/component/FluxPercentageBar.vue +1 -1
- package/src/component/FluxPersona.vue +1 -1
- package/src/component/FluxPlaceholder.vue +1 -1
- package/src/component/FluxPressable.vue +1 -1
- package/src/component/FluxPrimaryButton.vue +1 -1
- package/src/component/FluxPrimaryLinkButton.vue +1 -1
- package/src/component/FluxProgressBar.vue +2 -2
- package/src/component/FluxPrompt.vue +1 -1
- package/src/component/FluxPublishButton.vue +1 -1
- package/src/component/FluxQuantitySelector.vue +2 -2
- package/src/component/FluxRemove.vue +2 -2
- package/src/component/FluxRoot.vue +2 -2
- package/src/component/FluxRow.vue +1 -1
- package/src/component/FluxSecondaryButton.vue +1 -1
- package/src/component/FluxSecondaryLinkButton.vue +1 -1
- package/src/component/FluxSegmentedControl.vue +1 -1
- package/src/component/FluxSeparator.vue +1 -1
- package/src/component/FluxSlideOver.vue +3 -3
- package/src/component/FluxSnackbar.vue +2 -2
- package/src/component/FluxSnackbarProvider.vue +2 -2
- package/src/component/FluxSpacer.vue +1 -1
- package/src/component/FluxSpinner.vue +1 -1
- package/src/component/FluxSplitButton.vue +2 -2
- package/src/component/FluxStack.vue +2 -2
- package/src/component/FluxStatistic.vue +2 -2
- package/src/component/FluxStepper.vue +1 -1
- package/src/component/FluxStepperStep.vue +1 -1
- package/src/component/FluxStepperSteps.vue +2 -2
- package/src/component/FluxTab.vue +2 -2
- package/src/component/FluxTabBar.vue +75 -7
- package/src/component/FluxTabBarItem.vue +35 -4
- package/src/component/FluxTable.vue +3 -4
- package/src/component/FluxTableActions.vue +1 -1
- package/src/component/FluxTableBar.vue +3 -3
- package/src/component/FluxTableCell.vue +3 -3
- package/src/component/FluxTableHeader.vue +3 -3
- package/src/component/FluxTableRow.vue +1 -1
- package/src/component/FluxTabs.vue +10 -4
- package/src/component/FluxTag.vue +2 -2
- package/src/component/FluxTicks.vue +1 -1
- package/src/component/FluxTimeline.vue +1 -1
- package/src/component/FluxTimelineItem.vue +2 -2
- package/src/component/FluxToggle.vue +2 -2
- package/src/component/FluxToolbar.vue +2 -2
- package/src/component/FluxTooltip.vue +1 -1
- package/src/component/FluxTooltipProvider.vue +3 -3
- package/src/component/FluxTreeView.vue +3 -4
- package/src/component/FluxWindow.vue +1 -1
- package/src/component/calendar/FluxCalendarItemDisplay.vue +117 -0
- package/src/component/calendar/FluxCalendarMonthView.vue +134 -0
- package/src/component/calendar/FluxCalendarTimeGridView.vue +550 -0
- package/src/component/calendar/index.ts +3 -0
- package/src/component/index.ts +2 -2
- package/src/component/primitive/CoordinatePicker.vue +2 -2
- package/src/component/primitive/CoordinatePickerThumb.vue +2 -2
- package/src/component/primitive/DialogLayout.vue +1 -1
- package/src/component/primitive/FilterBadge.vue +2 -2
- package/src/component/primitive/FilterItem.vue +1 -1
- package/src/component/primitive/FilterMenuRenderer.ts +2 -2
- package/src/component/primitive/FilterOptionBase.vue +6 -6
- package/src/component/primitive/SelectBase.vue +13 -13
- package/src/component/primitive/SliderBase.vue +3 -3
- package/src/component/primitive/SliderThumb.vue +2 -2
- package/src/component/primitive/SliderTrack.vue +1 -1
- package/src/component/primitive/TreeNodeRenderer.vue +3 -4
- package/src/component/primitive/VNodeRenderer.ts +1 -2
- package/src/composable/index.ts +3 -0
- package/src/composable/private/index.ts +5 -8
- package/src/composable/private/useAsyncFilterOptions.ts +9 -15
- package/src/composable/private/useCommandPalette.ts +2 -2
- package/src/composable/private/useDateFlyout.ts +1 -1
- package/src/composable/private/useDropdownPopup.ts +1 -1
- package/src/composable/private/useFilterOption.ts +2 -2
- package/src/composable/private/useFormSelect.ts +2 -3
- package/src/composable/private/useKanban.ts +528 -25
- package/src/composable/private/useKanbanAutoScroll.ts +95 -0
- package/src/composable/private/useTranslate.ts +1 -2
- package/src/composable/private/useTreeView.ts +1 -1
- package/src/composable/useAdaptiveGroupInjection.ts +1 -1
- package/src/composable/useBreakpoints.ts +1 -2
- package/src/composable/useCalendarInjection.ts +6 -0
- package/src/composable/useDisabled.ts +1 -2
- package/src/composable/useDisabledInjection.ts +1 -1
- package/src/composable/useExpandableGroupInjection.ts +1 -1
- package/src/composable/useFilterInjection.ts +1 -1
- package/src/composable/useFlyoutInjection.ts +1 -1
- package/src/composable/useFormFieldInjection.ts +1 -1
- package/src/composable/useKanbanInjection.ts +12 -0
- package/src/composable/useTabBarInjection.ts +10 -0
- package/src/composable/useTableInjection.ts +1 -1
- package/src/composable/useTooltipInjection.ts +1 -1
- package/src/css/component/Action.module.scss +1 -1
- package/src/css/component/AdaptiveSlot.module.scss +5 -7
- package/src/css/component/Avatar.module.scss +1 -1
- package/src/css/component/Badge.module.scss +1 -1
- package/src/css/component/Button.module.scss +1 -1
- package/src/css/component/Calendar.module.scss +274 -44
- package/src/css/component/Chip.module.scss +1 -1
- package/src/css/component/Color.module.scss +1 -1
- package/src/css/component/CommandPalette.module.scss +1 -1
- package/src/css/component/DatePicker.module.scss +1 -1
- package/src/css/component/Expandable.module.scss +1 -1
- package/src/css/component/Form.module.scss +1 -1
- package/src/css/component/Gallery.module.scss +1 -1
- package/src/css/component/Grid.module.scss +1 -1
- package/src/css/component/Item.module.scss +1 -1
- package/src/css/component/Kanban.module.scss +189 -0
- package/src/css/component/Layout.module.scss +1 -1
- package/src/css/component/Menu.module.scss +1 -1
- package/src/css/component/Notice.module.scss +1 -1
- package/src/css/component/Overlay.module.scss +4 -4
- package/src/css/component/Pagination.module.scss +1 -1
- package/src/css/component/Pane.module.scss +2 -1
- package/src/css/component/Placeholder.module.scss +1 -1
- package/src/css/component/Remove.module.scss +1 -1
- package/src/css/component/SegmentedControl.module.scss +1 -1
- package/src/css/component/Snackbar.module.scss +1 -1
- package/src/css/component/Tab.module.scss +138 -34
- package/src/css/component/Table.module.scss +1 -1
- package/src/css/component/TreeView.module.scss +1 -1
- package/src/css/component/TreeViewSelect.module.scss +1 -1
- package/src/css/component/base/Button.module.scss +1 -1
- package/src/css/component/primitive/Slider.module.scss +1 -1
- package/src/css/component/primitive/TreeNode.module.scss +1 -1
- package/src/css/variables.scss +2 -2
- package/src/data/di.ts +94 -8
- package/src/data/filter.ts +4 -4
- package/src/data/i18n.ts +4 -0
- package/src/data/store.ts +1 -2
- package/src/transition/FluxBreakthroughTransition.vue +1 -1
- package/src/transition/FluxFadeTransition.vue +1 -1
- package/src/transition/FluxOverlayTransition.vue +1 -1
- package/src/transition/FluxRouteTransition.vue +1 -1
- package/src/transition/FluxSlideOverTransition.vue +1 -1
- package/src/transition/FluxTooltipTransition.vue +1 -1
- package/src/transition/FluxVerticalWindowTransition.vue +1 -1
- package/src/transition/FluxWindowTransition.vue +1 -1
- package/src/util/createDialogRenderer.ts +3 -4
- package/src/util/createLabelForDateRange.ts +1 -1
- package/src/component/FluxCalendarEvent.vue +0 -42
- package/src/component/FluxKanbanCard.vue +0 -105
- package/src/css/component/FluxKanban.module.scss +0 -7
- package/src/css/component/FluxKanbanCard.module.scss +0 -35
- package/src/css/component/FluxKanbanColumn.module.scss +0 -49
|
@@ -140,21 +140,21 @@
|
|
|
140
140
|
import type { FluxFormSelectOption, FluxFormSelectOptions } from '@flux-ui/types';
|
|
141
141
|
import { clsx } from 'clsx';
|
|
142
142
|
import { type ComponentPublicInstance, computed, nextTick, ref, toRef, unref, useTemplateRef, watch } from 'vue';
|
|
143
|
-
import { useDisabled, useFormFieldInjection } from '
|
|
144
|
-
import { useDropdownPopup, useTranslate } from '
|
|
145
|
-
import { isFluxFormSelectGroup, isFluxFormSelectOption } from '
|
|
146
|
-
import { FluxFadeTransition } from '
|
|
147
|
-
import FluxFormInput from '
|
|
148
|
-
import FluxIcon from '
|
|
149
|
-
import FluxMenu from '
|
|
150
|
-
import FluxMenuGroup from '
|
|
151
|
-
import FluxMenuItem from '
|
|
152
|
-
import FluxMenuSubHeader from '
|
|
153
|
-
import FluxSpinner from '
|
|
154
|
-
import FluxTag from '
|
|
143
|
+
import { useDisabled, useFormFieldInjection } from '~flux/components/composable';
|
|
144
|
+
import { useDropdownPopup, useTranslate } from '~flux/components/composable/private';
|
|
145
|
+
import { isFluxFormSelectGroup, isFluxFormSelectOption } from '~flux/components/data';
|
|
146
|
+
import { FluxFadeTransition } from '~flux/components/transition';
|
|
147
|
+
import FluxFormInput from '../FluxFormInput.vue';
|
|
148
|
+
import FluxIcon from '../FluxIcon.vue';
|
|
149
|
+
import FluxMenu from '../FluxMenu.vue';
|
|
150
|
+
import FluxMenuGroup from '../FluxMenuGroup.vue';
|
|
151
|
+
import FluxMenuItem from '../FluxMenuItem.vue';
|
|
152
|
+
import FluxMenuSubHeader from '../FluxMenuSubHeader.vue';
|
|
153
|
+
import FluxSpinner from '../FluxSpinner.vue';
|
|
154
|
+
import FluxTag from '../FluxTag.vue';
|
|
155
155
|
import Anchor from './Anchor.vue';
|
|
156
156
|
import AnchorPopup from './AnchorPopup.vue';
|
|
157
|
-
import $style from '
|
|
157
|
+
import $style from '~flux/components/css/component/Form.module.scss';
|
|
158
158
|
|
|
159
159
|
const INITIAL_HIGHLIGHTED_INDEX = -1;
|
|
160
160
|
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
import { unrefTemplateElement } from '@flux-ui/internals';
|
|
23
23
|
import { clsx } from 'clsx';
|
|
24
24
|
import { onUnmounted, toRef, unref, useTemplateRef } from 'vue';
|
|
25
|
-
import { useDisabled } from '
|
|
26
|
-
import FluxTicks from '
|
|
27
|
-
import $style from '
|
|
25
|
+
import { useDisabled } from '~flux/components/composable';
|
|
26
|
+
import FluxTicks from '../FluxTicks.vue';
|
|
27
|
+
import $style from '~flux/components/css/component/primitive/Slider.module.scss';
|
|
28
28
|
|
|
29
29
|
const emit = defineEmits<{
|
|
30
30
|
dragging: [boolean];
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
setup>
|
|
26
26
|
import { clsx } from 'clsx';
|
|
27
27
|
import { toRef, unref } from 'vue';
|
|
28
|
-
import { useDisabled } from '
|
|
29
|
-
import $style from '
|
|
28
|
+
import { useDisabled } from '~flux/components/composable';
|
|
29
|
+
import $style from '~flux/components/css/component/primitive/Slider.module.scss';
|
|
30
30
|
|
|
31
31
|
const emit = defineEmits<{
|
|
32
32
|
decrement: [];
|
|
@@ -43,10 +43,9 @@
|
|
|
43
43
|
generic="TOption extends TreeBaseOption">
|
|
44
44
|
import type { FluxColor } from '@flux-ui/types';
|
|
45
45
|
import { computed } from 'vue';
|
|
46
|
-
import type
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import $style from '$flux/css/component/primitive/TreeNode.module.scss';
|
|
46
|
+
import { getLevelColor, type TreeBaseOption, type TreeFlatNode } from '~flux/components/composable/private';
|
|
47
|
+
import FluxIcon from '../FluxIcon.vue';
|
|
48
|
+
import $style from '~flux/components/css/component/primitive/TreeNode.module.scss';
|
|
50
49
|
|
|
51
50
|
const emit = defineEmits<{
|
|
52
51
|
expandClick: [MouseEvent];
|
package/src/composable/index.ts
CHANGED
|
@@ -2,10 +2,13 @@ export { default as useBreakpoints } from './useBreakpoints';
|
|
|
2
2
|
export { default as useDisabled } from './useDisabled';
|
|
3
3
|
|
|
4
4
|
export { default as useAdaptiveGroupInjection } from './useAdaptiveGroupInjection';
|
|
5
|
+
export { default as useCalendarInjection } from './useCalendarInjection';
|
|
5
6
|
export { default as useDisabledInjection } from './useDisabledInjection';
|
|
6
7
|
export { default as useExpandableGroupInjection } from './useExpandableGroupInjection';
|
|
7
8
|
export { default as useFilterInjection } from './useFilterInjection';
|
|
8
9
|
export { default as useFlyoutInjection } from './useFlyoutInjection';
|
|
9
10
|
export { default as useFormFieldInjection } from './useFormFieldInjection';
|
|
11
|
+
export { default as useKanbanInjection } from './useKanbanInjection';
|
|
12
|
+
export { default as useTabBarInjection } from './useTabBarInjection';
|
|
10
13
|
export { default as useTableInjection } from './useTableInjection';
|
|
11
14
|
export { default as useTooltipInjection } from './useTooltipInjection';
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
export { default as useAsyncFilterOptions } from './useAsyncFilterOptions';
|
|
2
2
|
export { default as useDateFlyout } from './useDateFlyout';
|
|
3
|
-
export { default as useDropdownPopup } from './useDropdownPopup';
|
|
4
|
-
export type { UseDropdownPopupOptions, UseDropdownPopupReturn } from './useDropdownPopup';
|
|
3
|
+
export { default as useDropdownPopup, type UseDropdownPopupOptions, type UseDropdownPopupReturn } from './useDropdownPopup';
|
|
5
4
|
export { default as useFormSelect } from './useFormSelect';
|
|
5
|
+
export { useKanban } from './useKanban';
|
|
6
6
|
export { default as useTranslate } from './useTranslate';
|
|
7
|
-
export { useCommandPalette } from './useCommandPalette';
|
|
8
|
-
export
|
|
9
|
-
export {
|
|
10
|
-
export type { FilterOptionMulti, FilterOptionSingle } from './useFilterOption';
|
|
11
|
-
export { flattenAll, flattenVisible, getLevelColor, INITIAL_HIGHLIGHTED_INDEX, useTreeView } from './useTreeView';
|
|
12
|
-
export type { TreeBaseOption, TreeFlatNode } from './useTreeView';
|
|
7
|
+
export { useCommandPalette, type CommandPaletteGroup, type CommandPaletteResultItem } from './useCommandPalette';
|
|
8
|
+
export { useFilterOptionMulti, useFilterOptionSingle, type FilterOptionMulti, type FilterOptionSingle } from './useFilterOption';
|
|
9
|
+
export { flattenAll, flattenVisible, getLevelColor, INITIAL_HIGHLIGHTED_INDEX, useTreeView, type TreeBaseOption, type TreeFlatNode } from './useTreeView';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useDebouncedRef, useLoaded } from '@basmilius/common';
|
|
2
2
|
import type { FluxFilterOptionRow, FluxFilterValue } from '@flux-ui/types';
|
|
3
|
-
import {
|
|
4
|
-
import { isFluxFilterOptionItem } from '
|
|
3
|
+
import { computed, ref, unref, watch, type ComputedRef, type ModelRef, type Ref } from 'vue';
|
|
4
|
+
import { isFluxFilterOptionItem } from '~flux/components/data';
|
|
5
5
|
|
|
6
6
|
type UseAsyncFilterOptionsParams = {
|
|
7
7
|
readonly currentValueIds: ComputedRef<FluxFilterValue[]>;
|
|
@@ -11,25 +11,19 @@ type UseAsyncFilterOptionsParams = {
|
|
|
11
11
|
fetchSearch(searchQuery: string): Promise<FluxFilterOptionRow[]>;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export default function ({
|
|
15
|
-
currentValueIds,
|
|
16
|
-
modelSearch,
|
|
17
|
-
fetchOptions: fetchOptionsProp,
|
|
18
|
-
fetchRelevant: fetchRelevantProp,
|
|
19
|
-
fetchSearch: fetchSearchProp
|
|
20
|
-
}: UseAsyncFilterOptionsParams) {
|
|
14
|
+
export default function (params: UseAsyncFilterOptionsParams) {
|
|
21
15
|
const {isLoading, loaded} = useLoaded();
|
|
22
|
-
const debouncedModelSearch = useDebouncedRef(modelSearch, 150) as unknown as Ref<string>;
|
|
23
|
-
const fetchOptions = computed(() => loaded(
|
|
24
|
-
const fetchRelevant = computed(() => loaded(
|
|
25
|
-
const fetchSearch = computed(() => loaded(
|
|
16
|
+
const debouncedModelSearch = useDebouncedRef(params.modelSearch, 150) as unknown as Ref<string>;
|
|
17
|
+
const fetchOptions = computed(() => loaded(params.fetchOptions));
|
|
18
|
+
const fetchRelevant = computed(() => loaded(params.fetchRelevant));
|
|
19
|
+
const fetchSearch = computed(() => loaded(params.fetchSearch));
|
|
26
20
|
|
|
27
21
|
const selectedOptions = ref<FluxFilterOptionRow[]>([]);
|
|
28
22
|
const visibleOptions = ref<FluxFilterOptionRow[]>([]);
|
|
29
23
|
|
|
30
24
|
const options = computed(() => {
|
|
31
25
|
const options: FluxFilterOptionRow[] = [];
|
|
32
|
-
const search = unref(modelSearch);
|
|
26
|
+
const search = unref(params.modelSearch);
|
|
33
27
|
const selected = unref(selectedOptions);
|
|
34
28
|
const visible = unref(visibleOptions);
|
|
35
29
|
|
|
@@ -50,7 +44,7 @@ export default function ({
|
|
|
50
44
|
return options;
|
|
51
45
|
});
|
|
52
46
|
|
|
53
|
-
watch(currentValueIds, async ids => {
|
|
47
|
+
watch(params.currentValueIds, async ids => {
|
|
54
48
|
if (ids.length === 0) {
|
|
55
49
|
return;
|
|
56
50
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FluxCommandSource, FluxCommandSourceItem, FluxCommandSubAction } from '@flux-ui/types';
|
|
2
1
|
import { useDebouncedRef } from '@basmilius/common';
|
|
3
|
-
import
|
|
2
|
+
import type { FluxCommandSource, FluxCommandSourceItem, FluxCommandSubAction } from '@flux-ui/types';
|
|
3
|
+
import { computed, nextTick, ref, unref, watch, type Ref } from 'vue';
|
|
4
4
|
|
|
5
5
|
export type CommandPaletteResultItem = {
|
|
6
6
|
readonly globalIndex: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useClickOutside } from '@basmilius/common';
|
|
2
2
|
import { unrefTemplateElement } from '@flux-ui/internals';
|
|
3
|
-
import {
|
|
3
|
+
import { nextTick, ref, unref, watch, type ComponentPublicInstance, type Ref } from 'vue';
|
|
4
4
|
|
|
5
5
|
export type UseDropdownPopupOptions = {
|
|
6
6
|
readonly anchorRef: Readonly<Ref<ComponentPublicInstance | null | undefined>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FluxFilterValue, FluxFilterValueSingle } from '@flux-ui/types';
|
|
2
|
-
import {
|
|
3
|
-
import { useFilterInjection } from '
|
|
2
|
+
import { computed, unref, type ComputedRef } from 'vue';
|
|
3
|
+
import { useFilterInjection } from '~flux/components/composable';
|
|
4
4
|
|
|
5
5
|
export type FilterOptionSingle = {
|
|
6
6
|
readonly currentValue: ComputedRef<FluxFilterValueSingle>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { FluxFormSelectEntry, FluxFormSelectOption, FluxFormSelectOptions, FluxFormSelectValue } from '@flux-ui/types';
|
|
2
|
-
import type
|
|
3
|
-
import {
|
|
4
|
-
import { isFluxFormSelectGroup, isFluxFormSelectOption } from '$flux/data';
|
|
2
|
+
import { computed, unref, type Ref } from 'vue';
|
|
3
|
+
import { isFluxFormSelectGroup, isFluxFormSelectOption } from '~flux/components/data';
|
|
5
4
|
|
|
6
5
|
export default function (modelValue: Ref<FluxFormSelectValue>, isMultiple: boolean, options: Ref<FluxFormSelectEntry[]>, searchQuery?: Ref<string>) {
|
|
7
6
|
const values = computed(() => {
|