@turquoisehealth/pit-viper 2.197.3-dev.0 → 2.197.3-dev.1

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.
@@ -26,8 +26,9 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
26
26
  }) => Promise<string> | undefined;
27
27
  getCsvData: () => Promise<string | null> | undefined;
28
28
  refreshData: (params?: RefreshServerSideParams | null) => Promise<void> | undefined;
29
- getFilterValueSelectedMetadataMap: () => Record<string, ( FilterValueResponseOption | null)[]> | undefined;
30
- hydrateSelectedFilterMetadata: () => Promise<Record<string, ( FilterValueResponseOption | null)[]>> | undefined;
29
+ getFilterValueSelectedMetadataMap: (options?: {
30
+ hydrate?: boolean;
31
+ }) => Record<string, ( FilterValueResponseOption | null)[]> | Promise<Record<string, ( FilterValueResponseOption | null)[]>> | undefined;
31
32
  getPvFilterModel: () => AdvancedFilterModel | FilterModel | null | undefined;
32
33
  setPvFilterModel: (model: FilterModel | AdvancedFilterModel | null) => boolean | undefined;
33
34
  }>): void;
@@ -443,9 +443,16 @@ export interface PvDataTableProps<T> {
443
443
  export interface PvDataTablePublicInterface {
444
444
  getCsvData: () => Promise<string | null>;
445
445
  refreshData: (params?: RefreshServerSideParams | null) => Promise<void>;
446
- getFilterValueSelectedMetadataMap: () => Record<string, (FilterValueResponseOption | null)[]>;
447
- /** Fetches options for every column with a selection and resolves to the full metadata map. */
448
- hydrateSelectedFilterMetadata: () => Promise<Record<string, (FilterValueResponseOption | null)[]>>;
446
+ /**
447
+ * Returns the selected-value metadata map. Pass `{ hydrate: true }` to first fetch options for any
448
+ * active filter not already cached (resolves to the full map); the no-arg form returns the current map.
449
+ */
450
+ getFilterValueSelectedMetadataMap: {
451
+ (): Record<string, (FilterValueResponseOption | null)[]>;
452
+ (options: {
453
+ hydrate: true;
454
+ }): Promise<Record<string, (FilterValueResponseOption | null)[]>>;
455
+ };
449
456
  availableRowGroupColumns: ComputedRef<ColDef[]>;
450
457
  availableAggFuncColumns: ComputedRef<ColDef[]>;
451
458
  rowGroupColumnFields: Ref<string[]>;
@@ -45,6 +45,7 @@ export declare const createFilterStore: () => {
45
45
  isServerSideFilter: ComputedRef<boolean>;
46
46
  stagedFilterModel: Ref<PvFilterPanelFilterModel, PvFilterPanelFilterModel>;
47
47
  setFilterSelectedValues: (colField: string, selectedValues: (string | null)[]) => (string | null)[];
48
+ hydrateSelectedFilterMetadata: (colDefs: ColDef[]) => Promise<Record<string, (FilterValueResponseOption | null)[]>>;
48
49
  setFilterValueSearchText: (colField: string, searchText: string | null) => void;
49
50
  tableSearchFilterModel: Ref<PvFilterPanelFilterModel, PvFilterPanelFilterModel>;
50
51
  tableSearchFilterModelEmpty: ComputedRef<boolean>;
@@ -126,6 +127,7 @@ export declare const createPvDataTableFilterStore: () => {
126
127
  isServerSideFilter: ComputedRef<boolean>;
127
128
  stagedFilterModel: Ref<PvFilterPanelFilterModel, PvFilterPanelFilterModel>;
128
129
  setFilterSelectedValues: (colField: string, selectedValues: (string | null)[]) => (string | null)[];
130
+ hydrateSelectedFilterMetadata: (colDefs: ColDef[]) => Promise<Record<string, (FilterValueResponseOption | null)[]>>;
129
131
  setFilterValueSearchText: (colField: string, searchText: string | null) => void;
130
132
  tableSearchFilterModel: Ref<PvFilterPanelFilterModel, PvFilterPanelFilterModel>;
131
133
  tableSearchFilterModelEmpty: ComputedRef<boolean>;
@@ -207,6 +209,7 @@ export declare const useFilterStore: () => {
207
209
  isServerSideFilter: ComputedRef<boolean>;
208
210
  stagedFilterModel: Ref<PvFilterPanelFilterModel, PvFilterPanelFilterModel>;
209
211
  setFilterSelectedValues: (colField: string, selectedValues: (string | null)[]) => (string | null)[];
212
+ hydrateSelectedFilterMetadata: (colDefs: ColDef[]) => Promise<Record<string, (FilterValueResponseOption | null)[]>>;
210
213
  setFilterValueSearchText: (colField: string, searchText: string | null) => void;
211
214
  tableSearchFilterModel: Ref<PvFilterPanelFilterModel, PvFilterPanelFilterModel>;
212
215
  tableSearchFilterModelEmpty: ComputedRef<boolean>;
@@ -287,6 +290,7 @@ export declare const usePvDataTableFilterStore: () => {
287
290
  isServerSideFilter: ComputedRef<boolean>;
288
291
  stagedFilterModel: Ref<PvFilterPanelFilterModel, PvFilterPanelFilterModel>;
289
292
  setFilterSelectedValues: (colField: string, selectedValues: (string | null)[]) => (string | null)[];
293
+ hydrateSelectedFilterMetadata: (colDefs: ColDef[]) => Promise<Record<string, (FilterValueResponseOption | null)[]>>;
290
294
  setFilterValueSearchText: (colField: string, searchText: string | null) => void;
291
295
  tableSearchFilterModel: Ref<PvFilterPanelFilterModel, PvFilterPanelFilterModel>;
292
296
  tableSearchFilterModelEmpty: ComputedRef<boolean>;