yahee-components 0.0.111 → 0.0.113

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 (181) hide show
  1. package/es/operation-log/operation-log-form.vue.js +39 -40
  2. package/es/operation-log/operation-log.vue2.js +6 -6
  3. package/package.json +1 -1
  4. package/types/src/installs.d.ts +1 -1
  5. package/types/src/operation-log/index.d.ts +1 -1
  6. package/types/src/operation-log/operation-log.d.ts +1 -1
  7. package/types/src/operation-log/operation-log.vue.d.ts +1 -1
  8. package/types/src/operation-log/props.d.ts +1 -1
  9. package/es/annex-upload/annex-upload.vue.js +0 -55
  10. package/es/annex-upload/annex-upload.vue2.js +0 -121
  11. package/es/annex-upload/index.js +0 -7
  12. package/es/annex-upload/mimeType.js +0 -822
  13. package/es/annex-upload/style/index.css +0 -7
  14. package/es/border-wrap/border-wrap.vue.js +0 -75
  15. package/es/border-wrap/border-wrap.vue2.js +0 -48
  16. package/es/border-wrap/index.js +0 -7
  17. package/es/border-wrap/props.js +0 -11
  18. package/es/border-wrap/style/index.css +0 -24
  19. package/es/common-import/common-import.vue.js +0 -394
  20. package/es/common-import/common-import.vue2.js +0 -366
  21. package/es/common-import/index.js +0 -7
  22. package/es/common-import/props.js +0 -23
  23. package/es/common-import/style/index.css +0 -32
  24. package/es/complex-search/batch-search-dialog.vue.js +0 -119
  25. package/es/complex-search/batch-search-dialog.vue2.js +0 -50
  26. package/es/complex-search/complex-search.vue.js +0 -122
  27. package/es/complex-search/complex-search.vue2.js +0 -71
  28. package/es/complex-search/index.js +0 -7
  29. package/es/complex-search/props.js +0 -19
  30. package/es/complex-search/style/index.css +0 -24
  31. package/es/complex-search/useComplexSearch.js +0 -44
  32. package/es/copy/copy.vue.js +0 -39
  33. package/es/copy/copy.vue2.js +0 -36
  34. package/es/copy/index.js +0 -7
  35. package/es/copy/props.js +0 -9
  36. package/es/copy/style/index.css +0 -12
  37. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +0 -120
  38. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +0 -127
  39. package/es/country-platform-shop-condition/index.js +0 -7
  40. package/es/country-platform-shop-condition/style/index.css +0 -59
  41. package/es/drop-down-condition/drop-down-condition.vue.js +0 -125
  42. package/es/drop-down-condition/drop-down-condition.vue2.js +0 -129
  43. package/es/drop-down-condition/index.js +0 -7
  44. package/es/drop-down-condition/style/index.css +0 -64
  45. package/es/echart-gauge/echart-gauge.vue.js +0 -14
  46. package/es/echart-gauge/echart-gauge.vue2.js +0 -149
  47. package/es/echart-gauge/index.js +0 -7
  48. package/es/echart-gauge/props.js +0 -9
  49. package/es/echart-gauge/style/index.css +0 -4
  50. package/es/file-download-wrapper/file-download-wrapper.vue.js +0 -164
  51. package/es/file-download-wrapper/file-download-wrapper.vue2.js +0 -115
  52. package/es/file-download-wrapper/index.js +0 -7
  53. package/es/file-download-wrapper/key.js +0 -17
  54. package/es/file-download-wrapper/props.js +0 -12
  55. package/es/file-download-wrapper/style/index.css +0 -66
  56. package/es/filter-container/filter-container.vue.js +0 -24
  57. package/es/filter-container/filter-container.vue2.js +0 -61
  58. package/es/filter-container/index.js +0 -7
  59. package/es/filter-container/key.js +0 -4
  60. package/es/filter-container/props.js +0 -11
  61. package/es/filter-container/style/index.css +0 -16
  62. package/es/filter-wrapper/filter-wrapper.vue.js +0 -19
  63. package/es/filter-wrapper/filter-wrapper.vue2.js +0 -56
  64. package/es/filter-wrapper/index.js +0 -7
  65. package/es/filter-wrapper/props.js +0 -10
  66. package/es/filter-wrapper/style/index.css +0 -3
  67. package/es/height-collapse/height-collapse.vue.js +0 -26
  68. package/es/height-collapse/height-collapse.vue2.js +0 -44
  69. package/es/height-collapse/index.js +0 -7
  70. package/es/height-collapse/props.js +0 -11
  71. package/es/height-collapse/style/index.css +0 -32
  72. package/es/help-tag/help-tag.vue.js +0 -46
  73. package/es/help-tag/help-tag.vue2.js +0 -51
  74. package/es/help-tag/index.js +0 -7
  75. package/es/help-tag/props.js +0 -9
  76. package/es/help-tag/style/index.css +0 -8
  77. package/es/image-upload/image-upload.vue.js +0 -116
  78. package/es/image-upload/image-upload.vue2.js +0 -93
  79. package/es/image-upload/index.js +0 -7
  80. package/es/image-upload/style/index.css +0 -33
  81. package/es/index.js +0 -63
  82. package/es/installs.js +0 -41
  83. package/es/left-condition/index.js +0 -7
  84. package/es/left-condition/left-condition-sub.vue.js +0 -36
  85. package/es/left-condition/left-condition-sub.vue2.js +0 -78
  86. package/es/left-condition/left-condition.vue.js +0 -77
  87. package/es/left-condition/left-condition.vue2.js +0 -162
  88. package/es/left-condition/style/index.css +0 -10
  89. package/es/left-condition-enum/index.js +0 -7
  90. package/es/left-condition-enum/left-condition-enum.vue.js +0 -22
  91. package/es/left-condition-enum/left-condition-enum.vue2.js +0 -42
  92. package/es/left-condition-enum/style/index.css +0 -10
  93. package/es/node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js +0 -99
  94. package/es/node_modules/.pnpm/@vueuse_shared@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +0 -22
  95. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js +0 -38
  96. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/adapters.js +0 -53
  97. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/fetch.js +0 -141
  98. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/xhr.js +0 -71
  99. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js +0 -46
  100. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CancelToken.js +0 -77
  101. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CanceledError.js +0 -11
  102. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/isCancel.js +0 -6
  103. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/Axios.js +0 -136
  104. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosError.js +0 -54
  105. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosHeaders.js +0 -181
  106. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/InterceptorManager.js +0 -58
  107. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/buildFullPath.js +0 -9
  108. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/dispatchRequest.js +0 -31
  109. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/mergeConfig.js +0 -70
  110. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/settle.js +0 -14
  111. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/transformData.js +0 -13
  112. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/index.js +0 -89
  113. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/transitional.js +0 -8
  114. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/env/data.js +0 -4
  115. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -33
  116. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
  117. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/bind.js +0 -8
  118. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/buildURL.js +0 -23
  119. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/combineURLs.js +0 -6
  120. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/composeSignals.js +0 -30
  121. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/cookies.js +0 -32
  122. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/formDataToJSON.js +0 -31
  123. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -6
  124. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAxiosError.js +0 -7
  125. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -8
  126. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/null.js +0 -4
  127. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseHeaders.js +0 -30
  128. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
  129. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/progressEventReducer.js +0 -35
  130. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/resolveConfig.js +0 -33
  131. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/speedometer.js +0 -19
  132. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/spread.js +0 -8
  133. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/throttle.js +0 -15
  134. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toFormData.js +0 -85
  135. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -13
  136. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/trackStream.js +0 -63
  137. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/validator.js +0 -54
  138. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
  139. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
  140. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
  141. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/index.js +0 -15
  142. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/common/utils.js +0 -9
  143. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/index.js +0 -9
  144. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/utils.js +0 -222
  145. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +0 -282
  146. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/index.js +0 -97
  147. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/basicTransition.js +0 -96
  148. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +0 -56
  149. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicTransition.js +0 -242
  150. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/morphTransitionHelper.js +0 -106
  151. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/universalTransition.js +0 -345
  152. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarSeries.js +0 -56
  153. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarView.js +0 -487
  154. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +0 -77
  155. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +0 -49
  156. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarView.js +0 -325
  157. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/install.js +0 -23
  158. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/installPictorialBar.js +0 -10
  159. package/lib/annex-upload/style/index.css +0 -7
  160. package/lib/border-wrap/style/index.css +0 -24
  161. package/lib/common-import/style/index.css +0 -32
  162. package/lib/complex-search/style/index.css +0 -24
  163. package/lib/copy/style/index.css +0 -12
  164. package/lib/country-platform-shop-condition/style/index.css +0 -59
  165. package/lib/drop-down-condition/style/index.css +0 -64
  166. package/lib/echart-gauge/style/index.css +0 -4
  167. package/lib/file-download-wrapper/style/index.css +0 -66
  168. package/lib/filter-container/style/index.css +0 -16
  169. package/lib/filter-wrapper/style/index.css +0 -3
  170. package/lib/height-collapse/style/index.css +0 -32
  171. package/lib/help-tag/style/index.css +0 -8
  172. package/lib/image-upload/style/index.css +0 -33
  173. package/lib/left-condition/style/index.css +0 -10
  174. package/lib/left-condition-enum/style/index.css +0 -10
  175. package/lib/operation-log/style/index.css +0 -234
  176. package/lib/scale-screen/style/index.css +0 -0
  177. package/lib/style.css +0 -1405
  178. package/lib/styles/custom.css +0 -82
  179. package/lib/styles/globals.css +0 -699
  180. package/lib/styles/index.css +0 -753
  181. package/lib/styles/variables.css +0 -34
