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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/dist/index.cjs.js +25 -25
  2. package/dist/index.esm.js +30 -14
  3. package/dist/index.umd.js +44 -44
  4. package/lib/affix/index.js +391 -1
  5. package/lib/alert/index.js +287 -1
  6. package/lib/animate-number/index.js +219 -1
  7. package/lib/backtop/index.js +264 -1
  8. package/lib/badge/index.js +304 -1
  9. package/lib/breadcrumb/index.js +379 -1
  10. package/lib/button/index.js +403 -1
  11. package/lib/card/index.js +369 -1
  12. package/lib/cascader/index.js +2095 -2
  13. package/lib/checkbox/index.js +602 -1
  14. package/lib/code-diff/index.js +5548 -1
  15. package/lib/collapse/index.js +605 -1
  16. package/lib/collapse-transition/index.js +237 -1
  17. package/lib/color-picker/index.js +2735 -1
  18. package/lib/components.js +770 -1
  19. package/lib/config-provider/index.js +377 -1
  20. package/lib/container/index.js +408 -1
  21. package/lib/date-picker/index.js +5576 -1
  22. package/lib/dialog/index.js +1324 -2
  23. package/lib/directives/index.js +1386 -2
  24. package/lib/dist.index.js +179 -1
  25. package/lib/divider/index.js +237 -1
  26. package/lib/dropdown/index.js +455 -1
  27. package/lib/exception/index.js +435 -1
  28. package/lib/fixed-navbar/index.js +222 -1
  29. package/lib/form/index.js +1004 -1
  30. package/lib/hooks.js +133 -1
  31. package/lib/icon/angle-double-down-line.js +541 -1
  32. package/lib/icon/angle-double-left-line.js +541 -1
  33. package/lib/icon/angle-double-left.js +541 -1
  34. package/lib/icon/angle-double-right-line.js +541 -1
  35. package/lib/icon/angle-double-right.js +541 -1
  36. package/lib/icon/angle-double-up-line.js +541 -1
  37. package/lib/icon/angle-down-fill.js +541 -1
  38. package/lib/icon/angle-down-line.js +541 -1
  39. package/lib/icon/angle-down.js +541 -1
  40. package/lib/icon/angle-left.js +541 -1
  41. package/lib/icon/angle-right.js +541 -1
  42. package/lib/icon/angle-up-fill.js +541 -1
  43. package/lib/icon/angle-up.js +541 -1
  44. package/lib/icon/archive-fill.js +541 -1
  45. package/lib/icon/arrows-left.js +541 -1
  46. package/lib/icon/arrows-right.js +541 -1
  47. package/lib/icon/assistant.js +541 -1
  48. package/lib/icon/audio-fill.js +541 -1
  49. package/lib/icon/bk.js +541 -1
  50. package/lib/icon/circle.js +541 -1
  51. package/lib/icon/close-line.js +541 -1
  52. package/lib/icon/close.js +541 -1
  53. package/lib/icon/code.js +541 -1
  54. package/lib/icon/cog-shape.js +541 -1
  55. package/lib/icon/collapse-left.js +541 -1
  56. package/lib/icon/copy-shape.js +541 -1
  57. package/lib/icon/copy.js +541 -1
  58. package/lib/icon/data-shape.js +541 -1
  59. package/lib/icon/del.js +541 -1
  60. package/lib/icon/doc-fill.js +541 -1
  61. package/lib/icon/done.js +541 -1
  62. package/lib/icon/down-shape.js +541 -1
  63. package/lib/icon/down-small.js +541 -1
  64. package/lib/icon/edit-line.js +541 -1
  65. package/lib/icon/ellipsis.js +541 -1
  66. package/lib/icon/enlarge-line.js +541 -1
  67. package/lib/icon/error.js +541 -1
  68. package/lib/icon/excel-fill.js +541 -1
  69. package/lib/icon/exclamation-circle-shape.js +541 -1
  70. package/lib/icon/eye.js +541 -1
  71. package/lib/icon/filliscreen-line.js +541 -1
  72. package/lib/icon/fix-line.js +541 -1
  73. package/lib/icon/fix-shape.js +541 -1
  74. package/lib/icon/folder-open.js +541 -1
  75. package/lib/icon/folder-shape-open.js +541 -1
  76. package/lib/icon/folder-shape.js +541 -1
  77. package/lib/icon/folder.js +541 -1
  78. package/lib/icon/funnel.js +541 -1
  79. package/lib/icon/help-document-fill.js +541 -1
  80. package/lib/icon/help-fill.js +541 -1
  81. package/lib/icon/help.js +541 -1
  82. package/lib/icon/image-fill.js +563 -1
  83. package/lib/icon/img-error.js +563 -1
  84. package/lib/icon/img-placehoulder.js +563 -1
  85. package/lib/icon/index.js +2353 -1
  86. package/lib/icon/info-line.js +563 -1
  87. package/lib/icon/info.js +563 -1
  88. package/lib/icon/left-shape.js +563 -1
  89. package/lib/icon/left-turn-line.js +563 -1
  90. package/lib/icon/narrow-line.js +563 -1
  91. package/lib/icon/original.js +563 -1
  92. package/lib/icon/pdf-fill.js +563 -1
  93. package/lib/icon/play-shape.js +563 -1
  94. package/lib/icon/plus.js +563 -1
  95. package/lib/icon/ppt-fill.js +563 -1
  96. package/lib/icon/qq.js +563 -1
  97. package/lib/icon/right-shape.js +563 -1
  98. package/lib/icon/right-turn-line.js +563 -1
  99. package/lib/icon/search.js +563 -1
  100. package/lib/icon/share.js +563 -1
  101. package/lib/icon/spinner.js +563 -1
  102. package/lib/icon/success.js +563 -1
  103. package/lib/icon/switcher-loading.js +563 -1
  104. package/lib/icon/text-file.js +563 -1
  105. package/lib/icon/text-fill.js +563 -1
  106. package/lib/icon/transfer.js +563 -1
  107. package/lib/icon/tree-application-shape.js +563 -1
  108. package/lib/icon/unfull-screen.js +563 -1
  109. package/lib/icon/unvisible.js +563 -1
  110. package/lib/icon/up-shape.js +563 -1
  111. package/lib/icon/upload.js +563 -1
  112. package/lib/icon/video-fill.js +563 -1
  113. package/lib/icon/warn.js +563 -1
  114. package/lib/icon/weixin-pro.js +563 -1
  115. package/lib/icon/weixin.js +563 -1
  116. package/lib/image/index.js +681 -1
  117. package/lib/index.js +195 -1
  118. package/lib/info-box/index.js +1514 -2
  119. package/lib/input/index.js +1038 -1
  120. package/lib/link/index.js +232 -1
  121. package/lib/loading/index.js +443 -1
  122. package/lib/locale/index.js +489 -1
  123. package/lib/menu/index.js +793 -1
  124. package/lib/message/index.js +1842 -2
  125. package/lib/message/messageConstructor.d.ts +1 -1
  126. package/lib/modal/index.js +407 -1
  127. package/lib/navigation/index.js +439 -1
  128. package/lib/notify/index.js +470 -1
  129. package/lib/overflow-title/index.js +547 -1
  130. package/lib/pagination/index.js +974 -1
  131. package/lib/plugin-popover/index.js +4121 -1
  132. package/lib/plugins/index.js +130 -1
  133. package/lib/pop-confirm/index.js +367 -1
  134. package/lib/popover/content.d.ts +8 -0
  135. package/lib/popover/index.d.ts +12 -0
  136. package/lib/popover/index.js +4127 -1
  137. package/lib/popover/popover.d.ts +7 -0
  138. package/lib/popover/props.d.ts +3 -0
  139. package/lib/popover2/index.js +171 -1
  140. package/lib/preset.js +164 -1
  141. package/lib/process/index.js +1146 -2
  142. package/lib/progress/index.js +495 -1
  143. package/lib/radio/index.js +693 -1
  144. package/lib/rate/index.js +406 -1
  145. package/lib/resize-layout/index.js +499 -1
  146. package/lib/search-select/index.js +3024 -2
  147. package/lib/select/index.d.ts +25 -3
  148. package/lib/select/index.js +2599 -2
  149. package/lib/select/select.d.ts +11 -1
  150. package/lib/shared/index.js +2832 -1
  151. package/lib/sideslider/index.js +1056 -2
  152. package/lib/slider/index.js +1683 -2
  153. package/lib/steps/index.js +1215 -2
  154. package/lib/swiper/index.js +404 -1
  155. package/lib/switcher/index.js +335 -1
  156. package/lib/tab/index.js +935 -1
  157. package/lib/table/index.js +6588 -1
  158. package/lib/table-column/index.js +768 -1
  159. package/lib/tag/index.js +309 -1
  160. package/lib/tag-input/index.d.ts +9 -0
  161. package/lib/tag-input/index.js +1758 -1
  162. package/lib/tag-input/tag-input.d.ts +20 -0
  163. package/lib/tag-input/tag-props.d.ts +3 -0
  164. package/lib/time-picker/index.js +142 -1
  165. package/lib/timeline/index.js +310 -1
  166. package/lib/transfer/index.js +767 -1
  167. package/lib/tree/index.js +2664 -1
  168. package/lib/upload/index.js +3257 -2
  169. package/lib/virtual-render/index.js +806 -1
  170. package/package.json +1 -1
  171. package/lib/cascader/index.js.LICENSE.txt +0 -1
  172. package/lib/dialog/index.js.LICENSE.txt +0 -1
  173. package/lib/directives/index.js.LICENSE.txt +0 -14
  174. package/lib/info-box/index.js.LICENSE.txt +0 -1
  175. package/lib/message/index.js.LICENSE.txt +0 -6
  176. package/lib/process/index.js.LICENSE.txt +0 -1
  177. package/lib/search-select/index.js.LICENSE.txt +0 -1
  178. package/lib/select/index.js.LICENSE.txt +0 -1
  179. package/lib/sideslider/index.js.LICENSE.txt +0 -1
  180. package/lib/slider/index.js.LICENSE.txt +0 -1
  181. package/lib/steps/index.js.LICENSE.txt +0 -1
  182. package/lib/upload/index.js.LICENSE.txt +0 -1
