bkui-vue 0.0.2-beta.35 → 0.0.2-beta.37

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 (182) hide show
  1. package/dist/index.cjs.js +25 -25
  2. package/dist/index.esm.js +30 -14
  3. package/dist/index.umd.js +44 -44
  4. package/lib/affix/index.js +391 -1
  5. package/lib/alert/index.js +287 -1
  6. package/lib/animate-number/index.js +219 -1
  7. package/lib/backtop/index.js +264 -1
  8. package/lib/badge/index.js +304 -1
  9. package/lib/breadcrumb/index.js +379 -1
  10. package/lib/button/index.js +403 -1
  11. package/lib/card/index.js +369 -1
  12. package/lib/cascader/index.js +2095 -2
  13. package/lib/checkbox/index.js +602 -1
  14. package/lib/code-diff/index.js +5548 -1
  15. package/lib/collapse/index.js +605 -1
  16. package/lib/collapse-transition/index.js +237 -1
  17. package/lib/color-picker/index.js +2735 -1
  18. package/lib/components.js +770 -1
  19. package/lib/config-provider/index.js +377 -1
  20. package/lib/container/index.js +408 -1
  21. package/lib/date-picker/index.js +5576 -1
  22. package/lib/dialog/index.js +1324 -2
  23. package/lib/directives/index.js +1386 -2
  24. package/lib/dist.index.js +179 -1
  25. package/lib/divider/index.js +237 -1
  26. package/lib/dropdown/index.js +455 -1
  27. package/lib/exception/index.js +435 -1
  28. package/lib/fixed-navbar/index.js +222 -1
  29. package/lib/form/index.js +1004 -1
  30. package/lib/hooks.js +133 -1
  31. package/lib/icon/angle-double-down-line.js +541 -1
  32. package/lib/icon/angle-double-left-line.js +541 -1
  33. package/lib/icon/angle-double-left.js +541 -1
  34. package/lib/icon/angle-double-right-line.js +541 -1
  35. package/lib/icon/angle-double-right.js +541 -1
  36. package/lib/icon/angle-double-up-line.js +541 -1
  37. package/lib/icon/angle-down-fill.js +541 -1
  38. package/lib/icon/angle-down-line.js +541 -1
  39. package/lib/icon/angle-down.js +541 -1
  40. package/lib/icon/angle-left.js +541 -1
  41. package/lib/icon/angle-right.js +541 -1
  42. package/lib/icon/angle-up-fill.js +541 -1
  43. package/lib/icon/angle-up.js +541 -1
  44. package/lib/icon/archive-fill.js +541 -1
  45. package/lib/icon/arrows-left.js +541 -1
  46. package/lib/icon/arrows-right.js +541 -1
  47. package/lib/icon/assistant.js +541 -1
  48. package/lib/icon/audio-fill.js +541 -1
  49. package/lib/icon/bk.js +541 -1
  50. package/lib/icon/circle.js +541 -1
  51. package/lib/icon/close-line.js +541 -1
  52. package/lib/icon/close.js +541 -1
  53. package/lib/icon/code.js +541 -1
  54. package/lib/icon/cog-shape.js +541 -1
  55. package/lib/icon/collapse-left.js +541 -1
  56. package/lib/icon/copy-shape.js +541 -1
  57. package/lib/icon/copy.js +541 -1
  58. package/lib/icon/data-shape.js +541 -1
  59. package/lib/icon/del.js +541 -1
  60. package/lib/icon/doc-fill.js +541 -1
  61. package/lib/icon/done.js +541 -1
  62. package/lib/icon/down-shape.js +541 -1
  63. package/lib/icon/down-small.js +541 -1
  64. package/lib/icon/edit-line.js +541 -1
  65. package/lib/icon/ellipsis.js +541 -1
  66. package/lib/icon/enlarge-line.js +541 -1
  67. package/lib/icon/error.js +541 -1
  68. package/lib/icon/excel-fill.js +541 -1
  69. package/lib/icon/exclamation-circle-shape.js +541 -1
  70. package/lib/icon/eye.js +541 -1
  71. package/lib/icon/filliscreen-line.js +541 -1
  72. package/lib/icon/fix-line.js +541 -1
  73. package/lib/icon/fix-shape.js +541 -1
  74. package/lib/icon/folder-open.js +541 -1
  75. package/lib/icon/folder-shape-open.js +541 -1
  76. package/lib/icon/folder-shape.js +541 -1
  77. package/lib/icon/folder.js +541 -1
  78. package/lib/icon/funnel.js +541 -1
  79. package/lib/icon/help-document-fill.js +541 -1
  80. package/lib/icon/help-fill.js +541 -1
  81. package/lib/icon/help.js +541 -1
  82. package/lib/icon/image-fill.js +563 -1
  83. package/lib/icon/img-error.js +563 -1
  84. package/lib/icon/img-placehoulder.js +563 -1
  85. package/lib/icon/index.js +2353 -1
  86. package/lib/icon/info-line.js +563 -1
  87. package/lib/icon/info.js +563 -1
  88. package/lib/icon/left-shape.js +563 -1
  89. package/lib/icon/left-turn-line.js +563 -1
  90. package/lib/icon/narrow-line.js +563 -1
  91. package/lib/icon/original.js +563 -1
  92. package/lib/icon/pdf-fill.js +563 -1
  93. package/lib/icon/play-shape.js +563 -1
  94. package/lib/icon/plus.js +563 -1
  95. package/lib/icon/ppt-fill.js +563 -1
  96. package/lib/icon/qq.js +563 -1
  97. package/lib/icon/right-shape.js +563 -1
  98. package/lib/icon/right-turn-line.js +563 -1
  99. package/lib/icon/search.js +563 -1
  100. package/lib/icon/share.js +563 -1
  101. package/lib/icon/spinner.js +563 -1
  102. package/lib/icon/success.js +563 -1
  103. package/lib/icon/switcher-loading.js +563 -1
  104. package/lib/icon/text-file.js +563 -1
  105. package/lib/icon/text-fill.js +563 -1
  106. package/lib/icon/transfer.js +563 -1
  107. package/lib/icon/tree-application-shape.js +563 -1
  108. package/lib/icon/unfull-screen.js +563 -1
  109. package/lib/icon/unvisible.js +563 -1
  110. package/lib/icon/up-shape.js +563 -1
  111. package/lib/icon/upload.js +563 -1
  112. package/lib/icon/video-fill.js +563 -1
  113. package/lib/icon/warn.js +563 -1
  114. package/lib/icon/weixin-pro.js +563 -1
  115. package/lib/icon/weixin.js +563 -1
  116. package/lib/image/index.js +681 -1
  117. package/lib/index.js +195 -1
  118. package/lib/info-box/index.js +1514 -2
  119. package/lib/input/index.js +1038 -1
  120. package/lib/link/index.js +232 -1
  121. package/lib/loading/index.js +443 -1
  122. package/lib/locale/index.js +489 -1
  123. package/lib/menu/index.js +793 -1
  124. package/lib/message/index.js +1842 -2
  125. package/lib/message/messageConstructor.d.ts +1 -1
  126. package/lib/modal/index.js +407 -1
  127. package/lib/navigation/index.js +439 -1
  128. package/lib/notify/index.js +470 -1
  129. package/lib/overflow-title/index.js +547 -1
  130. package/lib/pagination/index.js +974 -1
  131. package/lib/plugin-popover/index.js +4121 -1
  132. package/lib/plugins/index.js +130 -1
  133. package/lib/pop-confirm/index.js +367 -1
  134. package/lib/popover/content.d.ts +8 -0
  135. package/lib/popover/index.d.ts +12 -0
  136. package/lib/popover/index.js +4127 -1
  137. package/lib/popover/popover.d.ts +7 -0
  138. package/lib/popover/props.d.ts +3 -0
  139. package/lib/popover2/index.js +171 -1
  140. package/lib/preset.js +164 -1
  141. package/lib/process/index.js +1146 -2
  142. package/lib/progress/index.js +495 -1
  143. package/lib/radio/index.js +693 -1
  144. package/lib/rate/index.js +406 -1
  145. package/lib/resize-layout/index.js +499 -1
  146. package/lib/search-select/index.js +3024 -2
  147. package/lib/select/index.d.ts +25 -3
  148. package/lib/select/index.js +2599 -2
  149. package/lib/select/select.d.ts +11 -1
  150. package/lib/shared/index.js +2832 -1
  151. package/lib/sideslider/index.js +1056 -2
  152. package/lib/slider/index.js +1683 -2
  153. package/lib/steps/index.js +1215 -2
  154. package/lib/swiper/index.js +404 -1
  155. package/lib/switcher/index.js +335 -1
  156. package/lib/tab/index.js +935 -1
  157. package/lib/table/index.js +6588 -1
  158. package/lib/table-column/index.js +768 -1
  159. package/lib/tag/index.js +309 -1
  160. package/lib/tag-input/index.d.ts +9 -0
  161. package/lib/tag-input/index.js +1758 -1
  162. package/lib/tag-input/tag-input.d.ts +20 -0
  163. package/lib/tag-input/tag-props.d.ts +3 -0
  164. package/lib/time-picker/index.js +142 -1
  165. package/lib/timeline/index.js +310 -1
  166. package/lib/transfer/index.js +767 -1
  167. package/lib/tree/index.js +2664 -1
  168. package/lib/upload/index.js +3257 -2
  169. package/lib/virtual-render/index.js +806 -1
  170. package/package.json +1 -1
  171. package/lib/cascader/index.js.LICENSE.txt +0 -1
  172. package/lib/dialog/index.js.LICENSE.txt +0 -1
  173. package/lib/directives/index.js.LICENSE.txt +0 -14
  174. package/lib/info-box/index.js.LICENSE.txt +0 -1
  175. package/lib/message/index.js.LICENSE.txt +0 -6
  176. package/lib/process/index.js.LICENSE.txt +0 -1
  177. package/lib/search-select/index.js.LICENSE.txt +0 -1
  178. package/lib/select/index.js.LICENSE.txt +0 -1
  179. package/lib/sideslider/index.js.LICENSE.txt +0 -1
  180. package/lib/slider/index.js.LICENSE.txt +0 -1
  181. package/lib/steps/index.js.LICENSE.txt +0 -1
  182. package/lib/upload/index.js.LICENSE.txt +0 -1
