@turquoisehealth/pit-viper 2.119.0 → 2.119.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.
@@ -1,47 +1,42 @@
1
- import { CSSProperties, nextTick, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, Ref, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
1
+ import { CSSProperties, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
2
2
  import { PvSelectButtonSize, PvSelectButtonVariant } from './types';
3
3
  import { MenuOption, MenuOptionsVariant } from '../../../types';
4
4
  import { PvCounterBadgeVariant } from '../PvCounterBadge/types';
5
+ import { PvPopoverV2Props } from '../PvPopoverV2/types.ts';
5
6
  import { PvSelectButtonTrigger } from './PvSelectButtonTrigger/PvSelectButtonTrigger.vue';
6
7
  import { PvSelectButtonSize, PvSelectButtonVariant } from '../PvMultiSelectButton/types';
7
- import { PvPopoverProps } from '../PvPopover/PvPopover.vue';
8
- import { OnCleanup } from '@vue/reactivity';
9
- import { PvSelectMenu } from '../PvMenu/PvMenu.vue';
10
- export interface PvSelectButton {
8
+ export interface PvSelectButtonProps {
11
9
  defaultOpen?: boolean;
12
10
  disabled?: boolean;
13
- teleportLocation?: string;
14
11
  isLoading?: boolean;
15
12
  variant?: PvSelectButtonVariant;
13
+ inverse?: boolean;
16
14
  size?: PvSelectButtonSize;
17
- alignment?: "top" | "right" | "top right" | undefined;
15
+ popoverProperties?: PvPopoverV2Props;
18
16
  popoverCssProperties?: CSSProperties;
19
17
  prefixLabel?: string;
20
18
  label?: string;
21
- showMenuAction?: boolean;
22
- showSearchInput?: boolean;
19
+ disableSearchInput?: boolean;
23
20
  searchPlaceholder?: string;
24
21
  optionsVariant?: Exclude<MenuOptionsVariant, "checkbox">;
25
- options: MenuOption[];
26
- useTeleport?: boolean;
27
- allowDeselect?: boolean;
22
+ options?: MenuOption[];
23
+ disableDeselect?: boolean;
28
24
  counterPosition?: "left" | "right";
29
25
  /** Variant of the counter badge which appears on the button and menu items */
30
26
  counterBadgeVariant?: PvCounterBadgeVariant;
31
27
  }
32
- declare const _default: DefineComponent<{
28
+ type __VLS_Props = PvSelectButtonProps;
29
+ type __VLS_PublicProps = {
33
30
  modelValue?: MenuOption;
34
- searchInput?: string;
35
- } & PvSelectButton, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
31
+ "searchInput"?: string;
32
+ } & __VLS_Props;
33
+ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
36
34
  "update:modelValue": (value: MenuOption) => any;
37
35
  "update:searchInput": (value: string) => any;
38
36
  } & {
39
37
  "dropdown-open": () => any;
40
38
  "dropdown-closed": () => any;
41
- }, string, PublicProps, Readonly<{
42
- modelValue?: MenuOption;
43
- searchInput?: string;
44
- } & PvSelectButton> & Readonly<{
39
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
45
40
  "onDropdown-open"?: (() => any) | undefined;
46
41
  "onDropdown-closed"?: (() => any) | undefined;
47
42
  "onUpdate:modelValue"?: ((value: MenuOption) => any) | undefined;
@@ -50,27 +45,20 @@ declare const _default: DefineComponent<{
50
45
  size: PvSelectButtonSize;
51
46
  label: string;
52
47
  variant: PvSelectButtonVariant;
53
- useTeleport: boolean;
54
- teleportLocation: string;
48
+ options: MenuOption[];
55
49
  optionsVariant: Exclude<MenuOptionsVariant, "checkbox">;
56
- showSearchInput: boolean;
57
- allowDeselect: boolean;
50
+ disableSearchInput: boolean;
51
+ disableDeselect: boolean;
58
52
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
59
53
  'select-button-trigger-ref': CreateComponentPublicInstanceWithMixins<Readonly< PvSelectButtonTrigger> & Readonly<{
60
- "onHandle-toggle-dropdown"?: (() => any) | undefined;
61
54
  "onHandle-clear"?: (() => any) | undefined;
62
- }>, {
63
- triggerRef: Ref<HTMLElement | null, HTMLElement | null>;
64
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
65
- "handle-toggle-dropdown": () => any;
55
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
66
56
  "handle-clear": () => any;
67
57
  }, PublicProps, {
68
58
  size: PvSelectButtonSize;
69
59
  variant: PvSelectButtonVariant;
70
60
  showDropdown: boolean;
71
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
72
- triggerRef: HTMLButtonElement;
73
- }, HTMLButtonElement, ComponentProvideOptions, {
61
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLButtonElement, ComponentProvideOptions, {
74
62
  P: {};
75
63
  B: {};
76
64
  D: {};
@@ -78,156 +66,11 @@ declare const _default: DefineComponent<{
78
66
  M: {};
79
67
  Defaults: {};
80
68
  }, Readonly< PvSelectButtonTrigger> & Readonly<{
81
- "onHandle-toggle-dropdown"?: (() => any) | undefined;
82
69
  "onHandle-clear"?: (() => any) | undefined;
83
- }>, {
84
- triggerRef: Ref<HTMLElement | null, HTMLElement | null>;
85
- }, {}, {}, {}, {
70
+ }>, {}, {}, {}, {}, {
86
71
  size: PvSelectButtonSize;
87
72
  variant: PvSelectButtonVariant;
88
73
  showDropdown: boolean;
89
74
  }> | null;
90
- 'select-menu-ref': ({
91
- $: ComponentInternalInstance;
92
- $data: {};
93
- $props: {
94
- readonly teleportLocation?: string | undefined;
95
- readonly open: boolean;
96
- readonly popoverPositionStyle?: CSSProperties | undefined;
97
- readonly cssCustomListProperties?: CSSProperties | undefined;
98
- readonly useTeleport?: boolean | undefined;
99
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
100
- $attrs: {
101
- [x: string]: unknown;
102
- };
103
- $refs: {
104
- [x: string]: unknown;
105
- } & {
106
- popoverRef: ({
107
- $: ComponentInternalInstance;
108
- $data: {};
109
- $props: {
110
- readonly alignment?: "top" | "right" | "top right" | undefined | undefined;
111
- readonly cssCustomProperties?: CSSProperties | undefined;
112
- readonly cssCustomListProperties?: CSSProperties | undefined;
113
- readonly isList?: boolean | undefined;
114
- readonly isSortable?: boolean | undefined;
115
- readonly "onList-order-updated"?: ((value: string[]) => any) | undefined;
116
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
117
- $attrs: {
118
- [x: string]: unknown;
119
- };
120
- $refs: {
121
- [x: string]: unknown;
122
- } & {
123
- popoverRoot: HTMLDivElement;
124
- popoverList: HTMLUListElement;
125
- };
126
- $slots: Readonly<{
127
- [name: string]: Slot<any> | undefined;
128
- }>;
129
- $root: ComponentPublicInstance | null;
130
- $parent: ComponentPublicInstance | null;
131
- $host: Element | null;
132
- $emit: (event: "list-order-updated", value: string[]) => void;
133
- $el: HTMLDivElement;
134
- $options: ComponentOptionsBase<Readonly< PvPopoverProps> & Readonly<{
135
- "onList-order-updated"?: ((value: string[]) => any) | undefined;
136
- }>, {
137
- popoverRoot: Ref<HTMLElement | null, HTMLElement | null>;
138
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
139
- "list-order-updated": (value: string[]) => any;
140
- }, string, {
141
- alignment: "top" | "right" | "top right";
142
- cssCustomProperties: CSSProperties;
143
- isList: boolean;
144
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
145
- beforeCreate?: (() => void) | (() => void)[];
146
- created?: (() => void) | (() => void)[];
147
- beforeMount?: (() => void) | (() => void)[];
148
- mounted?: (() => void) | (() => void)[];
149
- beforeUpdate?: (() => void) | (() => void)[];
150
- updated?: (() => void) | (() => void)[];
151
- activated?: (() => void) | (() => void)[];
152
- deactivated?: (() => void) | (() => void)[];
153
- beforeDestroy?: (() => void) | (() => void)[];
154
- beforeUnmount?: (() => void) | (() => void)[];
155
- destroyed?: (() => void) | (() => void)[];
156
- unmounted?: (() => void) | (() => void)[];
157
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
158
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
159
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
160
- };
161
- $forceUpdate: () => void;
162
- $nextTick: typeof nextTick;
163
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
164
- } & Readonly<{
165
- alignment: "top" | "right" | "top right";
166
- cssCustomProperties: CSSProperties;
167
- isList: boolean;
168
- }> & Omit<Readonly< PvPopoverProps> & Readonly<{
169
- "onList-order-updated"?: ((value: string[]) => any) | undefined;
170
- }>, "popoverRoot" | ("alignment" | "cssCustomProperties" | "isList")> & ShallowUnwrapRef<{
171
- popoverRoot: Ref<HTMLElement | null, HTMLElement | null>;
172
- }> & {} & ComponentCustomProperties & {} & {
173
- $slots: {
174
- default?(_: {}): any;
175
- default?(_: {}): any;
176
- };
177
- }) | null;
178
- };
179
- $slots: Readonly<{
180
- [name: string]: Slot<any> | undefined;
181
- }>;
182
- $root: ComponentPublicInstance | null;
183
- $parent: ComponentPublicInstance | null;
184
- $host: Element | null;
185
- $emit: (event: string, ...args: any[]) => void;
186
- $el: any;
187
- $options: ComponentOptionsBase<Readonly< PvSelectMenu> & Readonly<{}>, {
188
- popoverRef: Ref<{
189
- popoverRoot: HTMLElement | null;
190
- } | null, {
191
- popoverRoot: HTMLElement | null;
192
- } | {
193
- popoverRoot: HTMLElement | null;
194
- } | null>;
195
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
196
- useTeleport: boolean;
197
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
198
- beforeCreate?: (() => void) | (() => void)[];
199
- created?: (() => void) | (() => void)[];
200
- beforeMount?: (() => void) | (() => void)[];
201
- mounted?: (() => void) | (() => void)[];
202
- beforeUpdate?: (() => void) | (() => void)[];
203
- updated?: (() => void) | (() => void)[];
204
- activated?: (() => void) | (() => void)[];
205
- deactivated?: (() => void) | (() => void)[];
206
- beforeDestroy?: (() => void) | (() => void)[];
207
- beforeUnmount?: (() => void) | (() => void)[];
208
- destroyed?: (() => void) | (() => void)[];
209
- unmounted?: (() => void) | (() => void)[];
210
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
211
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
212
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
213
- };
214
- $forceUpdate: () => void;
215
- $nextTick: typeof nextTick;
216
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
217
- } & Readonly<{
218
- useTeleport: boolean;
219
- }> & Omit<Readonly< PvSelectMenu> & Readonly<{}>, "useTeleport" | "popoverRef"> & ShallowUnwrapRef<{
220
- popoverRef: Ref<{
221
- popoverRoot: HTMLElement | null;
222
- } | null, {
223
- popoverRoot: HTMLElement | null;
224
- } | {
225
- popoverRoot: HTMLElement | null;
226
- } | null>;
227
- }> & {} & ComponentCustomProperties & {} & {
228
- $slots: {
229
- default?(_: {}): any;
230
- };
231
- }) | null;
232
75
  }, HTMLDivElement>;
233
76
  export default _default;
@@ -1,8 +1,9 @@
1
1
  import { PvSelectButtonSize, PvSelectButtonVariant } from '../../PvMultiSelectButton/types';
2
2
  import { PvCounterBadgeVariant } from '../../PvCounterBadge/types';
3
- import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
4
  export interface PvSelectButtonTrigger {
5
5
  variant?: PvSelectButtonVariant;
6
+ inverse?: boolean;
6
7
  size?: PvSelectButtonSize;
7
8
  disabled?: boolean;
8
9
  counterPosition?: "left" | "right" | "none";
@@ -17,19 +18,13 @@ export interface PvSelectButtonTrigger {
17
18
  open: boolean;
18
19
  isLoading?: boolean;
19
20
  }
20
- declare const _default: DefineComponent<PvSelectButtonTrigger, {
21
- triggerRef: Ref<HTMLElement | null, HTMLElement | null>;
22
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
23
- "handle-toggle-dropdown": () => any;
21
+ declare const _default: DefineComponent<PvSelectButtonTrigger, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
24
22
  "handle-clear": () => any;
25
23
  }, string, PublicProps, Readonly<PvSelectButtonTrigger> & Readonly<{
26
- "onHandle-toggle-dropdown"?: (() => any) | undefined;
27
24
  "onHandle-clear"?: (() => any) | undefined;
28
25
  }>, {
29
26
  size: PvSelectButtonSize;
30
27
  variant: PvSelectButtonVariant;
31
28
  showDropdown: boolean;
32
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
33
- triggerRef: HTMLButtonElement;
34
- }, HTMLButtonElement>;
29
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
35
30
  export default _default;
@@ -60,4 +60,4 @@ export type { Tab } from './PvTabs/types';
60
60
  export type { PvBreadcrumbsOptions } from './PvBreadcrumbs/types';
61
61
  export type { PvAvatarGroupItem } from './PvAvatarGroup/types';
62
62
  export type { MenuOption } from '../../types';
63
- export type { PvMultiSelectButtonSlotProps } from './PvMultiSelectButton/PvMultiSelectButton.vue';
63
+ export type { PvMultiSelectButtonSlotProps } from './PvMultiSelectButton/types';