@uzum-tech/ui 1.5.0 → 1.5.2
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 +312 -314
- package/dist/index.prod.js +3 -3
- package/es/_internal/typography/src/styles/text.cssr.js +0 -1
- package/es/_internal/typography/styles/light.js +1 -1
- package/es/data-table/src/DataTable.d.ts +3 -0
- package/es/data-table/src/DataTable.js +1 -0
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +3 -3
- package/es/data-table/src/interface.d.ts +2 -0
- package/es/data-table/src/interface.js +1 -1
- package/es/list/src/List.d.ts +41 -55
- package/es/list/src/List.js +6 -10
- package/es/list/src/ListItem.d.ts +84 -25
- package/es/list/src/ListItem.js +116 -98
- package/es/list/src/interface.d.ts +1 -0
- package/es/list/src/props.d.ts +70 -31
- package/es/list/src/props.js +25 -5
- package/es/list/src/styles/index.cssr.js +32 -90
- package/es/list/styles/light.d.ts +5 -8
- package/es/list/styles/light.js +6 -9
- package/es/tag/src/styles/index.cssr.js +5 -1
- package/es/tag/styles/light.js +2 -2
- package/es/upload/src/UploadFile.js +4 -3
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/typography/src/styles/text.cssr.js +0 -1
- package/lib/_internal/typography/styles/light.js +1 -1
- package/lib/data-table/src/DataTable.d.ts +3 -0
- package/lib/data-table/src/DataTable.js +1 -0
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +3 -3
- package/lib/data-table/src/interface.d.ts +2 -0
- package/lib/data-table/src/interface.js +1 -1
- package/lib/list/src/List.d.ts +41 -55
- package/lib/list/src/List.js +6 -10
- package/lib/list/src/ListItem.d.ts +84 -25
- package/lib/list/src/ListItem.js +115 -97
- package/lib/list/src/interface.d.ts +1 -0
- package/lib/list/src/props.d.ts +70 -31
- package/lib/list/src/props.js +25 -5
- package/lib/list/src/styles/index.cssr.js +32 -90
- package/lib/list/styles/light.d.ts +5 -8
- package/lib/list/styles/light.js +6 -9
- package/lib/tag/src/styles/index.cssr.js +5 -1
- package/lib/tag/styles/light.js +2 -2
- package/lib/upload/src/UploadFile.js +4 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +62 -35
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { cB, c, cE, cM, insideModal, insidePopover, cNotM } from '../../../_utils/cssr';
|
|
2
|
-
|
|
2
|
+
// --u-border-radius
|
|
3
|
+
// --u-suffix-size
|
|
4
|
+
export default c([cB('align-start', `
|
|
5
|
+
align-self: self-start;
|
|
6
|
+
`), cB('align-center', `
|
|
7
|
+
align-self: center;
|
|
8
|
+
`), cB('align-end', `
|
|
9
|
+
align-self: self-end;
|
|
10
|
+
`), cB('list', `
|
|
3
11
|
--u-merged-border-color: var(--u-border-color);
|
|
4
12
|
--u-merged-color: var(--u-color);
|
|
5
13
|
--u-merged-color-focus: var(--u-color-focus);
|
|
6
14
|
--u-merged-color-hover: var(--u-color-hover);
|
|
7
15
|
margin: 0;
|
|
8
|
-
font-size: var(--u-font-size);
|
|
9
16
|
transition:
|
|
10
17
|
background-color .3s var(--u-bezier),
|
|
11
18
|
color .3s var(--u-bezier),
|
|
@@ -16,17 +23,10 @@ export default c([cB('list', `
|
|
|
16
23
|
background-color: var(--u-merged-color);
|
|
17
24
|
`, [cM('clickable', [cB('list-item', `
|
|
18
25
|
cursor: pointer;
|
|
19
|
-
`)]), cM('bordered', `
|
|
20
|
-
border: 1px solid var(--u-merged-border-color);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
border-radius: var(--u-border-radius);
|
|
24
|
-
border-bottom-left-radius: 0;
|
|
25
|
-
border-bottom-right-radius: 0;
|
|
26
|
-
`), c('&:last-child', `
|
|
27
|
-
border-radius: var(--u-border-radius);
|
|
28
|
-
border-top-left-radius: 0;
|
|
29
|
-
border-top-right-radius: 0;
|
|
26
|
+
`)]), cM('bordered', [cB('list-item', `
|
|
27
|
+
border-bottom: 1px solid var(--u-merged-border-color);
|
|
28
|
+
`, [c('&:last-child', `
|
|
29
|
+
border: none;
|
|
30
30
|
`)])]), cE('header, footer', `
|
|
31
31
|
padding: var(--u-padding);
|
|
32
32
|
padding-left: 0px;
|
|
@@ -46,11 +46,10 @@ export default c([cB('list', `
|
|
|
46
46
|
position: relative;
|
|
47
47
|
outline: none;
|
|
48
48
|
display: flex;
|
|
49
|
-
align-items: center;
|
|
50
49
|
padding: var(--u-padding);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
`, [cB('skeleton', `
|
|
51
|
+
height: 24px
|
|
52
|
+
`), cE('main', `
|
|
54
53
|
flex: 1;
|
|
55
54
|
`), c('&:focus', `
|
|
56
55
|
outline: none;
|
|
@@ -65,81 +64,43 @@ export default c([cB('list', `
|
|
|
65
64
|
left: 0;
|
|
66
65
|
`), cE('icon', `
|
|
67
66
|
display: flex;
|
|
68
|
-
font-size: var(--u-icon-size);
|
|
69
67
|
margin-left: var(--u-icon-space);
|
|
70
68
|
`), cE('suffix', `
|
|
71
69
|
margin-left: var(--u-suffix-space);
|
|
70
|
+
font-size: var(--u-suffix-size);
|
|
71
|
+
align-self: center;
|
|
72
72
|
`), cE('prefix', `
|
|
73
73
|
margin-right: var(--u-prefix-space);
|
|
74
|
+
display: flex;
|
|
74
75
|
`), cE('content', `
|
|
75
|
-
flex-grow: 1;
|
|
76
|
-
padding: 0;
|
|
77
76
|
display: flex;
|
|
78
77
|
flex-direction: column;
|
|
79
|
-
|
|
78
|
+
gap: 4px;
|
|
80
79
|
`, [cM('right', `
|
|
81
|
-
margin-left: auto;
|
|
82
80
|
text-align: right;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
flex-grow: 1;
|
|
91
|
-
display: flex;
|
|
92
|
-
align-items: flex-start;
|
|
81
|
+
`), cM('full', {
|
|
82
|
+
width: '100%'
|
|
83
|
+
})]), cE('text', `
|
|
84
|
+
display: grid;
|
|
85
|
+
gap: 16px;
|
|
86
|
+
grid-template-columns: 1fr 1fr;
|
|
87
|
+
height: 100%
|
|
93
88
|
`), cE('title', `
|
|
94
|
-
padding-top: 4px;
|
|
95
89
|
flex-grow: 1;
|
|
96
|
-
|
|
97
|
-
font-size: var(--u-title-size);
|
|
98
|
-
font-weight: 500;
|
|
99
|
-
line-height: var(--u-title-line-height);
|
|
100
|
-
`, [c('&:last-child', `
|
|
101
|
-
margin-bottom: 0;
|
|
102
|
-
`)]), cE('subtitle', `
|
|
103
|
-
padding-bottom: 4px;
|
|
90
|
+
`), cE('subtitle', `
|
|
104
91
|
flex-grow: 1;
|
|
105
|
-
font-size: var(--u-subtitle-size);
|
|
106
|
-
font-weight: 500;
|
|
107
|
-
line-height: var(--u-subtitle-line-height);
|
|
108
92
|
color: var(--u-subtitle-color);
|
|
109
93
|
`), cE('subtitle,title', [c('&:last-child:first-child', `
|
|
110
|
-
|
|
111
|
-
`)]), cE('avatar', `
|
|
112
|
-
display: flex;
|
|
113
|
-
margin-right: var(--u-avatar-space);
|
|
114
|
-
`), c('&:last-child', [cE('divider', `
|
|
94
|
+
`)]), c('&:last-child', [cE('divider', `
|
|
115
95
|
display: none;
|
|
116
96
|
`)]), cM('default', `
|
|
117
|
-
min-height: var(--u-min-height);
|
|
118
97
|
padding: var(--u-padding);
|
|
119
98
|
`, [cE('main', `
|
|
120
|
-
display:
|
|
99
|
+
display: none;
|
|
121
100
|
align-items: center;
|
|
122
|
-
`)]),
|
|
123
|
-
padding-top: 0;
|
|
124
|
-
padding-bottom: 4px;
|
|
125
|
-
order: 1;
|
|
126
|
-
margin-top: 4px;
|
|
127
|
-
margin-bottom: 0px;
|
|
128
|
-
`, [c('&:last-child', `
|
|
129
|
-
margin-top: 0;
|
|
130
|
-
`)]), cE('subtitle', `
|
|
131
|
-
padding-bottom: 0;
|
|
132
|
-
padding-top: 4px;
|
|
133
|
-
`)]), cM('columns-even', [cE('content', [cM('right', `
|
|
134
|
-
flex-grow: 1;
|
|
135
|
-
text-align: left;
|
|
136
|
-
align-items: stretch;
|
|
137
|
-
`)])]), cM('bordered', `
|
|
138
|
-
padding: var(--u-padding);
|
|
139
|
-
`), cNotM('loading', [cNotM('disabled', [cNotM('loading-skeleton', [cM('hoverable', `
|
|
101
|
+
`)]), cNotM('loading', [cNotM('disabled', [cNotM('loading-skeleton', [cM('hoverable', `
|
|
140
102
|
cursor: pointer;
|
|
141
103
|
user-select: none;
|
|
142
|
-
padding: var(--u-padding);
|
|
143
104
|
`, [c('&:hover', `
|
|
144
105
|
background: var(--u-merged-color-hover);
|
|
145
106
|
`), c('&:focus,&:active', `
|
|
@@ -152,26 +113,7 @@ export default c([cB('list', `
|
|
|
152
113
|
border-radius: var(--u-border-radius);
|
|
153
114
|
`), cM('disabled', [cE('text, subtitle', `
|
|
154
115
|
color: var(--u-text-color-disabled);
|
|
155
|
-
`)]),
|
|
156
|
-
padding: 5px 0;
|
|
157
|
-
`), cE('content--left', `
|
|
158
|
-
flex-grow: 0;
|
|
159
|
-
width: calc(66.38% - 8px);
|
|
160
|
-
`), cE('content--right', `
|
|
161
|
-
flex-grow: 0;
|
|
162
|
-
width: calc(33.62% - 8px);
|
|
163
|
-
`), cE('title,subtitle', [c('&:first-child:last-child', `
|
|
164
|
-
padding: 0;
|
|
165
|
-
`)]), cE('title', `
|
|
166
|
-
margin-bottom: 8px;
|
|
167
|
-
`, [c('&:last-child', `
|
|
168
|
-
margin-bottom: 0;
|
|
169
|
-
`)]), cM('description-first', [cE('title', `
|
|
170
|
-
margin-bottom: 0;
|
|
171
|
-
margin-top: 8px;
|
|
172
|
-
`, [c('&:last-child', `
|
|
173
|
-
margin-top: 0;
|
|
174
|
-
`)])])])]), insideModal(cB('list', `
|
|
116
|
+
`)])]), insideModal(cB('list', `
|
|
175
117
|
--u-merged-color-hover: var(--u-color-hover-modal);
|
|
176
118
|
--u-merged-color: var(--u-color-modal);
|
|
177
119
|
--u-merged-border-color: var(--u-border-color-modal);
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import type { ThemeCommonVars } from '../../_styles/common';
|
|
2
2
|
import { type Theme } from '../../_mixins';
|
|
3
3
|
export declare const self: (vars: ThemeCommonVars) => {
|
|
4
|
-
padding: string;
|
|
5
4
|
iconSize: string;
|
|
6
5
|
iconSpace: string;
|
|
7
6
|
suffixSpace: string;
|
|
8
7
|
prefixSpace: string;
|
|
9
|
-
titleSize: string;
|
|
10
|
-
titleLineHeight: string;
|
|
11
|
-
subtitleSize: string;
|
|
12
|
-
subtitleLineHeight: string;
|
|
13
8
|
subtitleColor: string;
|
|
14
9
|
avatarSpace: string;
|
|
15
|
-
minHeight: string;
|
|
16
10
|
colorFocus: string;
|
|
17
11
|
pressedScale: string;
|
|
18
12
|
textColorDisabled: string;
|
|
@@ -26,8 +20,11 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
26
20
|
borderColor: string;
|
|
27
21
|
borderColorModal: string;
|
|
28
22
|
borderColorPopover: string;
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
borderRadiusLarge: string;
|
|
24
|
+
borderRadiusMedium: string;
|
|
25
|
+
borderRadiusSmall: string;
|
|
26
|
+
padding: string;
|
|
27
|
+
suffixSize: string;
|
|
31
28
|
};
|
|
32
29
|
export type ListThemeVars = ReturnType<typeof self>;
|
|
33
30
|
declare const listLight: Theme<'List', ListThemeVars>;
|
package/es/list/styles/light.js
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import { commonLight } from '../../_styles/common';
|
|
2
2
|
export const self = (vars) => {
|
|
3
|
-
const { borderRadius,
|
|
3
|
+
const { borderRadius, borderRadiusMedium, borderRadiusSmall, iconMedium, textSecondary, iconSmall, elementsQuaternary, textTertiary, textPrimary, containerPrimary, elementsTertiary } = vars;
|
|
4
4
|
return {
|
|
5
|
-
padding: '8px 24px',
|
|
6
5
|
iconSize: iconMedium,
|
|
7
6
|
iconSpace: '16px',
|
|
8
7
|
suffixSpace: '20px',
|
|
9
8
|
prefixSpace: '20px',
|
|
10
|
-
titleSize: fontBodyLarge,
|
|
11
|
-
titleLineHeight: lineHeightBodyLarge,
|
|
12
|
-
subtitleSize: fontBodyMedium,
|
|
13
|
-
subtitleLineHeight: lineHeightBodyMedium,
|
|
14
9
|
subtitleColor: textSecondary,
|
|
15
10
|
avatarSpace: iconSmall,
|
|
16
|
-
minHeight: '64px',
|
|
17
11
|
colorFocus: elementsQuaternary,
|
|
18
12
|
pressedScale: '0.98',
|
|
19
13
|
textColorDisabled: textTertiary,
|
|
@@ -27,8 +21,11 @@ export const self = (vars) => {
|
|
|
27
21
|
borderColor: elementsQuaternary,
|
|
28
22
|
borderColorModal: elementsQuaternary,
|
|
29
23
|
borderColorPopover: elementsQuaternary,
|
|
30
|
-
borderRadius,
|
|
31
|
-
|
|
24
|
+
borderRadiusLarge: borderRadius,
|
|
25
|
+
borderRadiusMedium,
|
|
26
|
+
borderRadiusSmall,
|
|
27
|
+
padding: '12px 24px',
|
|
28
|
+
suffixSize: '24px'
|
|
32
29
|
};
|
|
33
30
|
};
|
|
34
31
|
const listLight = {
|
|
@@ -92,6 +92,7 @@ export default cB('tag', `
|
|
|
92
92
|
cursor: pointer;
|
|
93
93
|
box-shadow: none;
|
|
94
94
|
color: var(--u-text-color-checkable);
|
|
95
|
+
padding: 0px 8px;
|
|
95
96
|
background-color: var(--u-color-checkable);
|
|
96
97
|
transition: border-color .3s var(--u-bezier);
|
|
97
98
|
`, [cNotM('disabled', [c('&:hover', 'background-color: var(--u-color-hover-checkable);', [cNotM('checked', 'color: var(--u-text-color-hover-checkable);')]), c('&:focus', `
|
|
@@ -101,4 +102,7 @@ export default cB('tag', `
|
|
|
101
102
|
transition: border-color .3s var(--u-bezier);`, [cNotM('checked', 'color: var(--u-text-color-pressed-checkable);')])]), cM('checked', `
|
|
102
103
|
color: var(--u-text-color-checked);
|
|
103
104
|
background-color: var(--u-color-checked);
|
|
104
|
-
`, [
|
|
105
|
+
`, [cE('border', `
|
|
106
|
+
border-color: var(--u-color-checked);
|
|
107
|
+
transition: none;
|
|
108
|
+
`), cNotM('disabled', [c('&:hover', 'background-color: var(--u-color-checked-hover);'), c('&:focus', 'background-color: var(--u-color-checked-hover);'), c('&:active', 'background-color: var(--u-color-checked-pressed);')])])])]);
|
package/es/tag/styles/light.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { changeColor } from 'seemly';
|
|
2
2
|
import { commonLight } from '../../_styles/common';
|
|
3
3
|
export const self = (vars) => {
|
|
4
|
-
const { opacityDisabled, borderRadiusSmall: borderRadius, fontWeightStrong, fontWeight, elementsTertiary, fontBodySmall, fontBodyMedium, textQuaternary, elementsPrimary, elementsSenary, elementsQuinary, textPrimary, elementsQuaternary, transparencySecondary, staticDarkGrey, staticWhite, elementsDarkQuinary, brandPrimary600, brandPrimary500, brandQuaternary600, brandQuaternary500, staticGreen, staticOrange, staticRed, staticBlack } = vars;
|
|
4
|
+
const { opacityDisabled, borderRadiusSmall: borderRadius, fontWeightStrong, fontWeight, elementsTertiary, fontBodySmall, fontBodyMedium, textQuaternary, elementsPrimary, elementsSecondary, elementsSenary, elementsQuinary, textPrimary, elementsQuaternary, transparencySecondary, staticDarkGrey, staticWhite, elementsDarkQuinary, brandPrimary600, brandPrimary500, brandQuaternary600, brandQuaternary500, staticGreen, staticOrange, staticRed, staticBlack } = vars;
|
|
5
5
|
const borderTagWidth = 2;
|
|
6
6
|
return {
|
|
7
7
|
closeIconSizeTiny: '16px',
|
|
@@ -36,7 +36,7 @@ export const self = (vars) => {
|
|
|
36
36
|
textColorHoverCheckable: textPrimary,
|
|
37
37
|
textColorPressedCheckable: textPrimary,
|
|
38
38
|
textColorChecked: textQuaternary,
|
|
39
|
-
colorCheckable:
|
|
39
|
+
colorCheckable: elementsSecondary,
|
|
40
40
|
colorHoverCheckable: elementsQuaternary,
|
|
41
41
|
colorPressedCheckable: elementsQuaternary,
|
|
42
42
|
colorChecked: elementsPrimary,
|
|
@@ -220,8 +220,8 @@ export default defineComponent({
|
|
|
220
220
|
!this.vertical &&
|
|
221
221
|
!imageCardTypes.includes(listType) &&
|
|
222
222
|
`${clsPrefix}-upload-file-loader--default`
|
|
223
|
-
] },
|
|
224
|
-
h("div", { class: [
|
|
223
|
+
] }, {
|
|
224
|
+
default: () => (h("div", { class: [
|
|
225
225
|
`${clsPrefix}-upload-file`,
|
|
226
226
|
`${clsPrefix}-upload-file--${this.progressStatus}-status`,
|
|
227
227
|
file.url &&
|
|
@@ -247,6 +247,7 @@ export default defineComponent({
|
|
|
247
247
|
? this.$slots['upload-file-subtitle']({ file })
|
|
248
248
|
: ''))),
|
|
249
249
|
actionsNode),
|
|
250
|
-
this.showProgress && (h("div", { class: `${clsPrefix}-upload-file-overlay` }))))
|
|
250
|
+
this.showProgress && (h("div", { class: `${clsPrefix}-upload-file-overlay` }))))
|
|
251
|
+
}));
|
|
251
252
|
}
|
|
252
253
|
});
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.5.
|
|
1
|
+
declare const _default: "1.5.2";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.5.
|
|
1
|
+
export default '1.5.2';
|
|
@@ -76,7 +76,6 @@ exports.default = (0, cssr_1.cB)('text', `
|
|
|
76
76
|
`), (0, cssr_1.c)('p&', `
|
|
77
77
|
box-sizing: border-box;
|
|
78
78
|
transition: color .3s var(--u-bezier);
|
|
79
|
-
margin: var(--u-margin);
|
|
80
79
|
font-size: var(--u-font-size);
|
|
81
80
|
line-height: var(--u-line-height);
|
|
82
81
|
color: var(--u-text-color);
|
|
@@ -5,7 +5,7 @@ const styles_1 = require("../../../styles");
|
|
|
5
5
|
const self = (vars) => {
|
|
6
6
|
const { borderRadiusSmall, brandPrimary500, elementsQuaternary, textPrimary, brandQuaternary500, staticRed, staticOrange, staticGreen, elementsTertiary, fontBodyMedium, lineHeightBodyMedium, codeBorder } = vars;
|
|
7
7
|
return {
|
|
8
|
-
margin: '
|
|
8
|
+
margin: '0px',
|
|
9
9
|
aTextColor: brandPrimary500,
|
|
10
10
|
blockquoteTextColor: textPrimary,
|
|
11
11
|
blockquotePrefixColor: elementsQuaternary,
|
|
@@ -24,6 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
readonly default: () => never[];
|
|
25
25
|
};
|
|
26
26
|
readonly loading: BooleanConstructor;
|
|
27
|
+
readonly loadingSkeleton: BooleanConstructor;
|
|
27
28
|
readonly bordered: {
|
|
28
29
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
29
30
|
readonly default: undefined;
|
|
@@ -4295,6 +4296,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4295
4296
|
readonly default: () => never[];
|
|
4296
4297
|
};
|
|
4297
4298
|
readonly loading: BooleanConstructor;
|
|
4299
|
+
readonly loadingSkeleton: BooleanConstructor;
|
|
4298
4300
|
readonly bordered: {
|
|
4299
4301
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
4300
4302
|
readonly default: undefined;
|
|
@@ -7145,6 +7147,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7145
7147
|
readonly virtualScroll: boolean;
|
|
7146
7148
|
readonly tableLayout: "auto" | "fixed";
|
|
7147
7149
|
readonly columns: import("./interface").TableColumns<any>;
|
|
7150
|
+
readonly loadingSkeleton: boolean;
|
|
7148
7151
|
readonly remote: boolean;
|
|
7149
7152
|
readonly paginateSinglePage: boolean;
|
|
7150
7153
|
readonly bottomBordered: boolean | undefined;
|
|
@@ -258,6 +258,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
258
258
|
mergedSortStateRef,
|
|
259
259
|
mergedFilterStateRef,
|
|
260
260
|
loadingRef: (0, vue_1.toRef)(props, 'loading'),
|
|
261
|
+
loadingSkeletonRef: (0, vue_1.toRef)(props, 'loadingSkeleton'),
|
|
261
262
|
rowClassNameRef: (0, vue_1.toRef)(props, 'rowClassName'),
|
|
262
263
|
mergedCheckedRowKeySetRef,
|
|
263
264
|
mergedExpandedRowKeysRef,
|
|
@@ -1376,6 +1376,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1376
1376
|
scrollX: import("vue").Ref<string | number | undefined>;
|
|
1377
1377
|
cols: import("vue").Ref<ColItem[]>;
|
|
1378
1378
|
loading: import("vue").Ref<boolean>;
|
|
1379
|
+
loadingSkeleton: import("vue").Ref<boolean>;
|
|
1379
1380
|
bodyShowHeaderOnly: import("vue").ComputedRef<boolean>;
|
|
1380
1381
|
shouldDisplaySomeTablePart: import("vue").ComputedRef<boolean>;
|
|
1381
1382
|
empty: import("vue").ComputedRef<boolean>;
|
|
@@ -99,7 +99,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
99
99
|
bodyStyle: Object
|
|
100
100
|
},
|
|
101
101
|
setup(props) {
|
|
102
|
-
const { slots: dataTableSlots, bodyWidthRef, mergedExpandedRowKeysRef, mergedClsPrefixRef, mergedThemeRef, scrollXRef, colsRef, paginatedDataRef, rawPaginatedDataRef, fixedColumnLeftMapRef, fixedColumnRightMapRef, mergedCurrentPageRef, rowClassNameRef, leftActiveFixedColKeyRef, leftActiveFixedChildrenColKeysRef, rightActiveFixedColKeyRef, rightActiveFixedChildrenColKeysRef, renderExpandRef, hoverKeyRef, summaryRef, mergedSortStateRef, virtualScrollRef, componentId, mergedTableLayoutRef, childTriggerColIndexRef, indentRef, rowPropsRef, maxHeightRef, stripedRef, loadingRef, onLoadRef, loadingKeySetRef, expandableRef, stickyExpandedRowsRef, renderExpandIconRef, summaryPlacementRef, treeMateRef, scrollbarPropsRef, setHeaderScrollLeft, doUpdateExpandedRowKeys, handleTableBodyScroll, doCheck, doUncheck, renderCell
|
|
102
|
+
const { slots: dataTableSlots, bodyWidthRef, mergedExpandedRowKeysRef, mergedClsPrefixRef, mergedThemeRef, scrollXRef, colsRef, paginatedDataRef, rawPaginatedDataRef, fixedColumnLeftMapRef, fixedColumnRightMapRef, mergedCurrentPageRef, rowClassNameRef, leftActiveFixedColKeyRef, leftActiveFixedChildrenColKeysRef, rightActiveFixedColKeyRef, rightActiveFixedChildrenColKeysRef, renderExpandRef, hoverKeyRef, summaryRef, mergedSortStateRef, virtualScrollRef, componentId, mergedTableLayoutRef, childTriggerColIndexRef, indentRef, rowPropsRef, maxHeightRef, stripedRef, loadingRef, loadingSkeletonRef, onLoadRef, loadingKeySetRef, expandableRef, stickyExpandedRowsRef, renderExpandIconRef, summaryPlacementRef, treeMateRef, scrollbarPropsRef, setHeaderScrollLeft, doUpdateExpandedRowKeys, handleTableBodyScroll, doCheck, doUncheck, renderCell
|
|
103
103
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
104
104
|
} = (0, vue_1.inject)(interface_1.dataTableInjectionKey);
|
|
105
105
|
const scrollbarInstRef = (0, vue_1.ref)(null);
|
|
@@ -309,7 +309,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
309
309
|
componentId,
|
|
310
310
|
scrollbarInstRef,
|
|
311
311
|
virtualListRef,
|
|
312
|
-
emptyElRef, summary: summaryRef, mergedClsPrefix: mergedClsPrefixRef, mergedTheme: mergedThemeRef, scrollX: scrollXRef, cols: colsRef, loading: loadingRef, bodyShowHeaderOnly: bodyShowHeaderOnlyRef, shouldDisplaySomeTablePart: shouldDisplaySomeTablePartRef, empty: emptyRef, paginatedDataAndInfo: (0, vue_1.computed)(() => {
|
|
312
|
+
emptyElRef, summary: summaryRef, mergedClsPrefix: mergedClsPrefixRef, mergedTheme: mergedThemeRef, scrollX: scrollXRef, cols: colsRef, loading: loadingRef, loadingSkeleton: loadingSkeletonRef, bodyShowHeaderOnly: bodyShowHeaderOnlyRef, shouldDisplaySomeTablePart: shouldDisplaySomeTablePartRef, empty: emptyRef, paginatedDataAndInfo: (0, vue_1.computed)(() => {
|
|
313
313
|
const { value: striped } = stripedRef;
|
|
314
314
|
let hasChildren = false;
|
|
315
315
|
const data = paginatedDataRef.value.map(striped
|
|
@@ -596,7 +596,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
596
596
|
} },
|
|
597
597
|
(0, vue_1.h)("colgroup", null, cols.map((col) => ((0, vue_1.h)("col", { key: col.key, style: col.style })))),
|
|
598
598
|
this.showHeader ? (0, vue_1.h)(Header_1.default, { discrete: false }) : null,
|
|
599
|
-
this.
|
|
599
|
+
this.loadingSkeleton ? ((0, vue_1.h)(BodySkeleton_1.default, null)) : !this.empty ? ((0, vue_1.h)("tbody", { "data-u-id": componentId, class: `${mergedClsPrefix}-data-table-tbody` }, displayedData.map((rowInfo, displayedRowIndex) => {
|
|
600
600
|
return renderRow(rowInfo, displayedRowIndex, false);
|
|
601
601
|
}))) : null));
|
|
602
602
|
}
|
|
@@ -34,6 +34,7 @@ export declare const dataTableProps: {
|
|
|
34
34
|
readonly default: () => never[];
|
|
35
35
|
};
|
|
36
36
|
readonly loading: BooleanConstructor;
|
|
37
|
+
readonly loadingSkeleton: BooleanConstructor;
|
|
37
38
|
readonly bordered: {
|
|
38
39
|
readonly type: PropType<boolean | undefined>;
|
|
39
40
|
readonly default: undefined;
|
|
@@ -3035,6 +3036,7 @@ export interface DataTableInjection {
|
|
|
3035
3036
|
mergedSortStateRef: Ref<SortState[]>;
|
|
3036
3037
|
mergedFilterStateRef: Ref<FilterState>;
|
|
3037
3038
|
loadingRef: Ref<boolean>;
|
|
3039
|
+
loadingSkeletonRef: Ref<boolean>;
|
|
3038
3040
|
rowClassNameRef: Ref<string | CreateRowClassName | undefined>;
|
|
3039
3041
|
mergedCheckedRowKeySetRef: Ref<Set<RowKey>>;
|
|
3040
3042
|
mergedInderminateRowKeySetRef: Ref<Set<RowKey>>;
|
|
@@ -17,7 +17,7 @@ exports.dataTableProps = Object.assign(Object.assign({}, _mixins_1.useTheme.prop
|
|
|
17
17
|
}, rowClassName: [String, Function], rowProps: Function, rowKey: Function, summary: [Function], data: {
|
|
18
18
|
type: Array,
|
|
19
19
|
default: () => []
|
|
20
|
-
}, loading: Boolean, bordered: {
|
|
20
|
+
}, loading: Boolean, loadingSkeleton: Boolean, bordered: {
|
|
21
21
|
type: Boolean,
|
|
22
22
|
default: undefined
|
|
23
23
|
}, bottomBordered: {
|
package/lib/list/src/List.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
size: {
|
|
3
|
+
type: import("vue").PropType<import("./interface").Size>;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
2
6
|
showIcon: {
|
|
3
7
|
type: BooleanConstructor;
|
|
4
8
|
default: boolean;
|
|
@@ -48,18 +52,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
52
|
icon: import("./interface").RenderableProp;
|
|
49
53
|
avatar: import("./interface").RenderableProp;
|
|
50
54
|
theme: import("vue").PropType<import("../../_mixins").Theme<"List", {
|
|
51
|
-
padding: string;
|
|
52
55
|
iconSize: string;
|
|
53
56
|
iconSpace: string;
|
|
54
57
|
suffixSpace: string;
|
|
55
58
|
prefixSpace: string;
|
|
56
|
-
titleSize: string;
|
|
57
|
-
titleLineHeight: string;
|
|
58
|
-
subtitleSize: string;
|
|
59
|
-
subtitleLineHeight: string;
|
|
60
59
|
subtitleColor: string;
|
|
61
60
|
avatarSpace: string;
|
|
62
|
-
minHeight: string;
|
|
63
61
|
colorFocus: string;
|
|
64
62
|
pressedScale: string;
|
|
65
63
|
textColorDisabled: string;
|
|
@@ -73,22 +71,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
71
|
borderColor: string;
|
|
74
72
|
borderColorModal: string;
|
|
75
73
|
borderColorPopover: string;
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
borderRadiusLarge: string;
|
|
75
|
+
borderRadiusMedium: string;
|
|
76
|
+
borderRadiusSmall: string;
|
|
77
|
+
padding: string;
|
|
78
|
+
suffixSize: string;
|
|
78
79
|
}, any>>;
|
|
79
80
|
themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
80
|
-
padding: string;
|
|
81
81
|
iconSize: string;
|
|
82
82
|
iconSpace: string;
|
|
83
83
|
suffixSpace: string;
|
|
84
84
|
prefixSpace: string;
|
|
85
|
-
titleSize: string;
|
|
86
|
-
titleLineHeight: string;
|
|
87
|
-
subtitleSize: string;
|
|
88
|
-
subtitleLineHeight: string;
|
|
89
85
|
subtitleColor: string;
|
|
90
86
|
avatarSpace: string;
|
|
91
|
-
minHeight: string;
|
|
92
87
|
colorFocus: string;
|
|
93
88
|
pressedScale: string;
|
|
94
89
|
textColorDisabled: string;
|
|
@@ -102,22 +97,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
97
|
borderColor: string;
|
|
103
98
|
borderColorModal: string;
|
|
104
99
|
borderColorPopover: string;
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
borderRadiusLarge: string;
|
|
101
|
+
borderRadiusMedium: string;
|
|
102
|
+
borderRadiusSmall: string;
|
|
103
|
+
padding: string;
|
|
104
|
+
suffixSize: string;
|
|
107
105
|
}, any>>>;
|
|
108
106
|
builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
109
|
-
padding: string;
|
|
110
107
|
iconSize: string;
|
|
111
108
|
iconSpace: string;
|
|
112
109
|
suffixSpace: string;
|
|
113
110
|
prefixSpace: string;
|
|
114
|
-
titleSize: string;
|
|
115
|
-
titleLineHeight: string;
|
|
116
|
-
subtitleSize: string;
|
|
117
|
-
subtitleLineHeight: string;
|
|
118
111
|
subtitleColor: string;
|
|
119
112
|
avatarSpace: string;
|
|
120
|
-
minHeight: string;
|
|
121
113
|
colorFocus: string;
|
|
122
114
|
pressedScale: string;
|
|
123
115
|
textColorDisabled: string;
|
|
@@ -131,14 +123,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
123
|
borderColor: string;
|
|
132
124
|
borderColorModal: string;
|
|
133
125
|
borderColorPopover: string;
|
|
134
|
-
|
|
135
|
-
|
|
126
|
+
borderRadiusLarge: string;
|
|
127
|
+
borderRadiusMedium: string;
|
|
128
|
+
borderRadiusSmall: string;
|
|
129
|
+
padding: string;
|
|
130
|
+
suffixSize: string;
|
|
136
131
|
}, any>>>;
|
|
137
132
|
}, {
|
|
138
133
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
139
134
|
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
140
135
|
cssVars: import("vue").ComputedRef<{
|
|
141
|
-
'--u-font-size': string;
|
|
142
136
|
'--u-bezier': string;
|
|
143
137
|
'--u-text-color': string;
|
|
144
138
|
'--u-color': string;
|
|
@@ -151,25 +145,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
151
145
|
'--u-color-hover': string;
|
|
152
146
|
'--u-color-hover-modal': string;
|
|
153
147
|
'--u-color-hover-popover': string;
|
|
154
|
-
'--u-padding': string;
|
|
155
148
|
'--u-icon-size': string;
|
|
156
149
|
'--u-icon-space': string;
|
|
157
150
|
'--u-suffix-space': string;
|
|
158
151
|
'--u-prefix-space': string;
|
|
159
|
-
'--u-title-size': string;
|
|
160
|
-
'--u-title-line-height': string;
|
|
161
|
-
'--u-subtitle-size': string;
|
|
162
|
-
'--u-subtitle-line-height': string;
|
|
163
152
|
'--u-subtitle-color': string;
|
|
164
153
|
'--u-avatar-space': string;
|
|
165
|
-
'--u-min-height': string;
|
|
166
154
|
'--u-color-focus': string;
|
|
167
155
|
'--u-pressed-scale': string;
|
|
168
156
|
'--u-text-color-disabled': string;
|
|
157
|
+
'--u-padding': string;
|
|
158
|
+
'--u-suffix-size': string;
|
|
169
159
|
}> | undefined;
|
|
170
160
|
themeClass: import("vue").Ref<string> | undefined;
|
|
171
161
|
onRender: (() => void) | undefined;
|
|
172
162
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
163
|
+
size: {
|
|
164
|
+
type: import("vue").PropType<import("./interface").Size>;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
173
167
|
showIcon: {
|
|
174
168
|
type: BooleanConstructor;
|
|
175
169
|
default: boolean;
|
|
@@ -219,18 +213,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
219
213
|
icon: import("./interface").RenderableProp;
|
|
220
214
|
avatar: import("./interface").RenderableProp;
|
|
221
215
|
theme: import("vue").PropType<import("../../_mixins").Theme<"List", {
|
|
222
|
-
padding: string;
|
|
223
216
|
iconSize: string;
|
|
224
217
|
iconSpace: string;
|
|
225
218
|
suffixSpace: string;
|
|
226
219
|
prefixSpace: string;
|
|
227
|
-
titleSize: string;
|
|
228
|
-
titleLineHeight: string;
|
|
229
|
-
subtitleSize: string;
|
|
230
|
-
subtitleLineHeight: string;
|
|
231
220
|
subtitleColor: string;
|
|
232
221
|
avatarSpace: string;
|
|
233
|
-
minHeight: string;
|
|
234
222
|
colorFocus: string;
|
|
235
223
|
pressedScale: string;
|
|
236
224
|
textColorDisabled: string;
|
|
@@ -244,22 +232,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
244
232
|
borderColor: string;
|
|
245
233
|
borderColorModal: string;
|
|
246
234
|
borderColorPopover: string;
|
|
247
|
-
|
|
248
|
-
|
|
235
|
+
borderRadiusLarge: string;
|
|
236
|
+
borderRadiusMedium: string;
|
|
237
|
+
borderRadiusSmall: string;
|
|
238
|
+
padding: string;
|
|
239
|
+
suffixSize: string;
|
|
249
240
|
}, any>>;
|
|
250
241
|
themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
251
|
-
padding: string;
|
|
252
242
|
iconSize: string;
|
|
253
243
|
iconSpace: string;
|
|
254
244
|
suffixSpace: string;
|
|
255
245
|
prefixSpace: string;
|
|
256
|
-
titleSize: string;
|
|
257
|
-
titleLineHeight: string;
|
|
258
|
-
subtitleSize: string;
|
|
259
|
-
subtitleLineHeight: string;
|
|
260
246
|
subtitleColor: string;
|
|
261
247
|
avatarSpace: string;
|
|
262
|
-
minHeight: string;
|
|
263
248
|
colorFocus: string;
|
|
264
249
|
pressedScale: string;
|
|
265
250
|
textColorDisabled: string;
|
|
@@ -273,22 +258,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
273
258
|
borderColor: string;
|
|
274
259
|
borderColorModal: string;
|
|
275
260
|
borderColorPopover: string;
|
|
276
|
-
|
|
277
|
-
|
|
261
|
+
borderRadiusLarge: string;
|
|
262
|
+
borderRadiusMedium: string;
|
|
263
|
+
borderRadiusSmall: string;
|
|
264
|
+
padding: string;
|
|
265
|
+
suffixSize: string;
|
|
278
266
|
}, any>>>;
|
|
279
267
|
builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
280
|
-
padding: string;
|
|
281
268
|
iconSize: string;
|
|
282
269
|
iconSpace: string;
|
|
283
270
|
suffixSpace: string;
|
|
284
271
|
prefixSpace: string;
|
|
285
|
-
titleSize: string;
|
|
286
|
-
titleLineHeight: string;
|
|
287
|
-
subtitleSize: string;
|
|
288
|
-
subtitleLineHeight: string;
|
|
289
272
|
subtitleColor: string;
|
|
290
273
|
avatarSpace: string;
|
|
291
|
-
minHeight: string;
|
|
292
274
|
colorFocus: string;
|
|
293
275
|
pressedScale: string;
|
|
294
276
|
textColorDisabled: string;
|
|
@@ -302,8 +284,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
302
284
|
borderColor: string;
|
|
303
285
|
borderColorModal: string;
|
|
304
286
|
borderColorPopover: string;
|
|
305
|
-
|
|
306
|
-
|
|
287
|
+
borderRadiusLarge: string;
|
|
288
|
+
borderRadiusMedium: string;
|
|
289
|
+
borderRadiusSmall: string;
|
|
290
|
+
padding: string;
|
|
291
|
+
suffixSize: string;
|
|
307
292
|
}, any>>>;
|
|
308
293
|
}>>, {
|
|
309
294
|
onFocus: import("../../_utils").ArrayFocusHandler | undefined;
|
|
@@ -318,6 +303,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
318
303
|
bordered: boolean;
|
|
319
304
|
tag: string;
|
|
320
305
|
showIcon: boolean;
|
|
306
|
+
size: import("./interface").Size;
|
|
321
307
|
header: import("./interface").RenderableType;
|
|
322
308
|
loadingSkeleton: boolean;
|
|
323
309
|
rounded: boolean;
|