@turquoisehealth/pit-viper 2.128.0 → 2.129.1-dev.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/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuBaseItem.vue.d.ts +7 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItem.vue.d.ts +10 -26
- package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItemAction.vue.d.ts +8 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItemVariant.vue.d.ts +12 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +39 -155
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +9 -4
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +29 -54
- package/pv-components/dist/vue/base/pv-components-base.mjs +2716 -2750
- package/pv-components/dist/vue/base/types.d.ts +22 -4
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3067 -3113
- package/pv-components/dist/vue/visualizations/types.d.ts +22 -4
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +2292 -2220
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2574 -2434
- package/pv-components/dist/web/pv-components.iife.js +49 -49
- package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuCheckboxItem.vue.d.ts +0 -23
- package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuRadioItem.spec.d.ts +0 -1
- package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuRadioItem.vue.d.ts +0 -18
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectMenuItem.vue.d.ts +0 -15
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectMenuItem.vue.d.ts +0 -19
- /package/pv-components/dist/vue/base/components/base/PvMenu/items/{PvMenuCheckboxItem.spec.d.ts → PvMenuItemAction.spec.d.ts} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuOption, MenuOptionConfig } from '../../../../types.ts';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
interface PvMenuBaseItemProps extends MenuOption {
|
|
4
|
+
menuOptionConfig?: MenuOptionConfig;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: DefineComponent<PvMenuBaseItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvMenuBaseItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -1,30 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
subText?: string;
|
|
7
|
-
/** Value of the secondary text which appears on the menu item. Number shows up as a counter badge, string shows up as plain text */
|
|
8
|
-
secondaryText?: number | string;
|
|
9
|
-
/** Variant of the counter badge which appears on the menu item */
|
|
10
|
-
counterBadgeVariant?: PvCounterBadgeVariant;
|
|
11
|
-
icon?: string;
|
|
12
|
-
companyName?: string;
|
|
13
|
-
avatar?: {
|
|
14
|
-
initials?: string;
|
|
15
|
-
image?: string;
|
|
16
|
-
icon?: boolean;
|
|
17
|
-
};
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
renderer?: Component;
|
|
20
|
-
rendererProps?: any;
|
|
21
|
-
classList?: string[];
|
|
22
|
-
searchText?: string;
|
|
23
|
-
children?: PvMenuItemProps[];
|
|
1
|
+
import { MenuOption, MenuOptionConfig, MenuOptionSelectedEvent } from '../../../../types.ts';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
interface PvMenuItemProps extends MenuOption {
|
|
4
|
+
level?: number;
|
|
5
|
+
config?: MenuOptionConfig;
|
|
24
6
|
}
|
|
25
7
|
declare const _default: DefineComponent<PvMenuItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
26
|
-
"handle-selected": () => any;
|
|
8
|
+
"handle-selected": (payload: MenuOptionSelectedEvent) => any;
|
|
27
9
|
}, string, PublicProps, Readonly<PvMenuItemProps> & Readonly<{
|
|
28
|
-
"onHandle-selected"?: (() => any) | undefined;
|
|
29
|
-
}>, {
|
|
10
|
+
"onHandle-selected"?: ((payload: MenuOptionSelectedEvent) => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
level: number;
|
|
13
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
30
14
|
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MenuAction, MenuOption } from '../../../../types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
interface PvMenuItemActionProps {
|
|
4
|
+
action: MenuAction<any>;
|
|
5
|
+
option: MenuOption;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: DefineComponent<PvMenuItemActionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvMenuItemActionProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MenuOption, MenuOptionConfig, MenuOptionSelectedEvent } from '../../../../types.ts';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
export interface PvMenuItemVariantProps extends MenuOption {
|
|
4
|
+
selected?: boolean;
|
|
5
|
+
menuOptionConfig?: MenuOptionConfig;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: DefineComponent<PvMenuItemVariantProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
8
|
+
"handle-selected": (payload: MenuOptionSelectedEvent) => any;
|
|
9
|
+
}, string, PublicProps, Readonly<PvMenuItemVariantProps> & Readonly<{
|
|
10
|
+
"onHandle-selected"?: ((payload: MenuOptionSelectedEvent) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
12
|
+
export default _default;
|
package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { PvMultiSelectButtonProps, PvSelectButtonVariant, PvSelectButtonSize, MenuActionsVariant } from './types';
|
|
2
|
-
import { MenuOption,
|
|
2
|
+
import { MenuOption, MenuAction } from '../../../types';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, CSSProperties, Component, VNode } from 'vue';
|
|
3
4
|
import { PvPopoverV2Props } from '../PvPopoverV2/types';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} &
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
import { PvCounterBadgeVariant } from '../PvCounterBadge/types';
|
|
6
|
+
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
8
|
+
readonly "onDropdown-open"?: (() => any) | undefined;
|
|
9
|
+
readonly "onDropdown-closed"?: (() => any) | undefined;
|
|
10
|
+
readonly "onUpdate:modelValue"?: ((value: MenuOption<unknown>[]) => any) | undefined;
|
|
11
|
+
readonly "onUpdate:searchInput"?: ((value: string) => any) | undefined;
|
|
12
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onDropdown-open" | "onDropdown-closed" | "onUpdate:modelValue" | "onUpdate:searchInput"> & ({
|
|
13
|
+
modelValue?: MenuOption[];
|
|
14
|
+
searchInput?: string;
|
|
15
|
+
} & PvMultiSelectButtonProps<T>) & Partial<{}>> & PublicProps;
|
|
16
|
+
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
17
|
+
attrs: any;
|
|
14
18
|
slots: Partial<Record<string, (_: {}) => any>> & {
|
|
15
19
|
header?(_: {
|
|
16
|
-
selectedItems: MenuOption[];
|
|
20
|
+
selectedItems: MenuOption<unknown>[];
|
|
17
21
|
searchInput: string;
|
|
18
22
|
groupings: string[];
|
|
19
23
|
defaultOpen: boolean;
|
|
@@ -27,6 +31,9 @@ declare function __VLS_template(): {
|
|
|
27
31
|
companyLogo: string;
|
|
28
32
|
searchPlaceholder: string;
|
|
29
33
|
overlayTrigger: boolean;
|
|
34
|
+
optionsRenderer: Component;
|
|
35
|
+
optionsAction: MenuAction<T> | undefined;
|
|
36
|
+
counterBadgeVariant: PvCounterBadgeVariant;
|
|
30
37
|
counterPosition: "right" | "left" | "none";
|
|
31
38
|
variant: PvSelectButtonVariant;
|
|
32
39
|
size: PvSelectButtonSize;
|
|
@@ -35,11 +42,11 @@ declare function __VLS_template(): {
|
|
|
35
42
|
disableClearIcon: boolean;
|
|
36
43
|
disableSearchInput: boolean;
|
|
37
44
|
optionsVariant: "icon" | "checkbox" | "simple" | "company" | "avatar";
|
|
38
|
-
options: MenuOption[];
|
|
45
|
+
options: MenuOption<T>[];
|
|
39
46
|
menuActionsVariant: MenuActionsVariant | null;
|
|
40
47
|
}): any;
|
|
41
48
|
'no-results'?(_: {
|
|
42
|
-
selectedItems: MenuOption[];
|
|
49
|
+
selectedItems: MenuOption<unknown>[];
|
|
43
50
|
searchInput: string;
|
|
44
51
|
groupings: string[];
|
|
45
52
|
defaultOpen: boolean;
|
|
@@ -53,6 +60,9 @@ declare function __VLS_template(): {
|
|
|
53
60
|
companyLogo: string;
|
|
54
61
|
searchPlaceholder: string;
|
|
55
62
|
overlayTrigger: boolean;
|
|
63
|
+
optionsRenderer: Component;
|
|
64
|
+
optionsAction: MenuAction<T> | undefined;
|
|
65
|
+
counterBadgeVariant: PvCounterBadgeVariant;
|
|
56
66
|
counterPosition: "right" | "left" | "none";
|
|
57
67
|
variant: PvSelectButtonVariant;
|
|
58
68
|
size: PvSelectButtonSize;
|
|
@@ -61,11 +71,11 @@ declare function __VLS_template(): {
|
|
|
61
71
|
disableClearIcon: boolean;
|
|
62
72
|
disableSearchInput: boolean;
|
|
63
73
|
optionsVariant: "icon" | "checkbox" | "simple" | "company" | "avatar";
|
|
64
|
-
options: MenuOption[];
|
|
74
|
+
options: MenuOption<T>[];
|
|
65
75
|
menuActionsVariant: MenuActionsVariant | null;
|
|
66
76
|
}): any;
|
|
67
77
|
footer?(_: {
|
|
68
|
-
selectedItems: MenuOption[];
|
|
78
|
+
selectedItems: MenuOption<unknown>[];
|
|
69
79
|
searchInput: string;
|
|
70
80
|
groupings: string[];
|
|
71
81
|
defaultOpen: boolean;
|
|
@@ -79,6 +89,9 @@ declare function __VLS_template(): {
|
|
|
79
89
|
companyLogo: string;
|
|
80
90
|
searchPlaceholder: string;
|
|
81
91
|
overlayTrigger: boolean;
|
|
92
|
+
optionsRenderer: Component;
|
|
93
|
+
optionsAction: MenuAction<T> | undefined;
|
|
94
|
+
counterBadgeVariant: PvCounterBadgeVariant;
|
|
82
95
|
counterPosition: "right" | "left" | "none";
|
|
83
96
|
variant: PvSelectButtonVariant;
|
|
84
97
|
size: PvSelectButtonSize;
|
|
@@ -87,147 +100,18 @@ declare function __VLS_template(): {
|
|
|
87
100
|
disableClearIcon: boolean;
|
|
88
101
|
disableSearchInput: boolean;
|
|
89
102
|
optionsVariant: "icon" | "checkbox" | "simple" | "company" | "avatar";
|
|
90
|
-
options: MenuOption[];
|
|
103
|
+
options: MenuOption<T>[];
|
|
91
104
|
menuActionsVariant: MenuActionsVariant | null;
|
|
92
105
|
}): any;
|
|
93
106
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
size: PvSelectButtonSize;
|
|
101
|
-
variant: PvSelectButtonVariant;
|
|
102
|
-
showDropdown: boolean;
|
|
103
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLButtonElement, ComponentProvideOptions, {
|
|
104
|
-
P: {};
|
|
105
|
-
B: {};
|
|
106
|
-
D: {};
|
|
107
|
-
C: {};
|
|
108
|
-
M: {};
|
|
109
|
-
Defaults: {};
|
|
110
|
-
}, Readonly< PvSelectButtonTrigger> & Readonly<{
|
|
111
|
-
"onHandle-clear"?: (() => any) | undefined;
|
|
112
|
-
}>, {}, {}, {}, {}, {
|
|
113
|
-
size: PvSelectButtonSize;
|
|
114
|
-
variant: PvSelectButtonVariant;
|
|
115
|
-
showDropdown: boolean;
|
|
116
|
-
}> | null;
|
|
117
|
-
searchInputRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
118
|
-
modelValue?: string;
|
|
119
|
-
} & PvSearchInputProps> & Readonly<{
|
|
120
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
121
|
-
}>, {
|
|
122
|
-
input: Readonly< ShallowRef<HTMLInputElement | null>>;
|
|
123
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
124
|
-
"update:modelValue": (value: string) => any;
|
|
125
|
-
}, PublicProps, {
|
|
126
|
-
disabled: boolean;
|
|
127
|
-
placeholder: string;
|
|
128
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
129
|
-
'search-input': HTMLInputElement;
|
|
130
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
131
|
-
P: {};
|
|
132
|
-
B: {};
|
|
133
|
-
D: {};
|
|
134
|
-
C: {};
|
|
135
|
-
M: {};
|
|
136
|
-
Defaults: {};
|
|
137
|
-
}, Readonly<{
|
|
138
|
-
modelValue?: string;
|
|
139
|
-
} & PvSearchInputProps> & Readonly<{
|
|
140
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
141
|
-
}>, {
|
|
142
|
-
input: Readonly< ShallowRef<HTMLInputElement | null>>;
|
|
143
|
-
}, {}, {}, {}, {
|
|
144
|
-
disabled: boolean;
|
|
145
|
-
placeholder: string;
|
|
146
|
-
}> | null;
|
|
147
|
-
};
|
|
148
|
-
rootEl: HTMLDivElement;
|
|
107
|
+
emit: {
|
|
108
|
+
(e: "dropdown-open"): void;
|
|
109
|
+
(e: "dropdown-closed"): void;
|
|
110
|
+
} & (((evt: "update:modelValue", value: MenuOption<unknown>[]) => void) & ((evt: "update:searchInput", value: string) => void));
|
|
111
|
+
}>) => VNode & {
|
|
112
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
149
113
|
};
|
|
150
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
151
|
-
declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
152
|
-
"update:modelValue": (value: MenuOption[]) => any;
|
|
153
|
-
"update:searchInput": (value: string) => any;
|
|
154
|
-
} & {
|
|
155
|
-
"dropdown-open": () => any;
|
|
156
|
-
"dropdown-closed": () => any;
|
|
157
|
-
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
158
|
-
"onDropdown-open"?: (() => any) | undefined;
|
|
159
|
-
"onDropdown-closed"?: (() => any) | undefined;
|
|
160
|
-
"onUpdate:modelValue"?: ((value: MenuOption[]) => any) | undefined;
|
|
161
|
-
"onUpdate:searchInput"?: ((value: string) => any) | undefined;
|
|
162
|
-
}>, {
|
|
163
|
-
size: PvSelectButtonSize;
|
|
164
|
-
label: string;
|
|
165
|
-
variant: PvSelectButtonVariant;
|
|
166
|
-
options: MenuOption[];
|
|
167
|
-
counterPosition: "left" | "right" | "none";
|
|
168
|
-
optionsVariant: Exclude< MenuOptionsVariant, "radio">;
|
|
169
|
-
disableClearIcon: boolean;
|
|
170
|
-
disableDropdownIcon: boolean;
|
|
171
|
-
disableSearchInput: boolean;
|
|
172
|
-
menuActionsVariant: MenuActionsVariant | null;
|
|
173
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
174
|
-
'select-button-trigger-ref': CreateComponentPublicInstanceWithMixins<Readonly< PvSelectButtonTrigger> & Readonly<{
|
|
175
|
-
"onHandle-clear"?: (() => any) | undefined;
|
|
176
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
177
|
-
"handle-clear": () => any;
|
|
178
|
-
}, PublicProps, {
|
|
179
|
-
size: PvSelectButtonSize;
|
|
180
|
-
variant: PvSelectButtonVariant;
|
|
181
|
-
showDropdown: boolean;
|
|
182
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLButtonElement, ComponentProvideOptions, {
|
|
183
|
-
P: {};
|
|
184
|
-
B: {};
|
|
185
|
-
D: {};
|
|
186
|
-
C: {};
|
|
187
|
-
M: {};
|
|
188
|
-
Defaults: {};
|
|
189
|
-
}, Readonly< PvSelectButtonTrigger> & Readonly<{
|
|
190
|
-
"onHandle-clear"?: (() => any) | undefined;
|
|
191
|
-
}>, {}, {}, {}, {}, {
|
|
192
|
-
size: PvSelectButtonSize;
|
|
193
|
-
variant: PvSelectButtonVariant;
|
|
194
|
-
showDropdown: boolean;
|
|
195
|
-
}> | null;
|
|
196
|
-
searchInputRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
197
|
-
modelValue?: string;
|
|
198
|
-
} & PvSearchInputProps> & Readonly<{
|
|
199
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
200
|
-
}>, {
|
|
201
|
-
input: Readonly< ShallowRef<HTMLInputElement | null>>;
|
|
202
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
203
|
-
"update:modelValue": (value: string) => any;
|
|
204
|
-
}, PublicProps, {
|
|
205
|
-
disabled: boolean;
|
|
206
|
-
placeholder: string;
|
|
207
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
208
|
-
'search-input': HTMLInputElement;
|
|
209
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
210
|
-
P: {};
|
|
211
|
-
B: {};
|
|
212
|
-
D: {};
|
|
213
|
-
C: {};
|
|
214
|
-
M: {};
|
|
215
|
-
Defaults: {};
|
|
216
|
-
}, Readonly<{
|
|
217
|
-
modelValue?: string;
|
|
218
|
-
} & PvSearchInputProps> & Readonly<{
|
|
219
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
220
|
-
}>, {
|
|
221
|
-
input: Readonly< ShallowRef<HTMLInputElement | null>>;
|
|
222
|
-
}, {}, {}, {}, {
|
|
223
|
-
disabled: boolean;
|
|
224
|
-
placeholder: string;
|
|
225
|
-
}> | null;
|
|
226
|
-
}, HTMLDivElement>;
|
|
227
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
228
114
|
export default _default;
|
|
229
|
-
type
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
};
|
|
233
|
-
};
|
|
115
|
+
type __VLS_PrettifyLocal<T> = {
|
|
116
|
+
[K in keyof T]: T[K];
|
|
117
|
+
} & {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { PvSize, PvVariants } from '../baseProps';
|
|
2
2
|
import { PvPopoverV2Props } from '../PvPopoverV2/types.ts';
|
|
3
|
-
import { CSSProperties } from 'vue';
|
|
4
|
-
import { MenuOption, MenuOptionsVariant } from '../../../types.ts';
|
|
3
|
+
import { Component, CSSProperties } from 'vue';
|
|
4
|
+
import { MenuAction, MenuOption, MenuOptionsVariant } from '../../../types.ts';
|
|
5
|
+
import { PvCounterBadgeVariant } from '../PvCounterBadge/types.ts';
|
|
5
6
|
export type PvSelectButtonVariant = Extract<PvVariants, "secondary" | "ghost">;
|
|
6
7
|
export type PvSelectButtonSize = Extract<PvSize, "lg" | "xl">;
|
|
7
8
|
export type MenuActionsVariant = "select-clear" | "cancel-confirm";
|
|
8
|
-
export interface PvMultiSelectButtonProps {
|
|
9
|
+
export interface PvMultiSelectButtonProps<T = unknown> {
|
|
9
10
|
groupings?: string[];
|
|
10
11
|
defaultOpen?: boolean;
|
|
11
12
|
disabled?: boolean;
|
|
@@ -26,8 +27,12 @@ export interface PvMultiSelectButtonProps {
|
|
|
26
27
|
searchPlaceholder?: string;
|
|
27
28
|
overlayTrigger?: boolean;
|
|
28
29
|
optionsVariant?: Exclude<MenuOptionsVariant, "radio">;
|
|
29
|
-
options?: MenuOption[];
|
|
30
|
+
options?: MenuOption<T>[];
|
|
31
|
+
optionsRenderer?: Component;
|
|
32
|
+
optionsAction?: MenuAction<T>;
|
|
30
33
|
menuActionsVariant?: MenuActionsVariant | null;
|
|
34
|
+
/** Variant of the counter badge which appears on the button and menu items */
|
|
35
|
+
counterBadgeVariant?: PvCounterBadgeVariant;
|
|
31
36
|
}
|
|
32
37
|
export interface PvMultiSelectButtonSlotProps extends PvMultiSelectButtonProps {
|
|
33
38
|
searchInput?: string;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { CSSProperties,
|
|
1
|
+
import { CSSProperties, Component, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
2
|
import { PvSelectButtonSize, PvSelectButtonVariant } from './types';
|
|
3
|
-
import { MenuOption, MenuOptionsVariant } from '../../../types';
|
|
3
|
+
import { MenuAction, MenuOption, MenuOptionsVariant } from '../../../types';
|
|
4
4
|
import { PvCounterBadgeVariant } from '../PvCounterBadge/types';
|
|
5
5
|
import { PvPopoverV2Props } from '../PvPopoverV2/types.ts';
|
|
6
|
-
|
|
7
|
-
import { PvSelectButtonSize, PvSelectButtonVariant } from '../PvMultiSelectButton/types';
|
|
8
|
-
export interface PvSelectButtonProps {
|
|
6
|
+
export interface PvSelectButtonProps<T = unknown> {
|
|
9
7
|
defaultOpen?: boolean;
|
|
10
8
|
disabled?: boolean;
|
|
11
9
|
isLoading?: boolean;
|
|
@@ -19,58 +17,35 @@ export interface PvSelectButtonProps {
|
|
|
19
17
|
disableSearchInput?: boolean;
|
|
20
18
|
searchPlaceholder?: string;
|
|
21
19
|
optionsVariant?: Exclude<MenuOptionsVariant, "checkbox">;
|
|
22
|
-
options?: MenuOption[];
|
|
20
|
+
options?: MenuOption<T>[];
|
|
21
|
+
optionsRenderer?: Component;
|
|
22
|
+
optionsAction?: MenuAction<T>;
|
|
23
23
|
disableDeselect?: boolean;
|
|
24
24
|
counterPosition?: "left" | "right";
|
|
25
25
|
/** Variant of the counter badge which appears on the button and menu items */
|
|
26
26
|
counterBadgeVariant?: PvCounterBadgeVariant;
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
options: MenuOption[];
|
|
49
|
-
optionsVariant: Exclude<MenuOptionsVariant, "checkbox">;
|
|
50
|
-
disableSearchInput: boolean;
|
|
51
|
-
disableDeselect: boolean;
|
|
52
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
53
|
-
'select-button-trigger-ref': CreateComponentPublicInstanceWithMixins<Readonly< PvSelectButtonTrigger> & Readonly<{
|
|
54
|
-
"onHandle-clear"?: (() => any) | undefined;
|
|
55
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
56
|
-
"handle-clear": () => any;
|
|
57
|
-
}, PublicProps, {
|
|
58
|
-
size: PvSelectButtonSize;
|
|
59
|
-
variant: PvSelectButtonVariant;
|
|
60
|
-
showDropdown: boolean;
|
|
61
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLButtonElement, ComponentProvideOptions, {
|
|
62
|
-
P: {};
|
|
63
|
-
B: {};
|
|
64
|
-
D: {};
|
|
65
|
-
C: {};
|
|
66
|
-
M: {};
|
|
67
|
-
Defaults: {};
|
|
68
|
-
}, Readonly< PvSelectButtonTrigger> & Readonly<{
|
|
69
|
-
"onHandle-clear"?: (() => any) | undefined;
|
|
70
|
-
}>, {}, {}, {}, {}, {
|
|
71
|
-
size: PvSelectButtonSize;
|
|
72
|
-
variant: PvSelectButtonVariant;
|
|
73
|
-
showDropdown: boolean;
|
|
74
|
-
}> | null;
|
|
75
|
-
}, HTMLDivElement>;
|
|
28
|
+
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
29
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
30
|
+
readonly "onDropdown-open"?: (() => any) | undefined;
|
|
31
|
+
readonly "onDropdown-closed"?: (() => any) | undefined;
|
|
32
|
+
readonly "onUpdate:modelValue"?: ((value: MenuOption<unknown>) => any) | undefined;
|
|
33
|
+
readonly "onUpdate:searchInput"?: ((value: string) => any) | undefined;
|
|
34
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onDropdown-open" | "onDropdown-closed" | "onUpdate:modelValue" | "onUpdate:searchInput"> & ({
|
|
35
|
+
modelValue?: MenuOption;
|
|
36
|
+
searchInput?: string;
|
|
37
|
+
} & PvSelectButtonProps<T>) & Partial<{}>> & PublicProps;
|
|
38
|
+
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
39
|
+
attrs: any;
|
|
40
|
+
slots: {};
|
|
41
|
+
emit: {
|
|
42
|
+
(e: "dropdown-open"): void;
|
|
43
|
+
(e: "dropdown-closed"): void;
|
|
44
|
+
} & (((evt: "update:modelValue", value: MenuOption<unknown>) => void) & ((evt: "update:searchInput", value: string) => void));
|
|
45
|
+
}>) => VNode & {
|
|
46
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
47
|
+
};
|
|
76
48
|
export default _default;
|
|
49
|
+
type __VLS_PrettifyLocal<T> = {
|
|
50
|
+
[K in keyof T]: T[K];
|
|
51
|
+
} & {};
|