@uzum-tech/ui 1.4.2 → 1.5.0
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/dist/index.js +65404 -64355
- package/dist/index.prod.js +3 -3
- package/es/_internal/index.d.ts +2 -0
- package/es/_internal/index.js +1 -0
- package/es/_internal/typography/index.d.ts +2 -0
- package/es/_internal/typography/index.js +1 -0
- package/es/_internal/typography/src/styles/text.cssr.d.ts +2 -0
- package/es/_internal/typography/src/styles/text.cssr.js +78 -0
- package/es/_internal/typography/src/text.d.ts +246 -0
- package/es/_internal/typography/src/text.js +79 -0
- package/es/_internal/typography/src/variants.d.ts +13 -0
- package/es/_internal/typography/src/variants.js +132 -0
- package/es/_internal/typography/styles/dark.d.ts +3 -0
- package/es/_internal/typography/styles/dark.js +8 -0
- package/es/_internal/typography/styles/index.d.ts +3 -0
- package/es/_internal/typography/styles/index.js +2 -0
- package/es/_internal/typography/styles/light.d.ts +24 -0
- package/es/_internal/typography/styles/light.js +28 -0
- package/es/_styles/common/_common.d.ts +2 -0
- package/es/_styles/common/_common.js +3 -1
- package/es/_styles/common/light.d.ts +2 -0
- package/es/action-card/index.d.ts +4 -0
- package/es/action-card/index.js +2 -0
- package/es/action-card/src/ActionCard.d.ts +313 -0
- package/es/action-card/src/ActionCard.js +101 -0
- package/es/action-card/src/styles/index.cssr.d.ts +2 -0
- package/es/action-card/src/styles/index.cssr.js +113 -0
- package/es/action-card/styles/dark.d.ts +3 -0
- package/es/action-card/styles/dark.js +11 -0
- package/es/action-card/styles/index.d.ts +3 -0
- package/es/action-card/styles/index.js +2 -0
- package/es/action-card/styles/light.d.ts +29 -0
- package/es/action-card/styles/light.js +33 -0
- package/es/avatar/src/Avatar.d.ts +13 -3
- package/es/avatar/src/Avatar.js +4 -3
- package/es/avatar/src/styles/index.cssr.js +3 -2
- package/es/avatar/styles/light.d.ts +1 -0
- package/es/avatar/styles/light.js +4 -3
- package/es/avatar-group/src/AvatarGroup.d.ts +10 -0
- package/es/avatar-group/styles/light.d.ts +1 -0
- package/es/badge/src/Badge.d.ts +10 -0
- package/es/badge/src/Badge.js +3 -2
- package/es/badge/src/styles/index.cssr.js +19 -1
- package/es/badge/styles/light.d.ts +1 -0
- package/es/badge/styles/light.js +4 -3
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +14 -0
- package/es/data-table/src/DataTable.js +3 -3
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.js +10 -1
- package/es/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
- package/es/data-table/src/TableParts/BodySkeleton.js +52 -0
- package/es/data-table/src/TableParts/Header.d.ts +2 -0
- package/es/data-table/src/interface.d.ts +6 -0
- package/es/data-table/src/styles/index.cssr.js +1 -1
- package/es/data-table/styles/light.d.ts +2 -0
- package/es/data-table/styles/light.js +1 -1
- package/es/dialog/src/DialogProvider.d.ts +4 -0
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +1 -0
- package/es/modal/src/Modal.d.ts +9 -0
- package/es/modal/styles/light.d.ts +2 -0
- package/es/modal/styles/light.js +2 -1
- package/es/pagination/src/Pagination.d.ts +22 -0
- package/es/pagination/src/Pagination.js +4 -2
- package/es/pagination/src/styles/index.cssr.js +11 -0
- package/es/pagination/styles/light.d.ts +4 -0
- package/es/pagination/styles/light.js +7 -5
- package/es/spin/styles/light.js +3 -3
- package/es/steps/src/Step.d.ts +17 -0
- package/es/steps/src/Step.js +81 -25
- package/es/steps/src/Steps.d.ts +127 -1
- package/es/steps/src/Steps.js +4 -1
- package/es/steps/src/interface.d.ts +10 -2
- package/es/steps/src/interface.js +10 -1
- package/es/steps/src/styles/index.cssr.js +115 -3
- package/es/steps/styles/light.d.ts +14 -0
- package/es/steps/styles/light.js +16 -2
- package/es/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/toggle-button/src/ToggleButton.d.ts +13 -0
- package/es/toggle-button/src/ToggleButton.js +5 -2
- package/es/toggle-button/src/styles/toggle-button.cssr.js +3 -0
- package/es/typography/src/a.d.ts +27 -0
- package/es/typography/src/a.js +4 -1
- package/es/typography/src/blockquote.d.ts +27 -0
- package/es/typography/src/blockquote.js +4 -1
- package/es/typography/src/create-header.d.ts +27 -0
- package/es/typography/src/create-header.js +4 -1
- package/es/typography/src/headers.d.ts +108 -0
- package/es/typography/src/hr.d.ts +18 -0
- package/es/typography/src/hr.js +4 -0
- package/es/typography/src/li.js +4 -1
- package/es/typography/src/ol.d.ts +27 -0
- package/es/typography/src/ol.js +4 -1
- package/es/typography/src/p.d.ts +27 -0
- package/es/typography/src/p.js +4 -1
- package/es/typography/src/text.d.ts +128 -524
- package/es/typography/src/text.js +68 -69
- package/es/typography/src/ul.d.ts +27 -0
- package/es/typography/src/ul.js +4 -1
- package/es/typography/styles/light.d.ts +3 -0
- package/es/typography/styles/light.js +3 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/index.d.ts +2 -0
- package/lib/_internal/index.js +4 -1
- package/lib/_internal/typography/index.d.ts +2 -0
- package/lib/_internal/typography/index.js +9 -0
- package/lib/_internal/typography/src/styles/text.cssr.d.ts +2 -0
- package/lib/_internal/typography/src/styles/text.cssr.js +83 -0
- package/lib/_internal/typography/src/text.d.ts +246 -0
- package/lib/_internal/typography/src/text.js +85 -0
- package/lib/_internal/typography/src/variants.d.ts +13 -0
- package/lib/_internal/typography/src/variants.js +137 -0
- package/lib/_internal/typography/styles/dark.d.ts +3 -0
- package/lib/_internal/typography/styles/dark.js +10 -0
- package/lib/_internal/typography/styles/index.d.ts +3 -0
- package/lib/_internal/typography/styles/index.js +10 -0
- package/lib/_internal/typography/styles/light.d.ts +24 -0
- package/lib/_internal/typography/styles/light.js +32 -0
- package/lib/_styles/common/_common.d.ts +2 -0
- package/lib/_styles/common/_common.js +3 -1
- package/lib/_styles/common/light.d.ts +2 -0
- package/lib/action-card/index.d.ts +4 -0
- package/lib/action-card/index.js +11 -0
- package/lib/action-card/src/ActionCard.d.ts +313 -0
- package/lib/action-card/src/ActionCard.js +107 -0
- package/lib/action-card/src/styles/index.cssr.d.ts +2 -0
- package/lib/action-card/src/styles/index.cssr.js +118 -0
- package/lib/action-card/styles/dark.d.ts +3 -0
- package/lib/action-card/styles/dark.js +13 -0
- package/lib/action-card/styles/index.d.ts +3 -0
- package/lib/action-card/styles/index.js +10 -0
- package/lib/action-card/styles/light.d.ts +29 -0
- package/lib/action-card/styles/light.js +37 -0
- package/lib/avatar/src/Avatar.d.ts +13 -3
- package/lib/avatar/src/Avatar.js +4 -3
- package/lib/avatar/src/styles/index.cssr.js +3 -2
- package/lib/avatar/styles/light.d.ts +1 -0
- package/lib/avatar/styles/light.js +4 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +10 -0
- package/lib/avatar-group/styles/light.d.ts +1 -0
- package/lib/badge/src/Badge.d.ts +10 -0
- package/lib/badge/src/Badge.js +3 -2
- package/lib/badge/src/styles/index.cssr.js +19 -1
- package/lib/badge/styles/light.d.ts +1 -0
- package/lib/badge/styles/light.js +4 -3
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +14 -0
- package/lib/data-table/src/DataTable.js +3 -3
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.js +10 -1
- package/lib/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
- package/lib/data-table/src/TableParts/BodySkeleton.js +54 -0
- package/lib/data-table/src/TableParts/Header.d.ts +2 -0
- package/lib/data-table/src/interface.d.ts +6 -0
- package/lib/data-table/src/styles/index.cssr.js +1 -1
- package/lib/data-table/styles/light.d.ts +2 -0
- package/lib/data-table/styles/light.js +1 -1
- package/lib/dialog/src/DialogProvider.d.ts +4 -0
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +1 -0
- package/lib/modal/src/Modal.d.ts +9 -0
- package/lib/modal/styles/light.d.ts +2 -0
- package/lib/modal/styles/light.js +2 -1
- package/lib/pagination/src/Pagination.d.ts +22 -0
- package/lib/pagination/src/Pagination.js +4 -2
- package/lib/pagination/src/styles/index.cssr.js +11 -0
- package/lib/pagination/styles/light.d.ts +4 -0
- package/lib/pagination/styles/light.js +7 -5
- package/lib/spin/styles/light.js +3 -3
- package/lib/steps/src/Step.d.ts +17 -0
- package/lib/steps/src/Step.js +81 -25
- package/lib/steps/src/Steps.d.ts +127 -1
- package/lib/steps/src/Steps.js +4 -1
- package/lib/steps/src/interface.d.ts +10 -2
- package/lib/steps/src/interface.js +11 -0
- package/lib/steps/src/styles/index.cssr.js +115 -3
- package/lib/steps/styles/light.d.ts +14 -0
- package/lib/steps/styles/light.js +16 -2
- package/lib/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/lib/themes/dark.js +2 -0
- package/lib/themes/light.js +2 -0
- package/lib/toggle-button/src/ToggleButton.d.ts +13 -0
- package/lib/toggle-button/src/ToggleButton.js +5 -2
- package/lib/toggle-button/src/styles/toggle-button.cssr.js +3 -0
- package/lib/typography/src/a.d.ts +27 -0
- package/lib/typography/src/a.js +3 -0
- package/lib/typography/src/blockquote.d.ts +27 -0
- package/lib/typography/src/blockquote.js +3 -0
- package/lib/typography/src/create-header.d.ts +27 -0
- package/lib/typography/src/create-header.js +3 -0
- package/lib/typography/src/headers.d.ts +108 -0
- package/lib/typography/src/hr.d.ts +18 -0
- package/lib/typography/src/hr.js +4 -0
- package/lib/typography/src/li.js +3 -0
- package/lib/typography/src/ol.d.ts +27 -0
- package/lib/typography/src/ol.js +3 -0
- package/lib/typography/src/p.d.ts +27 -0
- package/lib/typography/src/p.js +3 -0
- package/lib/typography/src/text.d.ts +128 -524
- package/lib/typography/src/text.js +66 -70
- package/lib/typography/src/ul.d.ts +27 -0
- package/lib/typography/src/ul.js +3 -0
- package/lib/typography/styles/light.d.ts +3 -0
- package/lib/typography/styles/light.js +3 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +1 -0
- package/web-types.json +126 -96
|
@@ -12,7 +12,7 @@ export declare const avatarProps: {
|
|
|
12
12
|
readonly objectFit: PropType<ObjectFit>;
|
|
13
13
|
readonly round: {
|
|
14
14
|
readonly type: BooleanConstructor;
|
|
15
|
-
readonly default:
|
|
15
|
+
readonly default: false;
|
|
16
16
|
};
|
|
17
17
|
readonly bordered: {
|
|
18
18
|
readonly type: BooleanConstructor;
|
|
@@ -40,6 +40,7 @@ export declare const avatarProps: {
|
|
|
40
40
|
textColor: string;
|
|
41
41
|
iconColor: string;
|
|
42
42
|
color: string;
|
|
43
|
+
iconSize: string;
|
|
43
44
|
}, any>>;
|
|
44
45
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Avatar", {
|
|
45
46
|
borderRadius: string;
|
|
@@ -53,6 +54,7 @@ export declare const avatarProps: {
|
|
|
53
54
|
textColor: string;
|
|
54
55
|
iconColor: string;
|
|
55
56
|
color: string;
|
|
57
|
+
iconSize: string;
|
|
56
58
|
}, any>>>;
|
|
57
59
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Avatar", {
|
|
58
60
|
borderRadius: string;
|
|
@@ -66,6 +68,7 @@ export declare const avatarProps: {
|
|
|
66
68
|
textColor: string;
|
|
67
69
|
iconColor: string;
|
|
68
70
|
color: string;
|
|
71
|
+
iconSize: string;
|
|
69
72
|
}, any>>>;
|
|
70
73
|
};
|
|
71
74
|
export type AvatarProps = ExtractPublicPropTypes<typeof avatarProps>;
|
|
@@ -79,7 +82,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
82
|
readonly objectFit: PropType<ObjectFit>;
|
|
80
83
|
readonly round: {
|
|
81
84
|
readonly type: BooleanConstructor;
|
|
82
|
-
readonly default:
|
|
85
|
+
readonly default: false;
|
|
83
86
|
};
|
|
84
87
|
readonly bordered: {
|
|
85
88
|
readonly type: BooleanConstructor;
|
|
@@ -107,6 +110,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
107
110
|
textColor: string;
|
|
108
111
|
iconColor: string;
|
|
109
112
|
color: string;
|
|
113
|
+
iconSize: string;
|
|
110
114
|
}, any>>;
|
|
111
115
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Avatar", {
|
|
112
116
|
borderRadius: string;
|
|
@@ -120,6 +124,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
124
|
textColor: string;
|
|
121
125
|
iconColor: string;
|
|
122
126
|
color: string;
|
|
127
|
+
iconSize: string;
|
|
123
128
|
}, any>>>;
|
|
124
129
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Avatar", {
|
|
125
130
|
borderRadius: string;
|
|
@@ -133,6 +138,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
133
138
|
textColor: string;
|
|
134
139
|
iconColor: string;
|
|
135
140
|
color: string;
|
|
141
|
+
iconSize: string;
|
|
136
142
|
}, any>>>;
|
|
137
143
|
}, {
|
|
138
144
|
textRef: import("vue").Ref<HTMLElement | null>;
|
|
@@ -150,6 +156,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
156
|
'--u-icon-color': string;
|
|
151
157
|
'--u-bezier': string;
|
|
152
158
|
'--u-merged-size': string;
|
|
159
|
+
'--u-icon-size': string;
|
|
153
160
|
}> | undefined;
|
|
154
161
|
themeClass: import("vue").Ref<string> | undefined;
|
|
155
162
|
onRender: (() => void) | undefined;
|
|
@@ -168,7 +175,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
168
175
|
readonly objectFit: PropType<ObjectFit>;
|
|
169
176
|
readonly round: {
|
|
170
177
|
readonly type: BooleanConstructor;
|
|
171
|
-
readonly default:
|
|
178
|
+
readonly default: false;
|
|
172
179
|
};
|
|
173
180
|
readonly bordered: {
|
|
174
181
|
readonly type: BooleanConstructor;
|
|
@@ -196,6 +203,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
203
|
textColor: string;
|
|
197
204
|
iconColor: string;
|
|
198
205
|
color: string;
|
|
206
|
+
iconSize: string;
|
|
199
207
|
}, any>>;
|
|
200
208
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Avatar", {
|
|
201
209
|
borderRadius: string;
|
|
@@ -209,6 +217,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
209
217
|
textColor: string;
|
|
210
218
|
iconColor: string;
|
|
211
219
|
color: string;
|
|
220
|
+
iconSize: string;
|
|
212
221
|
}, any>>>;
|
|
213
222
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Avatar", {
|
|
214
223
|
borderRadius: string;
|
|
@@ -222,6 +231,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
222
231
|
textColor: string;
|
|
223
232
|
iconColor: string;
|
|
224
233
|
color: string;
|
|
234
|
+
iconSize: string;
|
|
225
235
|
}, any>>>;
|
|
226
236
|
}>>, {
|
|
227
237
|
readonly disabled: boolean;
|
package/es/avatar/src/Avatar.js
CHANGED
|
@@ -14,7 +14,7 @@ export const avatarProps = Object.assign(Object.assign({}, useTheme.props), { si
|
|
|
14
14
|
default: undefined
|
|
15
15
|
}, objectFit: String, round: {
|
|
16
16
|
type: Boolean,
|
|
17
|
-
default:
|
|
17
|
+
default: false
|
|
18
18
|
}, bordered: {
|
|
19
19
|
type: Boolean,
|
|
20
20
|
default: undefined
|
|
@@ -92,7 +92,7 @@ export default defineComponent({
|
|
|
92
92
|
const size = mergedSizeRef.value;
|
|
93
93
|
const round = mergedRoundRef.value;
|
|
94
94
|
const bordered = mergedBorderedRef.value;
|
|
95
|
-
const { self: { borderRadius, fontSize, fontWeight, color, border, textColor, iconColor }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
95
|
+
const { self: { borderRadius, fontSize, fontWeight, color, border, textColor, iconColor, iconSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
96
96
|
let height;
|
|
97
97
|
if (typeof size === 'number') {
|
|
98
98
|
height = `${size}px`;
|
|
@@ -112,7 +112,8 @@ export default defineComponent({
|
|
|
112
112
|
'--u-text-color': textColor,
|
|
113
113
|
'--u-icon-color': iconColor,
|
|
114
114
|
'--u-bezier': cubicBezierEaseInOut,
|
|
115
|
-
'--u-merged-size': `var(--u-avatar-size-override, ${height})
|
|
115
|
+
'--u-merged-size': `var(--u-avatar-size-override, ${height})`,
|
|
116
|
+
'--u-icon-size': iconSize
|
|
116
117
|
};
|
|
117
118
|
});
|
|
118
119
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -5,6 +5,7 @@ import { c, cE, cB } from '../../../_utils/cssr';
|
|
|
5
5
|
// --u-color
|
|
6
6
|
// --u-bezier
|
|
7
7
|
// --u-merged-size
|
|
8
|
+
// --u-icon-size
|
|
8
9
|
export default cB('avatar', `
|
|
9
10
|
width: var(--u-merged-size);
|
|
10
11
|
height: var(--u-merged-size);
|
|
@@ -35,7 +36,7 @@ export default cB('avatar', `
|
|
|
35
36
|
`), cB('icon', `
|
|
36
37
|
color: var(--u-icon-color);
|
|
37
38
|
vertical-align: bottom;
|
|
38
|
-
width:
|
|
39
|
-
height:
|
|
39
|
+
width: var(--u-icon-size);
|
|
40
|
+
height: var(--u-icon-size);
|
|
40
41
|
display: block;
|
|
41
42
|
`), cE('text', 'line-height: 1.25')]);
|
|
@@ -12,6 +12,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
12
12
|
textColor: string;
|
|
13
13
|
iconColor: string;
|
|
14
14
|
color: string;
|
|
15
|
+
iconSize: string;
|
|
15
16
|
};
|
|
16
17
|
export type AvatarThemeVars = ReturnType<typeof self>;
|
|
17
18
|
declare const avatarLight: Theme<'Avatar', AvatarThemeVars>;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { commonLight } from '../../_styles/common';
|
|
2
2
|
export const self = (vars) => {
|
|
3
|
-
const { borderRadius,
|
|
3
|
+
const { borderRadius, heightSmall, heightMedium, heightLarge, fontBodyLarge, fontWeight, elementsSecondary, textSecondary, elementsPrimary, elementsTertiary, fontTitleMedium } = vars;
|
|
4
4
|
return {
|
|
5
5
|
borderRadius,
|
|
6
6
|
fontSize: fontBodyLarge,
|
|
7
7
|
fontWeight,
|
|
8
8
|
border: `2px solid ${elementsSecondary}`,
|
|
9
|
-
heightTiny,
|
|
9
|
+
heightTiny: '36px',
|
|
10
10
|
heightSmall,
|
|
11
11
|
heightMedium,
|
|
12
12
|
heightLarge,
|
|
13
13
|
textColor: textSecondary,
|
|
14
14
|
iconColor: elementsPrimary,
|
|
15
|
-
color: elementsTertiary
|
|
15
|
+
color: elementsTertiary,
|
|
16
|
+
iconSize: fontTitleMedium
|
|
16
17
|
};
|
|
17
18
|
};
|
|
18
19
|
const avatarLight = {
|
|
@@ -32,6 +32,7 @@ export declare const avatarGroupProps: {
|
|
|
32
32
|
textColor: string;
|
|
33
33
|
iconColor: string;
|
|
34
34
|
color: string;
|
|
35
|
+
iconSize: string;
|
|
35
36
|
}, any>;
|
|
36
37
|
}>>;
|
|
37
38
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
|
|
@@ -49,6 +50,7 @@ export declare const avatarGroupProps: {
|
|
|
49
50
|
textColor: string;
|
|
50
51
|
iconColor: string;
|
|
51
52
|
color: string;
|
|
53
|
+
iconSize: string;
|
|
52
54
|
}, any>;
|
|
53
55
|
}>>>;
|
|
54
56
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
|
|
@@ -66,6 +68,7 @@ export declare const avatarGroupProps: {
|
|
|
66
68
|
textColor: string;
|
|
67
69
|
iconColor: string;
|
|
68
70
|
color: string;
|
|
71
|
+
iconSize: string;
|
|
69
72
|
}, any>;
|
|
70
73
|
}>>>;
|
|
71
74
|
};
|
|
@@ -95,6 +98,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
98
|
textColor: string;
|
|
96
99
|
iconColor: string;
|
|
97
100
|
color: string;
|
|
101
|
+
iconSize: string;
|
|
98
102
|
}, any>;
|
|
99
103
|
}>>;
|
|
100
104
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
|
|
@@ -112,6 +116,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
112
116
|
textColor: string;
|
|
113
117
|
iconColor: string;
|
|
114
118
|
color: string;
|
|
119
|
+
iconSize: string;
|
|
115
120
|
}, any>;
|
|
116
121
|
}>>>;
|
|
117
122
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
|
|
@@ -129,6 +134,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
129
134
|
textColor: string;
|
|
130
135
|
iconColor: string;
|
|
131
136
|
color: string;
|
|
137
|
+
iconSize: string;
|
|
132
138
|
}, any>;
|
|
133
139
|
}>>>;
|
|
134
140
|
}, {
|
|
@@ -150,6 +156,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
156
|
textColor: string;
|
|
151
157
|
iconColor: string;
|
|
152
158
|
color: string;
|
|
159
|
+
iconSize: string;
|
|
153
160
|
}, any>;
|
|
154
161
|
};
|
|
155
162
|
peerOverrides: {
|
|
@@ -192,6 +199,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
192
199
|
textColor: string;
|
|
193
200
|
iconColor: string;
|
|
194
201
|
color: string;
|
|
202
|
+
iconSize: string;
|
|
195
203
|
}, any>;
|
|
196
204
|
}>>;
|
|
197
205
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
|
|
@@ -209,6 +217,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
209
217
|
textColor: string;
|
|
210
218
|
iconColor: string;
|
|
211
219
|
color: string;
|
|
220
|
+
iconSize: string;
|
|
212
221
|
}, any>;
|
|
213
222
|
}>>>;
|
|
214
223
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
|
|
@@ -226,6 +235,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
226
235
|
textColor: string;
|
|
227
236
|
iconColor: string;
|
|
228
237
|
color: string;
|
|
238
|
+
iconSize: string;
|
|
229
239
|
}, any>;
|
|
230
240
|
}>>>;
|
|
231
241
|
}>>, {
|
package/es/badge/src/Badge.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare const badgeProps: {
|
|
|
31
31
|
textColorSuccess: string;
|
|
32
32
|
textColorError: string;
|
|
33
33
|
textColorWarning: string;
|
|
34
|
+
borderColor: string;
|
|
34
35
|
}, any>>;
|
|
35
36
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
|
|
36
37
|
color: string;
|
|
@@ -46,6 +47,7 @@ export declare const badgeProps: {
|
|
|
46
47
|
textColorSuccess: string;
|
|
47
48
|
textColorError: string;
|
|
48
49
|
textColorWarning: string;
|
|
50
|
+
borderColor: string;
|
|
49
51
|
}, any>>>;
|
|
50
52
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
|
|
51
53
|
color: string;
|
|
@@ -61,6 +63,7 @@ export declare const badgeProps: {
|
|
|
61
63
|
textColorSuccess: string;
|
|
62
64
|
textColorError: string;
|
|
63
65
|
textColorWarning: string;
|
|
66
|
+
borderColor: string;
|
|
64
67
|
}, any>>>;
|
|
65
68
|
};
|
|
66
69
|
export type BadgeProps = ExtractPublicPropTypes<typeof badgeProps>;
|
|
@@ -95,6 +98,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
98
|
textColorSuccess: string;
|
|
96
99
|
textColorError: string;
|
|
97
100
|
textColorWarning: string;
|
|
101
|
+
borderColor: string;
|
|
98
102
|
}, any>>;
|
|
99
103
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
|
|
100
104
|
color: string;
|
|
@@ -110,6 +114,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
114
|
textColorSuccess: string;
|
|
111
115
|
textColorError: string;
|
|
112
116
|
textColorWarning: string;
|
|
117
|
+
borderColor: string;
|
|
113
118
|
}, any>>>;
|
|
114
119
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
|
|
115
120
|
color: string;
|
|
@@ -125,6 +130,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
125
130
|
textColorSuccess: string;
|
|
126
131
|
textColorError: string;
|
|
127
132
|
textColorWarning: string;
|
|
133
|
+
borderColor: string;
|
|
128
134
|
}, any>>>;
|
|
129
135
|
}, {
|
|
130
136
|
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
@@ -140,6 +146,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
140
146
|
'--u-bezier': string;
|
|
141
147
|
'--u-ripple-bezier': string;
|
|
142
148
|
'--u-text-color': string;
|
|
149
|
+
'--u-border-color': string;
|
|
143
150
|
}> | undefined;
|
|
144
151
|
themeClass: import("vue").Ref<string> | undefined;
|
|
145
152
|
onRender: (() => void) | undefined;
|
|
@@ -177,6 +184,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
177
184
|
textColorSuccess: string;
|
|
178
185
|
textColorError: string;
|
|
179
186
|
textColorWarning: string;
|
|
187
|
+
borderColor: string;
|
|
180
188
|
}, any>>;
|
|
181
189
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
|
|
182
190
|
color: string;
|
|
@@ -192,6 +200,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
192
200
|
textColorSuccess: string;
|
|
193
201
|
textColorError: string;
|
|
194
202
|
textColorWarning: string;
|
|
203
|
+
borderColor: string;
|
|
195
204
|
}, any>>>;
|
|
196
205
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
|
|
197
206
|
color: string;
|
|
@@ -207,6 +216,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
207
216
|
textColorSuccess: string;
|
|
208
217
|
textColorError: string;
|
|
209
218
|
textColorWarning: string;
|
|
219
|
+
borderColor: string;
|
|
210
220
|
}, any>>>;
|
|
211
221
|
}>>, {
|
|
212
222
|
readonly type: "default" | "info" | "success" | "warning" | "error" | "prime";
|
package/es/badge/src/Badge.js
CHANGED
|
@@ -39,14 +39,15 @@ export default defineComponent({
|
|
|
39
39
|
const rtlEnabledRef = useRtl('Badge', mergedRtlRef, mergedClsPrefixRef);
|
|
40
40
|
const cssVarsRef = computed(() => {
|
|
41
41
|
const { type, color: propColor, textColor: propTextColor } = props;
|
|
42
|
-
const { common: { cubicBezierEaseInOut, cubicBezierEaseOut }, self: { [createKey('color', type)]: color, [createKey('textColor', type)]: textColor, fontSize } } = themeRef.value;
|
|
42
|
+
const { common: { cubicBezierEaseInOut, cubicBezierEaseOut }, self: { [createKey('color', type)]: color, [createKey('textColor', type)]: textColor, fontSize, borderColor } } = themeRef.value;
|
|
43
43
|
return {
|
|
44
44
|
'--u-font-size': fontSize,
|
|
45
45
|
'--u-color': propColor || color,
|
|
46
46
|
'--u-ripple-color': propColor || color,
|
|
47
47
|
'--u-bezier': cubicBezierEaseInOut,
|
|
48
48
|
'--u-ripple-bezier': cubicBezierEaseOut,
|
|
49
|
-
'--u-text-color': propTextColor || textColor
|
|
49
|
+
'--u-text-color': propTextColor || textColor,
|
|
50
|
+
'--u-border-color': borderColor
|
|
50
51
|
};
|
|
51
52
|
});
|
|
52
53
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -6,6 +6,7 @@ import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-sc
|
|
|
6
6
|
// --u-bezier
|
|
7
7
|
// --u-ripple-bezier
|
|
8
8
|
// --u-font-size
|
|
9
|
+
// --u-border-color
|
|
9
10
|
export default c([c('@keyframes badge-wave-spread', {
|
|
10
11
|
from: {
|
|
11
12
|
boxShadow: '0 0 0.5px 0px var(--u-ripple-color)',
|
|
@@ -74,4 +75,21 @@ export default c([c('@keyframes badge-wave-spread', {
|
|
|
74
75
|
right: 0;
|
|
75
76
|
top: 0;
|
|
76
77
|
bottom: 0;
|
|
77
|
-
`)])
|
|
78
|
+
`)]), c('&:has(span)', '', [cB('badge-sup', `
|
|
79
|
+
border: 2px solid var(--u-border-color);
|
|
80
|
+
top: -5px;
|
|
81
|
+
transform: translateX(-18px);
|
|
82
|
+
bottom: 0;
|
|
83
|
+
height: 20px;
|
|
84
|
+
padding: 2px 12px;
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
border-radius: 100px;
|
|
87
|
+
`), cM('dot', [cB('badge-sup', `
|
|
88
|
+
transform: none;
|
|
89
|
+
width: 12px;
|
|
90
|
+
height: 12px;
|
|
91
|
+
transform: none;
|
|
92
|
+
left: auto;
|
|
93
|
+
right: 0;
|
|
94
|
+
top: 0;
|
|
95
|
+
`)])])])]);
|
|
@@ -14,6 +14,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
14
14
|
textColorSuccess: string;
|
|
15
15
|
textColorError: string;
|
|
16
16
|
textColorWarning: string;
|
|
17
|
+
borderColor: string;
|
|
17
18
|
};
|
|
18
19
|
export type BadgeThemeVars = ReturnType<typeof self>;
|
|
19
20
|
declare const badgeLight: Theme<'Badge', BadgeThemeVars>;
|
package/es/badge/styles/light.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { commonLight } from '../../_styles/common';
|
|
2
2
|
export const self = (vars) => {
|
|
3
|
-
const { brandQuaternary500, elementsPrimary, staticGreen, staticRed, staticOrange, fontBodySmall, textPrimary, textQuaternary } = vars;
|
|
3
|
+
const { brandQuaternary500, elementsPrimary, staticGreen, staticRed, staticOrange, fontBodySmall, textPrimary, textQuaternary, staticWhite } = vars;
|
|
4
4
|
return {
|
|
5
5
|
color: staticRed,
|
|
6
6
|
colorPrime: elementsPrimary,
|
|
@@ -9,12 +9,13 @@ export const self = (vars) => {
|
|
|
9
9
|
colorError: staticRed,
|
|
10
10
|
colorWarning: staticOrange,
|
|
11
11
|
fontSize: fontBodySmall,
|
|
12
|
-
textColor:
|
|
12
|
+
textColor: staticWhite,
|
|
13
13
|
textColorPrime: textQuaternary,
|
|
14
14
|
textColorInfo: textPrimary,
|
|
15
15
|
textColorSuccess: textQuaternary,
|
|
16
16
|
textColorError: textQuaternary,
|
|
17
|
-
textColorWarning: textQuaternary
|
|
17
|
+
textColorWarning: textQuaternary,
|
|
18
|
+
borderColor: staticWhite
|
|
18
19
|
};
|
|
19
20
|
};
|
|
20
21
|
const badgeLight = {
|
package/es/components.d.ts
CHANGED
package/es/components.js
CHANGED
|
@@ -99,6 +99,7 @@ import type { ToggleButtonTheme } from '../../toggle-button/styles';
|
|
|
99
99
|
import type { AccountOptionTheme } from '../../_internal/account-option/styles';
|
|
100
100
|
import type { FlexTheme } from '../../flex/styles';
|
|
101
101
|
import { CardListTheme } from '../../card-list/styles';
|
|
102
|
+
import { ActionCardTheme } from '../../action-card';
|
|
102
103
|
export interface GlobalThemeWithoutCommon {
|
|
103
104
|
Alert?: AlertTheme;
|
|
104
105
|
Anchor?: AnchorTheme;
|
|
@@ -111,6 +112,7 @@ export interface GlobalThemeWithoutCommon {
|
|
|
111
112
|
Button?: ButtonTheme;
|
|
112
113
|
ButtonGroup?: ButtonGroupTheme;
|
|
113
114
|
Calendar?: CalendarTheme;
|
|
115
|
+
ActionCard?: ActionCardTheme;
|
|
114
116
|
Card?: CardTheme;
|
|
115
117
|
Carousel?: CarouselTheme;
|
|
116
118
|
Cascader?: CascaderTheme;
|
|
@@ -555,6 +555,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
555
555
|
jumperFontSizeLarge: string;
|
|
556
556
|
jumperTextColor: string;
|
|
557
557
|
jumperTextColorDisabled: string;
|
|
558
|
+
paginationSizePickerBackground: string;
|
|
559
|
+
paginationSizePickerBorder: string;
|
|
558
560
|
}, {
|
|
559
561
|
Select: import("../../_mixins").Theme<"Select", {
|
|
560
562
|
menuBoxShadow: string;
|
|
@@ -1471,6 +1473,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1471
1473
|
jumperFontSizeLarge: string;
|
|
1472
1474
|
jumperTextColor: string;
|
|
1473
1475
|
jumperTextColorDisabled: string;
|
|
1476
|
+
paginationSizePickerBackground: string;
|
|
1477
|
+
paginationSizePickerBorder: string;
|
|
1474
1478
|
}, {
|
|
1475
1479
|
Select: import("../../_mixins").Theme<"Select", {
|
|
1476
1480
|
menuBoxShadow: string;
|
|
@@ -2387,6 +2391,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2387
2391
|
jumperFontSizeLarge: string;
|
|
2388
2392
|
jumperTextColor: string;
|
|
2389
2393
|
jumperTextColorDisabled: string;
|
|
2394
|
+
paginationSizePickerBackground: string;
|
|
2395
|
+
paginationSizePickerBorder: string;
|
|
2390
2396
|
}, {
|
|
2391
2397
|
Select: import("../../_mixins").Theme<"Select", {
|
|
2392
2398
|
menuBoxShadow: string;
|
|
@@ -3321,6 +3327,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3321
3327
|
jumperFontSizeLarge: string;
|
|
3322
3328
|
jumperTextColor: string;
|
|
3323
3329
|
jumperTextColorDisabled: string;
|
|
3330
|
+
paginationSizePickerBackground: string;
|
|
3331
|
+
paginationSizePickerBorder: string;
|
|
3324
3332
|
}, {
|
|
3325
3333
|
Select: import("../../_mixins").Theme<"Select", {
|
|
3326
3334
|
menuBoxShadow: string;
|
|
@@ -4818,6 +4826,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4818
4826
|
jumperFontSizeLarge: string;
|
|
4819
4827
|
jumperTextColor: string;
|
|
4820
4828
|
jumperTextColorDisabled: string;
|
|
4829
|
+
paginationSizePickerBackground: string;
|
|
4830
|
+
paginationSizePickerBorder: string;
|
|
4821
4831
|
}, {
|
|
4822
4832
|
Select: import("../../_mixins").Theme<"Select", {
|
|
4823
4833
|
menuBoxShadow: string;
|
|
@@ -5734,6 +5744,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5734
5744
|
jumperFontSizeLarge: string;
|
|
5735
5745
|
jumperTextColor: string;
|
|
5736
5746
|
jumperTextColorDisabled: string;
|
|
5747
|
+
paginationSizePickerBackground: string;
|
|
5748
|
+
paginationSizePickerBorder: string;
|
|
5737
5749
|
}, {
|
|
5738
5750
|
Select: import("../../_mixins").Theme<"Select", {
|
|
5739
5751
|
menuBoxShadow: string;
|
|
@@ -6650,6 +6662,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6650
6662
|
jumperFontSizeLarge: string;
|
|
6651
6663
|
jumperTextColor: string;
|
|
6652
6664
|
jumperTextColorDisabled: string;
|
|
6665
|
+
paginationSizePickerBackground: string;
|
|
6666
|
+
paginationSizePickerBorder: string;
|
|
6653
6667
|
}, {
|
|
6654
6668
|
Select: import("../../_mixins").Theme<"Select", {
|
|
6655
6669
|
menuBoxShadow: string;
|
|
@@ -323,7 +323,7 @@ export default defineComponent({
|
|
|
323
323
|
};
|
|
324
324
|
const cssVarsRef = computed(() => {
|
|
325
325
|
const { size } = props;
|
|
326
|
-
const { common: { cubicBezierEaseInOut }, self: { borderColor, tdColorHover, thColor, thColorHover, tdColor, tdTextColor, thTextColor, thFontWeight, thButtonColorHover, thIconColor, thIconColorActive, filterSize, borderRadius, lineHeight, tdColorModal, thColorModal, borderColorModal, thColorHoverModal, tdColorHoverModal, borderColorPopover, thColorPopover, tdColorPopover, tdColorHoverPopover, thColorHoverPopover, paginationMargin, emptyPadding, fixedBoxShadow, sorterSize, resizableContainerSize, resizableSize, loadingColor, loadingSize, opacityLoading,
|
|
326
|
+
const { common: { cubicBezierEaseInOut }, self: { borderColor, tdColorHover, thColor, thColorHover, tdColor, tdTextColor, thTextColor, thFontWeight, thButtonColorHover, thIconColor, thIconColorActive, filterSize, borderRadius, lineHeight, tdColorModal, thColorModal, borderColorModal, thColorHoverModal, tdColorHoverModal, borderColorPopover, thColorPopover, tdColorPopover, tdColorHoverPopover, thColorHoverPopover, paginationMargin, emptyPadding, fixedBoxShadow, sorterSize, resizableContainerSize, resizableSize, loadingColor, loadingSize, opacityLoading, tdColorStriped, tdColorStripedModal, tdColorStripedPopover, thSubFontSize, thSubColor, thSubFontWeight, [createKey('fontSize', size)]: fontSize, [createKey('thPadding', size)]: thPadding, [createKey('tdPadding', size)]: tdPadding, [createKey('thHeight', size)]: thHeight, [createKey('tdHeight', size)]: tdHeight } } = themeRef.value;
|
|
327
327
|
return {
|
|
328
328
|
'--u-th-height': thHeight,
|
|
329
329
|
'--u-td-height': tdHeight,
|
|
@@ -367,7 +367,7 @@ export default defineComponent({
|
|
|
367
367
|
'--u-loading-size': loadingSize,
|
|
368
368
|
'--u-loading-color': loadingColor,
|
|
369
369
|
'--u-opacity-loading': opacityLoading,
|
|
370
|
-
'--u-td-opacity-disabled':
|
|
370
|
+
'--u-td-opacity-disabled': tdTextColor,
|
|
371
371
|
'--u-td-color-striped': tdColorStriped,
|
|
372
372
|
'--u-td-color-striped-modal': tdColorStripedModal,
|
|
373
373
|
'--u-td-color-striped-popover': tdColorStripedPopover
|
|
@@ -410,7 +410,7 @@ export default defineComponent({
|
|
|
410
410
|
h(MainTable, { ref: "mainTableInstRef", onEdit: (...args) => {
|
|
411
411
|
this.$emit('edit', ...args);
|
|
412
412
|
} })),
|
|
413
|
-
this.mergedShowPagination ? (h("div", { class: `${mergedClsPrefix}-data-table__pagination` },
|
|
413
|
+
!this.loading && this.mergedShowPagination ? (h("div", { class: `${mergedClsPrefix}-data-table__pagination` },
|
|
414
414
|
h(UPagination, Object.assign({ theme: this.mergedTheme.peers.Pagination, themeOverrides: this.mergedTheme.peerOverrides.Pagination, disabled: this.loading }, this.mergedPagination)))) : null,
|
|
415
415
|
h(Transition, { name: "fade-in-scale-up-transition" }, {
|
|
416
416
|
default: () => {
|
|
@@ -459,6 +459,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
459
459
|
jumperFontSizeLarge: string;
|
|
460
460
|
jumperTextColor: string;
|
|
461
461
|
jumperTextColorDisabled: string;
|
|
462
|
+
paginationSizePickerBackground: string;
|
|
463
|
+
paginationSizePickerBorder: string;
|
|
462
464
|
}, {
|
|
463
465
|
Select: import("../../../_mixins").Theme<"Select", {
|
|
464
466
|
menuBoxShadow: string;
|
|
@@ -484,6 +484,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
484
484
|
jumperFontSizeLarge: string;
|
|
485
485
|
jumperTextColor: string;
|
|
486
486
|
jumperTextColorDisabled: string;
|
|
487
|
+
paginationSizePickerBackground: string;
|
|
488
|
+
paginationSizePickerBorder: string;
|
|
487
489
|
}, {
|
|
488
490
|
Select: import("../../../_mixins").Theme<"Select", {
|
|
489
491
|
menuBoxShadow: string;
|
|
@@ -485,6 +485,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
485
485
|
jumperFontSizeLarge: string;
|
|
486
486
|
jumperTextColor: string;
|
|
487
487
|
jumperTextColorDisabled: string;
|
|
488
|
+
paginationSizePickerBackground: string;
|
|
489
|
+
paginationSizePickerBorder: string;
|
|
488
490
|
}, {
|
|
489
491
|
Select: import("../../../_mixins").Theme<"Select", {
|
|
490
492
|
menuBoxShadow: string;
|
|
@@ -26,6 +26,7 @@ import ExpandTrigger from './ExpandTrigger';
|
|
|
26
26
|
import RenderSafeCheckbox from './BodyCheckbox';
|
|
27
27
|
import RenderSafeRadio from './BodyRadio';
|
|
28
28
|
import TableHeader from './Header';
|
|
29
|
+
import BodySkeleton from './BodySkeleton';
|
|
29
30
|
function flatten(rowInfos, expandedRowKeys) {
|
|
30
31
|
const fRows = [];
|
|
31
32
|
function traverse(rs, rootIndex) {
|
|
@@ -590,11 +591,19 @@ export default defineComponent({
|
|
|
590
591
|
} },
|
|
591
592
|
h("colgroup", null, cols.map((col) => (h("col", { key: col.key, style: col.style })))),
|
|
592
593
|
this.showHeader ? h(TableHeader, { discrete: false }) : null,
|
|
593
|
-
!this.empty ? (h("tbody", { "data-u-id": componentId, class: `${mergedClsPrefix}-data-table-tbody` }, displayedData.map((rowInfo, displayedRowIndex) => {
|
|
594
|
+
this.loading ? (h(BodySkeleton, null)) : !this.empty ? (h("tbody", { "data-u-id": componentId, class: `${mergedClsPrefix}-data-table-tbody` }, displayedData.map((rowInfo, displayedRowIndex) => {
|
|
594
595
|
return renderRow(rowInfo, displayedRowIndex, false);
|
|
595
596
|
}))) : null));
|
|
596
597
|
}
|
|
597
598
|
else {
|
|
599
|
+
if (this.loading) {
|
|
600
|
+
return (h("table", { class: `${mergedClsPrefix}-data-table-table`, onMouseleave: handleMouseleaveTable, style: {
|
|
601
|
+
tableLayout: this.mergedTableLayout
|
|
602
|
+
} },
|
|
603
|
+
h("colgroup", null, cols.map((col) => (h("col", { key: col.key, style: col.style })))),
|
|
604
|
+
this.showHeader ? h(TableHeader, { discrete: false }) : null,
|
|
605
|
+
h(BodySkeleton, null)));
|
|
606
|
+
}
|
|
598
607
|
return (h(VirtualList, { ref: "virtualListRef", items: displayedData, itemSize: 28, visibleItemsTag: VirtualListItemWrapper, visibleItemsProps: {
|
|
599
608
|
clsPrefix: mergedClsPrefix,
|
|
600
609
|
id: componentId,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
rowCount: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
8
|
+
cols: import("vue").Ref<import("../use-group-header").ColItem[]>;
|
|
9
|
+
skeletonRowCount: import("vue").ComputedRef<number>;
|
|
10
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
rowCount: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
}>>, {
|
|
16
|
+
rowCount: number;
|
|
17
|
+
}, {}>;
|
|
18
|
+
export default _default;
|