bkui-vue 1.0.0 → 1.0.1

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 (261) hide show
  1. package/README.md +1 -0
  2. package/dist/index.cjs.js +47 -47
  3. package/dist/index.esm.js +10405 -10394
  4. package/dist/index.umd.js +47 -47
  5. package/dist/locale/en.esm.js +1 -1
  6. package/dist/locale/en.esm.js.map +1 -1
  7. package/dist/locale/en.umd.js +1 -1
  8. package/dist/locale/en.umd.js.map +1 -1
  9. package/dist/locale/zh-cn.esm.js +1 -1
  10. package/dist/locale/zh-cn.esm.js.map +1 -1
  11. package/dist/locale/zh-cn.umd.js +1 -1
  12. package/dist/locale/zh-cn.umd.js.map +1 -1
  13. package/dist/style.css +1 -1
  14. package/dist/style.variable.css +1 -1
  15. package/lib/affix/index.d.ts +57 -111
  16. package/lib/affix/index.js +19 -19
  17. package/lib/alert/alert.d.ts +1 -1
  18. package/lib/alert/index.d.ts +82 -132
  19. package/lib/alert/index.js +20 -20
  20. package/lib/animate-number/index.d.ts +33 -96
  21. package/lib/backtop/index.d.ts +69 -117
  22. package/lib/badge/badge.d.ts +1 -1
  23. package/lib/badge/index.d.ts +120 -153
  24. package/lib/badge/index.js +19 -19
  25. package/lib/breadcrumb/index.d.ts +67 -119
  26. package/lib/breadcrumb/index.js +17 -17
  27. package/lib/button/button.d.ts +2 -2
  28. package/lib/button/index.d.ts +119 -155
  29. package/lib/button/index.js +19 -20
  30. package/lib/card/card.d.ts +1 -1
  31. package/lib/card/index.d.ts +129 -158
  32. package/lib/card/index.js +20 -22
  33. package/lib/cascader/cascader.d.ts +3 -3
  34. package/lib/cascader/index.d.ts +393 -354
  35. package/lib/cascader/index.js +233 -234
  36. package/lib/checkbox/checkbox.d.ts +1 -1
  37. package/lib/checkbox/index.d.ts +119 -161
  38. package/lib/checkbox/index.js +39 -41
  39. package/lib/code-diff/index.d.ts +65 -82
  40. package/lib/code-diff/index.js +381 -438
  41. package/lib/collapse/index.d.ts +144 -168
  42. package/lib/collapse/index.js +21 -21
  43. package/lib/collapse-transition/index.d.ts +19 -94
  44. package/lib/color-picker/color-picker.d.ts +1 -1
  45. package/lib/color-picker/index.d.ts +128 -154
  46. package/lib/color-picker/index.js +25 -28
  47. package/lib/config-provider/config-provider.d.ts +9 -0
  48. package/lib/config-provider/index.d.ts +168 -223
  49. package/lib/config-provider/index.js +19 -19
  50. package/lib/config-provider/token.d.ts +3 -0
  51. package/lib/container/container.d.ts +1 -1
  52. package/lib/container/index.d.ts +74 -85
  53. package/lib/container/index.js +19 -19
  54. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  55. package/lib/date-picker/base/time-spinner.d.ts +3 -3
  56. package/lib/date-picker/date-picker.d.ts +3 -3
  57. package/lib/date-picker/index.d.ts +384 -351
  58. package/lib/date-picker/index.js +92 -104
  59. package/lib/date-picker/panel/date-range.d.ts +1 -1
  60. package/lib/date-picker/panel/date.d.ts +1 -1
  61. package/lib/date-picker/panel/time-range.d.ts +2 -2
  62. package/lib/date-picker/panel/time.d.ts +1 -1
  63. package/lib/date-picker/time-picker.d.ts +3 -3
  64. package/lib/dialog/index.d.ts +355 -309
  65. package/lib/dialog/index.js +227 -228
  66. package/lib/directives/index.js +27 -27
  67. package/lib/divider/index.d.ts +57 -111
  68. package/lib/dropdown/dropdown.d.ts +1 -1
  69. package/lib/dropdown/index.d.ts +94 -136
  70. package/lib/dropdown/index.js +17 -17
  71. package/lib/exception/index.d.ts +41 -102
  72. package/lib/exception/index.js +18 -19
  73. package/lib/fixed-navbar/index.d.ts +59 -113
  74. package/lib/form/form.css +3 -0
  75. package/lib/form/form.d.ts +1 -1
  76. package/lib/form/form.less +3 -0
  77. package/lib/form/form.variable.css +3 -0
  78. package/lib/form/index.d.ts +80 -132
  79. package/lib/form/index.js +29 -27
  80. package/lib/icon/angle-double-down-line.js +21 -21
  81. package/lib/icon/angle-double-left-line.js +21 -21
  82. package/lib/icon/angle-double-left.js +21 -21
  83. package/lib/icon/angle-double-right-line.js +21 -21
  84. package/lib/icon/angle-double-right.js +21 -21
  85. package/lib/icon/angle-double-up-line.js +21 -21
  86. package/lib/icon/angle-down-fill.js +21 -21
  87. package/lib/icon/angle-down-line.js +21 -21
  88. package/lib/icon/angle-down.js +21 -21
  89. package/lib/icon/angle-left.js +21 -21
  90. package/lib/icon/angle-right.js +21 -21
  91. package/lib/icon/angle-up-fill.js +21 -21
  92. package/lib/icon/angle-up.js +21 -21
  93. package/lib/icon/archive-fill.js +21 -21
  94. package/lib/icon/arrows-left.js +21 -21
  95. package/lib/icon/arrows-right.js +21 -21
  96. package/lib/icon/assistant.js +21 -21
  97. package/lib/icon/audio-fill.js +21 -21
  98. package/lib/icon/bk.js +21 -21
  99. package/lib/icon/circle.js +21 -21
  100. package/lib/icon/close-line.js +21 -21
  101. package/lib/icon/close.js +21 -21
  102. package/lib/icon/code.js +21 -21
  103. package/lib/icon/cog-shape.js +21 -21
  104. package/lib/icon/collapse-left.js +21 -21
  105. package/lib/icon/copy-shape.js +21 -21
  106. package/lib/icon/copy.js +21 -21
  107. package/lib/icon/data-shape.js +21 -21
  108. package/lib/icon/del.js +21 -21
  109. package/lib/icon/doc-fill.js +21 -21
  110. package/lib/icon/done.js +21 -21
  111. package/lib/icon/down-shape.js +21 -21
  112. package/lib/icon/down-small.js +21 -21
  113. package/lib/icon/edit-line.js +21 -21
  114. package/lib/icon/ellipsis.js +21 -21
  115. package/lib/icon/enlarge-line.js +21 -21
  116. package/lib/icon/error.js +21 -21
  117. package/lib/icon/excel-fill.js +21 -21
  118. package/lib/icon/exclamation-circle-shape.js +21 -21
  119. package/lib/icon/eye.js +21 -21
  120. package/lib/icon/filliscreen-line.js +21 -21
  121. package/lib/icon/fix-line.js +21 -21
  122. package/lib/icon/fix-shape.js +21 -21
  123. package/lib/icon/folder-open.js +21 -21
  124. package/lib/icon/folder-shape-open.js +21 -21
  125. package/lib/icon/folder-shape.js +21 -21
  126. package/lib/icon/folder.js +21 -21
  127. package/lib/icon/funnel.js +21 -21
  128. package/lib/icon/grag-fill.js +21 -21
  129. package/lib/icon/help-document-fill.js +21 -21
  130. package/lib/icon/help-fill.js +21 -21
  131. package/lib/icon/help.js +21 -21
  132. package/lib/icon/image-fill.js +22 -22
  133. package/lib/icon/img-error.js +22 -22
  134. package/lib/icon/img-placehoulder.js +22 -22
  135. package/lib/icon/index.js +192 -192
  136. package/lib/icon/info-line.js +22 -22
  137. package/lib/icon/info.js +22 -22
  138. package/lib/icon/left-shape.js +22 -22
  139. package/lib/icon/left-turn-line.js +22 -22
  140. package/lib/icon/loading.js +22 -22
  141. package/lib/icon/narrow-line.js +22 -22
  142. package/lib/icon/original.js +22 -22
  143. package/lib/icon/pdf-fill.js +22 -22
  144. package/lib/icon/play-shape.js +22 -22
  145. package/lib/icon/plus.js +22 -22
  146. package/lib/icon/ppt-fill.js +22 -22
  147. package/lib/icon/qq.js +22 -22
  148. package/lib/icon/right-shape.js +22 -22
  149. package/lib/icon/right-turn-line.js +22 -22
  150. package/lib/icon/search.js +22 -22
  151. package/lib/icon/share.js +22 -22
  152. package/lib/icon/spinner.js +22 -22
  153. package/lib/icon/success.js +22 -22
  154. package/lib/icon/switcher-loading.js +22 -22
  155. package/lib/icon/text-file.js +22 -22
  156. package/lib/icon/text-fill.js +22 -22
  157. package/lib/icon/transfer.js +22 -22
  158. package/lib/icon/tree-application-shape.js +22 -22
  159. package/lib/icon/unfull-screen.js +22 -22
  160. package/lib/icon/unvisible.js +22 -22
  161. package/lib/icon/up-shape.js +22 -22
  162. package/lib/icon/upload.js +22 -22
  163. package/lib/icon/video-fill.js +22 -22
  164. package/lib/icon/warn.js +22 -22
  165. package/lib/icon/weixin-pro.js +22 -22
  166. package/lib/icon/weixin.js +22 -22
  167. package/lib/image/index.d.ts +113 -149
  168. package/lib/image/index.js +19 -19
  169. package/lib/info-box/index.js +231 -232
  170. package/lib/input/index.d.ts +326 -293
  171. package/lib/input/index.js +256 -258
  172. package/lib/link/index.d.ts +73 -122
  173. package/lib/loading/index.d.ts +132 -158
  174. package/lib/loading/index.js +23 -25
  175. package/lib/loading/loading.d.ts +4 -4
  176. package/lib/locale/index.js +8 -12
  177. package/lib/locale/lang/en.d.ts +3 -0
  178. package/lib/menu/index.d.ts +51 -112
  179. package/lib/menu/index.js +25 -25
  180. package/lib/message/index.js +28 -30
  181. package/lib/message/messageConstructor.d.ts +5 -5
  182. package/lib/modal/index.d.ts +261 -249
  183. package/lib/modal/index.js +492 -33
  184. package/lib/navigation/index.d.ts +152 -188
  185. package/lib/notify/index.js +22 -24
  186. package/lib/notify/notifyConstructor.d.ts +1 -1
  187. package/lib/overflow-title/index.d.ts +314 -242
  188. package/lib/overflow-title/index.js +1 -1
  189. package/lib/pagination/index.d.ts +194 -205
  190. package/lib/pagination/index.js +49 -56
  191. package/lib/plugin-popover/index.js +192 -98
  192. package/lib/pop-confirm/index.d.ts +126 -159
  193. package/lib/pop-confirm/index.js +0 -1
  194. package/lib/pop-confirm/pop-confirm.d.ts +1 -1
  195. package/lib/popover/content.d.ts +1 -1
  196. package/lib/popover/index.d.ts +374 -330
  197. package/lib/popover/index.js +192 -98
  198. package/lib/popover2/index.d.ts +8 -83
  199. package/lib/process/index.d.ts +93 -137
  200. package/lib/process/index.js +225 -226
  201. package/lib/progress/index.d.ts +178 -187
  202. package/lib/progress/index.js +19 -19
  203. package/lib/progress/progress.d.ts +2 -2
  204. package/lib/radio/index.d.ts +83 -135
  205. package/lib/radio/index.js +41 -43
  206. package/lib/rate/index.d.ts +55 -112
  207. package/lib/rate/index.js +19 -20
  208. package/lib/resize-layout/index.d.ts +156 -185
  209. package/lib/resize-layout/index.js +20 -21
  210. package/lib/resize-layout/resize-layout.d.ts +2 -2
  211. package/lib/search-select/index.d.ts +292 -327
  212. package/lib/search-select/index.js +239 -240
  213. package/lib/search-select/input.d.ts +2 -2
  214. package/lib/search-select/search-select.d.ts +3 -3
  215. package/lib/search-select/selected.d.ts +2 -2
  216. package/lib/select/index.d.ts +1234 -1135
  217. package/lib/select/index.js +259 -262
  218. package/lib/select/select.d.ts +121 -161
  219. package/lib/select/selectTagInput.d.ts +2 -2
  220. package/lib/shared/helper.d.ts +4 -0
  221. package/lib/shared/index.js +81 -63
  222. package/lib/sideslider/index.d.ts +247 -233
  223. package/lib/sideslider/index.js +241 -247
  224. package/lib/slider/index.d.ts +204 -204
  225. package/lib/slider/index.js +208 -209
  226. package/lib/steps/index.d.ts +114 -150
  227. package/lib/steps/index.js +227 -228
  228. package/lib/swiper/index.d.ts +81 -127
  229. package/lib/swiper/index.js +18 -18
  230. package/lib/switcher/index.d.ts +152 -174
  231. package/lib/switcher/index.js +20 -22
  232. package/lib/tab/index.d.ts +199 -211
  233. package/lib/tab/index.js +23 -25
  234. package/lib/table/components/table-column.d.ts +2 -2
  235. package/lib/table/index.d.ts +605 -593
  236. package/lib/table/index.js +81 -95
  237. package/lib/table/plugins/use-pagination.d.ts +1 -1
  238. package/lib/table/table.d.ts +1 -1
  239. package/lib/table/use-common.d.ts +67 -34
  240. package/lib/table-column/index.d.ts +207 -243
  241. package/lib/table-column/index.js +18 -19
  242. package/lib/tag/index.d.ts +95 -142
  243. package/lib/tag/index.js +19 -19
  244. package/lib/tag-input/index.d.ts +690 -498
  245. package/lib/tag-input/index.js +54 -62
  246. package/lib/tag-input/tag-input.d.ts +5 -5
  247. package/lib/time-picker/index.d.ts +442 -385
  248. package/lib/timeline/index.d.ts +50 -109
  249. package/lib/timeline/index.js +6 -6
  250. package/lib/transfer/index.d.ts +191 -206
  251. package/lib/tree/index.d.ts +322 -288
  252. package/lib/tree/index.js +36 -39
  253. package/lib/tree/tree.d.ts +1 -1
  254. package/lib/tree/use-tree-init.d.ts +1 -1
  255. package/lib/upload/index.d.ts +281 -254
  256. package/lib/upload/index.js +254 -257
  257. package/lib/upload/upload.d.ts +2 -2
  258. package/lib/virtual-render/index.d.ts +337 -242
  259. package/lib/virtual-render/index.js +30 -30
  260. package/lib/virtual-render/virtual-render.d.ts +1 -1
  261. package/package.json +6 -13