@@ -1,2 +1,1386 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../overflow-title"),require("vue"),require("../shared"),require("@popperjs/core"),require("../plugin-popover"));else if("function"==typeof define&&define.amd)define(["../overflow-title","vue","../shared","@popperjs/core","../plugin-popover"],t);else{var n="object"==typeof exports?t(require("../overflow-title"),require("vue"),require("../shared"),require("@popperjs/core"),require("../plugin-popover")):t(e["../overflow-title"],e.vue,e["../shared"],e["@popperjs/core"],e["../plugin-popover"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r,o)=>(()=>{var i={2439:(e,t,n)=>{e.exports=n(2527)},7430:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},6377:e=>{var t,n,r,o,i,a,u,c,l,s,d,f,p,v,m,y=!1;function b(){if(!y){y=!0;var e=navigator.userAgent,b=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),h=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),s=/Android/i.exec(e),v=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),d=!!/Win64/.exec(e),b){(t=b[1]?parseFloat(b[1]):b[5]?parseFloat(b[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var w=/(?:Trident\/(\d+.\d+))/.exec(e);a=w?parseFloat(w[1])+4:t,n=b[2]?parseFloat(b[2]):NaN,r=b[3]?parseFloat(b[3]):NaN,(o=b[4]?parseFloat(b[4]):NaN)?(b=/(?:Chrome\/(\d+\.\d+))/.exec(e),i=b&&b[1]?parseFloat(b[1]):NaN):i=NaN}else t=n=r=i=o=NaN;if(h){if(h[1]){var g=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);u=!g||parseFloat(g[1].replace("_","."))}else u=!1;c=!!h[2],l=!!h[3]}else u=c=l=!1}}var h={ie:function(){return b()||t},ieCompatibilityMode:function(){return b()||a>t},ie64:function(){return h.ie()&&d},firefox:function(){return b()||n},opera:function(){return b()||r},webkit:function(){return b()||o},safari:function(){return h.webkit()},chrome:function(){return b()||i},windows:function(){return b()||c},osx:function(){return b()||u},linux:function(){return b()||l},iphone:function(){return b()||f},mobile:function(){return b()||f||p||s||m},nativeApp:function(){return b()||v},android:function(){return b()||s},ipad:function(){return b()||p}};e.exports=h},3541:(e,t,n)=>{"use strict";var r,o=n(7430);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"==typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},2527:(e,t,n)=>{"use strict";var r=n(6377),o=n(3541);function i(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}i.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=i},1040:t=>{"use strict";t.exports=e},9706:e=>{"use strict";e.exports=o},4212:e=>{"use strict";e.exports=n},5798:e=>{"use strict";e.exports=r},748:e=>{"use strict";e.exports=t}},a={};function u(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e](n,n.exports,u),n.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{"use strict";u.r(c),u.d(c,{bkEllipsis:()=>N,bkEllipsisInstance:()=>I,bkTooltips:()=>S,clickoutside:()=>p,mousewheel:()=>o,overflowTitle:()=>e.overflowTitle});var e=u(1040),t=u(2439),n=u.n(t),r="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;const o={beforeMount:function(e,t){var o,i;console.error(e,t),o=e,i=t.value,(null==o?void 0:o.addEventListener)&&o.addEventListener(r?"DOMMouseScroll":"mousewheel",(function(e){var t=n()(e);null==i||i.apply(this,[e,t])}))}};function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l,s=new Map;function d(e,t){var n,r=[];return Array.isArray(t.arg)?r=t.arg:(n=t.arg,"undefined"!=typeof Element&&n instanceof Element&&r.push(t.arg)),function(n,o){var i=t.instance.popperRef,a=n.target,u=null==o?void 0:o.target,c=!t||!t.instance,l=!a||!u,s=e.contains(a)||e.contains(u),d=e===a,f=r.length&&r.some((function(e){return null==e?void 0:e.contains(a)}))||r.length&&r.includes(u),p=i&&(i.contains(a)||i.contains(u));c||l||s||d||f||p||t.value(n,o)}}document.addEventListener("mousedown",(function(e){return l=e})),document.addEventListener("mouseup",(function(e){var t,n=i(s.values());try{for(n.s();!(t=n.n()).done;){var r,o=i(t.value);try{for(o.s();!(r=o.n()).done;)(0,r.value.documentHandler)(e,l)}catch(e){o.e(e)}finally{o.f()}}}catch(e){n.e(e)}finally{n.f()}}));var f={beforeMount:function(e,t){s.has(e)||s.set(e,[]),s.get(e).push({documentHandler:d(e,t),bindingFn:t.value})},updated:function(e,t){s.has(e)||s.set(e,[]);var n=s.get(e),r=n.findIndex((function(e){return e.bindingFn===t.oldValue})),o={documentHandler:d(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted:function(e){s.delete(e)},install:function(e){e.directive("bkTooltips",f)}};const p=f;function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e){return function(e){if(Array.isArray(e))return v(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 v(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)?v(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.")}()}function y(e){return y="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},y(e)}var b=u(748),h=u(4212),w=u(5798),g=new Map;function x(e){var t={arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,extCls:"",sameWidth:!1,delay:0,onShow:function(){},onHide:function(){}};return"object"===y(e.value)?Object.assign(t,e.value):t.content=e.value,t}function O(e,t){if("string"==typeof e)t.innerText=e;else{var n=document.createElement("div"),r=(0,b.h)(e);(0,b.render)(r,n),t.innerHTML=n.innerHTML}}function T(){var e=document.createElement("div");return e.className=(0,h.resolveClassName)("popper-arrow"),e.setAttribute("data-popper-arrow",""),e}function E(e){var t=g.get(e),n=t.popper,r=t.opts,o=r.disabled,i=r.content,a=r.arrow,u=r.onShow;if(!o){if(O(i,n),a){var c=T();n.appendChild(c)}document.body.appendChild(n);var l=function(e,t){var n=g.get(e).opts,r=n.placement,o=n.distance,i=n.showOnInit,a=n.sameWidth,u=(0,w.createPopper)(e,t,{placement:r,modifiers:[{name:"offset",options:{offset:[0,o]}}].concat(m(a?[{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width="".concat(t.rects.reference.width,"px")},effect:function(e){var t=e.state;t.elements.popper.style.overflowWrap="break-word",t.elements.popper.style.width="".concat(t.elements.reference.offsetWidth,"px")}}]:[]))});return i&&E(e),u}(e,n);u(),n.setAttribute("data-show",""),l.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(m(e.modifiers),[{name:"eventListeners",enabled:!0}])})})),l.forceUpdate(),g.get(e).popperInstance=l}}function M(e){if(g.get(e)){var t=g.get(e),n=t.popper,r=t.popperInstance,o=t.opts.onHide;n&&document.body.contains(n)&&(n.removeAttribute("data-show"),null==r||r.destroy(),document.body.removeChild(n),o())}}const S={beforeMount:function(e,t){var n=x(t),r=n.trigger,o=function(e){var t=e.content,n=e.arrow,r=e.theme,o=e.extCls,i="light"===r,a=h.bkZIndexManager.getPopperIndex(),u=document.createElement("div");if(u.className="".concat((0,h.resolveClassName)("popper")," ").concat(i?"light":"dark"," ").concat(o),u.innerText=t,u.style.zIndex=String(a),O(t,u),n){var c=T();u.appendChild(c)}return u}(n),i=null;if("hover"===r){var a=null;e.addEventListener("mouseenter",(function(){i=setTimeout((function(){E(e),clearTimeout(a),clearTimeout(i)}),n.delay)})),o.addEventListener("mouseenter",(function(){clearTimeout(a)})),e.addEventListener("mouseleave",(function(){clearTimeout(i),a=setTimeout((function(){M(e)}),100)})),e.addEventListener("click",(function(){M(e)})),o.addEventListener("mouseleave",(function(){clearTimeout(i),a=setTimeout((function(){M(e)}),100)}))}else"click"===r&&document.body.addEventListener("click",(function(t){e.contains(t.target)&&!o.hasAttribute("data-show")?i=setTimeout((function(){E(e),clearTimeout(i)}),n.delay):o.hasAttribute("data-show")&&M(e)}));g.set(e,{opts:n,popper:o,popperInstance:null})},updated:function(e,t){g.get(e).opts=x(t)},unmounted:function(e){M(e),g.delete(e)}};var A=u(9706),j=u.n(A),L=function(e,t){var n={content:"",target:e};return"object"===y(t)?(Object.assign(n,t),Object.prototype.hasOwnProperty.call(t,"popoverOption")&&Object.assign(n,t.popoverOption)):n.content=t,n},I=function(e,t){var n=null,r=null,o=null;if(!L(e,t).disabled&&!n){var i=function(){o&&clearTimeout(o),o=null},a=function(){r&&clearTimeout(r),null==n||n.hide(),null==n||n.close(),n=null},u=function(){a(),r&&clearTimeout(r),r=setTimeout((function(){var r=L(e,t);r.isShow=!0,r.content=r.content||e.innerHTML,r.allowHtml=!0,Object.assign(r,{onContentMouseenter:i,onContentMouseleave:a}),n=j()(r)}),300)},c=function(){o=setTimeout((function(){r&&clearTimeout(r),null==n||n.hide(),null==n||n.close(),n=null}),120)};return e.addEventListener("mouseenter",u),e.addEventListener("mouseleave",c),{destroyInstance:function(t){var n,r;c(),null===(n=null!=t?t:e)||void 0===n||n.removeEventListener("mouseenter",u),null===(r=null!=t?t:e)||void 0===r||r.removeEventListener("mouseleave",c)},instance:n}}};const N={mounted:function(e,t){I(e,t)}}})(),c})()));
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("../overflow-title"), require("vue"), require("../shared"), require("@popperjs/core"), require("../plugin-popover"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["../overflow-title", "vue", "../shared", "@popperjs/core", "../plugin-popover"], factory);
6
+ else {
7
+ var a = typeof exports === 'object' ? factory(require("../overflow-title"), require("vue"), require("../shared"), require("@popperjs/core"), require("../plugin-popover")) : factory(root["../overflow-title"], root["vue"], root["../shared"], root["@popperjs/core"], root["../plugin-popover"]);
8
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
+ }
10
+ })(self, (__WEBPACK_EXTERNAL_MODULE__1040__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__5798__, __WEBPACK_EXTERNAL_MODULE__9706__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ var __webpack_modules__ = ({
13
+
14
+ /***/ 2439:
15
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
16
+
17
+ module.exports = __webpack_require__(2527);
18
+
19
+
20
+ /***/ }),
21
+
22
+ /***/ 7430:
23
+ /***/ ((module) => {
24
+
25
+ "use strict";
26
+ /**
27
+ * Copyright (c) 2015, Facebook, Inc.
28
+ * All rights reserved.
29
+ *
30
+ * This source code is licensed under the BSD-style license found in the
31
+ * LICENSE file in the root directory of this source tree. An additional grant
32
+ * of patent rights can be found in the PATENTS file in the same directory.
33
+ *
34
+ * @providesModule ExecutionEnvironment
35
+ */
36
+
37
+ /*jslint evil: true */
38
+
39
+
40
+
41
+ var canUseDOM = !!(
42
+ typeof window !== 'undefined' &&
43
+ window.document &&
44
+ window.document.createElement
45
+ );
46
+
47
+ /**
48
+ * Simple, lightweight module assisting with the detection and context of
49
+ * Worker. Helps avoid circular dependencies and allows code to reason about
50
+ * whether or not they are in a Worker, even if they never include the main
51
+ * `ReactWorker` dependency.
52
+ */
53
+ var ExecutionEnvironment = {
54
+
55
+ canUseDOM: canUseDOM,
56
+
57
+ canUseWorkers: typeof Worker !== 'undefined',
58
+
59
+ canUseEventListeners:
60
+ canUseDOM && !!(window.addEventListener || window.attachEvent),
61
+
62
+ canUseViewport: canUseDOM && !!window.screen,
63
+
64
+ isInWorker: !canUseDOM // For now, this is true - might change in the future.
65
+
66
+ };
67
+
68
+ module.exports = ExecutionEnvironment;
69
+
70
+
71
+ /***/ }),
72
+
73
+ /***/ 6377:
74
+ /***/ ((module) => {
75
+
76
+ /**
77
+ * Copyright 2004-present Facebook. All Rights Reserved.
78
+ *
79
+ * @providesModule UserAgent_DEPRECATED
80
+ */
81
+
82
+ /**
83
+ * Provides entirely client-side User Agent and OS detection. You should prefer
84
+ * the non-deprecated UserAgent module when possible, which exposes our
85
+ * authoritative server-side PHP-based detection to the client.
86
+ *
87
+ * Usage is straightforward:
88
+ *
89
+ * if (UserAgent_DEPRECATED.ie()) {
90
+ * // IE
91
+ * }
92
+ *
93
+ * You can also do version checks:
94
+ *
95
+ * if (UserAgent_DEPRECATED.ie() >= 7) {
96
+ * // IE7 or better
97
+ * }
98
+ *
99
+ * The browser functions will return NaN if the browser does not match, so
100
+ * you can also do version compares the other way:
101
+ *
102
+ * if (UserAgent_DEPRECATED.ie() < 7) {
103
+ * // IE6 or worse
104
+ * }
105
+ *
106
+ * Note that the version is a float and may include a minor version number,
107
+ * so you should always use range operators to perform comparisons, not
108
+ * strict equality.
109
+ *
110
+ * **Note:** You should **strongly** prefer capability detection to browser
111
+ * version detection where it's reasonable:
112
+ *
113
+ * http://www.quirksmode.org/js/support.html
114
+ *
115
+ * Further, we have a large number of mature wrapper functions and classes
116
+ * which abstract away many browser irregularities. Check the documentation,
117
+ * grep for things, or ask on javascript@lists.facebook.com before writing yet
118
+ * another copy of "event || window.event".
119
+ *
120
+ */
121
+
122
+ var _populated = false;
123
+
124
+ // Browsers
125
+ var _ie, _firefox, _opera, _webkit, _chrome;
126
+
127
+ // Actual IE browser for compatibility mode
128
+ var _ie_real_version;
129
+
130
+ // Platforms
131
+ var _osx, _windows, _linux, _android;
132
+
133
+ // Architectures
134
+ var _win64;
135
+
136
+ // Devices
137
+ var _iphone, _ipad, _native;
138
+
139
+ var _mobile;
140
+
141
+ function _populate() {
142
+ if (_populated) {
143
+ return;
144
+ }
145
+
146
+ _populated = true;
147
+
148
+ // To work around buggy JS libraries that can't handle multi-digit
149
+ // version numbers, Opera 10's user agent string claims it's Opera
150
+ // 9, then later includes a Version/X.Y field:
151
+ //
152
+ // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
153
+ var uas = navigator.userAgent;
154
+ var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas);
155
+ var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
156
+
157
+ _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
158
+ _ipad = /\b(iP[ao]d)/.exec(uas);
159
+ _android = /Android/i.exec(uas);
160
+ _native = /FBAN\/\w+;/i.exec(uas);
161
+ _mobile = /Mobile/i.exec(uas);
162
+
163
+ // Note that the IE team blog would have you believe you should be checking
164
+ // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
165
+ // from either x64 or ia64; so ultimately, you should just check for Win64
166
+ // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
167
+ // Windows will send 'WOW64' instead.
168
+ _win64 = !!(/Win64/.exec(uas));
169
+
170
+ if (agent) {
171
+ _ie = agent[1] ? parseFloat(agent[1]) : (
172
+ agent[5] ? parseFloat(agent[5]) : NaN);
173
+ // IE compatibility mode
174
+ if (_ie && document && document.documentMode) {
175
+ _ie = document.documentMode;
176
+ }
177
+ // grab the "true" ie version from the trident token if available
178
+ var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
179
+ _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
180
+
181
+ _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
182
+ _opera = agent[3] ? parseFloat(agent[3]) : NaN;
183
+ _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
184
+ if (_webkit) {
185
+ // We do not add the regexp to the above test, because it will always
186
+ // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
187
+ // the userAgent string.
188
+ agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
189
+ _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
190
+ } else {
191
+ _chrome = NaN;
192
+ }
193
+ } else {
194
+ _ie = _firefox = _opera = _chrome = _webkit = NaN;
195
+ }
196
+
197
+ if (os) {
198
+ if (os[1]) {
199
+ // Detect OS X version. If no version number matches, set _osx to true.
200
+ // Version examples: 10, 10_6_1, 10.7
201
+ // Parses version number as a float, taking only first two sets of
202
+ // digits. If only one set of digits is found, returns just the major
203
+ // version number.
204
+ var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
205
+
206
+ _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
207
+ } else {
208
+ _osx = false;
209
+ }
210
+ _windows = !!os[2];
211
+ _linux = !!os[3];
212
+ } else {
213
+ _osx = _windows = _linux = false;
214
+ }
215
+ }
216
+
217
+ var UserAgent_DEPRECATED = {
218
+
219
+ /**
220
+ * Check if the UA is Internet Explorer.
221
+ *
222
+ *
223
+ * @return float|NaN Version number (if match) or NaN.
224
+ */
225
+ ie: function() {
226
+ return _populate() || _ie;
227
+ },
228
+
229
+ /**
230
+ * Check if we're in Internet Explorer compatibility mode.
231
+ *
232
+ * @return bool true if in compatibility mode, false if
233
+ * not compatibility mode or not ie
234
+ */
235
+ ieCompatibilityMode: function() {
236
+ return _populate() || (_ie_real_version > _ie);
237
+ },
238
+
239
+
240
+ /**
241
+ * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
242
+ * only need this because Skype can't handle 64-bit IE yet. We need to remove
243
+ * this when we don't need it -- tracked by #601957.
244
+ */
245
+ ie64: function() {
246
+ return UserAgent_DEPRECATED.ie() && _win64;
247
+ },
248
+
249
+ /**
250
+ * Check if the UA is Firefox.
251
+ *
252
+ *
253
+ * @return float|NaN Version number (if match) or NaN.
254
+ */
255
+ firefox: function() {
256
+ return _populate() || _firefox;
257
+ },
258
+
259
+
260
+ /**
261
+ * Check if the UA is Opera.
262
+ *
263
+ *
264
+ * @return float|NaN Version number (if match) or NaN.
265
+ */
266
+ opera: function() {
267
+ return _populate() || _opera;
268
+ },
269
+
270
+
271
+ /**
272
+ * Check if the UA is WebKit.
273
+ *
274
+ *
275
+ * @return float|NaN Version number (if match) or NaN.
276
+ */
277
+ webkit: function() {
278
+ return _populate() || _webkit;
279
+ },
280
+
281
+ /**
282
+ * For Push
283
+ * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
284
+ */
285
+ safari: function() {
286
+ return UserAgent_DEPRECATED.webkit();
287
+ },
288
+
289
+ /**
290
+ * Check if the UA is a Chrome browser.
291
+ *
292
+ *
293
+ * @return float|NaN Version number (if match) or NaN.
294
+ */
295
+ chrome : function() {
296
+ return _populate() || _chrome;
297
+ },
298
+
299
+
300
+ /**
301
+ * Check if the user is running Windows.
302
+ *
303
+ * @return bool `true' if the user's OS is Windows.
304
+ */
305
+ windows: function() {
306
+ return _populate() || _windows;
307
+ },
308
+
309
+
310
+ /**
311
+ * Check if the user is running Mac OS X.
312
+ *
313
+ * @return float|bool Returns a float if a version number is detected,
314
+ * otherwise true/false.
315
+ */
316
+ osx: function() {
317
+ return _populate() || _osx;
318
+ },
319
+
320
+ /**
321
+ * Check if the user is running Linux.
322
+ *
323
+ * @return bool `true' if the user's OS is some flavor of Linux.
324
+ */
325
+ linux: function() {
326
+ return _populate() || _linux;
327
+ },
328
+
329
+ /**
330
+ * Check if the user is running on an iPhone or iPod platform.
331
+ *
332
+ * @return bool `true' if the user is running some flavor of the
333
+ * iPhone OS.
334
+ */
335
+ iphone: function() {
336
+ return _populate() || _iphone;
337
+ },
338
+
339
+ mobile: function() {
340
+ return _populate() || (_iphone || _ipad || _android || _mobile);
341
+ },
342
+
343
+ nativeApp: function() {
344
+ // webviews inside of the native apps
345
+ return _populate() || _native;
346
+ },
347
+
348
+ android: function() {
349
+ return _populate() || _android;
350
+ },
351
+
352
+ ipad: function() {
353
+ return _populate() || _ipad;
354
+ }
355
+ };
356
+
357
+ module.exports = UserAgent_DEPRECATED;
358
+
359
+
360
+ /***/ }),
361
+
362
+ /***/ 3541:
363
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
364
+
365
+ "use strict";
366
+ /**
367
+ * Copyright 2013-2015, Facebook, Inc.
368
+ * All rights reserved.
369
+ *
370
+ * This source code is licensed under the BSD-style license found in the
371
+ * LICENSE file in the root directory of this source tree. An additional grant
372
+ * of patent rights can be found in the PATENTS file in the same directory.
373
+ *
374
+ * @providesModule isEventSupported
375
+ */
376
+
377
+
378
+
379
+ var ExecutionEnvironment = __webpack_require__(7430);
380
+
381
+ var useHasFeature;
382
+ if (ExecutionEnvironment.canUseDOM) {
383
+ useHasFeature =
384
+ document.implementation &&
385
+ document.implementation.hasFeature &&
386
+ // always returns true in newer browsers as per the standard.
387
+ // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
388
+ document.implementation.hasFeature('', '') !== true;
389
+ }
390
+
391
+ /**
392
+ * Checks if an event is supported in the current execution environment.
393
+ *
394
+ * NOTE: This will not work correctly for non-generic events such as `change`,
395
+ * `reset`, `load`, `error`, and `select`.
396
+ *
397
+ * Borrows from Modernizr.
398
+ *
399
+ * @param {string} eventNameSuffix Event name, e.g. "click".
400
+ * @param {?boolean} capture Check if the capture phase is supported.
401
+ * @return {boolean} True if the event is supported.
402
+ * @internal
403
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
404
+ */
405
+ function isEventSupported(eventNameSuffix, capture) {
406
+ if (!ExecutionEnvironment.canUseDOM ||
407
+ capture && !('addEventListener' in document)) {
408
+ return false;
409
+ }
410
+
411
+ var eventName = 'on' + eventNameSuffix;
412
+ var isSupported = eventName in document;
413
+
414
+ if (!isSupported) {
415
+ var element = document.createElement('div');
416
+ element.setAttribute(eventName, 'return;');
417
+ isSupported = typeof element[eventName] === 'function';
418
+ }
419
+
420
+ if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
421
+ // This is the only way to test support for the `wheel` event in IE9+.
422
+ isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
423
+ }
424
+
425
+ return isSupported;
426
+ }
427
+
428
+ module.exports = isEventSupported;
429
+
430
+
431
+ /***/ }),
432
+
433
+ /***/ 2527:
434
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
435
+
436
+ "use strict";
437
+ /**
438
+ * Copyright (c) 2015, Facebook, Inc.
439
+ * All rights reserved.
440
+ *
441
+ * This source code is licensed under the BSD-style license found in the
442
+ * LICENSE file in the root directory of this source tree. An additional grant
443
+ * of patent rights can be found in the PATENTS file in the same directory.
444
+ *
445
+ * @providesModule normalizeWheel
446
+ * @typechecks
447
+ */
448
+
449
+
450
+
451
+ var UserAgent_DEPRECATED = __webpack_require__(6377);
452
+
453
+ var isEventSupported = __webpack_require__(3541);
454
+
455
+
456
+ // Reasonable defaults
457
+ var PIXEL_STEP = 10;
458
+ var LINE_HEIGHT = 40;
459
+ var PAGE_HEIGHT = 800;
460
+
461
+ /**
462
+ * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
463
+ * complicated, thus this doc is long and (hopefully) detailed enough to answer
464
+ * your questions.
465
+ *
466
+ * If you need to react to the mouse wheel in a predictable way, this code is
467
+ * like your bestest friend. * hugs *
468
+ *
469
+ * As of today, there are 4 DOM event types you can listen to:
470
+ *
471
+ * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
472
+ * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
473
+ * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
474
+ * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
475
+ *
476
+ * So what to do? The is the best:
477
+ *
478
+ * normalizeWheel.getEventType();
479
+ *
480
+ * In your event callback, use this code to get sane interpretation of the
481
+ * deltas. This code will return an object with properties:
482
+ *
483
+ * spinX -- normalized spin speed (use for zoom) - x plane
484
+ * spinY -- " - y plane
485
+ * pixelX -- normalized distance (to pixels) - x plane
486
+ * pixelY -- " - y plane
487
+ *
488
+ * Wheel values are provided by the browser assuming you are using the wheel to
489
+ * scroll a web page by a number of lines or pixels (or pages). Values can vary
490
+ * significantly on different platforms and browsers, forgetting that you can
491
+ * scroll at different speeds. Some devices (like trackpads) emit more events
492
+ * at smaller increments with fine granularity, and some emit massive jumps with
493
+ * linear speed or acceleration.
494
+ *
495
+ * This code does its best to normalize the deltas for you:
496
+ *
497
+ * - spin is trying to normalize how far the wheel was spun (or trackpad
498
+ * dragged). This is super useful for zoom support where you want to
499
+ * throw away the chunky scroll steps on the PC and make those equal to
500
+ * the slow and smooth tiny steps on the Mac. Key data: This code tries to
501
+ * resolve a single slow step on a wheel to 1.
502
+ *
503
+ * - pixel is normalizing the desired scroll delta in pixel units. You'll
504
+ * get the crazy differences between browsers, but at least it'll be in
505
+ * pixels!
506
+ *
507
+ * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
508
+ * should translate to positive value zooming IN, negative zooming OUT.
509
+ * This matches the newer 'wheel' event.
510
+ *
511
+ * Why are there spinX, spinY (or pixels)?
512
+ *
513
+ * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
514
+ * with a mouse. It results in side-scrolling in the browser by default.
515
+ *
516
+ * - spinY is what you expect -- it's the classic axis of a mouse wheel.
517
+ *
518
+ * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
519
+ * probably is by browsers in conjunction with fancy 3D controllers .. but
520
+ * you know.
521
+ *
522
+ * Implementation info:
523
+ *
524
+ * Examples of 'wheel' event if you scroll slowly (down) by one step with an
525
+ * average mouse:
526
+ *
527
+ * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
528
+ * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
529
+ * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
530
+ * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
531
+ * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
532
+ *
533
+ * On the trackpad:
534
+ *
535
+ * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
536
+ * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
537
+ *
538
+ * On other/older browsers.. it's more complicated as there can be multiple and
539
+ * also missing delta values.
540
+ *
541
+ * The 'wheel' event is more standard:
542
+ *
543
+ * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
544
+ *
545
+ * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
546
+ * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
547
+ * backward compatibility with older events. Those other values help us
548
+ * better normalize spin speed. Example of what the browsers provide:
549
+ *
550
+ * | event.wheelDelta | event.detail
551
+ * ------------------+------------------+--------------
552
+ * Safari v5/OS X | -120 | 0
553
+ * Safari v5/Win7 | -120 | 0
554
+ * Chrome v17/OS X | -120 | 0
555
+ * Chrome v17/Win7 | -120 | 0
556
+ * IE9/Win7 | -120 | undefined
557
+ * Firefox v4/OS X | undefined | 1
558
+ * Firefox v4/Win7 | undefined | 3
559
+ *
560
+ */
561
+ function normalizeWheel(/*object*/ event) /*object*/ {
562
+ var sX = 0, sY = 0, // spinX, spinY
563
+ pX = 0, pY = 0; // pixelX, pixelY
564
+
565
+ // Legacy
566
+ if ('detail' in event) { sY = event.detail; }
567
+ if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
568
+ if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
569
+ if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
570
+
571
+ // side scrolling on FF with DOMMouseScroll
572
+ if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
573
+ sX = sY;
574
+ sY = 0;
575
+ }
576
+
577
+ pX = sX * PIXEL_STEP;
578
+ pY = sY * PIXEL_STEP;
579
+
580
+ if ('deltaY' in event) { pY = event.deltaY; }
581
+ if ('deltaX' in event) { pX = event.deltaX; }
582
+
583
+ if ((pX || pY) && event.deltaMode) {
584
+ if (event.deltaMode == 1) { // delta in LINE units
585
+ pX *= LINE_HEIGHT;
586
+ pY *= LINE_HEIGHT;
587
+ } else { // delta in PAGE units
588
+ pX *= PAGE_HEIGHT;
589
+ pY *= PAGE_HEIGHT;
590
+ }
591
+ }
592
+
593
+ // Fall-back if spin cannot be determined
594
+ if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
595
+ if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
596
+
597
+ return { spinX : sX,
598
+ spinY : sY,
599
+ pixelX : pX,
600
+ pixelY : pY };
601
+ }
602
+
603
+
604
+ /**
605
+ * The best combination if you prefer spinX + spinY normalization. It favors
606
+ * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
607
+ * 'wheel' event, making spin speed determination impossible.
608
+ */
609
+ normalizeWheel.getEventType = function() /*string*/ {
610
+ return (UserAgent_DEPRECATED.firefox())
611
+ ? 'DOMMouseScroll'
612
+ : (isEventSupported('wheel'))
613
+ ? 'wheel'
614
+ : 'mousewheel';
615
+ };
616
+
617
+ module.exports = normalizeWheel;
618
+
619
+
620
+ /***/ }),
621
+
622
+ /***/ 1040:
623
+ /***/ ((module) => {
624
+
625
+ "use strict";
626
+ module.exports = __WEBPACK_EXTERNAL_MODULE__1040__;
627
+
628
+ /***/ }),
629
+
630
+ /***/ 9706:
631
+ /***/ ((module) => {
632
+
633
+ "use strict";
634
+ module.exports = __WEBPACK_EXTERNAL_MODULE__9706__;
635
+
636
+ /***/ }),
637
+
638
+ /***/ 4212:
639
+ /***/ ((module) => {
640
+
641
+ "use strict";
642
+ module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
643
+
644
+ /***/ }),
645
+
646
+ /***/ 5798:
647
+ /***/ ((module) => {
648
+
649
+ "use strict";
650
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5798__;
651
+
652
+ /***/ }),
653
+
654
+ /***/ 748:
655
+ /***/ ((module) => {
656
+
657
+ "use strict";
658
+ module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
659
+
660
+ /***/ })
661
+
662
+ /******/ });
663
+ /************************************************************************/
664
+ /******/ // The module cache
665
+ /******/ var __webpack_module_cache__ = {};
666
+ /******/
667
+ /******/ // The require function
668
+ /******/ function __webpack_require__(moduleId) {
669
+ /******/ // Check if module is in cache
670
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
671
+ /******/ if (cachedModule !== undefined) {
672
+ /******/ return cachedModule.exports;
673
+ /******/ }
674
+ /******/ // Create a new module (and put it into the cache)
675
+ /******/ var module = __webpack_module_cache__[moduleId] = {
676
+ /******/ // no module.id needed
677
+ /******/ // no module.loaded needed
678
+ /******/ exports: {}
679
+ /******/ };
680
+ /******/
681
+ /******/ // Execute the module function
682
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
683
+ /******/
684
+ /******/ // Return the exports of the module
685
+ /******/ return module.exports;
686
+ /******/ }
687
+ /******/
688
+ /************************************************************************/
689
+ /******/ /* webpack/runtime/compat get default export */
690
+ /******/ (() => {
691
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
692
+ /******/ __webpack_require__.n = (module) => {
693
+ /******/ var getter = module && module.__esModule ?
694
+ /******/ () => (module['default']) :
695
+ /******/ () => (module);
696
+ /******/ __webpack_require__.d(getter, { a: getter });
697
+ /******/ return getter;
698
+ /******/ };
699
+ /******/ })();
700
+ /******/
701
+ /******/ /* webpack/runtime/define property getters */
702
+ /******/ (() => {
703
+ /******/ // define getter functions for harmony exports
704
+ /******/ __webpack_require__.d = (exports, definition) => {
705
+ /******/ for(var key in definition) {
706
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
707
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
708
+ /******/ }
709
+ /******/ }
710
+ /******/ };
711
+ /******/ })();
712
+ /******/
713
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
714
+ /******/ (() => {
715
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
716
+ /******/ })();
717
+ /******/
718
+ /******/ /* webpack/runtime/make namespace object */
719
+ /******/ (() => {
720
+ /******/ // define __esModule on exports
721
+ /******/ __webpack_require__.r = (exports) => {
722
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
723
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
724
+ /******/ }
725
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
726
+ /******/ };
727
+ /******/ })();
728
+ /******/
729
+ /************************************************************************/
730
+ var __webpack_exports__ = {};
731
+ // This entry need to be wrapped in an IIFE because it need to be in strict mode.
732
+ (() => {
733
+ "use strict";
734
+ // ESM COMPAT FLAG
735
+ __webpack_require__.r(__webpack_exports__);
736
+
737
+ // EXPORTS
738
+ __webpack_require__.d(__webpack_exports__, {
739
+ bkEllipsis: () => (/* reexport */ src_ellipsis),
740
+ bkEllipsisInstance: () => (/* reexport */ createInstance),
741
+ bkTooltips: () => (/* reexport */ src_tooltips),
742
+ clickoutside: () => (/* reexport */ clickoutside),
743
+ mousewheel: () => (/* reexport */ src_mousewheel),
744
+ overflowTitle: () => (/* reexport */ external_overflow_title_.overflowTitle)
745
+ });
746
+
747
+ // EXTERNAL MODULE: external "../overflow-title"
748
+ var external_overflow_title_ = __webpack_require__(1040);
749
+ // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
750
+ var normalize_wheel = __webpack_require__(2439);
751
+ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
752
+ ;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
753
+ /*
754
+ * Tencent is pleased to support the open source community by making
755
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
756
+ *
757
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
758
+ *
759
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
760
+ *
761
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
762
+ *
763
+ * ---------------------------------------------------
764
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
765
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
766
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
767
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
768
+ *
769
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
770
+ * the Software.
771
+ *
772
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
773
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
774
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
775
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
776
+ * IN THE SOFTWARE.
777
+ */
778
+
779
+ var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
780
+ var mousewheelHandler = function mousewheelHandler(element, callback) {
781
+ if (element === null || element === void 0 ? void 0 : element.addEventListener) {
782
+ element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
783
+ var normalized = normalize_wheel_default()(e);
784
+ callback === null || callback === void 0 ? void 0 : callback.apply(this, [e, normalized]);
785
+ });
786
+ }
787
+ };
788
+ var mousewheel = {
789
+ beforeMount: function beforeMount(el, binding) {
790
+ console.error(el, binding);
791
+ mousewheelHandler(el, binding.value);
792
+ }
793
+ };
794
+ /* harmony default export */ const src_mousewheel = (mousewheel);
795
+ ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
796
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
797
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
798
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
799
+ /*
800
+ * Tencent is pleased to support the open source community by making
801
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
802
+ *
803
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
804
+ *
805
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
806
+ *
807
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
808
+ *
809
+ * ---------------------------------------------------
810
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
811
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
812
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
813
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
814
+ *
815
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
816
+ * the Software.
817
+ *
818
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
819
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
820
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
821
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
822
+ * IN THE SOFTWARE.
823
+ */
824
+ var isElement = function isElement(e) {
825
+ if (typeof Element === 'undefined') return false;
826
+ return e instanceof Element;
827
+ };
828
+ var nodeList = new Map();
829
+ var startClick;
830
+ document.addEventListener('mousedown', function (e) {
831
+ return startClick = e;
832
+ });
833
+ document.addEventListener('mouseup', function (e) {
834
+ var _iterator = _createForOfIteratorHelper(nodeList.values()),
835
+ _step;
836
+ try {
837
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
838
+ var handlers = _step.value;
839
+ var _iterator2 = _createForOfIteratorHelper(handlers),
840
+ _step2;
841
+ try {
842
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
843
+ var documentHandler = _step2.value.documentHandler;
844
+ documentHandler(e, startClick);
845
+ }
846
+ } catch (err) {
847
+ _iterator2.e(err);
848
+ } finally {
849
+ _iterator2.f();
850
+ }
851
+ }
852
+ } catch (err) {
853
+ _iterator.e(err);
854
+ } finally {
855
+ _iterator.f();
856
+ }
857
+ });
858
+ function createDocumentHandler(el, binding) {
859
+ var excludes = [];
860
+ if (Array.isArray(binding.arg)) {
861
+ excludes = binding.arg;
862
+ } else if (isElement(binding.arg)) {
863
+ excludes.push(binding.arg);
864
+ }
865
+ return function (mouseup, mousedown) {
866
+ var popperRef = binding.instance.popperRef;
867
+ var mouseUpTarget = mouseup.target;
868
+ var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
869
+ var isBound = !binding || !binding.instance;
870
+ var isTargetExists = !mouseUpTarget || !mouseDownTarget;
871
+ var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
872
+ var isSelf = el === mouseUpTarget;
873
+ var isTargetExcluded = excludes.length && excludes.some(function (item) {
874
+ return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
875
+ }) || excludes.length && excludes.includes(mouseDownTarget);
876
+ var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
877
+ if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
878
+ return;
879
+ }
880
+ binding.value(mouseup, mousedown);
881
+ };
882
+ }
883
+ var ClickOutside = {
884
+ beforeMount: function beforeMount(el, binding) {
885
+ if (!nodeList.has(el)) {
886
+ nodeList.set(el, []);
887
+ }
888
+ nodeList.get(el).push({
889
+ documentHandler: createDocumentHandler(el, binding),
890
+ bindingFn: binding.value
891
+ });
892
+ },
893
+ updated: function updated(el, binding) {
894
+ if (!nodeList.has(el)) {
895
+ nodeList.set(el, []);
896
+ }
897
+ var handlers = nodeList.get(el);
898
+ var oldHandlerIndex = handlers.findIndex(function (item) {
899
+ return item.bindingFn === binding.oldValue;
900
+ });
901
+ var newHandler = {
902
+ documentHandler: createDocumentHandler(el, binding),
903
+ bindingFn: binding.value
904
+ };
905
+ if (oldHandlerIndex >= 0) {
906
+ // replace the old handler to the new handler
907
+ handlers.splice(oldHandlerIndex, 1, newHandler);
908
+ } else {
909
+ handlers.push(newHandler);
910
+ }
911
+ },
912
+ unmounted: function unmounted(el) {
913
+ // remove all listeners when a component unmounted
914
+ nodeList["delete"](el);
915
+ }
916
+ };
917
+ ClickOutside.install = function (app) {
918
+ app.directive('bkTooltips', ClickOutside);
919
+ };
920
+ /* harmony default export */ const clickoutside = (ClickOutside);
921
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
922
+ function arrayLikeToArray_arrayLikeToArray(arr, len) {
923
+ if (len == null || len > arr.length) len = arr.length;
924
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
925
+ return arr2;
926
+ }
927
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
928
+
929
+ function _arrayWithoutHoles(arr) {
930
+ if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
931
+ }
932
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
933
+ function _iterableToArray(iter) {
934
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
935
+ }
936
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
937
+
938
+ function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
939
+ if (!o) return;
940
+ if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
941
+ var n = Object.prototype.toString.call(o).slice(8, -1);
942
+ if (n === "Object" && o.constructor) n = o.constructor.name;
943
+ if (n === "Map" || n === "Set") return Array.from(o);
944
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
945
+ }
946
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
947
+ function _nonIterableSpread() {
948
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
949
+ }
950
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
951
+
952
+
953
+
954
+
955
+ function _toConsumableArray(arr) {
956
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
957
+ }
958
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
959
+ function _typeof(obj) {
960
+ "@babel/helpers - typeof";
961
+
962
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
963
+ return typeof obj;
964
+ } : function (obj) {
965
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
966
+ }, _typeof(obj);
967
+ }
968
+ // EXTERNAL MODULE: external "vue"
969
+ var external_vue_ = __webpack_require__(748);
970
+ // EXTERNAL MODULE: external "../shared"
971
+ var external_shared_ = __webpack_require__(4212);
972
+ // EXTERNAL MODULE: external "@popperjs/core"
973
+ var core_ = __webpack_require__(5798);
974
+ ;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
975
+
976
+
977
+ /*
978
+ * Tencent is pleased to support the open source community by making
979
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
980
+ *
981
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
982
+ *
983
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
984
+ *
985
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
986
+ *
987
+ * ---------------------------------------------------
988
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
989
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
990
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
991
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
992
+ *
993
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
994
+ * the Software.
995
+ *
996
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
997
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
998
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
999
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1000
+ * IN THE SOFTWARE.
1001
+ */
1002
+
1003
+
1004
+
1005
+ var tooltips_nodeList = new Map();
1006
+ var tooltips = {
1007
+ beforeMount: function beforeMount(el, binding) {
1008
+ var opts = getOpts(binding);
1009
+ var trigger = opts.trigger;
1010
+ var popper = renderContent(opts);
1011
+ var delayTimeout = null;
1012
+ if (trigger === 'hover') {
1013
+ var hideTimeout = null;
1014
+ el.addEventListener('mouseenter', function () {
1015
+ delayTimeout = setTimeout(function () {
1016
+ show(el);
1017
+ clearTimeout(hideTimeout);
1018
+ clearTimeout(delayTimeout);
1019
+ }, opts.delay);
1020
+ });
1021
+ popper.addEventListener('mouseenter', function () {
1022
+ clearTimeout(hideTimeout);
1023
+ });
1024
+ el.addEventListener('mouseleave', function () {
1025
+ clearTimeout(delayTimeout);
1026
+ hideTimeout = setTimeout(function () {
1027
+ hide(el);
1028
+ }, 100);
1029
+ });
1030
+ el.addEventListener('click', function () {
1031
+ hide(el);
1032
+ });
1033
+ popper.addEventListener('mouseleave', function () {
1034
+ clearTimeout(delayTimeout);
1035
+ hideTimeout = setTimeout(function () {
1036
+ hide(el);
1037
+ }, 100);
1038
+ });
1039
+ } else if (trigger === 'click') {
1040
+ document.body.addEventListener('click', function (event) {
1041
+ if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
1042
+ delayTimeout = setTimeout(function () {
1043
+ show(el);
1044
+ clearTimeout(delayTimeout);
1045
+ }, opts.delay);
1046
+ } else if (popper.hasAttribute('data-show')) {
1047
+ hide(el);
1048
+ }
1049
+ });
1050
+ }
1051
+ tooltips_nodeList.set(el, {
1052
+ opts: opts,
1053
+ popper: popper,
1054
+ popperInstance: null
1055
+ });
1056
+ },
1057
+ updated: function updated(el, binding) {
1058
+ tooltips_nodeList.get(el).opts = getOpts(binding);
1059
+ },
1060
+ unmounted: function unmounted(el) {
1061
+ hide(el);
1062
+ tooltips_nodeList["delete"](el);
1063
+ }
1064
+ };
1065
+ /**
1066
+ * 初始化配置
1067
+ * @returns tooltips配置
1068
+ */
1069
+ function initOptions() {
1070
+ var defaultOpts = {
1071
+ arrow: true,
1072
+ disabled: false,
1073
+ trigger: 'hover',
1074
+ theme: 'dark',
1075
+ content: '',
1076
+ showOnInit: false,
1077
+ placement: 'top',
1078
+ distance: 8,
1079
+ extCls: '',
1080
+ sameWidth: false,
1081
+ delay: 0,
1082
+ onShow: function onShow() {},
1083
+ onHide: function onHide() {}
1084
+ };
1085
+ return defaultOpts;
1086
+ }
1087
+ /**
1088
+ * 获取配置
1089
+ * @returns tooltips配置
1090
+ */
1091
+ function getOpts(binding) {
1092
+ var opts = initOptions();
1093
+ if (_typeof(binding.value) === 'object') {
1094
+ Object.assign(opts, binding.value);
1095
+ } else {
1096
+ opts.content = binding.value;
1097
+ }
1098
+ return opts;
1099
+ }
1100
+ /**
1101
+ * 创建tooltips DOM
1102
+ * @param opts
1103
+ * @returns
1104
+ */
1105
+ function renderContext(value, content) {
1106
+ if (typeof value === 'string') {
1107
+ content.innerText = value;
1108
+ } else {
1109
+ // 如果 content 是 Vue 组件的实例,则挂载它
1110
+ var container = document.createElement('div');
1111
+ var vnode = (0,external_vue_.h)(value);
1112
+ (0,external_vue_.render)(vnode, container);
1113
+ content.innerHTML = container.innerHTML;
1114
+ }
1115
+ }
1116
+ function renderContent(opts) {
1117
+ var value = opts.content,
1118
+ hasArrow = opts.arrow,
1119
+ theme = opts.theme,
1120
+ extCls = opts.extCls;
1121
+ var isLight = theme === 'light';
1122
+ var zIndex = external_shared_.bkZIndexManager.getPopperIndex();
1123
+ var content = document.createElement('div');
1124
+ content.className = "".concat((0,external_shared_.resolveClassName)('popper'), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
1125
+ content.innerText = value;
1126
+ content.style.zIndex = String(zIndex);
1127
+ renderContext(value, content);
1128
+ if (hasArrow) {
1129
+ var arrow = renderArrow();
1130
+ content.appendChild(arrow);
1131
+ }
1132
+ return content;
1133
+ }
1134
+ /**
1135
+ * 渲染箭头dom
1136
+ * @returns arrow DOM
1137
+ */
1138
+ function renderArrow() {
1139
+ var arrow = document.createElement('div');
1140
+ arrow.className = (0,external_shared_.resolveClassName)('popper-arrow');
1141
+ arrow.setAttribute('data-popper-arrow', '');
1142
+ return arrow;
1143
+ }
1144
+ /**
1145
+ * 创建popper实例
1146
+ * @param el
1147
+ * @param popper
1148
+ * @returns popper实例
1149
+ */
1150
+ function createPopperInstance(el, popper) {
1151
+ var _nodeList$get = tooltips_nodeList.get(el),
1152
+ opts = _nodeList$get.opts;
1153
+ var placement = opts.placement,
1154
+ distance = opts.distance,
1155
+ showOnInit = opts.showOnInit,
1156
+ sameWidth = opts.sameWidth;
1157
+ var popperInstance = (0,core_.createPopper)(el, popper, {
1158
+ placement: placement,
1159
+ modifiers: [{
1160
+ name: 'offset',
1161
+ options: {
1162
+ offset: [0, distance]
1163
+ }
1164
+ }].concat(_toConsumableArray(sameWidth ? [{
1165
+ name: 'sameWidth',
1166
+ enabled: true,
1167
+ phase: 'beforeWrite',
1168
+ requires: ['computeStyles'],
1169
+ fn: function fn(_ref) {
1170
+ var state = _ref.state;
1171
+ state.styles.popper.width = "".concat(state.rects.reference.width, "px");
1172
+ },
1173
+ effect: function effect(_ref2) {
1174
+ var state = _ref2.state;
1175
+ state.elements.popper.style.overflowWrap = 'break-word';
1176
+ state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
1177
+ }
1178
+ }] : []))
1179
+ });
1180
+ if (showOnInit) show(el);
1181
+ return popperInstance;
1182
+ }
1183
+ /**
1184
+ * 显示
1185
+ * @param el
1186
+ */
1187
+ function show(el) {
1188
+ var _nodeList$get2 = tooltips_nodeList.get(el),
1189
+ popper = _nodeList$get2.popper,
1190
+ opts = _nodeList$get2.opts;
1191
+ var disabled = opts.disabled,
1192
+ content = opts.content,
1193
+ hasArrow = opts.arrow,
1194
+ onShow = opts.onShow;
1195
+ if (disabled) return;
1196
+ renderContext(content, popper);
1197
+ if (hasArrow) {
1198
+ var arrow = renderArrow();
1199
+ popper.appendChild(arrow);
1200
+ }
1201
+ document.body.appendChild(popper);
1202
+ var popperInstance = createPopperInstance(el, popper);
1203
+ onShow();
1204
+ // Make the tooltip visible
1205
+ popper.setAttribute('data-show', '');
1206
+ // Enable the event listeners
1207
+ popperInstance.setOptions(function (options) {
1208
+ return Object.assign(Object.assign({}, options), {
1209
+ modifiers: [].concat(_toConsumableArray(options.modifiers), [{
1210
+ name: 'eventListeners',
1211
+ enabled: true
1212
+ }])
1213
+ });
1214
+ });
1215
+ // Update its position
1216
+ popperInstance.forceUpdate();
1217
+ tooltips_nodeList.get(el).popperInstance = popperInstance;
1218
+ }
1219
+ /**
1220
+ * 隐藏
1221
+ * @param el
1222
+ */
1223
+ function hide(el) {
1224
+ if (!tooltips_nodeList.get(el)) return;
1225
+ var _nodeList$get3 = tooltips_nodeList.get(el),
1226
+ popper = _nodeList$get3.popper,
1227
+ popperInstance = _nodeList$get3.popperInstance,
1228
+ opts = _nodeList$get3.opts;
1229
+ var onHide = opts.onHide;
1230
+ if (popper && document.body.contains(popper)) {
1231
+ popper.removeAttribute('data-show');
1232
+ popperInstance === null || popperInstance === void 0 ? void 0 : popperInstance.destroy();
1233
+ document.body.removeChild(popper);
1234
+ onHide();
1235
+ }
1236
+ }
1237
+ /* harmony default export */ const src_tooltips = (tooltips);
1238
+ // EXTERNAL MODULE: external "../plugin-popover"
1239
+ var external_plugin_popover_ = __webpack_require__(9706);
1240
+ var external_plugin_popover_default = /*#__PURE__*/__webpack_require__.n(external_plugin_popover_);
1241
+ ;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
1242
+
1243
+ /*
1244
+ * Tencent is pleased to support the open source community by making
1245
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1246
+ *
1247
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1248
+ *
1249
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1250
+ *
1251
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1252
+ *
1253
+ * ---------------------------------------------------
1254
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1255
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1256
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1257
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1258
+ *
1259
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1260
+ * the Software.
1261
+ *
1262
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1263
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1264
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1265
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1266
+ * IN THE SOFTWARE.
1267
+ */
1268
+
1269
+ var resolveOptions = function resolveOptions(el, binding) {
1270
+ var options = {
1271
+ content: '',
1272
+ target: el
1273
+ };
1274
+ if (_typeof(binding) === 'object') {
1275
+ Object.assign(options, binding);
1276
+ if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
1277
+ Object.assign(options, binding.popoverOption);
1278
+ }
1279
+ } else {
1280
+ options.content = binding;
1281
+ }
1282
+ return options;
1283
+ };
1284
+ var createInstance = function createInstance(el, binding) {
1285
+ var instance = null;
1286
+ var createTimer = null;
1287
+ var hidePopTimer = null;
1288
+ var options = resolveOptions(el, binding);
1289
+ var disabled = options.disabled;
1290
+ if (disabled || instance) {
1291
+ return;
1292
+ }
1293
+ var handleContentEnter = function handleContentEnter() {
1294
+ hidePopTimer && clearTimeout(hidePopTimer);
1295
+ hidePopTimer = null;
1296
+ };
1297
+ var handleContentLeave = function handleContentLeave() {
1298
+ if (createTimer) {
1299
+ clearTimeout(createTimer);
1300
+ }
1301
+ instance === null || instance === void 0 ? void 0 : instance.hide();
1302
+ instance === null || instance === void 0 ? void 0 : instance.close();
1303
+ instance = null;
1304
+ };
1305
+ var handleMouseEnter = function handleMouseEnter() {
1306
+ handleContentLeave();
1307
+ createTimer && clearTimeout(createTimer);
1308
+ createTimer = setTimeout(function () {
1309
+ var targetOptions = resolveOptions(el, binding);
1310
+ targetOptions.isShow = true;
1311
+ targetOptions.content = targetOptions.content || el.innerHTML;
1312
+ targetOptions.allowHtml = true;
1313
+ Object.assign(targetOptions, {
1314
+ onContentMouseenter: handleContentEnter,
1315
+ onContentMouseleave: handleContentLeave
1316
+ });
1317
+ instance = external_plugin_popover_default()(targetOptions);
1318
+ }, 300);
1319
+ };
1320
+ var handleMouseLeave = function handleMouseLeave() {
1321
+ hidePopTimer = setTimeout(function () {
1322
+ if (createTimer) {
1323
+ clearTimeout(createTimer);
1324
+ }
1325
+ instance === null || instance === void 0 ? void 0 : instance.hide();
1326
+ instance === null || instance === void 0 ? void 0 : instance.close();
1327
+ instance = null;
1328
+ }, 120);
1329
+ };
1330
+ el.addEventListener('mouseenter', handleMouseEnter);
1331
+ el.addEventListener('mouseleave', handleMouseLeave);
1332
+ var destroyInstance = function destroyInstance(element) {
1333
+ var _a, _b;
1334
+ handleMouseLeave();
1335
+ (_a = element !== null && element !== void 0 ? element : el) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseenter', handleMouseEnter);
1336
+ (_b = element !== null && element !== void 0 ? element : el) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', handleMouseLeave);
1337
+ };
1338
+ return {
1339
+ destroyInstance: destroyInstance,
1340
+ instance: instance
1341
+ };
1342
+ };
1343
+ var ellipsis = {
1344
+ mounted: function mounted(el, binding) {
1345
+ createInstance(el, binding);
1346
+ }
1347
+ };
1348
+ /* harmony default export */ const src_ellipsis = (ellipsis);
1349
+ ;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
1350
+ /*
1351
+ * Tencent is pleased to support the open source community by making
1352
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1353
+ *
1354
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1355
+ *
1356
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1357
+ *
1358
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1359
+ *
1360
+ * ---------------------------------------------------
1361
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1362
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1363
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1364
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1365
+ *
1366
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1367
+ * the Software.
1368
+ *
1369
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1370
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1371
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1372
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1373
+ * IN THE SOFTWARE.
1374
+ */
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+ // export { createInstance as bkEllipsisInstance } from './ellipsis';
1381
+ })();
1382
+
1383
+ /******/ return __webpack_exports__;
1384
+ /******/ })()
1385
+ ;
1386
+ });