@gientech/modual 2.3.58 → 2.3.59

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.
Files changed (39) hide show
  1. package/README.md +761 -761
  2. package/assets/AntdIcon-CAOWkvVt.js +63 -0
  3. package/assets/{ExclamationCircleFilled-iFno81Rg.js → ExclamationCircleFilled-BDa8DeZo.js} +1 -1
  4. package/assets/{PlusOutlined-Di4ORSd7.js → PlusOutlined-CMZCYI60.js} +1 -1
  5. package/assets/{QuestionCircleOutlined-BsYIcMyN.js → QuestionCircleOutlined-DCE9HNtM.js} +1 -1
  6. package/assets/{ReviewManage-BA5pqYkj.js → ReviewManage-CLFTRuwJ.js} +7 -7
  7. package/assets/{ReviewSetting-BE-nCaCT.js → ReviewSetting-Dxtpuyr1.js} +1 -1
  8. package/assets/{SearchOutlined-BFI_fmw7.js → SearchOutlined-DW1p94FY.js} +1 -1
  9. package/assets/{client-Drx8xxnE.js → client-BibhMlGU.js} +1 -1
  10. package/assets/database.svg +11 -11
  11. package/assets/database_add.svg +53 -53
  12. package/assets/database_connect.svg +66 -66
  13. package/assets/database_upload.svg +29 -29
  14. package/assets/databse.svg +6 -6
  15. package/assets/defaultWeLogo.svg +14 -14
  16. package/assets/graph.svg +4 -4
  17. package/assets/{index-biTyTcBO.js → index-BfGmE4Wj.js} +1 -1
  18. package/assets/{index-B0WRZpz8.js → index-BpNo5uqt.js} +2 -2
  19. package/assets/index-h35RrDio.js +324 -0
  20. package/assets/knowledge.svg +4 -4
  21. package/assets/lodash--Yc4CABv.js +29 -0
  22. package/assets/mysql.svg +14 -14
  23. package/assets/sensitive.svg +5 -5
  24. package/assets/style10.css +1 -1
  25. package/assets/style9.css +1 -1
  26. package/assistantConfig.js +1 -1
  27. package/chat.js +1 -1
  28. package/chatCompare.js +1 -1
  29. package/database.js +2 -2
  30. package/graphBase.js +1 -1
  31. package/index.js +1 -1
  32. package/oprecords.js +5 -5
  33. package/package.json +7 -7
  34. package/reviewManage.js +1 -1
  35. package/reviewSetting.js +1 -1
  36. package/worker/pdf.worker.min.js +21 -21
  37. package/assets/AntdIcon-Vuhc5UuC.js +0 -63
  38. package/assets/index-DY1zO2Us.js +0 -263
  39. package/assets/lodash-L-fHanCU.js +0 -28
