@turquoisehealth/pit-viper 2.189.2-dev.0 → 2.190.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/_site/assets/css/pit-viper-a11y.css +14 -0
- package/_site/assets/css/pit-viper-consumer.css +14 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +11 -0
- package/_site/assets/css/pit-viper-v2.css +14 -0
- package/_site/assets/css/pit-viper.css +14 -0
- 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-avatar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-modal-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-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvAvatar/PvAvatar.vue.d.ts +2 -15
- package/pv-components/dist/vue/base/components/base/PvAvatar/types.d.ts +17 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/cascadeUtils.d.ts +7 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/types.d.ts +2 -2
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -3
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +2 -2
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +4 -21
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/types.d.ts +25 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +743 -704
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/base/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAvatar/PvAvatar.vue.d.ts +2 -15
- package/pv-components/dist/vue/visualizations/components/base/PvAvatar/types.d.ts +17 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/cascadeUtils.d.ts +7 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/types.d.ts +2 -2
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -3
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +2 -2
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +4 -21
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButtonTrigger/types.d.ts +25 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +0 -2
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterPanel.vue.d.ts +0 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/SetFilter.vue.d.ts +0 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +0 -2
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +9 -3
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1548 -1513
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/types.d.ts +3 -0
- package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +8 -3
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +881 -869
- package/pv-components/dist/web/components/pv-modal/pv-modal.js +2 -3
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1178 -1143
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1191 -1178
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1191 -1140
- package/pv-components/dist/web/pv-components.iife.js +31 -31
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
import { PvAvatarSize,
|
|
1
|
+
import { PvAvatarProps, PvAvatarSize, PvAvatarShape } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
interface PvAvatarProps {
|
|
4
|
-
/** Icon name from the SVG sprite to display inside the avatar. Takes priority over `initials` and `image`. */
|
|
5
|
-
icon?: string;
|
|
6
|
-
/** URL of an image to display. Only rendered when `icon` and `initials` are not set. */
|
|
7
|
-
image?: string;
|
|
8
|
-
/** Accessible alt text for the avatar image. Defaults to "" (decorative) when initials or other context provides the name. */
|
|
9
|
-
alt?: string;
|
|
10
|
-
/** One or two character string displayed when no icon is provided. Takes priority over `image` when both are set. */
|
|
11
|
-
initials?: string;
|
|
12
|
-
/** Display size of the avatar. */
|
|
13
|
-
size?: PvAvatarSize;
|
|
14
|
-
/** Color variant applied to the avatar background (1–7). */
|
|
15
|
-
variant?: PvAvatarVariant;
|
|
16
|
-
}
|
|
17
3
|
declare const _default: DefineComponent<PvAvatarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvAvatarProps> & Readonly<{}>, {
|
|
18
4
|
size: PvAvatarSize;
|
|
5
|
+
shape: PvAvatarShape;
|
|
19
6
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
7
|
export default _default;
|
|
@@ -1,3 +1,20 @@
|
|
|
1
1
|
import { PvSize } from '../baseProps';
|
|
2
|
+
export type PvAvatarShape = "circle" | "square";
|
|
2
3
|
export type PvAvatarSize = Extract<PvSize, "sm" | "md" | "lg" | "xl" | "2x">;
|
|
3
4
|
export type PvAvatarVariant = "1" | "2" | "3" | "4" | "5" | "6" | "7";
|
|
5
|
+
export interface PvAvatarProps {
|
|
6
|
+
/** Accessible alt text for the avatar image. Defaults to "" (decorative) when initials or other context provides the name. */
|
|
7
|
+
alt?: string;
|
|
8
|
+
/** Icon name from the SVG sprite to display inside the avatar. Takes priority over `initials` and `image`. */
|
|
9
|
+
icon?: string;
|
|
10
|
+
/** URL of an image to display. Only rendered when `icon` and `initials` are not set. */
|
|
11
|
+
image?: string;
|
|
12
|
+
/** One or two character string displayed when no icon is provided. Takes priority over `image` when both are set. */
|
|
13
|
+
initials?: string;
|
|
14
|
+
/** Shape of the avatar. Defaults to `circle`. */
|
|
15
|
+
shape?: PvAvatarShape;
|
|
16
|
+
/** Display size of the avatar. */
|
|
17
|
+
size?: PvAvatarSize;
|
|
18
|
+
/** Color variant applied to the avatar background (1–7). */
|
|
19
|
+
variant?: PvAvatarVariant;
|
|
20
|
+
}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { MenuOption, MultiSelectState } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns true when an option has children, whether they are already loaded or
|
|
4
|
+
* only represented by the server-provided `totalChildCount` for lazy-loading.
|
|
5
|
+
* Fully loaded children still count as cascade children — this helper answers
|
|
6
|
+
* "is this a parent?", not "are there more children to load?".
|
|
7
|
+
*/
|
|
8
|
+
export declare function hasCascadeChildren<T>(option: MenuOption<T>): boolean;
|
|
2
9
|
/** Recursively collect all leaf (childless) options from a tree. */
|
|
3
10
|
export declare function collectLeafOptions<T>(options: MenuOption<T>[]): MenuOption<T>[];
|
|
4
11
|
/**
|
|
@@ -12,11 +12,11 @@ export interface PvMenuProps {
|
|
|
12
12
|
itemClass?: string;
|
|
13
13
|
/** When true, only selected items are visible (used during loading states). */
|
|
14
14
|
isLoading?: boolean;
|
|
15
|
+
/** When true, the top-level See more button shows a loading spinner. */
|
|
16
|
+
isSeeMoreLoading?: boolean;
|
|
15
17
|
/** When true, only one item can be selected at a time (radio behavior). */
|
|
16
18
|
singleSelect?: boolean;
|
|
17
19
|
/** When true, selecting a parent option toggles all its leaf children. */
|
|
18
20
|
enableCascadeSelection?: boolean;
|
|
19
21
|
hasMoreOptions?: boolean;
|
|
20
|
-
/** When true, item clicks are ignored — the list is display-only. */
|
|
21
|
-
readOnly?: boolean;
|
|
22
22
|
}
|
package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
34
34
|
groupings: string[];
|
|
35
35
|
hideParentOnChildQueryMatch: boolean;
|
|
36
36
|
icon: string;
|
|
37
|
+
isSeeMoreLoading: boolean;
|
|
37
38
|
hasMoreOptions: boolean;
|
|
38
39
|
optionsAction: MenuAction<T> | undefined;
|
|
39
40
|
optionsRenderer: Component;
|
|
@@ -52,7 +53,6 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
52
53
|
disableDropdownIcon: boolean;
|
|
53
54
|
disableClearIcon: boolean;
|
|
54
55
|
disableSearchInput: boolean;
|
|
55
|
-
readOnly: boolean;
|
|
56
56
|
optionsVariant: "toggle" | "icon" | "checkbox" | "simple" | "company" | "avatar" | "checkmark";
|
|
57
57
|
options: MenuOption<T>[];
|
|
58
58
|
menuActionsVariant: MenuActionsVariant | null;
|
|
@@ -74,6 +74,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
74
74
|
groupings: string[];
|
|
75
75
|
hideParentOnChildQueryMatch: boolean;
|
|
76
76
|
icon: string;
|
|
77
|
+
isSeeMoreLoading: boolean;
|
|
77
78
|
hasMoreOptions: boolean;
|
|
78
79
|
optionsAction: MenuAction<T> | undefined;
|
|
79
80
|
optionsRenderer: Component;
|
|
@@ -92,7 +93,6 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
92
93
|
disableDropdownIcon: boolean;
|
|
93
94
|
disableClearIcon: boolean;
|
|
94
95
|
disableSearchInput: boolean;
|
|
95
|
-
readOnly: boolean;
|
|
96
96
|
optionsVariant: "toggle" | "icon" | "checkbox" | "simple" | "company" | "avatar" | "checkmark";
|
|
97
97
|
options: MenuOption<T>[];
|
|
98
98
|
menuActionsVariant: MenuActionsVariant | null;
|
|
@@ -114,6 +114,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
114
114
|
groupings: string[];
|
|
115
115
|
hideParentOnChildQueryMatch: boolean;
|
|
116
116
|
icon: string;
|
|
117
|
+
isSeeMoreLoading: boolean;
|
|
117
118
|
hasMoreOptions: boolean;
|
|
118
119
|
optionsAction: MenuAction<T> | undefined;
|
|
119
120
|
optionsRenderer: Component;
|
|
@@ -132,7 +133,6 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
132
133
|
disableDropdownIcon: boolean;
|
|
133
134
|
disableClearIcon: boolean;
|
|
134
135
|
disableSearchInput: boolean;
|
|
135
|
-
readOnly: boolean;
|
|
136
136
|
optionsVariant: "toggle" | "icon" | "checkbox" | "simple" | "company" | "avatar" | "checkmark";
|
|
137
137
|
options: MenuOption<T>[];
|
|
138
138
|
menuActionsVariant: MenuActionsVariant | null;
|
|
@@ -26,8 +26,6 @@ export interface PvMultiSelectButtonProps<T = unknown, SlotContext extends Recor
|
|
|
26
26
|
disableSearchInput?: boolean;
|
|
27
27
|
/** Prevent the button from being clicked */
|
|
28
28
|
disabled?: boolean;
|
|
29
|
-
/** Allow the dropdown to open for viewing but prevent adding or removing selections */
|
|
30
|
-
readOnly?: boolean;
|
|
31
29
|
/** Enable cascade (parent/child) selection. When true, clicking a parent option
|
|
32
30
|
* toggles all its leaf descendants, and parent checkboxes show indeterminate state
|
|
33
31
|
* when partially selected. All existing behavior is unchanged when false (default). */
|
|
@@ -49,6 +47,8 @@ export interface PvMultiSelectButtonProps<T = unknown, SlotContext extends Recor
|
|
|
49
47
|
icon?: string;
|
|
50
48
|
/** Show a loading spinner inside the dropdown */
|
|
51
49
|
isLoading?: boolean;
|
|
50
|
+
/** Show a loading spinner on the top-level See more button without replacing the option list */
|
|
51
|
+
isSeeMoreLoading?: boolean;
|
|
52
52
|
/** Whether more top-level options are available after the loaded options */
|
|
53
53
|
hasMoreOptions?: boolean;
|
|
54
54
|
/** Text label on the trigger button */
|
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PvCounterBadgeVariant } from '../../PvCounterBadge/types';
|
|
1
|
+
import { PvSelectButtonTriggerProps } from './types';
|
|
3
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
inverse?: boolean;
|
|
7
|
-
size?: PvSelectButtonSize;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
counterPosition?: "left" | "right" | "none";
|
|
10
|
-
counterValue?: number;
|
|
11
|
-
counterBadgeVariant?: PvCounterBadgeVariant;
|
|
12
|
-
prefixLabel?: string;
|
|
13
|
-
label?: string;
|
|
14
|
-
icon?: string;
|
|
15
|
-
companyLogo?: string;
|
|
16
|
-
showClear?: boolean;
|
|
17
|
-
showDropdown?: boolean;
|
|
18
|
-
open: boolean;
|
|
19
|
-
isLoading?: boolean;
|
|
20
|
-
}
|
|
21
|
-
declare const _default: DefineComponent<PvSelectButtonTrigger, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3
|
+
import { PvSelectButtonSize, PvSelectButtonVariant } from '../../PvMultiSelectButton/types';
|
|
4
|
+
declare const _default: DefineComponent<PvSelectButtonTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
22
5
|
"handle-clear": () => any;
|
|
23
|
-
}, string, PublicProps, Readonly<
|
|
6
|
+
}, string, PublicProps, Readonly<PvSelectButtonTriggerProps> & Readonly<{
|
|
24
7
|
"onHandle-clear"?: (() => any) | undefined;
|
|
25
8
|
}>, {
|
|
26
9
|
size: PvSelectButtonSize;
|
package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/types.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { PvCounterBadgeVariant } from '../../PvCounterBadge/types';
|
|
3
|
+
import { PvSelectButtonSize, PvSelectButtonVariant } from '../../PvMultiSelectButton/types';
|
|
4
|
+
import { MenuOption, MenuOptionConfig } from '../../../../types';
|
|
5
|
+
export interface PvSelectButtonTriggerProps {
|
|
6
|
+
avatar?: MenuOption["avatar"];
|
|
7
|
+
companyLogo?: string;
|
|
8
|
+
counterBadgeVariant?: PvCounterBadgeVariant;
|
|
9
|
+
counterPosition?: "left" | "right" | "none";
|
|
10
|
+
counterValue?: number;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
icon?: string;
|
|
13
|
+
inverse?: boolean;
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
label?: string;
|
|
16
|
+
menuOptionConfig?: MenuOptionConfig;
|
|
17
|
+
open: boolean;
|
|
18
|
+
prefixLabel?: string;
|
|
19
|
+
renderer?: Component;
|
|
20
|
+
selectedOption?: MenuOption;
|
|
21
|
+
showClear?: boolean;
|
|
22
|
+
showDropdown?: boolean;
|
|
23
|
+
size?: PvSelectButtonSize;
|
|
24
|
+
variant?: PvSelectButtonVariant;
|
|
25
|
+
}
|