@scienjoy/sj-ai-plus 1.0.3 → 1.0.5

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 (121) hide show
  1. package/package.json +5 -1
  2. package/ui/es/node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/cancel/CanceledError.ts +18 -0
  3. package/ui/es/node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/core/AxiosError.ts +55 -0
  4. package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/InterceptorManager.ts +1 -0
  5. package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/env/data.ts +1 -1
  6. package/ui/es/node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/buildURL.ts +21 -0
  7. package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/composeSignals.ts +1 -1
  8. package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/utils.ts +46 -31
  9. package/ui/es/node_modules/.pnpm/element-plus@2.13.1_vue@3.5.27_typescript@5.9.3_/node_modules/element-plus/es/components/config-provider/src/hooks/use-global-config.ts +14 -14
  10. package/ui/es/packages/components/src/directives/directives.ts +104 -0
  11. package/ui/es/packages/components/src/index.ts +7 -5
  12. package/ui/es/packages/components/src/sjDigitalHumanAssistant/src/index.vue.ts +2 -2
  13. package/ui/es/packages/components/src/sjDigitalHumanAssistant/src/index.vue2.ts +216 -233
  14. package/ui/es/packages/components/src/utils/axios.ts +2 -2
  15. package/ui/es/sj-ai-plus.css +1 -1
  16. package/ui/lib/node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/cancel/CanceledError.ts +1 -0
  17. package/ui/lib/node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/core/AxiosError.ts +1 -0
  18. package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/env/data.ts +1 -1
  19. package/ui/lib/node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/helpers/buildURL.ts +1 -0
  20. package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/composeSignals.ts +1 -1
  21. package/ui/lib/node_modules/.pnpm/axios@1.13.4/node_modules/axios/lib/utils.ts +1 -0
  22. package/ui/lib/packages/components/src/directives/directives.ts +1 -0
  23. package/ui/lib/packages/components/src/index.ts +1 -1
  24. package/ui/lib/packages/components/src/sjDigitalHumanAssistant/src/index.vue.ts +1 -1
  25. package/ui/lib/packages/components/src/sjDigitalHumanAssistant/src/index.vue2.ts +1 -1
  26. package/ui/lib/packages/components/src/utils/axios.ts +1 -1
  27. package/ui/lib/sj-ai-plus.css +1 -1
  28. package/ui/es/node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/cancel/CanceledError.ts +0 -11
  29. package/ui/es/node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/core/AxiosError.ts +0 -56
  30. package/ui/es/node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/buildURL.ts +0 -23
  31. package/ui/lib/node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/cancel/CanceledError.ts +0 -1
  32. package/ui/lib/node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/core/AxiosError.ts +0 -1
  33. package/ui/lib/node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/buildURL.ts +0 -1
  34. package/ui/lib/node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/utils.ts +0 -1
  35. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/index.ts +0 -0
  36. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/adapters/adapters.ts +0 -0
  37. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/adapters/fetch.ts +0 -0
  38. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/adapters/xhr.ts +0 -0
  39. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/axios.ts +0 -0
  40. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/cancel/CancelToken.ts +0 -0
  41. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/cancel/isCancel.ts +0 -0
  42. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/Axios.ts +0 -0
  43. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/AxiosHeaders.ts +0 -0
  44. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/buildFullPath.ts +0 -0
  45. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/dispatchRequest.ts +0 -0
  46. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/mergeConfig.ts +0 -0
  47. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/settle.ts +0 -0
  48. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/transformData.ts +0 -0
  49. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/defaults/index.ts +0 -0
  50. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/defaults/transitional.ts +0 -0
  51. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/AxiosURLSearchParams.ts +0 -0
  52. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/HttpStatusCode.ts +0 -0
  53. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/bind.ts +0 -0
  54. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/combineURLs.ts +0 -0
  55. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/cookies.ts +0 -0
  56. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/formDataToJSON.ts +0 -0
  57. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/isAbsoluteURL.ts +0 -0
  58. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/isAxiosError.ts +0 -0
  59. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/isURLSameOrigin.ts +0 -0
  60. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/null.ts +0 -0
  61. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/parseHeaders.ts +0 -0
  62. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/parseProtocol.ts +0 -0
  63. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/progressEventReducer.ts +0 -0
  64. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/resolveConfig.ts +0 -0
  65. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/speedometer.ts +0 -0
  66. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/spread.ts +0 -0
  67. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/throttle.ts +0 -0
  68. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/toFormData.ts +0 -0
  69. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/toURLEncodedForm.ts +0 -0
  70. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/trackStream.ts +0 -0
  71. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/validator.ts +0 -0
  72. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/platform/browser/classes/Blob.ts +0 -0
  73. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/platform/browser/classes/FormData.ts +0 -0
  74. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/platform/browser/classes/URLSearchParams.ts +0 -0
  75. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/platform/browser/index.ts +0 -0
  76. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/platform/common/utils.ts +0 -0
  77. /package/ui/es/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/platform/index.ts +0 -0
  78. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/index.ts +0 -0
  79. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/adapters/adapters.ts +0 -0
  80. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/adapters/fetch.ts +0 -0
  81. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/adapters/xhr.ts +0 -0
  82. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/axios.ts +0 -0
  83. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/cancel/CancelToken.ts +0 -0
  84. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/cancel/isCancel.ts +0 -0
  85. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/Axios.ts +0 -0
  86. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/AxiosHeaders.ts +0 -0
  87. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/InterceptorManager.ts +0 -0
  88. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/buildFullPath.ts +0 -0
  89. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/dispatchRequest.ts +0 -0
  90. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/mergeConfig.ts +0 -0
  91. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/settle.ts +0 -0
  92. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/core/transformData.ts +0 -0
  93. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/defaults/index.ts +0 -0
  94. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/defaults/transitional.ts +0 -0
  95. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/AxiosURLSearchParams.ts +0 -0
  96. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/HttpStatusCode.ts +0 -0
  97. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/bind.ts +0 -0
  98. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/combineURLs.ts +0 -0
  99. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/cookies.ts +0 -0
  100. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/formDataToJSON.ts +0 -0
  101. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/isAbsoluteURL.ts +0 -0
  102. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/isAxiosError.ts +0 -0
  103. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/isURLSameOrigin.ts +0 -0
  104. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/null.ts +0 -0
  105. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/parseHeaders.ts +0 -0
  106. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/parseProtocol.ts +0 -0
  107. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/progressEventReducer.ts +0 -0
  108. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/resolveConfig.ts +0 -0
  109. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/speedometer.ts +0 -0
  110. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/spread.ts +0 -0
  111. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/throttle.ts +0 -0
  112. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/toFormData.ts +0 -0
  113. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/toURLEncodedForm.ts +0 -0
  114. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/trackStream.ts +0 -0
  115. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/helpers/validator.ts +0 -0
  116. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/platform/browser/classes/Blob.ts +0 -0
  117. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/platform/browser/classes/FormData.ts +0 -0
  118. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/platform/browser/classes/URLSearchParams.ts +0 -0
  119. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/platform/browser/index.ts +0 -0
  120. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/platform/common/utils.ts +0 -0
  121. /package/ui/lib/node_modules/.pnpm/{axios@1.13.2 → axios@1.13.4}/node_modules/axios/lib/platform/index.ts +0 -0
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@scienjoy/sj-ai-plus",
3
3
  "private": false,
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
5
5
  "type": "module",
