@uzum-tech/ui 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +119 -66
- package/dist/index.prod.js +2 -2
- package/es/collapse/src/Collapse.d.ts +47 -14
- package/es/collapse/src/Collapse.js +6 -3
- package/es/collapse/src/CollapseItem.js +3 -2
- package/es/collapse/src/styles/index.cssr.js +27 -7
- package/es/collapse/styles/light.d.ts +4 -1
- package/es/collapse/styles/light.js +6 -3
- package/es/data-table/src/DataTable.d.ts +2 -0
- package/es/data-table/src/DataTable.js +1 -0
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +5 -4
- package/es/data-table/src/interface.d.ts +3 -0
- package/es/data-table/src/interface.js +1 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/es/dynamic-tags/styles/light.d.ts +1 -0
- package/es/tag/src/Tag.d.ts +27 -13
- package/es/tag/src/Tag.js +7 -2
- package/es/tag/src/styles/index.cssr.js +13 -3
- package/es/tag/styles/light.d.ts +1 -0
- package/es/tag/styles/light.js +7 -6
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/collapse/src/Collapse.d.ts +47 -14
- package/lib/collapse/src/Collapse.js +6 -3
- package/lib/collapse/src/CollapseItem.js +3 -2
- package/lib/collapse/src/styles/index.cssr.js +27 -7
- package/lib/collapse/styles/light.d.ts +4 -1
- package/lib/collapse/styles/light.js +6 -3
- package/lib/data-table/src/DataTable.d.ts +2 -0
- package/lib/data-table/src/DataTable.js +1 -0
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +5 -4
- package/lib/data-table/src/interface.d.ts +3 -0
- package/lib/data-table/src/interface.js +1 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/lib/dynamic-tags/styles/light.d.ts +1 -0
- package/lib/tag/src/Tag.d.ts +27 -13
- package/lib/tag/src/Tag.js +7 -2
- package/lib/tag/src/styles/index.cssr.js +13 -3
- package/lib/tag/styles/light.d.ts +1 -0
- package/lib/tag/styles/light.js +7 -6
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +13 -1
package/es/tag/src/Tag.d.ts
CHANGED
|
@@ -11,8 +11,13 @@ export declare const tagProps: {
|
|
|
11
11
|
type: PropType<boolean | undefined>;
|
|
12
12
|
default: undefined;
|
|
13
13
|
};
|
|
14
|
+
size: {
|
|
15
|
+
type: PropType<"small" | "medium" | "large">;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
14
18
|
checked: BooleanConstructor;
|
|
15
19
|
checkable: BooleanConstructor;
|
|
20
|
+
outline: BooleanConstructor;
|
|
16
21
|
strong: BooleanConstructor;
|
|
17
22
|
triggerClickOnClose: BooleanConstructor;
|
|
18
23
|
onClose: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
@@ -35,10 +40,6 @@ export declare const tagProps: {
|
|
|
35
40
|
readonly default: "default";
|
|
36
41
|
};
|
|
37
42
|
round: BooleanConstructor;
|
|
38
|
-
size: {
|
|
39
|
-
readonly type: PropType<"tiny" | "small" | "medium" | "large">;
|
|
40
|
-
readonly default: "medium";
|
|
41
|
-
};
|
|
42
43
|
closable: {
|
|
43
44
|
readonly type: PropType<boolean | undefined>;
|
|
44
45
|
readonly default: undefined;
|
|
@@ -80,6 +81,7 @@ export declare const tagProps: {
|
|
|
80
81
|
textColorPressedCheckable: string;
|
|
81
82
|
textColorChecked: string;
|
|
82
83
|
colorCheckable: string;
|
|
84
|
+
colorCheckableOutline: string;
|
|
83
85
|
colorHoverCheckable: string;
|
|
84
86
|
colorPressedCheckable: string;
|
|
85
87
|
colorChecked: string;
|
|
@@ -183,6 +185,7 @@ export declare const tagProps: {
|
|
|
183
185
|
textColorPressedCheckable: string;
|
|
184
186
|
textColorChecked: string;
|
|
185
187
|
colorCheckable: string;
|
|
188
|
+
colorCheckableOutline: string;
|
|
186
189
|
colorHoverCheckable: string;
|
|
187
190
|
colorPressedCheckable: string;
|
|
188
191
|
colorChecked: string;
|
|
@@ -286,6 +289,7 @@ export declare const tagProps: {
|
|
|
286
289
|
textColorPressedCheckable: string;
|
|
287
290
|
textColorChecked: string;
|
|
288
291
|
colorCheckable: string;
|
|
292
|
+
colorCheckableOutline: string;
|
|
289
293
|
colorHoverCheckable: string;
|
|
290
294
|
colorPressedCheckable: string;
|
|
291
295
|
colorChecked: string;
|
|
@@ -367,8 +371,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
367
371
|
type: PropType<boolean | undefined>;
|
|
368
372
|
default: undefined;
|
|
369
373
|
};
|
|
374
|
+
size: {
|
|
375
|
+
type: PropType<"small" | "medium" | "large">;
|
|
376
|
+
default: string;
|
|
377
|
+
};
|
|
370
378
|
checked: BooleanConstructor;
|
|
371
379
|
checkable: BooleanConstructor;
|
|
380
|
+
outline: BooleanConstructor;
|
|
372
381
|
strong: BooleanConstructor;
|
|
373
382
|
triggerClickOnClose: BooleanConstructor;
|
|
374
383
|
onClose: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
@@ -391,10 +400,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
391
400
|
readonly default: "default";
|
|
392
401
|
};
|
|
393
402
|
round: BooleanConstructor;
|
|
394
|
-
size: {
|
|
395
|
-
readonly type: PropType<"tiny" | "small" | "medium" | "large">;
|
|
396
|
-
readonly default: "medium";
|
|
397
|
-
};
|
|
398
403
|
closable: {
|
|
399
404
|
readonly type: PropType<boolean | undefined>;
|
|
400
405
|
readonly default: undefined;
|
|
@@ -436,6 +441,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
436
441
|
textColorPressedCheckable: string;
|
|
437
442
|
textColorChecked: string;
|
|
438
443
|
colorCheckable: string;
|
|
444
|
+
colorCheckableOutline: string;
|
|
439
445
|
colorHoverCheckable: string;
|
|
440
446
|
colorPressedCheckable: string;
|
|
441
447
|
colorChecked: string;
|
|
@@ -539,6 +545,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
539
545
|
textColorPressedCheckable: string;
|
|
540
546
|
textColorChecked: string;
|
|
541
547
|
colorCheckable: string;
|
|
548
|
+
colorCheckableOutline: string;
|
|
542
549
|
colorHoverCheckable: string;
|
|
543
550
|
colorPressedCheckable: string;
|
|
544
551
|
colorChecked: string;
|
|
@@ -642,6 +649,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
642
649
|
textColorPressedCheckable: string;
|
|
643
650
|
textColorChecked: string;
|
|
644
651
|
colorCheckable: string;
|
|
652
|
+
colorCheckableOutline: string;
|
|
645
653
|
colorHoverCheckable: string;
|
|
646
654
|
colorPressedCheckable: string;
|
|
647
655
|
colorChecked: string;
|
|
@@ -739,6 +747,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
739
747
|
'--u-close-size': string;
|
|
740
748
|
'--u-color': string;
|
|
741
749
|
'--u-color-checkable': string;
|
|
750
|
+
'--u-color-checkable-outline': string;
|
|
742
751
|
'--u-color-checked': string;
|
|
743
752
|
'--u-color-checked-hover': string;
|
|
744
753
|
'--u-color-checked-pressed': string;
|
|
@@ -762,8 +771,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
762
771
|
type: PropType<boolean | undefined>;
|
|
763
772
|
default: undefined;
|
|
764
773
|
};
|
|
774
|
+
size: {
|
|
775
|
+
type: PropType<"small" | "medium" | "large">;
|
|
776
|
+
default: string;
|
|
777
|
+
};
|
|
765
778
|
checked: BooleanConstructor;
|
|
766
779
|
checkable: BooleanConstructor;
|
|
780
|
+
outline: BooleanConstructor;
|
|
767
781
|
strong: BooleanConstructor;
|
|
768
782
|
triggerClickOnClose: BooleanConstructor;
|
|
769
783
|
onClose: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
@@ -786,10 +800,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
786
800
|
readonly default: "default";
|
|
787
801
|
};
|
|
788
802
|
round: BooleanConstructor;
|
|
789
|
-
size: {
|
|
790
|
-
readonly type: PropType<"tiny" | "small" | "medium" | "large">;
|
|
791
|
-
readonly default: "medium";
|
|
792
|
-
};
|
|
793
803
|
closable: {
|
|
794
804
|
readonly type: PropType<boolean | undefined>;
|
|
795
805
|
readonly default: undefined;
|
|
@@ -831,6 +841,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
831
841
|
textColorPressedCheckable: string;
|
|
832
842
|
textColorChecked: string;
|
|
833
843
|
colorCheckable: string;
|
|
844
|
+
colorCheckableOutline: string;
|
|
834
845
|
colorHoverCheckable: string;
|
|
835
846
|
colorPressedCheckable: string;
|
|
836
847
|
colorChecked: string;
|
|
@@ -934,6 +945,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
934
945
|
textColorPressedCheckable: string;
|
|
935
946
|
textColorChecked: string;
|
|
936
947
|
colorCheckable: string;
|
|
948
|
+
colorCheckableOutline: string;
|
|
937
949
|
colorHoverCheckable: string;
|
|
938
950
|
colorPressedCheckable: string;
|
|
939
951
|
colorChecked: string;
|
|
@@ -1037,6 +1049,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1037
1049
|
textColorPressedCheckable: string;
|
|
1038
1050
|
textColorChecked: string;
|
|
1039
1051
|
colorCheckable: string;
|
|
1052
|
+
colorCheckableOutline: string;
|
|
1040
1053
|
colorHoverCheckable: string;
|
|
1041
1054
|
colorPressedCheckable: string;
|
|
1042
1055
|
colorChecked: string;
|
|
@@ -1111,11 +1124,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1111
1124
|
type: "default" | "tertiary" | "primary" | "info" | "success" | "warning" | "error";
|
|
1112
1125
|
disabled: boolean | undefined;
|
|
1113
1126
|
bordered: boolean | undefined;
|
|
1114
|
-
size: "small" | "
|
|
1127
|
+
size: "small" | "medium" | "large";
|
|
1115
1128
|
checked: boolean;
|
|
1116
1129
|
round: boolean;
|
|
1117
1130
|
closable: boolean | undefined;
|
|
1118
1131
|
strong: boolean;
|
|
1132
|
+
outline: boolean;
|
|
1119
1133
|
checkable: boolean;
|
|
1120
1134
|
triggerClickOnClose: boolean;
|
|
1121
1135
|
internalCloseFocusable: boolean;
|
package/es/tag/src/Tag.js
CHANGED
|
@@ -9,7 +9,10 @@ import style from './styles/index.cssr';
|
|
|
9
9
|
export const tagProps = Object.assign(Object.assign(Object.assign({}, useTheme.props), commonProps), { bordered: {
|
|
10
10
|
type: Boolean,
|
|
11
11
|
default: undefined
|
|
12
|
-
},
|
|
12
|
+
}, size: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: 'large'
|
|
15
|
+
}, checked: Boolean, checkable: Boolean, outline: Boolean, strong: Boolean, triggerClickOnClose: Boolean, onClose: [Array, Function], onMouseenter: Function, onMouseleave: Function, 'onUpdate:checked': Function, onUpdateChecked: Function,
|
|
13
16
|
// private
|
|
14
17
|
internalCloseFocusable: {
|
|
15
18
|
type: Boolean,
|
|
@@ -72,7 +75,7 @@ export default defineComponent({
|
|
|
72
75
|
const rtlEnabledRef = useRtl('Tag', mergedRtlRef, mergedClsPrefixRef);
|
|
73
76
|
const cssVarsRef = computed(() => {
|
|
74
77
|
const { type, size, color: { color, textColor } = {} } = props;
|
|
75
|
-
const { common: { cubicBezierEaseInOut }, self: { closeMargin, closeMarginRtl, borderRadius, opacityDisabled, textColorCheckable, textColorHoverCheckable, textColorPressedCheckable, textColorChecked, colorCheckable, colorHoverCheckable, colorPressedCheckable, colorChecked, colorCheckedHover, colorCheckedPressed, closeBorderRadius, fontWeightStrong, fontWeight, [createKey('padding', size)]: padding, [createKey('colorBordered', type)]: colorBordered, [createKey('closeSize', size)]: closeSize, [createKey('closeIconSize', size)]: closeIconSize, [createKey('fontSize', size)]: fontSize, [createKey('height', size)]: height, [createKey('color', type)]: typedColor, [createKey('textColor', type)]: typeTextColor, [createKey('border', type)]: border, [createKey('closeIconColor', type)]: closeIconColor, [createKey('closeIconColorHover', type)]: closeIconColorHover, [createKey('closeIconColorPressed', type)]: closeIconColorPressed, [createKey('closeColorHover', type)]: closeColorHover, [createKey('closeColorPressed', type)]: closeColorPressed } } = themeRef.value;
|
|
78
|
+
const { common: { cubicBezierEaseInOut }, self: { closeMargin, closeMarginRtl, borderRadius, opacityDisabled, textColorCheckable, textColorHoverCheckable, textColorPressedCheckable, textColorChecked, colorCheckable, colorCheckableOutline, colorHoverCheckable, colorPressedCheckable, colorChecked, colorCheckedHover, colorCheckedPressed, closeBorderRadius, fontWeightStrong, fontWeight, [createKey('padding', size)]: padding, [createKey('colorBordered', type)]: colorBordered, [createKey('closeSize', size)]: closeSize, [createKey('closeIconSize', size)]: closeIconSize, [createKey('fontSize', size)]: fontSize, [createKey('height', size)]: height, [createKey('color', type)]: typedColor, [createKey('textColor', type)]: typeTextColor, [createKey('border', type)]: border, [createKey('closeIconColor', type)]: closeIconColor, [createKey('closeIconColorHover', type)]: closeIconColorHover, [createKey('closeIconColorPressed', type)]: closeIconColorPressed, [createKey('closeColorHover', type)]: closeColorHover, [createKey('closeColorPressed', type)]: closeColorPressed } } = themeRef.value;
|
|
76
79
|
return {
|
|
77
80
|
'--u-font-weight-strong': fontWeightStrong,
|
|
78
81
|
'--u-font-weight': fontWeight,
|
|
@@ -93,6 +96,7 @@ export default defineComponent({
|
|
|
93
96
|
'--u-close-size': closeSize,
|
|
94
97
|
'--u-color': color || (mergedBorderedRef.value ? colorBordered : typedColor),
|
|
95
98
|
'--u-color-checkable': colorCheckable,
|
|
99
|
+
'--u-color-checkable-outline': colorCheckableOutline,
|
|
96
100
|
'--u-color-checked': colorChecked,
|
|
97
101
|
'--u-color-checked-hover': colorCheckedHover,
|
|
98
102
|
'--u-color-checked-pressed': colorCheckedPressed,
|
|
@@ -144,6 +148,7 @@ export default defineComponent({
|
|
|
144
148
|
[`${mergedClsPrefix}-tag--strong`]: this.strong,
|
|
145
149
|
[`${mergedClsPrefix}-tag--disabled`]: this.disabled,
|
|
146
150
|
[`${mergedClsPrefix}-tag--checkable`]: this.checkable,
|
|
151
|
+
[`${mergedClsPrefix}-tag--outline`]: this.checkable && this.outline,
|
|
147
152
|
[`${mergedClsPrefix}-tag--checked`]: this.checkable && this.checked,
|
|
148
153
|
[`${mergedClsPrefix}-tag--round`]: round,
|
|
149
154
|
[`${mergedClsPrefix}-tag--avatar`]: avatarNode,
|
|
@@ -50,7 +50,9 @@ export default cB('tag', `
|
|
|
50
50
|
font-weight: var(--u-font-weight);
|
|
51
51
|
`, [cM('strong', `
|
|
52
52
|
font-weight: var(--u-font-weight-strong);
|
|
53
|
-
`), cE('
|
|
53
|
+
`), cM('closable', [cE('content', `
|
|
54
|
+
padding-left: 4px;
|
|
55
|
+
`)]), cE('border', `
|
|
54
56
|
pointer-events: none;
|
|
55
57
|
position: absolute;
|
|
56
58
|
left: 0;
|
|
@@ -95,7 +97,11 @@ export default cB('tag', `
|
|
|
95
97
|
padding: 0px 8px;
|
|
96
98
|
background-color: var(--u-color-checkable);
|
|
97
99
|
transition: border-color .3s var(--u-bezier);
|
|
98
|
-
`, [
|
|
100
|
+
`, [cE('border', `
|
|
101
|
+
border: unset;
|
|
102
|
+
`), cE('content', `
|
|
103
|
+
padding-left: 0px;
|
|
104
|
+
`), cNotM('disabled', [c('&:hover', 'background-color: var(--u-color-hover-checkable);', [cNotM('checked', 'color: var(--u-text-color-hover-checkable);')]), c('&:focus', `
|
|
99
105
|
background-color: var(--u-color-pressed-checkable);
|
|
100
106
|
transition: border-color .3s var(--u-bezier);`, [cNotM('checked', 'color: var(--u-text-color-pressed-checkable);')]), c('&:active', `
|
|
101
107
|
background-color: var(--u-color-pressed-checkable);
|
|
@@ -105,4 +111,8 @@ export default cB('tag', `
|
|
|
105
111
|
`, [cE('border', `
|
|
106
112
|
border-color: var(--u-color-checked);
|
|
107
113
|
transition: none;
|
|
108
|
-
`), cNotM('disabled', [c('&:hover', 'background-color: var(--u-color-checked-hover);'), c('&:focus', 'background-color: var(--u-color-checked-hover);'), c('&:active', 'background-color: var(--u-color-checked-pressed);')])])])
|
|
114
|
+
`), cNotM('disabled', [c('&:hover', 'background-color: var(--u-color-checked-hover);'), c('&:focus', 'background-color: var(--u-color-checked-hover);'), c('&:active', 'background-color: var(--u-color-checked-pressed);')])])]), cM('outline', `
|
|
115
|
+
background-color: var(--u-color-checkable-outline);
|
|
116
|
+
`, [cE('border', `
|
|
117
|
+
border: var(--u-border);
|
|
118
|
+
`)])]);
|
package/es/tag/styles/light.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
33
33
|
textColorPressedCheckable: string;
|
|
34
34
|
textColorChecked: string;
|
|
35
35
|
colorCheckable: string;
|
|
36
|
+
colorCheckableOutline: string;
|
|
36
37
|
colorHoverCheckable: string;
|
|
37
38
|
colorPressedCheckable: string;
|
|
38
39
|
colorChecked: string;
|
package/es/tag/styles/light.js
CHANGED
|
@@ -12,14 +12,14 @@ export const self = (vars) => {
|
|
|
12
12
|
closeSizeSmall: '14px',
|
|
13
13
|
closeSizeMedium: '16px',
|
|
14
14
|
closeSizeLarge: '18px',
|
|
15
|
-
paddingTiny: '2px 6px
|
|
16
|
-
paddingSmall: '2px 6px
|
|
17
|
-
paddingMedium: '2px 6px
|
|
18
|
-
paddingLarge: '
|
|
15
|
+
paddingTiny: '2px 6px',
|
|
16
|
+
paddingSmall: '2px 6px',
|
|
17
|
+
paddingMedium: '2px 6px',
|
|
18
|
+
paddingLarge: '6px 8px',
|
|
19
19
|
closeMargin: '0 0 0 4px',
|
|
20
20
|
closeMarginRtl: '0 4px 0 0',
|
|
21
21
|
closeBorderRadius: borderRadius,
|
|
22
|
-
heightTiny: '
|
|
22
|
+
heightTiny: '20px',
|
|
23
23
|
heightSmall: '20px',
|
|
24
24
|
heightMedium: '24px',
|
|
25
25
|
heightLarge: '32px',
|
|
@@ -36,7 +36,8 @@ export const self = (vars) => {
|
|
|
36
36
|
textColorHoverCheckable: textPrimary,
|
|
37
37
|
textColorPressedCheckable: textPrimary,
|
|
38
38
|
textColorChecked: textQuaternary,
|
|
39
|
-
colorCheckable:
|
|
39
|
+
colorCheckable: elementsQuaternary,
|
|
40
|
+
colorCheckableOutline: elementsSecondary,
|
|
40
41
|
colorHoverCheckable: elementsQuaternary,
|
|
41
42
|
colorPressedCheckable: elementsQuaternary,
|
|
42
43
|
colorChecked: elementsPrimary,
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.5.
|
|
1
|
+
declare const _default: "1.5.4";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.5.
|
|
1
|
+
export default '1.5.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;
|
|
@@ -91,6 +91,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
91
|
readonly type: import("vue").PropType<import("../../_internal").BaseLoadingExposedProps>;
|
|
92
92
|
readonly default: {};
|
|
93
93
|
};
|
|
94
|
+
readonly emptyProps: import("vue").PropType<Partial<import("../..").EmptyProps>>;
|
|
94
95
|
readonly onLoad: import("vue").PropType<import("./interface").DataTableOnLoad>;
|
|
95
96
|
readonly 'onUpdate:page': import("vue").PropType<import("../../pagination").PaginationProps["onUpdate:page"]>;
|
|
96
97
|
readonly onUpdatePage: import("vue").PropType<import("../../pagination").PaginationProps["onUpdate:page"]>;
|
|
@@ -4368,6 +4369,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4368
4369
|
readonly type: import("vue").PropType<import("../../_internal").BaseLoadingExposedProps>;
|
|
4369
4370
|
readonly default: {};
|
|
4370
4371
|
};
|
|
4372
|
+
readonly emptyProps: import("vue").PropType<Partial<import("../..").EmptyProps>>;
|
|
4371
4373
|
readonly onLoad: import("vue").PropType<import("./interface").DataTableOnLoad>;
|
|
4372
4374
|
readonly 'onUpdate:page': import("vue").PropType<import("../../pagination").PaginationProps["onUpdate:page"]>;
|
|
4373
4375
|
readonly onUpdatePage: import("vue").PropType<import("../../pagination").PaginationProps["onUpdate:page"]>;
|
|
@@ -305,6 +305,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
305
305
|
handleTableBodyScroll,
|
|
306
306
|
setHeaderScrollLeft,
|
|
307
307
|
renderCell: (0, vue_1.toRef)(props, 'renderCell'),
|
|
308
|
+
emptyPropsRef: (0, vue_1.toRef)(props, 'emptyProps'),
|
|
308
309
|
handleEdit
|
|
309
310
|
});
|
|
310
311
|
const exposedMethods = {
|
|
@@ -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>;
|