@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/chat/src/Chat.d.ts
CHANGED
|
@@ -105,24 +105,32 @@ export declare const chatProps: {
|
|
|
105
105
|
};
|
|
106
106
|
retryText: {
|
|
107
107
|
type: PropType<ChatPropsType["retryText"]>;
|
|
108
|
-
default:
|
|
108
|
+
default: undefined;
|
|
109
109
|
};
|
|
110
110
|
typingText: {
|
|
111
111
|
type: PropType<ChatPropsType["typingText"]>;
|
|
112
|
-
default:
|
|
112
|
+
default: undefined;
|
|
113
113
|
};
|
|
114
114
|
closeButtonText: {
|
|
115
115
|
type: PropType<ChatPropsType["closeButtonText"]>;
|
|
116
|
-
default:
|
|
116
|
+
default: undefined;
|
|
117
117
|
};
|
|
118
118
|
chatItemsLoading: {
|
|
119
119
|
type: PropType<ChatPropsType["chatItemsLoading"]>;
|
|
120
120
|
default: boolean;
|
|
121
121
|
};
|
|
122
|
+
chatItemsLoadingCount: {
|
|
123
|
+
type: PropType<ChatPropsType["chatItemsLoadingCount"]>;
|
|
124
|
+
default: number;
|
|
125
|
+
};
|
|
122
126
|
messagesLoading: {
|
|
123
127
|
type: PropType<ChatPropsType["messagesLoading"]>;
|
|
124
128
|
default: boolean;
|
|
125
129
|
};
|
|
130
|
+
messagesLoadingCount: {
|
|
131
|
+
type: PropType<ChatPropsType["messagesLoadingCount"]>;
|
|
132
|
+
default: number;
|
|
133
|
+
};
|
|
126
134
|
maxHeight: {
|
|
127
135
|
type: PropType<string | number>;
|
|
128
136
|
default: undefined;
|
|
@@ -374,9 +382,7 @@ export declare const chatProps: {
|
|
|
374
382
|
clearColorPressed: string;
|
|
375
383
|
caretColorSecondary: string;
|
|
376
384
|
filterCounterTextColor: string;
|
|
377
|
-
filterCounterSeparatorColor: string;
|
|
378
385
|
filterCounterTextColorDisabled: string;
|
|
379
|
-
filterCounterSeparatorColorDisabled: string;
|
|
380
386
|
arrowColorSecondary: string;
|
|
381
387
|
clearColorSecondary: string;
|
|
382
388
|
colorSecondary: string;
|
|
@@ -1025,9 +1031,7 @@ export declare const chatProps: {
|
|
|
1025
1031
|
clearColorPressed: string;
|
|
1026
1032
|
caretColorSecondary: string;
|
|
1027
1033
|
filterCounterTextColor: string;
|
|
1028
|
-
filterCounterSeparatorColor: string;
|
|
1029
1034
|
filterCounterTextColorDisabled: string;
|
|
1030
|
-
filterCounterSeparatorColorDisabled: string;
|
|
1031
1035
|
arrowColorSecondary: string;
|
|
1032
1036
|
clearColorSecondary: string;
|
|
1033
1037
|
colorSecondary: string;
|
|
@@ -1676,9 +1680,7 @@ export declare const chatProps: {
|
|
|
1676
1680
|
clearColorPressed: string;
|
|
1677
1681
|
caretColorSecondary: string;
|
|
1678
1682
|
filterCounterTextColor: string;
|
|
1679
|
-
filterCounterSeparatorColor: string;
|
|
1680
1683
|
filterCounterTextColorDisabled: string;
|
|
1681
|
-
filterCounterSeparatorColorDisabled: string;
|
|
1682
1684
|
arrowColorSecondary: string;
|
|
1683
1685
|
clearColorSecondary: string;
|
|
1684
1686
|
colorSecondary: string;
|
|
@@ -2229,24 +2231,32 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2229
2231
|
};
|
|
2230
2232
|
retryText: {
|
|
2231
2233
|
type: PropType<ChatPropsType["retryText"]>;
|
|
2232
|
-
default:
|
|
2234
|
+
default: undefined;
|
|
2233
2235
|
};
|
|
2234
2236
|
typingText: {
|
|
2235
2237
|
type: PropType<ChatPropsType["typingText"]>;
|
|
2236
|
-
default:
|
|
2238
|
+
default: undefined;
|
|
2237
2239
|
};
|
|
2238
2240
|
closeButtonText: {
|
|
2239
2241
|
type: PropType<ChatPropsType["closeButtonText"]>;
|
|
2240
|
-
default:
|
|
2242
|
+
default: undefined;
|
|
2241
2243
|
};
|
|
2242
2244
|
chatItemsLoading: {
|
|
2243
2245
|
type: PropType<ChatPropsType["chatItemsLoading"]>;
|
|
2244
2246
|
default: boolean;
|
|
2245
2247
|
};
|
|
2248
|
+
chatItemsLoadingCount: {
|
|
2249
|
+
type: PropType<ChatPropsType["chatItemsLoadingCount"]>;
|
|
2250
|
+
default: number;
|
|
2251
|
+
};
|
|
2246
2252
|
messagesLoading: {
|
|
2247
2253
|
type: PropType<ChatPropsType["messagesLoading"]>;
|
|
2248
2254
|
default: boolean;
|
|
2249
2255
|
};
|
|
2256
|
+
messagesLoadingCount: {
|
|
2257
|
+
type: PropType<ChatPropsType["messagesLoadingCount"]>;
|
|
2258
|
+
default: number;
|
|
2259
|
+
};
|
|
2250
2260
|
maxHeight: {
|
|
2251
2261
|
type: PropType<string | number>;
|
|
2252
2262
|
default: undefined;
|
|
@@ -2498,9 +2508,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2498
2508
|
clearColorPressed: string;
|
|
2499
2509
|
caretColorSecondary: string;
|
|
2500
2510
|
filterCounterTextColor: string;
|
|
2501
|
-
filterCounterSeparatorColor: string;
|
|
2502
2511
|
filterCounterTextColorDisabled: string;
|
|
2503
|
-
filterCounterSeparatorColorDisabled: string;
|
|
2504
2512
|
arrowColorSecondary: string;
|
|
2505
2513
|
clearColorSecondary: string;
|
|
2506
2514
|
colorSecondary: string;
|
|
@@ -3149,9 +3157,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3149
3157
|
clearColorPressed: string;
|
|
3150
3158
|
caretColorSecondary: string;
|
|
3151
3159
|
filterCounterTextColor: string;
|
|
3152
|
-
filterCounterSeparatorColor: string;
|
|
3153
3160
|
filterCounterTextColorDisabled: string;
|
|
3154
|
-
filterCounterSeparatorColorDisabled: string;
|
|
3155
3161
|
arrowColorSecondary: string;
|
|
3156
3162
|
clearColorSecondary: string;
|
|
3157
3163
|
colorSecondary: string;
|
|
@@ -3800,9 +3806,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3800
3806
|
clearColorPressed: string;
|
|
3801
3807
|
caretColorSecondary: string;
|
|
3802
3808
|
filterCounterTextColor: string;
|
|
3803
|
-
filterCounterSeparatorColor: string;
|
|
3804
3809
|
filterCounterTextColorDisabled: string;
|
|
3805
|
-
filterCounterSeparatorColorDisabled: string;
|
|
3806
3810
|
arrowColorSecondary: string;
|
|
3807
3811
|
clearColorSecondary: string;
|
|
3808
3812
|
colorSecondary: string;
|
|
@@ -4456,9 +4460,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4456
4460
|
clearColorPressed: string;
|
|
4457
4461
|
caretColorSecondary: string;
|
|
4458
4462
|
filterCounterTextColor: string;
|
|
4459
|
-
filterCounterSeparatorColor: string;
|
|
4460
4463
|
filterCounterTextColorDisabled: string;
|
|
4461
|
-
filterCounterSeparatorColorDisabled: string;
|
|
4462
4464
|
arrowColorSecondary: string;
|
|
4463
4465
|
clearColorSecondary: string;
|
|
4464
4466
|
colorSecondary: string;
|
|
@@ -4998,9 +5000,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4998
5000
|
clearColorPressed: string;
|
|
4999
5001
|
caretColorSecondary: string;
|
|
5000
5002
|
filterCounterTextColor: string;
|
|
5001
|
-
filterCounterSeparatorColor: string;
|
|
5002
5003
|
filterCounterTextColorDisabled: string;
|
|
5003
|
-
filterCounterSeparatorColorDisabled: string;
|
|
5004
5004
|
arrowColorSecondary: string;
|
|
5005
5005
|
clearColorSecondary: string;
|
|
5006
5006
|
colorSecondary: string;
|
|
@@ -5275,24 +5275,32 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5275
5275
|
};
|
|
5276
5276
|
retryText: {
|
|
5277
5277
|
type: PropType<ChatPropsType["retryText"]>;
|
|
5278
|
-
default:
|
|
5278
|
+
default: undefined;
|
|
5279
5279
|
};
|
|
5280
5280
|
typingText: {
|
|
5281
5281
|
type: PropType<ChatPropsType["typingText"]>;
|
|
5282
|
-
default:
|
|
5282
|
+
default: undefined;
|
|
5283
5283
|
};
|
|
5284
5284
|
closeButtonText: {
|
|
5285
5285
|
type: PropType<ChatPropsType["closeButtonText"]>;
|
|
5286
|
-
default:
|
|
5286
|
+
default: undefined;
|
|
5287
5287
|
};
|
|
5288
5288
|
chatItemsLoading: {
|
|
5289
5289
|
type: PropType<ChatPropsType["chatItemsLoading"]>;
|
|
5290
5290
|
default: boolean;
|
|
5291
5291
|
};
|
|
5292
|
+
chatItemsLoadingCount: {
|
|
5293
|
+
type: PropType<ChatPropsType["chatItemsLoadingCount"]>;
|
|
5294
|
+
default: number;
|
|
5295
|
+
};
|
|
5292
5296
|
messagesLoading: {
|
|
5293
5297
|
type: PropType<ChatPropsType["messagesLoading"]>;
|
|
5294
5298
|
default: boolean;
|
|
5295
5299
|
};
|
|
5300
|
+
messagesLoadingCount: {
|
|
5301
|
+
type: PropType<ChatPropsType["messagesLoadingCount"]>;
|
|
5302
|
+
default: number;
|
|
5303
|
+
};
|
|
5296
5304
|
maxHeight: {
|
|
5297
5305
|
type: PropType<string | number>;
|
|
5298
5306
|
default: undefined;
|
|
@@ -5544,9 +5552,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5544
5552
|
clearColorPressed: string;
|
|
5545
5553
|
caretColorSecondary: string;
|
|
5546
5554
|
filterCounterTextColor: string;
|
|
5547
|
-
filterCounterSeparatorColor: string;
|
|
5548
5555
|
filterCounterTextColorDisabled: string;
|
|
5549
|
-
filterCounterSeparatorColorDisabled: string;
|
|
5550
5556
|
arrowColorSecondary: string;
|
|
5551
5557
|
clearColorSecondary: string;
|
|
5552
5558
|
colorSecondary: string;
|
|
@@ -6195,9 +6201,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6195
6201
|
clearColorPressed: string;
|
|
6196
6202
|
caretColorSecondary: string;
|
|
6197
6203
|
filterCounterTextColor: string;
|
|
6198
|
-
filterCounterSeparatorColor: string;
|
|
6199
6204
|
filterCounterTextColorDisabled: string;
|
|
6200
|
-
filterCounterSeparatorColorDisabled: string;
|
|
6201
6205
|
arrowColorSecondary: string;
|
|
6202
6206
|
clearColorSecondary: string;
|
|
6203
6207
|
colorSecondary: string;
|
|
@@ -6846,9 +6850,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6846
6850
|
clearColorPressed: string;
|
|
6847
6851
|
caretColorSecondary: string;
|
|
6848
6852
|
filterCounterTextColor: string;
|
|
6849
|
-
filterCounterSeparatorColor: string;
|
|
6850
6853
|
filterCounterTextColorDisabled: string;
|
|
6851
|
-
filterCounterSeparatorColorDisabled: string;
|
|
6852
6854
|
arrowColorSecondary: string;
|
|
6853
6855
|
clearColorSecondary: string;
|
|
6854
6856
|
colorSecondary: string;
|
|
@@ -7307,6 +7309,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7307
7309
|
"onSend-error"?: ((...args: any[]) => any) | undefined;
|
|
7308
7310
|
}, {
|
|
7309
7311
|
disabled: boolean | undefined;
|
|
7312
|
+
typingText: string | undefined;
|
|
7313
|
+
retryText: string | undefined;
|
|
7314
|
+
closeButtonText: string | undefined;
|
|
7310
7315
|
maxHeight: string | number;
|
|
7311
7316
|
emptyProps: Partial<Partial<import("../..").EmptyProps> | undefined>;
|
|
7312
7317
|
onChatClose: () => void;
|
|
@@ -7334,11 +7339,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7334
7339
|
footerUploadProps: Partial<Partial<import("../..").UploadProps> | undefined>;
|
|
7335
7340
|
footerUploadTriggerProps: any;
|
|
7336
7341
|
footerIconProps: Partial<Partial<import("../..").IconProps> | undefined>;
|
|
7337
|
-
retryText: string | undefined;
|
|
7338
|
-
typingText: string | undefined;
|
|
7339
|
-
closeButtonText: string | undefined;
|
|
7340
7342
|
chatItemsLoading: boolean | undefined;
|
|
7343
|
+
chatItemsLoadingCount: number | undefined;
|
|
7341
7344
|
messagesLoading: boolean | undefined;
|
|
7345
|
+
messagesLoadingCount: number | undefined;
|
|
7342
7346
|
onChatSelect: import("./interface").OnChatSelect | undefined;
|
|
7343
7347
|
onMessageRetry: ((message: ChatMessageData) => void) | undefined;
|
|
7344
7348
|
onAttachmentUpload: import("./interface").OnAttachmentUpload | undefined;
|
package/es/chat/src/Chat.js
CHANGED
|
@@ -4,7 +4,7 @@ import ChatSidebar from './ChatParts/Sidebar';
|
|
|
4
4
|
import ChatMainArea from './ChatParts/MainArea';
|
|
5
5
|
import style from './styles/index.cssr';
|
|
6
6
|
import { chatLight } from '../styles';
|
|
7
|
-
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
7
|
+
import { useConfig, useTheme, useThemeClass, useLocale } from '../../_mixins';
|
|
8
8
|
import { resolveSlot } from '../../_utils';
|
|
9
9
|
import { UFlex } from '../../flex';
|
|
10
10
|
export const chatProps = Object.assign(Object.assign({}, useTheme.props), { chatItems: {
|
|
@@ -84,19 +84,25 @@ export const chatProps = Object.assign(Object.assign({}, useTheme.props), { chat
|
|
|
84
84
|
default: undefined
|
|
85
85
|
}, retryText: {
|
|
86
86
|
type: String,
|
|
87
|
-
default:
|
|
87
|
+
default: undefined
|
|
88
88
|
}, typingText: {
|
|
89
89
|
type: String,
|
|
90
|
-
default:
|
|
90
|
+
default: undefined
|
|
91
91
|
}, closeButtonText: {
|
|
92
92
|
type: String,
|
|
93
|
-
default:
|
|
93
|
+
default: undefined
|
|
94
94
|
}, chatItemsLoading: {
|
|
95
95
|
type: Boolean,
|
|
96
96
|
default: false
|
|
97
|
+
}, chatItemsLoadingCount: {
|
|
98
|
+
type: Number,
|
|
99
|
+
default: 10
|
|
97
100
|
}, messagesLoading: {
|
|
98
101
|
type: Boolean,
|
|
99
102
|
default: false
|
|
103
|
+
}, messagesLoadingCount: {
|
|
104
|
+
type: Number,
|
|
105
|
+
default: 10
|
|
100
106
|
}, maxHeight: {
|
|
101
107
|
type: [String, Number],
|
|
102
108
|
default: undefined
|
|
@@ -152,6 +158,7 @@ export default defineComponent({
|
|
|
152
158
|
setup(props, { slots, emit }) {
|
|
153
159
|
const { mergedClsPrefixRef } = useConfig(props);
|
|
154
160
|
const themeRef = useTheme('Chat', '-chat', style, chatLight, props, mergedClsPrefixRef);
|
|
161
|
+
const { localeRef } = useLocale('Chat');
|
|
155
162
|
const cssVarsRef = computed(() => {
|
|
156
163
|
const { common: { cubicBezierEaseInOut }, self: { backgroundColor, borderColor, sidebarBackgroundColor, sidebarBorderColor, sidebarItemBackgroundColor, sidebarItemBackgroundColorHover, sidebarItemBackgroundColorSelected, sidebarItemTextColor, sidebarItemTextColorSelected, sidebarItemSubtitleColor, sidebarItemTimeColor, mainBackgroundColor, headerBackgroundColor, headerBorderColor, headerTitleColor, messageBubbleBackgroundColorOwn, messageBubbleBackgroundColorOther, messageBubbleTextColorOwn, messageBubbleTextColorOther, messageTimeColor, messageStatusColor, attachmentBackgroundColorOwn, attachmentBackgroundColorOther, footerBackgroundColor, footerBorderColor, inputBackgroundColor, inputBorderColor, unreadNotificationBackgroundColor, unreadNotificationTextColor, typingIndicatorColor, dateSeparatorColor, dateSeparatorBackgroundColor, borderRadius, errorColor } } = themeRef.value;
|
|
157
164
|
return {
|
|
@@ -264,6 +271,17 @@ export default defineComponent({
|
|
|
264
271
|
emit('send-error', error);
|
|
265
272
|
(_a = props.onSendError) === null || _a === void 0 ? void 0 : _a.call(props, error);
|
|
266
273
|
};
|
|
274
|
+
const mergedInputPlaceholderRef = computed(() => {
|
|
275
|
+
var _a;
|
|
276
|
+
const placeholder = (_a = props.footerInputProps) === null || _a === void 0 ? void 0 : _a.placeholder;
|
|
277
|
+
if (Array.isArray(placeholder)) {
|
|
278
|
+
return placeholder[0];
|
|
279
|
+
}
|
|
280
|
+
return placeholder !== null && placeholder !== void 0 ? placeholder : localeRef.value.inputPlaceholder;
|
|
281
|
+
});
|
|
282
|
+
const mergedRetryTextRef = computed(() => { var _a; return (_a = props.retryText) !== null && _a !== void 0 ? _a : localeRef.value.retryText; });
|
|
283
|
+
const mergedTypingTextRef = computed(() => { var _a; return (_a = props.typingText) !== null && _a !== void 0 ? _a : localeRef.value.typingText; });
|
|
284
|
+
const mergedCloseButtonTextRef = computed(() => { var _a; return (_a = props.closeButtonText) !== null && _a !== void 0 ? _a : localeRef.value.closeButtonText; });
|
|
267
285
|
provide(chatInjectionKey, {
|
|
268
286
|
mergedClsPrefixRef,
|
|
269
287
|
chatItemsRef: toRef(props, 'chatItems'),
|
|
@@ -272,7 +290,9 @@ export default defineComponent({
|
|
|
272
290
|
messagesRef: filteredMessagesRef,
|
|
273
291
|
typingChatIdsRef: toRef(props, 'typingChatIds'),
|
|
274
292
|
chatItemsLoadingRef: toRef(props, 'chatItemsLoading'),
|
|
293
|
+
chatItemsLoadingCountRef: toRef(props, 'chatItemsLoadingCount'),
|
|
275
294
|
messagesLoadingRef: toRef(props, 'messagesLoading'),
|
|
295
|
+
messagesLoadingCountRef: toRef(props, 'messagesLoadingCount'),
|
|
276
296
|
listEmptyPropsRef: toRef(props, 'listEmptyProps'),
|
|
277
297
|
listHeaderTitleRef: toRef(props, 'listHeaderTitle'),
|
|
278
298
|
listHeaderActionsRef: toRef(props, 'listHeaderActions'),
|
|
@@ -289,9 +309,10 @@ export default defineComponent({
|
|
|
289
309
|
footerUploadPropsRef: toRef(props, 'footerUploadProps'),
|
|
290
310
|
footerUploadTriggerPropsRef: toRef(props, 'footerUploadTriggerProps'),
|
|
291
311
|
footerIconPropsRef: toRef(props, 'footerIconProps'),
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
312
|
+
inputPlaceholderRef: mergedInputPlaceholderRef,
|
|
313
|
+
retryTextRef: mergedRetryTextRef,
|
|
314
|
+
typingTextRef: mergedTypingTextRef,
|
|
315
|
+
closeButtonTextRef: mergedCloseButtonTextRef,
|
|
295
316
|
handleChatSelect,
|
|
296
317
|
handleMessageSend,
|
|
297
318
|
handleMessageRetry,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class ChatGlobalState {
|
|
2
|
+
private static instance;
|
|
3
|
+
private readonly notificationsShown;
|
|
4
|
+
private readonly openedChats;
|
|
5
|
+
private constructor();
|
|
6
|
+
static getInstance(): ChatGlobalState;
|
|
7
|
+
hasNotificationShown(chatId: string | number | symbol): boolean;
|
|
8
|
+
markNotificationShown(chatId: string | number | symbol): void;
|
|
9
|
+
isChatOpened(chatId: string | number | symbol): boolean;
|
|
10
|
+
markChatOpened(chatId: string | number | symbol): void;
|
|
11
|
+
markChatClosed(chatId: string | number | symbol): void;
|
|
12
|
+
reset(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export class ChatGlobalState {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.notificationsShown = new Set();
|
|
4
|
+
this.openedChats = new Set();
|
|
5
|
+
}
|
|
6
|
+
static getInstance() {
|
|
7
|
+
if (!ChatGlobalState.instance) {
|
|
8
|
+
ChatGlobalState.instance = new ChatGlobalState();
|
|
9
|
+
}
|
|
10
|
+
return ChatGlobalState.instance;
|
|
11
|
+
}
|
|
12
|
+
hasNotificationShown(chatId) {
|
|
13
|
+
return this.notificationsShown.has(chatId);
|
|
14
|
+
}
|
|
15
|
+
markNotificationShown(chatId) {
|
|
16
|
+
this.notificationsShown.add(chatId);
|
|
17
|
+
}
|
|
18
|
+
isChatOpened(chatId) {
|
|
19
|
+
return this.openedChats.has(chatId);
|
|
20
|
+
}
|
|
21
|
+
markChatOpened(chatId) {
|
|
22
|
+
this.openedChats.add(chatId);
|
|
23
|
+
}
|
|
24
|
+
markChatClosed(chatId) {
|
|
25
|
+
this.openedChats.delete(chatId);
|
|
26
|
+
}
|
|
27
|
+
reset() {
|
|
28
|
+
this.notificationsShown.clear();
|
|
29
|
+
this.openedChats.clear();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
ChatGlobalState.instance = null;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { ChatAttachment as ChatAttachmentType, ChatMessageData } from '../interface';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
message: {
|
|
5
|
+
type: PropType<ChatMessageData>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
attachments: {
|
|
9
|
+
type: PropType<ChatAttachmentType[]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
uploadProps: {
|
|
13
|
+
type: PropType<Record<string, any>>;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
withPadding: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}>[] | JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
message: {
|
|
24
|
+
type: PropType<ChatMessageData>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
attachments: {
|
|
28
|
+
type: PropType<ChatAttachmentType[]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
uploadProps: {
|
|
32
|
+
type: PropType<Record<string, any>>;
|
|
33
|
+
default: () => {};
|
|
34
|
+
};
|
|
35
|
+
withPadding: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
}>>, {
|
|
40
|
+
uploadProps: Record<string, any>;
|
|
41
|
+
withPadding: boolean;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { h, defineComponent } from 'vue';
|
|
2
|
+
import { UUpload, UUploadFileList } from '../../../upload';
|
|
3
|
+
export default defineComponent({
|
|
4
|
+
name: 'ChatAttachment',
|
|
5
|
+
props: {
|
|
6
|
+
message: {
|
|
7
|
+
type: Object,
|
|
8
|
+
required: true
|
|
9
|
+
},
|
|
10
|
+
attachments: {
|
|
11
|
+
type: Array,
|
|
12
|
+
required: true
|
|
13
|
+
},
|
|
14
|
+
uploadProps: {
|
|
15
|
+
type: Object,
|
|
16
|
+
default: () => ({})
|
|
17
|
+
},
|
|
18
|
+
withPadding: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: false
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(props, { slots }) {
|
|
24
|
+
const getThumbnailUrl = (att) => {
|
|
25
|
+
const url = [att.preview, att.thumbnail].find((value) => typeof value === 'string');
|
|
26
|
+
return url !== null && url !== void 0 ? url : null;
|
|
27
|
+
};
|
|
28
|
+
const renderAttachment = () => {
|
|
29
|
+
const fileList = props.attachments.map((att, index) => {
|
|
30
|
+
var _a, _b, _c;
|
|
31
|
+
return ({
|
|
32
|
+
id: `${String(props.message.id)}-attachment-${index}`,
|
|
33
|
+
name: att.name,
|
|
34
|
+
status: att.status || 'finished',
|
|
35
|
+
percentage: (_a = att.percentage) !== null && _a !== void 0 ? _a : null,
|
|
36
|
+
url: (_b = att.url) !== null && _b !== void 0 ? _b : null,
|
|
37
|
+
thumbnailUrl: getThumbnailUrl(att),
|
|
38
|
+
type: (_c = att.type) !== null && _c !== void 0 ? _c : null,
|
|
39
|
+
file: null,
|
|
40
|
+
batchId: null
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
const uploadComponent = (h(UUpload, Object.assign({ abstract: true, fileList: fileList, fileListStyle: props.withPadding
|
|
44
|
+
? {
|
|
45
|
+
display: 'flex',
|
|
46
|
+
flexDirection: 'column',
|
|
47
|
+
gap: '2px',
|
|
48
|
+
marginTop: '0'
|
|
49
|
+
}
|
|
50
|
+
: undefined, showRemoveButton: false, showDownloadButton: props.attachments.some((att) => att.status === 'finished'), showRetryButton: props.attachments.some((att) => att.status === 'error') }, props.uploadProps),
|
|
51
|
+
h(UUploadFileList, null, {
|
|
52
|
+
'upload-file-title': slots['upload-file-title']
|
|
53
|
+
? ({ file }) => { var _a; return (_a = slots['upload-file-title']) === null || _a === void 0 ? void 0 : _a.call(slots, file); }
|
|
54
|
+
: undefined,
|
|
55
|
+
'upload-file-subtitle': slots['upload-file-subtitle']
|
|
56
|
+
? ({ file }) => { var _a; return (_a = slots['upload-file-subtitle']) === null || _a === void 0 ? void 0 : _a.call(slots, file); }
|
|
57
|
+
: ({ file }) => {
|
|
58
|
+
var _a;
|
|
59
|
+
const att = props.attachments.find((a) => a.name === file.name);
|
|
60
|
+
return (h("span", { style: { fontSize: '12px', color: '#999' } }, (att === null || att === void 0 ? void 0 : att.size) || ((_a = file.file) === null || _a === void 0 ? void 0 : _a.size)));
|
|
61
|
+
}
|
|
62
|
+
})));
|
|
63
|
+
if (props.withPadding) {
|
|
64
|
+
return h("div", { style: { padding: '2px' } }, uploadComponent);
|
|
65
|
+
}
|
|
66
|
+
return uploadComponent;
|
|
67
|
+
};
|
|
68
|
+
return () => {
|
|
69
|
+
if (slots.default) {
|
|
70
|
+
return slots.default(props.message);
|
|
71
|
+
}
|
|
72
|
+
return renderAttachment();
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
interface Window {
|
|
3
|
-
__chatGlobalState?: {
|
|
4
|
-
notificationsShown: Set<string | number | symbol>;
|
|
5
|
-
openedChats: Set<string | number | symbol>;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
10
2
|
renderHeader: () => JSX.Element;
|
|
11
3
|
renderMessages: () => JSX.Element;
|
|
12
4
|
renderFooter: () => JSX.Element;
|
|
13
5
|
renderUnreadNotification: () => JSX.Element | null;
|
|
14
6
|
showUnreadNotification: import("vue").ComputedRef<boolean>;
|
|
15
|
-
messagesBodyRef: import("vue").Ref<
|
|
7
|
+
messagesBodyRef: import("vue").Ref<HTMLElement | {
|
|
8
|
+
$el: HTMLElement;
|
|
9
|
+
} | undefined>;
|
|
16
10
|
inputRef: import("vue").Ref<HTMLInputElement | undefined>;
|
|
17
11
|
inputValue: import("vue").Ref<string>;
|
|
18
12
|
handleSendMessage: () => Promise<void>;
|