@uzum-tech/ui 1.7.2 → 1.8.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 +1673 -996
- package/dist/index.prod.js +3 -3
- package/es/chat/index.d.ts +6 -1
- package/es/chat/index.js +3 -0
- package/es/chat/src/Chat.d.ts +19 -6
- package/es/chat/src/Chat.js +54 -14
- package/es/chat/src/ChatListItems.d.ts +7782 -0
- package/es/chat/src/ChatListItems.js +188 -0
- package/es/chat/src/ChatMessages.d.ts +7805 -0
- package/es/chat/src/ChatMessages.js +325 -0
- package/es/chat/src/ChatParts/ChatAttachment.js +4 -3
- package/es/chat/src/ChatParts/MainArea.d.ts +0 -2
- package/es/chat/src/ChatParts/MainArea.js +108 -229
- package/es/chat/src/ChatParts/Sidebar.js +16 -80
- package/es/chat/src/interface.d.ts +10 -1
- package/es/chat/src/styles/index.cssr.js +16 -16
- package/es/chat/styles/light.d.ts +1 -1
- package/es/chat/styles/light.js +15 -3
- package/es/locales/common/arDZ.js +2 -1
- package/es/locales/common/deDE.js +2 -1
- package/es/locales/common/enGB.js +2 -1
- package/es/locales/common/enUS.d.ts +1 -0
- package/es/locales/common/enUS.js +2 -1
- package/es/locales/common/eo.js +2 -1
- package/es/locales/common/esAR.js +2 -1
- package/es/locales/common/faIR.js +2 -1
- package/es/locales/common/frFR.js +2 -1
- package/es/locales/common/idID.js +2 -1
- package/es/locales/common/itIT.js +2 -1
- package/es/locales/common/jaJP.js +2 -1
- package/es/locales/common/koKR.js +2 -1
- package/es/locales/common/nbNO.js +2 -1
- package/es/locales/common/nlNL.js +2 -1
- package/es/locales/common/plPL.js +2 -1
- package/es/locales/common/ptBR.js +2 -1
- package/es/locales/common/ruRU.js +2 -1
- package/es/locales/common/skSK.js +2 -1
- package/es/locales/common/svSE.js +2 -1
- package/es/locales/common/thTH.js +2 -1
- package/es/locales/common/trTR.js +2 -1
- package/es/locales/common/ukUA.js +2 -1
- package/es/locales/common/viVN.js +2 -1
- package/es/locales/common/zhCN.js +2 -1
- package/es/locales/common/zhTW.js +2 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/chat/index.d.ts +6 -1
- package/lib/chat/index.js +9 -1
- package/lib/chat/src/Chat.d.ts +19 -6
- package/lib/chat/src/Chat.js +53 -13
- package/lib/chat/src/ChatListItems.d.ts +7782 -0
- package/lib/chat/src/ChatListItems.js +194 -0
- package/lib/chat/src/ChatMessages.d.ts +7805 -0
- package/lib/chat/src/ChatMessages.js +331 -0
- package/lib/chat/src/ChatParts/ChatAttachment.js +4 -3
- package/lib/chat/src/ChatParts/MainArea.d.ts +0 -2
- package/lib/chat/src/ChatParts/MainArea.js +107 -228
- package/lib/chat/src/ChatParts/Sidebar.js +17 -78
- package/lib/chat/src/interface.d.ts +10 -1
- package/lib/chat/src/styles/index.cssr.js +16 -16
- package/lib/chat/styles/light.d.ts +1 -1
- package/lib/chat/styles/light.js +15 -3
- package/lib/locales/common/arDZ.js +2 -1
- package/lib/locales/common/deDE.js +2 -1
- package/lib/locales/common/enGB.js +2 -1
- package/lib/locales/common/enUS.d.ts +1 -0
- package/lib/locales/common/enUS.js +2 -1
- package/lib/locales/common/eo.js +2 -1
- package/lib/locales/common/esAR.js +2 -1
- package/lib/locales/common/faIR.js +2 -1
- package/lib/locales/common/frFR.js +2 -1
- package/lib/locales/common/idID.js +2 -1
- package/lib/locales/common/itIT.js +2 -1
- package/lib/locales/common/jaJP.js +2 -1
- package/lib/locales/common/koKR.js +2 -1
- package/lib/locales/common/nbNO.js +2 -1
- package/lib/locales/common/nlNL.js +2 -1
- package/lib/locales/common/plPL.js +2 -1
- package/lib/locales/common/ptBR.js +2 -1
- package/lib/locales/common/ruRU.js +2 -1
- package/lib/locales/common/skSK.js +2 -1
- package/lib/locales/common/svSE.js +2 -1
- package/lib/locales/common/thTH.js +2 -1
- package/lib/locales/common/trTR.js +2 -1
- package/lib/locales/common/ukUA.js +2 -1
- package/lib/locales/common/viVN.js +2 -1
- package/lib/locales/common/zhCN.js +2 -1
- package/lib/locales/common/zhTW.js +2 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +2 -0
- package/web-types.json +149 -1
- package/es/chat/src/ChatGlobalState.d.ts +0 -13
- package/es/chat/src/ChatGlobalState.js +0 -32
- package/lib/chat/src/ChatGlobalState.d.ts +0 -13
- package/lib/chat/src/ChatGlobalState.js +0 -36
|
@@ -9,7 +9,6 @@ exports.default = (0, cssr_1.cB)('chat', `
|
|
|
9
9
|
max-height: 100%;
|
|
10
10
|
min-height: 0;
|
|
11
11
|
display: flex;
|
|
12
|
-
overflow: hidden;
|
|
13
12
|
box-sizing: border-box;
|
|
14
13
|
.u-list-item__text {
|
|
15
14
|
grid-template-columns: 1fr !important;
|
|
@@ -18,7 +17,6 @@ exports.default = (0, cssr_1.cB)('chat', `
|
|
|
18
17
|
height: 100%;
|
|
19
18
|
max-height: 100%;
|
|
20
19
|
min-height: 0;
|
|
21
|
-
overflow: hidden;
|
|
22
20
|
}
|
|
23
21
|
`, [(0, cssr_1.cB)('chat-sidebar', `
|
|
24
22
|
max-width: 388px;
|
|
@@ -29,10 +27,10 @@ exports.default = (0, cssr_1.cB)('chat', `
|
|
|
29
27
|
background-color: var(--u-sidebar-background-color);
|
|
30
28
|
border: 1px solid var(--u-sidebar-border-color);
|
|
31
29
|
border-radius: 20px;
|
|
32
|
-
overflow: hidden;
|
|
33
30
|
`, [(0, cssr_1.cE)('header', `
|
|
34
|
-
padding: 16px 16px 0 16px;
|
|
35
31
|
flex-shrink: 0;
|
|
32
|
+
`), (0, cssr_1.cE)('header-container', `
|
|
33
|
+
padding: 16px 16px 4px 16px;
|
|
36
34
|
`), (0, cssr_1.cE)('header-main', `
|
|
37
35
|
flex: 0 0 48%;
|
|
38
36
|
min-width: 0;
|
|
@@ -48,7 +46,7 @@ exports.default = (0, cssr_1.cB)('chat', `
|
|
|
48
46
|
overflow-y: auto;
|
|
49
47
|
min-height: 0;
|
|
50
48
|
padding: 16px;
|
|
51
|
-
padding-top:
|
|
49
|
+
padding-top: 8px;
|
|
52
50
|
`), (0, cssr_1.cE)('item', `
|
|
53
51
|
padding: 12px 16px;
|
|
54
52
|
width: 100%;
|
|
@@ -142,7 +140,6 @@ exports.default = (0, cssr_1.cB)('chat', `
|
|
|
142
140
|
`), (0, cssr_1.cE)('item-status sup', `
|
|
143
141
|
padding: 2px 6px 2px 5px;
|
|
144
142
|
height: 22px;
|
|
145
|
-
--u-color: var(--u-unread-notification-background-color);
|
|
146
143
|
`), (0, cssr_1.cE)('item-status-icon', `
|
|
147
144
|
color: var(--u-sidebar-item-time-color);
|
|
148
145
|
`, [(0, cssr_1.cM)('read', `
|
|
@@ -164,7 +161,6 @@ exports.default = (0, cssr_1.cB)('chat', `
|
|
|
164
161
|
height: 100%;
|
|
165
162
|
max-height: 100%;
|
|
166
163
|
min-height: 0;
|
|
167
|
-
overflow: hidden;
|
|
168
164
|
`, [(0, cssr_1.cE)('header', `
|
|
169
165
|
border-bottom: 1px solid var(--u-border-color);
|
|
170
166
|
width: 100%;
|
|
@@ -180,7 +176,7 @@ exports.default = (0, cssr_1.cB)('chat', `
|
|
|
180
176
|
color: var(--u-unread-notification-text-color);
|
|
181
177
|
padding: 6px 12px;
|
|
182
178
|
text-align: center;
|
|
183
|
-
font-size:
|
|
179
|
+
font-size: 14px;
|
|
184
180
|
font-weight: 500;
|
|
185
181
|
margin: 8px 0;
|
|
186
182
|
display: flex;
|
|
@@ -214,8 +210,19 @@ exports.default = (0, cssr_1.cB)('chat', `
|
|
|
214
210
|
color: var(--u-date-separator-color);
|
|
215
211
|
padding: 4px 12px;
|
|
216
212
|
border-radius: 12px;
|
|
217
|
-
font-size:
|
|
213
|
+
font-size: 14px;
|
|
218
214
|
font-weight: 500;
|
|
215
|
+
`)]), (0, cssr_1.cE)('mark', `
|
|
216
|
+
display: flex;
|
|
217
|
+
justify-content: center;
|
|
218
|
+
margin: 12px 0;
|
|
219
|
+
width: 100%;
|
|
220
|
+
`, [(0, cssr_1.c)('span', `
|
|
221
|
+
padding: 6px 12px;
|
|
222
|
+
border-radius: 8px;
|
|
223
|
+
color: var(--u-text-color-secondary);
|
|
224
|
+
background-color: var(--u-date-separator-background-color);
|
|
225
|
+
text-align: center;
|
|
219
226
|
`)]), (0, cssr_1.cE)('message', `
|
|
220
227
|
display: flex;
|
|
221
228
|
margin-bottom: 8px;
|
|
@@ -331,13 +338,6 @@ exports.default = (0, cssr_1.cB)('chat', `
|
|
|
331
338
|
`), (0, cssr_1.cE)('input', `
|
|
332
339
|
flex: 1;
|
|
333
340
|
margin-right: 4px;
|
|
334
|
-
--u-color: #F3F4F6 !important;
|
|
335
|
-
--u-color-focus: #F3F4F6 !important;
|
|
336
|
-
--u-border: none !important;
|
|
337
|
-
--u-border-focus: none !important;
|
|
338
|
-
--u-border-hover: none !important;
|
|
339
|
-
--u-box-shadow: none !important;
|
|
340
|
-
--u-box-shadow-focus: none !important;
|
|
341
341
|
`), (0, cssr_1.cE)('attach-btn', `
|
|
342
342
|
margin-left: 4px;
|
|
343
343
|
flex-shrink: 0;
|
|
@@ -35,7 +35,6 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
35
35
|
borderRadius: string;
|
|
36
36
|
errorColor: string;
|
|
37
37
|
};
|
|
38
|
-
export type ChatThemeVars = ReturnType<typeof self>;
|
|
39
38
|
declare const chatLight: import("../../_mixins").Theme<"Chat", {
|
|
40
39
|
backgroundColor: string;
|
|
41
40
|
borderColor: string;
|
|
@@ -686,4 +685,5 @@ declare const chatLight: import("../../_mixins").Theme<"Chat", {
|
|
|
686
685
|
}, any>;
|
|
687
686
|
}>;
|
|
688
687
|
export default chatLight;
|
|
688
|
+
export type ChatThemeVars = ReturnType<typeof self>;
|
|
689
689
|
export type ChatTheme = typeof chatLight;
|
package/lib/chat/styles/light.js
CHANGED
|
@@ -2,16 +2,28 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.self = void 0;
|
|
4
4
|
const styles_1 = require("../../input/styles");
|
|
5
|
+
const light_1 = require("../../input/styles/light");
|
|
5
6
|
const styles_2 = require("../../empty/styles");
|
|
6
7
|
const styles_3 = require("../../select/styles");
|
|
7
8
|
const styles_4 = require("../../avatar/styles");
|
|
8
9
|
const styles_5 = require("../../badge/styles");
|
|
10
|
+
const light_2 = require("../../badge/styles/light");
|
|
9
11
|
const styles_6 = require("../../button/styles");
|
|
10
12
|
const styles_7 = require("../../icon/styles");
|
|
11
13
|
const styles_8 = require("../../list/styles");
|
|
12
14
|
const styles_9 = require("../../typography/styles");
|
|
13
15
|
const common_1 = require("../../_styles/common");
|
|
14
16
|
const _mixins_1 = require("../../_mixins");
|
|
17
|
+
const chatInputLight = Object.assign(Object.assign({}, styles_1.inputLight), { self(vars) {
|
|
18
|
+
const originalInputSelf = (0, light_1.self)(vars);
|
|
19
|
+
const { elementsTertiary } = vars;
|
|
20
|
+
return Object.assign(Object.assign({}, originalInputSelf), { color: elementsTertiary, colorFocus: elementsTertiary, border: 'none', borderFocus: 'none', borderHover: 'none', boxShadow: 'none', boxShadowFocus: 'none' });
|
|
21
|
+
} });
|
|
22
|
+
const chatBadgeLight = Object.assign(Object.assign({}, styles_5.badgeLight), { self(vars) {
|
|
23
|
+
const originalBadgeSelf = (0, light_2.self)(vars);
|
|
24
|
+
const { brandPrimary400, elementsSecondary } = vars;
|
|
25
|
+
return Object.assign(Object.assign({}, originalBadgeSelf), { color: brandPrimary400, textColor: elementsSecondary });
|
|
26
|
+
} });
|
|
15
27
|
const self = (vars) => {
|
|
16
28
|
const { borderRadiusLarge, elementsQuaternary, elementsTertiary, textTertiary, textPrimary, textSecondary, surfacePrimary, brandPrimary500, brandPrimary400, transparencySecondary, elementsSecondary, elementsDarkQuinary, staticRed, staticWhite } = vars;
|
|
17
29
|
return {
|
|
@@ -46,7 +58,7 @@ const self = (vars) => {
|
|
|
46
58
|
unreadNotificationTextColor: elementsSecondary,
|
|
47
59
|
typingIndicatorColor: textSecondary,
|
|
48
60
|
dateSeparatorColor: textTertiary,
|
|
49
|
-
dateSeparatorBackgroundColor:
|
|
61
|
+
dateSeparatorBackgroundColor: 'transparent',
|
|
50
62
|
borderRadius: borderRadiusLarge,
|
|
51
63
|
errorColor: staticRed
|
|
52
64
|
};
|
|
@@ -56,11 +68,11 @@ const chatLight = (0, _mixins_1.createTheme)({
|
|
|
56
68
|
name: 'Chat',
|
|
57
69
|
common: common_1.commonLight,
|
|
58
70
|
peers: {
|
|
59
|
-
Input:
|
|
71
|
+
Input: chatInputLight,
|
|
60
72
|
Empty: styles_2.emptyLight,
|
|
61
73
|
Select: styles_3.selectLight,
|
|
62
74
|
Avatar: styles_4.avatarLight,
|
|
63
|
-
Badge:
|
|
75
|
+
Badge: chatBadgeLight,
|
|
64
76
|
Button: styles_6.buttonLight,
|
|
65
77
|
Icon: styles_7.iconLight,
|
|
66
78
|
List: styles_8.listLight,
|
|
@@ -130,7 +130,8 @@ const arDZ = {
|
|
|
130
130
|
inputPlaceholder: 'Type a message...',
|
|
131
131
|
typingText: 'Typing...',
|
|
132
132
|
retryText: 'Resend',
|
|
133
|
-
closeButtonText: 'Close chat'
|
|
133
|
+
closeButtonText: 'Close chat',
|
|
134
|
+
unreadNotificationText: 'new messages'
|
|
134
135
|
}
|
|
135
136
|
};
|
|
136
137
|
exports.default = arDZ;
|
|
@@ -130,7 +130,8 @@ const deDE = {
|
|
|
130
130
|
inputPlaceholder: 'Type a message...',
|
|
131
131
|
typingText: 'Typing...',
|
|
132
132
|
retryText: 'Resend',
|
|
133
|
-
closeButtonText: 'Close chat'
|
|
133
|
+
closeButtonText: 'Close chat',
|
|
134
|
+
unreadNotificationText: 'new messages'
|
|
134
135
|
}
|
|
135
136
|
};
|
|
136
137
|
exports.default = deDE;
|
|
@@ -131,7 +131,8 @@ const enGB = {
|
|
|
131
131
|
inputPlaceholder: 'Type a message...',
|
|
132
132
|
typingText: 'Typing...',
|
|
133
133
|
retryText: 'Resend',
|
|
134
|
-
closeButtonText: 'Close chat'
|
|
134
|
+
closeButtonText: 'Close chat',
|
|
135
|
+
unreadNotificationText: 'new messages'
|
|
135
136
|
}
|
|
136
137
|
};
|
|
137
138
|
exports.default = enGB;
|
|
@@ -131,7 +131,8 @@ const enUS = {
|
|
|
131
131
|
inputPlaceholder: 'Type a message...',
|
|
132
132
|
typingText: 'Typing...',
|
|
133
133
|
retryText: 'Resend',
|
|
134
|
-
closeButtonText: 'Close chat'
|
|
134
|
+
closeButtonText: 'Close chat',
|
|
135
|
+
unreadNotificationText: 'new messages'
|
|
135
136
|
}
|
|
136
137
|
};
|
|
137
138
|
exports.default = enUS;
|
package/lib/locales/common/eo.js
CHANGED
|
@@ -132,7 +132,8 @@ const eo = {
|
|
|
132
132
|
inputPlaceholder: 'Type a message...',
|
|
133
133
|
typingText: 'Typing...',
|
|
134
134
|
retryText: 'Resend',
|
|
135
|
-
closeButtonText: 'Close chat'
|
|
135
|
+
closeButtonText: 'Close chat',
|
|
136
|
+
unreadNotificationText: 'new messages'
|
|
136
137
|
}
|
|
137
138
|
};
|
|
138
139
|
exports.default = eo;
|
|
@@ -134,7 +134,8 @@ const esAR = {
|
|
|
134
134
|
inputPlaceholder: 'Type a message...',
|
|
135
135
|
typingText: 'Typing...',
|
|
136
136
|
retryText: 'Resend',
|
|
137
|
-
closeButtonText: 'Close chat'
|
|
137
|
+
closeButtonText: 'Close chat',
|
|
138
|
+
unreadNotificationText: 'new messages'
|
|
138
139
|
}
|
|
139
140
|
};
|
|
140
141
|
exports.default = esAR;
|
|
@@ -130,7 +130,8 @@ const faIR = {
|
|
|
130
130
|
inputPlaceholder: 'Type a message...',
|
|
131
131
|
typingText: 'Typing...',
|
|
132
132
|
retryText: 'Resend',
|
|
133
|
-
closeButtonText: 'Close chat'
|
|
133
|
+
closeButtonText: 'Close chat',
|
|
134
|
+
unreadNotificationText: 'new messages'
|
|
134
135
|
}
|
|
135
136
|
};
|
|
136
137
|
exports.default = faIR;
|
|
@@ -130,7 +130,8 @@ const frFR = {
|
|
|
130
130
|
inputPlaceholder: 'Type a message...',
|
|
131
131
|
typingText: 'Typing...',
|
|
132
132
|
retryText: 'Resend',
|
|
133
|
-
closeButtonText: 'Close chat'
|
|
133
|
+
closeButtonText: 'Close chat',
|
|
134
|
+
unreadNotificationText: 'new messages'
|
|
134
135
|
}
|
|
135
136
|
};
|
|
136
137
|
exports.default = frFR;
|
|
@@ -134,7 +134,8 @@ const idID = {
|
|
|
134
134
|
inputPlaceholder: 'Type a message...',
|
|
135
135
|
typingText: 'Typing...',
|
|
136
136
|
retryText: 'Resend',
|
|
137
|
-
closeButtonText: 'Close chat'
|
|
137
|
+
closeButtonText: 'Close chat',
|
|
138
|
+
unreadNotificationText: 'new messages'
|
|
138
139
|
}
|
|
139
140
|
};
|
|
140
141
|
exports.default = idID;
|
|
@@ -133,7 +133,8 @@ const itIT = {
|
|
|
133
133
|
inputPlaceholder: 'Type a message...',
|
|
134
134
|
typingText: 'Typing...',
|
|
135
135
|
retryText: 'Resend',
|
|
136
|
-
closeButtonText: 'Close chat'
|
|
136
|
+
closeButtonText: 'Close chat',
|
|
137
|
+
unreadNotificationText: 'new messages'
|
|
137
138
|
}
|
|
138
139
|
};
|
|
139
140
|
exports.default = itIT;
|
|
@@ -133,7 +133,8 @@ const jaJP = {
|
|
|
133
133
|
inputPlaceholder: 'Type a message...',
|
|
134
134
|
typingText: 'Typing...',
|
|
135
135
|
retryText: 'Resend',
|
|
136
|
-
closeButtonText: 'Close chat'
|
|
136
|
+
closeButtonText: 'Close chat',
|
|
137
|
+
unreadNotificationText: 'new messages'
|
|
137
138
|
}
|
|
138
139
|
};
|
|
139
140
|
exports.default = jaJP;
|
|
@@ -133,7 +133,8 @@ const koKR = {
|
|
|
133
133
|
inputPlaceholder: 'Type a message...',
|
|
134
134
|
typingText: 'Typing...',
|
|
135
135
|
retryText: 'Resend',
|
|
136
|
-
closeButtonText: 'Close chat'
|
|
136
|
+
closeButtonText: 'Close chat',
|
|
137
|
+
unreadNotificationText: 'new messages'
|
|
137
138
|
}
|
|
138
139
|
};
|
|
139
140
|
exports.default = koKR;
|
|
@@ -134,7 +134,8 @@ const nbNO = {
|
|
|
134
134
|
inputPlaceholder: 'Type a message...',
|
|
135
135
|
typingText: 'Typing...',
|
|
136
136
|
retryText: 'Resend',
|
|
137
|
-
closeButtonText: 'Close chat'
|
|
137
|
+
closeButtonText: 'Close chat',
|
|
138
|
+
unreadNotificationText: 'new messages'
|
|
138
139
|
}
|
|
139
140
|
};
|
|
140
141
|
exports.default = nbNO;
|
|
@@ -132,7 +132,8 @@ const nlNL = {
|
|
|
132
132
|
inputPlaceholder: 'Type a message...',
|
|
133
133
|
typingText: 'Typing...',
|
|
134
134
|
retryText: 'Resend',
|
|
135
|
-
closeButtonText: 'Close chat'
|
|
135
|
+
closeButtonText: 'Close chat',
|
|
136
|
+
unreadNotificationText: 'new messages'
|
|
136
137
|
}
|
|
137
138
|
};
|
|
138
139
|
exports.default = nlNL;
|
|
@@ -133,7 +133,8 @@ const plPL = {
|
|
|
133
133
|
inputPlaceholder: 'Type a message...',
|
|
134
134
|
typingText: 'Typing...',
|
|
135
135
|
retryText: 'Resend',
|
|
136
|
-
closeButtonText: 'Close chat'
|
|
136
|
+
closeButtonText: 'Close chat',
|
|
137
|
+
unreadNotificationText: 'new messages'
|
|
137
138
|
}
|
|
138
139
|
};
|
|
139
140
|
exports.default = plPL;
|
|
@@ -130,7 +130,8 @@ const ptBR = {
|
|
|
130
130
|
inputPlaceholder: 'Type a message...',
|
|
131
131
|
typingText: 'Typing...',
|
|
132
132
|
retryText: 'Resend',
|
|
133
|
-
closeButtonText: 'Close chat'
|
|
133
|
+
closeButtonText: 'Close chat',
|
|
134
|
+
unreadNotificationText: 'new messages'
|
|
134
135
|
}
|
|
135
136
|
};
|
|
136
137
|
exports.default = ptBR;
|
|
@@ -135,7 +135,8 @@ const ruRu = {
|
|
|
135
135
|
inputPlaceholder: 'Написать сообщение...',
|
|
136
136
|
typingText: 'Печатает...',
|
|
137
137
|
retryText: 'Повторно отправить',
|
|
138
|
-
closeButtonText: 'Завершить чат'
|
|
138
|
+
closeButtonText: 'Завершить чат',
|
|
139
|
+
unreadNotificationText: 'новых сообщений'
|
|
139
140
|
}
|
|
140
141
|
};
|
|
141
142
|
exports.default = ruRu;
|
|
@@ -134,7 +134,8 @@ const skSK = {
|
|
|
134
134
|
inputPlaceholder: 'Type a message...',
|
|
135
135
|
typingText: 'Typing...',
|
|
136
136
|
retryText: 'Resend',
|
|
137
|
-
closeButtonText: 'Close chat'
|
|
137
|
+
closeButtonText: 'Close chat',
|
|
138
|
+
unreadNotificationText: 'new messages'
|
|
138
139
|
}
|
|
139
140
|
};
|
|
140
141
|
exports.default = skSK;
|
|
@@ -130,7 +130,8 @@ const svSE = {
|
|
|
130
130
|
inputPlaceholder: 'Type a message...',
|
|
131
131
|
typingText: 'Typing...',
|
|
132
132
|
retryText: 'Resend',
|
|
133
|
-
closeButtonText: 'Close chat'
|
|
133
|
+
closeButtonText: 'Close chat',
|
|
134
|
+
unreadNotificationText: 'new messages'
|
|
134
135
|
}
|
|
135
136
|
};
|
|
136
137
|
exports.default = svSE;
|
|
@@ -134,7 +134,8 @@ const thTH = {
|
|
|
134
134
|
inputPlaceholder: 'Type a message...',
|
|
135
135
|
typingText: 'Typing...',
|
|
136
136
|
retryText: 'Resend',
|
|
137
|
-
closeButtonText: 'Close chat'
|
|
137
|
+
closeButtonText: 'Close chat',
|
|
138
|
+
unreadNotificationText: 'new messages'
|
|
138
139
|
}
|
|
139
140
|
};
|
|
140
141
|
exports.default = thTH;
|
|
@@ -131,7 +131,8 @@ const trTR = {
|
|
|
131
131
|
inputPlaceholder: 'Type a message...',
|
|
132
132
|
typingText: 'Typing...',
|
|
133
133
|
retryText: 'Resend',
|
|
134
|
-
closeButtonText: 'Close chat'
|
|
134
|
+
closeButtonText: 'Close chat',
|
|
135
|
+
unreadNotificationText: 'new messages'
|
|
135
136
|
}
|
|
136
137
|
};
|
|
137
138
|
exports.default = trTR;
|
|
@@ -131,7 +131,8 @@ const ukUA = {
|
|
|
131
131
|
inputPlaceholder: 'Type a message...',
|
|
132
132
|
typingText: 'Typing...',
|
|
133
133
|
retryText: 'Resend',
|
|
134
|
-
closeButtonText: 'Close chat'
|
|
134
|
+
closeButtonText: 'Close chat',
|
|
135
|
+
unreadNotificationText: 'new messages'
|
|
135
136
|
}
|
|
136
137
|
};
|
|
137
138
|
exports.default = ukUA;
|
|
@@ -130,7 +130,8 @@ const viVN = {
|
|
|
130
130
|
inputPlaceholder: 'Type a message...',
|
|
131
131
|
typingText: 'Typing...',
|
|
132
132
|
retryText: 'Resend',
|
|
133
|
-
closeButtonText: 'Close chat'
|
|
133
|
+
closeButtonText: 'Close chat',
|
|
134
|
+
unreadNotificationText: 'new messages'
|
|
134
135
|
}
|
|
135
136
|
};
|
|
136
137
|
exports.default = viVN;
|
|
@@ -130,7 +130,8 @@ const zhCN = {
|
|
|
130
130
|
inputPlaceholder: 'Type a message...',
|
|
131
131
|
typingText: 'Typing...',
|
|
132
132
|
retryText: 'Resend',
|
|
133
|
-
closeButtonText: 'Close chat'
|
|
133
|
+
closeButtonText: 'Close chat',
|
|
134
|
+
unreadNotificationText: 'new messages'
|
|
134
135
|
}
|
|
135
136
|
};
|
|
136
137
|
exports.default = zhCN;
|
|
@@ -130,7 +130,8 @@ const zhTW = {
|
|
|
130
130
|
inputPlaceholder: 'Type a message...',
|
|
131
131
|
typingText: 'Typing...',
|
|
132
132
|
retryText: 'Resend',
|
|
133
|
-
closeButtonText: 'Close chat'
|
|
133
|
+
closeButtonText: 'Close chat',
|
|
134
|
+
unreadNotificationText: 'new messages'
|
|
134
135
|
}
|
|
135
136
|
};
|
|
136
137
|
exports.default = zhTW;
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.
|
|
1
|
+
declare const _default: "1.8.1";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
package/volar.d.ts
CHANGED
|
@@ -147,6 +147,8 @@ declare module 'vue' {
|
|
|
147
147
|
UWatermark: typeof import('@uzum-tech/ui')['UWatermark']
|
|
148
148
|
UActionCard: typeof import('@uzum-tech/ui')['UActionCard']
|
|
149
149
|
UChat: typeof import('@uzum-tech/ui')['UChat']
|
|
150
|
+
UChatListItems: typeof import('@uzum-tech/ui')['UChatListItems']
|
|
151
|
+
UChatMessages: typeof import('@uzum-tech/ui')['UChatMessages']
|
|
150
152
|
}
|
|
151
153
|
}
|
|
152
154
|
export {}
|
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.
|
|
5
|
+
"version": "1.8.1",
|
|
6
6
|
"js-types-syntax": "typescript",
|
|
7
7
|
"contributions": {
|
|
8
8
|
"html": {
|
|
@@ -2120,6 +2120,13 @@
|
|
|
2120
2120
|
"description": "Text for close chat button.",
|
|
2121
2121
|
"default": "locale default"
|
|
2122
2122
|
},
|
|
2123
|
+
{
|
|
2124
|
+
"name": "unread-notification-text",
|
|
2125
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2126
|
+
"type": "string",
|
|
2127
|
+
"description": "Text shown in unread messages notification (e.g., \"5 new messages\").",
|
|
2128
|
+
"default": "locale default"
|
|
2129
|
+
},
|
|
2123
2130
|
{
|
|
2124
2131
|
"name": "chat-items-loading",
|
|
2125
2132
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
@@ -2233,6 +2240,147 @@
|
|
|
2233
2240
|
]
|
|
2234
2241
|
}
|
|
2235
2242
|
},
|
|
2243
|
+
{
|
|
2244
|
+
"name": "UChatListItems",
|
|
2245
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2246
|
+
"source": {
|
|
2247
|
+
"symbol": "UChatListItems"
|
|
2248
|
+
},
|
|
2249
|
+
"slots": [],
|
|
2250
|
+
"attributes": [],
|
|
2251
|
+
"props": [
|
|
2252
|
+
{
|
|
2253
|
+
"name": "chat-items",
|
|
2254
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2255
|
+
"type": "Array"
|
|
2256
|
+
},
|
|
2257
|
+
{
|
|
2258
|
+
"name": "selected-chat-id",
|
|
2259
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"name": "typing-chat-ids",
|
|
2263
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2264
|
+
"type": "Array"
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
"name": "typing-text",
|
|
2268
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2269
|
+
"type": "string"
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
"name": "loading",
|
|
2273
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2274
|
+
"type": "boolean"
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
"name": "loading-count",
|
|
2278
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2279
|
+
"type": "number"
|
|
2280
|
+
},
|
|
2281
|
+
{
|
|
2282
|
+
"name": "empty-props",
|
|
2283
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2284
|
+
"type": "object"
|
|
2285
|
+
},
|
|
2286
|
+
{
|
|
2287
|
+
"name": "avatar-props",
|
|
2288
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2289
|
+
"type": "object"
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
"name": "badge-props",
|
|
2293
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2294
|
+
"type": "object"
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
"name": "notifications-shown",
|
|
2298
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2299
|
+
"type": "object"
|
|
2300
|
+
}
|
|
2301
|
+
],
|
|
2302
|
+
"js": {
|
|
2303
|
+
"events": [
|
|
2304
|
+
{
|
|
2305
|
+
"name": "chat-select",
|
|
2306
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat"
|
|
2307
|
+
}
|
|
2308
|
+
]
|
|
2309
|
+
}
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
"name": "UChatMessages",
|
|
2313
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2314
|
+
"source": {
|
|
2315
|
+
"symbol": "UChatMessages"
|
|
2316
|
+
},
|
|
2317
|
+
"slots": [],
|
|
2318
|
+
"attributes": [],
|
|
2319
|
+
"props": [
|
|
2320
|
+
{
|
|
2321
|
+
"name": "messages",
|
|
2322
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2323
|
+
"type": "Array"
|
|
2324
|
+
},
|
|
2325
|
+
{
|
|
2326
|
+
"name": "loading",
|
|
2327
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2328
|
+
"type": "boolean"
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
"name": "loading-count",
|
|
2332
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2333
|
+
"type": "number"
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
"name": "typing-chat-ids",
|
|
2337
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2338
|
+
"type": "Array"
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
"name": "selected-chat-id",
|
|
2342
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat"
|
|
2343
|
+
},
|
|
2344
|
+
{
|
|
2345
|
+
"name": "typing-text",
|
|
2346
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2347
|
+
"type": "string"
|
|
2348
|
+
},
|
|
2349
|
+
{
|
|
2350
|
+
"name": "retry-text",
|
|
2351
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2352
|
+
"type": "string"
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
"name": "upload-props",
|
|
2356
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2357
|
+
"type": "object"
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
"name": "show-unread-notification",
|
|
2361
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2362
|
+
"type": "boolean"
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
"name": "unread-notification-text",
|
|
2366
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2367
|
+
"type": "string"
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
"name": "unread-notification-count",
|
|
2371
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat",
|
|
2372
|
+
"type": "number"
|
|
2373
|
+
}
|
|
2374
|
+
],
|
|
2375
|
+
"js": {
|
|
2376
|
+
"events": [
|
|
2377
|
+
{
|
|
2378
|
+
"name": "message-retry",
|
|
2379
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/chat"
|
|
2380
|
+
}
|
|
2381
|
+
]
|
|
2382
|
+
}
|
|
2383
|
+
},
|
|
2236
2384
|
{
|
|
2237
2385
|
"name": "UCarousel",
|
|
2238
2386
|
"description": "It's usually used to display good news.",
|