@turquoisehealth/pit-viper 2.182.0 → 2.182.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 +1 -1
- package/_site/assets/css/pit-viper-consumer.css +1 -1
- package/_site/assets/css/pit-viper-v2-scoped.css +1 -1
- package/_site/assets/css/pit-viper-v2.css +1 -1
- package/_site/assets/css/pit-viper.css +1 -1
- 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-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-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-checkbox-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-counter-badge-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ghost-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-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-popover-v2-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-range-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-switch-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toast-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-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/PvAvatar/PvAvatar.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvAvatarGroup/types.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvButton/types.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvCheckbox/PvCheckbox.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/cascadeUtils.d.ts +2 -1
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvRange/PvRange.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvSegmentedControl/types.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvSwitch/PvSwitch.vue.d.ts +2 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +1178 -1068
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/base/types.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/components/base/PvAvatar/PvAvatar.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAvatarGroup/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvButton/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvCheckbox/PvCheckbox.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/cascadeUtils.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvRange/PvRange.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSegmentedControl/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSwitch/PvSwitch.vue.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvTableOptionsPanel.vue.d.ts +14 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvTableOverlayMenuItemRenderer.vue.d.ts +11 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +14 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/helpers.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +20 -17
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +9 -8
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1843 -1402
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/types.d.ts +7 -4
- package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +3 -3
- package/pv-components/dist/web/components/pv-ai-button/pv-ai-button.js +4 -3
- package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +4 -2
- package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +3 -2
- package/pv-components/dist/web/components/pv-button/pv-button.js +7 -5
- package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +8 -2
- package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +2 -2
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +8 -5
- package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +8 -6
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +8 -5
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +10 -7
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +2121 -885
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1758 -1621
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +11 -7
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +816 -806
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +2499 -1493
- package/pv-components/dist/web/components/pv-range/pv-range.js +481 -477
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +733 -719
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1183 -1089
- package/pv-components/dist/web/components/pv-switch/pv-switch.js +408 -405
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +2 -2
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +8 -5
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +665 -655
- package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +8 -5
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +664 -654
- package/pv-components/dist/web/components/pv-tree/pv-tree.js +11 -5
- package/pv-components/dist/web/pv-components.iife.js +20 -20
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -41,6 +41,7 @@ export interface MenuOption<T = unknown> {
|
|
|
41
41
|
handleSeeMore?: (payload: SeeMoreEvent) => Promise<MenuOption<T>[] | void> | MenuOption<T>[] | void;
|
|
42
42
|
totalChildCount?: number;
|
|
43
43
|
defaultExpanded?: boolean;
|
|
44
|
+
config?: MenuOptionConfig;
|
|
44
45
|
}
|
|
45
46
|
export interface MenuOptionConfig {
|
|
46
47
|
renderer?: Component;
|
|
@@ -55,12 +56,14 @@ export interface MenuOptionSelectedEvent {
|
|
|
55
56
|
}
|
|
56
57
|
export interface SeeMoreEvent {
|
|
57
58
|
parentId?: string;
|
|
59
|
+
offset?: number;
|
|
58
60
|
}
|
|
59
|
-
export interface
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
export interface SelectionNode {
|
|
62
|
+
id: string;
|
|
63
|
+
state: "selected" | "deselected";
|
|
64
|
+
children?: SelectionNode[];
|
|
63
65
|
}
|
|
66
|
+
export type MultiSelectState = SelectionNode[];
|
|
64
67
|
export declare enum MenuItemType {
|
|
65
68
|
simple = "simple",
|
|
66
69
|
checkbox = "checkbox",
|
|
@@ -27,7 +27,7 @@ var x = /* @__PURE__ */ o({
|
|
|
27
27
|
"pv-badge-md pv-text-body-md": r.value == "md",
|
|
28
28
|
"pv-badge-sm pv-text-body-sm": r.value == "sm",
|
|
29
29
|
"pv-surface-brand-inverse pv-text-inverse": n.variant == "primary",
|
|
30
|
-
"pv-
|
|
30
|
+
"pv-badge-secondary": n.variant == "secondary",
|
|
31
31
|
"pv-surface-lighten-5": n.variant == "tertiary",
|
|
32
32
|
"pv-text-secondary": n.variant == "ghost" || n.variant == "tertiary",
|
|
33
33
|
"pv-surface": n.variant == "ghost"
|
|
@@ -37,11 +37,11 @@ var x = /* @__PURE__ */ o({
|
|
|
37
37
|
"data-testid": "pv-counter-badge"
|
|
38
38
|
}, v(a.value), 3));
|
|
39
39
|
}
|
|
40
|
-
}), S = ".pv-badge-md[data-v-
|
|
40
|
+
}), S = ".pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}", C = (e, t) => {
|
|
41
41
|
let n = e.__vccOpts || e;
|
|
42
42
|
for (let [e, r] of t) n[e] = r;
|
|
43
43
|
return n;
|
|
44
|
-
}, w = /* @__PURE__ */ C(x, [["styles", [S]], ["__scopeId", "data-v-
|
|
44
|
+
}, w = /* @__PURE__ */ C(x, [["styles", [S]], ["__scopeId", "data-v-743a2e13"]]);
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/web-components/utils.ts
|
|
47
47
|
function T() {
|
|
@@ -65,7 +65,7 @@ var b = [
|
|
|
65
65
|
md: "pv-button-small",
|
|
66
66
|
lg: void 0,
|
|
67
67
|
xl: "pv-button-large"
|
|
68
|
-
}, T = (e) => e == null || !w.hasOwnProperty(e) ? null : w[e] || null, E = ["disabled"], D = { key: 0 }, O = /* @__PURE__ */ s({
|
|
68
|
+
}, T = (e) => e == null || !w.hasOwnProperty(e) ? null : w[e] || null, E = ["disabled", "aria-label"], D = { key: 0 }, O = /* @__PURE__ */ s({
|
|
69
69
|
__name: "PvAiButton",
|
|
70
70
|
props: {
|
|
71
71
|
size: {
|
|
@@ -83,10 +83,11 @@ var b = [
|
|
|
83
83
|
let s = a, c = t(() => {
|
|
84
84
|
let e = ["pv-button-ai"], t = T(s.size);
|
|
85
85
|
return t && e.push(t), e;
|
|
86
|
-
});
|
|
86
|
+
}), l = t(() => (!s.label || s.loading) && s.label || void 0);
|
|
87
87
|
return (t, s) => (m(), i("button", {
|
|
88
88
|
disabled: a.disabled,
|
|
89
|
-
class: d(c.value)
|
|
89
|
+
class: d(c.value),
|
|
90
|
+
"aria-label": l.value
|
|
90
91
|
}, [a.loading ? (m(), n(C, {
|
|
91
92
|
key: 0,
|
|
92
93
|
size: a.size
|
|
@@ -31,11 +31,12 @@ var b = [
|
|
|
31
31
|
class: d(s.value)
|
|
32
32
|
}, [a("use", { "xlink:href": c.value }, null, 8, x)], 2));
|
|
33
33
|
}
|
|
34
|
-
}), C = ["data-style"], w = ["src"], T = /* @__PURE__ */ s({
|
|
34
|
+
}), C = ["data-style"], w = ["src", "alt"], T = /* @__PURE__ */ s({
|
|
35
35
|
__name: "PvAvatar",
|
|
36
36
|
props: {
|
|
37
37
|
icon: { type: String },
|
|
38
38
|
image: { type: String },
|
|
39
|
+
alt: { type: String },
|
|
39
40
|
initials: { type: String },
|
|
40
41
|
size: {
|
|
41
42
|
default: "lg",
|
|
@@ -67,7 +68,8 @@ var b = [
|
|
|
67
68
|
size: s[t.size]
|
|
68
69
|
}, null, 8, ["name", "size"])) : t.initials ? (p(), i(e, { key: 1 }, [o(_(t.initials), 1)], 64)) : t.image ? (p(), i("img", {
|
|
69
70
|
key: 2,
|
|
70
|
-
src: t.image
|
|
71
|
+
src: t.image,
|
|
72
|
+
alt: t.alt ?? ""
|
|
71
73
|
}, null, 8, w)) : r("v-if", !0)], 10, C));
|
|
72
74
|
}
|
|
73
75
|
}), E = Object.defineProperty, D = Object.getOwnPropertySymbols, O = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable, A = (e, t, n) => t in e ? E(e, t, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment as e, computed as t, createElementBlock as n, createTextVNode as r, defineComponent as i, defineCustomElement as a, getCurrentInstance as o, nextTick as s, onMounted as c, openBlock as l, reactive as u, readonly as d, ref as f, renderList as p, toDisplayString as m, watch as h } from "vue";
|
|
2
2
|
//#region src/components/base/PvAvatarGroup/PvAvatarGroup.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var g = ["data-more"], _ = ["src"], v = {
|
|
3
|
+
var g = ["data-more"], _ = ["src", "alt"], v = {
|
|
4
4
|
key: 2,
|
|
5
5
|
class: "pv-avatar-sm"
|
|
6
6
|
}, y = /* @__PURE__ */ i({
|
|
@@ -24,7 +24,8 @@ var g = ["data-more"], _ = ["src"], v = {
|
|
|
24
24
|
"data-testid": "pv-avatar-group-item"
|
|
25
25
|
}, [t.initials ? (l(), n(e, { key: 0 }, [r(m(t.initials), 1)], 64)) : t.image ? (l(), n("img", {
|
|
26
26
|
key: 1,
|
|
27
|
-
src: t.image
|
|
27
|
+
src: t.image,
|
|
28
|
+
alt: t.alt ?? ""
|
|
28
29
|
}, null, 8, _)) : (l(), n("div", v))]))), 128))], 8, g));
|
|
29
30
|
}
|
|
30
31
|
}), b = Object.defineProperty, x = Object.getOwnPropertySymbols, S = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable, w = (e, t, n) => t in e ? b(e, t, {
|
|
@@ -100,7 +100,7 @@ var w = [
|
|
|
100
100
|
"pv-badge-md pv-text-body-md": r.value == "md",
|
|
101
101
|
"pv-badge-sm pv-text-body-sm": r.value == "sm",
|
|
102
102
|
"pv-surface-brand-inverse pv-text-inverse": n.variant == "primary",
|
|
103
|
-
"pv-
|
|
103
|
+
"pv-badge-secondary": n.variant == "secondary",
|
|
104
104
|
"pv-surface-lighten-5": n.variant == "tertiary",
|
|
105
105
|
"pv-text-secondary": n.variant == "ghost" || n.variant == "tertiary",
|
|
106
106
|
"pv-surface": n.variant == "ghost"
|
|
@@ -110,7 +110,7 @@ var w = [
|
|
|
110
110
|
"data-testid": "pv-counter-badge"
|
|
111
111
|
}, _(a.value), 3));
|
|
112
112
|
}
|
|
113
|
-
}), [["styles", [".pv-badge-md[data-v-
|
|
113
|
+
}), [["styles", [".pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}"]], ["__scopeId", "data-v-743a2e13"]]), O = ["disabled", "aria-label"], k = {
|
|
114
114
|
key: 2,
|
|
115
115
|
"data-testid": "pv-button-label"
|
|
116
116
|
}, A = /* @__PURE__ */ o({
|
|
@@ -140,10 +140,11 @@ var w = [
|
|
|
140
140
|
default: !1
|
|
141
141
|
},
|
|
142
142
|
leftCounterBadge: { type: Number },
|
|
143
|
-
rightCounterBadge: { type: Number }
|
|
143
|
+
rightCounterBadge: { type: Number },
|
|
144
|
+
ariaLabel: { type: String }
|
|
144
145
|
},
|
|
145
146
|
setup(a) {
|
|
146
|
-
let o = a, s = t(() => {
|
|
147
|
+
let o = a, s = t(() => !o.label || o.loading ? o.label || o.ariaLabel : void 0), c = t(() => {
|
|
147
148
|
let e = [];
|
|
148
149
|
o.inverse && b.includes(o.variant) ? e.push(`pv-button-${o.variant}-inverse`) : e.push(`pv-button-${o.variant}`);
|
|
149
150
|
let t = S(o.size);
|
|
@@ -151,8 +152,9 @@ var w = [
|
|
|
151
152
|
});
|
|
152
153
|
return (t, o) => (p(), i("button", {
|
|
153
154
|
type: "button",
|
|
154
|
-
class: u(
|
|
155
|
+
class: u(c.value),
|
|
155
156
|
disabled: a.disabled,
|
|
157
|
+
"aria-label": s.value,
|
|
156
158
|
"data-testid": "pv-button"
|
|
157
159
|
}, [a.loading ? (p(), n(y, {
|
|
158
160
|
key: 0,
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { createElementBlock as e, defineComponent as t, defineCustomElement as n, getCurrentInstance as r, mergeModels as i, nextTick as a, onMounted as o, openBlock as s, reactive as c, readonly as l, ref as u, useModel as d, vModelCheckbox as f, watch as p, withDirectives as m } from "vue";
|
|
2
2
|
//#region src/components/base/PvCheckbox/PvCheckbox.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var h = [
|
|
3
|
+
var h = [
|
|
4
|
+
"aria-label",
|
|
5
|
+
"disabled",
|
|
6
|
+
"indeterminate"
|
|
7
|
+
], g = /* @__PURE__ */ t({
|
|
4
8
|
__name: "PvCheckbox",
|
|
5
9
|
props: /* @__PURE__ */ i({
|
|
6
10
|
disabled: { type: Boolean },
|
|
7
|
-
indeterminate: { type: Boolean }
|
|
11
|
+
indeterminate: { type: Boolean },
|
|
12
|
+
ariaLabel: { type: String }
|
|
8
13
|
}, {
|
|
9
14
|
modelValue: { type: Boolean },
|
|
10
15
|
modelModifiers: {}
|
|
@@ -18,6 +23,7 @@ var h = ["disabled", "indeterminate"], g = /* @__PURE__ */ t({
|
|
|
18
23
|
class: "pv-checkbox",
|
|
19
24
|
type: "checkbox",
|
|
20
25
|
name: "checkbox",
|
|
26
|
+
"aria-label": t.ariaLabel,
|
|
21
27
|
disabled: t.disabled,
|
|
22
28
|
indeterminate: t.indeterminate
|
|
23
29
|
}, null, 8, h)), [[f, n.value]]);
|
|
@@ -32,7 +32,7 @@ var m = /* @__PURE__ */ ((e, t) => {
|
|
|
32
32
|
"pv-badge-md pv-text-body-md": i.value == "md",
|
|
33
33
|
"pv-badge-sm pv-text-body-sm": i.value == "sm",
|
|
34
34
|
"pv-surface-brand-inverse pv-text-inverse": r.variant == "primary",
|
|
35
|
-
"pv-
|
|
35
|
+
"pv-badge-secondary": r.variant == "secondary",
|
|
36
36
|
"pv-surface-lighten-5": r.variant == "tertiary",
|
|
37
37
|
"pv-text-secondary": r.variant == "ghost" || r.variant == "tertiary",
|
|
38
38
|
"pv-surface": r.variant == "ghost"
|
|
@@ -42,7 +42,7 @@ var m = /* @__PURE__ */ ((e, t) => {
|
|
|
42
42
|
"data-testid": "pv-counter-badge"
|
|
43
43
|
}, f(a.value), 3));
|
|
44
44
|
}
|
|
45
|
-
}), [["styles", [".pv-badge-md[data-v-
|
|
45
|
+
}), [["styles", [".pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}"]], ["__scopeId", "data-v-743a2e13"]]), h = Object.defineProperty, g = Object.getOwnPropertySymbols, _ = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable, y = (e, t, n) => t in e ? h(e, t, {
|
|
46
46
|
enumerable: !0,
|
|
47
47
|
configurable: !0,
|
|
48
48
|
writable: !0,
|
|
@@ -270,7 +270,7 @@ var Se = [
|
|
|
270
270
|
"pv-badge-md pv-text-body-md": r.value == "md",
|
|
271
271
|
"pv-badge-sm pv-text-body-sm": r.value == "sm",
|
|
272
272
|
"pv-surface-brand-inverse pv-text-inverse": n.variant == "primary",
|
|
273
|
-
"pv-
|
|
273
|
+
"pv-badge-secondary": n.variant == "secondary",
|
|
274
274
|
"pv-surface-lighten-5": n.variant == "tertiary",
|
|
275
275
|
"pv-text-secondary": n.variant == "ghost" || n.variant == "tertiary",
|
|
276
276
|
"pv-surface": n.variant == "ghost"
|
|
@@ -280,7 +280,7 @@ var Se = [
|
|
|
280
280
|
"data-testid": "pv-counter-badge"
|
|
281
281
|
}, C(a.value), 3));
|
|
282
282
|
}
|
|
283
|
-
}), [["styles", [".pv-badge-md[data-v-
|
|
283
|
+
}), [["styles", [".pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}"]], ["__scopeId", "data-v-743a2e13"]]), Ee = ["disabled", "aria-label"], De = {
|
|
284
284
|
key: 2,
|
|
285
285
|
"data-testid": "pv-button-label"
|
|
286
286
|
}, Oe = /* @__PURE__ */ s({
|
|
@@ -310,10 +310,11 @@ var Se = [
|
|
|
310
310
|
default: !1
|
|
311
311
|
},
|
|
312
312
|
leftCounterBadge: { type: Number },
|
|
313
|
-
rightCounterBadge: { type: Number }
|
|
313
|
+
rightCounterBadge: { type: Number },
|
|
314
|
+
ariaLabel: { type: String }
|
|
314
315
|
},
|
|
315
316
|
setup(a) {
|
|
316
|
-
let o = a, s = t(() => {
|
|
317
|
+
let o = a, s = t(() => !o.label || o.loading ? o.label || o.ariaLabel : void 0), c = t(() => {
|
|
317
318
|
let e = [];
|
|
318
319
|
o.inverse && ve.includes(o.variant) ? e.push(`pv-button-${o.variant}-inverse`) : e.push(`pv-button-${o.variant}`);
|
|
319
320
|
let t = be(o.size);
|
|
@@ -321,8 +322,9 @@ var Se = [
|
|
|
321
322
|
});
|
|
322
323
|
return (t, o) => (v(), i("button", {
|
|
323
324
|
type: "button",
|
|
324
|
-
class: m(
|
|
325
|
+
class: m(c.value),
|
|
325
326
|
disabled: a.disabled,
|
|
327
|
+
"aria-label": s.value,
|
|
326
328
|
"data-testid": "pv-button"
|
|
327
329
|
}, [a.loading ? (v(), n(_e, {
|
|
328
330
|
key: 0,
|
|
@@ -425,6 +427,7 @@ var Se = [
|
|
|
425
427
|
r(" Header Section (Fixed) "),
|
|
426
428
|
a("div", ke, [n.$slots.header ? S(n.$slots, "header", { key: 0 }) : (v(), i(e, { key: 1 }, [a("div", Ae, [a("div", je, [a("span", Me, C(t.header), 1), o(Oe, {
|
|
427
429
|
"left-icon": "close",
|
|
430
|
+
ariaLabel: "Close",
|
|
428
431
|
size: "md",
|
|
429
432
|
onClick: m,
|
|
430
433
|
"data-testid": "pv-side-panel-close-button",
|
|
@@ -96,7 +96,7 @@ var T = [
|
|
|
96
96
|
"pv-badge-md pv-text-body-md": r.value == "md",
|
|
97
97
|
"pv-badge-sm pv-text-body-sm": r.value == "sm",
|
|
98
98
|
"pv-surface-brand-inverse pv-text-inverse": n.variant == "primary",
|
|
99
|
-
"pv-
|
|
99
|
+
"pv-badge-secondary": n.variant == "secondary",
|
|
100
100
|
"pv-surface-lighten-5": n.variant == "tertiary",
|
|
101
101
|
"pv-text-secondary": n.variant == "ghost" || n.variant == "tertiary",
|
|
102
102
|
"pv-surface": n.variant == "ghost"
|
|
@@ -106,11 +106,11 @@ var T = [
|
|
|
106
106
|
"data-testid": "pv-counter-badge"
|
|
107
107
|
}, v(a.value), 3));
|
|
108
108
|
}
|
|
109
|
-
}), k = ".pv-badge-md[data-v-
|
|
109
|
+
}), k = ".pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}", A = (e, t) => {
|
|
110
110
|
let n = e.__vccOpts || e;
|
|
111
111
|
for (let [e, r] of t) n[e] = r;
|
|
112
112
|
return n;
|
|
113
|
-
}, j = /* @__PURE__ */ A(O, [["styles", [k]], ["__scopeId", "data-v-
|
|
113
|
+
}, j = /* @__PURE__ */ A(O, [["styles", [k]], ["__scopeId", "data-v-743a2e13"]]), M = ["disabled", "aria-label"], te = {
|
|
114
114
|
key: 2,
|
|
115
115
|
"data-testid": "pv-button-label"
|
|
116
116
|
}, ne = /* @__PURE__ */ s({
|
|
@@ -140,10 +140,11 @@ var T = [
|
|
|
140
140
|
default: !1
|
|
141
141
|
},
|
|
142
142
|
leftCounterBadge: { type: Number },
|
|
143
|
-
rightCounterBadge: { type: Number }
|
|
143
|
+
rightCounterBadge: { type: Number },
|
|
144
|
+
ariaLabel: { type: String }
|
|
144
145
|
},
|
|
145
146
|
setup(a) {
|
|
146
|
-
let o = a, s = t(() => {
|
|
147
|
+
let o = a, s = t(() => !o.label || o.loading ? o.label || o.ariaLabel : void 0), c = t(() => {
|
|
147
148
|
let e = [];
|
|
148
149
|
o.inverse && x.includes(o.variant) ? e.push(`pv-button-${o.variant}-inverse`) : e.push(`pv-button-${o.variant}`);
|
|
149
150
|
let t = C(o.size);
|
|
@@ -151,8 +152,9 @@ var T = [
|
|
|
151
152
|
});
|
|
152
153
|
return (t, o) => (m(), i("button", {
|
|
153
154
|
type: "button",
|
|
154
|
-
class: d(
|
|
155
|
+
class: d(c.value),
|
|
155
156
|
disabled: a.disabled,
|
|
157
|
+
"aria-label": s.value,
|
|
156
158
|
"data-testid": "pv-button"
|
|
157
159
|
}, [a.loading ? (m(), n(b, {
|
|
158
160
|
key: 0,
|
|
@@ -100,7 +100,7 @@ var A = [
|
|
|
100
100
|
"pv-badge-md pv-text-body-md": r.value == "md",
|
|
101
101
|
"pv-badge-sm pv-text-body-sm": r.value == "sm",
|
|
102
102
|
"pv-surface-brand-inverse pv-text-inverse": n.variant == "primary",
|
|
103
|
-
"pv-
|
|
103
|
+
"pv-badge-secondary": n.variant == "secondary",
|
|
104
104
|
"pv-surface-lighten-5": n.variant == "tertiary",
|
|
105
105
|
"pv-text-secondary": n.variant == "ghost" || n.variant == "tertiary",
|
|
106
106
|
"pv-surface": n.variant == "ghost"
|
|
@@ -110,7 +110,7 @@ var A = [
|
|
|
110
110
|
"data-testid": "pv-counter-badge"
|
|
111
111
|
}, y(a.value), 3));
|
|
112
112
|
}
|
|
113
|
-
}), [["styles", [".pv-badge-md[data-v-
|
|
113
|
+
}), [["styles", [".pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}"]], ["__scopeId", "data-v-743a2e13"]]), te = ["disabled", "aria-label"], ne = {
|
|
114
114
|
key: 2,
|
|
115
115
|
"data-testid": "pv-button-label"
|
|
116
116
|
}, re = /* @__PURE__ */ o({
|
|
@@ -140,10 +140,11 @@ var A = [
|
|
|
140
140
|
default: !1
|
|
141
141
|
},
|
|
142
142
|
leftCounterBadge: { type: Number },
|
|
143
|
-
rightCounterBadge: { type: Number }
|
|
143
|
+
rightCounterBadge: { type: Number },
|
|
144
|
+
ariaLabel: { type: String }
|
|
144
145
|
},
|
|
145
146
|
setup(a) {
|
|
146
|
-
let o = a, s = t(() => {
|
|
147
|
+
let o = a, s = t(() => !o.label || o.loading ? o.label || o.ariaLabel : void 0), c = t(() => {
|
|
147
148
|
let e = [];
|
|
148
149
|
o.inverse && E.includes(o.variant) ? e.push(`pv-button-${o.variant}-inverse`) : e.push(`pv-button-${o.variant}`);
|
|
149
150
|
let t = O(o.size);
|
|
@@ -151,8 +152,9 @@ var A = [
|
|
|
151
152
|
});
|
|
152
153
|
return (t, o) => (h(), i("button", {
|
|
153
154
|
type: "button",
|
|
154
|
-
class: f(
|
|
155
|
+
class: f(c.value),
|
|
155
156
|
disabled: a.disabled,
|
|
157
|
+
"aria-label": s.value,
|
|
156
158
|
"data-testid": "pv-button"
|
|
157
159
|
}, [a.loading ? (h(), n(T, {
|
|
158
160
|
key: 0,
|
|
@@ -254,6 +256,7 @@ var A = [
|
|
|
254
256
|
e.showEditIcon ? (h(), n(re, {
|
|
255
257
|
key: 0,
|
|
256
258
|
"left-icon": "edit",
|
|
259
|
+
ariaLabel: "Edit",
|
|
257
260
|
variant: "ghost",
|
|
258
261
|
onClick: f
|
|
259
262
|
})) : r("v-if", !0)
|
|
@@ -125,7 +125,7 @@ var T = [
|
|
|
125
125
|
"pv-badge-md pv-text-body-md": r.value == "md",
|
|
126
126
|
"pv-badge-sm pv-text-body-sm": r.value == "sm",
|
|
127
127
|
"pv-surface-brand-inverse pv-text-inverse": n.variant == "primary",
|
|
128
|
-
"pv-
|
|
128
|
+
"pv-badge-secondary": n.variant == "secondary",
|
|
129
129
|
"pv-surface-lighten-5": n.variant == "tertiary",
|
|
130
130
|
"pv-text-secondary": n.variant == "ghost" || n.variant == "tertiary",
|
|
131
131
|
"pv-surface": n.variant == "ghost"
|
|
@@ -135,11 +135,11 @@ var T = [
|
|
|
135
135
|
"data-testid": "pv-counter-badge"
|
|
136
136
|
}, y(a.value), 3));
|
|
137
137
|
}
|
|
138
|
-
}), ee = ".pv-badge-md[data-v-
|
|
138
|
+
}), ee = ".pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}", N = (e, t) => {
|
|
139
139
|
let n = e.__vccOpts || e;
|
|
140
140
|
for (let [e, r] of t) n[e] = r;
|
|
141
141
|
return n;
|
|
142
|
-
}, te = /* @__PURE__ */ N(M, [["styles", [ee]], ["__scopeId", "data-v-
|
|
142
|
+
}, te = /* @__PURE__ */ N(M, [["styles", [ee]], ["__scopeId", "data-v-743a2e13"]]), ne = ["disabled", "aria-label"], re = {
|
|
143
143
|
key: 2,
|
|
144
144
|
"data-testid": "pv-button-label"
|
|
145
145
|
}, ie = /* @__PURE__ */ o({
|
|
@@ -169,10 +169,11 @@ var T = [
|
|
|
169
169
|
default: !1
|
|
170
170
|
},
|
|
171
171
|
leftCounterBadge: { type: Number },
|
|
172
|
-
rightCounterBadge: { type: Number }
|
|
172
|
+
rightCounterBadge: { type: Number },
|
|
173
|
+
ariaLabel: { type: String }
|
|
173
174
|
},
|
|
174
175
|
setup(a) {
|
|
175
|
-
let o = a, s = t(() => {
|
|
176
|
+
let o = a, s = t(() => !o.label || o.loading ? o.label || o.ariaLabel : void 0), c = t(() => {
|
|
176
177
|
let e = [];
|
|
177
178
|
o.inverse && k.includes(o.variant) ? e.push(`pv-button-${o.variant}-inverse`) : e.push(`pv-button-${o.variant}`);
|
|
178
179
|
let t = j(o.size);
|
|
@@ -180,8 +181,9 @@ var T = [
|
|
|
180
181
|
});
|
|
181
182
|
return (t, o) => (p(), i("button", {
|
|
182
183
|
type: "button",
|
|
183
|
-
class: u(
|
|
184
|
+
class: u(c.value),
|
|
184
185
|
disabled: a.disabled,
|
|
186
|
+
"aria-label": s.value,
|
|
185
187
|
"data-testid": "pv-button"
|
|
186
188
|
}, [a.loading ? (p(), n(O, {
|
|
187
189
|
key: 0,
|
|
@@ -271,6 +273,7 @@ var T = [
|
|
|
271
273
|
]), e.showButton ? (p(), n(ie, {
|
|
272
274
|
key: 0,
|
|
273
275
|
"left-icon": "new-tab",
|
|
276
|
+
ariaLabel: "Open in new tab",
|
|
274
277
|
variant: "ghost",
|
|
275
278
|
size: "md",
|
|
276
279
|
class: "pv-insight-button",
|
|
@@ -279,7 +282,7 @@ var T = [
|
|
|
279
282
|
_: 1
|
|
280
283
|
}, 8, ["interactive"]));
|
|
281
284
|
}
|
|
282
|
-
}), [["styles", [".pv-insight-button[data-v-
|
|
285
|
+
}), [["styles", [".pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}"]], ["__scopeId", "data-v-c1185c07"]]), fe = Object.defineProperty, pe = Object.getOwnPropertySymbols, me = Object.prototype.hasOwnProperty, he = Object.prototype.propertyIsEnumerable, ge = (e, t, n) => t in e ? fe(e, t, {
|
|
283
286
|
enumerable: !0,
|
|
284
287
|
configurable: !0,
|
|
285
288
|
writable: !0,
|