@uzum-tech/ui 1.8.0 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +378 -197
- package/dist/index.prod.js +3 -3
- package/es/_internal/scrollbar/src/Scrollbar.js +1 -1
- package/es/button/src/Button.d.ts +72 -0
- package/es/button/src/Button.js +13 -7
- package/es/button/src/styles/index.cssr.js +1 -2
- package/es/button/styles/light.d.ts +8 -0
- package/es/button/styles/light.js +7 -7
- package/es/calendar/src/Calendar.d.ts +80 -0
- package/es/calendar/styles/light.d.ts +8 -0
- package/es/chat/index.d.ts +2 -1
- package/es/chat/index.js +1 -0
- package/es/chat/src/Chat.d.ts +87 -7
- package/es/chat/src/Chat.js +12 -12
- package/es/chat/src/ChatListItems.d.ts +1847 -4
- package/es/chat/src/ChatListItems.js +16 -12
- package/es/chat/src/ChatMessages.d.ts +1848 -4
- package/es/chat/src/ChatMessages.js +27 -10
- package/es/chat/src/ChatParts/MainArea.js +10 -10
- package/es/chat/src/ChatParts/Sidebar.js +2 -2
- package/es/chat/src/interface.d.ts +4 -0
- package/es/chat/src/styles/index.cssr.js +14 -17
- package/es/chat/styles/dark.d.ts +8 -0
- package/es/chat/styles/light.d.ts +9 -1
- package/es/chat/styles/light.js +15 -3
- package/es/color-picker/src/ColorInputUnit.d.ts +8 -0
- package/es/color-picker/src/ColorPicker.d.ts +72 -0
- package/es/color-picker/styles/light.d.ts +8 -0
- package/es/data-table/src/DataTable.d.ts +56 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +8 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +8 -0
- package/es/data-table/src/TableParts/Body.d.ts +8 -0
- package/es/data-table/src/TableParts/Header.d.ts +8 -0
- package/es/data-table/src/interface.d.ts +24 -0
- package/es/data-table/styles/light.d.ts +8 -0
- package/es/date-picker/src/DatePicker.d.ts +168 -0
- package/es/date-picker/src/panel/date.d.ts +24 -0
- package/es/date-picker/src/panel/daterange.d.ts +24 -0
- package/es/date-picker/src/panel/datetime.d.ts +24 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +24 -0
- package/es/date-picker/src/panel/panelMonth.d.ts +48 -0
- package/es/date-picker/src/panel/panelMonthContent.d.ts +24 -0
- package/es/date-picker/src/panel/panelYear.d.ts +48 -0
- package/es/date-picker/src/panel/panelYearContent.d.ts +24 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +24 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +24 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +24 -0
- package/es/date-picker/styles/light.d.ts +16 -0
- package/es/dialog/src/Dialog.d.ts +56 -0
- package/es/dialog/src/DialogProvider.d.ts +16 -0
- package/es/dialog/styles/light.d.ts +8 -0
- package/es/dynamic-input/src/DynamicInput.d.ts +80 -0
- package/es/dynamic-input/src/InputPreset.d.ts +8 -0
- package/es/dynamic-input/src/PairPreset.d.ts +8 -0
- package/es/dynamic-input/styles/light.d.ts +8 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +80 -0
- package/es/dynamic-tags/styles/light.d.ts +8 -0
- package/es/input-number/src/InputNumber.d.ts +80 -0
- package/es/input-number/styles/light.d.ts +8 -0
- package/es/legacy-transfer/src/Transfer.d.ts +80 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +8 -0
- package/es/legacy-transfer/src/TransferList.d.ts +8 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +8 -0
- package/es/legacy-transfer/styles/light.d.ts +8 -0
- package/es/modal/src/BodyWrapper.d.ts +16 -0
- package/es/modal/src/Modal.d.ts +72 -0
- package/es/modal/styles/light.d.ts +8 -0
- package/es/notification/src/Notification.d.ts +5 -0
- package/es/notification/src/Notification.js +16 -6
- package/es/notification/src/NotificationContainer.d.ts +12 -0
- package/es/notification/src/NotificationProvider.d.ts +108 -0
- package/es/notification/src/styles/index.cssr.js +12 -8
- package/es/notification/styles/light.d.ts +24 -0
- package/es/notification/styles/light.js +9 -8
- package/es/popconfirm/src/Popconfirm.d.ts +80 -0
- package/es/popconfirm/styles/light.d.ts +8 -0
- package/es/time-picker/src/Panel.d.ts +8 -0
- package/es/time-picker/src/TimePicker.d.ts +80 -0
- package/es/time-picker/styles/light.d.ts +8 -0
- package/es/transfer/src/Transfer.d.ts +80 -0
- package/es/transfer/src/TransferFilter.d.ts +8 -0
- package/es/transfer/src/TransferList.d.ts +8 -0
- package/es/transfer/src/TransferListItem.d.ts +8 -0
- package/es/transfer/styles/light.d.ts +8 -0
- package/es/upload/src/Upload.d.ts +90 -0
- package/es/upload/src/Upload.js +2 -1
- package/es/upload/src/UploadFile.d.ts +9 -0
- package/es/upload/src/UploadProgress.d.ts +9 -0
- package/es/upload/src/styles/index.cssr.js +1 -0
- package/es/upload/src/useUploadActionsRender.js +5 -1
- package/es/upload/styles/light.d.ts +10 -0
- package/es/upload/styles/light.js +6 -5
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.js +1 -1
- package/lib/button/src/Button.d.ts +72 -0
- package/lib/button/src/Button.js +13 -7
- package/lib/button/src/styles/index.cssr.js +1 -2
- package/lib/button/styles/light.d.ts +8 -0
- package/lib/button/styles/light.js +7 -7
- package/lib/calendar/src/Calendar.d.ts +80 -0
- package/lib/calendar/styles/light.d.ts +8 -0
- package/lib/chat/index.d.ts +2 -1
- package/lib/chat/index.js +5 -1
- package/lib/chat/src/Chat.d.ts +87 -7
- package/lib/chat/src/Chat.js +12 -12
- package/lib/chat/src/ChatListItems.d.ts +1847 -4
- package/lib/chat/src/ChatListItems.js +14 -10
- package/lib/chat/src/ChatMessages.d.ts +1848 -4
- package/lib/chat/src/ChatMessages.js +25 -8
- package/lib/chat/src/ChatParts/MainArea.js +10 -10
- package/lib/chat/src/ChatParts/Sidebar.js +2 -2
- package/lib/chat/src/interface.d.ts +4 -0
- package/lib/chat/src/styles/index.cssr.js +14 -17
- package/lib/chat/styles/dark.d.ts +8 -0
- package/lib/chat/styles/light.d.ts +9 -1
- package/lib/chat/styles/light.js +15 -3
- package/lib/color-picker/src/ColorInputUnit.d.ts +8 -0
- package/lib/color-picker/src/ColorPicker.d.ts +72 -0
- package/lib/color-picker/styles/light.d.ts +8 -0
- package/lib/data-table/src/DataTable.d.ts +56 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +8 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +8 -0
- package/lib/data-table/src/TableParts/Body.d.ts +8 -0
- package/lib/data-table/src/TableParts/Header.d.ts +8 -0
- package/lib/data-table/src/interface.d.ts +24 -0
- package/lib/data-table/styles/light.d.ts +8 -0
- package/lib/date-picker/src/DatePicker.d.ts +168 -0
- package/lib/date-picker/src/panel/date.d.ts +24 -0
- package/lib/date-picker/src/panel/daterange.d.ts +24 -0
- package/lib/date-picker/src/panel/datetime.d.ts +24 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +24 -0
- package/lib/date-picker/src/panel/panelMonth.d.ts +48 -0
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +24 -0
- package/lib/date-picker/src/panel/panelYear.d.ts +48 -0
- package/lib/date-picker/src/panel/panelYearContent.d.ts +24 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +24 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +24 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +24 -0
- package/lib/date-picker/styles/light.d.ts +16 -0
- package/lib/dialog/src/Dialog.d.ts +56 -0
- package/lib/dialog/src/DialogProvider.d.ts +16 -0
- package/lib/dialog/styles/light.d.ts +8 -0
- package/lib/dynamic-input/src/DynamicInput.d.ts +80 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +8 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +8 -0
- package/lib/dynamic-input/styles/light.d.ts +8 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +80 -0
- package/lib/dynamic-tags/styles/light.d.ts +8 -0
- package/lib/input-number/src/InputNumber.d.ts +80 -0
- package/lib/input-number/styles/light.d.ts +8 -0
- package/lib/legacy-transfer/src/Transfer.d.ts +80 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +8 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +8 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +8 -0
- package/lib/legacy-transfer/styles/light.d.ts +8 -0
- package/lib/modal/src/BodyWrapper.d.ts +16 -0
- package/lib/modal/src/Modal.d.ts +72 -0
- package/lib/modal/styles/light.d.ts +8 -0
- package/lib/notification/src/Notification.d.ts +5 -0
- package/lib/notification/src/Notification.js +14 -4
- package/lib/notification/src/NotificationContainer.d.ts +12 -0
- package/lib/notification/src/NotificationProvider.d.ts +108 -0
- package/lib/notification/src/styles/index.cssr.js +12 -8
- package/lib/notification/styles/light.d.ts +24 -0
- package/lib/notification/styles/light.js +9 -8
- package/lib/popconfirm/src/Popconfirm.d.ts +80 -0
- package/lib/popconfirm/styles/light.d.ts +8 -0
- package/lib/time-picker/src/Panel.d.ts +8 -0
- package/lib/time-picker/src/TimePicker.d.ts +80 -0
- package/lib/time-picker/styles/light.d.ts +8 -0
- package/lib/transfer/src/Transfer.d.ts +80 -0
- package/lib/transfer/src/TransferFilter.d.ts +8 -0
- package/lib/transfer/src/TransferList.d.ts +8 -0
- package/lib/transfer/src/TransferListItem.d.ts +8 -0
- package/lib/transfer/styles/light.d.ts +8 -0
- package/lib/upload/src/Upload.d.ts +90 -0
- package/lib/upload/src/Upload.js +2 -1
- package/lib/upload/src/UploadFile.d.ts +9 -0
- package/lib/upload/src/UploadProgress.d.ts +9 -0
- package/lib/upload/src/styles/index.cssr.js +1 -0
- package/lib/upload/src/useUploadActionsRender.js +5 -1
- package/lib/upload/styles/light.d.ts +10 -0
- package/lib/upload/styles/light.js +6 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +4 -4
|
@@ -15,6 +15,7 @@ const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
|
15
15
|
const styles_1 = require("../styles");
|
|
16
16
|
const _mixins_1 = require("../../_mixins");
|
|
17
17
|
const icons_1 = require("../../_internal/icons");
|
|
18
|
+
const flex_1 = require("../../flex");
|
|
18
19
|
const statusIconMapper = {
|
|
19
20
|
[interface_1.MessageStatus.READ]: icons_1.CheckmarkDoneSharp,
|
|
20
21
|
[interface_1.MessageStatus.PENDING]: icons_1.MdTime,
|
|
@@ -58,10 +59,11 @@ exports.chatListItemsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.
|
|
|
58
59
|
exports.default = (0, vue_1.defineComponent)({
|
|
59
60
|
name: 'ChatListItems',
|
|
60
61
|
props: exports.chatListItemsProps,
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
setup(props, { slots }) {
|
|
63
|
+
var _a;
|
|
64
|
+
const UChat = (0, vue_1.inject)(interface_1.chatInjectionKey, null);
|
|
63
65
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
64
|
-
const themeRef = (0, _mixins_1.useTheme)('Chat', '-chat', index_cssr_1.default, styles_1.chatLight, props, mergedClsPrefixRef);
|
|
66
|
+
const themeRef = (_a = UChat === null || UChat === void 0 ? void 0 : UChat.mergedThemeRef) !== null && _a !== void 0 ? _a : (0, _mixins_1.useTheme)('Chat', '-chat', index_cssr_1.default, styles_1.chatLight, props, mergedClsPrefixRef);
|
|
65
67
|
const { localeRef } = (0, _mixins_1.useLocale)('Chat');
|
|
66
68
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
67
69
|
const { common: { cubicBezierEaseInOut, brandPrimary500, staticGreen, staticRed, textPrimary, textSecondary, textTertiary }, self: { backgroundColor, borderColor, sidebarBackgroundColor, sidebarBorderColor, sidebarItemBackgroundColor, sidebarItemBackgroundColorHover, sidebarItemBackgroundColorSelected, sidebarItemTextColor, sidebarItemTextColorSelected, sidebarItemSubtitleColor, sidebarItemTimeColor, unreadNotificationBackgroundColor, borderRadius } } = themeRef.value;
|
|
@@ -92,7 +94,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
92
94
|
const mergedTypingTextRef = (0, vue_1.computed)(() => { var _a; return (_a = props.typingText) !== null && _a !== void 0 ? _a : localeRef.value.typingText; });
|
|
93
95
|
const handleChatSelect = (chatId) => {
|
|
94
96
|
var _a;
|
|
95
|
-
emit('chat-select', chatId);
|
|
96
97
|
(_a = props.onChatSelect) === null || _a === void 0 ? void 0 : _a.call(props, chatId);
|
|
97
98
|
};
|
|
98
99
|
const renderChatItem = (item) => {
|
|
@@ -107,7 +108,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
107
108
|
`${mergedClsPrefixRef.value}-chat-sidebar__item--selected`,
|
|
108
109
|
isTyping && `${mergedClsPrefixRef.value}-chat-sidebar__item--typing`
|
|
109
110
|
] }, {
|
|
110
|
-
prefix: () => ((0, vue_1.h)(avatar_1.UAvatar, Object.assign({ size: "medium", src: typeof item.avatar === 'string' ? item.avatar : undefined }, props.avatarProps), {
|
|
111
|
+
prefix: () => ((0, vue_1.h)(avatar_1.UAvatar, Object.assign({ size: "medium", src: typeof item.avatar === 'string' ? item.avatar : undefined }, props.avatarProps, { theme: themeRef.value.peers.Avatar, themeOverrides: themeRef.value.peerOverrides.Avatar }), {
|
|
111
112
|
default: () => {
|
|
112
113
|
var _a;
|
|
113
114
|
return typeof item.avatar === 'function'
|
|
@@ -147,13 +148,14 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
147
148
|
statusIconMapper[item.messageStatus] ? ((0, vue_1.h)(icon_1.UIcon, { size: 16, component: statusIconMapper[item.messageStatus], class: [
|
|
148
149
|
`${mergedClsPrefixRef.value}-chat-sidebar__item-status-icon`,
|
|
149
150
|
`${mergedClsPrefixRef.value}-chat-sidebar__item-status-icon--${item.messageStatus}`
|
|
150
|
-
] })) : null),
|
|
151
|
-
!lastMessageIsOwn && hasUnreadIncoming && ((0, vue_1.h)(badge_1.UBadge, Object.assign({ value: displayUnreadCount }, props.badgeProps))))));
|
|
151
|
+
], theme: themeRef.value.peers.Icon, themeOverrides: themeRef.value.peerOverrides.Icon })) : null),
|
|
152
|
+
!lastMessageIsOwn && hasUnreadIncoming && ((0, vue_1.h)(badge_1.UBadge, Object.assign({ value: displayUnreadCount }, props.badgeProps, { theme: themeRef.value.peers.Badge, themeOverrides: themeRef.value.peerOverrides.Badge }))))));
|
|
152
153
|
}
|
|
153
154
|
}));
|
|
154
155
|
};
|
|
155
156
|
return {
|
|
156
157
|
mergedClsPrefixRef,
|
|
158
|
+
mergedTheme: themeRef,
|
|
157
159
|
renderChatItem,
|
|
158
160
|
cssVars: cssVarsRef,
|
|
159
161
|
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
@@ -167,16 +169,18 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
167
169
|
const content = (() => {
|
|
168
170
|
var _a;
|
|
169
171
|
if (this.loading) {
|
|
170
|
-
return ((0, vue_1.h)(list_1.UList, { loading: true }, {
|
|
172
|
+
return ((0, vue_1.h)(list_1.UList, { loading: true, theme: this.mergedTheme.peers.List, themeOverrides: this.mergedTheme.peerOverrides.List }, {
|
|
171
173
|
default: () => Array.from({ length: this.loadingCount || 10 }).map((_, index) => ((0, vue_1.h)(list_1.UListItem, { key: index, avatar: { icon: icons_1.PersonOutline }, description: { text: 'Loading...' }, header: { text: 'Loading...' } })))
|
|
172
174
|
}));
|
|
173
175
|
}
|
|
174
176
|
if ((_a = this.chatItems) === null || _a === void 0 ? void 0 : _a.length) {
|
|
175
|
-
return ((0, vue_1.h)(list_1.UList, { showIcon: false }, {
|
|
177
|
+
return ((0, vue_1.h)(list_1.UList, { showIcon: false, theme: this.mergedTheme.peers.List, themeOverrides: this.mergedTheme.peerOverrides.List }, {
|
|
176
178
|
default: () => { var _a; return (_a = this.chatItems) === null || _a === void 0 ? void 0 : _a.map((item) => renderChatItem(item)); }
|
|
177
179
|
}));
|
|
178
180
|
}
|
|
179
|
-
return (0, vue_1.h)(
|
|
181
|
+
return ((0, vue_1.h)(flex_1.UFlex, { justify: "center", align: "center", vertical: true }, {
|
|
182
|
+
default: () => ((0, vue_1.h)(empty_1.UEmpty, Object.assign({}, this.emptyProps, { theme: this.mergedTheme.peers.Empty, themeOverrides: this.mergedTheme.peerOverrides.Empty })))
|
|
183
|
+
}));
|
|
180
184
|
})();
|
|
181
185
|
return ((0, vue_1.h)("div", { class: [`${mergedClsPrefixRef}-chat`, this.themeClass], style: this.cssVars },
|
|
182
186
|
(0, vue_1.h)("div", { class: `${mergedClsPrefixRef}-chat-sidebar`, style: {
|