6
6
  "main": "./ui/lib/packages/components/index.ts",
7
7
  "module": "./ui/es/packages/components/index.ts",
8
+ "sideEffects": [
9
+ "src/directives/**/*.ts",
10
+ "dist/**/*.js"
11
+ ],
8
12
  "files": [
9
13
  "ui"
10
14
  ],
@@ -0,0 +1,18 @@
1
+ import e from "../core/AxiosError.ts";
2
+ class n extends e {
3
+ /**
4
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
5
+ *
6
+ * @param {string=} message The message.
7
+ * @param {Object=} config The config.
8
+ * @param {Object=} request The request.
9
+ *
10
+ * @returns {CanceledError} The created error.
11
+ */
12
+ constructor(r, o, t) {
13
+ super(r ?? "canceled", e.ERR_CANCELED, o, t), this.name = "CanceledError", this.__CANCEL__ = !0;
14
+ }
15
+ }
16
+ export {
17
+ n as default
18
+ };
@@ -0,0 +1,55 @@
1
+ import N from "../utils.ts";
2
+ class R extends Error {
3
+ static from(E, t, _, i, s, O) {
4
+ const e = new R(E.message, t || E.code, _, i, s);
5
+ return e.cause = E, e.name = E.name, O && Object.assign(e, O), e;
6
+ }
7
+ /**
8
+ * Create an Error with the specified message, config, error code, request and response.
9
+ *
10
+ * @param {string} message The error message.
11
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
12
+ * @param {Object} [config] The config.
13
+ * @param {Object} [request] The request.
14
+ * @param {Object} [response] The response.
15
+ *
16
+ * @returns {Error} The created error.
17
+ */
18
+ constructor(E, t, _, i, s) {
19
+ super(E), this.name = "AxiosError", this.isAxiosError = !0, t && (this.code = t), _ && (this.config = _), i && (this.request = i), s && (this.response = s, this.status = s.status);
20
+ }
21
+ toJSON() {
22
+ return {
23
+ // Standard
24
+ message: this.message,
25
+ name: this.name,
26
+ // Microsoft
27
+ description: this.description,
28
+ number: this.number,
29
+ // Mozilla
30
+ fileName: this.fileName,
31
+ lineNumber: this.lineNumber,
32
+ columnNumber: this.columnNumber,
33
+ stack: this.stack,
34
+ // Axios
35
+ config: N.toJSONObject(this.config),
36
+ code: this.code,
37
+ status: this.status
38
+ };
39
+ }
40
+ }
41
+ R.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
42
+ R.ERR_BAD_OPTION = "ERR_BAD_OPTION";
43
+ R.ECONNABORTED = "ECONNABORTED";
44
+ R.ETIMEDOUT = "ETIMEDOUT";
45
+ R.ERR_NETWORK = "ERR_NETWORK";
46
+ R.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
47
+ R.ERR_DEPRECATED = "ERR_DEPRECATED";
48
+ R.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
49
+ R.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
50
+ R.ERR_CANCELED = "ERR_CANCELED";
51
+ R.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
52
+ R.ERR_INVALID_URL = "ERR_INVALID_URL";
53
+ export {
54
+ R as default
55
+ };
@@ -8,6 +8,7 @@ class a {
8
8
  *
9
9
  * @param {Function} fulfilled The function to handle `then` for a `Promise`
10
10
  * @param {Function} rejected The function to handle `reject` for a `Promise`
11
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
11
12
  *
12
13
  * @return {Number} An ID used to remove interceptor later
13
14
  */
@@ -1,4 +1,4 @@
1
- const o = "1.13.2";
1
+ const o = "1.13.4";
2
2
  export {
3
3
  o as VERSION
4
4
  };
@@ -0,0 +1,21 @@
1
+ import a from "../utils.ts";
2
+ import f from "./AxiosURLSearchParams.ts";
3
+ function d(e) {
4
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
5
+ }
6
+ function m(e, i, n) {
7
+ if (!i)
8
+ return e;
9
+ const s = n && n.encode || d, c = a.isFunction(n) ? {
10
+ serialize: n
11
+ } : n, r = c && c.serialize;
12
+ let t;
13
+ if (r ? t = r(i, c) : t = a.isURLSearchParams(i) ? i.toString() : new f(i, c).toString(s), t) {
14
+ const o = e.indexOf("#");
15
+ o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + t;
16
+ }
17
+ return e;
18
+ }
19
+ export {
20
+ m as default
21
+ };
@@ -13,7 +13,7 @@ const h = (e, t) => {
13
13
  }
14
14
  };