@@ -3,10 +3,395 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../sh
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
6
- /******/ // The require scope
7
- /******/ var __webpack_require__ = {};
6
+ /******/ var __webpack_modules__ = ({
7
+
8
+ /***/ 7609:
9
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10
+
11
+ var _typeof = (__webpack_require__(7425)["default"]);
12
+ function _regeneratorRuntime() {
13
+ "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
14
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
15
+ return e;
16
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
17
+ var t,
18
+ e = {},
19
+ r = Object.prototype,
20
+ n = r.hasOwnProperty,
21
+ o = Object.defineProperty || function (t, e, r) {
22
+ t[e] = r.value;
23
+ },
24
+ i = "function" == typeof Symbol ? Symbol : {},
25
+ a = i.iterator || "@@iterator",
26
+ c = i.asyncIterator || "@@asyncIterator",
27
+ u = i.toStringTag || "@@toStringTag";
28
+ function define(t, e, r) {
29
+ return Object.defineProperty(t, e, {
30
+ value: r,
31
+ enumerable: !0,
32
+ configurable: !0,
33
+ writable: !0
34
+ }), t[e];
35
+ }
36
+ try {
37
+ define({}, "");
38
+ } catch (t) {
39
+ define = function define(t, e, r) {
40
+ return t[e] = r;
41
+ };
42
+ }
43
+ function wrap(t, e, r, n) {
44
+ var i = e && e.prototype instanceof Generator ? e : Generator,
45
+ a = Object.create(i.prototype),
46
+ c = new Context(n || []);
47
+ return o(a, "_invoke", {
48
+ value: makeInvokeMethod(t, r, c)
49
+ }), a;
50
+ }
51
+ function tryCatch(t, e, r) {
52
+ try {
53
+ return {
54
+ type: "normal",
55
+ arg: t.call(e, r)
56
+ };
57
+ } catch (t) {
58
+ return {
59
+ type: "throw",
60
+ arg: t
61
+ };
62
+ }
63
+ }
64
+ e.wrap = wrap;
65
+ var h = "suspendedStart",
66
+ l = "suspendedYield",
67
+ f = "executing",
68
+ s = "completed",
69
+ y = {};
70
+ function Generator() {}
71
+ function GeneratorFunction() {}
72
+ function GeneratorFunctionPrototype() {}
73
+ var p = {};
74
+ define(p, a, function () {
75
+ return this;
76
+ });
77
+ var d = Object.getPrototypeOf,
78
+ v = d && d(d(values([])));
79
+ v && v !== r && n.call(v, a) && (p = v);
80
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
81
+ function defineIteratorMethods(t) {
82
+ ["next", "throw", "return"].forEach(function (e) {
83
+ define(t, e, function (t) {
84
+ return this._invoke(e, t);
85
+ });
86
+ });
87
+ }
88
+ function AsyncIterator(t, e) {
89
+ function invoke(r, o, i, a) {
90
+ var c = tryCatch(t[r], t, o);
91
+ if ("throw" !== c.type) {
92
+ var u = c.arg,
93
+ h = u.value;
94
+ return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
95
+ invoke("next", t, i, a);
96
+ }, function (t) {
97
+ invoke("throw", t, i, a);
98
+ }) : e.resolve(h).then(function (t) {
99
+ u.value = t, i(u);
100
+ }, function (t) {
101
+ return invoke("throw", t, i, a);
102
+ });
103
+ }
104
+ a(c.arg);
105
+ }
106
+ var r;
107
+ o(this, "_invoke", {
108
+ value: function value(t, n) {
109
+ function callInvokeWithMethodAndArg() {
110
+ return new e(function (e, r) {
111
+ invoke(t, n, e, r);
112
+ });
113
+ }
114
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
115
+ }
116
+ });
117
+ }
118
+ function makeInvokeMethod(e, r, n) {
119
+ var o = h;
120
+ return function (i, a) {
121
+ if (o === f) throw new Error("Generator is already running");
122
+ if (o === s) {
123
+ if ("throw" === i) throw a;
124
+ return {
125
+ value: t,
126
+ done: !0
127
+ };
128
+ }
129
+ for (n.method = i, n.arg = a;;) {
130
+ var c = n.delegate;
131
+ if (c) {
132
+ var u = maybeInvokeDelegate(c, n);
133
+ if (u) {
134
+ if (u === y) continue;
135
+ return u;
136
+ }
137
+ }
138
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
139
+ if (o === h) throw o = s, n.arg;
140
+ n.dispatchException(n.arg);
141
+ } else "return" === n.method && n.abrupt("return", n.arg);
142
+ o = f;
143
+ var p = tryCatch(e, r, n);
144
+ if ("normal" === p.type) {
145
+ if (o = n.done ? s : l, p.arg === y) continue;
146
+ return {
147
+ value: p.arg,
148
+ done: n.done
149
+ };
150
+ }
151
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
152
+ }
153
+ };
154
+ }
155
+ function maybeInvokeDelegate(e, r) {
156
+ var n = r.method,
157
+ o = e.iterator[n];
158
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
159
+ var i = tryCatch(o, e.iterator, r.arg);
160
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
161
+ var a = i.arg;
162
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
163
+ }
164
+ function pushTryEntry(t) {
165
+ var e = {
166
+ tryLoc: t[0]
167
+ };
168
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
169
+ }
170
+ function resetTryEntry(t) {
171
+ var e = t.completion || {};
172
+ e.type = "normal", delete e.arg, t.completion = e;
173
+ }
174
+ function Context(t) {
175
+ this.tryEntries = [{
176
+ tryLoc: "root"
177
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
178
+ }
179
+ function values(e) {
180
+ if (e || "" === e) {
181
+ var r = e[a];
182
+ if (r) return r.call(e);
183
+ if ("function" == typeof e.next) return e;
184
+ if (!isNaN(e.length)) {
185
+ var o = -1,
186
+ i = function next() {
187
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
188
+ return next.value = t, next.done = !0, next;
189
+ };
190
+ return i.next = i;
191
+ }
192
+ }
193
+ throw new TypeError(_typeof(e) + " is not iterable");
194
+ }
195
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
196
+ value: GeneratorFunctionPrototype,
197
+ configurable: !0
198
+ }), o(GeneratorFunctionPrototype, "constructor", {
199
+ value: GeneratorFunction,
200
+ configurable: !0
201
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
202
+ var e = "function" == typeof t && t.constructor;
203
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
204
+ }, e.mark = function (t) {
205
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
206
+ }, e.awrap = function (t) {
207
+ return {
208
+ __await: t
209
+ };
210
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
211
+ return this;
212
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
213
+ void 0 === i && (i = Promise);
214
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
215
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
216
+ return t.done ? t.value : a.next();
217
+ });
218
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
219
+ return this;
220
+ }), define(g, "toString", function () {
221
+ return "[object Generator]";
222
+ }), e.keys = function (t) {
223
+ var e = Object(t),
224
+ r = [];
225
+ for (var n in e) r.push(n);
226
+ return r.reverse(), function next() {
227
+ for (; r.length;) {
228
+ var t = r.pop();
229
+ if (t in e) return next.value = t, next.done = !1, next;
230
+ }
231
+ return next.done = !0, next;
232
+ };
233
+ }, e.values = values, Context.prototype = {
234
+ constructor: Context,
235
+ reset: function reset(e) {
236
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
237
+ },
238
+ stop: function stop() {
239
+ this.done = !0;
240
+ var t = this.tryEntries[0].completion;
241
+ if ("throw" === t.type) throw t.arg;
242
+ return this.rval;
243
+ },
244
+ dispatchException: function dispatchException(e) {
245
+ if (this.done) throw e;
246
+ var r = this;
247
+ function handle(n, o) {
248
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
249
+ }
250
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
251
+ var i = this.tryEntries[o],
252
+ a = i.completion;
253
+ if ("root" === i.tryLoc) return handle("end");
254
+ if (i.tryLoc <= this.prev) {
255
+ var c = n.call(i, "catchLoc"),
256
+ u = n.call(i, "finallyLoc");
257
+ if (c && u) {
258
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
259
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
260
+ } else if (c) {
261
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
262
+ } else {
263
+ if (!u) throw new Error("try statement without catch or finally");
264
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
265
+ }
266
+ }
267
+ }
268
+ },
269
+ abrupt: function abrupt(t, e) {
270
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
271
+ var o = this.tryEntries[r];
272
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
273
+ var i = o;
274
+ break;
275
+ }
276
+ }
277
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
278
+ var a = i ? i.completion : {};
279
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
280
+ },
281
+ complete: function complete(t, e) {
282
+ if ("throw" === t.type) throw t.arg;
283
+ 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), y;
284
+ },
285
+ finish: function finish(t) {
286
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
287
+ var r = this.tryEntries[e];
288
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
289
+ }
290
+ },
291
+ "catch": function _catch(t) {
292
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
293
+ var r = this.tryEntries[e];
294
+ if (r.tryLoc === t) {
295
+ var n = r.completion;
296
+ if ("throw" === n.type) {
297
+ var o = n.arg;
298
+ resetTryEntry(r);
299
+ }
300
+ return o;
301
+ }
302
+ }
303
+ throw new Error("illegal catch attempt");
304
+ },
305
+ delegateYield: function delegateYield(e, r, n) {
306
+ return this.delegate = {
307
+ iterator: values(e),
308
+ resultName: r,
309
+ nextLoc: n
310
+ }, "next" === this.method && (this.arg = t), y;
311
+ }
312
+ }, e;
313
+ }
314
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
315
+
316
+ /***/ }),
317
+
318
+ /***/ 7425:
319
+ /***/ ((module) => {
320
+
321
+ function _typeof(o) {
322
+ "@babel/helpers - typeof";
323
+
324
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
325
+ return typeof o;
326
+ } : function (o) {
327
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
328
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
329
+ }
330
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
331
+
332
+ /***/ }),
333
+
334
+ /***/ 2841:
335
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
336
+
337
+ // TODO(Babel 8): Remove this file.
338
+
339
+ var runtime = __webpack_require__(7609)();
340
+ module.exports = runtime;
341
+
342
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
343
+ try {
344
+ regeneratorRuntime = runtime;
345
+ } catch (accidentalStrictMode) {
346
+ if (typeof globalThis === "object") {
347
+ globalThis.regeneratorRuntime = runtime;
348
+ } else {
349
+ Function("r", "regeneratorRuntime = r")(runtime);
350
+ }
351
+ }
352
+
353
+
354
+ /***/ })
355
+
356
+ /******/ });
357
+ /************************************************************************/
358
+ /******/ // The module cache
359
+ /******/ var __webpack_module_cache__ = {};
360
+ /******/
361
+ /******/ // The require function
362
+ /******/ function __webpack_require__(moduleId) {
363
+ /******/ // Check if module is in cache
364
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
365
+ /******/ if (cachedModule !== undefined) {
366
+ /******/ return cachedModule.exports;
367
+ /******/ }
368
+ /******/ // Create a new module (and put it into the cache)
369
+ /******/ var module = __webpack_module_cache__[moduleId] = {
370
+ /******/ // no module.id needed
371
+ /******/ // no module.loaded needed
372
+ /******/ exports: {}
373
+ /******/ };
374
+ /******/
375
+ /******/ // Execute the module function
376
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
377
+ /******/
378
+ /******/ // Return the exports of the module
379
+ /******/ return module.exports;
380
+ /******/ }
8
381
  /******/
