@turquoisehealth/pit-viper 2.135.0 → 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 +100 -92
- 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
|
+
};
|