@turquoisehealth/pit-viper 2.268.0 → 2.268.2

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 (29) hide show
  1. package/_site/assets/css/pit-viper-a11y-v3.css +15 -1
  2. package/_site/assets/css/pit-viper-a11y.css +15 -1
  3. package/_site/assets/css/pit-viper-consumer.css +15 -1
  4. package/_site/assets/css/pit-viper-v2-scoped.css +13 -1
  5. package/_site/assets/css/pit-viper-v2.css +15 -1
  6. package/_site/assets/css/pit-viper-v3.css +15 -1
  7. package/_site/assets/css/pit-viper.css +1 -1
  8. package/_site/manifest.json +16 -2
  9. package/package.json +1 -1
  10. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  11. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-date-picker-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
  15. package/pv-components/dist/vue/ai/components/base/PvDatePicker/PvDatePicker.vue.d.ts +12 -0
  16. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/filterOptionDisplay.d.ts +2 -0
  17. package/pv-components/dist/vue/base/components/base/PvDatePicker/PvDatePicker.vue.d.ts +12 -0
  18. package/pv-components/dist/vue/base/components/base/PvFilterPanel/filterOptionDisplay.d.ts +2 -0
  19. package/pv-components/dist/vue/base/pv-components-base.mjs +1497 -1426
  20. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  21. package/pv-components/dist/vue/visualizations/components/base/PvDatePicker/PvDatePicker.vue.d.ts +12 -0
  22. package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/filterOptionDisplay.d.ts +2 -0
  23. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +8 -4
  24. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  25. package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +10 -3
  26. package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +583 -516
  27. package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +1395 -1328
  28. package/pv-components/dist/web/pv-components.iife.js +3 -3
  29. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -1,3 +1,4 @@
1
+ import { PvButtonSize } from '../PvButton/types';
1
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
3
  /**
3
4
  * Value of a date selection. A single `Date` in `single` selection mode, an array in
@@ -7,6 +8,11 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
7
8
  * `pv-date-picker`. The unions here are written out rather than aliased because Vue's
8
9
  * macro type resolution has to see `Date` to emit it as a runtime prop type.
9
10
  */
11
+ /**
12
+ * Uses the button's size scale so a date picker can sit next to a button of the same size:
13
+ * `md` matches `pv-button-small` (20px), `lg` the default button (24px), `xl` `pv-button-large` (32px).
14
+ */
15
+ export type PvDatePickerSize = PvButtonSize;
10
16
  export type PvDatePickerModelValue = Date | string | (Date | string | null)[] | null | undefined;
11
17
  export interface PvDatePickerProps {
12
18
  /**
@@ -98,6 +104,11 @@ export interface PvDatePickerProps {
98
104
  * Style class of the datepicker panel.
99
105
  */
100
106
  panelClass?: string | undefined;
107
+ /**
108
+ * Height of the input, on the same scale as `PvButton`'s `size`. Defaults to `xl`, the
109
+ * height the date picker has always had.
110
+ */
111
+ size?: PvDatePickerSize;
101
112
  }
102
113
  type __VLS_Props = PvDatePickerProps;
103
114
  type __VLS_PublicProps = {
@@ -108,6 +119,7 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
108
119
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
109
120
  "onUpdate:modelValue"?: ((value: PvDatePickerModelValue) => any) | undefined;
110
121
  }>, {
122
+ size: PvDatePickerSize;
111
123
  appendTo: "body" | "self";
112
124
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
113
125
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { PvFilterPanelOption } from './types';
1
2
  export type PvFilterPanelDisplayResultCount = number | string;
2
3
  export type FilterPanelDisplayResultCount = PvFilterPanelDisplayResultCount;
3
4
  interface FilterOptionDisplaySource {
@@ -24,5 +25,6 @@ export declare const formatFilterPanelRangeValue: (min: number | null, max: numb
24
25
  valueDecimals?: number | null;
25
26
  }) => string;
26
27
  export declare const getFilterOptionLabel: (option: FilterOptionDisplaySource, colDef?: FilterOptionColDefLike) => string;
28
+ export declare const resolveFilterPanelOptions: (options: PvFilterPanelOption[], knownOptions: PvFilterPanelOption[], colDef?: FilterOptionColDefLike) => PvFilterPanelOption[];
27
29
  export declare const getFilterOptionResultCount: (option: FilterOptionDisplaySource | null | undefined) => PvFilterPanelDisplayResultCount | undefined;
28
30
  export {};
@@ -9131,9 +9131,6 @@ Math.random().toString(), new Intl.NumberFormat("en-US", {
9131
9131
  style: "currency",
9132
9132
  currency: "USD",
9133
9133
  maximumFractionDigits: 0
9134
- }), new Intl.NumberFormat("en-US", {
9135
- maximumFractionDigits: 1,
9136
- notation: "compact"
9137
9134
  });
9138
9135
  //#endregion
9139
9136
  //#region src/components/base/PvFilterPanel/filterOptionValue.ts
@@ -9176,7 +9173,14 @@ var Ol = "__pv_filter_panel_scoped_value__", kl = (e) => typeof e == "object" &&
9176
9173
  pairs: t,
9177
9174
  value: t[0]?.value ?? e
9178
9175
  };
9179
- }, Nl = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : kl(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? String(e.metadata.rawValue) : e.matchedValue !== null && e.matchedValue !== void 0 ? String(e.matchedValue) : Ml(e.value)?.value ?? e.value : null, Pl = (e, t) => e?.field ? e.field : e?.colField ? e.colField : Ml(e?.value)?.field ?? t, Fl = (e, t, n, r) => Pl(e, r) === t && Nl(e) === n, Il = (e) => {
9176
+ }, Nl = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : kl(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? String(e.metadata.rawValue) : e.matchedValue !== null && e.matchedValue !== void 0 ? String(e.matchedValue) : Ml(e.value)?.value ?? e.value : null, Pl = (e, t) => e?.field ? e.field : e?.colField ? e.colField : Ml(e?.value)?.field ?? t, Fl = (e, t, n, r) => Pl(e, r) === t && Nl(e) === n;
9177
+ new Intl.NumberFormat("en-US", {
9178
+ maximumFractionDigits: 1,
9179
+ notation: "compact"
9180
+ });
9181
+ //#endregion
9182
+ //#region src/components/base/PvFilterPanel/aggregateFilterModel.ts
9183
+ var Il = (e) => {
9180
9184
  let t = e;
9181
9185
  return t?.filterType === "join" && Array.isArray(t.conditions);
9182
9186
  }, Ll = (e) => {