@glodon-aiot/agent-cli-ui 3.1.0-beta.16 → 3.2.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/AgentClientUI.mjs +40 -39
- package/dist/es/Dialog/AgentChat/index.mjs +283 -264
- package/dist/es/Dialog/AgentChat/style.less.mjs +4 -0
- package/dist/es/Dialog/ConnectToNetwork/index.mjs +19 -18
- package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +4 -0
- package/dist/es/Dialog/FileCard/index.mjs +22 -21
- package/dist/es/Dialog/FileCard/style.less.mjs +4 -0
- package/dist/es/Dialog/FilePreview/index.mjs +14 -13
- package/dist/es/Dialog/FilePreview/style.less.mjs +4 -0
- package/dist/es/Dialog/Greeting/index.mjs +5 -4
- package/dist/es/Dialog/Greeting/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryContent/index.mjs +6 -5
- package/dist/es/Dialog/HistoryContent/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/index.mjs +127 -125
- package/dist/es/Dialog/HistoryItem/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeDoc/index.mjs +23 -22
- package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +14 -13
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/index.mjs +29 -28
- package/dist/es/Dialog/KnowledgeList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +19 -19
- package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +17 -16
- package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/index.mjs +17 -16
- package/dist/es/Dialog/PromptManager/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptSetting/index.mjs +32 -32
- package/dist/es/Dialog/PromptSetting/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/RecommendItem.mjs +12 -11
- package/dist/es/Dialog/Recommend/index.mjs +23 -23
- package/dist/es/Dialog/Recommend/style.less.mjs +4 -0
- package/dist/es/Dialog/ReferCollapse/index.mjs +29 -28
- package/dist/es/Dialog/ReferCollapse/style.less.mjs +4 -0
- package/dist/es/Dialog/SearchReference/index.mjs +13 -12
- package/dist/es/Dialog/SearchReference/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionAction/index.mjs +30 -29
- package/dist/es/Dialog/SessionAction/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionList/index.mjs +51 -51
- package/dist/es/Dialog/SessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +11 -10
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +15 -14
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +48 -47
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/index.mjs +9 -8
- package/dist/es/Dialog/SessionListDrawer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +26 -25
- package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/index.mjs +21 -20
- package/dist/es/Dialog/SessionRefer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRelated/index.mjs +18 -17
- package/dist/es/Dialog/SessionRelated/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +9 -8
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +117 -117
- package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +6 -5
- package/dist/es/Dialog/UploadingPrompt/style.less.mjs +4 -0
- package/dist/es/Dialog/index.mjs +58 -57
- package/dist/es/Dialog/style.less.mjs +4 -0
- package/dist/es/FileItem/index.mjs +23 -22
- package/dist/es/FileItem/style.less.mjs +4 -0
- package/dist/es/Footer/FooterWarning.mjs +14 -13
- package/dist/es/Footer/index.mjs +7 -6
- package/dist/es/Footer/style.less.mjs +4 -0
- package/dist/es/InputProgress/index.mjs +10 -9
- package/dist/es/InputProgress/style.less.mjs +4 -0
- package/dist/es/QuillEditor/index.mjs +34 -34
- 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/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/lib.mjs +4 -0
- package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +4 -0
- package/dist/es/_virtual/ua-parser.min.mjs +4 -0
- package/dist/es/components/Copy/index.mjs +21 -20
- package/dist/es/components/Copy/style.less.mjs +4 -0
- package/dist/es/components/JsonDisplay/index.mjs +5 -4
- package/dist/es/components/JsonDisplay/style.less.mjs +4 -0
- package/dist/es/components/Markdown/ATag/index.mjs +7 -7
- package/dist/es/components/Markdown/Code/index.mjs +33 -33
- package/dist/es/components/Markdown/Image/index.mjs +17 -16
- package/dist/es/components/Markdown/Video/index.mjs +13 -13
- package/dist/es/components/Markdown/index.mjs +36 -35
- package/dist/es/components/Markdown/style.less.mjs +4 -0
- package/dist/es/components/WebLink/index.mjs +9 -9
- 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 +32 -26
- 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/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -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/useRafState/index.mjs +16 -0
- package/dist/es/node_modules/ahooks/es/useSize/index.mjs +34 -0
- package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
- package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +13 -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/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.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/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +172 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +81 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +46 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
- package/dist/es/node_modules/classnames/index.mjs +42 -0
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +13 -0
- package/dist/es/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/es/node_modules/devlop/lib/default.mjs +5 -0
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +93 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/create-h.mjs +126 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/index.mjs +8 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
- package/dist/es/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
- package/dist/es/node_modules/katex/dist/katex.min.css.mjs +4 -0
- package/dist/es/node_modules/katex/dist/katex.mjs +11700 -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/longest-streak/index.mjs +12 -0
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +76 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +48 -0
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +15 -0
- package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
- package/dist/es/node_modules/micromark-util-character/index.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-device-detect/dist/lib.mjs +723 -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/rehype-katex/lib/index.mjs +83 -0
- package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
- package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +294 -0
- package/dist/es/node_modules/space-separated-tokens/index.mjs +7 -0
- package/dist/es/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +64 -0
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +120 -0
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +32 -0
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +81 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +6 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +56 -0
- package/dist/es/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/native.mjs +4 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/rng.mjs +13 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/v4.mjs +23 -0
- package/dist/es/robots.txt +3 -0
- package/dist/es/style.less.mjs +4 -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 +311 -5
- 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/Dialog/HistoryItem/index.d.ts +1 -0
- package/dist/src/types.d.ts +1 -1
- package/package.json +6 -24
- package/dist/es/src/style.css +0 -1
- package/dist/es/src/style10.css +0 -1
- package/dist/es/src/style11.css +0 -1
- package/dist/es/src/style12.css +0 -1
- package/dist/es/src/style13.css +0 -1
- package/dist/es/src/style14.css +0 -1
- package/dist/es/src/style15.css +0 -1
- package/dist/es/src/style16.css +0 -1
- package/dist/es/src/style17.css +0 -1
- package/dist/es/src/style18.css +0 -1
- package/dist/es/src/style19.css +0 -1
- package/dist/es/src/style2.css +0 -1
- package/dist/es/src/style20.css +0 -1
- package/dist/es/src/style21.css +0 -1
- package/dist/es/src/style22.css +0 -1
- package/dist/es/src/style23.css +0 -1
- package/dist/es/src/style24.css +0 -0
- package/dist/es/src/style25.css +0 -1
- package/dist/es/src/style26.css +0 -1
- package/dist/es/src/style27.css +0 -1
- package/dist/es/src/style28.css +0 -1
- package/dist/es/src/style29.css +0 -1
- package/dist/es/src/style3.css +0 -1
- package/dist/es/src/style30.css +0 -1
- package/dist/es/src/style31.css +0 -1
- package/dist/es/src/style32.css +0 -1
- package/dist/es/src/style33.css +0 -1
- package/dist/es/src/style4.css +0 -1
- package/dist/es/src/style5.css +0 -1
- package/dist/es/src/style6.css +0 -1
- package/dist/es/src/style7.css +0 -1
- package/dist/es/src/style8.css +0 -1
- package/dist/es/src/style9.css +0 -1
- package/dist/lib/index.css +0 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { withNativeProps as v } from "../../utils/native-props.mjs";
|
|
2
|
+
import r, { useRef as b, useMemo as k, useState as g } from "react";
|
|
3
|
+
import y from "../../../../ahooks/es/useUnmountedRef/index.mjs";
|
|
4
|
+
import { useLockScroll as C } from "../../utils/use-lock-scroll.mjs";
|
|
5
|
+
import { a as R } from "../../../../@react-spring/web/dist/react-spring-web.esm.mjs";
|
|
6
|
+
import { renderToContainer as h } from "../../utils/render-to-container.mjs";
|
|
7
|
+
import { mergeProps as S } from "../../utils/with-default-props.mjs";
|
|
8
|
+
import { ShouldRender as P } from "../../utils/should-render.mjs";
|
|
9
|
+
import { withStopPropagation as M } from "../../utils/with-stop-propagation.mjs";
|
|
10
|
+
import { useConfig as _ } from "../config-provider/config-provider.mjs";
|
|
11
|
+
import { useSpring as O } from "../../../../@react-spring/core/dist/react-spring-core.esm.mjs";
|
|
12
|
+
const i = "adm-mask", w = {
|
|
13
|
+
default: 0.55,
|
|
14
|
+
thin: 0.35,
|
|
15
|
+
thick: 0.75
|
|
16
|
+
}, E = {
|
|
17
|
+
black: "0, 0, 0",
|
|
18
|
+
white: "255, 255, 255"
|
|
19
|
+
}, N = {
|
|
20
|
+
visible: !0,
|
|
21
|
+
destroyOnClose: !1,
|
|
22
|
+
forceRender: !1,
|
|
23
|
+
color: "black",
|
|
24
|
+
opacity: "default",
|
|
25
|
+
disableBodyScroll: !0,
|
|
26
|
+
getContainer: null,
|
|
27
|
+
stopPropagation: ["click"]
|
|
28
|
+
}, F = (s) => {
|
|
29
|
+
const o = S(N, s), {
|
|
30
|
+
locale: d
|
|
31
|
+
} = _(), a = b(null);
|
|
32
|
+
C(a, o.visible && o.disableBodyScroll);
|
|
33
|
+
const m = k(() => {
|
|
34
|
+
var e;
|
|
35
|
+
const t = (e = w[o.opacity]) !== null && e !== void 0 ? e : o.opacity, c = E[o.color];
|
|
36
|
+
return c ? `rgba(${c}, ${t})` : o.color;
|
|
37
|
+
}, [o.color, o.opacity]), [n, l] = g(o.visible), f = y(), {
|
|
38
|
+
opacity: p
|
|
39
|
+
} = O({
|
|
40
|
+
opacity: o.visible ? 1 : 0,
|
|
41
|
+
config: {
|
|
42
|
+
precision: 0.01,
|
|
43
|
+
mass: 1,
|
|
44
|
+
tension: 250,
|
|
45
|
+
friction: 30,
|
|
46
|
+
clamp: !0
|
|
47
|
+
},
|
|
48
|
+
onStart: () => {
|
|
49
|
+
l(!0);
|
|
50
|
+
},
|
|
51
|
+
onRest: () => {
|
|
52
|
+
var e, t;
|
|
53
|
+
f.current || (l(o.visible), o.visible ? (e = o.afterShow) === null || e === void 0 || e.call(o) : (t = o.afterClose) === null || t === void 0 || t.call(o));
|
|
54
|
+
}
|
|
55
|
+
}), u = M(o.stopPropagation, v(o, r.createElement(R.div, {
|
|
56
|
+
className: i,
|
|
57
|
+
ref: a,
|
|
58
|
+
"aria-hidden": !0,
|
|
59
|
+
style: Object.assign(Object.assign({}, o.style), {
|
|
60
|
+
background: m,
|
|
61
|
+
opacity: p,
|
|
62
|
+
display: n ? void 0 : "none"
|
|
63
|
+
}),
|
|
64
|
+
onClick: (e) => {
|
|
65
|
+
var t;
|
|
66
|
+
e.target === e.currentTarget && ((t = o.onMaskClick) === null || t === void 0 || t.call(o, e));
|
|
67
|
+
}
|
|
68
|
+
}, o.onMaskClick && r.createElement("div", {
|
|
69
|
+
className: `${i}-aria-button`,
|
|
70
|
+
role: "button",
|
|
71
|
+
"aria-label": d.Mask.name,
|
|
72
|
+
onClick: o.onMaskClick
|
|
73
|
+
}), r.createElement("div", {
|
|
74
|
+
className: `${i}-content`
|
|
75
|
+
}, o.children))));
|
|
76
|
+
return r.createElement(P, {
|
|
77
|
+
active: n,
|
|
78
|
+
forceRender: o.forceRender,
|
|
79
|
+
destroyOnClose: o.destroyOnClose
|
|
80
|
+
}, h(o.getContainer, u));
|
|
81
|
+
};
|
|
82
|
+
export {
|
|
83
|
+
F as Mask
|
|
84
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import t from "react";
|
|
2
|
+
import { withNativeProps as o } from "../../utils/native-props.mjs";
|
|
3
|
+
import r from "../../../../classnames/index.mjs";
|
|
4
|
+
const a = "adm-safe-area", c = (e) => o(e, t.createElement("div", {
|
|
5
|
+
className: r(a, `${a}-position-${e.position}`)
|
|
6
|
+
}));
|
|
7
|
+
export {
|
|
8
|
+
c as SafeArea
|
|
9
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
const e = "${label}不是一个有效的${type}", a = {
|
|
2
|
+
locale: "zh-CH",
|
|
3
|
+
common: {
|
|
4
|
+
confirm: "确定",
|
|
5
|
+
cancel: "取消",
|
|
6
|
+
loading: "加载中",
|
|
7
|
+
close: "关闭"
|
|
8
|
+
},
|
|
9
|
+
Calendar: {
|
|
10
|
+
title: "日期选择",
|
|
11
|
+
confirm: "确认",
|
|
12
|
+
start: "开始",
|
|
13
|
+
end: "结束",
|
|
14
|
+
today: "今日",
|
|
15
|
+
markItems: ["一", "二", "三", "四", "五", "六", "日"],
|
|
16
|
+
yearAndMonth: "${year}年${month}月"
|
|
17
|
+
},
|
|
18
|
+
Cascader: {
|
|
19
|
+
placeholder: "请选择"
|
|
20
|
+
},
|
|
21
|
+
Dialog: {
|
|
22
|
+
ok: "我知道了"
|
|
23
|
+
},
|
|
24
|
+
DatePicker: {
|
|
25
|
+
tillNow: "至今"
|
|
26
|
+
},
|
|
27
|
+
ErrorBlock: {
|
|
28
|
+
default: {
|
|
29
|
+
title: "页面遇到一些小问题",
|
|
30
|
+
description: "待会来试试"
|
|
31
|
+
},
|
|
32
|
+
busy: {
|
|
33
|
+
title: "前方拥堵",
|
|
34
|
+
description: "刷新试试"
|
|
35
|
+
},
|
|
36
|
+
disconnected: {
|
|
37
|
+
title: "网络有点忙",
|
|
38
|
+
description: "动动手指帮忙修复"
|
|
39
|
+
},
|
|
40
|
+
empty: {
|
|
41
|
+
title: "没有找到你需要的东西",
|
|
42
|
+
description: "找找其他的吧"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
Form: {
|
|
46
|
+
required: "必填",
|
|
47
|
+
optional: "选填",
|
|
48
|
+
defaultValidateMessages: {
|
|
49
|
+
default: "字段验证错误${label}",
|
|
50
|
+
required: "请输入${label}",
|
|
51
|
+
enum: "${label}必须是其中一个[${enum}]",
|
|
52
|
+
whitespace: "${label}不能为空字符",
|
|
53
|
+
date: {
|
|
54
|
+
format: "${label}日期格式无效",
|
|
55
|
+
parse: "${label}不能转换为日期",
|
|
56
|
+
invalid: "${label}是一个无效日期"
|
|
57
|
+
},
|
|
58
|
+
types: {
|
|
59
|
+
string: e,
|
|
60
|
+
method: e,
|
|
61
|
+
array: e,
|
|
62
|
+
object: e,
|
|
63
|
+
number: e,
|
|
64
|
+
date: e,
|
|
65
|
+
boolean: e,
|
|
66
|
+
integer: e,
|
|
67
|
+
float: e,
|
|
68
|
+
regexp: e,
|
|
69
|
+
email: e,
|
|
70
|
+
url: e,
|
|
71
|
+
hex: e
|
|
72
|
+
},
|
|
73
|
+
string: {
|
|
74
|
+
len: "${label}须为${len}个字符",
|
|
75
|
+
min: "${label}最少${min}个字符",
|
|
76
|
+
max: "${label}最多${max}个字符",
|
|
77
|
+
range: "${label}须在${min}-${max}字符之间"
|
|
78
|
+
},
|
|
79
|
+
number: {
|
|
80
|
+
len: "${label}必须等于${len}",
|
|
81
|
+
min: "${label}最小值为${min}",
|
|
82
|
+
max: "${label}最大值为${max}",
|
|
83
|
+
range: "${label}须在${min}-${max}之间"
|
|
84
|
+
},
|
|
85
|
+
array: {
|
|
86
|
+
len: "须为${len}个${label}",
|
|
87
|
+
min: "最少${min}个${label}",
|
|
88
|
+
max: "最多${max}个${label}",
|
|
89
|
+
range: "${label}数量须在${min}-${max}之间"
|
|
90
|
+
},
|
|
91
|
+
pattern: {
|
|
92
|
+
mismatch: "${label}与模式不匹配${pattern}"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
ImageUploader: {
|
|
97
|
+
uploading: "上传中...",
|
|
98
|
+
upload: "上传"
|
|
99
|
+
},
|
|
100
|
+
InfiniteScroll: {
|
|
101
|
+
noMore: "没有更多了",
|
|
102
|
+
failedToLoad: "加载失败",
|
|
103
|
+
retry: "重新加载"
|
|
104
|
+
},
|
|
105
|
+
Input: {
|
|
106
|
+
clear: "清除"
|
|
107
|
+
},
|
|
108
|
+
Mask: {
|
|
109
|
+
name: "背景蒙层"
|
|
110
|
+
},
|
|
111
|
+
Modal: {
|
|
112
|
+
ok: "我知道了"
|
|
113
|
+
},
|
|
114
|
+
PasscodeInput: {
|
|
115
|
+
name: "密码输入框"
|
|
116
|
+
},
|
|
117
|
+
PullToRefresh: {
|
|
118
|
+
pulling: "下拉刷新",
|
|
119
|
+
canRelease: "释放立即刷新",
|
|
120
|
+
complete: "刷新成功"
|
|
121
|
+
},
|
|
122
|
+
SearchBar: {
|
|
123
|
+
name: "搜索框"
|
|
124
|
+
},
|
|
125
|
+
Slider: {
|
|
126
|
+
name: "滑动输入条"
|
|
127
|
+
},
|
|
128
|
+
Stepper: {
|
|
129
|
+
decrease: "减少",
|
|
130
|
+
increase: "增加"
|
|
131
|
+
},
|
|
132
|
+
Switch: {
|
|
133
|
+
name: "开关"
|
|
134
|
+
},
|
|
135
|
+
Selector: {
|
|
136
|
+
name: "选择组"
|
|
137
|
+
}
|
|
138
|
+
}, l = a;
|
|
139
|
+
export {
|
|
140
|
+
l as default
|
|
141
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { canUseDom as r } from "./can-use-dom.mjs";
|
|
2
|
+
let e = null, t = null;
|
|
3
|
+
r && (e = document.createElement("div"), e.className = "adm-px-tester", e.style.setProperty("--size", "10"), document.body.appendChild(e), t = document.createElement("div"), t.className = "adm-px-tester", document.body.appendChild(t));
|
|
4
|
+
function i(n) {
|
|
5
|
+
return e === null || t === null || e.getBoundingClientRect().height === 10 ? n : (t.style.setProperty("--size", n.toString()), t.getBoundingClientRect().height);
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
i as convertPx
|
|
9
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { canUseDom as r } from "./can-use-dom.mjs";
|
|
2
|
+
const l = r ? window : void 0, i = ["scroll", "auto", "overlay"];
|
|
3
|
+
function c(n) {
|
|
4
|
+
return n.nodeType === 1;
|
|
5
|
+
}
|
|
6
|
+
function u(n, t = l) {
|
|
7
|
+
let e = n;
|
|
8
|
+
for (; e && e !== t && c(e); ) {
|
|
9
|
+
if (e === document.body)
|
|
10
|
+
return t;
|
|
11
|
+
const {
|
|
12
|
+
overflowY: o
|
|
13
|
+
} = window.getComputedStyle(e);
|
|
14
|
+
if (i.includes(o) && e.scrollHeight > e.clientHeight)
|
|
15
|
+
return e;
|
|
16
|
+
e = e.parentNode;
|
|
17
|
+
}
|
|
18
|
+
return t;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
u as getScrollParent
|
|
22
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const s = () => [1, 0, 0, 1, 0, 0], c = (t) => t[4], a = (t) => t[5], u = (t) => t[0], l = (t, r, n) => e([1, 0, 0, 1, r, n], t), o = (t, r, n = r) => e([r, 0, 0, n, 0, 0], t), p = (t, [r, n]) => [t[0] * r + t[2] * n + t[4], t[1] * r + t[3] * n + t[5]], e = (t, r) => [t[0] * r[0] + t[2] * r[1], t[1] * r[0] + t[3] * r[1], t[0] * r[2] + t[2] * r[3], t[1] * r[2] + t[3] * r[3], t[0] * r[4] + t[2] * r[5] + t[4], t[1] * r[4] + t[3] * r[5] + t[5]];
|
|
2
|
+
export {
|
|
3
|
+
p as apply,
|
|
4
|
+
s as create,
|
|
5
|
+
u as getScaleX,
|
|
6
|
+
c as getTranslateX,
|
|
7
|
+
a as getTranslateY,
|
|
8
|
+
e as multiply,
|
|
9
|
+
o as scale,
|
|
10
|
+
l as translate
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import i from "react";
|
|
2
|
+
import n from "../../../classnames/index.mjs";
|
|
3
|
+
function l(t, e) {
|
|
4
|
+
const a = Object.assign({}, e.props);
|
|
5
|
+
t.className && (a.className = n(e.props.className, t.className)), t.style && (a.style = Object.assign(Object.assign({}, a.style), t.style)), t.tabIndex !== void 0 && (a.tabIndex = t.tabIndex);
|
|
6
|
+
for (const s in t)
|
|
7
|
+
t.hasOwnProperty(s) && (s.startsWith("data-") || s.startsWith("aria-")) && (a[s] = t[s]);
|
|
8
|
+
return i.cloneElement(e, a);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
l as withNativeProps
|
|
12
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { __awaiter as y } from "../../../tslib/tslib.es6.mjs";
|
|
2
|
+
import s, { useState as v, useRef as m, useEffect as E, useImperativeHandle as w } from "react";
|
|
3
|
+
import { renderToBody as T } from "./render-to-body.mjs";
|
|
4
|
+
function I(_) {
|
|
5
|
+
const R = s.forwardRef((o, t) => {
|
|
6
|
+
const [b, i] = v(!1), u = m(!1), [n, C] = v(_), f = m(0);
|
|
7
|
+
E(() => {
|
|
8
|
+
u.current ? p() : i(!0);
|
|
9
|
+
}, []);
|
|
10
|
+
function d() {
|
|
11
|
+
var r, e;
|
|
12
|
+
u.current = !0, i(!1), (e = (r = n.props).onClose) === null || e === void 0 || e.call(r);
|
|
13
|
+
}
|
|
14
|
+
function p() {
|
|
15
|
+
var r, e;
|
|
16
|
+
c(), (e = (r = n.props).afterClose) === null || e === void 0 || e.call(r);
|
|
17
|
+
}
|
|
18
|
+
return w(t, () => ({
|
|
19
|
+
close: d,
|
|
20
|
+
replace: (r) => {
|
|
21
|
+
var e, a;
|
|
22
|
+
f.current++, (a = (e = n.props).afterClose) === null || a === void 0 || a.call(e), C(r);
|
|
23
|
+
}
|
|
24
|
+
})), s.cloneElement(n, Object.assign(Object.assign({}, n.props), {
|
|
25
|
+
key: f.current,
|
|
26
|
+
visible: b,
|
|
27
|
+
onClose: d,
|
|
28
|
+
afterClose: p
|
|
29
|
+
}));
|
|
30
|
+
}), l = s.createRef(), c = T(s.createElement(R, {
|
|
31
|
+
ref: l
|
|
32
|
+
}));
|
|
33
|
+
return {
|
|
34
|
+
close: () => y(this, void 0, void 0, function* () {
|
|
35
|
+
var o;
|
|
36
|
+
l.current ? (o = l.current) === null || o === void 0 || o.close() : c();
|
|
37
|
+
}),
|
|
38
|
+
replace: (o) => {
|
|
39
|
+
var t;
|
|
40
|
+
(t = l.current) === null || t === void 0 || t.replace(o);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
I as renderImperatively
|
|
46
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { render as t, unmount as u } from "./render.mjs";
|
|
2
|
+
function m(e) {
|
|
3
|
+
const n = document.createElement("div");
|
|
4
|
+
document.body.appendChild(n);
|
|
5
|
+
function o() {
|
|
6
|
+
u(n) && n.parentNode && n.parentNode.removeChild(n);
|
|
7
|
+
}
|
|
8
|
+
return t(e, n), o;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
m as renderToBody
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createPortal as e } from "react-dom";
|
|
2
|
+
import { resolveContainer as n } from "./get-container.mjs";
|
|
3
|
+
import { canUseDom as i } from "./can-use-dom.mjs";
|
|
4
|
+
function f(r, o) {
|
|
5
|
+
if (i && r) {
|
|
6
|
+
const t = n(r);
|
|
7
|
+
return e(o, t);
|
|
8
|
+
}
|
|
9
|
+
return o;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
f as renderToContainer
|
|
13
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __awaiter as c } from "../../../tslib/tslib.es6.mjs";
|
|
2
|
+
import * as _ from "react-dom";
|
|
3
|
+
const e = Object.assign({}, _), {
|
|
4
|
+
version: s,
|
|
5
|
+
render: f,
|
|
6
|
+
unmountComponentAtNode: l
|
|
7
|
+
} = e;
|
|
8
|
+
let r;
|
|
9
|
+
try {
|
|
10
|
+
Number((s || "").split(".")[0]) >= 18 && e.createRoot && (r = e.createRoot);
|
|
11
|
+
} catch (n) {
|
|
12
|
+
}
|
|
13
|
+
function i(n) {
|
|
14
|
+
const {
|
|
15
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: t
|
|
16
|
+
} = e;
|
|
17
|
+
t && typeof t == "object" && (t.usingClientEntryPoint = n);
|
|
18
|
+
}
|
|
19
|
+
const o = "__antd_mobile_root__";
|
|
20
|
+
function m(n, t) {
|
|
21
|
+
f(n, t);
|
|
22
|
+
}
|
|
23
|
+
function a(n, t) {
|
|
24
|
+
i(!0);
|
|
25
|
+
const u = t[o] || r(t);
|
|
26
|
+
i(!1), u.render(n), t[o] = u;
|
|
27
|
+
}
|
|
28
|
+
function v(n, t) {
|
|
29
|
+
if (r) {
|
|
30
|
+
a(n, t);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
m(n, t);
|
|
34
|
+
}
|
|
35
|
+
function d(n) {
|
|
36
|
+
return l(n);
|
|
37
|
+
}
|
|
38
|
+
function R(n) {
|
|
39
|
+
return c(this, void 0, void 0, function* () {
|
|
40
|
+
return Promise.resolve().then(() => {
|
|
41
|
+
var t;
|
|
42
|
+
(t = n[o]) === null || t === void 0 || t.unmount(), delete n[o];
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function E(n) {
|
|
47
|
+
return r ? R(n) : d(n);
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
v as render,
|
|
51
|
+
E as unmount
|
|
52
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { bound as d } from "./bound.mjs";
|
|
2
|
+
function O(r, u, f) {
|
|
3
|
+
return r * u * f / (u + f * r);
|
|
4
|
+
}
|
|
5
|
+
function I(r, u, f, e, b = 0.15) {
|
|
6
|
+
return b === 0 ? d(r, u, f) : r < u ? -O(u - r, e, b) + u : r > f ? +O(r - f, e, b) + f : r;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
O as rubberband,
|
|
10
|
+
I as rubberbandIfOutOfBounds
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useInitialized as u } from "./use-initialized.mjs";
|
|
2
|
+
const l = (e) => d(e.active, e.forceRender, e.destroyOnClose) ? e.children : null;
|
|
3
|
+
function d(e, n, r) {
|
|
4
|
+
const t = u(e);
|
|
5
|
+
return n || e ? !0 : t ? !r : !1;
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
l as ShouldRender,
|
|
9
|
+
d as useShouldRender
|
|
10
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { canUseDom as t } from "./can-use-dom.mjs";
|
|
2
|
+
let s = !1;
|
|
3
|
+
if (t)
|
|
4
|
+
try {
|
|
5
|
+
const e = {};
|
|
6
|
+
Object.defineProperty(e, "passive", {
|
|
7
|
+
get() {
|
|
8
|
+
s = !0;
|
|
9
|
+
}
|
|
10
|
+
}), window.addEventListener("test-passive", null, e);
|
|
11
|
+
} catch (e) {
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
s as supportsPassive
|
|
15
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { useTouch as E } from "./use-touch.mjs";
|
|
2
|
+
import { useEffect as L } from "react";
|
|
3
|
+
import { getScrollParent as b } from "./get-scroll-parent.mjs";
|
|
4
|
+
import { supportsPassive as m } from "./supports-passive.mjs";
|
|
5
|
+
let r = 0;
|
|
6
|
+
const f = "adm-overflow-hidden";
|
|
7
|
+
function S(o) {
|
|
8
|
+
let t = o == null ? void 0 : o.parentElement;
|
|
9
|
+
for (; t; ) {
|
|
10
|
+
if (t.clientHeight < t.scrollHeight)
|
|
11
|
+
return t;
|
|
12
|
+
t = t.parentElement;
|
|
13
|
+
}
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
function P(o, t) {
|
|
17
|
+
const n = E(), i = (e) => {
|
|
18
|
+
n.move(e);
|
|
19
|
+
const h = n.deltaY.current > 0 ? "10" : "01", s = b(e.target, o.current);
|
|
20
|
+
if (!s)
|
|
21
|
+
return;
|
|
22
|
+
if (t === "strict") {
|
|
23
|
+
const a = S(e.target);
|
|
24
|
+
if (a === document.body || a === document.documentElement) {
|
|
25
|
+
e.preventDefault();
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const {
|
|
30
|
+
scrollHeight: l,
|
|
31
|
+
offsetHeight: v,
|
|
32
|
+
scrollTop: u
|
|
33
|
+
} = s, {
|
|
34
|
+
height: g
|
|
35
|
+
} = s.getBoundingClientRect();
|
|
36
|
+
let c = "11";
|
|
37
|
+
u === 0 ? c = v >= l ? "00" : "01" : l <= Math.round(g + u) && (c = "10"), c !== "11" && n.isVertical() && !(parseInt(c, 2) & parseInt(h, 2)) && e.cancelable && m && e.preventDefault();
|
|
38
|
+
}, d = () => {
|
|
39
|
+
document.addEventListener("touchstart", n.start), document.addEventListener("touchmove", i, m ? {
|
|
40
|
+
passive: !1
|
|
41
|
+
} : !1), r || document.body.classList.add(f), r++;
|
|
42
|
+
}, p = () => {
|
|
43
|
+
r && (document.removeEventListener("touchstart", n.start), document.removeEventListener("touchmove", i), r--, r || document.body.classList.remove(f));
|
|
44
|
+
};
|
|
45
|
+
L(() => {
|
|
46
|
+
if (t)
|
|
47
|
+
return d(), () => {
|
|
48
|
+
p();
|
|
49
|
+
};
|
|
50
|
+
}, [t]);
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
P as useLockScroll
|
|
54
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useRef as c } from "react";
|
|
2
|
+
const f = 10;
|
|
3
|
+
function Y(t, r) {
|
|
4
|
+
return t > r && t > f ? "horizontal" : r > t && r > f ? "vertical" : "";
|
|
5
|
+
}
|
|
6
|
+
function z() {
|
|
7
|
+
const t = c(0), r = c(0), e = c(0), o = c(0), u = c(0), s = c(0), n = c(""), h = () => n.current === "vertical", X = () => n.current === "horizontal", l = () => {
|
|
8
|
+
e.current = 0, o.current = 0, u.current = 0, s.current = 0, n.current = "";
|
|
9
|
+
};
|
|
10
|
+
return {
|
|
11
|
+
move: (i) => {
|
|
12
|
+
const a = i.touches[0];
|
|
13
|
+
e.current = a.clientX < 0 ? 0 : a.clientX - t.current, o.current = a.clientY - r.current, u.current = Math.abs(e.current), s.current = Math.abs(o.current), n.current || (n.current = Y(u.current, s.current));
|
|
14
|
+
},
|
|
15
|
+
start: (i) => {
|
|
16
|
+
l(), t.current = i.touches[0].clientX, r.current = i.touches[0].clientY;
|
|
17
|
+
},
|
|
18
|
+
reset: l,
|
|
19
|
+
startX: t,
|
|
20
|
+
startY: r,
|
|
21
|
+
deltaX: e,
|
|
22
|
+
deltaY: o,
|
|
23
|
+
offsetX: u,
|
|
24
|
+
offsetY: s,
|
|
25
|
+
direction: n,
|
|
26
|
+
isVertical: h,
|
|
27
|
+
isHorizontal: X
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
z as useTouch
|
|
32
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import s from "react";
|
|
2
|
+
const l = {
|
|
3
|
+
click: "onClick",
|
|
4
|
+
touchstart: "onTouchStart"
|
|
5
|
+
};
|
|
6
|
+
function f(a, o) {
|
|
7
|
+
const r = Object.assign({}, o.props);
|
|
8
|
+
for (const i of a) {
|
|
9
|
+
const c = l[i];
|
|
10
|
+
r[c] = function(n) {
|
|
11
|
+
var p, t;
|
|
12
|
+
n.stopPropagation(), (t = (p = o.props)[c]) === null || t === void 0 || t.call(p, n);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
return s.cloneElement(o, r);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
f as withStopPropagation
|
|
19
|
+
};
|