9
382
  /************************************************************************/
383
+ /******/ /* webpack/runtime/compat get default export */
384
+ /******/ (() => {
385
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
386
+ /******/ __webpack_require__.n = (module) => {
387
+ /******/ var getter = module && module.__esModule ?
388
+ /******/ () => (module['default']) :
389
+ /******/ () => (module);
390
+ /******/ __webpack_require__.d(getter, { a: getter });
391
+ /******/ return getter;
392
+ /******/ };
393
+ /******/ })();
394
+ /******/
10
395
  /******/ /* webpack/runtime/define property getters */
11
396
  /******/ (() => {
12
397
  /******/ // define getter functions for harmony exports
@@ -26,6 +411,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
26
411
  /******/
27
412
  /************************************************************************/
28
413
  var __webpack_exports__ = {};
414
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
415
+ (() => {
29
416
 
30
417
  // EXPORTS
31
418
  __webpack_require__.d(__webpack_exports__, {
@@ -37,40 +424,71 @@ __webpack_require__.d(__webpack_exports__, {
37
424
  ;// CONCATENATED MODULE: external "../shared"
38
425
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
39
426
  var y = x => () => x
40
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.dialogTypeUnion, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["mask"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.mask, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
427
+ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.dialogTypeUnion, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["isPromise"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isPromise, ["mask"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.mask, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
428
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
429
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
430
+ try {
431
+ var info = gen[key](arg);
432
+ var value = info.value;
433
+ } catch (error) {
434
+ reject(error);
435
+ return;
436
+ }
437
+ if (info.done) {
438
+ resolve(value);
439
+ } else {
440
+ Promise.resolve(value).then(_next, _throw);
441
+ }
442
+ }
443
+ function _asyncToGenerator(fn) {
444
+ return function () {
445
+ var self = this,
446
+ args = arguments;
447
+ return new Promise(function (resolve, reject) {
448
+ var gen = fn.apply(self, args);
449
+ function _next(value) {
450
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
451
+ }
452
+ function _throw(err) {
453
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
454
+ }
455
+ _next(undefined);
456
+ });
457
+ };
458
+ }
41
459
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
42
- function _typeof(obj) {
460
+ function _typeof(o) {
43
461
  "@babel/helpers - typeof";
44
462
 
45
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
46
- return typeof obj;
47
- } : function (obj) {
48
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
49
- }, _typeof(obj);
463
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
464
+ return typeof o;
465
+ } : function (o) {
466
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
467
+ }, _typeof(o);
50
468
  }
51
469
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
52
470
 
53
- function _toPrimitive(input, hint) {
54
- if (_typeof(input) !== "object" || input === null) return input;
55
- var prim = input[Symbol.toPrimitive];
56
- if (prim !== undefined) {
57
- var res = prim.call(input, hint || "default");
58
- if (_typeof(res) !== "object") return res;
471
+ function toPrimitive(t, r) {
472
+ if ("object" != _typeof(t) || !t) return t;
473
+ var e = t[Symbol.toPrimitive];
474
+ if (void 0 !== e) {
475
+ var i = e.call(t, r || "default");
476
+ if ("object" != _typeof(i)) return i;
59
477
  throw new TypeError("@@toPrimitive must return a primitive value.");
60
478
  }
61
- return (hint === "string" ? String : Number)(input);
479
+ return ("string" === r ? String : Number)(t);
62
480
  }
63
481
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
64
482
 
65
483
 
66
- function _toPropertyKey(arg) {
67
- var key = _toPrimitive(arg, "string");
68
- return _typeof(key) === "symbol" ? key : String(key);
484
+ function toPropertyKey(t) {
485
+ var i = toPrimitive(t, "string");
486
+ return "symbol" == _typeof(i) ? i : String(i);
69
487
  }
70
488
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
71
489
 
72
490
  function _defineProperty(obj, key, value) {
73
- key = _toPropertyKey(key);
491
+ key = toPropertyKey(key);
74
492
  if (key in obj) {
75
493
  Object.defineProperty(obj, key, {
76
494
  value: value,
@@ -87,6 +505,9 @@ function _defineProperty(obj, key, value) {
87
505
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
88
506
  var external_vue_y = x => () => x
89
507
  const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
508
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
509
+ var regenerator = __webpack_require__(2841);
510
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
90
511
  ;// CONCATENATED MODULE: external "../config-provider"
91
512
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
92
513
  var config_provider_y = x => () => x
@@ -183,8 +604,10 @@ var propsMixin = {
183
604
  ;// CONCATENATED MODULE: ../../packages/modal/src/modal.tsx
184
605
 
185
606
 
186
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
187
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
607
+
608
+
609
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
610
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
188
611
  /*
189
612
  * Tencent is pleased to support the open source community by making
190
613
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -261,7 +684,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
261
684
  if (enableTeleport.value) {
262
685
  if (typeof teleportTo.value === 'string') {
263
686
  var target = document.querySelector(teleportTo.value);
264
- target === null || target === void 0 ? void 0 : target.appendChild(refRoot.value);
687
+ target === null || target === void 0 || target.appendChild(refRoot.value);
265
688
  return;
266
689
  }
267
690
  if ((0,shared_namespaceObject.isElement)(teleportTo.value)) {
@@ -275,7 +698,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
275
698
  enableTeleport.value = true;
276
699
  teleportTo.value = 'body';
277
700
  var _target = document.querySelector(teleportTo.value);
278
- _target === null || _target === void 0 ? void 0 : _target.appendChild(refRoot.value);
701
+ _target === null || _target === void 0 || _target.appendChild(refRoot.value);
279
702
  }
280
703
  };
281
704
  var fullscreenStyle = (0,external_vue_namespaceObject.computed)(function () {
@@ -296,7 +719,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
296
719
  ctx.emit('hidden'); // 为false直接触发hidden事件,在上层有200ms的延时
297
720
  if (enableTeleport.value) {
298
721
  var _refRoot$value2;
299
- (_refRoot$value2 = refRoot.value) === null || _refRoot$value2 === void 0 ? void 0 : _refRoot$value2.remove();
722
+ (_refRoot$value2 = refRoot.value) === null || _refRoot$value2 === void 0 || _refRoot$value2.remove();
300
723
  }
301
724
  }, 250);
302
725
  };
@@ -327,14 +750,48 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
327
750
  }, {
328
751
  immediate: true
329
752
  });
330
- var handleBeforeClose = function handleBeforeClose(callbackFn) {
331
- if (typeof props.beforeClose === 'function') {
332
- if (props.beforeClose() !== true) {
333
- return;
334
- }
335
- }
336
- callbackFn === null || callbackFn === void 0 ? void 0 : callbackFn();
337
- };
753
+ var handleBeforeClose = /*#__PURE__*/function () {
754
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(callbackFn) {
755
+ var shouldClose, execRet;
756
+ return regenerator_default().wrap(function _callee$(_context) {
757
+ while (1) switch (_context.prev = _context.next) {
758
+ case 0:
759
+ if (!(typeof props.beforeClose === 'function')) {
760
+ _context.next = 12;
761
+ break;
762
+ }
763
+ shouldClose = true;
764
+ execRet = props.beforeClose();
765
+ if (!(0,shared_namespaceObject.isPromise)(execRet)) {
766
+ _context.next = 9;
767
+ break;
768
+ }
769
+ _context.next = 6;
770
+ return execRet;
771
+ case 6:
772
+ shouldClose = _context.sent;
773
+ _context.next = 10;
774
+ break;
775
+ case 9:
776
+ shouldClose = execRet;
777
+ case 10:
778
+ if (!(shouldClose !== true)) {
779
+ _context.next = 12;
780
+ break;
781
+ }
782
+ return _context.abrupt("return");
783
+ case 12:
784
+ callbackFn === null || callbackFn === void 0 || callbackFn();
785
+ case 13:
786
+ case "end":
787
+ return _context.stop();
788
+ }
789
+ }, _callee);
790
+ }));
791
+ return function handleBeforeClose(_x) {
792
+ return _ref2.apply(this, arguments);
793
+ };
794
+ }();
338
795
  var handleClickOutSide = function handleClickOutSide(e) {
339
796
  e.stopImmediatePropagation();
340
797
  e.stopPropagation();
@@ -448,6 +905,8 @@ var BkModal = (0,shared_namespaceObject.withInstallProps)(modal, {
448
905
  }, true);
449
906
  /* harmony default export */ const src = (BkModal);
450
907
 
908
+ })();
909
+
451
910
  var __webpack_exports__BkModal = __webpack_exports__.BkModal;
452
911
  var __webpack_exports__default = __webpack_exports__["default"];
453
912
  var __webpack_exports__propsMixin = __webpack_exports__.propsMixin;