bkui-vue 0.0.2-beta.82 → 0.0.2-beta.84
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.
- package/dist/index.cjs.js +135 -161
- package/dist/index.esm.js +16449 -19088
- package/dist/index.umd.js +135 -161
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +321 -1
- package/lib/alert/index.js +214 -1
- package/lib/animate-number/index.js +155 -1
- package/lib/backtop/index.js +188 -1
- package/lib/badge/index.js +235 -1
- package/lib/breadcrumb/index.js +309 -1
- package/lib/button/index.js +321 -1
- package/lib/card/index.js +285 -1
- package/lib/cascader/index.js +2036 -2
- package/lib/checkbox/index.js +542 -1
- package/lib/code-diff/index.js +5501 -1
- package/lib/collapse/index.js +570 -1
- package/lib/collapse-transition/index.js +177 -1
- package/lib/color-picker/index.js +2665 -1
- package/lib/components.js +530 -1
- package/lib/config-provider/index.js +365 -1
- package/lib/container/index.js +391 -1
- package/lib/date-picker/index.js +5555 -1
- package/lib/dialog/index.js +975 -2
- package/lib/directives/index.js +1375 -2
- package/lib/dist.index.js +87 -1
- package/lib/divider/index.js +169 -1
- package/lib/dropdown/index.js +369 -1
- package/lib/exception/index.js +385 -1
- package/lib/fixed-navbar/index.js +154 -1
- package/lib/form/index.js +952 -1
- package/lib/hooks.js +73 -1
- package/lib/icon/angle-double-down-line.js +191 -1
- package/lib/icon/angle-double-left-line.js +191 -1
- package/lib/icon/angle-double-left.js +191 -1
- package/lib/icon/angle-double-right-line.js +191 -1
- package/lib/icon/angle-double-right.js +191 -1
- package/lib/icon/angle-double-up-line.js +191 -1
- package/lib/icon/angle-down-fill.js +191 -1
- package/lib/icon/angle-down-line.js +191 -1
- package/lib/icon/angle-down.js +191 -1
- package/lib/icon/angle-left.js +191 -1
- package/lib/icon/angle-right.js +191 -1
- package/lib/icon/angle-up-fill.js +191 -1
- package/lib/icon/angle-up.js +191 -1
- package/lib/icon/archive-fill.js +191 -1
- package/lib/icon/arrows-left.js +191 -1
- package/lib/icon/arrows-right.js +191 -1
- package/lib/icon/assistant.js +191 -1
- package/lib/icon/audio-fill.js +191 -1
- package/lib/icon/bk.js +191 -1
- package/lib/icon/circle.js +191 -1
- package/lib/icon/close-line.js +191 -1
- package/lib/icon/close.js +191 -1
- package/lib/icon/code.js +191 -1
- package/lib/icon/cog-shape.js +191 -1
- package/lib/icon/collapse-left.js +191 -1
- package/lib/icon/copy-shape.js +191 -1
- package/lib/icon/copy.js +191 -1
- package/lib/icon/data-shape.js +191 -1
- package/lib/icon/del.js +191 -1
- package/lib/icon/doc-fill.js +191 -1
- package/lib/icon/done.js +191 -1
- package/lib/icon/down-shape.js +191 -1
- package/lib/icon/down-small.js +191 -1
- package/lib/icon/edit-line.js +191 -1
- package/lib/icon/ellipsis.js +191 -1
- package/lib/icon/enlarge-line.js +191 -1
- package/lib/icon/error.js +191 -1
- package/lib/icon/excel-fill.js +191 -1
- package/lib/icon/exclamation-circle-shape.js +191 -1
- package/lib/icon/eye.js +191 -1
- package/lib/icon/filliscreen-line.js +191 -1
- package/lib/icon/fix-line.js +191 -1
- package/lib/icon/fix-shape.js +191 -1
- package/lib/icon/folder-open.js +191 -1
- package/lib/icon/folder-shape-open.js +191 -1
- package/lib/icon/folder-shape.js +191 -1
- package/lib/icon/folder.js +191 -1
- package/lib/icon/funnel.js +191 -1
- package/lib/icon/help-document-fill.js +191 -1
- package/lib/icon/help-fill.js +191 -1
- package/lib/icon/help.js +191 -1
- package/lib/icon/image-fill.js +276 -1
- package/lib/icon/img-error.js +276 -1
- package/lib/icon/img-placehoulder.js +276 -1
- package/lib/icon/index.js +2399 -1
- package/lib/icon/info-line.js +276 -1
- package/lib/icon/info.js +276 -1
- package/lib/icon/left-shape.js +276 -1
- package/lib/icon/left-turn-line.js +276 -1
- package/lib/icon/narrow-line.js +276 -1
- package/lib/icon/original.js +276 -1
- package/lib/icon/pdf-fill.js +276 -1
- package/lib/icon/play-shape.js +276 -1
- package/lib/icon/plus.js +276 -1
- package/lib/icon/ppt-fill.js +276 -1
- package/lib/icon/qq.js +276 -1
- package/lib/icon/right-shape.js +276 -1
- package/lib/icon/right-turn-line.js +276 -1
- package/lib/icon/search.js +276 -1
- package/lib/icon/share.js +276 -1
- package/lib/icon/spinner.js +276 -1
- package/lib/icon/success.js +276 -1
- package/lib/icon/switcher-loading.js +276 -1
- package/lib/icon/text-file.js +276 -1
- package/lib/icon/text-fill.js +276 -1
- package/lib/icon/transfer.js +276 -1
- package/lib/icon/tree-application-shape.js +276 -1
- package/lib/icon/unfull-screen.js +276 -1
- package/lib/icon/unvisible.js +276 -1
- package/lib/icon/up-shape.js +276 -1
- package/lib/icon/upload.js +276 -1
- package/lib/icon/video-fill.js +276 -1
- package/lib/icon/warn.js +276 -1
- package/lib/icon/weixin-pro.js +276 -1
- package/lib/icon/weixin.js +276 -1
- package/lib/image/index.js +641 -1
- package/lib/index.js +97 -1
- package/lib/info-box/index.js +1165 -2
- package/lib/input/index.js +1218 -2
- package/lib/link/index.js +160 -1
- package/lib/loading/index.js +381 -1
- package/lib/locale/index.js +465 -1
- package/lib/menu/index.js +724 -1
- package/lib/message/index.js +1795 -2
- package/lib/modal/index.js +396 -1
- package/lib/navigation/index.js +367 -1
- package/lib/notify/index.js +397 -1
- package/lib/overflow-title/index.js +461 -1
- package/lib/pagination/index.js +880 -1
- package/lib/plugin-popover/index.js +4089 -1
- package/lib/plugins/index.js +63 -1
- package/lib/pop-confirm/index.js +273 -1
- package/lib/popover/index.js +4097 -1
- package/lib/popover2/index.js +107 -1
- package/lib/preset.js +93 -1
- package/lib/process/index.js +759 -2
- package/lib/progress/index.js +431 -1
- package/lib/radio/index.js +627 -1
- package/lib/rate/index.js +338 -1
- package/lib/resize-layout/index.js +429 -1
- package/lib/search-select/index.js +2729 -2
- package/lib/search-select/search-select.css +1 -3
- package/lib/search-select/search-select.less +1 -3
- package/lib/search-select/search-select.variable.css +1 -3
- package/lib/select/index.js +2251 -2
- package/lib/shared/index.js +2873 -1
- package/lib/sideslider/index.js +714 -2
- package/lib/slider/index.js +1291 -2
- package/lib/steps/index.js +825 -2
- package/lib/swiper/index.js +336 -1
- package/lib/switcher/index.js +277 -1
- package/lib/tab/index.js +914 -1
- package/lib/table/index.js +6421 -1
- package/lib/table/plugins/use-column-resize.d.ts +1 -1
- package/lib/table-column/index.js +763 -1
- package/lib/tag/index.js +233 -1
- package/lib/tag-input/index.js +1660 -1
- package/lib/tag-input/tag-input.d.ts +2 -14
- package/lib/time-picker/index.js +71 -1
- package/lib/timeline/index.js +241 -1
- package/lib/transfer/index.js +673 -1
- package/lib/tree/index.js +2686 -1
- package/lib/upload/index.js +2874 -2
- package/lib/virtual-render/index.js +865 -1
- package/package.json +13 -2
- package/lib/cascader/index.js.LICENSE.txt +0 -1
- package/lib/dialog/index.js.LICENSE.txt +0 -1
- package/lib/directives/index.js.LICENSE.txt +0 -14
- package/lib/info-box/index.js.LICENSE.txt +0 -1
- package/lib/input/index.js.LICENSE.txt +0 -1
- package/lib/message/index.js.LICENSE.txt +0 -6
- package/lib/process/index.js.LICENSE.txt +0 -1
- package/lib/search-select/index.js.LICENSE.txt +0 -1
- package/lib/select/index.js.LICENSE.txt +0 -1
- package/lib/sideslider/index.js.LICENSE.txt +0 -1
- package/lib/slider/index.js.LICENSE.txt +0 -1
- package/lib/steps/index.js.LICENSE.txt +0 -1
- package/lib/upload/index.js.LICENSE.txt +0 -1
package/lib/sideslider/index.js
CHANGED
@@ -1,2 +1,714 @@
|
|
1
|
-
|
2
|
-
import*as t from"../shared";import*as e from"vue";import*as r from"../button";import*as n from"../config-provider";import*as o from"../modal";var i={7609:(t,e,r)=>{var n=r(7425).default;function o(){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:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),c=new S(n||[]);return a(i,"_invoke",{value:O(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=d;var p={};function v(){}function y(){}function m(){}var g={};f(g,u,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(P([])));w&&w!==r&&i.call(w,u)&&(g=w);var b=m.prototype=v.prototype=Object.create(g);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,c,u){var s=h(t[o],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.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 O(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=_(a,r);if(c){if(c===p)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 u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function _(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,_(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;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,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(t){if(t){var e=t[u];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:k}}function k(){return{value:void 0,done:!0}}return y.prototype=m,a(b,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:y,configurable:!0}),y.displayName=f(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,f(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},L(j.prototype),f(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(d(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(b),f(b,l,"Generator"),f(b,u,(function(){return this})),f(b,"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=P,S.prototype={constructor:S,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(N),!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"),u=i.call(o,"finallyLoc");if(c&&u){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(!u)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,p):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),p},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),N(r),p}},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;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},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);var u={};(()=>{c.d(u,{Z:()=>x});const i=(a={withInstall:()=>t.withInstall},s={},c.d(s,a),s);var a,s;const l=(t=>{var e={};return c.d(e,t),e})({Fragment:()=>e.Fragment,createVNode:()=>e.createVNode,defineComponent:()=>e.defineComponent,isVNode:()=>e.isVNode,mergeProps:()=>e.mergeProps});var f=c(2841),d=c.n(f);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const h=(t=>{var e={};return c.d(e,t),e})({default:()=>r.default}),p=(t=>{var e={};return c.d(e,t),e})({usePrefix:()=>n.usePrefix}),v=(t=>{var e={};return c.d(e,t),e})({default:()=>o.default});var y=v.default.propsMixin,m=Object.assign({},y);m.width.default="400",m.height.default="100%";const g=(0,l.defineComponent)({name:"Sideslider",components:{BkModal:v.default,BkButton:h.default},props:Object.assign(Object.assign({},m),{direction:{type:String,default:"right",validator:function(t){var e=["left","right"];return!(e.indexOf(t)<0&&(console.error("direction property is not valid: '".concat(t,"',【").concat(e.join(" | "),"】")),1))}}}),emits:["closed","update:isShow","shown","hidden","animation-end"],setup:function(t,e){var r=this,n=e.slots,o=e.emit,i=function(){return e=r,n=void 0,i=void 0,a=d().mark((function e(){var r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!0,"function"!=typeof t.beforeClose){e.next=5;break}return e.next=4,t.beforeClose();case 4:r=e.sent;case 5:r&&(o("update:isShow",!1),o("closed"),setTimeout((function(){o("animation-end")}),250));case 6:case"end":return e.stop()}}),e)})),new(i||(i=Promise))((function(t,r){function o(t){try{u(a.next(t))}catch(t){r(t)}}function c(t){try{u(a.throw(t))}catch(t){r(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(o,c)}u((a=a.apply(e,n||[])).next())}));var e,n,i,a},a=function(){setTimeout((function(){o("shown")}),200)},c=function(){setTimeout((function(){o("hidden")}),200)},u=(0,p.usePrefix)().resolveClassName;return function(){var e,r={header:function(){var e,r;return(0,l.createVNode)(l.Fragment,null,[(0,l.createVNode)("div",{class:"".concat(u("sideslider-header"))},[(0,l.createVNode)("div",{class:"".concat(u("sideslider-close")," ").concat(t.direction),onClick:function(){i()}},null),(0,l.createVNode)("div",{class:"".concat(u("sideslider-title")," ").concat(t.direction)},[null!==(r=null===(e=n.header)||void 0===e?void 0:e.call(n))&&void 0!==r?r:t.title])])])},default:function(){var t,e;return null!==(e=null===(t=n.default)||void 0===t?void 0:t.call(n))&&void 0!==e?e:"Content"},footer:function(){return n.footer?(0,l.createVNode)("div",{class:"".concat(u("sideslider-footer"))},[n.footer()]):null}},o="".concat(u("sideslider-wrapper")," ").concat(t.scrollable?"scroll-able":""," ").concat(t.extCls),s=n.footer?"calc(100vh - 106px)":"calc(100vh - 52px)";return(0,l.createVNode)(v.default,(0,l.mergeProps)(t,{maxHeight:s,class:o,style:"".concat(t.direction,": 0;"),onHidden:c,onShown:a,onClose:i}),"function"==typeof(e=r)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,l.isVNode)(e)?r:{default:function(){return[r]}})}}}),x=(0,i.withInstall)(g)})();var s=u.Z;export{s as default};
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__button_59c00871__ from "../button";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__ from "../modal";
|
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 exports;
|
16
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
17
|
+
var exports = {},
|
18
|
+
Op = Object.prototype,
|
19
|
+
hasOwn = Op.hasOwnProperty,
|
20
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
21
|
+
obj[key] = desc.value;
|
22
|
+
},
|
23
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
24
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
25
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
26
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
27
|
+
function define(obj, key, value) {
|
28
|
+
return Object.defineProperty(obj, key, {
|
29
|
+
value: value,
|
30
|
+
enumerable: !0,
|
31
|
+
configurable: !0,
|
32
|
+
writable: !0
|
33
|
+
}), obj[key];
|
34
|
+
}
|
35
|
+
try {
|
36
|
+
define({}, "");
|
37
|
+
} catch (err) {
|
38
|
+
define = function define(obj, key, value) {
|
39
|
+
return obj[key] = value;
|
40
|
+
};
|
41
|
+
}
|
42
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
43
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
44
|
+
generator = Object.create(protoGenerator.prototype),
|
45
|
+
context = new Context(tryLocsList || []);
|
46
|
+
return defineProperty(generator, "_invoke", {
|
47
|
+
value: makeInvokeMethod(innerFn, self, context)
|
48
|
+
}), generator;
|
49
|
+
}
|
50
|
+
function tryCatch(fn, obj, arg) {
|
51
|
+
try {
|
52
|
+
return {
|
53
|
+
type: "normal",
|
54
|
+
arg: fn.call(obj, arg)
|
55
|
+
};
|
56
|
+
} catch (err) {
|
57
|
+
return {
|
58
|
+
type: "throw",
|
59
|
+
arg: err
|
60
|
+
};
|
61
|
+
}
|
62
|
+
}
|
63
|
+
exports.wrap = wrap;
|
64
|
+
var ContinueSentinel = {};
|
65
|
+
function Generator() {}
|
66
|
+
function GeneratorFunction() {}
|
67
|
+
function GeneratorFunctionPrototype() {}
|
68
|
+
var IteratorPrototype = {};
|
69
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
70
|
+
return this;
|
71
|
+
});
|
72
|
+
var getProto = Object.getPrototypeOf,
|
73
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
74
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
75
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
76
|
+
function defineIteratorMethods(prototype) {
|
77
|
+
["next", "throw", "return"].forEach(function (method) {
|
78
|
+
define(prototype, method, function (arg) {
|
79
|
+
return this._invoke(method, arg);
|
80
|
+
});
|
81
|
+
});
|
82
|
+
}
|
83
|
+
function AsyncIterator(generator, PromiseImpl) {
|
84
|
+
function invoke(method, arg, resolve, reject) {
|
85
|
+
var record = tryCatch(generator[method], generator, arg);
|
86
|
+
if ("throw" !== record.type) {
|
87
|
+
var result = record.arg,
|
88
|
+
value = result.value;
|
89
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
90
|
+
invoke("next", value, resolve, reject);
|
91
|
+
}, function (err) {
|
92
|
+
invoke("throw", err, resolve, reject);
|
93
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
94
|
+
result.value = unwrapped, resolve(result);
|
95
|
+
}, function (error) {
|
96
|
+
return invoke("throw", error, resolve, reject);
|
97
|
+
});
|
98
|
+
}
|
99
|
+
reject(record.arg);
|
100
|
+
}
|
101
|
+
var previousPromise;
|
102
|
+
defineProperty(this, "_invoke", {
|
103
|
+
value: function value(method, arg) {
|
104
|
+
function callInvokeWithMethodAndArg() {
|
105
|
+
return new PromiseImpl(function (resolve, reject) {
|
106
|
+
invoke(method, arg, resolve, reject);
|
107
|
+
});
|
108
|
+
}
|
109
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
110
|
+
}
|
111
|
+
});
|
112
|
+
}
|
113
|
+
function makeInvokeMethod(innerFn, self, context) {
|
114
|
+
var state = "suspendedStart";
|
115
|
+
return function (method, arg) {
|
116
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
117
|
+
if ("completed" === state) {
|
118
|
+
if ("throw" === method) throw arg;
|
119
|
+
return doneResult();
|
120
|
+
}
|
121
|
+
for (context.method = method, context.arg = arg;;) {
|
122
|
+
var delegate = context.delegate;
|
123
|
+
if (delegate) {
|
124
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
125
|
+
if (delegateResult) {
|
126
|
+
if (delegateResult === ContinueSentinel) continue;
|
127
|
+
return delegateResult;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
131
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
132
|
+
context.dispatchException(context.arg);
|
133
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
134
|
+
state = "executing";
|
135
|
+
var record = tryCatch(innerFn, self, context);
|
136
|
+
if ("normal" === record.type) {
|
137
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
138
|
+
return {
|
139
|
+
value: record.arg,
|
140
|
+
done: context.done
|
141
|
+
};
|
142
|
+
}
|
143
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
144
|
+
}
|
145
|
+
};
|
146
|
+
}
|
147
|
+
function maybeInvokeDelegate(delegate, context) {
|
148
|
+
var methodName = context.method,
|
149
|
+
method = delegate.iterator[methodName];
|
150
|
+
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;
|
151
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
152
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
153
|
+
var info = record.arg;
|
154
|
+
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);
|
155
|
+
}
|
156
|
+
function pushTryEntry(locs) {
|
157
|
+
var entry = {
|
158
|
+
tryLoc: locs[0]
|
159
|
+
};
|
160
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
161
|
+
}
|
162
|
+
function resetTryEntry(entry) {
|
163
|
+
var record = entry.completion || {};
|
164
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
165
|
+
}
|
166
|
+
function Context(tryLocsList) {
|
167
|
+
this.tryEntries = [{
|
168
|
+
tryLoc: "root"
|
169
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
170
|
+
}
|
171
|
+
function values(iterable) {
|
172
|
+
if (iterable) {
|
173
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
174
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
175
|
+
if ("function" == typeof iterable.next) return iterable;
|
176
|
+
if (!isNaN(iterable.length)) {
|
177
|
+
var i = -1,
|
178
|
+
next = function next() {
|
179
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
180
|
+
return next.value = undefined, next.done = !0, next;
|
181
|
+
};
|
182
|
+
return next.next = next;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
return {
|
186
|
+
next: doneResult
|
187
|
+
};
|
188
|
+
}
|
189
|
+
function doneResult() {
|
190
|
+
return {
|
191
|
+
value: undefined,
|
192
|
+
done: !0
|
193
|
+
};
|
194
|
+
}
|
195
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
196
|
+
value: GeneratorFunctionPrototype,
|
197
|
+
configurable: !0
|
198
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
199
|
+
value: GeneratorFunction,
|
200
|
+
configurable: !0
|
201
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
202
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
203
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
204
|
+
}, exports.mark = function (genFun) {
|
205
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
206
|
+
}, exports.awrap = function (arg) {
|
207
|
+
return {
|
208
|
+
__await: arg
|
209
|
+
};
|
210
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
211
|
+
return this;
|
212
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
213
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
214
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
215
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
216
|
+
return result.done ? result.value : iter.next();
|
217
|
+
});
|
218
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
219
|
+
return this;
|
220
|
+
}), define(Gp, "toString", function () {
|
221
|
+
return "[object Generator]";
|
222
|
+
}), exports.keys = function (val) {
|
223
|
+
var object = Object(val),
|
224
|
+
keys = [];
|
225
|
+
for (var key in object) keys.push(key);
|
226
|
+
return keys.reverse(), function next() {
|
227
|
+
for (; keys.length;) {
|
228
|
+
var key = keys.pop();
|
229
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
230
|
+
}
|
231
|
+
return next.done = !0, next;
|
232
|
+
};
|
233
|
+
}, exports.values = values, Context.prototype = {
|
234
|
+
constructor: Context,
|
235
|
+
reset: function reset(skipTempReset) {
|
236
|
+
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);
|
237
|
+
},
|
238
|
+
stop: function stop() {
|
239
|
+
this.done = !0;
|
240
|
+
var rootRecord = this.tryEntries[0].completion;
|
241
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
242
|
+
return this.rval;
|
243
|
+
},
|
244
|
+
dispatchException: function dispatchException(exception) {
|
245
|
+
if (this.done) throw exception;
|
246
|
+
var context = this;
|
247
|
+
function handle(loc, caught) {
|
248
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
249
|
+
}
|
250
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
251
|
+
var entry = this.tryEntries[i],
|
252
|
+
record = entry.completion;
|
253
|
+
if ("root" === entry.tryLoc) return handle("end");
|
254
|
+
if (entry.tryLoc <= this.prev) {
|
255
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
256
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
257
|
+
if (hasCatch && hasFinally) {
|
258
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
259
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
260
|
+
} else if (hasCatch) {
|
261
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
262
|
+
} else {
|
263
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
264
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
265
|
+
}
|
266
|
+
}
|
267
|
+
}
|
268
|
+
},
|
269
|
+
abrupt: function abrupt(type, arg) {
|
270
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
271
|
+
var entry = this.tryEntries[i];
|
272
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
273
|
+
var finallyEntry = entry;
|
274
|
+
break;
|
275
|
+
}
|
276
|
+
}
|
277
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
278
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
279
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
280
|
+
},
|
281
|
+
complete: function complete(record, afterLoc) {
|
282
|
+
if ("throw" === record.type) throw record.arg;
|
283
|
+
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;
|
284
|
+
},
|
285
|
+
finish: function finish(finallyLoc) {
|
286
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
287
|
+
var entry = this.tryEntries[i];
|
288
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
289
|
+
}
|
290
|
+
},
|
291
|
+
"catch": function _catch(tryLoc) {
|
292
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
293
|
+
var entry = this.tryEntries[i];
|
294
|
+
if (entry.tryLoc === tryLoc) {
|
295
|
+
var record = entry.completion;
|
296
|
+
if ("throw" === record.type) {
|
297
|
+
var thrown = record.arg;
|
298
|
+
resetTryEntry(entry);
|
299
|
+
}
|
300
|
+
return thrown;
|
301
|
+
}
|
302
|
+
}
|
303
|
+
throw new Error("illegal catch attempt");
|
304
|
+
},
|
305
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
306
|
+
return this.delegate = {
|
307
|
+
iterator: values(iterable),
|
308
|
+
resultName: resultName,
|
309
|
+
nextLoc: nextLoc
|
310
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
311
|
+
}
|
312
|
+
}, exports;
|
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(obj) {
|
322
|
+
"@babel/helpers - typeof";
|
323
|
+
|
324
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
325
|
+
return typeof obj;
|
326
|
+
} : function (obj) {
|
327
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
328
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
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
|
+
/******/ }
|
381
|
+
/******/
|
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
|
+
/******/
|
395
|
+
/******/ /* webpack/runtime/define property getters */
|
396
|
+
/******/ (() => {
|
397
|
+
/******/ // define getter functions for harmony exports
|
398
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
399
|
+
/******/ for(var key in definition) {
|
400
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
401
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
402
|
+
/******/ }
|
403
|
+
/******/ }
|
404
|
+
/******/ };
|
405
|
+
/******/ })();
|
406
|
+
/******/
|
407
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
408
|
+
/******/ (() => {
|
409
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
410
|
+
/******/ })();
|
411
|
+
/******/
|
412
|
+
/************************************************************************/
|
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
|
+
(() => {
|
416
|
+
|
417
|
+
// EXPORTS
|
418
|
+
__webpack_require__.d(__webpack_exports__, {
|
419
|
+
Z: () => (/* binding */ src)
|
420
|
+
});
|
421
|
+
|
422
|
+
;// CONCATENATED MODULE: external "../shared"
|
423
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
424
|
+
var y = x => () => x
|
425
|
+
const external_shared_namespaceObject = x({ ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
426
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
427
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
428
|
+
try {
|
429
|
+
var info = gen[key](arg);
|
430
|
+
var value = info.value;
|
431
|
+
} catch (error) {
|
432
|
+
reject(error);
|
433
|
+
return;
|
434
|
+
}
|
435
|
+
if (info.done) {
|
436
|
+
resolve(value);
|
437
|
+
} else {
|
438
|
+
Promise.resolve(value).then(_next, _throw);
|
439
|
+
}
|
440
|
+
}
|
441
|
+
function _asyncToGenerator(fn) {
|
442
|
+
return function () {
|
443
|
+
var self = this,
|
444
|
+
args = arguments;
|
445
|
+
return new Promise(function (resolve, reject) {
|
446
|
+
var gen = fn.apply(self, args);
|
447
|
+
function _next(value) {
|
448
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
449
|
+
}
|
450
|
+
function _throw(err) {
|
451
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
452
|
+
}
|
453
|
+
_next(undefined);
|
454
|
+
});
|
455
|
+
};
|
456
|
+
}
|
457
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
458
|
+
function _typeof(obj) {
|
459
|
+
"@babel/helpers - typeof";
|
460
|
+
|
461
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
462
|
+
return typeof obj;
|
463
|
+
} : function (obj) {
|
464
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
465
|
+
}, _typeof(obj);
|
466
|
+
}
|
467
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
468
|
+
|
469
|
+
function _toPrimitive(input, hint) {
|
470
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
471
|
+
var prim = input[Symbol.toPrimitive];
|
472
|
+
if (prim !== undefined) {
|
473
|
+
var res = prim.call(input, hint || "default");
|
474
|
+
if (_typeof(res) !== "object") return res;
|
475
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
476
|
+
}
|
477
|
+
return (hint === "string" ? String : Number)(input);
|
478
|
+
}
|
479
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
480
|
+
|
481
|
+
|
482
|
+
function _toPropertyKey(arg) {
|
483
|
+
var key = _toPrimitive(arg, "string");
|
484
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
485
|
+
}
|
486
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
487
|
+
|
488
|
+
function _defineProperty(obj, key, value) {
|
489
|
+
key = _toPropertyKey(key);
|
490
|
+
if (key in obj) {
|
491
|
+
Object.defineProperty(obj, key, {
|
492
|
+
value: value,
|
493
|
+
enumerable: true,
|
494
|
+
configurable: true,
|
495
|
+
writable: true
|
496
|
+
});
|
497
|
+
} else {
|
498
|
+
obj[key] = value;
|
499
|
+
}
|
500
|
+
return obj;
|
501
|
+
}
|
502
|
+
;// CONCATENATED MODULE: external "vue"
|
503
|
+
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
504
|
+
var external_vue_y = x => () => x
|
505
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps });
|
506
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
507
|
+
var regenerator = __webpack_require__(2841);
|
508
|
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
509
|
+
;// CONCATENATED MODULE: external "../button"
|
510
|
+
var external_button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
511
|
+
var external_button_y = x => () => x
|
512
|
+
const external_button_namespaceObject = external_button_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__button_59c00871__["default"] });
|
513
|
+
;// CONCATENATED MODULE: external "../config-provider"
|
514
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
515
|
+
var external_config_provider_y = x => () => x
|
516
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
517
|
+
;// CONCATENATED MODULE: external "../modal"
|
518
|
+
var external_modal_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
519
|
+
var external_modal_y = x => () => x
|
520
|
+
const external_modal_namespaceObject = external_modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__["default"] });
|
521
|
+
;// CONCATENATED MODULE: ../../packages/sideslider/src/sideslider.tsx
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
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; }
|
527
|
+
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; }
|
528
|
+
/*
|
529
|
+
* Tencent is pleased to support the open source community by making
|
530
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
531
|
+
*
|
532
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
533
|
+
*
|
534
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
535
|
+
*
|
536
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
537
|
+
*
|
538
|
+
* ---------------------------------------------------
|
539
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
540
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
541
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
542
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
543
|
+
*
|
544
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
545
|
+
* the Software.
|
546
|
+
*
|
547
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
548
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
549
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
550
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
551
|
+
* IN THE SOFTWARE.
|
552
|
+
*/
|
553
|
+
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
function _isSlot(s) {
|
558
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
559
|
+
}
|
560
|
+
var propsMixin = external_modal_namespaceObject["default"].propsMixin;
|
561
|
+
var sliderPops = Object.assign({}, propsMixin);
|
562
|
+
sliderPops.width["default"] = '400';
|
563
|
+
sliderPops.height["default"] = '100%';
|
564
|
+
/* harmony default export */ const sideslider = ((0,external_vue_namespaceObject.defineComponent)({
|
565
|
+
name: 'Sideslider',
|
566
|
+
components: {
|
567
|
+
BkModal: external_modal_namespaceObject["default"],
|
568
|
+
BkButton: external_button_namespaceObject["default"]
|
569
|
+
},
|
570
|
+
props: _objectSpread(_objectSpread({}, sliderPops), {}, {
|
571
|
+
direction: {
|
572
|
+
type: String,
|
573
|
+
"default": 'right',
|
574
|
+
validator: function validator(value) {
|
575
|
+
var textAlign = ['left', 'right'];
|
576
|
+
if (textAlign.indexOf(value) < 0) {
|
577
|
+
console.error("direction property is not valid: '".concat(value, "',\u3010").concat(textAlign.join(' | '), "\u3011"));
|
578
|
+
return false;
|
579
|
+
}
|
580
|
+
return true;
|
581
|
+
}
|
582
|
+
}
|
583
|
+
}),
|
584
|
+
emits: ['closed', 'update:isShow', 'shown', 'hidden', 'animation-end'],
|
585
|
+
setup: function setup(props, _ref) {
|
586
|
+
var slots = _ref.slots,
|
587
|
+
emit = _ref.emit;
|
588
|
+
var handleClose = /*#__PURE__*/function () {
|
589
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
590
|
+
var shouldClose;
|
591
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
592
|
+
while (1) switch (_context.prev = _context.next) {
|
593
|
+
case 0:
|
594
|
+
shouldClose = true;
|
595
|
+
if (!(typeof props.beforeClose === 'function')) {
|
596
|
+
_context.next = 5;
|
597
|
+
break;
|
598
|
+
}
|
599
|
+
_context.next = 4;
|
600
|
+
return props.beforeClose();
|
601
|
+
case 4:
|
602
|
+
shouldClose = _context.sent;
|
603
|
+
case 5:
|
604
|
+
if (shouldClose) {
|
605
|
+
emit('update:isShow', false);
|
606
|
+
emit('closed');
|
607
|
+
setTimeout(function () {
|
608
|
+
// 有动画,推迟发布事件
|
609
|
+
emit('animation-end');
|
610
|
+
}, 250);
|
611
|
+
}
|
612
|
+
case 6:
|
613
|
+
case "end":
|
614
|
+
return _context.stop();
|
615
|
+
}
|
616
|
+
}, _callee);
|
617
|
+
}));
|
618
|
+
return function handleClose() {
|
619
|
+
return _ref2.apply(this, arguments);
|
620
|
+
};
|
621
|
+
}();
|
622
|
+
var handleShown = function handleShown() {
|
623
|
+
// 有动画,推迟发布事件
|
624
|
+
setTimeout(function () {
|
625
|
+
emit('shown');
|
626
|
+
}, 200);
|
627
|
+
};
|
628
|
+
var handleHidden = function handleHidden() {
|
629
|
+
// 有动画,推迟发布事件
|
630
|
+
setTimeout(function () {
|
631
|
+
emit('hidden');
|
632
|
+
}, 200);
|
633
|
+
};
|
634
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
635
|
+
resolveClassName = _usePrefix.resolveClassName;
|
636
|
+
return function () {
|
637
|
+
var dialogSlot = {
|
638
|
+
header: function header() {
|
639
|
+
var _slots$header, _slots$header2;
|
640
|
+
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("div", {
|
641
|
+
"class": "".concat(resolveClassName('sideslider-header'))
|
642
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
643
|
+
"class": "".concat(resolveClassName('sideslider-close'), " ").concat(props.direction),
|
644
|
+
"onClick": function onClick() {
|
645
|
+
handleClose();
|
646
|
+
}
|
647
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("div", {
|
648
|
+
"class": "".concat(resolveClassName('sideslider-title'), " ").concat(props.direction)
|
649
|
+
}, [(_slots$header = (_slots$header2 = slots.header) === null || _slots$header2 === void 0 ? void 0 : _slots$header2.call(slots)) !== null && _slots$header !== void 0 ? _slots$header : props.title])])]);
|
650
|
+
},
|
651
|
+
"default": function _default() {
|
652
|
+
var _slots$default, _slots$default2;
|
653
|
+
return (_slots$default = (_slots$default2 = slots["default"]) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots)) !== null && _slots$default !== void 0 ? _slots$default : 'Content';
|
654
|
+
},
|
655
|
+
footer: function footer() {
|
656
|
+
if (slots.footer) {
|
657
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
658
|
+
"class": "".concat(resolveClassName('sideslider-footer'))
|
659
|
+
}, [slots.footer()]);
|
660
|
+
}
|
661
|
+
return null;
|
662
|
+
}
|
663
|
+
};
|
664
|
+
var className = "".concat(resolveClassName('sideslider-wrapper'), " ").concat(props.scrollable ? 'scroll-able' : '', " ").concat(props.extCls);
|
665
|
+
var maxHeight = slots.footer ? 'calc(100vh - 106px)' : 'calc(100vh - 52px)';
|
666
|
+
return (0,external_vue_namespaceObject.createVNode)(external_modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(props, {
|
667
|
+
"maxHeight": maxHeight,
|
668
|
+
"class": className,
|
669
|
+
"style": "".concat(props.direction, ": 0;"),
|
670
|
+
"onHidden": handleHidden,
|
671
|
+
"onShown": handleShown,
|
672
|
+
"onClose": handleClose
|
673
|
+
}), _isSlot(dialogSlot) ? dialogSlot : {
|
674
|
+
"default": function _default() {
|
675
|
+
return [dialogSlot];
|
676
|
+
}
|
677
|
+
});
|
678
|
+
};
|
679
|
+
}
|
680
|
+
}));
|
681
|
+
;// CONCATENATED MODULE: ../../packages/sideslider/src/index.ts
|
682
|
+
/*
|
683
|
+
* Tencent is pleased to support the open source community by making
|
684
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
685
|
+
*
|
686
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
687
|
+
*
|
688
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
689
|
+
*
|
690
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
691
|
+
*
|
692
|
+
* ---------------------------------------------------
|
693
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
694
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
695
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
696
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
697
|
+
*
|
698
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
699
|
+
* the Software.
|
700
|
+
*
|
701
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
702
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
703
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
704
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
705
|
+
* IN THE SOFTWARE.
|
706
|
+
*/
|
707
|
+
|
708
|
+
|
709
|
+
var BkSideslider = (0,external_shared_namespaceObject.withInstall)(sideslider);
|
710
|
+
/* harmony default export */ const src = (BkSideslider);
|
711
|
+
})();
|
712
|
+
|
713
|
+
var __webpack_exports__default = __webpack_exports__.Z;
|
714
|
+
export { __webpack_exports__default as default };
|