lew-ui 2.4.13 → 2.4.15

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/README.md CHANGED
@@ -32,9 +32,9 @@ import { LewButton } from 'lew-ui'
32
32
 
33
33
  Lew UI uses the following open source libraries:
34
34
 
35
- - [tippy.js](https://atomiks.github.io/tippyjs/): For creating tooltips and popovers
35
+ - [Tippy.js](https://atomiks.github.io/tippyjs/): For creating tooltips and popovers
36
36
  - [Lucide](https://github.com/lucide-icons/lucide): Provides a clean and beautiful icon set
37
- - [fancyapps](https://fancyapps.com/): For creating image galleries and carousels
37
+ - [Fancybox](https://fancyapps.com/): For creating image galleries and carousels
38
38
  - [VueUse](https://vueuse.org/): Collection of Vue Composition API utilities
39
39
  - [Day.js](https://day.js.org/): Lightweight library for date manipulation
40
40
  - [Yup](https://github.com/jquense/yup): Object schema validation library
@@ -0,0 +1,3 @@
1
+ export { default as LewDesc } from './src/LewDesc.vue';
2
+ export { default as LewDescItem } from './src/LewDescItem.vue';
3
+ export * from './src/props';
@@ -0,0 +1,150 @@
1
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
+ options: {
3
+ type: PropType<Array<Record<string, any>>>;
4
+ required: boolean;
5
+ default: () => never[];
6
+ description: string;
7
+ validator(value: Array<Record<string, any>>): boolean;
8
+ };
9
+ dataSource: {
10
+ type: PropType<Record<string, any>>;
11
+ default: () => {};
12
+ description: string;
13
+ };
14
+ size: {
15
+ type: PropType<import('../../..').LewSize>;
16
+ default: string;
17
+ description: string;
18
+ validator(value: import('../../..').LewSize): boolean;
19
+ };
20
+ labelX: {
21
+ type: PropType<import('../..').TextTrimAlignment>;
22
+ default: string;
23
+ description: string;
24
+ };
25
+ valueX: {
26
+ type: PropType<import('../..').TextTrimAlignment>;
27
+ default: string;
28
+ description: string;
29
+ };
30
+ gap: {
31
+ type: (StringConstructor | NumberConstructor)[];
32
+ default: number;
33
+ description: string;
34
+ validator(value: string | number): boolean;
35
+ };
36
+ width: {
37
+ type: (StringConstructor | NumberConstructor)[];
38
+ default: string;
39
+ description: string;
40
+ validator(value: number | string): boolean;
41
+ };
42
+ columns: {
43
+ type: (StringConstructor | NumberConstructor)[];
44
+ default: number;
45
+ description: string;
46
+ validator(value: number | string): boolean;
47
+ };
48
+ labelWidth: {
49
+ type: (StringConstructor | NumberConstructor)[];
50
+ default: string;
51
+ description: string;
52
+ validator(value: number | string): boolean;
53
+ };
54
+ direction: {
55
+ type: PropType<import('./props').DescDirection>;
56
+ default: string;
57
+ description: string;
58
+ validator(value: import('./props').DescDirection): boolean;
59
+ };
60
+ id: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ description: string;
64
+ hidden: boolean;
65
+ };
66
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
67
+ change: (...args: any[]) => void;
68
+ mounted: (...args: any[]) => void;
69
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
70
+ options: {
71
+ type: PropType<Array<Record<string, any>>>;
72
+ required: boolean;
73
+ default: () => never[];
74
+ description: string;
75
+ validator(value: Array<Record<string, any>>): boolean;
76
+ };
77
+ dataSource: {
78
+ type: PropType<Record<string, any>>;
79
+ default: () => {};
80
+ description: string;
81
+ };
82
+ size: {
83
+ type: PropType<import('../../..').LewSize>;
84
+ default: string;
85
+ description: string;
86
+ validator(value: import('../../..').LewSize): boolean;
87
+ };
88
+ labelX: {
89
+ type: PropType<import('../..').TextTrimAlignment>;
90
+ default: string;
91
+ description: string;
92
+ };
93
+ valueX: {
94
+ type: PropType<import('../..').TextTrimAlignment>;
95
+ default: string;
96
+ description: string;
97
+ };
98
+ gap: {
99
+ type: (StringConstructor | NumberConstructor)[];
100
+ default: number;
101
+ description: string;
102
+ validator(value: string | number): boolean;
103
+ };
104
+ width: {
105
+ type: (StringConstructor | NumberConstructor)[];
106
+ default: string;
107
+ description: string;
108
+ validator(value: number | string): boolean;
109
+ };
110
+ columns: {
111
+ type: (StringConstructor | NumberConstructor)[];
112
+ default: number;
113
+ description: string;
114
+ validator(value: number | string): boolean;
115
+ };
116
+ labelWidth: {
117
+ type: (StringConstructor | NumberConstructor)[];
118
+ default: string;
119
+ description: string;
120
+ validator(value: number | string): boolean;
121
+ };
122
+ direction: {
123
+ type: PropType<import('./props').DescDirection>;
124
+ default: string;
125
+ description: string;
126
+ validator(value: import('./props').DescDirection): boolean;
127
+ };
128
+ id: {
129
+ type: StringConstructor;
130
+ default: string;
131
+ description: string;
132
+ hidden: boolean;
133
+ };
134
+ }>> & Readonly<{
135
+ onChange?: ((...args: any[]) => any) | undefined;
136
+ onMounted?: ((...args: any[]) => any) | undefined;
137
+ }>, {
138
+ size: import('../../..').LewSize;
139
+ direction: import('./props').DescDirection;
140
+ gap: string | number;
141
+ width: string | number;
142
+ options: Record<string, any>[];
143
+ dataSource: Record<string, any>;
144
+ columns: string | number;
145
+ labelWidth: string | number;
146
+ id: string;
147
+ labelX: import('../..').TextTrimAlignment;
148
+ valueX: import('../..').TextTrimAlignment;
149
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
150
+ export default _default;
@@ -0,0 +1,171 @@
1
+ import { TextTrimAlignment } from '../../..';
2
+
3
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
4
+ label: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ description: string;
8
+ };
9
+ field: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ description: string;
13
+ };
14
+ size: {
15
+ type: PropType<import('../../..').LewSize>;
16
+ default: string;
17
+ description: string;
18
+ validator(value: import('../../..').LewSize): boolean;
19
+ };
20
+ width: {
21
+ type: (StringConstructor | NumberConstructor)[];
22
+ default: string;
23
+ description: string;
24
+ validator(value: number | string): boolean;
25
+ };
26
+ labelWidth: {
27
+ type: (StringConstructor | NumberConstructor)[];
28
+ default: string;
29
+ description: string;
30
+ validator(value: number | string): boolean;
31
+ };
32
+ direction: {
33
+ type: PropType<import('../../..').DescDirection>;
34
+ default: string;
35
+ description: string;
36
+ validator(value: import('../../..').DescDirection): boolean;
37
+ };
38
+ tips: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ description: string;
42
+ };
43
+ type: {
44
+ type: PropType<"text-trim">;
45
+ default: string;
46
+ description: string;
47
+ };
48
+ labelX: {
49
+ type: PropType<TextTrimAlignment>;
50
+ default: string;
51
+ description: string;
52
+ };
53
+ valueX: {
54
+ type: PropType<TextTrimAlignment>;
55
+ default: string;
56
+ description: string;
57
+ };
58
+ gridArea: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ description: string;
62
+ };
63
+ customRender: {
64
+ type: PropType<(value: any) => any>;
65
+ default: null;
66
+ description: string;
67
+ };
68
+ id: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ description: string;
72
+ hidden: boolean;
73
+ };
74
+ dataSource: {
75
+ type: ObjectConstructor;
76
+ default: {};
77
+ hidden: boolean;
78
+ };
79
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
80
+ label: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ description: string;
84
+ };
85
+ field: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ description: string;
89
+ };
90
+ size: {
91
+ type: PropType<import('../../..').LewSize>;
92
+ default: string;
93
+ description: string;
94
+ validator(value: import('../../..').LewSize): boolean;
95
+ };
96
+ width: {
97
+ type: (StringConstructor | NumberConstructor)[];
98
+ default: string;
99
+ description: string;
100
+ validator(value: number | string): boolean;
101
+ };
102
+ labelWidth: {
103
+ type: (StringConstructor | NumberConstructor)[];
104
+ default: string;
105
+ description: string;
106
+ validator(value: number | string): boolean;
107
+ };
108
+ direction: {
109
+ type: PropType<import('../../..').DescDirection>;
110
+ default: string;
111
+ description: string;
112
+ validator(value: import('../../..').DescDirection): boolean;
113
+ };
114
+ tips: {
115
+ type: StringConstructor;
116
+ default: string;
117
+ description: string;
118
+ };
119
+ type: {
120
+ type: PropType<"text-trim">;
121
+ default: string;
122
+ description: string;
123
+ };
124
+ labelX: {
125
+ type: PropType<TextTrimAlignment>;
126
+ default: string;
127
+ description: string;
128
+ };
129
+ valueX: {
130
+ type: PropType<TextTrimAlignment>;
131
+ default: string;
132
+ description: string;
133
+ };
134
+ gridArea: {
135
+ type: StringConstructor;
136
+ default: string;
137
+ description: string;
138
+ };
139
+ customRender: {
140
+ type: PropType<(value: any) => any>;
141
+ default: null;
142
+ description: string;
143
+ };
144
+ id: {
145
+ type: StringConstructor;
146
+ default: string;
147
+ description: string;
148
+ hidden: boolean;
149
+ };
150
+ dataSource: {
151
+ type: ObjectConstructor;
152
+ default: {};
153
+ hidden: boolean;
154
+ };
155
+ }>> & Readonly<{}>, {
156
+ type: "text-trim";
157
+ size: import('../../..').LewSize;
158
+ tips: string;
159
+ field: string;
160
+ direction: import('../../..').DescDirection;
161
+ label: string;
162
+ width: string | number;
163
+ dataSource: Record<string, any>;
164
+ labelWidth: string | number;
165
+ id: string;
166
+ gridArea: string;
167
+ labelX: TextTrimAlignment;
168
+ valueX: TextTrimAlignment;
169
+ customRender: (value: any) => any;
170
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
171
+ export default _default;
@@ -0,0 +1,149 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { LewSize, TextTrimAlignment } from '../../..';
3
+
4
+ export type DescDirection = 'x' | 'y';
5
+ export declare const descProps: {
6
+ options: {
7
+ type: PropType<Array<Record<string, any>>>;
8
+ required: boolean;
9
+ default: () => never[];
10
+ description: string;
11
+ validator(value: Array<Record<string, any>>): boolean;
12
+ };
13
+ dataSource: {
14
+ type: PropType<Record<string, any>>;
15
+ default: () => {};
16
+ description: string;
17
+ };
18
+ size: {
19
+ type: PropType<LewSize>;
20
+ default: string;
21
+ description: string;
22
+ validator(value: LewSize): boolean;
23
+ };
24
+ labelX: {
25
+ type: PropType<TextTrimAlignment>;
26
+ default: string;
27
+ description: string;
28
+ };
29
+ valueX: {
30
+ type: PropType<TextTrimAlignment>;
31
+ default: string;
32
+ description: string;
33
+ };
34
+ gap: {
35
+ type: (StringConstructor | NumberConstructor)[];
36
+ default: number;
37
+ description: string;
38
+ validator(value: string | number): boolean;
39
+ };
40
+ width: {
41
+ type: (StringConstructor | NumberConstructor)[];
42
+ default: string;
43
+ description: string;
44
+ validator(value: number | string): boolean;
45
+ };
46
+ columns: {
47
+ type: (StringConstructor | NumberConstructor)[];
48
+ default: number;
49
+ description: string;
50
+ validator(value: number | string): boolean;
51
+ };
52
+ labelWidth: {
53
+ type: (StringConstructor | NumberConstructor)[];
54
+ default: string;
55
+ description: string;
56
+ validator(value: number | string): boolean;
57
+ };
58
+ direction: {
59
+ type: PropType<DescDirection>;
60
+ default: string;
61
+ description: string;
62
+ validator(value: DescDirection): boolean;
63
+ };
64
+ id: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ description: string;
68
+ hidden: boolean;
69
+ };
70
+ };
71
+ export declare const descItemProps: {
72
+ label: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ description: string;
76
+ };
77
+ field: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ description: string;
81
+ };
82
+ size: {
83
+ type: PropType<LewSize>;
84
+ default: string;
85
+ description: string;
86
+ validator(value: LewSize): boolean;
87
+ };
88
+ width: {
89
+ type: (StringConstructor | NumberConstructor)[];
90
+ default: string;
91
+ description: string;
92
+ validator(value: number | string): boolean;
93
+ };
94
+ labelWidth: {
95
+ type: (StringConstructor | NumberConstructor)[];
96
+ default: string;
97
+ description: string;
98
+ validator(value: number | string): boolean;
99
+ };
100
+ direction: {
101
+ type: PropType<DescDirection>;
102
+ default: string;
103
+ description: string;
104
+ validator(value: DescDirection): boolean;
105
+ };
106
+ tips: {
107
+ type: StringConstructor;
108
+ default: string;
109
+ description: string;
110
+ };
111
+ type: {
112
+ type: PropType<"text-trim">;
113
+ default: string;
114
+ description: string;
115
+ };
116
+ labelX: {
117
+ type: PropType<TextTrimAlignment>;
118
+ default: string;
119
+ description: string;
120
+ };
121
+ valueX: {
122
+ type: PropType<TextTrimAlignment>;
123
+ default: string;
124
+ description: string;
125
+ };
126
+ gridArea: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ description: string;
130
+ };
131
+ customRender: {
132
+ type: PropType<(value: any) => any>;
133
+ default: null;
134
+ description: string;
135
+ };
136
+ id: {
137
+ type: StringConstructor;
138
+ default: string;
139
+ description: string;
140
+ hidden: boolean;
141
+ };
142
+ dataSource: {
143
+ type: ObjectConstructor;
144
+ default: {};
145
+ hidden: boolean;
146
+ };
147
+ };
148
+ export type DescProps = ExtractPropTypes<typeof descProps>;
149
+ export type DescItemProps = ExtractPropTypes<typeof descItemProps>;
@@ -5,6 +5,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
5
5
  type: PropType<LewSize>;
