bkui-vue 0.0.1-beta.20 → 0.0.1-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/README_EN.md +7 -3
- package/dist/bkui-vue.cjs.js +230 -208
- package/dist/bkui-vue.esm.js +230 -208
- package/dist/bkui-vue.umd.js +230 -208
- package/dist/style.css +127 -85
- package/lib/button/button.css +9 -0
- package/lib/button/button.d.ts +25 -1
- package/lib/button/button.less +18 -10
- package/lib/button/button.variable.css +9 -0
- package/lib/button/index.d.ts +42 -4
- package/lib/button/index.js +1 -1
- package/lib/code-diff/code-diff.css +114 -0
- package/lib/code-diff/code-diff.d.ts +71 -0
- package/lib/code-diff/code-diff.less +144 -0
- package/lib/code-diff/code-diff.variable.css +207 -0
- package/lib/code-diff/index.d.ts +6 -0
- package/lib/date-picker/date-picker.d.ts +20 -130
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +1 -1
- package/lib/date-picker/props.d.ts +111 -0
- package/lib/directives/clickoutside.d.ts +3 -23
- package/lib/directives/index.js +2 -2
- package/lib/input/index.d.ts +58 -4
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +19 -2
- package/lib/input/input.d.ts +31 -1
- package/lib/input/input.less +25 -3
- package/lib/input/input.variable.css +19 -2
- package/lib/loading/index.d.ts +31 -9
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +98 -71
- package/lib/loading/loading.d.ts +23 -8
- package/lib/loading/loading.less +62 -49
- package/lib/loading/loading.variable.css +98 -71
- package/lib/shared/index.js +1 -1
- package/lib/shared/vue-types.d.ts +4 -0
- package/lib/tree/index.d.ts +17 -24
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +9 -8
- package/lib/tree/tree.css +1 -12
- package/lib/tree/tree.d.ts +8 -11
- package/lib/tree/tree.less +10 -24
- package/lib/tree/tree.variable.css +1 -12
- package/lib/tree/util.d.ts +9 -1
- package/package.json +1 -1
package/lib/directives/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("../styles/mixins/popper.less")):"function"==typeof define&&define.amd?define(["exports","../shared","../styles/mixins/popper.less"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared)}(this,(function(e,t){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,o,i,a,s,c,
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("../styles/mixins/popper.less")):"function"==typeof define&&define.amd?define(["exports","../shared","../styles/mixins/popper.less"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared)}(this,(function(e,t){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,o,i,a,s,f,c,u,p,l,d,m,h,v,y,b=!1;function g(){if(!b){b=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(m=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),l=/Android/i.exec(e),v=/FBAN\/\w+;/i.exec(e),y=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){(r=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(r=document.documentMode);var g=/(?:Trident\/(\d+.\d+))/.exec(e);f=g?parseFloat(g[1])+4:r,o=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,(a=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else r=o=i=s=a=NaN;if(n){if(n[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);c=!x||parseFloat(x[1].replace("_","."))}else c=!1;u=!!n[2],p=!!n[3]}else c=u=p=!1}}var x,w={ie:function(){return g()||r},ieCompatibilityMode:function(){return g()||f>r},ie64:function(){return w.ie()&&d},firefox:function(){return g()||o},opera:function(){return g()||i},webkit:function(){return g()||a},safari:function(){return w.webkit()},chrome:function(){return g()||s},windows:function(){return g()||u},osx:function(){return g()||c},linux:function(){return g()||p},iphone:function(){return g()||m},mobile:function(){return g()||m||h||l||y},nativeApp:function(){return g()||v},android:function(){return g()||l},ipad:function(){return g()||h}},O=w,E=!("undefined"==typeof window||!window.document||!window.document.createElement),A={canUseDOM:E,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:E&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:E&&!!window.screen,isInWorker:!E};A.canUseDOM&&(x=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
|
2
2
|
/**
|
3
3
|
* Checks if an event is supported in the current execution environment.
|
4
4
|
*
|
@@ -12,4 +12,4 @@
|
|
12
12
|
* @return {boolean} True if the event is supported.
|
13
13
|
* @internal
|
14
14
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
15
|
-
*/;var A=O,S=function(e,t){if(!j.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&x&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r};function M(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}}M.getEventType=function(){return A.firefox()?"DOMMouseScroll":S("wheel")?"wheel":"mousewheel"};var D=M,k="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,N={beforeMount:function(e,t){var n,r;console.error(e,t),n=e,r=t.value,(null==n?void 0:n.addEventListener)&&n.addEventListener(k?"DOMMouseScroll":"mousewheel",(function(e){var t=D(e);null==r||r.apply(this,[e,t])}))}},P=new Map;function L(e){var t={handler:function(){},capture:!0,disabled:!1,detectIframe:!0,exclude:[],events:"ontouchstart"in window||(null===navigator||void 0===navigator?void 0:navigator.maxTouchPoints)>0?["ontouchstart"]:["click"]};return"function"==typeof e?(t.handler=e,t):Object.assign({},t)}function _(e,t){var n=t.events.map((function(n){return{event:n,target:document.documentElement,capture:t.capture,handler:function(n){return function(e){var t,n=e.el,r=e.event,o=e.handler,i=e.disabled,a=null===(t=r.composedPath)||void 0===t?void 0:t.call(r);(a?a.indexOf(n)<0:!n.contains(r.target))&&!i&&o(r)}({el:e,event:n,handler:t.handler,disabled:t.disabled})}}}));return t.detectIframe&&n.push({event:"blur",target:window,capture:t.capture,handler:function(n){return function(e){var t=document.activeElement,n=e.el,r=e.handler,o=e.disabled,i=e.event;!t||"IFRAME"!==t.tagName||n.contains(t)||o||r(i)}({el:e,event:n,handler:t.handler,disabled:t.disabled})}}),n}function T(e){var t;(null!==(t=P.get(e))&&void 0!==t?t:[]).forEach((function(e){var t=e.target,n=e.event,r=e.handler,o=e.capture;t.removeEventListener(n,r,o)})),P.delete(e)}var q={beforeMount:function(e,t){var n=L(t.value);n.disabled||P.set(e,_(e,n))},updated:function(e,t){var n=L(t.value);n.disabled&&!P.has(e)||function(e,t){P.has(e)&&T(e);var n=_(e,t);P.set(e,n),n.forEach((function(e){var t=e.target,n=e.event,r=e.handler,o=e.capture;t.addEventListener(n,r,o)}))}(e,n)},unmounted:function(e){T(e)}},I={exports:{}},W={exports:{}},V={exports:{}};!function(e){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports}(V),function(e){var t=V.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(W);var C={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(C);var H={exports:{}};!function(e){var t=V.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(H);var F={exports:{}};!function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}(F),function(e){var t=W.exports,n=C.exports,r=H.exports,o=F.exports;e.exports=function(e){return t(e)||n(e)||r(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(I);var B=n(I.exports),R={exports:{}};!function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(R);var U=n(R.exports),X="top",Y="bottom",z="right",G="left",Z="auto",J=[X,Y,z,G],K="start",$="end",Q="viewport",ee="popper",te=J.reduce((function(e,t){return e.concat([t+"-"+K,t+"-"+$])}),[]),ne=[].concat(J,[Z]).reduce((function(e,t){return e.concat([t,t+"-"+K,t+"-"+$])}),[]),re=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function oe(e){return e?(e.nodeName||"").toLowerCase():null}function ie(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ae(e){return e instanceof ie(e).Element||e instanceof Element}function se(e){return e instanceof ie(e).HTMLElement||e instanceof HTMLElement}function ce(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ie(e).ShadowRoot||e instanceof ShadowRoot)}var fe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];se(o)&&oe(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});se(r)&&oe(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function ue(e){return e.split("-")[0]}var pe=Math.max,le=Math.min,de=Math.round;function me(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(se(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=de(n.width)/a||1),i>0&&(o=de(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function he(e){var t=me(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ve(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ce(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function be(e){return ie(e).getComputedStyle(e)}function ge(e){return["table","td","th"].indexOf(oe(e))>=0}function ye(e){return((ae(e)?e.ownerDocument:e.document)||window.document).documentElement}function xe(e){return"html"===oe(e)?e:e.assignedSlot||e.parentNode||(ce(e)?e.host:null)||ye(e)}function we(e){return se(e)&&"fixed"!==be(e).position?e.offsetParent:null}function Oe(e){for(var t=ie(e),n=we(e);n&&ge(n)&&"static"===be(n).position;)n=we(n);return n&&("html"===oe(n)||"body"===oe(n)&&"static"===be(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&se(e)&&"fixed"===be(e).position)return null;var n=xe(e);for(ce(n)&&(n=n.host);se(n)&&["html","body"].indexOf(oe(n))<0;){var r=be(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function je(e,t,n){return pe(e,le(t,n))}function Ae(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Se(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Me={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ue(n.placement),c=Ee(s),f=[G,z].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Ae("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Se(e,J))}(o.padding,n),p=he(i),l="y"===c?X:G,d="y"===c?Y:z,m=n.rects.reference[f]+n.rects.reference[c]-a[c]-n.rects.popper[f],h=a[c]-n.rects.reference[c],v=Oe(i),b=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,g=m/2-h/2,y=u[l],x=b-p[f]-u[d],w=b/2-p[f]/2+g,O=je(y,w,x),E=c;n.modifiersData[r]=((t={})[E]=O,t.centerOffset=O-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(se(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),ve(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function De(e){return e.split("-")[1]}var ke={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ne(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,p=e.isFixed,l=a.x,d=void 0===l?0:l,m=a.y,h=void 0===m?0:m,v="function"==typeof u?u({x:d,y:h}):{x:d,y:h};d=v.x,h=v.y;var b=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),y=G,x=X,w=window;if(f){var O=Oe(n),E="clientHeight",j="clientWidth";if(O===ie(n)&&"static"!==be(O=ye(n)).position&&"absolute"===s&&(E="scrollHeight",j="scrollWidth"),O=O,o===X||(o===G||o===z)&&i===$)x=Y,h-=(p&&O===w&&w.visualViewport?w.visualViewport.height:O[E])-r.height,h*=c?1:-1;if(o===G||(o===X||o===Y)&&i===$)y=z,d-=(p&&O===w&&w.visualViewport?w.visualViewport.width:O[j])-r.width,d*=c?1:-1}var A,S=Object.assign({position:s},f&&ke),M=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:de(t*r)/r||0,y:de(n*r)/r||0}}({x:d,y:h}):{x:d,y:h};return d=M.x,h=M.y,c?Object.assign({},S,((A={})[x]=g?"0":"",A[y]=b?"0":"",A.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",A)):Object.assign({},S,((t={})[x]=g?h+"px":"",t[y]=b?d+"px":"",t.transform="",t))}var Pe={passive:!0};var Le={left:"right",right:"left",bottom:"top",top:"bottom"};function _e(e){return e.replace(/left|right|bottom|top/g,(function(e){return Le[e]}))}var Te={start:"end",end:"start"};function qe(e){return e.replace(/start|end/g,(function(e){return Te[e]}))}function Ie(e){var t=ie(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function We(e){return me(ye(e)).left+Ie(e).scrollLeft}function Ve(e){var t=be(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ce(e){return["html","body","#document"].indexOf(oe(e))>=0?e.ownerDocument.body:se(e)&&Ve(e)?e:Ce(xe(e))}function He(e,t){var n;void 0===t&&(t=[]);var r=Ce(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ie(r),a=o?[i].concat(i.visualViewport||[],Ve(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(He(xe(a)))}function Fe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Be(e,t){return t===Q?Fe(function(e){var t=ie(e),n=ye(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+We(e),y:s}}(e)):ae(t)?function(e){var t=me(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Fe(function(e){var t,n=ye(e),r=Ie(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=pe(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=pe(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+We(e),c=-r.scrollTop;return"rtl"===be(o||n).direction&&(s+=pe(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(ye(e)))}function Re(e,t,n){var r="clippingParents"===t?function(e){var t=He(xe(e)),n=["absolute","fixed"].indexOf(be(e).position)>=0&&se(e)?Oe(e):e;return ae(n)?t.filter((function(e){return ae(e)&&ve(e,n)&&"body"!==oe(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Be(e,n);return t.top=pe(r.top,t.top),t.right=le(r.right,t.right),t.bottom=le(r.bottom,t.bottom),t.left=pe(r.left,t.left),t}),Be(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ue(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?ue(o):null,a=o?De(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case X:t={x:s,y:n.y-r.height};break;case Y:t={x:s,y:n.y+n.height};break;case z:t={x:n.x+n.width,y:c};break;case G:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var f=i?Ee(i):null;if(null!=f){var u="y"===f?"height":"width";switch(a){case K:t[f]=t[f]-(n[u]/2-r[u]/2);break;case $:t[f]=t[f]+(n[u]/2-r[u]/2)}}return t}function Xe(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,s=n.rootBoundary,c=void 0===s?Q:s,f=n.elementContext,u=void 0===f?ee:f,p=n.altBoundary,l=void 0!==p&&p,d=n.padding,m=void 0===d?0:d,h=Ae("number"!=typeof m?m:Se(m,J)),v=u===ee?"reference":ee,b=e.rects.popper,g=e.elements[l?v:u],y=Re(ae(g)?g:g.contextElement||ye(e.elements.popper),a,c),x=me(e.elements.reference),w=Ue({reference:x,element:b,strategy:"absolute",placement:o}),O=Fe(Object.assign({},b,w)),E=u===ee?O:x,j={top:y.top-E.top+h.top,bottom:E.bottom-y.bottom+h.bottom,left:y.left-E.left+h.left,right:E.right-y.right+h.right},A=e.modifiersData.offset;if(u===ee&&A){var S=A[o];Object.keys(j).forEach((function(e){var t=[z,Y].indexOf(e)>=0?1:-1,n=[X,Y].indexOf(e)>=0?"y":"x";j[e]+=S[n]*t}))}return j}function Ye(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,f=void 0===c?ne:c,u=De(r),p=u?s?te:te.filter((function(e){return De(e)===u})):J,l=p.filter((function(e){return f.indexOf(e)>=0}));0===l.length&&(l=p,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=l.reduce((function(t,n){return t[n]=Xe(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[ue(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var ze={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,f=n.padding,u=n.boundary,p=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,m=void 0===d||d,h=n.allowedAutoPlacements,v=t.options.placement,b=ue(v),g=c||(b===v||!m?[_e(v)]:function(e){if(ue(e)===Z)return[];var t=_e(e);return[qe(e),t,qe(t)]}(v)),y=[v].concat(g).reduce((function(e,n){return e.concat(ue(n)===Z?Ye(t,{placement:n,boundary:u,rootBoundary:p,padding:f,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,E=!0,j=y[0],A=0;A<y.length;A++){var S=y[A],M=ue(S),D=De(S)===K,k=[X,Y].indexOf(M)>=0,N=k?"width":"height",P=Xe(t,{placement:S,boundary:u,rootBoundary:p,altBoundary:l,padding:f}),L=k?D?z:G:D?Y:X;x[N]>w[N]&&(L=_e(L));var _=_e(L),T=[];if(i&&T.push(P[M]<=0),s&&T.push(P[L]<=0,P[_]<=0),T.every((function(e){return e}))){j=S,E=!1;break}O.set(S,T)}if(E)for(var q=function(e){var t=y.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"},I=m?3:1;I>0;I--){if("break"===q(I))break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ge(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ze(e){return[X,z,Y,G].some((function(t){return e[t]>=0}))}var Je={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=ne.reduce((function(e,n){return e[n]=function(e,t,n){var r=ue(e),o=[G,X].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[G,z].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,f=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}};var Ke={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,f=n.rootBoundary,u=n.altBoundary,p=n.padding,l=n.tether,d=void 0===l||l,m=n.tetherOffset,h=void 0===m?0:m,v=Xe(t,{boundary:c,rootBoundary:f,padding:p,altBoundary:u}),b=ue(t.placement),g=De(t.placement),y=!g,x=Ee(b),w="x"===x?"y":"x",O=t.modifiersData.popperOffsets,E=t.rects.reference,j=t.rects.popper,A="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(O){if(i){var k,N="y"===x?X:G,P="y"===x?Y:z,L="y"===x?"height":"width",_=O[x],T=_+v[N],q=_-v[P],I=d?-j[L]/2:0,W=g===K?E[L]:j[L],V=g===K?-j[L]:-E[L],C=t.elements.arrow,H=d&&C?he(C):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[N],R=F[P],U=je(0,E[L],H[L]),Z=y?E[L]/2-I-U-B-S.mainAxis:W-U-B-S.mainAxis,J=y?-E[L]/2+I+U+R+S.mainAxis:V+U+R+S.mainAxis,$=t.elements.arrow&&Oe(t.elements.arrow),Q=$?"y"===x?$.clientTop||0:$.clientLeft||0:0,ee=null!=(k=null==M?void 0:M[x])?k:0,te=_+J-ee,ne=je(d?le(T,_+Z-ee-Q):T,_,d?pe(q,te):q);O[x]=ne,D[x]=ne-_}if(s){var re,oe="x"===x?X:G,ie="x"===x?Y:z,ae=O[w],se="y"===w?"height":"width",ce=ae+v[oe],fe=ae-v[ie],de=-1!==[X,G].indexOf(b),me=null!=(re=null==M?void 0:M[w])?re:0,ve=de?ce:ae-E[se]-j[se]-me+S.altAxis,be=de?ae+E[se]+j[se]-me-S.altAxis:fe,ge=d&&de?function(e,t,n){var r=je(e,t,n);return r>n?n:r}(ve,ae,be):je(d?ve:ce,ae,d?be:fe);O[w]=ge,D[w]=ge-ae}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function $e(e,t,n){void 0===n&&(n=!1);var r,o,i=se(t),a=se(t)&&function(e){var t=e.getBoundingClientRect(),n=de(t.width)/e.offsetWidth||1,r=de(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=ye(t),c=me(e,a),f={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==oe(t)||Ve(s))&&(f=(r=t)!==ie(r)&&se(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Ie(r)),se(t)?((u=me(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=We(s))),{x:c.left+f.scrollLeft-u.x,y:c.top+f.scrollTop-u.y,width:c.width,height:c.height}}function Qe(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function et(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var tt='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',nt=["name","enabled","phase","fn","effect","requires","options"];var rt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",ot={placement:"bottom",modifiers:[],strategy:"absolute"};function it(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function at(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ot:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ot,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],f=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:ae(e)?He(e):e.contextElement?He(e.contextElement):[],popper:He(t)};var a,f,l,d=function(e){var t=Qe(e);return re.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));if(s.orderedModifiers=d.filter((function(e){return e.enabled})),"production"!==process.env.NODE_ENV){if(function(e){e.forEach((function(t){[].concat(Object.keys(t),nt).filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(et(tt,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(et(tt,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":re.indexOf(t.phase)<0&&console.error(et(tt,t.name,'"phase"',"either "+re.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(et(tt,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(et(tt,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(et(tt,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(et(tt,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+nt.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(et('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((a=[].concat(d,s.options.modifiers),f=function(e){return e.name},l=new Set,a.filter((function(e){var t=f(e);if(!l.has(t))return l.add(t),!0})))),ue(s.options.placement)===Z)s.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "));var m=be(t);[m.marginTop,m.marginRight,m.marginBottom,m.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r}),a=function(){};c.push(i||a)}})),u.update()},forceUpdate:function(){if(!f){var e=s.elements,t=e.reference,n=e.popper;if(it(t,n)){s.rects={reference:$e(t,Oe(n),"fixed"===s.options.strategy),popper:he(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var i=s.orderedModifiers[o],a=i.fn,c=i.options,p=void 0===c?{}:c,l=i.name;"function"==typeof a&&(s=a({state:s,options:p,name:l,instance:u})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(rt)}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){p(),f=!0}};if(!it(e,t))return"production"!==process.env.NODE_ENV&&console.error(rt),u;function p(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(n).then((function(e){!f&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var st=at({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=ie(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach((function(e){e.addEventListener("scroll",n.update,Pe)})),s&&c.addEventListener("resize",n.update,Pe),function(){i&&f.forEach((function(e){e.removeEventListener("scroll",n.update,Pe)})),s&&c.removeEventListener("resize",n.update,Pe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ue({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s;if("production"!==process.env.NODE_ENV){var f=be(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return f.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:ue(t.placement),variation:De(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ne(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ne(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},fe,Je,ze,Ke,Me,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Xe(t,{elementContext:"reference"}),s=Xe(t,{altBoundary:!0}),c=Ge(a,r),f=Ge(s,o,i),u=Ze(c),p=Ze(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),ct={mounted:function(e,n){var r={arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,onShow:function(){},onHide:function(){}};"object"===U(n.value)?Object.assign(r,n.value):r.content=n.value;var o=r.disabled,i=r.arrow,a=r.theme;if(!o){var s=function(e,n,r){var o=t.bkZIndexManager.getPopperIndex(),i=document.createElement("div");if(i.className="bk-popper ".concat(r?"light":"dark"),i.innerText=e,i.style.zIndex=String(o),n){var a=function(){var e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}();i.appendChild(a)}return document.body.appendChild(i),i}(r.content,i,"light"===a);!function(e,t,n){var r=n.placement,o=n.distance,i=n.trigger,a=n.showOnInit,s=n.onShow,c=n.onHide,f=st(e,t,{placement:r,modifiers:[{name:"offset",options:{offset:[0,o]}}]});if("hover"===i){var u=["mouseleave","blur"];["mouseenter","focus"].forEach((function(t){e.addEventListener(t,p)})),u.forEach((function(t){e.addEventListener(t,l)}))}else"click"===i&&document.body.addEventListener("click",(function(n){e.contains(n.target)&&!t.hasAttribute("data-show")?p():t.hasAttribute("data-show")&&l()}));a&&p();function p(){t.setAttribute("data-show",""),s(),f.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(B(e.modifiers),[{name:"eventListeners",enabled:!0}])})})),f.update()}function l(){t.removeAttribute("data-show"),c(),f.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(B(e.modifiers),[{name:"eventListeners",enabled:!1}])})}))}}(e,s,r)}}};e.bkTooltips=ct,e.clickoutside=q,e.mousewheel=N,Object.defineProperty(e,"__esModule",{value:!0})}));
|
15
|
+
*/;var S=O,j=function(e,t){if(!A.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&x&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r};function M(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}}M.getEventType=function(){return S.firefox()?"DOMMouseScroll":j("wheel")?"wheel":"mousewheel"};var D=M,k="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,N={beforeMount:function(e,t){var n,r;console.error(e,t),n=e,r=t.value,(null==n?void 0:n.addEventListener)&&n.addEventListener(k?"DOMMouseScroll":"mousewheel",(function(e){var t=D(e);null==r||r.apply(this,[e,t])}))}};function L(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function P(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 _,T=new Map;function I(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,s=null==o?void 0:o.target,f=!t||!t.instance,c=!a||!s,u=e.contains(a)||e.contains(s),p=e===a,l=r.length&&r.some((function(e){return null==e?void 0:e.contains(a)}))||r.length&&r.includes(s),d=i&&(i.contains(a)||i.contains(s));f||c||u||p||l||d||t.value(n,o)}}document.addEventListener("mousedown",(function(e){return _=e})),document.addEventListener("mouseup",(function(e){var t,n=L(T.values());try{for(n.s();!(t=n.n()).done;){var r,o=L(t.value);try{for(o.s();!(r=o.n()).done;){(0,r.value.documentHandler)(e,_)}}catch(e){o.e(e)}finally{o.f()}}}catch(e){n.e(e)}finally{n.f()}}));var q={beforeMount:function(e,t){T.has(e)||T.set(e,[]),T.get(e).push({documentHandler:I(e,t),bindingFn:t.value})},updated:function(e,t){T.has(e)||T.set(e,[]);var n=T.get(e),r=n.findIndex((function(e){return e.bindingFn===t.oldValue})),o={documentHandler:I(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted:function(e){T.delete(e)}},W={exports:{}},H={exports:{}},V={exports:{}};!function(e){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports}(V),function(e){var t=V.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(H);var C={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(C);var F={exports:{}};!function(e){var t=V.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(F);var B={exports:{}};!function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}(B),function(e){var t=H.exports,n=C.exports,r=F.exports,o=B.exports;e.exports=function(e){return t(e)||n(e)||r(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(W);var R=n(W.exports),U={exports:{}};!function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(U);var X=n(U.exports),Y="top",z="bottom",G="right",Z="left",$="auto",J=[Y,z,G,Z],K="start",Q="end",ee="viewport",te="popper",ne=J.reduce((function(e,t){return e.concat([t+"-"+K,t+"-"+Q])}),[]),re=[].concat(J,[$]).reduce((function(e,t){return e.concat([t,t+"-"+K,t+"-"+Q])}),[]),oe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ie(e){return e?(e.nodeName||"").toLowerCase():null}function ae(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function se(e){return e instanceof ae(e).Element||e instanceof Element}function fe(e){return e instanceof ae(e).HTMLElement||e instanceof HTMLElement}function ce(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ae(e).ShadowRoot||e instanceof ShadowRoot)}var ue={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];fe(o)&&ie(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});fe(r)&&ie(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function pe(e){return e.split("-")[0]}var le=Math.max,de=Math.min,me=Math.round;function he(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(fe(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=me(n.width)/a||1),i>0&&(o=me(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function ve(e){var t=he(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ye(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ce(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function be(e){return ae(e).getComputedStyle(e)}function ge(e){return["table","td","th"].indexOf(ie(e))>=0}function xe(e){return((se(e)?e.ownerDocument:e.document)||window.document).documentElement}function we(e){return"html"===ie(e)?e:e.assignedSlot||e.parentNode||(ce(e)?e.host:null)||xe(e)}function Oe(e){return fe(e)&&"fixed"!==be(e).position?e.offsetParent:null}function Ee(e){for(var t=ae(e),n=Oe(e);n&&ge(n)&&"static"===be(n).position;)n=Oe(n);return n&&("html"===ie(n)||"body"===ie(n)&&"static"===be(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&fe(e)&&"fixed"===be(e).position)return null;var n=we(e);for(ce(n)&&(n=n.host);fe(n)&&["html","body"].indexOf(ie(n))<0;){var r=be(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Ae(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Se(e,t,n){return le(e,de(t,n))}function je(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Me(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var De={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=pe(n.placement),f=Ae(s),c=[Z,G].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return je("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Me(e,J))}(o.padding,n),p=ve(i),l="y"===f?Y:Z,d="y"===f?z:G,m=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],h=a[f]-n.rects.reference[f],v=Ee(i),y=v?"y"===f?v.clientHeight||0:v.clientWidth||0:0,b=m/2-h/2,g=u[l],x=y-p[c]-u[d],w=y/2-p[c]/2+b,O=Se(g,w,x),E=f;n.modifiersData[r]=((t={})[E]=O,t.centerOffset=O-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(fe(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),ye(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ke(e){return e.split("-")[1]}var Ne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Le(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,f=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,l=a.x,d=void 0===l?0:l,m=a.y,h=void 0===m?0:m,v="function"==typeof u?u({x:d,y:h}):{x:d,y:h};d=v.x,h=v.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),g=Z,x=Y,w=window;if(c){var O=Ee(n),E="clientHeight",A="clientWidth";if(O===ae(n)&&"static"!==be(O=xe(n)).position&&"absolute"===s&&(E="scrollHeight",A="scrollWidth"),O=O,o===Y||(o===Z||o===G)&&i===Q)x=z,h-=(p&&O===w&&w.visualViewport?w.visualViewport.height:O[E])-r.height,h*=f?1:-1;if(o===Z||(o===Y||o===z)&&i===Q)g=G,d-=(p&&O===w&&w.visualViewport?w.visualViewport.width:O[A])-r.width,d*=f?1:-1}var S,j=Object.assign({position:s},c&&Ne),M=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:me(t*r)/r||0,y:me(n*r)/r||0}}({x:d,y:h}):{x:d,y:h};return d=M.x,h=M.y,f?Object.assign({},j,((S={})[x]=b?"0":"",S[g]=y?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",S)):Object.assign({},j,((t={})[x]=b?h+"px":"",t[g]=y?d+"px":"",t.transform="",t))}var Pe={passive:!0};var _e={left:"right",right:"left",bottom:"top",top:"bottom"};function Te(e){return e.replace(/left|right|bottom|top/g,(function(e){return _e[e]}))}var Ie={start:"end",end:"start"};function qe(e){return e.replace(/start|end/g,(function(e){return Ie[e]}))}function We(e){var t=ae(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function He(e){return he(xe(e)).left+We(e).scrollLeft}function Ve(e){var t=be(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ce(e){return["html","body","#document"].indexOf(ie(e))>=0?e.ownerDocument.body:fe(e)&&Ve(e)?e:Ce(we(e))}function Fe(e,t){var n;void 0===t&&(t=[]);var r=Ce(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ae(r),a=o?[i].concat(i.visualViewport||[],Ve(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Fe(we(a)))}function Be(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Re(e,t){return t===ee?Be(function(e){var t=ae(e),n=xe(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+He(e),y:s}}(e)):se(t)?function(e){var t=he(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Be(function(e){var t,n=xe(e),r=We(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=le(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=le(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+He(e),f=-r.scrollTop;return"rtl"===be(o||n).direction&&(s+=le(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}(xe(e)))}function Ue(e,t,n){var r="clippingParents"===t?function(e){var t=Fe(we(e)),n=["absolute","fixed"].indexOf(be(e).position)>=0&&fe(e)?Ee(e):e;return se(n)?t.filter((function(e){return se(e)&&ye(e,n)&&"body"!==ie(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Re(e,n);return t.top=le(r.top,t.top),t.right=de(r.right,t.right),t.bottom=de(r.bottom,t.bottom),t.left=le(r.left,t.left),t}),Re(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Xe(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?pe(o):null,a=o?ke(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case Y:t={x:s,y:n.y-r.height};break;case z:t={x:s,y:n.y+n.height};break;case G:t={x:n.x+n.width,y:f};break;case Z:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?Ae(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case K:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Q:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Ye(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,s=n.rootBoundary,f=void 0===s?ee:s,c=n.elementContext,u=void 0===c?te:c,p=n.altBoundary,l=void 0!==p&&p,d=n.padding,m=void 0===d?0:d,h=je("number"!=typeof m?m:Me(m,J)),v=u===te?"reference":te,y=e.rects.popper,b=e.elements[l?v:u],g=Ue(se(b)?b:b.contextElement||xe(e.elements.popper),a,f),x=he(e.elements.reference),w=Xe({reference:x,element:y,strategy:"absolute",placement:o}),O=Be(Object.assign({},y,w)),E=u===te?O:x,A={top:g.top-E.top+h.top,bottom:E.bottom-g.bottom+h.bottom,left:g.left-E.left+h.left,right:E.right-g.right+h.right},S=e.modifiersData.offset;if(u===te&&S){var j=S[o];Object.keys(A).forEach((function(e){var t=[G,z].indexOf(e)>=0?1:-1,n=[Y,z].indexOf(e)>=0?"y":"x";A[e]+=j[n]*t}))}return A}function ze(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=void 0===f?re:f,u=ke(r),p=u?s?ne:ne.filter((function(e){return ke(e)===u})):J,l=p.filter((function(e){return c.indexOf(e)>=0}));0===l.length&&(l=p,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=l.reduce((function(t,n){return t[n]=Ye(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[pe(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var Ge={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,m=void 0===d||d,h=n.allowedAutoPlacements,v=t.options.placement,y=pe(v),b=f||(y===v||!m?[Te(v)]:function(e){if(pe(e)===$)return[];var t=Te(e);return[qe(e),t,qe(t)]}(v)),g=[v].concat(b).reduce((function(e,n){return e.concat(pe(n)===$?ze(t,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,E=!0,A=g[0],S=0;S<g.length;S++){var j=g[S],M=pe(j),D=ke(j)===K,k=[Y,z].indexOf(M)>=0,N=k?"width":"height",L=Ye(t,{placement:j,boundary:u,rootBoundary:p,altBoundary:l,padding:c}),P=k?D?G:Z:D?z:Y;x[N]>w[N]&&(P=Te(P));var _=Te(P),T=[];if(i&&T.push(L[M]<=0),s&&T.push(L[P]<=0,L[_]<=0),T.every((function(e){return e}))){A=j,E=!1;break}O.set(j,T)}if(E)for(var I=function(e){var t=g.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},q=m?3:1;q>0;q--){if("break"===I(q))break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ze(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function $e(e){return[Y,G,z,Z].some((function(t){return e[t]>=0}))}var Je={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=re.reduce((function(e,n){return e[n]=function(e,t,n){var r=pe(e),o=[Z,Y].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Z,G].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],f=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var Ke={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,f=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,l=n.tether,d=void 0===l||l,m=n.tetherOffset,h=void 0===m?0:m,v=Ye(t,{boundary:f,rootBoundary:c,padding:p,altBoundary:u}),y=pe(t.placement),b=ke(t.placement),g=!b,x=Ae(y),w="x"===x?"y":"x",O=t.modifiersData.popperOffsets,E=t.rects.reference,A=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,j="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(O){if(i){var k,N="y"===x?Y:Z,L="y"===x?z:G,P="y"===x?"height":"width",_=O[x],T=_+v[N],I=_-v[L],q=d?-A[P]/2:0,W=b===K?E[P]:A[P],H=b===K?-A[P]:-E[P],V=t.elements.arrow,C=d&&V?ve(V):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[N],R=F[L],U=Se(0,E[P],C[P]),X=g?E[P]/2-q-U-B-j.mainAxis:W-U-B-j.mainAxis,$=g?-E[P]/2+q+U+R+j.mainAxis:H+U+R+j.mainAxis,J=t.elements.arrow&&Ee(t.elements.arrow),Q=J?"y"===x?J.clientTop||0:J.clientLeft||0:0,ee=null!=(k=null==M?void 0:M[x])?k:0,te=_+$-ee,ne=Se(d?de(T,_+X-ee-Q):T,_,d?le(I,te):I);O[x]=ne,D[x]=ne-_}if(s){var re,oe="x"===x?Y:Z,ie="x"===x?z:G,ae=O[w],se="y"===w?"height":"width",fe=ae+v[oe],ce=ae-v[ie],ue=-1!==[Y,Z].indexOf(y),me=null!=(re=null==M?void 0:M[w])?re:0,he=ue?fe:ae-E[se]-A[se]-me+j.altAxis,ye=ue?ae+E[se]+A[se]-me-j.altAxis:ce,be=d&&ue?function(e,t,n){var r=Se(e,t,n);return r>n?n:r}(he,ae,ye):Se(d?he:fe,ae,d?ye:ce);O[w]=be,D[w]=be-ae}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function Qe(e,t,n){void 0===n&&(n=!1);var r,o,i=fe(t),a=fe(t)&&function(e){var t=e.getBoundingClientRect(),n=me(t.width)/e.offsetWidth||1,r=me(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=xe(t),f=he(e,a),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==ie(t)||Ve(s))&&(c=(r=t)!==ae(r)&&fe(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:We(r)),fe(t)?((u=he(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=He(s))),{x:f.left+c.scrollLeft-u.x,y:f.top+c.scrollTop-u.y,width:f.width,height:f.height}}function et(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function tt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var nt='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',rt=["name","enabled","phase","fn","effect","requires","options"];var ot="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",it={placement:"bottom",modifiers:[],strategy:"absolute"};function at(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function st(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?it:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},it,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},f=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:se(e)?Fe(e):e.contextElement?Fe(e.contextElement):[],popper:Fe(t)};var a,c,l,d=function(e){var t=et(e);return oe.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));if(s.orderedModifiers=d.filter((function(e){return e.enabled})),"production"!==process.env.NODE_ENV){if(function(e){e.forEach((function(t){[].concat(Object.keys(t),rt).filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(tt(nt,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(tt(nt,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":oe.indexOf(t.phase)<0&&console.error(tt(nt,t.name,'"phase"',"either "+oe.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(tt(nt,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(tt(nt,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(tt(nt,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(tt(nt,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+rt.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(tt('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((a=[].concat(d,s.options.modifiers),c=function(e){return e.name},l=new Set,a.filter((function(e){var t=c(e);if(!l.has(t))return l.add(t),!0})))),pe(s.options.placement)===$)s.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "));var m=be(t);[m.marginTop,m.marginRight,m.marginBottom,m.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r}),a=function(){};f.push(i||a)}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(at(t,n)){s.rects={reference:Qe(t,Ee(n),"fixed"===s.options.strategy),popper:ve(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var i=s.orderedModifiers[o],a=i.fn,f=i.options,p=void 0===f?{}:f,l=i.name;"function"==typeof a&&(s=a({state:s,options:p,name:l,instance:u})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(ot)}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){p(),c=!0}};if(!at(e,t))return"production"!==process.env.NODE_ENV&&console.error(ot),u;function p(){f.forEach((function(e){return e()})),f=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var ft=st({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,f=ae(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,Pe)})),s&&f.addEventListener("resize",n.update,Pe),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Pe)})),s&&f.removeEventListener("resize",n.update,Pe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Xe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=be(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return c.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:pe(t.placement),variation:ke(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Le(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Le(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ue,Je,Ge,Ke,De,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ye(t,{elementContext:"reference"}),s=Ye(t,{altBoundary:!0}),f=Ze(a,r),c=Ze(s,o,i),u=$e(f),p=$e(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),ct={mounted:function(e,n){var r={arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,onShow:function(){},onHide:function(){}};"object"===X(n.value)?Object.assign(r,n.value):r.content=n.value;var o=r.disabled,i=r.arrow,a=r.theme;if(!o){var s=function(e,n,r){var o=t.bkZIndexManager.getPopperIndex(),i=document.createElement("div");if(i.className="bk-popper ".concat(r?"light":"dark"),i.innerText=e,i.style.zIndex=String(o),n){var a=function(){var e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}();i.appendChild(a)}return document.body.appendChild(i),i}(r.content,i,"light"===a);!function(e,t,n){var r=n.placement,o=n.distance,i=n.trigger,a=n.showOnInit,s=n.onShow,f=n.onHide,c=ft(e,t,{placement:r,modifiers:[{name:"offset",options:{offset:[0,o]}}]});if("hover"===i){var u=["mouseleave","blur"];["mouseenter","focus"].forEach((function(t){e.addEventListener(t,p)})),u.forEach((function(t){e.addEventListener(t,l)}))}else"click"===i&&document.body.addEventListener("click",(function(n){e.contains(n.target)&&!t.hasAttribute("data-show")?p():t.hasAttribute("data-show")&&l()}));a&&p();function p(){t.setAttribute("data-show",""),s(),c.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(R(e.modifiers),[{name:"eventListeners",enabled:!0}])})})),c.update()}function l(){t.removeAttribute("data-show"),f(),c.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(R(e.modifiers),[{name:"eventListeners",enabled:!1}])})}))}}(e,s,r)}}};e.bkTooltips=ct,e.clickoutside=q,e.mousewheel=N,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/input/index.d.ts
CHANGED
@@ -10,6 +10,7 @@ declare const BkInput: {
|
|
10
10
|
disabled: boolean;
|
11
11
|
readonly: boolean;
|
12
12
|
clearable: boolean;
|
13
|
+
behavior: string;
|
13
14
|
max: number;
|
14
15
|
min: number;
|
15
16
|
maxlength: number;
|
@@ -18,6 +19,7 @@ declare const BkInput: {
|
|
18
19
|
suffix: string;
|
19
20
|
showWordLimit: boolean;
|
20
21
|
showControl: boolean;
|
22
|
+
showClearOnlyHover: boolean;
|
21
23
|
precision: number;
|
22
24
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
23
25
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -61,6 +63,9 @@ declare const BkInput: {
|
|
61
63
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
62
64
|
default: number;
|
63
65
|
};
|
66
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
67
|
+
default: string;
|
68
|
+
};
|
64
69
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
65
70
|
default: boolean;
|
66
71
|
};
|
@@ -69,6 +74,11 @@ declare const BkInput: {
|
|
69
74
|
} & {
|
70
75
|
default: boolean;
|
71
76
|
};
|
77
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
78
|
+
default: boolean;
|
79
|
+
} & {
|
80
|
+
default: boolean;
|
81
|
+
};
|
72
82
|
precision: import("vue-types").VueTypeValidableDef<number> & {
|
73
83
|
default: number;
|
74
84
|
} & {
|
@@ -79,14 +89,18 @@ declare const BkInput: {
|
|
79
89
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
80
90
|
size: import("vue-types").VueTypeDef<string>;
|
81
91
|
}>> & {
|
92
|
+
onPaste?: (...args: any[]) => any;
|
82
93
|
onFocus?: (...args: any[]) => any;
|
83
94
|
onBlur?: (...args: any[]) => any;
|
84
95
|
onChange?: (...args: any[]) => any;
|
85
96
|
onInput?: (...args: any[]) => any;
|
86
97
|
onKeydown?: (...args: any[]) => any;
|
98
|
+
onKeypress?: (...args: any[]) => any;
|
99
|
+
onKeyup?: (...args: any[]) => any;
|
87
100
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
88
101
|
onClear?: (...args: any[]) => any;
|
89
|
-
|
102
|
+
onEnter?: (...args: any[]) => any;
|
103
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "prefix" | "type" | "placeholder" | "step" | "disabled" | "readonly" | "clearable" | "behavior" | "max" | "min" | "maxlength" | "prefixIcon" | "suffixIcon" | "suffix" | "showWordLimit" | "showControl" | "showClearOnlyHover" | "precision">;
|
90
104
|
$attrs: {
|
91
105
|
[x: string]: unknown;
|
92
106
|
};
|
@@ -98,7 +112,7 @@ declare const BkInput: {
|
|
98
112
|
}>;
|
99
113
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
100
114
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
101
|
-
$emit: (event: "input" | "focus" | "blur" | "change" | "keydown" | "clear" | "update:modelValue", ...args: any[]) => void;
|
115
|
+
$emit: (event: "input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter", ...args: any[]) => void;
|
102
116
|
$el: any;
|
103
117
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
104
118
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -142,6 +156,9 @@ declare const BkInput: {
|
|
142
156
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
143
157
|
default: number;
|
144
158
|
};
|
159
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
160
|
+
default: string;
|
161
|
+
};
|
145
162
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
146
163
|
default: boolean;
|
147
164
|
};
|
@@ -150,6 +167,11 @@ declare const BkInput: {
|
|
150
167
|
} & {
|
151
168
|
default: boolean;
|
152
169
|
};
|
170
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
171
|
+
default: boolean;
|
172
|
+
} & {
|
173
|
+
default: boolean;
|
174
|
+
};
|
153
175
|
precision: import("vue-types").VueTypeValidableDef<number> & {
|
154
176
|
default: number;
|
155
177
|
} & {
|
@@ -160,14 +182,18 @@ declare const BkInput: {
|
|
160
182
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
161
183
|
size: import("vue-types").VueTypeDef<string>;
|
162
184
|
}>> & {
|
185
|
+
onPaste?: (...args: any[]) => any;
|
163
186
|
onFocus?: (...args: any[]) => any;
|
164
187
|
onBlur?: (...args: any[]) => any;
|
165
188
|
onChange?: (...args: any[]) => any;
|
166
189
|
onInput?: (...args: any[]) => any;
|
167
190
|
onKeydown?: (...args: any[]) => any;
|
191
|
+
onKeypress?: (...args: any[]) => any;
|
192
|
+
onKeyup?: (...args: any[]) => any;
|
168
193
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
169
194
|
onClear?: (...args: any[]) => any;
|
170
|
-
|
195
|
+
onEnter?: (...args: any[]) => any;
|
196
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter")[], string, {
|
171
197
|
prefix: string;
|
172
198
|
type: string;
|
173
199
|
placeholder: string;
|
@@ -175,6 +201,7 @@ declare const BkInput: {
|
|
175
201
|
disabled: boolean;
|
176
202
|
readonly: boolean;
|
177
203
|
clearable: boolean;
|
204
|
+
behavior: string;
|
178
205
|
max: number;
|
179
206
|
min: number;
|
180
207
|
maxlength: number;
|
@@ -183,6 +210,7 @@ declare const BkInput: {
|
|
183
210
|
suffix: string;
|
184
211
|
showWordLimit: boolean;
|
185
212
|
showControl: boolean;
|
213
|
+
showClearOnlyHover: boolean;
|
186
214
|
precision: number;
|
187
215
|
}> & {
|
188
216
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -246,6 +274,9 @@ declare const BkInput: {
|
|
246
274
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
247
275
|
default: number;
|
248
276
|
};
|
277
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
278
|
+
default: string;
|
279
|
+
};
|
249
280
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
250
281
|
default: boolean;
|
251
282
|
};
|
@@ -254,6 +285,11 @@ declare const BkInput: {
|
|
254
285
|
} & {
|
255
286
|
default: boolean;
|
256
287
|
};
|
288
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
289
|
+
default: boolean;
|
290
|
+
} & {
|
291
|
+
default: boolean;
|
292
|
+
};
|
257
293
|
precision: import("vue-types").VueTypeValidableDef<number> & {
|
258
294
|
default: number;
|
259
295
|
} & {
|
@@ -264,13 +300,17 @@ declare const BkInput: {
|
|
264
300
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
265
301
|
size: import("vue-types").VueTypeDef<string>;
|
266
302
|
}>> & {
|
303
|
+
onPaste?: (...args: any[]) => any;
|
267
304
|
onFocus?: (...args: any[]) => any;
|
268
305
|
onBlur?: (...args: any[]) => any;
|
269
306
|
onChange?: (...args: any[]) => any;
|
270
307
|
onInput?: (...args: any[]) => any;
|
271
308
|
onKeydown?: (...args: any[]) => any;
|
309
|
+
onKeypress?: (...args: any[]) => any;
|
310
|
+
onKeyup?: (...args: any[]) => any;
|
272
311
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
273
312
|
onClear?: (...args: any[]) => any;
|
313
|
+
onEnter?: (...args: any[]) => any;
|
274
314
|
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
275
315
|
__isFragment?: never;
|
276
316
|
__isTeleport?: never;
|
@@ -317,6 +357,9 @@ declare const BkInput: {
|
|
317
357
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
318
358
|
default: number;
|
319
359
|
};
|
360
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
361
|
+
default: string;
|
362
|
+
};
|
320
363
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
321
364
|
default: boolean;
|
322
365
|
};
|
@@ -325,6 +368,11 @@ declare const BkInput: {
|
|
325
368
|
} & {
|
326
369
|
default: boolean;
|
327
370
|
};
|
371
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
372
|
+
default: boolean;
|
373
|
+
} & {
|
374
|
+
default: boolean;
|
375
|
+
};
|
328
376
|
precision: import("vue-types").VueTypeValidableDef<number> & {
|
329
377
|
default: number;
|
330
378
|
} & {
|
@@ -335,14 +383,18 @@ declare const BkInput: {
|
|
335
383
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
336
384
|
size: import("vue-types").VueTypeDef<string>;
|
337
385
|
}>> & {
|
386
|
+
onPaste?: (...args: any[]) => any;
|
338
387
|
onFocus?: (...args: any[]) => any;
|
339
388
|
onBlur?: (...args: any[]) => any;
|
340
389
|
onChange?: (...args: any[]) => any;
|
341
390
|
onInput?: (...args: any[]) => any;
|
342
391
|
onKeydown?: (...args: any[]) => any;
|
392
|
+
onKeypress?: (...args: any[]) => any;
|
393
|
+
onKeyup?: (...args: any[]) => any;
|
343
394
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
344
395
|
onClear?: (...args: any[]) => any;
|
345
|
-
|
396
|
+
onEnter?: (...args: any[]) => any;
|
397
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter")[], "input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter", {
|
346
398
|
prefix: string;
|
347
399
|
type: string;
|
348
400
|
placeholder: string;
|
@@ -350,6 +402,7 @@ declare const BkInput: {
|
|
350
402
|
disabled: boolean;
|
351
403
|
readonly: boolean;
|
352
404
|
clearable: boolean;
|
405
|
+
behavior: string;
|
353
406
|
max: number;
|
354
407
|
min: number;
|
355
408
|
maxlength: number;
|
@@ -358,6 +411,7 @@ declare const BkInput: {
|
|
358
411
|
suffix: string;
|
359
412
|
showWordLimit: boolean;
|
360
413
|
showControl: boolean;
|
414
|
+
showClearOnlyHover: boolean;
|
361
415
|
precision: number;
|
362
416
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
363
417
|
export default BkInput;
|
package/lib/input/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,o
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,r,o){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l={exports:{}},a={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}(a);var s={exports:{}};!function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,l=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(l.push(o.value),!t||l.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw n}}return l}},e.exports.__esModule=!0,e.exports.default=e.exports}(s);var u={exports:{}},i={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o},e.exports.__esModule=!0,e.exports.default=e.exports}(i),function(e){var t=i.exports;e.exports=function(e,r){if(e){if("string"==typeof e)return t(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,r):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(u);var p={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=a.exports,r=s.exports,o=u.exports,n=p.exports;e.exports=function(e,l){return t(e)||r(e,l)||o(e,l)||n()},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var c=n(l.exports),d={exports:{}};!function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(d);var f=n(d.exports);
|
2
2
|
/*! *****************************************************************************
|
3
3
|
Copyright (c) Microsoft Corporation.
|
4
4
|
|
@@ -12,4 +12,4 @@
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
15
|
-
***************************************************************************** */var
|
15
|
+
***************************************************************************** */var y={type:r.PropTypes.string.def("text"),clearable:r.PropTypes.bool,disabled:r.PropTypes.bool,readonly:r.PropTypes.bool,placeholder:r.PropTypes.string,prefixIcon:r.PropTypes.string,suffixIcon:r.PropTypes.string,suffix:r.PropTypes.string,prefix:r.PropTypes.string,step:r.PropTypes.integer,max:r.PropTypes.integer,min:r.PropTypes.integer,maxlength:r.PropTypes.integer,behavior:r.PropTypes.commonType(["simplicity","normal"]).def("normal"),showWordLimit:r.PropTypes.bool,showControl:r.PropTypes.bool.def(!0),showClearOnlyHover:r.PropTypes.bool.def(!1),precision:r.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.number]),size:r.PropTypes.size()},m=["update:modelValue","focus","blur","change","clear","input","keypress","keydown","keyup","enter","paste"],x=r.stringEnum([].concat(m)),v=t.defineComponent({name:"Input",inheritAttrs:!1,props:y,emits:[].concat(m),setup:function(e,n){var l=t.ref(!1),a=t.ref(!1),s="bk-input",u=n.attrs,i=u.class,p=u.style,d=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(u,["class","style"]),y=t.computed((function(){var t;return r.classes((f(t={},"".concat(s,"--").concat(e.size),!!e.size),f(t,"is-focused",l.value),f(t,"is-readonly",e.readonly),f(t,"is-disabled",e.disabled),f(t,"is-simplicity","simplicity"===e.behavior),f(t,"".concat(i),!!i),t),s)})),m={search:function(){return t.createVNode(o.Search,null,null)},password:function(){return t.createVNode(o.Eye,{onClick:D},null)}},v=K("suffix-icon"),b=t.computed((function(){var r=m[e.type];return P.value?t.createVNode(o.Unvisible,{onClick:D,class:v},null):r?t.createVNode(r,{class:v},null):null})),h=t.computed((function(){return"number"===e.type})),g=t.computed((function(){return Math.floor(e.maxlength)})),P=t.ref(!1),V=t.computed((function(){return r.classes({"show-clear-only-hover":e.showClearOnlyHover},v)}));function T(){n.emit(x["update:modelValue"],""),n.emit(x.change,""),n.emit(x.clear)}function w(e){l.value=!0,n.emit(x.focus,e)}function N(e){l.value=!1,n.emit(x.blur,e)}var O=[x.keyup,x.keydown,x.keypress,x.paste,x.change,x.input].map((function(e){return function(t){var r=e;("Enter"!==t.code&&"Enter"!==t.key&&13!==t.keyCode||(r=x.enter,t.type===x.keyup))&&(a.value&&[x.input,x.change].some((function(t){return e===t}))||(e===x.input&&n.emit(x["update:modelValue"],h.value?+t.target.value:t.target.value),n.emit(r,t.target.value,t)))}})),_=c(O,6),k=_[0],C=_[1],I=_[2],S=_[3],M=_[4],j=_[5];function A(){a.value=!0}function E(e){a.value=!1,j(e)}function z(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=parseInt(String(t),10),n=Number.isInteger(e.precision)?e.precision:0,l=parseFloat(e.modelValue.toString()),a=Number.isInteger(o)?o:1,s=l+(r?a:-1*a);return Number.isInteger(e.max)&&(s=Math.min(s,e.max)),Number.isInteger(e.min)&&(s=Math.max(s,e.min)),+s.toFixed(n)}function q(){var t=z(e.step);n.emit(x["update:modelValue"],t)}function F(){var t=z(e.step,!1);n.emit(x["update:modelValue"],t)}function K(e){return"".concat(s,"--").concat(e)}function D(){P.value=!P.value}return function(){var r,l,a,u,i,c;return t.createVNode("div",{class:y.value,style:p},[null!==(a=null===(l=null===(r=n.slots)||void 0===r?void 0:r.prefix)||void 0===l?void 0:l.call(r))&&void 0!==a?a:e.prefix&&t.createVNode("div",{class:K("prefix-area")},[t.createVNode("span",{class:K("prefix-area--text")},[e.prefix])]),t.createVNode("input",t.mergeProps(d,{class:"".concat(s,"--text"),value:e.modelValue,type:P.value&&"password"===e.type?"text":e.type,maxlength:e.maxlength,step:e.step,max:e.max,min:e.min,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled,onInput:j,onFocus:w,onBlur:N,onPaste:S,onChange:M,onKeypress:I,onKeydown:C,onKeyup:k,onCompositionstart:A,onCompositionend:E}),null),e.clearable&&!!e.modelValue&&t.createVNode(o.Close,{onClick:T,class:V.value},null),b.value,"number"==typeof e.maxlength&&e.showWordLimit&&t.createVNode("p",{class:K("max-length")},[e.modelValue.toString().length,t.createTextVNode("/"),t.createVNode("span",null,[g.value])]),h.value&&e.showControl&&t.createVNode("div",{class:K("number-control")},[t.createVNode(o.DownSmall,{onClick:q},null),t.createVNode(o.DownSmall,{onClick:F},null)]),null!==(c=null===(i=null===(u=n.slots)||void 0===u?void 0:u.suffix)||void 0===i?void 0:i.call(u))&&void 0!==c?c:e.suffix&&t.createVNode("div",{class:K("suffix-area")},[t.createVNode("span",{class:K("suffix-area--text")},[e.suffix])])])}}}),b=r.withInstall(v);e.default=b,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/input/input.css
CHANGED
@@ -28,6 +28,14 @@
|
|
28
28
|
border-radius: 2px;
|
29
29
|
transition: all 0.3s;
|
30
30
|
}
|
31
|
+
.bk-input:hover .show-clear-only-hover {
|
32
|
+
display: block;
|
33
|
+
}
|
34
|
+
.bk-input.is-simplicity {
|
35
|
+
background-color: transparent;
|
36
|
+
border-color: transparent;
|
37
|
+
border-bottom-color: #c4c6cc;
|
38
|
+
}
|
31
39
|
.bk-input--suffix-icon {
|
32
40
|
padding-right: 10px;
|
33
41
|
font-size: 16px;
|
@@ -35,6 +43,9 @@
|
|
35
43
|
color: #c4c6cc;
|
36
44
|
align-self: center;
|
37
45
|
}
|
46
|
+
.bk-input--suffix-icon.show-clear-only-hover {
|
47
|
+
display: none;
|
48
|
+
}
|
38
49
|
.bk-input--large {
|
39
50
|
height: 38px;
|
40
51
|
font-size: 16px;
|
@@ -48,6 +59,11 @@
|
|
48
59
|
outline: 0;
|
49
60
|
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
50
61
|
}
|
62
|
+
.bk-input.is-focused:not(.is-readonly).is-simplicity {
|
63
|
+
border-color: transparent;
|
64
|
+
border-bottom-color: #3a84ff;
|
65
|
+
box-shadow: none;
|
66
|
+
}
|
51
67
|
.bk-input.is-disabled {
|
52
68
|
cursor: not-allowed;
|
53
69
|
background-color: #fafbfd;
|
@@ -92,12 +108,12 @@
|
|
92
108
|
.bk-input--text[type='search']::-webkit-search-results-decoration {
|
93
109
|
appearance: none;
|
94
110
|
}
|
95
|
-
.bk-input--text [type=search]::-ms-clear {
|
111
|
+
.bk-input--text [type='search']::-ms-clear {
|
96
112
|
display: none;
|
97
113
|
width: 0;
|
98
114
|
height: 0;
|
99
115
|
}
|
100
|
-
.bk-input--text [type=search]::-ms-reveal {
|
116
|
+
.bk-input--text [type='search']::-ms-reveal {
|
101
117
|
display: none;
|
102
118
|
width: 0;
|
103
119
|
height: 0;
|
@@ -121,6 +137,7 @@
|
|
121
137
|
height: 50%;
|
122
138
|
overflow: hidden;
|
123
139
|
color: #c4c6cc;
|
140
|
+
text-align: center;
|
124
141
|
}
|
125
142
|
.bk-input--number-control svg {
|
126
143
|
font-size: 16px;
|
package/lib/input/input.d.ts
CHANGED
@@ -41,6 +41,9 @@ export declare const inputType: {
|
|
41
41
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
42
42
|
default: number;
|
43
43
|
};
|
44
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
45
|
+
default: string;
|
46
|
+
};
|
44
47
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
48
|
default: boolean;
|
46
49
|
};
|
@@ -49,6 +52,11 @@ export declare const inputType: {
|
|
49
52
|
} & {
|
50
53
|
default: boolean;
|
51
54
|
};
|
55
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
56
|
+
default: boolean;
|
57
|
+
} & {
|
58
|
+
default: boolean;
|
59
|
+
};
|
52
60
|
precision: import("vue-types").VueTypeValidableDef<number> & {
|
53
61
|
default: number;
|
54
62
|
} & {
|
@@ -102,6 +110,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
102
110
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
103
111
|
default: number;
|
104
112
|
};
|
113
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
114
|
+
default: string;
|
115
|
+
};
|
105
116
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
106
117
|
default: boolean;
|
107
118
|
};
|
@@ -110,6 +121,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
121
|
} & {
|
111
122
|
default: boolean;
|
112
123
|
};
|
124
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
125
|
+
default: boolean;
|
126
|
+
} & {
|
127
|
+
default: boolean;
|
128
|
+
};
|
113
129
|
precision: import("vue-types").VueTypeValidableDef<number> & {
|
114
130
|
default: number;
|
115
131
|
} & {
|
@@ -119,7 +135,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
119
135
|
};
|
120
136
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
121
137
|
size: import("vue-types").VueTypeDef<string>;
|
122
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "change" | "keydown" | "clear" | "update:modelValue")[], "input" | "focus" | "blur" | "change" | "keydown" | "clear" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
138
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter")[], "input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
123
139
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
124
140
|
default: string;
|
125
141
|
} & {
|
@@ -161,6 +177,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
161
177
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
162
178
|
default: number;
|
163
179
|
};
|
180
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
181
|
+
default: string;
|
182
|
+
};
|
164
183
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
165
184
|
default: boolean;
|
166
185
|
};
|
@@ -169,6 +188,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
169
188
|
} & {
|
170
189
|
default: boolean;
|
171
190
|
};
|
191
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
192
|
+
default: boolean;
|
193
|
+
} & {
|
194
|
+
default: boolean;
|
195
|
+
};
|
172
196
|
precision: import("vue-types").VueTypeValidableDef<number> & {
|
173
197
|
default: number;
|
174
198
|
} & {
|
@@ -179,13 +203,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
179
203
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
180
204
|
size: import("vue-types").VueTypeDef<string>;
|
181
205
|
}>> & {
|
206
|
+
onPaste?: (...args: any[]) => any;
|
182
207
|
onFocus?: (...args: any[]) => any;
|
183
208
|
onBlur?: (...args: any[]) => any;
|
184
209
|
onChange?: (...args: any[]) => any;
|
185
210
|
onInput?: (...args: any[]) => any;
|
186
211
|
onKeydown?: (...args: any[]) => any;
|
212
|
+
onKeypress?: (...args: any[]) => any;
|
213
|
+
onKeyup?: (...args: any[]) => any;
|
187
214
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
188
215
|
onClear?: (...args: any[]) => any;
|
216
|
+
onEnter?: (...args: any[]) => any;
|
189
217
|
}, {
|
190
218
|
prefix: string;
|
191
219
|
type: string;
|
@@ -194,6 +222,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
194
222
|
disabled: boolean;
|
195
223
|
readonly: boolean;
|
196
224
|
clearable: boolean;
|
225
|
+
behavior: string;
|
197
226
|
max: number;
|
198
227
|
min: number;
|
199
228
|
maxlength: number;
|
@@ -202,6 +231,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
202
231
|
suffix: string;
|
203
232
|
showWordLimit: boolean;
|
204
233
|
showControl: boolean;
|
234
|
+
showClearOnlyHover: boolean;
|
205
235
|
precision: number;
|
206
236
|
}>;
|
207
237
|
export default _default;
|