bkui-vue 0.0.2-beta.78 → 0.0.2-beta.79

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 (211) hide show
  1. package/dist/index.cjs.js +64 -64
  2. package/dist/index.esm.js +12188 -12269
  3. package/dist/index.umd.js +65 -65
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +1 -321
  7. package/lib/alert/index.js +1 -214
  8. package/lib/animate-number/index.js +1 -155
  9. package/lib/backtop/index.js +1 -188
  10. package/lib/badge/index.js +1 -235
  11. package/lib/breadcrumb/index.js +1 -309
  12. package/lib/button/index.js +1 -321
  13. package/lib/card/index.js +1 -285
  14. package/lib/cascader/index.js +2 -2036
  15. package/lib/cascader/index.js.LICENSE.txt +1 -0
  16. package/lib/checkbox/index.js +1 -542
  17. package/lib/code-diff/index.js +1 -5501
  18. package/lib/collapse/index.js +1 -570
  19. package/lib/collapse-transition/index.js +1 -178
  20. package/lib/color-picker/index.js +1 -2665
  21. package/lib/components.js +1 -530
  22. package/lib/config-provider/index.js +1 -365
  23. package/lib/container/index.js +1 -391
  24. package/lib/date-picker/index.js +1 -5527
  25. package/lib/dialog/dialog.css +2 -0
  26. package/lib/dialog/dialog.variable.css +2 -0
  27. package/lib/dialog/index.js +2 -975
  28. package/lib/dialog/index.js.LICENSE.txt +1 -0
  29. package/lib/directives/index.js +2 -1375
  30. package/lib/directives/index.js.LICENSE.txt +14 -0
  31. package/lib/dist.index.js +1 -87
  32. package/lib/divider/index.js +1 -169
  33. package/lib/dropdown/index.js +1 -369
  34. package/lib/exception/index.js +1 -385
  35. package/lib/fixed-navbar/index.js +1 -154
  36. package/lib/form/index.js +1 -924
  37. package/lib/hooks.js +1 -73
  38. package/lib/icon/angle-double-down-line.js +1 -191
  39. package/lib/icon/angle-double-left-line.js +1 -191
  40. package/lib/icon/angle-double-left.js +1 -191
  41. package/lib/icon/angle-double-right-line.js +1 -191
  42. package/lib/icon/angle-double-right.js +1 -191
  43. package/lib/icon/angle-double-up-line.js +1 -191
  44. package/lib/icon/angle-down-fill.js +1 -191
  45. package/lib/icon/angle-down-line.js +1 -191
  46. package/lib/icon/angle-down.js +1 -191
  47. package/lib/icon/angle-left.js +1 -191
  48. package/lib/icon/angle-right.js +1 -191
  49. package/lib/icon/angle-up-fill.js +1 -191
  50. package/lib/icon/angle-up.js +1 -191
  51. package/lib/icon/archive-fill.js +1 -191
  52. package/lib/icon/arrows-left.js +1 -191
  53. package/lib/icon/arrows-right.js +1 -191
  54. package/lib/icon/assistant.js +1 -191
  55. package/lib/icon/audio-fill.js +1 -191
  56. package/lib/icon/bk.js +1 -191
  57. package/lib/icon/circle.js +1 -191
  58. package/lib/icon/close-line.js +1 -191
  59. package/lib/icon/close.js +1 -191
  60. package/lib/icon/code.js +1 -191
  61. package/lib/icon/cog-shape.js +1 -191
  62. package/lib/icon/collapse-left.js +1 -191
  63. package/lib/icon/copy-shape.js +1 -191
  64. package/lib/icon/copy.js +1 -191
  65. package/lib/icon/data-shape.js +1 -191
  66. package/lib/icon/del.js +1 -191
  67. package/lib/icon/doc-fill.js +1 -191
  68. package/lib/icon/done.js +1 -191
  69. package/lib/icon/down-shape.js +1 -191
  70. package/lib/icon/down-small.js +1 -191
  71. package/lib/icon/edit-line.js +1 -191
  72. package/lib/icon/ellipsis.js +1 -191
  73. package/lib/icon/enlarge-line.js +1 -191
  74. package/lib/icon/error.js +1 -191
  75. package/lib/icon/excel-fill.js +1 -191
  76. package/lib/icon/exclamation-circle-shape.js +1 -191
  77. package/lib/icon/eye.js +1 -191
  78. package/lib/icon/filliscreen-line.js +1 -191
  79. package/lib/icon/fix-line.js +1 -191
  80. package/lib/icon/fix-shape.js +1 -191
  81. package/lib/icon/folder-open.js +1 -191
  82. package/lib/icon/folder-shape-open.js +1 -191
  83. package/lib/icon/folder-shape.js +1 -191
  84. package/lib/icon/folder.js +1 -191
  85. package/lib/icon/funnel.js +1 -191
  86. package/lib/icon/help-document-fill.js +1 -191
  87. package/lib/icon/help-fill.js +1 -191
  88. package/lib/icon/help.js +1 -191
  89. package/lib/icon/image-fill.js +1 -276
  90. package/lib/icon/img-error.js +1 -276
  91. package/lib/icon/img-placehoulder.js +1 -276
  92. package/lib/icon/index.js +1 -2399
  93. package/lib/icon/info-line.js +1 -276
  94. package/lib/icon/info.js +1 -276
  95. package/lib/icon/left-shape.js +1 -276
  96. package/lib/icon/left-turn-line.js +1 -276
  97. package/lib/icon/narrow-line.js +1 -276
  98. package/lib/icon/original.js +1 -276
  99. package/lib/icon/pdf-fill.js +1 -276
  100. package/lib/icon/play-shape.js +1 -276
  101. package/lib/icon/plus.js +1 -276
  102. package/lib/icon/ppt-fill.js +1 -276
  103. package/lib/icon/qq.js +1 -276
  104. package/lib/icon/right-shape.js +1 -276
  105. package/lib/icon/right-turn-line.js +1 -276
  106. package/lib/icon/search.js +1 -276
  107. package/lib/icon/share.js +1 -276
  108. package/lib/icon/spinner.js +1 -276
  109. package/lib/icon/success.js +1 -276
  110. package/lib/icon/switcher-loading.js +1 -276
  111. package/lib/icon/text-file.js +1 -276
  112. package/lib/icon/text-fill.js +1 -276
  113. package/lib/icon/transfer.js +1 -276
  114. package/lib/icon/tree-application-shape.js +1 -276
  115. package/lib/icon/unfull-screen.js +1 -276
  116. package/lib/icon/unvisible.js +1 -276
  117. package/lib/icon/up-shape.js +1 -276
  118. package/lib/icon/upload.js +1 -276
  119. package/lib/icon/video-fill.js +1 -276
  120. package/lib/icon/warn.js +1 -276
  121. package/lib/icon/weixin-pro.js +1 -276
  122. package/lib/icon/weixin.js +1 -276
  123. package/lib/image/index.js +1 -641
  124. package/lib/index.js +1 -97
  125. package/lib/info-box/index.js +2 -1165
  126. package/lib/info-box/index.js.LICENSE.txt +1 -0
  127. package/lib/info-box/info-box.css +2 -0
  128. package/lib/info-box/info-box.less +2 -1
  129. package/lib/info-box/info-box.variable.css +2 -0
  130. package/lib/input/index.js +2 -1218
  131. package/lib/input/index.js.LICENSE.txt +1 -0
  132. package/lib/link/index.js +1 -160
  133. package/lib/loading/index.js +1 -381
  134. package/lib/locale/index.js +1 -465
  135. package/lib/menu/index.js +1 -724
  136. package/lib/message/index.js +2 -1795
  137. package/lib/message/index.js.LICENSE.txt +6 -0
  138. package/lib/modal/index.js +1 -396
  139. package/lib/modal/modal.css +2 -0
  140. package/lib/modal/modal.variable.css +2 -0
  141. package/lib/navigation/index.js +1 -367
  142. package/lib/notify/index.js +1 -397
  143. package/lib/overflow-title/index.js +1 -486
  144. package/lib/pagination/index.js +1 -880
  145. package/lib/plugin-popover/index.js +1 -3905
  146. package/lib/plugins/index.js +1 -63
  147. package/lib/pop-confirm/index.js +1 -273
  148. package/lib/popover/index.js +1 -3913
  149. package/lib/popover2/index.js +1 -107
  150. package/lib/preset.js +1 -93
  151. package/lib/process/index.js +2 -759
  152. package/lib/process/index.js.LICENSE.txt +1 -0
  153. package/lib/progress/index.js +1 -431
  154. package/lib/radio/index.js +1 -627
  155. package/lib/rate/index.js +1 -338
  156. package/lib/resize-layout/index.js +1 -429
  157. package/lib/search-select/index.js +2 -2729
  158. package/lib/search-select/index.js.LICENSE.txt +1 -0
  159. package/lib/select/index.js +2 -2240
  160. package/lib/select/index.js.LICENSE.txt +1 -0
  161. package/lib/shared/index.js +1 -2689
  162. package/lib/sideslider/index.js +2 -714
  163. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  164. package/lib/slider/index.js +2 -1291
  165. package/lib/slider/index.js.LICENSE.txt +1 -0
  166. package/lib/steps/index.js +2 -825
  167. package/lib/steps/index.js.LICENSE.txt +1 -0
  168. package/lib/swiper/index.js +1 -336
  169. package/lib/switcher/index.js +1 -277
  170. package/lib/tab/index.js +1 -914
  171. package/lib/table/components/table-column.d.ts +2 -0
  172. package/lib/table/const.d.ts +24 -2
  173. package/lib/table/index.d.ts +38 -0
  174. package/lib/table/index.js +1 -6406
  175. package/lib/table/plugins/use-column-resize.d.ts +30 -10
  176. package/lib/table/plugins/use-fixed-column.d.ts +9 -9
  177. package/lib/table/plugins/use-pagination.d.ts +7 -4
  178. package/lib/table/props.d.ts +22 -1
  179. package/lib/table/render.d.ts +7 -17
  180. package/lib/table/table.css +4 -1
  181. package/lib/table/table.d.ts +44 -23
  182. package/lib/table/table.less +4 -1
  183. package/lib/table/table.variable.css +4 -1
  184. package/lib/table/use-attributes.d.ts +55 -0
  185. package/lib/table/use-column.d.ts +177 -53
  186. package/lib/table/use-common.d.ts +1602 -76
  187. package/lib/table/use-render.d.ts +11 -0
  188. package/lib/table/utils.d.ts +22 -16
  189. package/lib/table-column/index.d.ts +6 -0
  190. package/lib/table-column/index.js +1 -731
  191. package/lib/tag/index.js +1 -233
  192. package/lib/tag-input/index.js +1 -1660
  193. package/lib/time-picker/index.js +1 -71
  194. package/lib/timeline/index.js +1 -241
  195. package/lib/transfer/index.js +1 -673
  196. package/lib/tree/index.d.ts +12 -0
  197. package/lib/tree/index.js +1 -2445
  198. package/lib/tree/props.d.ts +8 -1
  199. package/lib/tree/tree.d.ts +7 -0
  200. package/lib/tree/use-node-action.d.ts +2 -1
  201. package/lib/tree/use-node-attribute.d.ts +2 -0
  202. package/lib/tree/use-search.d.ts +2 -2
  203. package/lib/tree/util.d.ts +2 -2
  204. package/lib/upload/index.js +2 -2874
  205. package/lib/upload/index.js.LICENSE.txt +1 -0
  206. package/lib/virtual-render/index.d.ts +12 -0
  207. package/lib/virtual-render/index.js +1 -792
  208. package/lib/virtual-render/props.d.ts +4 -0
  209. package/lib/virtual-render/v-virtual-render.d.ts +19 -1
  210. package/lib/virtual-render/virtual-render.d.ts +7 -0
  211. package/package.json +1 -2
