@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/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/lib/chat/src/Chat.js
CHANGED
|
@@ -90,19 +90,25 @@ exports.chatProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), {
|
|
|
90
90
|
default: undefined
|
|
91
91
|
}, retryText: {
|
|
92
92
|
type: String,
|
|
93
|
-
default:
|
|
93
|
+
default: undefined
|
|
94
94
|
}, typingText: {
|
|
95
95
|
type: String,
|
|
96
|
-
default:
|
|
96
|
+
default: undefined
|
|
97
97
|
}, closeButtonText: {
|
|
98
98
|
type: String,
|
|
99
|
-
default:
|
|
99
|
+
default: undefined
|
|
100
100
|
}, chatItemsLoading: {
|
|
101
101
|
type: Boolean,
|
|
102
102
|
default: false
|
|
103
|
+
}, chatItemsLoadingCount: {
|
|
104
|
+
type: Number,
|
|
105
|
+
default: 10
|
|
103
106
|
}, messagesLoading: {
|
|
104
107
|
type: Boolean,
|
|
105
108
|
default: false
|
|
109
|
+
}, messagesLoadingCount: {
|
|
110
|
+
type: Number,
|
|
111
|
+
default: 10
|
|
106
112
|
}, maxHeight: {
|
|
107
113
|
type: [String, Number],
|
|
108
114
|
default: undefined
|
|
@@ -158,6 +164,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
158
164
|
setup(props, { slots, emit }) {
|
|
159
165
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
160
166
|
const themeRef = (0, _mixins_1.useTheme)('Chat', '-chat', index_cssr_1.default, styles_1.chatLight, props, mergedClsPrefixRef);
|
|
167
|
+
const { localeRef } = (0, _mixins_1.useLocale)('Chat');
|
|
161
168
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
162
169
|
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;
|
|
163
170
|
return {
|
|
@@ -270,6 +277,17 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
270
277
|
emit('send-error', error);
|
|
271
278
|
(_a = props.onSendError) === null || _a === void 0 ? void 0 : _a.call(props, error);
|
|
272
279
|
};
|
|
280
|
+
const mergedInputPlaceholderRef = (0, vue_1.computed)(() => {
|
|
281
|
+
var _a;
|
|
282
|
+
const placeholder = (_a = props.footerInputProps) === null || _a === void 0 ? void 0 : _a.placeholder;
|
|
283
|
+
if (Array.isArray(placeholder)) {
|
|
284
|
+
return placeholder[0];
|
|
285
|
+
}
|
|
286
|
+
return placeholder !== null && placeholder !== void 0 ? placeholder : localeRef.value.inputPlaceholder;
|
|
287
|
+
});
|
|
288
|
+
const mergedRetryTextRef = (0, vue_1.computed)(() => { var _a; return (_a = props.retryText) !== null && _a !== void 0 ? _a : localeRef.value.retryText; });
|
|
289
|
+
const mergedTypingTextRef = (0, vue_1.computed)(() => { var _a; return (_a = props.typingText) !== null && _a !== void 0 ? _a : localeRef.value.typingText; });
|
|
290
|
+
const mergedCloseButtonTextRef = (0, vue_1.computed)(() => { var _a; return (_a = props.closeButtonText) !== null && _a !== void 0 ? _a : localeRef.value.closeButtonText; });
|
|
273
291
|
(0, vue_1.provide)(interface_1.chatInjectionKey, {
|
|
274
292
|
mergedClsPrefixRef,
|
|
275
293
|
chatItemsRef: (0, vue_1.toRef)(props, 'chatItems'),
|
|
@@ -278,7 +296,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
278
296
|
messagesRef: filteredMessagesRef,
|
|
279
297
|
typingChatIdsRef: (0, vue_1.toRef)(props, 'typingChatIds'),
|
|
280
298
|
chatItemsLoadingRef: (0, vue_1.toRef)(props, 'chatItemsLoading'),
|
|
299
|
+
chatItemsLoadingCountRef: (0, vue_1.toRef)(props, 'chatItemsLoadingCount'),
|
|
281
300
|
messagesLoadingRef: (0, vue_1.toRef)(props, 'messagesLoading'),
|
|
301
|
+
messagesLoadingCountRef: (0, vue_1.toRef)(props, 'messagesLoadingCount'),
|
|
282
302
|
listEmptyPropsRef: (0, vue_1.toRef)(props, 'listEmptyProps'),
|
|
283
303
|
listHeaderTitleRef: (0, vue_1.toRef)(props, 'listHeaderTitle'),
|
|
284
304
|
listHeaderActionsRef: (0, vue_1.toRef)(props, 'listHeaderActions'),
|
|
@@ -295,9 +315,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
295
315
|
footerUploadPropsRef: (0, vue_1.toRef)(props, 'footerUploadProps'),
|
|
296
316
|
footerUploadTriggerPropsRef: (0, vue_1.toRef)(props, 'footerUploadTriggerProps'),
|
|
297
317
|
footerIconPropsRef: (0, vue_1.toRef)(props, 'footerIconProps'),
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
318
|
+
inputPlaceholderRef: mergedInputPlaceholderRef,
|
|
319
|
+
retryTextRef: mergedRetryTextRef,
|
|
320
|
+
typingTextRef: mergedTypingTextRef,
|
|
321
|
+
closeButtonTextRef: mergedCloseButtonTextRef,
|
|
301
322
|
handleChatSelect,
|
|
302
323
|
handleMessageSend,
|
|
303
324
|
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,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatGlobalState = void 0;
|
|
4
|
+
class ChatGlobalState {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.notificationsShown = new Set();
|
|
7
|
+
this.openedChats = new Set();
|
|
8
|
+
}
|
|
9
|
+
static getInstance() {
|
|
10
|
+
if (!ChatGlobalState.instance) {
|
|
11
|
+
ChatGlobalState.instance = new ChatGlobalState();
|
|
12
|
+
}
|
|
13
|
+
return ChatGlobalState.instance;
|
|
14
|
+
}
|
|
15
|
+
hasNotificationShown(chatId) {
|
|
16
|
+
return this.notificationsShown.has(chatId);
|
|
17
|
+
}
|
|
18
|
+
markNotificationShown(chatId) {
|
|
19
|
+
this.notificationsShown.add(chatId);
|
|
20
|
+
}
|
|
21
|
+
isChatOpened(chatId) {
|
|
22
|
+
return this.openedChats.has(chatId);
|
|
23
|
+
}
|
|
24
|
+
markChatOpened(chatId) {
|
|
25
|
+
this.openedChats.add(chatId);
|
|
26
|
+
}
|
|
27
|
+
markChatClosed(chatId) {
|
|
28
|
+
this.openedChats.delete(chatId);
|
|
29
|
+
}
|
|
30
|
+
reset() {
|
|
31
|
+
this.notificationsShown.clear();
|
|
32
|
+
this.openedChats.clear();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.ChatGlobalState = ChatGlobalState;
|
|
36
|
+
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,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
const upload_1 = require("../../../upload");
|
|
5
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
6
|
+
name: 'ChatAttachment',
|
|
7
|
+
props: {
|
|
8
|
+
message: {
|
|
9
|
+
type: Object,
|
|
10
|
+
required: true
|
|
11
|
+
},
|
|
12
|
+
attachments: {
|
|
13
|
+
type: Array,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
uploadProps: {
|
|
17
|
+
type: Object,
|
|
18
|
+
default: () => ({})
|
|
19
|
+
},
|
|
20
|
+
withPadding: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(props, { slots }) {
|
|
26
|
+
const getThumbnailUrl = (att) => {
|
|
27
|
+
const url = [att.preview, att.thumbnail].find((value) => typeof value === 'string');
|
|
28
|
+
return url !== null && url !== void 0 ? url : null;
|
|
29
|
+
};
|
|
30
|
+
const renderAttachment = () => {
|
|
31
|
+
const fileList = props.attachments.map((att, index) => {
|
|
32
|
+
var _a, _b, _c;
|
|
33
|
+
return ({
|
|
34
|
+
id: `${String(props.message.id)}-attachment-${index}`,
|
|
35
|
+
name: att.name,
|
|
36
|
+
status: att.status || 'finished',
|
|
37
|
+
percentage: (_a = att.percentage) !== null && _a !== void 0 ? _a : null,
|
|
38
|
+
url: (_b = att.url) !== null && _b !== void 0 ? _b : null,
|
|
39
|
+
thumbnailUrl: getThumbnailUrl(att),
|
|
40
|
+
type: (_c = att.type) !== null && _c !== void 0 ? _c : null,
|
|
41
|
+
file: null,
|
|
42
|
+
batchId: null
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
const uploadComponent = ((0, vue_1.h)(upload_1.UUpload, Object.assign({ abstract: true, fileList: fileList, fileListStyle: props.withPadding
|
|
46
|
+
? {
|
|
47
|
+
display: 'flex',
|
|
48
|
+
flexDirection: 'column',
|
|
49
|
+
gap: '2px',
|
|
50
|
+
marginTop: '0'
|
|
51
|
+
}
|
|
52
|
+
: undefined, showRemoveButton: false, showDownloadButton: props.attachments.some((att) => att.status === 'finished'), showRetryButton: props.attachments.some((att) => att.status === 'error') }, props.uploadProps),
|
|
53
|
+
(0, vue_1.h)(upload_1.UUploadFileList, null, {
|
|
54
|
+
'upload-file-title': slots['upload-file-title']
|
|
55
|
+
? ({ file }) => { var _a; return (_a = slots['upload-file-title']) === null || _a === void 0 ? void 0 : _a.call(slots, file); }
|
|
56
|
+
: undefined,
|
|
57
|
+
'upload-file-subtitle': slots['upload-file-subtitle']
|
|
58
|
+
? ({ file }) => { var _a; return (_a = slots['upload-file-subtitle']) === null || _a === void 0 ? void 0 : _a.call(slots, file); }
|
|
59
|
+
: ({ file }) => {
|
|
60
|
+
var _a;
|
|
61
|
+
const att = props.attachments.find((a) => a.name === file.name);
|
|
62
|
+
return ((0, vue_1.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)));
|
|
63
|
+
}
|
|
64
|
+
})));
|
|
65
|
+
if (props.withPadding) {
|
|
66
|
+
return (0, vue_1.h)("div", { style: { padding: '2px' } }, uploadComponent);
|
|
67
|
+
}
|
|
68
|
+
return uploadComponent;
|
|
69
|
+
};
|
|
70
|
+
return () => {
|
|
71
|
+
if (slots.default) {
|
|
72
|
+
return slots.default(props.message);
|
|
73
|
+
}
|
|
74
|
+
return renderAttachment();
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
@@ -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>;
|