bhd-components 0.10.12 → 0.10.14
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 +1 -1
- package/dist/index.esm.es5.development.css +768 -0
- package/dist/index.esm.es5.development.js +3133 -159
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.js +2515 -1100
- package/dist/vendor.esm.es5.production.js +136 -136
- package/es2017/AIMessageList/components/content/index.d.ts +4 -0
- package/es2017/AIMessageList/components/content/index.js +29 -0
- package/es2017/AIMessageList/components/content/index.module.less +8 -0
- package/es2017/AIMessageList/components/copyIcon/index.d.ts +7 -0
- package/es2017/AIMessageList/components/copyIcon/index.js +73 -0
- package/es2017/AIMessageList/components/copyIcon/index.module.less +23 -0
- package/es2017/AIMessageList/components/errorCallback/index.d.ts +3 -0
- package/es2017/AIMessageList/components/errorCallback/index.js +6 -0
- package/es2017/AIMessageList/components/fileList/fileIcon.d.ts +3 -0
- package/es2017/AIMessageList/components/fileList/fileIcon.js +970 -0
- package/es2017/AIMessageList/components/fileList/index.d.ts +4 -0
- package/es2017/AIMessageList/components/fileList/index.js +315 -0
- package/es2017/AIMessageList/components/fileList/index.module.less +95 -0
- package/es2017/AIMessageList/components/footer/index.d.ts +10 -0
- package/es2017/AIMessageList/components/footer/index.js +402 -0
- package/es2017/AIMessageList/components/footer/index.module.less +51 -0
- package/es2017/AIMessageList/components/header/index.d.ts +9 -0
- package/es2017/AIMessageList/components/header/index.js +94 -0
- package/es2017/AIMessageList/components/header/index.module.less +31 -0
- package/es2017/AIMessageList/components/referencesIcon/index.d.ts +9 -0
- package/es2017/AIMessageList/components/referencesIcon/index.js +63 -0
- package/es2017/AIMessageList/components/referencesIcon/index.module.less +14 -0
- package/es2017/AIMessageList/components/refreshBtn/index.d.ts +4 -0
- package/es2017/AIMessageList/components/refreshBtn/index.js +29 -0
- package/es2017/AIMessageList/components/refreshBtn/index.module.less +12 -0
- package/es2017/AIMessageList/components/remarkBtn/index.d.ts +4 -0
- package/es2017/AIMessageList/components/remarkBtn/index.js +51 -0
- package/es2017/AIMessageList/components/remarkBtn/index.module.less +13 -0
- package/es2017/AIMessageList/components/renderReferrnce/index.d.ts +10 -0
- package/es2017/AIMessageList/components/renderReferrnce/index.js +68 -0
- package/es2017/AIMessageList/components/renderReferrnce/index.module.less +64 -0
- package/es2017/AIMessageList/components/sendBtn/index.d.ts +4 -0
- package/es2017/AIMessageList/components/sendBtn/index.js +51 -0
- package/es2017/AIMessageList/components/sendBtn/index.module.less +25 -0
- package/es2017/AIMessageList/components/uplodaFileBtn/index.d.ts +4 -0
- package/es2017/AIMessageList/components/uplodaFileBtn/index.js +33 -0
- package/es2017/AIMessageList/components/uplodaFileBtn/index.module.less +5 -0
- package/es2017/AIMessageList/components/virtuosoList/index.d.ts +5 -0
- package/es2017/AIMessageList/components/virtuosoList/index.js +696 -0
- package/es2017/AIMessageList/components/virtuosoList/index.module.less +467 -0
- package/es2017/AIMessageList/index.d.ts +4 -0
- package/es2017/AIMessageList/index.js +58 -0
- package/es2017/AIMessageList/index.module.less +20 -0
- package/es2017/AIMessageList/type.d.ts +307 -0
- package/es2017/customerService/index.js +1 -0
- package/es2017/images/loading2.js +2 -0
- package/es2017/index.d.ts +1 -0
- package/es2017/index.js +1 -0
- package/es2017/utils/Date.d.ts +2 -1
- package/es2017/utils/Date.js +2 -1
- package/es2017/utils/dom.d.ts +4 -1
- package/es2017/utils/dom.js +44 -1
- package/es2017/utils/number.d.ts +1 -0
- package/es2017/utils/number.js +9 -0
- package/esm/AIMessageList/components/content/index.d.ts +4 -0
- package/esm/AIMessageList/components/content/index.js +29 -0
- package/esm/AIMessageList/components/content/index.module.less +8 -0
- package/esm/AIMessageList/components/copyIcon/index.d.ts +7 -0
- package/esm/AIMessageList/components/copyIcon/index.js +76 -0
- package/esm/AIMessageList/components/copyIcon/index.module.less +23 -0
- package/esm/AIMessageList/components/errorCallback/index.d.ts +3 -0
- package/esm/AIMessageList/components/errorCallback/index.js +6 -0
- package/esm/AIMessageList/components/fileList/fileIcon.d.ts +3 -0
- package/esm/AIMessageList/components/fileList/fileIcon.js +970 -0
- package/esm/AIMessageList/components/fileList/index.d.ts +4 -0
- package/esm/AIMessageList/components/fileList/index.js +337 -0
- package/esm/AIMessageList/components/fileList/index.module.less +95 -0
- package/esm/AIMessageList/components/footer/index.d.ts +10 -0
- package/esm/AIMessageList/components/footer/index.js +418 -0
- package/esm/AIMessageList/components/footer/index.module.less +51 -0
- package/esm/AIMessageList/components/header/index.d.ts +9 -0
- package/esm/AIMessageList/components/header/index.js +96 -0
- package/esm/AIMessageList/components/header/index.module.less +31 -0
- package/esm/AIMessageList/components/referencesIcon/index.d.ts +9 -0
- package/esm/AIMessageList/components/referencesIcon/index.js +65 -0
- package/esm/AIMessageList/components/referencesIcon/index.module.less +14 -0
- package/esm/AIMessageList/components/refreshBtn/index.d.ts +4 -0
- package/esm/AIMessageList/components/refreshBtn/index.js +31 -0
- package/esm/AIMessageList/components/refreshBtn/index.module.less +12 -0
- package/esm/AIMessageList/components/remarkBtn/index.d.ts +4 -0
- package/esm/AIMessageList/components/remarkBtn/index.js +51 -0
- package/esm/AIMessageList/components/remarkBtn/index.module.less +13 -0
- package/esm/AIMessageList/components/renderReferrnce/index.d.ts +10 -0
- package/esm/AIMessageList/components/renderReferrnce/index.js +72 -0
- package/esm/AIMessageList/components/renderReferrnce/index.module.less +64 -0
- package/esm/AIMessageList/components/sendBtn/index.d.ts +4 -0
- package/esm/AIMessageList/components/sendBtn/index.js +53 -0
- package/esm/AIMessageList/components/sendBtn/index.module.less +25 -0
- package/esm/AIMessageList/components/uplodaFileBtn/index.d.ts +4 -0
- package/esm/AIMessageList/components/uplodaFileBtn/index.js +33 -0
- package/esm/AIMessageList/components/uplodaFileBtn/index.module.less +5 -0
- package/esm/AIMessageList/components/virtuosoList/index.d.ts +5 -0
- package/esm/AIMessageList/components/virtuosoList/index.js +673 -0
- package/esm/AIMessageList/components/virtuosoList/index.module.less +467 -0
- package/esm/AIMessageList/index.d.ts +4 -0
- package/esm/AIMessageList/index.js +58 -0
- package/esm/AIMessageList/index.module.less +20 -0
- package/esm/AIMessageList/type.d.ts +307 -0
- package/esm/customerService/index.js +1 -0
- package/esm/images/loading2.js +2 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/utils/Date.d.ts +2 -1
- package/esm/utils/Date.js +2 -1
- package/esm/utils/dom.d.ts +4 -1
- package/esm/utils/dom.js +45 -1
- package/esm/utils/number.d.ts +1 -0
- package/esm/utils/number.js +9 -0
- package/package.json +2 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import styles from "./index.module.less";
|
|
4
|
+
var refreshSvg = /*#__PURE__*/ _jsx("svg", {
|
|
5
|
+
viewBox: "0 0 14 14",
|
|
6
|
+
version: "1.1",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
"p-id": "8340",
|
|
9
|
+
width: "1em",
|
|
10
|
+
height: "1em",
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
shapeRendering: "geometricPrecision",
|
|
13
|
+
"aria-hidden": "true",
|
|
14
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
15
|
+
d: "M8 3.80001C7.27938 3.80001 6.60141 3.97512 6.00464 4.2846C5.71048 4.43715 5.34834 4.32235 5.19579 4.02818C5.04324 3.73401 5.15804 3.37187 5.4522 3.21932C6.21563 2.82342 7.0826 2.60001 8 2.60001C11.0603 2.60001 13.5412 5.08088 13.5412 8.14118C13.5412 8.40936 13.5221 8.67343 13.4851 8.93202C13.4737 9.01141 13.4607 9.09026 13.446 9.16853L13.7175 9.02364C14.0098 8.86759 14.3733 8.97808 14.5293 9.27041C14.6854 9.56274 14.5749 9.92622 14.2825 10.0823L12.6718 10.9421C12.3819 11.0968 12.0215 10.9896 11.8633 10.7016L11.0035 9.13588C10.844 8.84542 10.9501 8.48065 11.2406 8.32115C11.5311 8.16164 11.8958 8.2678 12.0553 8.55825L12.2672 8.94405C12.2784 8.88383 12.2885 8.82318 12.2972 8.76211C12.3261 8.55962 12.3412 8.35233 12.3412 8.14118C12.3412 5.74362 10.3976 3.80001 8 3.80001ZM3.32824 5.34029C3.61811 5.18556 3.97853 5.29278 4.13669 5.58079L4.99651 7.14649C5.15601 7.43694 5.04986 7.80171 4.7594 7.96122C4.46895 8.12072 4.10418 8.01457 3.94467 7.72411L3.73281 7.33832C3.72156 7.39853 3.71155 7.45919 3.70282 7.52026C3.67386 7.72275 3.65883 7.93003 3.65883 8.14118C3.65883 10.5387 5.60244 12.4824 8 12.4824C8.72063 12.4824 9.39859 12.3072 9.99536 11.9978C10.2895 11.8452 10.6517 11.96 10.8042 12.2542C10.9568 12.5484 10.842 12.9105 10.5478 13.063C9.78437 13.4589 8.9174 13.6824 8 13.6824C4.93969 13.6824 2.45883 11.2015 2.45883 8.14118C2.45883 7.87301 2.47792 7.60894 2.51491 7.35034C2.52627 7.27095 2.5393 7.19211 2.55399 7.11384L2.28254 7.25873C1.99021 7.41477 1.62673 7.30429 1.47069 7.01196C1.31465 6.71963 1.42513 6.35615 1.71746 6.20011L3.32824 5.34029Z"
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
var RefreshBtn = function(props) {
|
|
19
|
+
var prefix = props.prefix, clickFn = props.clickFn;
|
|
20
|
+
var getCls = function(clsName) {
|
|
21
|
+
return styles[clsName] + " " + prefix + "-" + clsName;
|
|
22
|
+
};
|
|
23
|
+
return /*#__PURE__*/ _jsx("i", {
|
|
24
|
+
className: "".concat(getCls("refreshBtn")),
|
|
25
|
+
onClick: function() {
|
|
26
|
+
return clickFn();
|
|
27
|
+
},
|
|
28
|
+
children: refreshSvg
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
export default RefreshBtn;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import styles from "./index.module.less";
|
|
4
|
+
var upvoteBtnSvg = /*#__PURE__*/ _jsx("svg", {
|
|
5
|
+
width: "1em",
|
|
6
|
+
height: "1em",
|
|
7
|
+
viewBox: "0 0 16 16",
|
|
8
|
+
shapeRendering: "geometricPrecision",
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
12
|
+
d: "M14.9948 7.82355C14.999 7.88679 14.9948 7.95002 14.978 8.01326L13.7172 13.4046C13.7003 13.4699 13.6709 13.527 13.633 13.58C13.4983 13.8411 13.292 14.0716 13.0205 14.2409C12.7321 14.4184 12.4122 14.5 12.0944 14.5V14.4959L4.00144 14.4918C3.97408 14.4959 3.94461 14.498 3.91514 14.498C3.88568 14.498 3.85621 14.4959 3.82885 14.4918H1.67564C1.64617 14.4959 1.6146 14.5 1.58303 14.5C1.26099 14.5 1 14.2471 1 13.935L1.00631 7.1504C1.00631 6.8383 1.26731 6.58536 1.58934 6.58536C1.6125 6.58536 1.63775 6.5874 1.66091 6.58944L3.59522 6.58536V6.57516C5.37587 6.45073 6.78609 5.03711 6.8366 3.29303C6.83239 3.24408 6.82818 3.19512 6.82818 3.14412C6.82818 2.23639 7.58802 1.5 8.52465 1.5C9.32868 1.5 10.0022 2.04464 10.1769 2.77287L10.1853 2.77083C10.2801 3.18696 10.3327 3.61941 10.3327 4.06206C10.3327 4.74745 10.2127 5.40428 9.99169 6.0142L13.2457 6.01828C13.2752 6.01828 13.3046 6.02032 13.3341 6.02644C13.8898 6.04684 14.4244 6.32426 14.7401 6.8179C14.9422 7.13204 15.0222 7.4829 14.9948 7.82355ZM2.16816 13.3618H3.33422L3.33843 7.71544L2.17448 7.71748L2.16816 13.3618ZM13.7572 7.40946C13.6456 7.23403 13.4478 7.14224 13.2478 7.15244V7.1504H13.2457L9.13294 7.14632C8.8109 7.14632 8.54991 6.89338 8.54991 6.58128C8.54991 6.49153 8.57306 6.40585 8.61095 6.33038L8.60463 6.3263C8.83827 5.90609 9.00665 5.44712 9.10347 4.96367H9.10979C9.10979 4.96367 9.18766 4.6577 9.18556 4.0743C9.18556 3.61125 9.09716 3.18696 9.09716 3.18696H9.09295C9.09295 3.1788 9.09505 3.17064 9.09505 3.16248C9.09505 2.87078 8.85089 2.63416 8.54991 2.63416C8.24892 2.63416 8.00477 2.87078 8.00477 3.16248C8.00477 3.17472 8.00687 3.18696 8.00687 3.1992H7.99845C7.99845 3.1992 8.00687 3.63981 7.91636 4.09878C7.87848 4.29256 7.82375 4.47411 7.77324 4.6169C7.77324 4.6169 7.77113 4.6169 7.77113 4.61486C7.28072 6.06928 6.0473 7.19528 4.50449 7.57673L4.49817 13.3638L12.0965 13.3658C12.1217 13.3658 12.147 13.3679 12.1723 13.372C12.248 13.3618 12.3238 13.3373 12.3912 13.2944C12.488 13.2353 12.5595 13.1496 12.6016 13.0517H12.6037L13.8161 7.86231L13.8119 7.86027C13.8624 7.71544 13.8477 7.55021 13.7572 7.40946Z"
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
var downvoteBtnSvg = /*#__PURE__*/ _jsx("svg", {
|
|
16
|
+
width: "1em",
|
|
17
|
+
height: "1em",
|
|
18
|
+
shapeRendering: "geometricPrecision",
|
|
19
|
+
fill: "currentColor",
|
|
20
|
+
viewBox: "0 0 16 16",
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
23
|
+
d: "M1.0052 8.17645C1.00099 8.11321 1.0052 8.04998 1.02204 7.98674L2.28281 2.5954C2.29965 2.53013 2.32912 2.47301 2.36701 2.41998C2.50171 2.15887 2.70798 1.92837 2.9795 1.75906C3.26786 1.58159 3.58779 1.5 3.90561 1.5V1.50408L11.9986 1.50816C12.0259 1.50408 12.0554 1.50204 12.0849 1.50204C12.1143 1.50204 12.1438 1.50408 12.1712 1.50816H14.3244C14.3538 1.50408 14.3854 1.5 14.417 1.5C14.739 1.5 15 1.75294 15 2.06504L14.9937 8.8496C14.9937 9.1617 14.7327 9.41464 14.4107 9.41464C14.3875 9.41464 14.3622 9.4126 14.3391 9.41056L12.4048 9.41464V9.42484C10.6241 9.54927 9.21391 10.9629 9.1634 12.707C9.16761 12.7559 9.17182 12.8049 9.17182 12.8559C9.17182 13.7636 8.41198 14.5 7.47535 14.5C6.67132 14.5 5.99778 13.9554 5.82308 13.2271L5.81466 13.2292C5.71995 12.813 5.66733 12.3806 5.66733 11.9379C5.66733 11.2526 5.7873 10.5957 6.00831 9.9858L2.75429 9.98172C2.72482 9.98172 2.69535 9.97968 2.66589 9.97356C2.11022 9.95316 1.5756 9.67574 1.25988 9.1821C1.05782 8.86796 0.977839 8.5171 1.0052 8.17645ZM13.8318 2.63824H12.6658L12.6616 8.28456L13.8255 8.28252L13.8318 2.63824ZM2.24282 8.59054C2.35438 8.76597 2.55223 8.85776 2.75218 8.84756V8.8496H2.75429L6.86706 8.85368C7.1891 8.85368 7.45009 9.10662 7.45009 9.41872C7.45009 9.50847 7.42694 9.59415 7.38905 9.66962L7.39537 9.6737C7.16173 10.0939 6.99335 10.5529 6.89653 11.0363H6.89021C6.89021 11.0363 6.81234 11.3423 6.81444 11.9257C6.81444 12.3887 6.90284 12.813 6.90284 12.813H6.90705C6.90705 12.8212 6.90495 12.8294 6.90495 12.8375C6.90495 13.1292 7.14911 13.3658 7.45009 13.3658C7.75108 13.3658 7.99523 13.1292 7.99523 12.8375C7.99523 12.8253 7.99313 12.813 7.99313 12.8008H8.00155C8.00155 12.8008 7.99313 12.3602 8.08364 11.9012C8.12152 11.7074 8.17625 11.5259 8.22676 11.3831C8.22676 11.3831 8.22887 11.3831 8.22887 11.3851C8.71928 9.93072 9.9527 8.80472 11.4955 8.42327L11.5018 2.6362L3.90351 2.63416C3.87825 2.63416 3.85299 2.63212 3.82773 2.62804C3.75196 2.63824 3.67619 2.66272 3.60884 2.70555C3.51201 2.76471 3.44045 2.85038 3.39836 2.9483H3.39625L2.18389 8.13769L2.1881 8.13973C2.13758 8.28456 2.15232 8.44979 2.24282 8.59054Z"
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
export var UpVoteBtn = function(props) {
|
|
27
|
+
var prefix = props.prefix, isActive = props.isActive, clickFn = props.clickFn;
|
|
28
|
+
var getCls = function(clsName) {
|
|
29
|
+
return styles[clsName] + " " + prefix + "-" + clsName;
|
|
30
|
+
};
|
|
31
|
+
return /*#__PURE__*/ _jsx("i", {
|
|
32
|
+
onClick: function() {
|
|
33
|
+
clickFn();
|
|
34
|
+
},
|
|
35
|
+
className: "".concat(getCls("upVoteBtn"), " ").concat(isActive ? getCls("active") : ""),
|
|
36
|
+
children: upvoteBtnSvg
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
export var DownVoteBtn = function(props) {
|
|
40
|
+
var prefix = props.prefix, isActive = props.isActive, clickFn = props.clickFn;
|
|
41
|
+
var getCls = function(clsName) {
|
|
42
|
+
return styles[clsName] + " " + prefix + "-" + clsName;
|
|
43
|
+
};
|
|
44
|
+
return /*#__PURE__*/ _jsx("i", {
|
|
45
|
+
onClick: function() {
|
|
46
|
+
clickFn();
|
|
47
|
+
},
|
|
48
|
+
className: "".concat(getCls("downVoteBtn"), " ").concat(isActive ? getCls("active") : ""),
|
|
49
|
+
children: downvoteBtnSvg
|
|
50
|
+
});
|
|
51
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { referenceType, fileUploadProps } from "../../type";
|
|
3
|
+
interface IProps {
|
|
4
|
+
prefix: string;
|
|
5
|
+
referencesSource: referenceType;
|
|
6
|
+
fileUpload: boolean | fileUploadProps;
|
|
7
|
+
deleteReferences: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const References: (props: IProps) => React.JSX.Element;
|
|
10
|
+
export default References;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@ice/jsx-runtime/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import styles from "./index.module.less";
|
|
4
|
+
import { CloseCircleFilled } from "../../../icons";
|
|
5
|
+
import { fileIconRender } from "../fileList/fileIcon";
|
|
6
|
+
var References = function(props) {
|
|
7
|
+
var prefix = props.prefix, referencesSource = props.referencesSource, fileUpload = props.fileUpload, deleteReferences = props.deleteReferences;
|
|
8
|
+
var getCls = function(clsName) {
|
|
9
|
+
return styles[clsName] + " " + prefix + "-" + clsName;
|
|
10
|
+
};
|
|
11
|
+
if (!referencesSource) return null;
|
|
12
|
+
if (referencesSource.type === "text") {
|
|
13
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
14
|
+
className: "".concat(getCls("footerReferences")),
|
|
15
|
+
children: [
|
|
16
|
+
/*#__PURE__*/ _jsx("div", {
|
|
17
|
+
className: "".concat(getCls("footerReferences_left")),
|
|
18
|
+
children: /*#__PURE__*/ _jsx("div", {
|
|
19
|
+
className: "".concat(getCls("footerReferences_left_text")),
|
|
20
|
+
children: referencesSource.value
|
|
21
|
+
})
|
|
22
|
+
}),
|
|
23
|
+
/*#__PURE__*/ _jsx("div", {
|
|
24
|
+
className: "".concat(getCls("footerReferences_right")),
|
|
25
|
+
children: /*#__PURE__*/ _jsx(CloseCircleFilled, {
|
|
26
|
+
onPointerEnterCapture: undefined,
|
|
27
|
+
onPointerLeaveCapture: undefined,
|
|
28
|
+
onClick: function() {
|
|
29
|
+
return deleteReferences();
|
|
30
|
+
}
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
if (referencesSource.type === "file" && fileUpload) {
|
|
37
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
38
|
+
className: "".concat(getCls("footerReferences")),
|
|
39
|
+
children: [
|
|
40
|
+
/*#__PURE__*/ _jsx("div", {
|
|
41
|
+
className: "".concat(getCls("footerReferences_left")),
|
|
42
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
43
|
+
className: "".concat(getCls("footerReferences_left_file")),
|
|
44
|
+
children: [
|
|
45
|
+
/*#__PURE__*/ _jsx("div", {
|
|
46
|
+
className: "".concat(getCls("footerReferences_left_file_icon")),
|
|
47
|
+
children: fileIconRender(referencesSource.value.suffix, fileUpload.iconFileRender)
|
|
48
|
+
}),
|
|
49
|
+
/*#__PURE__*/ _jsx("div", {
|
|
50
|
+
className: "".concat(getCls("footerReferences_left_file_title")),
|
|
51
|
+
title: referencesSource.value.name,
|
|
52
|
+
children: referencesSource.value.name
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
})
|
|
56
|
+
}),
|
|
57
|
+
/*#__PURE__*/ _jsx("div", {
|
|
58
|
+
className: "".concat(getCls("footerReferences_right")),
|
|
59
|
+
children: /*#__PURE__*/ _jsx(CloseCircleFilled, {
|
|
60
|
+
onPointerEnterCapture: undefined,
|
|
61
|
+
onPointerLeaveCapture: undefined,
|
|
62
|
+
onClick: function() {
|
|
63
|
+
return deleteReferences();
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
]
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return null;
|
|
71
|
+
};
|
|
72
|
+
export default References;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.footerReferences {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
padding: 12px 16px;
|
|
7
|
+
padding-top: 0;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
.footerReferences_left {
|
|
11
|
+
padding: 8px;
|
|
12
|
+
background: #e7e7e7;
|
|
13
|
+
border-radius: 2px;
|
|
14
|
+
color: rgba(0, 0, 0, 0.65);
|
|
15
|
+
font-size: 12px;
|
|
16
|
+
line-height: 18px;
|
|
17
|
+
flex: 1;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
|
|
20
|
+
/* 两行出现省略号 */
|
|
21
|
+
.footerReferences_left_text {
|
|
22
|
+
width: 100%;
|
|
23
|
+
max-height: 36px;
|
|
24
|
+
word-break: break-all;
|
|
25
|
+
display: -webkit-box;
|
|
26
|
+
-webkit-line-clamp: 2;
|
|
27
|
+
-webkit-box-orient: vertical;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
text-overflow: ellipsis;
|
|
30
|
+
word-wrap: break-word;
|
|
31
|
+
}
|
|
32
|
+
.footerReferences_left_file{
|
|
33
|
+
width: 100%;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
border-radius: 2px;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 8px;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
.footerReferences_left_file_icon{
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
&>i{
|
|
43
|
+
font-size: 24px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
.footerReferences_left_file_title{
|
|
47
|
+
flex: 1;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
text-overflow: ellipsis;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
.footerReferences_right {
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
display: flex;
|
|
57
|
+
:global {
|
|
58
|
+
.anticon-close-circle {
|
|
59
|
+
font-size: 20px;
|
|
60
|
+
color: #bfbfbf;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import styles from "./index.module.less";
|
|
4
|
+
import { Popover } from "antd";
|
|
5
|
+
var sendBtnSvg = /*#__PURE__*/ _jsx("svg", {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
12
|
+
d: "M20.3831 4.11378C20.0797 3.96207 19.7763 3.96207 19.6246 4.11378L4.45533 11.6984C4.15195 11.6984 4.00024 12.0018 4.00024 12.3052C4.00024 12.6085 4.15195 12.9119 4.30364 12.9119L7.94426 15.1874C8.24766 15.3391 8.55105 15.3391 8.85443 15.0357L16.8942 7.7544L17.1975 7.90609L9.91627 15.6425C9.76458 15.7941 9.76458 15.9458 9.76458 16.0975V19.4348C9.76458 19.7381 9.91627 20.0415 10.2197 20.1932C10.523 20.3449 10.8264 20.1932 10.9781 20.0415L12.7984 18.2212L16.4391 20.6483C16.5908 20.8 16.7425 20.8 16.8942 20.8H17.1975C17.5009 20.6483 17.6526 20.4966 17.6526 20.1932L20.6865 5.02393C20.6865 4.56885 20.6865 4.26547 20.3831 4.11378Z"
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
var sendingSvg = /*#__PURE__*/ _jsx("svg", {
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
width: "1em",
|
|
18
|
+
height: "1em",
|
|
19
|
+
viewBox: "0 0 16 16",
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
22
|
+
d: "M8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0ZM8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1ZM9.5 5C9.89782 5 10.2792 5.15815 10.5605 5.43945C10.8419 5.72076 11 6.10218 11 6.5V9.5C11 9.89782 10.8419 10.2792 10.5605 10.5605C10.2792 10.8419 9.89782 11 9.5 11H6.5C6.10218 11 5.72076 10.8419 5.43945 10.5605C5.15815 10.2792 5 9.89782 5 9.5V6.5C5 6.10218 5.15815 5.72076 5.43945 5.43945C5.72076 5.15815 6.10218 5 6.5 5H9.5Z"
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
var SendBtn = function(props) {
|
|
26
|
+
var prefix = props.prefix, canSendMsg = props.canSendMsg, sending = props.sending, stopMessage = props.stopMessage, _props_clickFn = props.clickFn, clickFn = _props_clickFn === void 0 ? function() {} : _props_clickFn;
|
|
27
|
+
var getCls = function(clsName) {
|
|
28
|
+
return styles[clsName] + " " + prefix + "-" + clsName;
|
|
29
|
+
};
|
|
30
|
+
if (sending) {
|
|
31
|
+
return /*#__PURE__*/ _jsx(Popover, {
|
|
32
|
+
content: "停止生成",
|
|
33
|
+
overlayClassName: styles.popover,
|
|
34
|
+
children: /*#__PURE__*/ _jsx("i", {
|
|
35
|
+
className: "".concat(getCls("sendingIcon")),
|
|
36
|
+
onClick: function() {
|
|
37
|
+
return stopMessage();
|
|
38
|
+
},
|
|
39
|
+
children: sendingSvg
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
return /*#__PURE__*/ _jsx("i", {
|
|
44
|
+
className: "".concat(getCls("sendBtnIcon"), " ").concat(canSendMsg ? "" : getCls("disabled")),
|
|
45
|
+
onClick: function() {
|
|
46
|
+
if (canSendMsg) {
|
|
47
|
+
clickFn();
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
children: sendBtnSvg
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
export default SendBtn;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.sendBtnIcon {
|
|
2
|
+
font-size: 24px;
|
|
3
|
+
display: flex;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
color: #5991ef;
|
|
6
|
+
&.disabled {
|
|
7
|
+
color: rgba(0, 0, 0, 0.25);
|
|
8
|
+
cursor: not-allowed;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sendingIcon {
|
|
13
|
+
font-size: 18px;
|
|
14
|
+
display: flex;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
color: #f4523b;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.popover {
|
|
20
|
+
:global {
|
|
21
|
+
.bhd-popover-inner-content {
|
|
22
|
+
color: rgba(0, 0, 0, 0.65)!important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
2
|
+
import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import styles from "./index.module.less";
|
|
5
|
+
import { Upload } from "antd";
|
|
6
|
+
var uplodaFileBtnSvg = /*#__PURE__*/ _jsx("svg", {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: "1em",
|
|
9
|
+
height: "1em",
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "curretnColor",
|
|
12
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
13
|
+
d: "M18.6853 7.62742C17.8428 6.79307 16.7044 6.32615 15.5187 6.3287H15.5067C14.9307 6.3287 14.3694 6.43537 13.8347 6.64871C13.2814 6.86872 12.7814 7.19407 12.3547 7.61542L8.1774 11.7449C7.93976 11.9789 7.75147 12.2582 7.62368 12.5663C7.49588 12.8743 7.43118 13.2049 7.4334 13.5384C7.43474 14.2157 7.70273 14.8531 8.18673 15.3318C8.67073 15.8118 9.31339 16.0745 9.99872 16.0758H10.0041C10.6867 16.0758 11.328 15.8145 11.808 15.3411L15.4747 11.7169C15.5343 11.6586 15.5818 11.5889 15.6141 11.512C15.6465 11.435 15.6632 11.3524 15.6632 11.2689C15.6632 11.1855 15.6465 11.1028 15.6141 11.0259C15.5818 10.949 15.5343 10.8793 15.4747 10.8209C15.3544 10.7019 15.1919 10.6351 15.0227 10.6351C14.8534 10.6351 14.691 10.7019 14.5707 10.8209L10.904 14.4437C10.7851 14.5612 10.6442 14.6541 10.4893 14.717C10.3344 14.78 10.1686 14.8117 10.0014 14.8104H10.0001C9.65919 14.8107 9.33196 14.6766 9.08939 14.4371C8.96981 14.3197 8.87485 14.1796 8.81006 14.0251C8.74527 13.8705 8.71195 13.7046 8.71206 13.537C8.71037 13.3709 8.7422 13.2062 8.80567 13.0527C8.86913 12.8992 8.96291 12.7601 9.08139 12.6437L13.2587 8.51146C13.8576 7.9204 14.6666 7.59138 15.508 7.59676H15.5173C16.3656 7.59544 17.1802 7.92894 17.784 8.5248C18.388 9.12216 18.7213 9.91686 18.7227 10.7636C18.7254 11.1781 18.6451 11.5889 18.4864 11.9718C18.3277 12.3548 18.0938 12.702 17.7987 12.993L13.3667 17.3799C12.4776 18.2529 11.2794 18.7389 10.0334 18.7319H10.0214C8.76654 18.7335 7.56186 18.2394 6.66941 17.3572C6.22896 16.9252 5.8792 16.4096 5.64062 15.8406C5.40205 15.2716 5.27948 14.6607 5.28009 14.0437C5.27585 13.4298 5.39486 12.8212 5.63007 12.2541C5.86528 11.6871 6.2119 11.1729 6.64941 10.7422L12.3734 5.08464C12.4332 5.02626 12.4808 4.95648 12.5133 4.87942C12.5458 4.80236 12.5625 4.71958 12.5625 4.63595C12.5625 4.55233 12.5458 4.46954 12.5133 4.39248C12.4808 4.31543 12.4332 4.24565 12.3734 4.18727C12.2529 4.06755 12.0901 4.00025 11.9203 4C11.7505 3.99975 11.5875 4.06658 11.4667 4.18593L5.74675 9.84486C5.18956 10.3931 4.74792 11.0476 4.44792 11.7694C4.14792 12.4913 3.99564 13.266 4.00009 14.0477C4.00143 14.8211 4.15076 15.5745 4.44542 16.2865C4.75105 17.0251 5.20126 17.6952 5.76956 18.2574C6.33787 18.8196 7.01282 19.2624 7.75473 19.56C8.47206 19.8493 9.23472 19.996 10.0174 20H10.0347C11.6174 20.0024 13.1375 19.3822 14.2667 18.2732L18.7 13.8904C19.1135 13.4806 19.4414 12.9926 19.6646 12.4549C19.8877 11.9172 20.0018 11.3404 20 10.7582C19.999 10.1753 19.8823 9.59842 19.6566 9.06098C19.4309 8.52354 19.1008 8.03627 18.6853 7.62742Z"
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
var SendBtn = function(props) {
|
|
17
|
+
var prefix = props.prefix, fileUpload = props.fileUpload, customRequest = props.customRequest;
|
|
18
|
+
var uplodaProps = _object_spread({}, fileUpload);
|
|
19
|
+
var getCls = function(clsName) {
|
|
20
|
+
return styles[clsName] + " " + prefix + "-" + clsName;
|
|
21
|
+
};
|
|
22
|
+
return /*#__PURE__*/ _jsx(Upload, {
|
|
23
|
+
fileList: [],
|
|
24
|
+
accept: uplodaProps.accept,
|
|
25
|
+
customRequest: customRequest,
|
|
26
|
+
multiple: !!uplodaProps.multiple,
|
|
27
|
+
children: /*#__PURE__*/ _jsx("i", {
|
|
28
|
+
className: "".concat(getCls("uploadFileBtn")),
|
|
29
|
+
children: uplodaFileBtnSvg
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export default SendBtn;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { VirtuosoListProps, VirtuosoListRefProps } from "../../type";
|
|
3
|
+
import "highlight.js/styles/github.css";
|
|
4
|
+
declare const VirtuosoList: React.ForwardRefExoticComponent<VirtuosoListProps & React.RefAttributes<VirtuosoListRefProps>>;
|
|
5
|
+
export default VirtuosoList;
|