@turquoisehealth/pit-viper 2.218.1 → 2.219.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/_site/assets/css/pit-viper-a11y.css +15 -5
- package/_site/assets/css/pit-viper-v2.css +48 -15
- 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-accordion-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-action-bar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ai-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-avatar-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-avatar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-banner-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-card-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-checkbox-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-confirmation-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-counter-badge-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-distribution-bar-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-empty-error-state-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-header-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-horizontal-scroller-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-icon-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-insight-card-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-modal-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-pagination-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-pill-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-progress-bar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-prompt-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-question-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-radio-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-range-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-rating-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-reasoning-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-release-badge-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-search-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-selectable-card-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-side-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +4950 -0
- package/pv-components/dist/stats/web/pv-skeleton-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-spinner-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sprite-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-stepper-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-switch-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tab-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-table-of-contents-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tag-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-text-area-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tool-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-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/stats/web/pv-widget-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvBanner/PvBanner.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvDatePicker/PvDatePicker.vue.d.ts +19 -9
- package/pv-components/dist/vue/ai/components/base/PvDropdown/PvDropdown.vue.d.ts +3 -3
- package/pv-components/dist/vue/ai/components/base/PvPopover/PvPopover.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvPopoverMenu/PvPopoverMenu.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +3 -1
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/types.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -0
- package/pv-components/dist/vue/ai/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +43 -0
- package/pv-components/dist/vue/ai/components/base/PvSidebarV2/types.d.ts +24 -0
- package/pv-components/dist/vue/ai/components/base/index.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvBanner/PvBanner.vue.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvDatePicker/PvDatePicker.vue.d.ts +19 -9
- package/pv-components/dist/vue/base/components/base/PvDropdown/PvDropdown.vue.d.ts +3 -3
- package/pv-components/dist/vue/base/components/base/PvPopover/PvPopover.vue.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvPopoverMenu/PvPopoverMenu.vue.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +3 -1
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +43 -0
- package/pv-components/dist/vue/base/components/base/PvSidebarV2/types.d.ts +24 -0
- package/pv-components/dist/vue/base/components/base/index.d.ts +1 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +1483 -1164
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvBanner/PvBanner.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvDatePicker/PvDatePicker.vue.d.ts +19 -9
- package/pv-components/dist/vue/visualizations/components/base/PvDropdown/PvDropdown.vue.d.ts +3 -3
- package/pv-components/dist/vue/visualizations/components/base/PvPopover/PvPopover.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverMenu/PvPopoverMenu.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +43 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSidebarV2/types.d.ts +24 -0
- package/pv-components/dist/vue/visualizations/components/base/index.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvTableOptionsPanel.vue.d.ts +3 -3
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/useBenchmarkOverlays.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterGroupMenu.vue.d.ts +3 -3
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +261 -218
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +2 -1
- package/pv-components/dist/web/components/pv-action-bar/pv-action-bar.js +2 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +26 -9
- package/pv-components/dist/web/components/pv-ai-button/pv-ai-button.js +2 -1
- package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +2 -1
- package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +2 -1
- package/pv-components/dist/web/components/pv-banner/pv-banner.js +415 -411
- package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +2 -1
- package/pv-components/dist/web/components/pv-button/pv-button.js +2 -1
- package/pv-components/dist/web/components/pv-card/pv-card.js +2 -1
- package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +2 -1
- package/pv-components/dist/web/components/pv-company-label/pv-company-label.js +2 -1
- package/pv-components/dist/web/components/pv-company-logo/pv-company-logo.js +2 -1
- package/pv-components/dist/web/components/pv-company-tag/pv-company-tag.js +2 -1
- package/pv-components/dist/web/components/pv-confirmation/pv-confirmation.js +2 -1
- package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +2 -1
- package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +571 -526
- package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +2 -1
- package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +2 -1
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +2 -1
- package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +2 -1
- package/pv-components/dist/web/components/pv-empty-error-state/pv-empty-error-state.js +2 -1
- package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +2 -1
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +492 -477
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +26 -9
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +2 -1
- package/pv-components/dist/web/components/pv-header/pv-header.js +2 -1
- package/pv-components/dist/web/components/pv-horizontal-scroller/pv-horizontal-scroller.js +2 -1
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +534 -517
- package/pv-components/dist/web/components/pv-icon/pv-icon.js +2 -1
- package/pv-components/dist/web/components/pv-input/pv-input.js +2 -1
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +2 -1
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +26 -9
- package/pv-components/dist/web/components/pv-modal/pv-modal.js +2 -1
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +26 -9
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +2 -1
- package/pv-components/dist/web/components/pv-pill/pv-pill.js +2 -1
- package/pv-components/dist/web/components/pv-popover/pv-popover.js +2 -1
- package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +2 -1
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +23 -8
- package/pv-components/dist/web/components/pv-progress-bar/pv-progress-bar.js +2 -1
- package/pv-components/dist/web/components/pv-prompt-input/pv-prompt-input.js +2 -1
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +26 -9
- package/pv-components/dist/web/components/pv-question/pv-question.js +2 -1
- package/pv-components/dist/web/components/pv-radio-group/pv-radio-group.js +2 -1
- package/pv-components/dist/web/components/pv-range/pv-range.js +2 -1
- package/pv-components/dist/web/components/pv-rating/pv-rating.js +2 -1
- package/pv-components/dist/web/components/pv-reasoning/pv-reasoning.js +2 -1
- package/pv-components/dist/web/components/pv-release-badge/pv-release-badge.js +2 -1
- package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +2 -1
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +621 -604
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +26 -9
- package/pv-components/dist/web/components/pv-selectable-card/pv-selectable-card.js +2 -1
- package/pv-components/dist/web/components/pv-side-panel/pv-side-panel.js +2 -1
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +438 -432
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +8077 -0
- package/pv-components/dist/web/components/pv-skeleton/pv-skeleton.js +2 -1
- package/pv-components/dist/web/components/pv-spinner/pv-spinner.js +2 -1
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +23 -8
- package/pv-components/dist/web/components/pv-sprite/pv-sprite.js +2 -1
- package/pv-components/dist/web/components/pv-stepper/pv-stepper.js +2 -1
- package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +2 -1
- package/pv-components/dist/web/components/pv-switch/pv-switch.js +2 -1
- package/pv-components/dist/web/components/pv-tab-list/pv-tab-list.js +2 -1
- package/pv-components/dist/web/components/pv-table-of-contents/pv-table-of-contents.js +2 -1
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +2 -1
- package/pv-components/dist/web/components/pv-tag/pv-tag.js +2 -1
- package/pv-components/dist/web/components/pv-text-area/pv-text-area.js +2 -1
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +2 -1
- package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +2 -1
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +26 -9
- package/pv-components/dist/web/components/pv-tool/pv-tool.js +2 -1
- package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +2 -1
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +26 -9
- package/pv-components/dist/web/components/pv-tree/pv-tree.js +2 -1
- package/pv-components/dist/web/components/pv-widget/pv-widget.js +2 -1
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PvSidebarNavItem, PvSidebarOrgEntity } from './types.ts';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
export interface PvSidebarV2Props {
|
|
4
|
+
disableToggle?: boolean;
|
|
5
|
+
variant?: "primary" | "secondary";
|
|
6
|
+
/** Organizations rendered in the org-switcher dropdown, with optional nested entities. */
|
|
7
|
+
organizations?: PvSidebarOrgEntity[];
|
|
8
|
+
/** Top-level nav items, with optional nested children rendered as an accordion / hover flyout. */
|
|
9
|
+
navItems?: PvSidebarNavItem[];
|
|
10
|
+
}
|
|
11
|
+
type __VLS_Props = PvSidebarV2Props;
|
|
12
|
+
type __VLS_PublicProps = {
|
|
13
|
+
modelValue?: boolean;
|
|
14
|
+
} & __VLS_Props;
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
slots: {
|
|
18
|
+
'sidebar-footer'?(_: {}): any;
|
|
19
|
+
default?(_: {}): any;
|
|
20
|
+
};
|
|
21
|
+
refs: {};
|
|
22
|
+
rootEl: HTMLDivElement;
|
|
23
|
+
};
|
|
24
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
|
+
declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
26
|
+
"update:modelValue": (value: boolean) => any;
|
|
27
|
+
} & {
|
|
28
|
+
change: (payload: {
|
|
29
|
+
collapsed: boolean;
|
|
30
|
+
}) => any;
|
|
31
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
32
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
33
|
+
onChange?: ((payload: {
|
|
34
|
+
collapsed: boolean;
|
|
35
|
+
}) => any) | undefined;
|
|
36
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface PvSidebarOrgEntity {
|
|
2
|
+
value: string | number;
|
|
3
|
+
label: string;
|
|
4
|
+
url: string;
|
|
5
|
+
avatarUrl?: string;
|
|
6
|
+
/** Marks this as the currently active organization/entity (server already knows from the current page). */
|
|
7
|
+
active?: boolean;
|
|
8
|
+
entities?: PvSidebarOrgEntity[];
|
|
9
|
+
}
|
|
10
|
+
export interface PvSidebarNavItem {
|
|
11
|
+
value: string | number;
|
|
12
|
+
label: string;
|
|
13
|
+
/** Leaf items link directly; parents with children may omit it. */
|
|
14
|
+
url?: string;
|
|
15
|
+
/** SVG symbol id, e.g. "home" — only rendered at the top level. */
|
|
16
|
+
icon?: string;
|
|
17
|
+
/** Marks this as the currently active item (server already knows from the current page). */
|
|
18
|
+
active?: boolean;
|
|
19
|
+
/** Extra attributes spread directly onto the rendered <a> (e.g. { "data-turbolinks": "false" }). */
|
|
20
|
+
linkAttrs?: Record<string, string>;
|
|
21
|
+
external?: boolean;
|
|
22
|
+
badge?: "beta" | "legacy";
|
|
23
|
+
children?: PvSidebarNavItem[];
|
|
24
|
+
}
|
|
@@ -70,6 +70,7 @@ export { default as PvQueryBuilderInput } from './PvQueryBuilderInput/PvQueryBui
|
|
|
70
70
|
export { default as PvRange } from './PvRange/PvRange.vue';
|
|
71
71
|
export { default as PvMenu } from './PvMenu/PvMenu.vue';
|
|
72
72
|
export { default as PvSidebar } from './PvSidebar/PvSidebar.vue';
|
|
73
|
+
export { default as PvSidebarV2 } from './PvSidebarV2/PvSidebarV2.vue';
|
|
73
74
|
export { default as PvMenuItem } from './PvMenu/items/PvMenuItem.vue';
|
|
74
75
|
export { default as PvTableOfContents } from './PvTableOfContents/PvTableOfContents.vue';
|
|
75
76
|
export { default as PvStepper } from './PvStepper/PvStepper.vue';
|
|
@@ -2,7 +2,7 @@ import { BannerOrientations, BannerVariants } from './types';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
export interface PvBannerProps {
|
|
4
4
|
/** Primary text displayed in the banner */
|
|
5
|
-
label
|
|
5
|
+
label?: string;
|
|
6
6
|
/** Secondary descriptive text displayed below the label */
|
|
7
7
|
description?: string;
|
|
8
8
|
/** Icon name to display alongside the banner content */
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Value of a date selection. A single `Date` in `single` selection mode, an array in
|
|
4
|
+
* `multiple` and `range` modes, where `range` uses `null` for an incomplete endpoint.
|
|
5
|
+
*
|
|
6
|
+
* Dates may be supplied as strings so the component can be driven by HTML attributes as
|
|
7
|
+
* `pv-date-picker`. The unions here are written out rather than aliased because Vue's
|
|
8
|
+
* macro type resolution has to see `Date` to emit it as a runtime prop type.
|
|
9
|
+
*/
|
|
10
|
+
export type PvDatePickerModelValue = Date | string | (Date | string | null)[] | null | undefined;
|
|
2
11
|
export interface PvDatePickerProps {
|
|
3
12
|
/**
|
|
4
13
|
* Defines the quantity of the selection.
|
|
@@ -25,17 +34,18 @@ export interface PvDatePickerProps {
|
|
|
25
34
|
*/
|
|
26
35
|
view?: "date" | "month" | "year" | undefined;
|
|
27
36
|
/**
|
|
28
|
-
* The minimum selectable date.
|
|
37
|
+
* The minimum selectable date. Accepts a `Date` or a parseable date string.
|
|
29
38
|
*/
|
|
30
|
-
minDate?: Date | undefined;
|
|
39
|
+
minDate?: Date | string | undefined;
|
|
31
40
|
/**
|
|
32
|
-
* The maximum selectable date.
|
|
41
|
+
* The maximum selectable date. Accepts a `Date` or a parseable date string.
|
|
33
42
|
*/
|
|
34
|
-
maxDate?: Date | undefined;
|
|
43
|
+
maxDate?: Date | string | undefined;
|
|
35
44
|
/**
|
|
36
|
-
*
|
|
45
|
+
* Dates to disable. Accepts an array of `Date` objects or parseable date strings, or a
|
|
46
|
+
* JSON array string such as `'["2025-06-18"]'` so it can be set from an attribute.
|
|
37
47
|
*/
|
|
38
|
-
disabledDates?: Date[] | undefined;
|
|
48
|
+
disabledDates?: (Date | string)[] | string | undefined;
|
|
39
49
|
/**
|
|
40
50
|
* Array with disabled weekday numbers.
|
|
41
51
|
*/
|
|
@@ -91,12 +101,12 @@ export interface PvDatePickerProps {
|
|
|
91
101
|
}
|
|
92
102
|
type __VLS_Props = PvDatePickerProps;
|
|
93
103
|
type __VLS_PublicProps = {
|
|
94
|
-
modelValue
|
|
104
|
+
modelValue?: PvDatePickerModelValue;
|
|
95
105
|
} & __VLS_Props;
|
|
96
106
|
declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
97
|
-
"update:modelValue": (value:
|
|
107
|
+
"update:modelValue": (value: PvDatePickerModelValue) => any;
|
|
98
108
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
99
|
-
"onUpdate:modelValue"?: ((value:
|
|
109
|
+
"onUpdate:modelValue"?: ((value: PvDatePickerModelValue) => any) | undefined;
|
|
100
110
|
}>, {
|
|
101
111
|
appendTo: "body" | "self";
|
|
102
112
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -74,8 +74,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvDropdownProps
|
|
|
74
74
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
75
75
|
"list-order-updated": (value: string[]) => any;
|
|
76
76
|
}, string, {
|
|
77
|
-
alignment: "top" | "right" | "top right";
|
|
78
77
|
cssCustomProperties: CSSProperties;
|
|
78
|
+
alignment: "top" | "right" | "top right";
|
|
79
79
|
isList: boolean;
|
|
80
80
|
isSortable: boolean;
|
|
81
81
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -99,13 +99,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvDropdownProps
|
|
|
99
99
|
$nextTick: typeof nextTick;
|
|
100
100
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
101
101
|
} & Readonly<{
|
|
102
|
-
alignment: "top" | "right" | "top right";
|
|
103
102
|
cssCustomProperties: CSSProperties;
|
|
103
|
+
alignment: "top" | "right" | "top right";
|
|
104
104
|
isList: boolean;
|
|
105
105
|
isSortable: boolean;
|
|
106
106
|
}> & Omit<Readonly< PvPopoverProps> & Readonly<{
|
|
107
107
|
"onList-order-updated"?: ((value: string[]) => any) | undefined;
|
|
108
|
-
}>, "popoverRoot" | ("
|
|
108
|
+
}>, "popoverRoot" | ("cssCustomProperties" | "alignment" | "isList" | "isSortable")> & {
|
|
109
109
|
popoverRoot: HTMLElement | null;
|
|
110
110
|
} & {} & ComponentCustomProperties & {} & {
|
|
111
111
|
$slots: {
|
|
@@ -18,8 +18,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvPopoverProps,
|
|
|
18
18
|
}, string, PublicProps, Readonly<PvPopoverProps> & Readonly<{
|
|
19
19
|
"onList-order-updated"?: ((value: string[]) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
|
-
alignment: "top" | "right" | "top right";
|
|
22
21
|
cssCustomProperties: CSSProperties;
|
|
22
|
+
alignment: "top" | "right" | "top right";
|
|
23
23
|
isList: boolean;
|
|
24
24
|
isSortable: boolean;
|
|
25
25
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -16,8 +16,8 @@ declare function __VLS_template(): {
|
|
|
16
16
|
};
|
|
17
17
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
18
|
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
|
-
alignment: "top" | "right" | "top right";
|
|
20
19
|
cssCustomProperties: CSSProperties;
|
|
20
|
+
alignment: "top" | "right" | "top right";
|
|
21
21
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
22
22
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
23
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CSSProperties, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
2
|
import { PvPopoverV2Props } from './types.ts';
|
|
2
3
|
import { PvAlignmentPositions } from '../baseProps.ts';
|
|
3
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
import { Strategy } from '@floating-ui/vue';
|
|
5
5
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
6
6
|
modelValue?: boolean;
|
|
@@ -12,6 +12,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
12
12
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
14
|
delay: number;
|
|
15
|
+
disabled: boolean;
|
|
15
16
|
disableAutoPlacement: boolean;
|
|
16
17
|
position: PvAlignmentPositions;
|
|
17
18
|
positioningStrategy: Strategy;
|
|
@@ -22,6 +23,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
22
23
|
closeDelay: number;
|
|
23
24
|
zIndex: number;
|
|
24
25
|
teleportLocation: string;
|
|
26
|
+
cssCustomProperties: CSSProperties;
|
|
25
27
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
26
28
|
root: HTMLDivElement;
|
|
27
29
|
triggerWrapper: HTMLDivElement;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Strategy } from '@floating-ui/vue';
|
|
2
|
+
import { CSSProperties } from 'vue';
|
|
2
3
|
import { PvAlignmentPositions } from '../baseProps.ts';
|
|
3
4
|
export interface PvPopoverV2Props {
|
|
4
5
|
/** When true, disables automatic collision flips. */
|
|
@@ -33,4 +34,8 @@ export interface PvPopoverV2Props {
|
|
|
33
34
|
offset?: number;
|
|
34
35
|
/** Additional classes ignored by legacy outside-click detection. */
|
|
35
36
|
ignoreClickOutsideClasses?: string[];
|
|
37
|
+
/** When true, the popover cannot be opened (and closes if already open). */
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
/** Custom CSS properties applied to the root element. */
|
|
40
|
+
cssCustomProperties?: CSSProperties;
|
|
36
41
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PvSidebarNavItem, PvSidebarOrgEntity } from './types.ts';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
export interface PvSidebarV2Props {
|
|
4
|
+
disableToggle?: boolean;
|
|
5
|
+
variant?: "primary" | "secondary";
|
|
6
|
+
/** Organizations rendered in the org-switcher dropdown, with optional nested entities. */
|
|
7
|
+
organizations?: PvSidebarOrgEntity[];
|
|
8
|
+
/** Top-level nav items, with optional nested children rendered as an accordion / hover flyout. */
|
|
9
|
+
navItems?: PvSidebarNavItem[];
|
|
10
|
+
}
|
|
11
|
+
type __VLS_Props = PvSidebarV2Props;
|
|
12
|
+
type __VLS_PublicProps = {
|
|
13
|
+
modelValue?: boolean;
|
|
14
|
+
} & __VLS_Props;
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
slots: {
|
|
18
|
+
'sidebar-footer'?(_: {}): any;
|
|
19
|
+
default?(_: {}): any;
|
|
20
|
+
};
|
|
21
|
+
refs: {};
|
|
22
|
+
rootEl: HTMLDivElement;
|
|
23
|
+
};
|
|
24
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
|
+
declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
26
|
+
"update:modelValue": (value: boolean) => any;
|
|
27
|
+
} & {
|
|
28
|
+
change: (payload: {
|
|
29
|
+
collapsed: boolean;
|
|
30
|
+
}) => any;
|
|
31
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
32
|
+
onChange?: ((payload: {
|
|
33
|
+
collapsed: boolean;
|
|
34
|
+
}) => any) | undefined;
|
|
35
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
36
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface PvSidebarOrgEntity {
|
|
2
|
+
value: string | number;
|
|
3
|
+
label: string;
|
|
4
|
+
url: string;
|
|
5
|
+
avatarUrl?: string;
|
|
6
|
+
/** Marks this as the currently active organization/entity (server already knows from the current page). */
|
|
7
|
+
active?: boolean;
|
|
8
|
+
entities?: PvSidebarOrgEntity[];
|
|
9
|
+
}
|
|
10
|
+
export interface PvSidebarNavItem {
|
|
11
|
+
value: string | number;
|
|
12
|
+
label: string;
|
|
13
|
+
/** Leaf items link directly; parents with children may omit it. */
|
|
14
|
+
url?: string;
|
|
15
|
+
/** SVG symbol id, e.g. "home" — only rendered at the top level. */
|
|
16
|
+
icon?: string;
|
|
17
|
+
/** Marks this as the currently active item (server already knows from the current page). */
|
|
18
|
+
active?: boolean;
|
|
19
|
+
/** Extra attributes spread directly onto the rendered <a> (e.g. { "data-turbolinks": "false" }). */
|
|
20
|
+
linkAttrs?: Record<string, string>;
|
|
21
|
+
external?: boolean;
|
|
22
|
+
badge?: "beta" | "legacy";
|
|
23
|
+
children?: PvSidebarNavItem[];
|
|
24
|
+
}
|
|
@@ -70,6 +70,7 @@ export { default as PvQueryBuilderInput } from './PvQueryBuilderInput/PvQueryBui
|
|
|
70
70
|
export { default as PvRange } from './PvRange/PvRange.vue';
|
|
71
71
|
export { default as PvMenu } from './PvMenu/PvMenu.vue';
|
|
72
72
|
export { default as PvSidebar } from './PvSidebar/PvSidebar.vue';
|
|
73
|
+
export { default as PvSidebarV2 } from './PvSidebarV2/PvSidebarV2.vue';
|
|
73
74
|
export { default as PvMenuItem } from './PvMenu/items/PvMenuItem.vue';
|
|
74
75
|
export { default as PvTableOfContents } from './PvTableOfContents/PvTableOfContents.vue';
|
|
75
76
|
export { default as PvStepper } from './PvStepper/PvStepper.vue';
|