@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/lib/tag/src/Tag.js
CHANGED
|
@@ -39,6 +39,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
39
39
|
if (props.onCheckedChange !== undefined) {
|
|
40
40
|
(0, _utils_1.warnOnce)('tag', '`on-checked-change` is deprecated, please use `on-update:checked` instead');
|
|
41
41
|
}
|
|
42
|
+
if (['primary', 'success', 'info', 'warning', 'error'].includes(props.type)) {
|
|
43
|
+
(0, _utils_1.warnOnce)('tag', '`primary, success, info, warning, error` types are deprecated, please use `color` instead');
|
|
44
|
+
}
|
|
42
45
|
});
|
|
43
46
|
}
|
|
44
47
|
const contentRef = (0, vue_1.ref)(null);
|
|
@@ -7,7 +7,7 @@ export interface TagColor {
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
readonly color: PropType<TagColor>;
|
|
9
9
|
readonly type: {
|
|
10
|
-
readonly type: PropType<"default" | "
|
|
10
|
+
readonly type: PropType<"default" | "tertiary">;
|
|
11
11
|
readonly default: "default";
|
|
12
12
|
};
|
|
13
13
|
readonly round: BooleanConstructor;
|
|
@@ -58,51 +58,6 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
58
58
|
closeIconColorPressedTertiary: string;
|
|
59
59
|
closeColorHoverTertiary: string;
|
|
60
60
|
closeColorPressedTertiary: string;
|
|
61
|
-
borderPrimary: string;
|
|
62
|
-
textColorPrimary: string;
|
|
63
|
-
colorPrimary: string;
|
|
64
|
-
colorBorderedPrimary: string;
|
|
65
|
-
closeIconColorPrimary: string;
|
|
66
|
-
closeIconColorHoverPrimary: string;
|
|
67
|
-
closeIconColorPressedPrimary: string;
|
|
68
|
-
closeColorHoverPrimary: string;
|
|
69
|
-
closeColorPressedPrimary: string;
|
|
70
|
-
borderInfo: string;
|
|
71
|
-
textColorInfo: string;
|
|
72
|
-
colorInfo: string;
|
|
73
|
-
colorBorderedInfo: string;
|
|
74
|
-
closeIconColorInfo: string;
|
|
75
|
-
closeIconColorHoverInfo: string;
|
|
76
|
-
closeIconColorPressedInfo: string;
|
|
77
|
-
closeColorHoverInfo: string;
|
|
78
|
-
closeColorPressedInfo: string;
|
|
79
|
-
borderSuccess: string;
|
|
80
|
-
textColorSuccess: string;
|
|
81
|
-
colorSuccess: string;
|
|
82
|
-
colorBorderedSuccess: string;
|
|
83
|
-
closeIconColorSuccess: string;
|
|
84
|
-
closeIconColorHoverSuccess: string;
|
|
85
|
-
closeIconColorPressedSuccess: string;
|
|
86
|
-
closeColorHoverSuccess: string;
|
|
87
|
-
closeColorPressedSuccess: string;
|
|
88
|
-
borderWarning: string;
|
|
89
|
-
textColorWarning: string;
|
|
90
|
-
colorWarning: string;
|
|
91
|
-
colorBorderedWarning: string;
|
|
92
|
-
closeIconColorWarning: string;
|
|
93
|
-
closeIconColorHoverWarning: string;
|
|
94
|
-
closeIconColorPressedWarning: string;
|
|
95
|
-
closeColorHoverWarning: string;
|
|
96
|
-
closeColorPressedWarning: string;
|
|
97
|
-
borderError: string;
|
|
98
|
-
textColorError: string;
|
|
99
|
-
colorError: string;
|
|
100
|
-
colorBorderedError: string;
|
|
101
|
-
closeIconColorError: string;
|
|
102
|
-
closeIconColorHoverError: string;
|
|
103
|
-
closeIconColorPressedError: string;
|
|
104
|
-
closeColorHoverError: string;
|
|
105
|
-
closeColorPressedError: string;
|
|
106
61
|
};
|
|
107
62
|
export type TagThemeVars = ReturnType<typeof self>;
|
|
108
63
|
declare const tagLight: Theme<'Tag', TagThemeVars>;
|
package/lib/tag/styles/light.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.self = void 0;
|
|
|
4
4
|
const seemly_1 = require("seemly");
|
|
5
5
|
const common_1 = require("../../_styles/common");
|
|
6
6
|
const self = (vars) => {
|
|
7
|
-
const { opacityDisabled, borderRadiusSmall: borderRadius, fontWeightStrong, fontWeight, elementsTertiary, fontBodySmall, fontBodyMedium, textQuaternary, elementsPrimary, elementsSecondary, elementsSenary, elementsQuinary, textPrimary, elementsQuaternary, transparencySecondary, staticDarkGrey, staticWhite, elementsDarkQuinary,
|
|
7
|
+
const { opacityDisabled, borderRadiusSmall: borderRadius, fontWeightStrong, fontWeight, elementsTertiary, fontBodySmall, fontBodyMedium, textQuaternary, elementsPrimary, elementsSecondary, elementsSenary, elementsQuinary, textPrimary, elementsQuaternary, transparencySecondary, staticDarkGrey, staticWhite, elementsDarkQuinary, staticBlack } = vars;
|
|
8
8
|
const borderTagWidth = 2;
|
|
9
9
|
return {
|
|
10
10
|
closeIconSizeTiny: '16px',
|
|
@@ -66,63 +66,7 @@ const self = (vars) => {
|
|
|
66
66
|
closeIconColorHoverTertiary: staticWhite,
|
|
67
67
|
closeIconColorPressedTertiary: staticWhite,
|
|
68
68
|
closeColorHoverTertiary: (0, seemly_1.changeColor)(staticWhite, { alpha: 0.12 }),
|
|
69
|
-
closeColorPressedTertiary: (0, seemly_1.changeColor)(staticWhite, { alpha: 0.18 })
|
|
70
|
-
// primary
|
|
71
|
-
borderPrimary: `${borderTagWidth}px solid ${brandPrimary600}`,
|
|
72
|
-
textColorPrimary: staticWhite,
|
|
73
|
-
colorPrimary: brandPrimary500,
|
|
74
|
-
colorBorderedPrimary: brandPrimary500,
|
|
75
|
-
closeIconColorPrimary: staticWhite,
|
|
76
|
-
closeIconColorHoverPrimary: staticWhite,
|
|
77
|
-
closeIconColorPressedPrimary: staticWhite,
|
|
78
|
-
closeColorHoverPrimary: (0, seemly_1.changeColor)(staticWhite, { alpha: 0.12 }),
|
|
79
|
-
closeColorPressedPrimary: (0, seemly_1.changeColor)(staticWhite, { alpha: 0.18 }),
|
|
80
|
-
// info
|
|
81
|
-
borderInfo: `${borderTagWidth}px solid ${brandQuaternary600}`,
|
|
82
|
-
textColorInfo: staticBlack,
|
|
83
|
-
colorInfo: brandQuaternary500,
|
|
84
|
-
colorBorderedInfo: brandQuaternary500,
|
|
85
|
-
closeIconColorInfo: staticBlack,
|
|
86
|
-
closeIconColorHoverInfo: staticBlack,
|
|
87
|
-
closeIconColorPressedInfo: staticBlack,
|
|
88
|
-
closeColorHoverInfo: (0, seemly_1.changeColor)(staticBlack, { alpha: 0.12 }),
|
|
89
|
-
closeColorPressedInfo: (0, seemly_1.changeColor)(staticBlack, { alpha: 0.18 }),
|
|
90
|
-
// success
|
|
91
|
-
borderSuccess: `${borderTagWidth}px solid ${(0, seemly_1.changeColor)(staticGreen, {
|
|
92
|
-
alpha: 0.3
|
|
93
|
-
})}`,
|
|
94
|
-
textColorSuccess: staticWhite,
|
|
95
|
-
colorSuccess: staticGreen,
|
|
96
|
-
colorBorderedSuccess: staticGreen,
|
|
97
|
-
closeIconColorSuccess: staticWhite,
|
|
98
|
-
closeIconColorHoverSuccess: staticWhite,
|
|
99
|
-
closeIconColorPressedSuccess: staticWhite,
|
|
100
|
-
closeColorHoverSuccess: (0, seemly_1.changeColor)(staticWhite, { alpha: 0.12 }),
|
|
101
|
-
closeColorPressedSuccess: (0, seemly_1.changeColor)(staticWhite, { alpha: 0.18 }),
|
|
102
|
-
// warning
|
|
103
|
-
borderWarning: `${borderTagWidth}px solid ${(0, seemly_1.changeColor)(staticOrange, {
|
|
104
|
-
alpha: 0.35
|
|
105
|
-
})}`,
|
|
106
|
-
textColorWarning: staticWhite,
|
|
107
|
-
colorWarning: staticOrange,
|
|
108
|
-
colorBorderedWarning: staticOrange,
|
|
109
|
-
closeIconColorWarning: staticWhite,
|
|
110
|
-
closeIconColorHoverWarning: staticWhite,
|
|
111
|
-
closeIconColorPressedWarning: staticWhite,
|
|
112
|
-
closeColorHoverWarning: (0, seemly_1.changeColor)(staticWhite, { alpha: 0.12 }),
|
|
113
|
-
closeColorPressedWarning: (0, seemly_1.changeColor)(staticWhite, { alpha: 0.18 }),
|
|
114
|
-
// error
|
|
115
|
-
borderError: `${borderTagWidth}px solid ${(0, seemly_1.changeColor)(staticRed, {
|
|
116
|
-
alpha: 0.23
|
|
117
|
-
})}`,
|
|
118
|
-
textColorError: staticWhite,
|
|
119
|
-
colorError: staticRed,
|
|
120
|
-
colorBorderedError: staticRed,
|
|
121
|
-
closeIconColorError: staticWhite,
|
|
122
|
-
closeIconColorHoverError: staticWhite,
|
|
123
|
-
closeIconColorPressedError: staticWhite,
|
|
124
|
-
closeColorHoverError: (0, seemly_1.changeColor)(staticWhite, { alpha: 0.12 }),
|
|
125
|
-
closeColorPressedError: (0, seemly_1.changeColor)(staticWhite, { alpha: 0.18 })
|
|
69
|
+
closeColorPressedTertiary: (0, seemly_1.changeColor)(staticWhite, { alpha: 0.18 })
|
|
126
70
|
};
|
|
127
71
|
};
|
|
128
72
|
exports.self = self;
|
|
@@ -318,9 +318,7 @@ export declare const treeSelectProps: {
|
|
|
318
318
|
clearColorPressed: string;
|
|
319
319
|
caretColorSecondary: string;
|
|
320
320
|
filterCounterTextColor: string;
|
|
321
|
-
filterCounterSeparatorColor: string;
|
|
322
321
|
filterCounterTextColorDisabled: string;
|
|
323
|
-
filterCounterSeparatorColorDisabled: string;
|
|
324
322
|
arrowColorSecondary: string;
|
|
325
323
|
clearColorSecondary: string;
|
|
326
324
|
colorSecondary: string;
|
|
@@ -564,9 +562,7 @@ export declare const treeSelectProps: {
|
|
|
564
562
|
clearColorPressed: string;
|
|
565
563
|
caretColorSecondary: string;
|
|
566
564
|
filterCounterTextColor: string;
|
|
567
|
-
filterCounterSeparatorColor: string;
|
|
568
565
|
filterCounterTextColorDisabled: string;
|
|
569
|
-
filterCounterSeparatorColorDisabled: string;
|
|
570
566
|
arrowColorSecondary: string;
|
|
571
567
|
clearColorSecondary: string;
|
|
572
568
|
colorSecondary: string;
|
|
@@ -810,9 +806,7 @@ export declare const treeSelectProps: {
|
|
|
810
806
|
clearColorPressed: string;
|
|
811
807
|
caretColorSecondary: string;
|
|
812
808
|
filterCounterTextColor: string;
|
|
813
|
-
filterCounterSeparatorColor: string;
|
|
814
809
|
filterCounterTextColorDisabled: string;
|
|
815
|
-
filterCounterSeparatorColorDisabled: string;
|
|
816
810
|
arrowColorSecondary: string;
|
|
817
811
|
clearColorSecondary: string;
|
|
818
812
|
colorSecondary: string;
|
|
@@ -1167,9 +1161,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1167
1161
|
clearColorPressed: string;
|
|
1168
1162
|
caretColorSecondary: string;
|
|
1169
1163
|
filterCounterTextColor: string;
|
|
1170
|
-
filterCounterSeparatorColor: string;
|
|
1171
1164
|
filterCounterTextColorDisabled: string;
|
|
1172
|
-
filterCounterSeparatorColorDisabled: string;
|
|
1173
1165
|
arrowColorSecondary: string;
|
|
1174
1166
|
clearColorSecondary: string;
|
|
1175
1167
|
colorSecondary: string;
|
|
@@ -1413,9 +1405,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1413
1405
|
clearColorPressed: string;
|
|
1414
1406
|
caretColorSecondary: string;
|
|
1415
1407
|
filterCounterTextColor: string;
|
|
1416
|
-
filterCounterSeparatorColor: string;
|
|
1417
1408
|
filterCounterTextColorDisabled: string;
|
|
1418
|
-
filterCounterSeparatorColorDisabled: string;
|
|
1419
1409
|
arrowColorSecondary: string;
|
|
1420
1410
|
clearColorSecondary: string;
|
|
1421
1411
|
colorSecondary: string;
|
|
@@ -1659,9 +1649,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1659
1649
|
clearColorPressed: string;
|
|
1660
1650
|
caretColorSecondary: string;
|
|
1661
1651
|
filterCounterTextColor: string;
|
|
1662
|
-
filterCounterSeparatorColor: string;
|
|
1663
1652
|
filterCounterTextColorDisabled: string;
|
|
1664
|
-
filterCounterSeparatorColorDisabled: string;
|
|
1665
1653
|
arrowColorSecondary: string;
|
|
1666
1654
|
clearColorSecondary: string;
|
|
1667
1655
|
colorSecondary: string;
|
|
@@ -1975,9 +1963,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1975
1963
|
clearColorPressed: string;
|
|
1976
1964
|
caretColorSecondary: string;
|
|
1977
1965
|
filterCounterTextColor: string;
|
|
1978
|
-
filterCounterSeparatorColor: string;
|
|
1979
1966
|
filterCounterTextColorDisabled: string;
|
|
1980
|
-
filterCounterSeparatorColorDisabled: string;
|
|
1981
1967
|
arrowColorSecondary: string;
|
|
1982
1968
|
clearColorSecondary: string;
|
|
1983
1969
|
colorSecondary: string;
|
|
@@ -2459,9 +2445,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2459
2445
|
clearColorPressed: string;
|
|
2460
2446
|
caretColorSecondary: string;
|
|
2461
2447
|
filterCounterTextColor: string;
|
|
2462
|
-
filterCounterSeparatorColor: string;
|
|
2463
2448
|
filterCounterTextColorDisabled: string;
|
|
2464
|
-
filterCounterSeparatorColorDisabled: string;
|
|
2465
2449
|
arrowColorSecondary: string;
|
|
2466
2450
|
clearColorSecondary: string;
|
|
2467
2451
|
colorSecondary: string;
|
|
@@ -2705,9 +2689,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2705
2689
|
clearColorPressed: string;
|
|
2706
2690
|
caretColorSecondary: string;
|
|
2707
2691
|
filterCounterTextColor: string;
|
|
2708
|
-
filterCounterSeparatorColor: string;
|
|
2709
2692
|
filterCounterTextColorDisabled: string;
|
|
2710
|
-
filterCounterSeparatorColorDisabled: string;
|
|
2711
2693
|
arrowColorSecondary: string;
|
|
2712
2694
|
clearColorSecondary: string;
|
|
2713
2695
|
colorSecondary: string;
|
|
@@ -2951,9 +2933,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2951
2933
|
clearColorPressed: string;
|
|
2952
2934
|
caretColorSecondary: string;
|
|
2953
2935
|
filterCounterTextColor: string;
|
|
2954
|
-
filterCounterSeparatorColor: string;
|
|
2955
2936
|
filterCounterTextColorDisabled: string;
|
|
2956
|
-
filterCounterSeparatorColorDisabled: string;
|
|
2957
2937
|
arrowColorSecondary: string;
|
|
2958
2938
|
clearColorSecondary: string;
|
|
2959
2939
|
colorSecondary: string;
|
|
@@ -211,9 +211,7 @@ declare const treeSelectLight: import("../../_mixins/use-theme").Theme<"TreeSele
|
|
|
211
211
|
clearColorPressed: string;
|
|
212
212
|
caretColorSecondary: string;
|
|
213
213
|
filterCounterTextColor: string;
|
|
214
|
-
filterCounterSeparatorColor: string;
|
|
215
214
|
filterCounterTextColorDisabled: string;
|
|
216
|
-
filterCounterSeparatorColorDisabled: string;
|
|
217
215
|
arrowColorSecondary: string;
|
|
218
216
|
clearColorSecondary: string;
|
|
219
217
|
colorSecondary: string;
|
|
@@ -8,7 +8,7 @@ const icons_1 = require("../../_internal/icons");
|
|
|
8
8
|
function useUploadActionsRender(opts) {
|
|
9
9
|
const { clsPrefix, listType, file, showPreviewButton, showRemoveButton, showCancelButton, showRetryButton, showDownloadButton, disabled, buttonType, mergedTheme, buttonThemeOverrides, handlePreviewClick, handleRemoveOrCancelClick, handleRetryClick, handleDownloadClick, capitalizeFirstLetter } = opts;
|
|
10
10
|
const isImageType = ['image', 'image-card'].includes(listType);
|
|
11
|
-
const fileExt = file.name.split('.')
|
|
11
|
+
const fileExt = file.name.split('.').at(-1) || '';
|
|
12
12
|
const capitalizedExt = capitalizeFirstLetter(fileExt);
|
|
13
13
|
const icon = (0, vue_1.h)('div', {
|
|
14
14
|
class: [
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.7.
|
|
1
|
+
declare const _default: "1.7.1";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@uzum-tech/ui",
|
|
5
|
-
"version": "1.7.
|
|
5
|
+
"version": "1.7.1",
|
|
6
6
|
"js-types-syntax": "typescript",
|
|
7
7
|
"contributions": {
|
|
8
8
|
"html": {
|
|
@@ -1956,7 +1956,9 @@
|
|
|
1956
1956
|
{
|
|
1957
1957
|
"name": "typing-chat-ids",
|
|
1958
1958
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
1959
|
-
"type": "Array"
|
|
1959
|
+
"type": "Array<ChatId>",
|
|
1960
|
+
"description": "Array of chat IDs where users are currently typing.",
|
|
1961
|
+
"default": "[]"
|
|
1960
1962
|
},
|
|
1961
1963
|
{
|
|
1962
1964
|
"name": "disabled",
|
|
@@ -2027,12 +2029,16 @@
|
|
|
2027
2029
|
{
|
|
2028
2030
|
"name": "header-button-props",
|
|
2029
2031
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2030
|
-
"type": "
|
|
2032
|
+
"type": "Partial<ButtonProps>",
|
|
2033
|
+
"description": "Props for buttons in header.",
|
|
2034
|
+
"default": "undefined"
|
|
2031
2035
|
},
|
|
2032
2036
|
{
|
|
2033
2037
|
"name": "header-icon-props",
|
|
2034
2038
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2035
|
-
"type": "
|
|
2039
|
+
"type": "Partial<IconProps>",
|
|
2040
|
+
"description": "Props for icons in header.",
|
|
2041
|
+
"default": "undefined"
|
|
2036
2042
|
},
|
|
2037
2043
|
{
|
|
2038
2044
|
"name": "message-sender-avatar-props",
|
|
@@ -2042,7 +2048,9 @@
|
|
|
2042
2048
|
{
|
|
2043
2049
|
"name": "message-upload-props",
|
|
2044
2050
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2045
|
-
"type": "
|
|
2051
|
+
"type": "Partial<UploadProps>",
|
|
2052
|
+
"description": "Props for upload display in messages.",
|
|
2053
|
+
"default": "undefined"
|
|
2046
2054
|
},
|
|
2047
2055
|
{
|
|
2048
2056
|
"name": "message-button-props",
|
|
@@ -2053,7 +2061,7 @@
|
|
|
2053
2061
|
"name": "footer-input-props",
|
|
2054
2062
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2055
2063
|
"type": "Partial<InputProps>",
|
|
2056
|
-
"description": "Props for message input field.",
|
|
2064
|
+
"description": "Props for message input field (placeholder can override locale).",
|
|
2057
2065
|
"default": "undefined"
|
|
2058
2066
|
},
|
|
2059
2067
|
{
|
|
@@ -2066,17 +2074,23 @@
|
|
|
2066
2074
|
{
|
|
2067
2075
|
"name": "footer-upload-props",
|
|
2068
2076
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2069
|
-
"type": "
|
|
2077
|
+
"type": "Partial<UploadProps>",
|
|
2078
|
+
"description": "Props for upload component in footer.",
|
|
2079
|
+
"default": "undefined"
|
|
2070
2080
|
},
|
|
2071
2081
|
{
|
|
2072
2082
|
"name": "footer-upload-trigger-props",
|
|
2073
2083
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2074
|
-
"type": "
|
|
2084
|
+
"type": "any",
|
|
2085
|
+
"description": "Props for upload trigger button.",
|
|
2086
|
+
"default": "undefined"
|
|
2075
2087
|
},
|
|
2076
2088
|
{
|
|
2077
2089
|
"name": "footer-icon-props",
|
|
2078
2090
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2079
|
-
"type": "
|
|
2091
|
+
"type": "Partial<IconProps>",
|
|
2092
|
+
"description": "Props for icons in footer.",
|
|
2093
|
+
"default": "undefined"
|
|
2080
2094
|
},
|
|
2081
2095
|
{
|
|
2082
2096
|
"name": "empty-props",
|
|
@@ -2088,32 +2102,52 @@
|
|
|
2088
2102
|
{
|
|
2089
2103
|
"name": "retry-text",
|
|
2090
2104
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2091
|
-
"type": "string"
|
|
2105
|
+
"type": "string",
|
|
2106
|
+
"description": "Text for retry button when message fails.",
|
|
2107
|
+
"default": "locale default"
|
|
2092
2108
|
},
|
|
2093
2109
|
{
|
|
2094
2110
|
"name": "typing-text",
|
|
2095
2111
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2096
|
-
"type": "string"
|
|
2112
|
+
"type": "string",
|
|
2113
|
+
"description": "Text shown when other user is typing.",
|
|
2114
|
+
"default": "locale default"
|
|
2097
2115
|
},
|
|
2098
2116
|
{
|
|
2099
2117
|
"name": "close-button-text",
|
|
2100
2118
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2101
|
-
"type": "string"
|
|
2119
|
+
"type": "string",
|
|
2120
|
+
"description": "Text for close chat button.",
|
|
2121
|
+
"default": "locale default"
|
|
2102
2122
|
},
|
|
2103
2123
|
{
|
|
2104
2124
|
"name": "chat-items-loading",
|
|
2105
2125
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2106
2126
|
"type": "boolean",
|
|
2107
|
-
"description": "Whether chat list is in loading state.",
|
|
2127
|
+
"description": "Whether chat list is in loading state. Shows skeleton items.",
|
|
2108
2128
|
"default": "false"
|
|
2109
2129
|
},
|
|
2130
|
+
{
|
|
2131
|
+
"name": "chat-items-loading-count",
|
|
2132
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2133
|
+
"type": "number",
|
|
2134
|
+
"description": "Number of skeleton items to show in sidebar when loading.",
|
|
2135
|
+
"default": "10"
|
|
2136
|
+
},
|
|
2110
2137
|
{
|
|
2111
2138
|
"name": "messages-loading",
|
|
2112
2139
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2113
2140
|
"type": "boolean",
|
|
2114
|
-
"description": "Whether messages are in loading state.",
|
|
2141
|
+
"description": "Whether messages are in loading state. Shows skeleton messages.",
|
|
2115
2142
|
"default": "false"
|
|
2116
2143
|
},
|
|
2144
|
+
{
|
|
2145
|
+
"name": "messages-loading-count",
|
|
2146
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2147
|
+
"type": "number",
|
|
2148
|
+
"description": "Number of skeleton messages to show in main area when loading.",
|
|
2149
|
+
"default": "5"
|
|
2150
|
+
},
|
|
2117
2151
|
{
|
|
2118
2152
|
"name": "max-height",
|
|
2119
2153
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
@@ -6043,7 +6077,7 @@
|
|
|
6043
6077
|
},
|
|
6044
6078
|
{
|
|
6045
6079
|
"name": "UEmpty",
|
|
6046
|
-
"description": "
|
|
6080
|
+
"description": "Empty is used to display a no-data state",
|
|
6047
6081
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/empty",
|
|
6048
6082
|
"source": {
|
|
6049
6083
|
"symbol": "UEmpty"
|
|
@@ -13119,7 +13153,7 @@
|
|
|
13119
13153
|
{
|
|
13120
13154
|
"name": "color",
|
|
13121
13155
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/status",
|
|
13122
|
-
"type": "string",
|
|
13156
|
+
"type": "{ backgroundColor?: string, textColor?: string }",
|
|
13123
13157
|
"description": "Color of status",
|
|
13124
13158
|
"default": "undefined"
|
|
13125
13159
|
},
|
|
@@ -13975,9 +14009,7 @@
|
|
|
13975
14009
|
{
|
|
13976
14010
|
"name": "type",
|
|
13977
14011
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tag",
|
|
13978
|
-
"type": "
|
|
13979
|
-
"description": "Type of the tag.",
|
|
13980
|
-
"default": "'default'"
|
|
14012
|
+
"type": "string"
|
|
13981
14013
|
},
|
|
13982
14014
|
{
|
|
13983
14015
|
"name": "round",
|
|
@@ -14052,6 +14084,13 @@
|
|
|
14052
14084
|
"description-sections": {
|
|
14053
14085
|
"since": "2.32.2"
|
|
14054
14086
|
}
|
|
14087
|
+
},
|
|
14088
|
+
{
|
|
14089
|
+
"name": "<span style=\"color:red; text-decoration: line-through;\">type</span>",
|
|
14090
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tag",
|
|
14091
|
+
"type": "'default' | 'tertiary'",
|
|
14092
|
+
"description": "Type of the tag. <br /><span style=\"color:red;\">Types `'primary' \\| 'info' \\| 'success' \\| 'warning' \\| 'error'` are deprecated. Use `color` instead</span>",
|
|
14093
|
+
"default": "'default'"
|
|
14055
14094
|
}
|
|
14056
14095
|
],
|
|
14057
14096
|
"js": {
|