@turquoisehealth/pit-viper 2.117.0 → 2.118.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.
Files changed (25) hide show
  1. package/package.json +1 -1
  2. package/pv-components/dist/vue/base/components/base/PvAccordion/PvAccordion.vue.d.ts +2 -1
  3. package/pv-components/dist/vue/base/components/base/PvButton/helpers.d.ts +1 -0
  4. package/pv-components/dist/vue/base/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +6 -0
  5. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +206 -289
  6. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +31 -0
  7. package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +0 -1
  8. package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +6 -1
  9. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +20 -177
  10. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +4 -9
  11. package/pv-components/dist/vue/base/components/base/PvTree/PvButtonTreeItem.vue.d.ts +27 -0
  12. package/pv-components/dist/vue/base/components/base/PvTree/PvCheckboxTreeItem.vue.d.ts +27 -0
  13. package/pv-components/dist/vue/base/components/base/PvTree/PvSimpleItemTree.vue.d.ts +7 -0
  14. package/pv-components/dist/vue/base/components/base/PvTree/PvSimpleNestedTree.vue.d.ts +14 -0
  15. package/pv-components/dist/vue/base/components/base/PvTree/PvTree.vue.d.ts +17 -0
  16. package/pv-components/dist/vue/base/components/base/PvTree/PvTreeItem.vue.d.ts +16 -0
  17. package/pv-components/dist/vue/base/components/base/PvTree/types.d.ts +19 -0
  18. package/pv-components/dist/vue/base/components/base/index.d.ts +2 -1
  19. package/pv-components/dist/vue/base/pv-components-base.js +27 -27
  20. package/pv-components/dist/vue/base/pv-components-base.mjs +4511 -4283
  21. package/pv-components/dist/vue/base/pv-components-base.umd.js +27 -27
  22. package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +14 -14
  23. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +5406 -4252
  24. package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +14 -14
  25. package/pv-components/dist/web/pv-components.iife.js +33 -33
@@ -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;
@@ -0,0 +1,27 @@
1
+ import { PvTreeOption } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface PvButtonTreeItemProps {
4
+ selected?: boolean;
5
+ option: PvTreeOption;
6
+ }
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLButtonElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: DefineComponent<PvButtonTreeItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
17
+ "handle-selected": (payload: PvTreeOption) => any;
18
+ }, string, PublicProps, Readonly<PvButtonTreeItemProps> & Readonly<{
19
+ "onHandle-selected"?: ((payload: PvTreeOption) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,27 @@
1
+ import { PvTreeOption } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface PvCheckboxTreeItemProps {
4
+ selected?: boolean;
5
+ option: PvTreeOption;
6
+ }
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLLabelElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: DefineComponent<PvCheckboxTreeItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
17
+ "handle-selected": (payload: PvTreeOption) => any;
18
+ }, string, PublicProps, Readonly<PvCheckboxTreeItemProps> & Readonly<{
19
+ "onHandle-selected"?: ((payload: PvTreeOption) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,7 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ interface PvSimpleItemTreeProps {
3
+ label: string;
4
+ icon?: string;
5
+ }
6
+ declare const _default: DefineComponent<PvSimpleItemTreeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvSimpleItemTreeProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
7
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { PvTreeOption, PvTreeSettings } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface PvSimpleNestedTreeProps {
4
+ option: PvTreeOption;
5
+ settings: PvTreeSettings;
6
+ level: number;
7
+ selectedOptions?: PvTreeOption[];
8
+ }
9
+ declare const _default: DefineComponent<PvSimpleNestedTreeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
10
+ "handle-tree-select": (payload: PvTreeOption) => any;
11
+ }, string, PublicProps, Readonly<PvSimpleNestedTreeProps> & Readonly<{
12
+ "onHandle-tree-select"?: ((payload: PvTreeOption) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { PvTreeOption, PvTreeSetting, PvTreeSettings } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface PvTreeProps {
4
+ options: PvTreeOption[];
5
+ settings: PvTreeSettings;
6
+ defaultSettings?: PvTreeSetting;
7
+ }
8
+ type __VLS_Props = PvTreeProps;
9
+ type __VLS_PublicProps = {
10
+ "selectedOptions"?: PvTreeOption[];
11
+ } & __VLS_Props;
12
+ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
+ "update:selectedOptions": (value: PvTreeOption[]) => any;
14
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
+ "onUpdate:selectedOptions"?: ((value: PvTreeOption[]) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { PvTreeOption, PvTreeSettings } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface PvTreeItemProps {
4
+ option: PvTreeOption;
5
+ selectedOptions?: PvTreeOption[];
6
+ level?: number;
7
+ settings: PvTreeSettings;
8
+ }
9
+ declare const _default: DefineComponent<PvTreeItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
10
+ "handle-tree-select": (payload: PvTreeOption) => any;
11
+ }, string, PublicProps, Readonly<PvTreeItemProps> & Readonly<{
12
+ "onHandle-tree-select"?: ((payload: PvTreeOption) => any) | undefined;
13
+ }>, {
14
+ level: number;
15
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
16
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { Component } from 'vue';
2
+ export interface PvTreeSetting {
3
+ accordion?: boolean;
4
+ showNestedTree?: boolean;
5
+ icon?: string | undefined;
6
+ checkbox?: boolean;
7
+ defaultExpanded?: boolean;
8
+ renderer?: Component;
9
+ accordionRenderer?: Component;
10
+ }
11
+ export interface PvTreeSettings {
12
+ [key: string]: PvTreeSetting;
13
+ }
14
+ export interface PvTreeOption {
15
+ id: string | number;
16
+ label: string;
17
+ field: string;
18
+ children?: PvTreeOption[];
19
+ }
@@ -51,6 +51,7 @@ export { default as PvExpandableContent } from './PvExpandableContent/PvExpandab
51
51
  export { default as PvToast } from './PvToast/PvToast.vue';
52
52
  export { default as PvActionBar } from './PvActionBar/PvActionBar.vue';
53
53
  export { default as PvTextArea } from './PvTextArea/PvTextArea.vue';
54
+ export { default as PvTree } from './PvTree/PvTree.vue';
54
55
  export { default as PvProgressBar } from './PvProgressBar/PvProgressBar.vue';
55
56
  export { default as PvDistributionBar } from './PvDistributionBar/PvDistributionBar.vue';
56
57
  export { useDateTime } from './PvDateTime/useDateTime';
@@ -59,4 +60,4 @@ export type { Tab } from './PvTabs/types';
59
60
  export type { PvBreadcrumbsOptions } from './PvBreadcrumbs/types';
60
61
  export type { PvAvatarGroupItem } from './PvAvatarGroup/types';
61
62
  export type { MenuOption } from '../../types';
62
- export type { PvMultiSelectButtonSlotProps } from './PvMultiSelectButton/PvMultiSelectButton.vue';
63
+ export type { PvMultiSelectButtonSlotProps } from './PvMultiSelectButton/types';