@turquoisehealth/pit-viper 2.245.0 → 2.246.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +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-breadcrumbs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvBreadcrumbs/PvBreadcrumbs.vue.d.ts +5 -1
- package/pv-components/dist/vue/ai/components/base/PvToast/PvToast.vue.d.ts +4 -0
- package/pv-components/dist/vue/base/components/base/PvBreadcrumbs/PvBreadcrumbs.vue.d.ts +5 -1
- package/pv-components/dist/vue/base/components/base/PvToast/PvToast.vue.d.ts +4 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +793 -781
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvBreadcrumbs/PvBreadcrumbs.vue.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/base/PvToast/PvToast.vue.d.ts +4 -0
- package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +25 -21
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +16 -8
- package/pv-components/dist/web/pv-components.iife.js +13 -13
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
package/pv-components/dist/vue/visualizations/components/base/PvBreadcrumbs/PvBreadcrumbs.vue.d.ts
CHANGED
|
@@ -4,5 +4,9 @@ interface PvBreadcrumbsProps {
|
|
|
4
4
|
/** Array of breadcrumb items defining the navigation trail */
|
|
5
5
|
options: PvBreadcrumbsOptions[];
|
|
6
6
|
}
|
|
7
|
-
declare const _default: DefineComponent<PvBreadcrumbsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
7
|
+
declare const _default: DefineComponent<PvBreadcrumbsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
8
|
+
"handle-click": (payload: string) => any;
|
|
9
|
+
}, string, PublicProps, Readonly<PvBreadcrumbsProps> & Readonly<{
|
|
10
|
+
"onHandle-click"?: ((payload: string) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLUListElement>;
|
|
8
12
|
export default _default;
|
|
@@ -7,6 +7,9 @@ interface PvToastProps {
|
|
|
7
7
|
icon?: string;
|
|
8
8
|
/** Text message displayed in the toast */
|
|
9
9
|
label: string;
|
|
10
|
+
/** Shows a spinner in place of the variant/custom icon, for a toast representing an
|
|
11
|
+
* in-progress action rather than a completed one */
|
|
12
|
+
loading?: boolean;
|
|
10
13
|
}
|
|
11
14
|
declare function __VLS_template(): {
|
|
12
15
|
attrs: Partial<{}>;
|
|
@@ -23,6 +26,7 @@ declare const __VLS_component: DefineComponent<PvToastProps, {}, {}, {}, {}, Com
|
|
|
23
26
|
"onHandle-close"?: (() => any) | undefined;
|
|
24
27
|
}>, {
|
|
25
28
|
variant: PvToastVariants;
|
|
29
|
+
loading: boolean;
|
|
26
30
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
31
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
32
|
export default _default;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { Fragment as e, createElementBlock as t,
|
|
1
|
+
import { Fragment as e, createElementBlock as t, defineComponent as n, defineCustomElement as r, getCurrentInstance as i, nextTick as a, onMounted as o, openBlock as s, reactive as c, readonly as l, ref as u, renderList as d, toDisplayString as f, watch as p } from "vue";
|
|
2
2
|
//#region src/components/base/PvBreadcrumbs/PvBreadcrumbs.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var
|
|
3
|
+
var m = {
|
|
4
4
|
class: "pv-breadcrumbs",
|
|
5
5
|
role: "list",
|
|
6
6
|
"data-testid": "pv-breadcrumbs"
|
|
7
|
-
},
|
|
7
|
+
}, h = ["href"], g = ["onClick"], _ = /* @__PURE__ */ n({
|
|
8
8
|
__name: "PvBreadcrumbs",
|
|
9
9
|
props: { options: { type: Array } },
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
emits: ["handle-click"],
|
|
11
|
+
setup(n) {
|
|
12
|
+
return (r, i) => (s(), t("ul", m, [(s(!0), t(e, null, d(n.options, (e, n) => (s(), t("li", { key: `${n}-${e.label}` }, [e.href ? (s(), t("a", {
|
|
12
13
|
key: 0,
|
|
13
|
-
href:
|
|
14
|
-
},
|
|
14
|
+
href: e.href
|
|
15
|
+
}, f(e.label), 9, h)) : (s(), t("span", {
|
|
16
|
+
key: 1,
|
|
17
|
+
onClick: (t) => r.$emit("handle-click", e.label)
|
|
18
|
+
}, f(e.label), 9, g))]))), 128))]));
|
|
15
19
|
}
|
|
16
20
|
}), v = Object.defineProperty, y = Object.getOwnPropertySymbols, b = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable, S = (e, t, n) => t in e ? v(e, t, {
|
|
17
21
|
enumerable: !0,
|
|
@@ -739,11 +743,11 @@ function Ne(e, t) {
|
|
|
739
743
|
}
|
|
740
744
|
function Pe(e) {
|
|
741
745
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
742
|
-
|
|
746
|
+
i() && i().components ? o(e) : t ? e() : a(e);
|
|
743
747
|
}
|
|
744
748
|
var Fe = 0;
|
|
745
749
|
function Ie(e) {
|
|
746
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n =
|
|
750
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = u(!1), r = u(e), i = u(null), a = ae() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, d = c === void 0 ? !0 : c, f = t.manual, m = f === void 0 ? !1 : f, h = t.name, g = h === void 0 ? `style_${++Fe}` : h, _ = t.id, v = _ === void 0 ? void 0 : _, y = t.media, b = y === void 0 ? void 0 : y, x = t.nonce, S = x === void 0 ? void 0 : x, C = t.first, w = C === void 0 ? !1 : C, T = t.onMounted, E = T === void 0 ? void 0 : T, D = t.onUpdated, O = D === void 0 ? void 0 : D, k = t.onLoad, A = k === void 0 ? void 0 : k, j = t.props, M = j === void 0 ? {} : j, N = function() {}, P = function(t) {
|
|
747
751
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
748
752
|
if (s) {
|
|
749
753
|
var o = Ae(Ae({}, M), a), c = o.name || g, l = o.id || v, u = o.nonce || S;
|
|
@@ -754,12 +758,12 @@ function Ie(e) {
|
|
|
754
758
|
nonce: u
|
|
755
759
|
}), w ? s.head.prepend(i.value) : s.head.appendChild(i.value), oe(i.value, "data-primevue-style-id", c), L(i.value, o), i.value.onload = function(e) {
|
|
756
760
|
return A?.(e, { name: c });
|
|
757
|
-
}, E?.(c)), !n.value && (N =
|
|
761
|
+
}, E?.(c)), !n.value && (N = p(r, function(e) {
|
|
758
762
|
i.value.textContent = e, O?.(c);
|
|
759
763
|
}, { immediate: !0 }), n.value = !0);
|
|
760
764
|
}
|
|
761
765
|
};
|
|
762
|
-
return
|
|
766
|
+
return d && !m && Pe(P), {
|
|
763
767
|
id: v,
|
|
764
768
|
name: g,
|
|
765
769
|
el: i,
|
|
@@ -768,7 +772,7 @@ function Ie(e) {
|
|
|
768
772
|
!s || !n.value || (N(), re(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
769
773
|
},
|
|
770
774
|
load: P,
|
|
771
|
-
isLoaded:
|
|
775
|
+
isLoaded: l(n)
|
|
772
776
|
};
|
|
773
777
|
}
|
|
774
778
|
//#endregion
|
|
@@ -1246,7 +1250,7 @@ var it = {
|
|
|
1246
1250
|
csp: { nonce: void 0 }
|
|
1247
1251
|
}, at = Symbol();
|
|
1248
1252
|
function ot(e, t) {
|
|
1249
|
-
var n = { config:
|
|
1253
|
+
var n = { config: c(t) };
|
|
1250
1254
|
return e.config.globalProperties.$primevue = n, e.provide(at, n), st(), ct(e, n), n;
|
|
1251
1255
|
}
|
|
1252
1256
|
var Q = [];
|
|
@@ -1256,7 +1260,7 @@ function st() {
|
|
|
1256
1260
|
}), Q = [];
|
|
1257
1261
|
}
|
|
1258
1262
|
function ct(e, t) {
|
|
1259
|
-
var n =
|
|
1263
|
+
var n = u(!1), r = function() {
|
|
1260
1264
|
if (t.config?.theme !== "none" && !K.isStyleNameLoaded("common")) {
|
|
1261
1265
|
var e, n = Y.getCommonTheme?.call(Y) || {}, r = n.primitive, i = n.semantic, a = n.global, o = n.style, s = { nonce: (e = t.config) == null || (e = e.csp) == null ? void 0 : e.nonce };
|
|
1262
1266
|
Y.load(r?.css, Z({ name: "primitive-variables" }, s)), Y.load(i?.css, Z({ name: "semantic-variables" }, s)), Y.load(a?.css, Z({ name: "global-variables" }, s)), Y.loadStyle(Z({ name: "global-style" }, s), o), K.setLoadedStyleName("common");
|
|
@@ -1265,7 +1269,7 @@ function ct(e, t) {
|
|
|
1265
1269
|
V.on("theme:change", function(t) {
|
|
1266
1270
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
1267
1271
|
});
|
|
1268
|
-
var i =
|
|
1272
|
+
var i = p(t.config, function(e, t) {
|
|
1269
1273
|
$e.emit("config:change", {
|
|
1270
1274
|
newValue: e,
|
|
1271
1275
|
oldValue: t
|
|
@@ -1273,7 +1277,7 @@ function ct(e, t) {
|
|
|
1273
1277
|
}, {
|
|
1274
1278
|
immediate: !0,
|
|
1275
1279
|
deep: !0
|
|
1276
|
-
}), a =
|
|
1280
|
+
}), a = p(function() {
|
|
1277
1281
|
return t.config.ripple;
|
|
1278
1282
|
}, function(e, t) {
|
|
1279
1283
|
$e.emit("config:ripple:change", {
|
|
@@ -1283,7 +1287,7 @@ function ct(e, t) {
|
|
|
1283
1287
|
}, {
|
|
1284
1288
|
immediate: !0,
|
|
1285
1289
|
deep: !0
|
|
1286
|
-
}), o =
|
|
1290
|
+
}), o = p(function() {
|
|
1287
1291
|
return t.config.theme;
|
|
1288
1292
|
}, function(e, i) {
|
|
1289
1293
|
n.value || K.setTheme(e), t.config.unstyled || r(), n.value = !1, $e.emit("config:theme:change", {
|
|
@@ -1293,7 +1297,7 @@ function ct(e, t) {
|
|
|
1293
1297
|
}, {
|
|
1294
1298
|
immediate: !0,
|
|
1295
1299
|
deep: !1
|
|
1296
|
-
}), s =
|
|
1300
|
+
}), s = p(function() {
|
|
1297
1301
|
return t.config.unstyled;
|
|
1298
1302
|
}, function(e, n) {
|
|
1299
1303
|
!e && t.config.theme && r(), $e.emit("config:unstyled:change", {
|
|
@@ -6131,12 +6135,12 @@ function pr(e, t) {
|
|
|
6131
6135
|
function mr(e) {
|
|
6132
6136
|
let t = e.__name || e.name;
|
|
6133
6137
|
if (!t) throw Error("Component must have a __name or name property");
|
|
6134
|
-
let n =
|
|
6138
|
+
let n = r(e, {
|
|
6135
6139
|
...or(t),
|
|
6136
6140
|
...nr.has(t) && { configureApp(e) {
|
|
6137
6141
|
e.use(lt, er);
|
|
6138
6142
|
} }
|
|
6139
|
-
}), { booleanProps:
|
|
6143
|
+
}), { booleanProps: i, numberProps: a, jsonProps: o } = fr(e);
|
|
6140
6144
|
class s extends n {
|
|
6141
6145
|
_hiddenInput = null;
|
|
6142
6146
|
constructor() {
|
|
@@ -6155,7 +6159,7 @@ function mr(e) {
|
|
|
6155
6159
|
let n = lr(e);
|
|
6156
6160
|
return n === e ? null : this.getAttribute(n);
|
|
6157
6161
|
};
|
|
6158
|
-
|
|
6162
|
+
i.forEach((t) => {
|
|
6159
6163
|
let n = e(t);
|
|
6160
6164
|
n !== null && (this[t] = sr(t, n));
|
|
6161
6165
|
}), a.forEach((t) => {
|
|
@@ -189,7 +189,11 @@ var x = [
|
|
|
189
189
|
type: String
|
|
190
190
|
},
|
|
191
191
|
icon: { type: String },
|
|
192
|
-
label: { type: String }
|
|
192
|
+
label: { type: String },
|
|
193
|
+
loading: {
|
|
194
|
+
type: Boolean,
|
|
195
|
+
default: !1
|
|
196
|
+
}
|
|
193
197
|
},
|
|
194
198
|
emits: ["handle-close"],
|
|
195
199
|
setup(e) {
|
|
@@ -198,26 +202,30 @@ var x = [
|
|
|
198
202
|
success: "pv-toast-success",
|
|
199
203
|
error: "pv-toast-error",
|
|
200
204
|
dark: "pv-toast-dark"
|
|
201
|
-
},
|
|
205
|
+
}, r = {
|
|
202
206
|
info: "check-circle",
|
|
203
207
|
success: "check-circle",
|
|
204
208
|
error: "alert-circle",
|
|
205
209
|
dark: "ai"
|
|
206
210
|
};
|
|
207
|
-
return (
|
|
208
|
-
|
|
209
|
-
|
|
211
|
+
return (s, c) => (m(), i("div", { class: d(t[e.variant]) }, [
|
|
212
|
+
e.loading ? (m(), n(w, {
|
|
213
|
+
key: 0,
|
|
214
|
+
size: "sm"
|
|
215
|
+
})) : (m(), n(C, {
|
|
216
|
+
key: 1,
|
|
217
|
+
name: e.icon ? e.icon : r[e.variant],
|
|
210
218
|
size: 20
|
|
211
|
-
}, null, 8, ["name"]),
|
|
219
|
+
}, null, 8, ["name"])),
|
|
212
220
|
a("p", M, v(e.label), 1),
|
|
213
|
-
_(
|
|
221
|
+
_(s.$slots, "default"),
|
|
214
222
|
o(j, {
|
|
215
223
|
variant: "ghost",
|
|
216
224
|
inverse: e.variant === "dark",
|
|
217
225
|
size: "lg",
|
|
218
226
|
"left-icon": "close",
|
|
219
227
|
ariaLabel: "Close",
|
|
220
|
-
onClick:
|
|
228
|
+
onClick: c[0] ||= (e) => s.$emit("handle-close")
|
|
221
229
|
}, null, 8, ["inverse"])
|
|
222
230
|
], 2));
|
|
223
231
|
}
|