lew-ui 2.7.53 → 2.7.55

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 lew
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 lew
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -65,8 +65,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
65
65
  default: string;
66
66
  };
67
67
  }>> & Readonly<{}>, {
68
- loading: boolean;
69
68
  fill: string;
69
+ loading: boolean;
70
70
  type: string;
71
71
  color: string;
72
72
  size: number;
@@ -1,4 +1,4 @@
1
1
  import { LewCollapseModelValue } from '../../../..';
2
2
  export declare const collapseEmits: {
3
- readonly change: (value: LewCollapseModelValue) => LewCollapseModelValue;
3
+ readonly change: (value: LewCollapseModelValue) => string | number | boolean | (string | number)[];
4
4
  };
@@ -1,4 +1,3 @@
1
- export * from './src/emits';
2
1
  export { default as LewDesc } from './src/LewDesc.vue';
3
2
  export { default as LewDescItem } from './src/LewDescItem.vue';
4
3
  export * from './src/props';
@@ -122,9 +122,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
122
122
  default: boolean;
123
123
  validator: (value: any) => boolean;
124
124
  };
125
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
126
- ready: () => void;
127
- }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
125
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
128
126
  options: {
129
127
  type: PropType<LewDescOption[]>;
130
128
  required: boolean;
@@ -190,9 +188,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
190
188
  default: boolean;
191
189
  validator: (value: any) => boolean;
192
190
  };
193
- }>> & Readonly<{
194
- onReady?: (() => any) | undefined;
195
- }>, {
191
+ }>> & Readonly<{}>, {
196
192
  size: import('../../../../types').LewSize;
197
193
  direction: import('../../../../types').LewDirection;
198
194
  columns: number;
@@ -48,12 +48,30 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
48
48
  };
49
49
  okButtonProps: {
50
50
  type: PropType<import('../../../..').LewButtonProps>;
51
+ typeComponents: {
52
+ name: string;
53
+ path: string;
54
+ }[];
51
55
  validator: (value: unknown) => boolean;
52
56
  };
53
57
  closeButtonProps: {
54
58
  type: PropType<import('../../../..').LewButtonProps>;
59
+ typeComponents: {
60
+ name: string;
61
+ path: string;
62
+ }[];
55
63
  validator: (value: unknown) => boolean;
56
64
  };
65
+ hideOkButton: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ validator: (value: any) => boolean;
69
+ };
70
+ hideCloseButton: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ validator: (value: any) => boolean;
74
+ };
57
75
  zIndex: {
58
76
  type: NumberConstructor;
59
77
  default: number;
@@ -102,12 +120,30 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
102
120
  };
103
121
  okButtonProps: {
104
122
  type: PropType<import('../../../..').LewButtonProps>;
123
+ typeComponents: {
124
+ name: string;
125
+ path: string;
126
+ }[];
105
127
  validator: (value: unknown) => boolean;
106
128
  };
107
129
  closeButtonProps: {
108
130
  type: PropType<import('../../../..').LewButtonProps>;
131
+ typeComponents: {
132
+ name: string;
133
+ path: string;
134
+ }[];
109
135
  validator: (value: unknown) => boolean;
110
136
  };
137
+ hideOkButton: {
138
+ type: BooleanConstructor;
139
+ default: boolean;
140
+ validator: (value: any) => boolean;
141
+ };
142
+ hideCloseButton: {
143
+ type: BooleanConstructor;
144
+ default: boolean;
145
+ validator: (value: any) => boolean;
146
+ };
111
147
  zIndex: {
112
148
  type: NumberConstructor;
113
149
  default: number;
@@ -127,6 +163,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
127
163
  closeOnClickOverlay: boolean;
128
164
  closeByEsc: boolean;
129
165
  hideFooter: boolean;
166
+ hideOkButton: boolean;
167
+ hideCloseButton: boolean;
130
168
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
131
169
  modalBodyRef: HTMLDivElement;
132
170
  }, any>;
@@ -44,12 +44,30 @@ export declare const modalProps: {
44
44
  };
45
45
  okButtonProps: {
46
46
  type: PropType<LewButtonProps>;
47
+ typeComponents: {
48
+ name: string;
49
+ path: string;
50
+ }[];
47
51
  validator: (value: unknown) => boolean;
48
52
  };