@@ -1,2 +1,1215 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("vue-types"),require("../config-provider"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types","../config-provider","../icon"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("vue-types"),require("../config-provider"),require("../icon")):e(t["../shared"],t.vue,t["vue-types"],t["../config-provider"],t["../icon"]);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,((t,e,r,n,o)=>(()=>{var i={2717:t=>{"use strict";t.exports=n},6870:t=>{"use strict";t.exports=o},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},210:t=>{"use strict";t.exports=r},7609:(t,e,r)=>{var n=r(7425).default;function o(){"use strict";t.exports=o=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 p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(t){p=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),c=new O(n||[]);return a(i,"_invoke",{value:j(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=f;var v={};function d(){}function y(){}function m(){}var g={};p(g,s,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(T([])));x&&x!==r&&i.call(x,s)&&(g=x);var w=m.prototype=d.prototype=Object.create(g);function N(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,c,s){var u=h(t[o],t,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==n(p)&&i.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):e.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=h(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.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,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function E(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(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,n=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 n.next=n}}return{next:_}}function _(){return{value:void 0,done:!0}}return y.prototype=m,a(w,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:y,configurable:!0}),y.displayName=p(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,p(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},N(S.prototype),p(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},N(w),p(w,l,"Generator"),p(w,s,(function(){return this})),p(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,O.prototype={constructor:O,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(C),!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,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):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),v},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),C(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),v}},e}t.exports=o,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 n=r(7609)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},a={};function c(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={exports:{}};return i[t](r,r.exports,c),r.exports}c.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return c.d(e,{a:e}),e},c.d=(t,e)=>{for(var r in e)c.o(e,r)&&!c.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},c.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),c.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{"use strict";c.r(s),c.d(s,{default:()=>d});var t=c(4212);function e(t){return 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},e(t)}function r(t,r,n){return(r=function(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===e(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var n=c(748),o=c(2841),i=c.n(o);function a(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function c(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}s((n=n.apply(t,e||[])).next())}))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var u,l=c(210),p=c(2717),f=c(6870);!function(t){t.UNKNOWN="",t.ERROR="error",t.LOADING="loading"}(u||(u={}));var h={theme:t.PropTypes.theme().def(t.ThemeEnum.PRIMARY),size:t.PropTypes.size(),curStep:t.PropTypes.number.def(1),controllable:t.PropTypes.bool.def(!1),direction:(0,t.directionType)(),status:(0,l.toType)("status",{}).def(u.UNKNOWN),lineType:(0,t.lineStyleType)(),text:t.PropTypes.bool,extCls:t.PropTypes.string,steps:t.PropTypes.array.def([]),beforeChange:t.PropTypes.func};const v=(0,n.defineComponent)({name:"Steps",props:h,emits:["update:curStep","click"],setup:function(t,e){var r=this,o=e.emit,c=(0,p.useLocale)("steps"),s=(0,p.useLocale)("lang"),u=(0,n.ref)([]),l=function(t){var e,r=[];t.forEach((function(t){var e;"string"==typeof t?r.push(t):r.push({title:t.title,icon:t.icon,description:t.description,status:t.status,border:null===(e=t.border)||void 0===e||e})})),(e=u.value).splice.apply(e,[0,u.value.length].concat(r))},f=function(){var e,r;(e=u.value).splice.apply(e,[0,u.value.length].concat([{title:c.value.step1,icon:1},{title:c.value.step2,icon:2},{title:c.value.step3,icon:3}])),(null===(r=t.steps)||void 0===r?void 0:r.length)&&l(t.steps)};(0,n.watch)((function(){return s.value}),(function(){f()})),(0,n.onMounted)(f),(0,n.watch)((function(){return t.steps}),(function(){l(t.steps)}),{deep:!0}),(0,n.watch)((function(){return t.curStep}),(function(){var e;e=t.curStep,h.curStep=e}),{deep:!0});var v=(0,p.usePrefix)().resolveClassName;return{defaultSteps:u,jumpTo:function(e){return a(r,void 0,void 0,i().mark((function r(){var n=this;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!t.controllable||e===t.curStep){r.next=7;break}if("function"!=typeof t.beforeChange){r.next=5;break}return r.next=5,new Promise((function(r,o){return a(n,void 0,void 0,i().mark((function n(){var a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.beforeChange(e);case 2:(a=n.sent)?r(a):o(a);case 4:case"end":return n.stop()}}),n)})))}));case 5:o("update:curStep",e),o("click",e);case 7:r.next=12;break;case 9:r.prev=9,r.t0=r.catch(0),console.warn(r.t0);case 12:case"end":return r.stop()}}),r,null,[[0,9]])})))},resolveClassName:v}},render:function(){var e,o=this,i=this.resolveClassName("steps"),a=this.theme?"".concat(i,"-").concat(this.theme):"",c=this.size?"".concat(i,"-").concat(this.size):"",s=(0,t.classes)((r(e={},"".concat(this.extCls),!!this.extCls),r(e,"".concat(this.resolveClassName("steps-".concat(this.direction))),this.direction),r(e,"".concat(this.resolveClassName("steps-".concat(this.lineType))),this.lineType),e),"".concat(a," ").concat(i," ").concat(c)),u=function(t){return o.curStep>t+1||"done"===o.defaultSteps[t].status},l=function(t){return o.curStep===t+1},p=function(t){var e=t.icon;return e?"[object Object]"===Object.prototype.toString.call(e):"string"==typeof t},h=function(t,e){return e.icon||(e.icon=t),!isNaN(e.icon)},v=function(t,e){return l(t)&&"loading"===o.status||function(t){return"loading"===t.status}(e)?(0,n.createVNode)(f.Circle,{class:"".concat(o.resolveClassName("icon")," ").concat(o.resolveClassName("steps-icon")," icon-loading")},null):l(t)&&"error"===o.status||function(t){return"error"===t.status}(e)?(0,n.createVNode)(f.Error,{class:"".concat(o.resolveClassName("steps-icon"))},null):u(t)?(0,n.createVNode)(f.Done,{class:"".concat(o.resolveClassName("steps-icon"))},null):(0,n.createVNode)("span",null,[h(t,e)?t+1:(0,n.createVNode)(e.icon,null,null)])};return(0,n.createVNode)("div",{class:s},[this.defaultSteps.map((function(t,e){var r,i,a;return(0,n.createVNode)("div",{class:[o.resolveClassName("step"),t.title?"":o.resolveClassName("step-no-content"),u(e)?"done":"",l(e)?"current":"",l(e)&&"error"===o.status?"isError":"",t.status&&l(e)?["".concat(o.resolveClassName("step-".concat(t.status)))]:""]},[(0,n.createVNode)("span",{class:["".concat(o.resolveClassName("step-indicator")),"".concat(o.resolveClassName("step-".concat(p(t)?"icon":"number"))),"".concat(o.resolveClassName("step-icon".concat(t.status)))],style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(e+1)}},[null!==(a=null===(i=(r=o.$slots)[e+1])||void 0===i?void 0:i.call(r))&&void 0!==a?a:v(e,t)]),t.title?(0,n.createVNode)("div",{class:"".concat(o.resolveClassName("step-content"))},[(0,n.createVNode)("div",{class:"".concat(o.resolveClassName("step-title")),style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(e+1)}},[t.title]),t.description&&(0,n.createVNode)("div",{class:"".concat(o.resolveClassName("step-description")),title:t.description},[t.description])]):""])}))])}}),d=(0,t.withInstall)(v)})(),s})()));
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("../shared"), require("vue"), require("vue-types"), require("../config-provider"), require("../icon"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["../shared", "vue", "vue-types", "../config-provider", "../icon"], factory);
6
+ else {
7
+ var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("vue-types"), require("../config-provider"), require("../icon")) : factory(root["../shared"], root["vue"], root["vue-types"], root["../config-provider"], root["../icon"]);
8
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
+ }
10
+ })(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__210__, __WEBPACK_EXTERNAL_MODULE__2717__, __WEBPACK_EXTERNAL_MODULE__6870__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ var __webpack_modules__ = ({
13
+
14
+ /***/ 2717:
15
+ /***/ ((module) => {
16
+
17
+ "use strict";
18
+ module.exports = __WEBPACK_EXTERNAL_MODULE__2717__;
19
+
20
+ /***/ }),
21
+
22
+ /***/ 6870:
23
+ /***/ ((module) => {
24
+
25
+ "use strict";
26
+ module.exports = __WEBPACK_EXTERNAL_MODULE__6870__;
27
+
28
+ /***/ }),
29
+
30
+ /***/ 4212:
31
+ /***/ ((module) => {
32
+
33
+ "use strict";
34
+ module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
35
+
36
+ /***/ }),
37
+
38
+ /***/ 748:
39
+ /***/ ((module) => {
40
+
41
+ "use strict";
42
+ module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
43
+
44
+ /***/ }),
45
+
46
+ /***/ 210:
47
+ /***/ ((module) => {
48
+
49
+ "use strict";
50
+ module.exports = __WEBPACK_EXTERNAL_MODULE__210__;
51
+
52
+ /***/ }),
53
+
54
+ /***/ 7609:
55
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
56
+
57
+ var _typeof = (__webpack_require__(7425)["default"]);
58
+ function _regeneratorRuntime() {
59
+ "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
60
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
61
+ return exports;
62
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
63
+ var exports = {},
64
+ Op = Object.prototype,
65
+ hasOwn = Op.hasOwnProperty,
66
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
67
+ obj[key] = desc.value;
68
+ },
69
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
70
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
71
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
72
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
73
+ function define(obj, key, value) {
74
+ return Object.defineProperty(obj, key, {
75
+ value: value,
76
+ enumerable: !0,
77
+ configurable: !0,
78
+ writable: !0
79
+ }), obj[key];
80
+ }
81
+ try {
82
+ define({}, "");
83
+ } catch (err) {
84
+ define = function define(obj, key, value) {
85
+ return obj[key] = value;
86
+ };
87
+ }
88
+ function wrap(innerFn, outerFn, self, tryLocsList) {
89
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
90
+ generator = Object.create(protoGenerator.prototype),
91
+ context = new Context(tryLocsList || []);
92
+ return defineProperty(generator, "_invoke", {
93
+ value: makeInvokeMethod(innerFn, self, context)
94
+ }), generator;
95
+ }
96
+ function tryCatch(fn, obj, arg) {
97
+ try {
98
+ return {
99
+ type: "normal",
100
+ arg: fn.call(obj, arg)
101
+ };
102
+ } catch (err) {
103
+ return {
104
+ type: "throw",
105
+ arg: err
106
+ };
107
+ }
108
+ }
109
+ exports.wrap = wrap;
110
+ var ContinueSentinel = {};
111
+ function Generator() {}
112
+ function GeneratorFunction() {}
113
+ function GeneratorFunctionPrototype() {}
114
+ var IteratorPrototype = {};
115
+ define(IteratorPrototype, iteratorSymbol, function () {
116
+ return this;
117
+ });
118
+ var getProto = Object.getPrototypeOf,
119
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
120
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
121
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
122
+ function defineIteratorMethods(prototype) {
123
+ ["next", "throw", "return"].forEach(function (method) {
124
+ define(prototype, method, function (arg) {
125
+ return this._invoke(method, arg);
126
+ });
127
+ });
128
+ }
129
+ function AsyncIterator(generator, PromiseImpl) {
130
+ function invoke(method, arg, resolve, reject) {
131
+ var record = tryCatch(generator[method], generator, arg);
132
+ if ("throw" !== record.type) {
133
+ var result = record.arg,
134
+ value = result.value;
135
+ return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
136
+ invoke("next", value, resolve, reject);
137
+ }, function (err) {
138
+ invoke("throw", err, resolve, reject);
139
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
140
+ result.value = unwrapped, resolve(result);
141
+ }, function (error) {
142
+ return invoke("throw", error, resolve, reject);
143
+ });
144
+ }
145
+ reject(record.arg);
146
+ }
147
+ var previousPromise;
148
+ defineProperty(this, "_invoke", {
149
+ value: function value(method, arg) {
150
+ function callInvokeWithMethodAndArg() {
151
+ return new PromiseImpl(function (resolve, reject) {
152
+ invoke(method, arg, resolve, reject);
153
+ });
154
+ }
155
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
156
+ }
157
+ });
158
+ }
159
+ function makeInvokeMethod(innerFn, self, context) {
160
+ var state = "suspendedStart";
161
+ return function (method, arg) {
162
+ if ("executing" === state) throw new Error("Generator is already running");
163
+ if ("completed" === state) {
164
+ if ("throw" === method) throw arg;
165
+ return doneResult();
166
+ }
167
+ for (context.method = method, context.arg = arg;;) {
168
+ var delegate = context.delegate;
169
+ if (delegate) {
170
+ var delegateResult = maybeInvokeDelegate(delegate, context);
171
+ if (delegateResult) {
172
+ if (delegateResult === ContinueSentinel) continue;
173
+ return delegateResult;
174
+ }
175
+ }
176
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
177
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
178
+ context.dispatchException(context.arg);
179
+ } else "return" === context.method && context.abrupt("return", context.arg);
180
+ state = "executing";
181
+ var record = tryCatch(innerFn, self, context);
182
+ if ("normal" === record.type) {
183
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
184
+ return {
185
+ value: record.arg,
186
+ done: context.done
187
+ };
188
+ }
189
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
190
+ }
191
+ };
192
+ }
193
+ function maybeInvokeDelegate(delegate, context) {
194
+ var methodName = context.method,
195
+ method = delegate.iterator[methodName];
196
+ 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;
197
+ var record = tryCatch(method, delegate.iterator, context.arg);
198
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
199
+ var info = record.arg;
200
+ 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);
201
+ }
202
+ function pushTryEntry(locs) {
203
+ var entry = {
204
+ tryLoc: locs[0]
205
+ };
206
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
207
+ }
208
+ function resetTryEntry(entry) {
209
+ var record = entry.completion || {};
210
+ record.type = "normal", delete record.arg, entry.completion = record;
211
+ }
212
+ function Context(tryLocsList) {
213
+ this.tryEntries = [{
214
+ tryLoc: "root"
215
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
216
+ }
217
+ function values(iterable) {
218
+ if (iterable) {
219
+ var iteratorMethod = iterable[iteratorSymbol];
220
+ if (iteratorMethod) return iteratorMethod.call(iterable);
221
+ if ("function" == typeof iterable.next) return iterable;
222
+ if (!isNaN(iterable.length)) {
223
+ var i = -1,
224
+ next = function next() {
225
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
226
+ return next.value = undefined, next.done = !0, next;
227
+ };
228
+ return next.next = next;
229
+ }
230
+ }
231
+ return {
232
+ next: doneResult
233
+ };
234
+ }
235
+ function doneResult() {
236
+ return {
237
+ value: undefined,
238
+ done: !0
239
+ };
240
+ }
241
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
242
+ value: GeneratorFunctionPrototype,
243
+ configurable: !0
244
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
245
+ value: GeneratorFunction,
246
+ configurable: !0
247
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
248
+ var ctor = "function" == typeof genFun && genFun.constructor;
249
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
250
+ }, exports.mark = function (genFun) {
251
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
252
+ }, exports.awrap = function (arg) {
253
+ return {
254
+ __await: arg
255
+ };
256
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
257
+ return this;
258
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
259
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
260
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
261
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
262
+ return result.done ? result.value : iter.next();
263
+ });
264
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
265
+ return this;
266
+ }), define(Gp, "toString", function () {
267
+ return "[object Generator]";
268
+ }), exports.keys = function (val) {
269
+ var object = Object(val),
270
+ keys = [];
271
+ for (var key in object) keys.push(key);
272
+ return keys.reverse(), function next() {
273
+ for (; keys.length;) {
274
+ var key = keys.pop();
275
+ if (key in object) return next.value = key, next.done = !1, next;
276
+ }
277
+ return next.done = !0, next;
278
+ };
279
+ }, exports.values = values, Context.prototype = {
280
+ constructor: Context,
281
+ reset: function reset(skipTempReset) {
282
+ 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);
283
+ },
284
+ stop: function stop() {
285
+ this.done = !0;
286
+ var rootRecord = this.tryEntries[0].completion;
287
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
288
+ return this.rval;
289
+ },
290
+ dispatchException: function dispatchException(exception) {
291
+ if (this.done) throw exception;
292
+ var context = this;
293
+ function handle(loc, caught) {
294
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
295
+ }
296
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
297
+ var entry = this.tryEntries[i],
298
+ record = entry.completion;
299
+ if ("root" === entry.tryLoc) return handle("end");
300
+ if (entry.tryLoc <= this.prev) {
301
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
302
+ hasFinally = hasOwn.call(entry, "finallyLoc");
303
+ if (hasCatch && hasFinally) {
304
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
305
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
306
+ } else if (hasCatch) {
307
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
308
+ } else {
309
+ if (!hasFinally) throw new Error("try statement without catch or finally");
310
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
311
+ }
312
+ }
313
+ }
314
+ },
315
+ abrupt: function abrupt(type, arg) {
316
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
317
+ var entry = this.tryEntries[i];
318
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
319
+ var finallyEntry = entry;
320
+ break;
321
+ }
322
+ }
323
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
324
+ var record = finallyEntry ? finallyEntry.completion : {};
325
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
326
+ },
327
+ complete: function complete(record, afterLoc) {
328
+ if ("throw" === record.type) throw record.arg;
329
+ 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;
330
+ },
331
+ finish: function finish(finallyLoc) {
332
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
333
+ var entry = this.tryEntries[i];
334
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
335
+ }
336
+ },
337
+ "catch": function _catch(tryLoc) {
338
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
339
+ var entry = this.tryEntries[i];
340
+ if (entry.tryLoc === tryLoc) {
341
+ var record = entry.completion;
342
+ if ("throw" === record.type) {
343
+ var thrown = record.arg;
344
+ resetTryEntry(entry);
345
+ }
346
+ return thrown;
347
+ }
348
+ }
349
+ throw new Error("illegal catch attempt");
350
+ },
351
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
352
+ return this.delegate = {
353
+ iterator: values(iterable),
354
+ resultName: resultName,
355
+ nextLoc: nextLoc
356
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
357
+ }
358
+ }, exports;
359
+ }
360
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
361
+
362
+ /***/ }),
363
+
364
+ /***/ 7425:
365
+ /***/ ((module) => {
366
+
367
+ function _typeof(obj) {
368
+ "@babel/helpers - typeof";
369
+
370
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
371
+ return typeof obj;
372
+ } : function (obj) {
373
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
374
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
375
+ }
376
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
377
+
378
+ /***/ }),
379
+
380
+ /***/ 2841:
381
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
382
+
383
+ // TODO(Babel 8): Remove this file.
384
+
385
+ var runtime = __webpack_require__(7609)();
386
+ module.exports = runtime;
387
+
388
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
389
+ try {
390
+ regeneratorRuntime = runtime;
391
+ } catch (accidentalStrictMode) {
392
+ if (typeof globalThis === "object") {
393
+ globalThis.regeneratorRuntime = runtime;
394
+ } else {
395
+ Function("r", "regeneratorRuntime = r")(runtime);
396
+ }
397
+ }
398
+
399
+
400
+ /***/ })
401
+
402
+ /******/ });
403
+ /************************************************************************/
404
+ /******/ // The module cache
405
+ /******/ var __webpack_module_cache__ = {};
406
+ /******/
407
+ /******/ // The require function
408
+ /******/ function __webpack_require__(moduleId) {
409
+ /******/ // Check if module is in cache
410
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
411
+ /******/ if (cachedModule !== undefined) {
412
+ /******/ return cachedModule.exports;
413
+ /******/ }
414
+ /******/ // Create a new module (and put it into the cache)
415
+ /******/ var module = __webpack_module_cache__[moduleId] = {
416
+ /******/ // no module.id needed
417
+ /******/ // no module.loaded needed
418
+ /******/ exports: {}
419
+ /******/ };
420
+ /******/
421
+ /******/ // Execute the module function
422
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
423
+ /******/
424
+ /******/ // Return the exports of the module
425
+ /******/ return module.exports;
426
+ /******/ }
427
+ /******/
428
+ /************************************************************************/
429
+ /******/ /* webpack/runtime/compat get default export */
430
+ /******/ (() => {
431
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
432
+ /******/ __webpack_require__.n = (module) => {
433
+ /******/ var getter = module && module.__esModule ?
434
+ /******/ () => (module['default']) :
435
+ /******/ () => (module);
436
+ /******/ __webpack_require__.d(getter, { a: getter });
437
+ /******/ return getter;
438
+ /******/ };
439
+ /******/ })();
440
+ /******/
441
+ /******/ /* webpack/runtime/define property getters */
442
+ /******/ (() => {
443
+ /******/ // define getter functions for harmony exports
444
+ /******/ __webpack_require__.d = (exports, definition) => {
445
+ /******/ for(var key in definition) {
446
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
447
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
448
+ /******/ }
449
+ /******/ }
450
+ /******/ };
451
+ /******/ })();
452
+ /******/
453
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
454
+ /******/ (() => {
455
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
456
+ /******/ })();
457
+ /******/
458
+ /******/ /* webpack/runtime/make namespace object */
459
+ /******/ (() => {
460
+ /******/ // define __esModule on exports
461
+ /******/ __webpack_require__.r = (exports) => {
462
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
463
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
464
+ /******/ }
465
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
466
+ /******/ };
467
+ /******/ })();
468
+ /******/
469
+ /************************************************************************/
470
+ var __webpack_exports__ = {};
471
+ // This entry need to be wrapped in an IIFE because it need to be in strict mode.
472
+ (() => {
473
+ "use strict";
474
+ // ESM COMPAT FLAG
475
+ __webpack_require__.r(__webpack_exports__);
476
+
477
+ // EXPORTS
478
+ __webpack_require__.d(__webpack_exports__, {
479
+ "default": () => (/* binding */ src)
480
+ });
481
+
482
+ // EXTERNAL MODULE: external "../shared"
483
+ var external_shared_ = __webpack_require__(4212);
484
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
485
+ function _typeof(obj) {
486
+ "@babel/helpers - typeof";
487
+
488
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
489
+ return typeof obj;
490
+ } : function (obj) {
491
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
492
+ }, _typeof(obj);
493
+ }
494
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
495
+
496
+ function _toPrimitive(input, hint) {
497
+ if (_typeof(input) !== "object" || input === null) return input;
498
+ var prim = input[Symbol.toPrimitive];
499
+ if (prim !== undefined) {
500
+ var res = prim.call(input, hint || "default");
501
+ if (_typeof(res) !== "object") return res;
502
+ throw new TypeError("@@toPrimitive must return a primitive value.");
503
+ }
504
+ return (hint === "string" ? String : Number)(input);
505
+ }
506
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
507
+
508
+
509
+ function _toPropertyKey(arg) {
510
+ var key = _toPrimitive(arg, "string");
511
+ return _typeof(key) === "symbol" ? key : String(key);
512
+ }
513
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
514
+
515
+ function _defineProperty(obj, key, value) {
516
+ key = _toPropertyKey(key);
517
+ if (key in obj) {
518
+ Object.defineProperty(obj, key, {
519
+ value: value,
520
+ enumerable: true,
521
+ configurable: true,
522
+ writable: true
523
+ });
524
+ } else {
525
+ obj[key] = value;
526
+ }
527
+ return obj;
528
+ }
529
+ // EXTERNAL MODULE: external "vue"
530
+ var external_vue_ = __webpack_require__(748);
531
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
532
+ var regenerator = __webpack_require__(2841);
533
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
534
+ ;// CONCATENATED MODULE: ../../node_modules/tslib/tslib.es6.mjs
535
+ /******************************************************************************
536
+ Copyright (c) Microsoft Corporation.
537
+
538
+ Permission to use, copy, modify, and/or distribute this software for any
539
+ purpose with or without fee is hereby granted.
540
+
541
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
542
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
543
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
544
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
545
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
546
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
547
+ PERFORMANCE OF THIS SOFTWARE.
548
+ ***************************************************************************** */
549
+ /* global Reflect, Promise, SuppressedError, Symbol */
550
+
551
+ var extendStatics = function(d, b) {
552
+ extendStatics = Object.setPrototypeOf ||
553
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
554
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
555
+ return extendStatics(d, b);
556
+ };
557
+
558
+ function __extends(d, b) {
559
+ if (typeof b !== "function" && b !== null)
560
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
561
+ extendStatics(d, b);
562
+ function __() { this.constructor = d; }
563
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
564
+ }
565
+
566
+ var __assign = function() {
567
+ __assign = Object.assign || function __assign(t) {
568
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
569
+ s = arguments[i];
570
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
571
+ }
572
+ return t;
573
+ }
574
+ return __assign.apply(this, arguments);
575
+ }
576
+
577
+ function __rest(s, e) {
578
+ var t = {};
579
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
580
+ t[p] = s[p];
581
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
582
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
583
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
584
+ t[p[i]] = s[p[i]];
585
+ }
586
+ return t;
587
+ }
588
+
589
+ function __decorate(decorators, target, key, desc) {
590
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
591
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
592
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
593
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
594
+ }
595
+
596
+ function __param(paramIndex, decorator) {
597
+ return function (target, key) { decorator(target, key, paramIndex); }
598
+ }
599
+
600
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
601
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
602
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
603
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
604
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
605
+ var _, done = false;
606
+ for (var i = decorators.length - 1; i >= 0; i--) {
607
+ var context = {};
608
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
609
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
610
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
611
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
612
+ if (kind === "accessor") {
613
+ if (result === void 0) continue;
614
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
615
+ if (_ = accept(result.get)) descriptor.get = _;
616
+ if (_ = accept(result.set)) descriptor.set = _;
617
+ if (_ = accept(result.init)) initializers.unshift(_);
618
+ }
619
+ else if (_ = accept(result)) {
620
+ if (kind === "field") initializers.unshift(_);
621
+ else descriptor[key] = _;
622
+ }
623
+ }
624
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
625
+ done = true;
626
+ };
627
+
628
+ function __runInitializers(thisArg, initializers, value) {
629
+ var useValue = arguments.length > 2;
630
+ for (var i = 0; i < initializers.length; i++) {
631
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
632
+ }
633
+ return useValue ? value : void 0;
634
+ };
635
+
636
+ function __propKey(x) {
637
+ return typeof x === "symbol" ? x : "".concat(x);
638
+ };
639
+
640
+ function __setFunctionName(f, name, prefix) {
641
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
642
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
643
+ };
644
+
645
+ function __metadata(metadataKey, metadataValue) {
646
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
647
+ }
648
+
649
+ function __awaiter(thisArg, _arguments, P, generator) {
650
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
651
+ return new (P || (P = Promise))(function (resolve, reject) {
652
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
653
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
654
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
655
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
656
+ });
657
+ }
658
+
659
+ function __generator(thisArg, body) {
660
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
661
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
662
+ function verb(n) { return function (v) { return step([n, v]); }; }
663
+ function step(op) {
664
+ if (f) throw new TypeError("Generator is already executing.");
665
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
666
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
667
+ if (y = 0, t) op = [op[0] & 2, t.value];
668
+ switch (op[0]) {
669
+ case 0: case 1: t = op; break;
670
+ case 4: _.label++; return { value: op[1], done: false };
671
+ case 5: _.label++; y = op[1]; op = [0]; continue;
672
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
673
+ default:
674
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
675
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
676
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
677
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
678
+ if (t[2]) _.ops.pop();
679
+ _.trys.pop(); continue;
680
+ }
681
+ op = body.call(thisArg, _);
682
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
683
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
684
+ }
685
+ }
686
+
687
+ var __createBinding = Object.create ? (function(o, m, k, k2) {
688
+ if (k2 === undefined) k2 = k;
689
+ var desc = Object.getOwnPropertyDescriptor(m, k);
690
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
691
+ desc = { enumerable: true, get: function() { return m[k]; } };
692
+ }
693
+ Object.defineProperty(o, k2, desc);
694
+ }) : (function(o, m, k, k2) {
695
+ if (k2 === undefined) k2 = k;
696
+ o[k2] = m[k];
697
+ });
698
+
699
+ function __exportStar(m, o) {
700
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
701
+ }
702
+
703
+ function __values(o) {
704
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
705
+ if (m) return m.call(o);
706
+ if (o && typeof o.length === "number") return {
707
+ next: function () {
708
+ if (o && i >= o.length) o = void 0;
709
+ return { value: o && o[i++], done: !o };
710
+ }
711
+ };
712
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
713
+ }
714
+
715
+ function __read(o, n) {
716
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
717
+ if (!m) return o;
718
+ var i = m.call(o), r, ar = [], e;
719
+ try {
720
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
721
+ }
722
+ catch (error) { e = { error: error }; }
723
+ finally {
724
+ try {
725
+ if (r && !r.done && (m = i["return"])) m.call(i);
726
+ }
727
+ finally { if (e) throw e.error; }
728
+ }
729
+ return ar;
730
+ }
731
+
732
+ /** @deprecated */
733
+ function __spread() {
734
+ for (var ar = [], i = 0; i < arguments.length; i++)
735
+ ar = ar.concat(__read(arguments[i]));
736
+ return ar;
737
+ }
738
+
739
+ /** @deprecated */
740
+ function __spreadArrays() {
741
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
742
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
743
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
744
+ r[k] = a[j];
745
+ return r;
746
+ }
747
+
748
+ function __spreadArray(to, from, pack) {
749
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
750
+ if (ar || !(i in from)) {
751
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
752
+ ar[i] = from[i];
753
+ }
754
+ }
755
+ return to.concat(ar || Array.prototype.slice.call(from));
756
+ }
757
+
758
+ function __await(v) {
759
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
760
+ }
761
+
762
+ function __asyncGenerator(thisArg, _arguments, generator) {
763
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
764
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
765
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
766
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
767
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
768
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
769
+ function fulfill(value) { resume("next", value); }
770
+ function reject(value) { resume("throw", value); }
771
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
772
+ }
773
+
774
+ function __asyncDelegator(o) {
775
+ var i, p;
776
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
777
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
778
+ }
779
+
780
+ function __asyncValues(o) {
781
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
782
+ var m = o[Symbol.asyncIterator], i;
783
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
784
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
785
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
786
+ }
787
+
788
+ function __makeTemplateObject(cooked, raw) {
789
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
790
+ return cooked;
791
+ };
792
+
793
+ var __setModuleDefault = Object.create ? (function(o, v) {
794
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
795
+ }) : function(o, v) {
796
+ o["default"] = v;
797
+ };
798
+
799
+ function __importStar(mod) {
800
+ if (mod && mod.__esModule) return mod;
801
+ var result = {};
802
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
803
+ __setModuleDefault(result, mod);
804
+ return result;
805
+ }
806
+
807
+ function __importDefault(mod) {
808
+ return (mod && mod.__esModule) ? mod : { default: mod };
809
+ }
810
+
811
+ function __classPrivateFieldGet(receiver, state, kind, f) {
812
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
813
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
814
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
815
+ }
816
+
817
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
818
+ if (kind === "m") throw new TypeError("Private method is not writable");
819
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
820
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
821
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
822
+ }
823
+
824
+ function __classPrivateFieldIn(state, receiver) {
825
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
826
+ return typeof state === "function" ? receiver === state : state.has(receiver);
827
+ }
828
+
829
+ function __addDisposableResource(env, value, async) {
830
+ if (value !== null && value !== void 0) {
831
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
832
+ var dispose;
833
+ if (async) {
834
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
835
+ dispose = value[Symbol.asyncDispose];
836
+ }
837
+ if (dispose === void 0) {
838
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
839
+ dispose = value[Symbol.dispose];
840
+ }
841
+ if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
842
+ env.stack.push({ value: value, dispose: dispose, async: async });
843
+ }
844
+ else if (async) {
845
+ env.stack.push({ async: true });
846
+ }
847
+ return value;
848
+ }
849
+
850
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
851
+ var e = new Error(message);
852
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
853
+ };
854
+
855
+ function __disposeResources(env) {
856
+ function fail(e) {
857
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
858
+ env.hasError = true;
859
+ }
860
+ function next() {
861
+ while (env.stack.length) {
862
+ var rec = env.stack.pop();
863
+ try {
864
+ var result = rec.dispose && rec.dispose.call(rec.value);
865
+ if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
866
+ }
867
+ catch (e) {
868
+ fail(e);
869
+ }
870
+ }
871
+ if (env.hasError) throw env.error;
872
+ }
873
+ return next();
874
+ }
875
+
876
+ /* harmony default export */ const tslib_es6 = ({
877
+ __extends,
878
+ __assign,
879
+ __rest,
880
+ __decorate,
881
+ __param,
882
+ __metadata,
883
+ __awaiter,
884
+ __generator,
885
+ __createBinding,
886
+ __exportStar,
887
+ __values,
888
+ __read,
889
+ __spread,
890
+ __spreadArrays,
891
+ __spreadArray,
892
+ __await,
893
+ __asyncGenerator,
894
+ __asyncDelegator,
895
+ __asyncValues,
896
+ __makeTemplateObject,
897
+ __importStar,
898
+ __importDefault,
899
+ __classPrivateFieldGet,
900
+ __classPrivateFieldSet,
901
+ __classPrivateFieldIn,
902
+ __addDisposableResource,
903
+ __disposeResources,
904
+ });
905
+
906
+ // EXTERNAL MODULE: external "vue-types"
907
+ var external_vue_types_ = __webpack_require__(210);
908
+ // EXTERNAL MODULE: external "../config-provider"
909
+ var external_config_provider_ = __webpack_require__(2717);
910
+ // EXTERNAL MODULE: external "../icon"
911
+ var external_icon_ = __webpack_require__(6870);
912
+ ;// CONCATENATED MODULE: ../../packages/steps/src/steps.tsx
913
+
914
+
915
+
916
+ /**
917
+ * Tencent is pleased to support the open source community by making
918
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
919
+ *
920
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
921
+ *
922
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
923
+ *
924
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
925
+ *
926
+ * ---------------------------------------------------
927
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
928
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
929
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
930
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
931
+ *
932
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
933
+ * the Software.
934
+ *
935
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
936
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
937
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
938
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
939
+ * IN THE SOFTWARE.
940
+ */
941
+
942
+
943
+
944
+
945
+
946
+
947
+ var StatusEnum;
948
+ (function (StatusEnum) {
949
+ StatusEnum["UNKNOWN"] = "";
950
+ StatusEnum["ERROR"] = "error";
951
+ StatusEnum["LOADING"] = "loading";
952
+ })(StatusEnum || (StatusEnum = {}));
953
+ var stepsProps = {
954
+ theme: external_shared_.PropTypes.theme().def(external_shared_.ThemeEnum.PRIMARY),
955
+ size: external_shared_.PropTypes.size(),
956
+ curStep: external_shared_.PropTypes.number.def(1),
957
+ controllable: external_shared_.PropTypes.bool.def(false),
958
+ direction: (0,external_shared_.directionType)(),
959
+ status: (0,external_vue_types_.toType)('status', {}).def(StatusEnum.UNKNOWN),
960
+ lineType: (0,external_shared_.lineStyleType)(),
961
+ text: external_shared_.PropTypes.bool,
962
+ extCls: external_shared_.PropTypes.string,
963
+ steps: external_shared_.PropTypes.array.def([]),
964
+ beforeChange: external_shared_.PropTypes.func
965
+ };
966
+ /* harmony default export */ const steps = ((0,external_vue_.defineComponent)({
967
+ name: 'Steps',
968
+ props: stepsProps,
969
+ emits: ['update:curStep', 'click'],
970
+ setup: function setup(props, _ref) {
971
+ var _this = this;
972
+ var emit = _ref.emit;
973
+ var t = (0,external_config_provider_.useLocale)('steps');
974
+ var lang = (0,external_config_provider_.useLocale)('lang');
975
+ var defaultSteps = (0,external_vue_.ref)([]);
976
+ var updateSteps = function updateSteps(steps) {
977
+ var _defaultSteps$value;
978
+ var defaults = [];
979
+ steps.forEach(function (step) {
980
+ var _a;
981
+ if (typeof step === 'string') {
982
+ defaults.push(step);
983
+ } else {
984
+ defaults.push({
985
+ title: step.title,
986
+ icon: step.icon,
987
+ description: step.description,
988
+ status: step.status,
989
+ border: (_a = step.border) !== null && _a !== void 0 ? _a : true
990
+ });
991
+ }
992
+ });
993
+ (_defaultSteps$value = defaultSteps.value).splice.apply(_defaultSteps$value, [0, defaultSteps.value.length].concat(defaults));
994
+ };
995
+ var updateCurStep = function updateCurStep(curStep) {
996
+ stepsProps.curStep = curStep;
997
+ };
998
+ var init = function init() {
999
+ var _defaultSteps$value2;
1000
+ var _a;
1001
+ (_defaultSteps$value2 = defaultSteps.value).splice.apply(_defaultSteps$value2, [0, defaultSteps.value.length].concat([{
1002
+ title: t.value.step1,
1003
+ icon: 1
1004
+ }, {
1005
+ title: t.value.step2,
1006
+ icon: 2
1007
+ }, {
1008
+ title: t.value.step3,
1009
+ icon: 3
1010
+ }]));
1011
+ if ((_a = props.steps) === null || _a === void 0 ? void 0 : _a.length) {
1012
+ updateSteps(props.steps);
1013
+ }
1014
+ };
1015
+ (0,external_vue_.watch)(function () {
1016
+ return lang.value;
1017
+ }, function () {
1018
+ init();
1019
+ });
1020
+ // const globalConfigData = inject(rootProviderKey);
1021
+ // watch(() => globalConfigData, () => {
1022
+ // init();
1023
+ // }, { deep: true });
1024
+ var jumpTo = function jumpTo(index) {
1025
+ return __awaiter(_this, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee2() {
1026
+ var _this2 = this;
1027
+ return regenerator_default().wrap(function _callee2$(_context2) {
1028
+ while (1) switch (_context2.prev = _context2.next) {
1029
+ case 0:
1030
+ _context2.prev = 0;
1031
+ if (!(props.controllable && index !== props.curStep)) {
1032
+ _context2.next = 7;
1033
+ break;
1034
+ }
1035
+ if (!(typeof props.beforeChange === 'function')) {
1036
+ _context2.next = 5;
1037
+ break;
1038
+ }
1039
+ _context2.next = 5;
1040
+ return new Promise(function (resolve, reject) {
1041
+ return __awaiter(_this2, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee() {
1042
+ var confirmed;
1043
+ return regenerator_default().wrap(function _callee$(_context) {
1044
+ while (1) switch (_context.prev = _context.next) {
1045
+ case 0:
1046
+ _context.next = 2;
1047
+ return props.beforeChange(index);
1048
+ case 2:
1049
+ confirmed = _context.sent;
1050
+ confirmed ? resolve(confirmed) : reject(confirmed);
1051
+ case 4:
1052
+ case "end":
1053
+ return _context.stop();
1054
+ }
1055
+ }, _callee);
1056
+ }));
1057
+ });
1058
+ case 5:
1059
+ emit('update:curStep', index);
1060
+ emit('click', index);
1061
+ case 7:
1062
+ _context2.next = 12;
1063
+ break;
1064
+ case 9:
1065
+ _context2.prev = 9;
1066
+ _context2.t0 = _context2["catch"](0);
1067
+ console.warn(_context2.t0);
1068
+ case 12:
1069
+ case "end":
1070
+ return _context2.stop();
1071
+ }
1072
+ }, _callee2, null, [[0, 9]]);
1073
+ }));
1074
+ };
1075
+ (0,external_vue_.onMounted)(init);
1076
+ (0,external_vue_.watch)(function () {
1077
+ return props.steps;
1078
+ }, function () {
1079
+ updateSteps(props.steps);
1080
+ }, {
1081
+ deep: true
1082
+ });
1083
+ (0,external_vue_.watch)(function () {
1084
+ return props.curStep;
1085
+ }, function () {
1086
+ updateCurStep(props.curStep);
1087
+ }, {
1088
+ deep: true
1089
+ });
1090
+ var _usePrefix = (0,external_config_provider_.usePrefix)(),
1091
+ resolveClassName = _usePrefix.resolveClassName;
1092
+ return {
1093
+ defaultSteps: defaultSteps,
1094
+ jumpTo: jumpTo,
1095
+ resolveClassName: resolveClassName
1096
+ };
1097
+ },
1098
+ render: function render() {
1099
+ var _classes,
1100
+ _this3 = this;
1101
+ var stepsClsPrefix = this.resolveClassName('steps');
1102
+ var stepsThemeCls = this.theme ? "".concat(stepsClsPrefix, "-").concat(this.theme) : '';
1103
+ var stepsSizeCls = this.size ? "".concat(stepsClsPrefix, "-").concat(this.size) : '';
1104
+ var stepsCls = (0,external_shared_.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.extCls), !!this.extCls), _defineProperty(_classes, "".concat(this.resolveClassName("steps-".concat(this.direction))), this.direction), _defineProperty(_classes, "".concat(this.resolveClassName("steps-".concat(this.lineType))), this.lineType), _classes), "".concat(stepsThemeCls, " ").concat(stepsClsPrefix, " ").concat(stepsSizeCls));
1105
+ var isDone = function isDone(index) {
1106
+ return _this3.curStep > index + 1 || _this3.defaultSteps[index].status === 'done';
1107
+ };
1108
+ var isCurrent = function isCurrent(index) {
1109
+ return _this3.curStep === index + 1;
1110
+ };
1111
+ var iconType = function iconType(step) {
1112
+ var icon = step.icon;
1113
+ if (icon) {
1114
+ return Object.prototype.toString.call(icon) === '[object Object]';
1115
+ }
1116
+ return typeof step === 'string';
1117
+ };
1118
+ // const isIcon = (index, step) => (step.icon ? step.icon : index + 1);
1119
+ var isNumberIcon = function isNumberIcon(index, step) {
1120
+ if (!step.icon) {
1121
+ step.icon = index;
1122
+ }
1123
+ return !isNaN(step.icon);
1124
+ };
1125
+ var isLoadingStatus = function isLoadingStatus(step) {
1126
+ return step.status === 'loading';
1127
+ };
1128
+ var isErrorStatus = function isErrorStatus(step) {
1129
+ return step.status === 'error';
1130
+ };
1131
+ var renderIcon = function renderIcon(index, step) {
1132
+ if (isCurrent(index) && _this3.status === 'loading' || isLoadingStatus(step)) {
1133
+ return (0,external_vue_.createVNode)(external_icon_.Circle, {
1134
+ "class": "".concat(_this3.resolveClassName('icon'), " ").concat(_this3.resolveClassName('steps-icon'), " icon-loading")
1135
+ }, null);
1136
+ }
1137
+ if (isCurrent(index) && _this3.status === 'error' || isErrorStatus(step)) {
1138
+ return (0,external_vue_.createVNode)(external_icon_.Error, {
1139
+ "class": "".concat(_this3.resolveClassName('steps-icon'))
1140
+ }, null);
1141
+ }
1142
+ if (isDone(index)) {
1143
+ return (0,external_vue_.createVNode)(external_icon_.Done, {
1144
+ "class": "".concat(_this3.resolveClassName('steps-icon'))
1145
+ }, null);
1146
+ }
1147
+ return (0,external_vue_.createVNode)("span", null, [isNumberIcon(index, step) ? index + 1 : (0,external_vue_.createVNode)(step.icon, null, null)]);
1148
+ };
1149
+ return (0,external_vue_.createVNode)("div", {
1150
+ "class": stepsCls
1151
+ }, [this.defaultSteps.map(function (step, index) {
1152
+ var _a, _b, _c;
1153
+ return (0,external_vue_.createVNode)("div", {
1154
+ "class": [_this3.resolveClassName('step'), !step.title ? _this3.resolveClassName('step-no-content') : '', isDone(index) ? 'done' : '', isCurrent(index) ? 'current' : '', isCurrent(index) && _this3.status === 'error' ? 'isError' : '', step.status && isCurrent(index) ? ["".concat(_this3.resolveClassName("step-".concat(step.status)))] : '']
1155
+ }, [(0,external_vue_.createVNode)("span", {
1156
+ "class": ["".concat(_this3.resolveClassName('step-indicator')), "".concat(_this3.resolveClassName("step-".concat(iconType(step) ? 'icon' : 'number'))), "".concat(_this3.resolveClassName("step-icon".concat(step.status)))],
1157
+ "style": {
1158
+ cursor: _this3.controllable ? 'pointer' : ''
1159
+ },
1160
+ "onClick": function onClick() {
1161
+ _this3.jumpTo(index + 1);
1162
+ }
1163
+ }, [(_c = (_b = (_a = _this3.$slots)[index + 1]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : renderIcon(index, step)]), step.title ? (0,external_vue_.createVNode)("div", {
1164
+ "class": "".concat(_this3.resolveClassName('step-content'))
1165
+ }, [(0,external_vue_.createVNode)("div", {
1166
+ "class": "".concat(_this3.resolveClassName('step-title')),
1167
+ "style": {
1168
+ cursor: _this3.controllable ? 'pointer' : ''
1169
+ },
1170
+ "onClick": function onClick() {
1171
+ _this3.jumpTo(index + 1);
1172
+ }
1173
+ }, [step.title]), step.description && (0,external_vue_.createVNode)("div", {
1174
+ "class": "".concat(_this3.resolveClassName('step-description')),
1175
+ "title": step.description
1176
+ }, [step.description])]) : '']);
1177
+ })]);
1178
+ }
1179
+ }));
1180
+ ;// CONCATENATED MODULE: ../../packages/steps/src/index.ts
1181
+ /*
1182
+ * Tencent is pleased to support the open source community by making
1183
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1184
+ *
1185
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1186
+ *
1187
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1188
+ *
1189
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1190
+ *
1191
+ * ---------------------------------------------------
1192
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1193
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1194
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1195
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1196
+ *
1197
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1198
+ * the Software.
1199
+ *
1200
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1201
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1202
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1203
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1204
+ * IN THE SOFTWARE.
1205
+ */
1206
+
1207
+
1208
+ var BkSteps = (0,external_shared_.withInstall)(steps);
1209
+ /* harmony default export */ const src = (BkSteps);
1210
+ })();
1211
+
1212
+ /******/ return __webpack_exports__;
1213
+ /******/ })()
1214
+ ;
1215
+ });