@flux-ui/components 3.0.0-next.66 → 3.0.0-next.67
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/FluxAction.vue.d.ts +2 -1
- package/dist/component/FluxActionBar.vue.d.ts +23 -47
- package/dist/component/FluxActionPane.vue.d.ts +8 -17
- package/dist/component/FluxActionStack.vue.d.ts +7 -152
- package/dist/component/FluxAdaptiveGroup.vue.d.ts +6 -17
- package/dist/component/FluxAdaptiveSlot.vue.d.ts +8 -24
- package/dist/component/FluxAlert.vue.d.ts +2 -1
- package/dist/component/FluxAnimatedColors.vue.d.ts +2 -3
- package/dist/component/FluxAspectRatio.vue.d.ts +6 -13
- package/dist/component/FluxAvatar.vue.d.ts +2 -1
- package/dist/component/FluxBadge.vue.d.ts +2 -1
- package/dist/component/FluxBadgeStack.vue.d.ts +6 -13
- package/dist/component/FluxBorderShine.vue.d.ts +3 -2
- package/dist/component/FluxBoxedIcon.vue.d.ts +2 -1
- package/dist/component/FluxButton.vue.d.ts +5 -4
- package/dist/component/FluxButtonGroup.vue.d.ts +6 -13
- package/dist/component/FluxButtonStack.vue.d.ts +6 -13
- package/dist/component/FluxCalendar.vue.d.ts +7 -14
- package/dist/component/FluxCalendarItem.vue.d.ts +7 -14
- package/dist/component/FluxCheckbox.vue.d.ts +6 -6
- package/dist/component/FluxChip.vue.d.ts +2 -1
- package/dist/component/FluxClickablePane.vue.d.ts +7 -15
- package/dist/component/FluxColorPicker.vue.d.ts +6 -4
- package/dist/component/FluxColorSelect.vue.d.ts +6 -4
- package/dist/component/FluxCommandPalette.vue.d.ts +5 -38
- package/dist/component/FluxCommandPaletteGroup.vue.d.ts +2 -1
- package/dist/component/FluxCommandPaletteItem.vue.d.ts +3 -2
- package/dist/component/FluxComment.vue.d.ts +6 -13
- package/dist/component/FluxConfirm.vue.d.ts +2 -1
- package/dist/component/FluxContainer.vue.d.ts +6 -13
- package/dist/component/FluxDataTable.vue.d.ts +20 -50
- package/dist/component/FluxDatePicker.vue.d.ts +6 -4
- package/dist/component/FluxDestructiveButton.vue.d.ts +5 -10
- package/dist/component/FluxDisabled.vue.d.ts +7 -11
- package/dist/component/FluxDivider.vue.d.ts +6 -13
- package/dist/component/FluxDotPattern.vue.d.ts +2 -3
- package/dist/component/FluxDropZone.vue.d.ts +21 -46
- package/dist/component/FluxDynamicView.vue.d.ts +2 -1
- package/dist/component/FluxExpandable.vue.d.ts +24 -26
- package/dist/component/FluxExpandableGroup.vue.d.ts +6 -13
- package/dist/component/FluxFader.vue.d.ts +11 -26
- package/dist/component/FluxFaderItem.vue.d.ts +6 -13
- package/dist/component/FluxFilter.vue.d.ts +9 -16
- package/dist/component/FluxFilterBar.vue.d.ts +9 -15
- package/dist/component/FluxFilterBase.vue.d.ts +16 -30
- package/dist/component/FluxFilterDate.vue.d.ts +2 -1
- package/dist/component/FluxFilterDateRange.vue.d.ts +2 -1
- package/dist/component/FluxFilterOption.vue.d.ts +6 -4
- package/dist/component/FluxFilterOptionAsync.vue.d.ts +6 -4
- package/dist/component/FluxFilterOptions.vue.d.ts +6 -4
- package/dist/component/FluxFilterOptionsAsync.vue.d.ts +6 -4
- package/dist/component/FluxFilterRange.vue.d.ts +2 -1
- package/dist/component/FluxFilterWindow.vue.d.ts +7 -143
- package/dist/component/FluxFlex.vue.d.ts +6 -13
- package/dist/component/FluxFlexItem.vue.d.ts +6 -13
- package/dist/component/FluxFlickeringGrid.vue.d.ts +2 -3
- package/dist/component/FluxFlyout.vue.d.ts +21 -161
- package/dist/component/FluxFocalPointEditor.vue.d.ts +13 -19
- package/dist/component/FluxFocalPointImage.vue.d.ts +2 -1
- package/dist/component/FluxForm.vue.d.ts +7 -14
- package/dist/component/FluxFormColumn.vue.d.ts +6 -13
- package/dist/component/FluxFormDateInput.vue.d.ts +8 -158
- package/dist/component/FluxFormDateRangeInput.vue.d.ts +8 -158
- package/dist/component/FluxFormDateTimeInput.vue.d.ts +8 -158
- package/dist/component/FluxFormField.vue.d.ts +24 -49
- package/dist/component/FluxFormFieldAddition.vue.d.ts +7 -11
- package/dist/component/FluxFormGrid.vue.d.ts +6 -13
- package/dist/component/FluxFormInput.vue.d.ts +6 -6
- package/dist/component/FluxFormInputAddition.vue.d.ts +6 -13
- package/dist/component/FluxFormInputGroup.vue.d.ts +6 -13
- package/dist/component/FluxFormPinInput.vue.d.ts +6 -6
- package/dist/component/FluxFormRangeSlider.vue.d.ts +7 -78
- package/dist/component/FluxFormRow.vue.d.ts +6 -13
- package/dist/component/FluxFormSection.vue.d.ts +6 -13
- package/dist/component/FluxFormSelect.vue.d.ts +5 -3
- package/dist/component/FluxFormSelectAsync.vue.d.ts +5 -3
- package/dist/component/FluxFormSlider.vue.d.ts +7 -42
- package/dist/component/FluxFormTextArea.vue.d.ts +6 -6
- package/dist/component/FluxFormTimeZonePicker.vue.d.ts +5 -3
- package/dist/component/FluxFormTreeViewSelect.vue.d.ts +8 -176
- package/dist/component/FluxGallery.vue.d.ts +7 -14
- package/dist/component/FluxGalleryItem.vue.d.ts +3 -2
- package/dist/component/FluxGrid.vue.d.ts +6 -13
- package/dist/component/FluxGridColumn.vue.d.ts +6 -13
- package/dist/component/FluxGridPattern.vue.d.ts +2 -3
- package/dist/component/FluxIcon.vue.d.ts +2 -1
- package/dist/component/FluxInfo.vue.d.ts +6 -13
- package/dist/component/FluxInfoStack.vue.d.ts +6 -13
- package/dist/component/FluxItem.vue.d.ts +7 -11
- package/dist/component/FluxItemActions.vue.d.ts +7 -11
- package/dist/component/FluxItemContent.vue.d.ts +7 -11
- package/dist/component/FluxItemMedia.vue.d.ts +7 -11
- package/dist/component/FluxItemStack.vue.d.ts +7 -11
- package/dist/component/FluxKanban.vue.d.ts +7 -18
- package/dist/component/FluxKanbanColumn.vue.d.ts +10 -27
- package/dist/component/FluxKanbanItem.vue.d.ts +6 -17
- package/dist/component/FluxLayerPane.vue.d.ts +6 -13
- package/dist/component/FluxLayerPaneSecondary.vue.d.ts +6 -13
- package/dist/component/FluxLegend.vue.d.ts +2 -1
- package/dist/component/FluxLink.vue.d.ts +5 -10
- package/dist/component/FluxMenu.vue.d.ts +6 -17
- package/dist/component/FluxMenuCollapsible.vue.d.ts +9 -17
- package/dist/component/FluxMenuGroup.vue.d.ts +6 -13
- package/dist/component/FluxMenuItem.vue.d.ts +8 -16
- package/dist/component/FluxMenuOptions.vue.d.ts +10 -16
- package/dist/component/FluxMenuSubHeader.vue.d.ts +2 -1
- package/dist/component/FluxMenuTitle.vue.d.ts +2 -1
- package/dist/component/FluxNotice.vue.d.ts +8 -16
- package/dist/component/FluxNoticeStack.vue.d.ts +6 -13
- package/dist/component/FluxOverflowBar.vue.d.ts +10 -29
- package/dist/component/FluxOverlay.vue.d.ts +3 -2
- package/dist/component/FluxOverlayProvider.vue.d.ts +2 -1
- package/dist/component/FluxPagination.vue.d.ts +3 -2
- package/dist/component/FluxPaginationBar.vue.d.ts +3 -2
- package/dist/component/FluxPaginationButton.vue.d.ts +5 -10
- package/dist/component/FluxPane.vue.d.ts +7 -15
- package/dist/component/FluxPaneBody.vue.d.ts +6 -13
- package/dist/component/FluxPaneFooter.vue.d.ts +6 -13
- package/dist/component/FluxPaneGroup.vue.d.ts +6 -13
- package/dist/component/FluxPaneHeader.vue.d.ts +7 -15
- package/dist/component/FluxPaneIllustration.vue.d.ts +7 -15
- package/dist/component/FluxPaneMedia.vue.d.ts +2 -1
- package/dist/component/FluxPercentageBar.vue.d.ts +2 -1
- package/dist/component/FluxPersona.vue.d.ts +3 -2
- package/dist/component/FluxPlaceholder.vue.d.ts +8 -12
- package/dist/component/FluxPressable.vue.d.ts +6 -13
- package/dist/component/FluxPrimaryButton.vue.d.ts +5 -10
- package/dist/component/FluxPrimaryLinkButton.vue.d.ts +5 -10
- package/dist/component/FluxProgressBar.vue.d.ts +2 -1
- package/dist/component/FluxPrompt.vue.d.ts +4 -59
- package/dist/component/FluxPublishButton.vue.d.ts +2 -1
- package/dist/component/FluxQuantitySelector.vue.d.ts +6 -6
- package/dist/component/FluxRemove.vue.d.ts +3 -2
- package/dist/component/FluxRoot.vue.d.ts +6 -13
- package/dist/component/FluxScroller.vue.d.ts +6 -17
- package/dist/component/FluxSecondaryButton.vue.d.ts +5 -10
- package/dist/component/FluxSecondaryLinkButton.vue.d.ts +5 -10
- package/dist/component/FluxSegmentedControl.vue.d.ts +6 -7
- package/dist/component/FluxSegmentedView.vue.d.ts +3 -2
- package/dist/component/FluxSeparator.vue.d.ts +2 -1
- package/dist/component/FluxSlideOver.vue.d.ts +3 -2
- package/dist/component/FluxSnackbar.vue.d.ts +2 -1
- package/dist/component/FluxSnackbarProvider.vue.d.ts +2 -1
- package/dist/component/FluxSpacer.vue.d.ts +2 -1
- package/dist/component/FluxSpacing.vue.d.ts +2 -1
- package/dist/component/FluxSpinner.vue.d.ts +2 -1
- package/dist/component/FluxSplitButton.vue.d.ts +17 -35
- package/dist/component/FluxSplitView.vue.d.ts +6 -17
- package/dist/component/FluxSplitViewPane.vue.d.ts +6 -13
- package/dist/component/FluxStatistic.vue.d.ts +2 -1
- package/dist/component/FluxStepper.vue.d.ts +22 -42
- package/dist/component/FluxStepperStep.vue.d.ts +6 -13
- package/dist/component/FluxStepperSteps.vue.d.ts +3 -2
- package/dist/component/FluxSticky.vue.d.ts +8 -21
- package/dist/component/FluxTab.vue.d.ts +6 -13
- package/dist/component/FluxTabBar.vue.d.ts +6 -17
- package/dist/component/FluxTabBarItem.vue.d.ts +4 -81
- package/dist/component/FluxTable.vue.d.ts +11 -23
- package/dist/component/FluxTableActions.vue.d.ts +6 -13
- package/dist/component/FluxTableBar.vue.d.ts +6 -13
- package/dist/component/FluxTableCell.vue.d.ts +7 -15
- package/dist/component/FluxTableHeader.vue.d.ts +7 -14
- package/dist/component/FluxTableRow.vue.d.ts +6 -13
- package/dist/component/FluxTabs.vue.d.ts +28 -52
- package/dist/component/FluxTag.vue.d.ts +2 -1
- package/dist/component/FluxTagStack.vue.d.ts +6 -13
- package/dist/component/FluxTicks.vue.d.ts +2 -1
- package/dist/component/FluxTimeline.vue.d.ts +6 -13
- package/dist/component/FluxTimelineItem.vue.d.ts +6 -13
- package/dist/component/FluxToggle.vue.d.ts +6 -4
- package/dist/component/FluxToolbar.vue.d.ts +6 -13
- package/dist/component/FluxToolbarGroup.vue.d.ts +6 -13
- package/dist/component/FluxTooltip.vue.d.ts +3 -2
- package/dist/component/FluxTooltipProvider.vue.d.ts +2 -1
- package/dist/component/FluxTreeView.vue.d.ts +3 -4
- package/dist/component/FluxWindow.vue.d.ts +14 -28
- package/dist/component/calendar/FluxCalendarItemDisplay.vue.d.ts +2 -3
- package/dist/component/calendar/FluxCalendarMonthView.vue.d.ts +2 -1
- package/dist/component/calendar/FluxCalendarTimeGridView.vue.d.ts +3 -2
- package/dist/component/primitive/Anchor.vue.d.ts +6 -13
- package/dist/component/primitive/AnchorPopup.vue.d.ts +6 -17
- package/dist/component/primitive/CoordinatePicker.vue.d.ts +6 -6
- package/dist/component/primitive/CoordinatePickerThumb.vue.d.ts +3 -2
- package/dist/component/primitive/DialogLayout.vue.d.ts +7 -15
- package/dist/component/primitive/FilterBadge.vue.d.ts +2 -1
- package/dist/component/primitive/FilterItem.vue.d.ts +2 -1
- package/dist/component/primitive/FilterOptionBase.vue.d.ts +6 -4
- package/dist/component/primitive/SelectBase.vue.d.ts +8 -282
- package/dist/component/primitive/SliderBase.vue.d.ts +8 -16
- package/dist/component/primitive/SliderThumb.vue.d.ts +3 -2
- package/dist/component/primitive/SliderTrack.vue.d.ts +7 -11
- package/dist/component/primitive/TreeNodeRenderer.vue.d.ts +15 -14
- package/dist/index.css +15 -7
- package/dist/index.js +134 -108
- package/dist/index.js.map +1 -1
- package/dist/transition/FluxAutoHeightTransition.vue.d.ts +6 -13
- package/dist/transition/FluxAutoWidthTransition.vue.d.ts +6 -13
- package/dist/transition/FluxBreakthroughTransition.vue.d.ts +6 -13
- package/dist/transition/FluxFadeTransition.vue.d.ts +6 -13
- package/dist/transition/FluxOverlayTransition.vue.d.ts +6 -13
- package/dist/transition/FluxRouteTransition.vue.d.ts +6 -13
- package/dist/transition/FluxSlideOverTransition.vue.d.ts +6 -13
- package/dist/transition/FluxTooltipTransition.vue.d.ts +6 -13
- package/dist/transition/FluxVerticalWindowTransition.vue.d.ts +6 -13
- package/dist/transition/FluxWindowTransition.vue.d.ts +6 -13
- package/dist/vite.js.map +1 -1
- package/package.json +8 -8
- package/src/component/FluxDataTable.vue +12 -3
- package/src/component/FluxTable.vue +13 -3
- package/src/css/component/Form.module.scss +17 -3
- package/src/util/createDialogRenderer.ts +0 -1
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
slots: Readonly<{
|
|
5
|
-
default(): VNode[];
|
|
6
|
-
}> & {
|
|
7
|
-
default(): VNode[];
|
|
8
|
-
};
|
|
9
|
-
refs: {};
|
|
10
|
-
rootEl: any;
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
default(): VNode[];
|
|
11
4
|
};
|
|
12
|
-
|
|
13
|
-
declare const
|
|
14
|
-
declare const _default:
|
|
5
|
+
declare const __VLS_base: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
15
8
|
export default _default;
|
|
16
|
-
type
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
10
|
new (): {
|
|
18
11
|
$slots: S;
|
|
19
12
|
};
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
slots: Readonly<{
|
|
5
|
-
default(): VNode[];
|
|
6
|
-
}> & {
|
|
7
|
-
default(): VNode[];
|
|
8
|
-
};
|
|
9
|
-
refs: {};
|
|
10
|
-
rootEl: any;
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
default(): VNode[];
|
|
11
4
|
};
|
|
12
|
-
|
|
13
|
-
declare const
|
|
14
|
-
declare const _default:
|
|
5
|
+
declare const __VLS_base: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
15
8
|
export default _default;
|
|
16
|
-
type
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
10
|
new (): {
|
|
18
11
|
$slots: S;
|
|
19
12
|
};
|
|
@@ -3,21 +3,14 @@ type __VLS_Props = {
|
|
|
3
3
|
readonly isBack?: boolean;
|
|
4
4
|
readonly mode?: 'in-out' | 'out-in';
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
slots: Readonly<{
|
|
9
|
-
default(): VNode[];
|
|
10
|
-
}> & {
|
|
11
|
-
default(): VNode[];
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: any;
|
|
6
|
+
type __VLS_Slots = {
|
|
7
|
+
default(): VNode[];
|
|
15
8
|
};
|
|
16
|
-
|
|
17
|
-
declare const
|
|
18
|
-
declare const _default:
|
|
9
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
19
12
|
export default _default;
|
|
20
|
-
type
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
14
|
new (): {
|
|
22
15
|
$slots: S;
|
|
23
16
|
};
|
|
@@ -2,21 +2,14 @@ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentPr
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
readonly mode?: 'in-out' | 'out-in';
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
slots: Readonly<{
|
|
8
|
-
default(): VNode[];
|
|
9
|
-
}> & {
|
|
10
|
-
default(): VNode[];
|
|
11
|
-
};
|
|
12
|
-
refs: {};
|
|
13
|
-
rootEl: any;
|
|
5
|
+
type __VLS_Slots = {
|
|
6
|
+
default(): VNode[];
|
|
14
7
|
};
|
|
15
|
-
|
|
16
|
-
declare const
|
|
17
|
-
declare const _default:
|
|
8
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
18
11
|
export default _default;
|
|
19
|
-
type
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
13
|
new (): {
|
|
21
14
|
$slots: S;
|
|
22
15
|
};
|
|
@@ -2,21 +2,14 @@ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentPr
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
readonly mode?: 'in-out' | 'out-in';
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
slots: Readonly<{
|
|
8
|
-
default(): VNode[];
|
|
9
|
-
}> & {
|
|
10
|
-
default(): VNode[];
|
|
11
|
-
};
|
|
12
|
-
refs: {};
|
|
13
|
-
rootEl: any;
|
|
5
|
+
type __VLS_Slots = {
|
|
6
|
+
default(): VNode[];
|
|
14
7
|
};
|
|
15
|
-
|
|
16
|
-
declare const
|
|
17
|
-
declare const _default:
|
|
8
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
18
11
|
export default _default;
|
|
19
|
-
type
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
13
|
new (): {
|
|
21
14
|
$slots: S;
|
|
22
15
|
};
|
|
@@ -3,21 +3,14 @@ type __VLS_Props = {
|
|
|
3
3
|
readonly isBack?: boolean;
|
|
4
4
|
readonly mode?: 'in-out' | 'out-in';
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
slots: Readonly<{
|
|
9
|
-
default(): VNode[];
|
|
10
|
-
}> & {
|
|
11
|
-
default(): VNode[];
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: any;
|
|
6
|
+
type __VLS_Slots = {
|
|
7
|
+
default(): VNode[];
|
|
15
8
|
};
|
|
16
|
-
|
|
17
|
-
declare const
|
|
18
|
-
declare const _default:
|
|
9
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
19
12
|
export default _default;
|
|
20
|
-
type
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
14
|
new (): {
|
|
22
15
|
$slots: S;
|
|
23
16
|
};
|
|
@@ -2,21 +2,14 @@ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentPr
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
readonly mode?: 'in-out' | 'out-in';
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
slots: Readonly<{
|
|
8
|
-
default(): VNode[];
|
|
9
|
-
}> & {
|
|
10
|
-
default(): VNode[];
|
|
11
|
-
};
|
|
12
|
-
refs: {};
|
|
13
|
-
rootEl: any;
|
|
5
|
+
type __VLS_Slots = {
|
|
6
|
+
default(): VNode[];
|
|
14
7
|
};
|
|
15
|
-
|
|
16
|
-
declare const
|
|
17
|
-
declare const _default:
|
|
8
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
18
11
|
export default _default;
|
|
19
|
-
type
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
13
|
new (): {
|
|
21
14
|
$slots: S;
|
|
22
15
|
};
|
|
@@ -2,21 +2,14 @@ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentPr
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
readonly mode?: 'in-out' | 'out-in';
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
slots: Readonly<{
|
|
8
|
-
default(): VNode[];
|
|
9
|
-
}> & {
|
|
10
|
-
default(): VNode[];
|
|
11
|
-
};
|
|
12
|
-
refs: {};
|
|
13
|
-
rootEl: any;
|
|
5
|
+
type __VLS_Slots = {
|
|
6
|
+
default(): VNode[];
|
|
14
7
|
};
|
|
15
|
-
|
|
16
|
-
declare const
|
|
17
|
-
declare const _default:
|
|
8
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
18
11
|
export default _default;
|
|
19
|
-
type
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
13
|
new (): {
|
|
21
14
|
$slots: S;
|
|
22
15
|
};
|
|
@@ -3,21 +3,14 @@ type __VLS_Props = {
|
|
|
3
3
|
readonly isBack?: boolean;
|
|
4
4
|
readonly mode?: 'in-out' | 'out-in';
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
slots: Readonly<{
|
|
9
|
-
default(): VNode[];
|
|
10
|
-
}> & {
|
|
11
|
-
default(): VNode[];
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: any;
|
|
6
|
+
type __VLS_Slots = {
|
|
7
|
+
default(): VNode[];
|
|
15
8
|
};
|
|
16
|
-
|
|
17
|
-
declare const
|
|
18
|
-
declare const _default:
|
|
9
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
19
12
|
export default _default;
|
|
20
|
-
type
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
14
|
new (): {
|
|
22
15
|
$slots: S;
|
|
23
16
|
};
|
|
@@ -3,21 +3,14 @@ type __VLS_Props = {
|
|
|
3
3
|
readonly isBack?: boolean;
|
|
4
4
|
readonly mode?: 'in-out' | 'out-in';
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
slots: Readonly<{
|
|
9
|
-
default(): VNode[];
|
|
10
|
-
}> & {
|
|
11
|
-
default(): VNode[];
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: any;
|
|
6
|
+
type __VLS_Slots = {
|
|
7
|
+
default(): VNode[];
|
|
15
8
|
};
|
|
16
|
-
|
|
17
|
-
declare const
|
|
18
|
-
declare const _default:
|
|
9
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
19
12
|
export default _default;
|
|
20
|
-
type
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
14
|
new (): {
|
|
22
15
|
$slots: S;
|
|
23
16
|
};
|
package/dist/vite.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.js","names":[],"sources":["../src/vite/defineFilterMacro.ts"],"sourcesContent":["import type { Plugin } from 'vite';\n\nconst SCRIPT_SETUP_REGEX = /<script\\b([^>]*)\\bsetup\\b([^>]*)>([\\s\\S]*?)<\\/script>/gi;\n\nfunction defineFilterMacro(): Plugin {\n return {\n name: '@flux-ui/components/define-filter-macro',\n enforce: 'pre',\n\n transform(code, id) {\n if (!id.endsWith('.vue')) {\n return;\n }\n\n if (!code.includes('defineFilter')) {\n return;\n }\n\n let transformed = false;\n\n const newCode = code.replace(SCRIPT_SETUP_REGEX, (match, before, after, content) => {\n if (!content.includes('defineFilter')) {\n return match;\n }\n\n if (content.includes('__filterDefinitionFactory')) {\n return match;\n }\n\n if (containsTopLevelCall(content, 'defineOptions')) {\n return match;\n }\n\n const wrapped = wrapDefineFilter(content);\n\n if (wrapped === content) {\n return match;\n }\n\n transformed = true;\n return `<script${before}setup${after}>${wrapped}</script>`;\n });\n\n if (!transformed) {\n return;\n }\n\n return {\n code: newCode,\n map: null\n };\n }\n };\n}\n\nexport default defineFilterMacro;\n\nfunction wrapDefineFilter(content: string): string {\n const range = findTopLevelCall(content, 'defineFilter');\n\n if (!range) {\n return content;\n }\n\n const callExpression = content.slice(range.callStart, range.callEnd);\n const replacement = `defineOptions({\\n __filterDefinitionFactory: ${callExpression}\\n})`;\n\n return content.slice(0, range.callStart) + replacement + content.slice(range.callEnd);\n}\n\nfunction containsTopLevelCall(content: string, name: string): boolean {\n return findTopLevelCall(content, name) !== null;\n}\n\ntype CallRange = {\n readonly callStart: number;\n readonly callEnd: number;\n};\n\nfunction findTopLevelCall(content: string, name: string): CallRange | null {\n let parenDepth = 0;\n let braceDepth = 0;\n let bracketDepth = 0;\n let inString: string | null = null;\n let inComment: 'single' | 'multi' | null = null;\n\n let i = 0;\n\n while (i < content.length) {\n const c = content[i];\n const n = content[i + 1];\n\n if (inComment === 'single') {\n if (c === '\\n') {\n inComment = null;\n }\n\n i++;\n continue;\n }\n\n if (inComment === 'multi') {\n if (c === '*' && n === '/') {\n inComment = null;\n i += 2;\n continue;\n }\n\n i++;\n continue;\n }\n\n if (inString) {\n if (c === '\\\\') {\n i += 2;\n continue;\n }\n\n if (c === inString) {\n inString = null;\n }\n\n i++;\n continue;\n }\n\n if (c === '/' && n === '/') {\n inComment = 'single';\n i += 2;\n continue;\n }\n\n if (c === '/' && n === '*') {\n inComment = 'multi';\n i += 2;\n continue;\n }\n\n if (c === '\"' || c === '\\'' || c === '`') {\n inString = c;\n i++;\n continue;\n }\n\n if (c === '(') {\n parenDepth++;\n i++;\n continue;\n }\n\n if (c === ')') {\n parenDepth--;\n i++;\n continue;\n }\n\n if (c === '{') {\n braceDepth++;\n i++;\n continue;\n }\n\n if (c === '}') {\n braceDepth--;\n i++;\n continue;\n }\n\n if (c === '[') {\n bracketDepth++;\n i++;\n continue;\n }\n\n if (c === ']') {\n bracketDepth--;\n i++;\n continue;\n }\n\n const isTopLevel = parenDepth === 0 && braceDepth === 0 && bracketDepth === 0;\n\n if (!isTopLevel || !content.startsWith(name, i)) {\n i++;\n continue;\n }\n\n const prevChar = i > 0 ? content[i - 1] : '';\n\n if (/[A-Za-z0-9_$]/.test(prevChar)) {\n i++;\n continue;\n }\n\n const afterName = i + name.length;\n const nextChar = content[afterName];\n\n if (nextChar && /[A-Za-z0-9_$]/.test(nextChar)) {\n i++;\n continue;\n }\n\n const callOpen = skipGenericAndWhitespace(content, afterName);\n\n if (callOpen === -1 || content[callOpen] !== '(') {\n i++;\n continue;\n }\n\n const callClose = matchClosingParen(content, callOpen);\n\n if (callClose === -1) {\n return null;\n }\n\n return {\n callStart: i,\n callEnd: callClose + 1\n };\n }\n\n return null;\n}\n\nfunction skipGenericAndWhitespace(content: string, start: number): number {\n let i = start;\n\n while (i < content.length && /\\s/.test(content[i])) {\n i++;\n }\n\n if (content[i] !== '<') {\n return i;\n }\n\n let depth = 1;\n i++;\n\n while (i < content.length && depth > 0) {\n const c = content[i];\n\n if (c === '<') {\n depth++;\n } else if (c === '>') {\n depth--;\n }\n\n i++;\n }\n\n while (i < content.length && /\\s/.test(content[i])) {\n i++;\n }\n\n return i;\n}\n\nfunction matchClosingParen(content: string, openIndex: number): number {\n let depth = 1;\n let inString: string | null = null;\n let inComment: 'single' | 'multi' | null = null;\n\n let i = openIndex + 1;\n\n while (i < content.length) {\n const c = content[i];\n const n = content[i + 1];\n\n if (inComment === 'single') {\n if (c === '\\n') {\n inComment = null;\n }\n\n i++;\n continue;\n }\n\n if (inComment === 'multi') {\n if (c === '*' && n === '/') {\n inComment = null;\n i += 2;\n continue;\n }\n\n i++;\n continue;\n }\n\n if (inString) {\n if (c === '\\\\') {\n i += 2;\n continue;\n }\n\n if (c === inString) {\n inString = null;\n }\n\n i++;\n continue;\n }\n\n if (c === '/' && n === '/') {\n inComment = 'single';\n i += 2;\n continue;\n }\n\n if (c === '/' && n === '*') {\n inComment = 'multi';\n i += 2;\n continue;\n }\n\n if (c === '\"' || c === '\\'' || c === '`') {\n inString = c;\n i++;\n continue;\n }\n\n if (c === '(') {\n depth++;\n } else if (c === ')') {\n depth--;\n\n if (depth === 0) {\n return i;\n }\n }\n\n i++;\n }\n\n return -1;\n}\n"],"mappings":";AAEA,IAAM,qBAAqB;AAE3B,SAAS,oBAA4B;AACjC,QAAO;EACH,MAAM;EACN,SAAS;EAET,UAAU,MAAM,IAAI;AAChB,OAAI,CAAC,GAAG,SAAS,OAAO,CACpB;AAGJ,OAAI,CAAC,KAAK,SAAS,eAAe,CAC9B;GAGJ,IAAI,cAAc;GAElB,MAAM,UAAU,KAAK,QAAQ,qBAAqB,OAAO,QAAQ,OAAO,YAAY;AAChF,QAAI,CAAC,QAAQ,SAAS,eAAe,CACjC,QAAO;AAGX,QAAI,QAAQ,SAAS,4BAA4B,CAC7C,QAAO;AAGX,QAAI,qBAAqB,SAAS,gBAAgB,CAC9C,QAAO;IAGX,MAAM,UAAU,iBAAiB,QAAQ;AAEzC,QAAI,YAAY,QACZ,QAAO;AAGX,kBAAc;AACd,WAAO,UAAU,OAAO,OAAO,MAAM,GAAG,QAAQ;KAClD;AAEF,OAAI,CAAC,YACD;AAGJ,UAAO;IACH,MAAM;IACN,KAAK;IACR;;EAER;;AAKL,SAAS,iBAAiB,SAAyB;CAC/C,MAAM,QAAQ,iBAAiB,SAAS,eAAe;AAEvD,KAAI,CAAC,MACD,QAAO;CAIX,MAAM,cAAc,mDADG,QAAQ,MAAM,MAAM,WAAW,MAAM,QACW,CAAe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,OAAI,MAAM,MAAM;AACZ,SAAK;AACL;;AAGJ,OAAI,MAAM,SACN,YAAW;AAGf;AACA;;AAGJ,MAAI,MAAM,OAAO,MAAM,KAAK;AACxB,eAAY;AACZ,QAAK;AACL;;AAGJ,MAAI,MAAM,OAAO,MAAM,KAAK;AACxB,eAAY;AACZ,QAAK;AACL;;AAGJ,MAAI,MAAM,QAAO,MAAM,OAAQ,MAAM,KAAK;AACtC,cAAW;AACX;AACA;;AAGJ,MAAI,MAAM,IACN;WACO,MAAM,KAAK;AAClB;AAEA,OAAI,UAAU,EACV,QAAO;;AAIf;;AAGJ,QAAO"}
|
|
1
|
+
{"version":3,"file":"vite.js","names":[],"sources":["../src/vite/defineFilterMacro.ts"],"sourcesContent":["import type { Plugin } from 'vite';\n\nconst SCRIPT_SETUP_REGEX = /<script\\b([^>]*)\\bsetup\\b([^>]*)>([\\s\\S]*?)<\\/script>/gi;\n\nfunction defineFilterMacro(): Plugin {\n return {\n name: '@flux-ui/components/define-filter-macro',\n enforce: 'pre',\n\n transform(code, id) {\n if (!id.endsWith('.vue')) {\n return;\n }\n\n if (!code.includes('defineFilter')) {\n return;\n }\n\n let transformed = false;\n\n const newCode = code.replace(SCRIPT_SETUP_REGEX, (match, before, after, content) => {\n if (!content.includes('defineFilter')) {\n return match;\n }\n\n if (content.includes('__filterDefinitionFactory')) {\n return match;\n }\n\n if (containsTopLevelCall(content, 'defineOptions')) {\n return match;\n }\n\n const wrapped = wrapDefineFilter(content);\n\n if (wrapped === content) {\n return match;\n }\n\n transformed = true;\n return `<script${before}setup${after}>${wrapped}</script>`;\n });\n\n if (!transformed) {\n return;\n }\n\n return {\n code: newCode,\n map: null\n };\n }\n };\n}\n\nexport default defineFilterMacro;\n\nfunction wrapDefineFilter(content: string): string {\n const range = findTopLevelCall(content, 'defineFilter');\n\n if (!range) {\n return content;\n }\n\n const callExpression = content.slice(range.callStart, range.callEnd);\n const replacement = `defineOptions({\\n __filterDefinitionFactory: ${callExpression}\\n})`;\n\n return content.slice(0, range.callStart) + replacement + content.slice(range.callEnd);\n}\n\nfunction containsTopLevelCall(content: string, name: string): boolean {\n return findTopLevelCall(content, name) !== null;\n}\n\ntype CallRange = {\n readonly callStart: number;\n readonly callEnd: number;\n};\n\nfunction findTopLevelCall(content: string, name: string): CallRange | null {\n let parenDepth = 0;\n let braceDepth = 0;\n let bracketDepth = 0;\n let inString: string | null = null;\n let inComment: 'single' | 'multi' | null = null;\n\n let i = 0;\n\n while (i < content.length) {\n const c = content[i];\n const n = content[i + 1];\n\n if (inComment === 'single') {\n if (c === '\\n') {\n inComment = null;\n }\n\n i++;\n continue;\n }\n\n if (inComment === 'multi') {\n if (c === '*' && n === '/') {\n inComment = null;\n i += 2;\n continue;\n }\n\n i++;\n continue;\n }\n\n if (inString) {\n if (c === '\\\\') {\n i += 2;\n continue;\n }\n\n if (c === inString) {\n inString = null;\n }\n\n i++;\n continue;\n }\n\n if (c === '/' && n === '/') {\n inComment = 'single';\n i += 2;\n continue;\n }\n\n if (c === '/' && n === '*') {\n inComment = 'multi';\n i += 2;\n continue;\n }\n\n if (c === '\"' || c === '\\'' || c === '`') {\n inString = c;\n i++;\n continue;\n }\n\n if (c === '(') {\n parenDepth++;\n i++;\n continue;\n }\n\n if (c === ')') {\n parenDepth--;\n i++;\n continue;\n }\n\n if (c === '{') {\n braceDepth++;\n i++;\n continue;\n }\n\n if (c === '}') {\n braceDepth--;\n i++;\n continue;\n }\n\n if (c === '[') {\n bracketDepth++;\n i++;\n continue;\n }\n\n if (c === ']') {\n bracketDepth--;\n i++;\n continue;\n }\n\n const isTopLevel = parenDepth === 0 && braceDepth === 0 && bracketDepth === 0;\n\n if (!isTopLevel || !content.startsWith(name, i)) {\n i++;\n continue;\n }\n\n const prevChar = i > 0 ? content[i - 1] : '';\n\n if (/[A-Za-z0-9_$]/.test(prevChar)) {\n i++;\n continue;\n }\n\n const afterName = i + name.length;\n const nextChar = content[afterName];\n\n if (nextChar && /[A-Za-z0-9_$]/.test(nextChar)) {\n i++;\n continue;\n }\n\n const callOpen = skipGenericAndWhitespace(content, afterName);\n\n if (callOpen === -1 || content[callOpen] !== '(') {\n i++;\n continue;\n }\n\n const callClose = matchClosingParen(content, callOpen);\n\n if (callClose === -1) {\n return null;\n }\n\n return {\n callStart: i,\n callEnd: callClose + 1\n };\n }\n\n return null;\n}\n\nfunction skipGenericAndWhitespace(content: string, start: number): number {\n let i = start;\n\n while (i < content.length && /\\s/.test(content[i])) {\n i++;\n }\n\n if (content[i] !== '<') {\n return i;\n }\n\n let depth = 1;\n i++;\n\n while (i < content.length && depth > 0) {\n const c = content[i];\n\n if (c === '<') {\n depth++;\n } else if (c === '>') {\n depth--;\n }\n\n i++;\n }\n\n while (i < content.length && /\\s/.test(content[i])) {\n i++;\n }\n\n return i;\n}\n\nfunction matchClosingParen(content: string, openIndex: number): number {\n let depth = 1;\n let inString: string | null = null;\n let inComment: 'single' | 'multi' | null = null;\n\n let i = openIndex + 1;\n\n while (i < content.length) {\n const c = content[i];\n const n = content[i + 1];\n\n if (inComment === 'single') {\n if (c === '\\n') {\n inComment = null;\n }\n\n i++;\n continue;\n }\n\n if (inComment === 'multi') {\n if (c === '*' && n === '/') {\n inComment = null;\n i += 2;\n continue;\n }\n\n i++;\n continue;\n }\n\n if (inString) {\n if (c === '\\\\') {\n i += 2;\n continue;\n }\n\n if (c === inString) {\n inString = null;\n }\n\n i++;\n continue;\n }\n\n if (c === '/' && n === '/') {\n inComment = 'single';\n i += 2;\n continue;\n }\n\n if (c === '/' && n === '*') {\n inComment = 'multi';\n i += 2;\n continue;\n }\n\n if (c === '\"' || c === '\\'' || c === '`') {\n inString = c;\n i++;\n continue;\n }\n\n if (c === '(') {\n depth++;\n } else if (c === ')') {\n depth--;\n\n if (depth === 0) {\n return i;\n }\n }\n\n i++;\n }\n\n return -1;\n}\n"],"mappings":";AAEA,IAAM,qBAAqB;AAE3B,SAAS,oBAA4B;CACjC,OAAO;EACH,MAAM;EACN,SAAS;EAET,UA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-next.
|
|
4
|
+
"version": "3.0.0-next.67",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/basmilius",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"**/dist/index.css"
|
|
56
56
|
],
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@basmilius/common": "^3.
|
|
59
|
-
"@basmilius/utils": "^3.
|
|
60
|
-
"@flux-ui/internals": "3.0.0-next.
|
|
61
|
-
"@flux-ui/types": "3.0.0-next.
|
|
58
|
+
"@basmilius/common": "^3.30.0",
|
|
59
|
+
"@basmilius/utils": "^3.30.0",
|
|
60
|
+
"@flux-ui/internals": "3.0.0-next.67",
|
|
61
|
+
"@flux-ui/types": "3.0.0-next.67",
|
|
62
62
|
"@fortawesome/fontawesome-common-types": "^7.2.0",
|
|
63
63
|
"clsx": "^2.1.1",
|
|
64
64
|
"imask": "^7.6.1",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"luxon": "^3.7.2",
|
|
69
|
-
"vue": "^3.6.0-beta.
|
|
69
|
+
"vue": "^3.6.0-beta.11"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@basmilius/vite-preset": "^3.
|
|
72
|
+
"@basmilius/vite-preset": "^3.30.0",
|
|
73
73
|
"@types/lodash-es": "^4.17.12",
|
|
74
74
|
"@types/luxon": "^3.7.1",
|
|
75
75
|
"@types/node": "^25.6.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@vue/tsconfig": "^0.9.1",
|
|
78
78
|
"sass-embedded": "^1.99.0",
|
|
79
79
|
"typescript": "^6.0.3",
|
|
80
|
-
"vite": "^8.0.
|
|
80
|
+
"vite": "^8.0.11",
|
|
81
81
|
"vue-tsc": "^3.2.8"
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FluxTable
|
|
3
|
+
ref="table"
|
|
3
4
|
:fill-columns="fillColumns"
|
|
4
5
|
:is-bordered="isBordered"
|
|
5
6
|
:is-hoverable="isHoverable"
|
|
@@ -65,7 +66,7 @@
|
|
|
65
66
|
<FluxTableRow
|
|
66
67
|
v-for="(item, index) of limitedItems"
|
|
67
68
|
:key="uniqueKey ? item[uniqueKey] : index"
|
|
68
|
-
:class="selectionMode && $style.isSelectableRow"
|
|
69
|
+
:class="selectionMode && !treeDisabled && $style.isSelectableRow"
|
|
69
70
|
:is-selected="selectionMode ? isItemSelected(item) : false"
|
|
70
71
|
@click="onRowClick(item, $event)">
|
|
71
72
|
<FluxTableCell
|
|
@@ -90,7 +91,8 @@
|
|
|
90
91
|
lang="ts"
|
|
91
92
|
setup
|
|
92
93
|
generic="T extends Record<string, any>">
|
|
93
|
-
import { computed, unref, type VNode } from 'vue';
|
|
94
|
+
import { computed, unref, useTemplateRef, type VNode, watch } from 'vue';
|
|
95
|
+
import { useDisabledInjection } from '~flux/components/composable';
|
|
94
96
|
import FluxCheckbox from './FluxCheckbox.vue';
|
|
95
97
|
import FluxPaginationBar from './FluxPaginationBar.vue';
|
|
96
98
|
import FluxTable from './FluxTable.vue';
|
|
@@ -179,6 +181,9 @@
|
|
|
179
181
|
colgroups(): VNode;
|
|
180
182
|
}>();
|
|
181
183
|
|
|
184
|
+
const table = useTemplateRef('table');
|
|
185
|
+
const treeDisabled = useDisabledInjection();
|
|
186
|
+
|
|
182
187
|
const limitedItems = computed(() => items.slice(0, perPage));
|
|
183
188
|
|
|
184
189
|
const currentPageIds = computed<SelectionId[]>(() => {
|
|
@@ -239,7 +244,7 @@
|
|
|
239
244
|
}
|
|
240
245
|
|
|
241
246
|
function onRowClick(item: T, event: MouseEvent): void {
|
|
242
|
-
if (!selectionMode) {
|
|
247
|
+
if (!selectionMode || unref(treeDisabled)) {
|
|
243
248
|
return;
|
|
244
249
|
}
|
|
245
250
|
|
|
@@ -292,4 +297,8 @@
|
|
|
292
297
|
if (import.meta.env.DEV && selectionMode && !uniqueKey) {
|
|
293
298
|
console.warn('[FluxDataTable] `uniqueKey` is required when `selectionMode` is set, otherwise rows cannot be tracked across renders.');
|
|
294
299
|
}
|
|
300
|
+
|
|
301
|
+
watch(() => items, () => {
|
|
302
|
+
unref(table)?.$el.scrollTo(0, 0);
|
|
303
|
+
});
|
|
295
304
|
</script>
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
ref="base"
|
|
4
|
+
:class="[
|
|
5
|
+
$style.table,
|
|
6
|
+
isBordered && $style.isBordered
|
|
7
|
+
]">
|
|
3
8
|
<table :class="$style.tableBase">
|
|
4
9
|
<slot name="colgroups"/>
|
|
5
10
|
|
|
@@ -30,7 +35,8 @@
|
|
|
30
35
|
|
|
31
36
|
<div
|
|
32
37
|
v-if="isLoading"
|
|
33
|
-
:class="$style.tableLoader"
|
|
38
|
+
:class="$style.tableLoader"
|
|
39
|
+
:style="{transform: `translate(${x}px, ${y}px)`}">
|
|
34
40
|
<FluxSpinner/>
|
|
35
41
|
</div>
|
|
36
42
|
|
|
@@ -45,7 +51,8 @@
|
|
|
45
51
|
<script
|
|
46
52
|
lang="ts"
|
|
47
53
|
setup>
|
|
48
|
-
import {
|
|
54
|
+
import { useScrollPosition } from '@flux-ui/internals';
|
|
55
|
+
import { provide, useTemplateRef, type VNode } from 'vue';
|
|
49
56
|
import { FluxTableInjectionKey } from '~flux/components/data';
|
|
50
57
|
import FluxPaneBody from './FluxPaneBody.vue';
|
|
51
58
|
import FluxSpinner from './FluxSpinner.vue';
|
|
@@ -79,6 +86,9 @@
|
|
|
79
86
|
pagination?(): VNode;
|
|
80
87
|
}>();
|
|
81
88
|
|
|
89
|
+
const base = useTemplateRef('base');
|
|
90
|
+
const {x, y} = useScrollPosition(base);
|
|
91
|
+
|
|
82
92
|
provide(FluxTableInjectionKey, {
|
|
83
93
|
isBordered,
|
|
84
94
|
isHoverable,
|
|
@@ -651,7 +651,7 @@
|
|
|
651
651
|
transition-property: opacity;
|
|
652
652
|
|
|
653
653
|
:is(path) {
|
|
654
|
-
stroke:
|
|
654
|
+
stroke: currentColor;
|
|
655
655
|
stroke-width: 54px;
|
|
656
656
|
}
|
|
657
657
|
}
|
|
@@ -684,6 +684,16 @@
|
|
|
684
684
|
&:focus-visible + .checkboxElement {
|
|
685
685
|
@include mixin.focus-outline-visible(2px);
|
|
686
686
|
}
|
|
687
|
+
|
|
688
|
+
&:disabled {
|
|
689
|
+
cursor: not-allowed;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
&:disabled + .checkboxElement {
|
|
693
|
+
background: var(--gray-100);
|
|
694
|
+
border-color: var(--gray-200);
|
|
695
|
+
color: var(--foreground-secondary);
|
|
696
|
+
}
|
|
687
697
|
}
|
|
688
698
|
|
|
689
699
|
.quantitySelector {
|
|
@@ -813,6 +823,12 @@
|
|
|
813
823
|
border-radius: var(--radius-full);
|
|
814
824
|
contain: paint;
|
|
815
825
|
|
|
826
|
+
@include mixin.focus-outline;
|
|
827
|
+
|
|
828
|
+
&:has(.toggleInput:focus-visible) {
|
|
829
|
+
@include mixin.focus-outline-visible(2px);
|
|
830
|
+
}
|
|
831
|
+
|
|
816
832
|
&.isChecked {
|
|
817
833
|
border-color: transparent;
|
|
818
834
|
|
|
@@ -890,8 +906,6 @@
|
|
|
890
906
|
cursor: pointer;
|
|
891
907
|
outline: 0;
|
|
892
908
|
|
|
893
|
-
@include mixin.focus-ring(2px);
|
|
894
|
-
|
|
895
909
|
&::after {
|
|
896
910
|
position: absolute;
|
|
897
911
|
display: block;
|