@turquoisehealth/pit-viper 2.215.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.
Files changed (208) hide show
  1. package/package.json +5 -1
  2. package/pv-components/dist/stats/vue/ai/stats.html +4950 -0
  3. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  4. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  5. package/pv-components/dist/stats/web/pv-confirmation-stats.html +4950 -0
  6. package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
  7. package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
  8. package/pv-components/dist/stats/web/pv-prompt-input-stats.html +4950 -0
  9. package/pv-components/dist/stats/web/pv-question-stats.html +4950 -0
  10. package/pv-components/dist/stats/web/pv-reasoning-stats.html +4950 -0
  11. package/pv-components/dist/stats/web/pv-tool-stats.html +4950 -0
  12. package/pv-components/dist/vue/ai/components/ai/PvConfirmation/PvConfirmation.vue.d.ts +30 -0
  13. package/pv-components/dist/vue/ai/components/ai/PvConfirmation/types.d.ts +21 -0
  14. package/pv-components/dist/vue/ai/components/ai/PvPromptInput/PvPromptInput.vue.d.ts +46 -0
  15. package/pv-components/dist/vue/ai/components/ai/PvPromptInput/types.d.ts +20 -0
  16. package/pv-components/dist/vue/ai/components/ai/PvQuestion/PvQuestion.vue.d.ts +35 -0
  17. package/pv-components/dist/vue/ai/components/ai/PvQuestion/types.d.ts +24 -0
  18. package/pv-components/dist/vue/ai/components/ai/PvReasoning/PvReasoning.vue.d.ts +33 -0
  19. package/pv-components/dist/vue/ai/components/ai/PvReasoning/types.d.ts +14 -0
  20. package/pv-components/dist/vue/ai/components/ai/PvTool/PvTool.vue.d.ts +35 -0
  21. package/pv-components/dist/vue/ai/components/ai/PvTool/types.d.ts +15 -0
  22. package/pv-components/dist/vue/ai/components/ai/index.d.ts +15 -0
  23. package/pv-components/dist/vue/ai/components/ai/toolLifecycle.d.ts +21 -0
  24. package/pv-components/dist/vue/ai/components/ai/useStickToBottom.d.ts +19 -0
  25. package/pv-components/dist/vue/ai/components/base/PvAccordion/PvAccordion.vue.d.ts +60 -0
  26. package/pv-components/dist/vue/ai/components/base/PvAccordion/types.d.ts +5 -0
  27. package/pv-components/dist/vue/ai/components/base/PvActionBar/PvActionBar.vue.d.ts +36 -0
  28. package/pv-components/dist/vue/ai/components/base/PvActionBar/types.d.ts +2 -0
  29. package/pv-components/dist/vue/ai/components/base/PvActionButton/PvActionButton.vue.d.ts +22 -0
  30. package/pv-components/dist/vue/ai/components/base/PvAiButton/PvAiButton.vue.d.ts +20 -0
  31. package/pv-components/dist/vue/ai/components/base/PvAiButton/types.d.ts +2 -0
  32. package/pv-components/dist/vue/ai/components/base/PvAvatar/PvAvatar.vue.d.ts +7 -0
  33. package/pv-components/dist/vue/ai/components/base/PvAvatar/types.d.ts +20 -0
  34. package/pv-components/dist/vue/ai/components/base/PvAvatarGroup/PvAvatarGroup.vue.d.ts +12 -0
  35. package/pv-components/dist/vue/ai/components/base/PvAvatarGroup/types.d.ts +16 -0
  36. package/pv-components/dist/vue/ai/components/base/PvBanner/PvBanner.vue.d.ts +35 -0
  37. package/pv-components/dist/vue/ai/components/base/PvBanner/types.d.ts +11 -0
  38. package/pv-components/dist/vue/ai/components/base/PvBreadcrumbs/PvBreadcrumbs.vue.d.ts +8 -0
  39. package/pv-components/dist/vue/ai/components/base/PvBreadcrumbs/types.d.ts +6 -0
  40. package/pv-components/dist/vue/ai/components/base/PvButton/PvButton.vue.d.ts +10 -0
  41. package/pv-components/dist/vue/ai/components/base/PvButton/PvButtonWithTooltip.vue.d.ts +8 -0
  42. package/pv-components/dist/vue/ai/components/base/PvButton/helpers.d.ts +3 -0
  43. package/pv-components/dist/vue/ai/components/base/PvButton/types.d.ts +38 -0
  44. package/pv-components/dist/vue/ai/components/base/PvCard/PvCard.vue.d.ts +30 -0
  45. package/pv-components/dist/vue/ai/components/base/PvCard/types.d.ts +2 -0
  46. package/pv-components/dist/vue/ai/components/base/PvCheckbox/PvCheckbox.vue.d.ts +19 -0
  47. package/pv-components/dist/vue/ai/components/base/PvCompanyLabel/PvCompanyLabel.vue.d.ts +14 -0
  48. package/pv-components/dist/vue/ai/components/base/PvCompanyLabel/types.d.ts +2 -0
  49. package/pv-components/dist/vue/ai/components/base/PvCompanyLogo/PvCompanyLogo.vue.d.ts +17 -0
  50. package/pv-components/dist/vue/ai/components/base/PvCompanyLogo/types.d.ts +2 -0
  51. package/pv-components/dist/vue/ai/components/base/PvCompanyTag/PvCompanyTag.vue.d.ts +31 -0
  52. package/pv-components/dist/vue/ai/components/base/PvComponentsConfig/primeVue.config.d.ts +14 -0
  53. package/pv-components/dist/vue/ai/components/base/PvComponentsConfig/usePvComponents.d.ts +2 -0
  54. package/pv-components/dist/vue/ai/components/base/PvCounterBadge/PvCounterBadge.vue.d.ts +21 -0
  55. package/pv-components/dist/vue/ai/components/base/PvCounterBadge/types.d.ts +3 -0
  56. package/pv-components/dist/vue/ai/components/base/PvDatePicker/PvDatePicker.vue.d.ts +103 -0
  57. package/pv-components/dist/vue/ai/components/base/PvDateTime/PvDateTime.vue.d.ts +18 -0
  58. package/pv-components/dist/vue/ai/components/base/PvDateTime/useDateTime.d.ts +9 -0
  59. package/pv-components/dist/vue/ai/components/base/PvDistributionBar/PvDistributionBar.vue.d.ts +7 -0
  60. package/pv-components/dist/vue/ai/components/base/PvDrawer/PvDrawer.vue.d.ts +54 -0
  61. package/pv-components/dist/vue/ai/components/base/PvDropdown/PvDropdown.vue.d.ts +125 -0
  62. package/pv-components/dist/vue/ai/components/base/PvEmptyErrorState/PvEmptyErrorState.vue.d.ts +22 -0
  63. package/pv-components/dist/vue/ai/components/base/PvEmptyErrorState/types.d.ts +11 -0
  64. package/pv-components/dist/vue/ai/components/base/PvExpandableContent/PvExpandableContent.vue.d.ts +34 -0
  65. package/pv-components/dist/vue/ai/components/base/PvExpandableContent/types.d.ts +3 -0
  66. package/pv-components/dist/vue/ai/components/base/PvFilterModal/PvFilterModal.vue.d.ts +80 -0
  67. package/pv-components/dist/vue/ai/components/base/PvFilterModal/PvFilterModalSelectItem.vue.d.ts +33 -0
  68. package/pv-components/dist/vue/ai/components/base/PvFilterModal/types.d.ts +11 -0
  69. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +78 -0
  70. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelAccordion.vue.d.ts +18 -0
  71. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelAppliedFiltersSection.vue.d.ts +12 -0
  72. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelCategoryButtonRow.vue.d.ts +14 -0
  73. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelOptionRow.vue.d.ts +35 -0
  74. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/advancedFilterModel.d.ts +26 -0
  75. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/aggregateFilterModel.d.ts +56 -0
  76. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/filterOptionDisplay.d.ts +28 -0
  77. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/filterOptionValue.d.ts +15 -0
  78. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +525 -0
  79. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/usePvFilterPanel.d.ts +30 -0
  80. package/pv-components/dist/vue/ai/components/base/PvFilterPanel/usePvFilterStore.d.ts +5 -0
  81. package/pv-components/dist/vue/ai/components/base/PvGhostInput/PvGhostInput.vue.d.ts +45 -0
  82. package/pv-components/dist/vue/ai/components/base/PvGhostInput/types.d.ts +2 -0
  83. package/pv-components/dist/vue/ai/components/base/PvHeader/PvHeader.vue.d.ts +36 -0
  84. package/pv-components/dist/vue/ai/components/base/PvHorizontalScroller/PvHorizontalScroller.vue.d.ts +36 -0
  85. package/pv-components/dist/vue/ai/components/base/PvHorizontalScroller/types.d.ts +21 -0
  86. package/pv-components/dist/vue/ai/components/base/PvHoverActionMenu/PvHoverActionMenu.vue.d.ts +42 -0
  87. package/pv-components/dist/vue/ai/components/base/PvHoverActionMenu/types.d.ts +15 -0
  88. package/pv-components/dist/vue/ai/components/base/PvIcon/PvIcon.vue.d.ts +14 -0
  89. package/pv-components/dist/vue/ai/components/base/PvInput/PvInput.vue.d.ts +59 -0
  90. package/pv-components/dist/vue/ai/components/base/PvInput/types.d.ts +3 -0
  91. package/pv-components/dist/vue/ai/components/base/PvInsightCard/PvInsightCard.vue.d.ts +29 -0
  92. package/pv-components/dist/vue/ai/components/base/PvMenu/PvMenu.vue.d.ts +57 -0
  93. package/pv-components/dist/vue/ai/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +26 -0
  94. package/pv-components/dist/vue/ai/components/base/PvMenu/PvMenuEmptyState.vue.d.ts +3 -0
  95. package/pv-components/dist/vue/ai/components/base/PvMenu/cascadeUtils.d.ts +42 -0
  96. package/pv-components/dist/vue/ai/components/base/PvMenu/items/PvMenuBaseItem.vue.d.ts +11 -0
  97. package/pv-components/dist/vue/ai/components/base/PvMenu/items/PvMenuItem.vue.d.ts +26 -0
  98. package/pv-components/dist/vue/ai/components/base/PvMenu/items/PvMenuItemAction.vue.d.ts +9 -0
  99. package/pv-components/dist/vue/ai/components/base/PvMenu/items/PvMenuItemVariant.vue.d.ts +22 -0
  100. package/pv-components/dist/vue/ai/components/base/PvMenu/symbols.d.ts +11 -0
  101. package/pv-components/dist/vue/ai/components/base/PvMenu/types.d.ts +31 -0
  102. package/pv-components/dist/vue/ai/components/base/PvMenu/useMenuPosition.d.ts +66 -0
  103. package/pv-components/dist/vue/ai/components/base/PvModal/PvModal.vue.d.ts +31 -0
  104. package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +170 -0
  105. package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/mocks.d.ts +20 -0
  106. package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/types.d.ts +129 -0
  107. package/pv-components/dist/vue/ai/components/base/PvPagination/PvPagination.vue.d.ts +24 -0
  108. package/pv-components/dist/vue/ai/components/base/PvPagination/types.d.ts +3 -0
  109. package/pv-components/dist/vue/ai/components/base/PvPagination/usePagination.d.ts +12 -0
  110. package/pv-components/dist/vue/ai/components/base/PvPill/PvPill.vue.d.ts +29 -0
  111. package/pv-components/dist/vue/ai/components/base/PvPill/types.d.ts +4 -0
  112. package/pv-components/dist/vue/ai/components/base/PvPopover/PvPopover.vue.d.ts +37 -0
  113. package/pv-components/dist/vue/ai/components/base/PvPopoverMenu/PvPopoverMenu.vue.d.ts +28 -0
  114. package/pv-components/dist/vue/ai/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +39 -0
  115. package/pv-components/dist/vue/ai/components/base/PvPopoverV2/types.d.ts +36 -0
  116. package/pv-components/dist/vue/ai/components/base/PvProgressBar/PvProgressBar.vue.d.ts +15 -0
  117. package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts +73 -0
  118. package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/QueryBuilderMenuOptionRenderer.vue.d.ts +6 -0
  119. package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/QueryFormatter.vue.d.ts +20 -0
  120. package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/useQueryBuilder.d.ts +44 -0
  121. package/pv-components/dist/vue/ai/components/base/PvRadioGroup/PvRadioGroup.vue.d.ts +30 -0
  122. package/pv-components/dist/vue/ai/components/base/PvRadioGroup/types.d.ts +5 -0
  123. package/pv-components/dist/vue/ai/components/base/PvRange/PvRange.vue.d.ts +36 -0
  124. package/pv-components/dist/vue/ai/components/base/PvRange/types.d.ts +44 -0
  125. package/pv-components/dist/vue/ai/components/base/PvRating/PvRating.vue.d.ts +15 -0
  126. package/pv-components/dist/vue/ai/components/base/PvRating/types.d.ts +4 -0
  127. package/pv-components/dist/vue/ai/components/base/PvReleaseBadge/PvReleaseBadge.vue.d.ts +10 -0
  128. package/pv-components/dist/vue/ai/components/base/PvReleaseBadge/types.d.ts +1 -0
  129. package/pv-components/dist/vue/ai/components/base/PvSearchInput/PvSearchInput.vue.d.ts +33 -0
  130. package/pv-components/dist/vue/ai/components/base/PvSegmentedControl/PvSegmentedControl.vue.d.ts +23 -0
  131. package/pv-components/dist/vue/ai/components/base/PvSegmentedControl/types.d.ts +18 -0
  132. package/pv-components/dist/vue/ai/components/base/PvSelectButton/PvSelectButton.vue.d.ts +85 -0
  133. package/pv-components/dist/vue/ai/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +14 -0
  134. package/pv-components/dist/vue/ai/components/base/PvSelectButton/PvSelectButtonTrigger/types.d.ts +27 -0
  135. package/pv-components/dist/vue/ai/components/base/PvSelectButton/mocks.d.ts +21 -0
  136. package/pv-components/dist/vue/ai/components/base/PvSelectButton/types.d.ts +3 -0
  137. package/pv-components/dist/vue/ai/components/base/PvSelectableCard/PvSelectableCard.vue.d.ts +30 -0
  138. package/pv-components/dist/vue/ai/components/base/PvSidebar/PvSidebar.vue.d.ts +38 -0
  139. package/pv-components/dist/vue/ai/components/base/PvSkeleton/PvSkeleton.vue.d.ts +17 -0
  140. package/pv-components/dist/vue/ai/components/base/PvSkeleton/types.d.ts +8 -0
  141. package/pv-components/dist/vue/ai/components/base/PvSpinner/PvSpinner.vue.d.ts +13 -0
  142. package/pv-components/dist/vue/ai/components/base/PvSpinner/types.d.ts +3 -0
  143. package/pv-components/dist/vue/ai/components/base/PvSplitButton/PvSplitButton.vue.d.ts +27 -0
  144. package/pv-components/dist/vue/ai/components/base/PvSplitButton/types.d.ts +12 -0
  145. package/pv-components/dist/vue/ai/components/base/PvSprite/PvSprite.vue.d.ts +9 -0
  146. package/pv-components/dist/vue/ai/components/base/PvStepper/PvStepper.vue.d.ts +16 -0
  147. package/pv-components/dist/vue/ai/components/base/PvSuggestionTag/PvSuggestionTag.vue.d.ts +37 -0
  148. package/pv-components/dist/vue/ai/components/base/PvSwitch/PvSwitch.vue.d.ts +34 -0
  149. package/pv-components/dist/vue/ai/components/base/PvSwitch/types.d.ts +2 -0
  150. package/pv-components/dist/vue/ai/components/base/PvTabList/PvTabList.vue.d.ts +12 -0
  151. package/pv-components/dist/vue/ai/components/base/PvTableOfContents/PvTableOfContents.vue.d.ts +19 -0
  152. package/pv-components/dist/vue/ai/components/base/PvTableOfContents/types.d.ts +6 -0
  153. package/pv-components/dist/vue/ai/components/base/PvTabs/PvTabs.vue.d.ts +20 -0
  154. package/pv-components/dist/vue/ai/components/base/PvTabs/types.d.ts +10 -0
  155. package/pv-components/dist/vue/ai/components/base/PvTag/PvTag.vue.d.ts +53 -0
  156. package/pv-components/dist/vue/ai/components/base/PvTag/types.d.ts +3 -0
  157. package/pv-components/dist/vue/ai/components/base/PvTextArea/PvTextArea.vue.d.ts +51 -0
  158. package/pv-components/dist/vue/ai/components/base/PvTextArea/types.d.ts +2 -0
  159. package/pv-components/dist/vue/ai/components/base/PvToast/PvToast.vue.d.ts +33 -0
  160. package/pv-components/dist/vue/ai/components/base/PvToast/types.d.ts +1 -0
  161. package/pv-components/dist/vue/ai/components/base/PvToggleButton/PvToggleButton.vue.d.ts +48 -0
  162. package/pv-components/dist/vue/ai/components/base/PvToggleButton/types.d.ts +3 -0
  163. package/pv-components/dist/vue/ai/components/base/PvToggleGroup/PvToggleGroup.vue.d.ts +12 -0
  164. package/pv-components/dist/vue/ai/components/base/PvToggleGroup/types.d.ts +12 -0
  165. package/pv-components/dist/vue/ai/components/base/PvTooltip/PvTooltip.vue.d.ts +41 -0
  166. package/pv-components/dist/vue/ai/components/base/PvTooltip/types.d.ts +4 -0
  167. package/pv-components/dist/vue/ai/components/base/PvTooltipV2/PvTooltipV2.vue.d.ts +28 -0
  168. package/pv-components/dist/vue/ai/components/base/PvTooltipV2/types.d.ts +14 -0
  169. package/pv-components/dist/vue/ai/components/base/PvTree/PvButtonTreeItem.vue.d.ts +36 -0
  170. package/pv-components/dist/vue/ai/components/base/PvTree/PvCheckboxTreeItem.vue.d.ts +36 -0
  171. package/pv-components/dist/vue/ai/components/base/PvTree/PvSimpleItemTree.vue.d.ts +7 -0
  172. package/pv-components/dist/vue/ai/components/base/PvTree/PvSimpleNestedTree.vue.d.ts +31 -0
  173. package/pv-components/dist/vue/ai/components/base/PvTree/PvSimpleNestedTreeItem.vue.d.ts +35 -0
  174. package/pv-components/dist/vue/ai/components/base/PvTree/PvTree.vue.d.ts +31 -0
  175. package/pv-components/dist/vue/ai/components/base/PvTree/PvTreeGroup.vue.d.ts +18 -0
  176. package/pv-components/dist/vue/ai/components/base/PvTree/PvTreeItem.vue.d.ts +37 -0
  177. package/pv-components/dist/vue/ai/components/base/PvTree/PvTreeReorderIcon.vue.d.ts +3 -0
  178. package/pv-components/dist/vue/ai/components/base/PvTree/composables/useDragAndDrop.d.ts +23 -0
  179. package/pv-components/dist/vue/ai/components/base/PvTree/composables/useDragAndDropIndicator.d.ts +8 -0
  180. package/pv-components/dist/vue/ai/components/base/PvTree/composables/useDraggingState.d.ts +40 -0
  181. package/pv-components/dist/vue/ai/components/base/PvTree/composables/useHoverIcon.d.ts +6 -0
  182. package/pv-components/dist/vue/ai/components/base/PvTree/composables/useTreeUpdate.d.ts +8 -0
  183. package/pv-components/dist/vue/ai/components/base/PvTree/symbols.d.ts +12 -0
  184. package/pv-components/dist/vue/ai/components/base/PvTree/types.d.ts +61 -0
  185. package/pv-components/dist/vue/ai/components/base/PvWidget/PvWidget.vue.d.ts +18 -0
  186. package/pv-components/dist/vue/ai/components/base/baseProps.d.ts +18 -0
  187. package/pv-components/dist/vue/ai/components/base/index.d.ts +92 -0
  188. package/pv-components/dist/vue/ai/components/layout/PvSidePanel/PvSidePanel.vue.d.ts +24 -0
  189. package/pv-components/dist/vue/ai/pv-components-ai.mjs +951 -0
  190. package/pv-components/dist/vue/ai/pv-components-ai.mjs.map +1 -0
  191. package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +32 -0
  192. package/pv-components/dist/vue/base/pv-components-base.mjs +158 -136
  193. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  194. package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +32 -0
  195. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue.d.ts +2 -1
  196. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +1 -3
  197. package/pv-components/dist/vue/visualizations/components/visualizations/index.d.ts +1 -1
  198. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +40 -17
  199. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  200. package/pv-components/dist/web/components/pv-confirmation/pv-confirmation.js +6441 -0
  201. package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +950 -928
  202. package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +2 -0
  203. package/pv-components/dist/web/components/pv-prompt-input/pv-prompt-input.js +6541 -0
  204. package/pv-components/dist/web/components/pv-question/pv-question.js +6704 -0
  205. package/pv-components/dist/web/components/pv-reasoning/pv-reasoning.js +6418 -0
  206. package/pv-components/dist/web/components/pv-tool/pv-tool.js +6450 -0
  207. package/pv-components/dist/web/pv-components.iife.js +39 -39
  208. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -25,6 +25,8 @@ export interface PvFilterPanelOption {
25
25
  /** Explicit raw filter value. Prefer this over metadata.rawValue or scoped value parsing for new consumers. */
26
26
  rawValue?: PvFilterPanelOptionRawValue;
27
27
  resultCount?: PvFilterPanelResultCount | null;
28
+ /** Optional section label used to group options under a heading in section-aware UIs (e.g. PvFilterModal). */
29
+ section?: string;
28
30
  subduedText?: string;
29
31
  subText?: string;
30
32
  totalChildCount?: number;
@@ -34,6 +36,22 @@ export interface PvFilterPanelFilterGroup {
34
36
  fields: string[];
35
37
  label: string;
36
38
  }
39
+ /**
40
+ * Describes a section heading in section-aware UIs (e.g. PvFilterModal). Options are grouped by their
41
+ * `section` value; the matching def is forwarded to the section header renderer so it can decide how
42
+ * to display the heading. Configured per column via `colDef.context.filterSectionDefs`.
43
+ *
44
+ * Only `key`/`label` are typed; put anything else the renderer needs (icon, tooltip, counter, badge…)
45
+ * on `metadata` so new display needs don't require changing this type.
46
+ */
47
+ export interface PvFilterPanelSectionDef {
48
+ /** Section key matching an option's `section` value. */
49
+ key: string;
50
+ /** Display label for the section heading. Defaults to `key`. */
51
+ label?: string;
52
+ /** Arbitrary display data forwarded to the section header renderer (e.g. icon, tooltip, count). */
53
+ metadata?: Record<string, unknown>;
54
+ }
37
55
  export interface PvFilterPanelAggregateFieldHierarchy {
38
56
  /** Field represented by this hierarchy node. Parent/child relationships are determined by nesting. */
39
57
  field: string;
@@ -97,6 +115,18 @@ export interface PvFilterPanelColDefContext {
97
115
  * Optional renderer to override the default filter options list
98
116
  */
99
117
  filterOptionsRenderer?: Component;
118
+ /**
119
+ * Section heading defs for section-aware UIs (e.g. PvFilterModal), keyed by section value. Supplies
120
+ * the label and any extra display data (via `metadata`) forwarded to `filterSectionHeaderRenderer`.
121
+ * Also determines section order; sections present in the options but absent here render last.
122
+ */
123
+ filterSectionDefs?: PvFilterPanelSectionDef[];
124
+ /**
125
+ * Optional renderer for section headings in section-aware UIs (e.g. PvFilterModal). Receives
126
+ * `{ colDef, field, section, options }` and replaces the default section label text, allowing
127
+ * hover tooltips, counters, or custom markup. Sections come from each option's `section` field.
128
+ */
129
+ filterSectionHeaderRenderer?: Component;
100
130
  /**
101
131
  * An optional description to show in the tooltip explaining how the dropdown values are sorted
102
132
  */
@@ -337,6 +367,8 @@ export interface PvFilterPanelResolvedFilter {
337
367
  filterGroupOptions?: PvFilterPanelGroupOption[];
338
368
  filterHeaderRenderer?: Component;
339
369
  filterOptionsRenderer?: Component;
370
+ filterSectionDefs?: PvFilterPanelSectionDef[];
371
+ filterSectionHeaderRenderer?: Component;
340
372
  filterOptionsSortDescription?: string;
341
373
  filterOptionsSortTooltip?: string;
342
374
  hideOptionsSortDescription?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { AdvancedFilterModel, ColumnMovedEvent, ColumnResizedEvent, ColumnRowGroupChangedEvent, FilterChangedEvent, FilterModel } from 'ag-grid-enterprise';
2
2
  import { ColumnValueChangedEvent, FirstDataRenderedEvent, GridReadyEvent, RefreshServerSideParams, SortChangedEvent } from 'ag-grid-community';
3
3
  import { ChartStateChangedEvent, FilterValueResponseOption, FocusUpdateEvent } from '../../tables/PvDataTable/types';
4
- import { PvDataTableWithChartProps } from './types';
4
+ import { PvDataTableWithChartProps, ChipSection } from './types';
5
5
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
6
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
7
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
@@ -35,6 +35,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
35
35
  };
36
36
  getPvFilterModel: () => AdvancedFilterModel | FilterModel | null | undefined;
37
37
  setPvFilterModel: (model: FilterModel | AdvancedFilterModel | null) => boolean | undefined;
38
+ getChipSections: () => ChipSection[];
38
39
  }>): void;
39
40
  attrs: any;
40
41
  slots: {
@@ -74,11 +74,9 @@ export interface CrosslineOverlayGroup {
74
74
  */
75
75
  loading?: boolean;
76
76
  }
77
- export interface BenchmarkChip {
77
+ export interface BenchmarkChip extends Partial<Pick<VerticalLineOverlay, "label" | "color">> {
78
78
  key: string;
79
79
  loading: boolean;
80
- label?: string;
81
- color?: string;
82
80
  formattedValue?: string | number;
83
81
  }
84
82
  export interface ChipSection {
@@ -12,7 +12,7 @@ export type { PvChartWidgetMiniChartMode, PvChartWidgetProps, PvChartWidgetSlotP
12
12
  export type { PvDataWidgetChartType, PvDataWidgetChartTypeOption, PvDataWidgetColumnDefinition, PvDataWidgetDataRow, PvDataWidgetProps, PvDataWidgetViewType, } from '../charts/PvDataWidget/types';
13
13
  export { DEFAULT_DATA_WIDGET_ERROR_TEXT, usePvDataWidgetData } from '../charts/PvDataWidget/usePvDataWidgetData';
14
14
  export type { PvDataWidgetDataHandler, UsePvDataWidgetDataOptions, UsePvDataWidgetDataReturn, } from '../charts/PvDataWidget/usePvDataWidgetData';
15
- export type { CrosslineOverlayGroup, VerticalLineOverlay } from '../charts/PvDataTableWithChart/types';
15
+ export type { BenchmarkChip, ChipSection, CrosslineOverlayGroup, VerticalLineOverlay, } from '../charts/PvDataTableWithChart/types';
16
16
  export { constructAdvancedFilterCondition, convertFilterModelToAdvanced, filterModelContainsColId, mergeFilterModels, getSelectedValuesFromFilterModel, filterModelsEqual, mergeAdvancedFilterCondition, removeColumnFromAdvancedFilter, getSelectedValuesFromAdvancedFilterModel, isAdvancedFilterModel, isFilterModelEmpty, getSelectedValues, getSelectedValuesFromFilterModelByColId, updateSetFilter, updateMultiOrSetFilter, removeColumnFilter, excludeValueFromSetFilter, } from '../tables/PvDataTable/filters/filterHelpers';
17
17
  export type { AnyFilterModel } from '../tables/PvDataTable/filters/filterHelpers';
18
18
  export { RumContextKey, useRumContext, addRumAction, deferRumTask } from '../../functions/rum';
@@ -10260,7 +10260,7 @@ var Tu = { style: { "line-height": "20px" } }, Eu = { class: "pv-text-subdued pv
10260
10260
  });
10261
10261
  }, zt = null;
10262
10262
  return fe(() => ce.value, (e) => {
10263
- if (!e || ue.value) {
10263
+ if (!e || ce.value !== e || ue.value) {
10264
10264
  zt = null;
10265
10265
  return;
10266
10266
  }
@@ -11354,16 +11354,37 @@ var Tu = { style: { "line-height": "20px" } }, Eu = { class: "pv-text-subdued pv
11354
11354
  },
11355
11355
  setup(e) {
11356
11356
  let t = e, n = k(null), r = k(""), a = k([]), o = k(!1), s = m(Tl, k(null)), c = m(ql, k(!1)), { isServerSideFilter: l, filterModel: u, tableSearchHandler: d, applyTableSearchFilterModel: f } = pd(), p = (e) => {
11357
- !s?.value || typeof s.value.setGridOption != "function" || (l.value ? console.error("Server-side filtering with table free text search is not yet supported.") : s.value.setGridOption("quickFilterText", e));
11358
- }, h = (e) => {
11357
+ f(c.value ? Iu(e) : Fu(e));
11358
+ }, h = async (e) => {
11359
+ if (!s?.value || typeof s.value.setGridOption != "function") return;
11360
+ if (!l.value) {
11361
+ s.value.setGridOption("quickFilterText", e);
11362
+ return;
11363
+ }
11364
+ if (!d?.value) {
11365
+ console.error("Server-side free text search requires a tableSearchHandler to map the query to a filter model.");
11366
+ return;
11367
+ }
11368
+ let t = e.trim();
11369
+ if (!t) {
11370
+ p(null);
11371
+ return;
11372
+ }
11373
+ let n = {
11374
+ api: s.value,
11375
+ query: t,
11376
+ filterModel: u.value
11377
+ };
11378
+ p({ queryTerms: (await d.value(n) ?? []).filter((e) => e !== null) });
11379
+ }, g = (e) => {
11359
11380
  if (s?.value) {
11360
11381
  if (!l.value) {
11361
11382
  console.error("Client-side filtering with query builder is not yet supported");
11362
11383
  return;
11363
11384
  }
11364
- f(c.value ? Iu(e) : Fu(e));
11385
+ p(e);
11365
11386
  }
11366
- }, g = async (e) => {
11387
+ }, _ = async (e) => {
11367
11388
  if (!e || e.length < 2) {
11368
11389
  a.value = [];
11369
11390
  return;
@@ -11385,12 +11406,12 @@ var Tu = { style: { "line-height": "20px" } }, Eu = { class: "pv-text-subdued pv
11385
11406
  }), o.value = !1;
11386
11407
  };
11387
11408
  return fe(r, (e) => {
11388
- t.searchStyle === "query-builder" ? g(e) : t.searchStyle === "text" && p(e);
11409
+ t.searchStyle === "query-builder" ? _(e) : t.searchStyle === "text" && h(e);
11389
11410
  }, {
11390
11411
  debounce: 300,
11391
11412
  immediate: !0
11392
11413
  }), fe(n, (e) => {
11393
- t.searchStyle === "query-builder" && h(e);
11414
+ t.searchStyle === "query-builder" && g(e);
11394
11415
  }, {
11395
11416
  debounce: 300,
11396
11417
  immediate: !0,
@@ -13427,21 +13448,22 @@ function wp(e, t, n, r, i) {
13427
13448
  };
13428
13449
  }
13429
13450
  var Tp = (e, t) => {
13430
- if (t.length === 0 || e < t[0].bucketMin) return null;
13431
- for (let n = 0; n < t.length; n++) {
13432
- let r = t[n];
13433
- if (e <= r.bucketMax) {
13434
- let t = r.bucketMax - r.bucketMin, i = t > 0 ? (e - r.bucketMin) / t : 0;
13435
- return n + i;
13451
+ if (t.length === 0) return null;
13452
+ let n = Math.max(...t.map((e) => e.bucketMax));
13453
+ for (let r = 0; r < t.length; r++) {
13454
+ let i = t[r], a = e < i.bucketMax || i.bucketMax === n && e === n;
13455
+ if (e >= i.bucketMin && a) {
13456
+ let t = i.bucketMax - i.bucketMin, n = t > 0 ? (e - i.bucketMin) / t : 0;
13457
+ return r + n;
13436
13458
  }
13437
13459
  }
13438
13460
  return null;
13439
13461
  }, Ep = (e, t) => {
13440
- let n = +!!t;
13462
+ let n = +!!t, r = e + n * 2, i = +!t;
13441
13463
  return {
13442
13464
  categoryPadOffset: n,
13443
- axisMin: -1,
13444
- axisMax: e + n * 2 + 1
13465
+ axisMin: 0 - i,
13466
+ axisMax: r + i
13445
13467
  };
13446
13468
  }, Dp = (e, t) => {
13447
13469
  let { categoryPadOffset: n, axisMin: r, axisMax: i } = t;
@@ -14475,7 +14497,8 @@ var jp = { style: {
14475
14497
  refreshData: (e) => (p.value && Ze(p.value), m.value?.refreshData(e)),
14476
14498
  getFilterValueSelectedMetadataMap: Vt,
14477
14499
  getPvFilterModel: () => m.value?.getPvFilterModel(),
14478
- setPvFilterModel: (e) => m.value?.setPvFilterModel(e)
14500
+ setPvFilterModel: (e) => m.value?.setPvFilterModel(e),
14501
+ getChipSections: () => it.value
14479
14502
  }), S(() => {
14480
14503
  if (l.initialGridState) {
14481
14504
  let e = l.initialGridState.rowGroup?.groupColIds || [];