@turquoisehealth/pit-viper 2.216.0 → 2.216.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 +5 -1
- package/pv-components/dist/stats/vue/ai/stats.html +4950 -0
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-confirmation-stats.html +4950 -0
- package/pv-components/dist/stats/web/pv-prompt-input-stats.html +4950 -0
- package/pv-components/dist/stats/web/pv-question-stats.html +4950 -0
- package/pv-components/dist/stats/web/pv-reasoning-stats.html +4950 -0
- package/pv-components/dist/stats/web/pv-tool-stats.html +4950 -0
- package/pv-components/dist/vue/ai/components/ai/PvConfirmation/PvConfirmation.vue.d.ts +30 -0
- package/pv-components/dist/vue/ai/components/ai/PvConfirmation/types.d.ts +21 -0
- package/pv-components/dist/vue/ai/components/ai/PvPromptInput/PvPromptInput.vue.d.ts +46 -0
- package/pv-components/dist/vue/ai/components/ai/PvPromptInput/types.d.ts +20 -0
- package/pv-components/dist/vue/ai/components/ai/PvQuestion/PvQuestion.vue.d.ts +35 -0
- package/pv-components/dist/vue/ai/components/ai/PvQuestion/types.d.ts +24 -0
- package/pv-components/dist/vue/ai/components/ai/PvReasoning/PvReasoning.vue.d.ts +33 -0
- package/pv-components/dist/vue/ai/components/ai/PvReasoning/types.d.ts +14 -0
- package/pv-components/dist/vue/ai/components/ai/PvTool/PvTool.vue.d.ts +35 -0
- package/pv-components/dist/vue/ai/components/ai/PvTool/types.d.ts +15 -0
- package/pv-components/dist/vue/ai/components/ai/index.d.ts +15 -0
- package/pv-components/dist/vue/ai/components/ai/toolLifecycle.d.ts +21 -0
- package/pv-components/dist/vue/ai/components/ai/useStickToBottom.d.ts +19 -0
- package/pv-components/dist/vue/ai/components/base/PvAccordion/PvAccordion.vue.d.ts +60 -0
- package/pv-components/dist/vue/ai/components/base/PvAccordion/types.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvActionBar/PvActionBar.vue.d.ts +36 -0
- package/pv-components/dist/vue/ai/components/base/PvActionBar/types.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvActionButton/PvActionButton.vue.d.ts +22 -0
- package/pv-components/dist/vue/ai/components/base/PvAiButton/PvAiButton.vue.d.ts +20 -0
- package/pv-components/dist/vue/ai/components/base/PvAiButton/types.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvAvatar/PvAvatar.vue.d.ts +7 -0
- package/pv-components/dist/vue/ai/components/base/PvAvatar/types.d.ts +20 -0
- package/pv-components/dist/vue/ai/components/base/PvAvatarGroup/PvAvatarGroup.vue.d.ts +12 -0
- package/pv-components/dist/vue/ai/components/base/PvAvatarGroup/types.d.ts +16 -0
- package/pv-components/dist/vue/ai/components/base/PvBanner/PvBanner.vue.d.ts +35 -0
- package/pv-components/dist/vue/ai/components/base/PvBanner/types.d.ts +11 -0
- package/pv-components/dist/vue/ai/components/base/PvBreadcrumbs/PvBreadcrumbs.vue.d.ts +8 -0
- package/pv-components/dist/vue/ai/components/base/PvBreadcrumbs/types.d.ts +6 -0
- package/pv-components/dist/vue/ai/components/base/PvButton/PvButton.vue.d.ts +10 -0
- package/pv-components/dist/vue/ai/components/base/PvButton/PvButtonWithTooltip.vue.d.ts +8 -0
- package/pv-components/dist/vue/ai/components/base/PvButton/helpers.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvButton/types.d.ts +38 -0
- package/pv-components/dist/vue/ai/components/base/PvCard/PvCard.vue.d.ts +30 -0
- package/pv-components/dist/vue/ai/components/base/PvCard/types.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvCheckbox/PvCheckbox.vue.d.ts +19 -0
- package/pv-components/dist/vue/ai/components/base/PvCompanyLabel/PvCompanyLabel.vue.d.ts +14 -0
- package/pv-components/dist/vue/ai/components/base/PvCompanyLabel/types.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvCompanyLogo/PvCompanyLogo.vue.d.ts +17 -0
- package/pv-components/dist/vue/ai/components/base/PvCompanyLogo/types.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvCompanyTag/PvCompanyTag.vue.d.ts +31 -0
- package/pv-components/dist/vue/ai/components/base/PvComponentsConfig/primeVue.config.d.ts +14 -0
- package/pv-components/dist/vue/ai/components/base/PvComponentsConfig/usePvComponents.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvCounterBadge/PvCounterBadge.vue.d.ts +21 -0
- package/pv-components/dist/vue/ai/components/base/PvCounterBadge/types.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvDatePicker/PvDatePicker.vue.d.ts +103 -0
- package/pv-components/dist/vue/ai/components/base/PvDateTime/PvDateTime.vue.d.ts +18 -0
- package/pv-components/dist/vue/ai/components/base/PvDateTime/useDateTime.d.ts +9 -0
- package/pv-components/dist/vue/ai/components/base/PvDistributionBar/PvDistributionBar.vue.d.ts +7 -0
- package/pv-components/dist/vue/ai/components/base/PvDrawer/PvDrawer.vue.d.ts +54 -0
- package/pv-components/dist/vue/ai/components/base/PvDropdown/PvDropdown.vue.d.ts +125 -0
- package/pv-components/dist/vue/ai/components/base/PvEmptyErrorState/PvEmptyErrorState.vue.d.ts +22 -0
- package/pv-components/dist/vue/ai/components/base/PvEmptyErrorState/types.d.ts +11 -0
- package/pv-components/dist/vue/ai/components/base/PvExpandableContent/PvExpandableContent.vue.d.ts +34 -0
- package/pv-components/dist/vue/ai/components/base/PvExpandableContent/types.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterModal/PvFilterModal.vue.d.ts +80 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterModal/PvFilterModalSelectItem.vue.d.ts +33 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterModal/types.d.ts +11 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +78 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelAccordion.vue.d.ts +18 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelAppliedFiltersSection.vue.d.ts +12 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelCategoryButtonRow.vue.d.ts +14 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelOptionRow.vue.d.ts +35 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/advancedFilterModel.d.ts +26 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/aggregateFilterModel.d.ts +56 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/filterOptionDisplay.d.ts +28 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/filterOptionValue.d.ts +15 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +525 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/usePvFilterPanel.d.ts +30 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/usePvFilterStore.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvGhostInput/PvGhostInput.vue.d.ts +45 -0
- package/pv-components/dist/vue/ai/components/base/PvGhostInput/types.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvHeader/PvHeader.vue.d.ts +36 -0
- package/pv-components/dist/vue/ai/components/base/PvHorizontalScroller/PvHorizontalScroller.vue.d.ts +36 -0
- package/pv-components/dist/vue/ai/components/base/PvHorizontalScroller/types.d.ts +21 -0
- package/pv-components/dist/vue/ai/components/base/PvHoverActionMenu/PvHoverActionMenu.vue.d.ts +42 -0
- package/pv-components/dist/vue/ai/components/base/PvHoverActionMenu/types.d.ts +15 -0
- package/pv-components/dist/vue/ai/components/base/PvIcon/PvIcon.vue.d.ts +14 -0
- package/pv-components/dist/vue/ai/components/base/PvInput/PvInput.vue.d.ts +59 -0
- package/pv-components/dist/vue/ai/components/base/PvInput/types.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvInsightCard/PvInsightCard.vue.d.ts +29 -0
- package/pv-components/dist/vue/ai/components/base/PvMenu/PvMenu.vue.d.ts +57 -0
- package/pv-components/dist/vue/ai/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +26 -0
- package/pv-components/dist/vue/ai/components/base/PvMenu/PvMenuEmptyState.vue.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvMenu/cascadeUtils.d.ts +42 -0
- package/pv-components/dist/vue/ai/components/base/PvMenu/items/PvMenuBaseItem.vue.d.ts +11 -0
- package/pv-components/dist/vue/ai/components/base/PvMenu/items/PvMenuItem.vue.d.ts +26 -0
- package/pv-components/dist/vue/ai/components/base/PvMenu/items/PvMenuItemAction.vue.d.ts +9 -0
- package/pv-components/dist/vue/ai/components/base/PvMenu/items/PvMenuItemVariant.vue.d.ts +22 -0
- package/pv-components/dist/vue/ai/components/base/PvMenu/symbols.d.ts +11 -0
- package/pv-components/dist/vue/ai/components/base/PvMenu/types.d.ts +31 -0
- package/pv-components/dist/vue/ai/components/base/PvMenu/useMenuPosition.d.ts +66 -0
- package/pv-components/dist/vue/ai/components/base/PvModal/PvModal.vue.d.ts +31 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +170 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/mocks.d.ts +20 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/types.d.ts +129 -0
- package/pv-components/dist/vue/ai/components/base/PvPagination/PvPagination.vue.d.ts +24 -0
- package/pv-components/dist/vue/ai/components/base/PvPagination/types.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvPagination/usePagination.d.ts +12 -0
- package/pv-components/dist/vue/ai/components/base/PvPill/PvPill.vue.d.ts +29 -0
- package/pv-components/dist/vue/ai/components/base/PvPill/types.d.ts +4 -0
- package/pv-components/dist/vue/ai/components/base/PvPopover/PvPopover.vue.d.ts +37 -0
- package/pv-components/dist/vue/ai/components/base/PvPopoverMenu/PvPopoverMenu.vue.d.ts +28 -0
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +39 -0
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/types.d.ts +36 -0
- package/pv-components/dist/vue/ai/components/base/PvProgressBar/PvProgressBar.vue.d.ts +15 -0
- package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts +73 -0
- package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/QueryBuilderMenuOptionRenderer.vue.d.ts +6 -0
- package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/QueryFormatter.vue.d.ts +20 -0
- package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/useQueryBuilder.d.ts +44 -0
- package/pv-components/dist/vue/ai/components/base/PvRadioGroup/PvRadioGroup.vue.d.ts +30 -0
- package/pv-components/dist/vue/ai/components/base/PvRadioGroup/types.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvRange/PvRange.vue.d.ts +36 -0
- package/pv-components/dist/vue/ai/components/base/PvRange/types.d.ts +44 -0
- package/pv-components/dist/vue/ai/components/base/PvRating/PvRating.vue.d.ts +15 -0
- package/pv-components/dist/vue/ai/components/base/PvRating/types.d.ts +4 -0
- package/pv-components/dist/vue/ai/components/base/PvReleaseBadge/PvReleaseBadge.vue.d.ts +10 -0
- package/pv-components/dist/vue/ai/components/base/PvReleaseBadge/types.d.ts +1 -0
- package/pv-components/dist/vue/ai/components/base/PvSearchInput/PvSearchInput.vue.d.ts +33 -0
- package/pv-components/dist/vue/ai/components/base/PvSegmentedControl/PvSegmentedControl.vue.d.ts +23 -0
- package/pv-components/dist/vue/ai/components/base/PvSegmentedControl/types.d.ts +18 -0
- package/pv-components/dist/vue/ai/components/base/PvSelectButton/PvSelectButton.vue.d.ts +85 -0
- package/pv-components/dist/vue/ai/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +14 -0
- package/pv-components/dist/vue/ai/components/base/PvSelectButton/PvSelectButtonTrigger/types.d.ts +27 -0
- package/pv-components/dist/vue/ai/components/base/PvSelectButton/mocks.d.ts +21 -0
- package/pv-components/dist/vue/ai/components/base/PvSelectButton/types.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvSelectableCard/PvSelectableCard.vue.d.ts +30 -0
- package/pv-components/dist/vue/ai/components/base/PvSidebar/PvSidebar.vue.d.ts +38 -0
- package/pv-components/dist/vue/ai/components/base/PvSkeleton/PvSkeleton.vue.d.ts +17 -0
- package/pv-components/dist/vue/ai/components/base/PvSkeleton/types.d.ts +8 -0
- package/pv-components/dist/vue/ai/components/base/PvSpinner/PvSpinner.vue.d.ts +13 -0
- package/pv-components/dist/vue/ai/components/base/PvSpinner/types.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvSplitButton/PvSplitButton.vue.d.ts +27 -0
- package/pv-components/dist/vue/ai/components/base/PvSplitButton/types.d.ts +12 -0
- package/pv-components/dist/vue/ai/components/base/PvSprite/PvSprite.vue.d.ts +9 -0
- package/pv-components/dist/vue/ai/components/base/PvStepper/PvStepper.vue.d.ts +16 -0
- package/pv-components/dist/vue/ai/components/base/PvSuggestionTag/PvSuggestionTag.vue.d.ts +37 -0
- package/pv-components/dist/vue/ai/components/base/PvSwitch/PvSwitch.vue.d.ts +34 -0
- package/pv-components/dist/vue/ai/components/base/PvSwitch/types.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvTabList/PvTabList.vue.d.ts +12 -0
- package/pv-components/dist/vue/ai/components/base/PvTableOfContents/PvTableOfContents.vue.d.ts +19 -0
- package/pv-components/dist/vue/ai/components/base/PvTableOfContents/types.d.ts +6 -0
- package/pv-components/dist/vue/ai/components/base/PvTabs/PvTabs.vue.d.ts +20 -0
- package/pv-components/dist/vue/ai/components/base/PvTabs/types.d.ts +10 -0
- package/pv-components/dist/vue/ai/components/base/PvTag/PvTag.vue.d.ts +53 -0
- package/pv-components/dist/vue/ai/components/base/PvTag/types.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvTextArea/PvTextArea.vue.d.ts +51 -0
- package/pv-components/dist/vue/ai/components/base/PvTextArea/types.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvToast/PvToast.vue.d.ts +33 -0
- package/pv-components/dist/vue/ai/components/base/PvToast/types.d.ts +1 -0
- package/pv-components/dist/vue/ai/components/base/PvToggleButton/PvToggleButton.vue.d.ts +48 -0
- package/pv-components/dist/vue/ai/components/base/PvToggleButton/types.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvToggleGroup/PvToggleGroup.vue.d.ts +12 -0
- package/pv-components/dist/vue/ai/components/base/PvToggleGroup/types.d.ts +12 -0
- package/pv-components/dist/vue/ai/components/base/PvTooltip/PvTooltip.vue.d.ts +41 -0
- package/pv-components/dist/vue/ai/components/base/PvTooltip/types.d.ts +4 -0
- package/pv-components/dist/vue/ai/components/base/PvTooltipV2/PvTooltipV2.vue.d.ts +28 -0
- package/pv-components/dist/vue/ai/components/base/PvTooltipV2/types.d.ts +14 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/PvButtonTreeItem.vue.d.ts +36 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/PvCheckboxTreeItem.vue.d.ts +36 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/PvSimpleItemTree.vue.d.ts +7 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/PvSimpleNestedTree.vue.d.ts +31 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/PvSimpleNestedTreeItem.vue.d.ts +35 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/PvTree.vue.d.ts +31 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/PvTreeGroup.vue.d.ts +18 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/PvTreeItem.vue.d.ts +37 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/PvTreeReorderIcon.vue.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/composables/useDragAndDrop.d.ts +23 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/composables/useDragAndDropIndicator.d.ts +8 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/composables/useDraggingState.d.ts +40 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/composables/useHoverIcon.d.ts +6 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/composables/useTreeUpdate.d.ts +8 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/symbols.d.ts +12 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/types.d.ts +61 -0
- package/pv-components/dist/vue/ai/components/base/PvWidget/PvWidget.vue.d.ts +18 -0
- package/pv-components/dist/vue/ai/components/base/baseProps.d.ts +18 -0
- package/pv-components/dist/vue/ai/components/base/index.d.ts +92 -0
- package/pv-components/dist/vue/ai/components/layout/PvSidePanel/PvSidePanel.vue.d.ts +24 -0
- package/pv-components/dist/vue/ai/pv-components-ai.mjs +951 -0
- package/pv-components/dist/vue/ai/pv-components-ai.mjs.map +1 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +1 -3
- package/pv-components/dist/vue/visualizations/components/visualizations/index.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +13 -11
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-confirmation/pv-confirmation.js +6441 -0
- package/pv-components/dist/web/components/pv-prompt-input/pv-prompt-input.js +6541 -0
- package/pv-components/dist/web/components/pv-question/pv-question.js +6704 -0
- package/pv-components/dist/web/components/pv-reasoning/pv-reasoning.js +6418 -0
- package/pv-components/dist/web/components/pv-tool/pv-tool.js +6450 -0
- package/pv-components/dist/web/pv-components.iife.js +37 -37
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { PvFilterPanelFilterModel, PvFilterPanelOption, PvFilterPanelColDef, PvFilterPanelFilterChangeEvent, PvFilterPanelSuggestion } from '../PvFilterPanel/types';
|
|
2
|
+
import { PvFilterModalProps } from './types';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
type __VLS_Props = PvFilterModalProps;
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
"filterModel"?: PvFilterPanelFilterModel;
|
|
7
|
+
"visible"?: boolean;
|
|
8
|
+
} & __VLS_Props;
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
trigger?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
19
|
+
cancel: () => any;
|
|
20
|
+
"load-more": (field: string, colDef: PvFilterPanelColDef, query: string, parentId?: string | undefined) => any;
|
|
21
|
+
apply: (filterModel: PvFilterPanelFilterModel) => any;
|
|
22
|
+
"controlled-change": (filterKey: string, values: string[], colDef: PvFilterPanelColDef) => any;
|
|
23
|
+
"filter-change": (event: PvFilterPanelFilterChangeEvent) => any;
|
|
24
|
+
"focus-change": (field: string, value: string, option: PvFilterPanelOption) => any;
|
|
25
|
+
"handle-settings-icon": (field: string, colDef: PvFilterPanelColDef) => any;
|
|
26
|
+
"open-change": (field: string, open: boolean, colDef: PvFilterPanelColDef) => any;
|
|
27
|
+
"search-change": (field: string, query: string, colDef: PvFilterPanelColDef) => any;
|
|
28
|
+
"suggestion-click": (suggestion: PvFilterPanelSuggestion) => any;
|
|
29
|
+
"update:filterModel": (value: PvFilterPanelFilterModel) => any;
|
|
30
|
+
"update:visible": (value: boolean) => any;
|
|
31
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
32
|
+
onCancel?: (() => any) | undefined;
|
|
33
|
+
"onLoad-more"?: ((field: string, colDef: PvFilterPanelColDef, query: string, parentId?: string | undefined) => any) | undefined;
|
|
34
|
+
onApply?: ((filterModel: PvFilterPanelFilterModel) => any) | undefined;
|
|
35
|
+
"onControlled-change"?: ((filterKey: string, values: string[], colDef: PvFilterPanelColDef) => any) | undefined;
|
|
36
|
+
"onFilter-change"?: ((event: PvFilterPanelFilterChangeEvent) => any) | undefined;
|
|
37
|
+
"onFocus-change"?: ((field: string, value: string, option: PvFilterPanelOption) => any) | undefined;
|
|
38
|
+
"onHandle-settings-icon"?: ((field: string, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
39
|
+
"onOpen-change"?: ((field: string, open: boolean, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
40
|
+
"onSearch-change"?: ((field: string, query: string, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
41
|
+
"onSuggestion-click"?: ((suggestion: PvFilterPanelSuggestion) => any) | undefined;
|
|
42
|
+
"onUpdate:filterModel"?: ((value: PvFilterPanelFilterModel) => any) | undefined;
|
|
43
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
44
|
+
}>, {
|
|
45
|
+
header: string;
|
|
46
|
+
ariaLabel: string;
|
|
47
|
+
maxWidth: string;
|
|
48
|
+
readOnly: boolean;
|
|
49
|
+
colDefs: PvFilterPanelColDef[];
|
|
50
|
+
controlledValues: Record<string, string[]>;
|
|
51
|
+
devMode: boolean;
|
|
52
|
+
displayPreferencesIcon: boolean;
|
|
53
|
+
enableFocusView: boolean;
|
|
54
|
+
filterHasMoreMap: Record<string, boolean | undefined>;
|
|
55
|
+
filterLoadingMap: Record<string, boolean | undefined>;
|
|
56
|
+
filterLoadingMoreMap: Record<string, boolean | undefined>;
|
|
57
|
+
filterOptions: Record<string, PvFilterPanelOption[]>;
|
|
58
|
+
filterSearchQueries: Record<string, string | undefined>;
|
|
59
|
+
filterSuggestions: PvFilterPanelSuggestion[];
|
|
60
|
+
focusableFields: string[];
|
|
61
|
+
focusedValues: Record<string, string[] | undefined>;
|
|
62
|
+
focusText: string;
|
|
63
|
+
rangeDebounceMs: number;
|
|
64
|
+
staged: boolean;
|
|
65
|
+
applyLabel: string;
|
|
66
|
+
autoHideRelatedFilterFields: boolean;
|
|
67
|
+
cancelLabel: string;
|
|
68
|
+
clearAllBody: string;
|
|
69
|
+
clearAllHeader: string;
|
|
70
|
+
clearAllLabel: string;
|
|
71
|
+
selectAllLabel: string;
|
|
72
|
+
clearSelectionLabel: string;
|
|
73
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
74
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
75
|
+
export default _default;
|
|
76
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
77
|
+
new (): {
|
|
78
|
+
$slots: S;
|
|
79
|
+
};
|
|
80
|
+
};
|
package/pv-components/dist/vue/ai/components/base/PvFilterModal/PvFilterModalSelectItem.vue.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
interface PvFilterModalSelectItem {
|
|
3
|
+
/** When true, applies fully rounded (pill) corners. */
|
|
4
|
+
rounded?: boolean;
|
|
5
|
+
/** When true, the toggle button is non-interactive and visually dimmed. */
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/** The value emitted when this toggle is selected (used with radio-style groups). */
|
|
8
|
+
value?: string;
|
|
9
|
+
/** Visible text label displayed inside the toggle. */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** HTML id for the underlying input element. Auto-generated from label when omitted. */
|
|
12
|
+
id?: string;
|
|
13
|
+
/** HTML name attribute, used to group radio-style toggles. */
|
|
14
|
+
name?: string;
|
|
15
|
+
/**
|
|
16
|
+
* When true, renders as a checkbox (can be deselected). When false, renders as a radio (stays selected).
|
|
17
|
+
*/
|
|
18
|
+
deselect?: boolean;
|
|
19
|
+
/** Optional counter on the right side of the button */
|
|
20
|
+
rightCounterBadge?: number;
|
|
21
|
+
}
|
|
22
|
+
type __VLS_Props = PvFilterModalSelectItem;
|
|
23
|
+
type __VLS_PublicProps = {
|
|
24
|
+
modelValue?: boolean | string;
|
|
25
|
+
} & __VLS_Props;
|
|
26
|
+
declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
27
|
+
"update:modelValue": (value: string | boolean) => any;
|
|
28
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((value: string | boolean) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
deselect: boolean;
|
|
32
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PvFilterPanelProps } from '../PvFilterPanel/types';
|
|
2
|
+
export interface PvFilterModalProps extends PvFilterPanelProps {
|
|
3
|
+
/** Header text shown in the modal title bar. */
|
|
4
|
+
header?: string;
|
|
5
|
+
/** Label for the per-category "select all" action in the options pane footer. */
|
|
6
|
+
selectAllLabel?: string;
|
|
7
|
+
/** Label for the per-category "clear" action in the options pane footer. */
|
|
8
|
+
clearSelectionLabel?: string;
|
|
9
|
+
/** Max width applied to the modal shell. */
|
|
10
|
+
maxWidth?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { PvFilterPanelFilterModel, PvFilterPanelProps, PvFilterPanelColDef, PvFilterPanelFilterChangeEvent, PvFilterPanelOption, PvFilterPanelSuggestion } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = PvFilterPanelProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
"filterModel"?: PvFilterPanelFilterModel;
|
|
6
|
+
"isCollapsed"?: boolean;
|
|
7
|
+
} & __VLS_Props;
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
suggestions?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
18
|
+
cancel: () => any;
|
|
19
|
+
"load-more": (field: string, colDef: PvFilterPanelColDef, query: string, parentId?: string | undefined) => any;
|
|
20
|
+
apply: (filterModel: PvFilterPanelFilterModel) => any;
|
|
21
|
+
"controlled-change": (filterKey: string, values: string[], colDef: PvFilterPanelColDef) => any;
|
|
22
|
+
"filter-change": (event: PvFilterPanelFilterChangeEvent) => any;
|
|
23
|
+
"focus-change": (field: string, value: string, option: PvFilterPanelOption) => any;
|
|
24
|
+
"handle-settings-icon": (field: string, colDef: PvFilterPanelColDef) => any;
|
|
25
|
+
"open-change": (field: string, open: boolean, colDef: PvFilterPanelColDef) => any;
|
|
26
|
+
"search-change": (field: string, query: string, colDef: PvFilterPanelColDef) => any;
|
|
27
|
+
"suggestion-click": (suggestion: PvFilterPanelSuggestion) => any;
|
|
28
|
+
"update:filterModel": (value: PvFilterPanelFilterModel) => any;
|
|
29
|
+
"update:isCollapsed": (value: boolean) => any;
|
|
30
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
31
|
+
onCancel?: (() => any) | undefined;
|
|
32
|
+
"onLoad-more"?: ((field: string, colDef: PvFilterPanelColDef, query: string, parentId?: string | undefined) => any) | undefined;
|
|
33
|
+
onApply?: ((filterModel: PvFilterPanelFilterModel) => any) | undefined;
|
|
34
|
+
"onControlled-change"?: ((filterKey: string, values: string[], colDef: PvFilterPanelColDef) => any) | undefined;
|
|
35
|
+
"onFilter-change"?: ((event: PvFilterPanelFilterChangeEvent) => any) | undefined;
|
|
36
|
+
"onFocus-change"?: ((field: string, value: string, option: PvFilterPanelOption) => any) | undefined;
|
|
37
|
+
"onHandle-settings-icon"?: ((field: string, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
38
|
+
"onOpen-change"?: ((field: string, open: boolean, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
39
|
+
"onSearch-change"?: ((field: string, query: string, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
40
|
+
"onSuggestion-click"?: ((suggestion: PvFilterPanelSuggestion) => any) | undefined;
|
|
41
|
+
"onUpdate:filterModel"?: ((value: PvFilterPanelFilterModel) => any) | undefined;
|
|
42
|
+
"onUpdate:isCollapsed"?: ((value: boolean) => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
ariaLabel: string;
|
|
45
|
+
width: string;
|
|
46
|
+
readOnly: boolean;
|
|
47
|
+
colDefs: PvFilterPanelColDef[];
|
|
48
|
+
controlledValues: Record<string, string[]>;
|
|
49
|
+
devMode: boolean;
|
|
50
|
+
displayPreferencesIcon: boolean;
|
|
51
|
+
enableFocusView: boolean;
|
|
52
|
+
filterHasMoreMap: Record<string, boolean | undefined>;
|
|
53
|
+
filterLoadingMap: Record<string, boolean | undefined>;
|
|
54
|
+
filterLoadingMoreMap: Record<string, boolean | undefined>;
|
|
55
|
+
filterOptions: Record<string, PvFilterPanelOption[]>;
|
|
56
|
+
filterSearchQueries: Record<string, string | undefined>;
|
|
57
|
+
filterSuggestions: PvFilterPanelSuggestion[];
|
|
58
|
+
focusableFields: string[];
|
|
59
|
+
focusedValues: Record<string, string[] | undefined>;
|
|
60
|
+
focusText: string;
|
|
61
|
+
rangeDebounceMs: number;
|
|
62
|
+
staged: boolean;
|
|
63
|
+
applyLabel: string;
|
|
64
|
+
autoHideRelatedFilterFields: boolean;
|
|
65
|
+
cancelLabel: string;
|
|
66
|
+
collapsedFilterDisplayLabel: string;
|
|
67
|
+
clearAllBody: string;
|
|
68
|
+
clearAllHeader: string;
|
|
69
|
+
clearAllLabel: string;
|
|
70
|
+
hideCollapseButton: boolean;
|
|
71
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
72
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
73
|
+
export default _default;
|
|
74
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
75
|
+
new (): {
|
|
76
|
+
$slots: S;
|
|
77
|
+
};
|
|
78
|
+
};
|
package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelAccordion.vue.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PvFilterPanelAccordionProps, PvFilterPanelControlChange, PvFilterPanelOption, PvFilterPanelColDef } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<PvFilterPanelAccordionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
|
+
"load-more": (query: string, parentId?: string | undefined) => any;
|
|
5
|
+
"filter-change": (change: PvFilterPanelControlChange) => any;
|
|
6
|
+
"focus-change": (field: string, value: string, option: PvFilterPanelOption) => any;
|
|
7
|
+
"handle-settings-icon": (field: string, colDef: PvFilterPanelColDef) => any;
|
|
8
|
+
"open-change": (open: boolean) => any;
|
|
9
|
+
"search-change": (query: string) => any;
|
|
10
|
+
}, string, PublicProps, Readonly<PvFilterPanelAccordionProps> & Readonly<{
|
|
11
|
+
"onLoad-more"?: ((query: string, parentId?: string | undefined) => any) | undefined;
|
|
12
|
+
"onFilter-change"?: ((change: PvFilterPanelControlChange) => any) | undefined;
|
|
13
|
+
"onFocus-change"?: ((field: string, value: string, option: PvFilterPanelOption) => any) | undefined;
|
|
14
|
+
"onHandle-settings-icon"?: ((field: string, colDef: PvFilterPanelColDef) => any) | undefined;
|
|
15
|
+
"onOpen-change"?: ((open: boolean) => any) | undefined;
|
|
16
|
+
"onSearch-change"?: ((query: string) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDetailsElement>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PvFilterPanelAppliedFiltersSectionProps, PvFilterPanelFilterType, PvFilterPanelAppliedGroup } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<PvFilterPanelAppliedFiltersSectionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
|
+
"remove-filter": (filterKey: string, value: string, type?: PvFilterPanelFilterType | undefined) => any;
|
|
5
|
+
}, string, PublicProps, Readonly<PvFilterPanelAppliedFiltersSectionProps> & Readonly<{
|
|
6
|
+
"onRemove-filter"?: ((filterKey: string, value: string, type?: PvFilterPanelFilterType | undefined) => any) | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
readOnly: boolean;
|
|
9
|
+
appliedCount: number;
|
|
10
|
+
appliedGroups: PvFilterPanelAppliedGroup[];
|
|
11
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PvFilterPanelCategory, PvFilterPanelCategoryButtonRowProps, PvFilterPanelResolvedFilter } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = PvFilterPanelCategoryButtonRowProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue?: PvFilterPanelCategory | null;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: string | null) => any;
|
|
9
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
filters: PvFilterPanelResolvedFilter[];
|
|
13
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelOptionRow.vue.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PvFilterPanelOptionRowProps, PvFilterPanelResultCount } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
'result-count'?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLLabelElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<PvFilterPanelOptionRowProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
13
|
+
"focus-value": (value: string) => any;
|
|
14
|
+
"toggle-value": (value: string, checked: boolean) => any;
|
|
15
|
+
}, string, PublicProps, Readonly<PvFilterPanelOptionRowProps> & Readonly<{
|
|
16
|
+
"onFocus-value"?: ((value: string) => any) | undefined;
|
|
17
|
+
"onToggle-value"?: ((value: string, checked: boolean) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
selected: boolean;
|
|
21
|
+
indeterminate: boolean;
|
|
22
|
+
focusText: string;
|
|
23
|
+
control: "checkbox" | "radio";
|
|
24
|
+
depth: number;
|
|
25
|
+
isFocused: boolean;
|
|
26
|
+
resultCount: PvFilterPanelResultCount | null;
|
|
27
|
+
showFocusAction: boolean;
|
|
28
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AdvancedFilterModel } from 'ag-grid-enterprise';
|
|
2
|
+
import { PvFilterPanelColDef, PvFilterPanelFilterModelType } from './types';
|
|
3
|
+
export interface PvFilterPanelRangeValue {
|
|
4
|
+
max: number | null;
|
|
5
|
+
min: number | null;
|
|
6
|
+
}
|
|
7
|
+
export type PvAdvancedFilterColumnType = "date" | "dateString" | "dateTime" | "dateTimeString" | "number" | "object" | "text";
|
|
8
|
+
export interface PvFilterPanelModelIndexEntry {
|
|
9
|
+
booleanValue: boolean | null;
|
|
10
|
+
existsValue: boolean;
|
|
11
|
+
rangeValue: PvFilterPanelRangeValue;
|
|
12
|
+
values: string[];
|
|
13
|
+
}
|
|
14
|
+
export type PvFilterPanelModelIndex = Map<string, PvFilterPanelModelIndexEntry>;
|
|
15
|
+
export declare const createFilterPanelModelIndex: (model: AdvancedFilterModel | null | undefined | unknown, modelType?: PvFilterPanelFilterModelType) => PvFilterPanelModelIndex;
|
|
16
|
+
export declare const advancedFilterHasConditions: (model: AdvancedFilterModel | null | undefined | unknown, modelType?: PvFilterPanelFilterModelType) => boolean;
|
|
17
|
+
export declare const getBooleanFilter: (model: AdvancedFilterModel | null | unknown, colId: string, modelType?: PvFilterPanelFilterModelType) => boolean | null;
|
|
18
|
+
export declare const getExistsFilter: (model: AdvancedFilterModel | null | unknown, colId: string, modelType?: PvFilterPanelFilterModelType) => boolean;
|
|
19
|
+
export declare const getRangeFilter: (model: AdvancedFilterModel | null | unknown, colId: string, modelType?: PvFilterPanelFilterModelType) => PvFilterPanelRangeValue;
|
|
20
|
+
export declare const getAdvancedFilterTypeForDataType: (dataType?: string | null) => PvAdvancedFilterColumnType;
|
|
21
|
+
export declare const getValueSelections: (model: AdvancedFilterModel | null | unknown, colId: string, modelType?: PvFilterPanelFilterModelType) => string[];
|
|
22
|
+
export declare const removeColumnFilter: (model: AdvancedFilterModel | null, colId: string, modelType?: PvFilterPanelFilterModelType) => AdvancedFilterModel | null;
|
|
23
|
+
export declare const updateBooleanFilter: (model: AdvancedFilterModel | null, colId: string, value: boolean | null, modelType?: PvFilterPanelFilterModelType, advancedFilterType?: "boolean" | "text", colDef?: PvFilterPanelColDef) => AdvancedFilterModel | null;
|
|
24
|
+
export declare const updateExistsFilter: (model: AdvancedFilterModel | null, colId: string, value: boolean, filterType?: PvAdvancedFilterColumnType, modelType?: PvFilterPanelFilterModelType, colDef?: PvFilterPanelColDef) => AdvancedFilterModel | null;
|
|
25
|
+
export declare const updateRangeFilter: (model: AdvancedFilterModel | null, colId: string, minValue: number | null, maxValue: number | null, modelType?: PvFilterPanelFilterModelType, colDef?: PvFilterPanelColDef) => AdvancedFilterModel | null;
|
|
26
|
+
export declare const updateValueFilter: (model: AdvancedFilterModel | null, colId: string, values: string[], modelType?: PvFilterPanelFilterModelType, colDef?: PvFilterPanelColDef) => AdvancedFilterModel | null;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { AdvancedFilterModel } from 'ag-grid-enterprise';
|
|
2
|
+
import { MultiSelectState } from '../../../types';
|
|
3
|
+
import { PvFilterPanelAggregateFieldHierarchy, PvFilterPanelColDef, PvFilterPanelOption } from './types';
|
|
4
|
+
export interface PvFilterPanelAggregateSelectionStatus {
|
|
5
|
+
indeterminate: boolean;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface PvFilterPanelAggregateFieldValue {
|
|
9
|
+
field?: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const removeFilterPanelAggregateFieldsFromModel: (model: AdvancedFilterModel | null | undefined, fields: string[] | Set<string>) => AdvancedFilterModel | null;
|
|
13
|
+
export declare const flattenFilterPanelAggregateFieldHierarchy: (hierarchy: PvFilterPanelAggregateFieldHierarchy | undefined) => string[];
|
|
14
|
+
export declare const getFilterPanelAggregateLeafFields: (hierarchy: PvFilterPanelAggregateFieldHierarchy | undefined) => string[];
|
|
15
|
+
export declare const getFilterPanelAggregateFields: (colDef: PvFilterPanelColDef | null | undefined) => string[];
|
|
16
|
+
export declare const getFilterPanelAggregateRootField: (colDef: PvFilterPanelColDef | null | undefined) => string | undefined;
|
|
17
|
+
export declare const isFilterPanelAggregateColDef: (colDef: PvFilterPanelColDef | null | undefined) => boolean;
|
|
18
|
+
export declare const findFilterPanelOptionByValue: (options: (PvFilterPanelOption | null)[] | undefined, value: string) => PvFilterPanelOption | undefined;
|
|
19
|
+
export declare const getFilterPanelAggregateFieldValue: (optionId: string, options?: (PvFilterPanelOption | null)[]) => PvFilterPanelAggregateFieldValue;
|
|
20
|
+
export declare const findFilterPanelAggregateOptionId: (options: (PvFilterPanelOption | null)[] | undefined, field: string, rawValue: string) => string;
|
|
21
|
+
export declare const buildFilterPanelAggregateModelFromSelectionState: (params: {
|
|
22
|
+
baseModel: AdvancedFilterModel | null | undefined;
|
|
23
|
+
colDef: PvFilterPanelColDef;
|
|
24
|
+
options?: (PvFilterPanelOption | null)[];
|
|
25
|
+
state: MultiSelectState;
|
|
26
|
+
}) => AdvancedFilterModel | null;
|
|
27
|
+
export declare const seedFilterPanelAggregateSelectionState: (params: {
|
|
28
|
+
colDef: PvFilterPanelColDef;
|
|
29
|
+
model: AdvancedFilterModel | null | undefined;
|
|
30
|
+
options?: (PvFilterPanelOption | null)[];
|
|
31
|
+
}) => MultiSelectState;
|
|
32
|
+
export declare const getFilterPanelAggregateSelectedValuesByField: (params: {
|
|
33
|
+
colDef: PvFilterPanelColDef;
|
|
34
|
+
model: AdvancedFilterModel | null | undefined;
|
|
35
|
+
options?: (PvFilterPanelOption | null)[];
|
|
36
|
+
}) => Map<string, string[]>;
|
|
37
|
+
export declare const updateFilterPanelAggregateSelectionState: (params: {
|
|
38
|
+
checked: boolean;
|
|
39
|
+
option: PvFilterPanelOption;
|
|
40
|
+
options?: (PvFilterPanelOption | null)[];
|
|
41
|
+
state: MultiSelectState;
|
|
42
|
+
}) => MultiSelectState;
|
|
43
|
+
export declare const createFilterPanelAggregateSelectionStatusMap: (params: {
|
|
44
|
+
options?: (PvFilterPanelOption | null)[];
|
|
45
|
+
state: MultiSelectState;
|
|
46
|
+
}) => Map<string, PvFilterPanelAggregateSelectionStatus>;
|
|
47
|
+
export declare const getFilterPanelAggregateOptionSelectionStatus: (params: {
|
|
48
|
+
option: PvFilterPanelOption;
|
|
49
|
+
options?: (PvFilterPanelOption | null)[];
|
|
50
|
+
state: MultiSelectState;
|
|
51
|
+
}) => PvFilterPanelAggregateSelectionStatus;
|
|
52
|
+
export declare const getFilterPanelAggregateSelectionOptions: (params: {
|
|
53
|
+
options?: (PvFilterPanelOption | null)[];
|
|
54
|
+
state: MultiSelectState;
|
|
55
|
+
}) => PvFilterPanelOption[];
|
|
56
|
+
export declare const getFilterPanelAggregateSelectionCount: (state: MultiSelectState) => number;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type PvFilterPanelDisplayResultCount = number | string;
|
|
2
|
+
export type FilterPanelDisplayResultCount = PvFilterPanelDisplayResultCount;
|
|
3
|
+
interface FilterOptionDisplaySource {
|
|
4
|
+
label?: string;
|
|
5
|
+
metadata?: unknown;
|
|
6
|
+
rawValue?: boolean | number | string | null;
|
|
7
|
+
resultCount?: unknown;
|
|
8
|
+
totalChildCount?: unknown;
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
11
|
+
interface FilterOptionColDefLike {
|
|
12
|
+
context?: {
|
|
13
|
+
filterValueFormatter?: ((params: never) => string) | string | null;
|
|
14
|
+
metadataDisplayFields?: string[];
|
|
15
|
+
} | null;
|
|
16
|
+
valueFormatter?: ((params: never) => string) | string | null;
|
|
17
|
+
}
|
|
18
|
+
export declare const formatFilterPanelScalarValue: (value: number, options?: {
|
|
19
|
+
dataType?: string | null;
|
|
20
|
+
valueDecimals?: number | null;
|
|
21
|
+
}) => string;
|
|
22
|
+
export declare const formatFilterPanelRangeValue: (min: number | null, max: number | null, options?: {
|
|
23
|
+
dataType?: string | null;
|
|
24
|
+
valueDecimals?: number | null;
|
|
25
|
+
}) => string;
|
|
26
|
+
export declare const getFilterOptionLabel: (option: FilterOptionDisplaySource, colDef?: FilterOptionColDefLike) => string;
|
|
27
|
+
export declare const getFilterOptionResultCount: (option: FilterOptionDisplaySource | null | undefined) => PvFilterPanelDisplayResultCount | undefined;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PvFilterPanelOption } from './types';
|
|
2
|
+
export interface PvFilterPanelScopedValue {
|
|
3
|
+
field?: string;
|
|
4
|
+
pairs: Array<{
|
|
5
|
+
field: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}>;
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const parseFilterPanelScopedValue: (value: string | null | undefined) => PvFilterPanelScopedValue | null;
|
|
11
|
+
export declare const createFilterPanelScopedValue: (field: string, value: string) => string;
|
|
12
|
+
export declare const getFilterPanelOptionRawValue: (option: PvFilterPanelOption | null | undefined) => string | null;
|
|
13
|
+
export declare const getFilterPanelOptionField: (option: PvFilterPanelOption | null | undefined, fallbackField: string) => string;
|
|
14
|
+
export declare const flattenFilterPanelOptions: (options: PvFilterPanelOption[]) => PvFilterPanelOption[];
|
|
15
|
+
export declare const filterPanelOptionMatchesRawValue: (option: PvFilterPanelOption, field: string, rawValue: string, fallbackField: string) => boolean;
|