bkui-vue 0.0.1-beta.444 → 0.0.1-beta.446
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 +32 -32
- package/dist/index.esm.js +215 -66
- package/dist/index.umd.js +32 -32
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/dialog/dialog.d.ts +5 -9
- package/lib/dialog/index.d.ts +11 -19
- package/lib/dialog/props.d.ts +2 -4
- package/lib/modal/index.d.ts +24 -23
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +7 -9
- package/lib/modal/props.mixin.d.ts +2 -4
- package/lib/plugin-popover/index.js +1 -1
- package/lib/popover/index.js +1 -1
- package/lib/popover/utils.d.ts +5 -0
- package/lib/search-select/search-select.css +4 -1
- package/lib/search-select/search-select.less +5 -1
- package/lib/search-select/search-select.variable.css +4 -1
- package/lib/select/index.d.ts +11 -5
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +8 -2
- package/lib/select/select.d.ts +1 -1
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +7 -3
- package/lib/shared/pop-manager.d.ts +3 -1
- package/lib/sideslider/index.d.ts +11 -19
- package/lib/sideslider/sideslider.css +4 -3
- package/lib/sideslider/sideslider.d.ts +5 -9
- package/lib/sideslider/sideslider.less +4 -3
- package/lib/sideslider/sideslider.variable.css +4 -3
- package/lib/table/components/table-column.d.ts +125 -30
- package/lib/table/index.d.ts +375 -90
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +2 -1
- package/lib/table-column/index.d.ts +375 -90
- package/lib/table-column/index.js +1 -1
- package/package.json +1 -1
package/lib/shared/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("lodash"),require("@popperjs/core"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["vue","lodash","@popperjs/core","vue-types"],t);else{var n="object"==typeof exports?t(require("vue"),require("lodash"),require("@popperjs/core"),require("vue-types")):t(e.vue,e.lodash,e["@popperjs/core"],e["vue-types"]);for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,((e,t,n,i)=>(()=>{var r={8022:(e,t,n)=>{var i=n(4481),r=n(6426),o=r;o.v1=i,o.v4=r,e.exports=o},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var i=n||0,r=t;return[r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},4481:(e,t,n)=>{var i,r,o=n(9157),s=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],p=(e=e||{}).node||i,f=void 0!==e.clockseq?e.clockseq:r;if(null==p||null==f){var d=o();null==p&&(p=i=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==f&&(f=r=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,r=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 i=n(9157),r=n(8725);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||i)();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||r(s)}},5798:e=>{"use strict";e.exports=n},467:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},210:e=>{"use strict";e.exports=i}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[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";s.r(a),s.d(a,{AlignEnum:()=>ue,BKLAYERD_INDEX_EFAULT_VALUE:()=>H,BKLAYERTYPE:()=>L,BKPopIndexManager:()=>q,BKPopover:()=>$,BkMaskManager:()=>B,DialogTypeEnum:()=>de,DirectionEnum:()=>he,EMPTY_OBJ:()=>Le,InputBehaviorEnum:()=>ge,InputBehaviorType:()=>Pe,LineStyleEnum:()=>ve,PlacementEnum:()=>le,Placements:()=>se,PropTypes:()=>Me,RenderDirectiveEnum:()=>ae,RenderType:()=>fe,SizeEnum:()=>oe,TagThemeEnum:()=>ye,TagThemeType:()=>Ae,ThemeEnum:()=>ce,TriggerEnum:()=>pe,alignType:()=>Oe,arrayEqual:()=>Ve,bKMaskManager:()=>z,bkPopIndexManager:()=>G,bkZIndexManager:()=>V,capitalize:()=>U,checkOverflow:()=>F,classes:()=>Re,clone:()=>h,debounce:()=>_e,dialogTypeUnion:()=>Se,directionType:()=>we,elementsEqual:()=>d,filterProperty:()=>He,finiteOrDefault:()=>p,formItemKey:()=>S,formKey:()=>E,getPopContainerId:()=>Q,hasOverflowEllipsis:()=>O,isArray:()=>u,isElement:()=>k,isEmpty:()=>o,isEmptyObj:()=>Ce,isFinite:()=>l,isNullOrUndef:()=>r,isObject:()=>c,lineStyleType:()=>xe,maybeShowTooltip:()=>I,merge:()=>g,mergeIf:()=>m,mergerFn:()=>y,mergerIfFn:()=>b,noop:()=>je,observerResize:()=>D,off:()=>t,on:()=>e,placementType:()=>Ie,random:()=>C,renderDirectiveType:()=>ke,renderEmptyVNode:()=>Ne,renderType:()=>Ee,resolveClassName:()=>Fe,scrollTop:()=>n,scrollbarWidth:()=>ee,stringEnum:()=>be,triggerType:()=>Te,useForm:()=>w,useFormItem:()=>x,valueOrDefault:()=>f,withInstall:()=>De,withInstallProps:()=>Ue});var e=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)},t=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 n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,r=arguments.length>4?arguments[4]:void 0,o=Math.abs(t-n),s=Math.ceil(o/i*50);function a(t,n,i){if(t!==n){var o=t+i>n?n:t+i;t>n&&(o=t-i<n?n:t-i),e===window?window.scrollTo(o,o):e.scrollTop=o,window.requestAnimationFrame((function(){return a(o,n,i)}))}else null==r||r()}a(t,n,s)}function i(e){return i="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},i(e)}function r(e){return null==e}function o(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""===e||!!t&&r(e)}function u(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 c(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var l=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function p(e,t){return l(e)?e:t}function f(e,t){return void 0===e?t:e}function d(e,t){var n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function h(e){if(u(e))return e.map(h);if(c(e)){for(var t=Object.create(null),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=h(e[n[r]]);return t}return e}function v(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function y(e,t,n,i){if(v(e)){var r=t[e],o=n[e];c(r)&&c(o)?g(r,o,i):t[e]=h(o)}}function g(e,t,n){var i=u(t)?t:[t],r=i.length;if(!c(e))return e;for(var o=(n=n||{}).merger||y,s=0;s<r;++s)if(c(t=i[s]))for(var a=Object.keys(t),l=0,p=a.length;l<p;++l)o(a[l],e,t,n);return e}function m(e,t){return g(e,t,{merger:b})}function b(e,t,n){if(v(e)){var i=t[e],r=n[e];c(i)&&c(r)?m(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=h(r))}}function k(e){try{return e instanceof HTMLElement}catch(t){return"object"===i(e)&&1===e.nodeType&&"object"===i(e.style)&&"object"===i(e.ownerDocument)}}function O(e){return e.offsetWidth<e.scrollWidth||e.offsetHeight<e.scrollHeight}function I(e,t){O(e)?e.setAttribute("title",t):e.removeAttribute("title")}var T=s(748),E=Symbol("form"),S=Symbol("formItem"),w=function(){return(0,T.inject)(E)},x=function(){return(0,T.inject)(S,void 0)};function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function M(e,t,n){return t&&P(e.prototype,t),n&&P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var R,L,j=s(467),N="abcdefghijklmnopqrstuvwxyz0123456789",C=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N,n="",i=0;i<e;i++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},D=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=(0,j.throttle)((function(){"function"==typeof t&&t()}),n),o=new ResizeObserver((function(){r()}));return i&&"function"==typeof t&&t(),{start:function(){o.observe(e)},stop:function(){o.disconnect(),o.unobserve(e)}}},U=function(e){return e[0].toUpperCase()+e.slice(1)};function F(e){if(!e)return!1;var t=!1;try{var n=window.getComputedStyle(e,null);if("none"!==n.webkitLineClamp){var i=parseFloat(n.height),r=function(e,t){var n=document.createElement("div"),i=parseFloat(t.width)?"".concat(Math.ceil(parseFloat(t.width)),"px"):t.width;return n.style.cssText="\n width: ".concat(i,";\n line-height: ").concat(t["line-height"],";\n font-size: ").concat(t["font-size"],";\n word-break: ").concat(t["word-break"],";\n padding: ").concat(t.padding,";\n "),n.textContent=e.textContent,n}(e,n);document.body.appendChild(r);var o=window.getComputedStyle(r,null).height;document.body.removeChild(r),t=i<parseFloat(o)}else t=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(e){console.warn("There is an error when check element overflow state: ",e)}return t}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BOTTOM="bottom",e.CONTENT="content",e.NAVI="navi",e.FULLSCREEN="fullScreen",e.PLUGINS="plugins",e.MODAL="modal",e.MESSAGE="message",e.POPPER="popper"}(L||(L={}));var H=(_(R={},L.BOTTOM,0),_(R,L.CONTENT,1),_(R,L.NAVI,100),_(R,L.FULLSCREEN,1e3),_(R,L.MODAL,3e3),_(R,L.PLUGINS,8e3),_(R,L.MESSAGE,1e4),_(R,L.POPPER,99999),R),V=new(function(){function e(){A(this,e),this.storageLayerIndexValue={},this.copyDefaultValue()}return M(e,[{key:"getNextIndex",value:function(e){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,e)?(this.storageLayerIndexValue[e]=this.storageLayerIndexValue[e]+1,this.storageLayerIndexValue[e]):(this.storageLayerIndexValue[L.MODAL]=this.storageLayerIndexValue[L.MODAL]+1,this.storageLayerIndexValue[L.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(L.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(L.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(L.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(L.NAVI)}},{key:"getPopperIndex",value:function(){return H.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__,_({},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,_({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(H).reduce((function(e,t){return Object.assign(e,_({},t,{value:H[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(H,e)}}]),e}()),B=function(){function e(t){A(this,e),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"fixed",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"};var n=t||{},i=n.multiInstance,r=void 0!==i&&i,o=n.maskAttrTag,s=void 0===o?"auto":o,a=n.parentNode,u=void 0===a?document.body:a,c=n.maskStyle,l=void 0===c?{}:c,p=n.onClick,f=void 0===p?null:p;this.onClick=f,this.activeInstance=void 0,this.multiInstance=r,this.uniqueMaskAttrTag=this.getMaskAttrTag(s),this.parentNode=u||document,this.mask=this.getMask(),this.backupMask=this.createMask("data-bk-backup-uid"),this.setMaskStyle(Object.assign({},this.maskStyle,l))}return M(e,[{key:"setOption",value:function(e){var t=e||{},n=t.parentNode,i=void 0===n?document.body:n,r=t.maskStyle,o=void 0===r?{}:r,s=t.onClick,a=void 0===s?null:s;this.onClick=a,this.parentNode=i||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],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=null!=r?r:C(16),a=/-?\d+/.test("".concat(t))?t:V.getModalNextIndex(),u=Object.assign({},this.maskStyle,i||{});if(!n&&this.lastUUID){var c=this.zIndexStore.get(this.lastUUID);u=c.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,i=arguments.length>2?arguments[2]:void 0,r=null!=i?i: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(r)}},{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(C(16)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),e}(),z=new B({}),q=function(){function e(){var t=this;A(this,e),this.getActiveClickFnIndex=function(e){return t.clickFn.findIndex((function(n){return i=n.target,"string"==typeof e?i.getAttribute(t.uuidAttrName)===e:i===e;var i}))},this.getActiveClickFn=function(e){var n;return null===(n=t.clickFn[t.getActiveClickFnIndex(e)])||void 0===n?void 0:n.fn},this.popInstanceList=[],this.clickFn=[],this.uuidAttrName="data-bk-pop-uuid",this.activePopId=null,z.setOption({onClick:this.onMaskClickFn.bind(this)})}return M(e,[{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]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;if(e){var o="number"==typeof r?r:V.getModalNextIndex(),s=C(16);e.setAttribute(this.uuidAttrName,s),this.popInstanceList.push({uuid:s,zIndex:o,content:e,showMask:t,appendStyle:n}),t&&z.backupActiveInstance(),z.show(e,o,t,n,s,i),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],i=this.getActiveClickFnIndex(e);i>=0&&(null===(t=this.clickFn)||void 0===t||t.splice(i,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();z.popIndexStore(t.uuid),t.remove(),this.activePopId=null}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],i=n.zIndex,r=n.content,o=n.showMask,s=n.appendStyle,a=n.uuid;z.show(r,i,o,s,a),this.activePopId=a}else z.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 i=this.popInstanceList.findIndex((function(e){return e.uuid===n}));i>=0&&(t||this.popInstanceList[i].content.remove(),this.popInstanceList.splice(i,1),z.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):(z.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])}}]),e}(),G=new q;function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function K(e){return function(e){if(Array.isArray(e))return W(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 W(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)?W(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 Y,Z=s(8022),J=s(5798),$=function(){function e(t,n,i){var r,o;A(this,e),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.always=!1,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(r=this.popperRefer)||void 0===r?void 0:r.parentElement,this.isShow=!!(null===(o=this.instanceOptions)||void 0===o?void 0:o.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof i.afterHidden?i.afterHidden:function(){},this.afterShow="function"==typeof i.afterShow?i.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}return M(e,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(K(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(K(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();k(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();k(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=g({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),i=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof i&&(i.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=(0,J.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"===i(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 k(e)}},{key:"registerEvents",value:function(){var e=this;this.isElement(this.referenceTarget)&&"hover"===this.trigger&&(["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))),"click"===this.trigger&&["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):!e.isShow||e.isSameElement(t.target,e.popperRefer)||e.popperRefer.contains(t.target)||e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),e}(),X=null,Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#";if(null===X){X="id_".concat((0,Z.v4)());var t=document.createElement("div");t.setAttribute("id",X),t.setAttribute("data-popper-id",X),document.body.append(t)}return"".concat(e).concat(X)};function ee(){if(void 0!==Y)return Y;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),Y=t-i}function te(e,t){return te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},te(e,t)}function ne(e,t){if(t&&("object"===i(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 ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ie(e)}var re=s(210);var oe,se,ae,ue,ce,le,pe,fe,de,he,ve,ye,ge,me=(0,re.createTypes)({});function be(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}function ke(){return(0,re.string)().def(ae.SHOW)}function Oe(){return(0,re.string)().def(ue.LEFT)}function Ie(){return(0,re.string)().def(le.BOTTOM)}function Te(){return(0,re.string)().def(pe.HOVER)}function Ee(){return(0,re.toType)("popRenderType",{}).def(fe.SHOWN)}function Se(){return(0,re.toType)("dialogType",{default:de.OPERATION})}function we(){return(0,re.toType)("direction",{}).def(he.HORIZONTAL)}function xe(){return(0,re.toType)("lineType",{}).def(ve.DASHED)}function Ae(){return(0,re.toType)("tagTheme",{}).def()}function Pe(){return(0,re.toType)("behavior",{}).def(ge.NORMAL)}!function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(oe||(oe={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(se||(se={})),function(e){e.IF="if",e.SHOW="show"}(ae||(ae={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(ue||(ue={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(ce||(ce={})),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"}(le||(le={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(pe||(pe={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(fe||(fe={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(de||(de={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(he||(he={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(ve||(ve={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(ye||(ye={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(ge||(ge={}));var Me=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&te(e,t)}(r,e);var t,n,i=(t=r,n=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,i=ie(t);if(n){var r=ie(this).constructor;e=Reflect.construct(i,arguments,r)}else e=i.apply(this,arguments);return ne(this,e)});function r(){return A(this,r),i.apply(this,arguments)}return M(r,null,[{key:"size",value:function(){var e=["small","default","large"];return(0,re.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,re.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,re.toType)("Placements",{validator:function(t){return!(t&&!e.includes(t))},default:"top"})}},{key:"style",value:function(){return(0,re.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,re.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"})}}]),r}(me);function Re(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 Le=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]:{},i=n.prefix,r=t.config.globalProperties.bkUIPrefix||i||"Bk";t.component(r+e.name,e)},e},Ue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return e.install=function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=o.prefix,a=r.config.globalProperties.bkUIPrefix||s||"Bk";i&&r.directive(a+i.name,i.directive),r.component(a+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(a+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e};function 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,i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=function(){var o=this,s=arguments;if(e&&clearTimeout(e),r){var a=!e;e=setTimeout((function(){e=null}),n),a&&(t=i.apply(o,s))}else e=setTimeout((function(){i.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("vue"),require("lodash"),require("@popperjs/core"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["vue","lodash","@popperjs/core","vue-types"],t);else{var n="object"==typeof exports?t(require("vue"),require("lodash"),require("@popperjs/core"),require("vue-types")):t(e.vue,e.lodash,e["@popperjs/core"],e["vue-types"]);for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,((e,t,n,i)=>(()=>{var r={8022:(e,t,n)=>{var i=n(4481),r=n(6426),o=r;o.v1=i,o.v4=r,e.exports=o},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var i=n||0,r=t;return[r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},4481:(e,t,n)=>{var i,r,o=n(9157),s=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],p=(e=e||{}).node||i,d=void 0!==e.clockseq?e.clockseq:r;if(null==p||null==d){var f=o();null==p&&(p=i=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=r=16383&(f[6]<<8|f[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&&(d=d+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,r=d;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++]=d>>>8|128,l[c++]=255&d;for(var k=0;k<6;++k)l[c+k]=p[k];return t||s(l)}},6426:(e,t,n)=>{var i=n(9157),r=n(8725);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||i)();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||r(s)}},5798:e=>{"use strict";e.exports=n},467:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},210:e=>{"use strict";e.exports=i}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[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";s.r(a),s.d(a,{AlignEnum:()=>ce,BKLAYERD_INDEX_EFAULT_VALUE:()=>H,BKLAYERTYPE:()=>R,BKPopIndexManager:()=>K,BKPopover:()=>X,BkMaskManager:()=>q,DialogTypeEnum:()=>he,DirectionEnum:()=>ve,EMPTY_OBJ:()=>Pe,InputBehaviorEnum:()=>me,InputBehaviorType:()=>je,LineStyleEnum:()=>ye,PlacementEnum:()=>pe,Placements:()=>ae,PropTypes:()=>Ne,RenderDirectiveEnum:()=>ue,RenderType:()=>fe,SizeEnum:()=>se,TagThemeEnum:()=>ge,TagThemeType:()=>Ae,ThemeEnum:()=>le,TriggerEnum:()=>de,alignType:()=>Oe,arrayEqual:()=>Ve,bKMaskManager:()=>z,bkPopIndexManager:()=>W,bkZIndexManager:()=>B,capitalize:()=>U,checkOverflow:()=>F,classes:()=>Re,clone:()=>h,debounce:()=>He,dialogTypeUnion:()=>Ee,directionType:()=>xe,elementsEqual:()=>f,filterProperty:()=>Be,finiteOrDefault:()=>p,formItemKey:()=>S,formKey:()=>M,getPopContainerId:()=>ee,hasOverflowEllipsis:()=>I,isArray:()=>u,isElement:()=>b,isEmpty:()=>o,isEmptyObj:()=>De,isFinite:()=>l,isNullOrUndef:()=>r,isObject:()=>c,lineStyleType:()=>we,maybeShowTooltip:()=>O,merge:()=>g,mergeIf:()=>m,mergerFn:()=>y,mergerIfFn:()=>k,noop:()=>Le,observerResize:()=>D,off:()=>t,on:()=>e,placementType:()=>Te,random:()=>C,renderDirectiveType:()=>Ie,renderEmptyVNode:()=>Ce,renderType:()=>Se,resolveClassName:()=>_e,scrollTop:()=>n,scrollbarWidth:()=>te,stringEnum:()=>be,triggerType:()=>Me,useForm:()=>E,useFormItem:()=>x,valueOrDefault:()=>d,withInstall:()=>Ue,withInstallProps:()=>Fe});var e=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)},t=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 n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,r=arguments.length>4?arguments[4]:void 0,o=Math.abs(t-n),s=Math.ceil(o/i*50);function a(t,n,i){if(t!==n){var o=t+i>n?n:t+i;t>n&&(o=t-i<n?n:t-i),e===window?window.scrollTo(o,o):e.scrollTop=o,window.requestAnimationFrame((function(){return a(o,n,i)}))}else null==r||r()}a(t,n,s)}function i(e){return i="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},i(e)}function r(e){return null==e}function o(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""===e||!!t&&r(e)}function u(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 c(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var l=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function p(e,t){return l(e)?e:t}function d(e,t){return void 0===e?t:e}function f(e,t){var n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function h(e){if(u(e))return e.map(h);if(c(e)){for(var t=Object.create(null),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=h(e[n[r]]);return t}return e}function v(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function y(e,t,n,i){if(v(e)){var r=t[e],o=n[e];c(r)&&c(o)?g(r,o,i):t[e]=h(o)}}function g(e,t,n){var i=u(t)?t:[t],r=i.length;if(!c(e))return e;for(var o=(n=n||{}).merger||y,s=0;s<r;++s)if(c(t=i[s]))for(var a=Object.keys(t),l=0,p=a.length;l<p;++l)o(a[l],e,t,n);return e}function m(e,t){return g(e,t,{merger:k})}function k(e,t,n){if(v(e)){var i=t[e],r=n[e];c(i)&&c(r)?m(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=h(r))}}function b(e){try{return e instanceof HTMLElement}catch(t){return"object"===i(e)&&1===e.nodeType&&"object"===i(e.style)&&"object"===i(e.ownerDocument)}}function I(e){return e.offsetWidth<e.scrollWidth||e.offsetHeight<e.scrollHeight}function O(e,t){I(e)?e.setAttribute("title",t):e.removeAttribute("title")}var T=s(748),M=Symbol("form"),S=Symbol("formItem"),E=function(){return(0,T.inject)(M)},x=function(){return(0,T.inject)(S,void 0)};function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function j(e,t,n){return t&&A(e.prototype,t),n&&A(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var N,R,P=s(467),L="abcdefghijklmnopqrstuvwxyz0123456789",C=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L,n="",i=0;i<e;i++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},D=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=(0,P.throttle)((function(){"function"==typeof t&&t()}),n),o=new ResizeObserver((function(){r()}));return i&&"function"==typeof t&&t(),{start:function(){o.observe(e)},stop:function(){o.disconnect(),o.unobserve(e)}}},U=function(e){return e[0].toUpperCase()+e.slice(1)};function F(e){if(!e)return!1;var t=!1;try{var n=window.getComputedStyle(e,null);if("none"!==n.webkitLineClamp){var i=parseFloat(n.height),r=function(e,t){var n=document.createElement("div"),i=parseFloat(t.width)?"".concat(Math.ceil(parseFloat(t.width)),"px"):t.width;return n.style.cssText="\n width: ".concat(i,";\n line-height: ").concat(t["line-height"],";\n font-size: ").concat(t["font-size"],";\n word-break: ").concat(t["word-break"],";\n padding: ").concat(t.padding,";\n "),n.textContent=e.textContent,n}(e,n);document.body.appendChild(r);var o=window.getComputedStyle(r,null).height;document.body.removeChild(r),t=i<parseFloat(o)}else t=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(e){console.warn("There is an error when check element overflow state: ",e)}return t}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BOTTOM="bottom",e.CONTENT="content",e.NAVI="navi",e.FULLSCREEN="fullScreen",e.PLUGINS="plugins",e.MODAL="modal",e.MESSAGE="message",e.POPPER="popper"}(R||(R={}));var H=(_(N={},R.BOTTOM,0),_(N,R.CONTENT,1),_(N,R.NAVI,100),_(N,R.FULLSCREEN,1e3),_(N,R.MODAL,3e3),_(N,R.PLUGINS,8e3),_(N,R.MESSAGE,1e4),_(N,R.POPPER,99999),N),B=new(function(){function e(){w(this,e),this.storageLayerIndexValue={},this.copyDefaultValue()}return j(e,[{key:"getNextIndex",value:function(e){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,e)?(this.storageLayerIndexValue[e]=this.storageLayerIndexValue[e]+1,this.storageLayerIndexValue[e]):(this.storageLayerIndexValue[R.MODAL]=this.storageLayerIndexValue[R.MODAL]+1,this.storageLayerIndexValue[R.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(R.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(R.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(R.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(R.NAVI)}},{key:"getPopperIndex",value:function(){return H.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__,_({},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,_({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(H).reduce((function(e,t){return Object.assign(e,_({},t,{value:H[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(H,e)}}]),e}());"__bk_mask_".concat(C(16));var V=new(function(){function e(){w(this,e),this.timer=null,this.store=[],this.maskMap=new WeakMap}return j(e,[{key:"appendMaker",value:function(e){this.store.push(e),this.executeMaker()}},{key:"pushMaskStyle",value:function(e,t){var n=this.getMaskMap(e);(null==n?void 0:n.styles)?n.styles.push(t):this.setMaskMap(e,Object.assign({styles:[t]},n||{}))}},{key:"getMaskStyles",value:function(e){var t;return(null===(t=this.getMaskMap(e))||void 0===t?void 0:t.styles)||[]}},{key:"setMaskId",value:function(e,t){var n=this.getMaskMap(e);n?(Object.assign(n,{id:t}),this.setMaskMap(e,n)):this.setMaskMap(e,Object.assign({id:t},n||{}))}},{key:"getMaskId",value:function(e){var t;return null===(t=this.getMaskMap(e))||void 0===t?void 0:t.id}},{key:"setMaskMap",value:function(e,t){this.maskMap.set(e,t)}},{key:"getMaskMap",value:function(e){return this.maskMap.get(e)}},{key:"executeMaker",value:function(){var e=this;this.timer&&cancelAnimationFrame(this.timer),this.timer=requestAnimationFrame((function(){var t=e.store.pop();"function"==typeof t&&(Reflect.apply(t,e,[]),e.executeMaker())}))}}]),e}()),q=function(){function e(t){var n=this;w(this,e),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"fixed",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"},this.isInit=!1,this.maskAttrTag="auto";var i=t||{},r=i.multiInstance,o=void 0!==r&&r,s=i.maskAttrTag,a=void 0===s?"auto":s,u=i.parentNode,c=void 0===u?document.body:u,l=i.maskStyle,p=void 0===l?{}:l,d=i.onClick,f=void 0===d?null:d;this.maskAttrTag=a,this.onClick=f,this.activeInstance=void 0,this.multiInstance=o,this.uniqueMaskAttrTag=this.getMaskAttrTag(a),this.parentNode=c||document,V.appendMaker((function(){n.initInstance(p)}))}return j(e,[{key:"setOption",value:function(e){var t=e||{},n=t.parentNode,i=void 0===n?document.body:n,r=t.maskStyle,o=void 0===r?{}:r,s=t.onClick,a=void 0===s?null:s,u=t.maskAttrTag,c=void 0===u?this.maskAttrTag:u;this.onClick=a,this.parentNode=i||document,this.setMaskStyle(Object.assign({},this.maskStyle,o)),this.uniqueMaskAttrTag=this.getMaskAttrTag(c)}},{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=null!=r?r:C(16),a=/-?\d+/.test("".concat(t))?t:B.getModalNextIndex(),u=Object.assign({},this.maskStyle,i||{});if(!n&&this.lastUUID){var c=this.zIndexStore.get(this.lastUUID);c&&(u=null==c?void 0:c.style)}this.storeMaskInsCfg({zIndex:a,style:Object.assign({},u),uuid:s,preUID:this.lastUUID}),Object.assign(u,{display:"block","z-index":"".concat(a),"pointer-events":"all"}),this.initInstance(u),this.setMaskStyle(u),V.pushMaskStyle(this.parentNode,Object.assign({},u)),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,this.appendContentToMask(e))}},{key:"hide",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=null!=i?i:this.lastUUID;t||(null==n||n.remove(),null===(e=this.activeInstance)||void 0===e||e.remove()),this.activeInstance=void 0,this.popIndexStore(r);var o=V.getMaskStyles(this.parentNode);if(null==o||o.pop(),null==o?void 0:o.length){var s=o.slice(-1)[0];this.setMaskStyle(s)}else this.mask.style.setProperty("display","none")}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){e&&this.backupMask.append(e)}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"initInstance",value:function(e){if(!this.isInit){this.isInit=!0;var t=this.getMask(),n=t.instance,i=t.isExist;this.mask=n,this.backupMask=this.getBackupMask(),!i&&this.setMaskStyle(Object.assign({},this.maskStyle,e))}}},{key:"getMask",value:function(){var e=this;if(this.multiInstance)return{instance:this.createMask(),isExist:!1};var t=!0,n=this.parentNode.querySelector("[data-bk-mask-uid='".concat(this.uniqueMaskAttrTag,"']"));return n||(t=!1,(n=this.createMask()).addEventListener("click",(function(t){t.target===n&&"function"==typeof e.onClick&&Reflect.apply(e.onClick,e,[t])}),!0)),{instance:n,isExist:t}}},{key:"getBackupMask",value:function(){var e="data-bk-backup-uid",t=this.parentNode.querySelector("[".concat(e,"]"));return t||(t=this.createMask(e)),t}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?(V.getMaskId(this.parentNode)||V.setMaskId(this.parentNode,"__bk_mask_".concat(C(16))),V.getMaskId(this.parentNode)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),e}(),z=new q({}),K=function(){function e(t){var n=this;w(this,e),this.getActiveClickFnIndex=function(e){return n.clickFn.findIndex((function(t){return i=t.target,"string"==typeof e?i.getAttribute(n.uuidAttrName)===e:i===e;var i}))},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,this.bKMaskManagerInstance=new q({parentNode:this.getParentNode(null==t?void 0:t.transfer),onClick:this.onMaskClickFn.bind(this)})}return j(e,[{key:"getParentNode",value:function(e){if("string"==typeof e){var t=document.querySelector(e);if(t)return t}return b(e)?e:document.body}},{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]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;if(e){var o="number"==typeof r?r:B.getModalNextIndex(),s=C(16);e.setAttribute(this.uuidAttrName,s),this.popInstanceList.push({uuid:s,zIndex:o,content:e,showMask:t,appendStyle:n}),t&&this.bKMaskManagerInstance.backupActiveInstance(),this.bKMaskManagerInstance.show(e,o,t,n,s,i),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],i=this.getActiveClickFnIndex(e);i>=0&&(null===(t=this.clickFn)||void 0===t||t.splice(i,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();this.bKMaskManagerInstance.popIndexStore(t.uuid),t.remove(),this.activePopId=null}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],i=n.zIndex,r=n.content,o=n.showMask,s=n.appendStyle,a=n.uuid;this.bKMaskManagerInstance.show(r,i,o,s,a),this.activePopId=a}else this.bKMaskManagerInstance.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 i=this.popInstanceList.findIndex((function(e){return e.uuid===n}));i>=0&&(t||this.popInstanceList[i].content.remove(),this.popInstanceList.splice(i,1),this.bKMaskManagerInstance.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):(this.bKMaskManagerInstance.hide(t),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])}}]),e}(),W=new K;function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Y(e){return function(e){if(Array.isArray(e))return G(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 G(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)?G(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 Z,J=s(8022),$=s(5798),X=function(){function e(t,n,i){var r,o;w(this,e),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.always=!1,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(r=this.popperRefer)||void 0===r?void 0:r.parentElement,this.isShow=!!(null===(o=this.instanceOptions)||void 0===o?void 0:o.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof i.afterHidden?i.afterHidden:function(){},this.afterShow="function"==typeof i.afterShow?i.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}return j(e,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(Y(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(Y(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();b(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();b(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=g({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),i=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof i&&(i.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=(0,$.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"===i(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 b(e)}},{key:"registerEvents",value:function(){var e=this;this.isElement(this.referenceTarget)&&"hover"===this.trigger&&(["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))),"click"===this.trigger&&["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):!e.isShow||e.isSameElement(t.target,e.popperRefer)||e.popperRefer.contains(t.target)||e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),e}(),Q=null,ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#";if(null===Q){Q="id_".concat((0,J.v4)());var t=document.createElement("div");t.setAttribute("id",Q),t.setAttribute("data-popper-id",Q),document.body.append(t)}return"".concat(e).concat(Q)};function te(){if(void 0!==Z)return Z;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),Z=t-i}function ne(e,t){return ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ne(e,t)}function ie(e,t){if(t&&("object"===i(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 re(e){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},re(e)}var oe=s(210);var se,ae,ue,ce,le,pe,de,fe,he,ve,ye,ge,me,ke=(0,oe.createTypes)({});function be(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}function Ie(){return(0,oe.string)().def(ue.SHOW)}function Oe(){return(0,oe.string)().def(ce.LEFT)}function Te(){return(0,oe.string)().def(pe.BOTTOM)}function Me(){return(0,oe.string)().def(de.HOVER)}function Se(){return(0,oe.toType)("popRenderType",{}).def(fe.SHOWN)}function Ee(){return(0,oe.toType)("dialogType",{default:he.OPERATION})}function xe(){return(0,oe.toType)("direction",{}).def(ve.HORIZONTAL)}function we(){return(0,oe.toType)("lineType",{}).def(ye.DASHED)}function Ae(){return(0,oe.toType)("tagTheme",{}).def()}function je(){return(0,oe.toType)("behavior",{}).def(me.NORMAL)}!function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(se||(se={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(ae||(ae={})),function(e){e.IF="if",e.SHOW="show"}(ue||(ue={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(ce||(ce={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(le||(le={})),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"}(pe||(pe={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(de||(de={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(fe||(fe={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(he||(he={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(ve||(ve={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(ye||(ye={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(ge||(ge={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(me||(me={}));var Ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(r,e);var t,n,i=(t=r,n=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,i=re(t);if(n){var r=re(this).constructor;e=Reflect.construct(i,arguments,r)}else e=i.apply(this,arguments);return ie(this,e)});function r(){return w(this,r),i.apply(this,arguments)}return j(r,null,[{key:"size",value:function(){var e=["small","default","large"];return(0,oe.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,oe.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,oe.toType)("Placements",{validator:function(t){return!(t&&!e.includes(t))},default:"top"})}},{key:"style",value:function(){return(0,oe.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,oe.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"})}}]),r}(ke);function Re(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 Pe=Object.create({}),Le=function(){},Ce=function(){return null},De=function(e){return Object.keys(e).length<1},Ue=function(e){return e.install=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.prefix,r=t.config.globalProperties.bkUIPrefix||i||"Bk";t.component(r+e.name,e)},e},Fe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return e.install=function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=o.prefix,a=r.config.globalProperties.bkUIPrefix||s||"Bk";i&&r.directive(a+i.name,i.directive),r.component(a+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(a+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e};function _e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk";return"".concat(t,"-").concat(e)}function He(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=function(){var o=this,s=arguments;if(e&&clearTimeout(e),r){var a=!e;e=setTimeout((function(){e=null}),n),a&&(t=i.apply(o,s))}else e=setTimeout((function(){i.apply(o,s)}),n);return t};return o.cancel=function(){clearTimeout(e),e=null},o}function Be(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})()));
|
@@ -13,13 +13,13 @@ declare type MaskConfigStore = {
|
|
13
13
|
};
|
14
14
|
export declare class BkMaskManager {
|
15
15
|
/** 遮罩容器 */
|
16
|
-
private
|
16
|
+
private mask;
|
17
17
|
/** 遮罩备份容器,用于多个组件实例显示,遮罩只显示最后一个 **/
|
18
|
-
private
|
18
|
+
private backupMask;
|
19
19
|
/** 是否允许多个遮罩实例 */
|
20
20
|
private readonly multiInstance;
|
21
21
|
/** 遮罩控制器唯一标识 */
|
22
|
-
private
|
22
|
+
private uniqueMaskAttrTag;
|
23
23
|
/** 设置弹出层父级组件,默认是body */
|
24
24
|
private parentNode;
|
25
25
|
/** 遮罩当前显示组件实例 **/
|
@@ -31,6 +31,8 @@ export declare class BkMaskManager {
|
|
31
31
|
/** 遮罩样式 **/
|
32
32
|
private readonly maskStyle;
|
33
33
|
private onClick;
|
34
|
+
private isInit;
|
35
|
+
private maskAttrTag;
|
34
36
|
/**
|
35
37
|
* 遮罩管理器
|
36
38
|
*
|
@@ -57,11 +59,13 @@ export declare class BkMaskManager {
|
|
57
59
|
backupActiveInstance(): void;
|
58
60
|
backupContentElement(content?: HTMLElement): void;
|
59
61
|
getActiveContentInstance(): HTMLElement;
|
62
|
+
private initInstance;
|
60
63
|
/**
|
61
64
|
* 初始化当前遮罩管理器
|
62
65
|
* @returns 当前遮罩容器
|
63
66
|
*/
|
64
67
|
private getMask;
|
68
|
+
private getBackupMask;
|
65
69
|
/**
|
66
70
|
* 创建遮罩层DOM
|
67
71
|
* @returns 返回DOM
|
@@ -4,7 +4,9 @@ export declare class BKPopIndexManager {
|
|
4
4
|
private readonly uuidAttrName;
|
5
5
|
private clickFn;
|
6
6
|
private activePopId;
|
7
|
-
|
7
|
+
private bKMaskManagerInstance;
|
8
|
+
constructor(options?: any);
|
9
|
+
getParentNode(transfer: any): any;
|
8
10
|
onMaskClick(callFn: (e: MouseEvent) => void, target: HTMLElement): void;
|
9
11
|
/**
|
10
12
|
* 展示弹窗
|
@@ -4,7 +4,7 @@ declare const BkSideslider: {
|
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
6
|
title: string;
|
7
|
-
transfer: boolean;
|
7
|
+
transfer: string | boolean | HTMLElement;
|
8
8
|
width: string | number;
|
9
9
|
height: string | number;
|
10
10
|
maxHeight: string;
|
@@ -80,10 +80,8 @@ declare const BkSideslider: {
|
|
80
80
|
} & {
|
81
81
|
default: boolean;
|
82
82
|
};
|
83
|
-
transfer: import("vue-types").
|
84
|
-
default: boolean;
|
85
|
-
} & {
|
86
|
-
default: boolean;
|
83
|
+
transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
|
84
|
+
default: string | boolean | (() => HTMLElement);
|
87
85
|
};
|
88
86
|
zIndex: import("vue-types").VueTypeDef<string | number> & {
|
89
87
|
default: string | number;
|
@@ -190,10 +188,8 @@ declare const BkSideslider: {
|
|
190
188
|
} & {
|
191
189
|
default: boolean;
|
192
190
|
};
|
193
|
-
transfer: import("vue-types").
|
194
|
-
default: boolean;
|
195
|
-
} & {
|
196
|
-
default: boolean;
|
191
|
+
transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
|
192
|
+
default: string | boolean | (() => HTMLElement);
|
197
193
|
};
|
198
194
|
zIndex: import("vue-types").VueTypeDef<string | number> & {
|
199
195
|
default: string | number;
|
@@ -230,7 +226,7 @@ declare const BkSideslider: {
|
|
230
226
|
"onAnimation-end"?: (...args: any[]) => any;
|
231
227
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "shown" | "closed" | "update:isShow" | "animation-end")[], string, {
|
232
228
|
title: string;
|
233
|
-
transfer: boolean;
|
229
|
+
transfer: string | boolean | HTMLElement;
|
234
230
|
width: string | number;
|
235
231
|
height: string | number;
|
236
232
|
maxHeight: string;
|
@@ -326,10 +322,8 @@ declare const BkSideslider: {
|
|
326
322
|
} & {
|
327
323
|
default: boolean;
|
328
324
|
};
|
329
|
-
transfer: import("vue-types").
|
330
|
-
default: boolean;
|
331
|
-
} & {
|
332
|
-
default: boolean;
|
325
|
+
transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
|
326
|
+
default: string | boolean | (() => HTMLElement);
|
333
327
|
};
|
334
328
|
zIndex: import("vue-types").VueTypeDef<string | number> & {
|
335
329
|
default: string | number;
|
@@ -426,10 +420,8 @@ declare const BkSideslider: {
|
|
426
420
|
} & {
|
427
421
|
default: boolean;
|
428
422
|
};
|
429
|
-
transfer: import("vue-types").
|
430
|
-
default: boolean;
|
431
|
-
} & {
|
432
|
-
default: boolean;
|
423
|
+
transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
|
424
|
+
default: string | boolean | (() => HTMLElement);
|
433
425
|
};
|
434
426
|
zIndex: import("vue-types").VueTypeDef<string | number> & {
|
435
427
|
default: string | number;
|
@@ -466,7 +458,7 @@ declare const BkSideslider: {
|
|
466
458
|
"onAnimation-end"?: (...args: any[]) => any;
|
467
459
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "shown" | "closed" | "update:isShow" | "animation-end")[], "shown" | "hidden" | "closed" | "update:isShow" | "animation-end", {
|
468
460
|
title: string;
|
469
|
-
transfer: boolean;
|
461
|
+
transfer: string | boolean | HTMLElement;
|
470
462
|
width: string | number;
|
471
463
|
height: string | number;
|
472
464
|
maxHeight: string;
|
@@ -94,14 +94,15 @@
|
|
94
94
|
transform: translate(50%, -50%) rotate(-45deg);
|
95
95
|
}
|
96
96
|
.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-header .bk-sideslider-title {
|
97
|
+
display: flex;
|
97
98
|
height: 52px;
|
98
99
|
padding-left: 30px;
|
99
100
|
font-size: 16px;
|
100
|
-
line-height: 52px;
|
101
101
|
color: #313238;
|
102
|
+
align-items: center;
|
102
103
|
}
|
103
104
|
.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-header .bk-sideslider-title.right {
|
104
|
-
padding:
|
105
|
+
padding: 0 0 0 46px;
|
105
106
|
}
|
106
107
|
.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-footer {
|
107
108
|
display: flex;
|
@@ -110,5 +111,5 @@
|
|
110
111
|
background: #fff;
|
111
112
|
border-top: 1px solid transparent;
|
112
113
|
align-items: center;
|
113
|
-
box-shadow: rgba(0, 0, 0, 0.06)
|
114
|
+
box-shadow: rgba(0, 0, 0, 0.06) 0 -2px 4px 0;
|
114
115
|
}
|
@@ -56,10 +56,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
56
56
|
} & {
|
57
57
|
default: boolean;
|
58
58
|
};
|
59
|
-
transfer: import("vue-types").
|
60
|
-
default: boolean;
|
61
|
-
} & {
|
62
|
-
default: boolean;
|
59
|
+
transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
|
60
|
+
default: string | boolean | (() => HTMLElement);
|
63
61
|
};
|
64
62
|
zIndex: import("vue-types").VueTypeDef<string | number> & {
|
65
63
|
default: string | number;
|
@@ -146,10 +144,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
146
144
|
} & {
|
147
145
|
default: boolean;
|
148
146
|
};
|
149
|
-
transfer: import("vue-types").
|
150
|
-
default: boolean;
|
151
|
-
} & {
|
152
|
-
default: boolean;
|
147
|
+
transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
|
148
|
+
default: string | boolean | (() => HTMLElement);
|
153
149
|
};
|
154
150
|
zIndex: import("vue-types").VueTypeDef<string | number> & {
|
155
151
|
default: string | number;
|
@@ -186,7 +182,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
186
182
|
"onAnimation-end"?: (...args: any[]) => any;
|
187
183
|
}, {
|
188
184
|
title: string;
|
189
|
-
transfer: boolean;
|
185
|
+
transfer: string | boolean | HTMLElement;
|
190
186
|
width: string | number;
|
191
187
|
height: string | number;
|
192
188
|
maxHeight: string;
|
@@ -119,14 +119,15 @@
|
|
119
119
|
}
|
120
120
|
|
121
121
|
.bk-sideslider-title {
|
122
|
+
display: flex;
|
122
123
|
height: 52px;
|
123
124
|
padding-left: 30px;
|
124
125
|
font-size: 16px;
|
125
|
-
line-height: 52px;
|
126
126
|
color: #313238;
|
127
|
+
align-items: center;
|
127
128
|
|
128
129
|
&.right {
|
129
|
-
padding:
|
130
|
+
padding: 0 0 0 30+16px;
|
130
131
|
}
|
131
132
|
}
|
132
133
|
}
|
@@ -138,7 +139,7 @@
|
|
138
139
|
background: #fff;
|
139
140
|
border-top: 1px solid transparent;
|
140
141
|
align-items: center;
|
141
|
-
box-shadow: rgb(0 0 0 / 6%)
|
142
|
+
box-shadow: rgb(0 0 0 / 6%) 0 -2px 4px 0;
|
142
143
|
}
|
143
144
|
}
|
144
145
|
}
|
@@ -216,14 +216,15 @@
|
|
216
216
|
transform: translate(50%, -50%) rotate(-45deg);
|
217
217
|
}
|
218
218
|
.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-header .bk-sideslider-title {
|
219
|
+
display: flex;
|
219
220
|
height: 52px;
|
220
221
|
padding-left: 30px;
|
221
222
|
font-size: 16px;
|
222
|
-
line-height: 52px;
|
223
223
|
color: #313238;
|
224
|
+
align-items: center;
|
224
225
|
}
|
225
226
|
.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-header .bk-sideslider-title.right {
|
226
|
-
padding:
|
227
|
+
padding: 0 0 0 46px;
|
227
228
|
}
|
228
229
|
.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-footer {
|
229
230
|
display: flex;
|
@@ -232,5 +233,5 @@
|
|
232
233
|
background: #fff;
|
233
234
|
border-top: 1px solid transparent;
|
234
235
|
align-items: center;
|
235
|
-
box-shadow: rgba(0, 0, 0, 0.06)
|
236
|
+
box-shadow: rgba(0, 0, 0, 0.06) 0 -2px 4px 0;
|
236
237
|
}
|
@@ -74,41 +74,136 @@ declare const _default: import("vue").DefineComponent<{
|
|
74
74
|
queueStack: (_: any, fn: any) => any;
|
75
75
|
};
|
76
76
|
column: {
|
77
|
-
field:
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
};
|
85
|
-
filter: string | boolean | {
|
86
|
-
list: any[] | (object & (() => any[]));
|
87
|
-
filterFn: any;
|
88
|
-
match: "full" | "fuzzy";
|
89
|
-
checked: any[] | (object & (() => any[]));
|
90
|
-
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
91
|
-
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
92
|
-
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
93
|
-
};
|
94
|
-
type: "none" | "selection" | "index" | "expand";
|
95
|
-
label: any;
|
96
|
-
width: string | number;
|
97
|
-
minWidth: string | number;
|
98
|
-
className: any;
|
99
|
-
align: "" | "left" | "center" | "right";
|
100
|
-
index: number;
|
101
|
-
columnKey: string;
|
102
|
-
showOverflowTooltip: boolean | {
|
77
|
+
field: string | Function;
|
78
|
+
label: string | Function;
|
79
|
+
render?: string | Function | import("vue").Slot;
|
80
|
+
width?: string | number;
|
81
|
+
minWidth?: string | number;
|
82
|
+
columnKey?: string;
|
83
|
+
showOverflowTooltip?: boolean | {
|
103
84
|
content: string | Function;
|
104
85
|
disabled?: boolean;
|
105
86
|
watchCellResize?: boolean;
|
106
87
|
mode?: "auto" | "static";
|
107
88
|
};
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
89
|
+
type?: string;
|
90
|
+
fixed?: string | boolean;
|
91
|
+
resizable?: boolean;
|
92
|
+
sort?: string | boolean | {
|
93
|
+
sortFn?: Function;
|
94
|
+
sortScope?: string;
|
95
|
+
value?: string;
|
96
|
+
};
|
97
|
+
filter?: string | boolean | {
|
98
|
+
list?: any;
|
99
|
+
filterFn?: Function;
|
100
|
+
checked?: any;
|
101
|
+
};
|
102
|
+
colspan?: Function | {
|
103
|
+
toString: (radix?: number) => string;
|
104
|
+
toFixed: (fractionDigits?: number) => string;
|
105
|
+
toExponential: (fractionDigits?: number) => string;
|
106
|
+
toPrecision: (precision?: number) => string;
|
107
|
+
valueOf: () => number;
|
108
|
+
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
109
|
+
};
|
110
|
+
rowspan?: Function | {
|
111
|
+
toString: (radix?: number) => string;
|
112
|
+
toFixed: (fractionDigits?: number) => string;
|
113
|
+
toExponential: (fractionDigits?: number) => string;
|
114
|
+
toPrecision: (precision?: number) => string;
|
115
|
+
valueOf: () => number;
|
116
|
+
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
117
|
+
};
|
118
|
+
textAlign?: {
|
119
|
+
[x: number]: string;
|
120
|
+
toString: () => string;
|
121
|
+
charAt: (pos: number) => string;
|
122
|
+
charCodeAt: (index: number) => number;
|
123
|
+
concat: (...strings: string[]) => string;
|
124
|
+
indexOf: (searchString: string, position?: number) => number;
|
125
|
+
lastIndexOf: (searchString: string, position?: number) => number;
|
126
|
+
localeCompare: {
|
127
|
+
(that: string): number;
|
128
|
+
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
129
|
+
};
|
130
|
+
match: {
|
131
|
+
(regexp: string | RegExp): RegExpMatchArray;
|
132
|
+
(matcher: {
|
133
|
+
[Symbol.match](string: string): RegExpMatchArray;
|
134
|
+
}): RegExpMatchArray;
|
135
|
+
};
|
136
|
+
replace: {
|
137
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
138
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
139
|
+
(searchValue: {
|
140
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
141
|
+
}, replaceValue: string): string;
|
142
|
+
(searchValue: {
|
143
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
144
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
145
|
+
};
|
146
|
+
search: {
|
147
|
+
(regexp: string | RegExp): number;
|
148
|
+
(searcher: {
|
149
|
+
[Symbol.search](string: string): number;
|
150
|
+
}): number;
|
151
|
+
};
|
152
|
+
slice: (start?: number, end?: number) => string;
|
153
|
+
split: {
|
154
|
+
(separator: string | RegExp, limit?: number): string[];
|
155
|
+
(splitter: {
|
156
|
+
[Symbol.split](string: string, limit?: number): string[];
|
157
|
+
}, limit?: number): string[];
|
158
|
+
};
|
159
|
+
substring: (start: number, end?: number) => string;
|
160
|
+
toLowerCase: () => string;
|
161
|
+
toLocaleLowerCase: (locales?: string | string[]) => string;
|
162
|
+
toUpperCase: () => string;
|
163
|
+
toLocaleUpperCase: (locales?: string | string[]) => string;
|
164
|
+
trim: () => string;
|
165
|
+
readonly length: number;
|
166
|
+
substr: (from: number, length?: number) => string;
|
167
|
+
valueOf: () => string;
|
168
|
+
codePointAt: (pos: number) => number;
|
169
|
+
includes: (searchString: string, position?: number) => boolean;
|
170
|
+
endsWith: (searchString: string, endPosition?: number) => boolean;
|
171
|
+
normalize: {
|
172
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
173
|
+
(form?: string): string;
|
174
|
+
};
|
175
|
+
repeat: (count: number) => string;
|
176
|
+
startsWith: (searchString: string, position?: number) => boolean;
|
177
|
+
anchor: (name: string) => string;
|
178
|
+
big: () => string;
|
179
|
+
blink: () => string;
|
180
|
+
bold: () => string;
|
181
|
+
fixed: () => string;
|
182
|
+
fontcolor: (color: string) => string;
|
183
|
+
fontsize: {
|
184
|
+
(size: number): string;
|
185
|
+
(size: string): string;
|
186
|
+
};
|
187
|
+
italics: () => string;
|
188
|
+
link: (url: string) => string;
|
189
|
+
small: () => string;
|
190
|
+
strike: () => string;
|
191
|
+
sub: () => string;
|
192
|
+
sup: () => string;
|
193
|
+
padStart: (maxLength: number, fillString?: string) => string;
|
194
|
+
padEnd: (maxLength: number, fillString?: string) => string;
|
195
|
+
trimEnd: () => string;
|
196
|
+
trimStart: () => string;
|
197
|
+
trimLeft: () => string;
|
198
|
+
trimRight: () => string;
|
199
|
+
matchAll: (regexp: RegExp) => IterableIterator<RegExpMatchArray>;
|
200
|
+
[Symbol.iterator]: () => IterableIterator<string>;
|
201
|
+
at: (index: number) => string;
|
202
|
+
};
|
203
|
+
className?: string | Function;
|
204
|
+
align?: string;
|
205
|
+
prop?: string | Function;
|
206
|
+
index?: number;
|
112
207
|
};
|
113
208
|
}, unknown, {}, {
|
114
209
|
updateColumnDefine(unmounted?: boolean): void;
|