@turquoisehealth/pit-viper 2.135.1 → 2.136.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-input-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-select-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-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/PvInput/PvInput.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvTree/PvSimpleNestedTreeItem.vue.d.ts +24 -0
- package/pv-components/dist/vue/base/components/base/PvTree/PvTree.vue.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvTree/PvTreeItem.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvTree/symbols.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvTree/useDragAndDrop.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvTree/useDraggingState.d.ts +21 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +2687 -2516
- package/pv-components/dist/vue/visualizations/components/base/PvInput/PvInput.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/PvSimpleNestedTreeItem.vue.d.ts +24 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/PvTree.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/PvTreeItem.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/symbols.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/useDragAndDrop.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/useDraggingState.d.ts +21 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1 -1
- package/pv-components/dist/web/components/pv-input/pv-input.js +15 -13
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1 -1
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1 -1
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +1 -1
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +1 -1
- package/pv-components/dist/web/components/pv-tree/pv-tree.js +1898 -1724
- package/pv-components/dist/web/pv-components.iife.js +50 -50
package/pv-components/dist/vue/visualizations/components/base/PvTree/PvSimpleNestedTreeItem.vue.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PvTreeOption, PvTreeSettings } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
interface PvSimpleNestedTreeItemProps {
|
|
4
|
+
option: PvTreeOption;
|
|
5
|
+
settings: PvTreeSettings;
|
|
6
|
+
level: number;
|
|
7
|
+
index: number;
|
|
8
|
+
totalSiblings: number;
|
|
9
|
+
parentField: string;
|
|
10
|
+
selectedOptions?: PvTreeOption[];
|
|
11
|
+
isDraggable?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: DefineComponent<PvSimpleNestedTreeItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
14
|
+
"handle-tree-select": (payload: {
|
|
15
|
+
option: PvTreeOption;
|
|
16
|
+
event: MouseEvent;
|
|
17
|
+
}) => any;
|
|
18
|
+
}, string, PublicProps, Readonly<PvSimpleNestedTreeItemProps> & Readonly<{
|
|
19
|
+
"onHandle-tree-select"?: ((payload: {
|
|
20
|
+
option: PvTreeOption;
|
|
21
|
+
event: MouseEvent;
|
|
22
|
+
}) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
24
|
+
export default _default;
|
|
@@ -9,13 +9,16 @@ type __VLS_Props = PvTreeProps;
|
|
|
9
9
|
type __VLS_PublicProps = {
|
|
10
10
|
"selectedOptions"?: PvTreeOption[];
|
|
11
11
|
"options": PvTreeOption[];
|
|
12
|
+
"treeOpen"?: boolean;
|
|
12
13
|
} & __VLS_Props;
|
|
13
14
|
declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
14
15
|
"update:selectedOptions": (value: PvTreeOption[]) => any;
|
|
15
16
|
"update:options": (value: PvTreeOption[]) => any;
|
|
17
|
+
"update:treeOpen": (value: boolean) => any;
|
|
16
18
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
19
|
"onUpdate:selectedOptions"?: ((value: PvTreeOption[]) => any) | undefined;
|
|
18
20
|
"onUpdate:options"?: ((value: PvTreeOption[]) => any) | undefined;
|
|
21
|
+
"onUpdate:treeOpen"?: ((value: boolean) => any) | undefined;
|
|
19
22
|
}>, {
|
|
20
23
|
isDraggable: boolean;
|
|
21
24
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -6,6 +6,7 @@ interface PvTreeItemProps {
|
|
|
6
6
|
level?: number;
|
|
7
7
|
settings: PvTreeSettings;
|
|
8
8
|
isDraggable?: boolean;
|
|
9
|
+
treeOpen?: boolean;
|
|
9
10
|
}
|
|
10
11
|
declare const _default: DefineComponent<PvTreeItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
11
12
|
"handle-tree-select": (payload: {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
export type DraggingState = Ref<boolean>;
|
|
3
|
+
export declare const DraggingStateKey: InjectionKey<DraggingState>;
|
|
4
|
+
export type DraggingGroupName = Ref<string | null>;
|
|
5
|
+
export declare const DraggingGroupNameKey: InjectionKey<DraggingGroupName>;
|
|
@@ -13,4 +13,5 @@ export declare const useDragAndDrop: () => {
|
|
|
13
13
|
};
|
|
14
14
|
}) => boolean;
|
|
15
15
|
childrenDraggable: (isDraggable: boolean | undefined, settings: PvTreeSettings, option: PvTreeOption) => boolean | undefined;
|
|
16
|
+
canAcceptDrop: (settings: PvTreeSettings, option: PvTreeOption, draggingGroupName: string | null) => boolean;
|
|
16
17
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Provides dragging state to the tree component hierarchy.
|
|
4
|
+
* Should be called in the root PvTree component.
|
|
5
|
+
*/
|
|
6
|
+
export declare const provideDraggingState: () => {
|
|
7
|
+
isDragging: Ref<boolean, boolean>;
|
|
8
|
+
draggingGroupName: Ref<string | null, string | null>;
|
|
9
|
+
onDragStart: (groupName?: string) => void;
|
|
10
|
+
onDragEnd: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Injects dragging state from the parent PvTree component.
|
|
14
|
+
* Should be called in PvTreeItem and PvSimpleNestedTree components.
|
|
15
|
+
*/
|
|
16
|
+
export declare const useDraggingState: () => {
|
|
17
|
+
isDragging: Ref<boolean, boolean>;
|
|
18
|
+
draggingGroupName: Ref<string | null, string | null>;
|
|
19
|
+
onDragStart: (groupName?: string) => void;
|
|
20
|
+
onDragEnd: () => void;
|
|
21
|
+
};
|
|
@@ -3880,7 +3880,7 @@ const Ka = /* @__PURE__ */ Ee(Gu, [["render", zu]]), Hu = ["data-style"], Ku = [
|
|
|
3880
3880
|
_: 1
|
|
3881
3881
|
}, 16, ["modelValue"]));
|
|
3882
3882
|
}
|
|
3883
|
-
}), Sc = ["for"], wc = ["disabled", "type", "placeholder", "id", "data-invalid"];
|
|
3883
|
+
}), Sc = ["for"], wc = ["disabled", "type", "placeholder", "id", "data-invalid", "step"];
|
|
3884
3884
|
Math.random().toString();
|
|
3885
3885
|
const Fc = ["for"], kc = { key: 0 }, Tc = ["disabled", "id"];
|
|
3886
3886
|
Math.random().toString();
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { defineComponent as w, mergeModels as
|
|
2
|
-
const $ = ["for"], N = ["disabled", "type", "placeholder", "id", "data-invalid"], x = /* @__PURE__ */ w({
|
|
1
|
+
import { defineComponent as w, mergeModels as S, useModel as E, createElementBlock as h, openBlock as m, Fragment as C, createCommentVNode as v, withDirectives as A, renderSlot as P, createElementVNode as I, normalizeClass as y, vModelDynamic as k, toDisplayString as j, defineCustomElement as O } from "vue";
|
|
2
|
+
const $ = ["for"], N = ["disabled", "type", "placeholder", "id", "data-invalid", "step"], x = /* @__PURE__ */ w({
|
|
3
3
|
__name: "PvInput",
|
|
4
|
-
props: /* @__PURE__ */
|
|
4
|
+
props: /* @__PURE__ */ S({
|
|
5
5
|
error: { type: Boolean },
|
|
6
6
|
disabled: { type: Boolean },
|
|
7
7
|
placeholder: { type: String },
|
|
8
8
|
type: { default: "text", type: String },
|
|
9
9
|
id: { default: Math.random().toString(), type: String },
|
|
10
10
|
lowerLabel: { type: String },
|
|
11
|
-
variant: { default: "white", type: String }
|
|
11
|
+
variant: { default: "white", type: String },
|
|
12
|
+
step: { type: String }
|
|
12
13
|
}, {
|
|
13
14
|
modelValue: {},
|
|
14
15
|
modelModifiers: {}
|
|
15
16
|
}),
|
|
16
17
|
emits: ["update:modelValue"],
|
|
17
18
|
setup(e) {
|
|
18
|
-
const t =
|
|
19
|
+
const t = E(e, "modelValue");
|
|
19
20
|
return (n, r) => (m(), h(
|
|
20
21
|
C,
|
|
21
22
|
null,
|
|
@@ -42,7 +43,8 @@ const $ = ["for"], N = ["disabled", "type", "placeholder", "id", "data-invalid"]
|
|
|
42
43
|
type: e.type,
|
|
43
44
|
placeholder: e.placeholder,
|
|
44
45
|
id: e.id,
|
|
45
|
-
"data-invalid": e.error ? !0 : void 0
|
|
46
|
+
"data-invalid": e.error ? !0 : void 0,
|
|
47
|
+
step: e.step
|
|
46
48
|
}, null, 10, N), [
|
|
47
49
|
[k, t.value]
|
|
48
50
|
]),
|
|
@@ -107,7 +109,7 @@ function R(e, t) {
|
|
|
107
109
|
const n = Number(t);
|
|
108
110
|
return isNaN(n) && console.warn(`Invalid number attribute value for "${e}": "${t}". Expected a valid number.`), n;
|
|
109
111
|
}
|
|
110
|
-
function
|
|
112
|
+
function J(e) {
|
|
111
113
|
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), d = (e.__vccOpts || e).props;
|
|
112
114
|
return d && typeof d == "object" && Object.entries(d).forEach(([p, o]) => {
|
|
113
115
|
o === Boolean || o && o.type === Boolean ? t.add(p) : o === Number || o && o.type === Number ? n.add(p) : (o === Object || o === Array || o && (o.type === Object || o.type === Array)) && r.add(p);
|
|
@@ -122,11 +124,11 @@ function g(e, t) {
|
|
|
122
124
|
), null;
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
|
-
function
|
|
127
|
+
function U(e) {
|
|
126
128
|
const t = e.__name || e.name;
|
|
127
129
|
if (!t)
|
|
128
130
|
throw new Error("Component must have a __name or name property");
|
|
129
|
-
const n = O(e, L(t)), { booleanProps: r, numberProps: a, jsonProps: d } =
|
|
131
|
+
const n = O(e, L(t)), { booleanProps: r, numberProps: a, jsonProps: d } = J(e);
|
|
130
132
|
class p extends n {
|
|
131
133
|
_hiddenInput = null;
|
|
132
134
|
constructor() {
|
|
@@ -178,14 +180,14 @@ function J(e) {
|
|
|
178
180
|
}
|
|
179
181
|
return p;
|
|
180
182
|
}
|
|
181
|
-
function
|
|
183
|
+
function W(e) {
|
|
182
184
|
return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
183
185
|
}
|
|
184
|
-
function
|
|
186
|
+
function _(e) {
|
|
185
187
|
const t = e.__name || e.name;
|
|
186
188
|
if (!t)
|
|
187
189
|
throw new Error("Component must have a __name or name property");
|
|
188
|
-
const n =
|
|
190
|
+
const n = W(t), r = U(e);
|
|
189
191
|
customElements.get(n) || customElements.define(n, r);
|
|
190
192
|
}
|
|
191
|
-
|
|
193
|
+
_(x);
|
|
@@ -3424,7 +3424,7 @@ const kc = /* @__PURE__ */ Pt($c);
|
|
|
3424
3424
|
hn.extend(kc);
|
|
3425
3425
|
hn.extend(vc);
|
|
3426
3426
|
hn.extend(Sc);
|
|
3427
|
-
const Oc = ["for"], Ec = ["disabled", "type", "placeholder", "id", "data-invalid"];
|
|
3427
|
+
const Oc = ["for"], Ec = ["disabled", "type", "placeholder", "id", "data-invalid", "step"];
|
|
3428
3428
|
Math.random().toString();
|
|
3429
3429
|
const Bc = ["for"], Tc = { key: 0 }, Rc = ["disabled", "id"];
|
|
3430
3430
|
Math.random().toString();
|
|
@@ -3561,7 +3561,7 @@ const pc = ["data-style"], mc = ["src"], hc = /* @__PURE__ */ De({
|
|
|
3561
3561
|
);
|
|
3562
3562
|
};
|
|
3563
3563
|
}
|
|
3564
|
-
}), Ac = ".pv-menu-item-disabled[data-v-9c8b69cd]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-9c8b69cd]{cursor:pointer}", Lc = /* @__PURE__ */ Ho(Ic, [["styles", [Ac]], ["__scopeId", "data-v-9c8b69cd"]]), Mc = ["for"], jc = ["disabled", "type", "placeholder", "id", "data-invalid"];
|
|
3564
|
+
}), Ac = ".pv-menu-item-disabled[data-v-9c8b69cd]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-9c8b69cd]{cursor:pointer}", Lc = /* @__PURE__ */ Ho(Ic, [["styles", [Ac]], ["__scopeId", "data-v-9c8b69cd"]]), Mc = ["for"], jc = ["disabled", "type", "placeholder", "id", "data-invalid", "step"];
|
|
3565
3565
|
Math.random().toString();
|
|
3566
3566
|
const Nc = ["for"], zc = { key: 0 }, Fc = ["disabled", "id"];
|
|
3567
3567
|
Math.random().toString();
|
|
@@ -2856,7 +2856,7 @@ const Cs = /* @__PURE__ */ Er({
|
|
|
2856
2856
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
2857
2857
|
));
|
|
2858
2858
|
}
|
|
2859
|
-
}), Ss = ["for"], ws = ["disabled", "type", "placeholder", "id", "data-invalid"];
|
|
2859
|
+
}), Ss = ["for"], ws = ["disabled", "type", "placeholder", "id", "data-invalid", "step"];
|
|
2860
2860
|
Math.random().toString();
|
|
2861
2861
|
const $s = ["for"], ks = { key: 0 }, Os = ["disabled", "id"];
|
|
2862
2862
|
Math.random().toString();
|
|
@@ -2788,7 +2788,7 @@ const ys = /* @__PURE__ */ yt(bs);
|
|
|
2788
2788
|
on.extend(ys);
|
|
2789
2789
|
on.extend(us);
|
|
2790
2790
|
on.extend(ms);
|
|
2791
|
-
const xs = ["for"], Cs = ["disabled", "type", "placeholder", "id", "data-invalid"];
|
|
2791
|
+
const xs = ["for"], Cs = ["disabled", "type", "placeholder", "id", "data-invalid", "step"];
|
|
2792
2792
|
Math.random().toString();
|
|
2793
2793
|
const Ss = ["for"], ws = { key: 0 }, $s = ["disabled", "id"];
|
|
2794
2794
|
Math.random().toString();
|