@turquoisehealth/pit-viper 2.251.2 → 2.252.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/_src/assets/sprite-v2.svg +1 -1
- package/_src/assets/sprite.svg +1 -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-filter-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-sortable-list-stats.html +4950 -0
- package/pv-components/dist/stats/web/pv-tree-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvSortableList/PvSortableList.vue.d.ts +43 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/types.d.ts +6 -0
- package/pv-components/dist/vue/ai/components/base/index.d.ts +8 -1
- package/pv-components/dist/vue/base/components/base/PvSortableList/PvSortableList.vue.d.ts +43 -0
- package/pv-components/dist/vue/base/components/base/PvTree/types.d.ts +6 -0
- package/pv-components/dist/vue/base/components/base/index.d.ts +8 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +2377 -2142
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvTree/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/base/index.d.ts +8 -1
- package/pv-components/dist/vue/visualizations/components/visualizations/index.d.ts +12 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1676 -1675
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +4 -2
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +4 -2
- package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +9138 -0
- package/pv-components/dist/web/components/pv-tree/pv-tree.js +213 -206
- package/pv-components/dist/web/pv-components.iife.js +13 -13
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { MenuOption } from '../../../types';
|
|
2
|
+
import { LockedOption } from './types';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
export type PvSortableMenuListProps = {
|
|
5
|
+
/** The full set of available options to choose from and reorder. */
|
|
6
|
+
options: MenuOption[];
|
|
7
|
+
/** Maximum number of options that can be active (above the divider) at once. */
|
|
8
|
+
activeOptionLimit?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Text displayed inside empty placeholder drop zones.
|
|
11
|
+
*/
|
|
12
|
+
placeholderText?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to render placeholder drop zones for unfilled active slots.
|
|
15
|
+
*/
|
|
16
|
+
showPlaceholders?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Options that cannot be removed or reordered: they render with a lock icon and grayed
|
|
19
|
+
* text, stay pinned at the top of the active list, and every mutation (click, drag,
|
|
20
|
+
* placeholder drop) re-asserts them. Ids must refer to options that are already active.
|
|
21
|
+
* An entry's optional `tooltip` explains WHY it is locked, rendered as an info icon
|
|
22
|
+
* (e.g. "Select a single drug to unlock").
|
|
23
|
+
*/
|
|
24
|
+
lockedOptions?: LockedOption[];
|
|
25
|
+
};
|
|
26
|
+
type __VLS_Props = PvSortableMenuListProps;
|
|
27
|
+
type __VLS_PublicProps = {
|
|
28
|
+
modelValue?: MenuOption[];
|
|
29
|
+
} & __VLS_Props;
|
|
30
|
+
declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
31
|
+
"update:modelValue": (value: MenuOption<unknown>[]) => any;
|
|
32
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
33
|
+
"onUpdate:modelValue"?: ((value: MenuOption<unknown>[]) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
options: MenuOption[];
|
|
36
|
+
placeholderText: string;
|
|
37
|
+
showPlaceholders: boolean;
|
|
38
|
+
lockedOptions: LockedOption[];
|
|
39
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
40
|
+
containerRef: HTMLDivElement;
|
|
41
|
+
sortableListRef: HTMLUListElement;
|
|
42
|
+
}, HTMLDivElement>;
|
|
43
|
+
export default _default;
|
|
@@ -18,6 +18,12 @@ export interface PvTreeSetting {
|
|
|
18
18
|
checkbox?: boolean;
|
|
19
19
|
/** Whether accordion nodes start expanded */
|
|
20
20
|
defaultExpanded?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Accordion rows render their children only once first opened (then keep them), so a large tree
|
|
23
|
+
* of mostly closed rows costs little more than its summaries. Rows inside a never-opened accordion
|
|
24
|
+
* are not in the DOM: reveal one with `openNodeIds` rather than looking it up.
|
|
25
|
+
*/
|
|
26
|
+
lazyChildren?: boolean;
|
|
21
27
|
/**
|
|
22
28
|
* Accordion rows only open/close from their chevron; a click elsewhere on the row calls
|
|
23
29
|
* `rendererParams.onSummaryClick` instead (e.g. to select the row).
|
|
@@ -34,6 +34,8 @@ export { default as PvTabs } from './PvTabs/PvTabs.vue';
|
|
|
34
34
|
export { default as PvBreadcrumbs } from './PvBreadcrumbs/PvBreadcrumbs.vue';
|
|
35
35
|
export { default as PvMultiSelectButton } from './PvMultiSelectButton/PvMultiSelectButton.vue';
|
|
36
36
|
export { default as PvSelectButton } from './PvSelectButton/PvSelectButton.vue';
|
|
37
|
+
export { default as PvSelectButtonTrigger } from './PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue';
|
|
38
|
+
export { default as PvSortableList } from './PvSortableList/PvSortableList.vue';
|
|
37
39
|
export { default as PvPagination } from './PvPagination/PvPagination.vue';
|
|
38
40
|
export { default as PvSelectableCard } from './PvSelectableCard/PvSelectableCard.vue';
|
|
39
41
|
export { default as PvSidePanel } from '../layout/PvSidePanel/PvSidePanel.vue';
|
|
@@ -81,10 +83,15 @@ export { default as PvStepper } from './PvStepper/PvStepper.vue';
|
|
|
81
83
|
export { default as PvEmptyState } from './PvEmptyState/PvEmptyState.vue';
|
|
82
84
|
export { useDateTime } from './PvDateTime/useDateTime';
|
|
83
85
|
export { usePvComponents } from './PvComponentsConfig/usePvComponents';
|
|
86
|
+
export { useMenuPosition } from './PvMenu/useMenuPosition';
|
|
87
|
+
export { useSlotPresence } from '../../composables/useSlotPresence';
|
|
88
|
+
export { SelectedItemsKey } from './PvMenu/symbols';
|
|
84
89
|
export type { Tab } from './PvTabs/types';
|
|
85
90
|
export type { PvBreadcrumbsOptions } from './PvBreadcrumbs/types';
|
|
86
91
|
export type { PvAvatarGroupItem } from './PvAvatarGroup/types';
|
|
87
|
-
export type { MenuOption, MenuOptionSelectedEvent } from '../../types';
|
|
92
|
+
export type { MenuOption, MenuOptionSelectedEvent, Option } from '../../types';
|
|
93
|
+
export type { LockedOption } from './PvSortableList/types';
|
|
94
|
+
export type { PopoverRefElement } from './PvMenu/useMenuPosition';
|
|
88
95
|
export type { PvMultiSelectButtonSlotProps } from './PvMultiSelectButton/types';
|
|
89
96
|
export type { PvTreeOption, PvTreeSetting, PvTreeSettings } from './PvTree/types';
|
|
90
97
|
export type { RadioGroupOption } from './PvRadioGroup/types';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { MenuOption } from '../../../types';
|
|
2
|
+
import { LockedOption } from './types';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
export type PvSortableMenuListProps = {
|
|
5
|
+
/** The full set of available options to choose from and reorder. */
|
|
6
|
+
options: MenuOption[];
|
|
7
|
+
/** Maximum number of options that can be active (above the divider) at once. */
|
|
8
|
+
activeOptionLimit?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Text displayed inside empty placeholder drop zones.
|
|
11
|
+
*/
|
|
12
|
+
placeholderText?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to render placeholder drop zones for unfilled active slots.
|
|
15
|
+
*/
|
|
16
|
+
showPlaceholders?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Options that cannot be removed or reordered: they render with a lock icon and grayed
|
|
19
|
+
* text, stay pinned at the top of the active list, and every mutation (click, drag,
|
|
20
|
+
* placeholder drop) re-asserts them. Ids must refer to options that are already active.
|
|
21
|
+
* An entry's optional `tooltip` explains WHY it is locked, rendered as an info icon
|
|
22
|
+
* (e.g. "Select a single drug to unlock").
|
|
23
|
+
*/
|
|
24
|
+
lockedOptions?: LockedOption[];
|
|
25
|
+
};
|
|
26
|
+
type __VLS_Props = PvSortableMenuListProps;
|
|
27
|
+
type __VLS_PublicProps = {
|
|
28
|
+
modelValue?: MenuOption[];
|
|
29
|
+
} & __VLS_Props;
|
|
30
|
+
declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
31
|
+
"update:modelValue": (value: MenuOption<unknown>[]) => any;
|
|
32
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
33
|
+
"onUpdate:modelValue"?: ((value: MenuOption<unknown>[]) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
options: MenuOption[];
|
|
36
|
+
placeholderText: string;
|
|
37
|
+
showPlaceholders: boolean;
|
|
38
|
+
lockedOptions: LockedOption[];
|
|
39
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
40
|
+
containerRef: HTMLDivElement;
|
|
41
|
+
sortableListRef: HTMLUListElement;
|
|
42
|
+
}, HTMLDivElement>;
|
|
43
|
+
export default _default;
|
|
@@ -18,6 +18,12 @@ export interface PvTreeSetting {
|
|
|
18
18
|
checkbox?: boolean;
|
|
19
19
|
/** Whether accordion nodes start expanded */
|
|
20
20
|
defaultExpanded?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Accordion rows render their children only once first opened (then keep them), so a large tree
|
|
23
|
+
* of mostly closed rows costs little more than its summaries. Rows inside a never-opened accordion
|
|
24
|
+
* are not in the DOM: reveal one with `openNodeIds` rather than looking it up.
|
|
25
|
+
*/
|
|
26
|
+
lazyChildren?: boolean;
|
|
21
27
|
/**
|
|
22
28
|
* Accordion rows only open/close from their chevron; a click elsewhere on the row calls
|
|
23
29
|
* `rendererParams.onSummaryClick` instead (e.g. to select the row).
|
|
@@ -34,6 +34,8 @@ export { default as PvTabs } from './PvTabs/PvTabs.vue';
|
|
|
34
34
|
export { default as PvBreadcrumbs } from './PvBreadcrumbs/PvBreadcrumbs.vue';
|
|
35
35
|
export { default as PvMultiSelectButton } from './PvMultiSelectButton/PvMultiSelectButton.vue';
|
|
36
36
|
export { default as PvSelectButton } from './PvSelectButton/PvSelectButton.vue';
|
|
37
|
+
export { default as PvSelectButtonTrigger } from './PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue';
|
|
38
|
+
export { default as PvSortableList } from './PvSortableList/PvSortableList.vue';
|
|
37
39
|
export { default as PvPagination } from './PvPagination/PvPagination.vue';
|
|
38
40
|
export { default as PvSelectableCard } from './PvSelectableCard/PvSelectableCard.vue';
|
|
39
41
|
export { default as PvSidePanel } from '../layout/PvSidePanel/PvSidePanel.vue';
|
|
@@ -81,10 +83,15 @@ export { default as PvStepper } from './PvStepper/PvStepper.vue';
|
|
|
81
83
|
export { default as PvEmptyState } from './PvEmptyState/PvEmptyState.vue';
|
|
82
84
|
export { useDateTime } from './PvDateTime/useDateTime';
|
|
83
85
|
export { usePvComponents } from './PvComponentsConfig/usePvComponents';
|
|
86
|
+
export { useMenuPosition } from './PvMenu/useMenuPosition';
|
|
87
|
+
export { useSlotPresence } from '../../composables/useSlotPresence';
|
|
88
|
+
export { SelectedItemsKey } from './PvMenu/symbols';
|
|
84
89
|
export type { Tab } from './PvTabs/types';
|
|
85
90
|
export type { PvBreadcrumbsOptions } from './PvBreadcrumbs/types';
|
|
86
91
|
export type { PvAvatarGroupItem } from './PvAvatarGroup/types';
|
|
87
|
-
export type { MenuOption, MenuOptionSelectedEvent } from '../../types';
|
|
92
|
+
export type { MenuOption, MenuOptionSelectedEvent, Option } from '../../types';
|
|
93
|
+
export type { LockedOption } from './PvSortableList/types';
|
|
94
|
+
export type { PopoverRefElement } from './PvMenu/useMenuPosition';
|
|
88
95
|
export type { PvMultiSelectButtonSlotProps } from './PvMultiSelectButton/types';
|
|
89
96
|
export type { PvTreeOption, PvTreeSetting, PvTreeSettings } from './PvTree/types';
|
|
90
97
|
export type { RadioGroupOption } from './PvRadioGroup/types';
|