6
6
  default: string;
7
7
  };
8
+ padding: {
9
+ type: NumberConstructor;
10
+ default: number;
11
+ };
8
12
  options: {
9
13
  type: PropType<any>;
10
14
  };
@@ -15,10 +19,15 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
15
19
  type: PropType<LewSize>;
16
20
  default: string;
17
21
  };
22
+ padding: {
23
+ type: NumberConstructor;
24
+ default: number;
25
+ };
18
26
  options: {
19
27
  type: PropType<any>;
20
28
  };
21
29
  }>> & Readonly<{}>, {
22
30
  size: LewSize;
31
+ padding: number;
23
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
33
  export default _default;
@@ -154,6 +154,7 @@ export declare const formItemProps: {
154
154
  };
155
155
  };
156
156
  export declare const requiredIconSizeMap: Record<LewSize, number>;
157
+ export declare const tipsIconSizeMap: Record<LewSize, number>;
157
158
  export type FormProps = ExtractPropTypes<typeof formProps>;
158
159
  export type FormItemProps = ExtractPropTypes<typeof formItemProps>;
159
160
  export declare const formTypeAsMap: Record<string, any>;
@@ -47,3 +47,4 @@ export * from './image';
47
47
  export * from './expand';
48
48
  export * from './input-table';
49
49
  export * from './input-tree';
