@uzum-tech/ui 1.5.1 → 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
|
@@ -2,7 +2,7 @@ import { commonLight } from '../../../styles';
|
|
|
2
2
|
export const self = (vars) => {
|
|
3
3
|
const { borderRadiusSmall, brandPrimary500, elementsQuaternary, textPrimary, brandQuaternary500, staticRed, staticOrange, staticGreen, elementsTertiary, fontBodyMedium, lineHeightBodyMedium, codeBorder } = vars;
|
|
4
4
|
return {
|
|
5
|
-
margin: '
|
|
5
|
+
margin: '0px',
|
|
6
6
|
aTextColor: brandPrimary500,
|
|
7
7
|
blockquoteTextColor: textPrimary,
|
|
8
8
|
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;
|
|
@@ -253,6 +253,7 @@ export default defineComponent({
|
|
|
253
253
|
mergedSortStateRef,
|
|
254
254
|
mergedFilterStateRef,
|
|
255
255
|
loadingRef: toRef(props, 'loading'),
|
|
256
|
+
loadingSkeletonRef: toRef(props, 'loadingSkeleton'),
|
|
256
257
|
rowClassNameRef: toRef(props, 'rowClassName'),
|
|
257
258
|
mergedCheckedRowKeySetRef,
|
|
258
259
|
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>;
|
|
@@ -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, 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
|
|
98
98
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
99
99
|
} = inject(dataTableInjectionKey);
|
|
100
100
|
const scrollbarInstRef = ref(null);
|
|
@@ -304,7 +304,7 @@ export default defineComponent({
|
|
|
304
304
|
componentId,
|
|
305
305
|
scrollbarInstRef,
|
|
306
306
|
virtualListRef,
|
|
307
|
-
emptyElRef, summary: summaryRef, mergedClsPrefix: mergedClsPrefixRef, mergedTheme: mergedThemeRef, scrollX: scrollXRef, cols: colsRef, loading: loadingRef, bodyShowHeaderOnly: bodyShowHeaderOnlyRef, shouldDisplaySomeTablePart: shouldDisplaySomeTablePartRef, empty: emptyRef, paginatedDataAndInfo: computed(() => {
|
|
307
|
+
emptyElRef, summary: summaryRef, mergedClsPrefix: mergedClsPrefixRef, mergedTheme: mergedThemeRef, scrollX: scrollXRef, cols: colsRef, loading: loadingRef, loadingSkeleton: loadingSkeletonRef, bodyShowHeaderOnly: bodyShowHeaderOnlyRef, shouldDisplaySomeTablePart: shouldDisplaySomeTablePartRef, empty: emptyRef, paginatedDataAndInfo: computed(() => {
|
|
308
308
|
const { value: striped } = stripedRef;
|
|
309
309
|
let hasChildren = false;
|
|
310
310
|
const data = paginatedDataRef.value.map(striped
|
|
@@ -591,7 +591,7 @@ export default defineComponent({
|
|
|
591
591
|
} },
|
|
592
592
|
h("colgroup", null, cols.map((col) => (h("col", { key: col.key, style: col.style })))),
|
|
593
593
|
this.showHeader ? h(TableHeader, { discrete: false }) : null,
|
|
594
|
-
this.
|
|
594
|
+
this.loadingSkeleton ? (h(BodySkeleton, null)) : !this.empty ? (h("tbody", { "data-u-id": componentId, class: `${mergedClsPrefix}-data-table-tbody` }, displayedData.map((rowInfo, displayedRowIndex) => {
|
|
595
595
|
return renderRow(rowInfo, displayedRowIndex, false);
|
|
596
596
|
}))) : null));
|
|
597
597
|
}
|
|
@@ -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>>;
|
|
@@ -14,7 +14,7 @@ export const dataTableProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
|
14
14
|
}, rowClassName: [String, Function], rowProps: Function, rowKey: Function, summary: [Function], data: {
|
|
15
15
|
type: Array,
|
|
16
16
|
default: () => []
|
|
17
|
-
}, loading: Boolean, bordered: {
|
|
17
|
+
}, loading: Boolean, loadingSkeleton: Boolean, bordered: {
|
|
18
18
|
type: Boolean,
|
|
19
19
|
default: undefined
|
|
20
20
|
}, bottomBordered: {
|
package/es/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;
|
package/es/list/src/List.js
CHANGED
|
@@ -3,6 +3,7 @@ import { useConfig, useTheme, useThemeClass, useRtl } from '../../_mixins';
|
|
|
3
3
|
import { listLight } from '../styles';
|
|
4
4
|
import style from './styles/index.cssr';
|
|
5
5
|
import { listProps, listInjectionKey, listItemPropsBoolean, listItemPropsRenderable } from './props';
|
|
6
|
+
import { createKey } from '../../_utils';
|
|
6
7
|
export default defineComponent({
|
|
7
8
|
name: 'List',
|
|
8
9
|
props: listProps,
|
|
@@ -18,11 +19,10 @@ export default defineComponent({
|
|
|
18
19
|
acc[item] = toRef(props, item);
|
|
19
20
|
return acc;
|
|
20
21
|
}, {});
|
|
21
|
-
provide(listInjectionKey, Object.assign(Object.assign(Object.assign({}, booleanInjectedRefs), renderableInjectedRefs), { tag: toRef(props, 'itemTag'), mergedClsPrefix: mergedClsPrefixRef, onClick: toRef(props, 'onClick'), onKeypress: toRef(props, 'onKeypress'), onPress: toRef(props, 'onPress'), onBlur: toRef(props, 'onBlur'), onFocus: toRef(props, 'onFocus'), bordered: toRef(props, 'bordered'), clickable: toRef(props, 'clickable'), showDivider: toRef(props, 'showDivider') }));
|
|
22
|
+
provide(listInjectionKey, Object.assign(Object.assign(Object.assign({}, booleanInjectedRefs), renderableInjectedRefs), { tag: toRef(props, 'itemTag'), mergedClsPrefix: mergedClsPrefixRef, onClick: toRef(props, 'onClick'), onKeypress: toRef(props, 'onKeypress'), onPress: toRef(props, 'onPress'), onBlur: toRef(props, 'onBlur'), onFocus: toRef(props, 'onFocus'), bordered: toRef(props, 'bordered'), clickable: toRef(props, 'clickable'), showDivider: toRef(props, 'showDivider'), size: toRef(props, 'size') }));
|
|
22
23
|
const cssVarsRef = computed(() => {
|
|
23
|
-
const { common: { cubicBezierEaseInOut }, self: {
|
|
24
|
+
const { common: { cubicBezierEaseInOut }, self: { textColor, color, colorModal, colorPopover, borderColor, borderColorModal, borderColorPopover, colorHover, colorHoverModal, colorHoverPopover, padding, iconSize, iconSpace, suffixSpace, prefixSpace, subtitleColor, avatarSpace, colorFocus, pressedScale, textColorDisabled, suffixSize, [createKey('borderRadius', props.size)]: borderRadius } } = themeRef.value;
|
|
24
25
|
return {
|
|
25
|
-
'--u-font-size': fontSize,
|
|
26
26
|
'--u-bezier': cubicBezierEaseInOut,
|
|
27
27
|
'--u-text-color': textColor,
|
|
28
28
|
'--u-color': color,
|
|
@@ -35,21 +35,17 @@ export default defineComponent({
|
|
|
35
35
|
'--u-color-hover': colorHover,
|
|
36
36
|
'--u-color-hover-modal': colorHoverModal,
|
|
37
37
|
'--u-color-hover-popover': colorHoverPopover,
|
|
38
|
-
'--u-padding': padding,
|
|
39
38
|
'--u-icon-size': iconSize,
|
|
40
39
|
'--u-icon-space': iconSpace,
|
|
41
40
|
'--u-suffix-space': suffixSpace,
|
|
42
41
|
'--u-prefix-space': prefixSpace,
|
|
43
|
-
'--u-title-size': titleSize,
|
|
44
|
-
'--u-title-line-height': titleLineHeight,
|
|
45
|
-
'--u-subtitle-size': subtitleSize,
|
|
46
|
-
'--u-subtitle-line-height': subtitleLineHeight,
|
|
47
42
|
'--u-subtitle-color': subtitleColor,
|
|
48
43
|
'--u-avatar-space': avatarSpace,
|
|
49
|
-
'--u-min-height': minHeight,
|
|
50
44
|
'--u-color-focus': colorFocus,
|
|
51
45
|
'--u-pressed-scale': pressedScale,
|
|
52
|
-
'--u-text-color-disabled': textColorDisabled
|
|
46
|
+
'--u-text-color-disabled': textColorDisabled,
|
|
47
|
+
'--u-padding': padding,
|
|
48
|
+
'--u-suffix-size': suffixSize
|
|
53
49
|
};
|
|
54
50
|
});
|
|
55
51
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -1,11 +1,45 @@
|
|
|
1
|
-
import { ComputedRef, Slot } from 'vue';
|
|
1
|
+
import { ComputedRef, Slot, Component } from 'vue';
|
|
2
2
|
import { ArrayEmptyHandler, ArrayKeyboardHandler, ArrayMouseHandler, KeyboardEventHandler, ArrayFocusHandler, MouseEventHandler } from '../../_utils';
|
|
3
|
-
import {
|
|
3
|
+
import { HeaderPropObject, DescriptionPropsObject } from './props';
|
|
4
|
+
import { Size } from './interface';
|
|
4
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
avatar: {
|
|
7
|
+
type: import("vue").PropType<import("../../avatar").AvatarProps & {
|
|
8
|
+
icon: Component;
|
|
9
|
+
hasBadge?: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
badge: {
|
|
14
|
+
type: import("vue").PropType<import("../../badge").BadgeProps>;
|
|
15
|
+
default: () => {};
|
|
16
|
+
};
|
|
5
17
|
tag: {
|
|
6
18
|
type: StringConstructor;
|
|
7
19
|
default: undefined;
|
|
8
20
|
};
|
|
21
|
+
prefixAlign: {
|
|
22
|
+
type: import("vue").PropType<"start" | "center" | "end">;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
suffixAlign: {
|
|
26
|
+
type: import("vue").PropType<"start" | "center" | "end">;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
loadingPrefix: BooleanConstructor;
|
|
30
|
+
loadingSuffix: BooleanConstructor;
|
|
31
|
+
header: {
|
|
32
|
+
type: import("vue").PropType<HeaderPropObject>;
|
|
33
|
+
};
|
|
34
|
+
description: {
|
|
35
|
+
type: import("vue").PropType<DescriptionPropsObject>;
|
|
36
|
+
};
|
|
37
|
+
headerSide: {
|
|
38
|
+
type: import("vue").PropType<HeaderPropObject>;
|
|
39
|
+
};
|
|
40
|
+
descriptionSide: {
|
|
41
|
+
type: import("vue").PropType<DescriptionPropsObject>;
|
|
42
|
+
};
|
|
9
43
|
onClick: {
|
|
10
44
|
type: import("vue").PropType<ArrayMouseHandler | undefined>;
|
|
11
45
|
default: undefined;
|
|
@@ -34,24 +68,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
68
|
disabled: import("./interface").BooleanProp;
|
|
35
69
|
loading: import("./interface").BooleanProp;
|
|
36
70
|
loadingSkeleton: import("./interface").BooleanProp;
|
|
37
|
-
header: import("./interface").RenderableProp;
|
|
38
|
-
description: import("./interface").RenderableProp;
|
|
39
|
-
headerSide: import("./interface").RenderableProp;
|
|
40
|
-
descriptionSide: import("./interface").RenderableProp;
|
|
41
71
|
icon: import("./interface").RenderableProp;
|
|
42
|
-
avatar: import("./interface").RenderableProp;
|
|
43
72
|
}, {
|
|
44
73
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
45
|
-
|
|
46
|
-
mergedDescriptionFirst: ComputedRef<boolean | undefined>;
|
|
47
|
-
mergedColumnsEven: ComputedRef<boolean | undefined>;
|
|
48
|
-
mergedRounded: ComputedRef<boolean | undefined>;
|
|
74
|
+
mergedHoverable: ComputedRef<boolean | undefined>;
|
|
49
75
|
mergedDisabled: ComputedRef<boolean | undefined>;
|
|
50
76
|
mergedLoading: ComputedRef<boolean | undefined>;
|
|
51
|
-
|
|
52
|
-
|
|
77
|
+
mergedShowIcon: ComputedRef<boolean | undefined>;
|
|
78
|
+
mergedRounded: ComputedRef<boolean | undefined>;
|
|
53
79
|
mergedTag: ComputedRef<string | undefined>;
|
|
54
|
-
|
|
80
|
+
resolveSlot: (name: string) => Slot | null;
|
|
55
81
|
hasFocus: ComputedRef<boolean | undefined>;
|
|
56
82
|
isPressed: import("vue").Ref<boolean>;
|
|
57
83
|
handleClick: MouseEventHandler;
|
|
@@ -60,11 +86,45 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
86
|
handleFocus: (e: FocusEvent) => void;
|
|
61
87
|
bordered: import("vue").Ref<boolean>;
|
|
62
88
|
showDivider: import("vue").Ref<boolean>;
|
|
89
|
+
size: import("vue").Ref<Size>;
|
|
63
90
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
|
+
avatar: {
|
|
92
|
+
type: import("vue").PropType<import("../../avatar").AvatarProps & {
|
|
93
|
+
icon: Component;
|
|
94
|
+
hasBadge?: boolean;
|
|
95
|
+
}>;
|
|
96
|
+
default: () => {};
|
|
97
|
+
};
|
|
98
|
+
badge: {
|
|
99
|
+
type: import("vue").PropType<import("../../badge").BadgeProps>;
|
|
100
|
+
default: () => {};
|
|
101
|
+
};
|
|
64
102
|
tag: {
|
|
65
103
|
type: StringConstructor;
|
|
66
104
|
default: undefined;
|
|
67
105
|
};
|
|
106
|
+
prefixAlign: {
|
|
107
|
+
type: import("vue").PropType<"start" | "center" | "end">;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
suffixAlign: {
|
|
111
|
+
type: import("vue").PropType<"start" | "center" | "end">;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
loadingPrefix: BooleanConstructor;
|
|
115
|
+
loadingSuffix: BooleanConstructor;
|
|
116
|
+
header: {
|
|
117
|
+
type: import("vue").PropType<HeaderPropObject>;
|
|
118
|
+
};
|
|
119
|
+
description: {
|
|
120
|
+
type: import("vue").PropType<DescriptionPropsObject>;
|
|
121
|
+
};
|
|
122
|
+
headerSide: {
|
|
123
|
+
type: import("vue").PropType<HeaderPropObject>;
|
|
124
|
+
};
|
|
125
|
+
descriptionSide: {
|
|
126
|
+
type: import("vue").PropType<DescriptionPropsObject>;
|
|
127
|
+
};
|
|
68
128
|
onClick: {
|
|
69
129
|
type: import("vue").PropType<ArrayMouseHandler | undefined>;
|
|
70
130
|
default: undefined;
|
|
@@ -93,32 +153,31 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
93
153
|
disabled: import("./interface").BooleanProp;
|
|
94
154
|
loading: import("./interface").BooleanProp;
|
|
95
155
|
loadingSkeleton: import("./interface").BooleanProp;
|
|
96
|
-
header: import("./interface").RenderableProp;
|
|
97
|
-
description: import("./interface").RenderableProp;
|
|
98
|
-
headerSide: import("./interface").RenderableProp;
|
|
99
|
-
descriptionSide: import("./interface").RenderableProp;
|
|
100
156
|
icon: import("./interface").RenderableProp;
|
|
101
|
-
avatar: import("./interface").RenderableProp;
|
|
102
157
|
}>>, {
|
|
103
158
|
onFocus: ArrayFocusHandler | undefined;
|
|
104
159
|
onBlur: ArrayFocusHandler | undefined;
|
|
105
160
|
onKeypress: ArrayKeyboardHandler | undefined;
|
|
106
161
|
onClick: ArrayMouseHandler | undefined;
|
|
107
|
-
icon: RenderableType;
|
|
108
|
-
avatar:
|
|
162
|
+
icon: import("./interface").RenderableType;
|
|
163
|
+
avatar: import("../../avatar").AvatarProps & {
|
|
164
|
+
icon: Component;
|
|
165
|
+
hasBadge?: boolean;
|
|
166
|
+
};
|
|
109
167
|
disabled: boolean;
|
|
110
168
|
loading: boolean;
|
|
111
|
-
description: RenderableType;
|
|
112
169
|
tag: string;
|
|
113
170
|
showIcon: boolean;
|
|
114
|
-
|
|
171
|
+
badge: import("../../badge").BadgeProps;
|
|
115
172
|
loadingSkeleton: boolean;
|
|
116
173
|
rounded: boolean;
|
|
117
174
|
hoverable: boolean;
|
|
118
175
|
descriptionFirst: boolean;
|
|
119
176
|
columnsEven: boolean;
|
|
120
|
-
headerSide: RenderableType;
|
|
121
|
-
descriptionSide: RenderableType;
|
|
122
177
|
onPress: ArrayEmptyHandler | undefined;
|
|
178
|
+
prefixAlign: "center" | "end" | "start";
|
|
179
|
+
suffixAlign: "center" | "end" | "start";
|
|
180
|
+
loadingPrefix: boolean;
|
|
181
|
+
loadingSuffix: boolean;
|
|
123
182
|
}, {}>;
|
|
124
183
|
export default _default;
|