@uzum-tech/ui 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +312 -314
- package/dist/index.prod.js +3 -3
- package/es/_internal/typography/src/styles/text.cssr.js +0 -1
- package/es/_internal/typography/styles/light.js +1 -1
- package/es/data-table/src/DataTable.d.ts +3 -0
- package/es/data-table/src/DataTable.js +1 -0
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +3 -3
- package/es/data-table/src/interface.d.ts +2 -0
- package/es/data-table/src/interface.js +1 -1
- package/es/list/src/List.d.ts +41 -55
- package/es/list/src/List.js +6 -10
- package/es/list/src/ListItem.d.ts +84 -25
- package/es/list/src/ListItem.js +116 -98
- package/es/list/src/interface.d.ts +1 -0
- package/es/list/src/props.d.ts +70 -31
- package/es/list/src/props.js +25 -5
- package/es/list/src/styles/index.cssr.js +32 -90
- package/es/list/styles/light.d.ts +5 -8
- package/es/list/styles/light.js +6 -9
- package/es/tag/src/styles/index.cssr.js +5 -1
- package/es/tag/styles/light.js +2 -2
- package/es/upload/src/UploadFile.js +4 -3
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/typography/src/styles/text.cssr.js +0 -1
- package/lib/_internal/typography/styles/light.js +1 -1
- package/lib/data-table/src/DataTable.d.ts +3 -0
- package/lib/data-table/src/DataTable.js +1 -0
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +3 -3
- package/lib/data-table/src/interface.d.ts +2 -0
- package/lib/data-table/src/interface.js +1 -1
- package/lib/list/src/List.d.ts +41 -55
- package/lib/list/src/List.js +6 -10
- package/lib/list/src/ListItem.d.ts +84 -25
- package/lib/list/src/ListItem.js +115 -97
- package/lib/list/src/interface.d.ts +1 -0
- package/lib/list/src/props.d.ts +70 -31
- package/lib/list/src/props.js +25 -5
- package/lib/list/src/styles/index.cssr.js +32 -90
- package/lib/list/styles/light.d.ts +5 -8
- package/lib/list/styles/light.js +6 -9
- package/lib/tag/src/styles/index.cssr.js +5 -1
- package/lib/tag/styles/light.js +2 -2
- package/lib/upload/src/UploadFile.js +4 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +62 -35
package/dist/index.js
CHANGED
|
@@ -34211,6 +34211,7 @@
|
|
|
34211
34211
|
fontBodyMedium,
|
|
34212
34212
|
textQuaternary,
|
|
34213
34213
|
elementsPrimary,
|
|
34214
|
+
elementsSecondary,
|
|
34214
34215
|
elementsSenary,
|
|
34215
34216
|
elementsQuinary,
|
|
34216
34217
|
textPrimary,
|
|
@@ -34262,7 +34263,7 @@
|
|
|
34262
34263
|
textColorHoverCheckable: textPrimary,
|
|
34263
34264
|
textColorPressedCheckable: textPrimary,
|
|
34264
34265
|
textColorChecked: textQuaternary,
|
|
34265
|
-
colorCheckable:
|
|
34266
|
+
colorCheckable: elementsSecondary,
|
|
34266
34267
|
colorHoverCheckable: elementsQuaternary,
|
|
34267
34268
|
colorPressedCheckable: elementsQuaternary,
|
|
34268
34269
|
colorChecked: elementsPrimary,
|
|
@@ -34494,6 +34495,7 @@
|
|
|
34494
34495
|
cursor: pointer;
|
|
34495
34496
|
box-shadow: none;
|
|
34496
34497
|
color: var(--u-text-color-checkable);
|
|
34498
|
+
padding: 0px 8px;
|
|
34497
34499
|
background-color: var(--u-color-checkable);
|
|
34498
34500
|
transition: border-color .3s var(--u-bezier);
|
|
34499
34501
|
`, [cNotM("disabled", [c$1("&:hover", "background-color: var(--u-color-hover-checkable);", [cNotM("checked", "color: var(--u-text-color-hover-checkable);")]), c$1("&:focus", `
|
|
@@ -34503,7 +34505,10 @@
|
|
|
34503
34505
|
transition: border-color .3s var(--u-bezier);`, [cNotM("checked", "color: var(--u-text-color-pressed-checkable);")])]), cM("checked", `
|
|
34504
34506
|
color: var(--u-text-color-checked);
|
|
34505
34507
|
background-color: var(--u-color-checked);
|
|
34506
|
-
`, [
|
|
34508
|
+
`, [cE("border", `
|
|
34509
|
+
border-color: var(--u-color-checked);
|
|
34510
|
+
transition: none;
|
|
34511
|
+
`), cNotM("disabled", [c$1("&:hover", "background-color: var(--u-color-checked-hover);"), c$1("&:focus", "background-color: var(--u-color-checked-hover);"), c$1("&:active", "background-color: var(--u-color-checked-pressed);")])])])]);
|
|
34507
34512
|
|
|
34508
34513
|
const tagProps = {
|
|
34509
34514
|
...useTheme.props,
|
|
@@ -40050,32 +40055,24 @@
|
|
|
40050
40055
|
const self$C = vars => {
|
|
40051
40056
|
const {
|
|
40052
40057
|
borderRadius,
|
|
40058
|
+
borderRadiusMedium,
|
|
40059
|
+
borderRadiusSmall,
|
|
40053
40060
|
iconMedium,
|
|
40054
|
-
fontBodyLarge,
|
|
40055
|
-
lineHeightBodyLarge,
|
|
40056
|
-
lineHeightBodyMedium,
|
|
40057
40061
|
textSecondary,
|
|
40058
40062
|
iconSmall,
|
|
40059
40063
|
elementsQuaternary,
|
|
40060
40064
|
textTertiary,
|
|
40061
40065
|
textPrimary,
|
|
40062
|
-
fontBodyMedium,
|
|
40063
40066
|
containerPrimary,
|
|
40064
40067
|
elementsTertiary
|
|
40065
40068
|
} = vars;
|
|
40066
40069
|
return {
|
|
40067
|
-
padding: "8px 24px",
|
|
40068
40070
|
iconSize: iconMedium,
|
|
40069
40071
|
iconSpace: "16px",
|
|
40070
40072
|
suffixSpace: "20px",
|
|
40071
40073
|
prefixSpace: "20px",
|
|
40072
|
-
titleSize: fontBodyLarge,
|
|
40073
|
-
titleLineHeight: lineHeightBodyLarge,
|
|
40074
|
-
subtitleSize: fontBodyMedium,
|
|
40075
|
-
subtitleLineHeight: lineHeightBodyMedium,
|
|
40076
40074
|
subtitleColor: textSecondary,
|
|
40077
40075
|
avatarSpace: iconSmall,
|
|
40078
|
-
minHeight: "64px",
|
|
40079
40076
|
colorFocus: elementsQuaternary,
|
|
40080
40077
|
pressedScale: "0.98",
|
|
40081
40078
|
textColorDisabled: textTertiary,
|
|
@@ -40089,8 +40086,11 @@
|
|
|
40089
40086
|
borderColor: elementsQuaternary,
|
|
40090
40087
|
borderColorModal: elementsQuaternary,
|
|
40091
40088
|
borderColorPopover: elementsQuaternary,
|
|
40092
|
-
borderRadius,
|
|
40093
|
-
|
|
40089
|
+
borderRadiusLarge: borderRadius,
|
|
40090
|
+
borderRadiusMedium,
|
|
40091
|
+
borderRadiusSmall,
|
|
40092
|
+
padding: "12px 24px",
|
|
40093
|
+
suffixSize: "24px"
|
|
40094
40094
|
};
|
|
40095
40095
|
};
|
|
40096
40096
|
const listLight = {
|
|
@@ -41765,7 +41765,7 @@
|
|
|
41765
41765
|
codeBorder
|
|
41766
41766
|
} = vars;
|
|
41767
41767
|
return {
|
|
41768
|
-
margin: "
|
|
41768
|
+
margin: "0px",
|
|
41769
41769
|
aTextColor: brandPrimary500,
|
|
41770
41770
|
blockquoteTextColor: textPrimary,
|
|
41771
41771
|
blockquotePrefixColor: elementsQuaternary,
|
|
@@ -41853,7 +41853,6 @@
|
|
|
41853
41853
|
`), c$1("p&", `
|
|
41854
41854
|
box-sizing: border-box;
|
|
41855
41855
|
transition: color .3s var(--u-bezier);
|
|
41856
|
-
margin: var(--u-margin);
|
|
41857
41856
|
font-size: var(--u-font-size);
|
|
41858
41857
|
line-height: var(--u-line-height);
|
|
41859
41858
|
color: var(--u-text-color);
|
|
@@ -47910,7 +47909,7 @@
|
|
|
47910
47909
|
textColor: String,
|
|
47911
47910
|
offset: Array
|
|
47912
47911
|
};
|
|
47913
|
-
var
|
|
47912
|
+
var UBadge = vue.defineComponent({
|
|
47914
47913
|
name: "Badge",
|
|
47915
47914
|
props: badgeProps,
|
|
47916
47915
|
setup(props, { slots }) {
|
|
@@ -65039,6 +65038,7 @@
|
|
|
65039
65038
|
default: () => []
|
|
65040
65039
|
},
|
|
65041
65040
|
loading: Boolean,
|
|
65041
|
+
loadingSkeleton: Boolean,
|
|
65042
65042
|
bordered: {
|
|
65043
65043
|
type: Boolean,
|
|
65044
65044
|
default: void 0
|
|
@@ -86118,6 +86118,7 @@
|
|
|
86118
86118
|
maxHeightRef,
|
|
86119
86119
|
stripedRef,
|
|
86120
86120
|
loadingRef,
|
|
86121
|
+
loadingSkeletonRef,
|
|
86121
86122
|
onLoadRef,
|
|
86122
86123
|
loadingKeySetRef,
|
|
86123
86124
|
expandableRef,
|
|
@@ -86344,6 +86345,7 @@
|
|
|
86344
86345
|
scrollX: scrollXRef,
|
|
86345
86346
|
cols: colsRef,
|
|
86346
86347
|
loading: loadingRef,
|
|
86348
|
+
loadingSkeleton: loadingSkeletonRef,
|
|
86347
86349
|
bodyShowHeaderOnly: bodyShowHeaderOnlyRef,
|
|
86348
86350
|
shouldDisplaySomeTablePart: shouldDisplaySomeTablePartRef,
|
|
86349
86351
|
empty: emptyRef,
|
|
@@ -86775,7 +86777,7 @@
|
|
|
86775
86777
|
},
|
|
86776
86778
|
/* @__PURE__ */ vue.h("colgroup", null, cols.map((col) => /* @__PURE__ */ vue.h("col", { key: col.key, style: col.style }))),
|
|
86777
86779
|
this.showHeader ? /* @__PURE__ */ vue.h(TableHeader, { discrete: false }) : null,
|
|
86778
|
-
this.
|
|
86780
|
+
this.loadingSkeleton ? /* @__PURE__ */ vue.h(BodySkeleton, null) : !this.empty ? /* @__PURE__ */ vue.h(
|
|
86779
86781
|
"tbody",
|
|
86780
86782
|
{
|
|
86781
86783
|
"data-u-id": componentId,
|
|
@@ -88733,6 +88735,7 @@
|
|
|
88733
88735
|
mergedSortStateRef,
|
|
88734
88736
|
mergedFilterStateRef,
|
|
88735
88737
|
loadingRef: vue.toRef(props, "loading"),
|
|
88738
|
+
loadingSkeletonRef: vue.toRef(props, "loadingSkeleton"),
|
|
88736
88739
|
rowClassNameRef: vue.toRef(props, "rowClassName"),
|
|
88737
88740
|
mergedCheckedRowKeySetRef,
|
|
88738
88741
|
mergedExpandedRowKeysRef,
|
|
@@ -106956,7 +106959,7 @@
|
|
|
106956
106959
|
justify-content: space-between;
|
|
106957
106960
|
`)]);
|
|
106958
106961
|
|
|
106959
|
-
const headerProps$
|
|
106962
|
+
const headerProps$2 = {
|
|
106960
106963
|
position: positionProp,
|
|
106961
106964
|
inverted: Boolean,
|
|
106962
106965
|
bordered: {
|
|
@@ -106968,7 +106971,7 @@
|
|
|
106968
106971
|
name: "LayoutHeader",
|
|
106969
106972
|
props: {
|
|
106970
106973
|
...useTheme.props,
|
|
106971
|
-
...headerProps$
|
|
106974
|
+
...headerProps$2
|
|
106972
106975
|
},
|
|
106973
106976
|
setup(props) {
|
|
106974
106977
|
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
@@ -108798,13 +108801,18 @@
|
|
|
108798
108801
|
}
|
|
108799
108802
|
});
|
|
108800
108803
|
|
|
108801
|
-
var style$w = c$1([cB("
|
|
108804
|
+
var style$w = c$1([cB("align-start", `
|
|
108805
|
+
align-self: self-start;
|
|
108806
|
+
`), cB("align-center", `
|
|
108807
|
+
align-self: center;
|
|
108808
|
+
`), cB("align-end", `
|
|
108809
|
+
align-self: self-end;
|
|
108810
|
+
`), cB("list", `
|
|
108802
108811
|
--u-merged-border-color: var(--u-border-color);
|
|
108803
108812
|
--u-merged-color: var(--u-color);
|
|
108804
108813
|
--u-merged-color-focus: var(--u-color-focus);
|
|
108805
108814
|
--u-merged-color-hover: var(--u-color-hover);
|
|
108806
108815
|
margin: 0;
|
|
108807
|
-
font-size: var(--u-font-size);
|
|
108808
108816
|
transition:
|
|
108809
108817
|
background-color .3s var(--u-bezier),
|
|
108810
108818
|
color .3s var(--u-bezier),
|
|
@@ -108815,17 +108823,10 @@
|
|
|
108815
108823
|
background-color: var(--u-merged-color);
|
|
108816
108824
|
`, [cM("clickable", [cB("list-item", `
|
|
108817
108825
|
cursor: pointer;
|
|
108818
|
-
`)]), cM("bordered", `
|
|
108819
|
-
|
|
108820
|
-
|
|
108821
|
-
|
|
108822
|
-
border-radius: var(--u-border-radius);
|
|
108823
|
-
border-bottom-left-radius: 0;
|
|
108824
|
-
border-bottom-right-radius: 0;
|
|
108825
|
-
`), c$1("&:last-child", `
|
|
108826
|
-
border-radius: var(--u-border-radius);
|
|
108827
|
-
border-top-left-radius: 0;
|
|
108828
|
-
border-top-right-radius: 0;
|
|
108826
|
+
`)]), cM("bordered", [cB("list-item", `
|
|
108827
|
+
border-bottom: 1px solid var(--u-merged-border-color);
|
|
108828
|
+
`, [c$1("&:last-child", `
|
|
108829
|
+
border: none;
|
|
108829
108830
|
`)])]), cE("header, footer", `
|
|
108830
108831
|
padding: var(--u-padding);
|
|
108831
108832
|
padding-left: 0px;
|
|
@@ -108845,11 +108846,10 @@
|
|
|
108845
108846
|
position: relative;
|
|
108846
108847
|
outline: none;
|
|
108847
108848
|
display: flex;
|
|
108848
|
-
align-items: center;
|
|
108849
108849
|
padding: var(--u-padding);
|
|
108850
|
-
|
|
108851
|
-
|
|
108852
|
-
|
|
108850
|
+
`, [cB("skeleton", `
|
|
108851
|
+
height: 24px
|
|
108852
|
+
`), cE("main", `
|
|
108853
108853
|
flex: 1;
|
|
108854
108854
|
`), c$1("&:focus", `
|
|
108855
108855
|
outline: none;
|
|
@@ -108864,81 +108864,43 @@
|
|
|
108864
108864
|
left: 0;
|
|
108865
108865
|
`), cE("icon", `
|
|
108866
108866
|
display: flex;
|
|
108867
|
-
font-size: var(--u-icon-size);
|
|
108868
108867
|
margin-left: var(--u-icon-space);
|
|
108869
108868
|
`), cE("suffix", `
|
|
108870
108869
|
margin-left: var(--u-suffix-space);
|
|
108870
|
+
font-size: var(--u-suffix-size);
|
|
108871
|
+
align-self: center;
|
|
108871
108872
|
`), cE("prefix", `
|
|
108872
108873
|
margin-right: var(--u-prefix-space);
|
|
108874
|
+
display: flex;
|
|
108873
108875
|
`), cE("content", `
|
|
108874
|
-
flex-grow: 1;
|
|
108875
|
-
padding: 0;
|
|
108876
108876
|
display: flex;
|
|
108877
108877
|
flex-direction: column;
|
|
108878
|
-
|
|
108878
|
+
gap: 4px;
|
|
108879
108879
|
`, [cM("right", `
|
|
108880
|
-
margin-left: auto;
|
|
108881
108880
|
text-align: right;
|
|
108882
|
-
|
|
108883
|
-
|
|
108884
|
-
|
|
108885
|
-
|
|
108886
|
-
|
|
108887
|
-
|
|
108888
|
-
|
|
108889
|
-
flex-grow: 1;
|
|
108890
|
-
display: flex;
|
|
108891
|
-
align-items: flex-start;
|
|
108881
|
+
`), cM("full", {
|
|
108882
|
+
width: "100%"
|
|
108883
|
+
})]), cE("text", `
|
|
108884
|
+
display: grid;
|
|
108885
|
+
gap: 16px;
|
|
108886
|
+
grid-template-columns: 1fr 1fr;
|
|
108887
|
+
height: 100%
|
|
108892
108888
|
`), cE("title", `
|
|
108893
|
-
padding-top: 4px;
|
|
108894
108889
|
flex-grow: 1;
|
|
108895
|
-
|
|
108896
|
-
font-size: var(--u-title-size);
|
|
108897
|
-
font-weight: 500;
|
|
108898
|
-
line-height: var(--u-title-line-height);
|
|
108899
|
-
`, [c$1("&:last-child", `
|
|
108900
|
-
margin-bottom: 0;
|
|
108901
|
-
`)]), cE("subtitle", `
|
|
108902
|
-
padding-bottom: 4px;
|
|
108890
|
+
`), cE("subtitle", `
|
|
108903
108891
|
flex-grow: 1;
|
|
108904
|
-
font-size: var(--u-subtitle-size);
|
|
108905
|
-
font-weight: 500;
|
|
108906
|
-
line-height: var(--u-subtitle-line-height);
|
|
108907
108892
|
color: var(--u-subtitle-color);
|
|
108908
108893
|
`), cE("subtitle,title", [c$1("&:last-child:first-child", `
|
|
108909
|
-
|
|
108910
|
-
`)]), cE("avatar", `
|
|
108911
|
-
display: flex;
|
|
108912
|
-
margin-right: var(--u-avatar-space);
|
|
108913
|
-
`), c$1("&:last-child", [cE("divider", `
|
|
108894
|
+
`)]), c$1("&:last-child", [cE("divider", `
|
|
108914
108895
|
display: none;
|
|
108915
108896
|
`)]), cM("default", `
|
|
108916
|
-
min-height: var(--u-min-height);
|
|
108917
108897
|
padding: var(--u-padding);
|
|
108918
108898
|
`, [cE("main", `
|
|
108919
|
-
display:
|
|
108899
|
+
display: none;
|
|
108920
108900
|
align-items: center;
|
|
108921
|
-
`)]),
|
|
108922
|
-
padding-top: 0;
|
|
108923
|
-
padding-bottom: 4px;
|
|
108924
|
-
order: 1;
|
|
108925
|
-
margin-top: 4px;
|
|
108926
|
-
margin-bottom: 0px;
|
|
108927
|
-
`, [c$1("&:last-child", `
|
|
108928
|
-
margin-top: 0;
|
|
108929
|
-
`)]), cE("subtitle", `
|
|
108930
|
-
padding-bottom: 0;
|
|
108931
|
-
padding-top: 4px;
|
|
108932
|
-
`)]), cM("columns-even", [cE("content", [cM("right", `
|
|
108933
|
-
flex-grow: 1;
|
|
108934
|
-
text-align: left;
|
|
108935
|
-
align-items: stretch;
|
|
108936
|
-
`)])]), cM("bordered", `
|
|
108937
|
-
padding: var(--u-padding);
|
|
108938
|
-
`), cNotM("loading", [cNotM("disabled", [cNotM("loading-skeleton", [cM("hoverable", `
|
|
108901
|
+
`)]), cNotM("loading", [cNotM("disabled", [cNotM("loading-skeleton", [cM("hoverable", `
|
|
108939
108902
|
cursor: pointer;
|
|
108940
108903
|
user-select: none;
|
|
108941
|
-
padding: var(--u-padding);
|
|
108942
108904
|
`, [c$1("&:hover", `
|
|
108943
108905
|
background: var(--u-merged-color-hover);
|
|
108944
108906
|
`), c$1("&:focus,&:active", `
|
|
@@ -108951,26 +108913,7 @@
|
|
|
108951
108913
|
border-radius: var(--u-border-radius);
|
|
108952
108914
|
`), cM("disabled", [cE("text, subtitle", `
|
|
108953
108915
|
color: var(--u-text-color-disabled);
|
|
108954
|
-
`)]),
|
|
108955
|
-
padding: 5px 0;
|
|
108956
|
-
`), cE("content--left", `
|
|
108957
|
-
flex-grow: 0;
|
|
108958
|
-
width: calc(66.38% - 8px);
|
|
108959
|
-
`), cE("content--right", `
|
|
108960
|
-
flex-grow: 0;
|
|
108961
|
-
width: calc(33.62% - 8px);
|
|
108962
|
-
`), cE("title,subtitle", [c$1("&:first-child:last-child", `
|
|
108963
|
-
padding: 0;
|
|
108964
|
-
`)]), cE("title", `
|
|
108965
|
-
margin-bottom: 8px;
|
|
108966
|
-
`, [c$1("&:last-child", `
|
|
108967
|
-
margin-bottom: 0;
|
|
108968
|
-
`)]), cM("description-first", [cE("title", `
|
|
108969
|
-
margin-bottom: 0;
|
|
108970
|
-
margin-top: 8px;
|
|
108971
|
-
`, [c$1("&:last-child", `
|
|
108972
|
-
margin-top: 0;
|
|
108973
|
-
`)])])])]), insideModal(cB("list", `
|
|
108916
|
+
`)])]), insideModal(cB("list", `
|
|
108974
108917
|
--u-merged-color-hover: var(--u-color-hover-modal);
|
|
108975
108918
|
--u-merged-color: var(--u-color-modal);
|
|
108976
108919
|
--u-merged-border-color: var(--u-border-color-modal);
|
|
@@ -108980,7 +108923,7 @@
|
|
|
108980
108923
|
--u-merged-border-color: var(--u-border-color-popover);
|
|
108981
108924
|
`))]);
|
|
108982
108925
|
|
|
108983
|
-
const listItemPropsBoolean = ["showIcon", "descriptionFirst", "columnsEven", "hoverable", "rounded", "disabled", "loading"
|
|
108926
|
+
const listItemPropsBoolean = ["showIcon", "descriptionFirst", "columnsEven", "hoverable", "rounded", "disabled", "loading"];
|
|
108984
108927
|
const listItemPropsRenderable = ["header", "description", "headerSide", "descriptionSide", "icon", "avatar"];
|
|
108985
108928
|
const booleanDefault = {};
|
|
108986
108929
|
const renderableDefault = {};
|
|
@@ -109020,17 +108963,49 @@
|
|
|
109020
108963
|
default: void 0
|
|
109021
108964
|
}
|
|
109022
108965
|
};
|
|
108966
|
+
const headerProps$1 = {
|
|
108967
|
+
type: Object
|
|
108968
|
+
};
|
|
108969
|
+
const descriptionProps = {
|
|
108970
|
+
type: Object
|
|
108971
|
+
};
|
|
109023
108972
|
const listItemProps = {
|
|
109024
108973
|
...listItemBaseProps,
|
|
108974
|
+
avatar: {
|
|
108975
|
+
type: Object,
|
|
108976
|
+
default: () => ({})
|
|
108977
|
+
},
|
|
108978
|
+
badge: {
|
|
108979
|
+
type: Object,
|
|
108980
|
+
default: () => ({})
|
|
108981
|
+
},
|
|
109025
108982
|
tag: {
|
|
109026
108983
|
type: String,
|
|
109027
108984
|
default: void 0
|
|
109028
|
-
}
|
|
108985
|
+
},
|
|
108986
|
+
prefixAlign: {
|
|
108987
|
+
type: String,
|
|
108988
|
+
default: "start"
|
|
108989
|
+
},
|
|
108990
|
+
suffixAlign: {
|
|
108991
|
+
type: String,
|
|
108992
|
+
default: "start"
|
|
108993
|
+
},
|
|
108994
|
+
loadingPrefix: Boolean,
|
|
108995
|
+
loadingSuffix: Boolean,
|
|
108996
|
+
header: headerProps$1,
|
|
108997
|
+
description: descriptionProps,
|
|
108998
|
+
headerSide: headerProps$1,
|
|
108999
|
+
descriptionSide: descriptionProps
|
|
109029
109000
|
};
|
|
109030
109001
|
const listProps = {
|
|
109031
109002
|
...useTheme.props,
|
|
109032
109003
|
// all of the ListItem props is should be in the List component
|
|
109033
109004
|
...listItemBaseProps,
|
|
109005
|
+
size: {
|
|
109006
|
+
type: [String],
|
|
109007
|
+
default: "medium"
|
|
109008
|
+
},
|
|
109034
109009
|
showIcon: {
|
|
109035
109010
|
type: Boolean,
|
|
109036
109011
|
default: true
|
|
@@ -109083,13 +109058,13 @@
|
|
|
109083
109058
|
onFocus: vue.toRef(props, "onFocus"),
|
|
109084
109059
|
bordered: vue.toRef(props, "bordered"),
|
|
109085
109060
|
clickable: vue.toRef(props, "clickable"),
|
|
109086
|
-
showDivider: vue.toRef(props, "showDivider")
|
|
109061
|
+
showDivider: vue.toRef(props, "showDivider"),
|
|
109062
|
+
size: vue.toRef(props, "size")
|
|
109087
109063
|
});
|
|
109088
109064
|
const cssVarsRef = vue.computed(() => {
|
|
109089
109065
|
const {
|
|
109090
109066
|
common: { cubicBezierEaseInOut },
|
|
109091
109067
|
self: {
|
|
109092
|
-
fontSize,
|
|
109093
109068
|
textColor,
|
|
109094
109069
|
color,
|
|
109095
109070
|
colorModal,
|
|
@@ -109097,7 +109072,6 @@
|
|
|
109097
109072
|
borderColor,
|
|
109098
109073
|
borderColorModal,
|
|
109099
109074
|
borderColorPopover,
|
|
109100
|
-
borderRadius,
|
|
109101
109075
|
colorHover,
|
|
109102
109076
|
colorHoverModal,
|
|
109103
109077
|
colorHoverPopover,
|
|
@@ -109106,20 +109080,16 @@
|
|
|
109106
109080
|
iconSpace,
|
|
109107
109081
|
suffixSpace,
|
|
109108
109082
|
prefixSpace,
|
|
109109
|
-
titleSize,
|
|
109110
|
-
titleLineHeight,
|
|
109111
|
-
subtitleSize,
|
|
109112
|
-
subtitleLineHeight,
|
|
109113
109083
|
subtitleColor,
|
|
109114
109084
|
avatarSpace,
|
|
109115
|
-
minHeight,
|
|
109116
109085
|
colorFocus,
|
|
109117
109086
|
pressedScale,
|
|
109118
|
-
textColorDisabled
|
|
109087
|
+
textColorDisabled,
|
|
109088
|
+
suffixSize,
|
|
109089
|
+
[createKey("borderRadius", props.size)]: borderRadius
|
|
109119
109090
|
}
|
|
109120
109091
|
} = themeRef.value;
|
|
109121
109092
|
return {
|
|
109122
|
-
"--u-font-size": fontSize,
|
|
109123
109093
|
"--u-bezier": cubicBezierEaseInOut,
|
|
109124
109094
|
"--u-text-color": textColor,
|
|
109125
109095
|
"--u-color": color,
|
|
@@ -109132,21 +109102,17 @@
|
|
|
109132
109102
|
"--u-color-hover": colorHover,
|
|
109133
109103
|
"--u-color-hover-modal": colorHoverModal,
|
|
109134
109104
|
"--u-color-hover-popover": colorHoverPopover,
|
|
109135
|
-
"--u-padding": padding,
|
|
109136
109105
|
"--u-icon-size": iconSize,
|
|
109137
109106
|
"--u-icon-space": iconSpace,
|
|
109138
109107
|
"--u-suffix-space": suffixSpace,
|
|
109139
109108
|
"--u-prefix-space": prefixSpace,
|
|
109140
|
-
"--u-title-size": titleSize,
|
|
109141
|
-
"--u-title-line-height": titleLineHeight,
|
|
109142
|
-
"--u-subtitle-size": subtitleSize,
|
|
109143
|
-
"--u-subtitle-line-height": subtitleLineHeight,
|
|
109144
109109
|
"--u-subtitle-color": subtitleColor,
|
|
109145
109110
|
"--u-avatar-space": avatarSpace,
|
|
109146
|
-
"--u-min-height": minHeight,
|
|
109147
109111
|
"--u-color-focus": colorFocus,
|
|
109148
109112
|
"--u-pressed-scale": pressedScale,
|
|
109149
|
-
"--u-text-color-disabled": textColorDisabled
|
|
109113
|
+
"--u-text-color-disabled": textColorDisabled,
|
|
109114
|
+
"--u-padding": padding,
|
|
109115
|
+
"--u-suffix-size": suffixSize
|
|
109150
109116
|
};
|
|
109151
109117
|
});
|
|
109152
109118
|
const themeClassHandle = inlineThemeDisabled ? useThemeClass("list", void 0, cssVarsRef, props) : void 0;
|
|
@@ -109185,7 +109151,9 @@
|
|
|
109185
109151
|
|
|
109186
109152
|
var ListItem = vue.defineComponent({
|
|
109187
109153
|
name: "ListItem",
|
|
109188
|
-
props:
|
|
109154
|
+
props: {
|
|
109155
|
+
...listItemProps
|
|
109156
|
+
},
|
|
109189
109157
|
setup(props, { slots }) {
|
|
109190
109158
|
const listInjection = vue.inject(listInjectionKey, null);
|
|
109191
109159
|
if (!listInjection) {
|
|
@@ -109204,22 +109172,21 @@
|
|
|
109204
109172
|
const mergedHoverable = createRef("hoverable");
|
|
109205
109173
|
const mergedDisabled = createRef("disabled");
|
|
109206
109174
|
const mergedLoading = createRef("loading");
|
|
109207
|
-
const
|
|
109175
|
+
const mergedShowIcon = createRef("showIcon");
|
|
109176
|
+
const mergedRounded = createRef("rounded");
|
|
109208
109177
|
const mergedClickHandler = createRef("onClick");
|
|
109209
109178
|
const mergedKeypressHandler = createRef("onKeypress");
|
|
109210
109179
|
const mergedPressHandler = createRef("onPress");
|
|
109211
109180
|
const mergedBlurHandler = createRef("onBlur");
|
|
109212
109181
|
const mergedFocusHandler = createRef("onFocus");
|
|
109213
|
-
const hasFocus = vue.computed(
|
|
109214
|
-
|
|
109215
|
-
|
|
109182
|
+
const hasFocus = vue.computed(
|
|
109183
|
+
() => !mergedDisabled.value && mergedHoverable.value
|
|
109184
|
+
);
|
|
109216
109185
|
const isPressed = vue.ref(false);
|
|
109217
109186
|
const handleClick = (e) => {
|
|
109218
109187
|
if (!mergedDisabled.value) {
|
|
109219
109188
|
if (mergedClickHandler.value) call(mergedClickHandler.value, e);
|
|
109220
|
-
if (e.which === 1 || e.button === 0)
|
|
109221
|
-
handlePress("mouseup");
|
|
109222
|
-
}
|
|
109189
|
+
if (e.which === 1 || e.button === 0) handlePress("mouseup");
|
|
109223
109190
|
}
|
|
109224
109191
|
};
|
|
109225
109192
|
const handleKeyPress = (e) => {
|
|
@@ -109227,27 +109194,23 @@
|
|
|
109227
109194
|
const { code } = e;
|
|
109228
109195
|
if (code === "Enter" || code === "Space" || code === "NumpadEnter") {
|
|
109229
109196
|
e.preventDefault();
|
|
109230
|
-
if (!e.repeat)
|
|
109231
|
-
handlePress("keyup");
|
|
109232
|
-
}
|
|
109197
|
+
if (!e.repeat) handlePress("keyup");
|
|
109233
109198
|
}
|
|
109234
109199
|
if (mergedKeypressHandler.value) call(mergedKeypressHandler.value, e);
|
|
109235
109200
|
}
|
|
109236
109201
|
};
|
|
109237
109202
|
const handleBlur = (e) => {
|
|
109238
|
-
if (hasFocus.value) {
|
|
109239
|
-
|
|
109203
|
+
if (hasFocus.value && mergedBlurHandler.value) {
|
|
109204
|
+
call(mergedBlurHandler.value, e);
|
|
109240
109205
|
}
|
|
109241
109206
|
};
|
|
109242
109207
|
const handleFocus = (e) => {
|
|
109243
|
-
if (hasFocus.value) {
|
|
109244
|
-
|
|
109208
|
+
if (hasFocus.value && mergedFocusHandler.value) {
|
|
109209
|
+
call(mergedFocusHandler.value, e);
|
|
109245
109210
|
}
|
|
109246
109211
|
};
|
|
109247
109212
|
const handlePress = (eventName) => {
|
|
109248
|
-
if (mergedDisabled.value || mergedLoading.value
|
|
109249
|
-
return;
|
|
109250
|
-
}
|
|
109213
|
+
if (mergedDisabled.value || mergedLoading.value) return;
|
|
109251
109214
|
if (mergedPressHandler.value) call(mergedPressHandler.value);
|
|
109252
109215
|
if (hasFocus.value) {
|
|
109253
109216
|
isPressed.value = true;
|
|
@@ -109256,29 +109219,20 @@
|
|
|
109256
109219
|
() => {
|
|
109257
109220
|
isPressed.value = false;
|
|
109258
109221
|
},
|
|
109259
|
-
{
|
|
109260
|
-
once: true,
|
|
109261
|
-
passive: true
|
|
109262
|
-
}
|
|
109222
|
+
{ once: true, passive: true }
|
|
109263
109223
|
);
|
|
109264
109224
|
}
|
|
109265
109225
|
};
|
|
109266
|
-
const
|
|
109267
|
-
if (!(name in props)) return null;
|
|
109268
|
-
return props[name] || slots[name] || listInjection[name].value || null;
|
|
109269
|
-
};
|
|
109226
|
+
const resolveSlot = (name) => slots[name] || null;
|
|
109270
109227
|
return {
|
|
109271
109228
|
mergedClsPrefix: listInjection.mergedClsPrefix,
|
|
109272
|
-
|
|
109273
|
-
mergedDescriptionFirst: createRef("descriptionFirst"),
|
|
109274
|
-
mergedColumnsEven: createRef("columnsEven"),
|
|
109275
|
-
mergedRounded: createRef("rounded"),
|
|
109229
|
+
mergedHoverable,
|
|
109276
109230
|
mergedDisabled,
|
|
109277
109231
|
mergedLoading,
|
|
109278
|
-
|
|
109279
|
-
|
|
109232
|
+
mergedShowIcon,
|
|
109233
|
+
mergedRounded,
|
|
109280
109234
|
mergedTag: createRef("tag"),
|
|
109281
|
-
|
|
109235
|
+
resolveSlot,
|
|
109282
109236
|
hasFocus,
|
|
109283
109237
|
isPressed,
|
|
109284
109238
|
handleClick,
|
|
@@ -109286,14 +109240,25 @@
|
|
|
109286
109240
|
handleBlur,
|
|
109287
109241
|
handleFocus,
|
|
109288
109242
|
bordered: listInjection.bordered,
|
|
109289
|
-
showDivider: listInjection.showDivider
|
|
109243
|
+
showDivider: listInjection.showDivider,
|
|
109244
|
+
size: listInjection.size
|
|
109290
109245
|
};
|
|
109291
109246
|
},
|
|
109292
109247
|
render() {
|
|
109293
|
-
const {
|
|
109248
|
+
const {
|
|
109249
|
+
$slots,
|
|
109250
|
+
mergedClsPrefix,
|
|
109251
|
+
showDivider,
|
|
109252
|
+
prefixAlign,
|
|
109253
|
+
suffixAlign,
|
|
109254
|
+
size,
|
|
109255
|
+
resolveSlot
|
|
109256
|
+
} = this;
|
|
109294
109257
|
const mergedTag = this.mergedTag || "ul";
|
|
109258
|
+
const skeletonOn = !!this.mergedLoading;
|
|
109295
109259
|
const sharedCls = [
|
|
109296
109260
|
`${mergedClsPrefix}-list-item`,
|
|
109261
|
+
`${mergedClsPrefix}-list-item--${size}`,
|
|
109297
109262
|
this.mergedHoverable && `${mergedClsPrefix}-list-item--hoverable`,
|
|
109298
109263
|
this.mergedRounded && `${mergedClsPrefix}-list-item--rounded`,
|
|
109299
109264
|
this.mergedDisabled && `${mergedClsPrefix}-list-item--disabled`,
|
|
@@ -109307,139 +109272,170 @@
|
|
|
109307
109272
|
onBlur: this.handleBlur,
|
|
109308
109273
|
onFocus: this.handleFocus
|
|
109309
109274
|
};
|
|
109310
|
-
|
|
109311
|
-
|
|
109312
|
-
|
|
109313
|
-
|
|
109314
|
-
|
|
109275
|
+
function renderIcon(icon) {
|
|
109276
|
+
return () => vue.h(UIcon, null, { default: () => vue.h(icon) });
|
|
109277
|
+
}
|
|
109278
|
+
const renderAvatar = () => {
|
|
109279
|
+
if (!Object.values(this.avatar).length) return null;
|
|
109280
|
+
const Avatar = /* @__PURE__ */ vue.h(UAvatar, { size, ...this.avatar, ...{ icon: void 0 } }, renderIcon(this.avatar.icon));
|
|
109281
|
+
return this.avatar.hasBadge ? /* @__PURE__ */ vue.h(UBadge, { ...this.badge }, Avatar) : Avatar;
|
|
109282
|
+
};
|
|
109283
|
+
const prefixSkeletonSizes = {
|
|
109284
|
+
large: 54,
|
|
109285
|
+
medium: 48,
|
|
109286
|
+
small: 42
|
|
109287
|
+
};
|
|
109288
|
+
const prefixSkeletonSize = prefixSkeletonSizes[size];
|
|
109289
|
+
const prefixSkeletonborderRadius = this.avatar.circle ? 100 : 12;
|
|
109290
|
+
const prefixNode = $slots.prefix || renderAvatar() ? /* @__PURE__ */ vue.h(
|
|
109291
|
+
"div",
|
|
109292
|
+
{
|
|
109293
|
+
class: `${mergedClsPrefix}-list-item__prefix ${mergedClsPrefix}-align-${prefixAlign}`
|
|
109294
|
+
},
|
|
109295
|
+
skeletonOn || this.loadingPrefix ? /* @__PURE__ */ vue.h(
|
|
109296
|
+
UBaseSkeleton,
|
|
109315
109297
|
{
|
|
109316
|
-
|
|
109317
|
-
|
|
109318
|
-
|
|
109319
|
-
|
|
109320
|
-
|
|
109321
|
-
|
|
109322
|
-
|
|
109323
|
-
|
|
109324
|
-
|
|
109325
|
-
|
|
109326
|
-
|
|
109327
|
-
|
|
109328
|
-
|
|
109329
|
-
|
|
109330
|
-
|
|
109331
|
-
|
|
109332
|
-
|
|
109333
|
-
|
|
109334
|
-
|
|
109335
|
-
|
|
109336
|
-
|
|
109337
|
-
{
|
|
109338
|
-
clsPrefix: mergedClsPrefix,
|
|
109339
|
-
key: "loading",
|
|
109340
|
-
strokeWidth: 20
|
|
109341
|
-
}
|
|
109342
|
-
));
|
|
109298
|
+
width: `${prefixSkeletonSize}px`,
|
|
109299
|
+
height: `${prefixSkeletonSize}px`,
|
|
109300
|
+
style: { borderRadius: `${prefixSkeletonborderRadius}px` }
|
|
109301
|
+
}
|
|
109302
|
+
) : $slots.prefix ? $slots.prefix() : renderAvatar()
|
|
109303
|
+
) : null;
|
|
109304
|
+
const header = this.header?.text || resolveSlot("header");
|
|
109305
|
+
const description = this.description?.text || resolveSlot("description");
|
|
109306
|
+
const hasLeft = !!(header || description);
|
|
109307
|
+
const textVariant = {
|
|
109308
|
+
large: {
|
|
109309
|
+
title: "body-l-medium",
|
|
109310
|
+
subtitle: "body-m-medium"
|
|
109311
|
+
},
|
|
109312
|
+
medium: {
|
|
109313
|
+
title: "body-m-medium",
|
|
109314
|
+
subtitle: "body-s-medium"
|
|
109315
|
+
},
|
|
109316
|
+
small: {
|
|
109317
|
+
title: "body-l-medium",
|
|
109318
|
+
subtitle: "body-m-medium"
|
|
109343
109319
|
}
|
|
109344
|
-
|
|
109345
|
-
|
|
109346
|
-
|
|
109347
|
-
|
|
109348
|
-
|
|
109349
|
-
|
|
109350
|
-
|
|
109351
|
-
|
|
109352
|
-
|
|
109353
|
-
|
|
109354
|
-
|
|
109355
|
-
|
|
109356
|
-
|
|
109357
|
-
|
|
109358
|
-
|
|
109359
|
-
|
|
109360
|
-
|
|
109361
|
-
|
|
109362
|
-
|
|
109363
|
-
|
|
109364
|
-
|
|
109365
|
-
|
|
109366
|
-
|
|
109367
|
-
|
|
109368
|
-
|
|
109369
|
-
|
|
109370
|
-
|
|
109371
|
-
|
|
109372
|
-
|
|
109373
|
-
|
|
109374
|
-
|
|
109375
|
-
|
|
109376
|
-
|
|
109377
|
-
|
|
109378
|
-
|
|
109379
|
-
|
|
109380
|
-
|
|
109381
|
-
|
|
109382
|
-
|
|
109383
|
-
|
|
109384
|
-
|
|
109385
|
-
|
|
109386
|
-
|
|
109387
|
-
|
|
109388
|
-
|
|
109389
|
-
}
|
|
109390
|
-
);
|
|
109391
|
-
iconNode = resolveIcon && /* @__PURE__ */ vue.h(
|
|
109320
|
+
};
|
|
109321
|
+
const defaultHeaderProps = {
|
|
109322
|
+
position: "top",
|
|
109323
|
+
variant: textVariant[size].title,
|
|
109324
|
+
align: "center",
|
|
109325
|
+
skeleton: {
|
|
109326
|
+
sharp: false,
|
|
109327
|
+
height: "24px"
|
|
109328
|
+
}
|
|
109329
|
+
};
|
|
109330
|
+
const defaultDescriptionProps = {
|
|
109331
|
+
position: "bottom",
|
|
109332
|
+
variant: textVariant[size].subtitle,
|
|
109333
|
+
skeleton: {
|
|
109334
|
+
sharp: false,
|
|
109335
|
+
height: "24px"
|
|
109336
|
+
}
|
|
109337
|
+
};
|
|
109338
|
+
const headerProps = {
|
|
109339
|
+
...defaultHeaderProps,
|
|
109340
|
+
...this.header,
|
|
109341
|
+
skeleton: {
|
|
109342
|
+
...defaultHeaderProps.skeleton,
|
|
109343
|
+
...this.header?.skeleton
|
|
109344
|
+
}
|
|
109345
|
+
};
|
|
109346
|
+
const descriptionProps = {
|
|
109347
|
+
...defaultDescriptionProps,
|
|
109348
|
+
...this.description,
|
|
109349
|
+
skeleton: {
|
|
109350
|
+
...defaultDescriptionProps.skeleton,
|
|
109351
|
+
...this.description?.skeleton
|
|
109352
|
+
}
|
|
109353
|
+
};
|
|
109354
|
+
function renderTextNode(content, props, classSuffix) {
|
|
109355
|
+
return content ? /* @__PURE__ */ vue.h(
|
|
109356
|
+
InternalUText,
|
|
109357
|
+
{
|
|
109358
|
+
...props,
|
|
109359
|
+
text: void 0,
|
|
109360
|
+
align: void 0,
|
|
109361
|
+
skeleton: void 0,
|
|
109362
|
+
class: `${mergedClsPrefix}-list-item__${classSuffix}`
|
|
109363
|
+
},
|
|
109364
|
+
skeletonOn || props?.loading ? /* @__PURE__ */ vue.h(
|
|
109392
109365
|
UBaseSkeleton,
|
|
109393
109366
|
{
|
|
109394
|
-
|
|
109395
|
-
|
|
109396
|
-
height: "24px"
|
|
109367
|
+
...props.skeletonPro,
|
|
109368
|
+
style: { borderRadius: "6px" }
|
|
109397
109369
|
}
|
|
109398
|
-
)
|
|
109399
|
-
} else {
|
|
109400
|
-
avatarNode = resolveAvatar && /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-list-item__avatar` }, resolveAvatar());
|
|
109401
|
-
headerNode = resolveHeader && /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-list-item__title` }, resolveHeader());
|
|
109402
|
-
descriptionNode = resolveDescription && /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-list-item__subtitle` }, resolveDescription());
|
|
109403
|
-
headerSideNode = resolveHeaderSide && /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-list-item__title` }, resolveHeaderSide());
|
|
109404
|
-
descriptionSideNode = resolveDescriptionSide && /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-list-item__subtitle` }, resolveDescriptionSide());
|
|
109405
|
-
iconNode = this.mergedShowIcon ? /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-list-item__icon` }, resolveIcon ? /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-list-item__subtitle` }, resolveIcon()) : /* @__PURE__ */ vue.h(UBaseIcon, { clsPrefix: mergedClsPrefix }, () => /* @__PURE__ */ vue.h(ChevronRightIcon, null))) : null;
|
|
109406
|
-
}
|
|
109407
|
-
const leftNode = headerNode || descriptionNode ? /* @__PURE__ */ vue.h(
|
|
109408
|
-
"div",
|
|
109409
|
-
{
|
|
109410
|
-
class: `${mergedClsPrefix}-list-item__content ${mergedClsPrefix}-list-item__content--left`
|
|
109411
|
-
},
|
|
109412
|
-
headerNode,
|
|
109413
|
-
descriptionNode
|
|
109414
|
-
) : null;
|
|
109415
|
-
const rightNode = headerSideNode || descriptionSideNode ? /* @__PURE__ */ vue.h(
|
|
109416
|
-
"div",
|
|
109417
|
-
{
|
|
109418
|
-
class: `${mergedClsPrefix}-list-item__content ${mergedClsPrefix}-list-item__content--right`
|
|
109419
|
-
},
|
|
109420
|
-
headerSideNode,
|
|
109421
|
-
descriptionSideNode
|
|
109370
|
+
) : typeof content === "string" ? props.text : content()
|
|
109422
109371
|
) : null;
|
|
109423
|
-
return vue.h(
|
|
109424
|
-
mergedTag,
|
|
109425
|
-
{
|
|
109426
|
-
class: [
|
|
109427
|
-
...sharedCls,
|
|
109428
|
-
`${mergedClsPrefix}-list-item--default`,
|
|
109429
|
-
this.mergedDescriptionFirst && `${mergedClsPrefix}-list-item--description-first`,
|
|
109430
|
-
this.mergedColumnsEven && `${mergedClsPrefix}-list-item--columns-even`,
|
|
109431
|
-
this.mergedLoadingSkeleton && `${mergedClsPrefix}-list-item--loading-skeleton`
|
|
109432
|
-
],
|
|
109433
|
-
...sharedAttrs
|
|
109434
|
-
},
|
|
109435
|
-
[
|
|
109436
|
-
prefixNode,
|
|
109437
|
-
/* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-list-item__main` }, avatarNode, /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-list-item__text` }, leftNode, rightNode), iconNode),
|
|
109438
|
-
suffixNode,
|
|
109439
|
-
showDivider && /* @__PURE__ */ vue.h("hr", { class: `${mergedClsPrefix}-list-item__divider` })
|
|
109440
|
-
]
|
|
109441
|
-
);
|
|
109442
109372
|
}
|
|
109373
|
+
const headerNode = renderTextNode(header, headerProps, "title");
|
|
109374
|
+
const descriptionNode = renderTextNode(
|
|
109375
|
+
description,
|
|
109376
|
+
descriptionProps,
|
|
109377
|
+
"subtitle"
|
|
109378
|
+
);
|
|
109379
|
+
const headerSide = this.headerSide?.text || resolveSlot("headerSide");
|
|
109380
|
+
const descriptionSide = this.descriptionSide?.text || resolveSlot("descriptionSide");
|
|
109381
|
+
const hasRight = !!(headerSide || descriptionSide);
|
|
109382
|
+
const headerSideProps = { ...defaultHeaderProps, ...this.headerSide };
|
|
109383
|
+
const descriptionSideProps = {
|
|
109384
|
+
...defaultDescriptionProps,
|
|
109385
|
+
...this.descriptionSide
|
|
109386
|
+
};
|
|
109387
|
+
const headerSideNode = renderTextNode(headerSide, headerSideProps, "title");
|
|
109388
|
+
const descriptionSideNode = renderTextNode(
|
|
109389
|
+
descriptionSide,
|
|
109390
|
+
descriptionSideProps,
|
|
109391
|
+
"subtitle"
|
|
109392
|
+
);
|
|
109393
|
+
const leftNode = hasLeft ? /* @__PURE__ */ vue.h(
|
|
109394
|
+
"div",
|
|
109395
|
+
{
|
|
109396
|
+
class: [
|
|
109397
|
+
`${mergedClsPrefix}-list-item__content`,
|
|
109398
|
+
`${mergedClsPrefix}-list-item__content--left`,
|
|
109399
|
+
headerProps.align && `${mergedClsPrefix}-align-${headerProps.align}`,
|
|
109400
|
+
!(headerSide || descriptionSide) && `${mergedClsPrefix}-list-item__content--full`
|
|
109401
|
+
]
|
|
109402
|
+
},
|
|
109403
|
+
headerProps?.position === "top" && descriptionProps.position === "bottom" ? [headerNode, descriptionNode] : [descriptionNode, headerNode]
|
|
109404
|
+
) : null;
|
|
109405
|
+
const rightNode = hasRight ? /* @__PURE__ */ vue.h(
|
|
109406
|
+
"div",
|
|
109407
|
+
{
|
|
109408
|
+
class: [
|
|
109409
|
+
`${mergedClsPrefix}-list-item__content`,
|
|
109410
|
+
`${mergedClsPrefix}-list-item__content--right`,
|
|
109411
|
+
headerSideProps.align && `${mergedClsPrefix}-align-${headerSideProps.align}`,
|
|
109412
|
+
!(header || description) && `${mergedClsPrefix}-list-item__content--full`
|
|
109413
|
+
]
|
|
109414
|
+
},
|
|
109415
|
+
headerSideProps?.position === "top" && descriptionSideProps.position === "bottom" ? [headerSideNode, descriptionSideNode] : [descriptionSideNode, headerSideNode]
|
|
109416
|
+
) : null;
|
|
109417
|
+
const suffixIcon = !skeletonOn && this.mergedShowIcon ? /* @__PURE__ */ vue.h(UBaseIcon, { clsPrefix: mergedClsPrefix }, () => /* @__PURE__ */ vue.h(ChevronRightIcon, null)) : null;
|
|
109418
|
+
const suffixSkeletonSize = 24;
|
|
109419
|
+
const suffixNode = /* @__PURE__ */ vue.h(
|
|
109420
|
+
"div",
|
|
109421
|
+
{
|
|
109422
|
+
class: `${mergedClsPrefix}-list-item__suffix ${mergedClsPrefix}-align-${suffixAlign}`
|
|
109423
|
+
},
|
|
109424
|
+
(skeletonOn || this.loadingSuffix) && this.mergedShowIcon ? /* @__PURE__ */ vue.h(
|
|
109425
|
+
UBaseSkeleton,
|
|
109426
|
+
{
|
|
109427
|
+
width: `${suffixSkeletonSize}px`,
|
|
109428
|
+
height: `${suffixSkeletonSize}px`,
|
|
109429
|
+
circle: true
|
|
109430
|
+
}
|
|
109431
|
+
) : [$slots.suffix ? $slots.suffix() : suffixIcon]
|
|
109432
|
+
);
|
|
109433
|
+
return vue.h(mergedTag, { class: sharedCls, ...sharedAttrs }, [
|
|
109434
|
+
prefixNode,
|
|
109435
|
+
/* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-list-item__main` }, /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-list-item__text` }, $slots.default ? $slots.default() : [leftNode, rightNode])),
|
|
109436
|
+
suffixNode,
|
|
109437
|
+
showDivider && /* @__PURE__ */ vue.h("hr", { class: `${mergedClsPrefix}-list-item__divider` })
|
|
109438
|
+
]);
|
|
109443
109439
|
}
|
|
109444
109440
|
});
|
|
109445
109441
|
|
|
@@ -124141,30 +124137,32 @@
|
|
|
124141
124137
|
!this.vertical && !imageCardTypes.includes(listType) && `${clsPrefix}-upload-file-loader--default`
|
|
124142
124138
|
]
|
|
124143
124139
|
},
|
|
124144
|
-
|
|
124145
|
-
|
|
124146
|
-
{
|
|
124147
|
-
class: [
|
|
124148
|
-
`${clsPrefix}-upload-file`,
|
|
124149
|
-
`${clsPrefix}-upload-file--${this.progressStatus}-status`,
|
|
124150
|
-
file.url && file.status !== "error" && imageCardTypes.includes(listType) && `${clsPrefix}-upload-file--with-url`,
|
|
124151
|
-
`${clsPrefix}-upload-file--${listType === "image" || listType === "image-card" ? "image-card" : "text"}-type`
|
|
124152
|
-
]
|
|
124153
|
-
},
|
|
124154
|
-
/* @__PURE__ */ vue.h(
|
|
124140
|
+
{
|
|
124141
|
+
default: () => /* @__PURE__ */ vue.h(
|
|
124155
124142
|
"div",
|
|
124156
124143
|
{
|
|
124157
124144
|
class: [
|
|
124158
|
-
`${clsPrefix}-upload-file
|
|
124159
|
-
|
|
124145
|
+
`${clsPrefix}-upload-file`,
|
|
124146
|
+
`${clsPrefix}-upload-file--${this.progressStatus}-status`,
|
|
124147
|
+
file.url && file.status !== "error" && imageCardTypes.includes(listType) && `${clsPrefix}-upload-file--with-url`,
|
|
124148
|
+
`${clsPrefix}-upload-file--${listType === "image" || listType === "image-card" ? "image-card" : "text"}-type`
|
|
124160
124149
|
]
|
|
124161
124150
|
},
|
|
124162
|
-
|
|
124163
|
-
|
|
124164
|
-
|
|
124165
|
-
|
|
124166
|
-
|
|
124167
|
-
|
|
124151
|
+
/* @__PURE__ */ vue.h(
|
|
124152
|
+
"div",
|
|
124153
|
+
{
|
|
124154
|
+
class: [
|
|
124155
|
+
`${clsPrefix}-upload-file-info`,
|
|
124156
|
+
imageCardTypes.includes(listType) && `${clsPrefix}-upload-file-info--vertical`
|
|
124157
|
+
]
|
|
124158
|
+
},
|
|
124159
|
+
icon,
|
|
124160
|
+
/* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-upload-file-info__name` }, /* @__PURE__ */ vue.h(vue.Fragment, null, /* @__PURE__ */ vue.h("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-title"] ? this.$slots["upload-file-title"]({ file }) : file.name), /* @__PURE__ */ vue.h("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-subtitle"] ? this.$slots["upload-file-subtitle"]({ file }) : ""))),
|
|
124161
|
+
actionsNode
|
|
124162
|
+
),
|
|
124163
|
+
this.showProgress && /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-upload-file-overlay` })
|
|
124164
|
+
)
|
|
124165
|
+
}
|
|
124168
124166
|
);
|
|
124169
124167
|
}
|
|
124170
124168
|
});
|
|
@@ -126215,7 +126213,7 @@
|
|
|
126215
126213
|
UAvatar: UAvatar,
|
|
126216
126214
|
UAvatarGroup: AvatarGroup,
|
|
126217
126215
|
UBackTop: BackTop,
|
|
126218
|
-
UBadge:
|
|
126216
|
+
UBadge: UBadge,
|
|
126219
126217
|
UBlockquote: blockquote,
|
|
126220
126218
|
UBreadcrumb: Breadcrumb,
|
|
126221
126219
|
UBreadcrumbItem: BreadcrumbItem,
|
|
@@ -126425,7 +126423,7 @@
|
|
|
126425
126423
|
inputProps: inputProps,
|
|
126426
126424
|
layoutContentProps: layoutProps,
|
|
126427
126425
|
layoutFooterProps: layoutFooterProps,
|
|
126428
|
-
layoutHeaderProps: headerProps$
|
|
126426
|
+
layoutHeaderProps: headerProps$2,
|
|
126429
126427
|
layoutProps: layoutProps,
|
|
126430
126428
|
layoutSiderProps: layoutSiderProps,
|
|
126431
126429
|
legacyTransferProps: transferProps$1,
|
|
@@ -126489,7 +126487,7 @@
|
|
|
126489
126487
|
watermarkProps: watermarkProps
|
|
126490
126488
|
});
|
|
126491
126489
|
|
|
126492
|
-
var version = "1.5.
|
|
126490
|
+
var version = "1.5.2";
|
|
126493
126491
|
|
|
126494
126492
|
function create({
|
|
126495
126493
|
componentPrefix = "U",
|
|
@@ -127301,7 +127299,7 @@
|
|
|
127301
127299
|
exports.UAvatar = UAvatar;
|
|
127302
127300
|
exports.UAvatarGroup = AvatarGroup;
|
|
127303
127301
|
exports.UBackTop = BackTop;
|
|
127304
|
-
exports.UBadge =
|
|
127302
|
+
exports.UBadge = UBadge;
|
|
127305
127303
|
exports.UBlockquote = blockquote;
|
|
127306
127304
|
exports.UBreadcrumb = Breadcrumb;
|
|
127307
127305
|
exports.UBreadcrumbItem = BreadcrumbItem;
|
|
@@ -127597,7 +127595,7 @@
|
|
|
127597
127595
|
exports.layoutContentProps = layoutProps;
|
|
127598
127596
|
exports.layoutDark = layoutDark;
|
|
127599
127597
|
exports.layoutFooterProps = layoutFooterProps;
|
|
127600
|
-
exports.layoutHeaderProps = headerProps$
|
|
127598
|
+
exports.layoutHeaderProps = headerProps$2;
|
|
127601
127599
|
exports.layoutProps = layoutProps;
|
|
127602
127600
|
exports.layoutSiderProps = layoutSiderProps;
|
|
127603
127601
|
exports.legacyTransferProps = transferProps$1;
|