50
+ export * from './desc';
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ title: string;
3
+ columnsKey: string;
4
+ orderNum: number;
5
+ data: {
6
+ name: string;
7
+ description: any;
8
+ type: any;
9
+ default: string;
10
+ }[];
11
+ };
12
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as props } from './props';
2
+ export { default as descItemProps } from './descItemProps';
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ title: string;
3
+ columnsKey: string;
4
+ orderNum: number;
5
+ data: {
6
+ name: string;
7
+ description: any;
8
+ type: any;
9
+ default: string;
10
+ }[];
11
+ };
12
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { default as DemoDesc1 } from './DemoDesc1.vue';
2
+ import { default as DemoDesc2 } from './DemoDesc2.vue';
3
+ import { default as DemoDesc3 } from './DemoDesc3.vue';
4
+ import { default as DemoDesc4 } from './DemoDesc4.vue';
5
+ import { default as DemoDesc1Code } from './DemoDesc1.vue?raw';
6
+ import { default as DemoDesc2Code } from './DemoDesc2.vue?raw';
7
+ import { default as DemoDesc3Code } from './DemoDesc3.vue?raw';
8
+ import { default as DemoDesc4Code } from './DemoDesc4.vue?raw';
9
+
10
+ export { DemoDesc1, DemoDesc1Code, DemoDesc2, DemoDesc2Code, DemoDesc3, DemoDesc3Code, DemoDesc4, DemoDesc4Code };
@@ -0,0 +1,3 @@
1
+ import { default as DemoDesc } from './DemoDesc.vue';
2
+
3
+ export default DemoDesc;
@@ -0,0 +1,11 @@
1
+ export declare const baseSchema: ({
2
+ label: string;
3
+ as: string;
4
+ field: string;
5
+ direction?: undefined;
6
+ } | {
7
+ label: string;
8
+ as: string;
9
+ direction: string;
10
+ field: string;
11
+ })[];
@@ -0,0 +1,6 @@
1
+ export declare const fieldsSchema: {
2
+ label: string;
3
+ as: string;
4
+ field: string;
5
+ componentWidth: string;
6
+ }[];
@@ -0,0 +1,13 @@
1
+ export declare const globalSchema: {
2
+ label: string;
3
+ as: string;
4
+ field: string;
5
+ componentWidth: string;
6
+ props: {
7
+ itemWidth: string;
8
+ options: {
9
+ label: string;
10
+ value: string;
11
+ }[];
12
+ };
13
+ }[];
@@ -0,0 +1,3 @@
1
+ export * from './global';
2
+ export * from './fields';
3
+ export * from './base';