package/assets/graph.svg CHANGED
@@ -1,4 +1,4 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect width="24" height="24" rx="3.55556" fill="#00C1B8"/>
3
- <path d="M17.9887 12.582C18.1207 13.6621 17.2267 14.5801 16.1526 14.4901C15.3306 14.4181 14.6645 13.7521 14.6045 12.924C14.5745 12.558 14.6645 12.21 14.8445 11.9159C14.9285 11.7779 14.9045 11.6039 14.8025 11.4899L14.3885 11.0339C14.2805 10.9139 14.1005 10.8839 13.9565 10.9559C13.6144 11.1239 13.2304 11.2199 12.8224 11.2199C12.6244 11.2199 12.4324 11.1959 12.2464 11.1539C12.0963 11.1179 11.9463 11.1779 11.8563 11.3039L11.2803 12.1259C11.1783 12.276 11.1963 12.474 11.3223 12.606C11.8983 13.188 12.2464 13.9921 12.2284 14.8741C12.1924 16.4702 10.9203 17.7963 9.32417 17.9043C7.45804 18.0243 5.90994 16.4942 6.00595 14.6281C6.08995 13.038 7.38604 11.7599 8.97614 11.6879C9.42017 11.6699 9.8402 11.7419 10.2302 11.8919C10.3922 11.9519 10.5722 11.8979 10.6743 11.7599L11.1663 11.0579C11.2743 10.9019 11.2503 10.6919 11.1123 10.5658C10.5302 10.0498 10.1882 9.26976 10.2662 8.4177C10.3742 7.18162 11.3823 6.18556 12.6244 6.09555C14.1245 5.98154 15.3846 7.17562 15.3846 8.65172C15.3846 9.20376 15.2106 9.70779 14.9105 10.1278C14.8085 10.2658 14.8205 10.4578 14.9345 10.5898L15.3786 11.0819C15.4746 11.1899 15.6306 11.2259 15.7626 11.1779C16.0086 11.0939 16.2786 11.0639 16.5606 11.1119C17.3047 11.2259 17.8987 11.8319 17.9887 12.582Z" fill="white"/>
4
- </svg>
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="24" height="24" rx="3.55556" fill="#00C1B8"/>
3
+ <path d="M17.9887 12.582C18.1207 13.6621 17.2267 14.5801 16.1526 14.4901C15.3306 14.4181 14.6645 13.7521 14.6045 12.924C14.5745 12.558 14.6645 12.21 14.8445 11.9159C14.9285 11.7779 14.9045 11.6039 14.8025 11.4899L14.3885 11.0339C14.2805 10.9139 14.1005 10.8839 13.9565 10.9559C13.6144 11.1239 13.2304 11.2199 12.8224 11.2199C12.6244 11.2199 12.4324 11.1959 12.2464 11.1539C12.0963 11.1179 11.9463 11.1779 11.8563 11.3039L11.2803 12.1259C11.1783 12.276 11.1963 12.474 11.3223 12.606C11.8983 13.188 12.2464 13.9921 12.2284 14.8741C12.1924 16.4702 10.9203 17.7963 9.32417 17.9043C7.45804 18.0243 5.90994 16.4942 6.00595 14.6281C6.08995 13.038 7.38604 11.7599 8.97614 11.6879C9.42017 11.6699 9.8402 11.7419 10.2302 11.8919C10.3922 11.9519 10.5722 11.8979 10.6743 11.7599L11.1663 11.0579C11.2743 10.9019 11.2503 10.6919 11.1123 10.5658C10.5302 10.0498 10.1882 9.26976 10.2662 8.4177C10.3742 7.18162 11.3823 6.18556 12.6244 6.09555C14.1245 5.98154 15.3846 7.17562 15.3846 8.65172C15.3846 9.20376 15.2106 9.70779 14.9105 10.1278C14.8085 10.2658 14.8205 10.4578 14.9345 10.5898L15.3786 11.0819C15.4746 11.1899 15.6306 11.2259 15.7626 11.1779C16.0086 11.0939 16.2786 11.0639 16.5606 11.1119C17.3047 11.2259 17.8987 11.8319 17.9887 12.582Z" fill="white"/>
4
+ </svg>
@@ -1,4 +1,4 @@
1
- import{jsxs as d,jsx as e,Fragment as _e}from"react/jsx-runtime";import he,{useState as w,createContext as ou,useContext as su,forwardRef as iu,useEffect as j,useMemo as be,useImperativeHandle as cu,useRef as Z}from"react";import{Button as te,Form as De,Tooltip as pe,Checkbox as $e,Input as ke,Modal as ye,Select as Y,Slider as du,InputNumber as Fu,Col as ue,Row as se,Switch as Ae,message as Ie}from"antd";import{c as xe}from"./createLucideIcon-Bj5DlX2s.js";import mu from"axios";import{X as Eu}from"./x-CdZQbi--.js";import K from"styled-components";import{S as hu}from"./search-CEuIa9-_.js";import{R as Ce}from"./QuestionCircleOutlined-BsYIcMyN.js";import{P as ve}from"./plus-B679mjyt.js";/* empty css *//**
1
+ import{jsxs as d,jsx as e,Fragment as _e}from"react/jsx-runtime";import he,{useState as w,createContext as ou,useContext as su,forwardRef as iu,useEffect as j,useMemo as be,useImperativeHandle as cu,useRef as Z}from"react";import{Button as te,Form as De,Tooltip as pe,Checkbox as $e,Input as ke,Modal as ye,Select as Y,Slider as du,InputNumber as Fu,Col as ue,Row as se,Switch as Ae,message as Ie}from"antd";import{c as xe}from"./createLucideIcon-Bj5DlX2s.js";import mu from"axios";import{X as Eu}from"./x-CdZQbi--.js";import K from"styled-components";import{S as hu}from"./search-CEuIa9-_.js";import{R as Ce}from"./QuestionCircleOutlined-DCE9HNtM.js";import{P as ve}from"./plus-B679mjyt.js";/* empty css *//**
2
2
  * @license lucide-react v0.456.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{jsxs as O,jsx as t,Fragment as X2}from"react/jsx-runtime";import*as u2 from"react";import e0,{useState as K,useMemo as w2,useRef as s2,useEffect as Q2,memo as J2,Suspense as G3,useCallback as S2,forwardRef as R3,useImperativeHandle as S3,createContext as O3,useContext as j3}from"react";import{ChatMessageAdapter as y3,mergeLiveChunkToNodes as b3}from"@mxmweb/rtext";import{c as E0,d as N3,g as X3,b as u0,e as S0,f as Y2,h as d0,T as F2,D as O0,i as J3,j as T3,k as j0,a as Z3,l as V3}from"./DrawerVideo-DE96g9Ht.js";import{message as l2,Popconfirm as U3,Popover as K3,Tooltip as P2,Switch as W3,Input as j2,Form as m2,ConfigProvider as y2,Modal as q3,Button as x2,Tree as _3,Tag as $3,Table as A6,Pagination as C6,Empty as g6,Drawer as $2,Select as y0,Flex as e6,Badge as E6}from"antd";import c2 from"axios";import{R as I6,k as B6,g as K2,a as k2,f as Q6,b as t6}from"./PlusOutlined-Di4ORSd7.js";import{u as p2}from"./index-CpW6Dhpp.js";import{G as i6,C as o6}from"./GientechStreamReader-CnAI3q38.js";import{C as b0}from"./chevron-right-CrkLSPrQ.js";import"dayjs";import{Icon as h2,useTheme as n6,deepMergeTheme as O2,defaultTheme as f0}from"@mxmweb/zui";import{X as I0}from"./x-CdZQbi--.js";import{c as T2}from"./createLucideIcon-Bj5DlX2s.js";import{L as v0}from"./loader-circle-C1Oa97Sz.js";import{validateFileUpload as N0,showValidationErrors as X0}from"@mxmweb/aichat";import{I as r6,_ as s6}from"./AntdIcon-Vuhc5UuC.js";/**
1
+ import{jsxs as O,jsx as t,Fragment as X2}from"react/jsx-runtime";import*as u2 from"react";import e0,{useState as K,useMemo as w2,useRef as s2,useEffect as Q2,memo as J2,Suspense as G3,useCallback as S2,forwardRef as R3,useImperativeHandle as S3,createContext as O3,useContext as j3}from"react";import{ChatMessageAdapter as y3,mergeLiveChunkToNodes as b3}from"@mxmweb/rtext";import{c as E0,d as N3,g as X3,b as u0,e as S0,f as Y2,h as d0,T as F2,D as O0,i as J3,j as T3,k as j0,a as Z3,l as V3}from"./DrawerVideo-DE96g9Ht.js";import{message as l2,Popconfirm as U3,Popover as K3,Tooltip as P2,Switch as W3,Input as j2,Form as m2,ConfigProvider as y2,Modal as q3,Button as x2,Tree as _3,Tag as $3,Table as A6,Pagination as C6,Empty as g6,Drawer as $2,Select as y0,Flex as e6,Badge as E6}from"antd";import c2 from"axios";import{R as I6,k as B6,g as K2,a as k2,f as Q6,b as t6}from"./PlusOutlined-CMZCYI60.js";import{u as p2}from"./index-CpW6Dhpp.js";import{G as i6,C as o6}from"./GientechStreamReader-CnAI3q38.js";import{C as b0}from"./chevron-right-CrkLSPrQ.js";import"dayjs";import{Icon as h2,useTheme as n6,deepMergeTheme as O2,defaultTheme as f0}from"@mxmweb/zui";import{X as I0}from"./x-CdZQbi--.js";import{c as T2}from"./createLucideIcon-Bj5DlX2s.js";import{L as v0}from"./loader-circle-C1Oa97Sz.js";import{validateFileUpload as N0,showValidationErrors as X0}from"@mxmweb/aichat";import{I as r6,_ as s6}from"./AntdIcon-CAOWkvVt.js";/**
2
2
  * @license lucide-react v0.456.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -64,7 +64,7 @@ ${d.substring(C2)}`;c(o2),requestAnimationFrame(()=>{y.selectionStart=y.selectio
64
64
  -ms-overflow-style: none; /* IE/Edge - \u9690\u85CF\u6EDA\u52A8\u6761 */
