@turquoisehealth/pit-viper 2.214.0 → 2.216.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 +4 -0
- package/_site/assets/css/pit-viper-consumer.css +4 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +3 -0
- package/_site/assets/css/pit-viper-v2.css +51 -10
- package/_site/assets/css/pit-viper.css +4 -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-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-query-builder-input-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +32 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +158 -136
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +32 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/crosslineHelpers.d.ts +17 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +1 -5
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvBenchmarkChips.vue.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/useBenchmarkOverlays.d.ts +30 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2559 -2443
- 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 +950 -928
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +2 -0
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js +10 -10
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -25,6 +25,8 @@ export interface PvFilterPanelOption {
|
|
|
25
25
|
/** Explicit raw filter value. Prefer this over metadata.rawValue or scoped value parsing for new consumers. */
|
|
26
26
|
rawValue?: PvFilterPanelOptionRawValue;
|
|
27
27
|
resultCount?: PvFilterPanelResultCount | null;
|
|
28
|
+
/** Optional section label used to group options under a heading in section-aware UIs (e.g. PvFilterModal). */
|
|
29
|
+
section?: string;
|
|
28
30
|
subduedText?: string;
|
|
29
31
|
subText?: string;
|
|
30
32
|
totalChildCount?: number;
|
|
@@ -34,6 +36,22 @@ export interface PvFilterPanelFilterGroup {
|
|
|
34
36
|
fields: string[];
|
|
35
37
|
label: string;
|
|
36
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Describes a section heading in section-aware UIs (e.g. PvFilterModal). Options are grouped by their
|
|
41
|
+
* `section` value; the matching def is forwarded to the section header renderer so it can decide how
|
|
42
|
+
* to display the heading. Configured per column via `colDef.context.filterSectionDefs`.
|
|
43
|
+
*
|
|
44
|
+
* Only `key`/`label` are typed; put anything else the renderer needs (icon, tooltip, counter, badge…)
|
|
45
|
+
* on `metadata` so new display needs don't require changing this type.
|
|
46
|
+
*/
|
|
47
|
+
export interface PvFilterPanelSectionDef {
|
|
48
|
+
/** Section key matching an option's `section` value. */
|
|
49
|
+
key: string;
|
|
50
|
+
/** Display label for the section heading. Defaults to `key`. */
|
|
51
|
+
label?: string;
|
|
52
|
+
/** Arbitrary display data forwarded to the section header renderer (e.g. icon, tooltip, count). */
|
|
53
|
+
metadata?: Record<string, unknown>;
|
|
54
|
+
}
|
|
37
55
|
export interface PvFilterPanelAggregateFieldHierarchy {
|
|
38
56
|
/** Field represented by this hierarchy node. Parent/child relationships are determined by nesting. */
|
|
39
57
|
field: string;
|
|
@@ -97,6 +115,18 @@ export interface PvFilterPanelColDefContext {
|
|
|
97
115
|
* Optional renderer to override the default filter options list
|
|
98
116
|
*/
|
|
99
117
|
filterOptionsRenderer?: Component;
|
|
118
|
+
/**
|
|
119
|
+
* Section heading defs for section-aware UIs (e.g. PvFilterModal), keyed by section value. Supplies
|
|
120
|
+
* the label and any extra display data (via `metadata`) forwarded to `filterSectionHeaderRenderer`.
|
|
121
|
+
* Also determines section order; sections present in the options but absent here render last.
|
|
122
|
+
*/
|
|
123
|
+
filterSectionDefs?: PvFilterPanelSectionDef[];
|
|
124
|
+
/**
|
|
125
|
+
* Optional renderer for section headings in section-aware UIs (e.g. PvFilterModal). Receives
|
|
126
|
+
* `{ colDef, field, section, options }` and replaces the default section label text, allowing
|
|
127
|
+
* hover tooltips, counters, or custom markup. Sections come from each option's `section` field.
|
|
128
|
+
*/
|
|
129
|
+
filterSectionHeaderRenderer?: Component;
|
|
100
130
|
/**
|
|
101
131
|
* An optional description to show in the tooltip explaining how the dropdown values are sorted
|
|
102
132
|
*/
|
|
@@ -337,6 +367,8 @@ export interface PvFilterPanelResolvedFilter {
|
|
|
337
367
|
filterGroupOptions?: PvFilterPanelGroupOption[];
|
|
338
368
|
filterHeaderRenderer?: Component;
|
|
339
369
|
filterOptionsRenderer?: Component;
|
|
370
|
+
filterSectionDefs?: PvFilterPanelSectionDef[];
|
|
371
|
+
filterSectionHeaderRenderer?: Component;
|
|
340
372
|
filterOptionsSortDescription?: string;
|
|
341
373
|
filterOptionsSortTooltip?: string;
|
|
342
374
|
hideOptionsSortDescription?: boolean;
|