@glodon-aiot/agent-cli-ui 2.4.7
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.git.md +73 -0
- package/README.lib.md +135 -0
- package/dist/es/AgentClientUI.mjs +155 -0
- package/dist/es/Dialog/AgentChat/index.mjs +757 -0
- package/dist/es/Dialog/AgentChat/style.less.mjs +4 -0
- package/dist/es/Dialog/ConnectToNetwork/index.mjs +92 -0
- package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +4 -0
- package/dist/es/Dialog/FileCard/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/Dialog/FileCard/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/Dialog/FileCard/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/Dialog/FileCard/index.mjs +142 -0
- package/dist/es/Dialog/FileCard/style.less.mjs +4 -0
- package/dist/es/Dialog/FilePreview/index.mjs +90 -0
- package/dist/es/Dialog/FilePreview/style.less.mjs +4 -0
- package/dist/es/Dialog/Greeting/index.mjs +31 -0
- package/dist/es/Dialog/Greeting/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryContent/index.mjs +14 -0
- package/dist/es/Dialog/HistoryContent/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/index.mjs +355 -0
- package/dist/es/Dialog/HistoryItem/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/think.svg.mjs +4 -0
- package/dist/es/Dialog/KnowledgeDoc/index.mjs +46 -0
- package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +68 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/index.mjs +69 -0
- package/dist/es/Dialog/KnowledgeList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +89 -0
- package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +48 -0
- package/dist/es/Dialog/PromptManager/PromptList/access/empty.svg.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/index.mjs +128 -0
- package/dist/es/Dialog/PromptManager/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptSetting/index.mjs +130 -0
- package/dist/es/Dialog/PromptSetting/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/RecommendItem.mjs +96 -0
- package/dist/es/Dialog/Recommend/index.mjs +60 -0
- package/dist/es/Dialog/Recommend/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/tip.svg.mjs +4 -0
- package/dist/es/Dialog/ReferCollapse/index.mjs +65 -0
- package/dist/es/Dialog/ReferCollapse/style.less.mjs +4 -0
- package/dist/es/Dialog/SearchReference/index.mjs +64 -0
- package/dist/es/Dialog/SearchReference/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionAction/index.mjs +232 -0
- package/dist/es/Dialog/SessionAction/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionList/index.mjs +197 -0
- package/dist/es/Dialog/SessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +48 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +142 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +120 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/index.mjs +44 -0
- package/dist/es/Dialog/SessionListDrawer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +94 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/index.mjs +86 -0
- package/dist/es/Dialog/SessionRefer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRelated/index.mjs +43 -0
- package/dist/es/Dialog/SessionRelated/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +51 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +368 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +67 -0
- package/dist/es/Dialog/UploadingPrompt/style.less.mjs +4 -0
- package/dist/es/Dialog/index.mjs +128 -0
- package/dist/es/Dialog/style.less.mjs +4 -0
- package/dist/es/FileCard/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/FileCard/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/FileCard/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/FileItem/index.mjs +85 -0
- package/dist/es/FileItem/style.less.mjs +4 -0
- package/dist/es/Footer/FooterWarning.mjs +25 -0
- package/dist/es/Footer/index.mjs +18 -0
- package/dist/es/Footer/style.less.mjs +4 -0
- package/dist/es/Iconfont/index.mjs +12 -0
- package/dist/es/InputProgress/index.mjs +39 -0
- package/dist/es/InputProgress/style.less.mjs +4 -0
- package/dist/es/QuillEditor/index.mjs +219 -0
- package/dist/es/QuillEditor/style.less.mjs +4 -0
- package/dist/es/_virtual/_cloneBuffer.mjs +4 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/_nodeUtil.mjs +4 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/index2.mjs +4 -0
- package/dist/es/_virtual/index3.mjs +4 -0
- package/dist/es/_virtual/index4.mjs +4 -0
- package/dist/es/_virtual/isBuffer.mjs +4 -0
- package/dist/es/_virtual/jsx-runtime.mjs +7 -0
- package/dist/es/_virtual/jsx-runtime2.mjs +4 -0
- package/dist/es/_virtual/minio-zj.mjs +4 -0
- package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +4 -0
- package/dist/es/assets/brand.svg.mjs +4 -0
- package/dist/es/assets/icon.svg.mjs +4 -0
- package/dist/es/components/Copy/index.mjs +44 -0
- package/dist/es/components/Copy/style.less.mjs +4 -0
- package/dist/es/components/JsonDisplay/index.mjs +16 -0
- package/dist/es/components/JsonDisplay/style.less.mjs +4 -0
- package/dist/es/components/Markdown/Code/index.mjs +69 -0
- package/dist/es/components/Markdown/Image/index.mjs +26 -0
- package/dist/es/components/Markdown/index.mjs +48 -0
- package/dist/es/components/Markdown/style.less.mjs +4 -0
- package/dist/es/components/WebLink/index.mjs +26 -0
- package/dist/es/constant.mjs +96 -0
- package/dist/es/context.mjs +7 -0
- package/dist/es/favicon.ico +0 -0
- package/dist/es/favicon2.ico +0 -0
- package/dist/es/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/es/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/es/font/gos-font.js +64 -0
- package/dist/es/images/empty.svg +40 -0
- package/dist/es/images/loading.gif +0 -0
- package/dist/es/images/logo.png +0 -0
- package/dist/es/images/map-example.png +0 -0
- package/dist/es/images/sketch.png +0 -0
- package/dist/es/index.html +43 -0
- package/dist/es/index.mjs +325 -0
- package/dist/es/logo192.png +0 -0
- package/dist/es/logo512.png +0 -0
- package/dist/es/manifest.json +25 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@glodon-aiot/minio/dist/minio-zj.mjs +26485 -0
- package/dist/es/node_modules/@socket.io/component-emitter/lib/esm/index.mjs +54 -0
- package/dist/es/node_modules/ahooks/es/useKeyPress/index.mjs +221 -0
- package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
- package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
- package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
- package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +7 -0
- package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
- package/dist/es/node_modules/ahooks/es/utils/index.mjs +12 -0
- package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
- package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +4 -0
- package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +23 -0
- package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +132 -0
- package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +8 -0
- package/dist/es/node_modules/base64-js/index.mjs +47 -0
- package/dist/es/node_modules/buffer/index.mjs +927 -0
- package/dist/es/node_modules/classnames/index.mjs +42 -0
- package/dist/es/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/has-cors.mjs +9 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseqs.mjs +18 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseuri.mjs +24 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/yeast.mjs +19 -0
- package/dist/es/node_modules/engine.io-client/build/esm/globalThis.browser.mjs +4 -0
- package/dist/es/node_modules/engine.io-client/build/esm/socket.mjs +317 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transport.mjs +113 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/index.mjs +11 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/polling.mjs +273 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.mjs +8 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket.mjs +87 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/webtransport.mjs +52 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.mjs +21 -0
- package/dist/es/node_modules/engine.io-client/build/esm/util.mjs +23 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/commons.mjs +21 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.mjs +14 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/decodePacket.browser.mjs +39 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/encodePacket.browser.mjs +28 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/index.mjs +105 -0
- package/dist/es/node_modules/ieee754/index.mjs +28 -0
- package/dist/es/node_modules/js-base64/base64.mjs +31 -0
- package/dist/es/node_modules/lodash/_Hash.mjs +22 -0
- package/dist/es/node_modules/lodash/_ListCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Map.mjs +6 -0
- package/dist/es/node_modules/lodash/_MapCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Stack.mjs +20 -0
- package/dist/es/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/es/node_modules/lodash/_Uint8Array.mjs +5 -0
- package/dist/es/node_modules/lodash/_apply.mjs +17 -0
- package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +21 -0
- package/dist/es/node_modules/lodash/_assignMergeValue.mjs +10 -0
- package/dist/es/node_modules/lodash/_assignValue.mjs +11 -0
- package/dist/es/node_modules/lodash/_assocIndexOf.mjs +12 -0
- package/dist/es/node_modules/lodash/_baseAssignValue.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseCreate.mjs +17 -0
- package/dist/es/node_modules/lodash/_baseFor.mjs +5 -0
- package/dist/es/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseIsArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/_baseIsNative.mjs +15 -0
- package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +13 -0
- package/dist/es/node_modules/lodash/_baseKeysIn.mjs +16 -0
- package/dist/es/node_modules/lodash/_baseMerge.mjs +22 -0
- package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +33 -0
- package/dist/es/node_modules/lodash/_baseRest.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseSetToString.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseTimes.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseUnary.mjs +9 -0
- package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +10 -0
- package/dist/es/node_modules/lodash/_cloneBuffer.mjs +17 -0
- package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyObject.mjs +16 -0
- package/dist/es/node_modules/lodash/_coreJsData.mjs +5 -0
- package/dist/es/node_modules/lodash/_createAssigner.mjs +17 -0
- package/dist/es/node_modules/lodash/_createBaseFor.mjs +14 -0
- package/dist/es/node_modules/lodash/_defineProperty.mjs +11 -0
- package/dist/es/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/es/node_modules/lodash/_getMapData.mjs +10 -0
- package/dist/es/node_modules/lodash/_getNative.mjs +11 -0
- package/dist/es/node_modules/lodash/_getPrototype.mjs +5 -0
- package/dist/es/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/es/node_modules/lodash/_getValue.mjs +7 -0
- package/dist/es/node_modules/lodash/_hashClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_hashDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_hashGet.mjs +14 -0
- package/dist/es/node_modules/lodash/_hashHas.mjs +10 -0
- package/dist/es/node_modules/lodash/_hashSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_initCloneObject.mjs +11 -0
- package/dist/es/node_modules/lodash/_isIndex.mjs +9 -0
- package/dist/es/node_modules/lodash/_isIterateeCall.mjs +15 -0
- package/dist/es/node_modules/lodash/_isKeyable.mjs +8 -0
- package/dist/es/node_modules/lodash/_isMasked.mjs +12 -0
- package/dist/es/node_modules/lodash/_isPrototype.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheClear.mjs +7 -0
- package/dist/es/node_modules/lodash/_listCacheDelete.mjs +13 -0
- package/dist/es/node_modules/lodash/_listCacheGet.mjs +10 -0
- package/dist/es/node_modules/lodash/_listCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheClear.mjs +15 -0
- package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheGet.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_nativeCreate.mjs +5 -0
- package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/_nodeUtil.mjs +17 -0
- package/dist/es/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/es/node_modules/lodash/_overArg.mjs +9 -0
- package/dist/es/node_modules/lodash/_overRest.mjs +16 -0
- package/dist/es/node_modules/lodash/_root.mjs +5 -0
- package/dist/es/node_modules/lodash/_safeGet.mjs +8 -0
- package/dist/es/node_modules/lodash/_setToString.mjs +6 -0
- package/dist/es/node_modules/lodash/_shortOut.mjs +17 -0
- package/dist/es/node_modules/lodash/_stackClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_stackDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_stackGet.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackHas.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackSet.mjs +18 -0
- package/dist/es/node_modules/lodash/_toSource.mjs +18 -0
- package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/es/node_modules/lodash/constant.mjs +9 -0
- package/dist/es/node_modules/lodash/debounce.mjs +57 -0
- package/dist/es/node_modules/lodash/eq.mjs +7 -0
- package/dist/es/node_modules/lodash/identity.mjs +7 -0
- package/dist/es/node_modules/lodash/isArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/isArray.mjs +4 -0
- package/dist/es/node_modules/lodash/isArrayLike.mjs +10 -0
- package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +10 -0
- package/dist/es/node_modules/lodash/isBuffer.mjs +12 -0
- package/dist/es/node_modules/lodash/isFunction.mjs +13 -0
- package/dist/es/node_modules/lodash/isLength.mjs +8 -0
- package/dist/es/node_modules/lodash/isObject.mjs +8 -0
- package/dist/es/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/es/node_modules/lodash/isPlainObject.mjs +17 -0
- package/dist/es/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/es/node_modules/lodash/isTypedArray.mjs +7 -0
- package/dist/es/node_modules/lodash/keysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/merge.mjs +10 -0
- package/dist/es/node_modules/lodash/now.mjs +7 -0
- package/dist/es/node_modules/lodash/stubFalse.mjs +7 -0
- package/dist/es/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/es/node_modules/lodash/toPlainObject.mjs +10 -0
- package/dist/es/node_modules/object-assign/index.mjs +34 -0
- package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +18 -0
- package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +31 -0
- package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +45 -0
- package/dist/es/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/es/node_modules/react-fast-compare/index.mjs +78 -0
- package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +188 -0
- package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +4 -0
- package/dist/es/node_modules/socket.io-client/build/esm/contrib/backo2.mjs +26 -0
- package/dist/es/node_modules/socket.io-client/build/esm/index.mjs +25 -0
- package/dist/es/node_modules/socket.io-client/build/esm/manager.mjs +242 -0
- package/dist/es/node_modules/socket.io-client/build/esm/on.mjs +8 -0
- package/dist/es/node_modules/socket.io-client/build/esm/socket.mjs +608 -0
- package/dist/es/node_modules/socket.io-client/build/esm/url.mjs +19 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/binary.mjs +52 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/index.mjs +203 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/is-binary.mjs +26 -0
- package/dist/es/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +15 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
- package/dist/es/packages/agent-cli-sdk/src/AgentSession.mjs +243 -0
- package/dist/es/packages/agent-cli-sdk/src/BotClient.mjs +242 -0
- package/dist/es/packages/agent-cli-sdk/src/Config.mjs +34 -0
- package/dist/es/packages/agent-cli-sdk/src/DialogSession.mjs +281 -0
- package/dist/es/packages/agent-cli-sdk/src/EventBus.mjs +64 -0
- package/dist/es/packages/agent-cli-sdk/src/Logger.mjs +31 -0
- package/dist/es/packages/agent-cli-sdk/src/PayloadTypes.mjs +4 -0
- package/dist/es/packages/agent-cli-sdk/src/Session.mjs +527 -0
- package/dist/es/packages/agent-cli-sdk/src/api/fetchEventSource/fetch.mjs +112 -0
- package/dist/es/packages/agent-cli-sdk/src/api/fetchEventSource/parse.mjs +97 -0
- package/dist/es/packages/agent-cli-sdk/src/api/index.mjs +48 -0
- package/dist/es/packages/agent-cli-sdk/src/utils.mjs +11 -0
- package/dist/es/packages/apis/dist/es/aecpilot/cosntant.mjs +5 -0
- package/dist/es/packages/apis/dist/es/aecpilot/model.mjs +9 -0
- package/dist/es/packages/apis/dist/es/aecpilotui/index.mjs +8 -0
- package/dist/es/packages/apis/dist/es/agentcliui/index.mjs +414 -0
- package/dist/es/packages/apis/dist/es/base/index.mjs +154 -0
- package/dist/es/packages/apis/dist/es/cvforce/index.mjs +431 -0
- package/dist/es/packages/apis/dist/es/cvforce/model.mjs +6 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
- package/dist/es/packages/apis/dist/es/utils/fetchEventSource/fetch.mjs +106 -0
- package/dist/es/packages/apis/dist/es/utils/fetchEventSource/parse.mjs +97 -0
- package/dist/es/robots.txt +3 -0
- package/dist/es/style.less.mjs +4 -0
- package/dist/es/types.mjs +4 -0
- package/dist/es/utils/clipboard.mjs +38 -0
- package/dist/es/utils/index.mjs +33 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/favicon2.ico +0 -0
- package/dist/lib/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/lib/font/gos-font.js +64 -0
- package/dist/lib/images/empty.svg +40 -0
- package/dist/lib/images/loading.gif +0 -0
- package/dist/lib/images/logo.png +0 -0
- package/dist/lib/images/map-example.png +0 -0
- package/dist/lib/images/sketch.png +0 -0
- package/dist/lib/index.html +43 -0
- package/dist/lib/index.js +169 -0
- package/dist/lib/logo192.png +0 -0
- package/dist/lib/logo512.png +0 -0
- package/dist/lib/manifest.json +25 -0
- package/dist/lib/robots.txt +3 -0
- package/dist/src/AgentClientUI.d.ts +4 -0
- package/dist/src/ConnectToNetwork/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/index.d.ts +17 -0
- package/dist/src/Dialog/ChatEmptyView/index.d.ts +6 -0
- package/dist/src/Dialog/ConnectToNetwork/index.d.ts +13 -0
- package/dist/src/Dialog/FileCard/index.d.ts +22 -0
- package/dist/src/Dialog/FilePreview/index.d.ts +20 -0
- package/dist/src/Dialog/Greeting/index.d.ts +7 -0
- package/dist/src/Dialog/HistoryContent/index.d.ts +5 -0
- package/dist/src/Dialog/HistoryItem/index.d.ts +17 -0
- package/dist/src/Dialog/KnowledgeDoc/index.d.ts +9 -0
- package/dist/src/Dialog/KnowledgeList/KnowledgeSelect/index.d.ts +12 -0
- package/dist/src/Dialog/KnowledgeList/index.d.ts +13 -0
- package/dist/src/Dialog/PromptManager/PromptList/EditPromptModal/index.d.ts +11 -0
- package/dist/src/Dialog/PromptManager/PromptList/PrivatePromptList.d.ts +12 -0
- package/dist/src/Dialog/PromptManager/PromptList/PromptListItem.d.ts +13 -0
- package/dist/src/Dialog/PromptManager/PromptList/PublicPromptList.d.ts +12 -0
- package/dist/src/Dialog/PromptManager/index.d.ts +13 -0
- package/dist/src/Dialog/PromptSetting/index.d.ts +14 -0
- package/dist/src/Dialog/Recommend/RecommendItem.d.ts +12 -0
- package/dist/src/Dialog/Recommend/index.d.ts +14 -0
- package/dist/src/Dialog/ReferCollapse/index.d.ts +8 -0
- package/dist/src/Dialog/SearchReference/index.d.ts +7 -0
- package/dist/src/Dialog/SessionAction/index.d.ts +11 -0
- package/dist/src/Dialog/SessionList/index.d.ts +20 -0
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +9 -0
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/SessionItem.d.ts +16 -0
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/index.d.ts +9 -0
- package/dist/src/Dialog/SessionListDrawer/index.d.ts +9 -0
- package/dist/src/Dialog/SessionRefer/ReferItem/index.d.ts +9 -0
- package/dist/src/Dialog/SessionRefer/index.d.ts +8 -0
- package/dist/src/Dialog/SessionRelated/index.d.ts +9 -0
- package/dist/src/Dialog/UploadFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/UploadFiles/index.d.ts +21 -0
- package/dist/src/Dialog/UploadKnowledgeFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/UploadKnowledgeFiles/index.d.ts +22 -0
- package/dist/src/Dialog/UploadingPrompt/index.d.ts +9 -0
- package/dist/src/Dialog/index.d.ts +9 -0
- package/dist/src/FileCard/index.d.ts +21 -0
- package/dist/src/FileItem/index.d.ts +11 -0
- package/dist/src/Footer/FooterWarning.d.ts +8 -0
- package/dist/src/Footer/index.d.ts +7 -0
- package/dist/src/Greeting/index.d.ts +7 -0
- package/dist/src/Iconfont/font_4108228_8te6zfkclqu.d.ts +0 -0
- package/dist/src/Iconfont/font_4439177_7rytwlvbmjj.d.ts +0 -0
- package/dist/src/Iconfont/index.d.ts +3 -0
- package/dist/src/InputProgress/index.d.ts +7 -0
- package/dist/src/QuillEditor/index.d.ts +19 -0
- package/dist/src/components/Copy/index.d.ts +5 -0
- package/dist/src/components/Header/index.d.ts +6 -0
- package/dist/src/components/JsonDisplay/index.d.ts +6 -0
- package/dist/src/components/Markdown/Code/index.d.ts +3 -0
- package/dist/src/components/Markdown/Image/index.d.ts +3 -0
- package/dist/src/components/Markdown/index.d.ts +6 -0
- package/dist/src/components/PDFViewer/index.d.ts +7 -0
- package/dist/src/components/WebLink/index.d.ts +7 -0
- package/dist/src/constant.d.ts +11 -0
- package/dist/src/context.d.ts +5 -0
- package/dist/src/index.d.ts +33 -0
- package/dist/src/types.d.ts +183 -0
- package/dist/src/utils/clipboard.d.ts +11 -0
- package/dist/src/utils/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/utils/fetchEventSource/index.d.ts +1 -0
- package/dist/src/utils/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/utils/index.d.ts +17 -0
- package/package.json +138 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
function r(t) {
|
|
2
|
+
if (t)
|
|
3
|
+
return n(t);
|
|
4
|
+
}
|
|
5
|
+
function n(t) {
|
|
6
|
+
for (var s in r.prototype)
|
|
7
|
+
t[s] = r.prototype[s];
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
r.prototype.on = r.prototype.addEventListener = function(t, s) {
|
|
11
|
+
return this._callbacks = this._callbacks || {}, (this._callbacks["$" + t] = this._callbacks["$" + t] || []).push(s), this;
|
|
12
|
+
};
|
|
13
|
+
r.prototype.once = function(t, s) {
|
|
14
|
+
function e() {
|
|
15
|
+
this.off(t, e), s.apply(this, arguments);
|
|
16
|
+
}
|
|
17
|
+
return e.fn = s, this.on(t, e), this;
|
|
18
|
+
};
|
|
19
|
+
r.prototype.off = r.prototype.removeListener = r.prototype.removeAllListeners = r.prototype.removeEventListener = function(t, s) {
|
|
20
|
+
if (this._callbacks = this._callbacks || {}, arguments.length == 0)
|
|
21
|
+
return this._callbacks = {}, this;
|
|
22
|
+
var e = this._callbacks["$" + t];
|
|
23
|
+
if (!e)
|
|
24
|
+
return this;
|
|
25
|
+
if (arguments.length == 1)
|
|
26
|
+
return delete this._callbacks["$" + t], this;
|
|
27
|
+
for (var a, i = 0; i < e.length; i++)
|
|
28
|
+
if (a = e[i], a === s || a.fn === s) {
|
|
29
|
+
e.splice(i, 1);
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
return e.length === 0 && delete this._callbacks["$" + t], this;
|
|
33
|
+
};
|
|
34
|
+
r.prototype.emit = function(t) {
|
|
35
|
+
this._callbacks = this._callbacks || {};
|
|
36
|
+
for (var s = new Array(arguments.length - 1), e = this._callbacks["$" + t], a = 1; a < arguments.length; a++)
|
|
37
|
+
s[a - 1] = arguments[a];
|
|
38
|
+
if (e) {
|
|
39
|
+
e = e.slice(0);
|
|
40
|
+
for (var a = 0, i = e.length; a < i; ++a)
|
|
41
|
+
e[a].apply(this, s);
|
|
42
|
+
}
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
r.prototype.emitReserved = r.prototype.emit;
|
|
46
|
+
r.prototype.listeners = function(t) {
|
|
47
|
+
return this._callbacks = this._callbacks || {}, this._callbacks["$" + t] || [];
|
|
48
|
+
};
|
|
49
|
+
r.prototype.hasListeners = function(t) {
|
|
50
|
+
return !!this.listeners(t).length;
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
r as Emitter
|
|
54
|
+
};
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { __values as x } from "../../../tslib/tslib.es6.mjs";
|
|
2
|
+
import q from "../useLatest/index.mjs";
|
|
3
|
+
import { isString as O, isNumber as j, isFunction as R } from "../utils/index.mjs";
|
|
4
|
+
import { getTargetElement as z } from "../utils/domTarget.mjs";
|
|
5
|
+
import N from "../utils/useDeepCompareWithTarget.mjs";
|
|
6
|
+
import P from "../utils/isAppleDevice.mjs";
|
|
7
|
+
var B = {
|
|
8
|
+
0: 48,
|
|
9
|
+
1: 49,
|
|
10
|
+
2: 50,
|
|
11
|
+
3: 51,
|
|
12
|
+
4: 52,
|
|
13
|
+
5: 53,
|
|
14
|
+
6: 54,
|
|
15
|
+
7: 55,
|
|
16
|
+
8: 56,
|
|
17
|
+
9: 57,
|
|
18
|
+
backspace: 8,
|
|
19
|
+
tab: 9,
|
|
20
|
+
enter: 13,
|
|
21
|
+
shift: 16,
|
|
22
|
+
ctrl: 17,
|
|
23
|
+
alt: 18,
|
|
24
|
+
pausebreak: 19,
|
|
25
|
+
capslock: 20,
|
|
26
|
+
esc: 27,
|
|
27
|
+
space: 32,
|
|
28
|
+
pageup: 33,
|
|
29
|
+
pagedown: 34,
|
|
30
|
+
end: 35,
|
|
31
|
+
home: 36,
|
|
32
|
+
leftarrow: 37,
|
|
33
|
+
uparrow: 38,
|
|
34
|
+
rightarrow: 39,
|
|
35
|
+
downarrow: 40,
|
|
36
|
+
insert: 45,
|
|
37
|
+
delete: 46,
|
|
38
|
+
a: 65,
|
|
39
|
+
b: 66,
|
|
40
|
+
c: 67,
|
|
41
|
+
d: 68,
|
|
42
|
+
e: 69,
|
|
43
|
+
f: 70,
|
|
44
|
+
g: 71,
|
|
45
|
+
h: 72,
|
|
46
|
+
i: 73,
|
|
47
|
+
j: 74,
|
|
48
|
+
k: 75,
|
|
49
|
+
l: 76,
|
|
50
|
+
m: 77,
|
|
51
|
+
n: 78,
|
|
52
|
+
o: 79,
|
|
53
|
+
p: 80,
|
|
54
|
+
q: 81,
|
|
55
|
+
r: 82,
|
|
56
|
+
s: 83,
|
|
57
|
+
t: 84,
|
|
58
|
+
u: 85,
|
|
59
|
+
v: 86,
|
|
60
|
+
w: 87,
|
|
61
|
+
x: 88,
|
|
62
|
+
y: 89,
|
|
63
|
+
z: 90,
|
|
64
|
+
leftwindowkey: 91,
|
|
65
|
+
rightwindowkey: 92,
|
|
66
|
+
meta: P ? [91, 93] : [91, 92],
|
|
67
|
+
selectkey: 93,
|
|
68
|
+
numpad0: 96,
|
|
69
|
+
numpad1: 97,
|
|
70
|
+
numpad2: 98,
|
|
71
|
+
numpad3: 99,
|
|
72
|
+
numpad4: 100,
|
|
73
|
+
numpad5: 101,
|
|
74
|
+
numpad6: 102,
|
|
75
|
+
numpad7: 103,
|
|
76
|
+
numpad8: 104,
|
|
77
|
+
numpad9: 105,
|
|
78
|
+
multiply: 106,
|
|
79
|
+
add: 107,
|
|
80
|
+
subtract: 109,
|
|
81
|
+
decimalpoint: 110,
|
|
82
|
+
divide: 111,
|
|
83
|
+
f1: 112,
|
|
84
|
+
f2: 113,
|
|
85
|
+
f3: 114,
|
|
86
|
+
f4: 115,
|
|
87
|
+
f5: 116,
|
|
88
|
+
f6: 117,
|
|
89
|
+
f7: 118,
|
|
90
|
+
f8: 119,
|
|
91
|
+
f9: 120,
|
|
92
|
+
f10: 121,
|
|
93
|
+
f11: 122,
|
|
94
|
+
f12: 123,
|
|
95
|
+
numlock: 144,
|
|
96
|
+
scrolllock: 145,
|
|
97
|
+
semicolon: 186,
|
|
98
|
+
equalsign: 187,
|
|
99
|
+
comma: 188,
|
|
100
|
+
dash: 189,
|
|
101
|
+
period: 190,
|
|
102
|
+
forwardslash: 191,
|
|
103
|
+
graveaccent: 192,
|
|
104
|
+
openbracket: 219,
|
|
105
|
+
backslash: 220,
|
|
106
|
+
closebracket: 221,
|
|
107
|
+
singlequote: 222
|
|
108
|
+
}, C = {
|
|
109
|
+
ctrl: function(r) {
|
|
110
|
+
return r.ctrlKey;
|
|
111
|
+
},
|
|
112
|
+
shift: function(r) {
|
|
113
|
+
return r.shiftKey;
|
|
114
|
+
},
|
|
115
|
+
alt: function(r) {
|
|
116
|
+
return r.altKey;
|
|
117
|
+
},
|
|
118
|
+
meta: function(r) {
|
|
119
|
+
return r.type === "keyup" ? B.meta.includes(r.keyCode) : r.metaKey;
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
function D(r) {
|
|
123
|
+
return O(r) || j(r);
|
|
124
|
+
}
|
|
125
|
+
function S(r) {
|
|
126
|
+
var a = Object.keys(C).reduce(function(n, e) {
|
|
127
|
+
return C[e](r) ? n + 1 : n;
|
|
128
|
+
}, 0);
|
|
129
|
+
return [16, 17, 18, 91, 92].includes(r.keyCode) ? a : a + 1;
|
|
130
|
+
}
|
|
131
|
+
function T(r, a, n) {
|
|
132
|
+
var e, m;
|
|
133
|
+
if (!r.key)
|
|
134
|
+
return !1;
|
|
135
|
+
if (j(a))
|
|
136
|
+
return r.keyCode === a ? a : !1;
|
|
137
|
+
var u = a.split("."), d = 0;
|
|
138
|
+
try {
|
|
139
|
+
for (var f = x(u), l = f.next(); !l.done; l = f.next()) {
|
|
140
|
+
var s = l.value, v = C[s], y = B[s.toLowerCase()];
|
|
141
|
+
(v && v(r) || y && y === r.keyCode) && d++;
|
|
142
|
+
}
|
|
143
|
+
} catch (g) {
|
|
144
|
+
e = {
|
|
145
|
+
error: g
|
|
146
|
+
};
|
|
147
|
+
} finally {
|
|
148
|
+
try {
|
|
149
|
+
l && !l.done && (m = f.return) && m.call(f);
|
|
150
|
+
} finally {
|
|
151
|
+
if (e)
|
|
152
|
+
throw e.error;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return n ? d === u.length && S(r) === u.length ? a : !1 : d === u.length ? a : !1;
|
|
156
|
+
}
|
|
157
|
+
function V(r, a) {
|
|
158
|
+
return R(r) ? r : D(r) ? function(n) {
|
|
159
|
+
return T(n, r, a);
|
|
160
|
+
} : Array.isArray(r) ? function(n) {
|
|
161
|
+
return r.find(function(e) {
|
|
162
|
+
return T(n, e, a);
|
|
163
|
+
});
|
|
164
|
+
} : function() {
|
|
165
|
+
return !!r;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
var W = ["keydown"];
|
|
169
|
+
function Z(r, a, n) {
|
|
170
|
+
var e = n || {}, m = e.events, u = m === void 0 ? W : m, d = e.target, f = e.exactMatch, l = f === void 0 ? !1 : f, s = e.useCapture, v = s === void 0 ? !1 : s, y = q(a), g = q(r);
|
|
171
|
+
N(function() {
|
|
172
|
+
var k, E, K, t = z(d, window);
|
|
173
|
+
if (t) {
|
|
174
|
+
var L = function(o) {
|
|
175
|
+
var p, w = V(g.current, l), i = w(o), c = D(i) ? i : o.key;
|
|
176
|
+
if (i)
|
|
177
|
+
return (p = y.current) === null || p === void 0 ? void 0 : p.call(y, o, c);
|
|
178
|
+
};
|
|
179
|
+
try {
|
|
180
|
+
for (var b = x(u), h = b.next(); !h.done; h = b.next()) {
|
|
181
|
+
var G = h.value;
|
|
182
|
+
(K = t == null ? void 0 : t.addEventListener) === null || K === void 0 || K.call(t, G, L, v);
|
|
183
|
+
}
|
|
184
|
+
} catch (o) {
|
|
185
|
+
k = {
|
|
186
|
+
error: o
|
|
187
|
+
};
|
|
188
|
+
} finally {
|
|
189
|
+
try {
|
|
190
|
+
h && !h.done && (E = b.return) && E.call(b);
|
|
191
|
+
} finally {
|
|
192
|
+
if (k)
|
|
193
|
+
throw k.error;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return function() {
|
|
197
|
+
var o, p, w;
|
|
198
|
+
try {
|
|
199
|
+
for (var i = x(u), c = i.next(); !c.done; c = i.next()) {
|
|
200
|
+
var H = c.value;
|
|
201
|
+
(w = t == null ? void 0 : t.removeEventListener) === null || w === void 0 || w.call(t, H, L, v);
|
|
202
|
+
}
|
|
203
|
+
} catch (M) {
|
|
204
|
+
o = {
|
|
205
|
+
error: M
|
|
206
|
+
};
|
|
207
|
+
} finally {
|
|
208
|
+
try {
|
|
209
|
+
c && !c.done && (p = i.return) && p.call(i);
|
|
210
|
+
} finally {
|
|
211
|
+
if (o)
|
|
212
|
+
throw o.error;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
}, [u], d);
|
|
218
|
+
}
|
|
219
|
+
export {
|
|
220
|
+
Z as default
|
|
221
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useRef as u, useMemo as i } from "react";
|
|
2
|
+
import { isFunction as a } from "../utils/index.mjs";
|
|
3
|
+
import c from "../utils/isDev.mjs";
|
|
4
|
+
function p(r) {
|
|
5
|
+
c && (a(r) || console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof r)));
|
|
6
|
+
var n = u(r);
|
|
7
|
+
n.current = i(function() {
|
|
8
|
+
return r;
|
|
9
|
+
}, [r]);
|
|
10
|
+
var t = u();
|
|
11
|
+
return t.current || (t.current = function() {
|
|
12
|
+
for (var o = [], e = 0; e < arguments.length; e++)
|
|
13
|
+
o[e] = arguments[e];
|
|
14
|
+
return n.current.apply(this, o);
|
|
15
|
+
}), t.current;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
p as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
import n from "../useLatest/index.mjs";
|
|
3
|
+
import { isFunction as r } from "../utils/index.mjs";
|
|
4
|
+
import u from "../utils/isDev.mjs";
|
|
5
|
+
var f = function(t) {
|
|
6
|
+
u && (r(t) || console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));
|
|
7
|
+
var o = n(t);
|
|
8
|
+
e(function() {
|
|
9
|
+
return function() {
|
|
10
|
+
o.current();
|
|
11
|
+
};
|
|
12
|
+
}, []);
|
|
13
|
+
};
|
|
14
|
+
const a = f;
|
|
15
|
+
export {
|
|
16
|
+
a as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useRef as a } from "react";
|
|
2
|
+
import h from "../useUnmount/index.mjs";
|
|
3
|
+
import l from "./depsAreSame.mjs";
|
|
4
|
+
import { getTargetElement as p } from "./domTarget.mjs";
|
|
5
|
+
var d = function(v) {
|
|
6
|
+
var m = function(i, u, c) {
|
|
7
|
+
var f = a(!1), t = a([]), o = a([]), e = a();
|
|
8
|
+
v(function() {
|
|
9
|
+
var r, s = Array.isArray(c) ? c : [c], n = s.map(function(g) {
|
|
10
|
+
return p(g);
|
|
11
|
+
});
|
|
12
|
+
if (!f.current) {
|
|
13
|
+
f.current = !0, t.current = n, o.current = u, e.current = i();
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
(n.length !== t.current.length || !l(t.current, n) || !l(o.current, u)) && ((r = e.current) === null || r === void 0 || r.call(e), t.current = n, o.current = u, e.current = i());
|
|
17
|
+
}), h(function() {
|
|
18
|
+
var r;
|
|
19
|
+
(r = e.current) === null || r === void 0 || r.call(e), f.current = !1;
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
return m;
|
|
23
|
+
};
|
|
24
|
+
const W = d;
|
|
25
|
+
export {
|
|
26
|
+
W as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isFunction as i } from "./index.mjs";
|
|
2
|
+
import f from "./isBrowser.mjs";
|
|
3
|
+
function m(e, n) {
|
|
4
|
+
if (f) {
|
|
5
|
+
if (!e)
|
|
6
|
+
return n;
|
|
7
|
+
var r;
|
|
8
|
+
return i(e) ? r = e() : "current" in e ? r = e.current : r = e, r;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
m as getTargetElement
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useRef as f } from "react";
|
|
2
|
+
import u from "./useEffectWithTarget.mjs";
|
|
3
|
+
import { depsEqual as c } from "./depsEqual.mjs";
|
|
4
|
+
var i = function(a, e, o) {
|
|
5
|
+
var r = f(), t = f(0);
|
|
6
|
+
c(e, r.current) || (r.current = e, t.current += 1), u(a, [t.current], o);
|
|
7
|
+
};
|
|
8
|
+
const s = i;
|
|
9
|
+
export {
|
|
10
|
+
s as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import e from "../../../../@babel/runtime/helpers/esm/extends.mjs";
|
|
2
|
+
import a from "../../../../rc-picker/es/locale/zh_CN.mjs";
|
|
3
|
+
import l from "../../time-picker/locale/zh_CN.mjs";
|
|
4
|
+
var r = {
|
|
5
|
+
lang: e({
|
|
6
|
+
placeholder: "请选择日期",
|
|
7
|
+
yearPlaceholder: "请选择年份",
|
|
8
|
+
quarterPlaceholder: "请选择季度",
|
|
9
|
+
monthPlaceholder: "请选择月份",
|
|
10
|
+
weekPlaceholder: "请选择周",
|
|
11
|
+
rangePlaceholder: ["开始日期", "结束日期"],
|
|
12
|
+
rangeYearPlaceholder: ["开始年份", "结束年份"],
|
|
13
|
+
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
14
|
+
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
15
|
+
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
16
|
+
}, a),
|
|
17
|
+
timePickerLocale: e({}, l)
|
|
18
|
+
};
|
|
19
|
+
r.lang.ok = "确定";
|
|
20
|
+
const d = r;
|
|
21
|
+
export {
|
|
22
|
+
d as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import a from "../../../rc-pagination/es/locale/zh_CN.mjs";
|
|
2
|
+
import l from "../date-picker/locale/zh_CN.mjs";
|
|
3
|
+
import t from "../time-picker/locale/zh_CN.mjs";
|
|
4
|
+
var e = "${label}不是一个有效的${type}", r = {
|
|
5
|
+
locale: "zh-cn",
|
|
6
|
+
Pagination: a,
|
|
7
|
+
DatePicker: l,
|
|
8
|
+
TimePicker: t,
|
|
9
|
+
Calendar: l,
|
|
10
|
+
// locales for all components
|
|
11
|
+
global: {
|
|
12
|
+
placeholder: "请选择"
|
|
13
|
+
},
|
|
14
|
+
Table: {
|
|
15
|
+
filterTitle: "筛选",
|
|
16
|
+
filterConfirm: "确定",
|
|
17
|
+
filterReset: "重置",
|
|
18
|
+
filterEmptyText: "无筛选项",
|
|
19
|
+
filterCheckall: "全选",
|
|
20
|
+
filterSearchPlaceholder: "在筛选项中搜索",
|
|
21
|
+
selectAll: "全选当页",
|
|
22
|
+
selectInvert: "反选当页",
|
|
23
|
+
selectNone: "清空所有",
|
|
24
|
+
selectionAll: "全选所有",
|
|
25
|
+
sortTitle: "排序",
|
|
26
|
+
expand: "展开行",
|
|
27
|
+
collapse: "关闭行",
|
|
28
|
+
triggerDesc: "点击降序",
|
|
29
|
+
triggerAsc: "点击升序",
|
|
30
|
+
cancelSort: "取消排序"
|
|
31
|
+
},
|
|
32
|
+
Modal: {
|
|
33
|
+
okText: "确定",
|
|
34
|
+
cancelText: "取消",
|
|
35
|
+
justOkText: "知道了"
|
|
36
|
+
},
|
|
37
|
+
Popconfirm: {
|
|
38
|
+
cancelText: "取消",
|
|
39
|
+
okText: "确定"
|
|
40
|
+
},
|
|
41
|
+
Transfer: {
|
|
42
|
+
titles: ["", ""],
|
|
43
|
+
searchPlaceholder: "请输入搜索内容",
|
|
44
|
+
itemUnit: "项",
|
|
45
|
+
itemsUnit: "项",
|
|
46
|
+
remove: "删除",
|
|
47
|
+
selectCurrent: "全选当页",
|
|
48
|
+
removeCurrent: "删除当页",
|
|
49
|
+
selectAll: "全选所有",
|
|
50
|
+
removeAll: "删除全部",
|
|
51
|
+
selectInvert: "反选当页"
|
|
52
|
+
},
|
|
53
|
+
Upload: {
|
|
54
|
+
uploading: "文件上传中",
|
|
55
|
+
removeFile: "删除文件",
|
|
56
|
+
uploadError: "上传错误",
|
|
57
|
+
previewFile: "预览文件",
|
|
58
|
+
downloadFile: "下载文件"
|
|
59
|
+
},
|
|
60
|
+
Empty: {
|
|
61
|
+
description: "暂无数据"
|
|
62
|
+
},
|
|
63
|
+
Icon: {
|
|
64
|
+
icon: "图标"
|
|
65
|
+
},
|
|
66
|
+
Text: {
|
|
67
|
+
edit: "编辑",
|
|
68
|
+
copy: "复制",
|
|
69
|
+
copied: "复制成功",
|
|
70
|
+
expand: "展开"
|
|
71
|
+
},
|
|
72
|
+
PageHeader: {
|
|
73
|
+
back: "返回"
|
|
74
|
+
},
|
|
75
|
+
Form: {
|
|
76
|
+
optional: "(可选)",
|
|
77
|
+
defaultValidateMessages: {
|
|
78
|
+
default: "字段验证错误${label}",
|
|
79
|
+
required: "请输入${label}",
|
|
80
|
+
enum: "${label}必须是其中一个[${enum}]",
|
|
81
|
+
whitespace: "${label}不能为空字符",
|
|
82
|
+
date: {
|
|
83
|
+
format: "${label}日期格式无效",
|
|
84
|
+
parse: "${label}不能转换为日期",
|
|
85
|
+
invalid: "${label}是一个无效日期"
|
|
86
|
+
},
|
|
87
|
+
types: {
|
|
88
|
+
string: e,
|
|
89
|
+
method: e,
|
|
90
|
+
array: e,
|
|
91
|
+
object: e,
|
|
92
|
+
number: e,
|
|
93
|
+
date: e,
|
|
94
|
+
boolean: e,
|
|
95
|
+
integer: e,
|
|
96
|
+
float: e,
|
|
97
|
+
regexp: e,
|
|
98
|
+
email: e,
|
|
99
|
+
url: e,
|
|
100
|
+
hex: e
|
|
101
|
+
},
|
|
102
|
+
string: {
|
|
103
|
+
len: "${label}须为${len}个字符",
|
|
104
|
+
min: "${label}最少${min}个字符",
|
|
105
|
+
max: "${label}最多${max}个字符",
|
|
106
|
+
range: "${label}须在${min}-${max}字符之间"
|
|
107
|
+
},
|
|
108
|
+
number: {
|
|
109
|
+
len: "${label}必须等于${len}",
|
|
110
|
+
min: "${label}最小值为${min}",
|
|
111
|
+
max: "${label}最大值为${max}",
|
|
112
|
+
range: "${label}须在${min}-${max}之间"
|
|
113
|
+
},
|
|
114
|
+
array: {
|
|
115
|
+
len: "须为${len}个${label}",
|
|
116
|
+
min: "最少${min}个${label}",
|
|
117
|
+
max: "最多${max}个${label}",
|
|
118
|
+
range: "${label}数量须在${min}-${max}之间"
|
|
119
|
+
},
|
|
120
|
+
pattern: {
|
|
121
|
+
mismatch: "${label}与模式不匹配${pattern}"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
Image: {
|
|
126
|
+
preview: "预览"
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
const m = r;
|
|
130
|
+
export {
|
|
131
|
+
m as default
|
|
132
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { __exports as l } from "../../_virtual/index2.mjs";
|
|
2
|
+
l.byteLength = p;
|
|
3
|
+
l.toByteArray = C;
|
|
4
|
+
l.fromByteArray = i;
|
|
5
|
+
var F = [], f = [], u = typeof Uint8Array != "undefined" ? Uint8Array : Array, x = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
6
|
+
for (var c = 0, A = x.length; c < A; ++c)
|
|
7
|
+
F[c] = x[c], f[x.charCodeAt(c)] = c;
|
|
8
|
+
f["-".charCodeAt(0)] = 62;
|
|
9
|
+
f["_".charCodeAt(0)] = 63;
|
|
10
|
+
function s(r) {
|
|
11
|
+
var e = r.length;
|
|
12
|
+
if (e % 4 > 0)
|
|
13
|
+
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
14
|
+
var a = r.indexOf("=");
|
|
15
|
+
a === -1 && (a = e);
|
|
16
|
+
var o = a === e ? 0 : 4 - a % 4;
|
|
17
|
+
return [a, o];
|
|
18
|
+
}
|
|
19
|
+
function p(r) {
|
|
20
|
+
var e = s(r), a = e[0], o = e[1];
|
|
21
|
+
return (a + o) * 3 / 4 - o;
|
|
22
|
+
}
|
|
23
|
+
function y(r, e, a) {
|
|
24
|
+
return (e + a) * 3 / 4 - a;
|
|
25
|
+
}
|
|
26
|
+
function C(r) {
|
|
27
|
+
var e, a = s(r), o = a[0], n = a[1], t = new u(y(r, o, n)), v = 0, d = n > 0 ? o - 4 : o, h;
|
|
28
|
+
for (h = 0; h < d; h += 4)
|
|
29
|
+
e = f[r.charCodeAt(h)] << 18 | f[r.charCodeAt(h + 1)] << 12 | f[r.charCodeAt(h + 2)] << 6 | f[r.charCodeAt(h + 3)], t[v++] = e >> 16 & 255, t[v++] = e >> 8 & 255, t[v++] = e & 255;
|
|
30
|
+
return n === 2 && (e = f[r.charCodeAt(h)] << 2 | f[r.charCodeAt(h + 1)] >> 4, t[v++] = e & 255), n === 1 && (e = f[r.charCodeAt(h)] << 10 | f[r.charCodeAt(h + 1)] << 4 | f[r.charCodeAt(h + 2)] >> 2, t[v++] = e >> 8 & 255, t[v++] = e & 255), t;
|
|
31
|
+
}
|
|
32
|
+
function L(r) {
|
|
33
|
+
return F[r >> 18 & 63] + F[r >> 12 & 63] + F[r >> 6 & 63] + F[r & 63];
|
|
34
|
+
}
|
|
35
|
+
function g(r, e, a) {
|
|
36
|
+
for (var o, n = [], t = e; t < a; t += 3)
|
|
37
|
+
o = (r[t] << 16 & 16711680) + (r[t + 1] << 8 & 65280) + (r[t + 2] & 255), n.push(L(o));
|
|
38
|
+
return n.join("");
|
|
39
|
+
}
|
|
40
|
+
function i(r) {
|
|
41
|
+
for (var e, a = r.length, o = a % 3, n = [], t = 16383, v = 0, d = a - o; v < d; v += t)
|
|
42
|
+
n.push(g(r, v, v + t > d ? d : v + t));
|
|
43
|
+
return o === 1 ? (e = r[a - 1], n.push(F[e >> 2] + F[e << 4 & 63] + "==")) : o === 2 && (e = (r[a - 2] << 8) + r[a - 1], n.push(F[e >> 10] + F[e >> 4 & 63] + F[e << 2 & 63] + "=")), n.join("");
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
l as default
|
|
47
|
+
};
|