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.
Files changed (180) hide show
  1. package/dist/index.cjs.js +135 -161
  2. package/dist/index.esm.js +16449 -19088
  3. package/dist/index.umd.js +135 -161
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +321 -1
  7. package/lib/alert/index.js +214 -1
  8. package/lib/animate-number/index.js +155 -1
  9. package/lib/backtop/index.js +188 -1
  10. package/lib/badge/index.js +235 -1
  11. package/lib/breadcrumb/index.js +309 -1
  12. package/lib/button/index.js +321 -1
  13. package/lib/card/index.js +285 -1
  14. package/lib/cascader/index.js +2036 -2
  15. package/lib/checkbox/index.js +542 -1
  16. package/lib/code-diff/index.js +5501 -1
  17. package/lib/collapse/index.js +570 -1
  18. package/lib/collapse-transition/index.js +177 -1
  19. package/lib/color-picker/index.js +2665 -1
  20. package/lib/components.js +530 -1
  21. package/lib/config-provider/index.js +365 -1
  22. package/lib/container/index.js +391 -1
  23. package/lib/date-picker/index.js +5555 -1
  24. package/lib/dialog/index.js +975 -2
  25. package/lib/directives/index.js +1375 -2
  26. package/lib/dist.index.js +87 -1
  27. package/lib/divider/index.js +169 -1
  28. package/lib/dropdown/index.js +369 -1
  29. package/lib/exception/index.js +385 -1
  30. package/lib/fixed-navbar/index.js +154 -1
  31. package/lib/form/index.js +952 -1
  32. package/lib/hooks.js +73 -1
  33. package/lib/icon/angle-double-down-line.js +191 -1
  34. package/lib/icon/angle-double-left-line.js +191 -1
  35. package/lib/icon/angle-double-left.js +191 -1
  36. package/lib/icon/angle-double-right-line.js +191 -1
  37. package/lib/icon/angle-double-right.js +191 -1
  38. package/lib/icon/angle-double-up-line.js +191 -1
  39. package/lib/icon/angle-down-fill.js +191 -1
  40. package/lib/icon/angle-down-line.js +191 -1
  41. package/lib/icon/angle-down.js +191 -1
  42. package/lib/icon/angle-left.js +191 -1
  43. package/lib/icon/angle-right.js +191 -1
  44. package/lib/icon/angle-up-fill.js +191 -1
  45. package/lib/icon/angle-up.js +191 -1
  46. package/lib/icon/archive-fill.js +191 -1
  47. package/lib/icon/arrows-left.js +191 -1
  48. package/lib/icon/arrows-right.js +191 -1
  49. package/lib/icon/assistant.js +191 -1
  50. package/lib/icon/audio-fill.js +191 -1
  51. package/lib/icon/bk.js +191 -1
  52. package/lib/icon/circle.js +191 -1
  53. package/lib/icon/close-line.js +191 -1
  54. package/lib/icon/close.js +191 -1
  55. package/lib/icon/code.js +191 -1
  56. package/lib/icon/cog-shape.js +191 -1
  57. package/lib/icon/collapse-left.js +191 -1
  58. package/lib/icon/copy-shape.js +191 -1
  59. package/lib/icon/copy.js +191 -1
  60. package/lib/icon/data-shape.js +191 -1
  61. package/lib/icon/del.js +191 -1
  62. package/lib/icon/doc-fill.js +191 -1
  63. package/lib/icon/done.js +191 -1
  64. package/lib/icon/down-shape.js +191 -1
  65. package/lib/icon/down-small.js +191 -1
  66. package/lib/icon/edit-line.js +191 -1
  67. package/lib/icon/ellipsis.js +191 -1
  68. package/lib/icon/enlarge-line.js +191 -1
  69. package/lib/icon/error.js +191 -1
  70. package/lib/icon/excel-fill.js +191 -1
  71. package/lib/icon/exclamation-circle-shape.js +191 -1
  72. package/lib/icon/eye.js +191 -1
  73. package/lib/icon/filliscreen-line.js +191 -1
  74. package/lib/icon/fix-line.js +191 -1
  75. package/lib/icon/fix-shape.js +191 -1
  76. package/lib/icon/folder-open.js +191 -1
  77. package/lib/icon/folder-shape-open.js +191 -1
  78. package/lib/icon/folder-shape.js +191 -1
  79. package/lib/icon/folder.js +191 -1
  80. package/lib/icon/funnel.js +191 -1
  81. package/lib/icon/help-document-fill.js +191 -1
  82. package/lib/icon/help-fill.js +191 -1
  83. package/lib/icon/help.js +191 -1
  84. package/lib/icon/image-fill.js +276 -1
  85. package/lib/icon/img-error.js +276 -1
  86. package/lib/icon/img-placehoulder.js +276 -1
  87. package/lib/icon/index.js +2399 -1
  88. package/lib/icon/info-line.js +276 -1
  89. package/lib/icon/info.js +276 -1
  90. package/lib/icon/left-shape.js +276 -1
  91. package/lib/icon/left-turn-line.js +276 -1
  92. package/lib/icon/narrow-line.js +276 -1
  93. package/lib/icon/original.js +276 -1
  94. package/lib/icon/pdf-fill.js +276 -1
  95. package/lib/icon/play-shape.js +276 -1
  96. package/lib/icon/plus.js +276 -1
  97. package/lib/icon/ppt-fill.js +276 -1
  98. package/lib/icon/qq.js +276 -1
  99. package/lib/icon/right-shape.js +276 -1
  100. package/lib/icon/right-turn-line.js +276 -1
  101. package/lib/icon/search.js +276 -1
  102. package/lib/icon/share.js +276 -1
  103. package/lib/icon/spinner.js +276 -1
  104. package/lib/icon/success.js +276 -1
  105. package/lib/icon/switcher-loading.js +276 -1
  106. package/lib/icon/text-file.js +276 -1
  107. package/lib/icon/text-fill.js +276 -1
  108. package/lib/icon/transfer.js +276 -1
  109. package/lib/icon/tree-application-shape.js +276 -1
  110. package/lib/icon/unfull-screen.js +276 -1
  111. package/lib/icon/unvisible.js +276 -1
  112. package/lib/icon/up-shape.js +276 -1
  113. package/lib/icon/upload.js +276 -1
  114. package/lib/icon/video-fill.js +276 -1
  115. package/lib/icon/warn.js +276 -1
  116. package/lib/icon/weixin-pro.js +276 -1
  117. package/lib/icon/weixin.js +276 -1
  118. package/lib/image/index.js +641 -1
  119. package/lib/index.js +97 -1
  120. package/lib/info-box/index.js +1165 -2
  121. package/lib/input/index.js +1218 -2
  122. package/lib/link/index.js +160 -1
  123. package/lib/loading/index.js +381 -1
  124. package/lib/locale/index.js +465 -1
  125. package/lib/menu/index.js +724 -1
  126. package/lib/message/index.js +1795 -2
  127. package/lib/modal/index.js +396 -1
  128. package/lib/navigation/index.js +367 -1
  129. package/lib/notify/index.js +397 -1
  130. package/lib/overflow-title/index.js +461 -1
  131. package/lib/pagination/index.js +880 -1
  132. package/lib/plugin-popover/index.js +4089 -1
  133. package/lib/plugins/index.js +63 -1
  134. package/lib/pop-confirm/index.js +273 -1
  135. package/lib/popover/index.js +4097 -1
  136. package/lib/popover2/index.js +107 -1
  137. package/lib/preset.js +93 -1
  138. package/lib/process/index.js +759 -2
  139. package/lib/progress/index.js +431 -1
  140. package/lib/radio/index.js +627 -1
  141. package/lib/rate/index.js +338 -1
  142. package/lib/resize-layout/index.js +429 -1
  143. package/lib/search-select/index.js +2729 -2
  144. package/lib/search-select/search-select.css +1 -3
  145. package/lib/search-select/search-select.less +1 -3
  146. package/lib/search-select/search-select.variable.css +1 -3
  147. package/lib/select/index.js +2251 -2
  148. package/lib/shared/index.js +2873 -1
  149. package/lib/sideslider/index.js +714 -2
  150. package/lib/slider/index.js +1291 -2
  151. package/lib/steps/index.js +825 -2
  152. package/lib/swiper/index.js +336 -1
  153. package/lib/switcher/index.js +277 -1
  154. package/lib/tab/index.js +914 -1
  155. package/lib/table/index.js +6421 -1
  156. package/lib/table/plugins/use-column-resize.d.ts +1 -1
  157. package/lib/table-column/index.js +763 -1
  158. package/lib/tag/index.js +233 -1
  159. package/lib/tag-input/index.js +1660 -1
  160. package/lib/tag-input/tag-input.d.ts +2 -14
  161. package/lib/time-picker/index.js +71 -1
  162. package/lib/timeline/index.js +241 -1
  163. package/lib/transfer/index.js +673 -1
  164. package/lib/tree/index.js +2686 -1
  165. package/lib/upload/index.js +2874 -2
  166. package/lib/virtual-render/index.js +865 -1
  167. package/package.json +13 -2
  168. package/lib/cascader/index.js.LICENSE.txt +0 -1
  169. package/lib/dialog/index.js.LICENSE.txt +0 -1
  170. package/lib/directives/index.js.LICENSE.txt +0 -14
  171. package/lib/info-box/index.js.LICENSE.txt +0 -1
  172. package/lib/input/index.js.LICENSE.txt +0 -1
  173. package/lib/message/index.js.LICENSE.txt +0 -6
  174. package/lib/process/index.js.LICENSE.txt +0 -1
  175. package/lib/search-select/index.js.LICENSE.txt +0 -1
  176. package/lib/select/index.js.LICENSE.txt +0 -1
  177. package/lib/sideslider/index.js.LICENSE.txt +0 -1
  178. package/lib/slider/index.js.LICENSE.txt +0 -1
  179. package/lib/steps/index.js.LICENSE.txt +0 -1
  180. package/lib/upload/index.js.LICENSE.txt +0 -1