15
15
  let c = t && setTimeout(() => {
16
- c = null, n(new s(`timeout ${t} of ms exceeded`, s.ETIMEDOUT));
16
+ c = null, n(new s(`timeout of ${t}ms exceeded`, s.ETIMEDOUT));
17
17
  }, t);
18
18
  const i = () => {
19
19
  e && (c && clearTimeout(c), c = null, e.forEach((r) => {
@@ -1,21 +1,21 @@
1
1
  import R from "./helpers/bind.ts";
2
- const { toString: T } = Object.prototype, { getPrototypeOf: A } = Object, { iterator: g, toStringTag: S } = Symbol, F = /* @__PURE__ */ ((e) => (t) => {
2
+ const { toString: T } = Object.prototype, { getPrototypeOf: h } = Object, { iterator: g, toStringTag: x } = Symbol, b = /* @__PURE__ */ ((e) => (t) => {
3
3
  const n = T.call(t);
4
4
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
5
- })(/* @__PURE__ */ Object.create(null)), f = (e) => (e = e.toLowerCase(), (t) => F(t) === e), O = (e) => (t) => typeof t === e, { isArray: p } = Array, a = O("undefined");
5
+ })(/* @__PURE__ */ Object.create(null)), f = (e) => (e = e.toLowerCase(), (t) => b(t) === e), O = (e) => (t) => typeof t === e, { isArray: p } = Array, a = O("undefined");
6
6
  function d(e) {
7
7
  return e !== null && !a(e) && e.constructor !== null && !a(e.constructor) && c(e.constructor.isBuffer) && e.constructor.isBuffer(e);
8
8
  }
9
- const B = f("ArrayBuffer");
9
+ const S = f("ArrayBuffer");
10
10
  function M(e) {
11
11
  let t;
12
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && B(e.buffer), t;
12
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && S(e.buffer), t;
13
13
  }
14
- const k = O("string"), c = O("function"), E = O("number"), y = (e) => e !== null && typeof e == "object", N = (e) => e === !0 || e === !1, w = (e) => {
15
- if (F(e) !== "object")
14
+ const k = O("string"), c = O("function"), B = O("number"), y = (e) => e !== null && typeof e == "object", N = (e) => e === !0 || e === !1, w = (e) => {
15
+ if (b(e) !== "object")
16
16
  return !1;
17
- const t = A(e);
18
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(S in e) && !(g in e);
17
+ const t = h(e);
18
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(x in e) && !(g in e);
19
19
  }, U = (e) => {
20
20
  if (!y(e) || d(e))
21
21
  return !1;
@@ -26,7 +26,7 @@ const k = O("string"), c = O("function"), E = O("number"), y = (e) => e !== null
26
26
  }
27
27
  }, I = f("Date"), V = f("File"), _ = f("Blob"), q = f("FileList"), H = (e) => y(e) && c(e.pipe), z = (e) => {
28
28
  let t;
29
- return e && (typeof FormData == "function" && e instanceof FormData || c(e.append) && ((t = F(e)) === "formdata" || // detect form-data instance
29
+ return e && (typeof FormData == "function" && e instanceof FormData || c(e.append) && ((t = b(e)) === "formdata" || // detect form-data instance
30
30
  t === "object" && c(e.toString) && e.toString() === "[object FormData]"));
31
31
  }, J = f("URLSearchParams"), [K, $, W, G] = ["ReadableStream", "Request", "Response", "Headers"].map(f), Q = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
32
32
  function m(e, t, { allOwnKeys: n = !1 } = {}) {
@@ -45,7 +45,7 @@ function m(e, t, { allOwnKeys: n = !1 } = {}) {
45
45
  l = o[r], t.call(null, e[l], l, e);
46
46
  }
47
47
  }
48
- function P(e, t) {
48
+ function E(e, t) {
49
49
  if (d(e))
50
50
  return null;
51
51
  t = t.toLowerCase();
@@ -57,19 +57,34 @@ function P(e, t) {
57
57
  return null;
58
58
  }
59
59
  const u = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, L = (e) => !a(e) && e !== u;
60
- function h() {
60
+ function F() {
61
61
  const { caseless: e, skipUndefined: t } = L(this) && this || {}, n = {}, r = (s, o) => {
62
- const i = e && P(n, o) || o;
63
- w(n[i]) && w(s) ? n[i] = h(n[i], s) : w(s) ? n[i] = h({}, s) : p(s) ? n[i] = s.slice() : (!t || !a(s)) && (n[i] = s);
62
+ const i = e && E(n, o) || o;
63
+ w(n[i]) && w(s) ? n[i] = F(n[i], s) : w(s) ? n[i] = F({}, s) : p(s) ? n[i] = s.slice() : (!t || !a(s)) && (n[i] = s);
64
64
  };
65
65
  for (let s = 0, o = arguments.length; s < o; s++)
66
66
  arguments[s] && m(arguments[s], r);
67
67
  return n;
68
68
  }
69
69
  const X = (e, t, n, { allOwnKeys: r } = {}) => (m(t, (s, o) => {
70
- n && c(s) ? e[o] = R(s, n) : e[o] = s;
70
+ n && c(s) ? Object.defineProperty(e, o, {
71
+ value: R(s, n),
72
+ writable: !0,
73
+ enumerable: !0,
74
+ configurable: !0
75
+ }) : Object.defineProperty(e, o, {
76
+ value: s,
77
+ writable: !0,
78
+ enumerable: !0,
79
+ configurable: !0
80
+ });
71
81
  }, { allOwnKeys: r }), e), Y = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Z = (e, t, n, r) => {
72
- e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
82
+ e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
83
+ value: e,
84
+ writable: !0,
85
+ enumerable: !1,
86
+ configurable: !0
87
+ }), Object.defineProperty(e, "super", {
73
88
  value: t.prototype
74
89
  }), n && Object.assign(e.prototype, n);
75
90
  }, j = (e, t, n, r) => {
@@ -79,7 +94,7 @@ const X = (e, t, n, { allOwnKeys: r } = {}) => (m(t, (s, o) => {
79
94
  do {
80
95
  for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
81
96
  i = s[o], (!r || r(i, e, t)) && !l[i] && (t[i] = e[i], l[i] = !0);
82
- e = n !== !1 && A(e);
97
+ e = n !== !1 && h(e);
83
98
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
84
99
  return t;
85
100
  }, v = (e, t, n) => {
@@ -90,12 +105,12 @@ const X = (e, t, n, { allOwnKeys: r } = {}) => (m(t, (s, o) => {
90
105
  if (!e) return null;
91
106
  if (p(e)) return e;
92
107
  let t = e.length;
93
- if (!E(t)) return null;
108
+ if (!B(t)) return null;
94
109
  const n = new Array(t);
95
110
  for (; t-- > 0; )
96
111
  n[t] = e[t];
97
112
  return n;
98
- }, te = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && A(Uint8Array)), ne = (e, t) => {
113
+ }, te = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && h(Uint8Array)), ne = (e, t) => {
99
114
  const r = (e && e[g]).call(e);
100
115
  let s;
101
116
  for (; (s = r.next()) && !s.done; ) {
@@ -113,7 +128,7 @@ const X = (e, t, n, { allOwnKeys: r } = {}) => (m(t, (s, o) => {
113
128
  function(n, r, s) {
114
129
  return r.toUpperCase() + s;
115
130
  }
116
- ), x = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ie = f("RegExp"), C = (e, t) => {
131
+ ), P = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ie = f("RegExp"), C = (e, t) => {
117
132
  const n = Object.getOwnPropertyDescriptors(e), r = {};
118
133
  m(n, (s, o) => {
119
134
  let i;
@@ -144,7 +159,7 @@ const X = (e, t, n, { allOwnKeys: r } = {}) => (m(t, (s, o) => {
144
159
  }, le = () => {
145
160
  }, ue = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
146
161
  function ae(e) {
147
- return !!(e && c(e.append) && e[S] === "FormData" && e[g]);
162
+ return !!(e && c(e.append) && e[x] === "FormData" && e[g]);
148
163
  }
149
164
  const pe = (e) => {
150
165
  const t = new Array(10), n = (r, s) => {
@@ -157,8 +172,8 @@ const pe = (e) => {
157
172
  t[s] = r;
158
173
  const o = p(r) ? [] : {};
159
174
  return m(r, (i, l) => {
160
- const b = n(i, s + 1);
161
- !a(b) && (o[l] = b);
175
+ const A = n(i, s + 1);
176
+ !a(A) && (o[l] = A);
162
177
  }), t[s] = void 0, o;
163
178
  }
164
179
  }
@@ -172,14 +187,14 @@ const pe = (e) => {
172
187
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
173
188
  typeof setImmediate == "function",
174
189
  c(u.postMessage)
175
- ), me = typeof queueMicrotask < "u" ? queueMicrotask.bind(u) : typeof process < "u" && process.nextTick || D, we = (e) => e != null && c(e[g]), Fe = {
190
+ ), me = typeof queueMicrotask < "u" ? queueMicrotask.bind(u) : typeof process < "u" && process.nextTick || D, we = (e) => e != null && c(e[g]), be = {
176
191
  isArray: p,
177
- isArrayBuffer: B,
192
+ isArrayBuffer: S,
178
193
  isBuffer: d,
179
194
  isFormData: z,
180
195
  isArrayBufferView: M,
181
196
  isString: k,
182
- isNumber: E,
197
+ isNumber: B,
183
198
  isBoolean: N,
184
199
  isObject: y,
185
200
  isPlainObject: w,
@@ -199,21 +214,21 @@ const pe = (e) => {
199
214
  isTypedArray: te,
200
215
  isFileList: q,
201
216
  forEach: m,
202
- merge: h,
217
+ merge: F,
203
218
  extend: X,
204
219
  trim: Q,
205
220
  stripBOM: Y,
206
221
  inherits: Z,
207
222
  toFlatObject: j,
208
- kindOf: F,
223
+ kindOf: b,
209
224
  kindOfTest: f,
210
225
  endsWith: v,
211
226
  toArray: ee,
212
227
  forEachEntry: ne,
213
228
  matchAll: re,
214
229
  isHTMLForm: se,
215
- hasOwnProperty: x,
216
- hasOwnProp: x,
230
+ hasOwnProperty: P,
231
+ hasOwnProp: P,
217
232
  // an alias to avoid ESLint no-prototype-builtins detection
218
233
  reduceDescriptors: C,
219
234
  freezeMethods: ce,
@@ -221,7 +236,7 @@ const pe = (e) => {
221
236
  toCamelCase: oe,
222
237
  noop: le,
223
238
  toFiniteNumber: ue,
224
- findKey: P,
239
+ findKey: E,
225
240
  global: u,
226
241
  isContextDefined: L,
227
242
  isSpecCompliantForm: ae,
@@ -233,5 +248,5 @@ const pe = (e) => {
233
248
  isIterable: we
234
249
  };
235
250
  export {
236
- Fe as default
251
+ be as default
237
252
  };
@@ -1,30 +1,30 @@
1
- import { computed as o, unref as c, getCurrentInstance as d, inject as g, ref as C, provide as x } from "vue";
1
+ import { getCurrentInstance as d, computed as o, unref as c, inject as g, provide as C, ref as x } from "vue";
2
2
  import { configProviderContextKey as m } from "../constants.ts";
3
- import { useNamespace as y, defaultNamespace as I, namespaceContextKey as z } from "../../../../hooks/use-namespace/index.ts";
4
- import { useZIndex as b, defaultInitialZIndex as _, zIndexContextKey as K } from "../../../../hooks/use-z-index/index.ts";
5
- import { useLocale as G, localeContextKey as k } from "../../../../hooks/use-locale/index.ts";
3
+ import { namespaceContextKey as y, useNamespace as I, defaultNamespace as z } from "../../../../hooks/use-namespace/index.ts";
4
+ import { zIndexContextKey as b, useZIndex as _, defaultInitialZIndex as K } from "../../../../hooks/use-z-index/index.ts";
5
+ import { localeContextKey as G, useLocale as k } from "../../../../hooks/use-locale/index.ts";
6
6
  import { SIZE_INJECTION_KEY as N } from "../../../../hooks/use-size/index.ts";
7
7
  import { emptyValuesContextKey as O } from "../../../../hooks/use-empty-values/index.ts";
8
8
  import { debugWarn as S } from "../../../../utils/error.ts";
9
9
  import { keysOf as f } from "../../../../utils/objects.ts";
10
- const s = C();
10
+ const s = x();
11
11
  function p(a, r = void 0) {
12
12
  return d() ? g(m, s) : s;
13
13
  }
14
14
  function Y(a, r) {
15
- const n = p(), u = y(
15
+ const n = p(), u = I(
16
16
  a,
17
17
  o(() => {
18
18
  var e;
19
- return ((e = n.value) == null ? void 0 : e.namespace) || I;
19
+ return ((e = n.value) == null ? void 0 : e.namespace) || z;
20
20
  })
21
- ), t = G(o(() => {
21
+ ), t = k(o(() => {
22
22
  var e;
23
23
  return (e = n.value) == null ? void 0 : e.locale;
24
- })), i = b(
24
+ })), i = _(
25
25
  o(() => {
26
26
  var e;
27
- return ((e = n.value) == null ? void 0 : e.zIndex) || _;
27
+ return ((e = n.value) == null ? void 0 : e.zIndex) || K;
28
28
  })
29
29
  ), l = o(() => {
30
30
  var e;
@@ -39,7 +39,7 @@ function Y(a, r) {
39
39
  }
40
40
  const V = (a, r, n = !1) => {
41
41
  var u;
42
- const t = !!d(), i = t ? p() : void 0, l = (u = void 0) != null ? u : t ? x : void 0;
42
+ const t = !!d(), i = t ? p() : void 0, l = (u = void 0) != null ? u : t ? C : void 0;
43
43
  if (!l) {
44
44
  S(
45
45
  "provideGlobalConfig",
@@ -52,13 +52,13 @@ const V = (a, r, n = !1) => {
52
52
  return i?.value ? E(i.value, v) : v;
53
53
  });
54
54
  return l(m, e), l(
55
- k,
55
+ G,
56
56
  o(() => e.value.locale)
57
57
  ), l(
58
- z,
58
+ y,
59
59
  o(() => e.value.namespace)
60
60
  ), l(
61
- K,
61
+ b,
62
62
  o(() => e.value.zIndex)
63
63
  ), l(N, {
64
64
  size: o(() => e.value.size || "")
@@ -0,0 +1,104 @@
1
+ import v from "../utils/utils.ts";
2
+ const y = {
3
+ install(c) {
4
+ c.directive("debounce", {
5
+ beforeMount(e, i) {
6
+ const [t, u, a = "click", l = 500, n = !0] = i.value;
7
+ let r;
8
+ e.$type = a, e.$handle = () => {
9
+ r && clearTimeout(r), r = setTimeout(() => t(u), l);
10
+ }, e.addEventListener(e.$type, e.$handle, n);
11
+ },
12
+ unmounted(e) {
13
+ e.removeEventListener(e.$type, e.$handle);
14
+ }
15
+ }), c.directive("throttle", {
16
+ beforeMount(e, i) {
17
+ const [t, u, a = "click", l = 500, n = !0] = i.value;
18
+ let r, m;
19
+ e.$type = a, e.$handle = () => {
20
+ if (r)
21
+ return clearTimeout(m), m = setTimeout(() => t(u), l);
22
+ t(u), r = setTimeout(() => null, l);
23
+ }, e.addEventListener(e.$type, e.$handle, n);
24
+ },
25
+ unmounted(e) {
26
+ e.removeEventListener(e.$type, e.$handle);
27
+ }
28
+ }), c.directive("drag", {
29
+ beforeMount(e, i) {
30
+ let t = "", u = null, a = null, l = !1;
31
+ if (i && i?.value && v.funcIsArray(i.value) && i.value.length > 0) {
32
+ const n = i.value;
33
+ n[0] && (t = n[0]), u = n.length > 1 ? n[1] : null, a = n.length > 2 ? n[2] : null;
34
+ }
35
+ e.onmousedown = (n) => {
36
+ if (t) {
37
+ if (typeof t == "string" && n.target.className !== t && !n.target.classList.contains(t))
38
+ return;
39
+ if (v.funcIsArray(t)) {
40
+ if (t.length === 0)
41
+ return;
42
+ let s = 0;
43
+ for (s = 0; s < t.length; s++) {
44
+ const p = t[s];
45
+ if (n.target.className === p || n.target.classList.contains(p))
46
+ break;
47
+ }
48
+ if (s === t.length)
49
+ return;
50
+ }
51
+ }
52
+ const r = n.pageX - e.offsetLeft, m = n.pageY - e.offsetTop, f = document.body.clientWidth - n.currentTarget.clientWidth, d = document.body.clientHeight - n.currentTarget.clientHeight;
53
+ let o = 0, g = 0;
54
+ document.onmousemove = (s) => {
55
+ l = !0, o = s.pageX - r, g = s.pageY - m, o < 0 ? o = 0 : o > f && (o = f), g < 0 ? g = 0 : g > d && (g = d), e.style.left = o + "px", e.style.top = g + "px";
56
+ }, document.onmouseup = () => {
57
+ document.onmousemove = document.onmouseup = null, !l && typeof u == "function" && u(a), l = !1;
58
+ };
59
+ };
60
+ }
61
+ }), c.directive("posterDrag", {
62
+ beforeMount(e) {
63
+ const i = e;
64
+ let t = 0, u = 0;
65
+ e.onmousedown = (a) => {
66
+ const l = a.pageX - e.offsetLeft, n = a.pageY - e.offsetTop, r = document.body.clientWidth - 120, m = document.body.clientHeight - 220;
67
+ let f = 0, d = 0;
68
+ i.setAttribute("ele-flag", !1), t = (/* @__PURE__ */ new Date()).getTime(), document.onmousemove = (o) => {
69
+ f = o.pageX - l, d = o.pageY - n, !(f < 0 || d < 0 || f > r || d > m) && (e.style.left = f + "px", e.style.top = d + "px", e.style.pointerEvents = "none");
70
+ }, document.onmouseup = (o) => {
71
+ document.onmousemove = document.onmouseup = null, e.style.pointerEvents = null, u = (/* @__PURE__ */ new Date()).getTime(), u - t > 500 && (i.setAttribute("ele-flag", !0), o.stopPropagation());
72
+ }, document.ondragstart = function(o) {
73
+ o.preventDefault();
74
+ }, document.ondragend = function(o) {
75
+ o.preventDefault();
76
+ };
77
+ };
78
+ }
79
+ }), c.directive("trim", {
80
+ beforeMount(e) {
81
+ e.oninput = () => {
82
+ e.value = e.value.replace(/\s+/g, "");
83
+ };
84
+ }
85
+ }), c.directive("inputFilter", {
86
+ beforeMount(e, i) {
87
+ const [t] = i.value;
88
+ e.oninput = () => {
89
+ t === "integer" ? e.value = e.value.replace(/[^0-9]/g, "") : t === "float" ? e.value = e.value.replace(/[^0-9.]/g, "") : t === "chinese" && (e.value = e.value.replace(/^[\u4e00-\u9fa5·]/g, ""));
90
+ };
91
+ }
92
+ }), c.directive("scrollBottom", {
93
+ updated(e) {
94
+ e.getAttribute("isScroll") === "true" && e.scrollTo({
95
+ top: e.scrollHeight,
96
+ behavior: "smooth"
97
+ });
98
+ }
99
+ });
100
+ }
101
+ };
102
+ export {
103
+ y as default
104
+ };
@@ -1,8 +1,10 @@
1
- import t from "./sjDigitalHumanAssistant/index.ts";
2
- const s = [
3
- t
1
+ import t from "./directives/directives.ts";
2
+ import o from "./sjDigitalHumanAssistant/index.ts";
3
+ const m = [
4
+ t,
5
+ o
4
6
  ];
5
7
  export {
6
- t as SjDigitalHumanAssistant,
7
- s as default
8
+ o as SjDigitalHumanAssistant,
9
+ m as default
8
10
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./index.vue2.ts";
2
2
  /* empty css */
3
- import a from "../../../../../_virtual/_plugin-vue_export-helper.ts";
4
- const m = /* @__PURE__ */ a(t, [["__scopeId", "data-v-7ad3c1b0"]]);
3
+ import o from "../../../../../_virtual/_plugin-vue_export-helper.ts";
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-2641bf43"]]);
5
5
  export {
6
6
  m as default
7
7
  };