vuetify 3.4.0-beta.0 → 3.4.0
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/json/attributes.json +1980 -2004
- package/dist/json/importMap.json +110 -110
- package/dist/json/tags.json +1 -7
- package/dist/json/web-types.json +3767 -3807
- package/dist/vuetify-labs.css +1045 -1032
- package/dist/vuetify-labs.d.ts +227 -305
- package/dist/vuetify-labs.esm.js +115 -87
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +115 -87
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +546 -533
- package/dist/vuetify.d.ts +260 -338
- package/dist/vuetify.esm.js +115 -87
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +115 -87
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +963 -961
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/index.d.mts +1 -1
- package/lib/components/VApp/index.d.mts +1 -1
- package/lib/components/VAppBar/VAppBar.mjs +1 -1
- package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
- package/lib/components/VAppBar/index.d.mts +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.mts +1 -1
- package/lib/components/VAvatar/index.d.mts +1 -1
- package/lib/components/VBadge/VBadge.mjs +2 -2
- package/lib/components/VBadge/VBadge.mjs.map +1 -1
- package/lib/components/VBadge/index.d.mts +1 -1
- package/lib/components/VBanner/index.d.mts +1 -1
- package/lib/components/VBottomNavigation/index.d.mts +1 -1
- package/lib/components/VBottomSheet/VBottomSheet.mjs +1 -1
- package/lib/components/VBottomSheet/VBottomSheet.mjs.map +1 -1
- package/lib/components/VBottomSheet/index.d.mts +1 -1
- package/lib/components/VBreadcrumbs/index.d.mts +1 -1
- package/lib/components/VBtn/VBtn.css +0 -1
- package/lib/components/VBtn/_variables.scss +1 -1
- package/lib/components/VBtn/index.d.mts +1 -1
- package/lib/components/VBtnGroup/VBtnGroup.css +0 -1
- package/lib/components/VBtnGroup/index.d.mts +1 -1
- package/lib/components/VBtnToggle/VBtnToggle.mjs +1 -1
- package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
- package/lib/components/VBtnToggle/index.d.mts +1 -1
- package/lib/components/VCard/index.d.mts +1 -1
- package/lib/components/VCarousel/VCarousel.mjs +1 -1
- package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/lib/components/VCarousel/VCarouselItem.mjs +2 -2
- package/lib/components/VCarousel/VCarouselItem.mjs.map +1 -1
- package/lib/components/VCarousel/index.d.mts +1 -1
- package/lib/components/VCheckbox/VCheckbox.mjs +2 -2
- package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.mjs +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.mjs.map +1 -1
- package/lib/components/VCheckbox/index.d.mts +1 -1
- package/lib/components/VChip/index.d.mts +1 -1
- package/lib/components/VChipGroup/index.d.mts +1 -1
- package/lib/components/VCode/index.d.mts +1 -1
- package/lib/components/VColorPicker/VColorPicker.mjs +1 -1
- package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
- package/lib/components/VColorPicker/index.d.mts +1 -1
- package/lib/components/VCombobox/VCombobox.mjs +1 -1
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.mts +1 -1
- package/lib/components/VCounter/index.d.mts +1 -1
- package/lib/components/VDataIterator/index.d.mts +1 -1
- package/lib/components/VDataTable/VDataTable.css +6 -1
- package/lib/components/VDataTable/VDataTable.mjs +6 -5
- package/lib/components/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTable.sass +5 -1
- package/lib/components/VDataTable/VDataTableHeaders.mjs +3 -2
- package/lib/components/VDataTable/VDataTableHeaders.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableRow.mjs +8 -4
- package/lib/components/VDataTable/VDataTableRow.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableServer.mjs +8 -7
- package/lib/components/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.mjs +7 -6
- package/lib/components/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/components/VDataTable/index.d.mts +213 -196
- package/lib/components/VDatePicker/VDatePicker.mjs +6 -6
- package/lib/components/VDatePicker/VDatePicker.mjs.map +1 -1
- package/lib/components/VDatePicker/index.d.mts +1 -1
- package/lib/components/VDefaultsProvider/index.d.mts +1 -1
- package/lib/components/VDialog/VDialog.mjs +1 -1
- package/lib/components/VDialog/VDialog.mjs.map +1 -1
- package/lib/components/VDialog/index.d.mts +1 -1
- package/lib/components/VDivider/index.d.mts +1 -1
- package/lib/components/VExpansionPanel/index.d.mts +1 -1
- package/lib/components/VField/index.d.mts +1 -1
- package/lib/components/VFileInput/VFileInput.mjs +3 -3
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/index.d.mts +1 -1
- package/lib/components/VFooter/index.d.mts +1 -1
- package/lib/components/VForm/index.d.mts +1 -1
- package/lib/components/VGrid/VSpacer.mjs +3 -0
- package/lib/components/VGrid/VSpacer.mjs.map +1 -1
- package/lib/components/VGrid/index.d.mts +1 -1
- package/lib/components/VHover/index.d.mts +1 -1
- package/lib/components/VIcon/index.d.mts +1 -1
- package/lib/components/VImg/VImg.mjs +1 -1
- package/lib/components/VImg/VImg.mjs.map +1 -1
- package/lib/components/VImg/index.d.mts +1 -1
- package/lib/components/VInfiniteScroll/index.d.mts +1 -1
- package/lib/components/VInput/index.d.mts +1 -1
- package/lib/components/VItemGroup/index.d.mts +1 -1
- package/lib/components/VKbd/index.d.mts +1 -1
- package/lib/components/VLabel/index.d.mts +1 -1
- package/lib/components/VLayout/index.d.mts +1 -1
- package/lib/components/VLazy/index.d.mts +1 -1
- package/lib/components/VList/VList.mjs +2 -2
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/VListChildren.mjs +1 -1
- package/lib/components/VList/VListChildren.mjs.map +1 -1
- package/lib/components/VList/index.d.mts +1 -1
- package/lib/components/VLocaleProvider/index.d.mts +1 -1
- package/lib/components/VMain/index.d.mts +1 -1
- package/lib/components/VMenu/VMenu.mjs +1 -1
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VMenu/index.d.mts +1 -1
- package/lib/components/VMessages/index.d.mts +1 -1
- package/lib/components/VNavigationDrawer/index.d.mts +1 -1
- package/lib/components/VOtpInput/index.d.mts +1 -1
- package/lib/components/VOverlay/index.d.mts +1 -1
- package/lib/components/VPagination/index.d.mts +1 -1
- package/lib/components/VParallax/index.d.mts +1 -1
- package/lib/components/VProgressCircular/index.d.mts +1 -1
- package/lib/components/VProgressLinear/index.d.mts +1 -1
- package/lib/components/VRadio/index.d.mts +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.mjs +2 -2
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VRadioGroup/index.d.mts +1 -1
- package/lib/components/VRangeSlider/VRangeSlider.mjs +1 -1
- package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
- package/lib/components/VRangeSlider/index.d.mts +1 -1
- package/lib/components/VRating/index.d.mts +1 -1
- package/lib/components/VResponsive/index.d.mts +1 -1
- package/lib/components/VSelect/VSelect.mjs +1 -1
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.mts +1 -1
- package/lib/components/VSelectionControl/index.d.mts +1 -1
- package/lib/components/VSelectionControlGroup/index.d.mts +1 -1
- package/lib/components/VSheet/index.d.mts +1 -1
- package/lib/components/VSkeletonLoader/index.d.mts +1 -1
- package/lib/components/VSlideGroup/index.d.mts +1 -1
- package/lib/components/VSlider/VSlider.mjs +1 -1
- package/lib/components/VSlider/VSlider.mjs.map +1 -1
- package/lib/components/VSlider/index.d.mts +1 -1
- package/lib/components/VSnackbar/VSnackbar.mjs +1 -1
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/index.d.mts +1 -1
- package/lib/components/VStepper/VStepper.mjs +1 -1
- package/lib/components/VStepper/VStepper.mjs.map +1 -1
- package/lib/components/VStepper/VStepperWindow.mjs +9 -7
- package/lib/components/VStepper/VStepperWindow.mjs.map +1 -1
- package/lib/components/VStepper/VStepperWindowItem.mjs +4 -2
- package/lib/components/VStepper/VStepperWindowItem.mjs.map +1 -1
- package/lib/components/VStepper/index.d.mts +19 -141
- package/lib/components/VSwitch/VSwitch.mjs +2 -2
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSwitch/index.d.mts +1 -1
- package/lib/components/VSystemBar/index.d.mts +1 -1
- package/lib/components/VTable/VTable.css +12 -2
- package/lib/components/VTable/VTable.sass +7 -2
- package/lib/components/VTable/index.d.mts +1 -1
- package/lib/components/VTabs/VTab.mjs +1 -1
- package/lib/components/VTabs/VTab.mjs.map +1 -1
- package/lib/components/VTabs/VTabs.mjs +1 -1
- package/lib/components/VTabs/VTabs.mjs.map +1 -1
- package/lib/components/VTabs/index.d.mts +1 -1
- package/lib/components/VTextField/VTextField.mjs +3 -3
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextField/index.d.mts +1 -1
- package/lib/components/VTextarea/VTextarea.mjs +5 -3
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTextarea/index.d.mts +1 -1
- package/lib/components/VThemeProvider/index.d.mts +1 -1
- package/lib/components/VTimeline/index.d.mts +1 -1
- package/lib/components/VToolbar/index.d.mts +1 -1
- package/lib/components/VTooltip/VTooltip.mjs +1 -1
- package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
- package/lib/components/VTooltip/index.d.mts +1 -1
- package/lib/components/VValidation/index.d.mts +1 -1
- package/lib/components/VVirtualScroll/index.d.mts +1 -1
- package/lib/components/VWindow/index.d.mts +1 -1
- package/lib/components/index.d.mts +227 -305
- package/lib/components/transitions/index.d.mts +1 -1
- package/lib/composables/list-items.mjs +2 -2
- package/lib/composables/list-items.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/entry-bundler.mjs.map +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/framework.mjs.map +1 -1
- package/lib/index.d.mts +33 -33
- package/lib/labs/VConfirmEdit/index.d.mts +1 -1
- package/lib/labs/VPicker/VPicker.mjs +1 -1
- package/lib/labs/VPicker/VPicker.mjs.map +1 -1
- package/lib/labs/VPicker/index.d.mts +1 -1
- package/lib/labs/components.d.mts +1 -1
- package/lib/util/defineComponent.mjs +2 -2
- package/lib/util/defineComponent.mjs.map +1 -1
- package/lib/util/helpers.mjs +17 -3
- package/lib/util/helpers.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VStepperWindowItem.mjs","names":["makeVWindowItemProps","VWindowItem","genericComponent","propsFactory","useRender","makeVStepperWindowItemProps","VStepperWindowItem","name","props","setup","_ref","slots","windowItemProps","filterProps","_createVNode","_mergeProps"],"sources":["../../../src/components/VStepper/VStepperWindowItem.tsx"],"sourcesContent":["// Components\nimport { makeVWindowItemProps, VWindowItem } from '@/components/VWindow/VWindowItem'\n\n// Utilities\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\nexport const makeVStepperWindowItemProps = propsFactory({\n ...makeVWindowItemProps(),\n}, 'VStepperWindowItem')\n\nexport const VStepperWindowItem = genericComponent()({\n name: 'VStepperWindowItem',\n\n props: makeVStepperWindowItemProps(),\n\n setup (props, { slots }) {\n useRender(() => {\n const
|
|
1
|
+
{"version":3,"file":"VStepperWindowItem.mjs","names":["makeVWindowItemProps","VWindowItem","genericComponent","propsFactory","useRender","makeVStepperWindowItemProps","VStepperWindowItem","name","props","setup","_ref","slots","windowItemProps","filterProps","_createVNode","_mergeProps"],"sources":["../../../src/components/VStepper/VStepperWindowItem.tsx"],"sourcesContent":["// Components\nimport { makeVWindowItemProps, VWindowItem } from '@/components/VWindow/VWindowItem'\n\n// Utilities\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\nexport const makeVStepperWindowItemProps = propsFactory({\n ...makeVWindowItemProps(),\n}, 'VStepperWindowItem')\n\nexport const VStepperWindowItem = genericComponent()({\n name: 'VStepperWindowItem',\n\n props: makeVStepperWindowItemProps(),\n\n setup (props, { slots }) {\n useRender(() => {\n const windowItemProps = VWindowItem.filterProps(props)\n\n return (\n <VWindowItem\n _as=\"VStepperWindowItem\"\n { ...windowItemProps }\n class=\"v-stepper-window-item\"\n v-slots={ slots }\n />\n )\n })\n\n return {}\n },\n})\n\nexport type VStepperWindowItem = InstanceType<typeof VStepperWindowItem>\n"],"mappings":";AAAA;AAAA,SACSA,oBAAoB,EAAEC,WAAW,sCAE1C;AAAA,SACSC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS;AAElD,OAAO,MAAMC,2BAA2B,GAAGF,YAAY,CAAC;EACtD,GAAGH,oBAAoB;AACzB,CAAC,EAAE,oBAAoB,CAAC;AAExB,OAAO,MAAMM,kBAAkB,GAAGJ,gBAAgB,EAAE,CAAC;EACnDK,IAAI,EAAE,oBAAoB;EAE1BC,KAAK,EAAEH,2BAA2B,EAAE;EAEpCI,KAAKA,CAAED,KAAK,EAAAE,IAAA,EAAa;IAAA,IAAX;MAAEC;IAAM,CAAC,GAAAD,IAAA;IACrBN,SAAS,CAAC,MAAM;MACd,MAAMQ,eAAe,GAAGX,WAAW,CAACY,WAAW,CAACL,KAAK,CAAC;MAEtD,OAAAM,YAAA,CAAAb,WAAA,EAAAc,WAAA;QAAA,OAEQ;MAAoB,GACnBH,eAAe;QAAA,SACd;MAAuB,IACnBD,KAAK;IAGrB,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { ComponentPropsOptions, ExtractPropTypes, PropType
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
|
|
4
4
|
declare const block: readonly ["top", "bottom"];
|
|
5
5
|
declare const inline: readonly ["start", "end", "left", "right"];
|
|
@@ -8,7 +8,7 @@ type Tinline = typeof inline[number];
|
|
|
8
8
|
type Anchor = Tblock | Tinline | 'center' | 'center center' | `${Tblock} ${Tinline | 'center'}` | `${Tinline} ${Tblock | 'center'}`;
|
|
9
9
|
|
|
10
10
|
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
11
|
-
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T):
|
|
11
|
+
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
type StepperItemSlot = {
|
|
@@ -1703,35 +1703,6 @@ declare const VStepperHeader: {
|
|
|
1703
1703
|
}>>;
|
|
1704
1704
|
type VStepperHeader = InstanceType<typeof VStepperHeader>;
|
|
1705
1705
|
|
|
1706
|
-
interface TouchHandlers {
|
|
1707
|
-
start?: (wrapperEvent: {
|
|
1708
|
-
originalEvent: TouchEvent;
|
|
1709
|
-
} & TouchData) => void;
|
|
1710
|
-
end?: (wrapperEvent: {
|
|
1711
|
-
originalEvent: TouchEvent;
|
|
1712
|
-
} & TouchData) => void;
|
|
1713
|
-
move?: (wrapperEvent: {
|
|
1714
|
-
originalEvent: TouchEvent;
|
|
1715
|
-
} & TouchData) => void;
|
|
1716
|
-
left?: (wrapper: TouchData) => void;
|
|
1717
|
-
right?: (wrapper: TouchData) => void;
|
|
1718
|
-
up?: (wrapper: TouchData) => void;
|
|
1719
|
-
down?: (wrapper: TouchData) => void;
|
|
1720
|
-
}
|
|
1721
|
-
interface TouchData {
|
|
1722
|
-
touchstartX: number;
|
|
1723
|
-
touchstartY: number;
|
|
1724
|
-
touchmoveX: number;
|
|
1725
|
-
touchmoveY: number;
|
|
1726
|
-
touchendX: number;
|
|
1727
|
-
touchendY: number;
|
|
1728
|
-
offsetX: number;
|
|
1729
|
-
offsetY: number;
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
|
|
1733
|
-
declare const IconValue: PropType<IconValue>;
|
|
1734
|
-
|
|
1735
1706
|
declare const VStepperWindow: {
|
|
1736
1707
|
new (...args: any[]): {
|
|
1737
1708
|
$: vue.ComponentInternalInstance;
|
|
@@ -1742,28 +1713,17 @@ declare const VStepperWindow: {
|
|
|
1742
1713
|
style: vue.StyleValue;
|
|
1743
1714
|
disabled: boolean;
|
|
1744
1715
|
tag: string;
|
|
1745
|
-
mandatory: NonNullable<boolean | "force">;
|
|
1746
|
-
touch: boolean | TouchHandlers;
|
|
1747
1716
|
selectedClass: string;
|
|
1748
|
-
continuous: boolean;
|
|
1749
|
-
nextIcon: IconValue;
|
|
1750
|
-
prevIcon: IconValue;
|
|
1751
1717
|
}> & Omit<{
|
|
1752
1718
|
reverse: boolean;
|
|
1753
1719
|
direction: "horizontal" | "vertical";
|
|
1754
1720
|
style: vue.StyleValue;
|
|
1755
1721
|
disabled: boolean;
|
|
1756
1722
|
tag: string;
|
|
1757
|
-
mandatory: NonNullable<boolean | "force">;
|
|
1758
1723
|
selectedClass: string;
|
|
1759
|
-
continuous: boolean;
|
|
1760
|
-
nextIcon: IconValue;
|
|
1761
|
-
prevIcon: IconValue;
|
|
1762
1724
|
class?: any;
|
|
1763
|
-
touch?: boolean | TouchHandlers | undefined;
|
|
1764
1725
|
theme?: string | undefined;
|
|
1765
1726
|
modelValue?: any;
|
|
1766
|
-
showArrows?: string | boolean | undefined;
|
|
1767
1727
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1768
1728
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1769
1729
|
};
|
|
@@ -1778,17 +1738,11 @@ declare const VStepperWindow: {
|
|
|
1778
1738
|
style: vue.StyleValue;
|
|
1779
1739
|
disabled: boolean;
|
|
1780
1740
|
tag: string;
|
|
1781
|
-
mandatory: NonNullable<boolean | "force">;
|
|
1782
1741
|
selectedClass: string;
|
|
1783
|
-
continuous: boolean;
|
|
1784
|
-
nextIcon: IconValue;
|
|
1785
|
-
prevIcon: IconValue;
|
|
1786
1742
|
} & {
|
|
1787
1743
|
class?: any;
|
|
1788
|
-
touch?: boolean | TouchHandlers | undefined;
|
|
1789
1744
|
theme?: string | undefined;
|
|
1790
1745
|
modelValue?: any;
|
|
1791
|
-
showArrows?: string | boolean | undefined;
|
|
1792
1746
|
} & {
|
|
1793
1747
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1794
1748
|
default?: (() => vue.VNodeChild) | undefined;
|
|
@@ -1800,7 +1754,7 @@ declare const VStepperWindow: {
|
|
|
1800
1754
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
1801
1755
|
} & {
|
|
1802
1756
|
"onUpdate:modelValue"?: ((v: unknown) => any) | undefined;
|
|
1803
|
-
}, "reverse" | "direction" | "style" | "disabled" | "tag" | "
|
|
1757
|
+
}, "reverse" | "direction" | "style" | "disabled" | "tag" | "selectedClass">;
|
|
1804
1758
|
$attrs: {
|
|
1805
1759
|
[x: string]: unknown;
|
|
1806
1760
|
};
|
|
@@ -1822,17 +1776,11 @@ declare const VStepperWindow: {
|
|
|
1822
1776
|
style: vue.StyleValue;
|
|
1823
1777
|
disabled: boolean;
|
|
1824
1778
|
tag: string;
|
|
1825
|
-
mandatory: NonNullable<boolean | "force">;
|
|
1826
1779
|
selectedClass: string;
|
|
1827
|
-
continuous: boolean;
|
|
1828
|
-
nextIcon: IconValue;
|
|
1829
|
-
prevIcon: IconValue;
|
|
1830
1780
|
} & {
|
|
1831
1781
|
class?: any;
|
|
1832
|
-
touch?: boolean | TouchHandlers | undefined;
|
|
1833
1782
|
theme?: string | undefined;
|
|
1834
1783
|
modelValue?: any;
|
|
1835
|
-
showArrows?: string | boolean | undefined;
|
|
1836
1784
|
} & {
|
|
1837
1785
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1838
1786
|
default?: (() => vue.VNodeChild) | undefined;
|
|
@@ -1852,12 +1800,7 @@ declare const VStepperWindow: {
|
|
|
1852
1800
|
style: vue.StyleValue;
|
|
1853
1801
|
disabled: boolean;
|
|
1854
1802
|
tag: string;
|
|
1855
|
-
mandatory: NonNullable<boolean | "force">;
|
|
1856
|
-
touch: boolean | TouchHandlers;
|
|
1857
1803
|
selectedClass: string;
|
|
1858
|
-
continuous: boolean;
|
|
1859
|
-
nextIcon: IconValue;
|
|
1860
|
-
prevIcon: IconValue;
|
|
1861
1804
|
}, {}, string, vue.SlotsType<Partial<{
|
|
1862
1805
|
default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
1863
1806
|
[key: string]: any;
|
|
@@ -1888,17 +1831,11 @@ declare const VStepperWindow: {
|
|
|
1888
1831
|
style: vue.StyleValue;
|
|
1889
1832
|
disabled: boolean;
|
|
1890
1833
|
tag: string;
|
|
1891
|
-
mandatory: NonNullable<boolean | "force">;
|
|
1892
1834
|
selectedClass: string;
|
|
1893
|
-
continuous: boolean;
|
|
1894
|
-
nextIcon: IconValue;
|
|
1895
|
-
prevIcon: IconValue;
|
|
1896
1835
|
} & {
|
|
1897
1836
|
class?: any;
|
|
1898
|
-
touch?: boolean | TouchHandlers | undefined;
|
|
1899
1837
|
theme?: string | undefined;
|
|
1900
1838
|
modelValue?: any;
|
|
1901
|
-
showArrows?: string | boolean | undefined;
|
|
1902
1839
|
} & {
|
|
1903
1840
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1904
1841
|
default?: (() => vue.VNodeChild) | undefined;
|
|
@@ -1920,17 +1857,11 @@ declare const VStepperWindow: {
|
|
|
1920
1857
|
style: vue.StyleValue;
|
|
1921
1858
|
disabled: boolean;
|
|
1922
1859
|
tag: string;
|
|
1923
|
-
mandatory: NonNullable<boolean | "force">;
|
|
1924
1860
|
selectedClass: string;
|
|
1925
|
-
continuous: boolean;
|
|
1926
|
-
nextIcon: IconValue;
|
|
1927
|
-
prevIcon: IconValue;
|
|
1928
1861
|
} & {
|
|
1929
1862
|
class?: any;
|
|
1930
|
-
touch?: boolean | TouchHandlers | undefined;
|
|
1931
1863
|
theme?: string | undefined;
|
|
1932
1864
|
modelValue?: any;
|
|
1933
|
-
showArrows?: string | boolean | undefined;
|
|
1934
1865
|
} & {
|
|
1935
1866
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1936
1867
|
default?: (() => vue.VNodeChild) | undefined;
|
|
@@ -1950,108 +1881,55 @@ declare const VStepperWindow: {
|
|
|
1950
1881
|
style: vue.StyleValue;
|
|
1951
1882
|
disabled: boolean;
|
|
1952
1883
|
tag: string;
|
|
1953
|
-
mandatory: NonNullable<boolean | "force">;
|
|
1954
|
-
touch: boolean | TouchHandlers;
|
|
1955
1884
|
selectedClass: string;
|
|
1956
|
-
continuous: boolean;
|
|
1957
|
-
nextIcon: IconValue;
|
|
1958
|
-
prevIcon: IconValue;
|
|
1959
1885
|
}, {}, string, vue.SlotsType<Partial<{
|
|
1960
1886
|
default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
1961
1887
|
[key: string]: any;
|
|
1962
1888
|
}>[];
|
|
1963
1889
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
type:
|
|
1890
|
+
reverse: BooleanConstructor;
|
|
1891
|
+
direction: {
|
|
1892
|
+
type: vue.PropType<"horizontal" | "vertical">;
|
|
1967
1893
|
default: string;
|
|
1968
1894
|
};
|
|
1969
|
-
class: vue.PropType<any>;
|
|
1970
1895
|
style: {
|
|
1971
1896
|
type: vue.PropType<vue.StyleValue>;
|
|
1972
1897
|
default: null;
|
|
1973
1898
|
};
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
};
|
|
1979
|
-
prevIcon: {
|
|
1980
|
-
type: vue.PropType<IconValue>;
|
|
1981
|
-
default: string;
|
|
1982
|
-
};
|
|
1983
|
-
reverse: BooleanConstructor;
|
|
1984
|
-
showArrows: {
|
|
1985
|
-
type: (StringConstructor | BooleanConstructor)[];
|
|
1986
|
-
validator: (v: any) => boolean;
|
|
1987
|
-
};
|
|
1988
|
-
touch: {
|
|
1989
|
-
type: vue.PropType<boolean | TouchHandlers>;
|
|
1990
|
-
default: undefined;
|
|
1991
|
-
};
|
|
1992
|
-
direction: {
|
|
1993
|
-
type: vue.PropType<"horizontal" | "vertical">;
|
|
1899
|
+
disabled: BooleanConstructor;
|
|
1900
|
+
class: vue.PropType<any>;
|
|
1901
|
+
tag: {
|
|
1902
|
+
type: StringConstructor;
|
|
1994
1903
|
default: string;
|
|
1995
1904
|
};
|
|
1905
|
+
theme: StringConstructor;
|
|
1996
1906
|
modelValue: null;
|
|
1997
|
-
disabled: BooleanConstructor;
|
|
1998
1907
|
selectedClass: {
|
|
1999
1908
|
type: StringConstructor;
|
|
2000
1909
|
default: string;
|
|
2001
1910
|
};
|
|
2002
|
-
mandatory: Omit<{
|
|
2003
|
-
type: vue.PropType<boolean | "force">;
|
|
2004
|
-
default: "force";
|
|
2005
|
-
}, "type" | "default"> & {
|
|
2006
|
-
type: vue.PropType<NonNullable<boolean | "force">>;
|
|
2007
|
-
default: NonNullable<boolean | "force">;
|
|
2008
|
-
};
|
|
2009
1911
|
}, vue.ExtractPropTypes<{
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
type:
|
|
1912
|
+
reverse: BooleanConstructor;
|
|
1913
|
+
direction: {
|
|
1914
|
+
type: vue.PropType<"horizontal" | "vertical">;
|
|
2013
1915
|
default: string;
|
|
2014
1916
|
};
|
|
2015
|
-
class: vue.PropType<any>;
|
|
2016
1917
|
style: {
|
|
2017
1918
|
type: vue.PropType<vue.StyleValue>;
|
|
2018
1919
|
default: null;
|
|
2019
1920
|
};
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
};
|
|
2025
|
-
prevIcon: {
|
|
2026
|
-
type: vue.PropType<IconValue>;
|
|
2027
|
-
default: string;
|
|
2028
|
-
};
|
|
2029
|
-
reverse: BooleanConstructor;
|
|
2030
|
-
showArrows: {
|
|
2031
|
-
type: (StringConstructor | BooleanConstructor)[];
|
|
2032
|
-
validator: (v: any) => boolean;
|
|
2033
|
-
};
|
|
2034
|
-
touch: {
|
|
2035
|
-
type: vue.PropType<boolean | TouchHandlers>;
|
|
2036
|
-
default: undefined;
|
|
2037
|
-
};
|
|
2038
|
-
direction: {
|
|
2039
|
-
type: vue.PropType<"horizontal" | "vertical">;
|
|
1921
|
+
disabled: BooleanConstructor;
|
|
1922
|
+
class: vue.PropType<any>;
|
|
1923
|
+
tag: {
|
|
1924
|
+
type: StringConstructor;
|
|
2040
1925
|
default: string;
|
|
2041
1926
|
};
|
|
1927
|
+
theme: StringConstructor;
|
|
2042
1928
|
modelValue: null;
|
|
2043
|
-
disabled: BooleanConstructor;
|
|
2044
1929
|
selectedClass: {
|
|
2045
1930
|
type: StringConstructor;
|
|
2046
1931
|
default: string;
|
|
2047
1932
|
};
|
|
2048
|
-
mandatory: Omit<{
|
|
2049
|
-
type: vue.PropType<boolean | "force">;
|
|
2050
|
-
default: "force";
|
|
2051
|
-
}, "type" | "default"> & {
|
|
2052
|
-
type: vue.PropType<NonNullable<boolean | "force">>;
|
|
2053
|
-
default: NonNullable<boolean | "force">;
|
|
2054
|
-
};
|
|
2055
1933
|
}>>;
|
|
2056
1934
|
type VStepperWindow = InstanceType<typeof VStepperWindow>;
|
|
2057
1935
|
|
|
@@ -66,8 +66,8 @@ export const VSwitch = genericComponent()({
|
|
|
66
66
|
}
|
|
67
67
|
useRender(() => {
|
|
68
68
|
const [rootAttrs, controlAttrs] = filterInputAttrs(attrs);
|
|
69
|
-
const
|
|
70
|
-
const
|
|
69
|
+
const inputProps = VInput.filterProps(props);
|
|
70
|
+
const controlProps = VSelectionControl.filterProps(props);
|
|
71
71
|
return _createVNode(VInput, _mergeProps({
|
|
72
72
|
"class": ['v-switch', {
|
|
73
73
|
'v-switch--inset': props.inset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VSwitch.mjs","names":["VScaleTransition","VIcon","makeVInputProps","VInput","VProgressCircular","makeVSelectionControlProps","VSelectionControl","useFocus","LoaderSlot","useLoader","useProxiedModel","computed","ref","filterInputAttrs","genericComponent","getUid","propsFactory","useRender","makeVSwitchProps","indeterminate","Boolean","inset","flat","loading","type","String","default","VSwitch","name","inheritAttrs","props","emits","focused","update:modelValue","val","setup","_ref","attrs","slots","model","loaderClasses","isFocused","focus","blur","control","loaderColor","color","uid","id","onChange","value","onTrackClick","e","stopPropagation","preventDefault","input","click","rootAttrs","controlAttrs","inputProps","_1","filterProps","controlProps","_2","_createVNode","_mergeProps","class","style","_ref2","messagesId","isDisabled","isReadonly","isValid","$event","undefined","_ref3","backgroundColorClasses","backgroundColorStyles","_ref4","inputNode","icon","_Fragment","slotProps","loader","isActive"],"sources":["../../../src/components/VSwitch/VSwitch.tsx"],"sourcesContent":["// Styles\nimport './VSwitch.sass'\n\n// Components\nimport { VScaleTransition } from '@/components/transitions'\nimport { VIcon } from '@/components/VIcon'\nimport { makeVInputProps, VInput } from '@/components/VInput/VInput'\nimport { VProgressCircular } from '@/components/VProgressCircular'\nimport { makeVSelectionControlProps, VSelectionControl } from '@/components/VSelectionControl/VSelectionControl'\n\n// Composables\nimport { useFocus } from '@/composables/focus'\nimport { LoaderSlot, useLoader } from '@/composables/loader'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref } from 'vue'\nimport { filterInputAttrs, genericComponent, getUid, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { VInputSlots } from '@/components/VInput/VInput'\nimport type { VSelectionControlSlots } from '@/components/VSelectionControl/VSelectionControl'\nimport type { LoaderSlotProps } from '@/composables/loader'\n\nexport type VSwitchSlots =\n & VInputSlots\n & VSelectionControlSlots\n & { loader: LoaderSlotProps }\n\nexport const makeVSwitchProps = propsFactory({\n indeterminate: Boolean,\n inset: Boolean,\n flat: Boolean,\n loading: {\n type: [Boolean, String],\n default: false,\n },\n\n ...makeVInputProps(),\n ...makeVSelectionControlProps(),\n}, 'VSwitch')\n\nexport const VSwitch = genericComponent<VSwitchSlots>()({\n name: 'VSwitch',\n\n inheritAttrs: false,\n\n props: makeVSwitchProps(),\n\n emits: {\n 'update:focused': (focused: boolean) => true,\n 'update:modelValue': () => true,\n 'update:indeterminate': (val: boolean) => true,\n },\n\n setup (props, { attrs, slots }) {\n const indeterminate = useProxiedModel(props, 'indeterminate')\n const model = useProxiedModel(props, 'modelValue')\n const { loaderClasses } = useLoader(props)\n const { isFocused, focus, blur } = useFocus(props)\n const control = ref<VSelectionControl>()\n\n const loaderColor = computed(() => {\n return typeof props.loading === 'string' && props.loading !== ''\n ? props.loading\n : props.color\n })\n\n const uid = getUid()\n const id = computed(() => props.id || `switch-${uid}`)\n\n function onChange () {\n if (indeterminate.value) {\n indeterminate.value = false\n }\n }\n function onTrackClick (e: Event) {\n e.stopPropagation()\n e.preventDefault()\n control.value?.input?.click()\n }\n\n useRender(() => {\n const [rootAttrs, controlAttrs] = filterInputAttrs(attrs)\n const [inputProps, _1] = VInput.filterProps(props)\n const [controlProps, _2] = VSelectionControl.filterProps(props)\n\n return (\n <VInput\n class={[\n 'v-switch',\n { 'v-switch--inset': props.inset },\n { 'v-switch--indeterminate': indeterminate.value },\n loaderClasses.value,\n props.class,\n ]}\n style={ props.style }\n { ...rootAttrs }\n { ...inputProps }\n id={ id.value }\n focused={ isFocused.value }\n >\n {{\n ...slots,\n default: ({\n id,\n messagesId,\n isDisabled,\n isReadonly,\n isValid,\n }) => (\n <VSelectionControl\n ref={ control }\n { ...controlProps }\n v-model={ model.value }\n id={ id.value }\n aria-describedby={ messagesId.value }\n type=\"checkbox\"\n onUpdate:modelValue={ onChange }\n aria-checked={ indeterminate.value ? 'mixed' : undefined }\n disabled={ isDisabled.value }\n readonly={ isReadonly.value }\n onFocus={ focus }\n onBlur={ blur }\n { ...controlAttrs }\n >\n {{\n ...slots,\n default: ({ backgroundColorClasses, backgroundColorStyles }) => (\n <div\n class={[\n 'v-switch__track',\n ...backgroundColorClasses.value,\n ]}\n style={ backgroundColorStyles.value }\n onClick={ onTrackClick }\n ></div>\n ),\n input: ({ inputNode, icon, backgroundColorClasses, backgroundColorStyles }) => (\n <>\n { inputNode }\n <div\n class={[\n 'v-switch__thumb',\n { 'v-switch__thumb--filled': icon || props.loading },\n props.inset ? undefined : backgroundColorClasses.value,\n ]}\n style={ props.inset ? undefined : backgroundColorStyles.value }\n >\n <VScaleTransition>\n { !props.loading ? (\n icon && <VIcon key={ icon as any } icon={ icon } size=\"x-small\" />\n ) : (\n <LoaderSlot\n name=\"v-switch\"\n active\n color={ isValid.value === false ? undefined : loaderColor.value }\n >\n { slotProps => (\n slots.loader\n ? slots.loader(slotProps)\n : (\n <VProgressCircular\n active={ slotProps.isActive }\n color={ slotProps.color }\n indeterminate\n size=\"16\"\n width=\"2\"\n />\n )\n )}\n </LoaderSlot>\n )}\n </VScaleTransition>\n </div>\n </>\n ),\n }}\n </VSelectionControl>\n ),\n }}\n </VInput>\n )\n })\n\n return {}\n },\n})\n\nexport type VSwitch = InstanceType<typeof VSwitch>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,gBAAgB;AAAA,SAChBC,KAAK;AAAA,SACLC,eAAe,EAAEC,MAAM;AAAA,SACvBC,iBAAiB;AAAA,SACjBC,0BAA0B,EAAEC,iBAAiB,sDAEtD;AAAA,SACSC,QAAQ;AAAA,SACRC,UAAU,EAAE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CAAC1B,KAAK,CACvD;gBAAA,SACOpB,KAAK,CAACT,KAAK,GAAGqD,SAAS,GAAGG,qBAAqB,CAAC3B;cAAK,IAAAc,YAAA,CAAAhE,gBAAA;gBAAA0B,OAAA,EAAAA,CAAA,MAGzD,CAACI,KAAK,CAACP,OAAO,GACdyD,IAAI,IAAAhB,YAAA,CAAA/D,KAAA;kBAAA,OAAiB+E,IAAI;kBAAA,QAAiBA,IAAI;kBAAA,QAAQ;gBAAS,QAAG,GAAAhB,YAAA,CAAAxD,UAAA;kBAAA,QAG3D,UAAU;kBAAA;kBAAA,SAEPgE,OAAO,CAACtB,KAAK,KAAK,KAAK,GAAGwB,SAAS,GAAG7B,WAAW,CAACK;gBAAK;kBAAAxB,OAAA,EAE7DwD,SAAS,IACT5C,KAAK,CAAC6C,MAAM,GACR7C,KAAK,CAAC6C,MAAM,CAACD,SAAS,CAAC,GAAAlB,YAAA,CAAA5D,iBAAA;oBAAA,UAGZ8E,SAAS,CAACE,QAAQ;oBAAA,SACnBF,SAAS,CAACpC,KAAK;oBAAA;oBAAA,QAElB,IAAI;oBAAA,SACH;kBAAG;gBAGhB,EAEJ;cAAA;YAAA;UAIR;QAAA;MAGN;IAIT,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"VSwitch.mjs","names":["VScaleTransition","VIcon","makeVInputProps","VInput","VProgressCircular","makeVSelectionControlProps","VSelectionControl","useFocus","LoaderSlot","useLoader","useProxiedModel","computed","ref","filterInputAttrs","genericComponent","getUid","propsFactory","useRender","makeVSwitchProps","indeterminate","Boolean","inset","flat","loading","type","String","default","VSwitch","name","inheritAttrs","props","emits","focused","update:modelValue","val","setup","_ref","attrs","slots","model","loaderClasses","isFocused","focus","blur","control","loaderColor","color","uid","id","onChange","value","onTrackClick","e","stopPropagation","preventDefault","input","click","rootAttrs","controlAttrs","inputProps","filterProps","controlProps","_createVNode","_mergeProps","class","style","_ref2","messagesId","isDisabled","isReadonly","isValid","$event","undefined","_ref3","backgroundColorClasses","backgroundColorStyles","_ref4","inputNode","icon","_Fragment","slotProps","loader","isActive"],"sources":["../../../src/components/VSwitch/VSwitch.tsx"],"sourcesContent":["// Styles\nimport './VSwitch.sass'\n\n// Components\nimport { VScaleTransition } from '@/components/transitions'\nimport { VIcon } from '@/components/VIcon'\nimport { makeVInputProps, VInput } from '@/components/VInput/VInput'\nimport { VProgressCircular } from '@/components/VProgressCircular'\nimport { makeVSelectionControlProps, VSelectionControl } from '@/components/VSelectionControl/VSelectionControl'\n\n// Composables\nimport { useFocus } from '@/composables/focus'\nimport { LoaderSlot, useLoader } from '@/composables/loader'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref } from 'vue'\nimport { filterInputAttrs, genericComponent, getUid, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { VInputSlots } from '@/components/VInput/VInput'\nimport type { VSelectionControlSlots } from '@/components/VSelectionControl/VSelectionControl'\nimport type { LoaderSlotProps } from '@/composables/loader'\n\nexport type VSwitchSlots =\n & VInputSlots\n & VSelectionControlSlots\n & { loader: LoaderSlotProps }\n\nexport const makeVSwitchProps = propsFactory({\n indeterminate: Boolean,\n inset: Boolean,\n flat: Boolean,\n loading: {\n type: [Boolean, String],\n default: false,\n },\n\n ...makeVInputProps(),\n ...makeVSelectionControlProps(),\n}, 'VSwitch')\n\nexport const VSwitch = genericComponent<VSwitchSlots>()({\n name: 'VSwitch',\n\n inheritAttrs: false,\n\n props: makeVSwitchProps(),\n\n emits: {\n 'update:focused': (focused: boolean) => true,\n 'update:modelValue': () => true,\n 'update:indeterminate': (val: boolean) => true,\n },\n\n setup (props, { attrs, slots }) {\n const indeterminate = useProxiedModel(props, 'indeterminate')\n const model = useProxiedModel(props, 'modelValue')\n const { loaderClasses } = useLoader(props)\n const { isFocused, focus, blur } = useFocus(props)\n const control = ref<VSelectionControl>()\n\n const loaderColor = computed(() => {\n return typeof props.loading === 'string' && props.loading !== ''\n ? props.loading\n : props.color\n })\n\n const uid = getUid()\n const id = computed(() => props.id || `switch-${uid}`)\n\n function onChange () {\n if (indeterminate.value) {\n indeterminate.value = false\n }\n }\n function onTrackClick (e: Event) {\n e.stopPropagation()\n e.preventDefault()\n control.value?.input?.click()\n }\n\n useRender(() => {\n const [rootAttrs, controlAttrs] = filterInputAttrs(attrs)\n const inputProps = VInput.filterProps(props)\n const controlProps = VSelectionControl.filterProps(props)\n\n return (\n <VInput\n class={[\n 'v-switch',\n { 'v-switch--inset': props.inset },\n { 'v-switch--indeterminate': indeterminate.value },\n loaderClasses.value,\n props.class,\n ]}\n style={ props.style }\n { ...rootAttrs }\n { ...inputProps }\n id={ id.value }\n focused={ isFocused.value }\n >\n {{\n ...slots,\n default: ({\n id,\n messagesId,\n isDisabled,\n isReadonly,\n isValid,\n }) => (\n <VSelectionControl\n ref={ control }\n { ...controlProps }\n v-model={ model.value }\n id={ id.value }\n aria-describedby={ messagesId.value }\n type=\"checkbox\"\n onUpdate:modelValue={ onChange }\n aria-checked={ indeterminate.value ? 'mixed' : undefined }\n disabled={ isDisabled.value }\n readonly={ isReadonly.value }\n onFocus={ focus }\n onBlur={ blur }\n { ...controlAttrs }\n >\n {{\n ...slots,\n default: ({ backgroundColorClasses, backgroundColorStyles }) => (\n <div\n class={[\n 'v-switch__track',\n ...backgroundColorClasses.value,\n ]}\n style={ backgroundColorStyles.value }\n onClick={ onTrackClick }\n ></div>\n ),\n input: ({ inputNode, icon, backgroundColorClasses, backgroundColorStyles }) => (\n <>\n { inputNode }\n <div\n class={[\n 'v-switch__thumb',\n { 'v-switch__thumb--filled': icon || props.loading },\n props.inset ? undefined : backgroundColorClasses.value,\n ]}\n style={ props.inset ? undefined : backgroundColorStyles.value }\n >\n <VScaleTransition>\n { !props.loading ? (\n icon && <VIcon key={ icon as any } icon={ icon } size=\"x-small\" />\n ) : (\n <LoaderSlot\n name=\"v-switch\"\n active\n color={ isValid.value === false ? undefined : loaderColor.value }\n >\n { slotProps => (\n slots.loader\n ? slots.loader(slotProps)\n : (\n <VProgressCircular\n active={ slotProps.isActive }\n color={ slotProps.color }\n indeterminate\n size=\"16\"\n width=\"2\"\n />\n )\n )}\n </LoaderSlot>\n )}\n </VScaleTransition>\n </div>\n </>\n ),\n }}\n </VSelectionControl>\n ),\n }}\n </VInput>\n )\n })\n\n return {}\n },\n})\n\nexport type VSwitch = InstanceType<typeof VSwitch>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,gBAAgB;AAAA,SAChBC,KAAK;AAAA,SACLC,eAAe,EAAEC,MAAM;AAAA,SACvBC,iBAAiB;AAAA,SACjBC,0BAA0B,EAAEC,iBAAiB,sDAEtD;AAAA,SACSC,QAAQ;AAAA,SACRC,UAAU,EAAEC,SAAS;AAAA,SACrBC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAC1BC,gBAAgB,EAAEC,gBAAgB,EAAEC,MAAM,EAAEC,YAAY,EAAEC,SAAS,gCAE5E;AAUA,OAAO,MAAMC,gBAAgB,GAAGF,YAAY,CAAC;EAC3CG,aAAa,EAAEC,OAAO;EACtBC,KAAK,EAAED,OAAO;EACdE,IAAI,EAAEF,OAAO;EACbG,OAAO,EAAE;IACPC,IAAI,EAAE,CAACJ,OAAO,EAAEK,MAAM,CAAC;IACvBC,OAAO,EAAE;EACX,CAAC;EAED,GAAGxB,eAAe,EAAE;EACpB,GAAGG,0BAA0B;AAC/B,CAAC,EAAE,SAAS,CAAC;AAEb,OAAO,MAAMsB,OAAO,GAAGb,gBAAgB,EAAgB,CAAC;EACtDc,IAAI,EAAE,SAAS;EAEfC,YAAY,EAAE,KAAK;EAEnBC,KAAK,EAAEZ,gBAAgB,EAAE;EAEzBa,KAAK,EAAE;IACL,gBAAgB,EAAGC,OAAgB,IAAK,IAAI;IAC5C,mBAAmB,EAAEC,CAAA,KAAM,IAAI;IAC/B,sBAAsB,EAAGC,GAAY,IAAK;EAC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"}
|
|
@@ -2,7 +2,7 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { ComponentPropsOptions, ExtractPropTypes, PropType, JSXComponent, WritableComputedRef, Ref, CSSProperties, VNode, ComputedRef } from 'vue';
|
|
3
3
|
|
|
4
4
|
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
5
|
-
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T):
|
|
5
|
+
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
declare function deepEqual(a: any, b: any): boolean;
|
|
@@ -2,7 +2,7 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { ComponentPropsOptions, ExtractPropTypes } from 'vue';
|
|
3
3
|
|
|
4
4
|
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
5
|
-
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T):
|
|
5
|
+
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
declare const VSystemBar: {
|
|
@@ -20,8 +20,18 @@
|
|
|
20
20
|
.v-table .v-table__wrapper > table > tfoot > tr > th {
|
|
21
21
|
border-top: thin solid rgba(var(--v-border-color), var(--v-border-opacity));
|
|
22
22
|
}
|
|
23
|
-
.v-table.v-table--hover > .v-table__wrapper > table > tbody > tr
|
|
23
|
+
.v-table.v-table--hover > .v-table__wrapper > table > tbody > tr > td {
|
|
24
|
+
position: relative;
|
|
25
|
+
}
|
|
26
|
+
.v-table.v-table--hover > .v-table__wrapper > table > tbody > tr:hover > td::after {
|
|
27
|
+
content: "";
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 0;
|
|
30
|
+
left: 0;
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
24
33
|
background: rgba(var(--v-border-color), var(--v-hover-opacity));
|
|
34
|
+
pointer-events: none;
|
|
25
35
|
}
|
|
26
36
|
.v-table.v-table--fixed-header > .v-table__wrapper > table > thead > tr > th {
|
|
27
37
|
background: rgb(var(--v-theme-surface));
|
|
@@ -124,7 +134,7 @@
|
|
|
124
134
|
.v-table--fixed-header > .v-table__wrapper > table > thead {
|
|
125
135
|
position: sticky;
|
|
126
136
|
top: 0;
|
|
127
|
-
z-index:
|
|
137
|
+
z-index: 2;
|
|
128
138
|
}
|
|
129
139
|
.v-table--fixed-header > .v-table__wrapper > table > thead > tr > th {
|
|
130
140
|
border-bottom: 0px !important;
|
|
@@ -41,8 +41,13 @@
|
|
|
41
41
|
> table
|
|
42
42
|
> tbody
|
|
43
43
|
> tr
|
|
44
|
-
|
|
44
|
+
> td
|
|
45
|
+
position: relative
|
|
46
|
+
|
|
47
|
+
&:hover > td::after
|
|
48
|
+
@include tools.absolute(true)
|
|
45
49
|
background: $table-hover-color
|
|
50
|
+
pointer-events: none
|
|
46
51
|
|
|
47
52
|
&.v-table--fixed-header
|
|
48
53
|
> .v-table__wrapper
|
|
@@ -153,7 +158,7 @@
|
|
|
153
158
|
> thead
|
|
154
159
|
position: sticky
|
|
155
160
|
top: 0
|
|
156
|
-
z-index:
|
|
161
|
+
z-index: 2
|
|
157
162
|
> tr
|
|
158
163
|
> th
|
|
159
164
|
border-bottom: 0px !important
|
|
@@ -2,7 +2,7 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { ComponentPropsOptions, ExtractPropTypes } from 'vue';
|
|
3
3
|
|
|
4
4
|
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
5
|
-
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T):
|
|
5
|
+
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
type Density = null | 'default' | 'comfortable' | 'compact';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VTab.mjs","names":["makeVBtnProps","VBtn","useTextColor","computed","ref","shallowRef","VTabsSymbol","animate","genericComponent","omit","propsFactory","standardEasing","useRender","makeVTabProps","fixed","Boolean","sliderColor","String","hideSlider","direction","type","default","selectedClass","variant","VTab","name","props","setup","_ref","slots","attrs","textColorClasses","sliderColorClasses","textColorStyles","sliderColorStyles","isHorizontal","isSelected","rootEl","sliderEl","updateSlider","_ref2","value","prevEl","$el","parentElement","querySelector","nextEl","color","getComputedStyle","prevBox","getBoundingClientRect","nextBox","xy","XY","rightBottom","widthHeight","prevPos","nextPos","delta","origin","Math","sign","size","abs","scale","max","initialScale","sigma","backgroundColor","transform","transformOrigin","Array","fill","duration","easing","btnProps","filterProps","_createVNode","_mergeProps","class","style","undefined","text"],"sources":["../../../src/components/VTabs/VTab.tsx"],"sourcesContent":["// Styles\nimport './VTab.sass'\n\n// Components\nimport { makeVBtnProps, VBtn } from '@/components/VBtn/VBtn'\n\n// Composables\nimport { useTextColor } from '@/composables/color'\n\n// Utilities\nimport { computed, ref, shallowRef } from 'vue'\nimport { VTabsSymbol } from './shared'\nimport { animate, genericComponent, omit, propsFactory, standardEasing, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\nexport const makeVTabProps = propsFactory({\n fixed: Boolean,\n\n sliderColor: String,\n hideSlider: Boolean,\n\n direction: {\n type: String as PropType<'horizontal' | 'vertical'>,\n default: 'horizontal',\n },\n\n ...omit(makeVBtnProps({\n selectedClass: 'v-tab--selected',\n variant: 'text' as const,\n }), [\n 'active',\n 'block',\n 'flat',\n 'location',\n 'position',\n 'symbol',\n ]),\n}, 'VTab')\n\nexport const VTab = genericComponent()({\n name: 'VTab',\n\n props: makeVTabProps(),\n\n setup (props, { slots, attrs }) {\n const { textColorClasses: sliderColorClasses, textColorStyles: sliderColorStyles } = useTextColor(props, 'sliderColor')\n const isHorizontal = computed(() => props.direction === 'horizontal')\n const isSelected = shallowRef(false)\n\n const rootEl = ref<VBtn>()\n const sliderEl = ref<HTMLElement>()\n\n function updateSlider ({ value }: { value: boolean }) {\n isSelected.value = value\n\n if (value) {\n const prevEl: HTMLElement | undefined = rootEl.value?.$el.parentElement?.querySelector('.v-tab--selected .v-tab__slider')\n const nextEl = sliderEl.value\n\n if (!prevEl || !nextEl) return\n\n const color = getComputedStyle(prevEl).color\n\n const prevBox = prevEl.getBoundingClientRect()\n const nextBox = nextEl.getBoundingClientRect()\n\n const xy = isHorizontal.value ? 'x' : 'y'\n const XY = isHorizontal.value ? 'X' : 'Y'\n const rightBottom = isHorizontal.value ? 'right' : 'bottom'\n const widthHeight = isHorizontal.value ? 'width' : 'height'\n\n const prevPos = prevBox[xy]\n const nextPos = nextBox[xy]\n const delta = prevPos > nextPos\n ? prevBox[rightBottom] - nextBox[rightBottom]\n : prevBox[xy] - nextBox[xy]\n const origin =\n Math.sign(delta) > 0 ? (isHorizontal.value ? 'right' : 'bottom')\n : Math.sign(delta) < 0 ? (isHorizontal.value ? 'left' : 'top')\n : 'center'\n const size = Math.abs(delta) + (Math.sign(delta) < 0 ? prevBox[widthHeight] : nextBox[widthHeight])\n const scale = size / Math.max(prevBox[widthHeight], nextBox[widthHeight]) || 0\n const initialScale = prevBox[widthHeight] / nextBox[widthHeight] || 0\n\n const sigma = 1.5\n animate(nextEl, {\n backgroundColor: [color, 'currentcolor'],\n transform: [\n `translate${XY}(${delta}px) scale${XY}(${initialScale})`,\n `translate${XY}(${delta / sigma}px) scale${XY}(${(scale - 1) / sigma + 1})`,\n 'none',\n ],\n transformOrigin: Array(3).fill(origin),\n }, {\n duration: 225,\n easing: standardEasing,\n })\n }\n }\n\n useRender(() => {\n const
|
|
1
|
+
{"version":3,"file":"VTab.mjs","names":["makeVBtnProps","VBtn","useTextColor","computed","ref","shallowRef","VTabsSymbol","animate","genericComponent","omit","propsFactory","standardEasing","useRender","makeVTabProps","fixed","Boolean","sliderColor","String","hideSlider","direction","type","default","selectedClass","variant","VTab","name","props","setup","_ref","slots","attrs","textColorClasses","sliderColorClasses","textColorStyles","sliderColorStyles","isHorizontal","isSelected","rootEl","sliderEl","updateSlider","_ref2","value","prevEl","$el","parentElement","querySelector","nextEl","color","getComputedStyle","prevBox","getBoundingClientRect","nextBox","xy","XY","rightBottom","widthHeight","prevPos","nextPos","delta","origin","Math","sign","size","abs","scale","max","initialScale","sigma","backgroundColor","transform","transformOrigin","Array","fill","duration","easing","btnProps","filterProps","_createVNode","_mergeProps","class","style","undefined","text"],"sources":["../../../src/components/VTabs/VTab.tsx"],"sourcesContent":["// Styles\nimport './VTab.sass'\n\n// Components\nimport { makeVBtnProps, VBtn } from '@/components/VBtn/VBtn'\n\n// Composables\nimport { useTextColor } from '@/composables/color'\n\n// Utilities\nimport { computed, ref, shallowRef } from 'vue'\nimport { VTabsSymbol } from './shared'\nimport { animate, genericComponent, omit, propsFactory, standardEasing, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\nexport const makeVTabProps = propsFactory({\n fixed: Boolean,\n\n sliderColor: String,\n hideSlider: Boolean,\n\n direction: {\n type: String as PropType<'horizontal' | 'vertical'>,\n default: 'horizontal',\n },\n\n ...omit(makeVBtnProps({\n selectedClass: 'v-tab--selected',\n variant: 'text' as const,\n }), [\n 'active',\n 'block',\n 'flat',\n 'location',\n 'position',\n 'symbol',\n ]),\n}, 'VTab')\n\nexport const VTab = genericComponent()({\n name: 'VTab',\n\n props: makeVTabProps(),\n\n setup (props, { slots, attrs }) {\n const { textColorClasses: sliderColorClasses, textColorStyles: sliderColorStyles } = useTextColor(props, 'sliderColor')\n const isHorizontal = computed(() => props.direction === 'horizontal')\n const isSelected = shallowRef(false)\n\n const rootEl = ref<VBtn>()\n const sliderEl = ref<HTMLElement>()\n\n function updateSlider ({ value }: { value: boolean }) {\n isSelected.value = value\n\n if (value) {\n const prevEl: HTMLElement | undefined = rootEl.value?.$el.parentElement?.querySelector('.v-tab--selected .v-tab__slider')\n const nextEl = sliderEl.value\n\n if (!prevEl || !nextEl) return\n\n const color = getComputedStyle(prevEl).color\n\n const prevBox = prevEl.getBoundingClientRect()\n const nextBox = nextEl.getBoundingClientRect()\n\n const xy = isHorizontal.value ? 'x' : 'y'\n const XY = isHorizontal.value ? 'X' : 'Y'\n const rightBottom = isHorizontal.value ? 'right' : 'bottom'\n const widthHeight = isHorizontal.value ? 'width' : 'height'\n\n const prevPos = prevBox[xy]\n const nextPos = nextBox[xy]\n const delta = prevPos > nextPos\n ? prevBox[rightBottom] - nextBox[rightBottom]\n : prevBox[xy] - nextBox[xy]\n const origin =\n Math.sign(delta) > 0 ? (isHorizontal.value ? 'right' : 'bottom')\n : Math.sign(delta) < 0 ? (isHorizontal.value ? 'left' : 'top')\n : 'center'\n const size = Math.abs(delta) + (Math.sign(delta) < 0 ? prevBox[widthHeight] : nextBox[widthHeight])\n const scale = size / Math.max(prevBox[widthHeight], nextBox[widthHeight]) || 0\n const initialScale = prevBox[widthHeight] / nextBox[widthHeight] || 0\n\n const sigma = 1.5\n animate(nextEl, {\n backgroundColor: [color, 'currentcolor'],\n transform: [\n `translate${XY}(${delta}px) scale${XY}(${initialScale})`,\n `translate${XY}(${delta / sigma}px) scale${XY}(${(scale - 1) / sigma + 1})`,\n 'none',\n ],\n transformOrigin: Array(3).fill(origin),\n }, {\n duration: 225,\n easing: standardEasing,\n })\n }\n }\n\n useRender(() => {\n const btnProps = VBtn.filterProps(props)\n\n return (\n <VBtn\n symbol={ VTabsSymbol }\n ref={ rootEl }\n class={[\n 'v-tab',\n props.class,\n ]}\n style={ props.style }\n tabindex={ isSelected.value ? 0 : -1 }\n role=\"tab\"\n aria-selected={ String(isSelected.value) }\n active={ false }\n { ...btnProps }\n { ...attrs }\n block={ props.fixed }\n maxWidth={ props.fixed ? 300 : undefined }\n onGroup:selected={ updateSlider }\n >\n { slots.default?.() ?? props.text }\n\n { !props.hideSlider && (\n <div\n ref={ sliderEl }\n class={[\n 'v-tab__slider',\n sliderColorClasses.value,\n ]}\n style={ sliderColorStyles.value }\n />\n )}\n </VBtn>\n )\n })\n\n return {}\n },\n})\n\nexport type VTab = InstanceType<typeof VTab>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,aAAa,EAAEC,IAAI,4BAE5B;AAAA,SACSC,YAAY,uCAErB;AACA,SAASC,QAAQ,EAAEC,GAAG,EAAEC,UAAU,QAAQ,KAAK;AAAA,SACtCC,WAAW;AAAA,SACXC,OAAO,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,cAAc,EAAEC,SAAS,gCAEjF;AAGA,OAAO,MAAMC,aAAa,GAAGH,YAAY,CAAC;EACxCI,KAAK,EAAEC,OAAO;EAEdC,WAAW,EAAEC,MAAM;EACnBC,UAAU,EAAEH,OAAO;EAEnBI,SAAS,EAAE;IACTC,IAAI,EAAEH,MAA6C;IACnDI,OAAO,EAAE;EACX,CAAC;EAED,GAAGZ,IAAI,CAACT,aAAa,CAAC;IACpBsB,aAAa,EAAE,iBAAiB;IAChCC,OAAO,EAAE;EACX,CAAC,CAAC,EAAE,CACF,QAAQ,EACR,OAAO,EACP,MAAM,EACN,UAAU,EACV,UAAU,EACV,QAAQ,CACT;AACH,CAAC,EAAE,MAAM,CAAC;AAEV,OAAO,MAAMC,IAAI,GAAGhB,gBAAgB,EAAE,CAAC;EACrCiB,IAAI,EAAE,MAAM;EAEZC,KAAK,EAAEb,aAAa,EAAE;EAEtBc,KAAKA,CAAED,KAAK,EAAAE,IAAA,EAAoB;IAAA,IAAlB;MAAEC,KAAK;MAAEC;IAAM,CAAC,GAAAF,IAAA;IAC5B,MAAM;MAAEG,gBAAgB,EAAEC,kBAAkB;MAAEC,eAAe,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,CAAC,EAAE;UACDc,QAAQ,EAAE,GAAG;UACbC,MAAM,EAAE/D;QACV,CAAC,CAAC;MACJ;IACF;IAEAC,SAAS,CAAC,MAAM;MACd,MAAM+D,QAAQ,GAAG1E,IAAI,CAAC2E,WAAW,CAAClD,KAAK,CAAC;MAExC,OAAAmD,YAAA,CAAA5E,IAAA,EAAA6E,WAAA;QAAA,UAEaxE,WAAW;QAAA,OACd+B,MAAM;QAAA,SACL,CACL,OAAO,EACPX,KAAK,CAACqD,KAAK,CACZ;QAAA,SACOrD,KAAK,CAACsD,KAAK;QAAA,YACR5C,UAAU,CAACK,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC;QAAA,QAC/B,KAAK;QAAA,iBACMxB,MAAM,CAACmB,UAAU,CAACK,KAAK,CAAC;QAAA,UAC/B;MAAK,GACTkC,QAAQ,EACR7C,KAAK;QAAA,SACFJ,KAAK,CAACZ,KAAK;QAAA,YACRY,KAAK,CAACZ,KAAK,GAAG,GAAG,GAAGmE,SAAS;QAAA,oBACrB1C;MAAY;QAAAlB,OAAA,EAAAA,CAAA,MAE7BQ,KAAK,CAACR,OAAO,IAAI,IAAIK,KAAK,CAACwD,IAAI,EAE/B,CAACxD,KAAK,CAACR,UAAU,IAAA2D,YAAA;UAAA,OAETvC,QAAQ;UAAA,SACP,CACL,eAAe,EACfN,kBAAkB,CAACS,KAAK,CACzB;UAAA,SACOP,iBAAiB,CAACO;QAAK,QAElC;MAAA;IAGP,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC"}
|
|
@@ -79,7 +79,7 @@ export const VTabs = genericComponent()({
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
useRender(() => {
|
|
82
|
-
const
|
|
82
|
+
const slideGroupProps = VSlideGroup.filterProps(props);
|
|
83
83
|
return _createVNode(VSlideGroup, _mergeProps(slideGroupProps, {
|
|
84
84
|
"modelValue": model.value,
|
|
85
85
|
"onUpdate:modelValue": $event => model.value = $event,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VTabs.mjs","names":["VTab","makeVSlideGroupProps","VSlideGroup","useBackgroundColor","provideDefaults","makeDensityProps","useDensity","useProxiedModel","makeTagProps","computed","toRef","convertToUnit","genericComponent","isObject","propsFactory","useRender","VTabsSymbol","parseItems","items","map","item","text","value","makeVTabsProps","alignTabs","type","String","default","color","fixedTabs","Boolean","Array","stacked","bgColor","grow","height","Number","undefined","hideSlider","sliderColor","mandatory","VTabs","name","props","emits","v","setup","_ref","slots","model","parsedItems","densityClasses","backgroundColorClasses","backgroundColorStyles","direction","fixed","slideGroupProps","filterProps","_createVNode","_mergeProps","$event","class","style"],"sources":["../../../src/components/VTabs/VTabs.tsx"],"sourcesContent":["// Styles\nimport './VTabs.sass'\n\n// Components\nimport { VTab } from './VTab'\nimport { makeVSlideGroupProps, VSlideGroup } from '@/components/VSlideGroup/VSlideGroup'\n\n// Composables\nimport { useBackgroundColor } from '@/composables/color'\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { makeTagProps } from '@/composables/tag'\n\n// Utilities\nimport { computed, toRef } from 'vue'\nimport { convertToUnit, genericComponent, isObject, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport { VTabsSymbol } from './shared'\n\nexport type TabItem = string | number | Record<string, any>\n\nfunction parseItems (items: readonly TabItem[] | undefined) {\n if (!items) return []\n\n return items.map(item => {\n if (!isObject(item)) return { text: item, value: item }\n\n return item\n })\n}\n\nexport const makeVTabsProps = propsFactory({\n alignTabs: {\n type: String as PropType<'start' | 'title' | 'center' | 'end'>,\n default: 'start',\n },\n color: String,\n fixedTabs: Boolean,\n items: {\n type: Array as PropType<readonly TabItem[]>,\n default: () => ([]),\n },\n stacked: Boolean,\n bgColor: String,\n grow: Boolean,\n height: {\n type: [Number, String],\n default: undefined,\n },\n hideSlider: Boolean,\n sliderColor: String,\n\n ...makeVSlideGroupProps({ mandatory: 'force' as const }),\n ...makeDensityProps(),\n ...makeTagProps(),\n}, 'VTabs')\n\nexport const VTabs = genericComponent()({\n name: 'VTabs',\n\n props: makeVTabsProps(),\n\n emits: {\n 'update:modelValue': (v: unknown) => true,\n },\n\n setup (props, { slots }) {\n const model = useProxiedModel(props, 'modelValue')\n const parsedItems = computed(() => parseItems(props.items))\n const { densityClasses } = useDensity(props)\n const { backgroundColorClasses, backgroundColorStyles } = useBackgroundColor(toRef(props, 'bgColor'))\n\n provideDefaults({\n VTab: {\n color: toRef(props, 'color'),\n direction: toRef(props, 'direction'),\n stacked: toRef(props, 'stacked'),\n fixed: toRef(props, 'fixedTabs'),\n sliderColor: toRef(props, 'sliderColor'),\n hideSlider: toRef(props, 'hideSlider'),\n },\n })\n\n useRender(() => {\n const
|
|
1
|
+
{"version":3,"file":"VTabs.mjs","names":["VTab","makeVSlideGroupProps","VSlideGroup","useBackgroundColor","provideDefaults","makeDensityProps","useDensity","useProxiedModel","makeTagProps","computed","toRef","convertToUnit","genericComponent","isObject","propsFactory","useRender","VTabsSymbol","parseItems","items","map","item","text","value","makeVTabsProps","alignTabs","type","String","default","color","fixedTabs","Boolean","Array","stacked","bgColor","grow","height","Number","undefined","hideSlider","sliderColor","mandatory","VTabs","name","props","emits","v","setup","_ref","slots","model","parsedItems","densityClasses","backgroundColorClasses","backgroundColorStyles","direction","fixed","slideGroupProps","filterProps","_createVNode","_mergeProps","$event","class","style"],"sources":["../../../src/components/VTabs/VTabs.tsx"],"sourcesContent":["// Styles\nimport './VTabs.sass'\n\n// Components\nimport { VTab } from './VTab'\nimport { makeVSlideGroupProps, VSlideGroup } from '@/components/VSlideGroup/VSlideGroup'\n\n// Composables\nimport { useBackgroundColor } from '@/composables/color'\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { makeTagProps } from '@/composables/tag'\n\n// Utilities\nimport { computed, toRef } from 'vue'\nimport { convertToUnit, genericComponent, isObject, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport { VTabsSymbol } from './shared'\n\nexport type TabItem = string | number | Record<string, any>\n\nfunction parseItems (items: readonly TabItem[] | undefined) {\n if (!items) return []\n\n return items.map(item => {\n if (!isObject(item)) return { text: item, value: item }\n\n return item\n })\n}\n\nexport const makeVTabsProps = propsFactory({\n alignTabs: {\n type: String as PropType<'start' | 'title' | 'center' | 'end'>,\n default: 'start',\n },\n color: String,\n fixedTabs: Boolean,\n items: {\n type: Array as PropType<readonly TabItem[]>,\n default: () => ([]),\n },\n stacked: Boolean,\n bgColor: String,\n grow: Boolean,\n height: {\n type: [Number, String],\n default: undefined,\n },\n hideSlider: Boolean,\n sliderColor: String,\n\n ...makeVSlideGroupProps({ mandatory: 'force' as const }),\n ...makeDensityProps(),\n ...makeTagProps(),\n}, 'VTabs')\n\nexport const VTabs = genericComponent()({\n name: 'VTabs',\n\n props: makeVTabsProps(),\n\n emits: {\n 'update:modelValue': (v: unknown) => true,\n },\n\n setup (props, { slots }) {\n const model = useProxiedModel(props, 'modelValue')\n const parsedItems = computed(() => parseItems(props.items))\n const { densityClasses } = useDensity(props)\n const { backgroundColorClasses, backgroundColorStyles } = useBackgroundColor(toRef(props, 'bgColor'))\n\n provideDefaults({\n VTab: {\n color: toRef(props, 'color'),\n direction: toRef(props, 'direction'),\n stacked: toRef(props, 'stacked'),\n fixed: toRef(props, 'fixedTabs'),\n sliderColor: toRef(props, 'sliderColor'),\n hideSlider: toRef(props, 'hideSlider'),\n },\n })\n\n useRender(() => {\n const slideGroupProps = VSlideGroup.filterProps(props)\n\n return (\n <VSlideGroup\n { ...slideGroupProps }\n v-model={ model.value }\n class={[\n 'v-tabs',\n `v-tabs--${props.direction}`,\n `v-tabs--align-tabs-${props.alignTabs}`,\n {\n 'v-tabs--fixed-tabs': props.fixedTabs,\n 'v-tabs--grow': props.grow,\n 'v-tabs--stacked': props.stacked,\n },\n densityClasses.value,\n backgroundColorClasses.value,\n props.class,\n ]}\n style={[\n { '--v-tabs-height': convertToUnit(props.height) },\n backgroundColorStyles.value,\n props.style,\n ]}\n role=\"tablist\"\n symbol={ VTabsSymbol }\n >\n { slots.default ? slots.default() : parsedItems.value.map(item => (\n <VTab { ...item } key={ item.text } />\n ))}\n </VSlideGroup>\n )\n })\n\n return {}\n },\n})\n\nexport type VTabs = InstanceType<typeof VTabs>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI;AAAA,SACJC,oBAAoB,EAAEC,WAAW,0CAE1C;AAAA,SACSC,kBAAkB;AAAA,SAClBC,eAAe;AAAA,SACfC,gBAAgB,EAAEC,UAAU;AAAA,SAC5BC,eAAe;AAAA,SACfC,YAAY,qCAErB;AACA,SAASC,QAAQ,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAC5BC,aAAa,EAAEC,gBAAgB,EAAEC,QAAQ,EAAEC,YAAY,EAAEC,SAAS,gCAE3E;AAAA,SAESC,WAAW;AAIpB,SAASC,UAAUA,CAAEC,KAAqC,EAAE;EAC1D,IAAI,CAACA,KAAK,EAAE,OAAO,EAAE;EAErB,OAAOA,KAAK,CAACC,GAAG,CAACC,IAAI,IAAI;IACvB,IAAI,CAACP,QAAQ,CAACO,IAAI,CAAC,EAAE,OAAO;MAAEC,IAAI,EAAED,IAAI;MAAEE,KAAK,EAAEF;IAAK,CAAC;IAEvD,OAAOA,IAAI;EACb,CAAC,CAAC;AACJ;AAEA,OAAO,MAAMG,cAAc,GAAGT,YAAY,CAAC;EACzCU,SAAS,EAAE;IACTC,IAAI,EAAEC,MAAwD;IAC9DC,OAAO,EAAE;EACX,CAAC;EACDC,KAAK,EAAEF,MAAM;EACbG,SAAS,EAAEC,OAAO;EAClBZ,KAAK,EAAE;IACLO,IAAI,EAAEM,KAAqC;IAC3CJ,OAAO,EAAEA,CAAA,KAAO;EAClB,CAAC;EACDK,OAAO,EAAEF,OAA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 +4,7 @@ import { ComponentPropsOptions, ExtractPropTypes, JSXComponent, PropType, Compon
|
|
|
4
4
|
import * as vue_router from 'vue-router';
|
|
5
5
|
|
|
6
6
|
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
7
|
-
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T):
|
|
7
|
+
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
|
|
@@ -112,11 +112,11 @@ export const VTextField = genericComponent()({
|
|
|
112
112
|
const hasCounter = !!(slots.counter || props.counter !== false && props.counter != null);
|
|
113
113
|
const hasDetails = !!(hasCounter || slots.details);
|
|
114
114
|
const [rootAttrs, inputAttrs] = filterInputAttrs(attrs);
|
|
115
|
-
const
|
|
115
|
+
const {
|
|
116
116
|
modelValue: _,
|
|
117
117
|
...inputProps
|
|
118
|
-
}
|
|
119
|
-
const
|
|
118
|
+
} = VInput.filterProps(props);
|
|
119
|
+
const fieldProps = filterFieldProps(props);
|
|
120
120
|
return _createVNode(VInput, _mergeProps({
|
|
121
121
|
"ref": vInputRef,
|
|
122
122
|
"modelValue": model.value,
|