49
53
  closeButtonProps: {
50
54
  type: PropType<LewButtonProps>;
55
+ typeComponents: {
56
+ name: string;
57
+ path: string;
58
+ }[];
51
59
  validator: (value: unknown) => boolean;
52
60
  };
61
+ hideOkButton: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ validator: (value: any) => boolean;
65
+ };
66
+ hideCloseButton: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ validator: (value: any) => boolean;
70
+ };
53
71
  zIndex: {
54
72
  type: NumberConstructor;
55
73
  default: number;
@@ -14,9 +14,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
14
14
  validator: (value: any) => boolean;
15
15
  };
16
16
  visible: {
17
- type: PropType<((formData: Record<string, any>) => boolean)>;
17
+ type: PropType<((formData: Record<string, any>) => boolean) | boolean>;
18
18
  default: () => boolean;
19
- validator: (value: any) => boolean;
20
19
  };
21
20
  required: {
22
21
  type: BooleanConstructor;
@@ -52,14 +51,12 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
52
51
  validator: (value: any) => boolean;
53
52
  };
54
53
  disabled: {
55
- type: PropType<((formData: Record<string, any>) => boolean)>;
54
+ type: PropType<((formData: Record<string, any>) => boolean) | boolean>;
56
55
  default: () => boolean;
57
- validator: (value: any) => boolean;
58
56
  };
59
57
  readonly: {
60
- type: PropType<((formData: Record<string, any>) => boolean)>;
58
+ type: PropType<((formData: Record<string, any>) => boolean) | boolean>;
61
59
  default: () => boolean;
62
- validator: (value: any) => boolean;
63
60
  };
64
61
  tips: {
65
62
  type: StringConstructor;
@@ -137,9 +134,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
137
134
  validator: (value: any) => boolean;
138
135
  };
139
136
  visible: {
140
- type: PropType<((formData: Record<string, any>) => boolean)>;
137
+ type: PropType<((formData: Record<string, any>) => boolean) | boolean>;
141
138
  default: () => boolean;
142
- validator: (value: any) => boolean;
143
139
  };
144
140
  required: {
145
141
  type: BooleanConstructor;
@@ -175,14 +171,12 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
175
171
  validator: (value: any) => boolean;
176
172
  };
177
173
  disabled: {
178
- type: PropType<((formData: Record<string, any>) => boolean)>;
174
+ type: PropType<((formData: Record<string, any>) => boolean) | boolean>;
179
175
  default: () => boolean;
180
- validator: (value: any) => boolean;
181
176
  };
182
177
  readonly: {
183
- type: PropType<((formData: Record<string, any>) => boolean)>;
178
+ type: PropType<((formData: Record<string, any>) => boolean) | boolean>;
184
179
  default: () => boolean;
185
- validator: (value: any) => boolean;
186
180
  };
187
181
  tips: {
188
182
  type: StringConstructor;
@@ -246,7 +240,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
246
240
  "onUpdate:modelValue"?: ((value: undefined) => any) | undefined;
247
241
  }>, {
248
242
  size: import('../../../..').LewSize;
249
- disabled: (formData: Record<string, any>) => boolean;
243
+ disabled: boolean | ((formData: Record<string, any>) => boolean);
250
244
  label: string;
251
245
  props: Record<string, any> | ((formData: Record<string, any>) => Record<string, any>);
252
246
  direction: import('../../../..').LewDirection;
@@ -256,10 +250,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
256
250
  required: boolean;
257
251
  between: boolean;
258
252
  labelWidth: import("csstype").Property.Width<0 | (string & {})>;
259
- readonly: (formData: Record<string, any>) => boolean;
253
+ readonly: boolean | ((formData: Record<string, any>) => boolean);
260
254
  id: string;
261
255
  field: string;
262
- visible: (formData: Record<string, any>) => boolean;
263
256
  as: "" | LewFormItemAs;
264
257
  errMessage: string;
265
258
  outputFormat: (params: {
@@ -269,6 +262,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
269
262
  value: unknown;
270
263
  }) => unknown;
271
264
  dependencies: string[];
265
+ visible: boolean | ((formData: Record<string, any>) => boolean);
272
266
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
273
267
  formItemRef: HTMLDivElement;
274
268
  }, any>;
