@teammodlr/ui-kit 2.3.22 → 3.0.0-beta.2

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.
Files changed (95) hide show
  1. package/lib/components/avatar/Avatar.vue.d.ts +2 -2
  2. package/lib/components/badge/style/Badge.css.d.ts +2 -2
  3. package/lib/components/button/Button.vue.d.ts +7 -4
  4. package/lib/components/button/style/Button.css.d.ts +3 -3
  5. package/lib/components/cardcontextmenu/CardContextMenu.vue.d.ts +5 -8
  6. package/lib/components/cardcontextmenu/CardContextMenuItem.vue.d.ts +11 -2
  7. package/lib/components/cardcontextmenu/CardContextMenuTriggerProvider.vue.d.ts +2 -0
  8. package/lib/components/cardcontextmenu/style/Dropdown.css.d.ts +2 -1
  9. package/lib/components/cardcontextmenu/symbol.d.ts +1 -0
  10. package/lib/components/checkbox/Checkbox.vue.d.ts +15 -4
  11. package/lib/components/collapse/CollapseItem.vue.d.ts +3 -2
  12. package/lib/components/colorpicker/ColorPicker.vue.d.ts +8 -9
  13. package/lib/components/confirm/Confirm.vue.d.ts +9 -0
  14. package/lib/components/confirm/props.d.ts +4 -0
  15. package/lib/components/dialog/Dialog.vue.d.ts +9 -4
  16. package/lib/components/dialogprovider/DialogProvider.vue.d.ts +1 -0
  17. package/lib/components/dialogprovider/types.d.ts +1 -0
  18. package/lib/components/dropdown/Dropdown.vue.d.ts +3 -1
  19. package/lib/components/dropdown/DropdownItem.vue.d.ts +11 -1
  20. package/lib/components/dropdown/DropdownSeperator.vue.d.ts +1 -0
  21. package/lib/components/dropdown/DropdownTriggerProvider.vue.d.ts +2 -0
  22. package/lib/components/dropdown/style/Dropdown.css.d.ts +2 -1
  23. package/lib/components/dropdown/symbol.d.ts +2 -0
  24. package/lib/components/image/Image.vue.d.ts +1 -1
  25. package/lib/components/messageprovider/Message.vue.d.ts +1 -1
  26. package/lib/components/messageprovider/MessageProvider.vue.d.ts +22 -24
  27. package/lib/components/messageprovider/style/Message.css.d.ts +1 -1
  28. package/lib/components/messageprovider/types.d.ts +5 -0
  29. package/lib/components/modal/Modal.vue.d.ts +18 -6
  30. package/lib/components/radio/Radio.vue.d.ts +2 -0
  31. package/lib/components/radiobuttongroup/RadioButtonGroup.vue.d.ts +1 -0
  32. package/lib/components/select/Select.vue.d.ts +23 -11
  33. package/lib/components/select/style/Select.css.d.ts +2 -0
  34. package/lib/components/switch/Switch.vue.d.ts +2 -0
  35. package/lib/components/tab/Tab.vue.d.ts +5 -2
  36. package/lib/components/tab/TabGroup.vue.d.ts +8 -3
  37. package/lib/components/textarea/Textarea.vue.d.ts +2 -1
  38. package/lib/components/tooltip/Tooltip.vue.d.ts +5 -20
  39. package/lib/components/tooltip/TooltipTrigger.vue.d.ts +1 -10
  40. package/lib/components/tree/Tree.vue.d.ts +3 -3
  41. package/lib/components/tree/TreeNode.vue.d.ts +26 -12
  42. package/lib/components/tree/types.d.ts +5 -5
  43. package/lib/index.cjs.js +5 -14
  44. package/lib/index.es.js +14765 -10217
  45. package/lib/style.css +1 -1
  46. package/package.json +12 -6
  47. package/src/components/avatar/Avatar.vue +32 -24
  48. package/src/components/button/Button.vue +24 -5
  49. package/src/components/cardcontextmenu/CardContextMenu.vue +68 -95
  50. package/src/components/cardcontextmenu/CardContextMenuItem.vue +40 -50
  51. package/src/components/cardcontextmenu/CardContextMenuSeperator.vue +9 -7
  52. package/src/components/cardcontextmenu/CardContextMenuTriggerProvider.vue +15 -0
  53. package/src/components/cardcontextmenu/style/Dropdown.css.ts +155 -2
  54. package/src/components/cardcontextmenu/symbol.ts +3 -0
  55. package/src/components/checkbox/Checkbox.vue +37 -12
  56. package/src/components/checkbox/style/Checkbox.css.ts +6 -6
  57. package/src/components/collapse/CollapseItem.vue +46 -21
  58. package/src/components/collapse/style/Collapse.css.ts +5 -1
  59. package/src/components/colorpicker/ColorPicker.vue +76 -45
  60. package/src/components/confirm/Confirm.vue +15 -8
  61. package/src/components/confirm/props.ts +4 -0
  62. package/src/components/dialog/Dialog.vue +169 -36
  63. package/src/components/dialogprovider/types.ts +1 -0
  64. package/src/components/dropdown/Dropdown.vue +46 -3
  65. package/src/components/dropdown/DropdownItem.vue +55 -25
  66. package/src/components/dropdown/DropdownSeperator.vue +19 -11
  67. package/src/components/dropdown/DropdownTriggerProvider.vue +15 -0
  68. package/src/components/dropdown/examples/context.vue +2 -2
  69. package/src/components/dropdown/style/Dropdown.css.ts +157 -4
  70. package/src/components/dropdown/symbol.ts +4 -0
  71. package/src/components/form/examples/basic.vue +19 -8
  72. package/src/components/messageprovider/MessageProvider.vue +136 -90
  73. package/src/components/messageprovider/examples/basic.vue +3 -1
  74. package/src/components/messageprovider/examples/index.stories.ts +37 -1
  75. package/src/components/messageprovider/types.ts +10 -0
  76. package/src/components/modal/Modal.vue +142 -67
  77. package/src/components/radio/Radio.vue +31 -17
  78. package/src/components/radiobutton/RadioButton.vue +15 -2
  79. package/src/components/radiobuttongroup/RadioButtonGroup.vue +11 -4
  80. package/src/components/select/Select.vue +309 -148
  81. package/src/components/select/examples/basic.vue +1 -1
  82. package/src/components/select/style/Select.css.ts +15 -0
  83. package/src/components/slider/Slider.vue +1 -1
  84. package/src/components/switch/Switch.vue +30 -10
  85. package/src/components/switch/style/Switch.css.ts +3 -5
  86. package/src/components/tab/Tab.vue +29 -20
  87. package/src/components/tab/TabGroup.vue +29 -38
  88. package/src/components/textarea/Textarea.vue +8 -4
  89. package/src/components/tooltip/Tooltip.vue +52 -141
  90. package/src/components/tooltip/TooltipTrigger.vue +14 -17
  91. package/src/components/tooltip/style/Tooltip.css.ts +148 -29
  92. package/src/components/tree/Tree.vue +138 -100
  93. package/src/components/tree/TreeNode.vue +105 -98
  94. package/src/components/tree/types.ts +4 -4
  95. package/src/styles/transitions.css.ts +36 -16
