@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
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
import type { FluxAutoCompleteType, FluxFormInputBaseProps } from '@flux-ui/types';
|
|
37
37
|
import type { DateTime } from 'luxon';
|
|
38
38
|
import { toRef, useTemplateRef } from 'vue';
|
|
39
|
-
import { useDisabled } from '
|
|
40
|
-
import { useDateFlyout } from '
|
|
39
|
+
import { useDisabled } from '~flux/components/composable';
|
|
40
|
+
import { useDateFlyout } from '~flux/components/composable/private';
|
|
41
41
|
import FluxDatePicker from './FluxDatePicker.vue';
|
|
42
42
|
import FluxFlyout from './FluxFlyout.vue';
|
|
43
43
|
import FluxFormInput from './FluxFormInput.vue';
|
|
44
44
|
import FluxFormInputGroup from './FluxFormInputGroup.vue';
|
|
45
45
|
import FluxSecondaryButton from './FluxSecondaryButton.vue';
|
|
46
|
-
import $style from '
|
|
46
|
+
import $style from '~flux/components/css/component/Form.module.scss';
|
|
47
47
|
|
|
48
48
|
const emit = defineEmits<{
|
|
49
49
|
blur: [];
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
import { clsx } from 'clsx';
|
|
47
47
|
import type { DateTime } from 'luxon';
|
|
48
48
|
import { computed, toRef, unref, useTemplateRef } from 'vue';
|
|
49
|
-
import { useDisabled } from '
|
|
50
|
-
import { useDateFlyout } from '
|
|
51
|
-
import { createLabelForDateRange } from '
|
|
49
|
+
import { useDisabled } from '~flux/components/composable';
|
|
50
|
+
import { useDateFlyout } from '~flux/components/composable/private';
|
|
51
|
+
import { createLabelForDateRange } from '~flux/components/util';
|
|
52
52
|
import FluxDatePicker from './FluxDatePicker.vue';
|
|
53
53
|
import FluxFlyout from './FluxFlyout.vue';
|
|
54
54
|
import FluxFormInputGroup from './FluxFormInputGroup.vue';
|
|
55
55
|
import FluxSecondaryButton from './FluxSecondaryButton.vue';
|
|
56
|
-
import $style from '
|
|
56
|
+
import $style from '~flux/components/css/component/Form.module.scss';
|
|
57
57
|
|
|
58
58
|
const modelValue = defineModel<[DateTime, DateTime] | null>({
|
|
59
59
|
required: true
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
import type { FluxAutoCompleteType, FluxFormInputBaseProps } from '@flux-ui/types';
|
|
50
50
|
import { DateTime } from 'luxon';
|
|
51
51
|
import { toRef, unref, useTemplateRef, watch } from 'vue';
|
|
52
|
-
import { useDisabled } from '
|
|
53
|
-
import { useDateFlyout } from '
|
|
52
|
+
import { useDisabled } from '~flux/components/composable';
|
|
53
|
+
import { useDateFlyout } from '~flux/components/composable/private';
|
|
54
54
|
import FluxDatePicker from './FluxDatePicker.vue';
|
|
55
55
|
import FluxFlyout from './FluxFlyout.vue';
|
|
56
56
|
import FluxFormInput from './FluxFormInput.vue';
|
|
57
57
|
import FluxFormInputGroup from './FluxFormInputGroup.vue';
|
|
58
58
|
import FluxSecondaryButton from './FluxSecondaryButton.vue';
|
|
59
59
|
import FluxStack from './FluxStack.vue';
|
|
60
|
-
import $style from '
|
|
60
|
+
import $style from '~flux/components/css/component/Form.module.scss';
|
|
61
61
|
|
|
62
62
|
const modelValue = defineModel<DateTime | null>({
|
|
63
63
|
required: true
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
lang="ts"
|
|
52
52
|
setup>
|
|
53
53
|
import { provide, useId, type VNode } from 'vue';
|
|
54
|
-
import { useTranslate } from '
|
|
55
|
-
import { FluxFormFieldInjectionKey } from '
|
|
54
|
+
import { useTranslate } from '~flux/components/composable/private';
|
|
55
|
+
import { FluxFormFieldInjectionKey } from '~flux/components/data';
|
|
56
56
|
import FluxFormFieldAddition from './FluxFormFieldAddition.vue';
|
|
57
|
-
import $style from '
|
|
57
|
+
import $style from '~flux/components/css/component/Form.module.scss';
|
|
58
58
|
|
|
59
59
|
defineProps<{
|
|
60
60
|
readonly currentLength?: number;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
import type { FluxIconName } from '@flux-ui/types';
|
|
26
26
|
import { clsx } from 'clsx';
|
|
27
27
|
import FluxIcon from './FluxIcon.vue';
|
|
28
|
-
import $style from '
|
|
28
|
+
import $style from '~flux/components/css/component/Form.module.scss';
|
|
29
29
|
|
|
30
30
|
const {
|
|
31
31
|
mode = 'hint'
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
import { clsx } from 'clsx';
|
|
69
69
|
import { DateTime } from 'luxon';
|
|
70
70
|
import { ref, toRef, unref, useTemplateRef, watch } from 'vue';
|
|
71
|
-
import { useDisabled, useFormFieldInjection } from '
|
|
72
|
-
import { inputMask } from '
|
|
71
|
+
import { useDisabled, useFormFieldInjection } from '~flux/components/composable';
|
|
72
|
+
import { inputMask } from '~flux/components/data';
|
|
73
73
|
import FluxIcon from './FluxIcon.vue';
|
|
74
74
|
import FluxSpinner from './FluxSpinner.vue';
|
|
75
|
-
import $style from '
|
|
75
|
+
import $style from '~flux/components/css/component/Form.module.scss';
|
|
76
76
|
|
|
77
77
|
const emit = defineEmits<{
|
|
78
78
|
blur: [];
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
<script
|
|
17
17
|
lang="ts"
|
|
18
18
|
setup>
|
|
19
|
-
import type { VNode } from 'vue';
|
|
20
19
|
import type { FluxIconName } from '@flux-ui/types';
|
|
20
|
+
import type { VNode } from 'vue';
|
|
21
21
|
import FluxIcon from './FluxIcon.vue';
|
|
22
|
-
import $style from '
|
|
22
|
+
import $style from '~flux/components/css/component/Form.module.scss';
|
|
23
23
|
|
|
24
24
|
defineProps<{
|
|
25
25
|
readonly icon?: FluxIconName;
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
<script
|
|
14
14
|
lang="ts"
|
|
15
15
|
setup>
|
|
16
|
-
import type { VNode } from 'vue';
|
|
17
16
|
import { clsx } from 'clsx';
|
|
18
|
-
import
|
|
17
|
+
import type { VNode } from 'vue';
|
|
18
|
+
import $style from '~flux/components/css/component/Form.module.scss';
|
|
19
19
|
|
|
20
20
|
defineProps<{
|
|
21
21
|
readonly isSecondary?: boolean;
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
import type { FluxAutoCompleteType, FluxFormInputBaseProps } from '@flux-ui/types';
|
|
40
40
|
import { clsx } from 'clsx';
|
|
41
41
|
import { toRef, unref, useTemplateRef } from 'vue';
|
|
42
|
-
import { useDisabled, useFormFieldInjection } from '
|
|
43
|
-
import { useTranslate } from '
|
|
44
|
-
import $style from '
|
|
42
|
+
import { useDisabled, useFormFieldInjection } from '~flux/components/composable';
|
|
43
|
+
import { useTranslate } from '~flux/components/composable/private';
|
|
44
|
+
import $style from '~flux/components/css/component/Form.module.scss';
|
|
45
45
|
|
|
46
46
|
const modelValue = defineModel<string>({
|
|
47
47
|
default: ''
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
import { clampWithStepPrecision, countDecimals, formatNumber } from '@basmilius/utils';
|
|
47
47
|
import type { FluxFormInputBaseProps } from '@flux-ui/types';
|
|
48
48
|
import { computed, ref, toRef, unref, useTemplateRef, watch } from 'vue';
|
|
49
|
-
import { useDisabled } from '
|
|
50
|
-
import { useTranslate } from '
|
|
51
|
-
import { addTooltip, removeTooltip, updateTooltip } from '
|
|
49
|
+
import { useDisabled } from '~flux/components/composable';
|
|
50
|
+
import { useTranslate } from '~flux/components/composable/private';
|
|
51
|
+
import { addTooltip, removeTooltip, updateTooltip } from '~flux/components/data';
|
|
52
52
|
import { SliderBase, SliderThumb, SliderTrack } from './primitive';
|
|
53
53
|
|
|
54
54
|
const modelValue = defineModel<[number, number]>({
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
import type { FluxFormInputBaseProps, FluxFormSelectEntry, FluxFormSelectValue } from '@flux-ui/types';
|
|
25
25
|
import { clsx } from 'clsx';
|
|
26
26
|
import { toRef, unref } from 'vue';
|
|
27
|
-
import { SelectBase } from '
|
|
28
|
-
import { useDisabled } from '
|
|
29
|
-
import { useFormSelect } from '
|
|
30
|
-
import $formStyle from '
|
|
27
|
+
import { SelectBase } from '~flux/components/component/primitive';
|
|
28
|
+
import { useDisabled } from '~flux/components/composable';
|
|
29
|
+
import { useFormSelect } from '~flux/components/composable/private';
|
|
30
|
+
import $formStyle from '~flux/components/css/component/Form.module.scss';
|
|
31
31
|
|
|
32
32
|
const modelSearch = defineModel<string>('searchQuery', {
|
|
33
33
|
default: ''
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
import { useDebouncedRef, useLoaded } from '@basmilius/common';
|
|
26
26
|
import type { FluxFormInputBaseProps, FluxFormSelectEntry, FluxFormSelectValue, FluxFormSelectValueSingle } from '@flux-ui/types';
|
|
27
27
|
import { clsx } from 'clsx';
|
|
28
|
-
import { computed, type Ref,
|
|
29
|
-
import { SelectBase } from '
|
|
30
|
-
import { useDisabled } from '
|
|
31
|
-
import { useFormSelect } from '
|
|
32
|
-
import { isFluxFormSelectOption } from '
|
|
33
|
-
import $formStyle from '
|
|
28
|
+
import { computed, ref, type Ref, toRef, unref, watch } from 'vue';
|
|
29
|
+
import { SelectBase } from '~flux/components/component/primitive';
|
|
30
|
+
import { useDisabled } from '~flux/components/composable';
|
|
31
|
+
import { useFormSelect } from '~flux/components/composable/private';
|
|
32
|
+
import { isFluxFormSelectOption } from '~flux/components/data';
|
|
33
|
+
import $formStyle from '~flux/components/css/component/Form.module.scss';
|
|
34
34
|
|
|
35
35
|
const modelSearch = defineModel<string>('searchQuery', {
|
|
36
36
|
default: ''
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
import { clampWithStepPrecision, countDecimals, formatNumber } from '@basmilius/utils';
|
|
33
33
|
import type { FluxFormInputBaseProps } from '@flux-ui/types';
|
|
34
34
|
import { computed, ref, toRef, unref, useTemplateRef, watch, watchEffect } from 'vue';
|
|
35
|
-
import { useDisabled } from '
|
|
36
|
-
import { addTooltip, removeTooltip, updateTooltip } from '
|
|
35
|
+
import { useDisabled } from '~flux/components/composable';
|
|
36
|
+
import { addTooltip, removeTooltip, updateTooltip } from '~flux/components/data';
|
|
37
37
|
import { SliderBase, SliderThumb, SliderTrack } from './primitive';
|
|
38
38
|
|
|
39
39
|
const modelValue = defineModel<number>({
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
import type { FluxAutoCompleteType, FluxFormInputBaseProps } from '@flux-ui/types';
|
|
33
33
|
import { clsx } from 'clsx';
|
|
34
34
|
import { toRef } from 'vue';
|
|
35
|
-
import { useDisabled, useFormFieldInjection } from '
|
|
36
|
-
import $style from '
|
|
35
|
+
import { useDisabled, useFormFieldInjection } from '~flux/components/composable';
|
|
36
|
+
import $style from '~flux/components/css/component/Form.module.scss';
|
|
37
37
|
|
|
38
38
|
const emit = defineEmits<{
|
|
39
39
|
blur: [];
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
import type { FluxFormInputBaseProps, FluxFormSelectEntry } from '@flux-ui/types';
|
|
22
22
|
import { upperFirst } from 'lodash-es';
|
|
23
23
|
import { computed, toRef } from 'vue';
|
|
24
|
-
import { useDisabled } from '
|
|
25
|
-
import { useTranslate } from '
|
|
26
|
-
import type { FluxTranslation } from '
|
|
27
|
-
import { TIME_ZONE_GROUP_ORDER, TIME_ZONES } from '
|
|
24
|
+
import { useDisabled } from '~flux/components/composable';
|
|
25
|
+
import { useTranslate } from '~flux/components/composable/private';
|
|
26
|
+
import type { FluxTranslation } from '~flux/components/data';
|
|
27
|
+
import { TIME_ZONE_GROUP_ORDER, TIME_ZONES } from '~flux/components/data/timeZones';
|
|
28
28
|
import FluxFormSelect from './FluxFormSelect.vue';
|
|
29
29
|
|
|
30
30
|
const modelValue = defineModel<string | null>({
|
|
@@ -116,18 +116,15 @@
|
|
|
116
116
|
import type { FluxColor, FluxFormInputBaseProps, FluxFormTreeViewSelectOption, FluxFormTreeViewSelectValue } from '@flux-ui/types';
|
|
117
117
|
import { clsx } from 'clsx';
|
|
118
118
|
import { type ComponentPublicInstance, computed, nextTick, ref, toRef, unref, useTemplateRef, watch } from 'vue';
|
|
119
|
-
import { useDisabled, useFormFieldInjection } from '
|
|
120
|
-
import type
|
|
121
|
-
import {
|
|
122
|
-
import
|
|
123
|
-
import
|
|
124
|
-
import
|
|
125
|
-
import
|
|
126
|
-
import
|
|
127
|
-
import
|
|
128
|
-
import TreeNodeRenderer from '$flux/component/primitive/TreeNodeRenderer.vue';
|
|
129
|
-
import $formStyle from '$flux/css/component/Form.module.scss';
|
|
130
|
-
import $style from '$flux/css/component/TreeViewSelect.module.scss';
|
|
119
|
+
import { useDisabled, useFormFieldInjection } from '~flux/components/composable';
|
|
120
|
+
import { flattenAll, flattenVisible, INITIAL_HIGHLIGHTED_INDEX, type TreeFlatNode, useDropdownPopup, useTranslate, useTreeView } from '~flux/components/composable/private';
|
|
121
|
+
import { FluxFadeTransition } from '~flux/components/transition';
|
|
122
|
+
import FluxFormInput from './FluxFormInput.vue';
|
|
123
|
+
import FluxIcon from './FluxIcon.vue';
|
|
124
|
+
import FluxTag from './FluxTag.vue';
|
|
125
|
+
import { Anchor, AnchorPopup, TreeNodeRenderer } from './primitive';
|
|
126
|
+
import $formStyle from '~flux/components/css/component/Form.module.scss';
|
|
127
|
+
import $style from '~flux/components/css/component/TreeViewSelect.module.scss';
|
|
131
128
|
|
|
132
129
|
type FlatNode = TreeFlatNode<FluxFormTreeViewSelectOption>;
|
|
133
130
|
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
<script
|
|
58
58
|
lang="ts"
|
|
59
59
|
setup>
|
|
60
|
-
import type { VNode } from 'vue';
|
|
61
60
|
import type { FluxFocalPointObject } from '@flux-ui/types';
|
|
62
|
-
import {
|
|
61
|
+
import type { VNode } from 'vue';
|
|
62
|
+
import { useTranslate } from '~flux/components/composable/private';
|
|
63
63
|
import FluxDropZone from './FluxDropZone.vue';
|
|
64
64
|
import FluxGalleryItem from './FluxGalleryItem.vue';
|
|
65
65
|
import FluxIcon from './FluxIcon.vue';
|
|
66
|
-
import $style from '
|
|
66
|
+
import $style from '~flux/components/css/component/Gallery.module.scss';
|
|
67
67
|
|
|
68
68
|
const emit = defineEmits<{
|
|
69
69
|
delete: [number];
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
import FluxFocalPointImage from './FluxFocalPointImage.vue';
|
|
31
31
|
import FluxRemove from './FluxRemove.vue';
|
|
32
32
|
import FluxSpinner from './FluxSpinner.vue';
|
|
33
|
-
import $style from '
|
|
33
|
+
import $style from '~flux/components/css/component/Gallery.module.scss';
|
|
34
34
|
|
|
35
35
|
const emit = defineEmits<{
|
|
36
36
|
delete: [];
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
import { warn } from '@flux-ui/internals';
|
|
30
30
|
import type { FluxIconName } from '@flux-ui/types';
|
|
31
31
|
import { computed } from 'vue';
|
|
32
|
-
import { iconRegistry } from '
|
|
33
|
-
import $style from '
|
|
32
|
+
import { iconRegistry } from '~flux/components/data';
|
|
33
|
+
import $style from '~flux/components/css/component/Icon.module.scss';
|
|
34
34
|
|
|
35
35
|
const emit = defineEmits<{
|
|
36
36
|
click: [MouseEvent];
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script
|
|
15
15
|
setup
|
|
16
16
|
lang="ts">
|
|
17
|
-
import type { VNode } from 'vue';
|
|
18
17
|
import type { FluxIconName } from '@flux-ui/types';
|
|
18
|
+
import type { VNode } from 'vue';
|
|
19
19
|
import FluxIcon from './FluxIcon.vue';
|
|
20
|
-
import $style from '
|
|
20
|
+
import $style from '~flux/components/css/component/Info.module.scss';
|
|
21
21
|
|
|
22
22
|
defineProps<{
|
|
23
23
|
readonly icon?: FluxIconName;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
<script
|
|
10
10
|
lang="ts"
|
|
11
11
|
setup>
|
|
12
|
-
import $style from '$flux/css/component/Item.module.scss';
|
|
13
12
|
import FluxActionBar from './FluxActionBar.vue';
|
|
13
|
+
import $style from '~flux/components/css/component/Item.module.scss';
|
|
14
14
|
|
|
15
15
|
defineProps<{
|
|
16
16
|
readonly isCenter?: boolean;
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
setup>
|
|
22
22
|
import type { FluxKanbanMoveColumnEvent, FluxKanbanMoveEvent } from '@flux-ui/types';
|
|
23
23
|
import { computed, onBeforeUnmount, onMounted, provide, ref, toRef, useTemplateRef, watch } from 'vue';
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import $style from '
|
|
24
|
+
import { useKanban } from '~flux/components/composable/private';
|
|
25
|
+
import { FluxDisabledInjectionKey, FluxKanbanInjectionKey } from '~flux/components/data';
|
|
26
|
+
import $style from '~flux/components/css/component/Kanban.module.scss';
|
|
27
27
|
|
|
28
28
|
const {
|
|
29
29
|
ariaLabel,
|
|
@@ -73,28 +73,21 @@
|
|
|
73
73
|
kanban.onPointerMove(evt.clientX, evt.clientY);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
function onWindowDrop(): void {
|
|
77
|
-
kanban.endDrag();
|
|
78
|
-
kanban.endColumnDrag();
|
|
79
|
-
}
|
|
80
|
-
|
|
81
76
|
onMounted(() => {
|
|
82
77
|
kanban.setBoardElement(root.value);
|
|
83
78
|
window.addEventListener('drag', onPointerMove);
|
|
84
|
-
window.addEventListener('dragend',
|
|
79
|
+
window.addEventListener('dragend', kanban.cancelAll);
|
|
85
80
|
});
|
|
86
81
|
|
|
87
82
|
onBeforeUnmount(() => {
|
|
88
83
|
kanban.setBoardElement(null);
|
|
89
84
|
window.removeEventListener('drag', onPointerMove);
|
|
90
|
-
window.removeEventListener('dragend',
|
|
85
|
+
window.removeEventListener('dragend', kanban.cancelAll);
|
|
91
86
|
});
|
|
92
87
|
|
|
93
88
|
watch(() => disabled, value => {
|
|
94
89
|
if (value) {
|
|
95
|
-
kanban.
|
|
96
|
-
kanban.endColumnDrag();
|
|
97
|
-
kanban.cancelKeyboardDrop();
|
|
90
|
+
kanban.cancelAll();
|
|
98
91
|
}
|
|
99
92
|
});
|
|
100
93
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
isColumnDropBefore && $style.isColumnDropBefore,
|
|
15
15
|
disabledState && $style.isDisabled
|
|
16
16
|
]">
|
|
17
|
-
<
|
|
17
|
+
<header
|
|
18
18
|
:class="$style.kanbanColumnHeader"
|
|
19
19
|
:draggable="isReorderable && !disabledState"
|
|
20
20
|
:tabindex="isReorderable && !disabledState ? 0 : undefined"
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
</slot>
|
|
28
28
|
|
|
29
29
|
<slot name="actions"/>
|
|
30
|
-
</
|
|
30
|
+
</header>
|
|
31
31
|
|
|
32
|
-
<
|
|
32
|
+
<main
|
|
33
33
|
ref="body"
|
|
34
34
|
:class="$style.kanbanColumnBody"
|
|
35
35
|
@dragenter="onDragEnter"
|
|
@@ -45,29 +45,33 @@
|
|
|
45
45
|
</div>
|
|
46
46
|
|
|
47
47
|
<div
|
|
48
|
+
aria-hidden="true"
|
|
48
49
|
:class="[
|
|
49
50
|
$style.kanbanDropIndicator,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
]"
|
|
53
|
-
|
|
51
|
+
dropIndicator !== null && $style.isVisible,
|
|
52
|
+
dropIndicator !== null && !kanban.isDropAllowed.value && $style.isDisallowed
|
|
53
|
+
]"
|
|
54
|
+
:style="dropIndicator !== null ? { transform: `translateY(${dropIndicator}px)` } : undefined"/>
|
|
55
|
+
</main>
|
|
54
56
|
|
|
55
|
-
<
|
|
57
|
+
<footer
|
|
56
58
|
v-if="hasFooter"
|
|
57
59
|
:class="$style.kanbanColumnFooter">
|
|
58
|
-
<slot
|
|
59
|
-
|
|
60
|
+
<slot
|
|
61
|
+
v-if="hasFooter"
|
|
62
|
+
name="footer"/>
|
|
63
|
+
</footer>
|
|
60
64
|
</div>
|
|
61
65
|
</template>
|
|
62
66
|
|
|
63
67
|
<script
|
|
64
68
|
lang="ts"
|
|
65
69
|
setup>
|
|
66
|
-
import { Comment, Text, computed, inject, onBeforeUnmount, onMounted, provide, ref, toRef, unref, useSlots, useTemplateRef, watch } from 'vue';
|
|
67
70
|
import { flattenVNodeTree } from '@flux-ui/internals';
|
|
68
|
-
import {
|
|
69
|
-
import useDisabled from '
|
|
70
|
-
import
|
|
71
|
+
import { Comment, computed, onBeforeUnmount, onMounted, provide, Text, toRef, unref, useSlots, useTemplateRef, watch } from 'vue';
|
|
72
|
+
import { useDisabled, useKanbanInjection } from '~flux/components/composable';
|
|
73
|
+
import { FluxDisabledInjectionKey } from '~flux/components/data';
|
|
74
|
+
import $style from '~flux/components/css/component/Kanban.module.scss';
|
|
71
75
|
|
|
72
76
|
const {
|
|
73
77
|
columnId,
|
|
@@ -87,7 +91,7 @@
|
|
|
87
91
|
footer?(): any;
|
|
88
92
|
}>();
|
|
89
93
|
|
|
90
|
-
const kanban =
|
|
94
|
+
const kanban = useKanbanInjection();
|
|
91
95
|
const root = useTemplateRef('root');
|
|
92
96
|
const body = useTemplateRef('body');
|
|
93
97
|
const slots = useSlots();
|
|
@@ -95,14 +99,28 @@
|
|
|
95
99
|
const disabledState = useDisabled(toRef(() => disabled));
|
|
96
100
|
provide(FluxDisabledInjectionKey, disabledState);
|
|
97
101
|
|
|
98
|
-
|
|
99
|
-
const isOver = ref(false);
|
|
100
|
-
|
|
102
|
+
const isOver = computed(() => kanban.isOverColumnId.value === columnId);
|
|
101
103
|
const isReorderable = computed(() => unref(kanban.reorderableColumns) && !unref(disabledState));
|
|
102
104
|
|
|
103
|
-
const
|
|
105
|
+
const dropIndicator = computed<number | null>(() => {
|
|
104
106
|
const state = unref(kanban.dragState);
|
|
105
|
-
|
|
107
|
+
const bodyEl = body.value;
|
|
108
|
+
|
|
109
|
+
if (!state || state.dropColumnId !== columnId || !(bodyEl instanceof HTMLElement)) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const items = Array.from(bodyEl.children).filter(
|
|
114
|
+
(child): child is HTMLElement => child instanceof HTMLElement && kanban.getItemInfo(child) !== undefined
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
if (state.beforeItemId === null) {
|
|
118
|
+
const last = items[items.length - 1];
|
|
119
|
+
return last ? last.offsetTop + last.offsetHeight + 4 : 4;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const target = items.find(el => kanban.getItemInfo(el)?.itemId === state.beforeItemId);
|
|
123
|
+
return target ? target.offsetTop - 5 : null;
|
|
106
124
|
});
|
|
107
125
|
|
|
108
126
|
const isColumnDragging = computed(() => unref(kanban.columnDragState)?.columnId === columnId);
|
|
@@ -135,20 +153,11 @@
|
|
|
135
153
|
const hasFooter = computed(() => !!slots.footer);
|
|
136
154
|
|
|
137
155
|
function onDragEnter(): void {
|
|
138
|
-
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
dragEnterCount++;
|
|
143
|
-
isOver.value = true;
|
|
156
|
+
kanban.enterColumn(columnId);
|
|
144
157
|
}
|
|
145
158
|
|
|
146
159
|
function onDragLeave(): void {
|
|
147
|
-
|
|
148
|
-
dragEnterCount = 0;
|
|
149
|
-
isOver.value = false;
|
|
150
|
-
kanban.clearDropTarget();
|
|
151
|
-
}
|
|
160
|
+
kanban.leaveColumn(columnId);
|
|
152
161
|
}
|
|
153
162
|
|
|
154
163
|
function onDragOver(evt: DragEvent): void {
|
|
@@ -159,17 +168,14 @@
|
|
|
159
168
|
evt.preventDefault();
|
|
160
169
|
|
|
161
170
|
const target = evt.target as Element;
|
|
162
|
-
const
|
|
171
|
+
const isOverItem = !!target.closest('[data-kanban-item]');
|
|
163
172
|
|
|
164
|
-
if (!
|
|
173
|
+
if (!isOverItem) {
|
|
165
174
|
kanban.updateDropTarget(columnId, null);
|
|
166
175
|
}
|
|
167
176
|
}
|
|
168
177
|
|
|
169
178
|
function onDrop(evt: DragEvent): void {
|
|
170
|
-
dragEnterCount = 0;
|
|
171
|
-
isOver.value = false;
|
|
172
|
-
|
|
173
179
|
if (unref(disabledState) || !unref(kanban.dragState)) {
|
|
174
180
|
return;
|
|
175
181
|
}
|