@uzum-tech/ui 1.5.3 → 1.5.4
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 +119 -66
- package/dist/index.prod.js +2 -2
- package/es/collapse/src/Collapse.d.ts +47 -14
- package/es/collapse/src/Collapse.js +6 -3
- package/es/collapse/src/CollapseItem.js +3 -2
- package/es/collapse/src/styles/index.cssr.js +27 -7
- package/es/collapse/styles/light.d.ts +4 -1
- package/es/collapse/styles/light.js +6 -3
- package/es/data-table/src/DataTable.d.ts +2 -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 +5 -4
- package/es/data-table/src/interface.d.ts +3 -0
- package/es/data-table/src/interface.js +1 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/es/dynamic-tags/styles/light.d.ts +1 -0
- package/es/tag/src/Tag.d.ts +27 -13
- package/es/tag/src/Tag.js +7 -2
- package/es/tag/src/styles/index.cssr.js +13 -3
- package/es/tag/styles/light.d.ts +1 -0
- package/es/tag/styles/light.js +7 -6
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/collapse/src/Collapse.d.ts +47 -14
- package/lib/collapse/src/Collapse.js +6 -3
- package/lib/collapse/src/CollapseItem.js +3 -2
- package/lib/collapse/src/styles/index.cssr.js +27 -7
- package/lib/collapse/styles/light.d.ts +4 -1
- package/lib/collapse/styles/light.js +6 -3
- package/lib/data-table/src/DataTable.d.ts +2 -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 +5 -4
- package/lib/data-table/src/interface.d.ts +3 -0
- package/lib/data-table/src/interface.js +1 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/lib/dynamic-tags/styles/light.d.ts +1 -0
- package/lib/tag/src/Tag.d.ts +27 -13
- package/lib/tag/src/Tag.js +7 -2
- package/lib/tag/src/styles/index.cssr.js +13 -3
- package/lib/tag/styles/light.d.ts +1 -0
- package/lib/tag/styles/light.js +7 -6
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +13 -1
|
@@ -9,7 +9,7 @@ export declare const collapseProps: {
|
|
|
9
9
|
readonly expandedNames: PropType<string | number | Array<string | number> | null>;
|
|
10
10
|
readonly arrowPlacement: {
|
|
11
11
|
readonly type: PropType<ArrowPlacement>;
|
|
12
|
-
readonly default: "
|
|
12
|
+
readonly default: "right-edge";
|
|
13
13
|
};
|
|
14
14
|
readonly accordion: {
|
|
15
15
|
readonly type: BooleanConstructor;
|
|
@@ -40,8 +40,11 @@ export declare const collapseProps: {
|
|
|
40
40
|
arrowSize: string;
|
|
41
41
|
arrowColor: string;
|
|
42
42
|
arrowColorDisabled: string;
|
|
43
|
-
itemMargin: string;
|
|
44
43
|
titlePadding: string;
|
|
44
|
+
backgroundColor: string;
|
|
45
|
+
borderRadius: string;
|
|
46
|
+
padding: string;
|
|
47
|
+
boxSizing: string;
|
|
45
48
|
}, any>>;
|
|
46
49
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
47
50
|
titleFontSize: string;
|
|
@@ -56,8 +59,11 @@ export declare const collapseProps: {
|
|
|
56
59
|
arrowSize: string;
|
|
57
60
|
arrowColor: string;
|
|
58
61
|
arrowColorDisabled: string;
|
|
59
|
-
itemMargin: string;
|
|
60
62
|
titlePadding: string;
|
|
63
|
+
backgroundColor: string;
|
|
64
|
+
borderRadius: string;
|
|
65
|
+
padding: string;
|
|
66
|
+
boxSizing: string;
|
|
61
67
|
}, any>>>;
|
|
62
68
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
63
69
|
titleFontSize: string;
|
|
@@ -72,8 +78,11 @@ export declare const collapseProps: {
|
|
|
72
78
|
arrowSize: string;
|
|
73
79
|
arrowColor: string;
|
|
74
80
|
arrowColorDisabled: string;
|
|
75
|
-
itemMargin: string;
|
|
76
81
|
titlePadding: string;
|
|
82
|
+
backgroundColor: string;
|
|
83
|
+
borderRadius: string;
|
|
84
|
+
padding: string;
|
|
85
|
+
boxSizing: string;
|
|
77
86
|
}, any>>>;
|
|
78
87
|
};
|
|
79
88
|
export type CollapseProps = ExtractPublicPropTypes<typeof collapseProps>;
|
|
@@ -93,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
93
102
|
readonly expandedNames: PropType<string | number | Array<string | number> | null>;
|
|
94
103
|
readonly arrowPlacement: {
|
|
95
104
|
readonly type: PropType<ArrowPlacement>;
|
|
96
|
-
readonly default: "
|
|
105
|
+
readonly default: "right-edge";
|
|
97
106
|
};
|
|
98
107
|
readonly accordion: {
|
|
99
108
|
readonly type: BooleanConstructor;
|
|
@@ -124,8 +133,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
133
|
arrowSize: string;
|
|
125
134
|
arrowColor: string;
|
|
126
135
|
arrowColorDisabled: string;
|
|
127
|
-
itemMargin: string;
|
|
128
136
|
titlePadding: string;
|
|
137
|
+
backgroundColor: string;
|
|
138
|
+
borderRadius: string;
|
|
139
|
+
padding: string;
|
|
140
|
+
boxSizing: string;
|
|
129
141
|
}, any>>;
|
|
130
142
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
131
143
|
titleFontSize: string;
|
|
@@ -140,8 +152,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
140
152
|
arrowSize: string;
|
|
141
153
|
arrowColor: string;
|
|
142
154
|
arrowColorDisabled: string;
|
|
143
|
-
itemMargin: string;
|
|
144
155
|
titlePadding: string;
|
|
156
|
+
backgroundColor: string;
|
|
157
|
+
borderRadius: string;
|
|
158
|
+
padding: string;
|
|
159
|
+
boxSizing: string;
|
|
145
160
|
}, any>>>;
|
|
146
161
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
147
162
|
titleFontSize: string;
|
|
@@ -156,8 +171,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
156
171
|
arrowSize: string;
|
|
157
172
|
arrowColor: string;
|
|
158
173
|
arrowColorDisabled: string;
|
|
159
|
-
itemMargin: string;
|
|
160
174
|
titlePadding: string;
|
|
175
|
+
backgroundColor: string;
|
|
176
|
+
borderRadius: string;
|
|
177
|
+
padding: string;
|
|
178
|
+
boxSizing: string;
|
|
161
179
|
}, any>>>;
|
|
162
180
|
}, {
|
|
163
181
|
rtlEnabled: Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
@@ -176,8 +194,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
176
194
|
arrowSize: string;
|
|
177
195
|
arrowColor: string;
|
|
178
196
|
arrowColorDisabled: string;
|
|
179
|
-
itemMargin: string;
|
|
180
197
|
titlePadding: string;
|
|
198
|
+
backgroundColor: string;
|
|
199
|
+
borderRadius: string;
|
|
200
|
+
padding: string;
|
|
201
|
+
boxSizing: string;
|
|
181
202
|
};
|
|
182
203
|
peers: any;
|
|
183
204
|
peerOverrides: {
|
|
@@ -200,7 +221,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
200
221
|
'--u-arrow-size': string;
|
|
201
222
|
'--u-arrow-color': string;
|
|
202
223
|
'--u-arrow-color-disabled': string;
|
|
203
|
-
'--u-
|
|
224
|
+
'--u-background-color': string;
|
|
225
|
+
'--u-border-radius': string;
|
|
226
|
+
'--u-padding': string;
|
|
227
|
+
'--u-box-sizing': string;
|
|
204
228
|
}> | undefined;
|
|
205
229
|
themeClass: Ref<string> | undefined;
|
|
206
230
|
onRender: (() => void) | undefined;
|
|
@@ -212,7 +236,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
212
236
|
readonly expandedNames: PropType<string | number | Array<string | number> | null>;
|
|
213
237
|
readonly arrowPlacement: {
|
|
214
238
|
readonly type: PropType<ArrowPlacement>;
|
|
215
|
-
readonly default: "
|
|
239
|
+
readonly default: "right-edge";
|
|
216
240
|
};
|
|
217
241
|
readonly accordion: {
|
|
218
242
|
readonly type: BooleanConstructor;
|
|
@@ -243,8 +267,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
243
267
|
arrowSize: string;
|
|
244
268
|
arrowColor: string;
|
|
245
269
|
arrowColorDisabled: string;
|
|
246
|
-
itemMargin: string;
|
|
247
270
|
titlePadding: string;
|
|
271
|
+
backgroundColor: string;
|
|
272
|
+
borderRadius: string;
|
|
273
|
+
padding: string;
|
|
274
|
+
boxSizing: string;
|
|
248
275
|
}, any>>;
|
|
249
276
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
250
277
|
titleFontSize: string;
|
|
@@ -259,8 +286,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
259
286
|
arrowSize: string;
|
|
260
287
|
arrowColor: string;
|
|
261
288
|
arrowColorDisabled: string;
|
|
262
|
-
itemMargin: string;
|
|
263
289
|
titlePadding: string;
|
|
290
|
+
backgroundColor: string;
|
|
291
|
+
borderRadius: string;
|
|
292
|
+
padding: string;
|
|
293
|
+
boxSizing: string;
|
|
264
294
|
}, any>>>;
|
|
265
295
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
266
296
|
titleFontSize: string;
|
|
@@ -275,8 +305,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
275
305
|
arrowSize: string;
|
|
276
306
|
arrowColor: string;
|
|
277
307
|
arrowColorDisabled: string;
|
|
278
|
-
itemMargin: string;
|
|
279
308
|
titlePadding: string;
|
|
309
|
+
backgroundColor: string;
|
|
310
|
+
borderRadius: string;
|
|
311
|
+
padding: string;
|
|
312
|
+
boxSizing: string;
|
|
280
313
|
}, any>>>;
|
|
281
314
|
}>>, {
|
|
282
315
|
readonly displayDirective: "show" | "if";
|
|
@@ -10,7 +10,7 @@ export const collapseProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
|
10
10
|
default: null
|
|
11
11
|
}, expandedNames: [Array, String], arrowPlacement: {
|
|
12
12
|
type: String,
|
|
13
|
-
default: '
|
|
13
|
+
default: 'right-edge'
|
|
14
14
|
}, accordion: {
|
|
15
15
|
type: Boolean,
|
|
16
16
|
default: false
|
|
@@ -101,7 +101,7 @@ export default defineComponent({
|
|
|
101
101
|
});
|
|
102
102
|
const rtlEnabledRef = useRtl('Collapse', mergedRtlRef, mergedClsPrefixRef);
|
|
103
103
|
const cssVarsRef = computed(() => {
|
|
104
|
-
const { common: { cubicBezierEaseInOut }, self: { titleFontWeight, dividerColor, titlePadding, titleTextColor, titleTextColorDisabled, textColor, arrowColor, fontSize, titleFontSize, arrowColorDisabled,
|
|
104
|
+
const { common: { cubicBezierEaseInOut }, self: { titleFontWeight, dividerColor, titlePadding, titleTextColor, titleTextColorDisabled, textColor, arrowColor, fontSize, titleFontSize, arrowColorDisabled, lineHeight, titleLineHeight, arrowSize, backgroundColor, borderRadius, padding, boxSizing } } = themeRef.value;
|
|
105
105
|
return {
|
|
106
106
|
'--u-font-size': fontSize,
|
|
107
107
|
'--u-bezier': cubicBezierEaseInOut,
|
|
@@ -117,7 +117,10 @@ export default defineComponent({
|
|
|
117
117
|
'--u-arrow-size': arrowSize,
|
|
118
118
|
'--u-arrow-color': arrowColor,
|
|
119
119
|
'--u-arrow-color-disabled': arrowColorDisabled,
|
|
120
|
-
'--u-
|
|
120
|
+
'--u-background-color': backgroundColor,
|
|
121
|
+
'--u-border-radius': borderRadius,
|
|
122
|
+
'--u-padding': padding,
|
|
123
|
+
'--u-box-sizing': boxSizing
|
|
121
124
|
};
|
|
122
125
|
});
|
|
123
126
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -61,6 +61,7 @@ export default defineComponent({
|
|
|
61
61
|
return collapseProps.arrowPlacement;
|
|
62
62
|
}),
|
|
63
63
|
handleClick(e) {
|
|
64
|
+
e.stopPropagation();
|
|
64
65
|
if (UCollapse && !props.disabled) {
|
|
65
66
|
UCollapse.toggleItem(collapsedRef.value, mergedNameRef.value, e);
|
|
66
67
|
}
|
|
@@ -85,12 +86,12 @@ export default defineComponent({
|
|
|
85
86
|
`${mergedClsPrefix}-collapse-item--${arrowPlacement}-arrow-placement`,
|
|
86
87
|
disabled && `${mergedClsPrefix}-collapse-item--disabled`,
|
|
87
88
|
!collapsed && `${mergedClsPrefix}-collapse-item--active`
|
|
88
|
-
] },
|
|
89
|
+
], onClick: this.handleClick },
|
|
89
90
|
h("div", { class: [
|
|
90
91
|
`${mergedClsPrefix}-collapse-item__header`,
|
|
91
92
|
!collapsed && `${mergedClsPrefix}-collapse-item__header--active`
|
|
92
93
|
] },
|
|
93
|
-
h("div", { class: `${mergedClsPrefix}-collapse-item__header-main
|
|
94
|
+
h("div", { class: `${mergedClsPrefix}-collapse-item__header-main` },
|
|
94
95
|
arrowPlacement !== 'right-edge' && arrowNode,
|
|
95
96
|
headerNode),
|
|
96
97
|
resolveWrappedSlotWithProps(headerExtraSlot, { collapsed }, (children) => (h("div", { class: `${mergedClsPrefix}-collapse-item__header-extra`, onClick: this.handleClick }, children))),
|
|
@@ -12,15 +12,24 @@ import { fadeInHeightExpandTransition } from '../../../_styles/transitions/fade-
|
|
|
12
12
|
// --u-arrow-color
|
|
13
13
|
// --u-arrow-color-disabled
|
|
14
14
|
// --u-title-text-color-disabled
|
|
15
|
-
// --u-
|
|
16
|
-
|
|
15
|
+
// --u-background-color
|
|
16
|
+
// --u-border-radius
|
|
17
|
+
// --u-padding
|
|
18
|
+
// --u-box-sizing
|
|
19
|
+
export default cB('collapse', `
|
|
20
|
+
width: 100%;
|
|
21
|
+
background-color: var(--u-background-color);
|
|
22
|
+
border-radius: var(--u-border-radius);
|
|
23
|
+
box-sizing: var(--u-box-sizing);
|
|
24
|
+
`, [cB('collapse-item', `
|
|
17
25
|
font-size: var(--u-font-size);
|
|
18
26
|
line-height: var(--u-line-height);
|
|
19
27
|
color: var(--u-text-color);
|
|
20
28
|
transition:
|
|
21
29
|
color .3s var(--u-bezier),
|
|
22
30
|
border-color .3s var(--u-bezier);
|
|
23
|
-
|
|
31
|
+
padding: var(--u-padding);
|
|
32
|
+
cursor: pointer;
|
|
24
33
|
`, [cM('disabled', [cE('header', 'cursor: not-allowed;', [cE('header-main', `
|
|
25
34
|
color: var(--u-title-text-color-disabled);
|
|
26
35
|
`), cB('collapse-item-arrow', `
|
|
@@ -28,9 +37,22 @@ export default cB('collapse', 'width: 100%;', [cB('collapse-item', `
|
|
|
28
37
|
`)])]), cB('collapse-item', 'margin-left: 32px;'), c('&:first-child', 'margin-top: 0;'), c('&:first-child >', [cE('header', 'padding-top: 0;')]), cM('left-arrow-placement', [cE('header', [cB('collapse-item-arrow', 'margin-right: 4px;')])]), cM('right-arrow-placement', [cE('header', [cB('collapse-item-arrow', `
|
|
29
38
|
margin-left: 4px;
|
|
30
39
|
order: 1;
|
|
31
|
-
`)])]), cM('right-edge-arrow-placement', [cE('header', [cB('collapse-item-arrow',
|
|
40
|
+
`)])]), cM('right-edge-arrow-placement', [cE('header', [cB('collapse-item-arrow', `
|
|
41
|
+
margin-left: auto;
|
|
42
|
+
display: flex;
|
|
43
|
+
width: 28px;
|
|
44
|
+
height: 28px;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
align-items: center;
|
|
47
|
+
border-radius: 100px;
|
|
48
|
+
background: #F3F4F6;
|
|
49
|
+
`, [cB('base-icon', `
|
|
50
|
+
transform: scaleY(1) rotate(90deg);
|
|
51
|
+
transition:
|
|
52
|
+
transform .15s var(--u-bezier)
|
|
53
|
+
`)])])]), cE('content-wrapper', [cE('content-inner', 'padding-top: 16px;'), fadeInHeightExpandTransition({
|
|
32
54
|
duration: '0.15s'
|
|
33
|
-
})]), cM('active', [cE('header', [cM('active', [cB('collapse-item-arrow', 'transform: rotate(90deg)
|
|
55
|
+
})]), cM('active', [cE('header', [cM('active', [cB('collapse-item-arrow', [cB('base-icon', 'transform: scaleY(-1) rotate(90deg)')])])])]), cE('header', `
|
|
34
56
|
font-size: var(--u-title-font-size);
|
|
35
57
|
line-height: var(--u-title-line-height);
|
|
36
58
|
display: flex;
|
|
@@ -38,9 +60,7 @@ export default cB('collapse', 'width: 100%;', [cB('collapse-item', `
|
|
|
38
60
|
align-items: center;
|
|
39
61
|
transition: color .3s var(--u-bezier);
|
|
40
62
|
position: relative;
|
|
41
|
-
padding: var(--u-title-padding);
|
|
42
63
|
color: var(--u-title-text-color);
|
|
43
|
-
cursor: pointer;
|
|
44
64
|
`, [cE('header-main', `
|
|
45
65
|
display: flex;
|
|
46
66
|
flex-wrap: nowrap;
|
|
@@ -13,8 +13,11 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
13
13
|
arrowSize: string;
|
|
14
14
|
arrowColor: string;
|
|
15
15
|
arrowColorDisabled: string;
|
|
16
|
-
itemMargin: string;
|
|
17
16
|
titlePadding: string;
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
borderRadius: string;
|
|
19
|
+
padding: string;
|
|
20
|
+
boxSizing: string;
|
|
18
21
|
};
|
|
19
22
|
export type CollapseThemeVars = ReturnType<typeof self>;
|
|
20
23
|
declare const collapseLight: Theme<'Collapse', CollapseThemeVars>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { commonLight } from '../../_styles/common';
|
|
2
2
|
export const self = (vars) => {
|
|
3
|
-
const { fontWeight, fontBodyLarge, lineHeightBodyLarge, elementsQuaternary, textPrimary, textSecondary, fontBodyMedium, lineHeightBodyMedium, iconSmall } = vars;
|
|
3
|
+
const { fontWeight, fontBodyLarge, lineHeightBodyLarge, elementsQuaternary, textPrimary, textSecondary, fontBodyMedium, lineHeightBodyMedium, iconSmall, containerPrimary } = vars;
|
|
4
4
|
return {
|
|
5
5
|
titleFontSize: fontBodyLarge,
|
|
6
6
|
titleLineHeight: lineHeightBodyLarge,
|
|
@@ -14,8 +14,11 @@ export const self = (vars) => {
|
|
|
14
14
|
arrowSize: iconSmall,
|
|
15
15
|
arrowColor: textPrimary,
|
|
16
16
|
arrowColorDisabled: textSecondary,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
titlePadding: '16px 0 0 0',
|
|
18
|
+
backgroundColor: containerPrimary,
|
|
19
|
+
borderRadius: '20px',
|
|
20
|
+
padding: '24px',
|
|
21
|
+
boxSizing: 'border-box'
|
|
19
22
|
};
|
|
20
23
|
};
|
|
21
24
|
const collapseLight = {
|
|
@@ -91,6 +91,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
91
|
readonly type: import("vue").PropType<import("../../_internal").BaseLoadingExposedProps>;
|
|
92
92
|
readonly default: {};
|
|
93
93
|
};
|
|
94
|
+
readonly emptyProps: import("vue").PropType<Partial<import("../..").EmptyProps>>;
|
|
94
95
|
readonly onLoad: import("vue").PropType<import("./interface").DataTableOnLoad>;
|
|
95
96
|
readonly 'onUpdate:page': import("vue").PropType<import("../../pagination").PaginationProps["onUpdate:page"]>;
|
|
96
97
|
readonly onUpdatePage: import("vue").PropType<import("../../pagination").PaginationProps["onUpdate:page"]>;
|
|
@@ -4368,6 +4369,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4368
4369
|
readonly type: import("vue").PropType<import("../../_internal").BaseLoadingExposedProps>;
|
|
4369
4370
|
readonly default: {};
|
|
4370
4371
|
};
|
|
4372
|
+
readonly emptyProps: import("vue").PropType<Partial<import("../..").EmptyProps>>;
|
|
4371
4373
|
readonly onLoad: import("vue").PropType<import("./interface").DataTableOnLoad>;
|
|
4372
4374
|
readonly 'onUpdate:page': import("vue").PropType<import("../../pagination").PaginationProps["onUpdate:page"]>;
|
|
4373
4375
|
readonly onUpdatePage: import("vue").PropType<import("../../pagination").PaginationProps["onUpdate:page"]>;
|
|
@@ -1430,6 +1430,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1430
1430
|
}) => void;
|
|
1431
1431
|
handleUpdateExpanded: (key: RowKey, tmNode: TmNode | null) => void;
|
|
1432
1432
|
renderCell: import("vue").Ref<((value: any, rowData: object, column: import("../interface").TableBaseColumn) => import("vue").VNodeChild) | undefined>;
|
|
1433
|
+
emptyPropsRef: import("vue").Ref<Partial<import("../../../empty").EmptyProps> | undefined>;
|
|
1433
1434
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "edit"[], "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1434
1435
|
onEdit: PropType<(value: string, row: string, key: string) => void>;
|
|
1435
1436
|
onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
@@ -94,7 +94,7 @@ export default defineComponent({
|
|
|
94
94
|
bodyStyle: Object
|
|
95
95
|
},
|
|
96
96
|
setup(props) {
|
|
97
|
-
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
|
|
97
|
+
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, emptyPropsRef
|
|
98
98
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
99
99
|
} = inject(dataTableInjectionKey);
|
|
100
100
|
const scrollbarInstRef = ref(null);
|
|
@@ -342,10 +342,11 @@ export default defineComponent({
|
|
|
342
342
|
handleCheckboxUpdateChecked,
|
|
343
343
|
handleRadioUpdateChecked,
|
|
344
344
|
handleUpdateExpanded,
|
|
345
|
-
renderCell
|
|
345
|
+
renderCell,
|
|
346
|
+
emptyPropsRef }, exposedMethods);
|
|
346
347
|
},
|
|
347
348
|
render() {
|
|
348
|
-
const { mergedTheme, scrollX, mergedClsPrefix, virtualScroll, maxHeight, mergedTableLayout, flexHeight, loadingKeySet, onResize, setHeaderScrollLeft } = this;
|
|
349
|
+
const { mergedTheme, scrollX, mergedClsPrefix, virtualScroll, maxHeight, mergedTableLayout, flexHeight, loadingKeySet, onResize, setHeaderScrollLeft, emptyPropsRef } = this;
|
|
349
350
|
const scrollable = scrollX !== undefined || maxHeight !== undefined || flexHeight;
|
|
350
351
|
// For a basic table with auto layout whose content may overflow we will
|
|
351
352
|
// make it scrollable, which differs from browser's native behavior.
|
|
@@ -621,7 +622,7 @@ export default defineComponent({
|
|
|
621
622
|
`${mergedClsPrefix}-data-table-empty`,
|
|
622
623
|
this.loading && `${mergedClsPrefix}-data-table-empty--hide`
|
|
623
624
|
], style: this.bodyStyle, ref: "emptyElRef" }, resolveSlot(this.dataTableSlots.empty, () => [
|
|
624
|
-
h(UEmpty, { size: "large", theme: this.mergedTheme.peers.Empty, themeOverrides: this.mergedTheme.peerOverrides.Empty })
|
|
625
|
+
h(UEmpty, Object.assign({ size: "large", theme: this.mergedTheme.peers.Empty, themeOverrides: this.mergedTheme.peerOverrides.Empty }, emptyPropsRef))
|
|
625
626
|
])));
|
|
626
627
|
if (this.shouldDisplaySomeTablePart) {
|
|
627
628
|
return (h(Fragment, null,
|
|
@@ -9,6 +9,7 @@ import type { PaginationProps } from '../../pagination';
|
|
|
9
9
|
import type { DataTableTheme } from '../styles';
|
|
10
10
|
import type { RowItem, ColItem } from './use-group-header';
|
|
11
11
|
import type { BaseLoadingExposedProps } from '../../_internal';
|
|
12
|
+
import type { EmptyProps } from '../../empty';
|
|
12
13
|
export declare const dataTableProps: {
|
|
13
14
|
readonly onUnstableColumnResize: PropType<(resizedWidth: number, limitedWidth: number, column: TableBaseColumn, getColumnWidth: (key: ColumnKey) => number | undefined) => void>;
|
|
14
15
|
readonly pagination: {
|
|
@@ -101,6 +102,7 @@ export declare const dataTableProps: {
|
|
|
101
102
|
readonly type: PropType<BaseLoadingExposedProps>;
|
|
102
103
|
readonly default: {};
|
|
103
104
|
};
|
|
105
|
+
readonly emptyProps: PropType<Partial<EmptyProps>>;
|
|
104
106
|
readonly onLoad: PropType<DataTableOnLoad>;
|
|
105
107
|
readonly 'onUpdate:page': PropType<PaginationProps["onUpdate:page"]>;
|
|
106
108
|
readonly onUpdatePage: PropType<PaginationProps["onUpdate:page"]>;
|
|
@@ -3083,6 +3085,7 @@ export interface DataTableInjection {
|
|
|
3083
3085
|
syncScrollState: (deltaX?: number, deltaY?: number) => void;
|
|
3084
3086
|
setHeaderScrollLeft: (scrollLeft: number) => void;
|
|
3085
3087
|
renderCell: Ref<undefined | ((value: any, rowData: object, column: TableBaseColumn) => VNodeChild)>;
|
|
3088
|
+
emptyPropsRef: Ref<Partial<EmptyProps> | undefined>;
|
|
3086
3089
|
handleEdit: (value: any, row: any, key: string) => void;
|
|
3087
3090
|
}
|
|
3088
3091
|
export declare const dataTableInjectionKey: import("vue").InjectionKey<DataTableInjection>;
|
|
@@ -50,7 +50,7 @@ export const dataTableProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
|
50
50
|
}, paginationBehaviorOnFilter: {
|
|
51
51
|
type: String,
|
|
52
52
|
default: 'current'
|
|
53
|
-
}, scrollbarProps: Object, renderCell: Function, renderExpandIcon: Function, spinProps: { type: Object, default: {} }, onLoad: Function, 'onUpdate:page': [Function, Array], onUpdatePage: [Function, Array], 'onUpdate:pageSize': [Function, Array], onUpdatePageSize: [Function, Array], 'onUpdate:sorter': [Function, Array], onUpdateSorter: [Function, Array], 'onUpdate:filters': [Function, Array], onUpdateFilters: [Function, Array], 'onUpdate:checkedRowKeys': [Function, Array], onUpdateCheckedRowKeys: [Function, Array], 'onUpdate:expandedRowKeys': [Function, Array], onUpdateExpandedRowKeys: [Function, Array], onScroll: Function,
|
|
53
|
+
}, scrollbarProps: Object, renderCell: Function, renderExpandIcon: Function, spinProps: { type: Object, default: {} }, emptyProps: Object, onLoad: Function, 'onUpdate:page': [Function, Array], onUpdatePage: [Function, Array], 'onUpdate:pageSize': [Function, Array], onUpdatePageSize: [Function, Array], 'onUpdate:sorter': [Function, Array], onUpdateSorter: [Function, Array], 'onUpdate:filters': [Function, Array], onUpdateFilters: [Function, Array], 'onUpdate:checkedRowKeys': [Function, Array], onUpdateCheckedRowKeys: [Function, Array], 'onUpdate:expandedRowKeys': [Function, Array], onUpdateExpandedRowKeys: [Function, Array], onScroll: Function,
|
|
54
54
|
// deprecated
|
|
55
55
|
onPageChange: [Function, Array], onPageSizeChange: [Function, Array], onSorterChange: [Function, Array], onFiltersChange: [Function, Array], onCheckedRowKeysChange: [Function, Array] });
|
|
56
56
|
export const dataTableInjectionKey = createInjectionKey('u-data-table');
|
|
@@ -349,6 +349,7 @@ export declare const dynamicTagsProps: {
|
|
|
349
349
|
textColorPressedCheckable: string;
|
|
350
350
|
textColorChecked: string;
|
|
351
351
|
colorCheckable: string;
|
|
352
|
+
colorCheckableOutline: string;
|
|
352
353
|
colorHoverCheckable: string;
|
|
353
354
|
colorPressedCheckable: string;
|
|
354
355
|
colorChecked: string;
|
|
@@ -736,6 +737,7 @@ export declare const dynamicTagsProps: {
|
|
|
736
737
|
textColorPressedCheckable: string;
|
|
737
738
|
textColorChecked: string;
|
|
738
739
|
colorCheckable: string;
|
|
740
|
+
colorCheckableOutline: string;
|
|
739
741
|
colorHoverCheckable: string;
|
|
740
742
|
colorPressedCheckable: string;
|
|
741
743
|
colorChecked: string;
|
|
@@ -1123,6 +1125,7 @@ export declare const dynamicTagsProps: {
|
|
|
1123
1125
|
textColorPressedCheckable: string;
|
|
1124
1126
|
textColorChecked: string;
|
|
1125
1127
|
colorCheckable: string;
|
|
1128
|
+
colorCheckableOutline: string;
|
|
1126
1129
|
colorHoverCheckable: string;
|
|
1127
1130
|
colorPressedCheckable: string;
|
|
1128
1131
|
colorChecked: string;
|
|
@@ -1548,6 +1551,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1548
1551
|
textColorPressedCheckable: string;
|
|
1549
1552
|
textColorChecked: string;
|
|
1550
1553
|
colorCheckable: string;
|
|
1554
|
+
colorCheckableOutline: string;
|
|
1551
1555
|
colorHoverCheckable: string;
|
|
1552
1556
|
colorPressedCheckable: string;
|
|
1553
1557
|
colorChecked: string;
|
|
@@ -1935,6 +1939,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1935
1939
|
textColorPressedCheckable: string;
|
|
1936
1940
|
textColorChecked: string;
|
|
1937
1941
|
colorCheckable: string;
|
|
1942
|
+
colorCheckableOutline: string;
|
|
1938
1943
|
colorHoverCheckable: string;
|
|
1939
1944
|
colorPressedCheckable: string;
|
|
1940
1945
|
colorChecked: string;
|
|
@@ -2322,6 +2327,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2322
2327
|
textColorPressedCheckable: string;
|
|
2323
2328
|
textColorChecked: string;
|
|
2324
2329
|
colorCheckable: string;
|
|
2330
|
+
colorCheckableOutline: string;
|
|
2325
2331
|
colorHoverCheckable: string;
|
|
2326
2332
|
colorPressedCheckable: string;
|
|
2327
2333
|
colorChecked: string;
|
|
@@ -2742,6 +2748,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2742
2748
|
textColorPressedCheckable: string;
|
|
2743
2749
|
textColorChecked: string;
|
|
2744
2750
|
colorCheckable: string;
|
|
2751
|
+
colorCheckableOutline: string;
|
|
2745
2752
|
colorHoverCheckable: string;
|
|
2746
2753
|
colorPressedCheckable: string;
|
|
2747
2754
|
colorChecked: string;
|
|
@@ -3194,6 +3201,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3194
3201
|
textColorPressedCheckable: string;
|
|
3195
3202
|
textColorChecked: string;
|
|
3196
3203
|
colorCheckable: string;
|
|
3204
|
+
colorCheckableOutline: string;
|
|
3197
3205
|
colorHoverCheckable: string;
|
|
3198
3206
|
colorPressedCheckable: string;
|
|
3199
3207
|
colorChecked: string;
|
|
@@ -3581,6 +3589,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3581
3589
|
textColorPressedCheckable: string;
|
|
3582
3590
|
textColorChecked: string;
|
|
3583
3591
|
colorCheckable: string;
|
|
3592
|
+
colorCheckableOutline: string;
|
|
3584
3593
|
colorHoverCheckable: string;
|
|
3585
3594
|
colorPressedCheckable: string;
|
|
3586
3595
|
colorChecked: string;
|
|
@@ -3968,6 +3977,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3968
3977
|
textColorPressedCheckable: string;
|
|
3969
3978
|
textColorChecked: string;
|
|
3970
3979
|
colorCheckable: string;
|
|
3980
|
+
colorCheckableOutline: string;
|
|
3971
3981
|
colorHoverCheckable: string;
|
|
3972
3982
|
colorPressedCheckable: string;
|
|
3973
3983
|
colorChecked: string;
|
|
@@ -309,6 +309,7 @@ declare const dynamicTagsLight: import("../../_mixins").Theme<"DynamicTags", {
|
|
|
309
309
|
textColorPressedCheckable: string;
|
|
310
310
|
textColorChecked: string;
|
|
311
311
|
colorCheckable: string;
|
|
312
|
+
colorCheckableOutline: string;
|
|
312
313
|
colorHoverCheckable: string;
|
|
313
314
|
colorPressedCheckable: string;
|
|
314
315
|
colorChecked: string;
|