@turquoisehealth/pit-viper 2.232.0 → 2.234.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 (26) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +1 -1
  2. package/_site/assets/css/pit-viper-consumer.css +1 -1
  3. package/_site/assets/css/pit-viper-v2-scoped.css +1 -1
  4. package/_site/assets/css/pit-viper-v2.css +1 -1
  5. package/_site/assets/css/pit-viper.css +1 -1
  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-filter-modal-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-modal-stats.html +1 -1
  12. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +12 -1
  13. package/pv-components/dist/vue/ai/components/base/PvModal/PvModal.vue.d.ts +3 -0
  14. package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +12 -1
  15. package/pv-components/dist/vue/base/components/base/PvModal/PvModal.vue.d.ts +3 -0
  16. package/pv-components/dist/vue/base/pv-components-base.mjs +22 -18
  17. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  18. package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +12 -1
  19. package/pv-components/dist/vue/visualizations/components/base/PvModal/PvModal.vue.d.ts +3 -0
  20. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +14 -16
  21. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  22. package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +2 -0
  23. package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +24 -17
  24. package/pv-components/dist/web/components/pv-modal/pv-modal.js +484 -483
  25. package/pv-components/dist/web/pv-components.iife.js +2 -2
  26. 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;
@@ -5,6 +5,8 @@ export interface ModalProps {
5
5
  disableCloseOnClickOutside?: boolean;
6
6
  hideFooter?: boolean;
7
7
  hideHeader?: boolean;
8
+ /** Vertical placement in the viewport. "center" centers the modal, "top" anchors it near the top. */
9
+ position?: "center" | "top";
8
10
  }
9
11
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
10
12
  modelValue: boolean;
@@ -15,6 +17,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
15
17
  } & ModalProps> & Readonly<{
16
18
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
17
19
  }>, {
20
+ position: "center" | "top";
18
21
  disableCloseOnClickOutside: boolean;
19
22
  hideFooter: boolean;
20
23
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -7612,7 +7612,8 @@ var Ba = {
7612
7612
  type: Boolean,
7613
7613
  default: !1
7614
7614
  },
7615
- hideHeader: { type: Boolean }
7615
+ hideHeader: { type: Boolean },
7616
+ position: { default: "center" }
7616
7617
  }, {
7617
7618
  modelValue: {
7618
7619
  type: Boolean,
@@ -7622,25 +7623,22 @@ var Ba = {
7622
7623
  }),
7623
7624
  emits: ["update:modelValue"],
7624
7625
  setup(e) {
7625
- let t = e, n = H("dialog"), r = V(e, "modelValue");
7626
- U(() => r.value, () => {
7627
- r.value ? n.value?.showModal() : n.value?.close();
7626
+ let t = e, n = r(() => t.position === "center" ? "position: fixed; inset-block: 0; height: fit-content; margin-block: auto" : void 0), i = H("dialog"), c = V(e, "modelValue");
7627
+ U(() => c.value, () => {
7628
+ c.value ? i.value?.showModal() : i.value?.close();
7628
7629
  });
7629
- let i = () => {
7630
- r.value = !1;
7631
- }, c = (e) => {
7632
- !t.disableCloseOnClickOutside && e.target === n.value && i();
7630
+ let l = () => {
7631
+ c.value = !1;
7632
+ }, u = (e) => {
7633
+ !t.disableCloseOnClickOutside && e.target === i.value && l();
7633
7634
  };
7634
- return (t, n) => (D(), o("dialog", {
7635
+ return (t, r) => (D(), o("dialog", {
7635
7636
  class: "pv-modal-sm",
7636
7637
  ref: "dialog",
7637
- style: {
7638
- "--top": "40%",
7639
- position: "absolute"
7640
- },
7641
- onClose: i,
7642
- onClick: c
7643
- }, [s("div", rc, [e.hideHeader ? a("", !0) : (D(), o("div", ic, [s("span", ac, F(e.header), 1), e.subheader ? (D(), o("span", oc, F(e.subheader), 1)) : a("", !0)])), j(t.$slots, "body")]), e.hideFooter ? a("", !0) : (D(), o("div", sc, [j(t.$slots, "footer")]))], 544));
7638
+ style: x(n.value),
7639
+ onClose: l,
7640
+ onClick: u
7641
+ }, [s("div", rc, [e.hideHeader ? a("", !0) : (D(), o("div", ic, [s("span", ac, F(e.header), 1), e.subheader ? (D(), o("span", oc, F(e.subheader), 1)) : a("", !0)])), j(t.$slots, "body")]), e.hideFooter ? a("", !0) : (D(), o("div", sc, [j(t.$slots, "footer")]))], 36));
7644
7642
  }
7645
7643
  }), lc = /* @__PURE__ */ function(e) {
7646
7644
  return e.Vertical = "Vertical", e.Horizontal = "Horizontal", e;