65
65
  scrollbar-width: none; /* Firefox - \u9690\u85CF\u6EDA\u52A8\u6761 */
66
66
  }
67
- `,document.head.appendChild(D)},[q,r,L]),O("div",{className:"w-full z-20 bg-transparent!",style:{maxWidth:1e3,width:"85%",boxSizing:"border-box"},children:[t("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),t("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),O("div",{className:"relative mx-auto",children:[O("div",{className:"p-3",style:{width:"100%",boxSizing:"border-box"},children:[t("div",{className:"mb-3 flex flex-wrap gap-2 animate-fade-in-up",children:R&&x.map((D,y)=>t("button",{onClick:()=>{C&&C("sender:send_recommandQuestion",{content:D,clearFn:()=>{C&&C("sender:clear")}})},className:"recommand-question-btn shadow-sm px-3 py-1.5 bg-white cursor-pointer text-xs rounded-full transition-all duration-200 ease-in-out hover:shadow-lg",style:{visibility:"hidden",transform:"translateY(20px)",backgroundColor:I2,color:T,border:"none"},onMouseEnter:J=>{J.currentTarget.style.color=A2},onMouseOut:J=>{J.currentTarget.style.color=T},children:D},y))}),t("div",{className:"sender-container-gradient relative w-full rounded-[28px] transition-all duration-200",style:{padding:"1px",background:"transparent"},children:O("div",{className:"flex flex-col items-end w-full rounded-[28px] shadow-sm transition-all duration-200",style:{backgroundColor:h,border:`0.5px solid ${r}`,padding:"0 16px 12px 16px"},children:[M.length>0&&t("div",{className:"files-display-wrapper w-full mb-2 overflow-x-auto",style:{maxHeight:"120px",paddingTop:"12px"},children:t(bC,{styles:e,uploadedFiles:M,onRemoveFile:w||(()=>{}),eventsEmit:C})}),t("textarea",{ref:p,value:d,onChange:b,onPaste:W,onKeyDown:F,onFocus:S,rows:1,placeholder:"\u8F93\u5165\u95EE\u9898\u540E\u6309Enter\u53D1\u9001,Shift+Enter\u8FDB\u884C\u6362\u884C",className:`flex-1 w-full min-w-0 py-2 resize-none outline-none border-none min-h-[85px]\r
67
+ `,document.head.appendChild(D)},[q,r,L]),O("div",{className:"w-full z-20 bg-transparent!",style:{maxWidth:1e3,width:"85%",boxSizing:"border-box"},children:[t("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),t("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),O("div",{className:"relative mx-auto",children:[O("div",{className:"p-3",style:{width:"100%",boxSizing:"border-box"},children:[t("div",{className:"mb-3 flex flex-wrap gap-2 animate-fade-in-up",children:R&&x.map((D,y)=>t("button",{onClick:()=>{C&&C("sender:send_recommandQuestion",{content:D,clearFn:()=>{C&&C("sender:clear")}})},className:"recommand-question-btn shadow-sm px-3 py-1.5 bg-white cursor-pointer text-xs rounded-full transition-all duration-200 ease-in-out hover:shadow-lg",style:{visibility:"hidden",transform:"translateY(20px)",backgroundColor:I2,color:T,border:"none"},onMouseEnter:J=>{J.currentTarget.style.color=A2},onMouseOut:J=>{J.currentTarget.style.color=T},children:D},y))}),t("div",{className:"sender-container-gradient relative w-full rounded-[28px] transition-all duration-200",style:{padding:"1px",background:"transparent"},children:O("div",{className:"flex flex-col items-end w-full rounded-[28px] shadow-sm transition-all duration-200",style:{backgroundColor:h,border:`0.5px solid ${r}`,padding:"0 16px 12px 16px"},children:[M.length>0&&t("div",{className:"files-display-wrapper w-full mb-2 overflow-x-auto",style:{maxHeight:"120px",paddingTop:"12px"},children:t(bC,{styles:e,uploadedFiles:M,onRemoveFile:w||(()=>{}),eventsEmit:C})}),t("textarea",{ref:p,value:d,onChange:b,onPaste:W,onKeyDown:F,onFocus:S,rows:1,placeholder:"\u8F93\u5165\u95EE\u9898\u540E\u6309Enter\u53D1\u9001,Shift+Enter\u8FDB\u884C\u6362\u884C",className:`flex-1 w-full min-w-0 py-2 resize-none outline-none border-none min-h-[85px]
68
68
  max-h-[180px] text-[14px] leading-[24px] dynamic-placeholder`,style:{backgroundColor:"transparent",color:B2,whiteSpace:"pre-wrap"}}),O("div",{className:"flex items-center justify-between w-full ml-3 space-x-1.5 shrink-0 whitespace-nowrap",children:[t("div",{children:t("div",{className:"flex items-center gap-4",children:u.filter(D=>D.enabled!==!1).map(D=>D.type==="select"?O("div",{className:"flex items-center gap-2",children:[O("span",{className:"text-xs",style:{color:B2},children:[D.label,":"]}),t(JC,{value:o[D.name],onChange:y=>{v(J=>({...J,[D.name]:y}))},options:D.options||[],styles:e,disabled:!D.enabled,placeholder:D.label})]},D.name):t(XC,{styles:e,checked:o[D.name],disabled:!D.enabled,onChange:y=>{v(J=>({...J,[D.name]:y}))},icon:D.icon,children:D.label},D.name))})}),O("div",{className:"flex items-center justify-end",children:[$.filter(D=>D.enabled!==!1).map((D,y)=>{const J=t("button",{type:"button",className:"relative w-8 h-8 flex items-center justify-center rounded-lg cursor-pointer group hover:bg-blue-50 active:bg-blue-100 transition-colors",style:{border:"none",background:"transparent",color:B2,fontWeight:500,fontSize:15,outline:"none",padding:0,margin:0,transition:"background 0.2s"},onClick:()=>{D.name==="clear"?C&&C("sender:clear"):C&&C(`sender:action_${D.name}`)},children:D.icon}),C2=D.tip?t(P2,{title:D.tip,placement:"top",styles:{body:{backgroundColor:"#4E5969",color:"#ffffff",fontSize:"12px",padding:"6px 12px",borderRadius:"6px"},root:{maxWidth:"300px"}},children:J}):J;return D.badgeCount===void 0?t(e0.Fragment,{children:C2},D.name||y):t(E6,{count:D.badgeCount,size:"small",style:{backgroundColor:E2,color:X,fontWeight:500,fontSize:9,minWidth:16,height:16,lineHeight:"19px",borderRadius:9,marginLeft:8,display:"flex",alignItems:"center",justifyContent:"center",padding:"0 5px"},offset:[-2,10],children:C2},(D.name||y)+"-badge")}),I.actions&&t("div",{className:"ml-3 mr-3 h-5 w-px",style:{backgroundColor:r}}),t("div",{className:`
69
69
  relative w-[35px] h-8 flex items-center justify-center rounded-full group overflow-hidden shadow-sm
70
70
  transition-all duration-200