@@ -1 +1,2873 @@
1
- import*as e from"vue";import*as t from"lodash";import*as n from"@popperjs/core";import*as i from"vue-types";var r={8022:(e,t,n)=>{var i=n(4481),r=n(6426),o=r;o.v1=i,o.v4=r,e.exports=o},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var i=n||0,r=t;return[r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},4481:(e,t,n)=>{var i,r,o=n(9157),a=n(8725),s=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],f=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==p){var h=o();null==f&&(f=i=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=r=16383&(h[6]<<8|h[7]))}var d=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,y=d-s+(v-u)/1e4;if(y<0&&void 0===e.clockseq&&(p=p+1&16383),(y<0||d>s)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=d,u=v,r=p;var g=(1e4*(268435455&(d+=122192928e5))+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var m=d/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var k=0;k<6;++k)l[c+k]=f[k];return t||a(l)}},6426:(e,t,n)=>{var i=n(9157),r=n(8725);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||i)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||r(a)}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s={};(()=>{a.d(s,{oY:()=>me,p3:()=>K,Ql:()=>B,Eo:()=>ee,mZ:()=>se,Wg:()=>J,_D:()=>Oe,dq:()=>Ee,kT:()=>Xe,WF:()=>we,Gl:()=>We,VS:()=>Se,Um:()=>be,_h:()=>ye,rU:()=>Ae,_q:()=>xe,Hl:()=>ze,Mc:()=>qe,ng:()=>Ge,Pi:()=>ge,y2:()=>Ie,qt:()=>Ze,aL:()=>Ke,mO:()=>ve,BZ:()=>Le,p:()=>Ve,XR:()=>Me,gg:()=>He,bY:()=>ke,os:()=>Te,WW:()=>Pe,h6:()=>ot,Lx:()=>$,aR:()=>te,ue:()=>G,kC:()=>z,ao:()=>q,Sh:()=>Ye,d9:()=>m,Ds:()=>it,ou:()=>_e,zo:()=>Fe,cA:()=>g,w$:()=>rt,b_:()=>v,xE:()=>R,vh:()=>L,ks:()=>ce,Hv:()=>S,kJ:()=>p,kK:()=>E,xb:()=>f,SI:()=>Qe,xV:()=>d,sS:()=>l,Kn:()=>h,zW:()=>Be,oq:()=>M,TS:()=>T,NG:()=>I,WC:()=>b,Zd:()=>O,ZT:()=>Je,z3:()=>V,S1:()=>o,on:()=>r,Tf:()=>je,MX:()=>H,OB:()=>Ce,Ay:()=>$e,wB:()=>De,h5:()=>nt,SM:()=>u,LF:()=>le,b:()=>Ne,_7:()=>Ue,cI:()=>N,A9:()=>C,Be:()=>y,nz:()=>et,B:()=>tt});var r=document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!0)}:function(e,t,n){e&&t&&n&&e.attachEvent("on".concat(t),n)},o=document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!0)}:function(e,t,n){e&&t&&e.detachEvent("on".concat(t),n)};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,r=arguments.length>4?arguments[4]:void 0,o=Math.abs(t-n);!function t(n,i,o){if(n!==i){var a=n+o>i?i:n+o;n>i&&(a=n-o<i?i:n-o),e===window?window.scrollTo(a,a):e.scrollTop=a,window.requestAnimationFrame((function(){return t(a,i,o)}))}else null==r||r()}(t,n,Math.ceil(o/i*50))}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e){return null==e}function f(e){return""===e||!(arguments.length>1&&void 0!==arguments[1]&&!arguments[1])&&l(e)}function p(e){if(Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function h(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var d=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function v(e,t){return d(e)?e:t}function y(e,t){return void 0===e?t:e}function g(e,t){var n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function m(e){if(p(e))return e.map(m);if(h(e)){for(var t=Object.create(null),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=m(e[n[r]]);return t}return e}function k(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function b(e,t,n,i){if(k(e)){var r=t[e],o=n[e];h(r)&&h(o)?T(r,o,i):t[e]=m(o)}}function T(e,t,n){var i=p(t)?t:[t],r=i.length;if(!h(e))return e;for(var o=(n=n||{}).merger||b,a=0;a<r;++a)if(h(t=i[a]))for(var s=Object.keys(t),u=0,c=s.length;u<c;++u)o(s[u],e,t,n);return e}function I(e,t){return T(e,t,{merger:O})}function O(e,t,n){if(k(e)){var i=t[e],r=n[e];h(i)&&h(r)?I(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=m(r))}}function E(e){try{return e instanceof HTMLElement}catch(t){return"object"===c(e)&&1===e.nodeType&&"object"===c(e.style)&&"object"===c(e.ownerDocument)}}function S(e){return e.offsetWidth<e.scrollWidth||e.offsetHeight<e.scrollHeight}function M(e,t){S(e)?e.setAttribute("title",t):e.removeAttribute("title")}const w=(x={inject:()=>e.inject},A={},a.d(A,x),A);var x,A,L=Symbol("form"),R=Symbol("formItem"),N=function(){return(0,w.inject)(L)},C=function(){return(0,w.inject)(R,void 0)};function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}function U(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,j(i.key),i)}}function D(e,t,n){return t&&U(e.prototype,t),n&&U(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}const _=(e=>{var t={};return a.d(t,e),t})({throttle:()=>t.throttle});var F,B,H=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"abcdefghijklmnopqrstuvwxyz0123456789",n="",i=0;i<e;i++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},V=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=(0,_.throttle)((function(){"function"==typeof t&&t()}),n),o=new ResizeObserver((function(){r()}));return i&&"function"==typeof t&&t(),{start:function(){o.observe(e)},stop:function(){o.disconnect(),o.unobserve(e)}}},z=function(e){return e[0].toUpperCase()+e.slice(1)};function q(e){if(!e)return!1;var t=!1;try{var n=window.getComputedStyle(e,null);if("none"!==n.webkitLineClamp){var i=parseFloat(n.height),r=function(e,t){var n=document.createElement("div"),i=parseFloat(t.width)?"".concat(Math.ceil(parseFloat(t.width)),"px"):t.width;return n.style.cssText="\n width: ".concat(i,";\n line-height: ").concat(t["line-height"],";\n font-size: ").concat(t["font-size"],";\n word-break: ").concat(t["word-break"],";\n padding: ").concat(t.padding,";\n "),n.textContent=e.textContent,n}(e,n);document.body.appendChild(r);var o=window.getComputedStyle(r,null).height;document.body.removeChild(r),t=i<parseFloat(o)}else t=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(e){console.warn("There is an error when check element overflow state: ",e)}return t}function W(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BOTTOM="bottom",e.CONTENT="content",e.NAVI="navi",e.FULLSCREEN="fullScreen",e.PLUGINS="plugins",e.MODAL="modal",e.MESSAGE="message",e.POPPER="popper"}(B||(B={}));var K=(W(F={},B.BOTTOM,0),W(F,B.CONTENT,1),W(F,B.NAVI,100),W(F,B.FULLSCREEN,1e3),W(F,B.MODAL,3e3),W(F,B.PLUGINS,8e3),W(F,B.MESSAGE,1e4),W(F,B.POPPER,99999),F),G=new(function(){function e(){P(this,e),this.storageLayerIndexValue={},this.copyDefaultValue()}return D(e,[{key:"getNextIndex",value:function(e){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,e)?(this.storageLayerIndexValue[e]=this.storageLayerIndexValue[e]+1,this.storageLayerIndexValue[e]):(this.storageLayerIndexValue[B.MODAL]=this.storageLayerIndexValue[B.MODAL]+1,this.storageLayerIndexValue[B.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(B.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(B.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(B.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(B.NAVI)}},{key:"getPopperIndex",value:function(){return K.popper}},{key:"setDefaultZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue.__proto__,n)&&Object.assign(t.storageLayerIndexValue.__proto__,W({},n,e[n]))})),this.copyDefaultValue()}},{key:"resetZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue,n)&&Object.assign(t.storageLayerIndexValue,W({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(K).reduce((function(e,t){return Object.assign(e,W({},t,{value:K[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(K,e)}}]),e}());"__bk_mask_".concat(H(16));var Z=new WeakMap,Y=function(e){return Z.has(e)?Z.get(e):[]},X=new(function(){function e(){P(this,e),this.timer=null,this.store=[],this.maskMap=new WeakMap}return D(e,[{key:"appendMaker",value:function(e){this.store.push(e),this.executeMaker()}},{key:"pushMaskStyle",value:function(e,t){var n=this.getMaskMap(e);this.setMaskMap(e,Object.assign({styles:[t]},n||{}))}},{key:"getMaskStyles",value:function(e){var t;return(null===(t=this.getMaskMap(e))||void 0===t?void 0:t.styles)||[]}},{key:"setMaskId",value:function(e,t){var n=this.getMaskMap(e);n?(Object.assign(n,{id:t}),this.setMaskMap(e,n)):this.setMaskMap(e,Object.assign({id:t},n||{}))}},{key:"getMaskId",value:function(e){var t;return null===(t=this.getMaskMap(e))||void 0===t?void 0:t.id}},{key:"setMaskMap",value:function(e,t){this.maskMap.set(e,t)}},{key:"getMaskMap",value:function(e){return this.maskMap.get(e)}},{key:"executeMaker",value:function(){var e=this;this.timer&&cancelAnimationFrame(this.timer),this.timer=requestAnimationFrame((function(){var t=e.store.pop();"function"==typeof t&&(Reflect.apply(t,e,[]),e.executeMaker())}))}}]),e}()),J=function(){function e(t){var n=this;P(this,e),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"fixed",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"},this.isInit=!1,this.maskAttrTag="auto";var i=t||{},r=i.multiInstance,o=void 0!==r&&r,a=i.maskAttrTag,s=void 0===a?"auto":a,u=i.parentNode,c=void 0===u?document.body:u,l=i.maskStyle,f=void 0===l?{}:l;this.parentNode=c||document,this.maskAttrTag=s,this.activeInstance=void 0,this.multiInstance=o,this.uniqueMaskAttrTag=this.getMaskAttrTag(s),X.appendMaker((function(){n.initInstance(f)}))}return D(e,[{key:"setOption",value:function(e){var t=e||{},n=t.parentNode,i=void 0===n?document.body:n,r=t.maskStyle,o=void 0===r?{}:r,a=t.maskAttrTag,s=void 0===a?this.maskAttrTag:a;this.parentNode=i||document,this.setMaskStyle(Object.assign({},this.maskStyle,o)),this.uniqueMaskAttrTag=this.getMaskAttrTag(s)}},{key:"destroyEvent",value:function(e){if(this.mask){var t=Y(this.mask)||[],n=t.findIndex((function(t){return t.instanceId===e}));n>=0&&(t.splice(n,1),i=this.mask,r=t,Z.set(i,r))}var i,r}},{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=null!=r?r:H(16),c=/-?\d+/.test("".concat(t))?t:G.getModalNextIndex(),l=Object.assign({},this.maskStyle,i||{});if(!n&&this.lastUUID){var f=this.zIndexStore.get(this.lastUUID);f&&(l=null==f?void 0:f.style)}this.storeMaskInsCfg({zIndex:c,style:Object.assign({},l),uuid:u,preUID:this.lastUUID}),Object.assign(l,{display:"block","z-index":"".concat(c),"pointer-events":"all"}),this.initInstance(l),a&&this.catchClickEvent(e,a,s),this.setMaskStyle(l),X.pushMaskStyle(this.parentNode,Object.assign({},l)),this.backupMask.style.setProperty("z-index","".concat(c-1)),n||(this.mask.style.setProperty("pointer-events","none"),null==e||e.style.setProperty("pointer-events","all")),e&&(o&&e.style.setProperty("z-index","".concat(c+1)),this.activeInstance=e,this.appendContentToMask(e))}},{key:"hide",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=null!=i?i:this.lastUUID;t||(null==n||n.remove(),null===(e=this.activeInstance)||void 0===e||e.remove()),this.removeClickEvent(),this.activeInstance=void 0,this.popIndexStore(r);var o=X.getMaskStyles(this.parentNode);if(null==o||o.pop(),null==o?void 0:o.length){var a=o.slice(-1)[0];this.setMaskStyle(a)}else this.mask.style.setProperty("display","none")}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){var t;e&&(null===(t=this.backupMask)||void 0===t||t.append(e))}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"removeClickEvent",value:function(){}},{key:"initInstance",value:function(e){if(!this.isInit){this.isInit=!0,this.backupMask=this.getBackupMask();var t=this.getMask(),n=t.instance,i=t.isExist;this.mask=n,!i&&this.setMaskStyle(Object.assign({},this.maskStyle,e))}}},{key:"getMask",value:function(){var e=this;if(this.multiInstance)return{instance:this.createMask(),isExist:!1};var t=!0,n=this.parentNode.querySelector("[data-bk-mask-uid='".concat(this.uniqueMaskAttrTag,"']"));return n||(t=!1,(n=this.createMask()).addEventListener("click",(function(t){return e.handleMaskClick(t)}),!0)),{instance:n,isExist:t}}},{key:"catchClickEvent",value:function(e,t,n){this.mask&&function(e,t,n,i,r){var o=Y(e);o.some((function(e){return e.instanceId===r}))||(o.push({event:t,args:[],content:i,instanceId:r}),Z.set(e,o))}(this.mask,t,0,e,n)}},{key:"handleMaskClick",value:function(e){if(e.target===this.mask){var t=Y(this.mask);if(t.length){var n=t.slice(-1)[0].event;"function"==typeof n&&n(e)}}}},{key:"getBackupMask",value:function(){var e="data-bk-backup-uid",t=this.parentNode.querySelector("[".concat(e,"]"));return t||(t=this.createMask(e)),t}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?(X.getMaskId(this.parentNode)||X.setMaskId(this.parentNode,"__bk_mask_".concat(H(16))),X.getMaskId(this.parentNode)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),e}(),$=new J({}),Q=new WeakMap,ee=function(){function e(t){P(this,e),this.clickFn=void 0,this.uuidAttrName="data-bk-pop-uuid",this.uniqId=H(16),this.transfer=this.getParentNode(null==t?void 0:t.transfer),this.bKMaskManagerInstance=new J({parentNode:this.getParentNode(null==t?void 0:t.transfer),popInstance:this,onClick:this.onMaskClickFn})}return D(e,[{key:"popInstanceList",get:function(){return Q.has(this.transfer)||Q.set(this.transfer,[]),Q.get(this.transfer)},set:function(e){Q.set(this.transfer,e)}},{key:"getParentNode",value:function(e){if("string"==typeof e){var t=document.querySelector(e);if(t)return t}return E(e)?e:document.body}},{key:"onMaskClick",value:function(e,t){this.clickFn={fn:e,target:t}}},{key:"show",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;if(e){var a="number"==typeof r?r:G.getModalNextIndex(),s=H(16);e.setAttribute(this.uuidAttrName,s),this.popInstanceList.length>0&&t&&this.bKMaskManagerInstance.backupContentElement(this.popInstanceList.slice(-1)[0].content),this.popInstanceList.push({uuid:s,zIndex:a,content:e,showMask:t,appendStyle:n}),this.bKMaskManagerInstance.show(e,a,t,n,s,i,o,this.uniqId)}else console.warn("pop show error: content is null or undefined")}},{key:"destroy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.clickFn=void 0,this.hide(e,t)}},{key:"popHide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.popInstanceList.length){if(e){var t=this.popInstanceList.pop();this.bKMaskManagerInstance.popIndexStore(t.uuid),t.remove()}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],i=n.zIndex,r=n.content,o=n.showMask,a=n.appendStyle,s=n.uuid;this.bKMaskManagerInstance.show(r,i,o,a,s)}else this.bKMaskManagerInstance.hide()}}},{key:"hide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null==e?void 0:e.getAttribute(this.uuidAttrName);if(n){var i=this.popInstanceList.findIndex((function(e){return e.uuid===n}));i>=0&&(t||this.popInstanceList[i].content.remove(),this.popInstanceList.splice(i,1),this.bKMaskManagerInstance.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):this.bKMaskManagerInstance.hide(t))}else null==e||e.remove();this.bKMaskManagerInstance.removeClickEvent()}},{key:"removeLastEvent",value:function(){this.bKMaskManagerInstance.destroyEvent(this.uniqId)}},{key:"onMaskClickFn",value:function(e){if(this.clickFn){var t=this.clickFn.fn;t&&Reflect.apply(t,this,[e])}}}]),e}(),te=new ee;function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ie(e){return function(e){if(Array.isArray(e))return ne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var re=a(8022);const oe=(e=>{var t={};return a.d(t,e),t})({createPopper:()=>n.createPopper});var ae,se=function(){function e(t,n,i){var r,o;P(this,e),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.always=!1,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(r=this.popperRefer)||void 0===r?void 0:r.parentElement,this.isShow=!!(null===(o=this.instanceOptions)||void 0===o?void 0:o.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof i.afterHidden?i.afterHidden:function(){},this.afterShow="function"==typeof i.afterShow?i.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}return D(e,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(ie(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!0}])}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}},{key:"hide",value:function(){var e;this.always||(null===(e=this.popperRefer)||void 0===e||e.removeAttribute("data-show"),this.setOptions({modifiers:[].concat(ie(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!1}])}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}},{key:"restorePopContent",value:function(){var e=this.getAppendToTarget();E(e)&&e.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}},{key:"appendToTarget",value:function(){var e=this.getAppendToTarget();E(e)&&e.contains(this.popperRefer)&&e.append(this.popperRefer)}},{key:"getAppendToTarget",value:function(){var e=this.appendTo,t=e;return"parent"!==e&&"string"==typeof e&&(t=document.querySelector(e)),t}},{key:"initDefaultOptions",value:function(e){var t=this,n=T({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),i=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof i&&(i.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=(0,oe.createPopper)(this.referenceTarget,this.popperRefer,this.instanceOptions),null===(e=this.popperRefer)||void 0===e||e.setAttribute("data-theme",null!==(t=this.instanceOptions.theme)&&void 0!==t?t:"dark")):console.error("reference or popperRefer is null, please check html element."))}},{key:"resolveInputSelectorToHtmlElement",value:function(e){if(this.isElement(e))return e;if("string"==typeof e)return document.querySelector(e);if("object"===c(e)){if(Object.prototype.hasOwnProperty.call(e,"getBoundingClientRect"))return e}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}},{key:"isElement",value:function(e){return E(e)}},{key:"registerEvents",value:function(){var e=this;this.isElement(this.referenceTarget)&&"hover"===this.trigger&&(["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))),"click"===this.trigger&&["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):!e.isShow||e.isSameElement(t.target,e.popperRefer)||e.popperRefer.contains(t.target)||e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),e}(),ue=null,ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#";if(null===ue){ue="id_".concat((0,re.v4)());var t=document.createElement("div");t.setAttribute("id",ue),t.setAttribute("data-popper-id",ue),document.body.append(t)}return"".concat(e).concat(ue)};function le(){if(void 0!==ae)return ae;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),ae=t-i}function fe(e,t){return fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fe(e,t)}function pe(e){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pe(e)}const he=(e=>{var t={};return a.d(t,e),t})({createTypes:()=>i.createTypes,string:()=>i.string,toType:()=>i.toType});function de(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=pe(e);if(t){var r=pe(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}var ve,ye,ge,me,ke,be,Te,Ie,Oe,Ee,Se,Me,we,xe,Ae,Le,Re=(0,he.createTypes)({});function Ne(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}function Ce(){return(0,he.string)().def(ge.SHOW)}function Pe(){return(0,he.string)().def(me.LEFT)}function je(){return(0,he.string)().def(be.BOTTOM)}function Ue(){return(0,he.string)().def(Te.HOVER)}function De(){return(0,he.toType)("popRenderType",{}).def(Ie.SHOWN)}function _e(){return(0,he.toType)("dialogType",{default:Oe.OPERATION})}function Fe(){return(0,he.toType)("direction",{}).def(Ee.HORIZONTAL)}function Be(){return(0,he.toType)("lineType",{}).def(Se.DASHED)}function He(){return(0,he.toType)("tagTheme",{}).def()}function Ve(){return(0,he.toType)("switcherTheme",{}).def(Le.SUCCESS)}function ze(){return(0,he.toType)("progressStrokeLineCap",{}).def(xe.ROUNDE)}function qe(){return(0,he.toType)("progress",{}).def(Ae.LINE)}function We(){return(0,he.toType)("behavior",{}).def(we.NORMAL)}!function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(ve||(ve={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(ye||(ye={})),function(e){e.IF="if",e.SHOW="show"}(ge||(ge={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(me||(me={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(ke||(ke={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(be||(be={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(Te||(Te={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(Ie||(Ie={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(Oe||(Oe={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(Ee||(Ee={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(Se||(Se={})),function(e){e.UNKNOWN="",e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(Me||(Me={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(we||(we={})),function(e){e.BUTT="butt",e.SQUARE="square",e.ROUNDE="round"}(xe||(xe={})),function(e){e.LINE="line",e.CIRCLE="circle",e.DASHBOARD="dashboard"}(Ae||(Ae={})),function(e){e.SUCCESS="success",e.PRIMARY="primary"}(Le||(Le={}));var Ke,Ge=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fe(e,t)}(n,e);var t=de(n);function n(){return P(this,n),t.apply(this,arguments)}return D(n,null,[{key:"size",value:function(){var e=["small","default","large"];return(0,he.toType)("Size",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))},default:"default"})}},{key:"theme",value:function(){var e=["primary","warning","success","danger"];return(0,he.toType)("Theme",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))}})}},{key:"placement",value:function(){var e=["top","left","right","bottom"];return(0,he.toType)("Placements",{validator:function(t){return!(t&&!e.includes(t))},default:"top"})}},{key:"style",value:function(){return(0,he.toType)("Style",{type:[String,Object]})}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top-left","top-right","bottom-left","bottom-right"];return(0,he.toType)("positions",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid positions, ".concat(t,", the position must be one of 【").concat(e.join(" | "),"】")),1))},default:"top-center"})}}]),n}(Re);function Ze(){return(0,he.toType)("selectedStyle",{}).def(Ke.CHECK)}function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).filter((function(e){return e[1]})).map((function(e){return e[0]})).join(" ").concat(t?" ".concat(t):"")}!function(e){e.CHECKBOX="checkbox",e.CHECK="check"}(Ke||(Ke={}));var Xe=Object.create({}),Je=function(){},$e=function(){return null},Qe=function(e){return Object.keys(e).length<1},et=function(e){return e.install=function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).prefix,i=t.config.globalProperties.bkUIPrefix||n||"Bk";t.component(i+e.name,e)},e},tt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return e.install=function(r){var o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).prefix,a=r.config.globalProperties.bkUIPrefix||o||"Bk";i&&r.directive(a+i.name,i.directive),r.component(a+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(a+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e};function nt(e){return"".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk","-").concat(e)}function it(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=function(){var o=this,a=arguments;if(e&&clearTimeout(e),r){var s=!e;e=setTimeout((function(){e=null}),n),s&&(t=i.apply(o,a))}else e=setTimeout((function(){i.apply(o,a)}),n);return t};return o.cancel=function(){clearTimeout(e),e=null},o}function rt(e,t){return JSON.parse(JSON.stringify(e,(function(e,n){if(!t.includes(e))return n})))}function ot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){if(Array.isArray(e[n]))return ot(e[n],t[n]);if(e[n]!==t[n])return!1}return!0}})();var u=s.oY,c=s.p3,l=s.Ql,f=s.Eo,p=s.mZ,h=s.Wg,d=s._D,v=s.dq,y=s.kT,g=s.WF,m=s.Gl,k=s.VS,b=s.Um,T=s._h,I=s.rU,O=s._q,E=s.Hl,S=s.Mc,M=s.ng,w=s.Pi,x=s.y2,A=s.qt,L=s.aL,R=s.mO,N=s.BZ,C=s.p,P=s.XR,j=s.gg,U=s.bY,D=s.os,_=s.WW,F=s.h6,B=s.Lx,H=s.aR,V=s.ue,z=s.kC,q=s.ao,W=s.Sh,K=s.d9,G=s.Ds,Z=s.ou,Y=s.zo,X=s.cA,J=s.w$,$=s.b_,Q=s.xE,ee=s.vh,te=s.ks,ne=s.Hv,ie=s.kJ,re=s.kK,oe=s.xb,ae=s.SI,se=s.xV,ue=s.sS,ce=s.Kn,le=s.zW,fe=s.oq,pe=s.TS,he=s.NG,de=s.WC,ve=s.Zd,ye=s.ZT,ge=s.z3,me=s.S1,ke=s.on,be=s.Tf,Te=s.MX,Ie=s.OB,Oe=s.Ay,Ee=s.wB,Se=s.h5,Me=s.SM,we=s.LF,xe=s.b,Ae=s._7,Le=s.cI,Re=s.A9,Ne=s.Be,Ce=s.nz,Pe=s.B;export{u as AlignEnum,c as BKLAYERD_INDEX_EFAULT_VALUE,l as BKLAYERTYPE,f as BKPopIndexManager,p as BKPopover,h as BkMaskManager,d as DialogTypeEnum,v as DirectionEnum,y as EMPTY_OBJ,g as InputBehaviorEnum,m as InputBehaviorType,k as LineStyleEnum,b as PlacementEnum,T as Placements,I as ProgressEnum,O as ProgressStrokeLineCapEnum,E as ProgressStrokeLineCapType,S as ProgressType,M as PropTypes,w as RenderDirectiveEnum,x as RenderType,A as SelectedType,L as SelectedTypeEnum,R as SizeEnum,N as SwitcherThemeEnum,C as SwitcherThemeType,P as TagThemeEnum,j as TagThemeType,U as ThemeEnum,D as TriggerEnum,_ as alignType,F as arrayEqual,B as bKMaskManager,H as bkPopIndexManager,V as bkZIndexManager,z as capitalize,q as checkOverflow,W as classes,K as clone,G as debounce,Z as dialogTypeUnion,Y as directionType,X as elementsEqual,J as filterProperty,$ as finiteOrDefault,Q as formItemKey,ee as formKey,te as getPopContainerId,ne as hasOverflowEllipsis,ie as isArray,re as isElement,oe as isEmpty,ae as isEmptyObj,se as isFinite,ue as isNullOrUndef,ce as isObject,le as lineStyleType,fe as maybeShowTooltip,pe as merge,he as mergeIf,de as mergerFn,ve as mergerIfFn,ye as noop,ge as observerResize,me as off,ke as on,be as placementType,Te as random,Ie as renderDirectiveType,Oe as renderEmptyVNode,Ee as renderType,Se as resolveClassName,Me as scrollTop,we as scrollbarWidth,xe as stringEnum,Ae as triggerType,Le as useForm,Re as useFormItem,Ne as valueOrDefault,Ce as withInstall,Pe as withInstallProps};
1
+ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
5
+ /******/ var __webpack_modules__ = ({
6
+
7
+ /***/ 8022:
8
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9
+
10
+ var v1 = __webpack_require__(4481);
11
+ var v4 = __webpack_require__(6426);
12
+
13
+ var uuid = v4;
14
+ uuid.v1 = v1;
15
+ uuid.v4 = v4;
16
+
17
+ module.exports = uuid;
18
+
19
+
20
+ /***/ }),
21
+
22
+ /***/ 8725:
23
+ /***/ ((module) => {
24
+
25
+ /**
26
+ * Convert array of 16 byte values to UUID string format of the form:
27
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
28
+ */
29
+ var byteToHex = [];
30
+ for (var i = 0; i < 256; ++i) {
31
+ byteToHex[i] = (i + 0x100).toString(16).substr(1);
32
+ }
33
+
34
+ function bytesToUuid(buf, offset) {
35
+ var i = offset || 0;
36
+ var bth = byteToHex;
37
+ // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
38
+ return ([
39
+ bth[buf[i++]], bth[buf[i++]],
40
+ bth[buf[i++]], bth[buf[i++]], '-',
41
+ bth[buf[i++]], bth[buf[i++]], '-',
42
+ bth[buf[i++]], bth[buf[i++]], '-',
43
+ bth[buf[i++]], bth[buf[i++]], '-',
44
+ bth[buf[i++]], bth[buf[i++]],
45
+ bth[buf[i++]], bth[buf[i++]],
46
+ bth[buf[i++]], bth[buf[i++]]
47
+ ]).join('');
48
+ }
49
+
50
+ module.exports = bytesToUuid;
51
+
52
+
53
+ /***/ }),
54
+
55
+ /***/ 9157:
56
+ /***/ ((module) => {
57
+
58
+ // Unique ID creation requires a high quality random # generator. In the
59
+ // browser this is a little complicated due to unknown quality of Math.random()
60
+ // and inconsistent support for the `crypto` API. We do the best we can via
61
+ // feature-detection
62
+
63
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto
64
+ // implementation. Also, find the complete implementation of crypto on IE11.
65
+ var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
66
+ (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
67
+
68
+ if (getRandomValues) {
69
+ // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
70
+ var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
71
+
72
+ module.exports = function whatwgRNG() {
73
+ getRandomValues(rnds8);
74
+ return rnds8;
75
+ };
76
+ } else {
77
+ // Math.random()-based (RNG)
78
+ //
79
+ // If all else fails, use Math.random(). It's fast, but is of unspecified
80
+ // quality.
81
+ var rnds = new Array(16);
82
+
83
+ module.exports = function mathRNG() {
84
+ for (var i = 0, r; i < 16; i++) {
85
+ if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
86
+ rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
87
+ }
88
+
89
+ return rnds;
90
+ };
91
+ }
92
+
93
+
94
+ /***/ }),
95
+
96
+ /***/ 4481:
97
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
98
+
99
+ var rng = __webpack_require__(9157);
100
+ var bytesToUuid = __webpack_require__(8725);
101
+
102
+ // **`v1()` - Generate time-based UUID**
103
+ //
104
+ // Inspired by https://github.com/LiosK/UUID.js
105
+ // and http://docs.python.org/library/uuid.html
106
+
107
+ var _nodeId;
108
+ var _clockseq;
109
+
110
+ // Previous uuid creation time
111
+ var _lastMSecs = 0;
112
+ var _lastNSecs = 0;
113
+
114
+ // See https://github.com/uuidjs/uuid for API details
115
+ function v1(options, buf, offset) {
116
+ var i = buf && offset || 0;
117
+ var b = buf || [];
118
+
119
+ options = options || {};
120
+ var node = options.node || _nodeId;
121
+ var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
122
+
123
+ // node and clockseq need to be initialized to random values if they're not
124
+ // specified. We do this lazily to minimize issues related to insufficient
125
+ // system entropy. See #189
126
+ if (node == null || clockseq == null) {
127
+ var seedBytes = rng();
128
+ if (node == null) {
129
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
130
+ node = _nodeId = [
131
+ seedBytes[0] | 0x01,
132
+ seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
133
+ ];
134
+ }
135
+ if (clockseq == null) {
136
+ // Per 4.2.2, randomize (14 bit) clockseq
137
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
138
+ }
139
+ }
140
+
141
+ // UUID timestamps are 100 nano-second units since the Gregorian epoch,
142
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
143
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
144
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
145
+ var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
146
+
147
+ // Per 4.2.1.2, use count of uuid's generated during the current clock
148
+ // cycle to simulate higher resolution clock
149
+ var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
150
+
151
+ // Time since last uuid creation (in msecs)
152
+ var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
153
+
154
+ // Per 4.2.1.2, Bump clockseq on clock regression
155
+ if (dt < 0 && options.clockseq === undefined) {
156
+ clockseq = clockseq + 1 & 0x3fff;
157
+ }
158
+
159
+ // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
160
+ // time interval
161
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
162
+ nsecs = 0;
163
+ }
164
+
165
+ // Per 4.2.1.2 Throw error if too many uuids are requested
166
+ if (nsecs >= 10000) {
167
+ throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
168
+ }
169
+
170
+ _lastMSecs = msecs;
171
+ _lastNSecs = nsecs;
172
+ _clockseq = clockseq;
173
+
174
+ // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
175
+ msecs += 12219292800000;
176
+
177
+ // `time_low`
178
+ var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
179
+ b[i++] = tl >>> 24 & 0xff;
180
+ b[i++] = tl >>> 16 & 0xff;
181
+ b[i++] = tl >>> 8 & 0xff;
182
+ b[i++] = tl & 0xff;
183
+
184
+ // `time_mid`
185
+ var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
186
+ b[i++] = tmh >>> 8 & 0xff;
187
+ b[i++] = tmh & 0xff;
188
+
189
+ // `time_high_and_version`
190
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
191
+ b[i++] = tmh >>> 16 & 0xff;
192
+
193
+ // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
194
+ b[i++] = clockseq >>> 8 | 0x80;
195
+
196
+ // `clock_seq_low`
197
+ b[i++] = clockseq & 0xff;
198
+
199
+ // `node`
200
+ for (var n = 0; n < 6; ++n) {
201
+ b[i + n] = node[n];
202
+ }
203
+
204
+ return buf ? buf : bytesToUuid(b);
205
+ }
206
+
207
+ module.exports = v1;
208
+
209
+
210
+ /***/ }),
211
+
212
+ /***/ 6426:
213
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
214
+
215
+ var rng = __webpack_require__(9157);
216
+ var bytesToUuid = __webpack_require__(8725);
217
+
218
+ function v4(options, buf, offset) {
219
+ var i = buf && offset || 0;
220
+
221
+ if (typeof(options) == 'string') {
222
+ buf = options === 'binary' ? new Array(16) : null;
223
+ options = null;
224
+ }
225
+ options = options || {};
226
+
227
+ var rnds = options.random || (options.rng || rng)();
228
+
229
+ // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
230
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
231
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
232
+
233
+ // Copy bytes to buffer, if provided
234
+ if (buf) {
235
+ for (var ii = 0; ii < 16; ++ii) {
236
+ buf[i + ii] = rnds[ii];
237
+ }
238
+ }
239
+
240
+ return buf || bytesToUuid(rnds);
241
+ }
242
+
243
+ module.exports = v4;
244
+
245
+
246
+ /***/ })
247
+
248
+ /******/ });
249
+ /************************************************************************/
250
+ /******/ // The module cache
251
+ /******/ var __webpack_module_cache__ = {};
252
+ /******/
253
+ /******/ // The require function
254
+ /******/ function __webpack_require__(moduleId) {
255
+ /******/ // Check if module is in cache
256
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
257
+ /******/ if (cachedModule !== undefined) {
258
+ /******/ return cachedModule.exports;
259
+ /******/ }
260
+ /******/ // Create a new module (and put it into the cache)
261
+ /******/ var module = __webpack_module_cache__[moduleId] = {
262
+ /******/ // no module.id needed
263
+ /******/ // no module.loaded needed
264
+ /******/ exports: {}
265
+ /******/ };
266
+ /******/
267
+ /******/ // Execute the module function
268
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
269
+ /******/
270
+ /******/ // Return the exports of the module
271
+ /******/ return module.exports;
272
+ /******/ }
273
+ /******/
274
+ /************************************************************************/
275
+ /******/ /* webpack/runtime/define property getters */
276
+ /******/ (() => {
277
+ /******/ // define getter functions for harmony exports
278
+ /******/ __webpack_require__.d = (exports, definition) => {
279
+ /******/ for(var key in definition) {
280
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
281
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
282
+ /******/ }
283
+ /******/ }
284
+ /******/ };
285
+ /******/ })();
286
+ /******/
287
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
288
+ /******/ (() => {
289
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
290
+ /******/ })();
291
+ /******/
292
+ /************************************************************************/
293
+ var __webpack_exports__ = {};
294
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
295
+ (() => {
296
+
297
+ // EXPORTS
298
+ __webpack_require__.d(__webpack_exports__, {
299
+ oY: () => (/* reexport */ AlignEnum),
300
+ p3: () => (/* reexport */ BKLAYERD_INDEX_EFAULT_VALUE),
301
+ Ql: () => (/* reexport */ BKLAYERTYPE),
302
+ Eo: () => (/* reexport */ BKPopIndexManager),
303
+ mZ: () => (/* reexport */ BKPopover),
304
+ Wg: () => (/* reexport */ BkMaskManager),
305
+ _D: () => (/* reexport */ DialogTypeEnum),
306
+ dq: () => (/* reexport */ DirectionEnum),
307
+ kT: () => (/* binding */ EMPTY_OBJ),
308
+ WF: () => (/* reexport */ InputBehaviorEnum),
309
+ Gl: () => (/* reexport */ InputBehaviorType),
310
+ VS: () => (/* reexport */ LineStyleEnum),
311
+ Um: () => (/* reexport */ PlacementEnum),
312
+ _h: () => (/* reexport */ Placements),
313
+ rU: () => (/* reexport */ ProgressEnum),
314
+ _q: () => (/* reexport */ ProgressStrokeLineCapEnum),
315
+ Hl: () => (/* reexport */ ProgressStrokeLineCapType),
316
+ Mc: () => (/* reexport */ ProgressType),
317
+ ng: () => (/* reexport */ PropTypes),
318
+ Pi: () => (/* reexport */ RenderDirectiveEnum),
319
+ y2: () => (/* reexport */ RenderType),
320
+ qt: () => (/* reexport */ SelectedType),
321
+ aL: () => (/* reexport */ SelectedTypeEnum),
322
+ mO: () => (/* reexport */ SizeEnum),
323
+ BZ: () => (/* reexport */ SwitcherThemeEnum),
324
+ p: () => (/* reexport */ SwitcherThemeType),
325
+ XR: () => (/* reexport */ TagThemeEnum),
326
+ gg: () => (/* reexport */ TagThemeType),
327
+ bY: () => (/* reexport */ ThemeEnum),
328
+ os: () => (/* reexport */ TriggerEnum),
329
+ WW: () => (/* reexport */ alignType),
330
+ h6: () => (/* binding */ arrayEqual),
331
+ Lx: () => (/* reexport */ bKMaskManager),
332
+ aR: () => (/* reexport */ bkPopIndexManager),
333
+ ue: () => (/* reexport */ bkZIndexManager),
334
+ kC: () => (/* reexport */ capitalize),
335
+ ao: () => (/* reexport */ checkOverflow),
336
+ Sh: () => (/* binding */ classes),
337
+ d9: () => (/* reexport */ clone),
338
+ Ds: () => (/* binding */ debounce),
339
+ ou: () => (/* reexport */ dialogTypeUnion),
340
+ zo: () => (/* reexport */ directionType),
341
+ cA: () => (/* reexport */ elementsEqual),
342
+ w$: () => (/* binding */ filterProperty),
343
+ b_: () => (/* reexport */ finiteOrDefault),
344
+ xE: () => (/* reexport */ formItemKey),
345
+ vh: () => (/* reexport */ formKey),
346
+ ks: () => (/* reexport */ getPopContainerId),
347
+ Hv: () => (/* reexport */ hasOverflowEllipsis),
348
+ kJ: () => (/* reexport */ isArray),
349
+ kK: () => (/* reexport */ helper_isElement),
350
+ xb: () => (/* reexport */ isEmpty),
351
+ SI: () => (/* binding */ isEmptyObj),
352
+ xV: () => (/* reexport */ isNumberFinite),
353
+ sS: () => (/* reexport */ isNullOrUndef),
354
+ Kn: () => (/* reexport */ isObject),
355
+ zW: () => (/* reexport */ lineStyleType),
356
+ oq: () => (/* reexport */ maybeShowTooltip),
357
+ TS: () => (/* reexport */ merge),
358
+ NG: () => (/* reexport */ mergeIf),
359
+ WC: () => (/* reexport */ mergerFn),
360
+ Zd: () => (/* reexport */ mergerIfFn),
361
+ ZT: () => (/* binding */ noop),
362
+ z3: () => (/* reexport */ observerResize),
363
+ S1: () => (/* reexport */ off),
364
+ on: () => (/* reexport */ on),
365
+ Tf: () => (/* reexport */ placementType),
366
+ MX: () => (/* reexport */ random),
367
+ OB: () => (/* reexport */ renderDirectiveType),
368
+ Ay: () => (/* binding */ renderEmptyVNode),
369
+ wB: () => (/* reexport */ renderType),
370
+ h5: () => (/* binding */ resolveClassName),
371
+ SM: () => (/* reexport */ scrollTop),
372
+ LF: () => (/* reexport */ scrollbarWidth),
373
+ b: () => (/* reexport */ stringEnum),
374
+ _7: () => (/* reexport */ triggerType),
375
+ cI: () => (/* reexport */ useForm),
376
+ A9: () => (/* reexport */ useFormItem),
377
+ Be: () => (/* reexport */ valueOrDefault),
378
+ nz: () => (/* binding */ withInstall),
379
+ B: () => (/* binding */ withInstallProps)
380
+ });
381
+
382
+ ;// CONCATENATED MODULE: ../../packages/shared/src/dom.ts
383
+ /*
384
+ * Tencent is pleased to support the open source community by making
385
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
386
+ *
387
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
388
+ *
389
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
390
+ *
391
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
392
+ *
393
+ * ---------------------------------------------------
394
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
395
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
396
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
397
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
398
+ *
399
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
400
+ * the Software.
401
+ *
402
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
403
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
404
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
405
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
406
+ * IN THE SOFTWARE.
407
+ */
408
+ var on = function () {
409
+ if (document.addEventListener) {
410
+ return function (element, event, handler) {
411
+ if (element && event && handler) {
412
+ element.addEventListener(event, handler, true);
413
+ }
414
+ };
415
+ }
416
+ return function (element, event, handler) {
417
+ if (element && event && handler) {
418
+ element.attachEvent("on".concat(event), handler);
419
+ }
420
+ };
421
+ }();
422
+ // 兼容浏览器,移除事件监听器
423
+ var off = function () {
424
+ if (document.removeEventListener) {
425
+ return function (element, event, handler) {
426
+ if (element && event) {
427
+ element.removeEventListener(event, handler, true);
428
+ }
429
+ };
430
+ }
431
+ return function (element, event, handler) {
432
+ if (element && event) {
433
+ element.detachEvent("on".concat(event), handler);
434
+ }
435
+ };
436
+ }();
437
+ // scrollTop animation
438
+ function scrollTop(el) {
439
+ var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
440
+ var to = arguments.length > 2 ? arguments[2] : undefined;
441
+ var duration = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 500;
442
+ var endCallback = arguments.length > 4 ? arguments[4] : undefined;
443
+ var difference = Math.abs(from - to);
444
+ var step = Math.ceil(difference / duration * 50);
445
+ function scroll(start, end, step) {
446
+ if (start === end) {
447
+ endCallback === null || endCallback === void 0 ? void 0 : endCallback();
448
+ return;
449
+ }
450
+ var d = start + step > end ? end : start + step;
451
+ if (start > end) {
452
+ d = start - step < end ? end : start - step;
453
+ }
454
+ if (el === window) {
455
+ window.scrollTo(d, d);
456
+ } else {
457
+ el.scrollTop = d;
458
+ }
459
+ window.requestAnimationFrame(function () {
460
+ return scroll(d, end, step);
461
+ });
462
+ }
463
+ scroll(from, to, step);
464
+ }
465
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
466
+ function _typeof(obj) {
467
+ "@babel/helpers - typeof";
468
+
469
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
470
+ return typeof obj;
471
+ } : function (obj) {
472
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
473
+ }, _typeof(obj);
474
+ }
475
+ ;// CONCATENATED MODULE: ../../packages/shared/src/helper.ts
476
+
477
+ /*
478
+ * Tencent is pleased to support the open source community by making
479
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
480
+ *
481
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
482
+ *
483
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
484
+ *
485
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
486
+ *
487
+ * ---------------------------------------------------
488
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
489
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
490
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
491
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
492
+ *
493
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
494
+ * the Software.
495
+ *
496
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
497
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
498
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
499
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
500
+ * IN THE SOFTWARE.
501
+ */
502
+ /* eslint-disable no-underscore-dangle */
503
+ /**
504
+ * Returns true if `value` is neither null nor undefined, else returns false.
505
+ * @param {*} value - The value to test.
506
+ * @returns {boolean}
507
+ * @since 2.7.0
508
+ */
509
+ function isNullOrUndef(value) {
510
+ return value === null || typeof value === 'undefined';
511
+ }
512
+ function isEmpty(value) {
513
+ var IncludeNullUndefined = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
514
+ return value === '' || (IncludeNullUndefined ? isNullOrUndef(value) : false);
515
+ }
516
+ /**
517
+ * Returns true if `value` is an array (including typed arrays), else returns false.
518
+ * @param {*} value - The value to test.
519
+ * @returns {boolean}
520
+ * @function
521
+ */
522
+ function isArray(value) {
523
+ if (Array.isArray(value)) {
524
+ return true;
525
+ }
526
+ var type = Object.prototype.toString.call(value);
527
+ if (type.substr(0, 7) === '[object' && type.substr(-6) === 'Array]') {
528
+ return true;
529
+ }
530
+ return false;
531
+ }
532
+ /**
533
+ * Returns true if `value` is an object (excluding null), else returns false.
534
+ * @param {*} value - The value to test.
535
+ * @returns {boolean}
536
+ * @since 2.7.0
537
+ */
538
+ function isObject(value) {
539
+ return value !== null && /^\[object (Object|Module)\]/.test(Object.prototype.toString.call(value));
540
+ }
541
+ /**
542
+ * Returns true if `value` is a finite number, else returns false
543
+ * @param {*} value - The value to test.
544
+ * @returns {boolean}
545
+ */
546
+ var isNumberFinite = function isNumberFinite(value) {
547
+ return (typeof value === 'number' || value instanceof Number) && isFinite(+value);
548
+ };
549
+
550
+ /**
551
+ * Returns `value` if finite, else returns `defaultValue`.
552
+ * @param {*} value - The value to return if defined.
553
+ * @param {*} defaultValue - The value to return if `value` is not finite.
554
+ * @returns {*}
555
+ */
556
+ function finiteOrDefault(value, defaultValue) {
557
+ return isNumberFinite(value) ? value : defaultValue;
558
+ }
559
+ /**
560
+ * Returns `value` if defined, else returns `defaultValue`.
561
+ * @param {*} value - The value to return if defined.
562
+ * @param {*} defaultValue - The value to return if `value` is undefined.
563
+ * @returns {*}
564
+ */
565
+ function valueOrDefault(value, defaultValue) {
566
+ return typeof value === 'undefined' ? defaultValue : value;
567
+ }
568
+ /**
569
+ * Returns true if the `a0` and `a1` arrays have the same content, else returns false.
570
+ * @param {Array} a0 - The array to compare
571
+ * @param {Array} a1 - The array to compare
572
+ * @returns {boolean}
573
+ * @private
574
+ */
575
+ function elementsEqual(a0, a1) {
576
+ var i;
577
+ var ilen;
578
+ var v0;
579
+ var v1;
580
+ if (!a0 || !a1 || a0.length !== a1.length) {
581
+ return false;
582
+ }
583
+ for (i = 0, ilen = a0.length; i < ilen; ++i) {
584
+ v0 = a0[i];
585
+ v1 = a1[i];
586
+ if (v0.datasetIndex !== v1.datasetIndex || v0.index !== v1.index) {
587
+ return false;
588
+ }
589
+ }
590
+ return true;
591
+ }
592
+ /**
593
+ * Returns a deep copy of `source` without keeping references on objects and arrays.
594
+ * @param {*} source - The value to clone.
595
+ * @returns {*}
596
+ */
597
+ function clone(source) {
598
+ if (isArray(source)) {
599
+ return source.map(clone);
600
+ }
601
+ if (isObject(source)) {
602
+ var target = Object.create(null);
603
+ var keys = Object.keys(source);
604
+ var klen = keys.length;
605
+ var k = 0;
606
+ for (; k < klen; ++k) {
607
+ target[keys[k]] = clone(source[keys[k]]);
608
+ }
609
+ return target;
610
+ }
611
+ return source;
612
+ }
613
+ function isValidKey(key) {
614
+ return ['__proto__', 'prototype', 'constructor'].indexOf(key) === -1;
615
+ }
616
+ /**
617
+ * The default merger when Chart.helpers.merge is called without merger option.
618
+ * Note(SB): also used by mergeConfig and mergeScaleConfig as fallback.
619
+ * @private
620
+ */
621
+ function mergerFn(key, target, source, options) {
622
+ if (!isValidKey(key)) {
623
+ return;
624
+ }
625
+ var tval = target[key];
626
+ var sval = source[key];
627
+ if (isObject(tval) && isObject(sval)) {
628
+ // eslint-disable-next-line no-use-before-define
629
+ merge(tval, sval, options);
630
+ } else {
631
+ // eslint-disable-next-line no-param-reassign
632
+ target[key] = clone(sval);
633
+ }
634
+ }
635
+ /**
636
+ * Recursively deep copies `source` properties into `target` with the given `options`.
637
+ * IMPORTANT: `target` is not cloned and will be updated with `source` properties.
638
+ * @param {object} target - The target object in which all sources are merged into.
639
+ * @param {object|object[]} source - Object(s) to merge into `target`.
640
+ * @param {object} [options] - Merging options:
641
+ * @param {function} [options.merger] - The merge method (key, target, source, options)
642
+ * @returns {object} The `target` object.
643
+ */
644
+ function merge(target, source, options) {
645
+ var sources = isArray(source) ? source : [source];
646
+ var ilen = sources.length;
647
+ if (!isObject(target)) {
648
+ return target;
649
+ }
650
+ // eslint-disable-next-line no-param-reassign
651
+ options = options || {};
652
+ var merger = options.merger || mergerFn;
653
+ for (var i = 0; i < ilen; ++i) {
654
+ // eslint-disable-next-line no-param-reassign
655
+ source = sources[i];
656
+ if (!isObject(source)) {
657
+ continue;
658
+ }
659
+ var keys = Object.keys(source);
660
+ for (var k = 0, klen = keys.length; k < klen; ++k) {
661
+ merger(keys[k], target, source, options);
662
+ }
663
+ }
664
+ return target;
665
+ }
666
+ /**
667
+ * Recursively deep copies `source` properties into `target` *only* if not defined in target.
668
+ * IMPORTANT: `target` is not cloned and will be updated with `source` properties.
669
+ * @param {object} target - The target object in which all sources are merged into.
670
+ * @param {object|object[]} source - Object(s) to merge into `target`.
671
+ * @returns {object} The `target` object.
672
+ */
673
+ function mergeIf(target, source) {
674
+ // eslint-disable-next-line no-use-before-define
675
+ return merge(target, source, {
676
+ merger: mergerIfFn
677
+ });
678
+ }
679
+ /**
680
+ * Merges source[key] in target[key] only if target[key] is undefined.
681
+ * @private
682
+ */
683
+ function mergerIfFn(key, target, source) {
684
+ if (!isValidKey(key)) {
685
+ return;
686
+ }
687
+ var tval = target[key];
688
+ var sval = source[key];
689
+ if (isObject(tval) && isObject(sval)) {
690
+ mergeIf(tval, sval);
691
+ } else if (!Object.prototype.hasOwnProperty.call(target, key)) {
692
+ // eslint-disable-next-line no-param-reassign
693
+ target[key] = clone(sval);
694
+ }
695
+ }
696
+ /**
697
+ * 检查当前元素是否为Html元素
698
+ * @param obj
699
+ * @returns
700
+ */
701
+ function helper_isElement(obj) {
702
+ try {
703
+ return obj instanceof HTMLElement;
704
+ } catch (e) {
705
+ return _typeof(obj) === 'object' && obj.nodeType === 1 && _typeof(obj.style) === 'object' && _typeof(obj.ownerDocument) === 'object';
706
+ }
707
+ }
708
+ /**
709
+ * Whether the text content is clipped due to CSS overflow, as in showing `...`.
710
+ */
711
+ function hasOverflowEllipsis(element) {
712
+ return element.offsetWidth < element.scrollWidth || element.offsetHeight < element.scrollHeight;
713
+ }
714
+ /**
715
+ * Sets the `title` attribute in the event's element target, when the text
716
+ * content is clipped due to CSS overflow, as in showing `...`.
717
+ */
718
+ function maybeShowTooltip(target, title) {
719
+ if (hasOverflowEllipsis(target)) {
720
+ target.setAttribute('title', title);
721
+ } else {
722
+ target.removeAttribute('title');
723
+ }
724
+ }
725
+ ;// CONCATENATED MODULE: external "vue"
726
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
727
+ var y = x => () => x
728
+ const external_vue_namespaceObject = x({ ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject });
729
+ ;// CONCATENATED MODULE: ../../packages/shared/src/token.ts
730
+ /*
731
+ * Tencent is pleased to support the open source community by making
732
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
733
+ *
734
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
735
+ *
736
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
737
+ *
738
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
739
+ *
740
+ * ---------------------------------------------------
741
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
742
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
743
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
744
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
745
+ *
746
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
747
+ * the Software.
748
+ *
749
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
750
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
751
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
752
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
753
+ * IN THE SOFTWARE.
754
+ */
755
+ var formKey = Symbol('form');
756
+ var formItemKey = Symbol('formItem');
757
+ ;// CONCATENATED MODULE: ../../packages/shared/src/hooks/use-form.ts
758
+ /*
759
+ * Tencent is pleased to support the open source community by making
760
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
761
+ *
762
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
763
+ *
764
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
765
+ *
766
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
767
+ *
768
+ * ---------------------------------------------------
769
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
770
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
771
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
772
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
773
+ *
774
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
775
+ * the Software.
776
+ *
777
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
778
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
779
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
780
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
781
+ * IN THE SOFTWARE.
782
+ */
783
+
784
+
785
+ var useForm = function useForm() {
786
+ return (0,external_vue_namespaceObject.inject)(formKey);
787
+ };
788
+ ;// CONCATENATED MODULE: ../../packages/shared/src/hooks/use-form-item.ts
789
+ /*
790
+ * Tencent is pleased to support the open source community by making
791
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
792
+ *
793
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
794
+ *
795
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
796
+ *
797
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
798
+ *
799
+ * ---------------------------------------------------
800
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
801
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
802
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
803
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
804
+ *
805
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
806
+ * the Software.
807
+ *
808
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
809
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
810
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
811
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
812
+ * IN THE SOFTWARE.
813
+ */
814
+
815
+
816
+ var useFormItem = function useFormItem() {
817
+ return (0,external_vue_namespaceObject.inject)(formItemKey, undefined);
818
+ };
819
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
820
+ function _classCallCheck(instance, Constructor) {
821
+ if (!(instance instanceof Constructor)) {
822
+ throw new TypeError("Cannot call a class as a function");
823
+ }
824
+ }
825
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
826
+
827
+ function _toPrimitive(input, hint) {
828
+ if (_typeof(input) !== "object" || input === null) return input;
829
+ var prim = input[Symbol.toPrimitive];
830
+ if (prim !== undefined) {
831
+ var res = prim.call(input, hint || "default");
832
+ if (_typeof(res) !== "object") return res;
833
+ throw new TypeError("@@toPrimitive must return a primitive value.");
834
+ }
835
+ return (hint === "string" ? String : Number)(input);
836
+ }
837
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
838
+
839
+
840
+ function _toPropertyKey(arg) {
841
+ var key = _toPrimitive(arg, "string");
842
+ return _typeof(key) === "symbol" ? key : String(key);
843
+ }
844
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
845
+
846
+ function _defineProperties(target, props) {
847
+ for (var i = 0; i < props.length; i++) {
848
+ var descriptor = props[i];
849
+ descriptor.enumerable = descriptor.enumerable || false;
850
+ descriptor.configurable = true;
851
+ if ("value" in descriptor) descriptor.writable = true;
852
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
853
+ }
854
+ }
855
+ function _createClass(Constructor, protoProps, staticProps) {
856
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
857
+ if (staticProps) _defineProperties(Constructor, staticProps);
858
+ Object.defineProperty(Constructor, "prototype", {
859
+ writable: false
860
+ });
861
+ return Constructor;
862
+ }
863
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
864
+
865
+ function _defineProperty(obj, key, value) {
866
+ key = _toPropertyKey(key);
867
+ if (key in obj) {
868
+ Object.defineProperty(obj, key, {
869
+ value: value,
870
+ enumerable: true,
871
+ configurable: true,
872
+ writable: true
873
+ });
874
+ } else {
875
+ obj[key] = value;
876
+ }
877
+ return obj;
878
+ }
879
+ ;// CONCATENATED MODULE: external "lodash/throttle"
880
+ var throttle_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
881
+ var throttle_y = x => () => x
882
+ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"] });
883
+ ;// CONCATENATED MODULE: ../../packages/shared/src/utils.ts
884
+ /*
885
+ * Tencent is pleased to support the open source community by making
886
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
887
+ *
888
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
889
+ *
890
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
891
+ *
892
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
893
+ *
894
+ * ---------------------------------------------------
895
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
896
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
897
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
898
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
899
+ *
900
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
901
+ * the Software.
902
+ *
903
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
904
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
905
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
906
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
907
+ * IN THE SOFTWARE.
908
+ */
909
+
910
+ var lowerStr = 'abcdefghijklmnopqrstuvwxyz0123456789';
911
+ /**
912
+ * 生成n位长度的字符串
913
+ * @param {Number} n
914
+ * @param str,默认26位字母及数字
915
+ */
916
+ var random = function random(n) {
917
+ var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : lowerStr;
918
+ var result = '';
919
+ for (var i = 0; i < n; i++) {
920
+ result += str[parseInt((Math.random() * str.length).toString(), 10)];
921
+ }
922
+ return result;
923
+ };
924
+ /**
925
+ * 监听目标元素的Resize事件
926
+ * @param root 目标元素
927
+ * @param callbackFn 执行函数
928
+ * @param delay 延迟执行时间,默认 60
929
+ * @param immediate 是否立即执行回调函数
930
+ * @returns "{ start: () => void, stop: () => void }"
931
+ */
932
+ var observerResize = function observerResize(root, callbackFn) {
933
+ var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 60;
934
+ var immediate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
935
+ var callFn = (0,throttle_namespaceObject["default"])(function () {
936
+ if (typeof callbackFn === 'function') {
937
+ callbackFn();
938
+ }
939
+ }, delay);
940
+ var resizeObserver = new ResizeObserver(function () {
941
+ callFn();
942
+ });
943
+ if (immediate) {
944
+ if (typeof callbackFn === 'function') {
945
+ callbackFn();
946
+ }
947
+ }
948
+ return {
949
+ start: function start() {
950
+ resizeObserver.observe(root);
951
+ },
952
+ stop: function stop() {
953
+ resizeObserver.disconnect();
954
+ resizeObserver.unobserve(root);
955
+ }
956
+ };
957
+ };
958
+ var capitalize = function capitalize(str) {
959
+ return str[0].toUpperCase() + str.slice(1);
960
+ };
961
+ /**
962
+ * 判断元素是否溢出容器
963
+ * @param {*} el
964
+ * @returns
965
+ */
966
+ function checkOverflow(el) {
967
+ if (!el) return false;
968
+ var createDom = function createDom(el, css) {
969
+ var dom = document.createElement('div');
970
+ var width = parseFloat(css.width) ? "".concat(Math.ceil(parseFloat(css.width)), "px") : css.width;
971
+ dom.style.cssText = "\n width: ".concat(width, ";\n line-height: ").concat(css['line-height'], ";\n font-size: ").concat(css['font-size'], ";\n word-break: ").concat(css['word-break'], ";\n padding: ").concat(css.padding, ";\n ");
972
+ dom.textContent = el.textContent;
973
+ return dom;
974
+ };
975
+ var isOverflow = false;
976
+ try {
977
+ var css = window.getComputedStyle(el, null);
978
+ var lineClamp = css.webkitLineClamp;
979
+ if (lineClamp !== 'none') {
980
+ var targetHeight = parseFloat(css.height);
981
+ var dom = createDom(el, css);
982
+ document.body.appendChild(dom);
983
+ var domHeight = window.getComputedStyle(dom, null).height;
984
+ document.body.removeChild(dom);
985
+ isOverflow = targetHeight < parseFloat(domHeight);
986
+ } else {
987
+ isOverflow = el.clientWidth < el.scrollWidth || el.clientHeight < el.scrollHeight;
988
+ }
989
+ } catch (e) {
990
+ console.warn('There is an error when check element overflow state: ', e);
991
+ }
992
+ return isOverflow;
993
+ }
994
+ ;// CONCATENATED MODULE: ../../packages/shared/src/z-index-manager.ts
995
+
996
+
997
+
998
+ var _BKLAYERD_INDEX_EFAUL;
999
+ /**
1000
+ * Tencent is pleased to support the open source community by making
1001
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1002
+ *
1003
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1004
+ *
1005
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1006
+ *
1007
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1008
+ *
1009
+ * ---------------------------------------------------
1010
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1011
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1012
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1013
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1014
+ *
1015
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1016
+ * the Software.
1017
+ *
1018
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1019
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1020
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1021
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1022
+ * IN THE SOFTWARE.
1023
+ */
1024
+ /**
1025
+ * 页面框架层级
1026
+ */
1027
+ var BKLAYERTYPE;
1028
+ (function (BKLAYERTYPE) {
1029
+ /** 网站内容的背景、拓扑的画布等 */
1030
+ BKLAYERTYPE["BOTTOM"] = "bottom";
1031
+ /** 页面呈现的各类内容 */
1032
+ BKLAYERTYPE["CONTENT"] = "content";
1033
+ /** 顶部导航、侧边导航以及用户信息等 */
1034
+ BKLAYERTYPE["NAVI"] = "navi";
1035
+ /** 页面需全屏操作的部分功能或编辑器的全屏模式 */
1036
+ BKLAYERTYPE["FULLSCREEN"] = "fullScreen";
1037
+ /** 各类功能插件 */
1038
+ BKLAYERTYPE["PLUGINS"] = "plugins";
1039
+ /** 各类弹窗或抽屉(非模态弹窗不考虑) */
1040
+ BKLAYERTYPE["MODAL"] = "modal";
1041
+ /** 各类消息提示 */
1042
+ BKLAYERTYPE["MESSAGE"] = "message";
1043
+ /** 各类popper提示 */
1044
+ BKLAYERTYPE["POPPER"] = "popper";
1045
+ })(BKLAYERTYPE || (BKLAYERTYPE = {}));
1046
+ /** 定义不同分层默认值 */
1047
+ var BKLAYERD_INDEX_EFAULT_VALUE = (_BKLAYERD_INDEX_EFAUL = {}, _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.BOTTOM, 0), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.CONTENT, 1), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.NAVI, 100), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.FULLSCREEN, 1000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.MODAL, 3000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.PLUGINS, 8000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.MESSAGE, 10000), _defineProperty(_BKLAYERD_INDEX_EFAUL, BKLAYERTYPE.POPPER, 99999), _BKLAYERD_INDEX_EFAUL);
1048
+ var BKZIndexManager = /*#__PURE__*/function () {
1049
+ function BKZIndexManager() {
1050
+ _classCallCheck(this, BKZIndexManager);
1051
+ _defineProperty(this, "storageLayerIndexValue", {});
1052
+ this.copyDefaultValue();
1053
+ }
1054
+ /**
1055
+ *
1056
+ * @param type
1057
+ * @returns
1058
+ */
1059
+ _createClass(BKZIndexManager, [{
1060
+ key: "getNextIndex",
1061
+ value: function getNextIndex(type) {
1062
+ if (Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue, type)) {
1063
+ this.storageLayerIndexValue[type] = this.storageLayerIndexValue[type] + 1;
1064
+ return this.storageLayerIndexValue[type];
1065
+ }
1066
+ this.storageLayerIndexValue[BKLAYERTYPE.MODAL] = this.storageLayerIndexValue[BKLAYERTYPE.MODAL] + 1;
1067
+ return this.storageLayerIndexValue[BKLAYERTYPE.MODAL];
1068
+ }
1069
+ /** 获取弹窗类型最新zIndex的值 */
1070
+ }, {
1071
+ key: "getModalNextIndex",
1072
+ value: function getModalNextIndex() {
1073
+ return this.getNextIndex(BKLAYERTYPE.MODAL);
1074
+ }
1075
+ /** 获取Message类型最新zIndex的值 */
1076
+ }, {
1077
+ key: "getMessageNextIndex",
1078
+ value: function getMessageNextIndex() {
1079
+ return this.getNextIndex(BKLAYERTYPE.MESSAGE);
1080
+ }
1081
+ /** 获取全屏类型最新zIndex的值 */
1082
+ }, {
1083
+ key: "getFullScreenNextIndex",
1084
+ value: function getFullScreenNextIndex() {
1085
+ return this.getNextIndex(BKLAYERTYPE.FULLSCREEN);
1086
+ }
1087
+ /** 获取导航类型最新zIndex的值 */
1088
+ }, {
1089
+ key: "getNaviNextIndex",
1090
+ value: function getNaviNextIndex() {
1091
+ return this.getNextIndex(BKLAYERTYPE.NAVI);
1092
+ }
1093
+ /** 获取导航类型最新zIndex的值 */
1094
+ }, {
1095
+ key: "getPopperIndex",
1096
+ value: function getPopperIndex() {
1097
+ return BKLAYERD_INDEX_EFAULT_VALUE.popper;
1098
+ }
1099
+ /**
1100
+ * 更新自定义默认zIndex配置
1101
+ * @param config 配置项
1102
+ */
1103
+ }, {
1104
+ key: "setDefaultZIndex",
1105
+ value: function setDefaultZIndex(config) {
1106
+ var _this = this;
1107
+ Object.keys(config || {}).forEach(function (key) {
1108
+ if (Object.prototype.hasOwnProperty.call(_this.storageLayerIndexValue.__proto__, key)) {
1109
+ Object.assign(_this.storageLayerIndexValue.__proto__, _defineProperty({}, key, config[key]));
1110
+ }
1111
+ });
1112
+ this.copyDefaultValue();
1113
+ }
1114
+ /**
1115
+ * 重置zIndex
1116
+ * @param config 配置项
1117
+ */
1118
+ }, {
1119
+ key: "resetZIndex",
1120
+ value: function resetZIndex(config) {
1121
+ var _this2 = this;
1122
+ Object.keys(config || {}).forEach(function (key) {
1123
+ if (Object.prototype.hasOwnProperty.call(_this2.storageLayerIndexValue, key)) {
1124
+ Object.assign(_this2.storageLayerIndexValue, _defineProperty({}, key, config[key]));
1125
+ }
1126
+ });
1127
+ }
1128
+ /**
1129
+ * 根据默认设置创建副本
1130
+ */
1131
+ }, {
1132
+ key: "copyDefaultValue",
1133
+ value: function copyDefaultValue() {
1134
+ var properties = Object.keys(BKLAYERD_INDEX_EFAULT_VALUE).reduce(function (props, key) {
1135
+ return Object.assign(props, _defineProperty({}, key, {
1136
+ value: BKLAYERD_INDEX_EFAULT_VALUE[key],
1137
+ writable: true,
1138
+ configurable: true
1139
+ }));
1140
+ }, {});
1141
+ this.storageLayerIndexValue = Object.create(BKLAYERD_INDEX_EFAULT_VALUE, properties);
1142
+ }
1143
+ }]);
1144
+ return BKZIndexManager;
1145
+ }();
1146
+ var bkZIndexManager = new BKZIndexManager();
1147
+ ;// CONCATENATED MODULE: ../../packages/shared/src/mask-manager.ts
1148
+
1149
+
1150
+
1151
+ 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; }
1152
+ 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; }
1153
+ /*
1154
+ * Tencent is pleased to support the open source community by making
1155
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1156
+ *
1157
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1158
+ *
1159
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1160
+ *
1161
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1162
+ *
1163
+ * ---------------------------------------------------
1164
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1165
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1166
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1167
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1168
+ *
1169
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1170
+ * the Software.
1171
+ *
1172
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1173
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1174
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1175
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1176
+ * IN THE SOFTWARE.
1177
+ */
1178
+
1179
+
1180
+ // eslint-disable-next-line @typescript-eslint/naming-convention
1181
+ var DEFAULT_MASK_UUID = function DEFAULT_MASK_UUID() {};
1182
+ DEFAULT_MASK_UUID.prototype.def_val = "__bk_mask_".concat(random(16));
1183
+ var MaskEventMap = new WeakMap();
1184
+ var getMaskEvent = function getMaskEvent(mask) {
1185
+ if (MaskEventMap.has(mask)) {
1186
+ return MaskEventMap.get(mask);
1187
+ }
1188
+ return [];
1189
+ };
1190
+ var setMaskEvent = function setMaskEvent(mask, event, args, content, instanceId) {
1191
+ var maskEvent = getMaskEvent(mask);
1192
+ if (maskEvent.some(function (evet) {
1193
+ return evet.instanceId === instanceId;
1194
+ })) {
1195
+ return;
1196
+ }
1197
+ maskEvent.push({
1198
+ event: event,
1199
+ args: args,
1200
+ content: content,
1201
+ instanceId: instanceId
1202
+ });
1203
+ MaskEventMap.set(mask, maskEvent);
1204
+ };
1205
+ var setMaskEventIns = function setMaskEventIns(mask, maskEvent) {
1206
+ MaskEventMap.set(mask, maskEvent);
1207
+ };
1208
+ var MaskQueueMaker = /*#__PURE__*/function () {
1209
+ function MaskQueueMaker() {
1210
+ _classCallCheck(this, MaskQueueMaker);
1211
+ _defineProperty(this, "timer", null);
1212
+ _defineProperty(this, "store", []);
1213
+ _defineProperty(this, "maskMap", new WeakMap());
1214
+ }
1215
+ _createClass(MaskQueueMaker, [{
1216
+ key: "appendMaker",
1217
+ value: function appendMaker(fn) {
1218
+ this.store.push(fn);
1219
+ this.executeMaker();
1220
+ }
1221
+ }, {
1222
+ key: "pushMaskStyle",
1223
+ value: function pushMaskStyle(parentNode, style) {
1224
+ var value = this.getMaskMap(parentNode);
1225
+ this.setMaskMap(parentNode, _objectSpread({
1226
+ styles: [style]
1227
+ }, value || {}));
1228
+ }
1229
+ }, {
1230
+ key: "getMaskStyles",
1231
+ value: function getMaskStyles(parentNode) {
1232
+ var _this$getMaskMap;
1233
+ return ((_this$getMaskMap = this.getMaskMap(parentNode)) === null || _this$getMaskMap === void 0 ? void 0 : _this$getMaskMap.styles) || [];
1234
+ }
1235
+ }, {
1236
+ key: "setMaskId",
1237
+ value: function setMaskId(parentNode, id) {
1238
+ var value = this.getMaskMap(parentNode);
1239
+ if (!value) {
1240
+ this.setMaskMap(parentNode, _objectSpread({
1241
+ id: id
1242
+ }, value || {}));
1243
+ } else {
1244
+ Object.assign(value, {
1245
+ id: id
1246
+ });
1247
+ this.setMaskMap(parentNode, value);
1248
+ }
1249
+ }
1250
+ }, {
1251
+ key: "getMaskId",
1252
+ value: function getMaskId(parentNode) {
1253
+ var _this$getMaskMap2;
1254
+ return (_this$getMaskMap2 = this.getMaskMap(parentNode)) === null || _this$getMaskMap2 === void 0 ? void 0 : _this$getMaskMap2.id;
1255
+ }
1256
+ }, {
1257
+ key: "setMaskMap",
1258
+ value: function setMaskMap(key, value) {
1259
+ this.maskMap.set(key, value);
1260
+ }
1261
+ }, {
1262
+ key: "getMaskMap",
1263
+ value: function getMaskMap(key) {
1264
+ return this.maskMap.get(key);
1265
+ }
1266
+ }, {
1267
+ key: "executeMaker",
1268
+ value: function executeMaker() {
1269
+ var _this = this;
1270
+ this.timer && cancelAnimationFrame(this.timer);
1271
+ this.timer = requestAnimationFrame(function () {
1272
+ var fn = _this.store.pop();
1273
+ if (typeof fn === 'function') {
1274
+ Reflect.apply(fn, _this, []);
1275
+ _this.executeMaker();
1276
+ }
1277
+ });
1278
+ }
1279
+ }]);
1280
+ return MaskQueueMaker;
1281
+ }();
1282
+ var bkMaskMaker = new MaskQueueMaker();
1283
+ var BkMaskManager = /*#__PURE__*/function () {
1284
+ /**
1285
+ * 遮罩管理器
1286
+ *
1287
+ * @param multiInstance 是否允许多实例
1288
+ * @param maskAttrTag 遮罩DOM唯一标志,支持自定义和 auto
1289
+ */
1290
+ function BkMaskManager(config) {
1291
+ var _this2 = this;
1292
+ _classCallCheck(this, BkMaskManager);
1293
+ /** 遮罩容器 */
1294
+ /** 遮罩备份容器,用于多个组件实例显示,遮罩只显示最后一个 **/
1295
+ /** 是否允许多个遮罩实例 */
1296
+ _defineProperty(this, "multiInstance", false);
1297
+ /** 遮罩控制器唯一标识 */
1298
+ _defineProperty(this, "uniqueMaskAttrTag", '');
1299
+ /** 设置弹出层父级组件,默认是body */
1300
+ _defineProperty(this, "parentNode", document.body);
1301
+ /** 遮罩当前显示组件实例 **/
1302
+ _defineProperty(this, "activeInstance", undefined);
1303
+ /** 记录已在使用的z-index */
1304
+ _defineProperty(this, "zIndexStore", new Map());
1305
+ /** 记录最后一个UUID */
1306
+ _defineProperty(this, "lastUUID", null);
1307
+ /** 遮罩样式 **/
1308
+ _defineProperty(this, "maskStyle", {
1309
+ position: 'fixed',
1310
+ left: 0,
1311
+ top: 0,
1312
+ bottom: 0,
1313
+ right: 0,
1314
+ display: 'none',
1315
+ 'background-color': 'rgba(0,0,0,.6)'
1316
+ });
1317
+ // 用于判定是否已经初始化过当前实例
1318
+ _defineProperty(this, "isInit", false);
1319
+ _defineProperty(this, "maskAttrTag", 'auto');
1320
+ var _ref = config || {},
1321
+ _ref$multiInstance = _ref.multiInstance,
1322
+ multiInstance = _ref$multiInstance === void 0 ? false : _ref$multiInstance,
1323
+ _ref$maskAttrTag = _ref.maskAttrTag,
1324
+ maskAttrTag = _ref$maskAttrTag === void 0 ? 'auto' : _ref$maskAttrTag,
1325
+ _ref$parentNode = _ref.parentNode,
1326
+ parentNode = _ref$parentNode === void 0 ? document.body : _ref$parentNode,
1327
+ _ref$maskStyle = _ref.maskStyle,
1328
+ maskStyle = _ref$maskStyle === void 0 ? {} : _ref$maskStyle;
1329
+ this.parentNode = parentNode || document;
1330
+ this.maskAttrTag = maskAttrTag;
1331
+ this.activeInstance = undefined;
1332
+ this.multiInstance = multiInstance;
1333
+ this.uniqueMaskAttrTag = this.getMaskAttrTag(maskAttrTag);
1334
+ // 避免多个实例多处初始化,此处会做队列处理
1335
+ // 合并重复的处理请求
1336
+ // 如果当前实例初始化时,仍未执行完队列,则需要进行请求合并
1337
+ bkMaskMaker.appendMaker(function () {
1338
+ _this2.initInstance(maskStyle);
1339
+ });
1340
+ }
1341
+ _createClass(BkMaskManager, [{
1342
+ key: "setOption",
1343
+ value: function setOption(option) {
1344
+ var _ref2 = option || {},
1345
+ _ref2$parentNode = _ref2.parentNode,
1346
+ parentNode = _ref2$parentNode === void 0 ? document.body : _ref2$parentNode,
1347
+ _ref2$maskStyle = _ref2.maskStyle,
1348
+ maskStyle = _ref2$maskStyle === void 0 ? {} : _ref2$maskStyle,
1349
+ _ref2$maskAttrTag = _ref2.maskAttrTag,
1350
+ maskAttrTag = _ref2$maskAttrTag === void 0 ? this.maskAttrTag : _ref2$maskAttrTag;
1351
+ this.parentNode = parentNode || document;
1352
+ this.setMaskStyle(Object.assign({}, this.maskStyle, maskStyle));
1353
+ this.uniqueMaskAttrTag = this.getMaskAttrTag(maskAttrTag);
1354
+ }
1355
+ }, {
1356
+ key: "destroyEvent",
1357
+ value: function destroyEvent(id) {
1358
+ if (this.mask) {
1359
+ var events = getMaskEvent(this.mask) || [];
1360
+ var index = events.findIndex(function (evt) {
1361
+ return evt.instanceId === id;
1362
+ });
1363
+ if (index >= 0) {
1364
+ events.splice(index, 1);
1365
+ setMaskEventIns(this.mask, events);
1366
+ }
1367
+ }
1368
+ }
1369
+ /**
1370
+ * 显示遮罩
1371
+ * @param content 遮罩内容
1372
+ * @param zIndex z-index
1373
+ * @param showMask 是否显示遮罩
1374
+ * @param appendStyle 追加样式
1375
+ * @param transfer 是否显示将内容加入遮罩下
1376
+ */
1377
+ }, {
1378
+ key: "show",
1379
+ value: function show(content, zIndex) {
1380
+ var showMask = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
1381
+ var appendStyle = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1382
+ var uuid = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
1383
+ var transfer = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
1384
+ var onMaskClick = arguments.length > 6 ? arguments[6] : undefined;
1385
+ var instanceId = arguments.length > 7 ? arguments[7] : undefined;
1386
+ var uid = uuid !== null && uuid !== void 0 ? uuid : random(16);
1387
+ // @ts-ignore
1388
+ var localZIndex = /-?\d+/.test("".concat(zIndex)) ? zIndex : bkZIndexManager.getModalNextIndex();
1389
+ var style = Object.assign({}, this.maskStyle, appendStyle || {});
1390
+ /**
1391
+ * 如果不显示遮罩,此处遮罩继承父级
1392
+ * 同时,如果父级弹出层有遮罩,此处不能覆盖
1393
+ */
1394
+ if (!showMask) {
1395
+ if (this.lastUUID) {
1396
+ var preStore = this.zIndexStore.get(this.lastUUID);
1397
+ if (preStore) {
1398
+ style = preStore === null || preStore === void 0 ? void 0 : preStore.style;
1399
+ }
1400
+ }
1401
+ }
1402
+ /** 缓存当前z-index */
1403
+ this.storeMaskInsCfg({
1404
+ zIndex: localZIndex,
1405
+ style: _objectSpread({}, style),
1406
+ uuid: uid,
1407
+ preUID: this.lastUUID
1408
+ });
1409
+ Object.assign(style, {
1410
+ display: 'block',
1411
+ 'z-index': "".concat(localZIndex),
1412
+ 'pointer-events': 'all'
1413
+ });
1414
+ this.initInstance(style);
1415
+ if (onMaskClick) {
1416
+ this.catchClickEvent(content, onMaskClick, instanceId);
1417
+ }
1418
+ this.setMaskStyle(style);
1419
+ bkMaskMaker.pushMaskStyle(this.parentNode, _objectSpread({}, style));
1420
+ this.backupMask.style.setProperty('z-index', "".concat(localZIndex - 1));
1421
+ if (!showMask) {
1422
+ this.mask.style.setProperty('pointer-events', 'none');
1423
+ content === null || content === void 0 ? void 0 : content.style.setProperty('pointer-events', 'all');
1424
+ }
1425
+ if (content) {
1426
+ if (transfer) content.style.setProperty('z-index', "".concat(localZIndex + 1)); // 表明内容不在遮罩下,内容区z-index + 1
1427
+ this.activeInstance = content;
1428
+ this.appendContentToMask(content); // 表明内容在body下,即在遮罩下
1429
+ }
1430
+ }
1431
+ }, {
1432
+ key: "hide",
1433
+ value: function hide() {
1434
+ var transfer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
1435
+ var content = arguments.length > 1 ? arguments[1] : undefined;
1436
+ var uuid = arguments.length > 2 ? arguments[2] : undefined;
1437
+ var uid = uuid !== null && uuid !== void 0 ? uuid : this.lastUUID;
1438
+ if (!transfer) {
1439
+ var _this$activeInstance;
1440
+ content === null || content === void 0 ? void 0 : content.remove();
1441
+ (_this$activeInstance = this.activeInstance) === null || _this$activeInstance === void 0 ? void 0 : _this$activeInstance.remove();
1442
+ }
1443
+ this.removeClickEvent();
1444
+ this.activeInstance = undefined;
1445
+ this.popIndexStore(uid);
1446
+ var maskList = bkMaskMaker.getMaskStyles(this.parentNode);
1447
+ maskList === null || maskList === void 0 ? void 0 : maskList.pop();
1448
+ if (!(maskList !== null && maskList !== void 0 && maskList.length)) {
1449
+ this.mask.style.setProperty('display', 'none');
1450
+ } else {
1451
+ var style = maskList.slice(-1)[0];
1452
+ this.setMaskStyle(style);
1453
+ }
1454
+ }
1455
+ }, {
1456
+ key: "storeMaskInsCfg",
1457
+ value: function storeMaskInsCfg(config) {
1458
+ this.zIndexStore.set(config.uuid, config);
1459
+ this.lastUUID = config.uuid;
1460
+ return this.zIndexStore.get(config.uuid);
1461
+ }
1462
+ /**
1463
+ * 移除最后一次缓存数据
1464
+ */
1465
+ }, {
1466
+ key: "popIndexStore",
1467
+ value: function popIndexStore(uuid) {
1468
+ if (this.zIndexStore.has(uuid)) {
1469
+ var rmIns = this.zIndexStore.get(uuid);
1470
+ this.lastUUID = rmIns.preUID;
1471
+ return this.zIndexStore["delete"](uuid);
1472
+ }
1473
+ this.lastUUID = null;
1474
+ return false;
1475
+ }
1476
+ }, {
1477
+ key: "backupActiveInstance",
1478
+ value: function backupActiveInstance() {
1479
+ if (this.activeInstance) {
1480
+ this.backupMask.append(this.activeInstance);
1481
+ }
1482
+ }
1483
+ }, {
1484
+ key: "backupContentElement",
1485
+ value: function backupContentElement(content) {
1486
+ var _this$backupMask;
1487
+ content && ((_this$backupMask = this.backupMask) === null || _this$backupMask === void 0 ? void 0 : _this$backupMask.append(content));
1488
+ }
1489
+ }, {
1490
+ key: "getActiveContentInstance",
1491
+ value: function getActiveContentInstance() {
1492
+ return this.activeInstance;
1493
+ }
1494
+ }, {
1495
+ key: "removeClickEvent",
1496
+ value: function removeClickEvent() {
1497
+ // if (this.mask) {
1498
+ // const events = getMaskEvent(this.mask);
1499
+ // if (!events.length) {
1500
+ // console.log('removeEventListener handleMaskClick');
1501
+ // this.mask.removeEventListener('click', this.handleMaskClick);
1502
+ // }
1503
+ // }
1504
+ }
1505
+ }, {
1506
+ key: "initInstance",
1507
+ value: function initInstance(maskStyle) {
1508
+ if (!this.isInit) {
1509
+ this.isInit = true;
1510
+ this.backupMask = this.getBackupMask();
1511
+ var _this$getMask = this.getMask(),
1512
+ instance = _this$getMask.instance,
1513
+ isExist = _this$getMask.isExist;
1514
+ this.mask = instance;
1515
+ !isExist && this.setMaskStyle(Object.assign({}, this.maskStyle, maskStyle));
1516
+ }
1517
+ }
1518
+ /**
1519
+ * 初始化当前遮罩管理器
1520
+ * @returns 当前遮罩容器
1521
+ */
1522
+ }, {
1523
+ key: "getMask",
1524
+ value: function getMask() {
1525
+ var _this3 = this;
1526
+ if (this.multiInstance) {
1527
+ return {
1528
+ instance: this.createMask(),
1529
+ isExist: false
1530
+ };
1531
+ }
1532
+ var isExist = true;
1533
+ var div = this.parentNode.querySelector("[data-bk-mask-uid='".concat(this.uniqueMaskAttrTag, "']"));
1534
+ if (!div) {
1535
+ isExist = false;
1536
+ div = this.createMask();
1537
+ div.addEventListener('click', function (e) {
1538
+ return _this3.handleMaskClick(e);
1539
+ }, true);
1540
+ }
1541
+ return {
1542
+ instance: div,
1543
+ isExist: isExist
1544
+ };
1545
+ }
1546
+ }, {
1547
+ key: "catchClickEvent",
1548
+ value: function catchClickEvent(content, onMaskClick, instanceId) {
1549
+ if (this.mask) {
1550
+ setMaskEvent(this.mask, onMaskClick, [], content, instanceId);
1551
+ }
1552
+ }
1553
+ }, {
1554
+ key: "handleMaskClick",
1555
+ value: function handleMaskClick(e) {
1556
+ if (e.target !== this.mask) {
1557
+ return;
1558
+ }
1559
+ var events = getMaskEvent(this.mask);
1560
+ if (events.length) {
1561
+ var event = events.slice(-1)[0].event;
1562
+ if (typeof event === 'function') {
1563
+ event(e);
1564
+ }
1565
+ }
1566
+ }
1567
+ }, {
1568
+ key: "getBackupMask",
1569
+ value: function getBackupMask() {
1570
+ var attrName = 'data-bk-backup-uid';
1571
+ var div = this.parentNode.querySelector("[".concat(attrName, "]"));
1572
+ if (!div) {
1573
+ div = this.createMask(attrName);
1574
+ }
1575
+ return div;
1576
+ }
1577
+ /**
1578
+ * 创建遮罩层DOM
1579
+ * @returns 返回DOM
1580
+ */
1581
+ }, {
1582
+ key: "createMask",
1583
+ value: function createMask() {
1584
+ var attrName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'data-bk-mask-uid';
1585
+ var div = document.createElement('div');
1586
+ div.setAttribute(attrName, this.uniqueMaskAttrTag);
1587
+ this.parentNode.append(div);
1588
+ return div;
1589
+ }
1590
+ }, {
1591
+ key: "setMaskStyle",
1592
+ value: function setMaskStyle() {
1593
+ var _this4 = this;
1594
+ var maskStyle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1595
+ if (this.mask) {
1596
+ Object.entries(maskStyle).forEach(function (cfg) {
1597
+ return _this4.mask.style.setProperty(cfg[0], cfg[1]);
1598
+ });
1599
+ }
1600
+ }
1601
+ /**
1602
+ * 根据输入生成唯一遮罩标识
1603
+ * @param tag 输入标识
1604
+ * @returns string 返回唯一标识
1605
+ */
1606
+ }, {
1607
+ key: "getMaskAttrTag",
1608
+ value: function getMaskAttrTag(tag) {
1609
+ if (/^(auto|\s+)$/i.test(tag) || tag === null || tag === undefined || tag === '') {
1610
+ if (!bkMaskMaker.getMaskId(this.parentNode)) {
1611
+ bkMaskMaker.setMaskId(this.parentNode, "__bk_mask_".concat(random(16)));
1612
+ }
1613
+ return bkMaskMaker.getMaskId(this.parentNode);
1614
+ }
1615
+ return tag;
1616
+ }
1617
+ }, {
1618
+ key: "appendContentToMask",
1619
+ value: function appendContentToMask(content) {
1620
+ this.mask.append(content);
1621
+ }
1622
+ }]);
1623
+ return BkMaskManager;
1624
+ }();
1625
+ var bKMaskManager = new BkMaskManager({});
1626
+ ;// CONCATENATED MODULE: ../../packages/shared/src/pop-manager.ts
1627
+
1628
+
1629
+ /*
1630
+ * Tencent is pleased to support the open source community by making
1631
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1632
+ *
1633
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1634
+ *
1635
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1636
+ *
1637
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1638
+ *
1639
+ * ---------------------------------------------------
1640
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1641
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1642
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1643
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1644
+ *
1645
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1646
+ * the Software.
1647
+ *
1648
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1649
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1650
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1651
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1652
+ * IN THE SOFTWARE.
1653
+ */
1654
+
1655
+
1656
+
1657
+
1658
+ var popInstanceStore = new WeakMap();
1659
+ var BKPopIndexManager = /*#__PURE__*/function () {
1660
+ /** 用来缓存弹出层实例 */
1661
+
1662
+ function BKPopIndexManager(options) {
1663
+ _classCallCheck(this, BKPopIndexManager);
1664
+ this.clickFn = undefined;
1665
+ this.uuidAttrName = 'data-bk-pop-uuid';
1666
+ this.uniqId = random(16);
1667
+ this.transfer = this.getParentNode(options === null || options === void 0 ? void 0 : options.transfer);
1668
+ this.bKMaskManagerInstance = new BkMaskManager({
1669
+ parentNode: this.getParentNode(options === null || options === void 0 ? void 0 : options.transfer),
1670
+ popInstance: this,
1671
+ onClick: this.onMaskClickFn
1672
+ });
1673
+ }
1674
+ _createClass(BKPopIndexManager, [{
1675
+ key: "popInstanceList",
1676
+ get: function get() {
1677
+ if (!popInstanceStore.has(this.transfer)) {
1678
+ popInstanceStore.set(this.transfer, []);
1679
+ }
1680
+ return popInstanceStore.get(this.transfer);
1681
+ },
1682
+ set: function set(val) {
1683
+ popInstanceStore.set(this.transfer, val);
1684
+ }
1685
+ }, {
1686
+ key: "getParentNode",
1687
+ value: function getParentNode(transfer) {
1688
+ if (typeof transfer === 'string') {
1689
+ var target = document.querySelector(transfer);
1690
+ if (target) {
1691
+ return target;
1692
+ }
1693
+ }
1694
+ if (helper_isElement(transfer)) {
1695
+ return transfer;
1696
+ }
1697
+ return document.body;
1698
+ }
1699
+ }, {
1700
+ key: "onMaskClick",
1701
+ value: function onMaskClick(callFn, target) {
1702
+ this.clickFn = {
1703
+ fn: callFn,
1704
+ target: target
1705
+ };
1706
+ }
1707
+ /**
1708
+ * 展示弹窗
1709
+ * @param content 弹窗内容
1710
+ * @param showMask 是否显示遮罩
1711
+ * @param appendStyle 追加样式
1712
+ * @param transfer 是否显示在body内(即是否显示在div#app内,默认为false)
1713
+ * @returns
1714
+ */
1715
+ }, {
1716
+ key: "show",
1717
+ value: function show(content) {
1718
+ var showMask = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1719
+ var appendStyle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1720
+ var transfer = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
1721
+ var zindex = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
1722
+ var onMaskClick = arguments.length > 5 ? arguments[5] : undefined;
1723
+ if (!content) {
1724
+ console.warn('pop show error: content is null or undefined');
1725
+ return;
1726
+ }
1727
+ var zIndex = typeof zindex === 'number' ? zindex : bkZIndexManager.getModalNextIndex();
1728
+ var uuid = random(16);
1729
+ content.setAttribute(this.uuidAttrName, uuid);
1730
+ if (this.popInstanceList.length > 0) {
1731
+ showMask && this.bKMaskManagerInstance.backupContentElement(this.popInstanceList.slice(-1)[0].content);
1732
+ }
1733
+ this.popInstanceList.push({
1734
+ uuid: uuid,
1735
+ zIndex: zIndex,
1736
+ content: content,
1737
+ showMask: showMask,
1738
+ appendStyle: appendStyle
1739
+ });
1740
+ this.bKMaskManagerInstance.show(content, zIndex, showMask, appendStyle, uuid, transfer, onMaskClick, this.uniqId);
1741
+ }
1742
+ /**
1743
+ * 销毁指定实例
1744
+ * @param content 指定实例内容
1745
+ * @param transfer
1746
+ */
1747
+ }, {
1748
+ key: "destroy",
1749
+ value: function destroy(content) {
1750
+ var transfer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1751
+ this.clickFn = undefined;
1752
+ this.hide(content, transfer);
1753
+ }
1754
+ /**
1755
+ * 关闭最后一个弹窗 如果当前还有父级弹窗,则激活父级弹窗
1756
+ * @param removeLastContent 默认:true 是否自动关闭最后一个弹窗实例 某些场景下,已经主动关闭最后一个弹窗,此处只需要处理其他逻辑
1757
+ */
1758
+ }, {
1759
+ key: "popHide",
1760
+ value: function popHide() {
1761
+ var removeLastContent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
1762
+ if (this.popInstanceList.length) {
1763
+ if (removeLastContent) {
1764
+ var lastItem = this.popInstanceList.pop();
1765
+ this.bKMaskManagerInstance.popIndexStore(lastItem.uuid);
1766
+ lastItem.remove();
1767
+ }
1768
+ if (this.popInstanceList.length) {
1769
+ var activeItem = this.popInstanceList.slice(-1)[0];
1770
+ var zIndex = activeItem.zIndex,
1771
+ content = activeItem.content,
1772
+ showMask = activeItem.showMask,
1773
+ appendStyle = activeItem.appendStyle,
1774
+ uuid = activeItem.uuid;
1775
+ this.bKMaskManagerInstance.show(content, zIndex, showMask, appendStyle, uuid);
1776
+ } else {
1777
+ this.bKMaskManagerInstance.hide();
1778
+ // this.clickFn.length = 0;
1779
+ }
1780
+ }
1781
+ }
1782
+ /**
1783
+ * 关闭指定弹窗
1784
+ * @param content { HTMLElement } 关闭弹窗内容
1785
+ * **/
1786
+ }, {
1787
+ key: "hide",
1788
+ value: function hide(content) {
1789
+ var transfer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1790
+ /** 检查当前实例是否存在于已缓存列表 */
1791
+ var uuid = content === null || content === void 0 ? void 0 : content.getAttribute(this.uuidAttrName);
1792
+ if (uuid) {
1793
+ var itemIndex = this.popInstanceList.findIndex(function (item) {
1794
+ return item.uuid === uuid;
1795
+ });
1796
+ if (itemIndex >= 0) {
1797
+ if (!transfer) this.popInstanceList[itemIndex].content.remove();
1798
+ this.popInstanceList.splice(itemIndex, 1);
1799
+ this.bKMaskManagerInstance.popIndexStore(uuid);
1800
+ if (!this.popInstanceList.length) {
1801
+ this.bKMaskManagerInstance.hide(transfer);
1802
+ } else {
1803
+ this.popHide(false);
1804
+ }
1805
+ }
1806
+ } else {
1807
+ content === null || content === void 0 ? void 0 : content.remove();
1808
+ }
1809
+ this.bKMaskManagerInstance.removeClickEvent();
1810
+ }
1811
+ }, {
1812
+ key: "removeLastEvent",
1813
+ value: function removeLastEvent() {
1814
+ this.bKMaskManagerInstance.destroyEvent(this.uniqId);
1815
+ }
1816
+ }, {
1817
+ key: "onMaskClickFn",
1818
+ value: function onMaskClickFn(e) {
1819
+ if (this.clickFn) {
1820
+ var fn = this.clickFn.fn;
1821
+ if (fn) {
1822
+ Reflect.apply(fn, this, [e]);
1823
+ }
1824
+ }
1825
+ }
1826
+ }]);
1827
+ return BKPopIndexManager;
1828
+ }();
1829
+ var bkPopIndexManager = new BKPopIndexManager();
1830
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
1831
+ function _arrayLikeToArray(arr, len) {
1832
+ if (len == null || len > arr.length) len = arr.length;
1833
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1834
+ return arr2;
1835
+ }
1836
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1837
+
1838
+ function _arrayWithoutHoles(arr) {
1839
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1840
+ }
1841
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1842
+ function _iterableToArray(iter) {
1843
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1844
+ }
1845
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1846
+
1847
+ function _unsupportedIterableToArray(o, minLen) {
1848
+ if (!o) return;
1849
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1850
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1851
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1852
+ if (n === "Map" || n === "Set") return Array.from(o);
1853
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1854
+ }
1855
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1856
+ function _nonIterableSpread() {
1857
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1858
+ }
1859
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1860
+
1861
+
1862
+
1863
+
1864
+ function _toConsumableArray(arr) {
1865
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1866
+ }
1867
+ // EXTERNAL MODULE: ../../node_modules/uuid/index.js
1868
+ var uuid = __webpack_require__(8022);
1869
+ ;// CONCATENATED MODULE: external "@popperjs/core"
1870
+ var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1871
+ var core_y = x => () => x
1872
+ const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
1873
+ ;// CONCATENATED MODULE: ../../packages/shared/src/popover.ts
1874
+
1875
+
1876
+
1877
+
1878
+
1879
+ /*
1880
+ * Tencent is pleased to support the open source community by making
1881
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1882
+ *
1883
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1884
+ *
1885
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1886
+ *
1887
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1888
+ *
1889
+ * ---------------------------------------------------
1890
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1891
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1892
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1893
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1894
+ *
1895
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1896
+ * the Software.
1897
+ *
1898
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1899
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1900
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1901
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1902
+ * IN THE SOFTWARE.
1903
+ */
1904
+
1905
+
1906
+
1907
+ var BKPopover = /*#__PURE__*/function () {
1908
+ function BKPopover(reference, popperRefer, options) {
1909
+ var _this$popperRefer, _this$instanceOptions;
1910
+ _classCallCheck(this, BKPopover);
1911
+ /** 当前提内容是否弹出 */
1912
+ _defineProperty(this, "isShow", false);
1913
+ /** 触发条件 */
1914
+ _defineProperty(this, "trigger", undefined);
1915
+ /** 当前popperjs实例 */
1916
+ _defineProperty(this, "instance", undefined);
1917
+ /** 是否总是可见 */
1918
+ _defineProperty(this, "always", false);
1919
+ /** Popover 外层容器,触发Pop的元素 */
1920
+ _defineProperty(this, "reference", undefined);
1921
+ /** Popover 弹出内容外层占位容器 */
1922
+ _defineProperty(this, "referenceTarget", undefined);
1923
+ /** Popover Content 外层容器,目标元素:实际弹出内容 */
1924
+ _defineProperty(this, "popperRefer", undefined);
1925
+ /** hide延时 */
1926
+ _defineProperty(this, "delay", 50);
1927
+ /** 是否进入popperRefer */
1928
+ _defineProperty(this, "isInnerPopper", false);
1929
+ /** 是否为禁用状态 */
1930
+ _defineProperty(this, "disabled", false);
1931
+ /** 执行显示函数 */
1932
+ _defineProperty(this, "afterShow", null);
1933
+ /** 执行隐藏函数 */
1934
+ _defineProperty(this, "afterHidden", null);
1935
+ /** 弹出内容AppendTo */
1936
+ _defineProperty(this, "appendTo", 'parent');
1937
+ /** 父级容器 */
1938
+ _defineProperty(this, "container", null);
1939
+ /**
1940
+ * 如果设置了appendTo为指定DOM,此配置项生效
1941
+ * 是否将弹出内容固定到目标元素位置
1942
+ * 例如:appendTo = document.body, fixOnBoundary = true,则弹出内容会一直固定到body
1943
+ */
1944
+ _defineProperty(this, "fixOnBoundary", false);
1945
+ this.instanceOptions = this.initDefaultOptions(options);
1946
+ this.reference = this.resolveInputSelectorToHtmlElement(reference);
1947
+ this.popperRefer = this.resolveInputSelectorToHtmlElement(popperRefer);
1948
+ this.referenceTarget = this.getTargetReferenceElement();
1949
+ this.container = (_this$popperRefer = this.popperRefer) === null || _this$popperRefer === void 0 ? void 0 : _this$popperRefer.parentElement;
1950
+ this.isShow = !!((_this$instanceOptions = this.instanceOptions) !== null && _this$instanceOptions !== void 0 && _this$instanceOptions.isShow);
1951
+ this.always = this.instanceOptions.always;
1952
+ this.trigger = this.instanceOptions.trigger;
1953
+ this.disabled = this.instanceOptions.disabled;
1954
+ this.appendTo = this.instanceOptions.appendTo;
1955
+ this.afterHidden = typeof options.afterHidden === 'function' ? options.afterHidden : function () {};
1956
+ this.afterShow = typeof options.afterShow === 'function' ? options.afterShow : function () {};
1957
+ this.fixOnBoundary = this.instanceOptions.fixOnBoundary;
1958
+ this.initInstance();
1959
+ this.registerEvents();
1960
+ /** 默认弹出 */
1961
+ if (this.isShow || this.always) {
1962
+ this.show(null);
1963
+ }
1964
+ }
1965
+ // Synchronously updates the popper instance. Use this for low-frequency
1966
+ // updates.
1967
+ _createClass(BKPopover, [{
1968
+ key: "forceUpdate",
1969
+ value: function forceUpdate() {
1970
+ var _this$instance;
1971
+ (_this$instance = this.instance) === null || _this$instance === void 0 ? void 0 : _this$instance.forceUpdate();
1972
+ }
1973
+ // Asynchronously updates the popper instance, and returns a promise. Use this
1974
+ // for high-frequency updates.
1975
+ }, {
1976
+ key: "update",
1977
+ value: function update() {
1978
+ var _this$instance2;
1979
+ (_this$instance2 = this.instance) === null || _this$instance2 === void 0 ? void 0 : _this$instance2.update();
1980
+ }
1981
+ }, {
1982
+ key: "updateOptions",
1983
+ value: function updateOptions(options) {
1984
+ var _this$instanceOptions2;
1985
+ this.instanceOptions = this.initDefaultOptions(options);
1986
+ this.isShow = !!((_this$instanceOptions2 = this.instanceOptions) !== null && _this$instanceOptions2 !== void 0 && _this$instanceOptions2.isShow);
1987
+ this.trigger = this.instanceOptions.trigger;
1988
+ this.disabled = this.instanceOptions.disabled;
1989
+ this.setOptions(this.instanceOptions);
1990
+ }
1991
+ // Updates the options of the instance.
1992
+ }, {
1993
+ key: "setOptions",
1994
+ value: function setOptions(options) {
1995
+ var _this$instance3;
1996
+ (_this$instance3 = this.instance) === null || _this$instance3 === void 0 ? void 0 : _this$instance3.setOptions(options);
1997
+ }
1998
+ // Cleans up the instance.
1999
+ }, {
2000
+ key: "destroy",
2001
+ value: function destroy() {
2002
+ var _this$instance4;
2003
+ (_this$instance4 = this.instance) === null || _this$instance4 === void 0 ? void 0 : _this$instance4.destroy();
2004
+ }
2005
+ // 更新禁用状态
2006
+ }, {
2007
+ key: "updateDisabled",
2008
+ value: function updateDisabled(disabled) {
2009
+ this.disabled = disabled !== null && disabled !== void 0 ? disabled : !this.disabled;
2010
+ this.disabled && this.hide();
2011
+ }
2012
+ /**
2013
+ * 展示Pop
2014
+ * @param _event 触发事件
2015
+ */
2016
+ }, {
2017
+ key: "show",
2018
+ value: function show(_event) {
2019
+ if (!this.disabled) {
2020
+ var _this$popperRefer2;
2021
+ // Make the tooltip visible
2022
+ (_this$popperRefer2 = this.popperRefer) === null || _this$popperRefer2 === void 0 ? void 0 : _this$popperRefer2.setAttribute('data-show', '');
2023
+ // Enable the event listeners
2024
+ this.setOptions({
2025
+ modifiers: [].concat(_toConsumableArray(this.instanceOptions.modifiers || []), [{
2026
+ name: 'eventListeners',
2027
+ enabled: true
2028
+ }])
2029
+ });
2030
+ // Update its position
2031
+ this.update();
2032
+ this.isShow = true;
2033
+ this.afterShow();
2034
+ if (!this.fixOnBoundary) {
2035
+ this.appendToTarget();
2036
+ }
2037
+ }
2038
+ }
2039
+ /**
2040
+ * 隐藏
2041
+ * @param event 触发事件
2042
+ */
2043
+ }, {
2044
+ key: "hide",
2045
+ value: function hide() {
2046
+ var _this$popperRefer3;
2047
+ if (this.always) return;
2048
+ // Hide the tooltip
2049
+ (_this$popperRefer3 = this.popperRefer) === null || _this$popperRefer3 === void 0 ? void 0 : _this$popperRefer3.removeAttribute('data-show');
2050
+ // Disable the event listeners
2051
+ this.setOptions({
2052
+ modifiers: [].concat(_toConsumableArray(this.instanceOptions.modifiers || []), [{
2053
+ name: 'eventListeners',
2054
+ enabled: false
2055
+ }])
2056
+ });
2057
+ this.isShow = false;
2058
+ this.isInnerPopper = false;
2059
+ this.afterHidden();
2060
+ if (!this.fixOnBoundary) {
2061
+ this.restorePopContent();
2062
+ }
2063
+ }
2064
+ /**
2065
+ * 还原PopContent到初试位置
2066
+ */
2067
+ }, {
2068
+ key: "restorePopContent",
2069
+ value: function restorePopContent() {
2070
+ var target = this.getAppendToTarget();
2071
+ if (helper_isElement(target) && target.contains(this.popperRefer) && this.container && !this.container.contains(this.popperRefer)) {
2072
+ this.container.append(this.popperRefer);
2073
+ }
2074
+ }
2075
+ /**
2076
+ * 挂载PopContent到目标位置
2077
+ */
2078
+ }, {
2079
+ key: "appendToTarget",
2080
+ value: function appendToTarget() {
2081
+ var target = this.getAppendToTarget();
2082
+ if (helper_isElement(target) && target.contains(this.popperRefer)) {
2083
+ target.append(this.popperRefer);
2084
+ }
2085
+ }
2086
+ /**
2087
+ * 获取目标位置元素
2088
+ * @returns
2089
+ */
2090
+ }, {
2091
+ key: "getAppendToTarget",
2092
+ value: function getAppendToTarget() {
2093
+ var appendTo = this.appendTo;
2094
+ var target = appendTo;
2095
+ if (appendTo !== 'parent') {
2096
+ if (typeof appendTo === 'string') {
2097
+ target = document.querySelector(appendTo);
2098
+ }
2099
+ }
2100
+ return target;
2101
+ }
2102
+ /**
2103
+ * 初始化默认配置
2104
+ * @param opts
2105
+ * @returns
2106
+ */
2107
+ }, {
2108
+ key: "initDefaultOptions",
2109
+ value: function initDefaultOptions(opts) {
2110
+ var _this = this;
2111
+ var defaultCfg = {
2112
+ placement: 'top',
2113
+ modifiers: [{
2114
+ name: 'offset',
2115
+ options: {
2116
+ offset: [0, 8]
2117
+ }
2118
+ }],
2119
+ strategy: 'absolute',
2120
+ onFirstUpdate: undefined,
2121
+ isShow: false,
2122
+ theme: 'dark',
2123
+ trigger: 'hover',
2124
+ disabled: false
2125
+ };
2126
+ var targetOptions = merge(defaultCfg, opts || {});
2127
+ var sourceOnFirstUpdate = targetOptions.onFirstUpdate;
2128
+ targetOptions.onFirstUpdate = function (state) {
2129
+ if (typeof sourceOnFirstUpdate === 'function') {
2130
+ sourceOnFirstUpdate.call(_this, state);
2131
+ _this.handleFirstUpdate();
2132
+ }
2133
+ };
2134
+ return targetOptions;
2135
+ }
2136
+ /**
2137
+ * 判定是否需要将PopContent挂载到目标元素
2138
+ */
2139
+ }, {
2140
+ key: "handleFirstUpdate",
2141
+ value: function handleFirstUpdate() {
2142
+ if (this.fixOnBoundary) {
2143
+ this.appendToTarget();
2144
+ }
2145
+ }
2146
+ /**
2147
+ * 剔除 Pop 外层容器,获取目标元素
2148
+ * @returns
2149
+ */
2150
+ }, {
2151
+ key: "getTargetReferenceElement",
2152
+ value: function getTargetReferenceElement() {
2153
+ if (this.isElement(this.reference)) {
2154
+ return this.reference.childElementCount === 1 ? this.reference.firstElementChild : this.reference;
2155
+ }
2156
+ return this.reference;
2157
+ }
2158
+ /**
2159
+ * 初始化Pop Instance
2160
+ */
2161
+ }, {
2162
+ key: "initInstance",
2163
+ value: function initInstance() {
2164
+ if (this.referenceTarget) {
2165
+ if (this.referenceTarget && this.popperRefer) {
2166
+ var _this$popperRefer4, _this$instanceOptions3;
2167
+ this.instance = (0,core_namespaceObject.createPopper)(this.referenceTarget, this.popperRefer, this.instanceOptions);
2168
+ (_this$popperRefer4 = this.popperRefer) === null || _this$popperRefer4 === void 0 ? void 0 : _this$popperRefer4.setAttribute('data-theme', (_this$instanceOptions3 = this.instanceOptions.theme) !== null && _this$instanceOptions3 !== void 0 ? _this$instanceOptions3 : 'dark');
2169
+ } else {
2170
+ console.error('reference or popperRefer is null, please check html element.');
2171
+ }
2172
+ }
2173
+ }
2174
+ /**
2175
+ * 解析当前参数为对应的Html Element
2176
+ * @param refer Html Element Selector Or Html Element
2177
+ * @param checkVirtualDom 是否检查虚拟DOM
2178
+ * @returns Html Element Or Null
2179
+ */
2180
+ }, {
2181
+ key: "resolveInputSelectorToHtmlElement",
2182
+ value: function resolveInputSelectorToHtmlElement(refer) {
2183
+ if (this.isElement(refer)) {
2184
+ return refer;
2185
+ }
2186
+ if (typeof refer === 'string') {
2187
+ return document.querySelector(refer);
2188
+ }
2189
+ if (_typeof(refer) === 'object') {
2190
+ if (Object.prototype.hasOwnProperty.call(refer, 'getBoundingClientRect')) {
2191
+ return refer;
2192
+ }
2193
+ } else {
2194
+ console.error("'getBoundingClientRect' is needed when use virtual elements");
2195
+ }
2196
+ return null;
2197
+ }
2198
+ /**
2199
+ * 检查当前元素是否为Html元素
2200
+ * @param obj
2201
+ * @returns
2202
+ */
2203
+ }, {
2204
+ key: "isElement",
2205
+ value: function isElement(obj) {
2206
+ return helper_isElement(obj);
2207
+ }
2208
+ }, {
2209
+ key: "registerEvents",
2210
+ value: function registerEvents() {
2211
+ var _this2 = this;
2212
+ if (this.isElement(this.referenceTarget)) {
2213
+ if (this.trigger === 'hover') {
2214
+ var showEvents = ['mouseenter', 'focus'];
2215
+ var hideEvents = ['mouseleave', 'blur'];
2216
+ var contentEvents = ['mouseenter', 'mouseleave'];
2217
+ showEvents.forEach(function (event) {
2218
+ _this2.referenceTarget.addEventListener(event, function (evt) {
2219
+ if (event === 'mouseenter') _this2.isInnerPopper = true;
2220
+ _this2.show(evt);
2221
+ });
2222
+ });
2223
+ hideEvents.forEach(function (event) {
2224
+ _this2.referenceTarget.addEventListener(event, function () {
2225
+ _this2.isInnerPopper = false;
2226
+ setTimeout(function () {
2227
+ !_this2.isInnerPopper && _this2.hide();
2228
+ }, _this2.delay);
2229
+ });
2230
+ });
2231
+ if (this.isElement(this.popperRefer)) {
2232
+ contentEvents.forEach(function (event) {
2233
+ _this2.popperRefer.addEventListener(event, function () {
2234
+ if (event === 'mouseenter') _this2.isInnerPopper = true;
2235
+ if (event === 'mouseleave') _this2.hide();
2236
+ });
2237
+ });
2238
+ }
2239
+ }
2240
+ }
2241
+ if (this.trigger === 'click') {
2242
+ var _showEvents = ['click'];
2243
+ _showEvents.forEach(function (event) {
2244
+ document.body.addEventListener(event, function (event) {
2245
+ if (_this2.isSameElement(event.target, _this2.reference) || _this2.reference.contains(event.target)) {
2246
+ _this2.show(event);
2247
+ } else {
2248
+ if (_this2.isShow && !_this2.isSameElement(event.target, _this2.popperRefer) && !_this2.popperRefer.contains(event.target)) {
2249
+ _this2.hide();
2250
+ }
2251
+ }
2252
+ });
2253
+ });
2254
+ }
2255
+ }
2256
+ }, {
2257
+ key: "isSameElement",
2258
+ value: function isSameElement(source, target) {
2259
+ return source && (source === target || source === target.firstElementChild);
2260
+ }
2261
+ }]);
2262
+ return BKPopover;
2263
+ }();
2264
+ var popContainerId = null;
2265
+ var getPopContainerId = function getPopContainerId() {
2266
+ var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#';
2267
+ if (popContainerId === null) {
2268
+ popContainerId = "id_".concat((0,uuid.v4)());
2269
+ var popContainer = document.createElement('div');
2270
+ popContainer.setAttribute('id', popContainerId);
2271
+ popContainer.setAttribute('data-popper-id', popContainerId);
2272
+ document.body.append(popContainer);
2273
+ }
2274
+ return "".concat(prefix).concat(popContainerId);
2275
+ };
2276
+ ;// CONCATENATED MODULE: ../../packages/shared/src/scrollbar-width.ts
2277
+ /*
2278
+ * Tencent is pleased to support the open source community by making
2279
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2280
+ *
2281
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2282
+ *
2283
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2284
+ *
2285
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2286
+ *
2287
+ * ---------------------------------------------------
2288
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2289
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2290
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2291
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2292
+ *
2293
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2294
+ * the Software.
2295
+ *
2296
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2297
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2298
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2299
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2300
+ * IN THE SOFTWARE.
2301
+ */
2302
+ var scrollBarWidth;
2303
+ function scrollbarWidth() {
2304
+ if (scrollBarWidth !== undefined) return scrollBarWidth;
2305
+ var outer = document.createElement('div');
2306
+ outer.className = 'bk-scrollbar-wrap';
2307
+ outer.style.visibility = 'hidden';
2308
+ outer.style.width = '100px';
2309
+ outer.style.position = 'absolute';
2310
+ outer.style.top = '-9999px';
2311
+ document.body.appendChild(outer);
2312
+ var widthNoScroll = outer.offsetWidth;
2313
+ outer.style.overflow = 'scroll';
2314
+ var inner = document.createElement('div');
2315
+ inner.style.width = '100%';
2316
+ outer.appendChild(inner);
2317
+ var widthWithScroll = inner.offsetWidth;
2318
+ outer.parentNode.removeChild(outer);
2319
+ scrollBarWidth = widthNoScroll - widthWithScroll;
2320
+ return scrollBarWidth;
2321
+ }
2322
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
2323
+ function _setPrototypeOf(o, p) {
2324
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2325
+ o.__proto__ = p;
2326
+ return o;
2327
+ };
2328
+ return _setPrototypeOf(o, p);
2329
+ }
2330
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/inherits.js
2331
+
2332
+ function _inherits(subClass, superClass) {
2333
+ if (typeof superClass !== "function" && superClass !== null) {
2334
+ throw new TypeError("Super expression must either be null or a function");
2335
+ }
2336
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
2337
+ constructor: {
2338
+ value: subClass,
2339
+ writable: true,
2340
+ configurable: true
2341
+ }
2342
+ });
2343
+ Object.defineProperty(subClass, "prototype", {
2344
+ writable: false
2345
+ });
2346
+ if (superClass) _setPrototypeOf(subClass, superClass);
2347
+ }
2348
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
2349
+ function _assertThisInitialized(self) {
2350
+ if (self === void 0) {
2351
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2352
+ }
2353
+ return self;
2354
+ }
2355
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
2356
+
2357
+
2358
+ function _possibleConstructorReturn(self, call) {
2359
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
2360
+ return call;
2361
+ } else if (call !== void 0) {
2362
+ throw new TypeError("Derived constructors may only return object or undefined");
2363
+ }
2364
+ return _assertThisInitialized(self);
2365
+ }
2366
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
2367
+ function _getPrototypeOf(o) {
2368
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
2369
+ return o.__proto__ || Object.getPrototypeOf(o);
2370
+ };
2371
+ return _getPrototypeOf(o);
2372
+ }
2373
+ ;// CONCATENATED MODULE: external "vue-types"
2374
+ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2375
+ var external_vue_types_y = x => () => x
2376
+ const external_vue_types_namespaceObject = external_vue_types_x({ ["createTypes"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.createTypes, ["string"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.string, ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
2377
+ ;// CONCATENATED MODULE: ../../packages/shared/src/vue-types.ts
2378
+
2379
+
2380
+
2381
+
2382
+
2383
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2384
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2385
+ /*
2386
+ * Tencent is pleased to support the open source community by making
2387
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2388
+ *
2389
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2390
+ *
2391
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2392
+ *
2393
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2394
+ *
2395
+ * ---------------------------------------------------
2396
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2397
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2398
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2399
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2400
+ *
2401
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2402
+ * the Software.
2403
+ *
2404
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2405
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2406
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2407
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2408
+ * IN THE SOFTWARE.
2409
+ */
2410
+
2411
+ var propTypesNS = (0,external_vue_types_namespaceObject.createTypes)({});
2412
+ // 用于创建字符串列表映射至 `K: V` 的函数
2413
+ function stringEnum(o) {
2414
+ return o.reduce(function (res, key) {
2415
+ res[key] = key;
2416
+ return res;
2417
+ }, Object.create(null));
2418
+ }
2419
+ var SizeEnum;
2420
+ (function (SizeEnum) {
2421
+ SizeEnum["SMALL"] = "small";
2422
+ SizeEnum["LARGE"] = "large";
2423
+ SizeEnum["DEFAULT"] = "default";
2424
+ })(SizeEnum || (SizeEnum = {}));
2425
+ var Placements;
2426
+ (function (Placements) {
2427
+ Placements["Top"] = "top";
2428
+ Placements["Left"] = "left";
2429
+ Placements["Right"] = "right";
2430
+ Placements["Bottom"] = "bottom";
2431
+ })(Placements || (Placements = {}));
2432
+ var RenderDirectiveEnum;
2433
+ (function (RenderDirectiveEnum) {
2434
+ RenderDirectiveEnum["IF"] = "if";
2435
+ RenderDirectiveEnum["SHOW"] = "show";
2436
+ })(RenderDirectiveEnum || (RenderDirectiveEnum = {}));
2437
+ function renderDirectiveType() {
2438
+ return (0,external_vue_types_namespaceObject.string)().def(RenderDirectiveEnum.SHOW);
2439
+ }
2440
+ var AlignEnum;
2441
+ (function (AlignEnum) {
2442
+ AlignEnum["LEFT"] = "left";
2443
+ AlignEnum["CENTER"] = "center";
2444
+ AlignEnum["RIGHT"] = "right";
2445
+ })(AlignEnum || (AlignEnum = {}));
2446
+ function alignType() {
2447
+ return (0,external_vue_types_namespaceObject.string)().def(AlignEnum.LEFT);
2448
+ }
2449
+ var ThemeEnum;
2450
+ (function (ThemeEnum) {
2451
+ ThemeEnum["PRIMARY"] = "primary";
2452
+ ThemeEnum["WARNING"] = "warning";
2453
+ ThemeEnum["SUCCESS"] = "success";
2454
+ ThemeEnum["DANGER"] = "danger";
2455
+ })(ThemeEnum || (ThemeEnum = {}));
2456
+ /** 弹层出现位置选项 */
2457
+ var PlacementEnum;
2458
+ (function (PlacementEnum) {
2459
+ PlacementEnum["AUTO"] = "auto";
2460
+ PlacementEnum["AUTO_START"] = "auto-start";
2461
+ PlacementEnum["AUTO_END"] = "auto-end";
2462
+ PlacementEnum["TOP"] = "top";
2463
+ PlacementEnum["RIGHT"] = "right";
2464
+ PlacementEnum["BOTTOM"] = "bottom";
2465
+ PlacementEnum["LEFT"] = "left";
2466
+ PlacementEnum["TOP_START"] = "top-start";
2467
+ PlacementEnum["TOP_END"] = "top-end";
2468
+ PlacementEnum["BOTTOM_START"] = "bottom-start";
2469
+ PlacementEnum["BOTTOM_END"] = "bottom-end";
2470
+ PlacementEnum["RIGHT_START"] = "right-start";
2471
+ PlacementEnum["RIGHT_END"] = "right-end";
2472
+ PlacementEnum["LEFT_START"] = "left-start";
2473
+ PlacementEnum["LEFT_END"] = "left-end";
2474
+ })(PlacementEnum || (PlacementEnum = {}));
2475
+ function placementType() {
2476
+ return (0,external_vue_types_namespaceObject.string)().def(PlacementEnum.BOTTOM);
2477
+ }
2478
+ /** 弹层触发选项 */
2479
+ var TriggerEnum;
2480
+ (function (TriggerEnum) {
2481
+ TriggerEnum["HOVER"] = "hover";
2482
+ TriggerEnum["CLICK"] = "click";
2483
+ TriggerEnum["MANUAL"] = "manual";
2484
+ })(TriggerEnum || (TriggerEnum = {}));
2485
+ function triggerType() {
2486
+ return (0,external_vue_types_namespaceObject.string)().def(TriggerEnum.HOVER);
2487
+ }
2488
+ /** 内容渲染类型:目前是在popover内容渲染时使用 */
2489
+ var RenderType;
2490
+ (function (RenderType) {
2491
+ RenderType["AUTO"] = "auto";
2492
+ RenderType["SHOWN"] = "shown";
2493
+ })(RenderType || (RenderType = {}));
2494
+ function renderType() {
2495
+ return (0,external_vue_types_namespaceObject.toType)('popRenderType', {}).def(RenderType.SHOWN);
2496
+ }
2497
+ var DialogTypeEnum;
2498
+ (function (DialogTypeEnum) {
2499
+ DialogTypeEnum["SHOW"] = "show";
2500
+ DialogTypeEnum["OPERATION"] = "operation";
2501
+ DialogTypeEnum["CONFIRM"] = "confirm";
2502
+ DialogTypeEnum["PROCESS"] = "process";
2503
+ })(DialogTypeEnum || (DialogTypeEnum = {}));
2504
+ function dialogTypeUnion() {
2505
+ return (0,external_vue_types_namespaceObject.toType)('dialogType', {
2506
+ "default": DialogTypeEnum.OPERATION
2507
+ });
2508
+ }
2509
+ var DirectionEnum;
2510
+ (function (DirectionEnum) {
2511
+ DirectionEnum["HORIZONTAL"] = "horizontal";
2512
+ DirectionEnum["VERTICAL"] = "vertical";
2513
+ })(DirectionEnum || (DirectionEnum = {}));
2514
+ function directionType() {
2515
+ return (0,external_vue_types_namespaceObject.toType)('direction', {}).def(DirectionEnum.HORIZONTAL);
2516
+ }
2517
+ var LineStyleEnum;
2518
+ (function (LineStyleEnum) {
2519
+ LineStyleEnum["DASHED"] = "dashed";
2520
+ LineStyleEnum["SOLID"] = "solid";
2521
+ })(LineStyleEnum || (LineStyleEnum = {}));
2522
+ function lineStyleType() {
2523
+ return (0,external_vue_types_namespaceObject.toType)('lineType', {}).def(LineStyleEnum.DASHED);
2524
+ }
2525
+ var TagThemeEnum;
2526
+ (function (TagThemeEnum) {
2527
+ TagThemeEnum["UNKNOWN"] = "";
2528
+ TagThemeEnum["SUCCESS"] = "success";
2529
+ TagThemeEnum["INFO"] = "info";
2530
+ TagThemeEnum["WARNING"] = "warning";
2531
+ TagThemeEnum["DANGER"] = "danger";
2532
+ })(TagThemeEnum || (TagThemeEnum = {}));
2533
+ function TagThemeType() {
2534
+ return (0,external_vue_types_namespaceObject.toType)('tagTheme', {}).def();
2535
+ }
2536
+ var InputBehaviorEnum;
2537
+ (function (InputBehaviorEnum) {
2538
+ InputBehaviorEnum["SIMPLICITY"] = "simplicity";
2539
+ InputBehaviorEnum["NORMAL"] = "normal";
2540
+ })(InputBehaviorEnum || (InputBehaviorEnum = {}));
2541
+ var ProgressStrokeLineCapEnum;
2542
+ (function (ProgressStrokeLineCapEnum) {
2543
+ ProgressStrokeLineCapEnum["BUTT"] = "butt";
2544
+ ProgressStrokeLineCapEnum["SQUARE"] = "square";
2545
+ ProgressStrokeLineCapEnum["ROUNDE"] = "round";
2546
+ })(ProgressStrokeLineCapEnum || (ProgressStrokeLineCapEnum = {}));
2547
+ var ProgressEnum;
2548
+ (function (ProgressEnum) {
2549
+ ProgressEnum["LINE"] = "line";
2550
+ ProgressEnum["CIRCLE"] = "circle";
2551
+ ProgressEnum["DASHBOARD"] = "dashboard";
2552
+ })(ProgressEnum || (ProgressEnum = {}));
2553
+ var SwitcherThemeEnum;
2554
+ (function (SwitcherThemeEnum) {
2555
+ SwitcherThemeEnum["SUCCESS"] = "success";
2556
+ SwitcherThemeEnum["PRIMARY"] = "primary";
2557
+ })(SwitcherThemeEnum || (SwitcherThemeEnum = {}));
2558
+ function SwitcherThemeType() {
2559
+ return (0,external_vue_types_namespaceObject.toType)('switcherTheme', {}).def(SwitcherThemeEnum.SUCCESS);
2560
+ }
2561
+ function ProgressStrokeLineCapType() {
2562
+ return (0,external_vue_types_namespaceObject.toType)('progressStrokeLineCap', {}).def(ProgressStrokeLineCapEnum.ROUNDE);
2563
+ }
2564
+ function ProgressType() {
2565
+ return (0,external_vue_types_namespaceObject.toType)('progress', {}).def(ProgressEnum.LINE);
2566
+ }
2567
+ function InputBehaviorType() {
2568
+ return (0,external_vue_types_namespaceObject.toType)('behavior', {}).def(InputBehaviorEnum.NORMAL);
2569
+ }
2570
+ var PropTypes = /*#__PURE__*/function (_propTypesNS) {
2571
+ _inherits(PropTypes, _propTypesNS);
2572
+ var _super = _createSuper(PropTypes);
2573
+ function PropTypes() {
2574
+ _classCallCheck(this, PropTypes);
2575
+ return _super.apply(this, arguments);
2576
+ }
2577
+ _createClass(PropTypes, null, [{
2578
+ key: "size",
2579
+ value: function size() {
2580
+ var defaultList = ['small', 'default', 'large'];
2581
+ return (0,external_vue_types_namespaceObject.toType)('Size', {
2582
+ validator: function validator(val) {
2583
+ if (!val || defaultList.includes(val)) {
2584
+ return true;
2585
+ }
2586
+ console.error("invalid theme, ".concat(val, ", the theme must be one of \u3010").concat(defaultList.join(' | '), "\u3011"));
2587
+ return false;
2588
+ },
2589
+ "default": 'default'
2590
+ });
2591
+ }
2592
+ }, {
2593
+ key: "theme",
2594
+ value: function theme() {
2595
+ var themes = ['primary', 'warning', 'success', 'danger'];
2596
+ return (0,external_vue_types_namespaceObject.toType)('Theme', {
2597
+ validator: function validator(val) {
2598
+ if (!val || themes.includes(val)) {
2599
+ return true;
2600
+ }
2601
+ console.error("invalid theme, ".concat(val, ", the theme must be one of \u3010").concat(themes.join(' | '), "\u3011"));
2602
+ return false;
2603
+ }
2604
+ });
2605
+ }
2606
+ }, {
2607
+ key: "placement",
2608
+ value: function placement() {
2609
+ var placements = ['top', 'left', 'right', 'bottom'];
2610
+ return (0,external_vue_types_namespaceObject.toType)('Placements', {
2611
+ validator: function validator(val) {
2612
+ if (!val || placements.includes(val)) {
2613
+ return true;
2614
+ }
2615
+ return false;
2616
+ },
2617
+ "default": 'top'
2618
+ });
2619
+ }
2620
+ }, {
2621
+ key: "style",
2622
+ value: function style() {
2623
+ return (0,external_vue_types_namespaceObject.toType)('Style', {
2624
+ type: [String, Object]
2625
+ });
2626
+ }
2627
+ }, {
2628
+ key: "position",
2629
+ value: function position() {
2630
+ var positions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['top-left', 'top-right', 'bottom-left', 'bottom-right'];
2631
+ return (0,external_vue_types_namespaceObject.toType)('positions', {
2632
+ type: String,
2633
+ validator: function validator(val) {
2634
+ if (!val || positions.includes(val)) {
2635
+ return true;
2636
+ }
2637
+ console.error("invalid positions, ".concat(val, ", the position must be one of \u3010").concat(positions.join(' | '), "\u3011"));
2638
+ return false;
2639
+ },
2640
+ "default": 'top-center'
2641
+ });
2642
+ }
2643
+ }]);
2644
+ return PropTypes;
2645
+ }(propTypesNS);
2646
+ var SelectedTypeEnum;
2647
+ (function (SelectedTypeEnum) {
2648
+ SelectedTypeEnum["CHECKBOX"] = "checkbox";
2649
+ SelectedTypeEnum["CHECK"] = "check";
2650
+ })(SelectedTypeEnum || (SelectedTypeEnum = {}));
2651
+ function SelectedType() {
2652
+ return (0,external_vue_types_namespaceObject.toType)('selectedStyle', {}).def(SelectedTypeEnum.CHECK);
2653
+ }
2654
+ ;// CONCATENATED MODULE: ../../packages/shared/src/index.ts
2655
+
2656
+
2657
+
2658
+
2659
+
2660
+
2661
+
2662
+
2663
+
2664
+
2665
+
2666
+
2667
+ function classes(dynamicCls) {
2668
+ var constCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
2669
+ return Object.entries(dynamicCls).filter(function (entry) {
2670
+ return entry[1];
2671
+ }).map(function (entry) {
2672
+ return entry[0];
2673
+ }).join(' ').concat(constCls ? " ".concat(constCls) : '');
2674
+ }
2675
+ var EMPTY_OBJ = Object.create({});
2676
+ var noop = function noop() {};
2677
+ var renderEmptyVNode = function renderEmptyVNode() {
2678
+ return null;
2679
+ };
2680
+ var isEmptyObj = function isEmptyObj(target) {
2681
+ return Object.keys(target).length < 1;
2682
+ };
2683
+ var withInstall = function withInstall(component) {
2684
+ component.install = function (app) {
2685
+ var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
2686
+ prefix = _ref.prefix;
2687
+ var pre = app.config.globalProperties.bkUIPrefix || prefix || 'Bk';
2688
+ app.component(pre + component.name, component);
2689
+ };
2690
+ return component;
2691
+ };
2692
+ var withInstallProps = function withInstallProps(component, childComponents) {
2693
+ var isProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
2694
+ var directive = arguments.length > 3 ? arguments[3] : undefined;
2695
+ component.install = function (app) {
2696
+ var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
2697
+ prefix = _ref2.prefix;
2698
+ var pre = app.config.globalProperties.bkUIPrefix || prefix || 'Bk';
2699
+ if (directive) {
2700
+ app.directive(pre + directive.name, directive.directive);
2701
+ }
2702
+ app.component(pre + component.name, component);
2703
+ !isProps && Object.values(childComponents).forEach(function (child) {
2704
+ app.component(pre + child.name, child);
2705
+ });
2706
+ };
2707
+ Object.keys(childComponents).forEach(function (key) {
2708
+ component[key] = childComponents[key];
2709
+ });
2710
+ return component;
2711
+ };
2712
+ /**
2713
+ * 解析当前组件ClassName,自动添加前缀
2714
+ * @param clsName 当前ClassName
2715
+ * @param prefix 前缀,默认为bk
2716
+ * @returns prefix-clsName
2717
+ */
2718
+ function resolveClassName(clsName) {
2719
+ var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'bk';
2720
+ return "".concat(prefix, "-").concat(clsName);
2721
+ }
2722
+ /**
2723
+ * 函数防抖
2724
+ * @param {*} fn 执行的函数
2725
+ * @param {*} delay 延时时间
2726
+ * @param {*} immediate 是否立即执行
2727
+ */
2728
+ function debounce() {
2729
+ var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 300;
2730
+ var fn = arguments.length > 1 ? arguments[1] : undefined;
2731
+ var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
2732
+ var timeout;
2733
+ var result;
2734
+ var debounced = function debounced() {
2735
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
2736
+ var ctx = this; // 当前上下文
2737
+ // eslint-disable-next-line prefer-rest-params
2738
+ var args = arguments; // fn的参数
2739
+ // 取消之前的延时调用
2740
+ if (timeout) clearTimeout(timeout);
2741
+ if (immediate) {
2742
+ var applyImmediate = !timeout; // 是否执行过
2743
+ timeout = setTimeout(function () {
2744
+ timeout = null; // 标志是否执行过,与clearTimeout有区别,clearTimeout之后timeout不为null而是一个系统分配的队列ID
2745
+ }, delay);
2746
+ if (applyImmediate) result = fn.apply(ctx, args); // 立即调用
2747
+ } else {
2748
+ timeout = setTimeout(function () {
2749
+ fn.apply(ctx, args);
2750
+ }, delay);
2751
+ }
2752
+ return result;
2753
+ };
2754
+ debounced.cancel = function () {
2755
+ clearTimeout(timeout);
2756
+ timeout = null;
2757
+ };
2758
+ return debounced;
2759
+ }
2760
+ /**
2761
+ * 过滤(去除)对象中的某个属性
2762
+ * @param data 需要处理的对象
2763
+ * @param filter 过滤关键字
2764
+ * @returns object 去除属性之后的对象
2765
+ */
2766
+ function filterProperty(data, filter) {
2767
+ return JSON.parse(JSON.stringify(data, function (key, value) {
2768
+ if (filter.includes(key)) {
2769
+ return undefined;
2770
+ }
2771
+ return value;
2772
+ }));
2773
+ }
2774
+ function arrayEqual() {
2775
+ var arr1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
2776
+ var arr2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
2777
+ if (arr1.length !== arr2.length) {
2778
+ return false;
2779
+ }
2780
+ for (var i = 0; i < arr1.length; i++) {
2781
+ if (Array.isArray(arr1[i])) {
2782
+ return arrayEqual(arr1[i], arr2[i]);
2783
+ }
2784
+ if (arr1[i] !== arr2[i]) {
2785
+ return false;
2786
+ }
2787
+ }
2788
+ return true;
2789
+ }
2790
+ })();
2791
+
2792
+ var __webpack_exports__AlignEnum = __webpack_exports__.oY;
2793
+ var __webpack_exports__BKLAYERD_INDEX_EFAULT_VALUE = __webpack_exports__.p3;
2794
+ var __webpack_exports__BKLAYERTYPE = __webpack_exports__.Ql;
2795
+ var __webpack_exports__BKPopIndexManager = __webpack_exports__.Eo;
2796
+ var __webpack_exports__BKPopover = __webpack_exports__.mZ;
2797
+ var __webpack_exports__BkMaskManager = __webpack_exports__.Wg;
2798
+ var __webpack_exports__DialogTypeEnum = __webpack_exports__._D;
2799
+ var __webpack_exports__DirectionEnum = __webpack_exports__.dq;
2800
+ var __webpack_exports__EMPTY_OBJ = __webpack_exports__.kT;
2801
+ var __webpack_exports__InputBehaviorEnum = __webpack_exports__.WF;
2802
+ var __webpack_exports__InputBehaviorType = __webpack_exports__.Gl;
2803
+ var __webpack_exports__LineStyleEnum = __webpack_exports__.VS;
2804
+ var __webpack_exports__PlacementEnum = __webpack_exports__.Um;
2805
+ var __webpack_exports__Placements = __webpack_exports__._h;
2806
+ var __webpack_exports__ProgressEnum = __webpack_exports__.rU;
2807
+ var __webpack_exports__ProgressStrokeLineCapEnum = __webpack_exports__._q;
2808
+ var __webpack_exports__ProgressStrokeLineCapType = __webpack_exports__.Hl;
2809
+ var __webpack_exports__ProgressType = __webpack_exports__.Mc;
2810
+ var __webpack_exports__PropTypes = __webpack_exports__.ng;
2811
+ var __webpack_exports__RenderDirectiveEnum = __webpack_exports__.Pi;
2812
+ var __webpack_exports__RenderType = __webpack_exports__.y2;
2813
+ var __webpack_exports__SelectedType = __webpack_exports__.qt;
2814
+ var __webpack_exports__SelectedTypeEnum = __webpack_exports__.aL;
2815
+ var __webpack_exports__SizeEnum = __webpack_exports__.mO;
2816
+ var __webpack_exports__SwitcherThemeEnum = __webpack_exports__.BZ;
2817
+ var __webpack_exports__SwitcherThemeType = __webpack_exports__.p;
2818
+ var __webpack_exports__TagThemeEnum = __webpack_exports__.XR;
2819
+ var __webpack_exports__TagThemeType = __webpack_exports__.gg;
2820
+ var __webpack_exports__ThemeEnum = __webpack_exports__.bY;
2821
+ var __webpack_exports__TriggerEnum = __webpack_exports__.os;
2822
+ var __webpack_exports__alignType = __webpack_exports__.WW;
2823
+ var __webpack_exports__arrayEqual = __webpack_exports__.h6;
2824
+ var __webpack_exports__bKMaskManager = __webpack_exports__.Lx;
2825
+ var __webpack_exports__bkPopIndexManager = __webpack_exports__.aR;
2826
+ var __webpack_exports__bkZIndexManager = __webpack_exports__.ue;
2827
+ var __webpack_exports__capitalize = __webpack_exports__.kC;
2828
+ var __webpack_exports__checkOverflow = __webpack_exports__.ao;
2829
+ var __webpack_exports__classes = __webpack_exports__.Sh;
2830
+ var __webpack_exports__clone = __webpack_exports__.d9;
2831
+ var __webpack_exports__debounce = __webpack_exports__.Ds;
2832
+ var __webpack_exports__dialogTypeUnion = __webpack_exports__.ou;
2833
+ var __webpack_exports__directionType = __webpack_exports__.zo;
2834
+ var __webpack_exports__elementsEqual = __webpack_exports__.cA;
2835
+ var __webpack_exports__filterProperty = __webpack_exports__.w$;
2836
+ var __webpack_exports__finiteOrDefault = __webpack_exports__.b_;
2837
+ var __webpack_exports__formItemKey = __webpack_exports__.xE;
2838
+ var __webpack_exports__formKey = __webpack_exports__.vh;
2839
+ var __webpack_exports__getPopContainerId = __webpack_exports__.ks;
2840
+ var __webpack_exports__hasOverflowEllipsis = __webpack_exports__.Hv;
2841
+ var __webpack_exports__isArray = __webpack_exports__.kJ;
2842
+ var __webpack_exports__isElement = __webpack_exports__.kK;
2843
+ var __webpack_exports__isEmpty = __webpack_exports__.xb;
2844
+ var __webpack_exports__isEmptyObj = __webpack_exports__.SI;
2845
+ var __webpack_exports__isFinite = __webpack_exports__.xV;
2846
+ var __webpack_exports__isNullOrUndef = __webpack_exports__.sS;
2847
+ var __webpack_exports__isObject = __webpack_exports__.Kn;
2848
+ var __webpack_exports__lineStyleType = __webpack_exports__.zW;
2849
+ var __webpack_exports__maybeShowTooltip = __webpack_exports__.oq;
2850
+ var __webpack_exports__merge = __webpack_exports__.TS;
2851
+ var __webpack_exports__mergeIf = __webpack_exports__.NG;
2852
+ var __webpack_exports__mergerFn = __webpack_exports__.WC;
2853
+ var __webpack_exports__mergerIfFn = __webpack_exports__.Zd;
2854
+ var __webpack_exports__noop = __webpack_exports__.ZT;
2855
+ var __webpack_exports__observerResize = __webpack_exports__.z3;
2856
+ var __webpack_exports__off = __webpack_exports__.S1;
2857
+ var __webpack_exports__on = __webpack_exports__.on;
2858
+ var __webpack_exports__placementType = __webpack_exports__.Tf;
2859
+ var __webpack_exports__random = __webpack_exports__.MX;
2860
+ var __webpack_exports__renderDirectiveType = __webpack_exports__.OB;
2861
+ var __webpack_exports__renderEmptyVNode = __webpack_exports__.Ay;
2862
+ var __webpack_exports__renderType = __webpack_exports__.wB;
2863
+ var __webpack_exports__resolveClassName = __webpack_exports__.h5;
2864
+ var __webpack_exports__scrollTop = __webpack_exports__.SM;
2865
+ var __webpack_exports__scrollbarWidth = __webpack_exports__.LF;
2866
+ var __webpack_exports__stringEnum = __webpack_exports__.b;
2867
+ var __webpack_exports__triggerType = __webpack_exports__._7;
2868
+ var __webpack_exports__useForm = __webpack_exports__.cI;
2869
+ var __webpack_exports__useFormItem = __webpack_exports__.A9;
2870
+ var __webpack_exports__valueOrDefault = __webpack_exports__.Be;
2871
+ var __webpack_exports__withInstall = __webpack_exports__.nz;
2872
+ var __webpack_exports__withInstallProps = __webpack_exports__.B;
2873
+ export { __webpack_exports__AlignEnum as AlignEnum, __webpack_exports__BKLAYERD_INDEX_EFAULT_VALUE as BKLAYERD_INDEX_EFAULT_VALUE, __webpack_exports__BKLAYERTYPE as BKLAYERTYPE, __webpack_exports__BKPopIndexManager as BKPopIndexManager, __webpack_exports__BKPopover as BKPopover, __webpack_exports__BkMaskManager as BkMaskManager, __webpack_exports__DialogTypeEnum as DialogTypeEnum, __webpack_exports__DirectionEnum as DirectionEnum, __webpack_exports__EMPTY_OBJ as EMPTY_OBJ, __webpack_exports__InputBehaviorEnum as InputBehaviorEnum, __webpack_exports__InputBehaviorType as InputBehaviorType, __webpack_exports__LineStyleEnum as LineStyleEnum, __webpack_exports__PlacementEnum as PlacementEnum, __webpack_exports__Placements as Placements, __webpack_exports__ProgressEnum as ProgressEnum, __webpack_exports__ProgressStrokeLineCapEnum as ProgressStrokeLineCapEnum, __webpack_exports__ProgressStrokeLineCapType as ProgressStrokeLineCapType, __webpack_exports__ProgressType as ProgressType, __webpack_exports__PropTypes as PropTypes, __webpack_exports__RenderDirectiveEnum as RenderDirectiveEnum, __webpack_exports__RenderType as RenderType, __webpack_exports__SelectedType as SelectedType, __webpack_exports__SelectedTypeEnum as SelectedTypeEnum, __webpack_exports__SizeEnum as SizeEnum, __webpack_exports__SwitcherThemeEnum as SwitcherThemeEnum, __webpack_exports__SwitcherThemeType as SwitcherThemeType, __webpack_exports__TagThemeEnum as TagThemeEnum, __webpack_exports__TagThemeType as TagThemeType, __webpack_exports__ThemeEnum as ThemeEnum, __webpack_exports__TriggerEnum as TriggerEnum, __webpack_exports__alignType as alignType, __webpack_exports__arrayEqual as arrayEqual, __webpack_exports__bKMaskManager as bKMaskManager, __webpack_exports__bkPopIndexManager as bkPopIndexManager, __webpack_exports__bkZIndexManager as bkZIndexManager, __webpack_exports__capitalize as capitalize, __webpack_exports__checkOverflow as checkOverflow, __webpack_exports__classes as classes, __webpack_exports__clone as clone, __webpack_exports__debounce as debounce, __webpack_exports__dialogTypeUnion as dialogTypeUnion, __webpack_exports__directionType as directionType, __webpack_exports__elementsEqual as elementsEqual, __webpack_exports__filterProperty as filterProperty, __webpack_exports__finiteOrDefault as finiteOrDefault, __webpack_exports__formItemKey as formItemKey, __webpack_exports__formKey as formKey, __webpack_exports__getPopContainerId as getPopContainerId, __webpack_exports__hasOverflowEllipsis as hasOverflowEllipsis, __webpack_exports__isArray as isArray, __webpack_exports__isElement as isElement, __webpack_exports__isEmpty as isEmpty, __webpack_exports__isEmptyObj as isEmptyObj, __webpack_exports__isFinite as isFinite, __webpack_exports__isNullOrUndef as isNullOrUndef, __webpack_exports__isObject as isObject, __webpack_exports__lineStyleType as lineStyleType, __webpack_exports__maybeShowTooltip as maybeShowTooltip, __webpack_exports__merge as merge, __webpack_exports__mergeIf as mergeIf, __webpack_exports__mergerFn as mergerFn, __webpack_exports__mergerIfFn as mergerIfFn, __webpack_exports__noop as noop, __webpack_exports__observerResize as observerResize, __webpack_exports__off as off, __webpack_exports__on as on, __webpack_exports__placementType as placementType, __webpack_exports__random as random, __webpack_exports__renderDirectiveType as renderDirectiveType, __webpack_exports__renderEmptyVNode as renderEmptyVNode, __webpack_exports__renderType as renderType, __webpack_exports__resolveClassName as resolveClassName, __webpack_exports__scrollTop as scrollTop, __webpack_exports__scrollbarWidth as scrollbarWidth, __webpack_exports__stringEnum as stringEnum, __webpack_exports__triggerType as triggerType, __webpack_exports__useForm as useForm, __webpack_exports__useFormItem as useFormItem, __webpack_exports__valueOrDefault as valueOrDefault, __webpack_exports__withInstall as withInstall, __webpack_exports__withInstallProps as withInstallProps };