@@ -1,141 +0,0 @@
1
- import D from "../platform/index.js";
2
- import r from "../utils.js";
3
- import l from "../core/AxiosError.js";
4
- import H from "../helpers/composeSignals.js";
5
- import { trackStream as P } from "../helpers/trackStream.js";
6
- import K from "../core/AxiosHeaders.js";
7
- import { progressEventDecorator as A, progressEventReducer as O, asyncDecorator as _ } from "../helpers/progressEventReducer.js";
8
- import z from "../helpers/resolveConfig.js";
9
- import j from "../core/settle.js";
10
- const w = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", F = w && typeof ReadableStream == "function", I = w && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), N = (e, ...t) => {
11
- try {
12
- return !!e(...t);
13
- } catch {
14
- return !1;
15
- }
16
- }, J = F && N(() => {
17
- let e = !1;
18
- const t = new Request(D.origin, {
19
- body: new ReadableStream(),
20
- method: "POST",
21
- get duplex() {
22
- return e = !0, "half";
23
- }
24
- }).headers.has("Content-Type");
25
- return e && !t;
26
- }), B = 64 * 1024, T = F && N(() => r.isReadableStream(new Response("").body)), g = {
27
- stream: T && ((e) => e.body)
28
- };
29
- w && ((e) => {
30
- ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
31
- !g[t] && (g[t] = r.isFunction(e[t]) ? (s) => s[t]() : (s, u) => {
32
- throw new l(`Response type '${t}' is not supported`, l.ERR_NOT_SUPPORT, u);
33
- });
34
- });
35
- })(new Response());
36
- const V = async (e) => {
37
- if (e == null)
38
- return 0;
39
- if (r.isBlob(e))
40
- return e.size;
41
- if (r.isSpecCompliantForm(e))
42
- return (await new Request(D.origin, {
43
- method: "POST",
44
- body: e
45
- }).arrayBuffer()).byteLength;
46
- if (r.isArrayBufferView(e) || r.isArrayBuffer(e))
47
- return e.byteLength;
48
- if (r.isURLSearchParams(e) && (e = e + ""), r.isString(e))
49
- return (await I(e)).byteLength;
50
- }, W = async (e, t) => {
51
- const s = r.toFiniteNumber(e.getContentLength());
52
- return s ?? V(t);
53
- }, re = w && (async (e) => {
54
- let {
55
- url: t,
56
- method: s,
57
- data: u,
58
- signal: U,
59
- cancelToken: x,
60
- timeout: v,
61
- onDownloadProgress: R,
62
- onUploadProgress: b,
63
- responseType: n,
64
- headers: y,
65
- withCredentials: m = "same-origin",
66
- fetchOptions: E
67
- } = z(e);
68
- n = n ? (n + "").toLowerCase() : "text";
69
- let d = H([U, x && x.toAbortSignal()], v), f;
70
- const c = d && d.unsubscribe && (() => {
71
- d.unsubscribe();
72
- });
73
- let C;
74
- try {
75
- if (b && J && s !== "get" && s !== "head" && (C = await W(y, u)) !== 0) {
76
- let i = new Request(t, {
77
- method: "POST",
78
- body: u,
79
- duplex: "half"
80
- }), p;
81
- if (r.isFormData(u) && (p = i.headers.get("content-type")) && y.setContentType(p), i.body) {
82
- const [S, h] = A(
83
- C,
84
- O(_(b))
85
- );
86
- u = P(i.body, B, S, h);
87
- }
88
- }
89
- r.isString(m) || (m = m ? "include" : "omit");
90
- const o = "credentials" in Request.prototype;
91
- f = new Request(t, {
92
- ...E,
93
- signal: d,
94
- method: s.toUpperCase(),
95
- headers: y.normalize().toJSON(),
96
- body: u,
97
- duplex: "half",
98
- credentials: o ? m : void 0
99
- });
100
- let a = await fetch(f, E);
101
- const q = T && (n === "stream" || n === "response");
102
- if (T && (R || q && c)) {
103
- const i = {};
104
- ["status", "statusText", "headers"].forEach((L) => {
105
- i[L] = a[L];
106
- });
107
- const p = r.toFiniteNumber(a.headers.get("content-length")), [S, h] = R && A(
108
- p,
109
- O(_(R), !0)
110
- ) || [];
111
- a = new Response(
112
- P(a.body, B, S, () => {
113
- h && h(), c && c();
114
- }),
115
- i
116
- );
117
- }
118
- n = n || "text";
119
- let k = await g[r.findKey(g, n) || "text"](a, e);
120
- return !q && c && c(), await new Promise((i, p) => {
121
- j(i, p, {
122
- data: k,
123
- headers: K.from(a.headers),
124
- status: a.status,
125
- statusText: a.statusText,
126
- config: e,
127
- request: f
128
- });
129
- });
130
- } catch (o) {
131
- throw c && c(), o && o.name === "TypeError" && /Load failed|fetch/i.test(o.message) ? Object.assign(
132
- new l("Network Error", l.ERR_NETWORK, e, f),
133
- {
134
- cause: o.cause || o
135
- }
136
- ) : l.from(o, o && o.code, e, f);
137
- }
138
- });
139
- export {
140
- re as default
141
- };
@@ -1,71 +0,0 @@
1
- import b from "../utils.js";
2
- import D from "../core/settle.js";
3
- import L from "../defaults/transitional.js";
4
- import r from "../core/AxiosError.js";
5
- import v from "../cancel/CanceledError.js";
6
- import y from "../helpers/parseProtocol.js";
7
- import O from "../platform/index.js";
8
- import H from "../core/AxiosHeaders.js";
9
- import { progressEventReducer as q } from "../helpers/progressEventReducer.js";
10
- import U from "../helpers/resolveConfig.js";
11
- const N = typeof XMLHttpRequest < "u", Q = N && function(n) {
12
- return new Promise(function(A, s) {
13
- const t = U(n);
14
- let c = t.data;
15
- const E = H.from(t.headers).normalize();
16
- let { responseType: i, onUploadProgress: T, onDownloadProgress: R } = t, a, h, w, u, p;
17
- function g() {
18
- u && u(), p && p(), t.cancelToken && t.cancelToken.unsubscribe(a), t.signal && t.signal.removeEventListener("abort", a);
19
- }
20
- let e = new XMLHttpRequest();
21
- e.open(t.method.toUpperCase(), t.url, !0), e.timeout = t.timeout;
22
- function x() {
23
- if (!e)
24
- return;
25
- const o = H.from(
26
- "getAllResponseHeaders" in e && e.getAllResponseHeaders()
27
- ), d = {
28
- data: !i || i === "text" || i === "json" ? e.responseText : e.response,
29
- status: e.status,
30
- statusText: e.statusText,
31
- headers: o,
32
- config: n,
33
- request: e
34
- };
35
- D(function(m) {
36
- A(m), g();
37
- }, function(m) {
38
- s(m), g();
39
- }, d), e = null;
40
- }
41
- "onloadend" in e ? e.onloadend = x : e.onreadystatechange = function() {
42
- !e || e.readyState !== 4 || e.status === 0 && !(e.responseURL && e.responseURL.indexOf("file:") === 0) || setTimeout(x);
43
- }, e.onabort = function() {
44
- e && (s(new r("Request aborted", r.ECONNABORTED, n, e)), e = null);
45
- }, e.onerror = function() {
46
- s(new r("Network Error", r.ERR_NETWORK, n, e)), e = null;
47
- }, e.ontimeout = function() {
48
- let l = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
49
- const d = t.transitional || L;
50
- t.timeoutErrorMessage && (l = t.timeoutErrorMessage), s(new r(
51
- l,
52
- d.clarifyTimeoutError ? r.ETIMEDOUT : r.ECONNABORTED,
53
- n,
54
- e
55
- )), e = null;
56
- }, c === void 0 && E.setContentType(null), "setRequestHeader" in e && b.forEach(E.toJSON(), function(l, d) {
57
- e.setRequestHeader(d, l);
58
- }), b.isUndefined(t.withCredentials) || (e.withCredentials = !!t.withCredentials), i && i !== "json" && (e.responseType = t.responseType), R && ([w, p] = q(R, !0), e.addEventListener("progress", w)), T && e.upload && ([h, u] = q(T), e.upload.addEventListener("progress", h), e.upload.addEventListener("loadend", u)), (t.cancelToken || t.signal) && (a = (o) => {
59
- e && (s(!o || o.type ? new v(null, n, e) : o), e.abort(), e = null);
60
- }, t.cancelToken && t.cancelToken.subscribe(a), t.signal && (t.signal.aborted ? a() : t.signal.addEventListener("abort", a)));
61
- const f = y(t.url);
62
- if (f && O.protocols.indexOf(f) === -1) {
63
- s(new r("Unsupported protocol " + f + ":", r.ERR_BAD_REQUEST, n));
64
- return;
65
- }
66
- e.send(c || null);
67
- });
68
- };
69
- export {
70
- Q as default
71
- };
@@ -1,46 +0,0 @@
1
- import a from "./utils.js";
2
- import p from "./helpers/bind.js";
3
- import m from "./core/Axios.js";
4
- import i from "./core/mergeConfig.js";
5
- import f from "./defaults/index.js";
6
- import l from "./helpers/formDataToJSON.js";
7
- import c from "./cancel/CanceledError.js";
8
- import d from "./cancel/CancelToken.js";
9
- import u from "./cancel/isCancel.js";
10
- import { VERSION as x } from "./env/data.js";
11
- import C from "./helpers/toFormData.js";
12
- import A from "./core/AxiosError.js";
13
- import E from "./helpers/spread.js";
14
- import O from "./helpers/isAxiosError.js";
15
- import S from "./core/AxiosHeaders.js";
16
- import H from "./adapters/adapters.js";
17
- import T from "./helpers/HttpStatusCode.js";
18
- function n(o) {
19
- const t = new m(o), e = p(m.prototype.request, t);
20
- return a.extend(e, m.prototype, t, { allOwnKeys: !0 }), a.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(s) {
21
- return n(i(o, s));
22
- }, e;
23
- }
24
- const r = n(f);
25
- r.Axios = m;
26
- r.CanceledError = c;
27
- r.CancelToken = d;
28
- r.isCancel = u;
29
- r.VERSION = x;
30
- r.toFormData = C;
31
- r.AxiosError = A;
32
- r.Cancel = r.CanceledError;
33
- r.all = function(t) {
34
- return Promise.all(t);
35
- };
36
- r.spread = E;
37
- r.isAxiosError = O;
38
- r.mergeConfig = i;
39
- r.AxiosHeaders = S;
40
- r.formToJSON = (o) => l(a.isHTMLForm(o) ? new FormData(o) : o);
41
- r.getAdapter = H.getAdapter;
42
- r.HttpStatusCode = T;
43
- r.default = r;
44
- export {
45
- r as default
46
- };
@@ -1,77 +0,0 @@
1
- import u from "./CanceledError.js";
2
- class c {
3
- constructor(e) {
4
- if (typeof e != "function")
5
- throw new TypeError("executor must be a function.");
6
- let t;
7
- this.promise = new Promise(function(r) {
8
- t = r;
9
- });
10
- const s = this;
11
- this.promise.then((n) => {
12
- if (!s._listeners) return;
13
- let r = s._listeners.length;
14
- for (; r-- > 0; )
15
- s._listeners[r](n);
16
- s._listeners = null;
17
- }), this.promise.then = (n) => {
18
- let r;
19
- const o = new Promise((i) => {
20
- s.subscribe(i), r = i;
21
- }).then(n);
22
- return o.cancel = function() {
23
- s.unsubscribe(r);
24
- }, o;
25
- }, e(function(r, o, i) {
26
- s.reason || (s.reason = new u(r, o, i), t(s.reason));
27
- });
28
- }
29
- /**
30
- * Throws a `CanceledError` if cancellation has been requested.
31
- */
32
- throwIfRequested() {
33
- if (this.reason)
34
- throw this.reason;
35
- }
36
- /**
37
- * Subscribe to the cancel signal
38
- */
39
- subscribe(e) {
40
- if (this.reason) {
41
- e(this.reason);
42
- return;
43
- }
44
- this._listeners ? this._listeners.push(e) : this._listeners = [e];
45
- }
46
- /**
47
- * Unsubscribe from the cancel signal
48
- */
49
- unsubscribe(e) {
50
- if (!this._listeners)
51
- return;
52
- const t = this._listeners.indexOf(e);
53
- t !== -1 && this._listeners.splice(t, 1);
54
- }
55
- toAbortSignal() {
56
- const e = new AbortController(), t = (s) => {
57
- e.abort(s);
58
- };
59
- return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
60
- }
61
- /**
62
- * Returns an object that contains a new `CancelToken` and a function that, when called,
63
- * cancels the `CancelToken`.
64
- */
65
- static source() {
66
- let e;
67
- return {
68
- token: new c(function(n) {
69
- e = n;
70
- }),
71
- cancel: e
72
- };
73
- }
74
- }
75
- export {
76
- c as default
77
- };
@@ -1,11 +0,0 @@
1
- import r from "../core/AxiosError.js";
2
- import i from "../utils.js";
3
- function l(o, t, e) {
4
- r.call(this, o ?? "canceled", r.ERR_CANCELED, t, e), this.name = "CanceledError";
5
- }
6
- i.inherits(l, r, {
7
- __CANCEL__: !0
8
- });
9
- export {
10
- l as default
11
- };
@@ -1,6 +0,0 @@
1
- function t(n) {
2
- return !!(n && n.__CANCEL__);
3
- }
4
- export {
5
- t as default
6
- };
@@ -1,136 +0,0 @@
1
- import d from "../utils.js";
2
- import U from "../helpers/buildURL.js";
3
- import q from "./InterceptorManager.js";
4
- import R from "./dispatchRequest.js";
5
- import w from "./mergeConfig.js";
6
- import A from "./buildFullPath.js";
7
- import m from "../helpers/validator.js";
8
- import T from "./AxiosHeaders.js";
9
- const i = m.validators;
10
- class k {
11
- constructor(t) {
12
- this.defaults = t || {}, this.interceptors = {
13
- request: new q(),
14
- response: new q()
15
- };
16
- }
17
- /**
18
- * Dispatch a request
19
- *
20
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
21
- * @param {?Object} config
22
- *
23
- * @returns {Promise} The Promise to be fulfilled
24
- */
25
- async request(t, e) {
26
- try {
27
- return await this._request(t, e);
28
- } catch (s) {
29
- if (s instanceof Error) {
30
- let l = {};
31
- Error.captureStackTrace ? Error.captureStackTrace(l) : l = new Error();
32
- const a = l.stack ? l.stack.replace(/^.+\n/, "") : "";
33
- try {
34
- s.stack ? a && !String(s.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (s.stack += `
35
- ` + a) : s.stack = a;
36
- } catch {
37
- }
38
- }
39
- throw s;
40
- }
41
- }
42
- _request(t, e) {
43
- typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = w(this.defaults, e);
44
- const { transitional: s, paramsSerializer: l, headers: a } = e;
45
- s !== void 0 && m.assertOptions(s, {
46
- silentJSONParsing: i.transitional(i.boolean),
47
- forcedJSONParsing: i.transitional(i.boolean),
48
- clarifyTimeoutError: i.transitional(i.boolean)
49
- }, !1), l != null && (d.isFunction(l) ? e.paramsSerializer = {
50
- serialize: l
51
- } : m.assertOptions(l, {
52
- encode: i.function,
53
- serialize: i.function
54
- }, !0)), e.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? e.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : e.allowAbsoluteUrls = !0), m.assertOptions(e, {
55
- baseUrl: i.spelling("baseURL"),
56
- withXsrfToken: i.spelling("withXSRFToken")
57
- }, !0), e.method = (e.method || this.defaults.method || "get").toLowerCase();
58
- let f = a && d.merge(
59
- a.common,
60
- a[e.method]
61
- );
62
- a && d.forEach(
63
- ["delete", "get", "head", "post", "put", "patch", "common"],
64
- (r) => {
65
- delete a[r];
66
- }
67
- ), e.headers = T.concat(f, a);
68
- const h = [];
69
- let y = !0;
70
- this.interceptors.request.forEach(function(n) {
71
- typeof n.runWhen == "function" && n.runWhen(e) === !1 || (y = y && n.synchronous, h.unshift(n.fulfilled, n.rejected));
72
- });
73
- const c = [];
74
- this.interceptors.response.forEach(function(n) {
75
- c.push(n.fulfilled, n.rejected);
76
- });
77
- let u, o = 0, p;
78
- if (!y) {
79
- const r = [R.bind(this), void 0];
80
- for (r.unshift.apply(r, h), r.push.apply(r, c), p = r.length, u = Promise.resolve(e); o < p; )
81
- u = u.then(r[o++], r[o++]);
82
- return u;
83
- }
84
- p = h.length;
85
- let b = e;
86
- for (o = 0; o < p; ) {
87
- const r = h[o++], n = h[o++];
88
- try {
89
- b = r(b);
90
- } catch (S) {
91
- n.call(this, S);
92
- break;
93
- }
94
- }
95
- try {
96
- u = R.call(this, b);
97
- } catch (r) {
98
- return Promise.reject(r);
99
- }
100
- for (o = 0, p = c.length; o < p; )
101
- u = u.then(c[o++], c[o++]);
102
- return u;
103
- }
104
- getUri(t) {
105
- t = w(this.defaults, t);
106
- const e = A(t.baseURL, t.url, t.allowAbsoluteUrls);
107
- return U(e, t.params, t.paramsSerializer);
108
- }
109
- }
110
- d.forEach(["delete", "get", "head", "options"], function(t) {
111
- k.prototype[t] = function(e, s) {
112
- return this.request(w(s || {}, {
113
- method: t,
114
- url: e,
115
- data: (s || {}).data
116
- }));
117
- };
118
- });
119
- d.forEach(["post", "put", "patch"], function(t) {
120
- function e(s) {
121
- return function(a, f, h) {
122
- return this.request(w(h || {}, {
123
- method: t,
124
- headers: s ? {
125
- "Content-Type": "multipart/form-data"
126
- } : {},
127
- url: a,
128
- data: f
129
- }));
130
- };
131
- }
132
- k.prototype[t] = e(), k.prototype[t + "Form"] = e(!0);
133
- });
134
- export {
135
- k as default
136
- };
@@ -1,54 +0,0 @@
1
- import a from "../utils.js";
2
- function e(t, i, o, E, r) {
3
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", i && (this.code = i), o && (this.config = o), E && (this.request = E), r && (this.response = r, this.status = r.status ? r.status : null);
4
- }
5
- a.inherits(e, Error, {
6
- toJSON: function() {
7
- return {
8
- // Standard
9
- message: this.message,
10
- name: this.name,
11
- // Microsoft
12
- description: this.description,
13
- number: this.number,
14
- // Mozilla
15
- fileName: this.fileName,
16
- lineNumber: this.lineNumber,
17
- columnNumber: this.columnNumber,
18
- stack: this.stack,
19
- // Axios
20
- config: a.toJSONObject(this.config),
21
- code: this.code,
22
- status: this.status
23
- };
24
- }
25
- });
26
- const R = e.prototype, u = {};
27
- [
28
- "ERR_BAD_OPTION_VALUE",
29
- "ERR_BAD_OPTION",
30
- "ECONNABORTED",
31
- "ETIMEDOUT",
32
- "ERR_NETWORK",
33
- "ERR_FR_TOO_MANY_REDIRECTS",
34
- "ERR_DEPRECATED",
35
- "ERR_BAD_RESPONSE",
36
- "ERR_BAD_REQUEST",
37
- "ERR_CANCELED",
38
- "ERR_NOT_SUPPORT",
39
- "ERR_INVALID_URL"
40
- // eslint-disable-next-line func-names
41
- ].forEach((t) => {
42
- u[t] = { value: t };
43
- });
44
- Object.defineProperties(e, u);
45
- Object.defineProperty(R, "isAxiosError", { value: !0 });
46
- e.from = (t, i, o, E, r, c) => {
47
- const s = Object.create(R);
48
- return a.toFlatObject(t, s, function(h) {
49
- return h !== Error.prototype;
50
- }, (n) => n !== "isAxiosError"), e.call(s, t.message, i, o, E, r), s.cause = t, s.name = t.name, c && Object.assign(s, c), s;
51
- };
52
- export {
53
- e as default
54
- };