@turquoisehealth/pit-viper 2.253.0 → 2.255.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 +968 -61
- package/_site/assets/css/pit-viper-consumer.css +959 -53
- package/_site/assets/css/pit-viper-v2-scoped.css +787 -30
- package/_site/assets/css/pit-viper-v2.css +968 -61
- package/_site/assets/css/pit-viper.css +958 -52
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/ai/stats.html +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-accordion-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-box-plot-stats.html +4950 -0
- package/pv-components/dist/stats/web/pv-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-confirmation-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-counter-badge-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-date-time-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-empty-state-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-file-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-horizontal-scroller-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-insight-card-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-pagination-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-prompt-input-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-question-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-range-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-reasoning-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sortable-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-step-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-stepper-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-switch-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tab-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tool-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tree-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvBoxPlot/PvBoxPlot.vue.d.ts +15 -0
- package/pv-components/dist/vue/ai/components/base/PvBoxPlot/helpers.d.ts +7 -0
- package/pv-components/dist/vue/ai/components/base/PvBoxPlot/types.d.ts +33 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +51 -1
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/types.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvSidebar/PvSidebar.vue.d.ts +15 -10
- package/pv-components/dist/vue/ai/components/base/PvSidebar/PvSidebarNavFlyout.vue.d.ts +9 -0
- package/pv-components/dist/vue/ai/components/base/PvSidebar/helpers.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvSidebar/types.d.ts +44 -0
- package/pv-components/dist/vue/ai/components/base/PvSidebarV2/types.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/index.d.ts +2 -0
- package/pv-components/dist/vue/ai/pv-components-ai.mjs +47 -45
- package/pv-components/dist/vue/ai/pv-components-ai.mjs.map +1 -1
- package/pv-components/dist/vue/base/components/base/PvBoxPlot/PvBoxPlot.vue.d.ts +15 -0
- package/pv-components/dist/vue/base/components/base/PvBoxPlot/helpers.d.ts +7 -0
- package/pv-components/dist/vue/base/components/base/PvBoxPlot/types.d.ts +33 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +51 -1
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvSidebar/PvSidebar.vue.d.ts +15 -10
- package/pv-components/dist/vue/base/components/base/PvSidebar/PvSidebarNavFlyout.vue.d.ts +9 -0
- package/pv-components/dist/vue/base/components/base/PvSidebar/helpers.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvSidebar/types.d.ts +44 -0
- package/pv-components/dist/vue/base/components/base/PvSidebarV2/types.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/index.d.ts +2 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +2390 -1481
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvBoxPlot/PvBoxPlot.vue.d.ts +15 -0
- package/pv-components/dist/vue/visualizations/components/base/PvBoxPlot/helpers.d.ts +7 -0
- package/pv-components/dist/vue/visualizations/components/base/PvBoxPlot/types.d.ts +33 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +51 -1
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSidebar/PvSidebar.vue.d.ts +15 -10
- package/pv-components/dist/vue/visualizations/components/base/PvSidebar/PvSidebarNavFlyout.vue.d.ts +9 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSidebar/helpers.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSidebar/types.d.ts +44 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSidebarV2/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/index.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +4 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1561 -1540
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +3 -3
- package/pv-components/dist/web/components/pv-box-plot/pv-box-plot.js +6621 -0
- package/pv-components/dist/web/components/pv-button/pv-button.js +2 -2
- package/pv-components/dist/web/components/pv-confirmation/pv-confirmation.js +376 -373
- package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +2 -2
- package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +2 -6
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +2 -2
- package/pv-components/dist/web/components/pv-empty-state/pv-empty-state.js +2 -2
- package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +3 -3
- package/pv-components/dist/web/components/pv-file-input/pv-file-input.js +2 -2
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +1038 -1030
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +16 -10
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +2 -2
- package/pv-components/dist/web/components/pv-horizontal-scroller/pv-horizontal-scroller.js +2 -2
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +3 -3
- package/pv-components/dist/web/components/pv-input/pv-input.js +0 -1
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +3 -3
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +121 -121
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +764 -756
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +5 -5
- package/pv-components/dist/web/components/pv-prompt-input/pv-prompt-input.js +380 -380
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +11 -11
- package/pv-components/dist/web/components/pv-question/pv-question.js +254 -255
- package/pv-components/dist/web/components/pv-range/pv-range.js +2 -2
- package/pv-components/dist/web/components/pv-reasoning/pv-reasoning.js +252 -252
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +2 -2
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +6 -6
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +2739 -618
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +460 -456
- package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +811 -806
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +880 -877
- package/pv-components/dist/web/components/pv-step-list/pv-step-list.js +2 -6
- package/pv-components/dist/web/components/pv-stepper/pv-stepper.js +2 -2
- package/pv-components/dist/web/components/pv-switch/pv-switch.js +2 -6
- package/pv-components/dist/web/components/pv-tab-list/pv-tab-list.js +3 -7
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +2 -2
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +2 -2
- package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +2 -2
- package/pv-components/dist/web/components/pv-tool/pv-tool.js +7 -7
- package/pv-components/dist/web/components/pv-tree/pv-tree.js +18 -18
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PvBoxPlotMarker, PvBoxPlotProps, PvBoxPlotStats } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<PvBoxPlotProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvBoxPlotProps> & Readonly<{}>, {
|
|
4
|
+
highlight: number | null;
|
|
5
|
+
ariaLabel: string;
|
|
6
|
+
markers: PvBoxPlotMarker[];
|
|
7
|
+
height: number;
|
|
8
|
+
hideLabels: boolean;
|
|
9
|
+
stats: PvBoxPlotStats | null;
|
|
10
|
+
valueFormatter: (value: number) => string;
|
|
11
|
+
xMax: number | null;
|
|
12
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
13
|
+
container: HTMLDivElement;
|
|
14
|
+
}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Rounds `value` up to a clean axis bound. Returns 100 for zero or negative input so an empty axis still has a scale. */
|
|
2
|
+
export declare const niceCeiling: (value: number) => number;
|
|
3
|
+
/** Tick interval that gives about five ticks on an axis from 0 to `max`. */
|
|
4
|
+
export declare const niceStep: (max: number) => number;
|
|
5
|
+
/** Tick positions from 0 to `max`, inclusive. */
|
|
6
|
+
export declare const axisTicks: (max: number) => number[];
|
|
7
|
+
export declare const formatWholeDollars: (value: number) => string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface PvBoxPlotMarker {
|
|
2
|
+
/** Dot color: any CSS color, including a var(). Defaults to coral ($dataviz-3). */
|
|
3
|
+
color?: string;
|
|
4
|
+
/** Optional label drawn above the plot with the formatted value, e.g. "Anchor". */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Position of the dot on the axis. */
|
|
7
|
+
value: number;
|
|
8
|
+
}
|
|
9
|
+
export interface PvBoxPlotStats {
|
|
10
|
+
p10: number;
|
|
11
|
+
p25: number;
|
|
12
|
+
p50: number;
|
|
13
|
+
p75: number;
|
|
14
|
+
p90: number;
|
|
15
|
+
}
|
|
16
|
+
export interface PvBoxPlotProps {
|
|
17
|
+
/** Accessible description of the plot. Defaults to one generated from the stats and markers. */
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
/** Height of the plot in pixels. Defaults to 180. The width always fills the container. */
|
|
20
|
+
height?: number;
|
|
21
|
+
/** Transient marker, e.g. the rate of a hovered table row: a dashed line with a small dot. Drawn above the markers. */
|
|
22
|
+
highlight?: number | null;
|
|
23
|
+
/** Hides the percentile labels, the P10 and P90 amounts, and the median callout. Marker labels still show. */
|
|
24
|
+
hideLabels?: boolean;
|
|
25
|
+
/** Persistent dots on the axis, such as an anchor or an offer. */
|
|
26
|
+
markers?: PvBoxPlotMarker[];
|
|
27
|
+
/** The distribution: whiskers P10 to P90, box P25 to P75, a line at the median. Nothing renders without it. */
|
|
28
|
+
stats?: PvBoxPlotStats | null;
|
|
29
|
+
/** Formats every amount on the axis and in the labels. Defaults to whole US dollars, e.g. "$1,250". */
|
|
30
|
+
valueFormatter?: (value: number) => string;
|
|
31
|
+
/** Fixed upper bound of the axis, so the plot can line up with a sibling chart. Defaults to a rounded bound above P90 and every marker. */
|
|
32
|
+
xMax?: number | null;
|
|
33
|
+
}
|
|
@@ -3,6 +3,7 @@ import { AdvancedFilterModel, FilterModel } from 'ag-grid-enterprise';
|
|
|
3
3
|
import { MenuOption, MultiSelectState } from '../../../types';
|
|
4
4
|
import { ColDef, ValueFormatterFunc } from 'ag-grid-community';
|
|
5
5
|
import { PvRangeScale, PvRangeValue } from '../PvRange/types';
|
|
6
|
+
import { FooterPosition } from '../PvMultiSelectButton/types';
|
|
6
7
|
export type PvFilterPanelCategory = string;
|
|
7
8
|
export type PvFilterPanelFilterType = "value" | "range" | "boolean" | "exists";
|
|
8
9
|
export type PvFilterPanelFilterModelType = "advanced" | "regular";
|
|
@@ -124,6 +125,10 @@ export interface PvFilterPanelColDefContext {
|
|
|
124
125
|
* Optional renderer to provide content below the filter options list
|
|
125
126
|
*/
|
|
126
127
|
filterFooterRenderer?: Component;
|
|
128
|
+
/**
|
|
129
|
+
* Where filterFooterRenderer renders relative to the Select All / Clear All actions. Defaults to "above-actions".
|
|
130
|
+
*/
|
|
131
|
+
filterFooterPosition?: FooterPosition;
|
|
127
132
|
/**
|
|
128
133
|
* A group of boolean sub-fields to render as a hover submenu above the filter options.
|
|
129
134
|
* Each field in `fields` must be present as a column in the table.
|
package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PvMultiSelectButtonProps, PvSelectButtonVariant, PvSelectButtonSize, MenuActionsVariant } from './types';
|
|
1
|
+
import { PvMultiSelectButtonProps, PvSelectButtonVariant, PvSelectButtonSize, MenuActionsVariant, FooterPosition } from './types';
|
|
2
2
|
import { MenuOption, MultiSelectState, SeeMoreEvent, MenuAction } from '../../../types';
|
|
3
3
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Component, CSSProperties, VNode } from 'vue';
|
|
4
4
|
import { PvCounterBadgeVariant } from '../PvCounterBadge/types';
|
|
@@ -62,6 +62,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
62
62
|
optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
|
|
63
63
|
options: MenuOption<T>[];
|
|
64
64
|
menuActionsVariant: MenuActionsVariant | null;
|
|
65
|
+
footerPosition: FooterPosition;
|
|
65
66
|
singleSelect: boolean;
|
|
66
67
|
highlightSearchText: boolean;
|
|
67
68
|
enableCascadeSelection: boolean;
|
|
@@ -108,6 +109,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
108
109
|
optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
|
|
109
110
|
options: MenuOption<T>[];
|
|
110
111
|
menuActionsVariant: MenuActionsVariant | null;
|
|
112
|
+
footerPosition: FooterPosition;
|
|
111
113
|
singleSelect: boolean;
|
|
112
114
|
highlightSearchText: boolean;
|
|
113
115
|
enableCascadeSelection: boolean;
|
|
@@ -154,6 +156,54 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
154
156
|
optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
|
|
155
157
|
options: MenuOption<T>[];
|
|
156
158
|
menuActionsVariant: MenuActionsVariant | null;
|
|
159
|
+
footerPosition: FooterPosition;
|
|
160
|
+
singleSelect: boolean;
|
|
161
|
+
highlightSearchText: boolean;
|
|
162
|
+
enableCascadeSelection: boolean;
|
|
163
|
+
counterStyle: "primary" | "secondary";
|
|
164
|
+
}): any;
|
|
165
|
+
footer?(_: {
|
|
166
|
+
selectedItems: MenuOption<T>[];
|
|
167
|
+
searchInput: string;
|
|
168
|
+
slotContext: Record<string, unknown> | undefined;
|
|
169
|
+
isOpen: boolean;
|
|
170
|
+
isLoading: boolean;
|
|
171
|
+
companyLogo: string;
|
|
172
|
+
counterBadgeVariant: PvCounterBadgeVariant;
|
|
173
|
+
countSelectedParents: boolean;
|
|
174
|
+
defaultOpen: boolean;
|
|
175
|
+
enableChildExpansion: boolean;
|
|
176
|
+
groupings: string[];
|
|
177
|
+
hideParentOnChildQueryMatch: boolean;
|
|
178
|
+
icon: string;
|
|
179
|
+
isSeeMoreLoading: boolean;
|
|
180
|
+
hasMoreOptions: boolean;
|
|
181
|
+
loadingText: string;
|
|
182
|
+
optionsAction: MenuAction<T> | undefined;
|
|
183
|
+
optionsRenderer: Component;
|
|
184
|
+
overlayTrigger: boolean;
|
|
185
|
+
parentSelectsAllChildren: boolean;
|
|
186
|
+
popoverCssProperties: CSSProperties;
|
|
187
|
+
popoverProperties: PvPopoverV2Props;
|
|
188
|
+
prefixLabel: string;
|
|
189
|
+
searchPlaceholder: string;
|
|
190
|
+
teleportLocation: string;
|
|
191
|
+
totalOptionCount: number;
|
|
192
|
+
additionalCounter: number;
|
|
193
|
+
rumFilterName: string;
|
|
194
|
+
rumActionName: string;
|
|
195
|
+
counterPosition: "none" | "left" | "right";
|
|
196
|
+
variant: PvSelectButtonVariant;
|
|
197
|
+
size: PvSelectButtonSize;
|
|
198
|
+
label: string;
|
|
199
|
+
disableDropdownIcon: boolean;
|
|
200
|
+
disableClearIcon: boolean;
|
|
201
|
+
disableSearchInput: boolean;
|
|
202
|
+
disabled: boolean;
|
|
203
|
+
optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
|
|
204
|
+
options: MenuOption<T>[];
|
|
205
|
+
menuActionsVariant: MenuActionsVariant | null;
|
|
206
|
+
footerPosition: FooterPosition;
|
|
157
207
|
singleSelect: boolean;
|
|
158
208
|
highlightSearchText: boolean;
|
|
159
209
|
enableCascadeSelection: boolean;
|
|
@@ -6,6 +6,7 @@ import { PvCounterBadgeVariant } from '../PvCounterBadge/types.ts';
|
|
|
6
6
|
export type PvSelectButtonVariant = Extract<PvVariants, "secondary" | "ghost">;
|
|
7
7
|
export type PvSelectButtonSize = Extract<PvSize, "lg" | "xl">;
|
|
8
8
|
export type MenuActionsVariant = "select-clear" | "cancel-confirm";
|
|
9
|
+
export type FooterPosition = "above-actions" | "below-actions";
|
|
9
10
|
export interface PvMultiSelectButtonProps<T = unknown, SlotContext extends Record<string, unknown> = Record<string, unknown>> {
|
|
10
11
|
/** Company logo name displayed on the trigger button */
|
|
11
12
|
companyLogo?: string;
|
|
@@ -36,6 +37,8 @@ export interface PvMultiSelectButtonProps<T = unknown, SlotContext extends Recor
|
|
|
36
37
|
enableCascadeSelection?: boolean;
|
|
37
38
|
/** Display an expand/collapse icon for options that have children */
|
|
38
39
|
enableChildExpansion?: boolean;
|
|
40
|
+
/** Where the footer slot renders relative to the menu actions. Defaults to "above-actions". */
|
|
41
|
+
footerPosition?: FooterPosition;
|
|
39
42
|
/** Labels used to group options into named sections */
|
|
40
43
|
groupings?: string[];
|
|
41
44
|
/** When enableCascadeSelection is true, hide parent options in the dropdown when
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
+
import { PvSidebarProps } from './types.ts';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
type __VLS_Props =
|
|
3
|
-
disableToggle?: boolean;
|
|
4
|
-
variant?: "primary" | "secondary";
|
|
5
|
-
newVersion?: boolean;
|
|
6
|
-
};
|
|
3
|
+
type __VLS_Props = PvSidebarProps;
|
|
7
4
|
type __VLS_PublicProps = {
|
|
8
5
|
modelValue?: boolean;
|
|
9
6
|
} & __VLS_Props;
|
|
10
7
|
declare function __VLS_template(): {
|
|
11
8
|
attrs: Partial<{}>;
|
|
12
|
-
slots: {
|
|
13
|
-
'sidebar-header'?(_: {}): any;
|
|
14
|
-
sidebar?(_: {}): any;
|
|
9
|
+
slots: Partial<Record<string, (_: {}) => any>> & {
|
|
10
|
+
'sidebar-additional-header'?(_: {}): any;
|
|
11
|
+
'sidebar-additional-content'?(_: {}): any;
|
|
12
|
+
'sidebar-help-content'?(_: {}): any;
|
|
13
|
+
'sidebar-profile-content'?(_: {}): any;
|
|
15
14
|
default?(_: {}): any;
|
|
16
15
|
};
|
|
17
|
-
refs: {
|
|
16
|
+
refs: {
|
|
17
|
+
sidebarPanel: HTMLDivElement;
|
|
18
|
+
popoverTeleportTarget: HTMLDivElement;
|
|
19
|
+
};
|
|
18
20
|
rootEl: HTMLDivElement;
|
|
19
21
|
};
|
|
20
22
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -29,7 +31,10 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
|
|
|
29
31
|
onChange?: ((payload: {
|
|
30
32
|
collapsed: boolean;
|
|
31
33
|
}) => any) | undefined;
|
|
32
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
34
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
35
|
+
sidebarPanel: HTMLDivElement;
|
|
36
|
+
popoverTeleportTarget: HTMLDivElement;
|
|
37
|
+
}, HTMLDivElement>;
|
|
33
38
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
39
|
export default _default;
|
|
35
40
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PvSidebarNavItem } from './types.ts';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
items: PvSidebarNavItem[];
|
|
5
|
+
/** Keeps nested flyouts closed while the surface hosting this list is inactive. */
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface PvSidebarProps {
|
|
2
|
+
/** @deprecated Organization and profile menus are always click-only. This prop has no effect. */
|
|
3
|
+
disableOrgProfileHover?: boolean;
|
|
4
|
+
disableToggle?: boolean;
|
|
5
|
+
/** Top-level nav items, with optional nested children rendered as an accordion / hover flyout. */
|
|
6
|
+
navItems?: PvSidebarNavItem[];
|
|
7
|
+
/** Organizations rendered in the org-switcher dropdown, with optional nested entities. */
|
|
8
|
+
organizations?: PvSidebarOrgEntity[];
|
|
9
|
+
/** Identity rendered by the Profile footer trigger. */
|
|
10
|
+
profile?: PvSidebarProfile;
|
|
11
|
+
variant?: "primary" | "secondary";
|
|
12
|
+
}
|
|
13
|
+
export interface PvSidebarProfile {
|
|
14
|
+
avatarUrl?: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}
|
|
17
|
+
export interface PvSidebarOrgEntity {
|
|
18
|
+
value: string | number;
|
|
19
|
+
label: string;
|
|
20
|
+
url: string;
|
|
21
|
+
avatarUrl?: string;
|
|
22
|
+
/** Marks this as the currently active organization/entity (server already knows from the current page). */
|
|
23
|
+
active?: boolean;
|
|
24
|
+
entities?: PvSidebarOrgEntity[];
|
|
25
|
+
}
|
|
26
|
+
export interface PvSidebarNavItem {
|
|
27
|
+
value: string | number;
|
|
28
|
+
label: string;
|
|
29
|
+
/** Leaf items link directly; parents with children may omit it. */
|
|
30
|
+
url?: string;
|
|
31
|
+
/** SVG symbol id, e.g. "home" — only rendered at the top level. */
|
|
32
|
+
icon?: string;
|
|
33
|
+
/** Marks this as the currently active item (server already knows from the current page). */
|
|
34
|
+
active?: boolean;
|
|
35
|
+
/** Named slot rendered in a full-height hover and focus panel instead of the compact flyout. */
|
|
36
|
+
hoverPanelSlot?: string;
|
|
37
|
+
/** Extra attributes spread directly onto the rendered <a> (e.g. { "data-turbolinks": "false" }). */
|
|
38
|
+
linkAttrs?: Record<string, string>;
|
|
39
|
+
external?: boolean;
|
|
40
|
+
badge?: "beta" | "legacy";
|
|
41
|
+
/** Draws a divider line above this item, starting a new group. Only rendered at the top level. */
|
|
42
|
+
separatorAtTop?: boolean;
|
|
43
|
+
children?: PvSidebarNavItem[];
|
|
44
|
+
}
|
|
@@ -38,5 +38,7 @@ export interface PvSidebarNavItem {
|
|
|
38
38
|
linkAttrs?: Record<string, string>;
|
|
39
39
|
external?: boolean;
|
|
40
40
|
badge?: "beta" | "legacy";
|
|
41
|
+
/** Draws a divider line above this item, starting a new group. Only rendered at the top level. */
|
|
42
|
+
separatorAtTop?: boolean;
|
|
41
43
|
children?: PvSidebarNavItem[];
|
|
42
44
|
}
|
|
@@ -68,6 +68,7 @@ export { default as PvTree } from './PvTree/PvTree.vue';
|
|
|
68
68
|
export { default as PvTreeGroup } from './PvTree/PvTreeGroup.vue';
|
|
69
69
|
export { default as PvProgressBar } from './PvProgressBar/PvProgressBar.vue';
|
|
70
70
|
export { default as PvDistributionBar } from './PvDistributionBar/PvDistributionBar.vue';
|
|
71
|
+
export { default as PvBoxPlot } from './PvBoxPlot/PvBoxPlot.vue';
|
|
71
72
|
export { default as PvFilterPanel } from './PvFilterPanel/PvFilterPanel.vue';
|
|
72
73
|
export { default as PvFilterModal } from './PvFilterModal/PvFilterModal.vue';
|
|
73
74
|
export { default as PvHorizontalScroller } from './PvHorizontalScroller/PvHorizontalScroller.vue';
|
|
@@ -98,6 +99,7 @@ export type { RadioGroupOption } from './PvRadioGroup/types';
|
|
|
98
99
|
export type { PvTableOfContentsItem } from './PvTableOfContents/types';
|
|
99
100
|
export type { PvHorizontalScrollerProps } from './PvHorizontalScroller/types';
|
|
100
101
|
export type { PvFilterModalProps } from './PvFilterModal/types';
|
|
102
|
+
export type { PvBoxPlotMarker, PvBoxPlotProps, PvBoxPlotStats } from './PvBoxPlot/types';
|
|
101
103
|
export type { PvHoverActionMenuPosition } from './PvHoverActionMenu/types';
|
|
102
104
|
export type { PvMenuChildrenDisplay } from './PvMenu/types';
|
|
103
105
|
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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-3def68cb]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-3def68cb]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-rounded[data-v-3def68cb]{border-radius:50%}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}summary[data-v-dfa0b416]{background-image:none;padding-right:2px}
|
|
2
2
|
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { Comment as e, Fragment as t, Text as n, TransitionGroup as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onBeforeUpdate as y, onMounted as b, onScopeDispose as x, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toHandlers as D, unref as O, useId as k, useModel as A, useSlots as j, useTemplateRef as M, vModelDynamic as N, vModelText as P, watch as F, withCtx as I, withDirectives as L, withKeys as ee, withModifiers as R } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/components/base/PvSpinner/PvSpinner.vue
|
|
@@ -82,7 +82,7 @@ var ne = [
|
|
|
82
82
|
"pv-surface-brand-inverse pv-text-inverse": t.variant == "primary",
|
|
83
83
|
"pv-badge-secondary": t.variant == "secondary",
|
|
84
84
|
"pv-surface-lighten-5": t.variant == "tertiary",
|
|
85
|
-
"pv-text-
|
|
85
|
+
"pv-text-subdued": t.variant == "ghost" || t.variant == "tertiary",
|
|
86
86
|
"pv-surface": t.variant == "ghost",
|
|
87
87
|
"pv-rounded": t.rounded
|
|
88
88
|
}));
|
|
@@ -95,7 +95,7 @@ var ne = [
|
|
|
95
95
|
let n = e.__vccOpts || e;
|
|
96
96
|
for (let [e, r] of t) n[e] = r;
|
|
97
97
|
return n;
|
|
98
|
-
}, K = /* @__PURE__ */ G(re, [["__scopeId", "data-v-
|
|
98
|
+
}, K = /* @__PURE__ */ G(re, [["__scopeId", "data-v-3def68cb"]]), ie = ["disabled", "aria-label"], ae = {
|
|
99
99
|
key: 2,
|
|
100
100
|
"data-testid": "pv-button-label"
|
|
101
101
|
}, q = /* @__PURE__ */ d({
|
|
@@ -223,7 +223,6 @@ var ne = [
|
|
|
223
223
|
e.lowerLabel ? (S(), s("p", {
|
|
224
224
|
key: 1,
|
|
225
225
|
"data-testid": "pv-input-lower-label",
|
|
226
|
-
style: { "margin-left": "12px" },
|
|
227
226
|
class: g(["pv-text-body-xs", {
|
|
228
227
|
"pv-text-red": e.error,
|
|
229
228
|
"pv-text-subdued": !e.error
|
|
@@ -231,8 +230,8 @@ var ne = [
|
|
|
231
230
|
}, E(e.lowerLabel), 3)) : o("", !0)
|
|
232
231
|
], 64));
|
|
233
232
|
}
|
|
234
|
-
}), ue = ["onKeydown"], de = { class: "pv-
|
|
235
|
-
class: "pv-
|
|
233
|
+
}), ue = ["onKeydown"], de = { class: "pv-question-header pv-inset-square-16 pv-space-between" }, fe = {
|
|
234
|
+
class: "pv-question-header-copy pv-flex-vertical pv-flex-item",
|
|
236
235
|
style: {
|
|
237
236
|
"--flex-align": "flex-start",
|
|
238
237
|
"--flex-gap": "4px",
|
|
@@ -241,16 +240,16 @@ var ne = [
|
|
|
241
240
|
}, pe = {
|
|
242
241
|
key: 0,
|
|
243
242
|
class: "pv-text-body-md pv-text-tertiary"
|
|
244
|
-
}, me = { class: "pv-
|
|
243
|
+
}, me = { class: "pv-question-header-actions pv-flex" }, he = {
|
|
245
244
|
key: 0,
|
|
246
245
|
class: "pv-text-body-xs pv-text-tertiary",
|
|
247
246
|
role: "status",
|
|
248
247
|
"aria-live": "polite"
|
|
249
248
|
}, ge = {
|
|
250
|
-
class: "pv-
|
|
249
|
+
class: "pv-question-body pv-border-bottom",
|
|
251
250
|
style: { "padding-bottom": "2px" }
|
|
252
251
|
}, _e = {
|
|
253
|
-
class: "pv-
|
|
252
|
+
class: "pv-question-options pv-flex-vertical pv-inset-inline-16",
|
|
254
253
|
style: {
|
|
255
254
|
"--flex-align": "stretch",
|
|
256
255
|
"--flex-gap": "2px"
|
|
@@ -262,12 +261,12 @@ var ne = [
|
|
|
262
261
|
"onClick",
|
|
263
262
|
"onMouseenter"
|
|
264
263
|
], be = {
|
|
265
|
-
class: "pv-
|
|
264
|
+
class: "pv-question-answer-text pv-flex-item pv-text-title-md",
|
|
266
265
|
style: { "min-width": "0" }
|
|
267
|
-
}, xe = ["title"], Se = { class: "pv-visually-hidden" }, Ce = ["data-active"], we = { class: "pv-
|
|
268
|
-
class: "pv-
|
|
266
|
+
}, xe = ["title"], Se = { class: "pv-visually-hidden" }, Ce = ["data-active"], we = { class: "pv-question-chat-badge pv-flex pv-radius pv-text-subdued" }, Te = {
|
|
267
|
+
class: "pv-question-chat-input pv-flex-item",
|
|
269
268
|
style: { "min-width": "0" }
|
|
270
|
-
}, Ee = { class: "pv-
|
|
269
|
+
}, Ee = { class: "pv-question-footer pv-inset-squish-12 pv-space-between" }, De = /* @__PURE__ */ d({
|
|
271
270
|
__name: "PvQuestion",
|
|
272
271
|
props: /* @__PURE__ */ p({
|
|
273
272
|
chatInputLabel: { default: "Other answer" },
|
|
@@ -367,7 +366,7 @@ var ne = [
|
|
|
367
366
|
c("div", ge, [c("div", _e, [c("div", {
|
|
368
367
|
ref_key: "listboxRef",
|
|
369
368
|
ref: _,
|
|
370
|
-
class: "pv-
|
|
369
|
+
class: "pv-question-listbox pv-flex-vertical",
|
|
371
370
|
style: {
|
|
372
371
|
"--flex-align": "stretch",
|
|
373
372
|
"--flex-gap": "2px"
|
|
@@ -383,7 +382,7 @@ var ne = [
|
|
|
383
382
|
}, [(S(!0), s(t, null, w(e.options, (e, t) => (S(), s("div", {
|
|
384
383
|
id: D(t),
|
|
385
384
|
key: e.id,
|
|
386
|
-
class: "pv-
|
|
385
|
+
class: "pv-question-option pv-flex pv-inset-squish-12 pv-radius-lg",
|
|
387
386
|
"data-testid": "pv-question-option",
|
|
388
387
|
role: "option",
|
|
389
388
|
"aria-selected": d.value === e.id,
|
|
@@ -399,7 +398,7 @@ var ne = [
|
|
|
399
398
|
c("span", be, E(e.label), 1),
|
|
400
399
|
e.helpText ? (S(), s("span", {
|
|
401
400
|
key: 0,
|
|
402
|
-
class: "pv-
|
|
401
|
+
class: "pv-question-help pv-flex",
|
|
403
402
|
style: { "--flex-gap": "0" },
|
|
404
403
|
title: e.helpText
|
|
405
404
|
}, [u(W, {
|
|
@@ -409,17 +408,17 @@ var ne = [
|
|
|
409
408
|
}), c("span", Se, E(e.helpText), 1)], 8, xe)) : o("", !0),
|
|
410
409
|
d.value === e.id ? (S(), a(W, {
|
|
411
410
|
key: 1,
|
|
412
|
-
class: "pv-
|
|
411
|
+
class: "pv-question-check pv-text-brand",
|
|
413
412
|
name: "check"
|
|
414
413
|
})) : o("", !0),
|
|
415
414
|
u(W, {
|
|
416
|
-
class: "pv-
|
|
415
|
+
class: "pv-question-chevron pv-text-tertiary",
|
|
417
416
|
name: "chevron-right"
|
|
418
417
|
})
|
|
419
418
|
], 40, ye))), 128))], 40, ve), c("div", {
|
|
420
419
|
ref_key: "chatInputWrapperRef",
|
|
421
420
|
ref: v,
|
|
422
|
-
class: "pv-
|
|
421
|
+
class: "pv-question-chat pv-flex pv-inset-squish-12 pv-radius-lg",
|
|
423
422
|
"data-testid": "pv-question-chat",
|
|
424
423
|
"data-active": b.value === e.options.length || void 0,
|
|
425
424
|
onClick: j,
|
|
@@ -442,7 +441,7 @@ var ne = [
|
|
|
442
441
|
"placeholder"
|
|
443
442
|
])]),
|
|
444
443
|
u(W, {
|
|
445
|
-
class: "pv-
|
|
444
|
+
class: "pv-question-chevron pv-text-tertiary",
|
|
446
445
|
name: "chevron-right"
|
|
447
446
|
})
|
|
448
447
|
], 40, Ce)])]),
|
|
@@ -450,7 +449,7 @@ var ne = [
|
|
|
450
449
|
id: g,
|
|
451
450
|
class: "pv-text-body-xs pv-text-tertiary"
|
|
452
451
|
}, "↑↓ to navigate • Enter to select • Esc to skip"), u(q, {
|
|
453
|
-
class: "pv-
|
|
452
|
+
class: "pv-question-skip",
|
|
454
453
|
label: "Skip",
|
|
455
454
|
size: "lg",
|
|
456
455
|
variant: "secondary",
|
|
@@ -458,12 +457,15 @@ var ne = [
|
|
|
458
457
|
})])
|
|
459
458
|
], 40, ue));
|
|
460
459
|
}
|
|
461
|
-
}),
|
|
460
|
+
}), Oe = {
|
|
462
461
|
key: 0,
|
|
463
462
|
class: "pv-confirmation pv-bordered pv-radius pv-inset-square-16 pv-flow-16",
|
|
464
463
|
"data-testid": "pv-confirmation",
|
|
465
464
|
"aria-label": "Tool approval"
|
|
466
|
-
}, ke = { class: "pv-text-body-sm" }, Ae = {
|
|
465
|
+
}, ke = { class: "pv-text-body-sm" }, Ae = {
|
|
466
|
+
class: "pv-flex",
|
|
467
|
+
style: { "--flex-justify": "flex-end" }
|
|
468
|
+
}, je = {
|
|
467
469
|
key: 1,
|
|
468
470
|
class: "pv-flex pv-text-body-sm pv-text-success",
|
|
469
471
|
role: "status"
|
|
@@ -471,7 +473,7 @@ var ne = [
|
|
|
471
473
|
key: 2,
|
|
472
474
|
class: "pv-flex pv-text-body-sm pv-text-critical",
|
|
473
475
|
role: "status"
|
|
474
|
-
}, Ne = /* @__PURE__ */
|
|
476
|
+
}, Ne = /* @__PURE__ */ d({
|
|
475
477
|
__name: "PvConfirmation",
|
|
476
478
|
props: {
|
|
477
479
|
approval: {},
|
|
@@ -493,7 +495,7 @@ var ne = [
|
|
|
493
495
|
approved: e
|
|
494
496
|
});
|
|
495
497
|
}
|
|
496
|
-
return (n, r) => d.value || f.value || p.value ? (S(), s("section", Oe, [d.value ? (S(), s(t, { key: 0 }, [c("div", ke, [T(n.$slots, "default", {}, () => [l(E(e.message), 1)]
|
|
498
|
+
return (n, r) => d.value || f.value || p.value ? (S(), s("section", Oe, [d.value ? (S(), s(t, { key: 0 }, [c("div", ke, [T(n.$slots, "default", {}, () => [l(E(e.message), 1)])]), c("div", Ae, [u(q, {
|
|
497
499
|
variant: "secondary",
|
|
498
500
|
size: "md",
|
|
499
501
|
label: e.rejectLabel,
|
|
@@ -507,12 +509,12 @@ var ne = [
|
|
|
507
509
|
}, null, 8, ["label", "disabled"])])], 64)) : f.value ? (S(), s("p", je, [u(W, {
|
|
508
510
|
name: "check-circle",
|
|
509
511
|
size: 20
|
|
510
|
-
}), T(n.$slots, "accepted", {}, () => [r[2] ||= l("You approved this tool execution.", -1)]
|
|
512
|
+
}), T(n.$slots, "accepted", {}, () => [r[2] ||= l("You approved this tool execution.", -1)])])) : (S(), s("p", Me, [u(W, {
|
|
511
513
|
name: "close-circle",
|
|
512
514
|
size: 20
|
|
513
|
-
}), T(n.$slots, "rejected", {}, () => [r[3] ||= l("You rejected this tool execution.", -1)]
|
|
515
|
+
}), T(n.$slots, "rejected", {}, () => [r[3] ||= l("You rejected this tool execution.", -1)])]))])) : o("", !0);
|
|
514
516
|
}
|
|
515
|
-
}),
|
|
517
|
+
}), Pe = {
|
|
516
518
|
class: "pv-flex-vertical",
|
|
517
519
|
style: { "--flex-align": "flex-start" }
|
|
518
520
|
}, Fe = ["for"], Ie = [
|
|
@@ -566,10 +568,10 @@ var ne = [
|
|
|
566
568
|
}), Re = ["aria-busy"], ze = {
|
|
567
569
|
key: 0,
|
|
568
570
|
class: "pv-full-width pv-flow-8"
|
|
569
|
-
}, Be = { class: "pv-prompt-
|
|
571
|
+
}, Be = { class: "pv-prompt-input-footer pv-flex pv-full-width" }, Ve = { class: "pv-prompt-input-actions pv-flex pv-flex-item" }, He = {
|
|
570
572
|
class: "pv-visually-hidden",
|
|
571
573
|
"aria-live": "polite"
|
|
572
|
-
}, Ue = /* @__PURE__ */
|
|
574
|
+
}, Ue = /* @__PURE__ */ d({
|
|
573
575
|
__name: "PvPromptInput",
|
|
574
576
|
props: /* @__PURE__ */ p({
|
|
575
577
|
ariaLabel: { default: "Message" },
|
|
@@ -608,11 +610,11 @@ var ne = [
|
|
|
608
610
|
onSubmit: R(h, ["prevent"]),
|
|
609
611
|
onClick: g
|
|
610
612
|
}, [
|
|
611
|
-
n.$slots.header ? (S(), s("div", ze, [T(n.$slots, "header"
|
|
613
|
+
n.$slots.header ? (S(), s("div", ze, [T(n.$slots, "header")])) : o("", !0),
|
|
612
614
|
u(Le, {
|
|
613
615
|
modelValue: d.value,
|
|
614
616
|
"onUpdate:modelValue": r[0] ||= (e) => d.value = e,
|
|
615
|
-
class: "pv-prompt-
|
|
617
|
+
class: "pv-prompt-input-textarea",
|
|
616
618
|
style: _({ "--prompt-input-max-height": e.maxHeight }),
|
|
617
619
|
rows: e.rows,
|
|
618
620
|
placeholder: e.placeholder,
|
|
@@ -627,7 +629,7 @@ var ne = [
|
|
|
627
629
|
"disabled",
|
|
628
630
|
"aria-label"
|
|
629
631
|
]),
|
|
630
|
-
c("div", Be, [c("div", Ve, [T(n.$slots, "actions"
|
|
632
|
+
c("div", Be, [c("div", Ve, [T(n.$slots, "actions")]), u(q, {
|
|
631
633
|
type: p.value ? "button" : "submit",
|
|
632
634
|
variant: p.value ? "secondary" : "primary",
|
|
633
635
|
size: "md",
|
|
@@ -645,7 +647,7 @@ var ne = [
|
|
|
645
647
|
c("p", He, [e.status === "submitted" ? (S(), s(t, { key: 0 }, [l("Message submitted.")], 64)) : e.status === "streaming" ? (S(), s(t, { key: 1 }, [l("Response is streaming.")], 64)) : e.status === "error" ? (S(), s(t, { key: 2 }, [l("The message could not be sent.")], 64)) : o("", !0)])
|
|
646
648
|
], 40, Re));
|
|
647
649
|
}
|
|
648
|
-
}),
|
|
650
|
+
}), We = [
|
|
649
651
|
"ready",
|
|
650
652
|
"submitted",
|
|
651
653
|
"streaming",
|
|
@@ -830,7 +832,7 @@ var Ze = ["data-status"], Qe = {
|
|
|
830
832
|
}, at = {
|
|
831
833
|
key: 2,
|
|
832
834
|
class: "pv-text-body-md pv-text-medium pv-text-brand"
|
|
833
|
-
}, Q = /* @__PURE__ */
|
|
835
|
+
}, Q = /* @__PURE__ */ d({
|
|
834
836
|
__name: "PvStepList",
|
|
835
837
|
props: {
|
|
836
838
|
inProgress: {
|
|
@@ -880,7 +882,7 @@ var Ze = ["data-status"], Qe = {
|
|
|
880
882
|
_: 1
|
|
881
883
|
}));
|
|
882
884
|
}
|
|
883
|
-
}),
|
|
885
|
+
}), ot = { class: "pv-reasoning-content pv-text-body-md pv-text-tertiary" }, st = /* @__PURE__ */ d({
|
|
884
886
|
__name: "PvReasoning",
|
|
885
887
|
props: /* @__PURE__ */ p({
|
|
886
888
|
autoCloseDelay: { default: 1e3 },
|
|
@@ -954,24 +956,24 @@ var Ze = ["data-status"], Qe = {
|
|
|
954
956
|
trigger: I(() => [c("span", {
|
|
955
957
|
ref_key: "triggerRef",
|
|
956
958
|
ref: x,
|
|
957
|
-
class: "pv-
|
|
959
|
+
class: "pv-reasoning-trigger pv-flex pv-text-body-md pv-text-medium",
|
|
958
960
|
"aria-live": "polite"
|
|
959
|
-
}, [T(e.$slots, "trigger", {}, () => [u(W, { name: "brain" }), c("span", { class: g(["pv-text-subdued", { "pv-shimmer": r.isStreaming }]) }, E(y.value), 3)]
|
|
961
|
+
}, [T(e.$slots, "trigger", {}, () => [u(W, { name: "brain" }), c("span", { class: g(["pv-text-subdued", { "pv-shimmer": r.isStreaming }]) }, E(y.value), 3)])], 512)]),
|
|
960
962
|
default: I(() => [c("div", ot, [r.steps.length > 0 ? (S(), a(Q, {
|
|
961
963
|
key: 0,
|
|
962
964
|
steps: r.steps,
|
|
963
965
|
"in-progress": r.isStreaming
|
|
964
|
-
}, null, 8, ["steps", "in-progress"])) : o("", !0), T(e.$slots, "default"
|
|
966
|
+
}, null, 8, ["steps", "in-progress"])) : o("", !0), T(e.$slots, "default")])]),
|
|
965
967
|
_: 3
|
|
966
968
|
}, 8, ["modelValue", "default-open"])) : (S(), s("span", {
|
|
967
969
|
key: 1,
|
|
968
970
|
ref_key: "triggerRef",
|
|
969
971
|
ref: x,
|
|
970
|
-
class: "pv-
|
|
972
|
+
class: "pv-reasoning-trigger pv-reasoning-standalone pv-flex pv-text-body-md pv-text-medium pv-text-tertiary",
|
|
971
973
|
"aria-live": "polite"
|
|
972
|
-
}, [T(e.$slots, "trigger", {}, () => [u(W, { name: "brain" }), c("span", { class: g(["pv-text-subdued", { "pv-shimmer": r.isStreaming }]) }, E(y.value), 3)]
|
|
974
|
+
}, [T(e.$slots, "trigger", {}, () => [u(W, { name: "brain" }), c("span", { class: g(["pv-text-subdued", { "pv-shimmer": r.isStreaming }]) }, E(y.value), 3)])], 512));
|
|
973
975
|
}
|
|
974
|
-
}),
|
|
976
|
+
}), ct = { class: "pv-tool-heading pv-flex pv-flex-item" }, lt = { class: "pv-text-title-sm pv-truncate" }, ut = { class: "pv-tool-disclosure-content" }, dt = { class: "pv-flow-16 pv-border-top pv-tool-content" }, ft = {
|
|
975
977
|
key: 0,
|
|
976
978
|
class: "pv-flow-8"
|
|
977
979
|
}, pt = { class: "pv-surface-accent pv-inset-square-12 pv-radius-sm pv-text-body-xs" }, mt = {
|
|
@@ -982,7 +984,7 @@ var Ze = ["data-status"], Qe = {
|
|
|
982
984
|
}, ht = { class: "pv-surface-critical pv-inset-square-12 pv-radius-sm pv-text-body-xs pv-text-critical" }, gt = {
|
|
983
985
|
key: 2,
|
|
984
986
|
class: "pv-flow-8"
|
|
985
|
-
}, _t = { class: "pv-surface-accent pv-inset-square-12 pv-radius-sm pv-text-body-xs" }, vt = /* @__PURE__ */
|
|
987
|
+
}, _t = { class: "pv-surface-accent pv-inset-square-12 pv-radius-sm pv-text-body-xs" }, vt = /* @__PURE__ */ d({
|
|
986
988
|
__name: "PvTool",
|
|
987
989
|
props: /* @__PURE__ */ p({
|
|
988
990
|
defaultOpen: {
|
|
@@ -1081,11 +1083,11 @@ var Ze = ["data-status"], Qe = {
|
|
|
1081
1083
|
role: "status"
|
|
1082
1084
|
}, E(l.value.label), 3)
|
|
1083
1085
|
])]),
|
|
1084
|
-
default: I(() => [c("div", ut, [c("div", dt, [t.$slots.input || e.input !== void 0 ? (S(), s("section", ft, [r[1] ||= c("h3", { class: "pv-text-title-xs" }, "Parameters", -1), T(t.$slots, "input", { input: e.input }, () => [c("pre", pt, [c("code", null, E(d(e.input)), 1)])]
|
|
1086
|
+
default: I(() => [c("div", ut, [c("div", dt, [t.$slots.input || e.input !== void 0 ? (S(), s("section", ft, [r[1] ||= c("h3", { class: "pv-text-title-xs" }, "Parameters", -1), T(t.$slots, "input", { input: e.input }, () => [c("pre", pt, [c("code", null, E(d(e.input)), 1)])])])) : o("", !0), e.errorText ? (S(), s("section", mt, [r[2] ||= c("h3", { class: "pv-text-title-xs pv-text-critical" }, "Error", -1), c("pre", ht, E(e.errorText), 1)])) : t.$slots.output || e.output !== void 0 ? (S(), s("section", gt, [r[3] ||= c("h3", { class: "pv-text-title-xs" }, "Result", -1), T(t.$slots, "output", { output: e.output }, () => [c("pre", _t, [c("code", null, E(d(e.output)), 1)])])])) : o("", !0)])])]),
|
|
1085
1087
|
_: 3
|
|
1086
1088
|
}, 8, ["modelValue", "default-open"]));
|
|
1087
1089
|
}
|
|
1088
|
-
}),
|
|
1090
|
+
}), $ = [
|
|
1089
1091
|
"input-streaming",
|
|
1090
1092
|
"input-available",
|
|
1091
1093
|
"approval-requested",
|