@turquoisehealth/pit-viper 2.210.2-dev.0 → 2.211.1
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 +3 -1
- package/_site/assets/css/pit-viper-consumer.css +3 -1
- package/_site/assets/css/pit-viper-v2-scoped.css +3 -1
- package/_site/assets/css/pit-viper-v2.css +3 -1
- package/_site/assets/css/pit-viper.css +3 -1
- 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-menu-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/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/PvMenu.vue.d.ts +43 -4
- package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItemAction.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItemVariant.vue.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvMenu/symbols.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/types.d.ts +8 -1
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/index.d.ts +2 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +2192 -1757
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/base/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/base/PvDropdown/PvDropdown.vue.d.ts +2 -2
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/PvMenu.vue.d.ts +43 -4
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/items/PvMenuItemAction.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/items/PvMenuItemVariant.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/symbols.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/types.d.ts +8 -1
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/index.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue.d.ts +4 -2
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/constants.d.ts +0 -2
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionMenuItemRenderer.vue.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionsPanel.vue.d.ts +6 -3
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +18 -8
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/PvDataTable.vue.d.ts +4 -2
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +12 -2
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +12 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3126 -2436
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/types.d.ts +4 -0
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +3695 -2074
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +3109 -1491
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1382 -1333
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2751 -1118
- package/pv-components/dist/web/pv-components.iife.js +36 -36
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -157,6 +157,11 @@ export interface PvFilterPanelColDefContext {
|
|
|
157
157
|
* If true, will show a search box to filter the available filter options
|
|
158
158
|
*/
|
|
159
159
|
filterSearch?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Per-field minimum search length. Overrides PvDataTable's table-level
|
|
162
|
+
* filterSearchMinLength so hosts can keep short values such as codes searchable.
|
|
163
|
+
*/
|
|
164
|
+
filterSearchMinLength?: number;
|
|
160
165
|
/**
|
|
161
166
|
* If true, filter values for this column will be fetched eagerly in the background,
|
|
162
167
|
* even when table-level background refresh is disabled.
|
|
@@ -1,12 +1,37 @@
|
|
|
1
|
+
import { VNodeChild, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
2
|
import { MenuOption, MenuOptionSelectedEvent, SeeMoreEvent } from '../../../types';
|
|
2
|
-
import { PvMenuProps } from './types';
|
|
3
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { PvMenuProps, PvMenuChildrenDisplay } from './types';
|
|
4
4
|
type __VLS_Props = PvMenuProps;
|
|
5
5
|
type __VLS_PublicProps = {
|
|
6
6
|
"selectedItems"?: MenuOption[];
|
|
7
|
+
"expandedOptionId"?: string | undefined;
|
|
7
8
|
} & __VLS_Props;
|
|
8
|
-
declare
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: Readonly<{
|
|
12
|
+
popover?(props: {
|
|
13
|
+
option: MenuOption;
|
|
14
|
+
popoverId: string;
|
|
15
|
+
close: () => void;
|
|
16
|
+
}): VNodeChild;
|
|
17
|
+
}> & {
|
|
18
|
+
popover?(props: {
|
|
19
|
+
option: MenuOption;
|
|
20
|
+
popoverId: string;
|
|
21
|
+
close: () => void;
|
|
22
|
+
}): VNodeChild;
|
|
23
|
+
};
|
|
24
|
+
refs: {
|
|
25
|
+
rootMenuRef: HTMLUListElement;
|
|
26
|
+
nestedMenuPopoverRef: HTMLDivElement;
|
|
27
|
+
nestedMenuRef: HTMLUListElement;
|
|
28
|
+
};
|
|
29
|
+
rootEl: any;
|
|
30
|
+
};
|
|
31
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
32
|
+
declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
33
|
"update:selectedItems": (value: MenuOption<unknown>[]) => any;
|
|
34
|
+
"update:expandedOptionId": (value: string | undefined) => any;
|
|
10
35
|
} & {
|
|
11
36
|
"handle-selected": (payload: MenuOptionSelectedEvent) => any;
|
|
12
37
|
"see-more": (payload: SeeMoreEvent) => any;
|
|
@@ -14,5 +39,19 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
|
|
|
14
39
|
"onHandle-selected"?: ((payload: MenuOptionSelectedEvent) => any) | undefined;
|
|
15
40
|
"onSee-more"?: ((payload: SeeMoreEvent) => any) | undefined;
|
|
16
41
|
"onUpdate:selectedItems"?: ((value: MenuOption<unknown>[]) => any) | undefined;
|
|
17
|
-
|
|
42
|
+
"onUpdate:expandedOptionId"?: ((value: string | undefined) => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
childrenDisplay: PvMenuChildrenDisplay;
|
|
45
|
+
highlightParentItems: boolean;
|
|
46
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
47
|
+
rootMenuRef: HTMLUListElement;
|
|
48
|
+
nestedMenuPopoverRef: HTMLDivElement;
|
|
49
|
+
nestedMenuRef: HTMLUListElement;
|
|
50
|
+
}, any>;
|
|
51
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
52
|
export default _default;
|
|
53
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -3,6 +3,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
3
3
|
interface PvMenuItemActionProps {
|
|
4
4
|
action: MenuAction<any>;
|
|
5
5
|
option: MenuOption;
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const _default: DefineComponent<PvMenuItemActionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvMenuItemActionProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
8
9
|
export default _default;
|
|
@@ -18,5 +18,5 @@ declare const _default: DefineComponent<PvMenuItemVariantProps, {}, {}, {}, {},
|
|
|
18
18
|
"onToggle-expanded"?: (() => any) | undefined;
|
|
19
19
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
20
20
|
inputRef: HTMLInputElement;
|
|
21
|
-
},
|
|
21
|
+
}, any>;
|
|
22
22
|
export default _default;
|
|
@@ -2,6 +2,8 @@ import { ComputedRef, InjectionKey, Ref } from 'vue';
|
|
|
2
2
|
import { MenuOption } from '../../../types';
|
|
3
3
|
export declare const SelectedItemsKey: InjectionKey<Ref<MenuOption[]>>;
|
|
4
4
|
export declare const EnableCascadeSelectionKey: InjectionKey<ComputedRef<boolean>>;
|
|
5
|
+
export declare const MenuInteractionModeKey: InjectionKey<ComputedRef<boolean>>;
|
|
6
|
+
export declare const MenuAncestorIdsKey: InjectionKey<string[]>;
|
|
5
7
|
export declare const OriginalOptionsMapKey: InjectionKey<ComputedRef<Map<string, MenuOption>>>;
|
|
6
8
|
export declare const CascadeSelectedParentIdsKey: InjectionKey<Ref<Set<string>>>;
|
|
7
9
|
export declare const CascadeDeselectedChildIdsKey: InjectionKey<Ref<Map<string, Set<string>>>>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { MenuOption, MenuOptionConfig } from '../../../types';
|
|
2
|
+
export type PvMenuChildrenDisplay = "inline" | "popover";
|
|
2
3
|
export interface PvMenuProps {
|
|
3
4
|
/** Array of menu options to render. */
|
|
4
5
|
options: MenuOption[];
|
|
6
|
+
/** Render child options inline or render each top-level option's direct children in a click-opened popover. Popover mode ignores enableCascadeSelection. */
|
|
7
|
+
childrenDisplay?: PvMenuChildrenDisplay;
|
|
5
8
|
/** Configuration for menu item appearance and behavior (variant, action, etc.). */
|
|
6
9
|
config?: MenuOptionConfig;
|
|
7
10
|
/** Search query text used to highlight matching text in menu items. */
|
|
@@ -16,7 +19,11 @@ export interface PvMenuProps {
|
|
|
16
19
|
isSeeMoreLoading?: boolean;
|
|
17
20
|
/** When true, only one item can be selected at a time (radio behavior). */
|
|
18
21
|
singleSelect?: boolean;
|
|
19
|
-
/** When true,
|
|
22
|
+
/** When true, a selected single-select item cannot be deselected by selecting it again. */
|
|
23
|
+
disableDeselect?: boolean;
|
|
24
|
+
/** When false, expandable parents do not receive the active-row background from selection or expansion. */
|
|
25
|
+
highlightParentItems?: boolean;
|
|
26
|
+
/** When true, selecting an inline parent option toggles all its leaf children. Ignored in popover mode. */
|
|
20
27
|
enableCascadeSelection?: boolean;
|
|
21
28
|
hasMoreOptions?: boolean;
|
|
22
29
|
/** When true, item clicks are ignored — the list is display-only. */
|
|
@@ -3,6 +3,7 @@ import { PvSelectButtonSize, PvSelectButtonVariant } from './types';
|
|
|
3
3
|
import { MenuAction, MenuOption, MenuOptionsVariant } from '../../../types';
|
|
4
4
|
import { PvCounterBadgeVariant } from '../PvCounterBadge/types';
|
|
5
5
|
import { PvPopoverV2Props } from '../PvPopoverV2/types.ts';
|
|
6
|
+
import { PvMenuChildrenDisplay } from '../PvMenu/types';
|
|
6
7
|
export interface PvSelectButtonProps<T = unknown> {
|
|
7
8
|
/** Whether the dropdown is open on initial render */
|
|
8
9
|
defaultOpen?: boolean;
|
|
@@ -32,6 +33,8 @@ export interface PvSelectButtonProps<T = unknown> {
|
|
|
32
33
|
optionsVariant?: Exclude<MenuOptionsVariant, "checkbox">;
|
|
33
34
|
/** The list of selectable options */
|
|
34
35
|
options?: MenuOption<T>[];
|
|
36
|
+
/** Render nested options inline or in click-opened popovers. */
|
|
37
|
+
childrenDisplay?: PvMenuChildrenDisplay;
|
|
35
38
|
/** Custom Vue component used to render each option */
|
|
36
39
|
optionsRenderer?: Component;
|
|
37
40
|
/** Action configuration for per-option action buttons */
|
|
@@ -76,7 +76,7 @@ export { usePvComponents } from './PvComponentsConfig/usePvComponents';
|
|
|
76
76
|
export type { Tab } from './PvTabs/types';
|
|
77
77
|
export type { PvBreadcrumbsOptions } from './PvBreadcrumbs/types';
|
|
78
78
|
export type { PvAvatarGroupItem } from './PvAvatarGroup/types';
|
|
79
|
-
export type { MenuOption } from '../../types';
|
|
79
|
+
export type { MenuOption, MenuOptionSelectedEvent } from '../../types';
|
|
80
80
|
export type { PvMultiSelectButtonSlotProps } from './PvMultiSelectButton/types';
|
|
81
81
|
export type { PvTreeOption, PvTreeSetting, PvTreeSettings } from './PvTree/types';
|
|
82
82
|
export type { RadioGroupOption } from './PvRadioGroup/types';
|
|
@@ -84,6 +84,7 @@ export type { PvTableOfContentsItem } from './PvTableOfContents/types';
|
|
|
84
84
|
export type { PvHorizontalScrollerProps } from './PvHorizontalScroller/types';
|
|
85
85
|
export type { PvFilterModalProps } from './PvFilterModal/types';
|
|
86
86
|
export type { PvHoverActionMenuPosition } from './PvHoverActionMenu/types';
|
|
87
|
+
export type { PvMenuChildrenDisplay } from './PvMenu/types';
|
|
87
88
|
export type { PvFilterPanelAggregateFieldHierarchy, PvFilterPanelColDef, PvFilterPanelColDefContext, PvFilterPanelControlChange, PvFilterPanelFilterChangeEvent, PvFilterPanelFilterChangeReason, PvFilterPanelFilterGroup, PvFilterPanelFilterModel, PvFilterPanelFilterModelType, PvFilterPanelFilterType, PvFilterPanelOption, PvFilterPanelOptionsHandler, PvFilterPanelOptionsHandlerParams, PvFilterPanelOptionsHandlerReason, PvFilterPanelOptionsResponse, PvFilterPanelOptionRawValue, PvFilterPanelProps, PvFilterPanelRangeConfig, PvFilterPanelResultCount, PvFilterPanelSuggestion, PvFilterStore, PvFilterStoreFetchOptionsParams, } from './PvFilterPanel/types';
|
|
88
89
|
export { createPvFilterStore, providePvFilterStore, useOptionalPvFilterStore, usePvFilterStore, } from './PvFilterPanel/usePvFilterStore';
|
|
89
90
|
export type { PvRangeColor, PvRangeMode, PvRangeProps, PvRangeSize, PvRangeValue, } from './PvRange/types';
|