@deskhero/dh_ui 1.52.1 → 1.52.2
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/dh_ui.es.js
CHANGED
|
@@ -43378,10 +43378,6 @@ const _sfc_main$1 = {
|
|
|
43378
43378
|
type: Number,
|
|
43379
43379
|
default: 50,
|
|
43380
43380
|
required: false
|
|
43381
|
-
},
|
|
43382
|
-
uploadEndPoint: {
|
|
43383
|
-
type: String,
|
|
43384
|
-
default: "https://api.imgbb.com/1/upload"
|
|
43385
43381
|
}
|
|
43386
43382
|
},
|
|
43387
43383
|
emits: ["change"],
|
|
@@ -43480,10 +43476,7 @@ const _sfc_main$1 = {
|
|
|
43480
43476
|
shortcut: "CMD+SHIFT+H"
|
|
43481
43477
|
},
|
|
43482
43478
|
image: {
|
|
43483
|
-
class: ImageTool
|
|
43484
|
-
config: {
|
|
43485
|
-
uploadEndpoint: props.uploadEndPoint
|
|
43486
|
-
}
|
|
43479
|
+
class: ImageTool
|
|
43487
43480
|
},
|
|
43488
43481
|
inlineCode: {
|
|
43489
43482
|
class: InlineCode
|
package/dist/dh_ui.umd.js
CHANGED
|
@@ -374,4 +374,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
374
374
|
`);var k=d(b.insertInto+" "+b.insertAt.before);x.insertBefore(g,k)}}function N(b){if(b.parentNode===null)return!1;b.parentNode.removeChild(b);var g=p.indexOf(b);g>=0&&p.splice(g,1)}function D(b){var g=document.createElement("style");return b.attrs.type===void 0&&(b.attrs.type="text/css"),m(g,b.attrs),h(b,g),g}function m(b,g){Object.keys(g).forEach(function(x){b.setAttribute(x,g[x])})}function j(b,g){var x,A,k,C;if(g.transform&&b.css){if(!(C=g.transform(b.css)))return function(){};b.css=C}if(g.singleton){var E=f++;x=M||(M=D(g)),A=w.bind(null,x,E,!1),k=w.bind(null,x,E,!0)}else b.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(x=function(S){var _=document.createElement("link");return S.attrs.type===void 0&&(S.attrs.type="text/css"),S.attrs.rel="stylesheet",m(_,S.attrs),h(S,_),_}(g),A=O.bind(null,x,g),k=function(){N(x),x.href&&URL.revokeObjectURL(x.href)}):(x=D(g),A=z.bind(null,x),k=function(){N(x)});return A(b),function(S){if(S){if(S.css===b.css&&S.media===b.media&&S.sourceMap===b.sourceMap)return;A(b=S)}else k()}}t.exports=function(b,g){if(typeof DEBUG!="undefined"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(g=g||{}).attrs=typeof g.attrs=="object"?g.attrs:{},g.singleton||typeof g.singleton=="boolean"||(g.singleton=l()),g.insertInto||(g.insertInto="head"),g.insertAt||(g.insertAt="bottom");var x=v(b,g);return I(x,g),function(A){for(var k=[],C=0;C<x.length;C++){var E=x[C];(S=s[E.id]).refs--,k.push(S)}for(A&&I(v(A,g),g),C=0;C<k.length;C++){var S;if((S=k[C]).refs===0){for(var _=0;_<S.parts.length;_++)S.parts[_]();delete s[S.id]}}}};var T,L=(T=[],function(b,g){return T[b]=g,T.filter(Boolean).join(`
|
|
375
375
|
`)});function w(b,g,x,A){var k=x?"":A.css;if(b.styleSheet)b.styleSheet.cssText=L(g,k);else{var C=document.createTextNode(k),E=b.childNodes;E[g]&&b.removeChild(E[g]),E.length?b.insertBefore(C,E[g]):b.appendChild(C)}}function z(b,g){var x=g.css,A=g.media;if(A&&b.setAttribute("media",A),b.styleSheet)b.styleSheet.cssText=x;else{for(;b.firstChild;)b.removeChild(b.firstChild);b.appendChild(document.createTextNode(x))}}function O(b,g,x){var A=x.css,k=x.sourceMap,C=g.convertToAbsoluteUrls===void 0&&k;(g.convertToAbsoluteUrls||C)&&(A=y(A)),k&&(A+=`
|
|
376
376
|
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(k))))+" */");var E=new Blob([A],{type:"text/css"}),S=b.href;b.href=URL.createObjectURL(E),S&&URL.revokeObjectURL(S)}},function(t,o){t.exports=function(e){var i=typeof window!="undefined"&&window.location;if(!i)throw new Error("fixUrls requires window.location");if(!e||typeof e!="string")return e;var a=i.protocol+"//"+i.host,s=a+i.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(l,c){var d,M=c.trim().replace(/^"(.*)"$/,function(f,p){return p}).replace(/^'(.*)'$/,function(f,p){return p});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(M)?l:(d=M.indexOf("//")===0?M:M.indexOf("/")===0?a+M:s+M.replace(/^\.\//,""),"url("+JSON.stringify(d)+")")})}},function(t,o,e){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(i){var a=this;if(!document.documentElement.contains(a))return null;do{if(a.matches(i))return a;a=a.parentElement||a.parentNode}while(a!==null&&a.nodeType===1);return null})},function(t,o,e){e.r(o),e.d(o,"default",function(){return p}),e(0);function i(y){return function(I){if(Array.isArray(I))return a(I)}(y)||function(I){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(I))return Array.from(I)}(y)||function(I,v){if(!!I){if(typeof I=="string")return a(I,v);var h=Object.prototype.toString.call(I).slice(8,-1);if(h==="Object"&&I.constructor&&(h=I.constructor.name),h==="Map"||h==="Set")return Array.from(I);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return a(I,v)}}(y)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
377
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function a(y,I){(I==null||I>y.length)&&(I=y.length);for(var v=0,h=new Array(I);v<I;v++)h[v]=y[v];return h}function s(){var y=document.activeElement,I=window.getSelection().getRangeAt(0),v=I.cloneRange();return v.selectNodeContents(y),v.setStart(I.endContainer,I.endOffset),v.extractContents()}function l(y){var I,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},N=document.createElement(y);Array.isArray(v)?(I=N.classList).add.apply(I,i(v)):v&&N.classList.add(v);for(var D in h)N[D]=h[D];return N}function c(y){return y.innerHTML.replace("<br>"," ").trim()}function d(y){var I=arguments.length>1&&arguments[1]!==void 0&&arguments[1],v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,h=document.createRange(),N=window.getSelection();h.selectNodeContents(y),v!==void 0&&(h.setStart(y,v),h.setEnd(y,v)),h.collapse(I),N.removeAllRanges(),N.addRange(h)}e(5);function M(y,I){for(var v=0;v<I.length;v++){var h=I[v];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(y,h.key,h)}}function f(y,I,v){return I&&M(y.prototype,I),v&&M(y,v),y}var p=function(){function y(I){var v=I.data,h=(I.config,I.api),N=I.readOnly;(function(D,m){if(!(D instanceof m))throw new TypeError("Cannot call a class as a function")})(this,y),this._elements={wrapper:null,items:[]},this.readOnly=N,this.api=h,this.data=v||{}}return f(y,null,[{key:"isReadOnlySupported",get:function(){return!0}},{key:"enableLineBreaks",get:function(){return!0}},{key:"toolbox",get:function(){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9.2 12L11.0586 13.8586C11.1367 13.9367 11.2633 13.9367 11.3414 13.8586L14.7 10.5"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>',title:"Checklist"}}},{key:"conversionConfig",get:function(){return{export:function(I){return I.items.map(function(v){return v.text}).join(". ")},import:function(I){return{items:[{text:I,checked:!1}]}}}}}]),f(y,[{key:"render",value:function(){var I=this;return this._elements.wrapper=l("div",[this.CSS.baseBlock,this.CSS.wrapper]),this.data.items||(this.data.items=[{text:"",checked:!1}]),this.data.items.forEach(function(v){var h=I.createChecklistItem(v);I._elements.wrapper.appendChild(h)}),this.readOnly||(this._elements.wrapper.addEventListener("keydown",function(v){switch(v.keyCode){case 13:I.enterPressed(v);break;case 8:I.backspace(v)}},!1),this._elements.wrapper.addEventListener("click",function(v){I.toggleCheckbox(v)})),this._elements.wrapper}},{key:"save",value:function(){var I=this,v=this.items.map(function(h){return{text:c(I.getItemInput(h)),checked:h.classList.contains(I.CSS.itemChecked)}});return{items:v=v.filter(function(h){return h.text.trim().length!==0})}}},{key:"validate",value:function(I){return!!I.items.length}},{key:"toggleCheckbox",value:function(I){var v=I.target.closest(".".concat(this.CSS.item));v.querySelector(".".concat(this.CSS.checkbox)).contains(I.target)&&v.classList.toggle(this.CSS.itemChecked)}},{key:"createChecklistItem",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=l("div",this.CSS.item),h=l("span",this.CSS.checkbox),N=l("div",this.CSS.textField,{innerHTML:I.text?I.text:"",contentEditable:!this.readOnly});return I.checked&&v.classList.add(this.CSS.itemChecked),v.appendChild(h),v.appendChild(N),v}},{key:"enterPressed",value:function(I){I.preventDefault();var v=this.items,h=document.activeElement.closest(".".concat(this.CSS.item));if(v.indexOf(h)===v.length-1&&c(this.getItemInput(h)).length===0){var N=this.api.blocks.getCurrentBlockIndex();return h.remove(),this.api.blocks.insert(),void this.api.caret.setToBlock(N+1)}var D,m,j=s(),T=(D=j,(m=document.createElement("div")).appendChild(D),m.innerHTML),L=this.createChecklistItem({text:T,checked:!1});this._elements.wrapper.insertBefore(L,h.nextSibling),d(this.getItemInput(L),!0)}},{key:"backspace",value:function(I){var v=I.target.closest(".".concat(this.CSS.item)),h=this.items.indexOf(v),N=this.items[h-1];if(N&&window.getSelection().focusOffset===0){I.preventDefault();var D=s(),m=this.getItemInput(N),j=m.childNodes.length;m.appendChild(D),d(m,void 0,j),v.remove()}}},{key:"getItemInput",value:function(I){return I.querySelector(".".concat(this.CSS.textField))}},{key:"CSS",get:function(){return{baseBlock:this.api.styles.block,wrapper:"cdx-checklist",item:"cdx-checklist__item",itemChecked:"cdx-checklist__item--checked",checkbox:"cdx-checklist__item-checkbox",textField:"cdx-checklist__item-text"}}},{key:"items",get:function(){return Array.from(this._elements.wrapper.querySelectorAll(".".concat(this.CSS.item)))}}]),y}()}]).default})})(Bf);var sw=Qt(Bf.exports);class Pf{static get isReadOnlySupported(){return!0}static get toolbox(){return{title:"Image",icon:'<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.34 3H2.66C2.48496 3 2.31708 3.06954 2.19331 3.19331C2.06954 3.31708 2 3.48496 2 3.66V11.58C2 11.755 2.06954 11.9229 2.19331 12.0467C2.31708 12.1705 2.48496 12.24 2.66 12.24H12.34C12.515 12.24 12.6829 12.1705 12.8067 12.0467C12.9305 11.9229 13 11.755 13 11.58V3.66C13 3.48496 12.9305 3.31708 12.8067 3.19331C12.6829 3.06954 12.515 3 12.34 3ZM2.66 3.44H12.34C12.3983 3.44 12.4543 3.46318 12.4956 3.50444C12.5368 3.54569 12.56 3.60165 12.56 3.66V9.842L10.751 8.03305C10.6897 7.97152 10.6169 7.9227 10.5367 7.88939C10.4564 7.85608 10.3704 7.83893 10.2836 7.83893C10.1967 7.83893 10.1107 7.85608 10.0304 7.88939C9.95023 7.9227 9.87737 7.97152 9.81605 8.03305L8.5604 9.2887L5.9853 6.71305C5.92398 6.65152 5.85112 6.6027 5.7709 6.56939C5.69068 6.53608 5.60467 6.51893 5.5178 6.51893C5.43093 6.51893 5.34492 6.53608 5.2647 6.56939C5.18448 6.6027 5.11162 6.65152 5.0503 6.71305L2.44 9.325V3.66C2.44 3.60165 2.46318 3.54569 2.50444 3.50444C2.54569 3.46318 2.60165 3.44 2.66 3.44ZM2.44 11.58V9.9487L5.36435 7.02435C5.38478 7.00389 5.40905 6.98767 5.43575 6.9766C5.46246 6.96553 5.49109 6.95983 5.52 6.95983C5.54891 6.95983 5.57754 6.96553 5.60425 6.9766C5.63095 6.98767 5.65522 7.00389 5.67565 7.02435L10.4513 11.8H2.66C2.60165 11.8 2.54569 11.7768 2.50444 11.7356C2.46318 11.6943 2.44 11.6383 2.44 11.58ZM12.34 11.8H11.075L8.875 9.6L10.1307 8.34435C10.1511 8.3239 10.1753 8.30767 10.2021 8.2966C10.2288 8.28553 10.2574 8.27983 10.2863 8.27983C10.3152 8.27983 10.3438 8.28553 10.3705 8.2966C10.3973 8.30767 10.4215 8.3239 10.4419 8.34435L12.56 10.4641V11.58C12.56 11.6383 12.5368 11.6943 12.4956 11.7356C12.4543 11.7768 12.3983 11.8 12.34 11.8Z" fill="black"/></svg>'}}constructor({data:n,config:t,api:o}){this.data=n,this.api=o,this.config=t||{},this.wrapper=null,this.fileInput=null,this.img=null,this.label=null,this.icon=null,this.browse=null,this.uploading=!1}render(){return this.container=document.createElement("div"),this.container.classList.add("file__upload"),this.wrapper=document.createElement("div"),this.wrapper.classList.add("file__upload_btn"),this.fileInput=document.createElement("input"),this.fileInput.id="upload_pdf",this.fileInput.type="file",this.fileInput.name="file",this.fileInput.accept="image/*",this.icon=document.createElement("IMG"),this.icon.classList.add("file__upload_btn_icon"),this.icon.src=pd,this.icon.onerror=function(){console.log("Error loading image")},this.icon.height="24",this.label=document.createElement("label"),this.label.setAttribute("for","upload_pdf"),this.label.textContent="Drag & drop image file or ",this.browse=document.createElement("span"),this.browse.textContent="browse",this.browse.id="upload",this.label.appendChild(this.browse),this.wrapper.prepend(this.icon),this.wrapper.appendChild(this.label),this.wrapper.appendChild(this.fileInput),this.wrapper.addEventListener("dragover",n=>{n.preventDefault(),n.dataTransfer.dropEffect="copy"}),this.wrapper.addEventListener("drop",n=>{n.preventDefault();const t=n.dataTransfer.files[0];this.handleFile(t)}),this.fileInput.addEventListener("input",n=>{n.stopPropagation(),this.handleFile(this.fileInput.files[0])}),this.img=document.createElement("IMG"),this.img.classList.add("file__upload_img"),this.container.appendChild(this.wrapper),this.container.appendChild(this.img),this.data&&this.data.imageLink&&(this.img.src=this.data.imageLink,this.img.style.display="block",this.wrapper.style.display="none"),this.container}handleFile(n){if(n.type.match("image.*")){this.wrapper.style.display="none";const t=URL.createObjectURL(n);this.img.src=t,this.img.style.display="block",this.uploading=!0,this.uploadFile(n)}else alert("Invalid file type. Please select an image file.")}save(){return{imageLink:this.data.imageLink||this.img.src}}uploadFile(n){const t=new CustomEvent("uploadImage",{detail:{image:n}});document.dispatchEvent(t)}}var sL="";const lw={class:"editor__wrapper"},uw={key:0,class:"editor__count"},cw=u.createTextVNode(" /300 "),dw={class:"editor__body"},Mw={key:0,class:"editor__first"},fw={class:"editor__first_text"},gw={class:"editor__first_link",href:"https://deskhero.com",target:"_blank"},hw=["id"],pw={__name:"TextEditor",props:{data:{type:Object,default:()=>({blocks:[]}),required:!1},readOnly:{type:Boolean,default:!0,required:!1},featureSet:{type:String,default:"Default",required:!1},firstBlock:{type:Boolean,default:!0,required:!1},firstBlockText:{type:String,default:"add your first block",required:!1},learnMoreText:{type:String,default:"Learn more about the text editor",required:!1},placeholder:{type:String,default:"Start typing...",required:!1},holder:{type:String,required:!0},wordCount:{type:Boolean,default:!1,required:!1},minHeight:{type:Number,default:50,required:!1},uploadEndPoint:{type:String,default:"https://api.imgbb.com/1/upload"}},emits:["change"],setup(r,{expose:n,emit:t}){const o=r,e=u.ref(!1),i=u.ref(0),a=u.ref(!1),s=u.ref({}),l=u.ref({holder:o.holder,autofocus:!0,minHeight:0,defaultBlock:"paragraph",readOnly:o.readOnly,logLevel:"ERROR",onReady:()=>{e.value=!0},onChange:async(I,v)=>{if(v.type!=="block-changed"||!o.wordCount){const g=await I.saver.save();t("change",g.blocks);return}function h(g){return"text"in g.data}function N(g){return g.filter(h).reduce((x,A)=>(x+=A.data.text.length,x),0)}const D=300,m=await I.saver.save(),j=N(m.blocks);if(i.value=j,j<=D)return;const T=v.detail.target,L=v.detail.index,w=m.blocks.filter(g=>g.id===T.id).pop(),z=m.blocks.filter(g=>g.id!==T.id),O=N(z),b=D-O;I.blocks.update(T.id,{text:w.data.text.substr(0,b)}),I.caret.setToBlock(L,"end")}}),c=u.computed(()=>i.value>300);n({toggleReadOnly:d,save:M,addData:f});function d(){s.value.readOnly.toggle()}function M(){return s.value.save()}function f(I){s.value.blocks.insert(I)}function p(){o.featureSet=="Full"?s.value=new Vl({...l.value,data:o.data,minHeight:o.minHeight,tools:{paragraph:{class:Gl,config:{placeholder:o.placeholder}},header:{class:Wl},list:{class:_f},underline:{class:zf,shortcut:"CMD+SHIFT+U"},marker:{class:wf,shortcut:"CMD+SHIFT+H"},image:{class:Pf,config:{uploadEndpoint:o.uploadEndPoint}},inlineCode:{class:rw},checklist:{class:sw},table:{class:ow},delimiter:{class:aw},code:{class:iw}}}):o.featureSet=="Default"?s.value=new Vl({...l.value,data:o.data,minHeight:o.minHeight,tools:{paragraph:{class:Gl,config:{placeholder:o.placeholder}},header:{class:Wl},list:{class:_f},underline:{class:zf,shortcut:"CMD+SHIFT+U"},marker:{class:wf,shortcut:"CMD+SHIFT+H"},image:{class:Pf,config:{uploadEndpoint:o.uploadEndPoint}}}}):s.value=new Vl({...l.value,data:o.data,minHeight:o.minHeight,tools:{paragraph:{class:Gl,config:{placeholder:o.placeholder}},header:{class:Wl}}})}function y(){p(),a.value=!1}return u.onMounted(()=>{o.firstBlock?p():a.value=!0}),(I,v)=>(u.openBlock(),u.createElementBlock("div",lw,[r.wordCount?(u.openBlock(),u.createElementBlock("div",uw,[u.createElementVNode("span",{class:u.normalizeClass(u.unref(c)?"editor__count--danger":"")},u.toDisplayString(i.value),3),cw])):u.createCommentVNode("",!0),u.createElementVNode("div",dw,[a.value?(u.openBlock(),u.createElementBlock("div",Mw,[u.createElementVNode("button",{class:"editor__first_btn",onClick:y},"+"),u.createElementVNode("p",fw,u.toDisplayString(r.firstBlockText),1),u.createElementVNode("a",gw,u.toDisplayString(r.learnMoreText),1)])):u.createCommentVNode("",!0),u.createElementVNode("div",{id:r.holder},null,8,hw)])]))}};var lL="";const yw={class:"code"},Nw=["autocomplete"],jw=["autocomplete"],Iw=["autocomplete"],mw=["autocomplete"],Dw=["autocomplete"],xw=["autocomplete"];var vw=nt(u.defineComponent({__name:"VerificationCode",props:{code:{type:String,required:!1,default:""},focusOnFirstInput:{type:Boolean,default:!0},focusOnFirstInputDelay:{type:Number,default:100},autoComplete:{type:String,default:"off"}},emits:["submit"],setup(r,{emit:n}){const t=r,o=u.ref(null),e=u.ref(null),i=u.ref(null),a=u.ref(null),s=u.ref(null),l=u.ref(null);async function c(v){var h,N,D,m,j;switch(v){case 1:break;case 2:(h=o.value)==null||h.focus();break;case 3:(N=e.value)==null||N.focus();break;case 4:(D=i.value)==null||D.focus();break;case 5:(m=a.value)==null||m.focus();break;case 6:(j=s.value)==null||j.focus();break}}async function d(v){var h,N,D,m,j;switch(v){case 1:(h=e.value)==null||h.focus();break;case 2:(N=i.value)==null||N.focus();break;case 3:(D=a.value)==null||D.focus();break;case 4:(m=s.value)==null||m.focus();break;case 5:(j=l.value)==null||j.focus();break}}async function M(v,h){const N=v.key;let D=!0;[{_index:1,nextInput:e},{_index:2,nextInput:i},{_index:3,nextInput:a},{_index:4,nextInput:s},{_index:5,nextInput:l}].forEach(({_index:m,nextInput:j})=>{h===m&&(j.value&&N.match(/^[0-9]+$/)&&j.value.focus({}),D=!1),v.preventDefault()}),N.match(/^[0-9]+$/)&&(v.target.value=N),D&&y()}async function f(v){var N;const h=((N=v.clipboardData)==null?void 0:N.getData("text/plain"))||"";p(h),y()}function p(v){const h=v.replace(/\D/g,"");if(h.length!==6)return;const[N,D,m,j,T,L]=h.split("");o.value&&(o.value.value=N),e.value&&(e.value.value=D),i.value&&(i.value.value=m),a.value&&(a.value.value=j),s.value&&(s.value.value=T),l.value&&(l.value.value=L)}async function y(){var h,N,D,m,j,T;const v=`${(h=o.value)==null?void 0:h.value}${(N=e.value)==null?void 0:N.value}${(D=i.value)==null?void 0:D.value}${(m=a.value)==null?void 0:m.value}${(j=s.value)==null?void 0:j.value}${(T=l.value)==null?void 0:T.value}`;n("submit",v)}function I(){setTimeout(()=>{var v;t.focusOnFirstInput&&((v=o.value)==null||v.focus())},t.focusOnFirstInputDelay)}return u.onMounted(()=>{t.code&&(p(t.code),y()),I()}),(v,h)=>(u.openBlock(),u.createElementBlock("div",yw,[u.createElementVNode("input",{ref_key:"txtInput1",ref:o,autocomplete:r.autoComplete,autofocus:"",class:"form-input input-1","data-e2e":"input-1",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:h[0]||(h[0]=N=>M(N,1)),onKeyup:[h[1]||(h[1]=u.withKeys(N=>c(1),["delete"])),h[2]||(h[2]=u.withKeys(N=>c(1),["left"])),h[3]||(h[3]=u.withKeys(N=>d(1),["right"]))],onPaste:f},null,40,Nw),u.createElementVNode("input",{ref_key:"txtInput2",ref:e,autocomplete:r.autoComplete,class:"form-input","data-e2e":"input-2",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:h[4]||(h[4]=N=>M(N,2)),onKeyup:[h[5]||(h[5]=u.withKeys(N=>c(2),["delete"])),h[6]||(h[6]=u.withKeys(N=>c(2),["left"])),h[7]||(h[7]=u.withKeys(N=>d(2),["right"]))],onPaste:f},null,40,jw),u.createElementVNode("input",{ref_key:"txtInput3",ref:i,autocomplete:r.autoComplete,class:"form-input","data-e2e":"input-3",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:h[8]||(h[8]=N=>M(N,3)),onKeyup:[h[9]||(h[9]=u.withKeys(N=>c(3),["delete"])),h[10]||(h[10]=u.withKeys(N=>c(3),["left"])),h[11]||(h[11]=u.withKeys(N=>d(3),["right"]))],onPaste:f},null,40,Iw),u.createElementVNode("input",{ref_key:"txtInput4",ref:a,autocomplete:r.autoComplete,class:"form-input","data-e2e":"input-4",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:h[12]||(h[12]=N=>M(N,4)),onKeyup:[h[13]||(h[13]=u.withKeys(N=>c(4),["delete"])),h[14]||(h[14]=u.withKeys(N=>c(4),["left"])),h[15]||(h[15]=u.withKeys(N=>d(4),["right"]))],onPaste:f},null,40,mw),u.createElementVNode("input",{ref_key:"txtInput5",ref:s,autocomplete:r.autoComplete,class:"form-input","data-e2e":"input-5",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:h[16]||(h[16]=N=>M(N,5)),onKeyup:[h[17]||(h[17]=u.withKeys(N=>c(5),["delete"])),h[18]||(h[18]=u.withKeys(N=>c(5),["left"])),h[19]||(h[19]=u.withKeys(N=>d(5),["right"]))],onPaste:f},null,40,Dw),u.createElementVNode("input",{ref_key:"txtInput6",ref:l,autocomplete:r.autoComplete,class:"form-input","data-e2e":"input-6",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:h[20]||(h[20]=N=>M(N,6)),onKeyup:[h[21]||(h[21]=u.withKeys(N=>c(6),["delete"])),h[22]||(h[22]=u.withKeys(N=>c(6),["left"])),h[23]||(h[23]=u.withKeys(N=>d(6),["right"]))],onPaste:f},null,40,xw)]))}}),[["__scopeId","data-v-2ace876a"]]);Le.DhAdvancedDatePicker=bT,Le.DhAdvancedFilter=ET,Le.DhButton=YT,Le.DhCopyText=HT,Le.DhDatePicker=JT,Le.DhDropdownMenu=tA,Le.DhError=rA,Le.DhExpansionPanel=lA,Le.DhFileUpload=TA,Le.DhIcon=be,Le.DhInputDropdown=bf,Le.DhInputDropdownMultiple=EA,Le.DhInputGroup=YA,Le.DhInputList=Tk,Le.DhModal=Ok,Le.DhNotification=Yk,Le.DhNumberRange=mf,Le.DhPasswordField=Vk,Le.DhRadioBox=Tf,Le.DhRadioBoxGroup=$k,Le.DhSearchInput=Kk,Le.DhStepper=nw,Le.DhSwitch=yd,Le.DhTextEditor=pw,Le.DhTooltip=xf,Le.DhVerificationCode=vw,Object.defineProperties(Le,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
377
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function a(y,I){(I==null||I>y.length)&&(I=y.length);for(var v=0,h=new Array(I);v<I;v++)h[v]=y[v];return h}function s(){var y=document.activeElement,I=window.getSelection().getRangeAt(0),v=I.cloneRange();return v.selectNodeContents(y),v.setStart(I.endContainer,I.endOffset),v.extractContents()}function l(y){var I,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},N=document.createElement(y);Array.isArray(v)?(I=N.classList).add.apply(I,i(v)):v&&N.classList.add(v);for(var D in h)N[D]=h[D];return N}function c(y){return y.innerHTML.replace("<br>"," ").trim()}function d(y){var I=arguments.length>1&&arguments[1]!==void 0&&arguments[1],v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,h=document.createRange(),N=window.getSelection();h.selectNodeContents(y),v!==void 0&&(h.setStart(y,v),h.setEnd(y,v)),h.collapse(I),N.removeAllRanges(),N.addRange(h)}e(5);function M(y,I){for(var v=0;v<I.length;v++){var h=I[v];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(y,h.key,h)}}function f(y,I,v){return I&&M(y.prototype,I),v&&M(y,v),y}var p=function(){function y(I){var v=I.data,h=(I.config,I.api),N=I.readOnly;(function(D,m){if(!(D instanceof m))throw new TypeError("Cannot call a class as a function")})(this,y),this._elements={wrapper:null,items:[]},this.readOnly=N,this.api=h,this.data=v||{}}return f(y,null,[{key:"isReadOnlySupported",get:function(){return!0}},{key:"enableLineBreaks",get:function(){return!0}},{key:"toolbox",get:function(){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9.2 12L11.0586 13.8586C11.1367 13.9367 11.2633 13.9367 11.3414 13.8586L14.7 10.5"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>',title:"Checklist"}}},{key:"conversionConfig",get:function(){return{export:function(I){return I.items.map(function(v){return v.text}).join(". ")},import:function(I){return{items:[{text:I,checked:!1}]}}}}}]),f(y,[{key:"render",value:function(){var I=this;return this._elements.wrapper=l("div",[this.CSS.baseBlock,this.CSS.wrapper]),this.data.items||(this.data.items=[{text:"",checked:!1}]),this.data.items.forEach(function(v){var h=I.createChecklistItem(v);I._elements.wrapper.appendChild(h)}),this.readOnly||(this._elements.wrapper.addEventListener("keydown",function(v){switch(v.keyCode){case 13:I.enterPressed(v);break;case 8:I.backspace(v)}},!1),this._elements.wrapper.addEventListener("click",function(v){I.toggleCheckbox(v)})),this._elements.wrapper}},{key:"save",value:function(){var I=this,v=this.items.map(function(h){return{text:c(I.getItemInput(h)),checked:h.classList.contains(I.CSS.itemChecked)}});return{items:v=v.filter(function(h){return h.text.trim().length!==0})}}},{key:"validate",value:function(I){return!!I.items.length}},{key:"toggleCheckbox",value:function(I){var v=I.target.closest(".".concat(this.CSS.item));v.querySelector(".".concat(this.CSS.checkbox)).contains(I.target)&&v.classList.toggle(this.CSS.itemChecked)}},{key:"createChecklistItem",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=l("div",this.CSS.item),h=l("span",this.CSS.checkbox),N=l("div",this.CSS.textField,{innerHTML:I.text?I.text:"",contentEditable:!this.readOnly});return I.checked&&v.classList.add(this.CSS.itemChecked),v.appendChild(h),v.appendChild(N),v}},{key:"enterPressed",value:function(I){I.preventDefault();var v=this.items,h=document.activeElement.closest(".".concat(this.CSS.item));if(v.indexOf(h)===v.length-1&&c(this.getItemInput(h)).length===0){var N=this.api.blocks.getCurrentBlockIndex();return h.remove(),this.api.blocks.insert(),void this.api.caret.setToBlock(N+1)}var D,m,j=s(),T=(D=j,(m=document.createElement("div")).appendChild(D),m.innerHTML),L=this.createChecklistItem({text:T,checked:!1});this._elements.wrapper.insertBefore(L,h.nextSibling),d(this.getItemInput(L),!0)}},{key:"backspace",value:function(I){var v=I.target.closest(".".concat(this.CSS.item)),h=this.items.indexOf(v),N=this.items[h-1];if(N&&window.getSelection().focusOffset===0){I.preventDefault();var D=s(),m=this.getItemInput(N),j=m.childNodes.length;m.appendChild(D),d(m,void 0,j),v.remove()}}},{key:"getItemInput",value:function(I){return I.querySelector(".".concat(this.CSS.textField))}},{key:"CSS",get:function(){return{baseBlock:this.api.styles.block,wrapper:"cdx-checklist",item:"cdx-checklist__item",itemChecked:"cdx-checklist__item--checked",checkbox:"cdx-checklist__item-checkbox",textField:"cdx-checklist__item-text"}}},{key:"items",get:function(){return Array.from(this._elements.wrapper.querySelectorAll(".".concat(this.CSS.item)))}}]),y}()}]).default})})(Bf);var sw=Qt(Bf.exports);class Pf{static get isReadOnlySupported(){return!0}static get toolbox(){return{title:"Image",icon:'<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.34 3H2.66C2.48496 3 2.31708 3.06954 2.19331 3.19331C2.06954 3.31708 2 3.48496 2 3.66V11.58C2 11.755 2.06954 11.9229 2.19331 12.0467C2.31708 12.1705 2.48496 12.24 2.66 12.24H12.34C12.515 12.24 12.6829 12.1705 12.8067 12.0467C12.9305 11.9229 13 11.755 13 11.58V3.66C13 3.48496 12.9305 3.31708 12.8067 3.19331C12.6829 3.06954 12.515 3 12.34 3ZM2.66 3.44H12.34C12.3983 3.44 12.4543 3.46318 12.4956 3.50444C12.5368 3.54569 12.56 3.60165 12.56 3.66V9.842L10.751 8.03305C10.6897 7.97152 10.6169 7.9227 10.5367 7.88939C10.4564 7.85608 10.3704 7.83893 10.2836 7.83893C10.1967 7.83893 10.1107 7.85608 10.0304 7.88939C9.95023 7.9227 9.87737 7.97152 9.81605 8.03305L8.5604 9.2887L5.9853 6.71305C5.92398 6.65152 5.85112 6.6027 5.7709 6.56939C5.69068 6.53608 5.60467 6.51893 5.5178 6.51893C5.43093 6.51893 5.34492 6.53608 5.2647 6.56939C5.18448 6.6027 5.11162 6.65152 5.0503 6.71305L2.44 9.325V3.66C2.44 3.60165 2.46318 3.54569 2.50444 3.50444C2.54569 3.46318 2.60165 3.44 2.66 3.44ZM2.44 11.58V9.9487L5.36435 7.02435C5.38478 7.00389 5.40905 6.98767 5.43575 6.9766C5.46246 6.96553 5.49109 6.95983 5.52 6.95983C5.54891 6.95983 5.57754 6.96553 5.60425 6.9766C5.63095 6.98767 5.65522 7.00389 5.67565 7.02435L10.4513 11.8H2.66C2.60165 11.8 2.54569 11.7768 2.50444 11.7356C2.46318 11.6943 2.44 11.6383 2.44 11.58ZM12.34 11.8H11.075L8.875 9.6L10.1307 8.34435C10.1511 8.3239 10.1753 8.30767 10.2021 8.2966C10.2288 8.28553 10.2574 8.27983 10.2863 8.27983C10.3152 8.27983 10.3438 8.28553 10.3705 8.2966C10.3973 8.30767 10.4215 8.3239 10.4419 8.34435L12.56 10.4641V11.58C12.56 11.6383 12.5368 11.6943 12.4956 11.7356C12.4543 11.7768 12.3983 11.8 12.34 11.8Z" fill="black"/></svg>'}}constructor({data:n,config:t,api:o}){this.data=n,this.api=o,this.config=t||{},this.wrapper=null,this.fileInput=null,this.img=null,this.label=null,this.icon=null,this.browse=null,this.uploading=!1}render(){return this.container=document.createElement("div"),this.container.classList.add("file__upload"),this.wrapper=document.createElement("div"),this.wrapper.classList.add("file__upload_btn"),this.fileInput=document.createElement("input"),this.fileInput.id="upload_pdf",this.fileInput.type="file",this.fileInput.name="file",this.fileInput.accept="image/*",this.icon=document.createElement("IMG"),this.icon.classList.add("file__upload_btn_icon"),this.icon.src=pd,this.icon.onerror=function(){console.log("Error loading image")},this.icon.height="24",this.label=document.createElement("label"),this.label.setAttribute("for","upload_pdf"),this.label.textContent="Drag & drop image file or ",this.browse=document.createElement("span"),this.browse.textContent="browse",this.browse.id="upload",this.label.appendChild(this.browse),this.wrapper.prepend(this.icon),this.wrapper.appendChild(this.label),this.wrapper.appendChild(this.fileInput),this.wrapper.addEventListener("dragover",n=>{n.preventDefault(),n.dataTransfer.dropEffect="copy"}),this.wrapper.addEventListener("drop",n=>{n.preventDefault();const t=n.dataTransfer.files[0];this.handleFile(t)}),this.fileInput.addEventListener("input",n=>{n.stopPropagation(),this.handleFile(this.fileInput.files[0])}),this.img=document.createElement("IMG"),this.img.classList.add("file__upload_img"),this.container.appendChild(this.wrapper),this.container.appendChild(this.img),this.data&&this.data.imageLink&&(this.img.src=this.data.imageLink,this.img.style.display="block",this.wrapper.style.display="none"),this.container}handleFile(n){if(n.type.match("image.*")){this.wrapper.style.display="none";const t=URL.createObjectURL(n);this.img.src=t,this.img.style.display="block",this.uploading=!0,this.uploadFile(n)}else alert("Invalid file type. Please select an image file.")}save(){return{imageLink:this.data.imageLink||this.img.src}}uploadFile(n){const t=new CustomEvent("uploadImage",{detail:{image:n}});document.dispatchEvent(t)}}var sL="";const lw={class:"editor__wrapper"},uw={key:0,class:"editor__count"},cw=u.createTextVNode(" /300 "),dw={class:"editor__body"},Mw={key:0,class:"editor__first"},fw={class:"editor__first_text"},gw={class:"editor__first_link",href:"https://deskhero.com",target:"_blank"},hw=["id"],pw={__name:"TextEditor",props:{data:{type:Object,default:()=>({blocks:[]}),required:!1},readOnly:{type:Boolean,default:!0,required:!1},featureSet:{type:String,default:"Default",required:!1},firstBlock:{type:Boolean,default:!0,required:!1},firstBlockText:{type:String,default:"add your first block",required:!1},learnMoreText:{type:String,default:"Learn more about the text editor",required:!1},placeholder:{type:String,default:"Start typing...",required:!1},holder:{type:String,required:!0},wordCount:{type:Boolean,default:!1,required:!1},minHeight:{type:Number,default:50,required:!1}},emits:["change"],setup(r,{expose:n,emit:t}){const o=r,e=u.ref(!1),i=u.ref(0),a=u.ref(!1),s=u.ref({}),l=u.ref({holder:o.holder,autofocus:!0,minHeight:0,defaultBlock:"paragraph",readOnly:o.readOnly,logLevel:"ERROR",onReady:()=>{e.value=!0},onChange:async(I,v)=>{if(v.type!=="block-changed"||!o.wordCount){const g=await I.saver.save();t("change",g.blocks);return}function h(g){return"text"in g.data}function N(g){return g.filter(h).reduce((x,A)=>(x+=A.data.text.length,x),0)}const D=300,m=await I.saver.save(),j=N(m.blocks);if(i.value=j,j<=D)return;const T=v.detail.target,L=v.detail.index,w=m.blocks.filter(g=>g.id===T.id).pop(),z=m.blocks.filter(g=>g.id!==T.id),O=N(z),b=D-O;I.blocks.update(T.id,{text:w.data.text.substr(0,b)}),I.caret.setToBlock(L,"end")}}),c=u.computed(()=>i.value>300);n({toggleReadOnly:d,save:M,addData:f});function d(){s.value.readOnly.toggle()}function M(){return s.value.save()}function f(I){s.value.blocks.insert(I)}function p(){o.featureSet=="Full"?s.value=new Vl({...l.value,data:o.data,minHeight:o.minHeight,tools:{paragraph:{class:Gl,config:{placeholder:o.placeholder}},header:{class:Wl},list:{class:_f},underline:{class:zf,shortcut:"CMD+SHIFT+U"},marker:{class:wf,shortcut:"CMD+SHIFT+H"},image:{class:Pf},inlineCode:{class:rw},checklist:{class:sw},table:{class:ow},delimiter:{class:aw},code:{class:iw}}}):o.featureSet=="Default"?s.value=new Vl({...l.value,data:o.data,minHeight:o.minHeight,tools:{paragraph:{class:Gl,config:{placeholder:o.placeholder}},header:{class:Wl},list:{class:_f},underline:{class:zf,shortcut:"CMD+SHIFT+U"},marker:{class:wf,shortcut:"CMD+SHIFT+H"},image:{class:Pf,config:{uploadEndpoint:o.uploadEndPoint}}}}):s.value=new Vl({...l.value,data:o.data,minHeight:o.minHeight,tools:{paragraph:{class:Gl,config:{placeholder:o.placeholder}},header:{class:Wl}}})}function y(){p(),a.value=!1}return u.onMounted(()=>{o.firstBlock?p():a.value=!0}),(I,v)=>(u.openBlock(),u.createElementBlock("div",lw,[r.wordCount?(u.openBlock(),u.createElementBlock("div",uw,[u.createElementVNode("span",{class:u.normalizeClass(u.unref(c)?"editor__count--danger":"")},u.toDisplayString(i.value),3),cw])):u.createCommentVNode("",!0),u.createElementVNode("div",dw,[a.value?(u.openBlock(),u.createElementBlock("div",Mw,[u.createElementVNode("button",{class:"editor__first_btn",onClick:y},"+"),u.createElementVNode("p",fw,u.toDisplayString(r.firstBlockText),1),u.createElementVNode("a",gw,u.toDisplayString(r.learnMoreText),1)])):u.createCommentVNode("",!0),u.createElementVNode("div",{id:r.holder},null,8,hw)])]))}};var lL="";const yw={class:"code"},Nw=["autocomplete"],jw=["autocomplete"],Iw=["autocomplete"],mw=["autocomplete"],Dw=["autocomplete"],xw=["autocomplete"];var vw=nt(u.defineComponent({__name:"VerificationCode",props:{code:{type:String,required:!1,default:""},focusOnFirstInput:{type:Boolean,default:!0},focusOnFirstInputDelay:{type:Number,default:100},autoComplete:{type:String,default:"off"}},emits:["submit"],setup(r,{emit:n}){const t=r,o=u.ref(null),e=u.ref(null),i=u.ref(null),a=u.ref(null),s=u.ref(null),l=u.ref(null);async function c(v){var h,N,D,m,j;switch(v){case 1:break;case 2:(h=o.value)==null||h.focus();break;case 3:(N=e.value)==null||N.focus();break;case 4:(D=i.value)==null||D.focus();break;case 5:(m=a.value)==null||m.focus();break;case 6:(j=s.value)==null||j.focus();break}}async function d(v){var h,N,D,m,j;switch(v){case 1:(h=e.value)==null||h.focus();break;case 2:(N=i.value)==null||N.focus();break;case 3:(D=a.value)==null||D.focus();break;case 4:(m=s.value)==null||m.focus();break;case 5:(j=l.value)==null||j.focus();break}}async function M(v,h){const N=v.key;let D=!0;[{_index:1,nextInput:e},{_index:2,nextInput:i},{_index:3,nextInput:a},{_index:4,nextInput:s},{_index:5,nextInput:l}].forEach(({_index:m,nextInput:j})=>{h===m&&(j.value&&N.match(/^[0-9]+$/)&&j.value.focus({}),D=!1),v.preventDefault()}),N.match(/^[0-9]+$/)&&(v.target.value=N),D&&y()}async function f(v){var N;const h=((N=v.clipboardData)==null?void 0:N.getData("text/plain"))||"";p(h),y()}function p(v){const h=v.replace(/\D/g,"");if(h.length!==6)return;const[N,D,m,j,T,L]=h.split("");o.value&&(o.value.value=N),e.value&&(e.value.value=D),i.value&&(i.value.value=m),a.value&&(a.value.value=j),s.value&&(s.value.value=T),l.value&&(l.value.value=L)}async function y(){var h,N,D,m,j,T;const v=`${(h=o.value)==null?void 0:h.value}${(N=e.value)==null?void 0:N.value}${(D=i.value)==null?void 0:D.value}${(m=a.value)==null?void 0:m.value}${(j=s.value)==null?void 0:j.value}${(T=l.value)==null?void 0:T.value}`;n("submit",v)}function I(){setTimeout(()=>{var v;t.focusOnFirstInput&&((v=o.value)==null||v.focus())},t.focusOnFirstInputDelay)}return u.onMounted(()=>{t.code&&(p(t.code),y()),I()}),(v,h)=>(u.openBlock(),u.createElementBlock("div",yw,[u.createElementVNode("input",{ref_key:"txtInput1",ref:o,autocomplete:r.autoComplete,autofocus:"",class:"form-input input-1","data-e2e":"input-1",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:h[0]||(h[0]=N=>M(N,1)),onKeyup:[h[1]||(h[1]=u.withKeys(N=>c(1),["delete"])),h[2]||(h[2]=u.withKeys(N=>c(1),["left"])),h[3]||(h[3]=u.withKeys(N=>d(1),["right"]))],onPaste:f},null,40,Nw),u.createElementVNode("input",{ref_key:"txtInput2",ref:e,autocomplete:r.autoComplete,class:"form-input","data-e2e":"input-2",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:h[4]||(h[4]=N=>M(N,2)),onKeyup:[h[5]||(h[5]=u.withKeys(N=>c(2),["delete"])),h[6]||(h[6]=u.withKeys(N=>c(2),["left"])),h[7]||(h[7]=u.withKeys(N=>d(2),["right"]))],onPaste:f},null,40,jw),u.createElementVNode("input",{ref_key:"txtInput3",ref:i,autocomplete:r.autoComplete,class:"form-input","data-e2e":"input-3",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:h[8]||(h[8]=N=>M(N,3)),onKeyup:[h[9]||(h[9]=u.withKeys(N=>c(3),["delete"])),h[10]||(h[10]=u.withKeys(N=>c(3),["left"])),h[11]||(h[11]=u.withKeys(N=>d(3),["right"]))],onPaste:f},null,40,Iw),u.createElementVNode("input",{ref_key:"txtInput4",ref:a,autocomplete:r.autoComplete,class:"form-input","data-e2e":"input-4",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:h[12]||(h[12]=N=>M(N,4)),onKeyup:[h[13]||(h[13]=u.withKeys(N=>c(4),["delete"])),h[14]||(h[14]=u.withKeys(N=>c(4),["left"])),h[15]||(h[15]=u.withKeys(N=>d(4),["right"]))],onPaste:f},null,40,mw),u.createElementVNode("input",{ref_key:"txtInput5",ref:s,autocomplete:r.autoComplete,class:"form-input","data-e2e":"input-5",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:h[16]||(h[16]=N=>M(N,5)),onKeyup:[h[17]||(h[17]=u.withKeys(N=>c(5),["delete"])),h[18]||(h[18]=u.withKeys(N=>c(5),["left"])),h[19]||(h[19]=u.withKeys(N=>d(5),["right"]))],onPaste:f},null,40,Dw),u.createElementVNode("input",{ref_key:"txtInput6",ref:l,autocomplete:r.autoComplete,class:"form-input","data-e2e":"input-6",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:h[20]||(h[20]=N=>M(N,6)),onKeyup:[h[21]||(h[21]=u.withKeys(N=>c(6),["delete"])),h[22]||(h[22]=u.withKeys(N=>c(6),["left"])),h[23]||(h[23]=u.withKeys(N=>d(6),["right"]))],onPaste:f},null,40,xw)]))}}),[["__scopeId","data-v-2ace876a"]]);Le.DhAdvancedDatePicker=bT,Le.DhAdvancedFilter=ET,Le.DhButton=YT,Le.DhCopyText=HT,Le.DhDatePicker=JT,Le.DhDropdownMenu=tA,Le.DhError=rA,Le.DhExpansionPanel=lA,Le.DhFileUpload=TA,Le.DhIcon=be,Le.DhInputDropdown=bf,Le.DhInputDropdownMultiple=EA,Le.DhInputGroup=YA,Le.DhInputList=Tk,Le.DhModal=Ok,Le.DhNotification=Yk,Le.DhNumberRange=mf,Le.DhPasswordField=Vk,Le.DhRadioBox=Tf,Le.DhRadioBoxGroup=$k,Le.DhSearchInput=Kk,Le.DhStepper=nw,Le.DhSwitch=yd,Le.DhTextEditor=pw,Le.DhTooltip=xf,Le.DhVerificationCode=vw,Object.defineProperties(Le,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -54,10 +54,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
54
54
|
default: number;
|
|
55
55
|
required: false;
|
|
56
56
|
};
|
|
57
|
-
uploadEndPoint: {
|
|
58
|
-
type: StringConstructor;
|
|
59
|
-
default: string;
|
|
60
|
-
};
|
|
61
57
|
}>>;
|
|
62
58
|
$emit: (event: "change", ...args: any[]) => void;
|
|
63
59
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|