@turquoisehealth/pit-viper 2.131.0 → 2.133.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/_site/assets/css/pit-viper-a11y.css +3 -3
- package/_site/assets/css/pit-viper-v2-scoped.css +3 -3
- package/_site/assets/css/pit-viper-v2.css +3 -3
- package/_site/assets/css/pit-viper.css +2 -2
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-company-label-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-company-logo-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-company-tag-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-date-picker-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-date-time-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-dropdown-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-search-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-skeleton-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tree-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItem.vue.d.ts +2 -2
- package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItemVariant.vue.d.ts +2 -2
- package/pv-components/dist/vue/base/pv-components-base.mjs +4 -4
- package/pv-components/dist/vue/base/types.d.ts +2 -2
- package/pv-components/dist/vue/charts/pv-components-charts.d.ts +491 -0
- package/pv-components/dist/vue/charts/pv-components-charts.js +259 -0
- package/pv-components/dist/vue/charts/pv-components-charts.mjs +121834 -0
- package/pv-components/dist/vue/charts/pv-components-charts.umd.js +259 -0
- package/pv-components/dist/vue/tables/pv-components-tables.d.ts +299 -0
- package/pv-components/dist/vue/tables/pv-components-tables.js +223 -0
- package/pv-components/dist/vue/tables/pv-components-tables.mjs +47028 -0
- package/pv-components/dist/vue/tables/pv-components-tables.umd.js +223 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAccordion/PvAccordion.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAccordion/PvAccordion.vue.d.ts +49 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAccordion/types.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvActionBar/PvActionBar.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvActionBar/PvActionBar.vue.d.ts +34 -0
- package/pv-components/dist/vue/visualizations/components/base/PvActionBar/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAiButton/PvAiButton.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAiButton/PvAiButton.vue.d.ts +13 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAiButton/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAvatar/PvAvatar.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAvatar/PvAvatar.vue.d.ts +13 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAvatar/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAvatarGroup/PvAvatarGroup.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAvatarGroup/PvAvatarGroup.vue.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAvatarGroup/types.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvBanner/PvBanner.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvBanner/PvBanner.vue.d.ts +30 -0
- package/pv-components/dist/vue/visualizations/components/base/PvBanner/types.d.ts +11 -0
- package/pv-components/dist/vue/visualizations/components/base/PvBreadcrumbs/PvBreadcrumbs.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvBreadcrumbs/PvBreadcrumbs.vue.d.ts +7 -0
- package/pv-components/dist/vue/visualizations/components/base/PvBreadcrumbs/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/base/PvButton/PvButton.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvButton/PvButton.vue.d.ts +10 -0
- package/pv-components/dist/vue/visualizations/components/base/PvButton/PvButtonWithTooltip.vue.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvButton/helpers.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvButton/types.d.ts +28 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCard/PvCard.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCard/PvCard.vue.d.ts +27 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCard/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCheckbox/PvCheckbox.vue.d.ts +17 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCompanyLabel/PvCompanyLabel.vue.d.ts +11 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCompanyLabel/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCompanyLogo/PvCompanyLogo.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCompanyLogo/PvCompanyLogo.vue.d.ts +15 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCompanyLogo/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCompanyTag/PvCompanyTag.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCompanyTag/PvCompanyTag.vue.d.ts +27 -0
- package/pv-components/dist/vue/visualizations/components/base/PvComponentsConfig/primeVue.config.d.ts +14 -0
- package/pv-components/dist/vue/visualizations/components/base/PvComponentsConfig/usePvComponents.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCounterBadge/PvCounterBadge.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCounterBadge/PvCounterBadge.vue.d.ts +16 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCounterBadge/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvDatePicker/PvDatePicker.vue.d.ts +119 -0
- package/pv-components/dist/vue/visualizations/components/base/PvDateTime/PvDateTime.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvDateTime/PvDateTime.vue.d.ts +14 -0
- package/pv-components/dist/vue/visualizations/components/base/PvDateTime/useDateTime.d.ts +9 -0
- package/pv-components/dist/vue/visualizations/components/base/PvDateTime/useDateTime.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvDistributionBar/PvDistributionBar.vue.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/base/PvDrawer/PvDrawer.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvDrawer/PvDrawer.vue.d.ts +48 -0
- package/pv-components/dist/vue/visualizations/components/base/PvDropdown/PvDropdown.vue.d.ts +117 -0
- package/pv-components/dist/vue/visualizations/components/base/PvExpandableContent/PvExpandableContent.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvExpandableContent/PvExpandableContent.vue.d.ts +30 -0
- package/pv-components/dist/vue/visualizations/components/base/PvExpandableContent/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvGhostInput/PvGhostInput.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvGhostInput/PvGhostInput.vue.d.ts +39 -0
- package/pv-components/dist/vue/visualizations/components/base/PvGhostInput/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvIcon/PvIcon.vue.d.ts +10 -0
- package/pv-components/dist/vue/visualizations/components/base/PvInput/PvInput.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvInput/PvInput.vue.d.ts +40 -0
- package/pv-components/dist/vue/visualizations/components/base/PvInput/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvInsightCard/PvInsightCard.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvInsightCard/PvInsightCard.vue.d.ts +22 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/PvMenu.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/PvMenu.vue.d.ts +183 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/PvMenuControlPanel.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +18 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/PvMenuEmptyState.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/items/PvMenuBaseItem.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/items/PvMenuBaseItem.vue.d.ts +11 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/items/PvMenuItem.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/items/PvMenuItem.vue.d.ts +16 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/items/PvMenuItemAction.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/items/PvMenuItemAction.vue.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/items/PvMenuItemVariant.vue.d.ts +14 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/useMenuPosition.d.ts +66 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/useMenuPosition.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvModal/PvModal.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvModal/PvModal.vue.d.ts +30 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +126 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/mocks.d.ts +15 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +48 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPagination/PvPagination.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPagination/PvPagination.vue.d.ts +21 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPagination/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPagination/usePagination.d.ts +12 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPagination/usePagination.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPill/PvPill.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPill/PvPill.vue.d.ts +31 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPill/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopover/PvPopover.vue.d.ts +31 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverMenu/PvPopoverMenu.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverMenu/PvPopoverMenu.vue.d.ts +26 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +47 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +21 -0
- package/pv-components/dist/vue/visualizations/components/base/PvProgressBar/PvProgressBar.vue.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts +44 -0
- package/pv-components/dist/vue/visualizations/components/base/PvQueryBuilderInput/QueryBuilderMenuOptionRenderer.vue.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvQueryBuilderInput/QueryFormatter.vue.d.ts +20 -0
- package/pv-components/dist/vue/visualizations/components/base/PvQueryBuilderInput/useQueryBuilder.d.ts +44 -0
- package/pv-components/dist/vue/visualizations/components/base/PvQueryBuilderInput/useQueryBuilder.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvRating/PvRating.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvRating/PvRating.vue.d.ts +12 -0
- package/pv-components/dist/vue/visualizations/components/base/PvRating/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/base/PvReleaseBadge/PvReleaseBadge.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvReleaseBadge/PvReleaseBadge.vue.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvReleaseBadge/types.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSearchInput/PvSearchInput.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSearchInput/PvSearchInput.vue.d.ts +26 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSegmentedControl/PvSegmentedControl.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSegmentedControl/PvSegmentedControl.vue.d.ts +19 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSegmentedControl/types.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts +53 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +30 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/mocks.d.ts +21 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSelectableCard/PvSelectableCard.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSelectableCard/PvSelectableCard.vue.d.ts +25 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSkeleton/PvSkeleton.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSkeleton/PvSkeleton.vue.d.ts +11 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSkeleton/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSortableList/PvSortableList.vue.d.ts +25 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSpinner/PvSpinner.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSpinner/PvSpinner.vue.d.ts +11 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSpinner/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSprite/PvSprite.vue.d.ts +9 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSuggestionTag/PvSuggestionTag.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSuggestionTag/PvSuggestionTag.vue.d.ts +31 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSwitch/PvSwitch.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSwitch/PvSwitch.vue.d.ts +22 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSwitch/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTabList/PvTabList.vue.d.ts +12 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTabs/PvTabs.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTabs/PvTabs.vue.d.ts +18 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTabs/types.d.ts +7 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTag/PvTag.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTag/PvTag.vue.d.ts +41 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTag/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTextArea/PvTextArea.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTextArea/PvTextArea.vue.d.ts +40 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTextArea/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvToast/PvToast.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvToast/PvToast.vue.d.ts +30 -0
- package/pv-components/dist/vue/visualizations/components/base/PvToast/types.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvToggleButton/PvToggleButton.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvToggleButton/PvToggleButton.vue.d.ts +29 -0
- package/pv-components/dist/vue/visualizations/components/base/PvToggleButton/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvToggleGroup/PvToggleGroup.vue.d.ts +12 -0
- package/pv-components/dist/vue/visualizations/components/base/PvToggleGroup/types.d.ts +12 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTooltip/PvTooltip.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTooltip/PvTooltip.vue.d.ts +36 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTooltip/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTooltipV2/PvTooltipV2.vue.d.ts +28 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTooltipV2/types.d.ts +10 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/PvButtonTreeItem.vue.d.ts +33 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/PvCheckboxTreeItem.vue.d.ts +33 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/PvSimpleItemTree.vue.d.ts +7 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/PvSimpleNestedTree.vue.d.ts +21 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/PvTree.vue.d.ts +22 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/PvTreeItem.vue.d.ts +23 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/PvTreeReorderIcon.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/types.d.ts +31 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/useDragAndDrop.d.ts +16 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/useHoverIcon.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/base/PvWidget/PvWidget.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvWidget/PvWidget.vue.d.ts +18 -0
- package/pv-components/dist/vue/visualizations/components/base/baseProps.d.ts +16 -0
- package/pv-components/dist/vue/visualizations/components/base/index.d.ts +64 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvChart/PvChart.vue.d.ts +48 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvChart/constants.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvChart/functions.d.ts +42 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvChart/types.d.ts +25 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/PvDataTableWithChart.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue.d.ts +39 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/constants.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +14 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionsPanel.vue.d.ts +22 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +76 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvMapChart/PvMapChart.vue.d.ts +45 -0
- package/pv-components/dist/vue/visualizations/components/charts/chart-components/maps/MapGradient.vue.d.ts +11 -0
- package/pv-components/dist/vue/visualizations/components/charts/chart-components/maps/MapRegionSelector.vue.d.ts +16 -0
- package/pv-components/dist/vue/visualizations/components/charts/chart-components/maps/topologies/alaskaStateTopology.d.ts +20 -0
- package/pv-components/dist/vue/visualizations/components/charts/chart-components/maps/topologies/hawaiiStateTopology.d.ts +20 -0
- package/pv-components/dist/vue/visualizations/components/charts/chart-components/maps/topologies/usStateTopology.d.ts +28 -0
- package/pv-components/dist/vue/visualizations/components/charts/chart-components/maps/useTopology.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/charts/themes.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/layout/PvSidePanel/PvSidePanel.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/layout/PvSidePanel/PvSidePanel.vue.d.ts +24 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/PvDataTable.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/PvDataTable.vue.d.ts +38 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/helpers.d.ts +24 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/helpers.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/ExportMenu.vue.d.ts +16 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterPanel.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterPanel.vue.d.ts +23 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/GroupAggCellRenderer.vue.d.ts +17 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/GroupBySelector.vue.d.ts +17 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/GroupedCellRenderer.vue.d.ts +16 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/HeaderCellRenderer.vue.d.ts +12 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/PaginationPanel.vue.d.ts +16 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/RowCountCellRenderer.vue.d.ts +17 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/RowLoadingCellRenderer.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/SetFilter.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/SetFilter.vue.d.ts +35 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/TableSearch.vue.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/TableTooltip.vue.d.ts +7 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/TagCellRenderer.vue.d.ts +7 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/formatting.d.ts +29 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/formatting.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +352 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +47 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFocus.d.ts +27 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFocus.spec.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/symbols.d.ts +54 -0
- package/pv-components/dist/vue/visualizations/components/tables/themes.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/visualizations/index.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2953 -2951
- package/pv-components/dist/vue/visualizations/types.d.ts +2 -2
- package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +7 -7
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +2 -2
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2 -2
- package/pv-components/dist/web/pv-components.iife.js +2 -2
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { AgCartesianSeriesTooltipRendererParams } from 'ag-charts-enterprise';
|
|
2
|
+
import { ColDefDataType } from './table-components/formatting';
|
|
3
|
+
import { Component, ComputedRef, CSSProperties, Ref } from 'vue';
|
|
4
|
+
import { CellSelectionOptions, Column, FilterModel, GetContextMenuItemsParams, GridState, IServerSideGetRowsParams, ProcessCellForExportParams, ProcessDataFromClipboardParams, RowSelectionOptions, Theme, ValueFormatterFunc } from 'ag-grid-enterprise';
|
|
5
|
+
import { ColDef, GridApi, IsGroupOpenByDefaultParams, IsServerSideGroupOpenByDefaultParams, RefreshServerSideParams } from 'ag-grid-community';
|
|
6
|
+
import { QueryBuilderSuggestionMenuOption } from '../../base/PvQueryBuilderInput/useQueryBuilder';
|
|
7
|
+
import { MenuOption, PvMultiSelectButtonSlotProps } from '../../base';
|
|
8
|
+
export type TableSearchStyle = "query-builder" | "text";
|
|
9
|
+
/**
|
|
10
|
+
* Context passed to custom filter renderer components via slotContext
|
|
11
|
+
*/
|
|
12
|
+
export interface FilterSlotContext {
|
|
13
|
+
gridApi?: GridApi;
|
|
14
|
+
colDef?: ColDef;
|
|
15
|
+
/** Whether the table is currently loading rows */
|
|
16
|
+
rowsLoading?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Props passed to custom filter renderer components (header, footer, empty results, options)
|
|
20
|
+
* Extends PvMultiSelectButton slot props with MenuOption specialized to FilterValueResponseOption
|
|
21
|
+
*/
|
|
22
|
+
export interface FilterRendererProps extends Omit<PvMultiSelectButtonSlotProps<FilterValueResponseOption, FilterSlotContext>, 'selectedItems'> {
|
|
23
|
+
selectedItems: MenuOption<FilterValueResponseOption>[];
|
|
24
|
+
}
|
|
25
|
+
export interface FocusUpdateEvent {
|
|
26
|
+
focuses?: string[] | null | undefined;
|
|
27
|
+
filterField?: string | null | undefined;
|
|
28
|
+
}
|
|
29
|
+
export interface ChartState {
|
|
30
|
+
seriesField?: string | null;
|
|
31
|
+
secondarySeriesField?: string | null;
|
|
32
|
+
chartType?: string | null;
|
|
33
|
+
chartSort?: string | null;
|
|
34
|
+
chartCategoryFields?: string[] | null;
|
|
35
|
+
tableGrouped?: boolean | null;
|
|
36
|
+
}
|
|
37
|
+
export interface ChartStateChangedEvent {
|
|
38
|
+
api: GridApi | null;
|
|
39
|
+
newState: ChartState | null;
|
|
40
|
+
oldState: ChartState | null;
|
|
41
|
+
}
|
|
42
|
+
export interface TooltipDatum {
|
|
43
|
+
[key: string]: string | number | undefined;
|
|
44
|
+
}
|
|
45
|
+
export type ChartTooltipRenderer = (params: AgCartesianSeriesTooltipRendererParams<TooltipDatum>) => string;
|
|
46
|
+
export interface ColDefContextProps<T> {
|
|
47
|
+
aggFuncDisplayName?: string;
|
|
48
|
+
chartSeriesDisplayName?: string;
|
|
49
|
+
dataType?: ColDefDataType;
|
|
50
|
+
emptyFilterResultsRenderer?: Component;
|
|
51
|
+
filterSelectMax?: number;
|
|
52
|
+
filterSelectMin?: number;
|
|
53
|
+
filterOptionsSortDescription?: string;
|
|
54
|
+
filterOptionsSortTooltip?: string;
|
|
55
|
+
filterOptionsRenderer?: Component;
|
|
56
|
+
filterSearch?: boolean;
|
|
57
|
+
filterRequiredToGroup?: boolean;
|
|
58
|
+
filterValueFormatter?: string | ValueFormatterFunc<T> | undefined;
|
|
59
|
+
filterHeaderRenderer?: Component;
|
|
60
|
+
filterFooterRenderer?: Component;
|
|
61
|
+
isArrayField?: boolean;
|
|
62
|
+
metadataDisplayFields?: string[];
|
|
63
|
+
valueDecimals?: number;
|
|
64
|
+
visibilityState?: "alwaysShow" | "alwaysHide";
|
|
65
|
+
hideFromCharting?: boolean;
|
|
66
|
+
chartOnSecondaryAxes?: boolean;
|
|
67
|
+
customTooltipRenderer?: ChartTooltipRenderer;
|
|
68
|
+
queryColIds?: string[];
|
|
69
|
+
aggregateFields?: string[];
|
|
70
|
+
}
|
|
71
|
+
export interface FilterValuesSetHandlerParams<T> {
|
|
72
|
+
api: GridApi<T>;
|
|
73
|
+
colDef: ColDef<T>;
|
|
74
|
+
column: Column<T>;
|
|
75
|
+
filterModel?: FilterModel | null;
|
|
76
|
+
query?: string;
|
|
77
|
+
}
|
|
78
|
+
export interface TableSearchHandlerParams<T> {
|
|
79
|
+
api: GridApi<T>;
|
|
80
|
+
filterModel?: FilterModel | null;
|
|
81
|
+
query?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface FilterValueMatchResult {
|
|
84
|
+
matchedField?: string;
|
|
85
|
+
matchedValue?: string;
|
|
86
|
+
}
|
|
87
|
+
export interface FilterValueResponseOption {
|
|
88
|
+
value: string;
|
|
89
|
+
label?: string;
|
|
90
|
+
subduedText?: string;
|
|
91
|
+
isPreference?: boolean;
|
|
92
|
+
isSelectable?: boolean;
|
|
93
|
+
metadata?: any;
|
|
94
|
+
colField?: string;
|
|
95
|
+
matchedValue?: string;
|
|
96
|
+
matchedField?: string;
|
|
97
|
+
}
|
|
98
|
+
export interface PvDataTableProps<T> {
|
|
99
|
+
/**
|
|
100
|
+
* Column definitions for the table. Follows the AG Grid column definition format.
|
|
101
|
+
*/
|
|
102
|
+
colDefs?: ColDef<T>[];
|
|
103
|
+
/**
|
|
104
|
+
* Array of JSON data objects to be displayed in the table. Only used for client-side row model.
|
|
105
|
+
*/
|
|
106
|
+
rowData?: T[];
|
|
107
|
+
/**
|
|
108
|
+
* Handler to fetch server-side data. Only used for server-side row model.
|
|
109
|
+
*/
|
|
110
|
+
serverSideRowHandler?: (params: IServerSideGetRowsParams<T>, isCsvExport?: boolean) => void;
|
|
111
|
+
/**
|
|
112
|
+
* Handler to fetch filter values for server-side filtering. Only used for server-side row model.
|
|
113
|
+
*/
|
|
114
|
+
filterValuesSetHandler?: (params: FilterValuesSetHandlerParams<T>) => Promise<(FilterValueResponseOption | null)[]>;
|
|
115
|
+
/**
|
|
116
|
+
* Handler to return suggestions for applying search terms to the table.
|
|
117
|
+
*/
|
|
118
|
+
tableSearchHandler?: (params: TableSearchHandlerParams<T>) => Promise<(QueryBuilderSuggestionMenuOption | null)[]>;
|
|
119
|
+
/**
|
|
120
|
+
* Specifies an initial set of filters/groups/sort/etc. to be applied to the table.
|
|
121
|
+
*/
|
|
122
|
+
initialGridState?: GridState;
|
|
123
|
+
/**
|
|
124
|
+
* Specifies an initial set of metadata values for filters that require them
|
|
125
|
+
*/
|
|
126
|
+
initialFilterValueMap?: Record<string, (FilterValueResponseOption | null)[]>;
|
|
127
|
+
/**
|
|
128
|
+
* Override the Pit Viper them
|
|
129
|
+
*/
|
|
130
|
+
theme?: Theme;
|
|
131
|
+
/**
|
|
132
|
+
* For aggregated columns, only show the aggregate at the final group level
|
|
133
|
+
*/
|
|
134
|
+
displayBaseAggregationsOnly?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Display Row Number in the first column
|
|
137
|
+
*/
|
|
138
|
+
displayRowNumber?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Display Counts on Grouped Rows (requires allChildrenCount on the object)
|
|
141
|
+
*/
|
|
142
|
+
displayGroupCount?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Displays Icon on Preferences that emits handle-settings-icon event
|
|
145
|
+
*/
|
|
146
|
+
displayPreferencesIcon?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Display button to hide/show columns
|
|
149
|
+
*/
|
|
150
|
+
enableColumnVisibilitySelector?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Display everything focus view related
|
|
153
|
+
*/
|
|
154
|
+
enableFocusView?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Display button to group by columns
|
|
157
|
+
*/
|
|
158
|
+
enableGroupBySelector?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Display input to search within the table
|
|
161
|
+
*/
|
|
162
|
+
enableTableSearch?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Allows for slot content to be placed above the chart
|
|
165
|
+
*/
|
|
166
|
+
enableTopSlot?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Display button to open the vertical filter drawer
|
|
169
|
+
*/
|
|
170
|
+
enableVerticalFilterPanel?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Number of groups to support (defaults to 2)
|
|
173
|
+
*/
|
|
174
|
+
rowGroupLimit?: number;
|
|
175
|
+
/**
|
|
176
|
+
* Whether to expand all groups by default, based on level. -1 expands all groups
|
|
177
|
+
*/
|
|
178
|
+
groupDefaultExpanded?: number;
|
|
179
|
+
/**
|
|
180
|
+
* A handler to determine if a group should be open by default dynamically.
|
|
181
|
+
*/
|
|
182
|
+
isClientSideGroupOpenByDefault?: (params: IsGroupOpenByDefaultParams) => boolean;
|
|
183
|
+
/**
|
|
184
|
+
* A handler to determine whether a group should be open by default.
|
|
185
|
+
*/
|
|
186
|
+
isServerSideGroupOpenByDefault?: (params: IsServerSideGroupOpenByDefaultParams) => boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Display button to export table data as CSV
|
|
189
|
+
*/
|
|
190
|
+
enableCsvExport?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* # of rows to export to CSV - be careful overriding this as large exports can cause performance issues
|
|
193
|
+
*/
|
|
194
|
+
csvRowLimit?: number;
|
|
195
|
+
/**
|
|
196
|
+
* Optional param to implement custom logic for CSV export. If not specified, the serverSideRowHandler will be used to generate the CSV data.
|
|
197
|
+
*/
|
|
198
|
+
serverSideCsvHandler?: (params: IServerSideGetRowsParams<T>) => Promise<void>;
|
|
199
|
+
/**
|
|
200
|
+
* Field that can be used to identify row uniqueness for preserving expanded/collapsed row states
|
|
201
|
+
*/
|
|
202
|
+
uniqueRowIdField?: string;
|
|
203
|
+
/**
|
|
204
|
+
* If true, will not show data until at least one filter is applied
|
|
205
|
+
*/
|
|
206
|
+
requireFiltersToShowData?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* If true, will show loading state - can be used as a dynamic prop to show/hide loading state
|
|
209
|
+
*/
|
|
210
|
+
isLoading?: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Height of the table + filter container (must be a valid CSS height value, e.g. '500px', '50vh', etc.).
|
|
213
|
+
*/
|
|
214
|
+
containerHeight?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Min height of the table + filter container (must be a valid CSS height value, e.g. '500px', '50vh', etc.)
|
|
217
|
+
*/
|
|
218
|
+
containerMinHeight?: string;
|
|
219
|
+
/**
|
|
220
|
+
* Enables the ValidationModule for advanced debugging as well as additional console logging from AG Grid
|
|
221
|
+
*/
|
|
222
|
+
debugMode?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* If true, hide all row-grouped columns from the table.
|
|
225
|
+
*/
|
|
226
|
+
hideAllRowGroupedColumns?: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* Specifies the column to pin to the left of the table if at least one row grouping is enabled.
|
|
229
|
+
*/
|
|
230
|
+
leftPinnedColumnName?: string;
|
|
231
|
+
/**
|
|
232
|
+
* Enables pagination
|
|
233
|
+
*/
|
|
234
|
+
pagination?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* Set the pagination page size. Defaults to 50.
|
|
237
|
+
*/
|
|
238
|
+
paginationPageSize?: 20 | 50 | 100 | 200;
|
|
239
|
+
/**
|
|
240
|
+
* Row height for individual rows
|
|
241
|
+
*/
|
|
242
|
+
rowHeight?: number;
|
|
243
|
+
/**
|
|
244
|
+
* Set tooltip show delay. Detaults 1000ms
|
|
245
|
+
*/
|
|
246
|
+
tooltipShowDelay?: number;
|
|
247
|
+
/**
|
|
248
|
+
* Set tooltip hide delay.
|
|
249
|
+
*/
|
|
250
|
+
tooltipHideDelay?: number;
|
|
251
|
+
/**
|
|
252
|
+
* Hide the table rows (but still show the filter panel)
|
|
253
|
+
*/
|
|
254
|
+
hideTable?: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* DOM location to use for relocating the filter panel
|
|
257
|
+
*/
|
|
258
|
+
filterTeleportLocation?: string;
|
|
259
|
+
/**
|
|
260
|
+
* When specified, the filters will be put in their native spot within the AG Grid headers
|
|
261
|
+
*/
|
|
262
|
+
enableInlineFilters?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* List of column fields that can be focused
|
|
265
|
+
*/
|
|
266
|
+
focusableColumns?: string[];
|
|
267
|
+
tableSearchPlaceholder?: string;
|
|
268
|
+
tableSearchStyle?: TableSearchStyle;
|
|
269
|
+
maxHorizontalFilters?: number;
|
|
270
|
+
maintainColumnOrder?: boolean;
|
|
271
|
+
/**
|
|
272
|
+
* Custom CSS Properties
|
|
273
|
+
*/
|
|
274
|
+
customCssProperties?: {
|
|
275
|
+
agGridWrapper: CSSProperties;
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* If true, then the table is grouped.
|
|
279
|
+
*/
|
|
280
|
+
isTableGrouped?: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Options for configuring row selection
|
|
283
|
+
*/
|
|
284
|
+
rowSelection?: RowSelectionOptions;
|
|
285
|
+
/**
|
|
286
|
+
* If true, copies column headers along with cell values when using the clipboard.
|
|
287
|
+
*/
|
|
288
|
+
copyHeadersToClipboard?: boolean;
|
|
289
|
+
/**
|
|
290
|
+
* Controls cell-level selection behavior.
|
|
291
|
+
*
|
|
292
|
+
* - `false` (default): Cell selection is disabled and only row selection (if configured)
|
|
293
|
+
* is available.
|
|
294
|
+
* - `true`: Enables the default AG Grid cell selection behavior.
|
|
295
|
+
* - `CellSelectionOptions`: Pass an options object from `ag-grid-enterprise` to
|
|
296
|
+
* fine-tune how cell selection works (for example, enabling range selection,
|
|
297
|
+
* configuring selection mode, or adjusting drag/handle behavior).
|
|
298
|
+
*
|
|
299
|
+
* Use the boolean form when you only need to turn cell selection on or off.
|
|
300
|
+
* Use the `CellSelectionOptions` form when you need more granular configuration.
|
|
301
|
+
*/
|
|
302
|
+
cellSelection?: boolean | CellSelectionOptions;
|
|
303
|
+
/**
|
|
304
|
+
* If true, disables cutting data to the clipboard from the table.
|
|
305
|
+
*/
|
|
306
|
+
suppressCutToClipboard?: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* If true, disables pasting data from the clipboard into the table.
|
|
309
|
+
*/
|
|
310
|
+
suppressClipboardPaste?: boolean;
|
|
311
|
+
processCellForClipboard?: (params: ProcessCellForExportParams) => any;
|
|
312
|
+
processCellFromClipboard?: (params: ProcessCellForExportParams) => any;
|
|
313
|
+
processDataFromClipboard?: (params: ProcessDataFromClipboardParams) => string[][] | null;
|
|
314
|
+
/**
|
|
315
|
+
* A handler to customize the context menu items. If provided, will override the default behavior.
|
|
316
|
+
* Return an array of context menu item names, or undefined to use defaults.
|
|
317
|
+
*/
|
|
318
|
+
getContextMenuItems?: (params: GetContextMenuItemsParams<T>) => any;
|
|
319
|
+
/**
|
|
320
|
+
* If true, enables undo/redo functionality for cell editing.
|
|
321
|
+
*/
|
|
322
|
+
undoRedoCellEditing?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* The maximum number of undo/redo actions to store. Defaults to 10
|
|
325
|
+
*/
|
|
326
|
+
undoRedoCellEditingLimit?: number;
|
|
327
|
+
/**
|
|
328
|
+
* Properties to override the default `ColDef` properties applied to all columns.
|
|
329
|
+
*
|
|
330
|
+
* These overrides are **shallow-merged** with the defaults: only top-level
|
|
331
|
+
* properties are merged. Nested objects (for example `filterParams`,
|
|
332
|
+
* `headerClass`, etc.) are not deep-merged; providing an override for a
|
|
333
|
+
* nested object will replace the entire default object.
|
|
334
|
+
*/
|
|
335
|
+
defaultColDefOverrides?: Partial<ColDef<T>>;
|
|
336
|
+
/**
|
|
337
|
+
* Properties to override the defaults for `autoGroupColumnDef`.
|
|
338
|
+
*
|
|
339
|
+
* These overrides are **shallow-merged** with the defaults: only top-level
|
|
340
|
+
* properties are merged. Nested objects are not deep-merged and will replace
|
|
341
|
+
* the corresponding default object when provided.
|
|
342
|
+
*/
|
|
343
|
+
autoGroupColumnDefOverrides?: Partial<ColDef<T>>;
|
|
344
|
+
}
|
|
345
|
+
export interface PvDataTablePublicInterface {
|
|
346
|
+
getCsvData: () => Promise<string | null>;
|
|
347
|
+
refreshData: (params?: RefreshServerSideParams | null) => Promise<void>;
|
|
348
|
+
getFilterValueSelectedMetadataMap: () => Record<string, (FilterValueResponseOption | null)[]>;
|
|
349
|
+
availableRowGroupColumns: ComputedRef<ColDef[]>;
|
|
350
|
+
availableAggFuncColumns: ComputedRef<ColDef[]>;
|
|
351
|
+
rowGroupColumnFields: Ref<string[]>;
|
|
352
|
+
}
|
package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Column, FilterModel } from 'ag-grid-enterprise';
|
|
2
|
+
import { Ref, ComputedRef } from 'vue';
|
|
3
|
+
import { ColDef, GridApi } from 'ag-grid-community';
|
|
4
|
+
import { FilterValueMatchResult, FilterValueResponseOption, FilterValuesSetHandlerParams, TableSearchHandlerParams } from './types';
|
|
5
|
+
import { QueryTerm } from '../../base/PvQueryBuilderInput/useQueryBuilder';
|
|
6
|
+
export declare const createFilterStore: () => {
|
|
7
|
+
filterModel: Ref<FilterModel | null, FilterModel | null>;
|
|
8
|
+
filterLastUpdatedMap: Ref<Record<string, number>, Record<string, number>>;
|
|
9
|
+
filterLastFetchTimeMap: Ref<Record<string, number>, Record<string, number>>;
|
|
10
|
+
filterModelCleared: Ref<number, number>;
|
|
11
|
+
filterValuesLoadingStatus: Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
12
|
+
filterValueMap: Ref<Record<string, (FilterValueResponseOption | null)[]>, Record<string, (FilterValueResponseOption | null)[]>>;
|
|
13
|
+
filterValueSelectedMetadataMap: Ref<Record<string, (FilterValueResponseOption | null)[]>, Record<string, (FilterValueResponseOption | null)[]>>;
|
|
14
|
+
filterStoreHandler: Ref<((params: FilterValuesSetHandlerParams<unknown>) => Promise<(FilterValueResponseOption | null)[]>) | undefined, ((params: FilterValuesSetHandlerParams<unknown>) => Promise<(FilterValueResponseOption | null)[]>) | undefined>;
|
|
15
|
+
fetchFilterValues: (api: GridApi, colDef: ColDef, column: Column, filterModel?: FilterModel) => Promise<(string | null)[]>;
|
|
16
|
+
filterValueContext: (colField: string, value: string | null) => FilterValueResponseOption | null | undefined;
|
|
17
|
+
filterModelEmpty: ComputedRef<boolean>;
|
|
18
|
+
getFilterSelectedValues: (colField: string) => (string | null)[];
|
|
19
|
+
getSearchMatchDataFromFilterContext: (colDef: ColDef, option: FilterValueResponseOption | null | undefined) => FilterValueMatchResult;
|
|
20
|
+
isServerSideFilter: ComputedRef<boolean>;
|
|
21
|
+
stagedFilterModel: Ref<FilterModel | null, FilterModel | null>;
|
|
22
|
+
setFilterSelectedValues: (colField: string, selectedValues: (string | null)[]) => (string | null)[];
|
|
23
|
+
setFilterValueSearchText: (colField: string, searchText: string | null) => void;
|
|
24
|
+
tableSearchFilterModel: Ref<FilterModel | null, FilterModel | null>;
|
|
25
|
+
tableSearchHandler: Ref<((params: TableSearchHandlerParams<unknown>) => Promise<(QueryTerm | null)[]>) | undefined, ((params: TableSearchHandlerParams<unknown>) => Promise<(QueryTerm | null)[]>) | undefined>;
|
|
26
|
+
};
|
|
27
|
+
export declare const useFilterStore: () => {
|
|
28
|
+
filterModel: Ref<FilterModel | null, FilterModel | null>;
|
|
29
|
+
filterLastUpdatedMap: Ref<Record<string, number>, Record<string, number>>;
|
|
30
|
+
filterLastFetchTimeMap: Ref<Record<string, number>, Record<string, number>>;
|
|
31
|
+
filterModelCleared: Ref<number, number>;
|
|
32
|
+
filterValuesLoadingStatus: Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
33
|
+
filterValueMap: Ref<Record<string, (FilterValueResponseOption | null)[]>, Record<string, (FilterValueResponseOption | null)[]>>;
|
|
34
|
+
filterValueSelectedMetadataMap: Ref<Record<string, (FilterValueResponseOption | null)[]>, Record<string, (FilterValueResponseOption | null)[]>>;
|
|
35
|
+
filterStoreHandler: Ref<((params: FilterValuesSetHandlerParams<unknown>) => Promise<(FilterValueResponseOption | null)[]>) | undefined, ((params: FilterValuesSetHandlerParams<unknown>) => Promise<(FilterValueResponseOption | null)[]>) | undefined>;
|
|
36
|
+
fetchFilterValues: (api: GridApi, colDef: ColDef, column: Column, filterModel?: FilterModel) => Promise<(string | null)[]>;
|
|
37
|
+
filterValueContext: (colField: string, value: string | null) => FilterValueResponseOption | null | undefined;
|
|
38
|
+
filterModelEmpty: ComputedRef<boolean>;
|
|
39
|
+
getFilterSelectedValues: (colField: string) => (string | null)[];
|
|
40
|
+
getSearchMatchDataFromFilterContext: (colDef: ColDef, option: FilterValueResponseOption | null | undefined) => FilterValueMatchResult;
|
|
41
|
+
isServerSideFilter: ComputedRef<boolean>;
|
|
42
|
+
stagedFilterModel: Ref<FilterModel | null, FilterModel | null>;
|
|
43
|
+
setFilterSelectedValues: (colField: string, selectedValues: (string | null)[]) => (string | null)[];
|
|
44
|
+
setFilterValueSearchText: (colField: string, searchText: string | null) => void;
|
|
45
|
+
tableSearchFilterModel: Ref<FilterModel | null, FilterModel | null>;
|
|
46
|
+
tableSearchHandler: Ref<((params: TableSearchHandlerParams<unknown>) => Promise<(QueryTerm | null)[]>) | undefined, ((params: TableSearchHandlerParams<unknown>) => Promise<(QueryTerm | null)[]>) | undefined>;
|
|
47
|
+
};
|
package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
export interface FocusData {
|
|
3
|
+
focuses?: string[] | undefined;
|
|
4
|
+
focusType?: string | null | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare const createFocusStore: (initialFocusData?: FocusData | null) => {
|
|
7
|
+
computedFocuses: ComputedRef<string[]>;
|
|
8
|
+
computedFocusType: ComputedRef<string | null>;
|
|
9
|
+
clearAllFocuses: () => void;
|
|
10
|
+
handleFocusUpdate: (option: string | null) => void;
|
|
11
|
+
isFocused: (option: string | null, filterField: string | null) => boolean;
|
|
12
|
+
removeFocus: (option: string | null) => void;
|
|
13
|
+
isFocusable: (filterFields: string[]) => boolean;
|
|
14
|
+
setFocusType: (newFocusType: string | null | undefined) => void;
|
|
15
|
+
setFocuses: (newFocuses: string[]) => void;
|
|
16
|
+
};
|
|
17
|
+
export declare const useFocusStore: () => {
|
|
18
|
+
computedFocuses: ComputedRef<string[]>;
|
|
19
|
+
computedFocusType: ComputedRef<string | null>;
|
|
20
|
+
clearAllFocuses: () => void;
|
|
21
|
+
handleFocusUpdate: (option: string | null) => void;
|
|
22
|
+
isFocused: (option: string | null, filterField: string | null) => boolean;
|
|
23
|
+
removeFocus: (option: string | null) => void;
|
|
24
|
+
isFocusable: (filterFields: string[]) => boolean;
|
|
25
|
+
setFocusType: (newFocusType: string | null | undefined) => void;
|
|
26
|
+
setFocuses: (newFocuses: string[]) => void;
|
|
27
|
+
};
|
package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFocus.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { InjectionKey, Ref, ShallowRef } from 'vue';
|
|
2
|
+
import { Column, GridApi, SortModelItem, ColDef } from 'ag-grid-community';
|
|
3
|
+
import { MenuOption } from '../../types';
|
|
4
|
+
import { createFilterStore } from './PvDataTable/useFilterStore';
|
|
5
|
+
import { OptionWithFormatterAndDataType } from '../charts/PvDataTableWithChart/types';
|
|
6
|
+
import { createFocusStore } from './PvDataTable/useFocus';
|
|
7
|
+
export declare const FilterStoreKey: InjectionKey<ReturnType<typeof createFilterStore>>;
|
|
8
|
+
export declare const FocusStoreKey: InjectionKey<ReturnType<typeof createFocusStore>>;
|
|
9
|
+
export type SortState = Ref<SortModelItem[]>;
|
|
10
|
+
export declare const SortStateKey: InjectionKey<SortState>;
|
|
11
|
+
export type GridApiState = ShallowRef<GridApi | null>;
|
|
12
|
+
export declare const GridApiKey: InjectionKey<GridApiState>;
|
|
13
|
+
export type ColumnDisplayOrderState = Ref<Column[] | null>;
|
|
14
|
+
export declare const ColumnDisplayOrderKey: InjectionKey<ColumnDisplayOrderState>;
|
|
15
|
+
export type CurrentlyActiveFilterState = Ref<ColDef | null>;
|
|
16
|
+
export declare const CurrentlyActiveFilterKey: InjectionKey<CurrentlyActiveFilterState>;
|
|
17
|
+
export type AvailableFilterColumnsState = Ref<ColDef[]>;
|
|
18
|
+
export declare const AvailableFilterColumnsKey: InjectionKey<AvailableFilterColumnsState>;
|
|
19
|
+
export type AvailableRowGroupColumnsState = Ref<ColDef[]>;
|
|
20
|
+
export declare const AvailableRowGroupColumnsKey: InjectionKey<AvailableRowGroupColumnsState>;
|
|
21
|
+
export type RowGroupColumnFieldsState = Ref<string[]>;
|
|
22
|
+
export declare const RowGroupColumnFieldsKey: InjectionKey<RowGroupColumnFieldsState>;
|
|
23
|
+
export type GroupColumnCellValueColumnState = Ref<Column | null>;
|
|
24
|
+
export declare const GroupColumnCellValueColumnKey: InjectionKey<GroupColumnCellValueColumnState>;
|
|
25
|
+
export type ExpandedRowsState = Ref<Record<number, boolean>>;
|
|
26
|
+
export declare const ExpandedRowsKey: InjectionKey<ExpandedRowsState>;
|
|
27
|
+
export type FirstDataRenderedState = Ref<boolean>;
|
|
28
|
+
export declare const FirstDataRenderedKey: InjectionKey<FirstDataRenderedState>;
|
|
29
|
+
export type RowsLoadingState = Ref<boolean>;
|
|
30
|
+
export declare const RowsLoadingKey: InjectionKey<RowsLoadingState>;
|
|
31
|
+
export type CurrentPageState = Ref<number>;
|
|
32
|
+
export declare const CurrentPageKey: InjectionKey<CurrentPageState>;
|
|
33
|
+
export type TotalPageState = Ref<number>;
|
|
34
|
+
export declare const TotalPageKey: InjectionKey<TotalPageState>;
|
|
35
|
+
export type ActiveChartFilterOptionState = Ref<string>;
|
|
36
|
+
export declare const ActiveChartFilterOptionKey: InjectionKey<ActiveChartFilterOptionState>;
|
|
37
|
+
export type RowGroupColumnsState = Ref<string[]>;
|
|
38
|
+
export declare const RowGroupColumnsKey: InjectionKey<RowGroupColumnsState>;
|
|
39
|
+
export type ChartTypesState = Ref<MenuOption[]>;
|
|
40
|
+
export declare const ChartTypeKey: InjectionKey<ChartTypesState>;
|
|
41
|
+
export type SortTypesState = Ref<MenuOption[]>;
|
|
42
|
+
export declare const SortTypesKey: InjectionKey<SortTypesState>;
|
|
43
|
+
export type ActiveChartState = Ref<MenuOption | undefined>;
|
|
44
|
+
export declare const ActiveChartKey: InjectionKey<ActiveChartState>;
|
|
45
|
+
export type ActiveSortState = Ref<MenuOption | undefined>;
|
|
46
|
+
export declare const ActiveSortKey: InjectionKey<ActiveSortState>;
|
|
47
|
+
export type ActiveSeriesKey = Ref<string | undefined>;
|
|
48
|
+
export declare const ActiveSeriesKey: InjectionKey<ActiveSeriesKey>;
|
|
49
|
+
export type AvailableSeriesKey = Ref<OptionWithFormatterAndDataType[]>;
|
|
50
|
+
export declare const AvailableSeriesKey: InjectionKey<AvailableSeriesKey>;
|
|
51
|
+
export type ActiveSecondarySeriesKey = Ref<string | undefined>;
|
|
52
|
+
export declare const ActiveSecondarySeriesKey: InjectionKey<ActiveSecondarySeriesKey>;
|
|
53
|
+
export type AvailableSecondarySeriesKey = Ref<OptionWithFormatterAndDataType[]>;
|
|
54
|
+
export declare const AvailableSecondarySeriesKey: InjectionKey<AvailableSecondarySeriesKey>;
|
|
@@ -2,4 +2,4 @@ export { default as PvChart } from '../charts/PvChart/PvChart.vue';
|
|
|
2
2
|
export { default as PvDataTableWithChart } from '../charts/PvDataTableWithChart/PvDataTableWithChart.vue';
|
|
3
3
|
export { default as PvMapChart } from '../charts/PvMapChart/PvMapChart.vue';
|
|
4
4
|
export { default as PvDataTable } from '../tables/PvDataTable/PvDataTable.vue';
|
|
5
|
-
export type { FocusUpdateEvent } from '../tables/PvDataTable/types';
|
|
5
|
+
export type { FocusUpdateEvent, FilterValueResponseOption, FilterRendererProps } from '../tables/PvDataTable/types';
|