@flux-ui/components 3.0.0-next.58 → 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/FluxKanbanColumn.vue.d.ts +2 -2
- package/dist/component/{FluxKanbanCard.vue.d.ts → FluxKanbanItem.vue.d.ts} +1 -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/useKanban.d.ts +2 -2
- 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 +54 -12
- package/dist/data/i18n.d.ts +4 -0
- package/dist/index.css +1500 -1221
- package/dist/index.js +9339 -8216
- 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 +6 -13
- package/src/component/FluxKanbanColumn.vue +42 -36
- 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 +2 -2
- 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 +167 -244
- 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/{FluxKanban.module.scss → Kanban.module.scss} +56 -79
- 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 +64 -11
- package/src/data/filter.ts +3 -3
- 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 -199
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
data-kanban-item
|
|
5
|
+
role="listitem"
|
|
6
|
+
aria-roledescription="Kanban item"
|
|
7
|
+
:aria-disabled="disabledState ? true : undefined"
|
|
8
|
+
:class="[
|
|
9
|
+
$style.kanbanItem,
|
|
10
|
+
isDragging && $style.isDragging,
|
|
11
|
+
isGrabbed && $style.isGrabbed,
|
|
12
|
+
disabledState && $style.isDisabled
|
|
13
|
+
]"
|
|
14
|
+
:draggable="!disabledState"
|
|
15
|
+
:tabindex="disabledState ? -1 : 0"
|
|
16
|
+
@dragstart="onDragStart"
|
|
17
|
+
@dragend="onDragEnd"
|
|
18
|
+
@dragover.stop="onDragOver"
|
|
19
|
+
@focus="onFocus"
|
|
20
|
+
@keydown="handleKeyDown">
|
|
21
|
+
<slot/>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script
|
|
26
|
+
lang="ts"
|
|
27
|
+
setup>
|
|
28
|
+
import { useKeyboardGrab } from '@flux-ui/internals';
|
|
29
|
+
import { computed, onBeforeUnmount, onMounted, toRef, unref, useTemplateRef, watch } from 'vue';
|
|
30
|
+
import { useDisabled, useKanbanInjection } from '~flux/components/composable';
|
|
31
|
+
import $style from '~flux/components/css/component/Kanban.module.scss';
|
|
32
|
+
|
|
33
|
+
const {
|
|
34
|
+
columnId,
|
|
35
|
+
disabled = false,
|
|
36
|
+
itemId
|
|
37
|
+
} = defineProps<{
|
|
38
|
+
readonly columnId: string | number;
|
|
39
|
+
readonly disabled?: boolean;
|
|
40
|
+
readonly itemId: string | number;
|
|
41
|
+
}>();
|
|
42
|
+
|
|
43
|
+
defineSlots<{
|
|
44
|
+
default?(): any;
|
|
45
|
+
}>();
|
|
46
|
+
|
|
47
|
+
const kanban = useKanbanInjection();
|
|
48
|
+
const root = useTemplateRef('root');
|
|
49
|
+
const disabledState = useDisabled(toRef(() => disabled));
|
|
50
|
+
|
|
51
|
+
const isDragging = computed(() => {
|
|
52
|
+
const state = unref(kanban.dragState);
|
|
53
|
+
return state?.itemId === itemId && state?.mode === 'pointer';
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
const {isGrabbed, handleKeyDown, release} = useKeyboardGrab<true>({
|
|
57
|
+
isDraggable: computed(() => !unref(disabledState)),
|
|
58
|
+
itemId: toRef(() => itemId),
|
|
59
|
+
grabbedId: kanban.grabbedId,
|
|
60
|
+
onGrab() {
|
|
61
|
+
kanban.grabItem(itemId, columnId);
|
|
62
|
+
return true;
|
|
63
|
+
},
|
|
64
|
+
onMove(direction) {
|
|
65
|
+
kanban.moveKeyboard(direction);
|
|
66
|
+
},
|
|
67
|
+
onCommit() {
|
|
68
|
+
kanban.commitKeyboardDrop();
|
|
69
|
+
},
|
|
70
|
+
onCancel() {
|
|
71
|
+
kanban.cancelKeyboardDrop();
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
onMounted(() => {
|
|
76
|
+
if (root.value) {
|
|
77
|
+
kanban.registerItem(root.value, itemId);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (kanban.isItemGrabbed(itemId)) {
|
|
81
|
+
root.value?.focus();
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
onBeforeUnmount(() => {
|
|
86
|
+
if (root.value) {
|
|
87
|
+
kanban.unregisterItem(root.value);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
watch(() => itemId, (newId, oldId) => {
|
|
92
|
+
if (root.value && oldId !== undefined) {
|
|
93
|
+
kanban.unregisterItem(root.value);
|
|
94
|
+
kanban.registerItem(root.value, newId);
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
function onDragStart(evt: DragEvent): void {
|
|
99
|
+
if (unref(disabledState)) {
|
|
100
|
+
evt.preventDefault();
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (isGrabbed.value) {
|
|
105
|
+
kanban.cancelKeyboardDrop();
|
|
106
|
+
release();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
kanban.startDrag(itemId, columnId);
|
|
110
|
+
|
|
111
|
+
if (evt.dataTransfer) {
|
|
112
|
+
evt.dataTransfer.effectAllowed = 'move';
|
|
113
|
+
evt.dataTransfer.setData('text/plain', `item:${String(itemId)}`);
|
|
114
|
+
|
|
115
|
+
if (root.value) {
|
|
116
|
+
const offsetX = evt.offsetX || root.value.getBoundingClientRect().width / 2;
|
|
117
|
+
const offsetY = evt.offsetY || 12;
|
|
118
|
+
evt.dataTransfer.setDragImage(root.value, offsetX, offsetY);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function onDragEnd(): void {
|
|
124
|
+
kanban.endDrag();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function onFocus(): void {
|
|
128
|
+
root.value?.scrollIntoView({block: 'nearest', inline: 'nearest', behavior: 'smooth'});
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function onDragOver(evt: DragEvent): void {
|
|
132
|
+
const state = unref(kanban.dragState);
|
|
133
|
+
|
|
134
|
+
if (!state || unref(disabledState)) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
evt.preventDefault();
|
|
139
|
+
|
|
140
|
+
const itemEl = evt.currentTarget as Element;
|
|
141
|
+
const rect = itemEl.getBoundingClientRect();
|
|
142
|
+
|
|
143
|
+
if (evt.clientY < rect.top + rect.height / 2) {
|
|
144
|
+
kanban.updateDropTarget(columnId, itemId);
|
|
145
|
+
} else {
|
|
146
|
+
let next = itemEl.nextElementSibling;
|
|
147
|
+
|
|
148
|
+
while (next) {
|
|
149
|
+
const info = kanban.getItemInfo(next);
|
|
150
|
+
|
|
151
|
+
if (info) {
|
|
152
|
+
kanban.updateDropTarget(columnId, info.itemId);
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
next = next.nextElementSibling;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
kanban.updateDropTarget(columnId, null);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
</script>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
lang="ts"
|
|
17
17
|
setup>
|
|
18
18
|
import type { FluxDirection, FluxLegendObject } from '@flux-ui/types';
|
|
19
|
-
import $style from '
|
|
19
|
+
import $style from '~flux/components/css/component/Legend.module.scss';
|
|
20
20
|
|
|
21
21
|
const {
|
|
22
22
|
direction = 'horizontal'
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
setup>
|
|
21
21
|
import type { FluxButtonEmits, FluxButtonProps, FluxButtonSlots, FluxIconName } from '@flux-ui/types';
|
|
22
22
|
import FluxButton, { SLOTS } from './FluxButton.vue';
|
|
23
|
-
import $style from '
|
|
23
|
+
import $style from '~flux/components/css/component/Button.module.scss';
|
|
24
24
|
|
|
25
25
|
const emit = defineEmits<FluxButtonEmits>();
|
|
26
26
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
setup>
|
|
14
14
|
import { useFocusZone } from '@flux-ui/internals';
|
|
15
15
|
import { useTemplateRef, type VNode } from 'vue';
|
|
16
|
-
import $style from '
|
|
16
|
+
import $style from '~flux/components/css/component/Menu.module.scss';
|
|
17
17
|
|
|
18
18
|
defineProps<{
|
|
19
19
|
readonly isLarge?: boolean;
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
<script
|
|
37
37
|
lang="ts"
|
|
38
38
|
setup>
|
|
39
|
-
import type { FluxIconName, FluxTo } from '@flux-ui/types';
|
|
40
39
|
import { flattenVNodeTree } from '@flux-ui/internals';
|
|
40
|
+
import type { FluxIconName, FluxTo } from '@flux-ui/types';
|
|
41
41
|
import { computed, getCurrentInstance, ref, useId, type VNode, watch } from 'vue';
|
|
42
|
-
import { FluxAutoHeightTransition } from '
|
|
42
|
+
import { FluxAutoHeightTransition } from '~flux/components/transition';
|
|
43
43
|
import FluxMenuItem from './FluxMenuItem.vue';
|
|
44
|
-
import $style from '
|
|
44
|
+
import $style from '~flux/components/css/component/Menu.module.scss';
|
|
45
45
|
|
|
46
46
|
type RouteRecordLike = {
|
|
47
47
|
readonly name?: string | symbol | null | undefined;
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
<script
|
|
69
69
|
lang="ts"
|
|
70
70
|
setup>
|
|
71
|
-
import type { VNode } from 'vue';
|
|
72
71
|
import type { FluxButtonEmits, FluxButtonProps, FluxIconName } from '@flux-ui/types';
|
|
72
|
+
import type { VNode } from 'vue';
|
|
73
73
|
import FluxButton from './FluxButton.vue';
|
|
74
74
|
import FluxIcon from './FluxIcon.vue';
|
|
75
75
|
import FluxSpinner from './FluxSpinner.vue';
|
|
76
|
-
import $style from '
|
|
76
|
+
import $style from '~flux/components/css/component/Menu.module.scss';
|
|
77
77
|
|
|
78
78
|
defineEmits<FluxButtonEmits>();
|
|
79
79
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
setup>
|
|
24
24
|
import type { FluxIconName } from '@flux-ui/types';
|
|
25
25
|
import FluxIcon from './FluxIcon.vue';
|
|
26
|
-
import $style from '
|
|
26
|
+
import $style from '~flux/components/css/component/Menu.module.scss';
|
|
27
27
|
|
|
28
28
|
defineProps<{
|
|
29
29
|
readonly iconLeading?: FluxIconName;
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
<script
|
|
51
51
|
lang="ts"
|
|
52
52
|
setup>
|
|
53
|
-
import type { VNode } from 'vue';
|
|
54
53
|
import type { FluxColor, FluxIconName } from '@flux-ui/types';
|
|
55
54
|
import { clsx } from 'clsx';
|
|
56
|
-
import {
|
|
55
|
+
import type { VNode } from 'vue';
|
|
56
|
+
import { useTranslate } from '~flux/components/composable/private';
|
|
57
57
|
import FluxIcon from './FluxIcon.vue';
|
|
58
58
|
import FluxSpinner from './FluxSpinner.vue';
|
|
59
|
-
import $style from '
|
|
59
|
+
import $style from '~flux/components/css/component/Notice.module.scss';
|
|
60
60
|
|
|
61
61
|
const emit = defineEmits<{
|
|
62
62
|
close: [];
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
import type { FluxAlignment, FluxDirection } from '@flux-ui/types';
|
|
40
40
|
import { computed, ref, unref, useTemplateRef, type VNode, watch } from 'vue';
|
|
41
41
|
import FluxDynamicView from './FluxDynamicView.vue';
|
|
42
|
-
import $style from '
|
|
42
|
+
import $style from '~flux/components/css/component/OverflowBar.module.scss';
|
|
43
43
|
|
|
44
44
|
const {
|
|
45
45
|
alignment = 'center',
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import type { FluxSize } from '@flux-ui/types';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { defineComponent, type PropType } from 'vue';
|
|
5
|
-
import { FluxOverlayTransition } from '
|
|
6
|
-
import { createDialogRenderer } from '
|
|
7
|
-
import $style from '
|
|
5
|
+
import { FluxOverlayTransition } from '~flux/components/transition';
|
|
6
|
+
import { createDialogRenderer } from '~flux/components/util';
|
|
7
|
+
import $style from '~flux/components/css/component/Overlay.module.scss';
|
|
8
8
|
|
|
9
9
|
export default defineComponent({
|
|
10
10
|
emits: ['close'],
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
<script
|
|
29
29
|
lang="ts"
|
|
30
30
|
setup>
|
|
31
|
-
import { useFluxStore } from '
|
|
31
|
+
import { useFluxStore } from '~flux/components/data';
|
|
32
32
|
import FluxAlert from './FluxAlert.vue';
|
|
33
33
|
import FluxConfirm from './FluxConfirm.vue';
|
|
34
34
|
import FluxOverlay from './FluxOverlay.vue';
|
|
35
35
|
import FluxPrompt from './FluxPrompt.vue';
|
|
36
|
-
import $style from '
|
|
36
|
+
import $style from '~flux/components/css/component/Overlay.module.scss';
|
|
37
37
|
|
|
38
38
|
const {alerts, confirms, prompts} = useFluxStore();
|
|
39
39
|
</script>
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
lang="ts"
|
|
59
59
|
setup>
|
|
60
60
|
import { computed, unref } from 'vue';
|
|
61
|
-
import { useTranslate } from '
|
|
62
|
-
import { showPrompt } from '
|
|
61
|
+
import { useTranslate } from '~flux/components/composable/private';
|
|
62
|
+
import { showPrompt } from '~flux/components/data';
|
|
63
63
|
import FluxPaginationButton from './FluxPaginationButton.vue';
|
|
64
|
-
import $style from '
|
|
64
|
+
import $style from '~flux/components/css/component/Pagination.module.scss';
|
|
65
65
|
|
|
66
66
|
const emit = defineEmits<{
|
|
67
67
|
navigate: [number];
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
setup>
|
|
35
35
|
import type { FluxFormSelectOption } from '@flux-ui/types';
|
|
36
36
|
import { computed, ref, watch } from 'vue';
|
|
37
|
-
import { useTranslate } from '
|
|
37
|
+
import { useTranslate } from '~flux/components/composable/private';
|
|
38
38
|
import FluxFormSelect from './FluxFormSelect.vue';
|
|
39
39
|
import FluxPagination from './FluxPagination.vue';
|
|
40
40
|
import FluxSpacer from './FluxSpacer.vue';
|
|
41
|
-
import $style from '
|
|
41
|
+
import $style from '~flux/components/css/component/Pagination.module.scss';
|
|
42
42
|
|
|
43
43
|
const emit = defineEmits<{
|
|
44
44
|
limit: [number];
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
setup>
|
|
26
26
|
import type { FluxButtonEmits, FluxButtonProps, FluxButtonSlots } from '@flux-ui/types';
|
|
27
27
|
import FluxButton, { SLOTS } from './FluxButton.vue';
|
|
28
|
-
import $style from '
|
|
28
|
+
import $style from '~flux/components/css/component/Pagination.module.scss';
|
|
29
29
|
|
|
30
30
|
defineEmits<FluxButtonEmits>();
|
|
31
31
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
setup>
|
|
24
24
|
import type { VNode } from 'vue';
|
|
25
25
|
import FluxSpinner from './FluxSpinner.vue';
|
|
26
|
-
import $style from '
|
|
26
|
+
import $style from '~flux/components/css/component/Pane.module.scss';
|
|
27
27
|
|
|
28
28
|
const CLASS_MAP = {
|
|
29
29
|
default: $style.paneDefault,
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
<script
|
|
28
28
|
lang="ts"
|
|
29
29
|
setup>
|
|
30
|
-
import type { VNode } from 'vue';
|
|
31
30
|
import type { FluxIconName } from '@flux-ui/types';
|
|
31
|
+
import type { VNode } from 'vue';
|
|
32
32
|
import FluxIcon from './FluxIcon.vue';
|
|
33
|
-
import $style from '
|
|
33
|
+
import $style from '~flux/components/css/component/Pane.module.scss';
|
|
34
34
|
|
|
35
35
|
defineProps<{
|
|
36
36
|
readonly icon?: FluxIconName;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
import { computed, type VNode } from 'vue';
|
|
39
39
|
import FluxAnimatedColors from './FluxAnimatedColors.vue';
|
|
40
40
|
import FluxGridPattern from './FluxGridPattern.vue';
|
|
41
|
-
import $style from '
|
|
41
|
+
import $style from '~flux/components/css/component/Pane.module.scss';
|
|
42
42
|
|
|
43
43
|
const {
|
|
44
44
|
animatedColors,
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
import FluxIcon from './FluxIcon.vue';
|
|
39
39
|
import FluxLegend from './FluxLegend.vue';
|
|
40
40
|
import FluxTooltip from './FluxTooltip.vue';
|
|
41
|
-
import $style from '
|
|
41
|
+
import $style from '~flux/components/css/component/PercentageBar.module.scss';
|
|
42
42
|
|
|
43
43
|
defineProps<{
|
|
44
44
|
readonly isLegendVisible?: boolean;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
setup>
|
|
26
26
|
import type { FluxIconName } from '@flux-ui/types';
|
|
27
27
|
import FluxAvatar from './FluxAvatar.vue';
|
|
28
|
-
import $style from '
|
|
28
|
+
import $style from '~flux/components/css/component/Avatar.module.scss';
|
|
29
29
|
|
|
30
30
|
defineEmits<{
|
|
31
31
|
click: [MouseEvent];
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
import type { FluxIconName } from '@flux-ui/types';
|
|
35
35
|
import { clsx } from 'clsx';
|
|
36
36
|
import FluxIcon from './FluxIcon.vue';
|
|
37
|
-
import $style from '
|
|
37
|
+
import $style from '~flux/components/css/component/Placeholder.module.scss';
|
|
38
38
|
|
|
39
39
|
const emit = defineEmits<{
|
|
40
40
|
click: [MouseEvent];
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
setup>
|
|
21
21
|
import type { FluxButtonEmits, FluxButtonProps, FluxButtonSlots } from '@flux-ui/types';
|
|
22
22
|
import FluxButton, { SLOTS } from './FluxButton.vue';
|
|
23
|
-
import $style from '
|
|
23
|
+
import $style from '~flux/components/css/component/Button.module.scss';
|
|
24
24
|
|
|
25
25
|
defineEmits<FluxButtonEmits>();
|
|
26
26
|
defineProps<FluxButtonProps>();
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
setup>
|
|
21
21
|
import type { FluxButtonEmits, FluxButtonProps, FluxButtonSlots } from '@flux-ui/types';
|
|
22
22
|
import FluxButton, { SLOTS } from './FluxButton.vue';
|
|
23
|
-
import $style from '
|
|
23
|
+
import $style from '~flux/components/css/component/Button.module.scss';
|
|
24
24
|
|
|
25
25
|
defineEmits<FluxButtonEmits>();
|
|
26
26
|
defineProps<FluxButtonProps>();
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
lang="ts"
|
|
42
42
|
setup>
|
|
43
43
|
import { computed, unref } from 'vue';
|
|
44
|
-
import { FluxFadeTransition } from '
|
|
44
|
+
import { FluxFadeTransition } from '~flux/components/transition';
|
|
45
45
|
import FluxStack from './FluxStack.vue';
|
|
46
|
-
import $style from '
|
|
46
|
+
import $style from '~flux/components/css/component/Progress.module.scss';
|
|
47
47
|
|
|
48
48
|
const {
|
|
49
49
|
isIndeterminate,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
setup>
|
|
32
32
|
import type { FluxPromptObject } from '@flux-ui/types';
|
|
33
33
|
import { computed, onMounted, ref, unref, useTemplateRef } from 'vue';
|
|
34
|
-
import { useTranslate } from '
|
|
34
|
+
import { useTranslate } from '~flux/components/composable/private';
|
|
35
35
|
import FluxFormField from './FluxFormField.vue';
|
|
36
36
|
import FluxFormInput from './FluxFormInput.vue';
|
|
37
37
|
import FluxPrimaryButton from './FluxPrimaryButton.vue';
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
import { clsx } from 'clsx';
|
|
50
50
|
import FluxButton from './FluxButton.vue';
|
|
51
51
|
import FluxIcon from './FluxIcon.vue';
|
|
52
|
-
import $style from '
|
|
52
|
+
import $style from '~flux/components/css/component/Button.module.scss';
|
|
53
53
|
|
|
54
54
|
defineEmits<FluxButtonEmits>();
|
|
55
55
|
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
setup>
|
|
38
38
|
import { unrefTemplateElement } from '@flux-ui/internals';
|
|
39
39
|
import { ref, toRef, unref, useTemplateRef, watchEffect } from 'vue';
|
|
40
|
-
import { useDisabled } from '
|
|
40
|
+
import { useDisabled } from '~flux/components/composable';
|
|
41
41
|
import FluxButtonGroup from './FluxButtonGroup.vue';
|
|
42
42
|
import FluxSecondaryButton from './FluxSecondaryButton.vue';
|
|
43
|
-
import $style from '
|
|
43
|
+
import $style from '~flux/components/css/component/Form.module.scss';
|
|
44
44
|
|
|
45
45
|
const modelValue = defineModel<number>({
|
|
46
46
|
default: 0
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
setup>
|
|
20
20
|
import type { FluxIconName } from '@flux-ui/types';
|
|
21
21
|
import { clsx } from 'clsx';
|
|
22
|
-
import { useTranslate } from '
|
|
22
|
+
import { useTranslate } from '~flux/components/composable/private';
|
|
23
23
|
import FluxIcon from './FluxIcon.vue';
|
|
24
|
-
import $style from '
|
|
24
|
+
import $style from '~flux/components/css/component/Remove.module.scss';
|
|
25
25
|
|
|
26
26
|
const emit = defineEmits<{
|
|
27
27
|
click: [MouseEvent];
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
lang="ts"
|
|
16
16
|
setup>
|
|
17
17
|
import { type VNode, watch } from 'vue';
|
|
18
|
-
import { useFluxStore } from '
|
|
18
|
+
import { useFluxStore } from '~flux/components/data';
|
|
19
19
|
import FluxOverlayProvider from './FluxOverlayProvider.vue';
|
|
20
20
|
import FluxSnackbarProvider from './FluxSnackbarProvider.vue';
|
|
21
21
|
import FluxTooltipProvider from './FluxTooltipProvider.vue';
|
|
22
|
-
import $style from '
|
|
22
|
+
import $style from '~flux/components/css/component/Root.module.scss';
|
|
23
23
|
|
|
24
24
|
defineOptions({
|
|
25
25
|
inheritAttrs: false
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
setup>
|
|
21
21
|
import type { FluxButtonEmits, FluxButtonProps, FluxButtonSlots } from '@flux-ui/types';
|
|
22
22
|
import FluxButton, { SLOTS } from './FluxButton.vue';
|
|
23
|
-
import $style from '
|
|
23
|
+
import $style from '~flux/components/css/component/Button.module.scss';
|
|
24
24
|
|
|
25
25
|
defineEmits<FluxButtonEmits>();
|
|
26
26
|
defineProps<FluxButtonProps>();
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
setup>
|
|
21
21
|
import type { FluxButtonEmits, FluxButtonProps, FluxButtonSlots } from '@flux-ui/types';
|
|
22
22
|
import FluxButton, { SLOTS } from './FluxButton.vue';
|
|
23
|
-
import $style from '
|
|
23
|
+
import $style from '~flux/components/css/component/Button.module.scss';
|
|
24
24
|
|
|
25
25
|
defineEmits<FluxButtonEmits>();
|
|
26
26
|
defineProps<FluxButtonProps>();
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
import { clsx } from 'clsx';
|
|
54
54
|
import { onBeforeUnmount, ref, unref, useTemplateRef, watchEffect } from 'vue';
|
|
55
55
|
import FluxIcon from './FluxIcon.vue';
|
|
56
|
-
import $style from '
|
|
56
|
+
import $style from '~flux/components/css/component/SegmentedControl.module.scss';
|
|
57
57
|
|
|
58
58
|
const modelValue = defineModel<number>({
|
|
59
59
|
default: 0
|