@@ -51,6 +51,8 @@ declare const _default: import("vue").DefineComponent<{
51
51
  inputListeners: {};
52
52
  focus: () => void | undefined;
53
53
  blur: () => void | undefined;
54
+ onFocus: (event: FocusEvent) => void;
55
+ onBlur: (event: FocusEvent) => void;
54
56
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
55
57
  label: {
56
58
  type: StringConstructor;
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
21
21
  computedClasses: import("vue").ComputedRef<(string | {
22
22
  [x: string]: boolean;
23
23
  })[]>;
24
+ selectedValue: import("vue").WritableComputedRef<string | number>;
24
25
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
26
  modelValue: {
26
27
  type: (NumberConstructor | StringConstructor)[];
@@ -69,6 +69,10 @@ declare const _default: import("vue").DefineComponent<{
69
69
  type: NumberConstructor;
70
70
  default: number;
71
71
  };
72
+ portal: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
72
76
  zIndex: {
73
77
  type: NumberConstructor;
74
78
  };
@@ -88,12 +92,14 @@ declare const _default: import("vue").DefineComponent<{
88
92
  };
89
93
  }, {
90
94
  container: import("vue").Ref<HTMLElement | null>;
91
- optionsRef: import("vue").Ref<HTMLElement[] | undefined>;
92
- searchRef: import("vue").Ref<HTMLElement | undefined>;
95
+ optionsRef: import("vue").Ref<HTMLElement[]>;
96
+ searchRef: import("vue").Ref<HTMLInputElement | undefined>;
93
97
  selectRef: import("vue").Ref<HTMLElement | undefined>;
94
- popper: import("vue").Ref<HTMLElement | null | undefined>;
95
- focusSelect: (event: FocusEvent) => void;
96
- onSelectClick: (event: MouseEvent) => void;
98
+ popper: import("vue").Ref<HTMLElement | undefined>;
99
+ handleTriggerFocus: () => void;
100
+ handleTriggerBlur: () => void;
101
+ handleKeyDown: (e: Event) => void;
102
+ handleOpenChange: (value: boolean) => void;
97
103
  id: string;
98
104
  isOpen: import("vue").ComputedRef<boolean>;
99
105
  open: import("vue").Ref<boolean>;
@@ -111,6 +117,9 @@ declare const _default: import("vue").DefineComponent<{
111
117
  containerComputedClasses: import("vue").ComputedRef<(string | {
112
118
  'm-form__input': boolean;
113
119
  })[]>;
120
+ selectComputedArrowClasses: import("vue").ComputedRef<(string | {
121
+ [x: string]: boolean;
122
+ })[]>;
114
123
  selectComputedClasses: import("vue").ComputedRef<(string | {
115
124
  [x: string]: any;
116
125
  'm-select--disabled': any;
@@ -118,21 +127,19 @@ declare const _default: import("vue").DefineComponent<{
118
127
  'm-select--multiple': boolean;
119
128
  'm-select--error': any;
120
129
  })[]>;
121
- computedWrapperClasses: import("vue").ComputedRef<(string | {
122
- [x: string]: boolean;
123
- })[]>;
130
+ computedWrapperClasses: import("vue").ComputedRef<string[]>;
124
131
  computedConsistentWidth: import("vue").ComputedRef<{
125
132
  zIndex: number;
126
133
  }>;
127
134
  getSelectedLabel: (value: string | number | []) => any;
128
- openSelect: () => void;
135
+ openSelect: (forceOpen?: boolean) => void;
129
136
  removeSelected: (event: MouseEvent, value: string | number) => void;
130
137
  inputError: import("vue").ComputedRef<any>;
131
138
  transitionName: import("vue").ComputedRef<string>;
132
139
  inputListeners: {};
133
140
  style: typeof style;
134
141
  focused: import("vue").Ref<boolean>;
135
- scale: {
142
+ fade: {
136
143
  enterActive: string;
137
144
  leaveActive: string;
138
145
  enterFrom: string;
@@ -290,6 +297,10 @@ declare const _default: import("vue").DefineComponent<{
290
297
  type: NumberConstructor;
291
298
  default: number;
292
299
  };
300
+ portal: {
301
+ type: BooleanConstructor;
302
+ default: boolean;
303
+ };
293
304
  zIndex: {
294
305
  type: NumberConstructor;
295
306
  };
@@ -316,8 +327,8 @@ declare const _default: import("vue").DefineComponent<{
316
327
  readonly: boolean;
317
328
  description: string;
318
329
  required: boolean;
319
- max: number;
320
330
  loading: boolean;
331
+ max: number;
321
332
  rules: unknown[];
322
333
  placeholder: string;
323
334
  transitionName: string;
@@ -327,6 +338,7 @@ declare const _default: import("vue").DefineComponent<{
327
338
  consistentWidth: boolean;
328
339
  allowBlank: boolean;
329
340
  selectAll: boolean;
341
+ portal: boolean;
330
342
  showDataOptions: boolean;
331
343
  }, {}>;
332
344
  export default _default;
@@ -37,3 +37,5 @@ export declare const checkAllButtonActive: string;
37
37
  export declare const optionIcon: string;
38
38
  export declare const noResults: string;
39
39
  export declare const clearable: string;
40
+ export declare const arrow: string;
41
+ export declare const arrowOpen: string;
@@ -47,6 +47,8 @@ declare const _default: import("vue").DefineComponent<{
47
47
  inputListeners: {};
48
48
  focus: () => void | undefined;
49
49
  blur: () => void | undefined;
50
+ onFocus: (event: FocusEvent) => void;
51
+ onBlur: (event: FocusEvent) => void;
50
52
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
51
53
  label: {
52
54
  type: StringConstructor;
@@ -23,9 +23,12 @@ declare const _default: import("vue").DefineComponent<{
23
23
  computedTabLabelClasses: import("vue").ComputedRef<{
24
24
  [x: string]: boolean;
25
25
  }>;
26
- handleClick: () => void;
27
26
  selected: import("vue").ComputedRef<boolean>;
28
- teleportTo: import("vue").Ref<null>;
27
+ teleportTo: import("vue").Ref<HTMLElement | null>;
28
+ hasContent: import("vue").ComputedRef<boolean>;
29
+ attrs: {
30
+ [x: string]: unknown;
31
+ };
29
32
  close: string;
30
33
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClose"[], "onClose", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
34
  value: {
@@ -26,8 +26,9 @@ declare const _default: import("vue").DefineComponent<{
26
26
  };
27
27
  }, {
28
28
  wrapperRef: import("vue").Ref<HTMLElement | undefined>;
29
+ tabsRef: import("vue").Ref<HTMLElement | undefined>;
29
30
  tabsContentRef: import("vue").Ref<HTMLElement | undefined>;
30
- contentRef: import("vue").Ref<HTMLElement | undefined>;
31
+ currentValue: import("vue").ComputedRef<string | number | undefined>;
31
32
  computedTabsWrapperClasses: import("vue").ComputedRef<{
32
33
  'm-tab-group': boolean;
33
34
  'm-tab-group--vertical': boolean;
@@ -38,7 +39,8 @@ declare const _default: import("vue").DefineComponent<{
38
39
  computedTabContentClasses: import("vue").ComputedRef<{
39
40
  [x: string]: boolean;
40
41
  }>;
41
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
+ selectTab: (tab: string | number) => void;
43
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:selected")[], "update:modelValue" | "update:selected", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
44
  modelValue: {
43
45
  type: (NumberConstructor | StringConstructor)[];
44
46
  };
@@ -62,7 +64,10 @@ declare const _default: import("vue").DefineComponent<{
62
64
  default: string;
63
65
  validator: (value: string) => boolean;
64
66
  };
65
- }>>, {
67
+ }>> & {
68
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
69
+ "onUpdate:selected"?: ((...args: any[]) => any) | undefined;
70
+ }, {
66
71
  size: Size;
67
72
  type: "base" | "card";
68
73
  vertical: boolean;
@@ -49,7 +49,7 @@ declare const _default: import("vue").DefineComponent<{
49
49
  readonly default: () => never[];
50
50
  };
51
51
  }, {
52
- element: import("vue").Ref<HTMLInputElement | null>;
52
+ element: import("vue").Ref<HTMLTextAreaElement | null>;
53
53
  id: string;
54
54
  disabled: import("vue").ComputedRef<any>;
55
55
  loading: import("vue").ComputedRef<any>;
@@ -64,6 +64,7 @@ declare const _default: import("vue").DefineComponent<{
64
64
  [x: string]: boolean;
65
65
  }[]>;
66
66
  name: import("vue").Ref<string | undefined>;
67
+ textareaValue: import("vue").ComputedRef<string>;
67
68
  inputError: import("vue").ComputedRef<any>;
68
69
  style: typeof style;
69
70
  onClear: () => void;
@@ -1,11 +1,6 @@
1
- import { type PropType, type Ref } from 'vue';
1
+ import { type PropType } from 'vue';
2
2
  import { type Placement } from '../../composables/usePopper';
3
3
  import * as style from './style';
4
- interface TooltipContext {
5
- reference: Ref<HTMLElement | undefined>;
6
- onReferenceChange: (element: HTMLElement | undefined) => void;
7
- }
8
- export declare const injectionTooltipContext: <T extends TooltipContext | null | undefined = TooltipContext>(fallback?: T | undefined) => T extends null ? TooltipContext | null : TooltipContext, providerTooltipContext: (contextValue: TooltipContext) => TooltipContext;
9
4
  declare const _default: import("vue").DefineComponent<{
10
5
  text: {
11
6
  type: StringConstructor;
@@ -36,24 +31,14 @@ declare const _default: import("vue").DefineComponent<{
36
31
  default: number;
37
32
  };
38
33
  }, {
39
- reference: Ref<HTMLElement | undefined>;
40
- offset: import("vue").ComputedRef<number[]>;
41
- popper: Ref<HTMLElement | null | undefined>;
42
- transferTo: Ref<string>;
43
- isOpen: Ref<boolean>;
44
- show: () => void;
45
- hide: () => void;
46
34
  computedClasses: import("vue").ComputedRef<(string | {
47
35
  [x: string]: boolean;
48
36
  })[]>;
49
- zIndex: Ref<number>;
37
+ resolvedSide: import("vue").ComputedRef<"bottom" | "left" | "right" | "top" | undefined>;
38
+ resolvedAlign: import("vue").ComputedRef<"center" | "end" | "start" | undefined>;
39
+ transfer: import("vue").ComputedRef<boolean>;
40
+ zIndex: import("vue").Ref<number>;
50
41
  style: typeof style;
51
- fade: {
52
- enterActive: string;
53
- leaveActive: string;
54
- enterFrom: string;
55
- leaveTo: string;
56
- };
57
42
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
58
43
  text: {
59
44
  type: StringConstructor;
@@ -1,11 +1,2 @@
1
- declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- };
4
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
5
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
6
2
  export default _default;
7
- type __VLS_WithTemplateSlots<T, S> = T & {
8
- new (): {
9
- $slots: S;
10
- };
11
- };
@@ -1,4 +1,4 @@
1
- import type { Key, TreeOption } from "./types";
1
+ import type { Key, TreeOption } from './types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  readonly expandedKeys: import("vue").PropType<Key[]>;
4
4
  readonly defaultExpandAll: BooleanConstructor;
@@ -43,8 +43,8 @@ declare const _default: import("vue").DefineComponent<{
43
43
  readonly nodeProps: import("vue").PropType<import("./types").TreeNodeProps>;
44
44
  readonly getChildren: import("vue").PropType<import("./props").GetChildren>;
45
45
  }, {
46
- nodesRef: import("vue").ComputedRef<import("treemate").TreeNode<TreeOption, TreeOption, TreeOption>[]>;
47
- displayTreeMateRef: import("vue").ComputedRef<import("treemate").TreeMate<TreeOption, TreeOption, TreeOption>>;
46
+ keyField: string;
47
+ normalizedData: import("vue").ComputedRef<TreeOption[]>;
48
48
  selfElRef: import("vue").Ref<HTMLDivElement | null>;
49
49
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("dblclick" | "update:expandedKeys")[], "dblclick" | "update:expandedKeys", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
50
50
  readonly expandedKeys: import("vue").PropType<Key[]>;
@@ -1,24 +1,38 @@
1
- import { type PropType } from "vue";
2
- import type { TmNode } from "./types";
3
- import * as style from "./style";
1
+ import { type PropType } from 'vue';
2
+ import * as style from './style';
3
+ import type { TreeOption } from './types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  node: {
6
- type: PropType<TmNode>;
6
+ type: PropType<TreeOption>;
7
7
  required: true;
8
8
  };
9
+ level: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
9
13
  }, {
10
- selfElRef: import("vue").Ref<HTMLDivElement | null>;
11
- handleLineClick: (e: MouseEvent) => void;
12
- indentCount: import("vue").ComputedRef<number>;
13
- labelField: import("vue").ComputedRef<unknown>;
14
+ children: import("vue").ComputedRef<TreeOption[]>;
14
15
  expanded: import("vue").ComputedRef<boolean>;
15
- handleToggleClick: () => void;
16
- doDoubleClick: (e: MouseEvent) => void;
16
+ handleContentClick: () => void;
17
+ doDoubleClick: () => void;
18
+ handleToggleClick: (event?: MouseEvent) => void;
19
+ indent: import("vue").ComputedRef<number>;
20
+ isLeaf: import("vue").ComputedRef<boolean>;
21
+ keyField: import("vue").ComputedRef<string>;
22
+ label: import("vue").ComputedRef<string>;
23
+ level: number;
24
+ resolvedNodeProps: import("vue").ComputedRef<import("vue").HTMLAttributes & Record<string, unknown>>;
17
25
  style: typeof style;
18
26
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
27
  node: {
20
- type: PropType<TmNode>;
28
+ type: PropType<TreeOption>;
21
29
  required: true;
22
30
  };
23
- }>>, {}, {}>;
31
+ level: {
32
+ type: NumberConstructor;
33
+ default: number;
34
+ };
35
+ }>>, {
36
+ level: number;
37
+ }, {}>;
24
38
  export default _default;
@@ -1,5 +1,4 @@
1
- import type { HTMLAttributes, Ref, InjectionKey } from 'vue';
2
- import type { TreeNode } from 'treemate';
1
+ import type { HTMLAttributes, Ref } from 'vue';
3
2
  export type Key = string | number;
4
3
  export interface TreeOptionBase {
5
4
  key?: Key;
@@ -20,11 +19,12 @@ export interface TreeInjection {
20
19
  labelFieldRef: Ref<string>;
21
20
  keyFieldRef: Ref<string>;
22
21
  childrenFieldRef: Ref<string>;
23
- handleToggleClick: (node: TreeNode<TreeOption>) => void;
22
+ getChildren: (node: TreeOption) => TreeOption[];
23
+ handleToggle: (node: TreeOption) => void;
24
24
  handleDoubleClick: (node: TreeOption) => void;
25
25
  }
26
- export declare const treeInjectionKey: InjectionKey<TreeInjection>;
27
- export type TmNode = TreeNode<TreeOption>;
26
+ export declare const treeInjectionKey: import("vue").InjectionKey<TreeInjection>;
27
+ export type TmNode = TreeOption;
28
28
  export type OnUpdateCheckedKeys = (value: (string & number)[], option: (TreeOption | null)[], meta: {
29
29
  node: TreeOption | null;
30
30
  action: 'check' | 'uncheck';