@@ -1,6 +1,6 @@
1
1
  export declare const formEmits: {
2
2
  readonly change: (value: any) => any;
3
- readonly mounted: () => void;
3
+ readonly mounted: () => boolean;
4
4
  };
5
5
  export declare const formItemEmits: {
6
6
  readonly change: (value: any) => any;
@@ -70,9 +70,8 @@ export declare const formItemProps: {
70
70
  validator: (value: any) => boolean;
71
71
  };
72
72
  visible: {
73
- type: PropType<((formData: Record<string, any>) => boolean)>;
73
+ type: PropType<((formData: Record<string, any>) => boolean) | boolean>;
74
74
  default: () => boolean;
75
- validator: (value: any) => boolean;
76
75
  };
77
76
  required: {
78
77
  type: BooleanConstructor;
@@ -108,14 +107,12 @@ export declare const formItemProps: {
108
107
  validator: (value: any) => boolean;
109
108
  };
110
109
  disabled: {
111
- type: PropType<((formData: Record<string, any>) => boolean)>;
110
+ type: PropType<((formData: Record<string, any>) => boolean) | boolean>;
112
111
  default: () => boolean;
113
- validator: (value: any) => boolean;
114
112
  };
115
113
  readonly: {
116
- type: PropType<((formData: Record<string, any>) => boolean)>;
114
+ type: PropType<((formData: Record<string, any>) => boolean) | boolean>;
117
115
  default: () => boolean;
118
- validator: (value: any) => boolean;
119
116
  };
120
117
  tips: {
121
118
  type: StringConstructor;
@@ -1,5 +1,5 @@
1
1
  export declare const selectEmits: {
2
- readonly change: (value?: string) => string | undefined;
2
+ readonly change: (value?: string) => string | boolean;
3
3
  readonly blur: () => boolean;
4
4
  readonly clear: () => boolean;
5
5
  readonly focus: () => boolean;
@@ -1,3 +1,3 @@
1
1
  export declare const switchEmits: {
2
- readonly change: (value?: boolean) => boolean | undefined;
2
+ readonly change: (value?: boolean) => boolean;
3
3
  };
@@ -53,4 +53,4 @@ export declare const tabsProps: {
53
53
  validator: (value: any) => boolean;
54
54
  };
55
55
  };
56
- export type TabsProps = ExtractPublicPropTypes<typeof tabsProps>;
56
+ export type LewTabsProps = ExtractPublicPropTypes<typeof tabsProps>;
@@ -537,7 +537,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
537
537
  dataSource: {
538
538
  type: PropType<import('../../../..').LewTreeDataSource[]>;
539
539
  typePopKeys: string[];
540
- required: boolean;
541
540
  validator: (value: any[] | undefined) => boolean;
542
541
  };
543
542
  width: {
@@ -664,7 +663,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
664
663
  dataSource: {
665
664
  type: PropType<import('../../../..').LewTreeDataSource[]>;
666
665
  typePopKeys: string[];
667
- required: boolean;
668
666
  validator: (value: any[] | undefined) => boolean;
669
667
  };
670
668
  width: {
@@ -11,7 +11,6 @@ export declare const treeSelectProps: {
11
11
  dataSource: {
12
12
  type: PropType<LewTreeDataSource[]>;
13
13
  typePopKeys: string[];
14
- required: boolean;
15
14
  validator: (value: any[] | undefined) => boolean;
16
15
  };
17
16
  width: {
@@ -60,7 +60,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
60
60
  validator: (value: any) => boolean;
61
61
  };
62
62
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
63
- click: (event: MouseEvent) => void;
64
63
  close: () => void;
65
64
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
66
65
  text: {
@@ -111,7 +110,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
111
110
  validator: (value: any) => boolean;
112
111
  };
113
112
  }>> & Readonly<{
114
- onClick?: ((event: MouseEvent) => any) | undefined;
115
113
  onClose?: (() => any) | undefined;
116
114
  }>, {
117
115
  type: LewTagType;
@@ -1,4 +1,3 @@
1
1
  export declare const tagEmits: {
2
2
  readonly close: () => boolean;
3
- readonly click: (event: MouseEvent) => MouseEvent;
4
3
  };