@uzum-tech/ui 1.7.0 → 1.7.1
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 +1365 -41760
- package/dist/index.prod.js +3 -3
- package/es/_internal/icons/CheckmarkDoneSharp.d.ts +2 -0
- package/es/_internal/icons/CheckmarkDoneSharp.js +10 -0
- package/es/_internal/icons/MdTime.d.ts +2 -0
- package/es/_internal/icons/MdTime.js +10 -0
- package/es/_internal/icons/PersonOutline.d.ts +2 -0
- package/es/_internal/icons/PersonOutline.js +9 -0
- package/es/_internal/icons/Refresh.d.ts +2 -0
- package/es/_internal/icons/Refresh.js +9 -0
- package/es/_internal/icons/index.d.ts +4 -0
- package/es/_internal/icons/index.js +4 -0
- package/es/_internal/select-menu/src/styles/index.cssr.js +2 -1
- package/es/_internal/select-menu/styles/light.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +0 -16
- package/es/_internal/selection/src/Selection.js +3 -4
- package/es/_internal/selection/src/styles/index.cssr.js +0 -4
- package/es/_internal/selection/styles/light.d.ts +0 -4
- package/es/_internal/selection/styles/light.js +1 -3
- package/es/cascader/src/Cascader.d.ts +0 -20
- package/es/cascader/src/CascaderMenu.d.ts +0 -2
- package/es/cascader/src/CascaderOption.d.ts +0 -2
- package/es/cascader/src/CascaderSelectMenu.d.ts +0 -2
- package/es/cascader/src/CascaderSubmenu.d.ts +0 -2
- package/es/cascader/styles/light.d.ts +0 -2
- package/es/chat/src/Chat.d.ts +38 -34
- package/es/chat/src/Chat.js +28 -7
- package/es/chat/src/ChatGlobalState.d.ts +13 -0
- package/es/chat/src/ChatGlobalState.js +32 -0
- package/es/chat/src/ChatParts/ChatAttachment.d.ts +43 -0
- package/es/chat/src/ChatParts/ChatAttachment.js +75 -0
- package/es/chat/src/ChatParts/MainArea.d.ts +3 -9
- package/es/chat/src/ChatParts/MainArea.js +129 -123
- package/es/chat/src/ChatParts/Sidebar.js +12 -19
- package/es/chat/src/interface.d.ts +8 -3
- package/es/chat/src/styles/index.cssr.js +7 -0
- package/es/chat/styles/dark.d.ts +0 -2
- package/es/chat/styles/light.d.ts +0 -2
- package/es/data-table/src/DataTable.d.ts +0 -16
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +0 -4
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +0 -4
- package/es/data-table/src/TableParts/Body.d.ts +0 -4
- package/es/data-table/src/TableParts/Body.js +3 -1
- package/es/data-table/src/TableParts/Cell.js +18 -5
- package/es/data-table/src/TableParts/Header.d.ts +0 -4
- package/es/data-table/src/interface.d.ts +1 -7
- package/es/data-table/src/utils.js +1 -1
- package/es/data-table/styles/light.d.ts +0 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +4 -454
- package/es/dynamic-tags/styles/light.d.ts +0 -45
- package/es/empty/styles/light.js +3 -3
- package/es/locales/common/arDZ.js +6 -0
- package/es/locales/common/deDE.js +6 -0
- package/es/locales/common/enGB.js +6 -0
- package/es/locales/common/enUS.d.ts +6 -0
- package/es/locales/common/enUS.js +6 -0
- package/es/locales/common/eo.js +6 -0
- package/es/locales/common/esAR.js +6 -0
- package/es/locales/common/faIR.js +6 -0
- package/es/locales/common/frFR.js +6 -0
- package/es/locales/common/idID.js +6 -0
- package/es/locales/common/itIT.js +6 -0
- package/es/locales/common/jaJP.js +6 -0
- package/es/locales/common/koKR.js +6 -0
- package/es/locales/common/nbNO.js +6 -0
- package/es/locales/common/nlNL.js +6 -0
- package/es/locales/common/plPL.js +6 -0
- package/es/locales/common/ptBR.js +6 -0
- package/es/locales/common/ruRU.js +6 -0
- package/es/locales/common/skSK.js +6 -0
- package/es/locales/common/svSE.js +6 -0
- package/es/locales/common/thTH.js +6 -0
- package/es/locales/common/trTR.js +6 -0
- package/es/locales/common/ukUA.js +6 -0
- package/es/locales/common/viVN.js +6 -0
- package/es/locales/common/zhCN.js +6 -0
- package/es/locales/common/zhTW.js +6 -0
- package/es/pagination/src/Pagination.d.ts +0 -22
- package/es/pagination/styles/light.d.ts +0 -2
- package/es/select/src/Select.d.ts +0 -20
- package/es/select/styles/light.d.ts +0 -2
- package/es/status/src/Status.d.ts +14 -13
- package/es/status/src/Status.js +10 -13
- package/es/status/src/interface.d.ts +5 -1
- package/es/status/src/styles/index.cssr.js +1 -1
- package/es/status/styles/light.d.ts +1 -1
- package/es/status/styles/light.js +3 -3
- package/es/steps/src/Step.js +1 -5
- package/es/steps/src/styles/index.cssr.js +2 -1
- package/es/tabs/src/Tab.js +8 -3
- package/es/tabs/src/Tabs.js +2 -1
- package/es/tabs/src/interface.d.ts +1 -0
- package/es/tag/src/Tag.d.ts +4 -409
- package/es/tag/src/Tag.js +3 -0
- package/es/tag/src/common-props.d.ts +1 -1
- package/es/tag/styles/light.d.ts +0 -45
- package/es/tag/styles/light.js +2 -58
- package/es/tree-select/src/TreeSelect.d.ts +0 -20
- package/es/tree-select/styles/light.d.ts +0 -2
- package/es/upload/src/useUploadActionsRender.js +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/icons/CheckmarkDoneSharp.d.ts +2 -0
- package/lib/_internal/icons/CheckmarkDoneSharp.js +12 -0
- package/lib/_internal/icons/MdTime.d.ts +2 -0
- package/lib/_internal/icons/MdTime.js +12 -0
- package/lib/_internal/icons/PersonOutline.d.ts +2 -0
- package/lib/_internal/icons/PersonOutline.js +11 -0
- package/lib/_internal/icons/Refresh.d.ts +2 -0
- package/lib/_internal/icons/Refresh.js +11 -0
- package/lib/_internal/icons/index.d.ts +4 -0
- package/lib/_internal/icons/index.js +9 -1
- package/lib/_internal/select-menu/src/styles/index.cssr.js +2 -1
- package/lib/_internal/select-menu/styles/light.js +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +0 -16
- package/lib/_internal/selection/src/Selection.js +3 -4
- package/lib/_internal/selection/src/styles/index.cssr.js +0 -4
- package/lib/_internal/selection/styles/light.d.ts +0 -4
- package/lib/_internal/selection/styles/light.js +1 -3
- package/lib/cascader/src/Cascader.d.ts +0 -20
- package/lib/cascader/src/CascaderMenu.d.ts +0 -2
- package/lib/cascader/src/CascaderOption.d.ts +0 -2
- package/lib/cascader/src/CascaderSelectMenu.d.ts +0 -2
- package/lib/cascader/src/CascaderSubmenu.d.ts +0 -2
- package/lib/cascader/styles/light.d.ts +0 -2
- package/lib/chat/src/Chat.d.ts +38 -34
- package/lib/chat/src/Chat.js +27 -6
- package/lib/chat/src/ChatGlobalState.d.ts +13 -0
- package/lib/chat/src/ChatGlobalState.js +36 -0
- package/lib/chat/src/ChatParts/ChatAttachment.d.ts +43 -0
- package/lib/chat/src/ChatParts/ChatAttachment.js +77 -0
- package/lib/chat/src/ChatParts/MainArea.d.ts +3 -9
- package/lib/chat/src/ChatParts/MainArea.js +135 -126
- package/lib/chat/src/ChatParts/Sidebar.js +16 -23
- package/lib/chat/src/interface.d.ts +8 -3
- package/lib/chat/src/styles/index.cssr.js +7 -0
- package/lib/chat/styles/dark.d.ts +0 -2
- package/lib/chat/styles/light.d.ts +0 -2
- package/lib/data-table/src/DataTable.d.ts +0 -16
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +0 -4
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +0 -4
- package/lib/data-table/src/TableParts/Body.d.ts +0 -4
- package/lib/data-table/src/TableParts/Body.js +3 -1
- package/lib/data-table/src/TableParts/Cell.js +18 -5
- package/lib/data-table/src/TableParts/Header.d.ts +0 -4
- package/lib/data-table/src/interface.d.ts +1 -7
- package/lib/data-table/src/utils.js +1 -1
- package/lib/data-table/styles/light.d.ts +0 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +4 -454
- package/lib/dynamic-tags/styles/light.d.ts +0 -45
- package/lib/empty/styles/light.js +3 -3
- package/lib/locales/common/arDZ.js +6 -0
- package/lib/locales/common/deDE.js +6 -0
- package/lib/locales/common/enGB.js +6 -0
- package/lib/locales/common/enUS.d.ts +6 -0
- package/lib/locales/common/enUS.js +6 -0
- package/lib/locales/common/eo.js +6 -0
- package/lib/locales/common/esAR.js +6 -0
- package/lib/locales/common/faIR.js +6 -0
- package/lib/locales/common/frFR.js +6 -0
- package/lib/locales/common/idID.js +6 -0
- package/lib/locales/common/itIT.js +6 -0
- package/lib/locales/common/jaJP.js +6 -0
- package/lib/locales/common/koKR.js +6 -0
- package/lib/locales/common/nbNO.js +6 -0
- package/lib/locales/common/nlNL.js +6 -0
- package/lib/locales/common/plPL.js +6 -0
- package/lib/locales/common/ptBR.js +6 -0
- package/lib/locales/common/ruRU.js +6 -0
- package/lib/locales/common/skSK.js +6 -0
- package/lib/locales/common/svSE.js +6 -0
- package/lib/locales/common/thTH.js +6 -0
- package/lib/locales/common/trTR.js +6 -0
- package/lib/locales/common/ukUA.js +6 -0
- package/lib/locales/common/viVN.js +6 -0
- package/lib/locales/common/zhCN.js +6 -0
- package/lib/locales/common/zhTW.js +6 -0
- package/lib/pagination/src/Pagination.d.ts +0 -22
- package/lib/pagination/styles/light.d.ts +0 -2
- package/lib/select/src/Select.d.ts +0 -20
- package/lib/select/styles/light.d.ts +0 -2
- package/lib/status/src/Status.d.ts +14 -13
- package/lib/status/src/Status.js +9 -12
- package/lib/status/src/interface.d.ts +5 -1
- package/lib/status/src/styles/index.cssr.js +1 -1
- package/lib/status/styles/light.d.ts +1 -1
- package/lib/status/styles/light.js +3 -3
- package/lib/steps/src/Step.js +1 -5
- package/lib/steps/src/styles/index.cssr.js +2 -1
- package/lib/tabs/src/Tab.js +7 -2
- package/lib/tabs/src/Tabs.js +2 -1
- package/lib/tabs/src/interface.d.ts +1 -0
- package/lib/tag/src/Tag.d.ts +4 -409
- package/lib/tag/src/Tag.js +3 -0
- package/lib/tag/src/common-props.d.ts +1 -1
- package/lib/tag/styles/light.d.ts +0 -45
- package/lib/tag/styles/light.js +2 -58
- package/lib/tree-select/src/TreeSelect.d.ts +0 -20
- package/lib/tree-select/styles/light.d.ts +0 -2
- package/lib/upload/src/useUploadActionsRender.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +58 -19
package/es/status/src/Status.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h, defineComponent, computed } from 'vue';
|
|
2
2
|
import { UBaseIcon } from '../../_internal/icon';
|
|
3
|
-
import { SuccessIcon, WarningIcon, ErrorIcon, InactiveIcon
|
|
3
|
+
import { SuccessIcon, WarningIcon, ErrorIcon, InactiveIcon } from '../../_internal/icons';
|
|
4
4
|
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
5
5
|
import { resolveWrappedSlot } from '../../_utils';
|
|
6
6
|
import { statusLight } from '../styles';
|
|
7
7
|
import style from './styles/index.cssr';
|
|
8
|
-
export const statusProps = Object.assign(Object.assign({}, useTheme.props), { color:
|
|
8
|
+
export const statusProps = Object.assign(Object.assign({}, useTheme.props), { color: Object, filled: Boolean, noIcon: Boolean, type: {
|
|
9
9
|
type: String,
|
|
10
10
|
default: 'default'
|
|
11
11
|
} });
|
|
@@ -17,26 +17,22 @@ export default defineComponent({
|
|
|
17
17
|
const themeRef = useTheme('Status', '-status', style, statusLight, props, mergedClsPrefixRef);
|
|
18
18
|
const iconRenderer = {
|
|
19
19
|
success: () => h(SuccessIcon, null),
|
|
20
|
-
info: () => h(InfoIcon, null),
|
|
21
20
|
warning: () => h(WarningIcon, null),
|
|
22
21
|
error: () => h(ErrorIcon, null),
|
|
23
|
-
default: () => resolveWrappedSlot(slots.icon, (icon) => icon) ||
|
|
24
|
-
h(InactiveIcon, null)
|
|
22
|
+
default: () => resolveWrappedSlot(slots.icon, (icon) => icon) || h(InactiveIcon, null)
|
|
25
23
|
};
|
|
26
24
|
const renderIcon = () => {
|
|
27
25
|
const renderer = iconRenderer[props.type] || iconRenderer.default;
|
|
28
26
|
return renderer();
|
|
29
27
|
};
|
|
30
28
|
const cssVarsRef = computed(() => {
|
|
31
|
-
|
|
29
|
+
var _a, _b, _c;
|
|
30
|
+
const { common: { cubicBezierEaseInOut }, self: { textColor, warningColor, dangerColor, successColor, iconSize, iconColor, fontSize, lineHeight, fontWeight, iconSpacing, borderRadius } } = themeRef.value;
|
|
32
31
|
let color = textColor;
|
|
33
32
|
switch (props.type) {
|
|
34
33
|
case 'success':
|
|
35
34
|
color = successColor;
|
|
36
35
|
break;
|
|
37
|
-
case 'info':
|
|
38
|
-
color = infoColor;
|
|
39
|
-
break;
|
|
40
36
|
case 'warning':
|
|
41
37
|
color = warningColor;
|
|
42
38
|
break;
|
|
@@ -46,16 +42,17 @@ export default defineComponent({
|
|
|
46
42
|
}
|
|
47
43
|
return {
|
|
48
44
|
'--u-bezier': cubicBezierEaseInOut,
|
|
49
|
-
'--u-text-color': props.color || color,
|
|
45
|
+
'--u-text-color': ((_a = props.color) === null || _a === void 0 ? void 0 : _a.textColor) || color,
|
|
50
46
|
'--u-background-color': props.filled
|
|
51
|
-
? `${props.color || color}
|
|
47
|
+
? `${((_b = props.color) === null || _b === void 0 ? void 0 : _b.backgroundColor) || color + '10'}`
|
|
52
48
|
: 'transparent',
|
|
53
49
|
'--u-font-size': fontSize,
|
|
54
50
|
'--u-font-weight': fontWeight,
|
|
55
51
|
'--u-line-height': lineHeight,
|
|
56
52
|
'--u-icon-size': iconSize,
|
|
57
|
-
'--u-icon-color': iconColor || props.color || color,
|
|
58
|
-
'--u-icon-spacing': iconSpacing
|
|
53
|
+
'--u-icon-color': iconColor || ((_c = props.color) === null || _c === void 0 ? void 0 : _c.textColor) || color,
|
|
54
|
+
'--u-icon-spacing': iconSpacing,
|
|
55
|
+
'--u-border-radius': borderRadius
|
|
59
56
|
};
|
|
60
57
|
});
|
|
61
58
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { VNodeChild } from 'vue';
|
|
2
|
-
export type StatusTypes = 'success' | '
|
|
2
|
+
export type StatusTypes = 'success' | 'warning' | 'error' | 'default';
|
|
3
3
|
export type IconRenderer = Record<StatusTypes, () => VNodeChild>;
|
|
4
|
+
export interface StatusColor {
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
textColor?: string;
|
|
7
|
+
}
|
|
@@ -13,7 +13,7 @@ export default cB('status', `
|
|
|
13
13
|
font-weight: var(--u-font-weight);
|
|
14
14
|
color: var(--u-text-color);
|
|
15
15
|
padding: 2px 8px;
|
|
16
|
-
border-radius:
|
|
16
|
+
border-radius: var(--u-border-radius);
|
|
17
17
|
background-color: var(--u-background-color);
|
|
18
18
|
`, [cE('icon', `
|
|
19
19
|
display: flex;
|
|
@@ -9,9 +9,9 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
9
9
|
iconSpacing: string;
|
|
10
10
|
textColor: string;
|
|
11
11
|
successColor: string;
|
|
12
|
-
infoColor: string;
|
|
13
12
|
warningColor: string;
|
|
14
13
|
dangerColor: string;
|
|
14
|
+
borderRadius: string;
|
|
15
15
|
};
|
|
16
16
|
export type StatusThemeVars = ReturnType<typeof self>;
|
|
17
17
|
declare const statusLight: Theme<'Status', StatusThemeVars>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { commonLight } from '../../_styles/common';
|
|
2
2
|
export const self = (vars) => {
|
|
3
|
-
const { fontBodyMedium, lineHeightBodyMedium, fontWeightStrong, iconSmall, textSecondary, staticGreen, staticOrange, staticRed,
|
|
3
|
+
const { fontBodyMedium, lineHeightBodyMedium, fontWeightStrong, iconSmall, textSecondary, staticGreen, staticOrange, staticRed, borderRadiusLarge } = vars;
|
|
4
4
|
return {
|
|
5
5
|
fontSize: fontBodyMedium,
|
|
6
6
|
lineHeight: lineHeightBodyMedium,
|
|
@@ -10,9 +10,9 @@ export const self = (vars) => {
|
|
|
10
10
|
iconSpacing: '8px',
|
|
11
11
|
textColor: textSecondary,
|
|
12
12
|
successColor: staticGreen,
|
|
13
|
-
infoColor: staticDeepBlue,
|
|
14
13
|
warningColor: staticOrange,
|
|
15
|
-
dangerColor: staticRed
|
|
14
|
+
dangerColor: staticRed,
|
|
15
|
+
borderRadius: borderRadiusLarge
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
const statusLight = {
|
package/es/steps/src/Step.js
CHANGED
|
@@ -207,11 +207,7 @@ export default defineComponent({
|
|
|
207
207
|
const { mergedClsPrefix, onRender, handleStepClick, disabled, renderIcon, variantBehaviors, noIcon } = this;
|
|
208
208
|
const descriptionNode = variantBehaviors.showDescription
|
|
209
209
|
? resolveWrappedSlot(this.$slots.default, (children) => {
|
|
210
|
-
|
|
211
|
-
if (mergedDescription) {
|
|
212
|
-
return (h("div", { class: `${mergedClsPrefix}-step-content__description` }, mergedDescription));
|
|
213
|
-
}
|
|
214
|
-
return null;
|
|
210
|
+
return (h("div", { class: `${mergedClsPrefix}-step-content__description` }, children || this.description));
|
|
215
211
|
})
|
|
216
212
|
: null;
|
|
217
213
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
@@ -124,6 +124,7 @@ export default cB('steps', `
|
|
|
124
124
|
font-size: var(--u-step-header-font-size--dotted);
|
|
125
125
|
font-weight: 500;
|
|
126
126
|
line-height: 24px;
|
|
127
|
+
min-height: 24px;
|
|
127
128
|
`)])])]), cB('step-splitor', `
|
|
128
129
|
background-color: var(--u-splitor-color);
|
|
129
130
|
margin-top: calc(var(--u-step-header-font-size) / 2);
|
|
@@ -158,7 +159,7 @@ export default cB('steps', `
|
|
|
158
159
|
background-color .3s var(--u-bezier);
|
|
159
160
|
`, [cE('title', `
|
|
160
161
|
white-space: nowrap;
|
|
161
|
-
flex:
|
|
162
|
+
flex: 1;
|
|
162
163
|
`), cM('column', `
|
|
163
164
|
flex-direction: column;
|
|
164
165
|
`, [cE('title', `
|
package/es/tabs/src/Tab.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, defineComponent, inject, computed, mergeProps, Fragment } from 'vue';
|
|
1
|
+
import { h, defineComponent, inject, computed, mergeProps, Fragment, nextTick, watch } from 'vue';
|
|
2
2
|
import { AddIcon } from '../../_internal/icons';
|
|
3
3
|
import { UBaseClose, UBaseIcon } from '../../_internal';
|
|
4
4
|
import { render, omit, resolveWrappedSlot } from '../../_utils';
|
|
@@ -10,10 +10,15 @@ export default defineComponent({
|
|
|
10
10
|
inheritAttrs: false,
|
|
11
11
|
name: 'Tab',
|
|
12
12
|
props: tabProps,
|
|
13
|
-
setup(props) {
|
|
14
|
-
const { mergedClsPrefixRef, valueRef, typeRef, closableRef, tabStyleRef, tabChangeIdRef, onBeforeLeaveRef, triggerRef, handleAdd, activateTab, handleClose
|
|
13
|
+
setup(props, { slots }) {
|
|
14
|
+
const { mergedClsPrefixRef, valueRef, typeRef, closableRef, tabStyleRef, tabChangeIdRef, onBeforeLeaveRef, triggerRef, handleAdd, activateTab, handleClose, updateCurrentBarStyle
|
|
15
15
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
16
16
|
} = inject(tabsInjectionKey);
|
|
17
|
+
watch([() => props.tab, () => { var _a; return (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots); }], () => {
|
|
18
|
+
void nextTick(() => {
|
|
19
|
+
updateCurrentBarStyle();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
17
22
|
return {
|
|
18
23
|
trigger: triggerRef,
|
|
19
24
|
mergedClosable: computed(() => {
|
package/es/tabs/src/Tabs.js
CHANGED
|
@@ -22,6 +22,7 @@ export interface TabsInjection {
|
|
|
22
22
|
activateTab: (panelName: string | number) => void;
|
|
23
23
|
handleClose: (panelName: string | number) => void;
|
|
24
24
|
handleAdd: () => void;
|
|
25
|
+
updateCurrentBarStyle: VoidFunction;
|
|
25
26
|
}
|
|
26
27
|
export type Addable = boolean | {
|
|
27
28
|
disabled?: boolean;
|