bkui-vue 0.0.1-beta.413 → 0.0.1-beta.415
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +48 -48
- package/dist/index.esm.js +88 -40
- package/dist/index.umd.js +48 -48
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/plugin-popover/index.js +1 -1
- package/lib/popover/index.d.ts +33 -1
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.d.ts +14 -0
- package/lib/popover/props.d.ts +5 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio.css +118 -0
- package/lib/radio/radio.less +159 -0
- package/lib/radio/radio.variable.css +118 -0
- package/lib/select/index.d.ts +15 -0
- package/lib/select/select.d.ts +5 -0
- package/lib/shared/index.js +1 -1
- package/lib/styles/index.d.ts +0 -1
- package/lib/table/components/table-column.d.ts +46 -1
- package/lib/table/index.d.ts +138 -3
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/settings.css +2 -0
- package/lib/table/plugins/settings.less +2 -0
- package/lib/table/plugins/settings.variable.css +2 -0
- package/lib/table/table.css +2 -0
- package/lib/table/table.variable.css +2 -0
- package/lib/table/use-column.d.ts +1 -1
- package/lib/table-column/index.d.ts +138 -3
- package/lib/table-column/index.js +1 -1
- package/lib/tag-input/index.d.ts +20 -0
- package/lib/tag-input/tag-input.d.ts +10 -0
- package/lib/tag-input/tag-props.d.ts +5 -0
- package/package.json +1 -1
- package/lib/radio/radio-button.css +0 -118
- package/lib/radio/radio-button.less +0 -161
- package/lib/radio/radio-button.variable.css +0 -238
package/lib/shared/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@popperjs/core"),require("lodash"),require("vue-types"),require("vue"));else if("function"==typeof define&&define.amd)define(["@popperjs/core","lodash","vue-types","vue"],t);else{var n="object"==typeof exports?t(require("@popperjs/core"),require("lodash"),require("vue-types"),require("vue")):t(e["@popperjs/core"],e.lodash,e["vue-types"],e.vue);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r)=>(()=>{var i={8022:(e,t,n)=>{var r=n(4481),i=n(6426),o=i;o.v1=r,o.v4=i,e.exports=o},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},4481:(e,t,n)=>{var r,i,o=n(9157),s=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],p=(e=e||{}).node||r,f=void 0!==e.clockseq?e.clockseq:i;if(null==p||null==f){var d=o();null==p&&(p=r=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==f&&(f=i=16383&(d[6]<<8|d[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,y=h-a+(v-u)/1e4;if(y<0&&void 0===e.clockseq&&(f=f+1&16383),(y<0||h>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,u=v,i=f;var g=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var b=0;b<6;++b)l[c+b]=p[b];return t||s(l)}},6426:(e,t,n)=>{var r=n(9157),i=n(8725);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},5798:t=>{"use strict";t.exports=e},467:e=>{"use strict";e.exports=t},748:e=>{"use strict";e.exports=r},210:e=>{"use strict";e.exports=n}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i,o;s.r(a),s.d(a,{AlignEnum:()=>X,BKLAYERD_INDEX_EFAULT_VALUE:()=>u,BKLAYERTYPE:()=>o,BKPopIndexManager:()=>z,BKPopover:()=>R,BkMaskManager:()=>V,DialogTypeEnum:()=>re,DirectionEnum:()=>ie,EMPTY_OBJ:()=>Re,InputBehaviorEnum:()=>ae,InputBehaviorType:()=>be,LineStyleEnum:()=>oe,PlacementEnum:()=>ee,Placements:()=>J,PropTypes:()=>Te,RenderDirectiveEnum:()=>$,RenderType:()=>ne,SizeEnum:()=>Z,TagThemeEnum:()=>se,TagThemeType:()=>me,ThemeEnum:()=>Q,TriggerEnum:()=>te,alignType:()=>pe,arrayEqual:()=>Ve,bKMaskManager:()=>B,bkPopIndexManager:()=>q,bkZIndexManager:()=>c,capitalize:()=>_,checkOverflow:()=>H,classes:()=>Me,clone:()=>I,debounce:()=>_e,dialogTypeUnion:()=>ve,directionType:()=>ye,elementsEqual:()=>O,filterProperty:()=>He,finiteOrDefault:()=>k,formItemKey:()=>Ee,formKey:()=>Ie,getPopContainerId:()=>N,hasOverflowEllipsis:()=>L,isArray:()=>g,isElement:()=>P,isEmpty:()=>y,isEmptyObj:()=>Ce,isFinite:()=>b,isNullOrUndef:()=>v,isObject:()=>m,lineStyleType:()=>ge,maybeShowTooltip:()=>M,merge:()=>w,mergeIf:()=>x,mergerFn:()=>S,mergerIfFn:()=>A,noop:()=>je,observerResize:()=>F,off:()=>Pe,on:()=>Ae,placementType:()=>fe,random:()=>U,renderDirectiveType:()=>le,renderEmptyVNode:()=>Ne,renderType:()=>he,resolveClassName:()=>Fe,scrollTop:()=>Le,scrollbarWidth:()=>Oe,stringEnum:()=>ce,triggerType:()=>de,useForm:()=>we,useFormItem:()=>xe,valueOrDefault:()=>T,withInstall:()=>De,withInstallProps:()=>Ue}),function(e){e.BOTTOM="bottom",e.CONTENT="content",e.NAVI="navi",e.FULLSCREEN="fullScreen",e.PLUGINS="plugins",e.MODAL="modal",e.MESSAGE="message",e.POPPER="popper"}(o||(o={}));var u=(r(i={},o.BOTTOM,0),r(i,o.CONTENT,1),r(i,o.NAVI,100),r(i,o.FULLSCREEN,1e3),r(i,o.MODAL,3e3),r(i,o.PLUGINS,8e3),r(i,o.MESSAGE,1e4),r(i,o.POPPER,99999),i),c=new(function(){function t(){e(this,t),this.storageLayerIndexValue={},this.copyDefaultValue()}return n(t,[{key:"getNextIndex",value:function(e){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,e)?(this.storageLayerIndexValue[e]=this.storageLayerIndexValue[e]+1,this.storageLayerIndexValue[e]):(this.storageLayerIndexValue[o.MODAL]=this.storageLayerIndexValue[o.MODAL]+1,this.storageLayerIndexValue[o.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(o.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(o.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(o.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(o.NAVI)}},{key:"getPopperIndex",value:function(){return u.popper}},{key:"setDefaultZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue.__proto__,n)&&Object.assign(t.storageLayerIndexValue.__proto__,r({},n,e[n]))})),this.copyDefaultValue()}},{key:"resetZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue,n)&&Object.assign(t.storageLayerIndexValue,r({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(u).reduce((function(e,t){return Object.assign(e,r({},t,{value:u[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(u,e)}}]),t}());function l(e){return l="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},l(e)}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}function f(e){return function(e){if(Array.isArray(e))return p(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 p(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)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=s(8022),h=s(5798);function v(e){return null==e}function y(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""===e||!!t&&v(e)}function g(e){if(Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function m(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var b=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function k(e,t){return b(e)?e:t}function T(e,t){return void 0===e?t:e}function O(e,t){var n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function I(e){if(g(e))return e.map(I);if(m(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=I(e[n[i]]);return t}return e}function E(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function S(e,t,n,r){if(E(e)){var i=t[e],o=n[e];m(i)&&m(o)?w(i,o,r):t[e]=I(o)}}function w(e,t,n){var r=g(t)?t:[t],i=r.length;if(!m(e))return e;for(var o=(n=n||{}).merger||S,s=0;s<i;++s)if(m(t=r[s]))for(var a=Object.keys(t),u=0,c=a.length;u<c;++u)o(a[u],e,t,n);return e}function x(e,t){return w(e,t,{merger:A})}function A(e,t,n){if(E(e)){var r=t[e],i=n[e];m(r)&&m(i)?x(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=I(i))}}function P(e){try{return e instanceof HTMLElement}catch(t){return"object"===l(e)&&1===e.nodeType&&"object"===l(e.style)&&"object"===l(e.ownerDocument)}}function L(e){return e.offsetWidth<e.scrollWidth||e.offsetHeight<e.scrollHeight}function M(e,t){L(e)?e.setAttribute("title",t):e.removeAttribute("title")}var R=function(){function t(n,r,i){var o,s;e(this,t),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.always=!1,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(n),this.popperRefer=this.resolveInputSelectorToHtmlElement(r),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(o=this.popperRefer)||void 0===o?void 0:o.parentElement,this.isShow=!!(null===(s=this.instanceOptions)||void 0===s?void 0:s.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof i.afterHidden?i.afterHidden:function(){},this.afterShow="function"==typeof i.afterShow?i.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}return n(t,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(f(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!0}])}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}},{key:"hide",value:function(){var e;this.always||(null===(e=this.popperRefer)||void 0===e||e.removeAttribute("data-show"),this.setOptions({modifiers:[].concat(f(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!1}])}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}},{key:"restorePopContent",value:function(){var e=this.getAppendToTarget();P(e)&&e.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}},{key:"appendToTarget",value:function(){var e=this.getAppendToTarget();P(e)&&e.contains(this.popperRefer)&&e.append(this.popperRefer)}},{key:"getAppendToTarget",value:function(){var e=this.appendTo,t=e;return"parent"!==e&&"string"==typeof e&&(t=document.querySelector(e)),t}},{key:"initDefaultOptions",value:function(e){var t=this,n=w({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),r=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof r&&(r.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=(0,h.createPopper)(this.referenceTarget,this.popperRefer,this.instanceOptions),null===(e=this.popperRefer)||void 0===e||e.setAttribute("data-theme",null!==(t=this.instanceOptions.theme)&&void 0!==t?t:"dark")):console.error("reference or popperRefer is null, please check html element."))}},{key:"resolveInputSelectorToHtmlElement",value:function(e){if(this.isElement(e))return e;if("string"==typeof e)return document.querySelector(e);if("object"===l(e)){if(Object.prototype.hasOwnProperty.call(e,"getBoundingClientRect"))return e}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}},{key:"isElement",value:function(e){return P(e)}},{key:"registerEvents",value:function(){var e=this;this.isElement(this.referenceTarget)&&"hover"===this.trigger&&(["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))),"click"===this.trigger&&["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):!e.isShow||e.isSameElement(t.target,e.popperRefer)||e.popperRefer.contains(t.target)||e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),t}(),j=null,N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#";if(null===j){j="id_".concat((0,d.v4)());var t=document.createElement("div");t.setAttribute("id",j),t.setAttribute("data-popper-id",j),document.body.append(t)}return"".concat(e).concat(j)},C=s(467),D="abcdefghijklmnopqrstuvwxyz0123456789",U=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D,n="",r=0;r<e;r++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},F=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=(0,C.throttle)((function(){"function"==typeof t&&t()}),n),o=new ResizeObserver((function(){i()}));return r&&"function"==typeof t&&t(),{start:function(){o.observe(e)},stop:function(){o.disconnect(),o.unobserve(e)}}},_=function(e){return e[0].toUpperCase()+e.slice(1)};function H(e){if(!e)return!1;var t=!1;try{var n=window.getComputedStyle(e,null);if("none"!==n.webkitLineClamp){var r=parseFloat(n.height),i=function(e,t){var n=document.createElement("div"),r=parseFloat(t.width)?"".concat(Math.ceil(parseFloat(t.width)),"px"):t.width;return n.style.cssText="\n width: ".concat(r,";\n line-height: ").concat(t["line-height"],";\n font-size: ").concat(t["font-size"],";\n word-break: ").concat(t["word-break"],";\n padding: ").concat(t.padding,";\n "),n.textContent=e.textContent,n}(e,n);document.body.appendChild(i);var o=window.getComputedStyle(i,null).height;document.body.removeChild(i),t=r<parseFloat(o)}else t=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(e){console.warn("There is an error when check element overflow state: ",e)}return t}var V=function(){function t(n){e(this,t),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"absolute",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"};var r=n||{},i=r.multiInstance,o=void 0!==i&&i,s=r.maskAttrTag,a=void 0===s?"auto":s,u=r.parentNode,c=void 0===u?document.body:u,l=r.maskStyle,p=void 0===l?{}:l,f=r.onClick,d=void 0===f?null:f;this.onClick=d,this.activeInstance=void 0,this.multiInstance=o,this.uniqueMaskAttrTag=this.getMaskAttrTag(a),this.parentNode=c||document,this.mask=this.getMask(),this.backupMask=this.createMask("data-bk-backup-uid"),this.setMaskStyle(Object.assign({},this.maskStyle,p))}return n(t,[{key:"setOption",value:function(e){var t=e||{},n=t.parentNode,r=void 0===n?document.body:n,i=t.maskStyle,o=void 0===i?{}:i,s=t.onClick,a=void 0===s?null:s;this.onClick=a,this.parentNode=r||document,this.setMaskStyle(Object.assign({},this.maskStyle,o))}},{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=null!=i?i:U(16),a=/-?\d+/.test("".concat(t))?t:c.getModalNextIndex(),u=Object.assign({},this.maskStyle,r||{});if(!n&&this.lastUUID){var l=this.zIndexStore.get(this.lastUUID);u=l.style}this.storeMaskInsCfg({zIndex:a,style:Object.assign({},u),uuid:s,preUID:this.lastUUID}),this.setMaskStyle(u),this.mask.style.setProperty("display","block"),this.mask.style.setProperty("z-index","".concat(a)),this.mask.style.setProperty("pointer-events","all"),this.backupMask.style.setProperty("z-index","".concat(a-1)),n||(this.mask.style.setProperty("pointer-events","none"),null==e||e.style.setProperty("pointer-events","all")),e&&(o&&e.style.setProperty("z-index","".concat(a+1)),this.activeInstance=e,o||this.appendContentToMask(e))}},{key:"hide",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=null!=r?r:this.lastUUID;this.mask.style.setProperty("display","none"),t||(null==n||n.remove(),null===(e=this.activeInstance)||void 0===e||e.remove()),this.activeInstance=void 0,this.popIndexStore(i)}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){e&&this.backupMask.append(e)}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"getMask",value:function(){var e=this;if(this.multiInstance)return this.createMask();var t=this.parentNode.querySelector("[data-bkmask-uid='".concat(this.uniqueMaskAttrTag,"']"));return t||(t=this.createMask()).addEventListener("click",(function(n){n.target===t&&"function"==typeof e.onClick&&Reflect.apply(e.onClick,e,[n])}),!0),t}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?"__bk_mask_".concat(U(16)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),t}(),B=new V({}),z=function(){function t(){var n=this;e(this,t),this.getActiveClickFnIndex=function(e){return n.clickFn.findIndex((function(t){return r=t.target,"string"==typeof e?r.getAttribute(n.uuidAttrName)===e:r===e;var r}))},this.getActiveClickFn=function(e){var t;return null===(t=n.clickFn[n.getActiveClickFnIndex(e)])||void 0===t?void 0:t.fn},this.popInstanceList=[],this.clickFn=[],this.uuidAttrName="data-bk-pop-uuid",this.activePopId=null,B.setOption({onClick:this.onMaskClickFn.bind(this)})}return n(t,[{key:"onMaskClick",value:function(e,t){this.clickFn.push({fn:e,target:t})}},{key:"show",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;if(e){var o="number"==typeof i?i:c.getModalNextIndex(),s=U(16);e.setAttribute(this.uuidAttrName,s),this.popInstanceList.push({uuid:s,zIndex:o,content:e,showMask:t,appendStyle:n}),t&&B.backupActiveInstance(),B.show(e,o,t,n,s,r),this.activePopId=s}else console.warn("pop show error: content is null or undefined")}},{key:"destroy",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getActiveClickFnIndex(e);r>=0&&(null===(t=this.clickFn)||void 0===t||t.splice(r,1)),this.hide(e,n)}},{key:"popHide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.popInstanceList.length){if(e){var t=this.popInstanceList.pop();B.popIndexStore(t.uuid),t.remove(),this.activePopId=null}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],r=n.zIndex,i=n.content,o=n.showMask,s=n.appendStyle,a=n.uuid;B.show(i,r,o,s,a),this.activePopId=a}else B.hide(),this.activePopId=null,this.clickFn.length=0}}},{key:"hide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null==e?void 0:e.getAttribute(this.uuidAttrName);if(n){var r=this.popInstanceList.findIndex((function(e){return e.uuid===n}));r>=0&&(t||this.popInstanceList[r].content.remove(),this.popInstanceList.splice(r,1),B.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):(B.hide(t),this.activePopId=null,this.clickFn.length=0))}else null==e||e.remove()}},{key:"onMaskClickFn",value:function(e){var t=this.getActiveClickFn(this.activePopId);t&&Reflect.apply(t,this,[e])}}]),t}(),q=new z;function G(e,t){return G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},G(e,t)}function W(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},K(e)}var Y=s(210);var Z,J,$,X,Q,ee,te,ne,re,ie,oe,se,ae,ue=(0,Y.createTypes)({});function ce(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}function le(){return(0,Y.toType)("renderDirective",{default:$.SHOW})}function pe(){return(0,Y.toType)("align",{default:X.LEFT}).def(X.LEFT)}function fe(){return(0,Y.toType)("placement",{}).def(ee.BOTTOM)}function de(){return(0,Y.toType)("trigger",{}).def(te.HOVER)}function he(){return(0,Y.toType)("popRenderType",{}).def(ne.SHOWN)}function ve(){return(0,Y.toType)("dialogType",{default:re.OPERATION})}function ye(){return(0,Y.toType)("direction",{}).def(ie.HORIZONTAL)}function ge(){return(0,Y.toType)("lineType",{}).def(oe.DASHED)}function me(){return(0,Y.toType)("tagTheme",{}).def()}function be(){return(0,Y.toType)("behavior",{}).def(ae.NORMAL)}!function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(Z||(Z={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(J||(J={})),function(e){e.IF="if",e.SHOW="show"}($||($={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(X||(X={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(Q||(Q={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(ee||(ee={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(te||(te={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(ne||(ne={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(re||(re={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(ie||(ie={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(oe||(oe={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(se||(se={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(ae||(ae={}));var ke,Te=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}(s,t);var r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=K(r);if(i){var n=K(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return W(this,e)});function s(){return e(this,s),o.apply(this,arguments)}return n(s,null,[{key:"size",value:function(){var e=["small","default","large"];return(0,Y.toType)("Size",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))},default:"default"})}},{key:"theme",value:function(){var e=["primary","warning","success","danger"];return(0,Y.toType)("Theme",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))}})}},{key:"placement",value:function(){var e=["top","left","right","bottom"];return(0,Y.toType)("Placements",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid placements, ".concat(t,", the placement must be one of 【").concat(e.join(" | "),"】")),1))},default:"top"})}},{key:"style",value:function(){return(0,Y.toType)("Style",{type:[String,Object]})}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top-left","top-right","bottom-left","bottom-right"];return(0,Y.toType)("positions",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid positions, ".concat(t,", the position must be one of 【").concat(e.join(" | "),"】")),1))},default:"top-center"})}}]),s}(ue);function Oe(){if(void 0!==ke)return ke;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),ke=t-r}var Ie=Symbol("form"),Ee=Symbol("formItem"),Se=s(748),we=function(){return(0,Se.inject)(Ie)},xe=function(){return(0,Se.inject)(Ee,void 0)},Ae=document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!0)}:function(e,t,n){e&&t&&n&&e.attachEvent("on".concat(t),n)},Pe=document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!0)}:function(e,t,n){e&&t&&e.detachEvent("on".concat(t),n)};function Le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,i=arguments.length>4?arguments[4]:void 0,o=Math.abs(t-n),s=Math.ceil(o/r*50);function a(t,n,r){if(t!==n){var o=t+r>n?n:t+r;t>n&&(o=t-r<n?n:t-r),e===window?window.scrollTo(o,o):e.scrollTop=o,window.requestAnimationFrame((function(){return a(o,n,r)}))}else null==i||i()}a(t,n,s)}function Me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).filter((function(e){return e[1]})).map((function(e){return e[0]})).join(" ").concat(t?" ".concat(t):"")}var Re=Object.create({}),je=function(){},Ne=function(){return null},Ce=function(e){return Object.keys(e).length<1},De=function(e){return e.install=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.prefix,i=t.config.globalProperties.bkUIPrefix||r||"Bk";t.component(i+e.name,e)},e},Ue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.install=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.prefix,s=r.config.globalProperties.bkUIPrefix||o||"Bk";r.component(s+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(s+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e};function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk";return"".concat(t,"-").concat(e)}function _e(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=function(){var o=this,s=arguments;if(e&&clearTimeout(e),i){var a=!e;e=setTimeout((function(){e=null}),n),a&&(t=r.apply(o,s))}else e=setTimeout((function(){r.apply(o,s)}),n);return t};return o.cancel=function(){clearTimeout(e),e=null},o}function He(e,t){return JSON.parse(JSON.stringify(e,(function(e,n){if(!t.includes(e))return n})))}function Ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){if(Array.isArray(e[n]))return Ve(e[n],t[n]);if(e[n]!==t[n])return!1}return!0}})(),a})()));
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@popperjs/core"),require("lodash"),require("vue-types"),require("vue"));else if("function"==typeof define&&define.amd)define(["@popperjs/core","lodash","vue-types","vue"],t);else{var n="object"==typeof exports?t(require("@popperjs/core"),require("lodash"),require("vue-types"),require("vue")):t(e["@popperjs/core"],e.lodash,e["vue-types"],e.vue);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r)=>(()=>{var i={8022:(e,t,n)=>{var r=n(4481),i=n(6426),o=i;o.v1=r,o.v4=i,e.exports=o},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},4481:(e,t,n)=>{var r,i,o=n(9157),s=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],p=(e=e||{}).node||r,f=void 0!==e.clockseq?e.clockseq:i;if(null==p||null==f){var d=o();null==p&&(p=r=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==f&&(f=i=16383&(d[6]<<8|d[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,y=h-a+(v-u)/1e4;if(y<0&&void 0===e.clockseq&&(f=f+1&16383),(y<0||h>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,u=v,i=f;var g=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var b=0;b<6;++b)l[c+b]=p[b];return t||s(l)}},6426:(e,t,n)=>{var r=n(9157),i=n(8725);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},5798:t=>{"use strict";t.exports=e},467:e=>{"use strict";e.exports=t},748:e=>{"use strict";e.exports=r},210:e=>{"use strict";e.exports=n}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i,o;s.r(a),s.d(a,{AlignEnum:()=>X,BKLAYERD_INDEX_EFAULT_VALUE:()=>u,BKLAYERTYPE:()=>o,BKPopIndexManager:()=>z,BKPopover:()=>R,BkMaskManager:()=>V,DialogTypeEnum:()=>re,DirectionEnum:()=>ie,EMPTY_OBJ:()=>Re,InputBehaviorEnum:()=>ae,InputBehaviorType:()=>be,LineStyleEnum:()=>oe,PlacementEnum:()=>ee,Placements:()=>J,PropTypes:()=>Te,RenderDirectiveEnum:()=>$,RenderType:()=>ne,SizeEnum:()=>Z,TagThemeEnum:()=>se,TagThemeType:()=>me,ThemeEnum:()=>Q,TriggerEnum:()=>te,alignType:()=>pe,arrayEqual:()=>Ve,bKMaskManager:()=>B,bkPopIndexManager:()=>q,bkZIndexManager:()=>c,capitalize:()=>_,checkOverflow:()=>H,classes:()=>Me,clone:()=>I,debounce:()=>_e,dialogTypeUnion:()=>ve,directionType:()=>ye,elementsEqual:()=>O,filterProperty:()=>He,finiteOrDefault:()=>k,formItemKey:()=>Ee,formKey:()=>Ie,getPopContainerId:()=>N,hasOverflowEllipsis:()=>L,isArray:()=>g,isElement:()=>P,isEmpty:()=>y,isEmptyObj:()=>Ce,isFinite:()=>b,isNullOrUndef:()=>v,isObject:()=>m,lineStyleType:()=>ge,maybeShowTooltip:()=>M,merge:()=>w,mergeIf:()=>x,mergerFn:()=>S,mergerIfFn:()=>A,noop:()=>je,observerResize:()=>F,off:()=>Pe,on:()=>Ae,placementType:()=>fe,random:()=>U,renderDirectiveType:()=>le,renderEmptyVNode:()=>Ne,renderType:()=>he,resolveClassName:()=>Fe,scrollTop:()=>Le,scrollbarWidth:()=>Oe,stringEnum:()=>ce,triggerType:()=>de,useForm:()=>we,useFormItem:()=>xe,valueOrDefault:()=>T,withInstall:()=>De,withInstallProps:()=>Ue}),function(e){e.BOTTOM="bottom",e.CONTENT="content",e.NAVI="navi",e.FULLSCREEN="fullScreen",e.PLUGINS="plugins",e.MODAL="modal",e.MESSAGE="message",e.POPPER="popper"}(o||(o={}));var u=(r(i={},o.BOTTOM,0),r(i,o.CONTENT,1),r(i,o.NAVI,100),r(i,o.FULLSCREEN,1e3),r(i,o.MODAL,3e3),r(i,o.PLUGINS,8e3),r(i,o.MESSAGE,1e4),r(i,o.POPPER,99999),i),c=new(function(){function t(){e(this,t),this.storageLayerIndexValue={},this.copyDefaultValue()}return n(t,[{key:"getNextIndex",value:function(e){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,e)?(this.storageLayerIndexValue[e]=this.storageLayerIndexValue[e]+1,this.storageLayerIndexValue[e]):(this.storageLayerIndexValue[o.MODAL]=this.storageLayerIndexValue[o.MODAL]+1,this.storageLayerIndexValue[o.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(o.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(o.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(o.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(o.NAVI)}},{key:"getPopperIndex",value:function(){return u.popper}},{key:"setDefaultZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue.__proto__,n)&&Object.assign(t.storageLayerIndexValue.__proto__,r({},n,e[n]))})),this.copyDefaultValue()}},{key:"resetZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue,n)&&Object.assign(t.storageLayerIndexValue,r({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(u).reduce((function(e,t){return Object.assign(e,r({},t,{value:u[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(u,e)}}]),t}());function l(e){return l="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},l(e)}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}function f(e){return function(e){if(Array.isArray(e))return p(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 p(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)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=s(8022),h=s(5798);function v(e){return null==e}function y(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""===e||!!t&&v(e)}function g(e){if(Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function m(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var b=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function k(e,t){return b(e)?e:t}function T(e,t){return void 0===e?t:e}function O(e,t){var n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function I(e){if(g(e))return e.map(I);if(m(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=I(e[n[i]]);return t}return e}function E(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function S(e,t,n,r){if(E(e)){var i=t[e],o=n[e];m(i)&&m(o)?w(i,o,r):t[e]=I(o)}}function w(e,t,n){var r=g(t)?t:[t],i=r.length;if(!m(e))return e;for(var o=(n=n||{}).merger||S,s=0;s<i;++s)if(m(t=r[s]))for(var a=Object.keys(t),u=0,c=a.length;u<c;++u)o(a[u],e,t,n);return e}function x(e,t){return w(e,t,{merger:A})}function A(e,t,n){if(E(e)){var r=t[e],i=n[e];m(r)&&m(i)?x(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=I(i))}}function P(e){try{return e instanceof HTMLElement}catch(t){return"object"===l(e)&&1===e.nodeType&&"object"===l(e.style)&&"object"===l(e.ownerDocument)}}function L(e){return e.offsetWidth<e.scrollWidth||e.offsetHeight<e.scrollHeight}function M(e,t){L(e)?e.setAttribute("title",t):e.removeAttribute("title")}var R=function(){function t(n,r,i){var o,s;e(this,t),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.always=!1,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(n),this.popperRefer=this.resolveInputSelectorToHtmlElement(r),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(o=this.popperRefer)||void 0===o?void 0:o.parentElement,this.isShow=!!(null===(s=this.instanceOptions)||void 0===s?void 0:s.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof i.afterHidden?i.afterHidden:function(){},this.afterShow="function"==typeof i.afterShow?i.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}return n(t,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(f(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!0}])}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}},{key:"hide",value:function(){var e;this.always||(null===(e=this.popperRefer)||void 0===e||e.removeAttribute("data-show"),this.setOptions({modifiers:[].concat(f(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!1}])}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}},{key:"restorePopContent",value:function(){var e=this.getAppendToTarget();P(e)&&e.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}},{key:"appendToTarget",value:function(){var e=this.getAppendToTarget();P(e)&&e.contains(this.popperRefer)&&e.append(this.popperRefer)}},{key:"getAppendToTarget",value:function(){var e=this.appendTo,t=e;return"parent"!==e&&"string"==typeof e&&(t=document.querySelector(e)),t}},{key:"initDefaultOptions",value:function(e){var t=this,n=w({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),r=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof r&&(r.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=(0,h.createPopper)(this.referenceTarget,this.popperRefer,this.instanceOptions),null===(e=this.popperRefer)||void 0===e||e.setAttribute("data-theme",null!==(t=this.instanceOptions.theme)&&void 0!==t?t:"dark")):console.error("reference or popperRefer is null, please check html element."))}},{key:"resolveInputSelectorToHtmlElement",value:function(e){if(this.isElement(e))return e;if("string"==typeof e)return document.querySelector(e);if("object"===l(e)){if(Object.prototype.hasOwnProperty.call(e,"getBoundingClientRect"))return e}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}},{key:"isElement",value:function(e){return P(e)}},{key:"registerEvents",value:function(){var e=this;this.isElement(this.referenceTarget)&&"hover"===this.trigger&&(["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))),"click"===this.trigger&&["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):!e.isShow||e.isSameElement(t.target,e.popperRefer)||e.popperRefer.contains(t.target)||e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),t}(),j=null,N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#";if(null===j){j="id_".concat((0,d.v4)());var t=document.createElement("div");t.setAttribute("id",j),t.setAttribute("data-popper-id",j),document.body.append(t)}return"".concat(e).concat(j)},C=s(467),D="abcdefghijklmnopqrstuvwxyz0123456789",U=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D,n="",r=0;r<e;r++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},F=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=(0,C.throttle)((function(){"function"==typeof t&&t()}),n),o=new ResizeObserver((function(){i()}));return r&&"function"==typeof t&&t(),{start:function(){o.observe(e)},stop:function(){o.disconnect(),o.unobserve(e)}}},_=function(e){return e[0].toUpperCase()+e.slice(1)};function H(e){if(!e)return!1;var t=!1;try{var n=window.getComputedStyle(e,null);if("none"!==n.webkitLineClamp){var r=parseFloat(n.height),i=function(e,t){var n=document.createElement("div"),r=parseFloat(t.width)?"".concat(Math.ceil(parseFloat(t.width)),"px"):t.width;return n.style.cssText="\n width: ".concat(r,";\n line-height: ").concat(t["line-height"],";\n font-size: ").concat(t["font-size"],";\n word-break: ").concat(t["word-break"],";\n padding: ").concat(t.padding,";\n "),n.textContent=e.textContent,n}(e,n);document.body.appendChild(i);var o=window.getComputedStyle(i,null).height;document.body.removeChild(i),t=r<parseFloat(o)}else t=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(e){console.warn("There is an error when check element overflow state: ",e)}return t}var V=function(){function t(n){e(this,t),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"fixed",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"};var r=n||{},i=r.multiInstance,o=void 0!==i&&i,s=r.maskAttrTag,a=void 0===s?"auto":s,u=r.parentNode,c=void 0===u?document.body:u,l=r.maskStyle,p=void 0===l?{}:l,f=r.onClick,d=void 0===f?null:f;this.onClick=d,this.activeInstance=void 0,this.multiInstance=o,this.uniqueMaskAttrTag=this.getMaskAttrTag(a),this.parentNode=c||document,this.mask=this.getMask(),this.backupMask=this.createMask("data-bk-backup-uid"),this.setMaskStyle(Object.assign({},this.maskStyle,p))}return n(t,[{key:"setOption",value:function(e){var t=e||{},n=t.parentNode,r=void 0===n?document.body:n,i=t.maskStyle,o=void 0===i?{}:i,s=t.onClick,a=void 0===s?null:s;this.onClick=a,this.parentNode=r||document,this.setMaskStyle(Object.assign({},this.maskStyle,o))}},{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=null!=i?i:U(16),a=/-?\d+/.test("".concat(t))?t:c.getModalNextIndex(),u=Object.assign({},this.maskStyle,r||{});if(!n&&this.lastUUID){var l=this.zIndexStore.get(this.lastUUID);u=l.style}this.storeMaskInsCfg({zIndex:a,style:Object.assign({},u),uuid:s,preUID:this.lastUUID}),this.setMaskStyle(u),this.mask.style.setProperty("display","block"),this.mask.style.setProperty("z-index","".concat(a)),this.mask.style.setProperty("pointer-events","all"),this.backupMask.style.setProperty("z-index","".concat(a-1)),n||(this.mask.style.setProperty("pointer-events","none"),null==e||e.style.setProperty("pointer-events","all")),e&&(o&&e.style.setProperty("z-index","".concat(a+1)),this.activeInstance=e,o||this.appendContentToMask(e))}},{key:"hide",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=null!=r?r:this.lastUUID;this.mask.style.setProperty("display","none"),t||(null==n||n.remove(),null===(e=this.activeInstance)||void 0===e||e.remove()),this.activeInstance=void 0,this.popIndexStore(i)}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){e&&this.backupMask.append(e)}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"getMask",value:function(){var e=this;if(this.multiInstance)return this.createMask();var t=this.parentNode.querySelector("[data-bkmask-uid='".concat(this.uniqueMaskAttrTag,"']"));return t||(t=this.createMask()).addEventListener("click",(function(n){n.target===t&&"function"==typeof e.onClick&&Reflect.apply(e.onClick,e,[n])}),!0),t}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?"__bk_mask_".concat(U(16)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),t}(),B=new V({}),z=function(){function t(){var n=this;e(this,t),this.getActiveClickFnIndex=function(e){return n.clickFn.findIndex((function(t){return r=t.target,"string"==typeof e?r.getAttribute(n.uuidAttrName)===e:r===e;var r}))},this.getActiveClickFn=function(e){var t;return null===(t=n.clickFn[n.getActiveClickFnIndex(e)])||void 0===t?void 0:t.fn},this.popInstanceList=[],this.clickFn=[],this.uuidAttrName="data-bk-pop-uuid",this.activePopId=null,B.setOption({onClick:this.onMaskClickFn.bind(this)})}return n(t,[{key:"onMaskClick",value:function(e,t){this.clickFn.push({fn:e,target:t})}},{key:"show",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;if(e){var o="number"==typeof i?i:c.getModalNextIndex(),s=U(16);e.setAttribute(this.uuidAttrName,s),this.popInstanceList.push({uuid:s,zIndex:o,content:e,showMask:t,appendStyle:n}),t&&B.backupActiveInstance(),B.show(e,o,t,n,s,r),this.activePopId=s}else console.warn("pop show error: content is null or undefined")}},{key:"destroy",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getActiveClickFnIndex(e);r>=0&&(null===(t=this.clickFn)||void 0===t||t.splice(r,1)),this.hide(e,n)}},{key:"popHide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.popInstanceList.length){if(e){var t=this.popInstanceList.pop();B.popIndexStore(t.uuid),t.remove(),this.activePopId=null}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],r=n.zIndex,i=n.content,o=n.showMask,s=n.appendStyle,a=n.uuid;B.show(i,r,o,s,a),this.activePopId=a}else B.hide(),this.activePopId=null,this.clickFn.length=0}}},{key:"hide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null==e?void 0:e.getAttribute(this.uuidAttrName);if(n){var r=this.popInstanceList.findIndex((function(e){return e.uuid===n}));r>=0&&(t||this.popInstanceList[r].content.remove(),this.popInstanceList.splice(r,1),B.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):(B.hide(t),this.activePopId=null,this.clickFn.length=0))}else null==e||e.remove()}},{key:"onMaskClickFn",value:function(e){var t=this.getActiveClickFn(this.activePopId);t&&Reflect.apply(t,this,[e])}}]),t}(),q=new z;function G(e,t){return G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},G(e,t)}function W(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},K(e)}var Y=s(210);var Z,J,$,X,Q,ee,te,ne,re,ie,oe,se,ae,ue=(0,Y.createTypes)({});function ce(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}function le(){return(0,Y.toType)("renderDirective",{default:$.SHOW})}function pe(){return(0,Y.toType)("align",{default:X.LEFT}).def(X.LEFT)}function fe(){return(0,Y.toType)("placement",{}).def(ee.BOTTOM)}function de(){return(0,Y.toType)("trigger",{}).def(te.HOVER)}function he(){return(0,Y.toType)("popRenderType",{}).def(ne.SHOWN)}function ve(){return(0,Y.toType)("dialogType",{default:re.OPERATION})}function ye(){return(0,Y.toType)("direction",{}).def(ie.HORIZONTAL)}function ge(){return(0,Y.toType)("lineType",{}).def(oe.DASHED)}function me(){return(0,Y.toType)("tagTheme",{}).def()}function be(){return(0,Y.toType)("behavior",{}).def(ae.NORMAL)}!function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(Z||(Z={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(J||(J={})),function(e){e.IF="if",e.SHOW="show"}($||($={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(X||(X={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(Q||(Q={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(ee||(ee={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(te||(te={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(ne||(ne={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(re||(re={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(ie||(ie={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(oe||(oe={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(se||(se={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(ae||(ae={}));var ke,Te=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}(s,t);var r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=K(r);if(i){var n=K(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return W(this,e)});function s(){return e(this,s),o.apply(this,arguments)}return n(s,null,[{key:"size",value:function(){var e=["small","default","large"];return(0,Y.toType)("Size",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))},default:"default"})}},{key:"theme",value:function(){var e=["primary","warning","success","danger"];return(0,Y.toType)("Theme",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))}})}},{key:"placement",value:function(){var e=["top","left","right","bottom"];return(0,Y.toType)("Placements",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid placements, ".concat(t,", the placement must be one of 【").concat(e.join(" | "),"】")),1))},default:"top"})}},{key:"style",value:function(){return(0,Y.toType)("Style",{type:[String,Object]})}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top-left","top-right","bottom-left","bottom-right"];return(0,Y.toType)("positions",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid positions, ".concat(t,", the position must be one of 【").concat(e.join(" | "),"】")),1))},default:"top-center"})}}]),s}(ue);function Oe(){if(void 0!==ke)return ke;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),ke=t-r}var Ie=Symbol("form"),Ee=Symbol("formItem"),Se=s(748),we=function(){return(0,Se.inject)(Ie)},xe=function(){return(0,Se.inject)(Ee,void 0)},Ae=document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!0)}:function(e,t,n){e&&t&&n&&e.attachEvent("on".concat(t),n)},Pe=document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!0)}:function(e,t,n){e&&t&&e.detachEvent("on".concat(t),n)};function Le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,i=arguments.length>4?arguments[4]:void 0,o=Math.abs(t-n),s=Math.ceil(o/r*50);function a(t,n,r){if(t!==n){var o=t+r>n?n:t+r;t>n&&(o=t-r<n?n:t-r),e===window?window.scrollTo(o,o):e.scrollTop=o,window.requestAnimationFrame((function(){return a(o,n,r)}))}else null==i||i()}a(t,n,s)}function Me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).filter((function(e){return e[1]})).map((function(e){return e[0]})).join(" ").concat(t?" ".concat(t):"")}var Re=Object.create({}),je=function(){},Ne=function(){return null},Ce=function(e){return Object.keys(e).length<1},De=function(e){return e.install=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.prefix,i=t.config.globalProperties.bkUIPrefix||r||"Bk";t.component(i+e.name,e)},e},Ue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.install=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.prefix,s=r.config.globalProperties.bkUIPrefix||o||"Bk";r.component(s+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(s+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e};function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk";return"".concat(t,"-").concat(e)}function _e(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=function(){var o=this,s=arguments;if(e&&clearTimeout(e),i){var a=!e;e=setTimeout((function(){e=null}),n),a&&(t=r.apply(o,s))}else e=setTimeout((function(){r.apply(o,s)}),n);return t};return o.cancel=function(){clearTimeout(e),e=null},o}function He(e,t){return JSON.parse(JSON.stringify(e,(function(e,n){if(!t.includes(e))return n})))}function Ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){if(Array.isArray(e[n]))return Ve(e[n],t[n]);if(e[n]!==t[n])return!1}return!0}})(),a})()));
|
package/lib/styles/index.d.ts
CHANGED
@@ -19,7 +19,6 @@ import '../loading/loading.less';
|
|
19
19
|
import '../modal/modal.less';
|
20
20
|
import '../progress/progress.less';
|
21
21
|
import '../radio/radio.less';
|
22
|
-
import '../radio/radio-button.less';
|
23
22
|
import '../rate/rate.less';
|
24
23
|
import '../rate/star.less';
|
25
24
|
import '../swiper/swiper.less';
|
@@ -58,7 +58,52 @@ declare const _default: import("vue").DefineComponent<{
|
|
58
58
|
};
|
59
59
|
colspan: import("vue-types").VueTypeDef<any>;
|
60
60
|
rowspan: import("vue-types").VueTypeDef<any>;
|
61
|
-
},
|
61
|
+
}, {
|
62
|
+
initColumns: (_column: Column | Column[], _remove?: boolean) => void;
|
63
|
+
column: {
|
64
|
+
field: string | Function;
|
65
|
+
label: string | Function;
|
66
|
+
render?: string | Function;
|
67
|
+
width?: string | number;
|
68
|
+
minWidth?: string | number;
|
69
|
+
columnKey?: string;
|
70
|
+
showOverflowTooltip?: boolean | {
|
71
|
+
content: string | Function;
|
72
|
+
disabled?: boolean;
|
73
|
+
watchCellResize?: boolean;
|
74
|
+
mode?: "auto" | "static";
|
75
|
+
};
|
76
|
+
type?: string;
|
77
|
+
fixed?: string | boolean;
|
78
|
+
resizable?: boolean;
|
79
|
+
sort?: string | boolean | {
|
80
|
+
sortFn?: Function;
|
81
|
+
sortScope?: string;
|
82
|
+
value?: string;
|
83
|
+
};
|
84
|
+
filter?: string | boolean | {
|
85
|
+
list?: any;
|
86
|
+
filterFn?: Function;
|
87
|
+
};
|
88
|
+
colspan?: Function | {
|
89
|
+
toString: (radix?: number) => string;
|
90
|
+
toFixed: (fractionDigits?: number) => string;
|
91
|
+
toExponential: (fractionDigits?: number) => string;
|
92
|
+
toPrecision: (precision?: number) => string;
|
93
|
+
valueOf: () => number;
|
94
|
+
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
95
|
+
};
|
96
|
+
rowspan?: Function | {
|
97
|
+
toString: (radix?: number) => string;
|
98
|
+
toFixed: (fractionDigits?: number) => string;
|
99
|
+
toExponential: (fractionDigits?: number) => string;
|
100
|
+
toPrecision: (precision?: number) => string;
|
101
|
+
valueOf: () => number;
|
102
|
+
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
103
|
+
};
|
104
|
+
prop?: string | Function;
|
105
|
+
};
|
106
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
62
107
|
prop: import("vue-types").VueTypeDef<any>;
|
63
108
|
label: import("vue-types").VueTypeDef<any>;
|
64
109
|
field: import("vue-types").VueTypeDef<any>;
|
package/lib/table/index.d.ts
CHANGED
@@ -978,7 +978,52 @@ declare const BkColumn: {
|
|
978
978
|
};
|
979
979
|
colspan: import("vue-types").VueTypeDef<any>;
|
980
980
|
rowspan: import("vue-types").VueTypeDef<any>;
|
981
|
-
}>>,
|
981
|
+
}>>, {
|
982
|
+
initColumns: (_column: import("./props").Column | import("./props").Column[], _remove?: boolean) => void;
|
983
|
+
column: {
|
984
|
+
field: string | Function;
|
985
|
+
label: string | Function;
|
986
|
+
render?: string | Function;
|
987
|
+
width?: string | number;
|
988
|
+
minWidth?: string | number;
|
989
|
+
columnKey?: string;
|
990
|
+
showOverflowTooltip?: boolean | {
|
991
|
+
content: string | Function;
|
992
|
+
disabled?: boolean;
|
993
|
+
watchCellResize?: boolean;
|
994
|
+
mode?: "auto" | "static";
|
995
|
+
};
|
996
|
+
type?: string;
|
997
|
+
fixed?: string | boolean;
|
998
|
+
resizable?: boolean;
|
999
|
+
sort?: string | boolean | {
|
1000
|
+
sortFn?: Function;
|
1001
|
+
sortScope?: string;
|
1002
|
+
value?: string;
|
1003
|
+
};
|
1004
|
+
filter?: string | boolean | {
|
1005
|
+
list?: any;
|
1006
|
+
filterFn?: Function;
|
1007
|
+
};
|
1008
|
+
colspan?: Function | {
|
1009
|
+
toString: (radix?: number) => string;
|
1010
|
+
toFixed: (fractionDigits?: number) => string;
|
1011
|
+
toExponential: (fractionDigits?: number) => string;
|
1012
|
+
toPrecision: (precision?: number) => string;
|
1013
|
+
valueOf: () => number;
|
1014
|
+
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
1015
|
+
};
|
1016
|
+
rowspan?: Function | {
|
1017
|
+
toString: (radix?: number) => string;
|
1018
|
+
toFixed: (fractionDigits?: number) => string;
|
1019
|
+
toExponential: (fractionDigits?: number) => string;
|
1020
|
+
toPrecision: (precision?: number) => string;
|
1021
|
+
valueOf: () => number;
|
1022
|
+
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
1023
|
+
};
|
1024
|
+
prop?: string | Function;
|
1025
|
+
};
|
1026
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
982
1027
|
fixed: boolean | "right" | "left";
|
983
1028
|
filter: string | boolean | {
|
984
1029
|
list: any[] | (object & (() => any[]));
|
@@ -1073,7 +1118,52 @@ declare const BkColumn: {
|
|
1073
1118
|
};
|
1074
1119
|
colspan: import("vue-types").VueTypeDef<any>;
|
1075
1120
|
rowspan: import("vue-types").VueTypeDef<any>;
|
1076
|
-
}>> & import("vue").ShallowUnwrapRef<
|
1121
|
+
}>> & import("vue").ShallowUnwrapRef<{
|
1122
|
+
initColumns: (_column: import("./props").Column | import("./props").Column[], _remove?: boolean) => void;
|
1123
|
+
column: {
|
1124
|
+
field: string | Function;
|
1125
|
+
label: string | Function;
|
1126
|
+
render?: string | Function;
|
1127
|
+
width?: string | number;
|
1128
|
+
minWidth?: string | number;
|
1129
|
+
columnKey?: string;
|
1130
|
+
showOverflowTooltip?: boolean | {
|
1131
|
+
content: string | Function;
|
1132
|
+
disabled?: boolean;
|
1133
|
+
watchCellResize?: boolean;
|
1134
|
+
mode?: "auto" | "static";
|
1135
|
+
};
|
1136
|
+
type?: string;
|
1137
|
+
fixed?: string | boolean;
|
1138
|
+
resizable?: boolean;
|
1139
|
+
sort?: string | boolean | {
|
1140
|
+
sortFn?: Function;
|
1141
|
+
sortScope?: string;
|
1142
|
+
value?: string;
|
1143
|
+
};
|
1144
|
+
filter?: string | boolean | {
|
1145
|
+
list?: any;
|
1146
|
+
filterFn?: Function;
|
1147
|
+
};
|
1148
|
+
colspan?: Function | {
|
1149
|
+
toString: (radix?: number) => string;
|
1150
|
+
toFixed: (fractionDigits?: number) => string;
|
1151
|
+
toExponential: (fractionDigits?: number) => string;
|
1152
|
+
toPrecision: (precision?: number) => string;
|
1153
|
+
valueOf: () => number;
|
1154
|
+
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
1155
|
+
};
|
1156
|
+
rowspan?: Function | {
|
1157
|
+
toString: (radix?: number) => string;
|
1158
|
+
toFixed: (fractionDigits?: number) => string;
|
1159
|
+
toExponential: (fractionDigits?: number) => string;
|
1160
|
+
toPrecision: (precision?: number) => string;
|
1161
|
+
valueOf: () => number;
|
1162
|
+
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
1163
|
+
};
|
1164
|
+
prop?: string | Function;
|
1165
|
+
};
|
1166
|
+
}> & {} & {} & import("vue").ComponentCustomProperties;
|
1077
1167
|
__isFragment?: never;
|
1078
1168
|
__isTeleport?: never;
|
1079
1169
|
__isSuspense?: never;
|
@@ -1133,7 +1223,52 @@ declare const BkColumn: {
|
|
1133
1223
|
};
|
1134
1224
|
colspan: import("vue-types").VueTypeDef<any>;
|
1135
1225
|
rowspan: import("vue-types").VueTypeDef<any>;
|
1136
|
-
}>>,
|
1226
|
+
}>>, {
|
1227
|
+
initColumns: (_column: import("./props").Column | import("./props").Column[], _remove?: boolean) => void;
|
1228
|
+
column: {
|
1229
|
+
field: string | Function;
|
1230
|
+
label: string | Function;
|
1231
|
+
render?: string | Function;
|
1232
|
+
width?: string | number;
|
1233
|
+
minWidth?: string | number;
|
1234
|
+
columnKey?: string;
|
1235
|
+
showOverflowTooltip?: boolean | {
|
1236
|
+
content: string | Function;
|
1237
|
+
disabled?: boolean;
|
1238
|
+
watchCellResize?: boolean;
|
1239
|
+
mode?: "auto" | "static";
|
1240
|
+
};
|
1241
|
+
type?: string;
|
1242
|
+
fixed?: string | boolean;
|
1243
|
+
resizable?: boolean;
|
1244
|
+
sort?: string | boolean | {
|
1245
|
+
sortFn?: Function;
|
1246
|
+
sortScope?: string;
|
1247
|
+
value?: string;
|
1248
|
+
};
|
1249
|
+
filter?: string | boolean | {
|
1250
|
+
list?: any;
|
1251
|
+
filterFn?: Function;
|
1252
|
+
};
|
1253
|
+
colspan?: Function | {
|
1254
|
+
toString: (radix?: number) => string;
|
1255
|
+
toFixed: (fractionDigits?: number) => string;
|
1256
|
+
toExponential: (fractionDigits?: number) => string;
|
1257
|
+
toPrecision: (precision?: number) => string;
|
1258
|
+
valueOf: () => number;
|
1259
|
+
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
1260
|
+
};
|
1261
|
+
rowspan?: Function | {
|
1262
|
+
toString: (radix?: number) => string;
|
1263
|
+
toFixed: (fractionDigits?: number) => string;
|
1264
|
+
toExponential: (fractionDigits?: number) => string;
|
1265
|
+
toPrecision: (precision?: number) => string;
|
1266
|
+
valueOf: () => number;
|
1267
|
+
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
1268
|
+
};
|
1269
|
+
prop?: string | Function;
|
1270
|
+
};
|
1271
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
1137
1272
|
fixed: boolean | "right" | "left";
|
1138
1273
|
filter: string | boolean | {
|
1139
1274
|
list: any[] | (object & (() => any[]));
|