@turquoisehealth/pit-viper 2.252.1 → 2.253.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 (30) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +27 -7
  2. package/_site/assets/css/pit-viper-consumer.css +27 -7
  3. package/_site/assets/css/pit-viper-v2-scoped.css +25 -7
  4. package/_site/assets/css/pit-viper-v2.css +27 -7
  5. package/_site/assets/css/pit-viper.css +27 -7
  6. package/package.json +1 -1
  7. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  8. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
  11. package/pv-components/dist/vue/ai/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
  12. package/pv-components/dist/vue/ai/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
  13. package/pv-components/dist/vue/ai/components/base/PvTabs/types.d.ts +4 -0
  14. package/pv-components/dist/vue/base/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
  15. package/pv-components/dist/vue/base/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
  16. package/pv-components/dist/vue/base/components/base/PvTabs/types.d.ts +4 -0
  17. package/pv-components/dist/vue/base/pv-components-base.mjs +951 -860
  18. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  19. package/pv-components/dist/vue/visualizations/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
  20. package/pv-components/dist/vue/visualizations/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
  21. package/pv-components/dist/vue/visualizations/components/base/PvTabs/types.d.ts +4 -0
  22. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterPanel.vue.d.ts +5 -1
  23. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/horizontalFilterFit.d.ts +17 -0
  24. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +9 -2
  25. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2296 -2258
  26. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  27. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +5 -3
  28. package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +1310 -1185
  29. package/pv-components/dist/web/pv-components.iife.js +13 -13
  30. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -6,6 +6,8 @@ export interface PvDrawerProps {
6
6
  /** Initial resizable width. Defaults to 600px, capped by the viewport. */
7
7
  defaultWidth?: PvResizeSize;
8
8
  header?: string;
9
+ /** Omit the built-in header when the drawer content provides its own. */
10
+ hideHeader?: boolean;
9
11
  /** Defaults to the viewport width. Percentages resolve against the viewport. */
10
12
  maxWidth?: PvResizeSize;
11
13
  /** Only used when `resizable` is set. */
@@ -1,6 +1,8 @@
1
1
  import { Tab, TabSize } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  interface PvTabsProps {
4
+ /** Folds the tabs that don't fit into a "+N more" menu, keeping "addButton" tabs visible after it. */
5
+ collapseOverflow?: boolean;
4
6
  /** Array of tab objects defining each tab's label, icon, and counter */
5
7
  tabs: Tab[];
6
8
  /** Size of the tab list */
@@ -22,5 +24,7 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
22
24
  "onOption-click"?: ((tabValue: string, optionValue: string) => any) | undefined;
23
25
  }>, {
24
26
  size: TabSize;
25
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLUListElement>;
27
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
28
+ listRef: HTMLUListElement;
29
+ }, HTMLUListElement>;
26
30
  export default _default;
@@ -12,6 +12,10 @@ export interface Tab {
12
12
  counter?: number;
13
13
  /** Display text for the tab */
14
14
  label: string;
15
+ /** When true, the tab can't be clicked or selected, and renders in a disabled style */
16
+ disabled?: boolean;
17
+ /** Optional hover text explaining why the tab is disabled; only shown while `disabled` is true */
18
+ disabledReason?: string;
15
19
  /** Optional icon name displayed before the tab label */
16
20
  icon?: string;
17
21
  /** Optional stable identifier used for selection; falls back to label */
@@ -14,7 +14,11 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
14
14
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
15
15
  readonly "onHandle-settings-icon"?: ((value: string) => any) | undefined;
16
16
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onHandle-settings-icon"> & FilterPanelProps & Partial<{}>> & PublicProps;
17
- expose(exposed: ShallowUnwrapRef<{}>): void;
17
+ expose(exposed: ShallowUnwrapRef<{
18
+ openVerticalDrawer: () => void;
19
+ openHorizontalFilter: (field: string) => boolean;
20
+ isHorizontalFilterCollapsed: (field: string) => boolean;
21
+ }>): void;
18
22
  attrs: any;
19
23
  slots: {};
20
24
  emit: (e: "handle-settings-icon", value: string) => void;
@@ -0,0 +1,17 @@
1
+ export interface HorizontalFilterFitOptions {
2
+ /** Rendered width of each filter control, in display order. */
3
+ itemWidths: number[];
4
+ /** Width available to the filter row. */
5
+ containerWidth: number;
6
+ /** Width of the always-visible actions that follow the filters (0 if none). */
7
+ trailingWidth: number;
8
+ /** Flex gap between row children. */
9
+ gap: number;
10
+ /** Index of a filter that must stay visible when it fits (e.g. opened from a column menu). */
11
+ pinnedIndex?: number;
12
+ }
13
+ /**
14
+ * Returns the indexes of the filters that fit on a single row alongside the trailing actions.
15
+ * Filters collapse one at a time from the end; the pinned filter is kept ahead of the others.
16
+ */
17
+ export declare const getVisibleFilterIndexes: ({ itemWidths, containerWidth, trailingWidth, gap, pinnedIndex, }: HorizontalFilterFitOptions) => Set<number>;
@@ -457,9 +457,16 @@ export interface PvDataTableProps<T> {
457
457
  * Enabled top-slot content moves to the opposite side of the same row.
458
458
  */
459
459
  tableSearchInline?: boolean;
460
- /** Maximum number of filter chips to display horizontally before collapsing */
460
+ /**
461
+ * Maximum number of filter chips to display horizontally.
462
+ * When the All Filters drawer is enabled and wrapping is not, chips also collapse from the end
463
+ * when the row runs out of space; collapsed filters remain available in the drawer.
464
+ */
461
465
  maxHorizontalFilters?: number;
462
- /** Allows horizontal filter controls to wrap onto additional rows. */
466
+ /**
467
+ * Allows horizontal filter controls to wrap onto additional rows instead of collapsing.
468
+ * Filters always wrap when `enableVerticalFilterPanel` is false.
469
+ */
463
470
  wrapHorizontalFilters?: boolean;
464
471
  /** If true, the filter panel is view-only: filters are visible but cannot be changed */
465
472
  filterPanelReadOnly?: boolean;