@bagelink/vue 1.19.3 → 1.20.3
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/components/Dropdown.vue.d.ts +73 -48
- package/dist/components/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/index.cjs +40 -40
- package/dist/index.mjs +4682 -4675
- package/package.json +1 -1
- package/src/components/Dropdown.vue +18 -7
- package/src/components/Icon/Icon.vue +4 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { VirtualElement } from '@floating-ui/dom';
|
|
2
2
|
import { IconType, ThemeType } from '../index';
|
|
3
3
|
import { AlignedPlacement, AnchorPoint, DropdownItem, TriggerEvent } from './Dropdown.types';
|
|
4
|
-
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
5
|
+
shown?: boolean;
|
|
6
|
+
} & {
|
|
5
7
|
value?: string;
|
|
6
8
|
thin?: boolean;
|
|
7
9
|
flat?: boolean;
|
|
8
|
-
size?:
|
|
10
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
9
11
|
xs?: boolean;
|
|
10
12
|
sm?: boolean;
|
|
11
13
|
md?: boolean;
|
|
@@ -43,56 +45,63 @@ type __VLS_Props = {
|
|
|
43
45
|
referenceEl?: Element | VirtualElement | null;
|
|
44
46
|
/** Position the dropdown at explicit viewport coordinates `{ x, y, width?, height? }`. */
|
|
45
47
|
anchorPoint?: AnchorPoint | null;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
declare function toggle(viaKeyboard?: boolean): void;
|
|
53
|
-
type __VLS_PublicProps = {
|
|
54
|
-
'shown'?: typeof shown['value'];
|
|
55
|
-
} & __VLS_Props;
|
|
56
|
-
declare function __VLS_template(): {
|
|
57
|
-
attrs: Partial<{}>;
|
|
58
|
-
slots: {
|
|
59
|
-
trigger?(_: {
|
|
60
|
-
show: typeof internalShow;
|
|
61
|
-
hide: typeof hide;
|
|
62
|
-
shown: boolean;
|
|
63
|
-
triggerAttrs: {
|
|
64
|
-
'aria-haspopup': string;
|
|
65
|
-
'aria-expanded': boolean;
|
|
66
|
-
'aria-controls': string;
|
|
67
|
-
};
|
|
68
|
-
}): any;
|
|
69
|
-
default?(_: {
|
|
70
|
-
hide: typeof hide;
|
|
71
|
-
show: typeof internalShow;
|
|
72
|
-
shown: boolean;
|
|
73
|
-
openAt: typeof openAt;
|
|
74
|
-
}): any;
|
|
75
|
-
};
|
|
76
|
-
refs: {
|
|
77
|
-
triggerWrapRef: HTMLDivElement;
|
|
78
|
-
popoverRef: HTMLDivElement;
|
|
79
|
-
};
|
|
80
|
-
rootEl: any;
|
|
81
|
-
};
|
|
82
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
83
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
84
|
-
show: typeof internalShow;
|
|
85
|
-
hide: typeof hide;
|
|
86
|
-
toggle: typeof toggle;
|
|
87
|
-
openAt: typeof openAt;
|
|
88
|
-
updatePosition: typeof updatePosition;
|
|
48
|
+
}, {
|
|
49
|
+
show: () => Promise<void>;
|
|
50
|
+
hide: () => void;
|
|
51
|
+
toggle: (viaKeyboard?: boolean) => void;
|
|
52
|
+
openAt: (target: AnchorPoint | MouseEvent) => void;
|
|
53
|
+
updatePosition: () => Promise<void>;
|
|
89
54
|
shown: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
90
55
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
91
56
|
select: (value: string | number | DropdownItem, item: DropdownItem) => any;
|
|
92
57
|
hide: () => any;
|
|
93
58
|
"update:shown": (value: boolean) => any;
|
|
94
59
|
show: () => any;
|
|
95
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
60
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
61
|
+
shown?: boolean;
|
|
62
|
+
} & {
|
|
63
|
+
value?: string;
|
|
64
|
+
thin?: boolean;
|
|
65
|
+
flat?: boolean;
|
|
66
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
67
|
+
xs?: boolean;
|
|
68
|
+
sm?: boolean;
|
|
69
|
+
md?: boolean;
|
|
70
|
+
lg?: boolean;
|
|
71
|
+
xl?: boolean;
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
icon?: IconType;
|
|
74
|
+
color?: ThemeType;
|
|
75
|
+
triggerClass?: string;
|
|
76
|
+
/** Extra class(es) applied to the teleported popover element. */
|
|
77
|
+
popupClass?: string;
|
|
78
|
+
iconEnd?: IconType;
|
|
79
|
+
outline?: boolean;
|
|
80
|
+
frame?: boolean;
|
|
81
|
+
round?: boolean;
|
|
82
|
+
placement?: AlignedPlacement;
|
|
83
|
+
disablePlacement?: boolean;
|
|
84
|
+
noAutoFocus?: boolean;
|
|
85
|
+
autoHide?: boolean;
|
|
86
|
+
triggers?: TriggerEvent[];
|
|
87
|
+
popperTriggers?: TriggerEvent[];
|
|
88
|
+
showGroup?: string;
|
|
89
|
+
card?: boolean;
|
|
90
|
+
/** Remove all popup content padding, whether or not the slot contains a Card. */
|
|
91
|
+
noPadding?: boolean;
|
|
92
|
+
delay?: number | {
|
|
93
|
+
show: number;
|
|
94
|
+
hide: number;
|
|
95
|
+
};
|
|
96
|
+
/** Declarative menu items. Can be used instead of or alongside the default slot. */
|
|
97
|
+
items?: DropdownItem[];
|
|
98
|
+
/** Alias for `items` for backward compatibility. */
|
|
99
|
+
options?: DropdownItem[];
|
|
100
|
+
/** Override the anchor element (or Floating UI VirtualElement) used for positioning. */
|
|
101
|
+
referenceEl?: Element | VirtualElement | null;
|
|
102
|
+
/** Position the dropdown at explicit viewport coordinates `{ x, y, width?, height? }`. */
|
|
103
|
+
anchorPoint?: AnchorPoint | null;
|
|
104
|
+
}> & Readonly<{
|
|
96
105
|
onSelect?: ((value: string | number | DropdownItem, item: DropdownItem) => any) | undefined;
|
|
97
106
|
onHide?: (() => any) | undefined;
|
|
98
107
|
"onUpdate:shown"?: ((value: boolean) => any) | undefined;
|
|
@@ -109,8 +118,24 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
109
118
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
110
119
|
triggerWrapRef: HTMLDivElement;
|
|
111
120
|
popoverRef: HTMLDivElement;
|
|
112
|
-
}, any
|
|
113
|
-
|
|
121
|
+
}, any>, {
|
|
122
|
+
trigger?(_: {
|
|
123
|
+
show: () => Promise<void>;
|
|
124
|
+
hide: () => void;
|
|
125
|
+
shown: boolean;
|
|
126
|
+
triggerAttrs: {
|
|
127
|
+
'aria-haspopup': string;
|
|
128
|
+
'aria-expanded': boolean;
|
|
129
|
+
'aria-controls': string;
|
|
130
|
+
};
|
|
131
|
+
}): any;
|
|
132
|
+
default?(_: {
|
|
133
|
+
hide: () => void;
|
|
134
|
+
show: () => Promise<void>;
|
|
135
|
+
shown: boolean;
|
|
136
|
+
openAt: (target: AnchorPoint | MouseEvent) => void;
|
|
137
|
+
}): any;
|
|
138
|
+
}>;
|
|
114
139
|
export default _default;
|
|
115
140
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
116
141
|
new (): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../src/components/Dropdown.vue"],"names":[],"mappings":"AAEA;
|
|
1
|
+
{"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../src/components/Dropdown.vue"],"names":[],"mappings":"AAEA;AA2pBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE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;YAC5E,YAAY,EAAE;IACtB,oDAAoD;cAC1C,YAAY,EAAE;IACxB,wFAAwF;kBAC1E,OAAO,GAAG,cAAc,GAAG,IAAI;IAC7C,0FAA0F;kBAC5E,WAAW,GAAG,IAAI;;;;;;;UAnCzB,OAAO;UADP,OAAO;eAkBF,gBAAgB;sBACT,OAAO;cAEf,OAAO;cACP,YAAY,EAAE;oBACR,YAAY,EAAE;UAExB,OAAO;;;;;;;;;;;;;;QAuqBc,GAAG;;;;;yBA9eR,WAAW,GAAG,UAAU;QA+elB,GAAG;;AArsBjC,wBAswBK;AAaL,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Icon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.vue"],"names":[],"mappings":"AAgUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAO3C,KAAK,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,CAAA;AACrF,KAAK,cAAc,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;AAE9D,KAAK,WAAW,GAAG;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;oDAEgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;yEACqE;IACrE,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,0EAA0E;IAC1E,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,4DAA4D;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yDAAyD;IACzD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;4CAEwC;IACxC,UAAU,CAAC,EAAE,OAAO,GAAG,cAAc,CAAA;CACrC,CAAC;;UAtBM,MAAM,GAAG,MAAM;gBAqBT,OAAO,GAAG,cAAc;;AA4PtC,wBAOG"}
|