@uzum-tech/ui 1.5.2 → 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/README.md +0 -1
- package/dist/index.js +1147 -628
- package/dist/index.prod.js +3 -3
- package/es/_internal/checkbox/src/use-checkbox.js +3 -3
- package/es/_internal/radio/src/use-radio.js +3 -3
- package/es/_mixins/use-form-item.d.ts +4 -4
- package/es/_mixins/use-form-item.js +4 -4
- package/es/_styles/common/dark.js +1 -1
- package/es/_styles/common/light.d.ts +3 -0
- package/es/_styles/common/light.js +1 -1
- package/es/_utils/composable/composables.d.ts +11 -0
- package/es/_utils/composable/composables.js +40 -0
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/_utils/uzum/index.d.ts +1 -0
- package/es/_utils/uzum/index.js +1 -0
- package/es/_utils/uzum/value.d.ts +1 -0
- package/es/_utils/uzum/value.js +9 -0
- package/es/_utils/vue/resolve-slot.d.ts +1 -1
- package/es/alert/styles/light.js +6 -6
- package/es/auto-complete/src/AutoComplete.js +10 -10
- package/es/avatar/src/Avatar.d.ts +6 -0
- package/es/avatar/src/Avatar.js +9 -3
- package/es/card-list/src/CardList.js +1 -1
- package/es/card-list/src/CardListItem.d.ts +13 -0
- package/es/card-list/src/CardListItem.js +11 -4
- package/es/card-list/src/interface.d.ts +1 -0
- package/es/card-list/src/styles/index.cssr.js +6 -6
- package/es/card-list/styles/light.js +2 -2
- package/es/cascader/src/Cascader.js +7 -7
- package/es/checkbox/src/CheckboxGroup.js +9 -9
- 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/color-picker/src/ColorPicker.js +6 -6
- 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 +7 -0
- package/es/data-table/src/DataTable.js +21 -10
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +8 -6
- package/es/data-table/src/TableParts/Cell.js +85 -23
- package/es/data-table/src/interface.d.ts +14 -6
- package/es/data-table/src/interface.js +1 -1
- package/es/data-table/src/styles/index.cssr.js +5 -3
- package/es/data-table/src/use-mask.d.ts +3 -6
- package/es/data-table/src/utils.d.ts +2 -1
- package/es/data-table/src/utils.js +13 -0
- package/es/date-picker/src/DatePicker.js +7 -7
- package/es/dialog/src/DialogProvider.d.ts +6 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/es/dynamic-tags/src/DynamicTags.js +3 -3
- package/es/dynamic-tags/styles/light.d.ts +1 -0
- package/es/input/src/Input.js +8 -8
- package/es/input-number/src/InputNumber.js +7 -7
- package/es/input-otp/index.d.ts +3 -0
- package/es/input-otp/index.js +1 -0
- package/es/input-otp/src/InputOtp.d.ts +871 -0
- package/es/input-otp/src/InputOtp.js +250 -0
- package/es/input-otp/src/public-types.d.ts +25 -0
- package/es/input-otp/src/public-types.js +1 -0
- package/es/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/index.cssr.js +20 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.js +5 -0
- package/es/input-otp/styles/dark.d.ts +3 -0
- package/es/input-otp/styles/dark.js +12 -0
- package/es/input-otp/styles/index.d.ts +4 -0
- package/es/input-otp/styles/index.js +3 -0
- package/es/input-otp/styles/light.d.ts +83 -0
- package/es/input-otp/styles/light.js +22 -0
- package/es/input-otp/styles/rtl.d.ts +2 -0
- package/es/input-otp/styles/rtl.js +5 -0
- package/es/legacy-transfer/src/Transfer.js +3 -3
- package/es/list/src/ListItem.js +8 -4
- package/es/mention/src/Mention.js +7 -7
- package/es/radio/src/RadioGroup.js +5 -5
- package/es/rate/src/Rate.js +3 -3
- package/es/select/src/Select.js +7 -7
- package/es/slider/src/Slider.js +3 -3
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/switch/src/Switch.js +7 -7
- 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/theme-editor/src/ThemeEditor.d.ts +3 -0
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/time-picker/src/TimePicker.js +7 -7
- package/es/transfer/src/Transfer.js +3 -3
- package/es/tree-select/src/TreeSelect.js +5 -5
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/checkbox/src/use-checkbox.js +3 -3
- package/lib/_internal/radio/src/use-radio.js +3 -3
- package/lib/_mixins/use-form-item.d.ts +4 -4
- package/lib/_mixins/use-form-item.js +4 -4
- package/lib/_styles/common/dark.js +1 -1
- package/lib/_styles/common/light.d.ts +3 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/_utils/composable/composables.d.ts +11 -0
- package/lib/_utils/composable/composables.js +47 -0
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/_utils/uzum/index.d.ts +1 -0
- package/lib/_utils/uzum/index.js +3 -1
- package/lib/_utils/uzum/value.d.ts +1 -0
- package/lib/_utils/uzum/value.js +12 -0
- package/lib/_utils/vue/resolve-slot.d.ts +1 -1
- package/lib/alert/styles/light.js +6 -6
- package/lib/auto-complete/src/AutoComplete.js +10 -10
- package/lib/avatar/src/Avatar.d.ts +6 -0
- package/lib/avatar/src/Avatar.js +9 -3
- package/lib/card-list/src/CardList.js +1 -1
- package/lib/card-list/src/CardListItem.d.ts +13 -0
- package/lib/card-list/src/CardListItem.js +11 -4
- package/lib/card-list/src/interface.d.ts +1 -0
- package/lib/card-list/src/styles/index.cssr.js +5 -5
- package/lib/card-list/styles/light.js +2 -2
- package/lib/cascader/src/Cascader.js +7 -7
- package/lib/checkbox/src/CheckboxGroup.js +9 -9
- 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/color-picker/src/ColorPicker.js +6 -6
- 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 +7 -0
- package/lib/data-table/src/DataTable.js +21 -10
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +8 -6
- package/lib/data-table/src/TableParts/Cell.js +84 -22
- package/lib/data-table/src/interface.d.ts +14 -6
- package/lib/data-table/src/interface.js +1 -1
- package/lib/data-table/src/styles/index.cssr.js +5 -3
- package/lib/data-table/src/use-mask.d.ts +3 -6
- package/lib/data-table/src/utils.d.ts +2 -1
- package/lib/data-table/src/utils.js +14 -1
- package/lib/date-picker/src/DatePicker.js +7 -7
- package/lib/dialog/src/DialogProvider.d.ts +6 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/lib/dynamic-tags/src/DynamicTags.js +3 -3
- package/lib/dynamic-tags/styles/light.d.ts +1 -0
- package/lib/input/src/Input.js +8 -8
- package/lib/input-number/src/InputNumber.js +7 -7
- package/lib/input-otp/index.d.ts +3 -0
- package/lib/input-otp/index.js +9 -0
- package/lib/input-otp/src/InputOtp.d.ts +871 -0
- package/lib/input-otp/src/InputOtp.js +256 -0
- package/lib/input-otp/src/public-types.d.ts +25 -0
- package/lib/input-otp/src/public-types.js +2 -0
- package/lib/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/index.cssr.js +25 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.js +10 -0
- package/lib/input-otp/styles/dark.d.ts +3 -0
- package/lib/input-otp/styles/dark.js +14 -0
- package/lib/input-otp/styles/index.d.ts +4 -0
- package/lib/input-otp/styles/index.js +12 -0
- package/lib/input-otp/styles/light.d.ts +83 -0
- package/lib/input-otp/styles/light.js +25 -0
- package/lib/input-otp/styles/rtl.d.ts +2 -0
- package/lib/input-otp/styles/rtl.js +11 -0
- package/lib/legacy-transfer/src/Transfer.js +3 -3
- package/lib/list/src/ListItem.js +8 -4
- package/lib/mention/src/Mention.js +7 -7
- package/lib/radio/src/RadioGroup.js +5 -5
- package/lib/rate/src/Rate.js +3 -3
- package/lib/select/src/Select.js +7 -7
- package/lib/slider/src/Slider.js +3 -3
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +106 -103
- package/lib/switch/src/Switch.js +7 -7
- 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/theme-editor/src/ThemeEditor.d.ts +3 -0
- package/lib/themes/dark.js +2 -0
- package/lib/themes/light.js +2 -0
- package/lib/time-picker/src/TimePicker.js +7 -7
- package/lib/transfer/src/Transfer.js +3 -3
- package/lib/tree-select/src/TreeSelect.js +5 -5
- 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 +131 -4
|
@@ -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";
|
|
@@ -16,7 +16,7 @@ exports.collapseProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props
|
|
|
16
16
|
default: null
|
|
17
17
|
}, expandedNames: [Array, String], arrowPlacement: {
|
|
18
18
|
type: String,
|
|
19
|
-
default: '
|
|
19
|
+
default: 'right-edge'
|
|
20
20
|
}, accordion: {
|
|
21
21
|
type: Boolean,
|
|
22
22
|
default: false
|
|
@@ -107,7 +107,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
107
107
|
});
|
|
108
108
|
const rtlEnabledRef = (0, use_rtl_1.useRtl)('Collapse', mergedRtlRef, mergedClsPrefixRef);
|
|
109
109
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
110
|
-
const { common: { cubicBezierEaseInOut }, self: { titleFontWeight, dividerColor, titlePadding, titleTextColor, titleTextColorDisabled, textColor, arrowColor, fontSize, titleFontSize, arrowColorDisabled,
|
|
110
|
+
const { common: { cubicBezierEaseInOut }, self: { titleFontWeight, dividerColor, titlePadding, titleTextColor, titleTextColorDisabled, textColor, arrowColor, fontSize, titleFontSize, arrowColorDisabled, lineHeight, titleLineHeight, arrowSize, backgroundColor, borderRadius, padding, boxSizing } } = themeRef.value;
|
|
111
111
|
return {
|
|
112
112
|
'--u-font-size': fontSize,
|
|
113
113
|
'--u-bezier': cubicBezierEaseInOut,
|
|
@@ -123,7 +123,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
123
123
|
'--u-arrow-size': arrowSize,
|
|
124
124
|
'--u-arrow-color': arrowColor,
|
|
125
125
|
'--u-arrow-color-disabled': arrowColorDisabled,
|
|
126
|
-
'--u-
|
|
126
|
+
'--u-background-color': backgroundColor,
|
|
127
|
+
'--u-border-radius': borderRadius,
|
|
128
|
+
'--u-padding': padding,
|
|
129
|
+
'--u-box-sizing': boxSizing
|
|
127
130
|
};
|
|
128
131
|
});
|
|
129
132
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -67,6 +67,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
67
67
|
return collapseProps.arrowPlacement;
|
|
68
68
|
}),
|
|
69
69
|
handleClick(e) {
|
|
70
|
+
e.stopPropagation();
|
|
70
71
|
if (UCollapse && !props.disabled) {
|
|
71
72
|
UCollapse.toggleItem(collapsedRef.value, mergedNameRef.value, e);
|
|
72
73
|
}
|
|
@@ -91,12 +92,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
91
92
|
`${mergedClsPrefix}-collapse-item--${arrowPlacement}-arrow-placement`,
|
|
92
93
|
disabled && `${mergedClsPrefix}-collapse-item--disabled`,
|
|
93
94
|
!collapsed && `${mergedClsPrefix}-collapse-item--active`
|
|
94
|
-
] },
|
|
95
|
+
], onClick: this.handleClick },
|
|
95
96
|
(0, vue_1.h)("div", { class: [
|
|
96
97
|
`${mergedClsPrefix}-collapse-item__header`,
|
|
97
98
|
!collapsed && `${mergedClsPrefix}-collapse-item__header--active`
|
|
98
99
|
] },
|
|
99
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-collapse-item__header-main
|
|
100
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-collapse-item__header-main` },
|
|
100
101
|
arrowPlacement !== 'right-edge' && arrowNode,
|
|
101
102
|
headerNode),
|
|
102
103
|
(0, _utils_1.resolveWrappedSlotWithProps)(headerExtraSlot, { collapsed }, (children) => ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-collapse-item__header-extra`, onClick: this.handleClick }, children))),
|
|
@@ -17,15 +17,24 @@ const fade_in_height_expand_cssr_1 = require("../../../_styles/transitions/fade-
|
|
|
17
17
|
// --u-arrow-color
|
|
18
18
|
// --u-arrow-color-disabled
|
|
19
19
|
// --u-title-text-color-disabled
|
|
20
|
-
// --u-
|
|
21
|
-
|
|
20
|
+
// --u-background-color
|
|
21
|
+
// --u-border-radius
|
|
22
|
+
// --u-padding
|
|
23
|
+
// --u-box-sizing
|
|
24
|
+
exports.default = (0, cssr_1.cB)('collapse', `
|
|
25
|
+
width: 100%;
|
|
26
|
+
background-color: var(--u-background-color);
|
|
27
|
+
border-radius: var(--u-border-radius);
|
|
28
|
+
box-sizing: var(--u-box-sizing);
|
|
29
|
+
`, [(0, cssr_1.cB)('collapse-item', `
|
|
22
30
|
font-size: var(--u-font-size);
|
|
23
31
|
line-height: var(--u-line-height);
|
|
24
32
|
color: var(--u-text-color);
|
|
25
33
|
transition:
|
|
26
34
|
color .3s var(--u-bezier),
|
|
27
35
|
border-color .3s var(--u-bezier);
|
|
28
|
-
|
|
36
|
+
padding: var(--u-padding);
|
|
37
|
+
cursor: pointer;
|
|
29
38
|
`, [(0, cssr_1.cM)('disabled', [(0, cssr_1.cE)('header', 'cursor: not-allowed;', [(0, cssr_1.cE)('header-main', `
|
|
30
39
|
color: var(--u-title-text-color-disabled);
|
|
31
40
|
`), (0, cssr_1.cB)('collapse-item-arrow', `
|
|
@@ -33,9 +42,22 @@ exports.default = (0, cssr_1.cB)('collapse', 'width: 100%;', [(0, cssr_1.cB)('co
|
|
|
33
42
|
`)])]), (0, cssr_1.cB)('collapse-item', 'margin-left: 32px;'), (0, cssr_1.c)('&:first-child', 'margin-top: 0;'), (0, cssr_1.c)('&:first-child >', [(0, cssr_1.cE)('header', 'padding-top: 0;')]), (0, cssr_1.cM)('left-arrow-placement', [(0, cssr_1.cE)('header', [(0, cssr_1.cB)('collapse-item-arrow', 'margin-right: 4px;')])]), (0, cssr_1.cM)('right-arrow-placement', [(0, cssr_1.cE)('header', [(0, cssr_1.cB)('collapse-item-arrow', `
|
|
34
43
|
margin-left: 4px;
|
|
35
44
|
order: 1;
|
|
36
|
-
`)])]), (0, cssr_1.cM)('right-edge-arrow-placement', [(0, cssr_1.cE)('header', [(0, cssr_1.cB)('collapse-item-arrow',
|
|
45
|
+
`)])]), (0, cssr_1.cM)('right-edge-arrow-placement', [(0, cssr_1.cE)('header', [(0, cssr_1.cB)('collapse-item-arrow', `
|
|
46
|
+
margin-left: auto;
|
|
47
|
+
display: flex;
|
|
48
|
+
width: 28px;
|
|
49
|
+
height: 28px;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
align-items: center;
|
|
52
|
+
border-radius: 100px;
|
|
53
|
+
background: #F3F4F6;
|
|
54
|
+
`, [(0, cssr_1.cB)('base-icon', `
|
|
55
|
+
transform: scaleY(1) rotate(90deg);
|
|
56
|
+
transition:
|
|
57
|
+
transform .15s var(--u-bezier)
|
|
58
|
+
`)])])]), (0, cssr_1.cE)('content-wrapper', [(0, cssr_1.cE)('content-inner', 'padding-top: 16px;'), (0, fade_in_height_expand_cssr_1.fadeInHeightExpandTransition)({
|
|
37
59
|
duration: '0.15s'
|
|
38
|
-
})]), (0, cssr_1.cM)('active', [(0, cssr_1.cE)('header', [(0, cssr_1.cM)('active', [(0, cssr_1.cB)('collapse-item-arrow',
|
|
60
|
+
})]), (0, cssr_1.cM)('active', [(0, cssr_1.cE)('header', [(0, cssr_1.cM)('active', [(0, cssr_1.cB)('collapse-item-arrow', [(0, cssr_1.cB)('base-icon', 'transform: scaleY(-1) rotate(90deg)')])])])]), (0, cssr_1.cE)('header', `
|
|
39
61
|
font-size: var(--u-title-font-size);
|
|
40
62
|
line-height: var(--u-title-line-height);
|
|
41
63
|
display: flex;
|
|
@@ -43,9 +65,7 @@ exports.default = (0, cssr_1.cB)('collapse', 'width: 100%;', [(0, cssr_1.cB)('co
|
|
|
43
65
|
align-items: center;
|
|
44
66
|
transition: color .3s var(--u-bezier);
|
|
45
67
|
position: relative;
|
|
46
|
-
padding: var(--u-title-padding);
|
|
47
68
|
color: var(--u-title-text-color);
|
|
48
|
-
cursor: pointer;
|
|
49
69
|
`, [(0, cssr_1.cE)('header-main', `
|
|
50
70
|
display: flex;
|
|
51
71
|
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>;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.self = void 0;
|
|
4
4
|
const common_1 = require("../../_styles/common");
|
|
5
5
|
const self = (vars) => {
|
|
6
|
-
const { fontWeight, fontBodyLarge, lineHeightBodyLarge, elementsQuaternary, textPrimary, textSecondary, fontBodyMedium, lineHeightBodyMedium, iconSmall } = vars;
|
|
6
|
+
const { fontWeight, fontBodyLarge, lineHeightBodyLarge, elementsQuaternary, textPrimary, textSecondary, fontBodyMedium, lineHeightBodyMedium, iconSmall, containerPrimary } = vars;
|
|
7
7
|
return {
|
|
8
8
|
titleFontSize: fontBodyLarge,
|
|
9
9
|
titleLineHeight: lineHeightBodyLarge,
|
|
@@ -17,8 +17,11 @@ const self = (vars) => {
|
|
|
17
17
|
arrowSize: iconSmall,
|
|
18
18
|
arrowColor: textPrimary,
|
|
19
19
|
arrowColorDisabled: textSecondary,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
titlePadding: '16px 0 0 0',
|
|
21
|
+
backgroundColor: containerPrimary,
|
|
22
|
+
borderRadius: '20px',
|
|
23
|
+
padding: '24px',
|
|
24
|
+
boxSizing: 'border-box'
|
|
22
25
|
};
|
|
23
26
|
};
|
|
24
27
|
exports.self = self;
|
|
@@ -261,14 +261,14 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
261
261
|
else {
|
|
262
262
|
upcomingValue = null;
|
|
263
263
|
}
|
|
264
|
-
const {
|
|
264
|
+
const { triggerFormChange, triggerFormInput } = formItem;
|
|
265
265
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue } = props;
|
|
266
266
|
if (onUpdateValue)
|
|
267
267
|
(0, _utils_1.call)(onUpdateValue, value);
|
|
268
268
|
if (_onUpdateValue)
|
|
269
269
|
(0, _utils_1.call)(_onUpdateValue, value);
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
triggerFormChange();
|
|
271
|
+
triggerFormInput();
|
|
272
272
|
uncontrolledValueRef.value = value;
|
|
273
273
|
}
|
|
274
274
|
function handleInputUpdateValue(value) {
|
|
@@ -279,7 +279,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
279
279
|
const { value } = mergedValueRef;
|
|
280
280
|
// no value & only hue changes will complete with no value
|
|
281
281
|
if (value) {
|
|
282
|
-
const {
|
|
282
|
+
const { triggerFormChange, triggerFormInput } = formItem;
|
|
283
283
|
const { onComplete } = props;
|
|
284
284
|
if (onComplete) {
|
|
285
285
|
;
|
|
@@ -291,8 +291,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
291
291
|
undoStack.splice(valueIndex + 1, undoStack.length, value);
|
|
292
292
|
valueIndexRef.value = valueIndex + 1;
|
|
293
293
|
}
|
|
294
|
-
|
|
295
|
-
|
|
294
|
+
triggerFormChange();
|
|
295
|
+
triggerFormInput();
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
function undo() {
|
package/lib/components.d.ts
CHANGED
package/lib/components.js
CHANGED
|
@@ -60,6 +60,7 @@ __exportStar(require("./icon-wrapper"), exports);
|
|
|
60
60
|
__exportStar(require("./image"), exports);
|
|
61
61
|
__exportStar(require("./input"), exports);
|
|
62
62
|
__exportStar(require("./input-number"), exports);
|
|
63
|
+
__exportStar(require("./input-otp"), exports);
|
|
63
64
|
__exportStar(require("./layout"), exports);
|
|
64
65
|
__exportStar(require("./legacy-grid"), exports);
|
|
65
66
|
__exportStar(require("./legacy-transfer"), exports);
|
|
@@ -37,6 +37,7 @@ import type { IconWrapperTheme } from '../../icon-wrapper/styles';
|
|
|
37
37
|
import type { ImageTheme } from '../../image/styles';
|
|
38
38
|
import type { InputTheme } from '../../input/styles';
|
|
39
39
|
import type { InputNumberTheme } from '../../input-number/styles';
|
|
40
|
+
import type { InputOtpTheme } from '../../input-otp/styles';
|
|
40
41
|
import type { LayoutTheme } from '../../layout/styles';
|
|
41
42
|
import type { LegacyTransferTheme } from '../../legacy-transfer/styles';
|
|
42
43
|
import type { ListTheme } from '../../list/styles';
|
|
@@ -190,6 +191,7 @@ export interface GlobalThemeWithoutCommon {
|
|
|
190
191
|
InternalSelectMenu?: InternalSelectMenuTheme;
|
|
191
192
|
InternalSelection?: InternalSelectionTheme;
|
|
192
193
|
AccountOption?: AccountOptionTheme;
|
|
194
|
+
InputOtp?: InputOtpTheme;
|
|
193
195
|
}
|
|
194
196
|
export interface GlobalComponentConfig {
|
|
195
197
|
Pagination?: {
|
|
@@ -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"]>;
|
|
@@ -2872,6 +2873,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2872
2873
|
page: (page: number) => void;
|
|
2873
2874
|
sort: (columnKey: import("./interface").ColumnKey, order: import("./interface").SortOrder) => void;
|
|
2874
2875
|
scrollTo: import("../../scrollbar/src/Scrollbar").ScrollTo;
|
|
2876
|
+
getData: () => {
|
|
2877
|
+
data: import("./interface").InternalRowData[];
|
|
2878
|
+
totalRows: import("./interface").InternalRowData | null;
|
|
2879
|
+
};
|
|
2880
|
+
getTotalRowData: () => import("./interface").InternalRowData | null;
|
|
2875
2881
|
clearFilter: () => void;
|
|
2876
2882
|
mainTableInstRef: import("vue").Ref<{
|
|
2877
2883
|
getHeaderElement: () => HTMLElement | null;
|
|
@@ -4363,6 +4369,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4363
4369
|
readonly type: import("vue").PropType<import("../../_internal").BaseLoadingExposedProps>;
|
|
4364
4370
|
readonly default: {};
|
|
4365
4371
|
};
|
|
4372
|
+
readonly emptyProps: import("vue").PropType<Partial<import("../..").EmptyProps>>;
|
|
4366
4373
|
readonly onLoad: import("vue").PropType<import("./interface").DataTableOnLoad>;
|
|
4367
4374
|
readonly 'onUpdate:page': import("vue").PropType<import("../../pagination").PaginationProps["onUpdate:page"]>;
|
|
4368
4375
|
readonly onUpdatePage: import("vue").PropType<import("../../pagination").PaginationProps["onUpdate:page"]>;
|
|
@@ -18,7 +18,6 @@ const use_resizable_1 = require("./use-resizable");
|
|
|
18
18
|
const interface_1 = require("./interface");
|
|
19
19
|
const use_group_header_1 = require("./use-group-header");
|
|
20
20
|
const use_expand_1 = require("./use-expand");
|
|
21
|
-
const use_mask_1 = require("./use-mask");
|
|
22
21
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
23
22
|
exports.default = (0, vue_1.defineComponent)({
|
|
24
23
|
name: 'DataTable',
|
|
@@ -98,7 +97,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
98
97
|
return;
|
|
99
98
|
if (!('totalRow' in col) || !col.totalRow)
|
|
100
99
|
return;
|
|
101
|
-
const { key, totalRow, render
|
|
100
|
+
const { key, totalRow, render } = col;
|
|
102
101
|
if (!totalRow)
|
|
103
102
|
return;
|
|
104
103
|
if (totalRow.type === 'default') {
|
|
@@ -111,18 +110,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
111
110
|
return Number(renderedValue) || 0;
|
|
112
111
|
});
|
|
113
112
|
const sum = values.reduce((sum, val) => sum + val, 0);
|
|
114
|
-
|
|
115
|
-
? (0, use_mask_1.processMaskedValue)(String(sum), mask)
|
|
116
|
-
: sum;
|
|
117
|
-
summaryRow[key] = { value: finalValue };
|
|
113
|
+
summaryRow[key] = { value: sum };
|
|
118
114
|
}
|
|
119
115
|
else {
|
|
120
116
|
const values = pageData.map((row) => Number(row[key]) || 0);
|
|
121
117
|
const sum = values.reduce((sum, val) => sum + val, 0);
|
|
122
|
-
|
|
123
|
-
? (0, use_mask_1.processMaskedValue)(String(sum), mask)
|
|
124
|
-
: sum;
|
|
125
|
-
summaryRow[key] = { value: finalValue };
|
|
118
|
+
summaryRow[key] = { value: sum };
|
|
126
119
|
}
|
|
127
120
|
}
|
|
128
121
|
else {
|
|
@@ -312,6 +305,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
312
305
|
handleTableBodyScroll,
|
|
313
306
|
setHeaderScrollLeft,
|
|
314
307
|
renderCell: (0, vue_1.toRef)(props, 'renderCell'),
|
|
308
|
+
emptyPropsRef: (0, vue_1.toRef)(props, 'emptyProps'),
|
|
315
309
|
handleEdit
|
|
316
310
|
});
|
|
317
311
|
const exposedMethods = {
|
|
@@ -325,6 +319,23 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
325
319
|
scrollTo: (arg0, arg1) => {
|
|
326
320
|
var _a;
|
|
327
321
|
(_a = mainTableInstRef.value) === null || _a === void 0 ? void 0 : _a.scrollTo(arg0, arg1);
|
|
322
|
+
},
|
|
323
|
+
getData: () => {
|
|
324
|
+
const originalData = props.data || [];
|
|
325
|
+
const totalRowData = autoSummaryRef.value && rawPaginatedDataRef.value
|
|
326
|
+
? autoSummaryRef.value(rawPaginatedDataRef.value)
|
|
327
|
+
: null;
|
|
328
|
+
return {
|
|
329
|
+
data: originalData,
|
|
330
|
+
totalRows: totalRowData
|
|
331
|
+
};
|
|
332
|
+
},
|
|
333
|
+
getTotalRowData: () => {
|
|
334
|
+
if (autoSummaryRef.value && rawPaginatedDataRef.value) {
|
|
335
|
+
const summaryResult = autoSummaryRef.value(rawPaginatedDataRef.value);
|
|
336
|
+
return summaryResult;
|
|
337
|
+
}
|
|
338
|
+
return null;
|
|
328
339
|
}
|
|
329
340
|
};
|
|
330
341
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
@@ -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>;
|
|
@@ -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, loadingSkeletonRef, 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, emptyPropsRef
|
|
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);
|
|
@@ -347,10 +347,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
347
347
|
handleCheckboxUpdateChecked,
|
|
348
348
|
handleRadioUpdateChecked,
|
|
349
349
|
handleUpdateExpanded,
|
|
350
|
-
renderCell
|
|
350
|
+
renderCell,
|
|
351
|
+
emptyPropsRef }, exposedMethods);
|
|
351
352
|
},
|
|
352
353
|
render() {
|
|
353
|
-
const { mergedTheme, scrollX, mergedClsPrefix, virtualScroll, maxHeight, mergedTableLayout, flexHeight, loadingKeySet, onResize, setHeaderScrollLeft } = this;
|
|
354
|
+
const { mergedTheme, scrollX, mergedClsPrefix, virtualScroll, maxHeight, mergedTableLayout, flexHeight, loadingKeySet, onResize, setHeaderScrollLeft, emptyPropsRef } = this;
|
|
354
355
|
const scrollable = scrollX !== undefined || maxHeight !== undefined || flexHeight;
|
|
355
356
|
// For a basic table with auto layout whose content may overflow we will
|
|
356
357
|
// make it scrollable, which differs from browser's native behavior.
|
|
@@ -565,6 +566,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
565
566
|
`${mergedClsPrefix}-data-table-td--last-row`,
|
|
566
567
|
'editable' in column &&
|
|
567
568
|
column.editable &&
|
|
569
|
+
!isSummary &&
|
|
568
570
|
`${mergedClsPrefix}-data-table-td--editable`
|
|
569
571
|
] }),
|
|
570
572
|
column.fixed && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-data-table-td__shadow-holder` })),
|
|
@@ -601,7 +603,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
601
603
|
}))) : null));
|
|
602
604
|
}
|
|
603
605
|
else {
|
|
604
|
-
if (this.loading) {
|
|
606
|
+
if (this.loading || this.loadingSkeleton) {
|
|
605
607
|
return ((0, vue_1.h)("table", { class: `${mergedClsPrefix}-data-table-table`, onMouseleave: handleMouseleaveTable, style: {
|
|
606
608
|
tableLayout: this.mergedTableLayout
|
|
607
609
|
} },
|
|
@@ -620,12 +622,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
620
622
|
}
|
|
621
623
|
}
|
|
622
624
|
}));
|
|
623
|
-
if (this.empty) {
|
|
625
|
+
if (this.empty && !this.loadingSkeleton) {
|
|
624
626
|
const createEmptyNode = () => ((0, vue_1.h)("div", { class: [
|
|
625
627
|
`${mergedClsPrefix}-data-table-empty`,
|
|
626
628
|
this.loading && `${mergedClsPrefix}-data-table-empty--hide`
|
|
627
629
|
], style: this.bodyStyle, ref: "emptyElRef" }, (0, _utils_1.resolveSlot)(this.dataTableSlots.empty, () => [
|
|
628
|
-
(0, vue_1.h)(empty_1.UEmpty, { size: "large", theme: this.mergedTheme.peers.Empty, themeOverrides: this.mergedTheme.peerOverrides.Empty })
|
|
630
|
+
(0, vue_1.h)(empty_1.UEmpty, Object.assign({ size: "large", theme: this.mergedTheme.peers.Empty, themeOverrides: this.mergedTheme.peerOverrides.Empty }, emptyPropsRef))
|
|
629
631
|
])));
|
|
630
632
|
if (this.shouldDisplaySomeTablePart) {
|
|
631
633
|
return ((0, vue_1.h)(vue_1.Fragment, null,
|