vuetify 3.0.2 → 3.0.4
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 +902 -902
- package/dist/json/importMap.json +66 -66
- package/dist/json/web-types.json +1178 -1136
- package/dist/vuetify.css +124 -126
- package/dist/vuetify.d.ts +389 -196
- package/dist/vuetify.esm.js +175 -144
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +175 -144
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +696 -692
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/index.d.ts +1 -1
- package/lib/components/VAppBar/VAppBar.mjs +2 -2
- package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
- package/lib/components/VAppBar/index.d.ts +275 -62
- package/lib/components/VAutocomplete/index.d.ts +22 -22
- package/lib/components/VCheckbox/VCheckbox.css +1 -1
- package/lib/components/VCheckbox/VCheckbox.sass +1 -1
- package/lib/components/VChip/VChip.mjs +14 -6
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/index.d.ts +3 -1
- package/lib/components/VChipGroup/index.d.ts +1 -1
- package/lib/components/VColorPicker/VColorPicker.mjs +2 -2
- package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerPreview.mjs +2 -2
- package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerSwatches.mjs.map +1 -1
- package/lib/components/VColorPicker/util/index.mjs +24 -14
- package/lib/components/VColorPicker/util/index.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.ts +22 -22
- package/lib/components/VExpansionPanel/index.d.ts +1 -1
- package/lib/components/VField/index.d.ts +6 -6
- package/lib/components/VFileInput/index.d.ts +2 -2
- package/lib/components/VFooter/VFooter.mjs +1 -1
- package/lib/components/VFooter/VFooter.mjs.map +1 -1
- package/lib/components/VGrid/VGrid.css +2 -2
- package/lib/components/VGrid/VGrid.sass +1 -1
- package/lib/components/VLazy/VLazy.mjs +2 -1
- package/lib/components/VLazy/VLazy.mjs.map +1 -1
- package/lib/components/VList/VListItem.mjs +2 -1
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +2 -2
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
- package/lib/components/VOverlay/locationStrategies.mjs +3 -1
- package/lib/components/VOverlay/locationStrategies.mjs.map +1 -1
- package/lib/components/VPagination/index.d.ts +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.sass +1 -1
- package/lib/components/VProgressLinear/_variables.scss +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.mjs +1 -2
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VSelect/index.d.ts +22 -22
- package/lib/components/VSelectionControl/VSelectionControl.css +4 -0
- package/lib/components/VSelectionControl/VSelectionControl.sass +4 -0
- package/lib/components/VSelectionControl/index.d.ts +6 -6
- package/lib/components/VSnackbar/index.d.ts +4 -4
- package/lib/components/VSwitch/VSwitch.css +1 -1
- package/lib/components/VSwitch/VSwitch.sass +1 -1
- package/lib/components/VSystemBar/VSystemBar.css +1 -1
- package/lib/components/VSystemBar/_variables.scss +1 -1
- package/lib/components/VTabs/VTab.css +1 -3
- package/lib/components/VTabs/VTab.sass +1 -4
- package/lib/components/VTabs/VTabs.css +0 -4
- package/lib/components/VTabs/VTabs.sass +0 -5
- package/lib/components/VTextField/index.d.ts +18 -18
- package/lib/components/VTextarea/index.d.ts +1 -1
- package/lib/components/VToolbar/VToolbar.mjs +32 -22
- package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
- package/lib/components/VToolbar/index.d.ts +9 -8
- package/lib/components/index.d.ts +370 -177
- package/lib/components/transitions/dialog-transition.mjs +2 -2
- package/lib/components/transitions/dialog-transition.mjs.map +1 -1
- package/lib/composables/theme.mjs +7 -7
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/composables/validation.mjs +1 -1
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.ts +19 -19
- package/lib/util/color/APCA.mjs +6 -6
- package/lib/util/color/APCA.mjs.map +1 -1
- package/lib/util/color/transformSRGB.mjs +15 -7
- package/lib/util/color/transformSRGB.mjs.map +1 -1
- package/lib/util/colorUtils.mjs +64 -81
- package/lib/util/colorUtils.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -160,8 +160,8 @@ declare const VAlert: vue.DefineComponent<{
|
|
|
160
160
|
rounded: string | number | boolean;
|
|
161
161
|
prominent: boolean;
|
|
162
162
|
density: Density;
|
|
163
|
-
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
|
164
163
|
modelValue: boolean;
|
|
164
|
+
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
|
165
165
|
closable: boolean;
|
|
166
166
|
closeIcon: IconValue;
|
|
167
167
|
closeLabel: string;
|
|
@@ -7,8 +7,8 @@ import { filterToolbarProps, makeVToolbarProps, VToolbar } from "../VToolbar/VTo
|
|
|
7
7
|
import { makeLayoutItemProps, useLayoutItem } from "../../composables/layout.mjs";
|
|
8
8
|
import { useProxiedModel } from "../../composables/proxiedModel.mjs"; // Utilities
|
|
9
9
|
import { computed, ref, toRef } from 'vue';
|
|
10
|
-
import {
|
|
11
|
-
export const VAppBar =
|
|
10
|
+
import { genericComponent, useRender } from "../../util/index.mjs"; // Types
|
|
11
|
+
export const VAppBar = genericComponent()({
|
|
12
12
|
name: 'VAppBar',
|
|
13
13
|
props: {
|
|
14
14
|
// TODO: Implement scrolling techniques
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VAppBar.mjs","names":["filterToolbarProps","makeVToolbarProps","VToolbar","makeLayoutItemProps","useLayoutItem","useProxiedModel","computed","ref","toRef","
|
|
1
|
+
{"version":3,"file":"VAppBar.mjs","names":["filterToolbarProps","makeVToolbarProps","VToolbar","makeLayoutItemProps","useLayoutItem","useProxiedModel","computed","ref","toRef","genericComponent","useRender","VAppBar","name","props","modelValue","type","Boolean","default","location","String","validator","value","includes","height","Number","emits","setup","slots","vToolbarRef","isActive","contentHeight","extensionHeight","layoutItemStyles","id","order","parseInt","position","layoutSize","elementSize","active","absolute","toolbarProps","undefined"],"sources":["../../../src/components/VAppBar/VAppBar.tsx"],"sourcesContent":["// Styles\nimport './VAppBar.sass'\n\n// Components\nimport { filterToolbarProps, makeVToolbarProps, VToolbar } from '@/components/VToolbar/VToolbar'\n\n// Composables\nimport { makeLayoutItemProps, useLayoutItem } from '@/composables/layout'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref, toRef } from 'vue'\nimport { genericComponent, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { SlotsToProps } from '@/util'\nimport type { VToolbarSlots } from '@/components/VToolbar/VToolbar'\n\nexport const VAppBar = genericComponent<new () => {\n $props: SlotsToProps<VToolbarSlots>\n}>()({\n name: 'VAppBar',\n\n props: {\n // TODO: Implement scrolling techniques\n // hideOnScroll: Boolean\n // invertedScroll: Boolean\n // collapseOnScroll: Boolean\n // elevateOnScroll: Boolean\n // shrinkOnScroll: Boolean\n // fadeImageOnScroll: Boolean\n modelValue: {\n type: Boolean,\n default: true,\n },\n location: {\n type: String as PropType<'top' | 'bottom'>,\n default: 'top',\n validator: (value: any) => ['top', 'bottom'].includes(value),\n },\n\n ...makeVToolbarProps(),\n ...makeLayoutItemProps(),\n\n height: {\n type: [Number, String],\n default: 64,\n },\n },\n\n emits: {\n 'update:modelValue': (value: boolean) => true,\n },\n\n setup (props, { slots }) {\n const vToolbarRef = ref()\n const isActive = useProxiedModel(props, 'modelValue')\n const height = computed(() => {\n const height: number = vToolbarRef.value?.contentHeight ?? 0\n const extensionHeight: number = vToolbarRef.value?.extensionHeight ?? 0\n\n return (height + extensionHeight)\n })\n const { layoutItemStyles } = useLayoutItem({\n id: props.name,\n order: computed(() => parseInt(props.order, 10)),\n position: toRef(props, 'location'),\n layoutSize: height,\n elementSize: height,\n active: isActive,\n absolute: toRef(props, 'absolute'),\n })\n\n useRender(() => {\n const [toolbarProps] = filterToolbarProps(props)\n\n return (\n <VToolbar\n ref={ vToolbarRef }\n class={[\n 'v-app-bar',\n {\n 'v-app-bar--bottom': props.location === 'bottom',\n },\n ]}\n style={{\n ...layoutItemStyles.value,\n height: undefined,\n }}\n { ...toolbarProps }\n v-slots={ slots }\n />\n )\n })\n\n return {}\n },\n})\n\nexport type VAppBar = InstanceType<typeof VAppBar>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,kBAAkB,EAAEC,iBAAiB,EAAEC,QAAQ,oCAExD;AAAA,SACSC,mBAAmB,EAAEC,aAAa;AAAA,SAClCC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACjCC,gBAAgB,EAAEC,SAAS,gCAEpC;AAKA,OAAO,MAAMC,OAAO,GAAGF,gBAAgB,EAEnC,CAAC;EACHG,IAAI,EAAE,SAAS;EAEfC,KAAK,EAAE;IACL;IACA;IACA;IACA;IACA;IACA;IACA;IACAC,UAAU,EAAE;MACVC,IAAI,EAAEC,OAAO;MACbC,OAAO,EAAE;IACX,CAAC;IACDC,QAAQ,EAAE;MACRH,IAAI,EAAEI,MAAoC;MAC1CF,OAAO,EAAE,KAAK;MACdG,SAAS,EAAGC,KAAU,IAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,CAACC,QAAQ,CAACD,KAAK;IAC7D,CAAC;IAED,GAAGpB,iBAAiB,EAAE;IACtB,GAAGE,mBAAmB,EAAE;IAExBoB,MAAM,EAAE;MACNR,IAAI,EAAE,CAACS,MAAM,EAAEL,MAAM,CAAC;MACtBF,OAAO,EAAE;IACX;EACF,CAAC;EAEDQ,KAAK,EAAE;IACL,mBAAmB,EAAGJ,KAAc,IAAK;EAC3C,CAAC;EAEDK,KAAK,CAAEb,KAAK,QAAa;IAAA,IAAX;MAAEc;IAAM,CAAC;IACrB,MAAMC,WAAW,GAAGrB,GAAG,EAAE;IACzB,MAAMsB,QAAQ,GAAGxB,eAAe,CAACQ,KAAK,EAAE,YAAY,CAAC;IACrD,MAAMU,MAAM,GAAGjB,QAAQ,CAAC,MAAM;MAAA;MAC5B,MAAMiB,MAAc,GAAG,uBAAAK,WAAW,CAACP,KAAK,qBAAjB,mBAAmBS,aAAa,KAAI,CAAC;MAC5D,MAAMC,eAAuB,GAAG,wBAAAH,WAAW,CAACP,KAAK,qBAAjB,oBAAmBU,eAAe,KAAI,CAAC;MAEvE,OAAQR,MAAM,GAAGQ,eAAe;IAClC,CAAC,CAAC;IACF,MAAM;MAAEC;IAAiB,CAAC,GAAG5B,aAAa,CAAC;MACzC6B,EAAE,EAAEpB,KAAK,CAACD,IAAI;MACdsB,KAAK,EAAE5B,QAAQ,CAAC,MAAM6B,QAAQ,CAACtB,KAAK,CAACqB,KAAK,EAAE,EAAE,CAAC,CAAC;MAChDE,QAAQ,EAAE5B,KAAK,CAACK,KAAK,EAAE,UAAU,CAAC;MAClCwB,UAAU,EAAEd,MAAM;MAClBe,WAAW,EAAEf,MAAM;MACnBgB,MAAM,EAAEV,QAAQ;MAChBW,QAAQ,EAAEhC,KAAK,CAACK,KAAK,EAAE,UAAU;IACnC,CAAC,CAAC;IAEFH,SAAS,CAAC,MAAM;MACd,MAAM,CAAC+B,YAAY,CAAC,GAAGzC,kBAAkB,CAACa,KAAK,CAAC;MAEhD;QAAA,OAEUe,WAAW;QAAA,SACV,CACL,WAAW,EACX;UACE,mBAAmB,EAAEf,KAAK,CAACK,QAAQ,KAAK;QAC1C,CAAC,CACF;QAAA,SACM;UACL,GAAGc,gBAAgB,CAACX,KAAK;UACzBE,MAAM,EAAEmB;QACV;MAAC,GACID,YAAY,GACPd,KAAK;IAGrB,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC"}
|
|
@@ -1,66 +1,275 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { PropType, JSXComponent } from 'vue';
|
|
2
|
+
import { VNodeChild, PropType, JSXComponent } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare type SlotsToProps<T extends Record<string, any>> = T extends Record<string, Slot> ? ({
|
|
5
|
+
$children?: (VNodeChild | (keyof T extends 'default' ? T['default'] : {}) | {
|
|
6
|
+
[K in keyof T]?: T[K];
|
|
7
|
+
});
|
|
8
|
+
'v-slots'?: {
|
|
9
|
+
[K in keyof T]?: T[K] | false;
|
|
10
|
+
};
|
|
11
|
+
} & {
|
|
12
|
+
[K in keyof T as `v-slot:${K & string}`]?: T[K] | false;
|
|
13
|
+
}) : T extends Record<string, any[]> ? SlotsToProps<MakeSlots<T>> : never;
|
|
14
|
+
declare type Slot<T extends any[] = any[]> = (...args: T) => VNodeChild;
|
|
15
|
+
declare type MakeSlots<T extends Record<string, any[]>> = {
|
|
16
|
+
[K in keyof T]?: Slot<T[K]>;
|
|
17
|
+
};
|
|
3
18
|
|
|
4
19
|
declare type Density = null | 'prominent' | 'default' | 'comfortable' | 'compact';
|
|
20
|
+
declare type VToolbarSlots = MakeSlots<{
|
|
21
|
+
default: [];
|
|
22
|
+
image: [];
|
|
23
|
+
prepend: [];
|
|
24
|
+
append: [];
|
|
25
|
+
title: [];
|
|
26
|
+
extension: [];
|
|
27
|
+
}>;
|
|
5
28
|
|
|
6
|
-
declare const VAppBar:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
29
|
+
declare const VAppBar: {
|
|
30
|
+
new (...args: any[]): {
|
|
31
|
+
$: vue.ComponentInternalInstance;
|
|
32
|
+
$data: {};
|
|
33
|
+
$props: Partial<{
|
|
34
|
+
flat: boolean;
|
|
35
|
+
absolute: boolean;
|
|
36
|
+
location: "top" | "bottom";
|
|
37
|
+
height: string | number;
|
|
38
|
+
order: string | number;
|
|
39
|
+
tag: string;
|
|
40
|
+
collapse: boolean;
|
|
41
|
+
rounded: string | number | boolean;
|
|
42
|
+
density: Density;
|
|
43
|
+
extended: boolean;
|
|
44
|
+
extensionHeight: string | number;
|
|
45
|
+
floating: boolean;
|
|
46
|
+
modelValue: boolean;
|
|
47
|
+
}> & Omit<Readonly<vue.ExtractPropTypes<Omit<{
|
|
48
|
+
height: {
|
|
49
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
50
|
+
default: number;
|
|
51
|
+
};
|
|
52
|
+
name: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
};
|
|
55
|
+
order: {
|
|
56
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
absolute: BooleanConstructor;
|
|
60
|
+
theme: StringConstructor;
|
|
61
|
+
tag: Omit<{
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
}, "type" | "default"> & {
|
|
65
|
+
type: PropType<string>;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
rounded: {
|
|
69
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
elevation: {
|
|
73
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
74
|
+
validator(v: any): boolean;
|
|
75
|
+
};
|
|
76
|
+
border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
77
|
+
collapse: BooleanConstructor;
|
|
78
|
+
color: StringConstructor;
|
|
79
|
+
density: {
|
|
80
|
+
type: PropType<Density>;
|
|
81
|
+
default: string;
|
|
82
|
+
validator: (v: any) => boolean;
|
|
83
|
+
};
|
|
84
|
+
extended: BooleanConstructor;
|
|
85
|
+
extensionHeight: {
|
|
86
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
87
|
+
default: number;
|
|
88
|
+
};
|
|
89
|
+
flat: BooleanConstructor;
|
|
90
|
+
floating: BooleanConstructor;
|
|
91
|
+
image: StringConstructor;
|
|
92
|
+
title: StringConstructor;
|
|
93
|
+
modelValue: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
location: {
|
|
98
|
+
type: PropType<"top" | "bottom">;
|
|
99
|
+
default: string;
|
|
100
|
+
validator: (value: any) => boolean;
|
|
101
|
+
};
|
|
102
|
+
}, "$children" | "v-slots" | "v-slot:default" | "v-slot:image" | "v-slot:prepend" | "v-slot:append" | "v-slot:title" | "v-slot:extension">>> & {
|
|
103
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
104
|
+
} & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, "flat" | "absolute" | "location" | "height" | "order" | "tag" | "collapse" | "rounded" | "density" | "extended" | "extensionHeight" | "floating" | "modelValue">;
|
|
105
|
+
$attrs: {
|
|
106
|
+
[x: string]: unknown;
|
|
107
|
+
};
|
|
108
|
+
$refs: {
|
|
109
|
+
[x: string]: unknown;
|
|
110
|
+
};
|
|
111
|
+
$slots: Readonly<{
|
|
112
|
+
[name: string]: vue.Slot | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
$root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
115
|
+
$parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
116
|
+
$emit: (event: "update:modelValue", value: boolean) => void;
|
|
117
|
+
$el: any;
|
|
118
|
+
$options: vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<Omit<{
|
|
119
|
+
height: {
|
|
120
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
121
|
+
default: number;
|
|
122
|
+
};
|
|
123
|
+
name: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
};
|
|
126
|
+
order: {
|
|
127
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
128
|
+
default: number;
|
|
129
|
+
};
|
|
130
|
+
absolute: BooleanConstructor;
|
|
131
|
+
theme: StringConstructor;
|
|
132
|
+
tag: Omit<{
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
default: string;
|
|
135
|
+
}, "type" | "default"> & {
|
|
136
|
+
type: PropType<string>;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
rounded: {
|
|
140
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
141
|
+
default: undefined;
|
|
142
|
+
};
|
|
143
|
+
elevation: {
|
|
144
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
145
|
+
validator(v: any): boolean;
|
|
146
|
+
};
|
|
147
|
+
border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
148
|
+
collapse: BooleanConstructor;
|
|
149
|
+
color: StringConstructor;
|
|
150
|
+
density: {
|
|
151
|
+
type: PropType<Density>;
|
|
152
|
+
default: string;
|
|
153
|
+
validator: (v: any) => boolean;
|
|
154
|
+
};
|
|
155
|
+
extended: BooleanConstructor;
|
|
156
|
+
extensionHeight: {
|
|
157
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
158
|
+
default: number;
|
|
159
|
+
};
|
|
160
|
+
flat: BooleanConstructor;
|
|
161
|
+
floating: BooleanConstructor;
|
|
162
|
+
image: StringConstructor;
|
|
163
|
+
title: StringConstructor;
|
|
164
|
+
modelValue: {
|
|
165
|
+
type: BooleanConstructor;
|
|
166
|
+
default: boolean;
|
|
167
|
+
};
|
|
168
|
+
location: {
|
|
169
|
+
type: PropType<"top" | "bottom">;
|
|
170
|
+
default: string;
|
|
171
|
+
validator: (value: any) => boolean;
|
|
172
|
+
};
|
|
173
|
+
}, "$children" | "v-slots" | "v-slot:default" | "v-slot:image" | "v-slot:prepend" | "v-slot:append" | "v-slot:title" | "v-slot:extension">>> & {
|
|
174
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
175
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
|
176
|
+
'update:modelValue': (value: boolean) => boolean;
|
|
177
|
+
}, "$children" | "v-slots" | "v-slot:default" | "v-slot:image" | "v-slot:prepend" | "v-slot:append" | "v-slot:title" | "v-slot:extension">, string, {
|
|
178
|
+
flat: boolean;
|
|
179
|
+
absolute: boolean;
|
|
180
|
+
location: "top" | "bottom";
|
|
181
|
+
height: string | number;
|
|
182
|
+
order: string | number;
|
|
183
|
+
tag: string;
|
|
184
|
+
collapse: boolean;
|
|
185
|
+
rounded: string | number | boolean;
|
|
186
|
+
density: Density;
|
|
187
|
+
extended: boolean;
|
|
188
|
+
extensionHeight: string | number;
|
|
189
|
+
floating: boolean;
|
|
190
|
+
modelValue: boolean;
|
|
191
|
+
}> & {
|
|
192
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
193
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
194
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
195
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
196
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
197
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
198
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
199
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
200
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
201
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
202
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
203
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
204
|
+
renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
205
|
+
renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
206
|
+
errorCaptured?: (((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
207
|
+
};
|
|
208
|
+
$forceUpdate: () => void;
|
|
209
|
+
$nextTick: typeof vue.nextTick;
|
|
210
|
+
$watch(source: string | Function, cb: Function, options?: vue.WatchOptions<boolean> | undefined): vue.WatchStopHandle;
|
|
211
|
+
} & Readonly<vue.ExtractPropTypes<Omit<{
|
|
212
|
+
height: {
|
|
213
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
214
|
+
default: number;
|
|
215
|
+
};
|
|
216
|
+
name: {
|
|
217
|
+
type: StringConstructor;
|
|
218
|
+
};
|
|
219
|
+
order: {
|
|
220
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
221
|
+
default: number;
|
|
222
|
+
};
|
|
223
|
+
absolute: BooleanConstructor;
|
|
224
|
+
theme: StringConstructor;
|
|
225
|
+
tag: Omit<{
|
|
226
|
+
type: StringConstructor;
|
|
227
|
+
default: string;
|
|
228
|
+
}, "type" | "default"> & {
|
|
229
|
+
type: PropType<string>;
|
|
230
|
+
default: string;
|
|
231
|
+
};
|
|
232
|
+
rounded: {
|
|
233
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
234
|
+
default: undefined;
|
|
235
|
+
};
|
|
236
|
+
elevation: {
|
|
237
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
238
|
+
validator(v: any): boolean;
|
|
239
|
+
};
|
|
240
|
+
border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
241
|
+
collapse: BooleanConstructor;
|
|
242
|
+
color: StringConstructor;
|
|
243
|
+
density: {
|
|
244
|
+
type: PropType<Density>;
|
|
245
|
+
default: string;
|
|
246
|
+
validator: (v: any) => boolean;
|
|
247
|
+
};
|
|
248
|
+
extended: BooleanConstructor;
|
|
249
|
+
extensionHeight: {
|
|
250
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
251
|
+
default: number;
|
|
252
|
+
};
|
|
253
|
+
flat: BooleanConstructor;
|
|
254
|
+
floating: BooleanConstructor;
|
|
255
|
+
image: StringConstructor;
|
|
256
|
+
title: StringConstructor;
|
|
257
|
+
modelValue: {
|
|
258
|
+
type: BooleanConstructor;
|
|
259
|
+
default: boolean;
|
|
260
|
+
};
|
|
261
|
+
location: {
|
|
262
|
+
type: PropType<"top" | "bottom">;
|
|
263
|
+
default: string;
|
|
264
|
+
validator: (value: any) => boolean;
|
|
265
|
+
};
|
|
266
|
+
}, "$children" | "v-slots" | "v-slot:default" | "v-slot:image" | "v-slot:prepend" | "v-slot:append" | "v-slot:title" | "v-slot:extension">>> & {
|
|
267
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
268
|
+
} & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties;
|
|
269
|
+
__isFragment?: undefined;
|
|
270
|
+
__isTeleport?: undefined;
|
|
271
|
+
__isSuspense?: undefined;
|
|
272
|
+
} & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<Omit<{
|
|
64
273
|
height: {
|
|
65
274
|
type: (StringConstructor | NumberConstructor)[];
|
|
66
275
|
default: number;
|
|
@@ -115,9 +324,11 @@ declare const VAppBar: vue.DefineComponent<{
|
|
|
115
324
|
default: string;
|
|
116
325
|
validator: (value: any) => boolean;
|
|
117
326
|
};
|
|
118
|
-
}
|
|
327
|
+
}, "$children" | "v-slots" | "v-slot:default" | "v-slot:image" | "v-slot:prepend" | "v-slot:append" | "v-slot:title" | "v-slot:extension">>> & {
|
|
119
328
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
120
|
-
}, {
|
|
329
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
|
330
|
+
'update:modelValue': (value: boolean) => boolean;
|
|
331
|
+
}, "$children" | "v-slots" | "v-slot:default" | "v-slot:image" | "v-slot:prepend" | "v-slot:append" | "v-slot:title" | "v-slot:extension">, string, {
|
|
121
332
|
flat: boolean;
|
|
122
333
|
absolute: boolean;
|
|
123
334
|
location: "top" | "bottom";
|
|
@@ -131,7 +342,9 @@ declare const VAppBar: vue.DefineComponent<{
|
|
|
131
342
|
extensionHeight: string | number;
|
|
132
343
|
floating: boolean;
|
|
133
344
|
modelValue: boolean;
|
|
134
|
-
}
|
|
345
|
+
}> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new () => {
|
|
346
|
+
$props: SlotsToProps<VToolbarSlots>;
|
|
347
|
+
});
|
|
135
348
|
declare type VAppBar = InstanceType<typeof VAppBar>;
|
|
136
349
|
|
|
137
350
|
declare type IconValue = string | JSXComponent;
|
|
@@ -217,15 +217,15 @@ declare const VAutocomplete: {
|
|
|
217
217
|
default: string;
|
|
218
218
|
validator: (v: any) => boolean;
|
|
219
219
|
};
|
|
220
|
+
modelValue: {
|
|
221
|
+
type: vue.PropType<any>;
|
|
222
|
+
default: any;
|
|
223
|
+
};
|
|
220
224
|
variant: {
|
|
221
225
|
type: vue.PropType<"filled" | "outlined" | "plain" | "underlined" | "solo">;
|
|
222
226
|
default: string;
|
|
223
227
|
validator: (v: any) => boolean;
|
|
224
228
|
};
|
|
225
|
-
modelValue: {
|
|
226
|
-
type: vue.PropType<any>;
|
|
227
|
-
default: any;
|
|
228
|
-
};
|
|
229
229
|
bgColor: StringConstructor;
|
|
230
230
|
prependIcon: vue.PropType<IconValue>;
|
|
231
231
|
appendIcon: vue.PropType<IconValue>;
|
|
@@ -495,7 +495,7 @@ declare const VAutocomplete: {
|
|
|
495
495
|
};
|
|
496
496
|
noFilter: BooleanConstructor;
|
|
497
497
|
search: StringConstructor;
|
|
498
|
-
}, "multiple" | "$children" | "items" | "v-slots" | "v-slot:prepend" | "v-slot:append" | "
|
|
498
|
+
}, "multiple" | "$children" | "items" | "v-slots" | "v-slot:prepend" | "v-slot:append" | "modelValue" | "onUpdate:modelValue" | "v-slot:details" | "v-slot:clear" | "v-slot:prepend-inner" | "v-slot:append-inner" | "v-slot:label" | "v-slot:loader" | "v-slot:item" | "returnObject" | "v-slot:chip" | "v-slot:selection" | "v-slot:prepend-item" | "v-slot:append-item" | "v-slot:no-data">>> & {
|
|
499
499
|
"onUpdate:menu"?: ((val: boolean) => any) | undefined;
|
|
500
500
|
"onUpdate:search"?: ((val: any) => any) | undefined;
|
|
501
501
|
} & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, "reverse" | "type" | "error" | "active" | "direction" | "transition" | "loading" | "menu" | "autofocus" | "eager" | "disabled" | "readonly" | "messages" | "noDataText" | "density" | "variant" | "clearIcon" | "focused" | "errorMessages" | "maxErrors" | "rules" | "clearable" | "persistentClear" | "singleLine" | "persistentHint" | "persistentPlaceholder" | "persistentCounter" | "itemTitle" | "itemValue" | "itemChildren" | "itemProps" | "chips" | "closableChips" | "hideNoData" | "hideSelected" | "menuIcon" | "openOnClear" | "filterMode" | "noFilter" | "filterKeys">;
|
|
@@ -560,15 +560,15 @@ declare const VAutocomplete: {
|
|
|
560
560
|
default: string;
|
|
561
561
|
validator: (v: any) => boolean;
|
|
562
562
|
};
|
|
563
|
+
modelValue: {
|
|
564
|
+
type: vue.PropType<any>;
|
|
565
|
+
default: any;
|
|
566
|
+
};
|
|
563
567
|
variant: {
|
|
564
568
|
type: vue.PropType<"filled" | "outlined" | "plain" | "underlined" | "solo">;
|
|
565
569
|
default: string;
|
|
566
570
|
validator: (v: any) => boolean;
|
|
567
571
|
};
|
|
568
|
-
modelValue: {
|
|
569
|
-
type: vue.PropType<any>;
|
|
570
|
-
default: any;
|
|
571
|
-
};
|
|
572
572
|
bgColor: StringConstructor;
|
|
573
573
|
prependIcon: vue.PropType<IconValue>;
|
|
574
574
|
appendIcon: vue.PropType<IconValue>;
|
|
@@ -838,7 +838,7 @@ declare const VAutocomplete: {
|
|
|
838
838
|
};
|
|
839
839
|
noFilter: BooleanConstructor;
|
|
840
840
|
search: StringConstructor;
|
|
841
|
-
}, "multiple" | "$children" | "items" | "v-slots" | "v-slot:prepend" | "v-slot:append" | "
|
|
841
|
+
}, "multiple" | "$children" | "items" | "v-slots" | "v-slot:prepend" | "v-slot:append" | "modelValue" | "onUpdate:modelValue" | "v-slot:details" | "v-slot:clear" | "v-slot:prepend-inner" | "v-slot:append-inner" | "v-slot:label" | "v-slot:loader" | "v-slot:item" | "returnObject" | "v-slot:chip" | "v-slot:selection" | "v-slot:prepend-item" | "v-slot:append-item" | "v-slot:no-data">>> & {
|
|
842
842
|
"onUpdate:menu"?: ((val: boolean) => any) | undefined;
|
|
843
843
|
"onUpdate:search"?: ((val: any) => any) | undefined;
|
|
844
844
|
}, {
|
|
@@ -859,7 +859,7 @@ declare const VAutocomplete: {
|
|
|
859
859
|
'update:search': (val: any) => boolean;
|
|
860
860
|
'update:modelValue': (val: any) => boolean;
|
|
861
861
|
'update:menu': (val: boolean) => boolean;
|
|
862
|
-
}, "multiple" | "$children" | "items" | "v-slots" | "v-slot:prepend" | "v-slot:append" | "
|
|
862
|
+
}, "multiple" | "$children" | "items" | "v-slots" | "v-slot:prepend" | "v-slot:append" | "modelValue" | "update:modelValue" | "v-slot:details" | "v-slot:clear" | "v-slot:prepend-inner" | "v-slot:append-inner" | "v-slot:label" | "v-slot:loader" | "v-slot:item" | "returnObject" | "v-slot:chip" | "v-slot:selection" | "v-slot:prepend-item" | "v-slot:append-item" | "v-slot:no-data">, string, {
|
|
863
863
|
reverse: boolean;
|
|
864
864
|
type: string;
|
|
865
865
|
error: boolean;
|
|
@@ -970,15 +970,15 @@ declare const VAutocomplete: {
|
|
|
970
970
|
default: string;
|
|
971
971
|
validator: (v: any) => boolean;
|
|
972
972
|
};
|
|
973
|
+
modelValue: {
|
|
974
|
+
type: vue.PropType<any>;
|
|
975
|
+
default: any;
|
|
976
|
+
};
|
|
973
977
|
variant: {
|
|
974
978
|
type: vue.PropType<"filled" | "outlined" | "plain" | "underlined" | "solo">;
|
|
975
979
|
default: string;
|
|
976
980
|
validator: (v: any) => boolean;
|
|
977
981
|
};
|
|
978
|
-
modelValue: {
|
|
979
|
-
type: vue.PropType<any>;
|
|
980
|
-
default: any;
|
|
981
|
-
};
|
|
982
982
|
bgColor: StringConstructor;
|
|
983
983
|
prependIcon: vue.PropType<IconValue>;
|
|
984
984
|
appendIcon: vue.PropType<IconValue>;
|
|
@@ -1248,7 +1248,7 @@ declare const VAutocomplete: {
|
|
|
1248
1248
|
};
|
|
1249
1249
|
noFilter: BooleanConstructor;
|
|
1250
1250
|
search: StringConstructor;
|
|
1251
|
-
}, "multiple" | "$children" | "items" | "v-slots" | "v-slot:prepend" | "v-slot:append" | "
|
|
1251
|
+
}, "multiple" | "$children" | "items" | "v-slots" | "v-slot:prepend" | "v-slot:append" | "modelValue" | "onUpdate:modelValue" | "v-slot:details" | "v-slot:clear" | "v-slot:prepend-inner" | "v-slot:append-inner" | "v-slot:label" | "v-slot:loader" | "v-slot:item" | "returnObject" | "v-slot:chip" | "v-slot:selection" | "v-slot:prepend-item" | "v-slot:append-item" | "v-slot:no-data">>> & {
|
|
1252
1252
|
"onUpdate:menu"?: ((val: boolean) => any) | undefined;
|
|
1253
1253
|
"onUpdate:search"?: ((val: any) => any) | undefined;
|
|
1254
1254
|
} & vue.ShallowUnwrapRef<{
|
|
@@ -1317,15 +1317,15 @@ declare const VAutocomplete: {
|
|
|
1317
1317
|
default: string;
|
|
1318
1318
|
validator: (v: any) => boolean;
|
|
1319
1319
|
};
|
|
1320
|
+
modelValue: {
|
|
1321
|
+
type: vue.PropType<any>;
|
|
1322
|
+
default: any;
|
|
1323
|
+
};
|
|
1320
1324
|
variant: {
|
|
1321
1325
|
type: vue.PropType<"filled" | "outlined" | "plain" | "underlined" | "solo">;
|
|
1322
1326
|
default: string;
|
|
1323
1327
|
validator: (v: any) => boolean;
|
|
1324
1328
|
};
|
|
1325
|
-
modelValue: {
|
|
1326
|
-
type: vue.PropType<any>;
|
|
1327
|
-
default: any;
|
|
1328
|
-
};
|
|
1329
1329
|
bgColor: StringConstructor;
|
|
1330
1330
|
prependIcon: vue.PropType<IconValue>;
|
|
1331
1331
|
appendIcon: vue.PropType<IconValue>;
|
|
@@ -1595,7 +1595,7 @@ declare const VAutocomplete: {
|
|
|
1595
1595
|
};
|
|
1596
1596
|
noFilter: BooleanConstructor;
|
|
1597
1597
|
search: StringConstructor;
|
|
1598
|
-
}, "multiple" | "$children" | "items" | "v-slots" | "v-slot:prepend" | "v-slot:append" | "
|
|
1598
|
+
}, "multiple" | "$children" | "items" | "v-slots" | "v-slot:prepend" | "v-slot:append" | "modelValue" | "onUpdate:modelValue" | "v-slot:details" | "v-slot:clear" | "v-slot:prepend-inner" | "v-slot:append-inner" | "v-slot:label" | "v-slot:loader" | "v-slot:item" | "returnObject" | "v-slot:chip" | "v-slot:selection" | "v-slot:prepend-item" | "v-slot:append-item" | "v-slot:no-data">>> & {
|
|
1599
1599
|
"onUpdate:menu"?: ((val: boolean) => any) | undefined;
|
|
1600
1600
|
"onUpdate:search"?: ((val: any) => any) | undefined;
|
|
1601
1601
|
}, {
|
|
@@ -1616,7 +1616,7 @@ declare const VAutocomplete: {
|
|
|
1616
1616
|
'update:search': (val: any) => boolean;
|
|
1617
1617
|
'update:modelValue': (val: any) => boolean;
|
|
1618
1618
|
'update:menu': (val: boolean) => boolean;
|
|
1619
|
-
}, "multiple" | "$children" | "items" | "v-slots" | "v-slot:prepend" | "v-slot:append" | "
|
|
1619
|
+
}, "multiple" | "$children" | "items" | "v-slots" | "v-slot:prepend" | "v-slot:append" | "modelValue" | "update:modelValue" | "v-slot:details" | "v-slot:clear" | "v-slot:prepend-inner" | "v-slot:append-inner" | "v-slot:label" | "v-slot:loader" | "v-slot:item" | "returnObject" | "v-slot:chip" | "v-slot:selection" | "v-slot:prepend-item" | "v-slot:append-item" | "v-slot:no-data">, string, {
|
|
1620
1620
|
reverse: boolean;
|
|
1621
1621
|
type: string;
|
|
1622
1622
|
error: boolean;
|
|
@@ -23,6 +23,7 @@ import { useProxiedModel } from "../../composables/proxiedModel.mjs";
|
|
|
23
23
|
import { IconValue } from "../../composables/icons.mjs"; // Directives
|
|
24
24
|
import { Ripple } from "../../directives/ripple/index.mjs"; // Utilities
|
|
25
25
|
import { defineComponent } from "../../util/index.mjs";
|
|
26
|
+
import { computed } from 'vue';
|
|
26
27
|
export const VChip = defineComponent({
|
|
27
28
|
name: 'VChip',
|
|
28
29
|
directives: {
|
|
@@ -79,7 +80,8 @@ export const VChip = defineComponent({
|
|
|
79
80
|
emits: {
|
|
80
81
|
'click:close': e => true,
|
|
81
82
|
'update:modelValue': value => true,
|
|
82
|
-
'group:selected': val => true
|
|
83
|
+
'group:selected': val => true,
|
|
84
|
+
click: e => true
|
|
83
85
|
},
|
|
84
86
|
setup(props, _ref) {
|
|
85
87
|
let {
|
|
@@ -113,10 +115,18 @@ export const VChip = defineComponent({
|
|
|
113
115
|
const isActive = useProxiedModel(props, 'modelValue');
|
|
114
116
|
const group = useGroupItem(props, VChipGroupSymbol, false);
|
|
115
117
|
const link = useLink(props, attrs);
|
|
118
|
+
const isClickable = computed(() => !props.disabled && (!!group || link.isClickable.value || props.link));
|
|
116
119
|
function onCloseClick(e) {
|
|
117
120
|
isActive.value = false;
|
|
118
121
|
emit('click:close', e);
|
|
119
122
|
}
|
|
123
|
+
function onClick(e) {
|
|
124
|
+
var _link$navigate;
|
|
125
|
+
emit('click', e);
|
|
126
|
+
if (!isClickable.value) return;
|
|
127
|
+
(_link$navigate = link.navigate) == null ? void 0 : _link$navigate.call(link, e);
|
|
128
|
+
group == null ? void 0 : group.toggle();
|
|
129
|
+
}
|
|
120
130
|
return () => {
|
|
121
131
|
var _slots$default;
|
|
122
132
|
const Tag = link.isLink.value ? 'a' : props.tag;
|
|
@@ -125,8 +135,6 @@ export const VChip = defineComponent({
|
|
|
125
135
|
const hasFilter = !!(slots.filter || props.filter) && group;
|
|
126
136
|
const hasPrepend = !!(slots.prepend || props.prependIcon || props.prependAvatar);
|
|
127
137
|
const hasColor = !group || group.isSelected.value;
|
|
128
|
-
const isClickable = !props.disabled && (!!group || link.isClickable.value || props.link);
|
|
129
|
-
const onClickFunc = props.link ? props.link : group == null ? void 0 : group.toggle;
|
|
130
138
|
return isActive.value && _withDirectives(_createVNode(Tag, {
|
|
131
139
|
"class": ['v-chip', {
|
|
132
140
|
'v-chip--disabled': props.disabled,
|
|
@@ -139,9 +147,9 @@ export const VChip = defineComponent({
|
|
|
139
147
|
"disabled": props.disabled || undefined,
|
|
140
148
|
"draggable": props.draggable,
|
|
141
149
|
"href": link.href.value,
|
|
142
|
-
"onClick":
|
|
150
|
+
"onClick": onClick
|
|
143
151
|
}, {
|
|
144
|
-
default: () => [genOverlays(isClickable, 'v-chip'), hasFilter && _createVNode(VDefaultsProvider, {
|
|
152
|
+
default: () => [genOverlays(isClickable.value, 'v-chip'), hasFilter && _createVNode(VDefaultsProvider, {
|
|
145
153
|
"key": "filter",
|
|
146
154
|
"defaults": {
|
|
147
155
|
VIcon: {
|
|
@@ -211,7 +219,7 @@ export const VChip = defineComponent({
|
|
|
211
219
|
"onClick": onCloseClick
|
|
212
220
|
}, [slots.close ? slots.close() : _createVNode(VIcon, null, null)])]
|
|
213
221
|
})]
|
|
214
|
-
}), [[_resolveDirective("ripple"), isClickable && props.ripple, null]]);
|
|
222
|
+
}), [[_resolveDirective("ripple"), isClickable.value && props.ripple, null]]);
|
|
215
223
|
};
|
|
216
224
|
}
|
|
217
225
|
});
|