yx-web-sdk 0.0.4
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/README.md +424 -0
- package/dist/AntdIcon-B0sjNvGu.mjs +307 -0
- package/dist/CloseOutlined-DDb89ei3.mjs +37 -0
- package/dist/_plugin-vue_export-helper-1tPrXgE0.mjs +10 -0
- package/dist/ait-person-popover/index.d.ts +3 -0
- package/dist/ait-person-popover/index.js +5 -0
- package/dist/ait-person-popover/index.vue.d.ts +39 -0
- package/dist/chat-card/index.d.ts +3 -0
- package/dist/chat-card/index.js +5 -0
- package/dist/chat-card/index.vue.d.ts +25 -0
- package/dist/chat-content/index.d.ts +3 -0
- package/dist/chat-content/index.js +5 -0
- package/dist/chat-content/index.vue.d.ts +51 -0
- package/dist/chat-page/index.d.ts +3 -0
- package/dist/chat-page/index.js +5 -0
- package/dist/chat-page/index.vue.d.ts +6 -0
- package/dist/chat-room/index.d.ts +3 -0
- package/dist/chat-room/index.js +5 -0
- package/dist/chat-room/index.vue.d.ts +9 -0
- package/dist/common-avatar/index.d.ts +3 -0
- package/dist/common-avatar/index.js +5 -0
- package/dist/common-avatar/index.vue.d.ts +17 -0
- package/dist/components/ait-person-popover/index.d.ts +3 -0
- package/dist/components/ait-person-popover/index.vue.d.ts +39 -0
- package/dist/components/chat-card/index.d.ts +3 -0
- package/dist/components/chat-card/index.vue.d.ts +25 -0
- package/dist/components/chat-content/composables/ait-person.d.ts +86 -0
- package/dist/components/chat-content/index.d.ts +3 -0
- package/dist/components/chat-content/index.vue.d.ts +51 -0
- package/dist/components/chat-page/index.d.ts +3 -0
- package/dist/components/chat-page/index.vue.d.ts +6 -0
- package/dist/components/chat-room/index.d.ts +3 -0
- package/dist/components/chat-room/index.vue.d.ts +9 -0
- package/dist/components/common-avatar/index.d.ts +3 -0
- package/dist/components/common-avatar/index.vue.d.ts +17 -0
- package/dist/components/icon-font/index.d.ts +47 -0
- package/dist/components/index-entry/index.d.ts +2 -0
- package/dist/components/index-entry/index.vue.d.ts +25 -0
- package/dist/components/index.d.ts +12 -0
- package/dist/components/list.d.ts +2 -0
- package/dist/components/members-sidebar/index.d.ts +3 -0
- package/dist/components/members-sidebar/index.vue.d.ts +4 -0
- package/dist/components/notice-box/index.d.ts +3 -0
- package/dist/components/notice-box/index.vue.d.ts +13 -0
- package/dist/components/server-channel-sidebar/index.d.ts +3 -0
- package/dist/components/server-channel-sidebar/index.vue.d.ts +18 -0
- package/dist/global.css +39 -0
- package/dist/icon-font/index.d.ts +47 -0
- package/dist/icon-font/index.js +7 -0
- package/dist/index/style.css +199 -0
- package/dist/index/style2.css +175 -0
- package/dist/index/style3.css +36 -0
- package/dist/index/style4.css +168 -0
- package/dist/index/style5.css +147 -0
- package/dist/index/style6.css +43 -0
- package/dist/index/style7.css +491 -0
- package/dist/index/style8.css +19 -0
- package/dist/index-3sSWCzxu.mjs +225 -0
- package/dist/index-4m4OVlx8.mjs +611 -0
- package/dist/index-CFI0URc5.mjs +135 -0
- package/dist/index-Dg8Q3cli.mjs +1092 -0
- package/dist/index-entry/index.d.ts +2 -0
- package/dist/index-entry/index.js +271 -0
- package/dist/index-entry/index.vue.d.ts +25 -0
- package/dist/index-entry/style.css +51 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DkMXpHkt.mjs +158 -0
- package/dist/index.vue_vue_type_style_index_0_lang-CfLKcYM9.mjs +102 -0
- package/dist/index.vue_vue_type_style_index_0_lang-CibeOmhP.mjs +407 -0
- package/dist/index.vue_vue_type_style_index_0_lang-CmfE8EVU.mjs +288 -0
- package/dist/index.vue_vue_type_style_index_0_lang-XiDTgYoZ.mjs +1012 -0
- package/dist/index.vue_vue_type_style_index_0_lang-Y-vyKHWz.mjs +36985 -0
- package/dist/members-sidebar/index.d.ts +3 -0
- package/dist/members-sidebar/index.js +5 -0
- package/dist/members-sidebar/index.vue.d.ts +4 -0
- package/dist/notice-box/index.d.ts +3 -0
- package/dist/notice-box/index.js +5 -0
- package/dist/notice-box/index.vue.d.ts +13 -0
- package/dist/plugin/index.d.ts +22 -0
- package/dist/resolver/index.d.ts +22 -0
- package/dist/resolver/index.es.js +36 -0
- package/dist/resolver/index.umd.js +40 -0
- package/dist/server-channel-sidebar/index.d.ts +3 -0
- package/dist/server-channel-sidebar/index.js +5 -0
- package/dist/server-channel-sidebar/index.vue.d.ts +18 -0
- package/dist/stores/channel.d.ts +114 -0
- package/dist/stores/global.d.ts +15 -0
- package/dist/stores/index.d.ts +7 -0
- package/dist/stores/qchat.d.ts +397 -0
- package/dist/stores/sdk.d.ts +48 -0
- package/dist/stores/server.d.ts +58 -0
- package/dist/stores/user.d.ts +9 -0
- package/dist/style.css +1359 -0
- package/dist/types/missing.d.ts +14 -0
- package/dist/utils/events.d.ts +7 -0
- package/dist/utils/index.d.ts +26 -0
- package/dist/utils/storage.d.ts +15 -0
- package/dist/yx-web-sdk.es.js +41593 -0
- package/dist/yx-web-sdk.umd.js +41590 -0
- package/package.json +191 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { reactive, createVNode } from "vue";
|
|
2
|
+
import { g as getSecondaryColor, w as warning, i as isIconDefinition, a as generate, n as normalizeTwoToneColors, u as useInjectIconContext, b as InsertStyles, c as blue } from "./index-Dg8Q3cli.mjs";
|
|
3
|
+
var _excluded$1 = ["icon", "primaryColor", "secondaryColor"];
|
|
4
|
+
function _objectWithoutProperties$1(source, excluded) {
|
|
5
|
+
if (source == null) return {};
|
|
6
|
+
var target = _objectWithoutPropertiesLoose$1(source, excluded);
|
|
7
|
+
var key, i;
|
|
8
|
+
if (Object.getOwnPropertySymbols) {
|
|
9
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
10
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
11
|
+
key = sourceSymbolKeys[i];
|
|
12
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
13
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
14
|
+
target[key] = source[key];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return target;
|
|
18
|
+
}
|
|
19
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
20
|
+
if (source == null) return {};
|
|
21
|
+
var target = {};
|
|
22
|
+
var sourceKeys = Object.keys(source);
|
|
23
|
+
var key, i;
|
|
24
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
25
|
+
key = sourceKeys[i];
|
|
26
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
27
|
+
target[key] = source[key];
|
|
28
|
+
}
|
|
29
|
+
return target;
|
|
30
|
+
}
|
|
31
|
+
function _objectSpread$1(target) {
|
|
32
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
33
|
+
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
34
|
+
var ownKeys = Object.keys(source);
|
|
35
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
36
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
37
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
ownKeys.forEach(function(key) {
|
|
41
|
+
_defineProperty$1(target, key, source[key]);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
return target;
|
|
45
|
+
}
|
|
46
|
+
function _defineProperty$1(obj, key, value) {
|
|
47
|
+
if (key in obj) {
|
|
48
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
49
|
+
} else {
|
|
50
|
+
obj[key] = value;
|
|
51
|
+
}
|
|
52
|
+
return obj;
|
|
53
|
+
}
|
|
54
|
+
var twoToneColorPalette = reactive({
|
|
55
|
+
primaryColor: "#333",
|
|
56
|
+
secondaryColor: "#E6E6E6",
|
|
57
|
+
calculated: false
|
|
58
|
+
});
|
|
59
|
+
function setTwoToneColors(_ref) {
|
|
60
|
+
var primaryColor = _ref.primaryColor, secondaryColor = _ref.secondaryColor;
|
|
61
|
+
twoToneColorPalette.primaryColor = primaryColor;
|
|
62
|
+
twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
|
|
63
|
+
twoToneColorPalette.calculated = !!secondaryColor;
|
|
64
|
+
}
|
|
65
|
+
function getTwoToneColors() {
|
|
66
|
+
return _objectSpread$1({}, twoToneColorPalette);
|
|
67
|
+
}
|
|
68
|
+
var IconBase = function IconBase2(props, context) {
|
|
69
|
+
var _props$context$attrs = _objectSpread$1({}, props, context.attrs), icon = _props$context$attrs.icon, primaryColor = _props$context$attrs.primaryColor, secondaryColor = _props$context$attrs.secondaryColor, restProps = _objectWithoutProperties$1(_props$context$attrs, _excluded$1);
|
|
70
|
+
var colors = twoToneColorPalette;
|
|
71
|
+
if (primaryColor) {
|
|
72
|
+
colors = {
|
|
73
|
+
primaryColor,
|
|
74
|
+
secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
|
|
78
|
+
if (!isIconDefinition(icon)) {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
var target = icon;
|
|
82
|
+
if (target && typeof target.icon === "function") {
|
|
83
|
+
target = _objectSpread$1({}, target, {
|
|
84
|
+
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return generate(target.icon, "svg-".concat(target.name), _objectSpread$1({}, restProps, {
|
|
88
|
+
"data-icon": target.name,
|
|
89
|
+
width: "1em",
|
|
90
|
+
height: "1em",
|
|
91
|
+
fill: "currentColor",
|
|
92
|
+
"aria-hidden": "true"
|
|
93
|
+
}));
|
|
94
|
+
};
|
|
95
|
+
IconBase.props = {
|
|
96
|
+
icon: Object,
|
|
97
|
+
primaryColor: String,
|
|
98
|
+
secondaryColor: String,
|
|
99
|
+
focusable: String
|
|
100
|
+
};
|
|
101
|
+
IconBase.inheritAttrs = false;
|
|
102
|
+
IconBase.displayName = "IconBase";
|
|
103
|
+
IconBase.getTwoToneColors = getTwoToneColors;
|
|
104
|
+
IconBase.setTwoToneColors = setTwoToneColors;
|
|
105
|
+
function _slicedToArray$1(arr, i) {
|
|
106
|
+
return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1();
|
|
107
|
+
}
|
|
108
|
+
function _nonIterableRest$1() {
|
|
109
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
110
|
+
}
|
|
111
|
+
function _unsupportedIterableToArray$1(o, minLen) {
|
|
112
|
+
if (!o) return;
|
|
113
|
+
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
|
|
114
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
115
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
116
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
117
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
118
|
+
}
|
|
119
|
+
function _arrayLikeToArray$1(arr, len) {
|
|
120
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
121
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
122
|
+
arr2[i] = arr[i];
|
|
123
|
+
}
|
|
124
|
+
return arr2;
|
|
125
|
+
}
|
|
126
|
+
function _iterableToArrayLimit$1(arr, i) {
|
|
127
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
128
|
+
if (_i == null) return;
|
|
129
|
+
var _arr = [];
|
|
130
|
+
var _n = true;
|
|
131
|
+
var _d = false;
|
|
132
|
+
var _s, _e;
|
|
133
|
+
try {
|
|
134
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
135
|
+
_arr.push(_s.value);
|
|
136
|
+
if (i && _arr.length === i) break;
|
|
137
|
+
}
|
|
138
|
+
} catch (err) {
|
|
139
|
+
_d = true;
|
|
140
|
+
_e = err;
|
|
141
|
+
} finally {
|
|
142
|
+
try {
|
|
143
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
144
|
+
} finally {
|
|
145
|
+
if (_d) throw _e;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return _arr;
|
|
149
|
+
}
|
|
150
|
+
function _arrayWithHoles$1(arr) {
|
|
151
|
+
if (Array.isArray(arr)) return arr;
|
|
152
|
+
}
|
|
153
|
+
function setTwoToneColor(twoToneColor) {
|
|
154
|
+
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray$1(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
|
|
155
|
+
return IconBase.setTwoToneColors({
|
|
156
|
+
primaryColor,
|
|
157
|
+
secondaryColor
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
function getTwoToneColor() {
|
|
161
|
+
var colors = IconBase.getTwoToneColors();
|
|
162
|
+
if (!colors.calculated) {
|
|
163
|
+
return colors.primaryColor;
|
|
164
|
+
}
|
|
165
|
+
return [colors.primaryColor, colors.secondaryColor];
|
|
166
|
+
}
|
|
167
|
+
var _excluded = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
|
|
168
|
+
function _slicedToArray(arr, i) {
|
|
169
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
170
|
+
}
|
|
171
|
+
function _nonIterableRest() {
|
|
172
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
173
|
+
}
|
|
174
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
175
|
+
if (!o) return;
|
|
176
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
177
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
178
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
179
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
180
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
181
|
+
}
|
|
182
|
+
function _arrayLikeToArray(arr, len) {
|
|
183
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
184
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
185
|
+
arr2[i] = arr[i];
|
|
186
|
+
}
|
|
187
|
+
return arr2;
|
|
188
|
+
}
|
|
189
|
+
function _iterableToArrayLimit(arr, i) {
|
|
190
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
191
|
+
if (_i == null) return;
|
|
192
|
+
var _arr = [];
|
|
193
|
+
var _n = true;
|
|
194
|
+
var _d = false;
|
|
195
|
+
var _s, _e;
|
|
196
|
+
try {
|
|
197
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
198
|
+
_arr.push(_s.value);
|
|
199
|
+
if (i && _arr.length === i) break;
|
|
200
|
+
}
|
|
201
|
+
} catch (err) {
|
|
202
|
+
_d = true;
|
|
203
|
+
_e = err;
|
|
204
|
+
} finally {
|
|
205
|
+
try {
|
|
206
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
207
|
+
} finally {
|
|
208
|
+
if (_d) throw _e;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return _arr;
|
|
212
|
+
}
|
|
213
|
+
function _arrayWithHoles(arr) {
|
|
214
|
+
if (Array.isArray(arr)) return arr;
|
|
215
|
+
}
|
|
216
|
+
function _objectSpread(target) {
|
|
217
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
218
|
+
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
219
|
+
var ownKeys = Object.keys(source);
|
|
220
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
221
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
222
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
223
|
+
}));
|
|
224
|
+
}
|
|
225
|
+
ownKeys.forEach(function(key) {
|
|
226
|
+
_defineProperty(target, key, source[key]);
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
return target;
|
|
230
|
+
}
|
|
231
|
+
function _defineProperty(obj, key, value) {
|
|
232
|
+
if (key in obj) {
|
|
233
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
234
|
+
} else {
|
|
235
|
+
obj[key] = value;
|
|
236
|
+
}
|
|
237
|
+
return obj;
|
|
238
|
+
}
|
|
239
|
+
function _objectWithoutProperties(source, excluded) {
|
|
240
|
+
if (source == null) return {};
|
|
241
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
242
|
+
var key, i;
|
|
243
|
+
if (Object.getOwnPropertySymbols) {
|
|
244
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
245
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
246
|
+
key = sourceSymbolKeys[i];
|
|
247
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
248
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
249
|
+
target[key] = source[key];
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
return target;
|
|
253
|
+
}
|
|
254
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
255
|
+
if (source == null) return {};
|
|
256
|
+
var target = {};
|
|
257
|
+
var sourceKeys = Object.keys(source);
|
|
258
|
+
var key, i;
|
|
259
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
260
|
+
key = sourceKeys[i];
|
|
261
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
262
|
+
target[key] = source[key];
|
|
263
|
+
}
|
|
264
|
+
return target;
|
|
265
|
+
}
|
|
266
|
+
setTwoToneColor(blue.primary);
|
|
267
|
+
var Icon = function Icon2(props, context) {
|
|
268
|
+
var _classObj;
|
|
269
|
+
var _props$context$attrs = _objectSpread({}, props, context.attrs), cls = _props$context$attrs["class"], icon = _props$context$attrs.icon, spin = _props$context$attrs.spin, rotate = _props$context$attrs.rotate, tabindex = _props$context$attrs.tabindex, twoToneColor = _props$context$attrs.twoToneColor, onClick = _props$context$attrs.onClick, restProps = _objectWithoutProperties(_props$context$attrs, _excluded);
|
|
270
|
+
var _useInjectIconContext = useInjectIconContext(), prefixCls = _useInjectIconContext.prefixCls, rootClassName = _useInjectIconContext.rootClassName;
|
|
271
|
+
var classObj = (_classObj = {}, _defineProperty(_classObj, rootClassName.value, !!rootClassName.value), _defineProperty(_classObj, prefixCls.value, true), _defineProperty(_classObj, "".concat(prefixCls.value, "-").concat(icon.name), Boolean(icon.name)), _defineProperty(_classObj, "".concat(prefixCls.value, "-spin"), !!spin || icon.name === "loading"), _classObj);
|
|
272
|
+
var iconTabIndex = tabindex;
|
|
273
|
+
if (iconTabIndex === void 0 && onClick) {
|
|
274
|
+
iconTabIndex = -1;
|
|
275
|
+
}
|
|
276
|
+
var svgStyle = rotate ? {
|
|
277
|
+
msTransform: "rotate(".concat(rotate, "deg)"),
|
|
278
|
+
transform: "rotate(".concat(rotate, "deg)")
|
|
279
|
+
} : void 0;
|
|
280
|
+
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
|
|
281
|
+
return createVNode("span", _objectSpread({
|
|
282
|
+
"role": "img",
|
|
283
|
+
"aria-label": icon.name
|
|
284
|
+
}, restProps, {
|
|
285
|
+
"onClick": onClick,
|
|
286
|
+
"class": [classObj, cls],
|
|
287
|
+
"tabindex": iconTabIndex
|
|
288
|
+
}), [createVNode(IconBase, {
|
|
289
|
+
"icon": icon,
|
|
290
|
+
"primaryColor": primaryColor,
|
|
291
|
+
"secondaryColor": secondaryColor,
|
|
292
|
+
"style": svgStyle
|
|
293
|
+
}, null), createVNode(InsertStyles, null, null)]);
|
|
294
|
+
};
|
|
295
|
+
Icon.props = {
|
|
296
|
+
spin: Boolean,
|
|
297
|
+
rotate: Number,
|
|
298
|
+
icon: Object,
|
|
299
|
+
twoToneColor: [String, Array]
|
|
300
|
+
};
|
|
301
|
+
Icon.displayName = "AntdIcon";
|
|
302
|
+
Icon.inheritAttrs = false;
|
|
303
|
+
Icon.getTwoToneColor = getTwoToneColor;
|
|
304
|
+
Icon.setTwoToneColor = setTwoToneColor;
|
|
305
|
+
export {
|
|
306
|
+
Icon as I
|
|
307
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createVNode } from "vue";
|
|
2
|
+
import { I as Icon } from "./AntdIcon-B0sjNvGu.mjs";
|
|
3
|
+
var CloseOutlined$1 = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, "name": "close", "theme": "outlined" };
|
|
4
|
+
function _objectSpread(target) {
|
|
5
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
6
|
+
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
7
|
+
var ownKeys = Object.keys(source);
|
|
8
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
9
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
10
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
13
|
+
ownKeys.forEach(function(key) {
|
|
14
|
+
_defineProperty(target, key, source[key]);
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return target;
|
|
18
|
+
}
|
|
19
|
+
function _defineProperty(obj, key, value) {
|
|
20
|
+
if (key in obj) {
|
|
21
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
22
|
+
} else {
|
|
23
|
+
obj[key] = value;
|
|
24
|
+
}
|
|
25
|
+
return obj;
|
|
26
|
+
}
|
|
27
|
+
var CloseOutlined = function CloseOutlined2(props, context) {
|
|
28
|
+
var p = _objectSpread({}, props, context.attrs);
|
|
29
|
+
return createVNode(Icon, _objectSpread({}, p, {
|
|
30
|
+
"icon": CloseOutlined$1
|
|
31
|
+
}), null);
|
|
32
|
+
};
|
|
33
|
+
CloseOutlined.displayName = "CloseOutlined";
|
|
34
|
+
CloseOutlined.inheritAttrs = false;
|
|
35
|
+
export {
|
|
36
|
+
CloseOutlined as C
|
|
37
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { MemberInfo } from 'nim-web-sdk-ng/dist/v1/QCHAT_BROWSER_SDK/QChatServerServiceInterface';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 是否显示弹框 */
|
|
4
|
+
visible: boolean;
|
|
5
|
+
/** 光标矩形(供 @floating-ui/dom 做 reference),仅用其计算出的位置定位 */
|
|
6
|
+
cursorRect?: {
|
|
7
|
+
left: number;
|
|
8
|
+
top: number;
|
|
9
|
+
} | null;
|
|
10
|
+
/** 列表项(全量成员或按 @ 后前缀过滤的成员) */
|
|
11
|
+
items?: MemberInfo[];
|
|
12
|
+
/** 当前键盘选中的项索引(-1=所有人,0..n-1=成员) */
|
|
13
|
+
selectedIndex?: number;
|
|
14
|
+
/** 成员总数(全量列表长度),用于展示「所有人(n)」且用于 membersCount === items.length 时展示「所有人」 */
|
|
15
|
+
membersCount?: number;
|
|
16
|
+
/** 设置列表项 ref,供键盘选中时滚动到可见 */
|
|
17
|
+
setItemRef?: (el: unknown, index: number) => void;
|
|
18
|
+
/** 是否使用 Teleport 渲染到 body(true=挂到 body 避免裁切,false=留在原地避免 HMR 报错) */
|
|
19
|
+
teleport?: boolean;
|
|
20
|
+
/** 是否开启 `@所有人` 功能 */
|
|
21
|
+
enableMentionEveryone?: boolean;
|
|
22
|
+
};
|
|
23
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
24
|
+
select: (index: number) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
+
onSelect?: ((index: number) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
cursorRect: {
|
|
29
|
+
left: number;
|
|
30
|
+
top: number;
|
|
31
|
+
} | null;
|
|
32
|
+
items: MemberInfo[];
|
|
33
|
+
selectedIndex: number;
|
|
34
|
+
membersCount: number;
|
|
35
|
+
setItemRef: (el: unknown, index: number) => void;
|
|
36
|
+
teleport: boolean;
|
|
37
|
+
enableMentionEveryone: boolean;
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { QChatMessage } from 'nim-web-sdk-ng/dist/v1/QCHAT_BROWSER_SDK/QChatMsgServiceInterface';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 消息 */
|
|
4
|
+
msg: QChatMessage;
|
|
5
|
+
/** 我的账号 ID */
|
|
6
|
+
myAccid?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
resendText: (msg: QChatMessage) => any;
|
|
10
|
+
resendImg: (msg: QChatMessage) => any;
|
|
11
|
+
resendFile: (msg: QChatMessage) => any;
|
|
12
|
+
quote: (msg: QChatMessage) => any;
|
|
13
|
+
contextMenuSwitch: (bol: boolean) => any;
|
|
14
|
+
quoteMsgClick: (msg: QChatMessage) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onResendText?: ((msg: QChatMessage) => any) | undefined;
|
|
17
|
+
onResendImg?: ((msg: QChatMessage) => any) | undefined;
|
|
18
|
+
onResendFile?: ((msg: QChatMessage) => any) | undefined;
|
|
19
|
+
onQuote?: ((msg: QChatMessage) => any) | undefined;
|
|
20
|
+
onContextMenuSwitch?: ((bol: boolean) => any) | undefined;
|
|
21
|
+
onQuoteMsgClick?: ((msg: QChatMessage) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
myAccid: string;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { SendMsgOption } from '../../stores/channel';
|
|
2
|
+
import type { QChatMessage } from 'nim-web-sdk-ng/dist/v1/QCHAT_BROWSER_SDK/QChatMsgServiceInterface';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** 当前频道消息列表 */
|
|
5
|
+
msgs?: QChatMessage[];
|
|
6
|
+
/** 当前频道名称 */
|
|
7
|
+
channelName?: string;
|
|
8
|
+
/** 当前频道主题 */
|
|
9
|
+
topic?: string;
|
|
10
|
+
/** 图片上传状态 */
|
|
11
|
+
imgUploading?: boolean;
|
|
12
|
+
/** 文件上传状态 */
|
|
13
|
+
fileUploading?: boolean;
|
|
14
|
+
/** 发送权限 */
|
|
15
|
+
sendDisabled?: boolean;
|
|
16
|
+
/** 是否没有更多消息 */
|
|
17
|
+
isNoMore?: boolean;
|
|
18
|
+
/** 我的账号 ID */
|
|
19
|
+
myAccid?: string;
|
|
20
|
+
/** 我的头像 */
|
|
21
|
+
myAvatar?: string;
|
|
22
|
+
/** 加载更多历史消息回调(需要返回值,保持 props) */
|
|
23
|
+
onLoadMore?: (lastTime: number) => Promise<void>;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
26
|
+
resendText: (msg: QChatMessage) => any;
|
|
27
|
+
resendImg: (msg: QChatMessage) => any;
|
|
28
|
+
resendFile: (msg: QChatMessage) => any;
|
|
29
|
+
sendText: (text: string, option?: SendMsgOption | undefined) => any;
|
|
30
|
+
sendImg: (file: File) => any;
|
|
31
|
+
sendFile: (file: File) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
33
|
+
onResendText?: ((msg: QChatMessage) => any) | undefined;
|
|
34
|
+
onResendImg?: ((msg: QChatMessage) => any) | undefined;
|
|
35
|
+
onResendFile?: ((msg: QChatMessage) => any) | undefined;
|
|
36
|
+
onSendText?: ((text: string, option?: SendMsgOption | undefined) => any) | undefined;
|
|
37
|
+
onSendImg?: ((file: File) => any) | undefined;
|
|
38
|
+
onSendFile?: ((file: File) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
topic: string;
|
|
41
|
+
myAccid: string;
|
|
42
|
+
myAvatar: string;
|
|
43
|
+
msgs: QChatMessage[];
|
|
44
|
+
channelName: string;
|
|
45
|
+
imgUploading: boolean;
|
|
46
|
+
fileUploading: boolean;
|
|
47
|
+
sendDisabled: boolean;
|
|
48
|
+
isNoMore: boolean;
|
|
49
|
+
onLoadMore: (lastTime: number) => Promise<void>;
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
myAccid?: string;
|
|
3
|
+
myAvatar?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
myAccid?: string;
|
|
3
|
+
myAvatar?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
myAccid: string;
|
|
7
|
+
myAvatar: string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
avatar?: string;
|
|
3
|
+
nick?: string;
|
|
4
|
+
accid?: string;
|
|
5
|
+
width?: number;
|
|
6
|
+
border?: number;
|
|
7
|
+
borderColor?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
accid: string;
|
|
11
|
+
nick: string;
|
|
12
|
+
avatar: string;
|
|
13
|
+
width: number;
|
|
14
|
+
border: number;
|
|
15
|
+
borderColor: string;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { MemberInfo } from 'nim-web-sdk-ng/dist/v1/QCHAT_BROWSER_SDK/QChatServerServiceInterface';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 是否显示弹框 */
|
|
4
|
+
visible: boolean;
|
|
5
|
+
/** 光标矩形(供 @floating-ui/dom 做 reference),仅用其计算出的位置定位 */
|
|
6
|
+
cursorRect?: {
|
|
7
|
+
left: number;
|
|
8
|
+
top: number;
|
|
9
|
+
} | null;
|
|
10
|
+
/** 列表项(全量成员或按 @ 后前缀过滤的成员) */
|
|
11
|
+
items?: MemberInfo[];
|
|
12
|
+
/** 当前键盘选中的项索引(-1=所有人,0..n-1=成员) */
|
|
13
|
+
selectedIndex?: number;
|
|
14
|
+
/** 成员总数(全量列表长度),用于展示「所有人(n)」且用于 membersCount === items.length 时展示「所有人」 */
|
|
15
|
+
membersCount?: number;
|
|
16
|
+
/** 设置列表项 ref,供键盘选中时滚动到可见 */
|
|
17
|
+
setItemRef?: (el: unknown, index: number) => void;
|
|
18
|
+
/** 是否使用 Teleport 渲染到 body(true=挂到 body 避免裁切,false=留在原地避免 HMR 报错) */
|
|
19
|
+
teleport?: boolean;
|
|
20
|
+
/** 是否开启 `@所有人` 功能 */
|
|
21
|
+
enableMentionEveryone?: boolean;
|
|
22
|
+
};
|
|
23
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
24
|
+
select: (index: number) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
+
onSelect?: ((index: number) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
cursorRect: {
|
|
29
|
+
left: number;
|
|
30
|
+
top: number;
|
|
31
|
+
} | null;
|
|
32
|
+
items: MemberInfo[];
|
|
33
|
+
selectedIndex: number;
|
|
34
|
+
membersCount: number;
|
|
35
|
+
setItemRef: (el: unknown, index: number) => void;
|
|
36
|
+
teleport: boolean;
|
|
37
|
+
enableMentionEveryone: boolean;
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { QChatMessage } from 'nim-web-sdk-ng/dist/v1/QCHAT_BROWSER_SDK/QChatMsgServiceInterface';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 消息 */
|
|
4
|
+
msg: QChatMessage;
|
|
5
|
+
/** 我的账号 ID */
|
|
6
|
+
myAccid?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
resendText: (msg: QChatMessage) => any;
|
|
10
|
+
resendImg: (msg: QChatMessage) => any;
|
|
11
|
+
resendFile: (msg: QChatMessage) => any;
|
|
12
|
+
quote: (msg: QChatMessage) => any;
|
|
13
|
+
contextMenuSwitch: (bol: boolean) => any;
|
|
14
|
+
quoteMsgClick: (msg: QChatMessage) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onResendText?: ((msg: QChatMessage) => any) | undefined;
|
|
17
|
+
onResendImg?: ((msg: QChatMessage) => any) | undefined;
|
|
18
|
+
onResendFile?: ((msg: QChatMessage) => any) | undefined;
|
|
19
|
+
onQuote?: ((msg: QChatMessage) => any) | undefined;
|
|
20
|
+
onContextMenuSwitch?: ((bol: boolean) => any) | undefined;
|
|
21
|
+
onQuoteMsgClick?: ((msg: QChatMessage) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
myAccid: string;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
export default _default;
|