@uzum-tech/ui 1.4.1 → 1.5.0
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 +65374 -64281
- package/dist/index.prod.js +3 -3
- package/es/_internal/icons/SiderUnionBorder.js +1 -1
- package/es/_internal/index.d.ts +2 -0
- package/es/_internal/index.js +1 -0
- package/es/_internal/typography/index.d.ts +2 -0
- package/es/_internal/typography/index.js +1 -0
- package/es/_internal/typography/src/styles/text.cssr.d.ts +2 -0
- package/es/_internal/typography/src/styles/text.cssr.js +78 -0
- package/es/_internal/typography/src/text.d.ts +246 -0
- package/es/_internal/typography/src/text.js +79 -0
- package/es/_internal/typography/src/variants.d.ts +13 -0
- package/es/_internal/typography/src/variants.js +132 -0
- package/es/_internal/typography/styles/dark.d.ts +3 -0
- package/es/_internal/typography/styles/dark.js +8 -0
- package/es/_internal/typography/styles/index.d.ts +3 -0
- package/es/_internal/typography/styles/index.js +2 -0
- package/es/_internal/typography/styles/light.d.ts +24 -0
- package/es/_internal/typography/styles/light.js +28 -0
- package/es/_styles/common/_common.d.ts +2 -0
- package/es/_styles/common/_common.js +3 -1
- package/es/_styles/common/light.d.ts +2 -0
- package/es/action-card/index.d.ts +4 -0
- package/es/action-card/index.js +2 -0
- package/es/action-card/src/ActionCard.d.ts +313 -0
- package/es/action-card/src/ActionCard.js +101 -0
- package/es/action-card/src/styles/index.cssr.d.ts +2 -0
- package/es/action-card/src/styles/index.cssr.js +113 -0
- package/es/action-card/styles/dark.d.ts +3 -0
- package/es/action-card/styles/dark.js +11 -0
- package/es/action-card/styles/index.d.ts +3 -0
- package/es/action-card/styles/index.js +2 -0
- package/es/action-card/styles/light.d.ts +29 -0
- package/es/action-card/styles/light.js +33 -0
- package/es/avatar/src/Avatar.d.ts +13 -3
- package/es/avatar/src/Avatar.js +4 -3
- package/es/avatar/src/styles/index.cssr.js +3 -2
- package/es/avatar/styles/light.d.ts +1 -0
- package/es/avatar/styles/light.js +4 -3
- package/es/avatar-group/src/AvatarGroup.d.ts +10 -0
- package/es/avatar-group/styles/light.d.ts +1 -0
- package/es/badge/src/Badge.d.ts +10 -0
- package/es/badge/src/Badge.js +3 -2
- package/es/badge/src/styles/index.cssr.js +19 -1
- package/es/badge/styles/light.d.ts +1 -0
- package/es/badge/styles/light.js +4 -3
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +14 -0
- package/es/data-table/src/DataTable.js +3 -3
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.js +10 -1
- package/es/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
- package/es/data-table/src/TableParts/BodySkeleton.js +52 -0
- package/es/data-table/src/TableParts/Header.d.ts +2 -0
- package/es/data-table/src/interface.d.ts +6 -0
- package/es/data-table/src/styles/index.cssr.js +1 -1
- package/es/data-table/styles/light.d.ts +2 -0
- package/es/data-table/styles/light.js +1 -1
- package/es/dialog/src/DialogProvider.d.ts +4 -0
- package/es/icon-wrapper/src/IconWrapper.d.ts +40 -9
- package/es/icon-wrapper/src/IconWrapper.js +23 -5
- package/es/icon-wrapper/src/interface.d.ts +1 -0
- package/es/icon-wrapper/src/interface.js +1 -0
- package/es/icon-wrapper/src/styles/index.cssr.js +17 -5
- package/es/layout/src/styles/layout-sider.cssr.js +1 -1
- package/es/modal/src/BodyWrapper.d.ts +1 -0
- package/es/modal/src/Modal.d.ts +9 -0
- package/es/modal/styles/light.d.ts +2 -0
- package/es/modal/styles/light.js +2 -1
- package/es/pagination/src/Pagination.d.ts +22 -0
- package/es/pagination/src/Pagination.js +4 -2
- package/es/pagination/src/styles/index.cssr.js +11 -0
- package/es/pagination/styles/light.d.ts +4 -0
- package/es/pagination/styles/light.js +7 -5
- package/es/spin/styles/light.js +3 -3
- package/es/steps/src/Step.d.ts +17 -0
- package/es/steps/src/Step.js +81 -25
- package/es/steps/src/Steps.d.ts +127 -1
- package/es/steps/src/Steps.js +4 -1
- package/es/steps/src/interface.d.ts +10 -2
- package/es/steps/src/interface.js +10 -1
- package/es/steps/src/styles/index.cssr.js +115 -3
- package/es/steps/styles/light.d.ts +14 -0
- package/es/steps/styles/light.js +16 -2
- package/es/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/toggle-button/src/ToggleButton.d.ts +13 -0
- package/es/toggle-button/src/ToggleButton.js +5 -2
- package/es/toggle-button/src/styles/toggle-button.cssr.js +3 -0
- package/es/typography/src/a.d.ts +27 -0
- package/es/typography/src/a.js +4 -1
- package/es/typography/src/blockquote.d.ts +27 -0
- package/es/typography/src/blockquote.js +4 -1
- package/es/typography/src/create-header.d.ts +27 -0
- package/es/typography/src/create-header.js +4 -1
- package/es/typography/src/headers.d.ts +108 -0
- package/es/typography/src/hr.d.ts +18 -0
- package/es/typography/src/hr.js +4 -0
- package/es/typography/src/li.js +4 -1
- package/es/typography/src/ol.d.ts +27 -0
- package/es/typography/src/ol.js +4 -1
- package/es/typography/src/p.d.ts +27 -0
- package/es/typography/src/p.js +4 -1
- package/es/typography/src/text.d.ts +128 -524
- package/es/typography/src/text.js +68 -69
- package/es/typography/src/ul.d.ts +27 -0
- package/es/typography/src/ul.js +4 -1
- package/es/typography/styles/light.d.ts +3 -0
- package/es/typography/styles/light.js +3 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/icons/SiderUnionBorder.js +1 -1
- package/lib/_internal/index.d.ts +2 -0
- package/lib/_internal/index.js +4 -1
- package/lib/_internal/typography/index.d.ts +2 -0
- package/lib/_internal/typography/index.js +9 -0
- package/lib/_internal/typography/src/styles/text.cssr.d.ts +2 -0
- package/lib/_internal/typography/src/styles/text.cssr.js +83 -0
- package/lib/_internal/typography/src/text.d.ts +246 -0
- package/lib/_internal/typography/src/text.js +85 -0
- package/lib/_internal/typography/src/variants.d.ts +13 -0
- package/lib/_internal/typography/src/variants.js +137 -0
- package/lib/_internal/typography/styles/dark.d.ts +3 -0
- package/lib/_internal/typography/styles/dark.js +10 -0
- package/lib/_internal/typography/styles/index.d.ts +3 -0
- package/lib/_internal/typography/styles/index.js +10 -0
- package/lib/_internal/typography/styles/light.d.ts +24 -0
- package/lib/_internal/typography/styles/light.js +32 -0
- package/lib/_styles/common/_common.d.ts +2 -0
- package/lib/_styles/common/_common.js +3 -1
- package/lib/_styles/common/light.d.ts +2 -0
- package/lib/action-card/index.d.ts +4 -0
- package/lib/action-card/index.js +11 -0
- package/lib/action-card/src/ActionCard.d.ts +313 -0
- package/lib/action-card/src/ActionCard.js +107 -0
- package/lib/action-card/src/styles/index.cssr.d.ts +2 -0
- package/lib/action-card/src/styles/index.cssr.js +118 -0
- package/lib/action-card/styles/dark.d.ts +3 -0
- package/lib/action-card/styles/dark.js +13 -0
- package/lib/action-card/styles/index.d.ts +3 -0
- package/lib/action-card/styles/index.js +10 -0
- package/lib/action-card/styles/light.d.ts +29 -0
- package/lib/action-card/styles/light.js +37 -0
- package/lib/avatar/src/Avatar.d.ts +13 -3
- package/lib/avatar/src/Avatar.js +4 -3
- package/lib/avatar/src/styles/index.cssr.js +3 -2
- package/lib/avatar/styles/light.d.ts +1 -0
- package/lib/avatar/styles/light.js +4 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +10 -0
- package/lib/avatar-group/styles/light.d.ts +1 -0
- package/lib/badge/src/Badge.d.ts +10 -0
- package/lib/badge/src/Badge.js +3 -2
- package/lib/badge/src/styles/index.cssr.js +19 -1
- package/lib/badge/styles/light.d.ts +1 -0
- package/lib/badge/styles/light.js +4 -3
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +14 -0
- package/lib/data-table/src/DataTable.js +3 -3
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.js +10 -1
- package/lib/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
- package/lib/data-table/src/TableParts/BodySkeleton.js +54 -0
- package/lib/data-table/src/TableParts/Header.d.ts +2 -0
- package/lib/data-table/src/interface.d.ts +6 -0
- package/lib/data-table/src/styles/index.cssr.js +1 -1
- package/lib/data-table/styles/light.d.ts +2 -0
- package/lib/data-table/styles/light.js +1 -1
- package/lib/dialog/src/DialogProvider.d.ts +4 -0
- package/lib/icon-wrapper/src/IconWrapper.d.ts +40 -9
- package/lib/icon-wrapper/src/IconWrapper.js +23 -5
- package/lib/icon-wrapper/src/interface.d.ts +1 -0
- package/lib/icon-wrapper/src/interface.js +2 -0
- package/lib/icon-wrapper/src/styles/index.cssr.js +16 -4
- package/lib/layout/src/styles/layout-sider.cssr.js +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +1 -0
- package/lib/modal/src/Modal.d.ts +9 -0
- package/lib/modal/styles/light.d.ts +2 -0
- package/lib/modal/styles/light.js +2 -1
- package/lib/pagination/src/Pagination.d.ts +22 -0
- package/lib/pagination/src/Pagination.js +4 -2
- package/lib/pagination/src/styles/index.cssr.js +11 -0
- package/lib/pagination/styles/light.d.ts +4 -0
- package/lib/pagination/styles/light.js +7 -5
- package/lib/spin/styles/light.js +3 -3
- package/lib/steps/src/Step.d.ts +17 -0
- package/lib/steps/src/Step.js +81 -25
- package/lib/steps/src/Steps.d.ts +127 -1
- package/lib/steps/src/Steps.js +4 -1
- package/lib/steps/src/interface.d.ts +10 -2
- package/lib/steps/src/interface.js +11 -0
- package/lib/steps/src/styles/index.cssr.js +115 -3
- package/lib/steps/styles/light.d.ts +14 -0
- package/lib/steps/styles/light.js +16 -2
- package/lib/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/lib/themes/dark.js +2 -0
- package/lib/themes/light.js +2 -0
- package/lib/toggle-button/src/ToggleButton.d.ts +13 -0
- package/lib/toggle-button/src/ToggleButton.js +5 -2
- package/lib/toggle-button/src/styles/toggle-button.cssr.js +3 -0
- package/lib/typography/src/a.d.ts +27 -0
- package/lib/typography/src/a.js +3 -0
- package/lib/typography/src/blockquote.d.ts +27 -0
- package/lib/typography/src/blockquote.js +3 -0
- package/lib/typography/src/create-header.d.ts +27 -0
- package/lib/typography/src/create-header.js +3 -0
- package/lib/typography/src/headers.d.ts +108 -0
- package/lib/typography/src/hr.d.ts +18 -0
- package/lib/typography/src/hr.js +4 -0
- package/lib/typography/src/li.js +3 -0
- package/lib/typography/src/ol.d.ts +27 -0
- package/lib/typography/src/ol.js +3 -0
- package/lib/typography/src/p.d.ts +27 -0
- package/lib/typography/src/p.js +3 -0
- package/lib/typography/src/text.d.ts +128 -524
- package/lib/typography/src/text.js +66 -70
- package/lib/typography/src/ul.d.ts +27 -0
- package/lib/typography/src/ul.js +3 -0
- package/lib/typography/styles/light.d.ts +3 -0
- package/lib/typography/styles/light.js +3 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +1 -0
- package/web-types.json +147 -96
|
@@ -4,7 +4,7 @@ import { inputLight } from '../../input/styles';
|
|
|
4
4
|
import { commonLight } from '../../_styles/common';
|
|
5
5
|
import { createTheme } from '../../_mixins';
|
|
6
6
|
export const self = (vars) => {
|
|
7
|
-
const { transparencySecondary, elementsPrimary, brandPrimary500, textSecondary,
|
|
7
|
+
const { brandPrimary100, transparencySecondary, elementsPrimary, brandPrimary500, textSecondary, borderRadius, fontBodyMedium, fontBodyLarge, textPrimary, textTertiary, elementsTertiary, elementsQuaternary } = vars;
|
|
8
8
|
return {
|
|
9
9
|
itemPaddingSmall: '0 4px',
|
|
10
10
|
itemMarginSmall: '0 0 0 2px',
|
|
@@ -56,15 +56,15 @@ export const self = (vars) => {
|
|
|
56
56
|
itemColor: '#0000',
|
|
57
57
|
itemColorHover: transparencySecondary,
|
|
58
58
|
itemColorPressed: transparencySecondary,
|
|
59
|
-
itemColorActive:
|
|
60
|
-
itemColorActiveHover:
|
|
59
|
+
itemColorActive: brandPrimary100,
|
|
60
|
+
itemColorActiveHover: brandPrimary100,
|
|
61
61
|
itemColorDisabled: '#0000',
|
|
62
62
|
itemBorder: '0px',
|
|
63
63
|
itemBorderHover: '0px',
|
|
64
64
|
itemBorderPressed: '0px',
|
|
65
65
|
itemBorderActive: '0px',
|
|
66
66
|
itemBorderDisabled: '0px',
|
|
67
|
-
itemBorderRadius:
|
|
67
|
+
itemBorderRadius: borderRadius,
|
|
68
68
|
itemSizeSmall: '24px',
|
|
69
69
|
itemSizeMedium: '32px',
|
|
70
70
|
itemSizeLarge: '40px',
|
|
@@ -75,7 +75,9 @@ export const self = (vars) => {
|
|
|
75
75
|
jumperFontSizeMedium: fontBodyMedium,
|
|
76
76
|
jumperFontSizeLarge: fontBodyLarge,
|
|
77
77
|
jumperTextColor: textPrimary,
|
|
78
|
-
jumperTextColorDisabled: textTertiary
|
|
78
|
+
jumperTextColorDisabled: textTertiary,
|
|
79
|
+
paginationSizePickerBackground: elementsTertiary,
|
|
80
|
+
paginationSizePickerBorder: elementsQuaternary
|
|
79
81
|
};
|
|
80
82
|
};
|
|
81
83
|
const paginationLight = createTheme({
|
package/es/spin/styles/light.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { commonLight } from '../../_styles/common';
|
|
2
2
|
export const self = (vars) => {
|
|
3
|
-
const { opacityDisabled, elementsPrimary, brandPrimary500, fontBodyMedium, fontBodySmall, fontBodyLarge, fontHeadingSmall,
|
|
3
|
+
const { opacityDisabled, elementsPrimary, brandPrimary500, fontBodyMedium, fontBodySmall, fontBodyLarge, fontHeadingSmall, fontTitleMedium, fontHeadingLarge } = vars;
|
|
4
4
|
return {
|
|
5
5
|
tertiaryColor: elementsPrimary,
|
|
6
6
|
primaryColor: brandPrimary500,
|
|
7
7
|
fontSize: fontBodyMedium,
|
|
8
8
|
sizeTiny: fontBodySmall,
|
|
9
9
|
sizeSmall: fontBodyLarge,
|
|
10
|
-
sizeMedium:
|
|
11
|
-
sizeLarge:
|
|
10
|
+
sizeMedium: fontTitleMedium,
|
|
11
|
+
sizeLarge: fontHeadingSmall,
|
|
12
12
|
sizeHuge: fontHeadingLarge,
|
|
13
13
|
opacitySpinning: opacityDisabled
|
|
14
14
|
};
|
package/es/steps/src/Step.d.ts
CHANGED
|
@@ -44,12 +44,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
'--u-indicator-color': string;
|
|
45
45
|
'--u-indicator-icon-size': string;
|
|
46
46
|
'--u-indicator-index-font-size': string;
|
|
47
|
+
'--u-indicator-index-font-size--outline': string;
|
|
47
48
|
'--u-indicator-size': string;
|
|
49
|
+
'--u-indicator-size--dotted': string;
|
|
50
|
+
'--u-indicator-color--dotted': string;
|
|
48
51
|
'--u-indicator-text-color': string;
|
|
52
|
+
'--u-indicator-text-color--outline': string;
|
|
49
53
|
'--u-splitor-color': string;
|
|
54
|
+
'--u-splitor-color--dotted': string;
|
|
55
|
+
'--u-splitor-color-finish--dotted': string;
|
|
50
56
|
'--u-step-header-font-size': string;
|
|
51
57
|
'--u-step-header-font-weight': string;
|
|
52
58
|
'--u-step-icon-color': string;
|
|
59
|
+
'--u-step-icon-color--outline': string;
|
|
60
|
+
'--u-indicator-background-finish--outline': string;
|
|
61
|
+
'--u-indicator-color-finish--dotted': string;
|
|
62
|
+
'--u-indicator-icon-size--outline': string;
|
|
63
|
+
'--u-indicator-border-color-finish--outline': string;
|
|
64
|
+
'--u-indicator-icon-color--outline': string;
|
|
65
|
+
'--u-indicator-border-radius--outline': string;
|
|
66
|
+
'--u-indicator-border-radius-finish--outline': string;
|
|
67
|
+
'--u-step-height': string;
|
|
68
|
+
'--u-description-text-color--dotted': string;
|
|
69
|
+
'--u-step-header-font-size--dotted': string;
|
|
53
70
|
}> | undefined;
|
|
54
71
|
themeClass: import("vue").Ref<string> | undefined;
|
|
55
72
|
onRender: (() => void) | undefined;
|
package/es/steps/src/Step.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, defineComponent, computed, inject } from 'vue';
|
|
2
|
+
import { defaultVariantConfig, variantConfigs } from './interface';
|
|
2
3
|
import { EditIcon, CheckmarkIcon as FinishedIcon, CloseIcon as ErrorIcon, CheckmarkCircleIcon as HistoryFinishIcon, DismissCircleIcon as HistoryErrorIcon } from '../../_internal/icons';
|
|
3
4
|
import { UIconSwitchTransition, UBaseIcon } from '../../_internal';
|
|
4
5
|
import { call, createKey, resolveSlot, resolveWrappedSlot, throwError } from '../../_utils';
|
|
@@ -30,10 +31,17 @@ export default defineComponent({
|
|
|
30
31
|
const noIconRef = computed(() => props.noIcon);
|
|
31
32
|
const variantBehaviors = computed(() => {
|
|
32
33
|
const variant = variantRef.value;
|
|
34
|
+
const { vertical } = stepsProps;
|
|
35
|
+
const variantConfig = variantConfigs[variant] || {};
|
|
36
|
+
const config = Object.assign(Object.assign({}, defaultVariantConfig), variantConfig);
|
|
37
|
+
const isVertical = variantConfig.vertical !== undefined
|
|
38
|
+
? variantConfig.vertical
|
|
39
|
+
: Boolean(vertical);
|
|
33
40
|
return {
|
|
34
41
|
variant,
|
|
35
|
-
|
|
36
|
-
shouldRenderSplitor:
|
|
42
|
+
isVertical,
|
|
43
|
+
shouldRenderSplitor: config.rendersSplitor,
|
|
44
|
+
showDescription: config.showDescription
|
|
37
45
|
};
|
|
38
46
|
});
|
|
39
47
|
const mergedStatusRef = computed(() => {
|
|
@@ -62,7 +70,7 @@ export default defineComponent({
|
|
|
62
70
|
const cssVarsRef = computed(() => {
|
|
63
71
|
const { value: status } = mergedStatusRef;
|
|
64
72
|
const { size } = stepsProps;
|
|
65
|
-
const { common: { cubicBezierEaseInOut }, self: { stepHeaderFontWeight, [createKey('stepHeaderFontSize', size)]: stepHeaderFontSize, [createKey('indicatorIndexFontSize', size)]: indicatorIndexFontSize, [createKey('indicatorSize', size)]: indicatorSize, [createKey('indicatorIconSize', size)]: indicatorIconSize, [createKey('indicatorTextColor', status)]: indicatorTextColor, [createKey('indicatorBorderColor', status)]: indicatorBorderColor, [createKey('headerTextColor', status)]: headerTextColor, [createKey('splitorColor', status)]: splitorColor, [createKey('indicatorColor', status)]: indicatorColor, [createKey('descriptionTextColor', status)]: descriptionTextColor, [createKey('indicatorIconColor', status)]: indicatorIconColor } } = mergedThemeRef.value;
|
|
73
|
+
const { common: { cubicBezierEaseInOut }, self: { stepHeaderFontWeight, [createKey('stepHeaderFontSize', size)]: stepHeaderFontSize, [createKey('indicatorIndexFontSize', size)]: indicatorIndexFontSize, [createKey('indicatorSize', size)]: indicatorSize, [createKey('indicatorIconSize', size)]: indicatorIconSize, [createKey('indicatorTextColor', status)]: indicatorTextColor, [createKey('indicatorBorderColor', status)]: indicatorBorderColor, [createKey('headerTextColor', status)]: headerTextColor, [createKey('splitorColor', status)]: splitorColor, [createKey('indicatorColor', status)]: indicatorColor, [createKey('descriptionTextColor', status)]: descriptionTextColor, [createKey('indicatorIconColor', status)]: indicatorIconColor, indicatorBackgroundFinishOutline, indicatorIconColorFinishDotted, indicatorIconSizeOutline, indicatorBorderColorFinishOutline, indicatorIconColorOutline, indicatorBorderRadiusOutline, indicatorBorderRadiusFinishOutline, stepHeight, indicatorSizeDotted, descriptionTextColorDotted, stepHeaderFontSizeLarge, splitorColorFinishDotted, indicatorColorDotted, splitorColorDotted, indicatorIndexFontSizeMedium } } = mergedThemeRef.value;
|
|
66
74
|
return {
|
|
67
75
|
'--u-bezier': cubicBezierEaseInOut,
|
|
68
76
|
'--u-description-text-color': descriptionTextColor,
|
|
@@ -71,12 +79,29 @@ export default defineComponent({
|
|
|
71
79
|
'--u-indicator-color': indicatorColor,
|
|
72
80
|
'--u-indicator-icon-size': indicatorIconSize,
|
|
73
81
|
'--u-indicator-index-font-size': indicatorIndexFontSize,
|
|
82
|
+
'--u-indicator-index-font-size--outline': indicatorIndexFontSizeMedium,
|
|
74
83
|
'--u-indicator-size': indicatorSize,
|
|
84
|
+
'--u-indicator-size--dotted': indicatorSizeDotted,
|
|
85
|
+
'--u-indicator-color--dotted': indicatorColorDotted,
|
|
75
86
|
'--u-indicator-text-color': indicatorTextColor,
|
|
87
|
+
'--u-indicator-text-color--outline': headerTextColor,
|
|
76
88
|
'--u-splitor-color': splitorColor,
|
|
89
|
+
'--u-splitor-color--dotted': splitorColorDotted,
|
|
90
|
+
'--u-splitor-color-finish--dotted': splitorColorFinishDotted,
|
|
77
91
|
'--u-step-header-font-size': stepHeaderFontSize,
|
|
78
92
|
'--u-step-header-font-weight': stepHeaderFontWeight,
|
|
79
|
-
'--u-step-icon-color': indicatorIconColor
|
|
93
|
+
'--u-step-icon-color': indicatorIconColor,
|
|
94
|
+
'--u-step-icon-color--outline': headerTextColor,
|
|
95
|
+
'--u-indicator-background-finish--outline': indicatorBackgroundFinishOutline,
|
|
96
|
+
'--u-indicator-color-finish--dotted': indicatorIconColorFinishDotted,
|
|
97
|
+
'--u-indicator-icon-size--outline': indicatorIconSizeOutline,
|
|
98
|
+
'--u-indicator-border-color-finish--outline': indicatorBorderColorFinishOutline,
|
|
99
|
+
'--u-indicator-icon-color--outline': indicatorIconColorOutline,
|
|
100
|
+
'--u-indicator-border-radius--outline': indicatorBorderRadiusOutline,
|
|
101
|
+
'--u-indicator-border-radius-finish--outline': indicatorBorderRadiusFinishOutline,
|
|
102
|
+
'--u-step-height': stepHeight,
|
|
103
|
+
'--u-description-text-color--dotted': descriptionTextColorDotted,
|
|
104
|
+
'--u-step-header-font-size--dotted': stepHeaderFontSizeLarge
|
|
80
105
|
};
|
|
81
106
|
});
|
|
82
107
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -111,6 +136,16 @@ export default defineComponent({
|
|
|
111
136
|
finish: () => renderFinishIcon(),
|
|
112
137
|
error: () => renderErrorIcon(),
|
|
113
138
|
default: () => resolveWrappedSlot(slots.icon, (icon) => icon || renderInternalIndex())
|
|
139
|
+
},
|
|
140
|
+
outline: {
|
|
141
|
+
finish: () => renderFinishIcon('outline'),
|
|
142
|
+
error: () => renderErrorIcon('outline'),
|
|
143
|
+
default: () => resolveWrappedSlot(slots.icon, (icon) => icon || renderInternalIndex())
|
|
144
|
+
},
|
|
145
|
+
dotted: {
|
|
146
|
+
finish: () => null,
|
|
147
|
+
error: () => null,
|
|
148
|
+
default: () => null
|
|
114
149
|
}
|
|
115
150
|
};
|
|
116
151
|
const renderIcon = () => {
|
|
@@ -123,18 +158,32 @@ export default defineComponent({
|
|
|
123
158
|
return rendererGroup.default();
|
|
124
159
|
};
|
|
125
160
|
const renderFinishIcon = (variant = 'default') => (h(UBaseIcon, { clsPrefix: mergedClsPrefixRef.value, key: "finish" }, {
|
|
126
|
-
default: () =>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
161
|
+
default: () => {
|
|
162
|
+
switch (variant) {
|
|
163
|
+
case 'history':
|
|
164
|
+
return resolveSlot(stepsSlots['finish-icon'], () => [
|
|
165
|
+
h(HistoryFinishIcon, null)
|
|
166
|
+
]);
|
|
167
|
+
default:
|
|
168
|
+
return resolveSlot(stepsSlots['finish-icon'], () => [
|
|
169
|
+
h(FinishedIcon, null)
|
|
170
|
+
]);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
131
173
|
}));
|
|
132
174
|
const renderErrorIcon = (variant = 'default') => (h(UBaseIcon, { clsPrefix: mergedClsPrefixRef.value, key: "error" }, {
|
|
133
|
-
default: () =>
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
175
|
+
default: () => {
|
|
176
|
+
switch (variant) {
|
|
177
|
+
case 'history':
|
|
178
|
+
return resolveSlot(stepsSlots['error-icon'], () => [
|
|
179
|
+
h(HistoryErrorIcon, null)
|
|
180
|
+
]);
|
|
181
|
+
default:
|
|
182
|
+
return resolveSlot(stepsSlots['error-icon'], () => [
|
|
183
|
+
h(ErrorIcon, null)
|
|
184
|
+
]);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
138
187
|
}));
|
|
139
188
|
const renderHistoryIcon = () => (h(UBaseIcon, { clsPrefix: mergedClsPrefixRef.value, key: "history" }, {
|
|
140
189
|
default: () => resolveSlot(stepsSlots['history-icon'], () => [h(EditIcon, null)])
|
|
@@ -156,13 +205,15 @@ export default defineComponent({
|
|
|
156
205
|
},
|
|
157
206
|
render() {
|
|
158
207
|
const { mergedClsPrefix, onRender, handleStepClick, disabled, renderIcon, variantBehaviors, noIcon } = this;
|
|
159
|
-
const descriptionNode =
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
208
|
+
const descriptionNode = variantBehaviors.showDescription
|
|
209
|
+
? resolveWrappedSlot(this.$slots.default, (children) => {
|
|
210
|
+
const mergedDescription = children || this.description;
|
|
211
|
+
if (mergedDescription) {
|
|
212
|
+
return (h("div", { class: `${mergedClsPrefix}-step-content__description` }, mergedDescription));
|
|
213
|
+
}
|
|
214
|
+
return null;
|
|
215
|
+
})
|
|
216
|
+
: null;
|
|
166
217
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
167
218
|
return (h("div", { class: [
|
|
168
219
|
`${mergedClsPrefix}-step`,
|
|
@@ -173,15 +224,20 @@ export default defineComponent({
|
|
|
173
224
|
`${mergedClsPrefix}-step--${this.mergedStatus}-status`,
|
|
174
225
|
`${mergedClsPrefix}-step--${this.variant}-variant`
|
|
175
226
|
], style: this.cssVars, onClick: handleStepClick },
|
|
176
|
-
|
|
227
|
+
!noIcon ? (h("div", { class: `${mergedClsPrefix}-step-indicator` },
|
|
177
228
|
h("div", { class: `${mergedClsPrefix}-step-indicator-slot` },
|
|
178
229
|
h(UIconSwitchTransition, null, { default: renderIcon })),
|
|
179
|
-
variantBehaviors.
|
|
230
|
+
variantBehaviors.isVertical &&
|
|
231
|
+
variantBehaviors.shouldRenderSplitor ? (h("div", { class: `${mergedClsPrefix}-step-splitor` })) : null)) : null,
|
|
180
232
|
h("div", { class: `${mergedClsPrefix}-step-content` },
|
|
181
233
|
h("div", { class: `${mergedClsPrefix}-step-content-header ${mergedClsPrefix}-step-content-header${noIcon ? '--column' : ''}` },
|
|
182
234
|
h("div", { class: `${mergedClsPrefix}-step-content-header__title` }, resolveSlot(this.$slots.title, () => [this.title])),
|
|
183
|
-
noIcon &&
|
|
184
|
-
|
|
235
|
+
noIcon &&
|
|
236
|
+
!variantBehaviors.isVertical &&
|
|
237
|
+
variantBehaviors.shouldRenderSplitor ? (h("div", { class: `${mergedClsPrefix}-step-splitor-no-icon` })) : null,
|
|
238
|
+
!noIcon &&
|
|
239
|
+
variantBehaviors.shouldRenderSplitor &&
|
|
240
|
+
!variantBehaviors.isVertical ? (h("div", { class: `${mergedClsPrefix}-step-splitor` })) : null),
|
|
185
241
|
descriptionNode)));
|
|
186
242
|
}
|
|
187
243
|
});
|