@pantograph/vue 0.34.6 → 0.34.7
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/dist/components/ActionButton/index.d.ts +1 -1
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/Banner/index.d.ts +1 -1
- package/dist/components/ChipGroup/ChipGroup.d.ts +5 -0
- package/dist/components/Combobox/Combobox.d.ts +6 -1
- package/dist/components/Combobox/Combobox.model.d.ts +8 -0
- package/dist/components/Combobox/context.d.ts +6 -4
- package/dist/components/Combobox/types.d.ts +13 -9
- package/dist/components/Comment/CommentMention.d.ts +13 -3
- package/dist/components/FloatButton/index.d.ts +1 -1
- package/dist/components/Popover/utils/usePopoverContext.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tree/types.d.ts +6 -0
- package/dist/index.js +8268 -8212
- package/dist/index.umd.cjs +10 -10
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as ActionButton, ActionButtonProps, ActionButtonSlots, ACTION_BUTTON_DEFAULT_PROPS } from './ActionButton';
|
|
2
2
|
import { DefineComponent } from '@pantograph/utils-vue';
|
|
3
|
-
export { ActionButton, type ActionButtonProps, type ActionButtonSlots, ACTION_BUTTON_DEFAULT_PROPS
|
|
3
|
+
export { ActionButton, type ActionButtonProps, type ActionButtonSlots, ACTION_BUTTON_DEFAULT_PROPS };
|
|
4
4
|
declare module 'vue' {
|
|
5
5
|
interface GlobalComponents {
|
|
6
6
|
ActionButton: DefineComponent<ActionButtonProps, ActionButtonSlots>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as Alert, AlertProps, AlertEmits, AlertSlots, ALERT_DEFAULT_PROPS } from './Alert';
|
|
2
2
|
import { DefineComponent } from '@pantograph/utils-vue';
|
|
3
|
-
export { Alert, type AlertProps, type AlertEmits, type AlertSlots, ALERT_DEFAULT_PROPS
|
|
3
|
+
export { Alert, type AlertProps, type AlertEmits, type AlertSlots, ALERT_DEFAULT_PROPS };
|
|
4
4
|
declare module 'vue' {
|
|
5
5
|
interface GlobalComponents {
|
|
6
6
|
Alert: DefineComponent<AlertProps, AlertSlots, AlertEmits>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as Banner, BannerProps, BannerEmits, BannerSlots, BANNER_DEFAULT_PROPS } from './Banner';
|
|
2
2
|
import { DefineComponent } from '@pantograph/utils-vue';
|
|
3
|
-
export { Banner, type BannerProps, type BannerEmits, type BannerSlots, BANNER_DEFAULT_PROPS
|
|
3
|
+
export { Banner, type BannerProps, type BannerEmits, type BannerSlots, BANNER_DEFAULT_PROPS };
|
|
4
4
|
declare module 'vue' {
|
|
5
5
|
interface GlobalComponents {
|
|
6
6
|
Banner: DefineComponent<BannerProps, BannerSlots, BannerEmits>;
|
|
@@ -26,13 +26,16 @@ export declare const COMBO_BOX_DEFAULT_PROPS: {
|
|
|
26
26
|
readonly resetSearchTermOnBlur: true;
|
|
27
27
|
readonly resetSearchTermOnSelect: false;
|
|
28
28
|
readonly selectedItemIconAsTrailingIcon: true;
|
|
29
|
+
readonly showTreeTagStrategy: "all";
|
|
29
30
|
};
|
|
30
31
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ComboboxProps, {
|
|
32
|
+
displaySelectedKeys: import('vue').ComputedRef<string[]>;
|
|
31
33
|
isOptionSelected: (value?: string | undefined) => boolean;
|
|
32
34
|
getOptionByValue: (value: string) => ComboboxFlattenOptionType | undefined;
|
|
33
35
|
getLabelByValue: (value: string) => string | undefined;
|
|
34
36
|
getSingleByValue: (value: string) => boolean;
|
|
35
|
-
focusOnInput: () => void;
|
|
37
|
+
focusOnInput: (e?: PointerEvent | undefined) => void;
|
|
38
|
+
removeValue: (value?: string | number | undefined) => void;
|
|
36
39
|
getFlattenOption: (item: ComboboxOptionType) => ComboboxFlattenOptionType;
|
|
37
40
|
getOptionDataset: (option: ComboboxFlattenOptionType) => Record<string, any>;
|
|
38
41
|
getDisabled: import('vue').ComputedRef<boolean>;
|
|
@@ -118,6 +121,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
118
121
|
resetSearchTermOnSelect: boolean;
|
|
119
122
|
noValueOnPlaceholder: boolean;
|
|
120
123
|
tagRenderMode: "go" | "avatar" | "chip";
|
|
124
|
+
showTreeTagStrategy: "all" | "child" | "parent";
|
|
121
125
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
122
126
|
scrollContainerRef: ({
|
|
123
127
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -426,6 +430,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
426
430
|
readonly getSwitcherIcon?: import('@pantograph/utils').OptionGetter<string | undefined> | undefined;
|
|
427
431
|
readonly getDisabled?: import('@pantograph/utils').OptionGetter<boolean | undefined> | undefined;
|
|
428
432
|
readonly getChildren?: import('@pantograph/utils').OptionGetter<object[] | undefined> | undefined;
|
|
433
|
+
readonly getHidden?: import('@pantograph/utils').OptionGetter<boolean | undefined> | undefined;
|
|
429
434
|
readonly groupName?: string | ((node?: object | undefined) => string) | undefined;
|
|
430
435
|
readonly sortableProps?: (Omit<import('@pantograph/sortable').SortableOptions, "onMove"> & {
|
|
431
436
|
onMove?: ((evt: import('../Tree').TreeDragMoveEvent, originalEvent: Event) => boolean | void | 1 | -1) | undefined;
|
|
@@ -14,3 +14,11 @@ export declare const ComboboxStatuses: readonly ["error", "warning", "success",
|
|
|
14
14
|
* Type representing the possible combobox statuses
|
|
15
15
|
*/
|
|
16
16
|
export type ComboboxStatus = (typeof ComboboxStatuses)[number];
|
|
17
|
+
/**
|
|
18
|
+
* Array of available tree tag strategies
|
|
19
|
+
*/
|
|
20
|
+
export declare const ComboboxTreeTagStrategies: readonly ["all", "parent", "child"];
|
|
21
|
+
/**
|
|
22
|
+
* Type representing the possible tree tag strategies
|
|
23
|
+
*/
|
|
24
|
+
export type ComboboxTreeTagStrategy = (typeof ComboboxTreeTagStrategies)[number];
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { ComboboxFlattenOptionType, ComboboxProps, ComboboxEmits, ComboboxSlots, ComboboxOptionType } from './types';
|
|
2
|
-
import { EmitFn, ComputedRef, Ref } from 'vue';
|
|
3
|
-
import { ComboboxSize, ComboboxStatus } from './Combobox.model';
|
|
4
1
|
import { CollectionMap, CollectionMapItem } from '@pantograph/utils-vue';
|
|
2
|
+
import { ComputedRef, EmitFn, Ref } from 'vue';
|
|
3
|
+
import { ComboboxSize, ComboboxStatus } from './Combobox.model';
|
|
4
|
+
import { ComboboxEmits, ComboboxFlattenOptionType, ComboboxOptionType, ComboboxProps, ComboboxSlots } from './types';
|
|
5
5
|
export interface ComboboxContext {
|
|
6
|
+
displaySelectedKeys: ComputedRef<string[]>;
|
|
6
7
|
isOptionSelected: (value?: string) => boolean;
|
|
7
8
|
getOptionByValue: (value: string) => ComboboxFlattenOptionType | undefined;
|
|
8
9
|
getLabelByValue: (value: string) => string | undefined;
|
|
9
10
|
getSingleByValue: (value: string) => boolean;
|
|
10
|
-
focusOnInput: () => void;
|
|
11
|
+
focusOnInput: (e?: PointerEvent) => void;
|
|
12
|
+
removeValue: (value?: string | number) => void;
|
|
11
13
|
getFlattenOption: (item: ComboboxOptionType) => ComboboxFlattenOptionType;
|
|
12
14
|
getOptionDataset: (option: ComboboxFlattenOptionType) => Record<string, any>;
|
|
13
15
|
getDisabled: ComputedRef<boolean>;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SkeletonProps } from '../Skeleton';
|
|
3
|
-
import { ComboboxSize, ComboboxStatus } from './Combobox.model';
|
|
1
|
+
import { OptionGetter } from '@pantograph/utils';
|
|
4
2
|
import { EmitToProp } from '@pantograph/utils-vue';
|
|
5
|
-
import { ScrollContainerProps } from '../ScrollContainer';
|
|
6
|
-
import { EmptyProps } from '../Empty';
|
|
7
3
|
import { ClassValue } from 'clsx';
|
|
4
|
+
import { ChipSlotProps } from '../Chip';
|
|
5
|
+
import { EmptyProps } from '../Empty';
|
|
6
|
+
import { MenuItemProps } from '../MenuItem';
|
|
7
|
+
import { MenuItemLeadingProps } from '../MenuItem/MenuItemContent';
|
|
8
|
+
import { PopoverBaseProps, PopoverEmits, PopoverProps } from '../Popover';
|
|
9
|
+
import { ScrollContainerProps } from '../ScrollContainer';
|
|
10
|
+
import { SkeletonProps } from '../Skeleton';
|
|
8
11
|
import { TreeEmits, TreeProps } from '../Tree';
|
|
9
|
-
import { OptionGetter } from '@pantograph/utils';
|
|
10
12
|
import { FlattenItem } from '../Tree/utils';
|
|
11
|
-
import {
|
|
12
|
-
import { MenuItemProps } from '../MenuItem';
|
|
13
|
+
import { ComboboxSize, ComboboxStatus, ComboboxTreeTagStrategy } from './Combobox.model';
|
|
13
14
|
import { ComboboxInputProps } from './ComboboxInput';
|
|
14
|
-
import { ChipSlotProps } from '../Chip';
|
|
15
15
|
export type ComboboxDefOptionType = {
|
|
16
|
+
hidden?: boolean;
|
|
16
17
|
disabled?: boolean;
|
|
17
18
|
label?: string;
|
|
18
19
|
description?: string;
|
|
@@ -35,6 +36,7 @@ export type ComboboxFlattenOptionType = FlattenItem & {
|
|
|
35
36
|
_divider?: boolean;
|
|
36
37
|
_id?: string;
|
|
37
38
|
_custom?: boolean;
|
|
39
|
+
_hidden?: boolean;
|
|
38
40
|
};
|
|
39
41
|
export interface ComboboxProps extends Partial<Pick<PopoverProps, 'placement' | 'containerProps' | 'reversePlacementOnDir' | 'open' | 'defaultOpen' | 'zIndex' | 'to' | 'sideOffset' | 'alignOffset' | 'reference' | 'prioritizePosition' | 'avoidCollisions' | 'dir' | 'noTrigger' | 'ignoreParentTo' | 'disableOutsidePointerEvents'>> {
|
|
40
42
|
modelValue?: string | string[];
|
|
@@ -55,6 +57,7 @@ export interface ComboboxProps extends Partial<Pick<PopoverProps, 'placement' |
|
|
|
55
57
|
getTagProps?: (option?: ComboboxFlattenOptionType) => Record<string, any>;
|
|
56
58
|
tree?: boolean;
|
|
57
59
|
treeProps?: Omit<TreeProps, 'modelValue' | 'checkedKeys' | 'expandedKeys'>;
|
|
60
|
+
showTreeTagStrategy?: ComboboxTreeTagStrategy;
|
|
58
61
|
contentFit?: boolean;
|
|
59
62
|
wrapped?: boolean;
|
|
60
63
|
sortSelectedItems?: boolean;
|
|
@@ -76,6 +79,7 @@ export interface ComboboxProps extends Partial<Pick<PopoverProps, 'placement' |
|
|
|
76
79
|
getClear?: OptionGetter<boolean>;
|
|
77
80
|
getOptions?: OptionGetter<ComboboxOptionType[]>;
|
|
78
81
|
getIcon?: OptionGetter;
|
|
82
|
+
getHidden?: OptionGetter<boolean>;
|
|
79
83
|
loading?: boolean;
|
|
80
84
|
skeletonProps?: SkeletonProps & Record<string, any>;
|
|
81
85
|
loadingRowCount?: number;
|
|
@@ -30,6 +30,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
30
30
|
resetSearchTermOnSelect: boolean;
|
|
31
31
|
noValueOnPlaceholder: boolean;
|
|
32
32
|
tagRenderMode: "go" | "avatar" | "chip";
|
|
33
|
+
showTreeTagStrategy: "all" | "child" | "parent";
|
|
33
34
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
34
35
|
comboboxRef: ({
|
|
35
36
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -53,6 +54,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
53
54
|
readonly getTagProps?: ((option?: import('../Combobox').ComboboxFlattenOptionType | undefined) => Record<string, any>) | undefined;
|
|
54
55
|
readonly tree?: boolean | undefined;
|
|
55
56
|
readonly treeProps?: Omit<import('../Tree').TreeProps, "modelValue" | "checkedKeys" | "expandedKeys"> | undefined;
|
|
57
|
+
readonly showTreeTagStrategy?: "all" | "child" | "parent" | undefined;
|
|
56
58
|
readonly contentFit?: boolean | undefined;
|
|
57
59
|
readonly wrapped?: boolean | undefined;
|
|
58
60
|
readonly sortSelectedItems?: boolean | undefined;
|
|
@@ -74,6 +76,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
74
76
|
readonly getClear?: import('@pantograph/utils').OptionGetter<boolean> | undefined;
|
|
75
77
|
readonly getOptions?: import('@pantograph/utils').OptionGetter<ComboboxOptionType[]> | undefined;
|
|
76
78
|
readonly getIcon?: import('@pantograph/utils').OptionGetter | undefined;
|
|
79
|
+
readonly getHidden?: import('@pantograph/utils').OptionGetter<boolean> | undefined;
|
|
77
80
|
readonly loading?: boolean | undefined;
|
|
78
81
|
readonly skeletonProps?: (import('../Skeleton').SkeletonProps & Record<string, any>) | undefined;
|
|
79
82
|
readonly loadingRowCount?: number | undefined;
|
|
@@ -458,6 +461,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
458
461
|
readonly getSwitcherIcon?: import('@pantograph/utils').OptionGetter<string | undefined> | undefined;
|
|
459
462
|
readonly getDisabled?: import('@pantograph/utils').OptionGetter<boolean | undefined> | undefined;
|
|
460
463
|
readonly getChildren?: import('@pantograph/utils').OptionGetter<object[] | undefined> | undefined;
|
|
464
|
+
readonly getHidden?: import('@pantograph/utils').OptionGetter<boolean | undefined> | undefined;
|
|
461
465
|
readonly groupName?: string | ((node?: object | undefined) => string) | undefined;
|
|
462
466
|
readonly sortableProps?: (Omit<import('@pantograph/sortable').SortableOptions, "onMove"> & {
|
|
463
467
|
onMove?: ((evt: import('../Tree').TreeDragMoveEvent, originalEvent: Event) => boolean | void | 1 | -1) | undefined;
|
|
@@ -662,11 +666,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
662
666
|
"onUpdate:search"?: ((value?: string | null | undefined) => any) | undefined;
|
|
663
667
|
onFetch?: (() => any) | undefined;
|
|
664
668
|
}>, {
|
|
669
|
+
displaySelectedKeys: import('vue').ComputedRef<string[]>;
|
|
665
670
|
isOptionSelected: (value?: string | undefined) => boolean;
|
|
666
671
|
getOptionByValue: (value: string) => import('../Combobox').ComboboxFlattenOptionType | undefined;
|
|
667
672
|
getLabelByValue: (value: string) => string | undefined;
|
|
668
673
|
getSingleByValue: (value: string) => boolean;
|
|
669
|
-
focusOnInput: () => void;
|
|
674
|
+
focusOnInput: (e?: PointerEvent | undefined) => void;
|
|
675
|
+
removeValue: (value?: string | number | undefined) => void;
|
|
670
676
|
getFlattenOption: (item: ComboboxOptionType) => import('../Combobox').ComboboxFlattenOptionType;
|
|
671
677
|
getOptionDataset: (option: import('../Combobox').ComboboxFlattenOptionType) => Record<string, any>;
|
|
672
678
|
getDisabled: import('vue').ComputedRef<boolean>;
|
|
@@ -735,6 +741,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
735
741
|
resetSearchTermOnSelect: boolean;
|
|
736
742
|
noValueOnPlaceholder: boolean;
|
|
737
743
|
tagRenderMode: "go" | "avatar" | "chip";
|
|
744
|
+
showTreeTagStrategy: "all" | "child" | "parent";
|
|
738
745
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
739
746
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
740
747
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -780,6 +787,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
780
787
|
resetSearchTermOnSelect: boolean;
|
|
781
788
|
noValueOnPlaceholder: boolean;
|
|
782
789
|
tagRenderMode: "go" | "avatar" | "chip";
|
|
790
|
+
showTreeTagStrategy: "all" | "child" | "parent";
|
|
783
791
|
}> & Omit<Readonly<ComboboxProps> & Readonly<{
|
|
784
792
|
onSearch?: ((value?: string | null | undefined) => any) | undefined;
|
|
785
793
|
onSelect?: ((value: string | undefined, selected: boolean, option?: import('../Combobox').ComboboxFlattenOptionType | undefined) => any) | undefined;
|
|
@@ -797,12 +805,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
|
797
805
|
onKeydownEscape?: ((event: import('../Combobox').ComboboxKeydownEvent, search?: string | undefined, isEmpty?: boolean | undefined) => any) | undefined;
|
|
798
806
|
"onUpdate:search"?: ((value?: string | null | undefined) => any) | undefined;
|
|
799
807
|
onFetch?: (() => any) | undefined;
|
|
800
|
-
}>, "props" | "placeholder" | "slots" | "emit" | "getIconSize" | "getDisabled" | "getStatus" | "getSize" | "triggerRef" | "openModel" | "model" | "getItems" | "inputRef" | "onKeyDown" | "focusOnInput" | "getOptionDataset" | ("disabled" | "readonly" | "bordered" | "multiple" | "open" | "defaultOpen" | "prioritizePosition" | "placement" | "sideOffset" | "avoidCollisions" | "disableOutsidePointerEvents" | "zIndex" | "checkbox" | "trailingIcon" | "selectedItemIconAsTrailingIcon" | "indicatorIcon" | "loadingRowCount" | "clearOnChangeMultiple" | "samePopupWidth" | "popupHeight" | "resetSearchTermOnBlur" | "resetSearchTermOnSelect" | "noValueOnPlaceholder" | "tagRenderMode") | "isOptionSelected" | "getOptionByValue" | "getLabelByValue" | "getSingleByValue" | "getFlattenOption" | "getTagSize" | "comboboxInputBinding" | "comboboxTriggerBinding" | "searchModel" | "valuePlaceholder" | "selectOption" | "itemMap" | "highlightedOptionKey" | "comboboxInputFocused" | "inputGroupClass"> & import('vue').ShallowUnwrapRef<{
|
|
808
|
+
}>, "props" | "placeholder" | "slots" | "emit" | "getIconSize" | "getDisabled" | "getStatus" | "getSize" | "triggerRef" | "openModel" | "model" | "getItems" | "inputRef" | "onKeyDown" | "focusOnInput" | "getOptionDataset" | ("disabled" | "readonly" | "bordered" | "multiple" | "open" | "defaultOpen" | "prioritizePosition" | "placement" | "sideOffset" | "avoidCollisions" | "disableOutsidePointerEvents" | "zIndex" | "checkbox" | "trailingIcon" | "selectedItemIconAsTrailingIcon" | "indicatorIcon" | "loadingRowCount" | "clearOnChangeMultiple" | "samePopupWidth" | "popupHeight" | "resetSearchTermOnBlur" | "resetSearchTermOnSelect" | "noValueOnPlaceholder" | "tagRenderMode" | "showTreeTagStrategy") | "displaySelectedKeys" | "isOptionSelected" | "getOptionByValue" | "getLabelByValue" | "getSingleByValue" | "removeValue" | "getFlattenOption" | "getTagSize" | "comboboxInputBinding" | "comboboxTriggerBinding" | "searchModel" | "valuePlaceholder" | "selectOption" | "itemMap" | "highlightedOptionKey" | "comboboxInputFocused" | "inputGroupClass"> & import('vue').ShallowUnwrapRef<{
|
|
809
|
+
displaySelectedKeys: import('vue').ComputedRef<string[]>;
|
|
801
810
|
isOptionSelected: (value?: string | undefined) => boolean;
|
|
802
811
|
getOptionByValue: (value: string) => import('../Combobox').ComboboxFlattenOptionType | undefined;
|
|
803
812
|
getLabelByValue: (value: string) => string | undefined;
|
|
804
813
|
getSingleByValue: (value: string) => boolean;
|
|
805
|
-
focusOnInput: () => void;
|
|
814
|
+
focusOnInput: (e?: PointerEvent | undefined) => void;
|
|
815
|
+
removeValue: (value?: string | number | undefined) => void;
|
|
806
816
|
getFlattenOption: (item: ComboboxOptionType) => import('../Combobox').ComboboxFlattenOptionType;
|
|
807
817
|
getOptionDataset: (option: import('../Combobox').ComboboxFlattenOptionType) => Record<string, any>;
|
|
808
818
|
getDisabled: import('vue').ComputedRef<boolean>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as FloatButton, FloatButtonProps, FloatButtonSlots, FLOAT_BUTTON_DEFAULT_PROPS } from './FloatButton';
|
|
2
2
|
import { DefineComponent } from '@pantograph/utils-vue';
|
|
3
|
-
export { FloatButton, type FloatButtonProps, type FloatButtonSlots, FLOAT_BUTTON_DEFAULT_PROPS
|
|
3
|
+
export { FloatButton, type FloatButtonProps, type FloatButtonSlots, FLOAT_BUTTON_DEFAULT_PROPS };
|
|
4
4
|
declare module 'vue' {
|
|
5
5
|
interface GlobalComponents {
|
|
6
6
|
FloatButton: DefineComponent<FloatButtonProps, FloatButtonSlots>;
|
|
@@ -22,7 +22,6 @@ export declare const usePopoverContext: ({ slots, prefix, props, emit, emitsAsPr
|
|
|
22
22
|
size?: string | null | undefined;
|
|
23
23
|
noPadding?: string | null | undefined;
|
|
24
24
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
25
|
-
asChild: import('vue').ShallowRef<boolean, boolean>;
|
|
26
25
|
rootOpenProp: import('vue').ComputedRef<{
|
|
27
26
|
open: boolean | undefined;
|
|
28
27
|
'onUpdate:open': (value: boolean) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TooltipContentEmits,
|
|
1
|
+
import { TooltipContentEmits, TooltipContentProps, TooltipPortalProps, TooltipProviderProps, TooltipRootEmits, TooltipRootProps, TooltipTriggerProps } from 'reka-ui';
|
|
2
2
|
import { GraphicalObjectProps, GraphicalObjectSlots } from '../GraphicalObject';
|
|
3
3
|
import { PopoverBaseProps } from '../Popover';
|
|
4
4
|
import { ShortcutProps } from '../Shortcut';
|
|
@@ -30,6 +30,8 @@ export type TreeNodeType = {
|
|
|
30
30
|
noRotateSwitcherIcon?: boolean;
|
|
31
31
|
/** Key of the node */
|
|
32
32
|
key: string;
|
|
33
|
+
/** Whether the node is hidden */
|
|
34
|
+
hidden?: boolean;
|
|
33
35
|
};
|
|
34
36
|
/**
|
|
35
37
|
* Type representing a flattened tree item
|
|
@@ -49,6 +51,8 @@ export type TreeItem = object & FlattenItem & {
|
|
|
49
51
|
_loading?: boolean;
|
|
50
52
|
/** Whether to not rotate the switcher icon */
|
|
51
53
|
_noRotateSwitcherIcon?: boolean;
|
|
54
|
+
/** Whether the item is hidden */
|
|
55
|
+
_hidden?: boolean;
|
|
52
56
|
};
|
|
53
57
|
/**
|
|
54
58
|
* Interface for extra parameters in tree drag events
|
|
@@ -166,6 +170,8 @@ export interface TreeProps extends Partial<Pick<TreeNodeType, 'switcherIcon' | '
|
|
|
166
170
|
getDisabled?: OptionGetter<boolean | undefined>;
|
|
167
171
|
/** Function to get the children of a node */
|
|
168
172
|
getChildren?: OptionGetter<object[] | undefined>;
|
|
173
|
+
/** Function to determine if a node is hidden */
|
|
174
|
+
getHidden?: OptionGetter<boolean | undefined>;
|
|
169
175
|
/** Group name for drag and drop between trees */
|
|
170
176
|
groupName?: string | ((node?: object) => string);
|
|
171
177
|
/** Sortable options for drag and drop functionality */
|