@@ -1,759 +1,2 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
2
- import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
- import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
4
- import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
5
- /******/ var __webpack_modules__ = ({
6
-
7
- /***/ 7609:
8
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9
-
10
- var _typeof = (__webpack_require__(7425)["default"]);
11
- function _regeneratorRuntime() {
12
- "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
13
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
14
- return exports;
15
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
16
- var exports = {},
17
- Op = Object.prototype,
18
- hasOwn = Op.hasOwnProperty,
19
- defineProperty = Object.defineProperty || function (obj, key, desc) {
20
- obj[key] = desc.value;
21
- },
22
- $Symbol = "function" == typeof Symbol ? Symbol : {},
23
- iteratorSymbol = $Symbol.iterator || "@@iterator",
24
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
25
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
26
- function define(obj, key, value) {
27
- return Object.defineProperty(obj, key, {
28
- value: value,
29
- enumerable: !0,
30
- configurable: !0,
31
- writable: !0
32
- }), obj[key];
33
- }
34
- try {
35
- define({}, "");
36
- } catch (err) {
37
- define = function define(obj, key, value) {
38
- return obj[key] = value;
39
- };
40
- }
41
- function wrap(innerFn, outerFn, self, tryLocsList) {
42
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
43
- generator = Object.create(protoGenerator.prototype),
44
- context = new Context(tryLocsList || []);
45
- return defineProperty(generator, "_invoke", {
46
- value: makeInvokeMethod(innerFn, self, context)
47
- }), generator;
48
- }
49
- function tryCatch(fn, obj, arg) {
50
- try {
51
- return {
52
- type: "normal",
53
- arg: fn.call(obj, arg)
54
- };
55
- } catch (err) {
56
- return {
57
- type: "throw",
58
- arg: err
59
- };
60
- }
61
- }
62
- exports.wrap = wrap;
63
- var ContinueSentinel = {};
64
- function Generator() {}
65
- function GeneratorFunction() {}
66
- function GeneratorFunctionPrototype() {}
67
- var IteratorPrototype = {};
68
- define(IteratorPrototype, iteratorSymbol, function () {
69
- return this;
70
- });
71
- var getProto = Object.getPrototypeOf,
72
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
73
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
74
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
75
- function defineIteratorMethods(prototype) {
76
- ["next", "throw", "return"].forEach(function (method) {
77
- define(prototype, method, function (arg) {
78
- return this._invoke(method, arg);
79
- });
80
- });
81
- }
82
- function AsyncIterator(generator, PromiseImpl) {
83
- function invoke(method, arg, resolve, reject) {
84
- var record = tryCatch(generator[method], generator, arg);
85
- if ("throw" !== record.type) {
86
- var result = record.arg,
87
- value = result.value;
88
- return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
89
- invoke("next", value, resolve, reject);
90
- }, function (err) {
91
- invoke("throw", err, resolve, reject);
92
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
93
- result.value = unwrapped, resolve(result);
94
- }, function (error) {
95
- return invoke("throw", error, resolve, reject);
96
- });
97
- }
98
- reject(record.arg);
99
- }
100
- var previousPromise;
101
- defineProperty(this, "_invoke", {
102
- value: function value(method, arg) {
103
- function callInvokeWithMethodAndArg() {
104
- return new PromiseImpl(function (resolve, reject) {
105
- invoke(method, arg, resolve, reject);
106
- });
107
- }
108
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
109
- }
110
- });
111
- }
112
- function makeInvokeMethod(innerFn, self, context) {
113
- var state = "suspendedStart";
114
- return function (method, arg) {
115
- if ("executing" === state) throw new Error("Generator is already running");
116
- if ("completed" === state) {
117
- if ("throw" === method) throw arg;
118
- return doneResult();
119
- }
120
- for (context.method = method, context.arg = arg;;) {
121
- var delegate = context.delegate;
122
- if (delegate) {
123
- var delegateResult = maybeInvokeDelegate(delegate, context);
124
- if (delegateResult) {
125
- if (delegateResult === ContinueSentinel) continue;
126
- return delegateResult;
127
- }
128
- }
129
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
130
- if ("suspendedStart" === state) throw state = "completed", context.arg;
131
- context.dispatchException(context.arg);
132
- } else "return" === context.method && context.abrupt("return", context.arg);
133
- state = "executing";
134
- var record = tryCatch(innerFn, self, context);
135
- if ("normal" === record.type) {
136
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
137
- return {
138
- value: record.arg,
139
- done: context.done
140
- };
141
- }
142
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
143
- }
144
- };
145
- }
146
- function maybeInvokeDelegate(delegate, context) {
147
- var methodName = context.method,
148
- method = delegate.iterator[methodName];
149
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
150
- var record = tryCatch(method, delegate.iterator, context.arg);
151
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
152
- var info = record.arg;
153
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
154
- }
155
- function pushTryEntry(locs) {
156
- var entry = {
157
- tryLoc: locs[0]
158
- };
159
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
160
- }
161
- function resetTryEntry(entry) {
162
- var record = entry.completion || {};
163
- record.type = "normal", delete record.arg, entry.completion = record;
164
- }
165
- function Context(tryLocsList) {
166
- this.tryEntries = [{
167
- tryLoc: "root"
168
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
169
- }
170
- function values(iterable) {
171
- if (iterable) {
172
- var iteratorMethod = iterable[iteratorSymbol];
173
- if (iteratorMethod) return iteratorMethod.call(iterable);
174
- if ("function" == typeof iterable.next) return iterable;
175
- if (!isNaN(iterable.length)) {
176
- var i = -1,
177
- next = function next() {
178
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
179
- return next.value = undefined, next.done = !0, next;
180
- };
181
- return next.next = next;
182
- }
183
- }
184
- return {
185
- next: doneResult
186
- };
187
- }
188
- function doneResult() {
189
- return {
190
- value: undefined,
191
- done: !0
192
- };
193
- }
194
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
195
- value: GeneratorFunctionPrototype,
196
- configurable: !0
197
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
198
- value: GeneratorFunction,
199
- configurable: !0
200
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
201
- var ctor = "function" == typeof genFun && genFun.constructor;
202
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
203
- }, exports.mark = function (genFun) {
204
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
205
- }, exports.awrap = function (arg) {
206
- return {
207
- __await: arg
208
- };
209
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
210
- return this;
211
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
212
- void 0 === PromiseImpl && (PromiseImpl = Promise);
213
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
214
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
215
- return result.done ? result.value : iter.next();
216
- });
217
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
218
- return this;
219
- }), define(Gp, "toString", function () {
220
- return "[object Generator]";
221
- }), exports.keys = function (val) {
222
- var object = Object(val),
223
- keys = [];
224
- for (var key in object) keys.push(key);
225
- return keys.reverse(), function next() {
226
- for (; keys.length;) {
227
- var key = keys.pop();
228
- if (key in object) return next.value = key, next.done = !1, next;
229
- }
230
- return next.done = !0, next;
231
- };
232
- }, exports.values = values, Context.prototype = {
233
- constructor: Context,
234
- reset: function reset(skipTempReset) {
235
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
236
- },
237
- stop: function stop() {
238
- this.done = !0;
239
- var rootRecord = this.tryEntries[0].completion;
240
- if ("throw" === rootRecord.type) throw rootRecord.arg;
241
- return this.rval;
242
- },
243
- dispatchException: function dispatchException(exception) {
244
- if (this.done) throw exception;
245
- var context = this;
246
- function handle(loc, caught) {
247
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
248
- }
249
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
250
- var entry = this.tryEntries[i],
251
- record = entry.completion;
252
- if ("root" === entry.tryLoc) return handle("end");
253
- if (entry.tryLoc <= this.prev) {
254
- var hasCatch = hasOwn.call(entry, "catchLoc"),
255
- hasFinally = hasOwn.call(entry, "finallyLoc");
256
- if (hasCatch && hasFinally) {
257
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
258
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
259
- } else if (hasCatch) {
260
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
261
- } else {
262
- if (!hasFinally) throw new Error("try statement without catch or finally");
263
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
264
- }
265
- }
266
- }
267
- },
268
- abrupt: function abrupt(type, arg) {
269
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
270
- var entry = this.tryEntries[i];
271
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
272
- var finallyEntry = entry;
273
- break;
274
- }
275
- }
276
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
277
- var record = finallyEntry ? finallyEntry.completion : {};
278
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
279
- },
280
- complete: function complete(record, afterLoc) {
281
- if ("throw" === record.type) throw record.arg;
282
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
283
- },
284
- finish: function finish(finallyLoc) {
285
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
286
- var entry = this.tryEntries[i];
287
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
288
- }
289
- },
290
- "catch": function _catch(tryLoc) {
291
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
292
- var entry = this.tryEntries[i];
293
- if (entry.tryLoc === tryLoc) {
294
- var record = entry.completion;
295
- if ("throw" === record.type) {
296
- var thrown = record.arg;
297
- resetTryEntry(entry);
298
- }
299
- return thrown;
300
- }
301
- }
302
- throw new Error("illegal catch attempt");
303
- },
304
- delegateYield: function delegateYield(iterable, resultName, nextLoc) {
305
- return this.delegate = {
306
- iterator: values(iterable),
307
- resultName: resultName,
308
- nextLoc: nextLoc
309
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
310
- }
311
- }, exports;
312
- }
313
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
314
-
315
- /***/ }),
316
-
317
- /***/ 7425:
318
- /***/ ((module) => {
319
-
320
- function _typeof(obj) {
321
- "@babel/helpers - typeof";
322
-
323
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
324
- return typeof obj;
325
- } : function (obj) {
326
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
327
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
328
- }
329
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
330
-
331
- /***/ }),
332
-
333
- /***/ 2841:
334
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
335
-
336
- // TODO(Babel 8): Remove this file.
337
-
338
- var runtime = __webpack_require__(7609)();
339
- module.exports = runtime;
340
-
341
- // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
342
- try {
343
- regeneratorRuntime = runtime;
344
- } catch (accidentalStrictMode) {
345
- if (typeof globalThis === "object") {
346
- globalThis.regeneratorRuntime = runtime;
347
- } else {
348
- Function("r", "regeneratorRuntime = r")(runtime);
349
- }
350
- }
351
-
352
-
353
- /***/ })
354
-
355
- /******/ });
356
- /************************************************************************/
357
- /******/ // The module cache
358
- /******/ var __webpack_module_cache__ = {};
359
- /******/
360
- /******/ // The require function
361
- /******/ function __webpack_require__(moduleId) {
362
- /******/ // Check if module is in cache
363
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
364
- /******/ if (cachedModule !== undefined) {
365
- /******/ return cachedModule.exports;
366
- /******/ }
367
- /******/ // Create a new module (and put it into the cache)
368
- /******/ var module = __webpack_module_cache__[moduleId] = {
369
- /******/ // no module.id needed
370
- /******/ // no module.loaded needed
371
- /******/ exports: {}
372
- /******/ };
373
- /******/
374
- /******/ // Execute the module function
375
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
376
- /******/
377
- /******/ // Return the exports of the module
378
- /******/ return module.exports;
379
- /******/ }
380
- /******/
381
- /************************************************************************/
382
- /******/ /* webpack/runtime/compat get default export */
383
- /******/ (() => {
384
- /******/ // getDefaultExport function for compatibility with non-harmony modules
385
- /******/ __webpack_require__.n = (module) => {
386
- /******/ var getter = module && module.__esModule ?
387
- /******/ () => (module['default']) :
388
- /******/ () => (module);
389
- /******/ __webpack_require__.d(getter, { a: getter });
390
- /******/ return getter;
391
- /******/ };
392
- /******/ })();
393
- /******/
394
- /******/ /* webpack/runtime/define property getters */
395
- /******/ (() => {
396
- /******/ // define getter functions for harmony exports
397
- /******/ __webpack_require__.d = (exports, definition) => {
398
- /******/ for(var key in definition) {
399
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
400
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
401
- /******/ }
402
- /******/ }
403
- /******/ };
404
- /******/ })();
405
- /******/
406
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
407
- /******/ (() => {
408
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
409
- /******/ })();
410
- /******/
411
- /************************************************************************/
412
- var __webpack_exports__ = {};
413
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
414
- (() => {
415
-
416
- // EXPORTS
417
- __webpack_require__.d(__webpack_exports__, {
418
- Z: () => (/* binding */ src)
419
- });
420
-
421
- ;// CONCATENATED MODULE: external "../shared"
422
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
423
- var y = x => () => x
424
- const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
425
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
426
- function _typeof(obj) {
427
- "@babel/helpers - typeof";
428
-
429
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
430
- return typeof obj;
431
- } : function (obj) {
432
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
433
- }, _typeof(obj);
434
- }
435
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
436
-
437
- function _toPrimitive(input, hint) {
438
- if (_typeof(input) !== "object" || input === null) return input;
439
- var prim = input[Symbol.toPrimitive];
440
- if (prim !== undefined) {
441
- var res = prim.call(input, hint || "default");
442
- if (_typeof(res) !== "object") return res;
443
- throw new TypeError("@@toPrimitive must return a primitive value.");
444
- }
445
- return (hint === "string" ? String : Number)(input);
446
- }
447
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
448
-
449
-
450
- function _toPropertyKey(arg) {
451
- var key = _toPrimitive(arg, "string");
452
- return _typeof(key) === "symbol" ? key : String(key);
453
- }
454
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
455
-
456
- function _defineProperty(obj, key, value) {
457
- key = _toPropertyKey(key);
458
- if (key in obj) {
459
- Object.defineProperty(obj, key, {
460
- value: value,
461
- enumerable: true,
462
- configurable: true,
463
- writable: true
464
- });
465
- } else {
466
- obj[key] = value;
467
- }
468
- return obj;
469
- }
470
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
471
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
472
- try {
473
- var info = gen[key](arg);
474
- var value = info.value;
475
- } catch (error) {
476
- reject(error);
477
- return;
478
- }
479
- if (info.done) {
480
- resolve(value);
481
- } else {
482
- Promise.resolve(value).then(_next, _throw);
483
- }
484
- }
485
- function _asyncToGenerator(fn) {
486
- return function () {
487
- var self = this,
488
- args = arguments;
489
- return new Promise(function (resolve, reject) {
490
- var gen = fn.apply(self, args);
491
- function _next(value) {
492
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
493
- }
494
- function _throw(err) {
495
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
496
- }
497
- _next(undefined);
498
- });
499
- };
500
- }
501
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
502
- function _arrayLikeToArray(arr, len) {
503
- if (len == null || len > arr.length) len = arr.length;
504
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
505
- return arr2;
506
- }
507
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
508
-
509
- function _arrayWithoutHoles(arr) {
510
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
511
- }
512
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
513
- function _iterableToArray(iter) {
514
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
515
- }
516
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
517
-
518
- function _unsupportedIterableToArray(o, minLen) {
519
- if (!o) return;
520
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
521
- var n = Object.prototype.toString.call(o).slice(8, -1);
522
- if (n === "Object" && o.constructor) n = o.constructor.name;
523
- if (n === "Map" || n === "Set") return Array.from(o);
524
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
525
- }
526
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
527
- function _nonIterableSpread() {
528
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
529
- }
530
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
531
-
532
-
533
-
534
-
535
- function _toConsumableArray(arr) {
536
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
537
- }
538
- ;// CONCATENATED MODULE: external "vue"
539
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
540
- var external_vue_y = x => () => x
541
- const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
542
- // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
543
- var regenerator = __webpack_require__(2841);
544
- var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
545
- ;// CONCATENATED MODULE: external "../config-provider"
546
- var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
547
- var external_config_provider_y = x => () => x
548
- const external_config_provider_namespaceObject = external_config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
549
- ;// CONCATENATED MODULE: external "../icon"
550
- var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
551
- var external_icon_y = x => () => x
552
- const external_icon_namespaceObject = external_icon_x({ ["Circle"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Circle, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Done, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Error });
553
- ;// CONCATENATED MODULE: ../../packages/process/src/process.tsx
554
-
555
-
556
-
557
-
558
-
559
- /**
560
- * Tencent is pleased to support the open source community by making
561
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
562
- *
563
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
564
- *
565
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
566
- *
567
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
568
- *
569
- * ---------------------------------------------------
570
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
571
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
572
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
573
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
574
- *
575
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
576
- * the Software.
577
- *
578
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
579
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
580
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
581
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
582
- * IN THE SOFTWARE.
583
- */
584
-
585
-
586
-
587
-
588
- // import { Error, Circle, Done } from '@bkui-vue/icon';
589
- var processProps = {
590
- list: external_shared_namespaceObject.PropTypes.array.def([]),
591
- controllable: external_shared_namespaceObject.PropTypes.bool.def(false),
592
- showSteps: external_shared_namespaceObject.PropTypes.bool.def(false),
593
- curProcess: external_shared_namespaceObject.PropTypes.number.def(0),
594
- displayKey: external_shared_namespaceObject.PropTypes.string.def('content'),
595
- extCls: external_shared_namespaceObject.PropTypes.string
596
- };
597
- /* harmony default export */ const process = ((0,external_vue_namespaceObject.defineComponent)({
598
- name: 'Process',
599
- props: processProps,
600
- emits: ['update:curProcess', 'click'],
601
- setup: function setup(props, _ref) {
602
- var emit = _ref.emit;
603
- var t = (0,external_config_provider_namespaceObject.useLocale)('process');
604
- var lang = (0,external_config_provider_namespaceObject.useLocale)('lang');
605
- var defaultProcessList = (0,external_vue_namespaceObject.ref)([]);
606
- var paddingBottom = (0,external_vue_namespaceObject.ref)(0);
607
- var init = function init() {
608
- var _defaultProcessList$v, _props$list;
609
- (_defaultProcessList$v = defaultProcessList.value).splice.apply(_defaultProcessList$v, [0, defaultProcessList.value.length].concat([{
610
- content: t.value.step1
611
- }, {
612
- content: t.value.step2
613
- }, {
614
- content: t.value.step3
615
- }, {
616
- content: t.value.step4
617
- }]));
618
- if ((_props$list = props.list) !== null && _props$list !== void 0 && _props$list.length) {
619
- var _defaultProcessList$v2;
620
- (_defaultProcessList$v2 = defaultProcessList.value).splice.apply(_defaultProcessList$v2, [0, defaultProcessList.value.length].concat(_toConsumableArray(props.list)));
621
- }
622
- };
623
- (0,external_vue_namespaceObject.watch)(function () {
624
- return lang.value;
625
- }, function () {
626
- init();
627
- });
628
- var jumpTo = /*#__PURE__*/function () {
629
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(index) {
630
- return regenerator_default().wrap(function _callee$(_context) {
631
- while (1) switch (_context.prev = _context.next) {
632
- case 0:
633
- try {
634
- if (props.controllable && index !== props.curProcess) {
635
- emit('update:curProcess', index);
636
- emit('click', index);
637
- }
638
- } catch (e) {
639
- console.warn(e);
640
- }
641
- case 1:
642
- case "end":
643
- return _context.stop();
644
- }
645
- }, _callee);
646
- }));
647
- return function jumpTo(_x) {
648
- return _ref2.apply(this, arguments);
649
- };
650
- }();
651
- (0,external_vue_namespaceObject.onMounted)(init);
652
- var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
653
- resolveClassName = _usePrefix.resolveClassName;
654
- return {
655
- defaultProcessList: defaultProcessList,
656
- paddingBottom: paddingBottom,
657
- jumpTo: jumpTo,
658
- resolveClassName: resolveClassName
659
- };
660
- },
661
- render: function render() {
662
- var _this = this;
663
- var processClsPrefix = this.resolveClassName('process');
664
- var processCls = (0,external_shared_namespaceObject.classes)(_defineProperty({}, "".concat(this.extCls), !!this.extCls), "".concat(processClsPrefix));
665
- var isLoadingStatus = function isLoadingStatus(item) {
666
- return item.status === 'loading';
667
- };
668
- var isErrorStatus = function isErrorStatus(item) {
669
- return item.status === 'error';
670
- };
671
- var isDone = function isDone(index) {
672
- return _this.curProcess >= index + 1 || _this.defaultProcessList[index].status === 'done';
673
- };
674
- var isIcon = function isIcon(item) {
675
- return item.icon ? item.icon : '';
676
- };
677
- var renderIcon = function renderIcon(index, item) {
678
- if (index === _this.curProcess - 1 && isLoadingStatus(item)) {
679
- return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Circle, {
680
- "class": "".concat(_this.resolveClassName('icon'), " ").concat(_this.resolveClassName('process-icon'), " icon-loading")
681
- }, null);
682
- }
683
- if (index === _this.curProcess - 1 && isErrorStatus(item)) {
684
- return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Error, {
685
- "class": "".concat(_this.resolveClassName('process-icon'), " icon-error")
686
- }, null);
687
- }
688
- if (index === _this.curProcess - 1 && isIcon(item)) {
689
- return (0,external_vue_namespaceObject.createVNode)("span", {
690
- "class": "".concat(_this.resolveClassName('process-icon-custom'))
691
- }, [(0,external_vue_namespaceObject.createVNode)(item.icon, null, null)]);
692
- }
693
- if (isDone(index)) {
694
- return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Done, {
695
- "class": "".concat(_this.resolveClassName('process-icon-done'))
696
- }, null);
697
- }
698
- // return (<span class="number">{<item.icon/>}</span>);
699
- };
700
-
701
- return (0,external_vue_namespaceObject.createVNode)("div", {
702
- "class": processCls
703
- }, [(0,external_vue_namespaceObject.createVNode)("ul", {
704
- "style": {
705
- paddingBottom: "".concat(this.paddingBottom, "px")
706
- }
707
- }, [this.defaultProcessList.map(function (item, index) {
708
- return (0,external_vue_namespaceObject.createVNode)("li", {
709
- "onClick": function onClick() {
710
- _this.jumpTo(index + 1);
711
- },
712
- "style": {
713
- cursor: _this.controllable ? 'pointer' : ''
714
- },
715
- "class": {
716
- success: _this.curProcess >= index + 1,
717
- current: isLoadingStatus(item) && index === _this.curProcess - 1,
718
- error: isErrorStatus(item) && index === _this.curProcess - 1
719
- }
720
- }, [(0,external_vue_namespaceObject.createVNode)("div", null, [(0,external_vue_namespaceObject.createVNode)("span", {
721
- "class": "display"
722
- }, [item[_this.displayKey]]), renderIcon(index, item)])]);
723
- })])]);
724
- }
725
- }));
726
- ;// CONCATENATED MODULE: ../../packages/process/src/index.ts
727
- /*
728
- * Tencent is pleased to support the open source community by making
729
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
730
- *
731
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
732
- *
733
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
734
- *
735
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
736
- *
737
- * ---------------------------------------------------
738
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
739
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
740
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
741
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
742
- *
743
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
744
- * the Software.
745
- *
746
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
747
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
748
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
749
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
750
- * IN THE SOFTWARE.
751
- */
752
-
753
-
754
- var BkProcess = (0,external_shared_namespaceObject.withInstall)(process);
755
- /* harmony default export */ const src = (BkProcess);
756
- })();
757
-
758
- var __webpack_exports__default = __webpack_exports__.Z;
759
- export { __webpack_exports__default as default };
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ import*as t from"../shared";import*as e from"vue";import*as r from"../config-provider";import*as o from"../icon";var n={7609:(t,e,r)=>{var o=r(7425).default;function n(){t.exports=n=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,o){var n=e&&e.prototype instanceof y?e:y,i=Object.create(n.prototype),c=new _(o||[]);return a(i,"_invoke",{value:E(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d={};function y(){}function v(){}function m(){}var g={};f(g,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(O([])));w&&w!==r&&i.call(w,s)&&(g=w);var x=m.prototype=y.prototype=Object.create(g);function P(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(n,a,c,s){var u=h(t[n],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==o(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var n;a(this,"_invoke",{value:function(t,o){function i(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(i,i):i()}})}function E(t,e,r){var o="suspendedStart";return function(n,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw i;return{value:void 0,done:!0}}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var c=N(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var s=h(t,e,r);if("normal"===s.type){if(o=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o="completed",r.method="throw",r.arg=s.arg)}}}function N(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,N(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var n=h(o,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function O(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return v.prototype=m,a(x,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:v,configurable:!0}),v.displayName=f(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,f(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},P(L.prototype),f(L.prototype,u,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var a=new L(p(t,r,o,n),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(x),f(x,l,"Generator"),f(x,s,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var o in e)r.push(o);return r.reverse(),function t(){for(;r.length;){var o=r.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},e.values=O,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return a.type="throw",a.arg=t,e.next=r,o&&(e.method="next",e.arg=void 0),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],a=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var c=i.call(n,"catchLoc"),s=i.call(n,"finallyLoc");if(c&&s){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(c){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=t,a.arg=e,n?(this.method="next",this.next=n.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;j(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},7425:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2841:(t,e,r)=>{var o=r(7609)();t.exports=o;try{regeneratorRuntime=o}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var c={};(()=>{a.d(c,{Z:()=>g});const n=(i={PropTypes:()=>t.PropTypes,classes:()=>t.classes,withInstall:()=>t.withInstall},s={},a.d(s,i),s);var i,s;function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}const f=(t=>{var e={};return a.d(e,t),e})({createVNode:()=>e.createVNode,defineComponent:()=>e.defineComponent,onMounted:()=>e.onMounted,ref:()=>e.ref,watch:()=>e.watch});var p=a(2841),h=a.n(p);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const d=(t=>{var e={};return a.d(e,t),e})({useLocale:()=>r.useLocale,usePrefix:()=>r.usePrefix}),y=(t=>{var e={};return a.d(e,t),e})({Circle:()=>o.Circle,Done:()=>o.Done,Error:()=>o.Error});var v={list:n.PropTypes.array.def([]),controllable:n.PropTypes.bool.def(!1),showSteps:n.PropTypes.bool.def(!1),curProcess:n.PropTypes.number.def(0),displayKey:n.PropTypes.string.def("content"),extCls:n.PropTypes.string};const m=(0,f.defineComponent)({name:"Process",props:v,emits:["update:curProcess","click"],setup:function(t,e){var r=this,o=e.emit,n=(0,d.useLocale)("process"),i=(0,d.useLocale)("lang"),a=(0,f.ref)([]),c=(0,f.ref)(0),s=function(){var e,r,o,i;(e=a.value).splice.apply(e,[0,a.value.length].concat([{content:n.value.step1},{content:n.value.step2},{content:n.value.step3},{content:n.value.step4}])),(null===(r=t.list)||void 0===r?void 0:r.length)&&(o=a.value).splice.apply(o,[0,a.value.length].concat(function(t){if(Array.isArray(t))return l(t)}(i=t.list)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))};(0,f.watch)((function(){return i.value}),(function(){s()})),(0,f.onMounted)(s);var u=(0,d.usePrefix)().resolveClassName;return{defaultProcessList:a,paddingBottom:c,jumpTo:function(e){return n=r,i=void 0,a=void 0,c=h().mark((function r(){return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:try{t.controllable&&e!==t.curProcess&&(o("update:curProcess",e),o("click",e))}catch(t){console.warn(t)}case 1:case"end":return r.stop()}}),r)})),new(a||(a=Promise))((function(t,e){function r(t){try{s(c.next(t))}catch(t){e(t)}}function o(t){try{s(c.throw(t))}catch(t){e(t)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof a?n:new a((function(t){t(n)}))).then(r,o)}s((c=c.apply(n,i||[])).next())}));var n,i,a,c},resolveClassName:u}},render:function(){var t,e,r,o=this,i=this.resolveClassName("process"),a=(0,n.classes)((t={},e="".concat(this.extCls),r=!!this.extCls,(e=function(t){var e=function(t,e){if("object"!==u(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!==u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===u(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t),"".concat(i)),c=function(t){return"loading"===t.status},s=function(t){return"error"===t.status},l=function(t,e){return t===o.curProcess-1&&c(e)?(0,f.createVNode)(y.Circle,{class:"".concat(o.resolveClassName("icon")," ").concat(o.resolveClassName("process-icon")," icon-loading")},null):t===o.curProcess-1&&s(e)?(0,f.createVNode)(y.Error,{class:"".concat(o.resolveClassName("process-icon")," icon-error")},null):t===o.curProcess-1&&function(t){return t.icon?t.icon:""}(e)?(0,f.createVNode)("span",{class:"".concat(o.resolveClassName("process-icon-custom"))},[(0,f.createVNode)(e.icon,null,null)]):function(t){return o.curProcess>=t+1||"done"===o.defaultProcessList[t].status}(t)?(0,f.createVNode)(y.Done,{class:"".concat(o.resolveClassName("process-icon-done"))},null):void 0};return(0,f.createVNode)("div",{class:a},[(0,f.createVNode)("ul",{style:{paddingBottom:"".concat(this.paddingBottom,"px")}},[this.defaultProcessList.map((function(t,e){return(0,f.createVNode)("li",{onClick:function(){o.jumpTo(e+1)},style:{cursor:o.controllable?"pointer":""},class:{success:o.curProcess>=e+1,current:c(t)&&e===o.curProcess-1,error:s(t)&&e===o.curProcess-1}},[(0,f.createVNode)("div",null,[(0,f.createVNode)("span",{class:"display"},[t[o.displayKey]]),l(e,t)])])}))])])}}),g=(0,n.withInstall)(m)})();var s=c.Z;export{s as default};