@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
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import { FluxKanbanMoveEvent } from '@flux-ui/types';
|
|
2
|
-
import {
|
|
1
|
+
import { FluxKanbanMoveColumnEvent, FluxKanbanMoveEvent } from '@flux-ui/types';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { FluxKanbanInjection } from '../../data';
|
|
4
|
+
export type UseKanbanOptions = {
|
|
5
|
+
readonly disabled: Ref<boolean>;
|
|
6
|
+
readonly reorderableColumns: Ref<boolean>;
|
|
7
|
+
readonly canMove?: Ref<((event: FluxKanbanMoveEvent) => boolean) | undefined>;
|
|
8
|
+
readonly onMove: (event: FluxKanbanMoveEvent) => void;
|
|
9
|
+
readonly onMoveColumn: (event: FluxKanbanMoveColumnEvent) => void;
|
|
10
|
+
readonly onAnnounce: (message: string) => void;
|
|
11
|
+
};
|
|
3
12
|
/**
|
|
4
13
|
* Internal composable for managing kanban drag-and-drop state.
|
|
5
|
-
* Provides
|
|
14
|
+
* Provides item registration, drag tracking, drop target management,
|
|
15
|
+
* keyboard drag-and-drop, column reordering, drop validation and auto-scroll.
|
|
6
16
|
*/
|
|
7
|
-
export declare function useKanban(
|
|
17
|
+
export declare function useKanban(options: UseKanbanOptions): FluxKanbanInjection;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type UseKanbanAutoScrollOptions = {
|
|
2
|
+
getBoardElement(): Element | null;
|
|
3
|
+
getVerticalTarget(): Element | null;
|
|
4
|
+
};
|
|
5
|
+
export type UseKanbanAutoScrollReturn = {
|
|
6
|
+
onPointerMove(clientX: number, clientY: number): void;
|
|
7
|
+
stop(): void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Drives horizontal (board) and vertical (column body) auto-scroll while a drag
|
|
11
|
+
* is in progress. Reads the active scroll containers via the option callbacks.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useKanbanAutoScroll(options: UseKanbanAutoScrollOptions): UseKanbanAutoScrollReturn;
|
package/dist/data/di.d.ts
CHANGED
|
@@ -1,32 +1,69 @@
|
|
|
1
1
|
import { FluxFilterState, FluxFilterValue } from '@flux-ui/types';
|
|
2
|
-
import {
|
|
2
|
+
import { DateTime } from 'luxon';
|
|
3
|
+
import { ComponentInternalInstance, ComputedRef, InjectionKey, Ref, VNode } from 'vue';
|
|
3
4
|
export declare const FluxAdaptiveGroupInjectionKey: InjectionKey<FluxAdaptiveGroupInjection>;
|
|
5
|
+
export declare const FluxCalendarInjectionKey: InjectionKey<FluxCalendarInjection>;
|
|
4
6
|
export declare const FluxDisabledInjectionKey: InjectionKey<Ref<boolean>>;
|
|
5
7
|
export declare const FluxKanbanInjectionKey: InjectionKey<FluxKanbanInjection>;
|
|
6
8
|
export declare const FluxExpandableGroupInjectionKey: InjectionKey<FluxExpandableGroupInjection>;
|
|
7
9
|
export declare const FluxFlyoutInjectionKey: InjectionKey<FluxFlyoutInjection>;
|
|
8
10
|
export declare const FluxFilterInjectionKey: InjectionKey<FluxFilterInjection>;
|
|
9
11
|
export declare const FluxFormFieldInjectionKey: InjectionKey<FluxFormFieldInjection>;
|
|
12
|
+
export declare const FluxTabBarInjectionKey: InjectionKey<FluxTabBarInjection>;
|
|
10
13
|
export declare const FluxTableInjectionKey: InjectionKey<FluxTableInjection>;
|
|
11
14
|
export declare const FluxTooltipInjectionKey: InjectionKey<FluxTooltipInjection>;
|
|
15
|
+
export type FluxKanbanDragMode = 'pointer' | 'keyboard';
|
|
12
16
|
export type FluxKanbanDragState = {
|
|
13
|
-
readonly
|
|
17
|
+
readonly mode: FluxKanbanDragMode;
|
|
18
|
+
readonly itemId: string | number;
|
|
14
19
|
readonly fromColumnId: string | number;
|
|
15
20
|
readonly dropColumnId: string | number | null;
|
|
16
|
-
readonly
|
|
21
|
+
readonly beforeItemId: string | number | null;
|
|
22
|
+
readonly originBeforeItemId?: string | number | null;
|
|
17
23
|
};
|
|
24
|
+
export type FluxKanbanColumnDragState = {
|
|
25
|
+
readonly columnId: string | number;
|
|
26
|
+
readonly dropBeforeColumnId: string | number | null;
|
|
27
|
+
};
|
|
28
|
+
export type FluxKanbanKeyboardDirection = 'up' | 'down' | 'left' | 'right';
|
|
18
29
|
export type FluxKanbanInjection = {
|
|
30
|
+
readonly disabled: Ref<boolean>;
|
|
31
|
+
readonly reorderableColumns: Ref<boolean>;
|
|
19
32
|
readonly dragState: Ref<FluxKanbanDragState | null>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
readonly columnDragState: Ref<FluxKanbanColumnDragState | null>;
|
|
34
|
+
readonly grabbedId: Ref<string | number | null>;
|
|
35
|
+
readonly isOverColumnId: Ref<string | number | null>;
|
|
36
|
+
readonly isDropAllowed: Ref<boolean>;
|
|
37
|
+
registerItem(element: Element, itemId: string | number): void;
|
|
38
|
+
unregisterItem(element: Element): void;
|
|
39
|
+
getItemInfo(element: Element): {
|
|
40
|
+
readonly itemId: string | number;
|
|
41
|
+
} | undefined;
|
|
42
|
+
registerColumn(element: Element, columnId: string | number): void;
|
|
43
|
+
unregisterColumn(element: Element): void;
|
|
44
|
+
getColumnInfo(element: Element): {
|
|
45
|
+
readonly columnId: string | number;
|
|
24
46
|
} | undefined;
|
|
25
|
-
|
|
47
|
+
setBoardElement(element: Element | null): void;
|
|
48
|
+
setColumnBodyElement(columnId: string | number, element: Element | null): void;
|
|
49
|
+
enterColumn(columnId: string | number): void;
|
|
50
|
+
leaveColumn(columnId: string | number): void;
|
|
51
|
+
startDrag(itemId: string | number, fromColumnId: string | number): void;
|
|
26
52
|
endDrag(): void;
|
|
27
|
-
updateDropTarget(columnId: string | number,
|
|
53
|
+
updateDropTarget(columnId: string | number, beforeItemId: string | number | null): void;
|
|
28
54
|
clearDropTarget(): void;
|
|
29
55
|
commitDrop(): void;
|
|
56
|
+
grabItem(itemId: string | number, fromColumnId: string | number): void;
|
|
57
|
+
moveKeyboard(direction: FluxKanbanKeyboardDirection): void;
|
|
58
|
+
commitKeyboardDrop(): void;
|
|
59
|
+
cancelKeyboardDrop(): void;
|
|
60
|
+
isItemGrabbed(itemId: string | number): boolean;
|
|
61
|
+
startColumnDrag(columnId: string | number): void;
|
|
62
|
+
endColumnDrag(): void;
|
|
63
|
+
updateColumnDropTarget(beforeColumnId: string | number | null): void;
|
|
64
|
+
commitColumnDrop(): void;
|
|
65
|
+
cancelAll(): void;
|
|
66
|
+
onPointerMove(clientX: number, clientY: number): void;
|
|
30
67
|
};
|
|
31
68
|
export type FluxAdaptiveGroupChild = {
|
|
32
69
|
readonly priority: Ref<number>;
|
|
@@ -38,6 +75,35 @@ export type FluxAdaptiveGroupInjection = {
|
|
|
38
75
|
register(uid: number, child: FluxAdaptiveGroupChild): void;
|
|
39
76
|
unregister(uid: number): void;
|
|
40
77
|
};
|
|
78
|
+
export type FluxCalendarView = 'month' | 'week' | 'two-days' | 'day';
|
|
79
|
+
export type FluxCalendarKeyboardDirection = 'up' | 'down' | 'left' | 'right';
|
|
80
|
+
export type FluxCalendarItemData = {
|
|
81
|
+
readonly id: string | number;
|
|
82
|
+
readonly date: DateTime;
|
|
83
|
+
readonly duration?: number;
|
|
84
|
+
readonly allDay: boolean;
|
|
85
|
+
readonly isClickable: boolean;
|
|
86
|
+
renderContent(): VNode[];
|
|
87
|
+
handleClick(evt: MouseEvent): void;
|
|
88
|
+
};
|
|
89
|
+
export type FluxCalendarInjection = {
|
|
90
|
+
readonly isDraggable: ComputedRef<boolean>;
|
|
91
|
+
readonly resolvedView: ComputedRef<FluxCalendarView>;
|
|
92
|
+
readonly hourRange: ComputedRef<readonly [number, number]>;
|
|
93
|
+
readonly pixelsPerMinute: ComputedRef<number>;
|
|
94
|
+
readonly snapMinutes: ComputedRef<number>;
|
|
95
|
+
readonly grabbedId: Ref<string | number | null>;
|
|
96
|
+
registerItem(id: string | number, data: FluxCalendarItemData): void;
|
|
97
|
+
unregisterItem(id: string | number): void;
|
|
98
|
+
registerItemElement(element: Element, id: string | number): void;
|
|
99
|
+
unregisterItemElement(element: Element): void;
|
|
100
|
+
onItemDragStart(id: string | number, fromDate: DateTime, evt: DragEvent): void;
|
|
101
|
+
onItemDragEnd(id: string | number): void;
|
|
102
|
+
onItemKeyboardGrab(id: string | number, fromDate: DateTime): void;
|
|
103
|
+
onItemKeyboardMove(direction: FluxCalendarKeyboardDirection): void;
|
|
104
|
+
onItemKeyboardCommit(): void;
|
|
105
|
+
onItemKeyboardCancel(): void;
|
|
106
|
+
};
|
|
41
107
|
export type FluxExpandableGroupInjection = {
|
|
42
108
|
closeAll(): void;
|
|
43
109
|
register(uid: number, expandable: ComponentInternalInstance): void;
|
|
@@ -59,6 +125,11 @@ export type FluxFlyoutInjection = {
|
|
|
59
125
|
export type FluxFormFieldInjection = {
|
|
60
126
|
readonly id?: string;
|
|
61
127
|
};
|
|
128
|
+
export type FluxTabBarInjection = {
|
|
129
|
+
readonly isPills: Ref<boolean>;
|
|
130
|
+
registerItem(element: Element, isActive: Ref<boolean>): void;
|
|
131
|
+
unregisterItem(element: Element): void;
|
|
132
|
+
};
|
|
62
133
|
export type FluxTableInjection = {
|
|
63
134
|
readonly isBordered: boolean;
|
|
64
135
|
readonly isHoverable: boolean;
|
package/dist/data/i18n.d.ts
CHANGED
|
@@ -35,10 +35,14 @@ export declare const english: {
|
|
|
35
35
|
readonly 'flux.today': "Today";
|
|
36
36
|
readonly 'flux.selectMonth': "Select month";
|
|
37
37
|
readonly 'flux.selectYear': "Select year";
|
|
38
|
+
readonly 'flux.selectDate': "Select date";
|
|
38
39
|
readonly 'flux.previousMonth': "Previous month";
|
|
39
40
|
readonly 'flux.nextMonth': "Next month";
|
|
40
41
|
readonly 'flux.previousYears': "Previous years";
|
|
41
42
|
readonly 'flux.nextYears': "Next years";
|
|
43
|
+
readonly 'flux.allDay': "All day";
|
|
44
|
+
readonly 'flux.grabbedAnnounce': "Item grabbed. Use arrow keys to move, Enter to drop, Escape to cancel.";
|
|
45
|
+
readonly 'flux.releasedAnnounce': "Item released.";
|
|
42
46
|
readonly 'flux.goToPage': "Go to page {page}";
|
|
43
47
|
readonly 'flux.pinDigit': "Digit {index} of {total}";
|
|
44
48
|
readonly 'flux.dropFilesOrClick': "Drop files here or click to upload";
|