@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
package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { PvMultiSelectButtonProps, PvSelectButtonVariant, PvSelectButtonSize, MenuActionsVariant } from './types';
|
|
2
|
+
import { MenuOption, MultiSelectState, SeeMoreEvent, MenuAction } from '../../../types';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Component, CSSProperties, VNode } from 'vue';
|
|
4
|
+
import { PvCounterBadgeVariant } from '../PvCounterBadge/types';
|
|
5
|
+
import { PvPopoverV2Props } from '../PvPopoverV2/types';
|
|
6
|
+
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
8
|
+
readonly "onUpdate:modelValue"?: ((value: MenuOption<T>[]) => any) | undefined;
|
|
9
|
+
readonly "onSelect-all"?: ((valueCount: number) => any) | undefined;
|
|
10
|
+
readonly "onDropdown-open"?: (() => any) | undefined;
|
|
11
|
+
readonly "onDropdown-closed"?: (() => any) | undefined;
|
|
12
|
+
readonly "onUpdate:searchInput"?: ((value: string) => any) | undefined;
|
|
13
|
+
readonly "onSee-more"?: ((payload: SeeMoreEvent) => any) | undefined;
|
|
14
|
+
readonly "onUpdate:selectionState"?: ((value: MultiSelectState) => any) | undefined;
|
|
15
|
+
readonly "onClear-all"?: ((valueCount: number) => any) | undefined;
|
|
16
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue" | "onDropdown-open" | "onDropdown-closed" | "onUpdate:searchInput" | "onSee-more" | "onSelect-all" | "onUpdate:selectionState" | "onClear-all"> & ({
|
|
17
|
+
modelValue?: MenuOption<T>[];
|
|
18
|
+
selectionState?: MultiSelectState;
|
|
19
|
+
searchInput?: string;
|
|
20
|
+
} & PvMultiSelectButtonProps<T, Record<string, unknown>>) & Partial<{}>> & PublicProps;
|
|
21
|
+
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
22
|
+
attrs: any;
|
|
23
|
+
slots: Partial<Record<string, (_: {}) => any>> & {
|
|
24
|
+
header?(_: {
|
|
25
|
+
selectedItems: MenuOption<T>[];
|
|
26
|
+
searchInput: string;
|
|
27
|
+
slotContext: Record<string, unknown> | undefined;
|
|
28
|
+
isOpen: boolean;
|
|
29
|
+
isLoading: boolean;
|
|
30
|
+
companyLogo: string;
|
|
31
|
+
counterBadgeVariant: PvCounterBadgeVariant;
|
|
32
|
+
countSelectedParents: boolean;
|
|
33
|
+
defaultOpen: boolean;
|
|
34
|
+
enableChildExpansion: boolean;
|
|
35
|
+
groupings: string[];
|
|
36
|
+
hideParentOnChildQueryMatch: boolean;
|
|
37
|
+
icon: string;
|
|
38
|
+
isSeeMoreLoading: boolean;
|
|
39
|
+
hasMoreOptions: boolean;
|
|
40
|
+
optionsAction: MenuAction<T> | undefined;
|
|
41
|
+
optionsRenderer: Component;
|
|
42
|
+
overlayTrigger: boolean;
|
|
43
|
+
parentSelectsAllChildren: boolean;
|
|
44
|
+
popoverCssProperties: CSSProperties;
|
|
45
|
+
popoverProperties: PvPopoverV2Props;
|
|
46
|
+
prefixLabel: string;
|
|
47
|
+
searchPlaceholder: string;
|
|
48
|
+
teleportLocation: string;
|
|
49
|
+
totalOptionCount: number;
|
|
50
|
+
additionalCounter: number;
|
|
51
|
+
rumFilterName: string;
|
|
52
|
+
rumActionName: string;
|
|
53
|
+
counterPosition: "none" | "left" | "right";
|
|
54
|
+
variant: PvSelectButtonVariant;
|
|
55
|
+
size: PvSelectButtonSize;
|
|
56
|
+
label: string;
|
|
57
|
+
disableDropdownIcon: boolean;
|
|
58
|
+
disableClearIcon: boolean;
|
|
59
|
+
disableSearchInput: boolean;
|
|
60
|
+
disabled: boolean;
|
|
61
|
+
optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
|
|
62
|
+
options: MenuOption<T>[];
|
|
63
|
+
menuActionsVariant: MenuActionsVariant | null;
|
|
64
|
+
highlightSearchText: boolean;
|
|
65
|
+
enableCascadeSelection: boolean;
|
|
66
|
+
counterStyle: "primary" | "secondary";
|
|
67
|
+
}): any;
|
|
68
|
+
'no-results'?(_: {
|
|
69
|
+
selectedItems: MenuOption<T>[];
|
|
70
|
+
searchInput: string;
|
|
71
|
+
slotContext: Record<string, unknown> | undefined;
|
|
72
|
+
isOpen: boolean;
|
|
73
|
+
isLoading: boolean;
|
|
74
|
+
companyLogo: string;
|
|
75
|
+
counterBadgeVariant: PvCounterBadgeVariant;
|
|
76
|
+
countSelectedParents: boolean;
|
|
77
|
+
defaultOpen: boolean;
|
|
78
|
+
enableChildExpansion: boolean;
|
|
79
|
+
groupings: string[];
|
|
80
|
+
hideParentOnChildQueryMatch: boolean;
|
|
81
|
+
icon: string;
|
|
82
|
+
isSeeMoreLoading: boolean;
|
|
83
|
+
hasMoreOptions: boolean;
|
|
84
|
+
optionsAction: MenuAction<T> | undefined;
|
|
85
|
+
optionsRenderer: Component;
|
|
86
|
+
overlayTrigger: boolean;
|
|
87
|
+
parentSelectsAllChildren: boolean;
|
|
88
|
+
popoverCssProperties: CSSProperties;
|
|
89
|
+
popoverProperties: PvPopoverV2Props;
|
|
90
|
+
prefixLabel: string;
|
|
91
|
+
searchPlaceholder: string;
|
|
92
|
+
teleportLocation: string;
|
|
93
|
+
totalOptionCount: number;
|
|
94
|
+
additionalCounter: number;
|
|
95
|
+
rumFilterName: string;
|
|
96
|
+
rumActionName: string;
|
|
97
|
+
counterPosition: "none" | "left" | "right";
|
|
98
|
+
variant: PvSelectButtonVariant;
|
|
99
|
+
size: PvSelectButtonSize;
|
|
100
|
+
label: string;
|
|
101
|
+
disableDropdownIcon: boolean;
|
|
102
|
+
disableClearIcon: boolean;
|
|
103
|
+
disableSearchInput: boolean;
|
|
104
|
+
disabled: boolean;
|
|
105
|
+
optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
|
|
106
|
+
options: MenuOption<T>[];
|
|
107
|
+
menuActionsVariant: MenuActionsVariant | null;
|
|
108
|
+
highlightSearchText: boolean;
|
|
109
|
+
enableCascadeSelection: boolean;
|
|
110
|
+
counterStyle: "primary" | "secondary";
|
|
111
|
+
}): any;
|
|
112
|
+
footer?(_: {
|
|
113
|
+
selectedItems: MenuOption<T>[];
|
|
114
|
+
searchInput: string;
|
|
115
|
+
slotContext: Record<string, unknown> | undefined;
|
|
116
|
+
isOpen: boolean;
|
|
117
|
+
isLoading: boolean;
|
|
118
|
+
companyLogo: string;
|
|
119
|
+
counterBadgeVariant: PvCounterBadgeVariant;
|
|
120
|
+
countSelectedParents: boolean;
|
|
121
|
+
defaultOpen: boolean;
|
|
122
|
+
enableChildExpansion: boolean;
|
|
123
|
+
groupings: string[];
|
|
124
|
+
hideParentOnChildQueryMatch: boolean;
|
|
125
|
+
icon: string;
|
|
126
|
+
isSeeMoreLoading: boolean;
|
|
127
|
+
hasMoreOptions: boolean;
|
|
128
|
+
optionsAction: MenuAction<T> | undefined;
|
|
129
|
+
optionsRenderer: Component;
|
|
130
|
+
overlayTrigger: boolean;
|
|
131
|
+
parentSelectsAllChildren: boolean;
|
|
132
|
+
popoverCssProperties: CSSProperties;
|
|
133
|
+
popoverProperties: PvPopoverV2Props;
|
|
134
|
+
prefixLabel: string;
|
|
135
|
+
searchPlaceholder: string;
|
|
136
|
+
teleportLocation: string;
|
|
137
|
+
totalOptionCount: number;
|
|
138
|
+
additionalCounter: number;
|
|
139
|
+
rumFilterName: string;
|
|
140
|
+
rumActionName: string;
|
|
141
|
+
counterPosition: "none" | "left" | "right";
|
|
142
|
+
variant: PvSelectButtonVariant;
|
|
143
|
+
size: PvSelectButtonSize;
|
|
144
|
+
label: string;
|
|
145
|
+
disableDropdownIcon: boolean;
|
|
146
|
+
disableClearIcon: boolean;
|
|
147
|
+
disableSearchInput: boolean;
|
|
148
|
+
disabled: boolean;
|
|
149
|
+
optionsVariant: "checkbox" | "icon" | "toggle" | "simple" | "company" | "avatar" | "checkmark";
|
|
150
|
+
options: MenuOption<T>[];
|
|
151
|
+
menuActionsVariant: MenuActionsVariant | null;
|
|
152
|
+
highlightSearchText: boolean;
|
|
153
|
+
enableCascadeSelection: boolean;
|
|
154
|
+
counterStyle: "primary" | "secondary";
|
|
155
|
+
}): any;
|
|
156
|
+
};
|
|
157
|
+
emit: {
|
|
158
|
+
(e: "dropdown-open"): void;
|
|
159
|
+
(e: "dropdown-closed"): void;
|
|
160
|
+
(e: "see-more", payload: SeeMoreEvent): void;
|
|
161
|
+
(e: "select-all", valueCount: number): void;
|
|
162
|
+
(e: "clear-all", valueCount: number): void;
|
|
163
|
+
} & (((evt: "update:modelValue", value: MenuOption<T>[]) => void) & ((evt: "update:searchInput", value: string) => void) & ((evt: "update:selectionState", value: MultiSelectState) => void));
|
|
164
|
+
}>) => VNode & {
|
|
165
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
166
|
+
};
|
|
167
|
+
export default _default;
|
|
168
|
+
type __VLS_PrettifyLocal<T> = {
|
|
169
|
+
[K in keyof T]: T[K];
|
|
170
|
+
} & {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MenuOption } from '../../../types';
|
|
2
|
+
export declare const simpleOptions: {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const companyOption: {
|
|
7
|
+
id: string;
|
|
8
|
+
text: string;
|
|
9
|
+
companyName: string;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const checkboxOptions: {
|
|
12
|
+
id: string;
|
|
13
|
+
text: string;
|
|
14
|
+
}[];
|
|
15
|
+
export declare const nestedOptions: MenuOption[];
|
|
16
|
+
export declare const nestedOptionsWithTotalChildCount: MenuOption[];
|
|
17
|
+
export declare const extraWestChildren: MenuOption[];
|
|
18
|
+
export declare const nestedOptionsWithSeeMore: MenuOption[];
|
|
19
|
+
export declare const deeplyNestedOptions: MenuOption[];
|
|
20
|
+
export declare const checkboxOptionsWithGroups: MenuOption[];
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { PvSize, PvVariants } from '../baseProps';
|
|
2
|
+
import { PvPopoverV2Props } from '../PvPopoverV2/types.ts';
|
|
3
|
+
import { Component, CSSProperties } from 'vue';
|
|
4
|
+
import { MenuAction, MenuOption, MenuOptionsVariant } from '../../../types.ts';
|
|
5
|
+
import { PvCounterBadgeVariant } from '../PvCounterBadge/types.ts';
|
|
6
|
+
export type PvSelectButtonVariant = Extract<PvVariants, "secondary" | "ghost">;
|
|
7
|
+
export type PvSelectButtonSize = Extract<PvSize, "lg" | "xl">;
|
|
8
|
+
export type MenuActionsVariant = "select-clear" | "cancel-confirm";
|
|
9
|
+
export interface PvMultiSelectButtonProps<T = unknown, SlotContext extends Record<string, unknown> = Record<string, unknown>> {
|
|
10
|
+
/** Company logo name displayed on the trigger button */
|
|
11
|
+
companyLogo?: string;
|
|
12
|
+
/** Variant of the counter badge which appears on the button and menu items */
|
|
13
|
+
counterBadgeVariant?: PvCounterBadgeVariant;
|
|
14
|
+
/** Where to place the selection counter badge on the trigger */
|
|
15
|
+
counterPosition?: "left" | "right" | "none";
|
|
16
|
+
/** When true and cascade selection is enabled, the counter badge counts a fully
|
|
17
|
+
* selected parent as 1 instead of counting each child individually. */
|
|
18
|
+
countSelectedParents?: boolean;
|
|
19
|
+
/** Whether the dropdown is open on initial render */
|
|
20
|
+
defaultOpen?: boolean;
|
|
21
|
+
/** Hide the clear (×) icon when items are selected */
|
|
22
|
+
disableClearIcon?: boolean;
|
|
23
|
+
/** Hide the dropdown chevron icon */
|
|
24
|
+
disableDropdownIcon?: boolean;
|
|
25
|
+
/** Hide the search input inside the dropdown */
|
|
26
|
+
disableSearchInput?: boolean;
|
|
27
|
+
/** Disable the button. The trigger is non-interactive (not clickable) and the clear
|
|
28
|
+
* icon is hidden. For a read-only / view-only presentation where the dropdown can
|
|
29
|
+
* still be opened to inspect selections, leave `disabled` off and instead compose
|
|
30
|
+
* `disableSearchInput`, `disableClearIcon`, a null `menuActionsVariant`, and disabled
|
|
31
|
+
* options (see SetFilter). */
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/** Enable cascade (parent/child) selection. When true, clicking a parent option
|
|
34
|
+
* toggles all its leaf descendants, and parent checkboxes show indeterminate state
|
|
35
|
+
* when partially selected. All existing behavior is unchanged when false (default). */
|
|
36
|
+
enableCascadeSelection?: boolean;
|
|
37
|
+
/** Display an expand/collapse icon for options that have children */
|
|
38
|
+
enableChildExpansion?: boolean;
|
|
39
|
+
/** Labels used to group options into named sections */
|
|
40
|
+
groupings?: string[];
|
|
41
|
+
/** When enableCascadeSelection is true, hide parent options in the dropdown when
|
|
42
|
+
* only their children match the search query. When true, parent options will only be shown
|
|
43
|
+
* when they themselves match the search query. When false (default), parents are shown as
|
|
44
|
+
* containers for matching children.
|
|
45
|
+
* This only affects which options are shown in the dropdown, and does not affect selection behavior.
|
|
46
|
+
*/
|
|
47
|
+
hideParentOnChildQueryMatch?: boolean;
|
|
48
|
+
/** Whether to highlight the search text in the options list */
|
|
49
|
+
highlightSearchText?: boolean;
|
|
50
|
+
/** Icon name displayed on the trigger button */
|
|
51
|
+
icon?: string;
|
|
52
|
+
/** Show a loading spinner inside the dropdown */
|
|
53
|
+
isLoading?: boolean;
|
|
54
|
+
/** Show a loading spinner on the top-level See more button without replacing the option list */
|
|
55
|
+
isSeeMoreLoading?: boolean;
|
|
56
|
+
/** Whether more top-level options are available after the loaded options */
|
|
57
|
+
hasMoreOptions?: boolean;
|
|
58
|
+
/** Text label on the trigger button */
|
|
59
|
+
label?: string;
|
|
60
|
+
/** Style of the footer action panel. "select-clear" shows select/clear all; "cancel-confirm" requires explicit confirmation. */
|
|
61
|
+
menuActionsVariant?: MenuActionsVariant | null;
|
|
62
|
+
/** The list of selectable options */
|
|
63
|
+
options?: MenuOption<T>[];
|
|
64
|
+
/** Action configuration for per-option action buttons */
|
|
65
|
+
optionsAction?: MenuAction<T>;
|
|
66
|
+
/** Custom Vue component used to render each option */
|
|
67
|
+
optionsRenderer?: Component;
|
|
68
|
+
/** Visual style of menu options (checkbox, simple, icon, company, avatar) */
|
|
69
|
+
optionsVariant?: Exclude<MenuOptionsVariant, "radio">;
|
|
70
|
+
/** Use an overlay-style trigger (auto-focuses search on open) */
|
|
71
|
+
overlayTrigger?: boolean;
|
|
72
|
+
/** When enableCascadeSelection is true, selecting a parent will select all children
|
|
73
|
+
* regardless of whether they are filtered by a search query. When false (default),
|
|
74
|
+
* selecting a parent will only select the children that are currently shown in the
|
|
75
|
+
* dropdown (i.e. that match the search query if there is one).
|
|
76
|
+
*/
|
|
77
|
+
parentSelectsAllChildren?: boolean;
|
|
78
|
+
/** Custom CSS properties applied to the popover container */
|
|
79
|
+
popoverCssProperties?: CSSProperties;
|
|
80
|
+
/** Configuration passed to the underlying PvPopoverV2 */
|
|
81
|
+
popoverProperties?: PvPopoverV2Props;
|
|
82
|
+
/** Static text shown before the label on the trigger button */
|
|
83
|
+
prefixLabel?: string;
|
|
84
|
+
/** Placeholder text for the search input */
|
|
85
|
+
searchPlaceholder?: string;
|
|
86
|
+
/** Size of the trigger button */
|
|
87
|
+
size?: PvSelectButtonSize;
|
|
88
|
+
/** Additional context to pass to slot components */
|
|
89
|
+
slotContext?: SlotContext;
|
|
90
|
+
/** CSS selector for teleporting the popover dropdown */
|
|
91
|
+
teleportLocation?: string;
|
|
92
|
+
/** Total available top-level options (may exceed options.length when paginating).
|
|
93
|
+
* Used as a fallback to show "See more" when hasMoreOptions is not provided. */
|
|
94
|
+
totalOptionCount?: number;
|
|
95
|
+
/** Visual style of the trigger button */
|
|
96
|
+
variant?: PvSelectButtonVariant;
|
|
97
|
+
/** Style of the counter badge on the trigger button.
|
|
98
|
+
* - "primary": Shows a counter badge in the specified counterPosition (left/right)
|
|
99
|
+
* - "secondary": Shows the first selected item's text with a "+N" badge for additional selections
|
|
100
|
+
*/
|
|
101
|
+
counterStyle?: "primary" | "secondary";
|
|
102
|
+
/** Extra count added on top of the derived selection count. Use this to include
|
|
103
|
+
* selections from sub-filters (e.g. FilterGroupMenu) that are not part of the
|
|
104
|
+
* main options list. */
|
|
105
|
+
additionalCounter?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Human-readable filter name used to derive `data-dd-action-name` attributes
|
|
108
|
+
* on the trigger, search input, Select All, and Clear All buttons so Datadog
|
|
109
|
+
* RUM resolves clicks to named actions instead of concatenated DOM text.
|
|
110
|
+
* E.g. passing "Payer Network" yields "Open Payer Network filter",
|
|
111
|
+
* "Search Payer Network options", "Select all Payer Network options",
|
|
112
|
+
* "Clear Payer Network selections". Leave undefined to skip.
|
|
113
|
+
*/
|
|
114
|
+
rumFilterName?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Overrides the trigger's `data-dd-action-name`. Use this when the trigger
|
|
117
|
+
* label isn't filter-name shaped (e.g. "Select Y Axis metric" on a chart
|
|
118
|
+
* options selector). When unset, `rumFilterName` composes the default.
|
|
119
|
+
*/
|
|
120
|
+
rumActionName?: string;
|
|
121
|
+
}
|
|
122
|
+
export interface PvMultiSelectButtonSlotProps<T = unknown, SlotContext = Record<string, unknown>> extends Omit<PvMultiSelectButtonProps, "slotContext"> {
|
|
123
|
+
searchInput?: string;
|
|
124
|
+
selectedItems?: MenuOption<T>[];
|
|
125
|
+
/** Additional context passed through from slotContext prop */
|
|
126
|
+
slotContext?: SlotContext;
|
|
127
|
+
/** Whether the dropdown is currently open */
|
|
128
|
+
isOpen?: boolean;
|
|
129
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PvPaginationSize, PvPaginationVariant } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
interface PvPaginationProps {
|
|
4
|
+
/** Size of the pagination buttons */
|
|
5
|
+
size?: PvPaginationSize;
|
|
6
|
+
/** Total number of pages available */
|
|
7
|
+
maxPages: number;
|
|
8
|
+
maxNumberToShow?: number;
|
|
9
|
+
/** Display variant controlling the number of visible page buttons ("short" shows fewer) */
|
|
10
|
+
variant?: PvPaginationVariant;
|
|
11
|
+
}
|
|
12
|
+
type __VLS_Props = PvPaginationProps;
|
|
13
|
+
type __VLS_PublicProps = {
|
|
14
|
+
modelValue: number;
|
|
15
|
+
} & __VLS_Props;
|
|
16
|
+
declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: number) => any;
|
|
18
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
size: PvPaginationSize;
|
|
22
|
+
variant: PvPaginationVariant;
|
|
23
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLOListElement>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PvPaginationVariant } from './types';
|
|
2
|
+
export declare const usePagination: ({ variant, }?: {
|
|
3
|
+
variant?: PvPaginationVariant;
|
|
4
|
+
}) => {
|
|
5
|
+
getPaginations: ({ currentPage, pages, }: {
|
|
6
|
+
currentPage: number;
|
|
7
|
+
pages: number;
|
|
8
|
+
}) => {
|
|
9
|
+
page: number;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PillSize, PillVariant, PillDotVariant } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
export interface PvPillProps {
|
|
4
|
+
/**
|
|
5
|
+
* Pill size
|
|
6
|
+
*/
|
|
7
|
+
size?: PillSize;
|
|
8
|
+
/**
|
|
9
|
+
* Pill color variant
|
|
10
|
+
*/
|
|
11
|
+
variant?: PillVariant;
|
|
12
|
+
/**
|
|
13
|
+
* Icon name displayed before the label
|
|
14
|
+
*/
|
|
15
|
+
icon?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Colored dot indicator displayed before the label. When set, forces neutral (tertiary) styling regardless of the variant prop.
|
|
18
|
+
*/
|
|
19
|
+
dotVariant?: PillDotVariant;
|
|
20
|
+
/**
|
|
21
|
+
* Pill label text
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
}
|
|
25
|
+
declare const _default: DefineComponent<PvPillProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvPillProps> & Readonly<{}>, {
|
|
26
|
+
size: PillSize;
|
|
27
|
+
variant: PillVariant;
|
|
28
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PvColorVariants, PvSize } from '../baseProps';
|
|
2
|
+
export type PillSize = Extract<PvSize, "md" | "lg" | "sm">;
|
|
3
|
+
export type PillVariant = Extract<PvColorVariants, "default" | "success" | "warning" | "critical" | "highlight" | "transparent">;
|
|
4
|
+
export type PillDotVariant = "green" | "orange" | "yellow" | "red";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CSSProperties, DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export interface PvPopoverProps {
|
|
3
|
+
/** Alignment of the popover relative to its trigger. */
|
|
4
|
+
alignment?: "top" | "right" | "top right" | undefined;
|
|
5
|
+
/** Custom CSS properties applied to the inner list element (when isList is true). */
|
|
6
|
+
cssCustomListProperties?: CSSProperties;
|
|
7
|
+
/** Custom CSS properties applied to the popover root element. */
|
|
8
|
+
cssCustomProperties?: CSSProperties;
|
|
9
|
+
/** When true, renders the content inside a `<ul>` list element. */
|
|
10
|
+
isList?: boolean;
|
|
11
|
+
/** When true and isList is true, enables drag-and-drop reordering of list items. */
|
|
12
|
+
isSortable?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvPopoverProps, {
|
|
15
|
+
popoverRoot: Ref<HTMLElement | null, HTMLElement | null>;
|
|
16
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
17
|
+
"list-order-updated": (value: string[]) => any;
|
|
18
|
+
}, string, PublicProps, Readonly<PvPopoverProps> & Readonly<{
|
|
19
|
+
"onList-order-updated"?: ((value: string[]) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
alignment: "right" | "top" | "top right";
|
|
22
|
+
cssCustomProperties: CSSProperties;
|
|
23
|
+
isList: boolean;
|
|
24
|
+
isSortable: boolean;
|
|
25
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
26
|
+
popoverRoot: HTMLDivElement;
|
|
27
|
+
popoverList: HTMLUListElement;
|
|
28
|
+
}, HTMLDivElement>, {
|
|
29
|
+
default?(_: {}): any;
|
|
30
|
+
default?(_: {}): any;
|
|
31
|
+
}>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CSSProperties, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Alignment of the popover dropdown relative to its trigger. */
|
|
4
|
+
alignment?: "top" | "right" | "top right" | undefined;
|
|
5
|
+
/** Custom CSS properties applied to the popover container. */
|
|
6
|
+
cssCustomProperties?: CSSProperties;
|
|
7
|
+
};
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
trigger?(_: {}): any;
|
|
12
|
+
content?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
|
+
alignment: "right" | "top" | "top right";
|
|
20
|
+
cssCustomProperties: CSSProperties;
|
|
21
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PvPopoverV2Props } from './types.ts';
|
|
2
|
+
import { PvAlignmentPositions } from '../baseProps.ts';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
import { Strategy } from '@floating-ui/vue';
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
6
|
+
modelValue?: boolean;
|
|
7
|
+
} & PvPopoverV2Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: boolean) => any;
|
|
9
|
+
}, string, PublicProps, Readonly<{
|
|
10
|
+
modelValue?: boolean;
|
|
11
|
+
} & PvPopoverV2Props> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
delay: number;
|
|
15
|
+
position: PvAlignmentPositions;
|
|
16
|
+
zIndex: number;
|
|
17
|
+
disableAutoPlacement: boolean;
|
|
18
|
+
positioningStrategy: Strategy;
|
|
19
|
+
showOnHover: boolean;
|
|
20
|
+
disableInteractive: boolean;
|
|
21
|
+
useTeleport: boolean;
|
|
22
|
+
disableClickOutsideToClose: boolean;
|
|
23
|
+
closeDelay: number;
|
|
24
|
+
teleportLocation: string;
|
|
25
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
26
|
+
root: HTMLDivElement;
|
|
27
|
+
triggerWrapper: HTMLDivElement;
|
|
28
|
+
floating: HTMLDivElement;
|
|
29
|
+
}, HTMLDivElement>, {
|
|
30
|
+
trigger?(_: {}): any;
|
|
31
|
+
content?(_: {}): any;
|
|
32
|
+
content?(_: {}): any;
|
|
33
|
+
}>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Strategy } from '@floating-ui/vue';
|
|
2
|
+
import { PvAlignmentPositions } from '../baseProps.ts';
|
|
3
|
+
export interface PvPopoverV2Props {
|
|
4
|
+
/** When true, disables automatic collision flips. */
|
|
5
|
+
disableAutoPlacement?: boolean;
|
|
6
|
+
/** Placement of the popover relative to the trigger element. */
|
|
7
|
+
position?: PvAlignmentPositions;
|
|
8
|
+
/** CSS positioning strategy for the legacy Floating UI path. */
|
|
9
|
+
positioningStrategy?: Strategy;
|
|
10
|
+
/** When true, the popover opens on hover instead of click. */
|
|
11
|
+
showOnHover?: boolean;
|
|
12
|
+
/** When true and showOnHover is enabled, hovering the popover does not keep it open. */
|
|
13
|
+
disableInteractive?: boolean;
|
|
14
|
+
/** Teleports the surface in the legacy Floating UI path. */
|
|
15
|
+
useTeleport?: boolean;
|
|
16
|
+
/** When true, clicking outside the popover will not close it. */
|
|
17
|
+
disableClickOutsideToClose?: boolean;
|
|
18
|
+
/** Delay before a hover popover opens. The legacy path also applies it to click triggers. */
|
|
19
|
+
delay?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Grace period in ms before a hover popover closes after the pointer leaves
|
|
22
|
+
* the trigger (and, unless `disableInteractive` is set, the popover itself).
|
|
23
|
+
* Acts as a hover bridge so the pointer can travel from the trigger onto the
|
|
24
|
+
* popover without it closing underneath. Only applies when `showOnHover` is
|
|
25
|
+
* enabled. Set to 0 to close immediately.
|
|
26
|
+
*/
|
|
27
|
+
closeDelay?: number;
|
|
28
|
+
/** z-index applied in the legacy Floating UI path. */
|
|
29
|
+
zIndex?: number;
|
|
30
|
+
/** CSS selector for the legacy Teleport target. */
|
|
31
|
+
teleportLocation?: string;
|
|
32
|
+
/** Offset in pixels between the popover and its trigger. */
|
|
33
|
+
offset?: number;
|
|
34
|
+
/** Additional classes ignored by legacy outside-click detection. */
|
|
35
|
+
ignoreClickOutsideClasses?: string[];
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
interface PvProgressBarProps {
|
|
3
|
+
/** When true, renders the progress bar in a disabled/muted visual state. */
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
/** The current progress value as a percentage (0–100). */
|
|
6
|
+
progress?: number;
|
|
7
|
+
/** When true, displays a text label above the bar showing "{progress}% Complete". */
|
|
8
|
+
showLabel?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: DefineComponent<PvProgressBarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvProgressBarProps> & Readonly<{}>, {
|
|
11
|
+
progress: number;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
showLabel: boolean;
|
|
14
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { QueryBuilderOutput, QueryBuilderProcessor, QueryBuilderSuggestionMenuOption } from './useQueryBuilder';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
export interface PvQueryBuilderInputProps {
|
|
4
|
+
/**
|
|
5
|
+
* Placeholder text shown in the input when no query is active.
|
|
6
|
+
*/
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
/**
|
|
9
|
+
* When true, the input is non-interactive and visually dimmed.
|
|
10
|
+
*/
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** When true, displays a keyboard shortcut badge next to the input. */
|
|
13
|
+
displayShortcut?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Determines how user input is parsed into structured query terms.
|
|
16
|
+
* - `'full'`: free-text and field-based queries.
|
|
17
|
+
* - `'field-only'`: only options with a queryField are shown.
|
|
18
|
+
*/
|
|
19
|
+
processor?: QueryBuilderProcessor;
|
|
20
|
+
/**
|
|
21
|
+
* When true, shows a loading spinner in the suggestion dropdown.
|
|
22
|
+
*/
|
|
23
|
+
optionsLoading?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* When true, users can press Enter to add free-text terms without selecting a suggestion.
|
|
26
|
+
*/
|
|
27
|
+
enableCustomOptionsInput?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* When true, hides the search icon on the left side of the input.
|
|
30
|
+
*/
|
|
31
|
+
hideSearchIcon?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* When true, hides the clear button that resets the query.
|
|
34
|
+
*/
|
|
35
|
+
hideClearButton?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Maximum number of query term pills to display before collapsing.
|
|
38
|
+
*/
|
|
39
|
+
queryTermDisplayLimit?: number;
|
|
40
|
+
/**
|
|
41
|
+
* When true, query term pills wrap to the next line instead of scrolling horizontally.
|
|
42
|
+
*/
|
|
43
|
+
enableWrapQueryTerms?: boolean;
|
|
44
|
+
}
|
|
45
|
+
type __VLS_Props = PvQueryBuilderInputProps;
|
|
46
|
+
type __VLS_PublicProps = {
|
|
47
|
+
"searchText"?: string;
|
|
48
|
+
"query": QueryBuilderOutput | null;
|
|
49
|
+
"options"?: QueryBuilderSuggestionMenuOption[];
|
|
50
|
+
} & __VLS_Props;
|
|
51
|
+
declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
52
|
+
"update:options": (value: QueryBuilderSuggestionMenuOption[]) => any;
|
|
53
|
+
"update:searchText": (value: string) => any;
|
|
54
|
+
"update:query": (value: QueryBuilderOutput | null) => any;
|
|
55
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
56
|
+
"onUpdate:options"?: ((value: QueryBuilderSuggestionMenuOption[]) => any) | undefined;
|
|
57
|
+
"onUpdate:searchText"?: ((value: string) => any) | undefined;
|
|
58
|
+
"onUpdate:query"?: ((value: QueryBuilderOutput | null) => any) | undefined;
|
|
59
|
+
}>, {
|
|
60
|
+
disabled: boolean;
|
|
61
|
+
placeholder: string;
|
|
62
|
+
queryTermDisplayLimit: number;
|
|
63
|
+
processor: QueryBuilderProcessor;
|
|
64
|
+
optionsLoading: boolean;
|
|
65
|
+
enableCustomOptionsInput: boolean;
|
|
66
|
+
hideSearchIcon: boolean;
|
|
67
|
+
hideClearButton: boolean;
|
|
68
|
+
enableWrapQueryTerms: boolean;
|
|
69
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
70
|
+
'query-builder-input': HTMLDivElement;
|
|
71
|
+
'search-input': HTMLInputElement;
|
|
72
|
+
}, HTMLDivElement>;
|
|
73
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { QueryTerm } from './useQueryBuilder';
|
|
2
|
+
import { MenuOption } from '../../../types';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
type __VLS_Props = MenuOption<QueryTerm>;
|
|
5
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|