lew-ui 2.7.70 → 2.7.71
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 +21 -21
- package/dist/components/feedback/popok/src/LewPopok.vue.d.ts +20 -10
- package/dist/components/general/avatar/index.d.ts +6 -2
- package/dist/components/general/button/index.d.ts +7 -2
- package/dist/components/general/button/src/LewButton.vue.d.ts +8 -8
- package/dist/components/general/button/src/emits.d.ts +10 -0
- package/dist/components/general/flex/src/LewFlex.vue.d.ts +15 -16
- package/dist/components/general/image/index.d.ts +6 -2
- package/dist/components/general/tag/src/LewTag.vue.d.ts +5 -6
- package/dist/index.css +1 -1
- package/dist/index.js +500 -423
- package/dist/index.umd.cjs +1 -47
- package/dist/locals/de.d.ts +25 -0
- package/dist/locals/en.d.ts +32 -7
- package/dist/locals/es.d.ts +25 -0
- package/dist/locals/fr.d.ts +25 -0
- package/dist/locals/it.d.ts +25 -0
- package/dist/locals/ja.d.ts +25 -0
- package/dist/locals/ko.d.ts +25 -0
- package/dist/locals/pt.d.ts +25 -0
- package/dist/methods/dialog/src/LewDialog.vue.d.ts +10 -5
- package/package.json +6 -4
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.
|
|
@@ -248,14 +248,13 @@ declare function __VLS_template(): {
|
|
|
248
248
|
readonly text?: string | undefined;
|
|
249
249
|
readonly request?: (() => Promise<void>) | undefined;
|
|
250
250
|
readonly width?: import("csstype").Property.Width<0 | (string & {})> | undefined;
|
|
251
|
+
readonly onClick?: ((e: MouseEvent) => any) | undefined;
|
|
251
252
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed">;
|
|
252
253
|
$attrs: {
|
|
253
254
|
[x: string]: unknown;
|
|
254
255
|
};
|
|
255
256
|
$refs: {
|
|
256
257
|
[x: string]: unknown;
|
|
257
|
-
} & {
|
|
258
|
-
buttonRef: HTMLButtonElement;
|
|
259
258
|
};
|
|
260
259
|
$slots: Readonly<{
|
|
261
260
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
@@ -263,7 +262,7 @@ declare function __VLS_template(): {
|
|
|
263
262
|
$root: ComponentPublicInstance | null;
|
|
264
263
|
$parent: ComponentPublicInstance | null;
|
|
265
264
|
$host: Element | null;
|
|
266
|
-
$emit: (event:
|
|
265
|
+
$emit: (event: "click", e: MouseEvent) => void;
|
|
267
266
|
$el: HTMLButtonElement;
|
|
268
267
|
$options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
269
268
|
text: {
|
|
@@ -321,7 +320,11 @@ declare function __VLS_template(): {
|
|
|
321
320
|
type: PropType<() => Promise<void>>;
|
|
322
321
|
validator: (value: any) => boolean;
|
|
323
322
|
};
|
|
324
|
-
}>> & Readonly<{
|
|
323
|
+
}>> & Readonly<{
|
|
324
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
325
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
326
|
+
click: (e: MouseEvent) => void;
|
|
327
|
+
}, string, {
|
|
325
328
|
loading: boolean;
|
|
326
329
|
type: import('../../../..').LewButtonType;
|
|
327
330
|
color: LewColor;
|
|
@@ -415,7 +418,9 @@ declare function __VLS_template(): {
|
|
|
415
418
|
type: PropType<() => Promise<void>>;
|
|
416
419
|
validator: (value: any) => boolean;
|
|
417
420
|
};
|
|
418
|
-
}>> & Readonly<{
|
|
421
|
+
}>> & Readonly<{
|
|
422
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
423
|
+
}>, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
419
424
|
$slots: {
|
|
420
425
|
default?(_: {}): any;
|
|
421
426
|
};
|
|
@@ -798,14 +803,13 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
798
803
|
readonly text?: string | undefined;
|
|
799
804
|
readonly request?: (() => Promise<void>) | undefined;
|
|
800
805
|
readonly width?: import("csstype").Property.Width<0 | (string & {})> | undefined;
|
|
806
|
+
readonly onClick?: ((e: MouseEvent) => any) | undefined;
|
|
801
807
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed">;
|
|
802
808
|
$attrs: {
|
|
803
809
|
[x: string]: unknown;
|
|
804
810
|
};
|
|
805
811
|
$refs: {
|
|
806
812
|
[x: string]: unknown;
|
|
807
|
-
} & {
|
|
808
|
-
buttonRef: HTMLButtonElement;
|
|
809
813
|
};
|
|
810
814
|
$slots: Readonly<{
|
|
811
815
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
@@ -813,7 +817,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
813
817
|
$root: ComponentPublicInstance | null;
|
|
814
818
|
$parent: ComponentPublicInstance | null;
|
|
815
819
|
$host: Element | null;
|
|
816
|
-
$emit: (event:
|
|
820
|
+
$emit: (event: "click", e: MouseEvent) => void;
|
|
817
821
|
$el: HTMLButtonElement;
|
|
818
822
|
$options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
819
823
|
text: {
|
|
@@ -871,7 +875,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
871
875
|
type: PropType<() => Promise<void>>;
|
|
872
876
|
validator: (value: any) => boolean;
|
|
873
877
|
};
|
|
874
|
-
}>> & Readonly<{
|
|
878
|
+
}>> & Readonly<{
|
|
879
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
880
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
881
|
+
click: (e: MouseEvent) => void;
|
|
882
|
+
}, string, {
|
|
875
883
|
loading: boolean;
|
|
876
884
|
type: import('../../../..').LewButtonType;
|
|
877
885
|
color: LewColor;
|
|
@@ -965,7 +973,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
965
973
|
type: PropType<() => Promise<void>>;
|
|
966
974
|
validator: (value: any) => boolean;
|
|
967
975
|
};
|
|
968
|
-
}>> & Readonly<{
|
|
976
|
+
}>> & Readonly<{
|
|
977
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
978
|
+
}>, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
969
979
|
$slots: {
|
|
970
980
|
default?(_: {}): any;
|
|
971
981
|
};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { LewAvatarProps, avatarProps } from './src/props';
|
|
2
|
+
import { default as LewAvatar } from './src/LewAvatar.vue';
|
|
3
|
+
export { LewAvatar };
|
|
4
|
+
export type { LewAvatarProps };
|
|
5
|
+
export { avatarProps };
|
|
6
|
+
export default LewAvatar;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { LewButtonEmits, buttonEmits } from './src/emits';
|
|
2
|
+
import { LewButtonProps, buttonProps } from './src/props';
|
|
3
|
+
import { default as LewButton } from './src/LewButton.vue';
|
|
4
|
+
export { LewButton };
|
|
5
|
+
export type { LewButtonEmits, LewButtonProps };
|
|
6
|
+
export { buttonEmits, buttonProps };
|
|
7
|
+
export default LewButton;
|
|
@@ -3,9 +3,7 @@ declare function __VLS_template(): {
|
|
|
3
3
|
slots: {
|
|
4
4
|
default?(_: {}): any;
|
|
5
5
|
};
|
|
6
|
-
refs: {
|
|
7
|
-
buttonRef: HTMLButtonElement;
|
|
8
|
-
};
|
|
6
|
+
refs: {};
|
|
9
7
|
rootEl: HTMLButtonElement;
|
|
10
8
|
};
|
|
11
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -65,7 +63,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
65
63
|
type: PropType<() => Promise<void>>;
|
|
66
64
|
validator: (value: any) => boolean;
|
|
67
65
|
};
|
|
68
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
66
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
67
|
+
click: (e: MouseEvent) => void;
|
|
68
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
69
69
|
text: {
|
|
70
70
|
type: StringConstructor;
|
|
71
71
|
validator: (value: any) => boolean;
|
|
@@ -121,7 +121,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
121
121
|
type: PropType<() => Promise<void>>;
|
|
122
122
|
validator: (value: any) => boolean;
|
|
123
123
|
};
|
|
124
|
-
}>> & Readonly<{
|
|
124
|
+
}>> & Readonly<{
|
|
125
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
126
|
+
}>, {
|
|
125
127
|
loading: boolean;
|
|
126
128
|
type: import('../../../..').LewButtonType;
|
|
127
129
|
color: import('../../../..').LewColor;
|
|
@@ -130,9 +132,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
130
132
|
disabled: boolean;
|
|
131
133
|
singleIcon: boolean;
|
|
132
134
|
dashed: boolean;
|
|
133
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
134
|
-
buttonRef: HTMLButtonElement;
|
|
135
|
-
}, HTMLButtonElement>;
|
|
135
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
|
|
136
136
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
137
137
|
export default _default;
|
|
138
138
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LewXAlignment, LewYAlignment } from '../../../../types';
|
|
2
1
|
declare function __VLS_template(): {
|
|
3
2
|
attrs: Partial<{}>;
|
|
4
3
|
slots: {
|
|
@@ -10,21 +9,21 @@ declare function __VLS_template(): {
|
|
|
10
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
10
|
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
12
11
|
direction: {
|
|
13
|
-
type: PropType<import('
|
|
12
|
+
type: PropType<import('../../../..').LewDirection>;
|
|
14
13
|
default: string;
|
|
15
|
-
typeValues: import('
|
|
14
|
+
typeValues: import('../../../..').LewDirection[];
|
|
16
15
|
validator: (value: any) => boolean;
|
|
17
16
|
};
|
|
18
17
|
x: {
|
|
19
|
-
type: PropType<LewXAlignment>;
|
|
18
|
+
type: PropType<import('../../../..').LewXAlignment>;
|
|
20
19
|
default: string;
|
|
21
|
-
typeValues: LewXAlignment[];
|
|
20
|
+
typeValues: import('../../../..').LewXAlignment[];
|
|
22
21
|
validator: (value: any) => boolean;
|
|
23
22
|
};
|
|
24
23
|
y: {
|
|
25
|
-
type: PropType<LewYAlignment>;
|
|
24
|
+
type: PropType<import('../../../..').LewYAlignment>;
|
|
26
25
|
default: string;
|
|
27
|
-
typeValues: LewYAlignment[];
|
|
26
|
+
typeValues: import('../../../..').LewYAlignment[];
|
|
28
27
|
validator: (value: any) => boolean;
|
|
29
28
|
};
|
|
30
29
|
mode: {
|
|
@@ -47,21 +46,21 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
47
46
|
};
|
|
48
47
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
49
48
|
direction: {
|
|
50
|
-
type: PropType<import('
|
|
49
|
+
type: PropType<import('../../../..').LewDirection>;
|
|
51
50
|
default: string;
|
|
52
|
-
typeValues: import('
|
|
51
|
+
typeValues: import('../../../..').LewDirection[];
|
|
53
52
|
validator: (value: any) => boolean;
|
|
54
53
|
};
|
|
55
54
|
x: {
|
|
56
|
-
type: PropType<LewXAlignment>;
|
|
55
|
+
type: PropType<import('../../../..').LewXAlignment>;
|
|
57
56
|
default: string;
|
|
58
|
-
typeValues: LewXAlignment[];
|
|
57
|
+
typeValues: import('../../../..').LewXAlignment[];
|
|
59
58
|
validator: (value: any) => boolean;
|
|
60
59
|
};
|
|
61
60
|
y: {
|
|
62
|
-
type: PropType<LewYAlignment>;
|
|
61
|
+
type: PropType<import('../../../..').LewYAlignment>;
|
|
63
62
|
default: string;
|
|
64
|
-
typeValues: LewYAlignment[];
|
|
63
|
+
typeValues: import('../../../..').LewYAlignment[];
|
|
65
64
|
validator: (value: any) => boolean;
|
|
66
65
|
};
|
|
67
66
|
mode: {
|
|
@@ -83,9 +82,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
83
82
|
validator: (value: string | number | undefined) => boolean;
|
|
84
83
|
};
|
|
85
84
|
}>> & Readonly<{}>, {
|
|
86
|
-
x: LewXAlignment;
|
|
87
|
-
y: LewYAlignment;
|
|
88
|
-
direction: import('
|
|
85
|
+
x: import('../../../..').LewXAlignment;
|
|
86
|
+
y: import('../../../..').LewYAlignment;
|
|
87
|
+
direction: import('../../../..').LewDirection;
|
|
89
88
|
width: string;
|
|
90
89
|
gap: string;
|
|
91
90
|
wrap: boolean;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { LewImageProps, imageProps } from './src/props';
|
|
2
|
+
import { default as LewImage } from './src/LewImage.vue';
|
|
3
|
+
export { LewImage };
|
|
4
|
+
export type { LewImageProps };
|
|
5
|
+
export { imageProps };
|
|
6
|
+
export default LewImage;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LewSize } from '../../../..';
|
|
2
|
-
import { LewTagType } from '../../../../types';
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
3
|
attrs: Partial<{}>;
|
|
5
4
|
slots: {
|
|
@@ -17,8 +16,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
17
16
|
validator: (value: any) => boolean;
|
|
18
17
|
};
|
|
19
18
|
type: {
|
|
20
|
-
type: PropType<LewTagType>;
|
|
21
|
-
typeValues: LewTagType[];
|
|
19
|
+
type: PropType<import('../../../..').LewTagType>;
|
|
20
|
+
typeValues: import('../../../..').LewTagType[];
|
|
22
21
|
default: string;
|
|
23
22
|
validator: (value: any) => boolean;
|
|
24
23
|
};
|
|
@@ -67,8 +66,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
67
66
|
validator: (value: any) => boolean;
|
|
68
67
|
};
|
|
69
68
|
type: {
|
|
70
|
-
type: PropType<LewTagType>;
|
|
71
|
-
typeValues: LewTagType[];
|
|
69
|
+
type: PropType<import('../../../..').LewTagType>;
|
|
70
|
+
typeValues: import('../../../..').LewTagType[];
|
|
72
71
|
default: string;
|
|
73
72
|
validator: (value: any) => boolean;
|
|
74
73
|
};
|
|
@@ -112,7 +111,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
112
111
|
}>> & Readonly<{
|
|
113
112
|
onClose?: (() => any) | undefined;
|
|
114
113
|
}>, {
|
|
115
|
-
type: LewTagType;
|
|
114
|
+
type: import('../../../..').LewTagType;
|
|
116
115
|
color: string;
|
|
117
116
|
size: LewSize;
|
|
118
117
|
round: boolean;
|