lew-ui 2.5.11 → 2.5.14

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.
@@ -1,5 +1,5 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
- import { LewColor } from '../../..';
2
+ import { LewColor, TagType } from '../../..';
3
3
 
4
4
  export type MenuOptions = {
5
5
  label: string;
@@ -10,6 +10,7 @@ export type MenuOptions = {
10
10
  renderIcon?: string;
11
11
  tagText?: string;
12
12
  tagColor?: LewColor;
13
+ tagType?: TagType;
13
14
  };
14
15
  export declare const menuModel: {
15
16
  modelValue: {
@@ -4,14 +4,23 @@ declare function __VLS_template(): {
4
4
  readonly label: string;
5
5
  readonly disabled: boolean;
6
6
  readonly renderIcon: Function;
7
+ readonly tagText: string;
8
+ readonly tagType: string;
9
+ readonly tagColor: string;
7
10
  readonly level: number;
8
11
  readonly isLeaf: boolean;
12
+ readonly renderLabel: Function;
9
13
  readonly menuKey?: string | number | undefined;
10
14
  };
11
15
  }): any;
12
16
  default?(_: {}): any;
13
17
  };
14
18
  declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
19
+ renderLabel: {
20
+ type: FunctionConstructor;
21
+ default: () => void;
22
+ description: string;
23
+ };
15
24
  menuKey: {
16
25
  type: (StringConstructor | NumberConstructor)[];
17
26
  required: boolean;
@@ -23,6 +32,21 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
23
32
  default: () => void;
24
33
  description: string;
25
34
  };
35
+ tagText: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ description: string;
39
+ };
40
+ tagType: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ description: string;
44
+ };
45
+ tagColor: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ description: string;
49
+ };
26
50
  disabled: {
27
51
  type: BooleanConstructor;
28
52
  default: boolean;
@@ -46,6 +70,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
46
70
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
47
71
  change: (...args: any[]) => void;
48
72
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
73
+ renderLabel: {
74
+ type: FunctionConstructor;
75
+ default: () => void;
76
+ description: string;
77
+ };
49
78
  menuKey: {
50
79
  type: (StringConstructor | NumberConstructor)[];
51
80
  required: boolean;
@@ -57,6 +86,21 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
57
86
  default: () => void;
58
87
  description: string;
59
88
  };
89
+ tagText: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ description: string;
93
+ };
94
+ tagType: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ description: string;
98
+ };
99
+ tagColor: {
100
+ type: StringConstructor;
101
+ default: string;
102
+ description: string;
103
+ };
60
104
  disabled: {
61
105
  type: BooleanConstructor;
62
106
  default: boolean;
@@ -83,8 +127,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
83
127
  label: string;
84
128
  disabled: boolean;
85
129
  renderIcon: Function;
130
+ tagText: string;
131
+ tagType: string;
132
+ tagColor: string;
86
133
  level: number;
87
134
  isLeaf: boolean;
135
+ renderLabel: Function;
88
136
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
89
137
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
90
138
  export default _default;
@@ -1,12 +1,17 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
+ import { TagType, LewColor } from '../../..';
2
3
 
3
4
  export type MenuTreeItem = {
4
5
  label: string;
5
6
  value: string | number;
6
7
  active?: boolean;
7
8
  disabled?: boolean;
8
- renderIcon: () => any;
9
9
  children?: MenuTreeItem[];
10
+ tagText?: string;
11
+ tagType?: TagType;
12
+ tagColor?: LewColor;
13
+ renderIcon?: () => any;
14
+ renderLabel?: () => any;
10
15
  };
11
16
  export declare const menuTreeModel: {
12
17
  modelValue: {
@@ -58,6 +63,21 @@ export declare const menuTreeItemProps: {
58
63
  default: () => void;
59
64
  description: string;
60
65
  };
66
+ tagText: {
67
+ type: StringConstructor;
68
+ default: string;
69
+ description: string;
70
+ };
71
+ tagType: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ description: string;
75
+ };
76
+ tagColor: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ description: string;
80
+ };
61
81
  disabled: {
62
82
  type: BooleanConstructor;
63
83
  default: boolean;
@@ -42,6 +42,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
42
42
  description: string;
43
43
  validator(value: [number, number]): boolean;
44
44
  };
45
+ reserveEnd: {
46
+ type: NumberConstructor;
47
+ default: number;
48
+ description: string;
49
+ validator(value: number): boolean;
50
+ };
45
51
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
46
52
  text: {
47
53
  type: (StringConstructor | BooleanConstructor | NumberConstructor | ObjectConstructor | ArrayConstructor)[];
@@ -83,6 +89,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
83
89
  description: string;
84
90
  validator(value: [number, number]): boolean;
85
91
  };
92
+ reserveEnd: {
93
+ type: NumberConstructor;
94
+ default: number;
95
+ description: string;
96
+ validator(value: number): boolean;
97
+ };
86
98
  }>> & Readonly<{}>, {
87
99
  x: import('./props').TextTrimAlignment;
88
100
  text: string | number | boolean | Record<string, any> | unknown[];
@@ -91,6 +103,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
91
103
  placement: import('./props').TextTrimPlacement;
92
104
  offset: number[];
93
105
  delay: number[];
106
+ reserveEnd: number;
94
107
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
95
108
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
96
109
  export default _default;
@@ -43,5 +43,11 @@ export declare const textTrimProps: {
43
43
  description: string;
44
44
  validator(value: [number, number]): boolean;
45
45
  };
46
+ reserveEnd: {
47
+ type: NumberConstructor;
48
+ default: number;
49
+ description: string;
50
+ validator(value: number): boolean;
51
+ };
46
52
  };
47
53
  export type TextTrimProps = ExtractPropTypes<typeof textTrimProps>;
@@ -0,0 +1,9 @@
1
+ export declare const getDisplayText: ({ text, reserveEnd, target }: {
2
+ text: string;
3
+ reserveEnd: number;
4
+ target: HTMLElement;
5
+ }) => {
6
+ text: string;
7
+ isEllipsis: boolean;
8
+ };
9
+ export declare const clearMeasureCache: () => void;