@turquoisehealth/pit-viper 2.232.0 → 2.233.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/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/vue/ai/components/base/PvFilterPanel/types.d.ts +12 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +12 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +8 -2
- 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 +12 -1
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +2 -0
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +7 -1
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -2,7 +2,7 @@ import { Component, Ref } from 'vue';
|
|
|
2
2
|
import { AdvancedFilterModel, FilterModel } from 'ag-grid-enterprise';
|
|
3
3
|
import { MenuOption, MultiSelectState } from '../../../types';
|
|
4
4
|
import { ColDef, ValueFormatterFunc } from 'ag-grid-community';
|
|
5
|
-
import { PvRangeValue } from '../PvRange/types';
|
|
5
|
+
import { PvRangeScale, PvRangeValue } from '../PvRange/types';
|
|
6
6
|
export type PvFilterPanelCategory = string;
|
|
7
7
|
export type PvFilterPanelFilterType = "value" | "range" | "boolean" | "exists";
|
|
8
8
|
export type PvFilterPanelFilterModelType = "advanced" | "regular";
|
|
@@ -79,6 +79,13 @@ export interface PvFilterPanelRangeConfig {
|
|
|
79
79
|
max?: number | null;
|
|
80
80
|
/** Step increment for range controls in reusable filter panel UIs. */
|
|
81
81
|
step?: number | null;
|
|
82
|
+
/**
|
|
83
|
+
* Track mapping for range controls in reusable filter panel UIs. `linear` spreads values evenly,
|
|
84
|
+
* `log` gives small values proportionally more track. Defaults to `linear` when unset.
|
|
85
|
+
*/
|
|
86
|
+
scale?: PvRangeScale;
|
|
87
|
+
/** Icon rendered inside the leading edge of both range inputs. Accepts any Pit Viper icon name. */
|
|
88
|
+
inputIcon?: string | null;
|
|
82
89
|
}
|
|
83
90
|
export interface PvFilterPanelColDefContext {
|
|
84
91
|
/**
|
|
@@ -431,8 +438,12 @@ export interface PvFilterPanelResolvedFilter {
|
|
|
431
438
|
label: string;
|
|
432
439
|
loadingText?: string;
|
|
433
440
|
options?: PvFilterPanelOption[];
|
|
441
|
+
/** See `filterPanelRange.inputIcon`. */
|
|
442
|
+
rangeInputIcon?: string | null;
|
|
434
443
|
rangeMax?: number | null;
|
|
435
444
|
rangeMin?: number | null;
|
|
445
|
+
/** See `filterPanelRange.scale`. */
|
|
446
|
+
rangeScale?: PvRangeScale;
|
|
436
447
|
rangeStep?: number | null;
|
|
437
448
|
rangeValue?: PvRangeValue;
|
|
438
449
|
searchPlaceholder?: string;
|
|
@@ -6160,8 +6160,10 @@ function _u(e, t, n) {
|
|
|
6160
6160
|
knownOptions: o,
|
|
6161
6161
|
label: t.headerName || n,
|
|
6162
6162
|
loadingText: r.filterOptionsLoadingText,
|
|
6163
|
+
rangeInputIcon: r.filterPanelRange?.inputIcon ?? null,
|
|
6163
6164
|
rangeMax: j(r.filterPanelRange?.max),
|
|
6164
6165
|
rangeMin: j(r.filterPanelRange?.min),
|
|
6166
|
+
rangeScale: r.filterPanelRange?.scale,
|
|
6165
6167
|
rangeStep: j(r.filterPanelRange?.step),
|
|
6166
6168
|
searchPlaceholder: ge(t),
|
|
6167
6169
|
searchQuery: z(n) ?? "",
|
|
@@ -3299,9 +3299,11 @@ var dr = /* @__PURE__ */ new Set(), fr = (e, t) => !!t.root.value && !!e.root.va
|
|
|
3299
3299
|
rangeValue: e.filter.rangeValue,
|
|
3300
3300
|
"data-type": e.filter.dataType,
|
|
3301
3301
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
3302
|
+
"input-icon": e.filter.rangeInputIcon,
|
|
3302
3303
|
label: e.filter.label,
|
|
3303
3304
|
max: e.filter.rangeMax,
|
|
3304
3305
|
min: e.filter.rangeMin,
|
|
3306
|
+
scale: e.filter.rangeScale,
|
|
3305
3307
|
step: e.filter.rangeStep,
|
|
3306
3308
|
"value-decimals": e.filter.valueDecimals,
|
|
3307
3309
|
"onUpdate:rangeValue": ke
|
|
@@ -3309,9 +3311,11 @@ var dr = /* @__PURE__ */ new Set(), fr = (e, t) => !!t.root.value && !!e.root.va
|
|
|
3309
3311
|
"rangeValue",
|
|
3310
3312
|
"data-type",
|
|
3311
3313
|
"disabled",
|
|
3314
|
+
"input-icon",
|
|
3312
3315
|
"label",
|
|
3313
3316
|
"max",
|
|
3314
3317
|
"min",
|
|
3318
|
+
"scale",
|
|
3315
3319
|
"step",
|
|
3316
3320
|
"value-decimals"
|
|
3317
3321
|
])) : C.value === "range" ? (O(), o("p", ua, " Range filters require minimum and maximum bounds. ")) : C.value === "boolean" ? (O(), o("div", da, [s("div", fa, [(O(!0), o(t, null, j(P.value, (t) => (O(), i(Y, {
|
|
@@ -3338,7 +3342,7 @@ var dr = /* @__PURE__ */ new Set(), fr = (e, t) => !!t.root.value && !!e.root.va
|
|
|
3338
3342
|
"onUpdate:modelValue": Oe
|
|
3339
3343
|
}, null, 8, ["disabled", "modelValue"]), s("span", ma, I(g.value), 1)])) : a("v-if", !0)])], 40, Yi));
|
|
3340
3344
|
}
|
|
3341
|
-
}), [["styles", ["summary[data-v-
|
|
3345
|
+
}), [["styles", ["summary[data-v-19f7e2ba]{background-image:none;padding-right:2px}[data-v-19f7e2ba] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-19f7e2ba]{text-underline-offset:2px;text-decoration:underline dotted}"]], ["__scopeId", "data-v-19f7e2ba"]]), va = ["data-style"], ya = /* @__PURE__ */ d({
|
|
3342
3346
|
__name: "PvTag",
|
|
3343
3347
|
props: {
|
|
3344
3348
|
size: {
|
|
@@ -4415,8 +4419,10 @@ function vs(e, t, n) {
|
|
|
4415
4419
|
knownOptions: o,
|
|
4416
4420
|
label: t.headerName || n,
|
|
4417
4421
|
loadingText: r.filterOptionsLoadingText,
|
|
4422
|
+
rangeInputIcon: r.filterPanelRange?.inputIcon ?? null,
|
|
4418
4423
|
rangeMax: te(r.filterPanelRange?.max),
|
|
4419
4424
|
rangeMin: te(r.filterPanelRange?.min),
|
|
4425
|
+
rangeScale: r.filterPanelRange?.scale,
|
|
4420
4426
|
rangeStep: te(r.filterPanelRange?.step),
|
|
4421
4427
|
searchPlaceholder: G(t),
|
|
4422
4428
|
searchQuery: ae(n) ?? "",
|