@turquoisehealth/pit-viper 2.237.0 → 2.238.1-dev.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-dropdown-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-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvDropdown/PvDropdown.vue.d.ts +9 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterModal/PvFilterModal.vue.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +4 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelAppliedFiltersSection.vue.d.ts +4 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +25 -0
- package/pv-components/dist/vue/ai/components/base/PvPopover/PvPopover.vue.d.ts +8 -0
- package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts +21 -1
- package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/useQueryBuilder.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvDropdown/PvDropdown.vue.d.ts +9 -1
- package/pv-components/dist/vue/base/components/base/PvFilterModal/PvFilterModal.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +4 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanelAppliedFiltersSection.vue.d.ts +4 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +25 -0
- package/pv-components/dist/vue/base/components/base/PvPopover/PvPopover.vue.d.ts +8 -0
- package/pv-components/dist/vue/base/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts +21 -1
- package/pv-components/dist/vue/base/components/base/PvQueryBuilderInput/useQueryBuilder.d.ts +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +1931 -1817
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/base/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/base/PvDropdown/PvDropdown.vue.d.ts +9 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterModal/PvFilterModal.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +4 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanelAppliedFiltersSection.vue.d.ts +4 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +25 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopover/PvPopover.vue.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts +21 -1
- package/pv-components/dist/vue/visualizations/components/base/PvQueryBuilderInput/useQueryBuilder.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvTableOptionsPanel.vue.d.ts +9 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/helpers.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterGroupMenu.vue.d.ts +9 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/components/tables/themes.d.ts +7 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1810 -1758
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/types.d.ts +6 -0
- package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +947 -933
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +1457 -1383
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +715 -677
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +1533 -1461
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1820 -1748
- package/pv-components/dist/web/components/pv-popover/pv-popover.js +952 -938
- package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +944 -930
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1948 -1861
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1777 -1705
- package/pv-components/dist/web/pv-components.iife.js +36 -36
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
- package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/QueryBuilderMenuOptionRenderer.vue.d.ts +0 -6
- package/pv-components/dist/vue/base/components/base/PvQueryBuilderInput/QueryBuilderMenuOptionRenderer.vue.d.ts +0 -6
- package/pv-components/dist/vue/visualizations/components/base/PvQueryBuilderInput/QueryBuilderMenuOptionRenderer.vue.d.ts +0 -6
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionMenuItemRenderer.vue.d.ts +0 -10
|
@@ -49,6 +49,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvDropdownProps
|
|
|
49
49
|
readonly cssCustomListProperties?: CSSProperties | undefined;
|
|
50
50
|
readonly cssCustomProperties?: CSSProperties | undefined;
|
|
51
51
|
readonly isList?: boolean | undefined;
|
|
52
|
+
readonly listId?: string | undefined;
|
|
53
|
+
readonly listRole?: string | undefined;
|
|
52
54
|
readonly isSortable?: boolean | undefined;
|
|
53
55
|
readonly "onList-order-updated"?: ((value: string[]) => any) | undefined;
|
|
54
56
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -77,6 +79,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvDropdownProps
|
|
|
77
79
|
cssCustomProperties: CSSProperties;
|
|
78
80
|
alignment: "right" | "top" | "top right";
|
|
79
81
|
isList: boolean;
|
|
82
|
+
listId: string;
|
|
83
|
+
listRole: string;
|
|
80
84
|
isSortable: boolean;
|
|
81
85
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
82
86
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -102,15 +106,19 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvDropdownProps
|
|
|
102
106
|
cssCustomProperties: CSSProperties;
|
|
103
107
|
alignment: "right" | "top" | "top right";
|
|
104
108
|
isList: boolean;
|
|
109
|
+
listId: string;
|
|
110
|
+
listRole: string;
|
|
105
111
|
isSortable: boolean;
|
|
106
112
|
}> & Omit<Readonly< PvPopoverProps> & Readonly<{
|
|
107
113
|
"onList-order-updated"?: ((value: string[]) => any) | undefined;
|
|
108
|
-
}>, "popoverRoot" | ("cssCustomProperties" | "alignment" | "isList" | "isSortable")> & {
|
|
114
|
+
}>, "popoverRoot" | ("cssCustomProperties" | "alignment" | "isList" | "listId" | "listRole" | "isSortable")> & {
|
|
109
115
|
popoverRoot: HTMLElement | null;
|
|
110
116
|
} & {} & ComponentCustomProperties & {} & {
|
|
111
117
|
$slots: {
|
|
118
|
+
header?(_: {}): any;
|
|
112
119
|
default?(_: {}): any;
|
|
113
120
|
default?(_: {}): any;
|
|
121
|
+
footer?(_: {}): any;
|
|
114
122
|
};
|
|
115
123
|
}) | null;
|
|
116
124
|
}, HTMLDivElement>, {
|
|
@@ -23,6 +23,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
|
|
|
23
23
|
"controlled-change": (filterKey: string, values: string[], colDef: PvFilterPanelColDef) => any;
|
|
24
24
|
"filter-change": (event: PvFilterPanelFilterChangeEvent) => any;
|
|
25
25
|
"focus-change": (field: string, value: string, option: PvFilterPanelOption) => any;
|
|
26
|
+
"remove-external-filter": (key: string, value: string) => any;
|
|
26
27
|
"handle-settings-icon": (field: string, colDef: PvFilterPanelColDef) => any;
|
|
27
28
|
"open-change": (field: string, open: boolean, colDef: PvFilterPanelColDef) => any;
|
|
28
29
|
"search-change": (field: string, query: string, colDef: PvFilterPanelColDef) => any;
|
|
@@ -37,6 +38,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
|
|
|
37
38
|
"onControlled-change"?: ((filterKey: string, values: string[], colDef: PvFilterPanelColDef) => any) | undefined;
|
|
38
39
|
"onFilter-change"?: ((event: PvFilterPanelFilterChangeEvent) => any) | undefined;
|
|
39
40
|
"onFocus-change"?: ((field: string, value: string, option: PvFilterPanelOption) => any) | undefined;
|
|
41
|
+
"onRemove-external-filter"?: ((key: string, value: string) => any) | undefined;
|
|
40
42
|
"onHandle-settings-icon"?: ((field: string, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
41
43
|
"onOpen-change"?: ((field: string, open: boolean, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
42
44
|
"onSearch-change"?: ((field: string, query: string, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PvFilterPanelFilterModel, PvFilterPanelProps, PvFilterPanelColDef, PvFilterPanelFilterChangeEvent, PvFilterPanelOption, PvFilterPanelSuggestion } from './types';
|
|
1
|
+
import { PvFilterPanelFilterModel, PvFilterPanelProps, PvFilterPanelColDef, PvFilterPanelFilterChangeEvent, PvFilterPanelOption, PvFilterPanelSuggestion, PvFilterPanelExternalFilterGroup } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
type __VLS_Props = PvFilterPanelProps;
|
|
4
4
|
type __VLS_PublicProps = {
|
|
@@ -22,6 +22,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
|
|
|
22
22
|
"controlled-change": (filterKey: string, values: string[], colDef: PvFilterPanelColDef) => any;
|
|
23
23
|
"filter-change": (event: PvFilterPanelFilterChangeEvent) => any;
|
|
24
24
|
"focus-change": (field: string, value: string, option: PvFilterPanelOption) => any;
|
|
25
|
+
"remove-external-filter": (key: string, value: string) => any;
|
|
25
26
|
"handle-settings-icon": (field: string, colDef: PvFilterPanelColDef) => any;
|
|
26
27
|
"open-change": (field: string, open: boolean, colDef: PvFilterPanelColDef) => any;
|
|
27
28
|
"search-change": (field: string, query: string, colDef: PvFilterPanelColDef) => any;
|
|
@@ -36,6 +37,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
|
|
|
36
37
|
"onControlled-change"?: ((filterKey: string, values: string[], colDef: PvFilterPanelColDef) => any) | undefined;
|
|
37
38
|
"onFilter-change"?: ((event: PvFilterPanelFilterChangeEvent) => any) | undefined;
|
|
38
39
|
"onFocus-change"?: ((field: string, value: string, option: PvFilterPanelOption) => any) | undefined;
|
|
40
|
+
"onRemove-external-filter"?: ((key: string, value: string) => any) | undefined;
|
|
39
41
|
"onHandle-settings-icon"?: ((field: string, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
40
42
|
"onOpen-change"?: ((field: string, open: boolean, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
41
43
|
"onSearch-change"?: ((field: string, query: string, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
@@ -72,6 +74,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
|
|
|
72
74
|
clearAllLabel: string;
|
|
73
75
|
disableWhileLoading: boolean;
|
|
74
76
|
enableFilterSearch: boolean;
|
|
77
|
+
externalFilters: PvFilterPanelExternalFilterGroup[];
|
|
75
78
|
filterSearchPlaceholder: string;
|
|
76
79
|
hideCollapseButton: boolean;
|
|
77
80
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { PvFilterPanelAppliedFiltersSectionProps, PvFilterPanelFilterType, PvFilterPanelAppliedGroup } from './types';
|
|
1
|
+
import { PvFilterPanelAppliedFiltersSectionProps, PvFilterPanelExternalFilterGroup, PvFilterPanelFilterType, PvFilterPanelAppliedGroup } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<PvFilterPanelAppliedFiltersSectionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
4
|
"remove-filter": (filterKey: string, value: string, type?: PvFilterPanelFilterType | undefined) => any;
|
|
5
|
+
"remove-external-filter": (key: string, value: string) => any;
|
|
5
6
|
}, string, PublicProps, Readonly<PvFilterPanelAppliedFiltersSectionProps> & Readonly<{
|
|
6
7
|
"onRemove-filter"?: ((filterKey: string, value: string, type?: PvFilterPanelFilterType | undefined) => any) | undefined;
|
|
8
|
+
"onRemove-external-filter"?: ((key: string, value: string) => any) | undefined;
|
|
7
9
|
}>, {
|
|
8
10
|
readOnly: boolean;
|
|
11
|
+
externalFilters: PvFilterPanelExternalFilterGroup[];
|
|
9
12
|
appliedCount: number;
|
|
10
13
|
appliedGroups: PvFilterPanelAppliedGroup[];
|
|
11
14
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
@@ -289,6 +289,21 @@ export interface PvFilterPanelAppliedGroup {
|
|
|
289
289
|
label: string;
|
|
290
290
|
values: PvFilterPanelAppliedValue[];
|
|
291
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* A filter that is applied outside the panel's own controls - a table search bar's partial match, a
|
|
294
|
+
* saved view, a URL parameter - surfaced at the top of the Applied tab so every active narrowing is
|
|
295
|
+
* visible in one place. The panel only displays these: it never writes them to the filter model, and
|
|
296
|
+
* removing one is reported back through `remove-external-filter` for the owner to act on.
|
|
297
|
+
*/
|
|
298
|
+
export interface PvFilterPanelExternalFilterGroup {
|
|
299
|
+
/** Stable key echoed back with removals. */
|
|
300
|
+
key: string;
|
|
301
|
+
/** Heading shown above the group's tags. */
|
|
302
|
+
label: string;
|
|
303
|
+
/** When false, tags render without a clear button and clear-all leaves them alone. Defaults to true. */
|
|
304
|
+
removable?: boolean;
|
|
305
|
+
values: PvFilterPanelAppliedValue[];
|
|
306
|
+
}
|
|
292
307
|
export type PvFilterPanelControlChange = {
|
|
293
308
|
checked: boolean;
|
|
294
309
|
field?: string;
|
|
@@ -468,6 +483,8 @@ export interface PvFilterPanelAccordionProps {
|
|
|
468
483
|
export interface PvFilterPanelAppliedFiltersSectionProps {
|
|
469
484
|
appliedCount?: number;
|
|
470
485
|
appliedGroups?: PvFilterPanelAppliedGroup[];
|
|
486
|
+
/** Filters applied outside the panel, rendered above the panel's own applied groups. */
|
|
487
|
+
externalFilters?: PvFilterPanelExternalFilterGroup[];
|
|
471
488
|
readOnly?: boolean;
|
|
472
489
|
}
|
|
473
490
|
export interface PvFilterPanelCategoryButtonRowProps {
|
|
@@ -506,6 +523,8 @@ export type PvFilterPanelEmits = {
|
|
|
506
523
|
"facet-change": [field: string, facets: Record<string, string[]>, colDef: PvFilterPanelColDef];
|
|
507
524
|
"filter-change": [event: PvFilterPanelFilterChangeEvent];
|
|
508
525
|
"focus-change": [field: string, value: string, option: PvFilterPanelOption];
|
|
526
|
+
/** Emitted when an external filter tag is cleared, including via clear all. */
|
|
527
|
+
"remove-external-filter": [key: string, value: string];
|
|
509
528
|
"handle-settings-icon": [field: string, colDef: PvFilterPanelColDef];
|
|
510
529
|
"load-more": [field: string, colDef: PvFilterPanelColDef, query: string, parentId?: string];
|
|
511
530
|
"open-change": [field: string, open: boolean, colDef: PvFilterPanelColDef];
|
|
@@ -542,6 +561,12 @@ export interface PvFilterPanelProps {
|
|
|
542
561
|
*/
|
|
543
562
|
enableFilterSearch?: boolean;
|
|
544
563
|
enableFocusView?: boolean;
|
|
564
|
+
/**
|
|
565
|
+
* Filters applied outside this panel (e.g. a search bar's partial match), shown at the top of the
|
|
566
|
+
* Applied tab. They count toward the applied badge and clear all, but are never written to the
|
|
567
|
+
* filter model - clearing one emits `remove-external-filter` for the owner to handle.
|
|
568
|
+
*/
|
|
569
|
+
externalFilters?: PvFilterPanelExternalFilterGroup[];
|
|
545
570
|
/** @deprecated Prefer filterStore/filterOptionsHandler. Whether more value-filter options can be loaded, keyed by column key (`colId` when present, otherwise `field`). */
|
|
546
571
|
filterHasMoreMap?: Record<string, boolean | undefined>;
|
|
547
572
|
/** @deprecated Prefer filterStore/filterOptionsHandler. Initial/options loading state keyed by column key (`colId` when present, otherwise `field`). */
|
|
@@ -8,6 +8,10 @@ export interface PvPopoverProps {
|
|
|
8
8
|
cssCustomProperties?: CSSProperties;
|
|
9
9
|
/** When true, renders the content inside a `<ul>` list element. */
|
|
10
10
|
isList?: boolean;
|
|
11
|
+
/** id applied to the inner list element, so a trigger can reference it via aria-controls. */
|
|
12
|
+
listId?: string;
|
|
13
|
+
/** ARIA role for the inner list element. Defaults to `list`. */
|
|
14
|
+
listRole?: string;
|
|
11
15
|
/** When true and isList is true, enables drag-and-drop reordering of list items. */
|
|
12
16
|
isSortable?: boolean;
|
|
13
17
|
}
|
|
@@ -21,13 +25,17 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvPopoverProps,
|
|
|
21
25
|
cssCustomProperties: CSSProperties;
|
|
22
26
|
alignment: "right" | "top" | "top right";
|
|
23
27
|
isList: boolean;
|
|
28
|
+
listId: string;
|
|
29
|
+
listRole: string;
|
|
24
30
|
isSortable: boolean;
|
|
25
31
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
26
32
|
popoverRoot: HTMLDivElement;
|
|
27
33
|
popoverList: HTMLUListElement;
|
|
28
34
|
}, HTMLDivElement>, {
|
|
35
|
+
header?(_: {}): any;
|
|
29
36
|
default?(_: {}): any;
|
|
30
37
|
default?(_: {}): any;
|
|
38
|
+
footer?(_: {}): any;
|
|
31
39
|
}>;
|
|
32
40
|
export default _default;
|
|
33
41
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts
CHANGED
|
@@ -51,7 +51,21 @@ type __VLS_PublicProps = {
|
|
|
51
51
|
"query": QueryBuilderOutput | null;
|
|
52
52
|
"options"?: QueryBuilderSuggestionMenuOption[];
|
|
53
53
|
} & __VLS_Props;
|
|
54
|
-
declare
|
|
54
|
+
declare function __VLS_template(): {
|
|
55
|
+
attrs: Partial<{}>;
|
|
56
|
+
slots: {
|
|
57
|
+
header?(_: {}): any;
|
|
58
|
+
footer?(_: {}): any;
|
|
59
|
+
empty?(_: {}): any;
|
|
60
|
+
};
|
|
61
|
+
refs: {
|
|
62
|
+
'query-builder-input': HTMLDivElement;
|
|
63
|
+
'search-input': HTMLInputElement;
|
|
64
|
+
};
|
|
65
|
+
rootEl: HTMLDivElement;
|
|
66
|
+
};
|
|
67
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
68
|
+
declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
55
69
|
"update:options": (value: QueryBuilderSuggestionMenuOption[]) => any;
|
|
56
70
|
"update:searchText": (value: string) => any;
|
|
57
71
|
"update:query": (value: QueryBuilderOutput | null) => any;
|
|
@@ -74,4 +88,10 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
|
|
|
74
88
|
'query-builder-input': HTMLDivElement;
|
|
75
89
|
'search-input': HTMLInputElement;
|
|
76
90
|
}, HTMLDivElement>;
|
|
91
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
77
92
|
export default _default;
|
|
93
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
94
|
+
new (): {
|
|
95
|
+
$slots: S;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
@@ -10,7 +10,7 @@ export interface QueryTerm {
|
|
|
10
10
|
exactMatch?: boolean;
|
|
11
11
|
queryText?: string;
|
|
12
12
|
}
|
|
13
|
-
export interface QueryBuilderSuggestionMenuOption extends MenuOption {
|
|
13
|
+
export interface QueryBuilderSuggestionMenuOption extends MenuOption<QueryTerm> {
|
|
14
14
|
queryTerm?: QueryTerm;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
@@ -49,6 +49,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvDropdownProps
|
|
|
49
49
|
readonly cssCustomListProperties?: CSSProperties | undefined;
|
|
50
50
|
readonly cssCustomProperties?: CSSProperties | undefined;
|
|
51
51
|
readonly isList?: boolean | undefined;
|
|
52
|
+
readonly listId?: string | undefined;
|
|
53
|
+
readonly listRole?: string | undefined;
|
|
52
54
|
readonly isSortable?: boolean | undefined;
|
|
53
55
|
readonly "onList-order-updated"?: ((value: string[]) => any) | undefined;
|
|
54
56
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -77,6 +79,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvDropdownProps
|
|
|
77
79
|
cssCustomProperties: CSSProperties;
|
|
78
80
|
alignment: "top" | "right" | "top right";
|
|
79
81
|
isList: boolean;
|
|
82
|
+
listId: string;
|
|
83
|
+
listRole: string;
|
|
80
84
|
isSortable: boolean;
|
|
81
85
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
82
86
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -102,15 +106,19 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvDropdownProps
|
|
|
102
106
|
cssCustomProperties: CSSProperties;
|
|
103
107
|
alignment: "top" | "right" | "top right";
|
|
104
108
|
isList: boolean;
|
|
109
|
+
listId: string;
|
|
110
|
+
listRole: string;
|
|
105
111
|
isSortable: boolean;
|
|
106
112
|
}> & Omit<Readonly< PvPopoverProps> & Readonly<{
|
|
107
113
|
"onList-order-updated"?: ((value: string[]) => any) | undefined;
|
|
108
|
-
}>, "popoverRoot" | ("cssCustomProperties" | "alignment" | "isList" | "isSortable")> & {
|
|
114
|
+
}>, "popoverRoot" | ("cssCustomProperties" | "alignment" | "isList" | "listId" | "listRole" | "isSortable")> & {
|
|
109
115
|
popoverRoot: HTMLElement | null;
|
|
110
116
|
} & {} & ComponentCustomProperties & {} & {
|
|
111
117
|
$slots: {
|
|
118
|
+
header?(_: {}): any;
|
|
112
119
|
default?(_: {}): any;
|
|
113
120
|
default?(_: {}): any;
|
|
121
|
+
footer?(_: {}): any;
|
|
114
122
|
};
|
|
115
123
|
}) | null;
|
|
116
124
|
}, HTMLDivElement>, {
|
|
@@ -23,6 +23,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
|
|
|
23
23
|
"controlled-change": (filterKey: string, values: string[], colDef: PvFilterPanelColDef) => any;
|
|
24
24
|
"filter-change": (event: PvFilterPanelFilterChangeEvent) => any;
|
|
25
25
|
"focus-change": (field: string, value: string, option: PvFilterPanelOption) => any;
|
|
26
|
+
"remove-external-filter": (key: string, value: string) => any;
|
|
26
27
|
"handle-settings-icon": (field: string, colDef: PvFilterPanelColDef) => any;
|
|
27
28
|
"open-change": (field: string, open: boolean, colDef: PvFilterPanelColDef) => any;
|
|
28
29
|
"search-change": (field: string, query: string, colDef: PvFilterPanelColDef) => any;
|
|
@@ -37,6 +38,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
|
|
|
37
38
|
"onControlled-change"?: ((filterKey: string, values: string[], colDef: PvFilterPanelColDef) => any) | undefined;
|
|
38
39
|
"onFilter-change"?: ((event: PvFilterPanelFilterChangeEvent) => any) | undefined;
|
|
39
40
|
"onFocus-change"?: ((field: string, value: string, option: PvFilterPanelOption) => any) | undefined;
|
|
41
|
+
"onRemove-external-filter"?: ((key: string, value: string) => any) | undefined;
|
|
40
42
|
"onHandle-settings-icon"?: ((field: string, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
41
43
|
"onOpen-change"?: ((field: string, open: boolean, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
42
44
|
"onSearch-change"?: ((field: string, query: string, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PvFilterPanelFilterModel, PvFilterPanelProps, PvFilterPanelColDef, PvFilterPanelFilterChangeEvent, PvFilterPanelOption, PvFilterPanelSuggestion } from './types';
|
|
1
|
+
import { PvFilterPanelFilterModel, PvFilterPanelProps, PvFilterPanelColDef, PvFilterPanelFilterChangeEvent, PvFilterPanelOption, PvFilterPanelSuggestion, PvFilterPanelExternalFilterGroup } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
type __VLS_Props = PvFilterPanelProps;
|
|
4
4
|
type __VLS_PublicProps = {
|
|
@@ -22,6 +22,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
|
|
|
22
22
|
"controlled-change": (filterKey: string, values: string[], colDef: PvFilterPanelColDef) => any;
|
|
23
23
|
"filter-change": (event: PvFilterPanelFilterChangeEvent) => any;
|
|
24
24
|
"focus-change": (field: string, value: string, option: PvFilterPanelOption) => any;
|
|
25
|
+
"remove-external-filter": (key: string, value: string) => any;
|
|
25
26
|
"handle-settings-icon": (field: string, colDef: PvFilterPanelColDef) => any;
|
|
26
27
|
"open-change": (field: string, open: boolean, colDef: PvFilterPanelColDef) => any;
|
|
27
28
|
"search-change": (field: string, query: string, colDef: PvFilterPanelColDef) => any;
|
|
@@ -36,6 +37,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
|
|
|
36
37
|
"onControlled-change"?: ((filterKey: string, values: string[], colDef: PvFilterPanelColDef) => any) | undefined;
|
|
37
38
|
"onFilter-change"?: ((event: PvFilterPanelFilterChangeEvent) => any) | undefined;
|
|
38
39
|
"onFocus-change"?: ((field: string, value: string, option: PvFilterPanelOption) => any) | undefined;
|
|
40
|
+
"onRemove-external-filter"?: ((key: string, value: string) => any) | undefined;
|
|
39
41
|
"onHandle-settings-icon"?: ((field: string, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
40
42
|
"onOpen-change"?: ((field: string, open: boolean, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
41
43
|
"onSearch-change"?: ((field: string, query: string, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
@@ -72,6 +74,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
|
|
|
72
74
|
clearAllLabel: string;
|
|
73
75
|
disableWhileLoading: boolean;
|
|
74
76
|
enableFilterSearch: boolean;
|
|
77
|
+
externalFilters: PvFilterPanelExternalFilterGroup[];
|
|
75
78
|
filterSearchPlaceholder: string;
|
|
76
79
|
hideCollapseButton: boolean;
|
|
77
80
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { PvFilterPanelAppliedFiltersSectionProps, PvFilterPanelFilterType, PvFilterPanelAppliedGroup } from './types';
|
|
1
|
+
import { PvFilterPanelAppliedFiltersSectionProps, PvFilterPanelExternalFilterGroup, PvFilterPanelFilterType, PvFilterPanelAppliedGroup } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<PvFilterPanelAppliedFiltersSectionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
4
|
"remove-filter": (filterKey: string, value: string, type?: PvFilterPanelFilterType | undefined) => any;
|
|
5
|
+
"remove-external-filter": (key: string, value: string) => any;
|
|
5
6
|
}, string, PublicProps, Readonly<PvFilterPanelAppliedFiltersSectionProps> & Readonly<{
|
|
6
7
|
"onRemove-filter"?: ((filterKey: string, value: string, type?: PvFilterPanelFilterType | undefined) => any) | undefined;
|
|
8
|
+
"onRemove-external-filter"?: ((key: string, value: string) => any) | undefined;
|
|
7
9
|
}>, {
|
|
8
10
|
readOnly: boolean;
|
|
11
|
+
externalFilters: PvFilterPanelExternalFilterGroup[];
|
|
9
12
|
appliedCount: number;
|
|
10
13
|
appliedGroups: PvFilterPanelAppliedGroup[];
|
|
11
14
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
@@ -289,6 +289,21 @@ export interface PvFilterPanelAppliedGroup {
|
|
|
289
289
|
label: string;
|
|
290
290
|
values: PvFilterPanelAppliedValue[];
|
|
291
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* A filter that is applied outside the panel's own controls - a table search bar's partial match, a
|
|
294
|
+
* saved view, a URL parameter - surfaced at the top of the Applied tab so every active narrowing is
|
|
295
|
+
* visible in one place. The panel only displays these: it never writes them to the filter model, and
|
|
296
|
+
* removing one is reported back through `remove-external-filter` for the owner to act on.
|
|
297
|
+
*/
|
|
298
|
+
export interface PvFilterPanelExternalFilterGroup {
|
|
299
|
+
/** Stable key echoed back with removals. */
|
|
300
|
+
key: string;
|
|
301
|
+
/** Heading shown above the group's tags. */
|
|
302
|
+
label: string;
|
|
303
|
+
/** When false, tags render without a clear button and clear-all leaves them alone. Defaults to true. */
|
|
304
|
+
removable?: boolean;
|
|
305
|
+
values: PvFilterPanelAppliedValue[];
|
|
306
|
+
}
|
|
292
307
|
export type PvFilterPanelControlChange = {
|
|
293
308
|
checked: boolean;
|
|
294
309
|
field?: string;
|
|
@@ -468,6 +483,8 @@ export interface PvFilterPanelAccordionProps {
|
|
|
468
483
|
export interface PvFilterPanelAppliedFiltersSectionProps {
|
|
469
484
|
appliedCount?: number;
|
|
470
485
|
appliedGroups?: PvFilterPanelAppliedGroup[];
|
|
486
|
+
/** Filters applied outside the panel, rendered above the panel's own applied groups. */
|
|
487
|
+
externalFilters?: PvFilterPanelExternalFilterGroup[];
|
|
471
488
|
readOnly?: boolean;
|
|
472
489
|
}
|
|
473
490
|
export interface PvFilterPanelCategoryButtonRowProps {
|
|
@@ -506,6 +523,8 @@ export type PvFilterPanelEmits = {
|
|
|
506
523
|
"facet-change": [field: string, facets: Record<string, string[]>, colDef: PvFilterPanelColDef];
|
|
507
524
|
"filter-change": [event: PvFilterPanelFilterChangeEvent];
|
|
508
525
|
"focus-change": [field: string, value: string, option: PvFilterPanelOption];
|
|
526
|
+
/** Emitted when an external filter tag is cleared, including via clear all. */
|
|
527
|
+
"remove-external-filter": [key: string, value: string];
|
|
509
528
|
"handle-settings-icon": [field: string, colDef: PvFilterPanelColDef];
|
|
510
529
|
"load-more": [field: string, colDef: PvFilterPanelColDef, query: string, parentId?: string];
|
|
511
530
|
"open-change": [field: string, open: boolean, colDef: PvFilterPanelColDef];
|
|
@@ -542,6 +561,12 @@ export interface PvFilterPanelProps {
|
|
|
542
561
|
*/
|
|
543
562
|
enableFilterSearch?: boolean;
|
|
544
563
|
enableFocusView?: boolean;
|
|
564
|
+
/**
|
|
565
|
+
* Filters applied outside this panel (e.g. a search bar's partial match), shown at the top of the
|
|
566
|
+
* Applied tab. They count toward the applied badge and clear all, but are never written to the
|
|
567
|
+
* filter model - clearing one emits `remove-external-filter` for the owner to handle.
|
|
568
|
+
*/
|
|
569
|
+
externalFilters?: PvFilterPanelExternalFilterGroup[];
|
|
545
570
|
/** @deprecated Prefer filterStore/filterOptionsHandler. Whether more value-filter options can be loaded, keyed by column key (`colId` when present, otherwise `field`). */
|
|
546
571
|
filterHasMoreMap?: Record<string, boolean | undefined>;
|
|
547
572
|
/** @deprecated Prefer filterStore/filterOptionsHandler. Initial/options loading state keyed by column key (`colId` when present, otherwise `field`). */
|
|
@@ -8,6 +8,10 @@ export interface PvPopoverProps {
|
|
|
8
8
|
cssCustomProperties?: CSSProperties;
|
|
9
9
|
/** When true, renders the content inside a `<ul>` list element. */
|
|
10
10
|
isList?: boolean;
|
|
11
|
+
/** id applied to the inner list element, so a trigger can reference it via aria-controls. */
|
|
12
|
+
listId?: string;
|
|
13
|
+
/** ARIA role for the inner list element. Defaults to `list`. */
|
|
14
|
+
listRole?: string;
|
|
11
15
|
/** When true and isList is true, enables drag-and-drop reordering of list items. */
|
|
12
16
|
isSortable?: boolean;
|
|
13
17
|
}
|
|
@@ -21,13 +25,17 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvPopoverProps,
|
|
|
21
25
|
cssCustomProperties: CSSProperties;
|
|
22
26
|
alignment: "top" | "right" | "top right";
|
|
23
27
|
isList: boolean;
|
|
28
|
+
listId: string;
|
|
29
|
+
listRole: string;
|
|
24
30
|
isSortable: boolean;
|
|
25
31
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
26
32
|
popoverRoot: HTMLDivElement;
|
|
27
33
|
popoverList: HTMLUListElement;
|
|
28
34
|
}, HTMLDivElement>, {
|
|
35
|
+
header?(_: {}): any;
|
|
29
36
|
default?(_: {}): any;
|
|
30
37
|
default?(_: {}): any;
|
|
38
|
+
footer?(_: {}): any;
|
|
31
39
|
}>;
|
|
32
40
|
export default _default;
|
|
33
41
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/pv-components/dist/vue/base/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts
CHANGED
|
@@ -51,7 +51,21 @@ type __VLS_PublicProps = {
|
|
|
51
51
|
"query": QueryBuilderOutput | null;
|
|
52
52
|
"options"?: QueryBuilderSuggestionMenuOption[];
|
|
53
53
|
} & __VLS_Props;
|
|
54
|
-
declare
|
|
54
|
+
declare function __VLS_template(): {
|
|
55
|
+
attrs: Partial<{}>;
|
|
56
|
+
slots: {
|
|
57
|
+
header?(_: {}): any;
|
|
58
|
+
footer?(_: {}): any;
|
|
59
|
+
empty?(_: {}): any;
|
|
60
|
+
};
|
|
61
|
+
refs: {
|
|
62
|
+
'query-builder-input': HTMLDivElement;
|
|
63
|
+
'search-input': HTMLInputElement;
|
|
64
|
+
};
|
|
65
|
+
rootEl: HTMLDivElement;
|
|
66
|
+
};
|
|
67
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
68
|
+
declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
55
69
|
"update:options": (value: QueryBuilderSuggestionMenuOption[]) => any;
|
|
56
70
|
"update:searchText": (value: string) => any;
|
|
57
71
|
"update:query": (value: QueryBuilderOutput | null) => any;
|
|
@@ -74,4 +88,10 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
|
|
|
74
88
|
'query-builder-input': HTMLDivElement;
|
|
75
89
|
'search-input': HTMLInputElement;
|
|
76
90
|
}, HTMLDivElement>;
|
|
91
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
77
92
|
export default _default;
|
|
93
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
94
|
+
new (): {
|
|
95
|
+
$slots: S;
|
|
96
|
+
};
|
|
97
|
+
};
|
package/pv-components/dist/vue/base/components/base/PvQueryBuilderInput/useQueryBuilder.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface QueryTerm {
|
|
|
10
10
|
exactMatch?: boolean;
|
|
11
11
|
queryText?: string;
|
|
12
12
|
}
|
|
13
|
-
export interface QueryBuilderSuggestionMenuOption extends MenuOption {
|
|
13
|
+
export interface QueryBuilderSuggestionMenuOption extends MenuOption<QueryTerm> {
|
|
14
14
|
queryTerm?: QueryTerm;
|
|
15
15
|
}
|
|
16
16
|
/**
|