@deskhero/dh_ui 2.60.0 → 2.61.0
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.css +1 -1
- package/dist/dh_ui.es.js +3 -3
- package/dist/dh_ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/dh_ui.es.js
CHANGED
|
@@ -20085,8 +20085,8 @@ const phe = /* @__PURE__ */ Ee(y6, [["render", Iz], ["__scopeId", "data-v-db2339
|
|
|
20085
20085
|
}
|
|
20086
20086
|
}), Jm = () => {
|
|
20087
20087
|
xa((n) => ({
|
|
20088
|
-
|
|
20089
|
-
|
|
20088
|
+
v5259a62c: n.animationSpeed,
|
|
20089
|
+
v3bec509d: n.width
|
|
20090
20090
|
}));
|
|
20091
20091
|
}, Qm = b6.setup;
|
|
20092
20092
|
b6.setup = Qm ? (n, e) => (Jm(), Qm(n, e)) : Jm;
|
|
@@ -20159,7 +20159,7 @@ function Fz(n, e, t, r, i, o) {
|
|
|
20159
20159
|
], 2)) : z("", !0)
|
|
20160
20160
|
], 6);
|
|
20161
20161
|
}
|
|
20162
|
-
const ghe = /* @__PURE__ */ Ee(b6, [["render", Fz], ["__scopeId", "data-v-
|
|
20162
|
+
const ghe = /* @__PURE__ */ Ee(b6, [["render", Fz], ["__scopeId", "data-v-c03c0b15"]]), Vz = { class: "password__panel" }, $z = ["placeholder", "type"], zz = { class: "icon is-right" }, jz = {
|
|
20163
20163
|
key: 0,
|
|
20164
20164
|
class: "password__tooltip"
|
|
20165
20165
|
}, Wz = /* @__PURE__ */ ye({
|
package/dist/dh_ui.umd.js
CHANGED
|
@@ -18,7 +18,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
18
18
|
${n.hasSideBar?n.sideBarPosition:""}
|
|
19
19
|
${n.hasBodyScrolling?"":"modal-auto-height"}
|
|
20
20
|
${n.fitContent?"modal modal-fit-content":"modal"}
|
|
21
|
-
`),role:"dialog",onMousedown:e[1]||(e[1]=c.withModifiers(()=>{},["stop"]))},[n.hasCloseButton?(c.openBlock(),c.createElementBlock("button",{key:0,"aria-label":"Close modal",class:"btn-close",type:"button",onClick:e[0]||(e[0]=(...a)=>n.closed&&n.closed(...a))},[c.createVNode(s,{class:"icon","icon-name":"close",size:24})])):c.createCommentVNode("",!0),c.createElementVNode("div",mz,[n.hasSideBar?(c.openBlock(),c.createElementBlock("aside",gz,[c.renderSlot(n.$slots,"sidebar",{},void 0,!0),n.hasSideBarButtonBottom?c.renderSlot(n.$slots,"sidebar-button-bottom",{key:0},void 0,!0):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),c.createElementVNode("section",{class:c.normalizeClass(`right-section ${n.hasSideBar?"":"full"}`)},[n.hasHeader?(c.openBlock(),c.createElementBlock("header",vz,[c.renderSlot(n.$slots,"header",{},void 0,!0)])):c.createCommentVNode("",!0),c.createElementVNode("section",{id:"modalDescription",class:c.normalizeClass(["modal-body",[n.bodyClass,n.hasBodyScrolling?"":"modal-body-no-scroll"]])},[c.renderSlot(n.$slots,"body",{},void 0,!0)],2),c.createElementVNode("footer",yz,[n.hasFooter?c.renderSlot(n.$slots,"footer",{key:0},void 0,!0):c.createCommentVNode("",!0),n.hasFooterButtonRight?c.renderSlot(n.$slots,"footer-button-right",{key:1},void 0,!0):c.createCommentVNode("",!0)])],2)])],34)],32)]),_:3})}const bz=he(Uh,[["render",Cz],["__scopeId","data-v-db2339ab"]]),qh=c.defineComponent({components:{DhIcon:Be},props:{notificationType:{type:String,required:!0,default:"toast",validator:n=>["toast","bottom-message","actionable","modal"].includes(n)},icon:{type:String,required:!0,default:"info"},isActive:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:""},message:{type:String,required:!1,default:""},dismissible:{type:Boolean,required:!1,default:!0},showCloseIcon:{type:Boolean,default:!0},buttonAction:{type:String,default:"Action"},buttonActionE2e:{type:String,default:""},buttonDismiss:{type:String,default:"Dismiss"},buttonDismissE2e:{type:String,default:""},disableClick:{type:Boolean,default:!1},zIndex:{type:Number,default:2},show:{type:Boolean,default:!1},animationEnter:{type:String,default:"animate-enter"},animationUp:{type:String,default:"animate-up"},animationSpeed:{type:String,default:"0.2s"},showDismissButton:{type:Boolean,default:!0},width:{type:String,default:""}},mounted(){this.dismissible&&["toast","bottom-message"].includes(this.notificationType)&&setTimeout(()=>{this.close()},5e3)},emits:["action"],methods:{close(n=!1){this.$emit("action",n)},limitTitle(n,e){return["toast","actionable"].includes(e)&&n.length>=60?`${n.substring(0,60)}..`:["bottom-message"].includes(e)&&n.length>=40?`${n.substring(0,40)}..`:["modal"].includes(e)&&n.length>=80?`${n.substring(0,80)}..`:n}}}),q5=()=>{c.useCssVars(n=>({ad1194ee:n.animationSpeed,v441794a0:n.width}))},Z5=qh.setup;qh.setup=Z5?(n,e)=>(q5(),Z5(n,e)):q5;const wz="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.24%206L6%2017.24M6.15627%206.31252L17.0837%2017.24'%20stroke='%23828282'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",kz={key:0,class:"descriptions"},xz=["data-e2e","disabled"],Sz=["data-e2e"];function Mz(n,e,t,r,o,i){const s=c.resolveComponent("dh-icon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`dh-notification-container ${n.notificationType}`),style:c.normalizeStyle({"z-index":n.zIndex})},[n.show?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["bottom-message"].includes(n.notificationType)?`${n.animationUp} status status-${n.notificationType}`:`${n.animationEnter} status status-${n.notificationType}`)},[!["modal","bottom-message"].includes(n.notificationType)&&n.showCloseIcon?(c.openBlock(),c.createElementBlock("button",{key:0,class:"close-notification",onClick:e[0]||(e[0]=a=>n.close(!1))},[...e[3]||(e[3]=[c.createElementVNode("img",{alt:"icon",class:"close-icon",src:wz},null,-1)])])):c.createCommentVNode("",!0),c.createElementVNode("div",{class:c.normalizeClass(`content content- ${n.notificationType}`)},[c.createElementVNode("div",{class:c.normalizeClass(`ellipse ellipse-${n.notificationType} ellipse-${n.icon}`)},[c.createVNode(s,{active:n.isActive,class:c.normalizeClass(`icon-${n.icon}`),"icon-name":n.icon,size:33},null,8,["active","class","icon-name"])],2),c.createElementVNode("div",{class:c.normalizeClass(["additional-text",{"fixed-width":n.width}])},[c.createElementVNode("div",{class:c.normalizeClass(`body-section-title title-${n.notificationType}`)},c.toDisplayString(n.limitTitle(n.title,n.notificationType)),3),["bottom-message"].includes(n.notificationType)?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",kz,c.toDisplayString(n.message.length>=280?`${n.message.substring(0,280)}..`:n.message),1))],2),["toast","bottom-message"].includes(n.notificationType)?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(`buttons ${n.notificationType}`)},[c.createElementVNode("button",{class:c.normalizeClass(["btn btn-normal",n.icon=="delete"?"btn-danger":"btn-primary"]),"data-e2e":n.buttonActionE2e,disabled:n.disableClick,onClick:e[1]||(e[1]=a=>n.close(!0))},c.toDisplayString(n.buttonAction),11,xz),n.showDismissButton?(c.openBlock(),c.createElementBlock("button",{key:0,class:"btn btn-normal btn-secondary dismiss","data-e2e":n.buttonDismissE2e,onClick:e[2]||(e[2]=a=>n.close())},c.toDisplayString(n.buttonDismiss),9,Sz)):c.createCommentVNode("",!0)],2))],2)],2)):c.createCommentVNode("",!0)],6)}const Ez=he(qh,[["render",Mz],["__scopeId","data-v-d9b1fcd3"]]),Tz={class:"password__panel"},Bz=["placeholder","type"],_z={class:"icon is-right"},Az={key:0,class:"password__tooltip"},Oz=he(c.defineComponent({__name:"PasswordField",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},tipChars:{type:String,default:"12 Characters"},tipNumbers:{type:String,default:"Numbers"},tipSymbols:{type:String,default:"Symbols"},passwordTooltipDisabled:{type:Boolean,default:!1}},emits:["submit","update:modelValue"],setup(n,{emit:e}){const t=n,r=c.ref(""),o=c.ref(!1),i=c.ref(!1),s=c.ref(!1),a=c.ref(!1),l=c.ref(!1),d=e,u=c.ref(!1);function h(){d("submit",r.value),d("update:modelValue",r.value)}function f(){o.value=!0,u.value=!0}function p(){o.value=!1,u.value=!1}function m(){l.value=!l.value}return c.onMounted(()=>()=>r.value=t.modelValue||""),c.watch(t,()=>(r.value=t.modelValue||"",i.value=r.value.length>11,s.value=/\d/.test(r.value),a.value=/[!@#$%^&*)(+=._-]/.test(r.value))),(g,v)=>(c.openBlock(),c.createElementBlock("div",Tz,[c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":v[0]||(v[0]=y=>r.value=y),autocomplete:"current-password",class:"form__input password__panel_input","data-e2e":"password-input",placeholder:t.placeholder,type:l.value?"text":"password",onFocus:f,onFocusout:p,onInput:h},null,40,Bz),[[c.vModelDynamic,r.value]]),c.createElementVNode("button",{class:"password__panel_button",type:"button",onClick:m},[c.createElementVNode("span",_z,[c.createVNode(Be,{active:u.value,"icon-name":l.value?"invisible":"visible",size:20},null,8,["active","icon-name"])])]),o.value&&!t.passwordTooltipDisabled?(c.openBlock(),c.createElementBlock("div",Az,[c.createElementVNode("p",{class:c.normalizeClass(["password__tooltip_text",i.value?"password__tooltip_text--valid":""])},[c.createVNode(Be,{class:c.normalizeClass(i.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":i.value?"accept":"close",size:16},null,8,["class","icon-name"]),c.createElementVNode("span",null,c.toDisplayString(t.tipChars),1)],2),c.createElementVNode("p",{class:c.normalizeClass(["password__tooltip_text",s.value?"password__tooltip_text--valid":""])},[c.createVNode(Be,{class:c.normalizeClass(s.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":s.value?"accept":"close",size:16},null,8,["class","icon-name"]),c.createElementVNode("span",null,c.toDisplayString(t.tipNumbers),1)],2),c.createElementVNode("p",{class:c.normalizeClass(["password__tooltip_text",a.value?"password__tooltip_text--valid":""])},[c.createVNode(Be,{class:c.normalizeClass(a.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":a.value?"accept":"close",size:16},null,8,["class","icon-name"]),c.createElementVNode("span",null,c.toDisplayString(t.tipSymbols),1)],2)])):c.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-86aec833"]]),Lz={class:"radio"},Nz=["for"],Dz=["id","type","value"],Iz={class:"radio__label_txt"},K5=he({__name:"RadioBox",props:{type:{type:String,default:"radio"},value:{type:String,required:!0},label:{type:String,required:!0}},emits:["clickBox"],setup(n,{emit:e}){const t=e;return(r,o)=>(c.openBlock(),c.createElementBlock("div",Lz,[c.createElementVNode("label",{class:"radio__label",for:n.value},[c.createElementVNode("input",{id:n.value,class:"radio__input",name:"radiobox",type:n.type,value:n.value,onClick:o[0]||(o[0]=i=>t("clickBox"))},null,8,Dz),c.createElementVNode("span",Iz,c.toDisplayString(n.label),1)],8,Nz)]))}},[["__scopeId","data-v-b8f348d4"]]),Pz={__name:"RadioBoxGroup",props:{orientation:{type:String,default:"horizontal"},type:{type:String,default:"radio"},list:{type:Array,required:!0}},setup(n){const e=c.ref(null);function t(){const r=document.querySelectorAll("input");for(let o=0;o<r.length;o++)r[o].checked?r[o].parentNode.parentNode.classList.add("radio--checked"):r[o].parentNode.parentNode.classList.remove("radio--checked")}return(r,o)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["radio__grp",n.orientation==="vertical"?"radio__vertical":"radio__horizontal"])},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.list,i=>(c.openBlock(),c.createBlock(K5,{key:i.key,ref_for:!0,ref_key:"boxes",ref:e,label:i.label,type:n.type,value:i.value,onClickBox:t},null,8,["label","type","value"]))),128))],2))}},Rz={class:"search-panel"},Vz=["placeholder"],Hz=he(c.defineComponent({__name:"SearchInput",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},focus:{type:Boolean,default:!1}},emits:["submit","clean","update:modelValue"],setup(n,{emit:e}){const t=n,r=c.ref(""),o=c.ref(null),i=e;function s(){i("submit",r.value),i("update:modelValue",r.value)}function a(){r.value="",i("clean"),i("update:modelValue",r.value)}return c.onMounted(()=>()=>r.value=t.modelValue||""),c.watch(t,()=>{r.value=t.modelValue||"",t.focus&&o.value&&o.value.focus()}),(l,d)=>(c.openBlock(),c.createElementBlock("div",Rz,[c.withDirectives(c.createElementVNode("input",{ref_key:"searchInput",ref:o,"onUpdate:modelValue":d[0]||(d[0]=u=>r.value=u),class:"form-input search-panel-input","data-e2e":"search-input",placeholder:t.placeholder,onKeyup:s},null,40,Vz),[[c.vModelText,r.value]]),r.value?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("button",{key:0,class:"search-panel-button","data-e2e":"search-submit",onClick:s},[c.createVNode(Be,{active:!0,"icon-name":"search",size:24})])),r.value?(c.openBlock(),c.createElementBlock("button",{key:1,class:"search-panel-button close","data-e2e":"search-close",onClick:a},[c.createVNode(Be,{class:"icon","icon-name":"close",size:24})])):c.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-0ddf3e82"]]),Fz={class:"stepper"},zz=he(c.defineComponent({__name:"Stepper",props:{maxSteps:{type:Number,default:0},currentStep:{type:Number,default:0}},setup(n){let e=n;function t(){return Array.from(Array(e.maxSteps||0).keys())}return(r,o)=>(c.openBlock(),c.createElementBlock("div",Fz,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t(),(i,s)=>(c.openBlock(),c.createElementBlock("div",{key:s,class:"step"},[c.createElementVNode("span",{class:c.normalizeClass(["step-number",{active:i===n.currentStep}])},c.toDisplayString(i+1),3),o[0]||(o[0]=c.createElementVNode("hr",{class:"solid"},null,-1))]))),128))]))}}),[["__scopeId","data-v-36fd763b"]]),$z=c.defineComponent({__name:"Tag",props:{label:{type:String,required:!0},color:{type:String,required:!1,default:"primary"},size:{type:String,required:!1,default:""},isClickable:{type:Boolean,required:!1,default:!0}},setup(n){const e=n;function t(){return e.color?`tag-${e.color}`:""}function r(){return e.size?`tag-${e.size}`:""}return(o,i)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["tag",[t(),r(),{clickable:n.isClickable}]])},c.toDisplayString(n.label),3))}});(function(){try{if(typeof document<"u"){var n=document.createElement("style");n.appendChild(document.createTextNode(".ce-hint--align-start{text-align:left}.ce-hint--align-center{text-align:center}.ce-hint__description{opacity:.6;margin-top:3px}")),document.head.appendChild(n)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();var Kl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function jz(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return n[r]}})}),t}function Zh(){}Object.assign(Zh,{default:Zh,register:Zh,revert:function(){},__esModule:!0}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(n){const e=(this.document||this.ownerDocument).querySelectorAll(n);let t=e.length;for(;--t>=0&&e.item(t)!==this;);return t>-1}),Element.prototype.closest||(Element.prototype.closest=function(n){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(n))return e;e=e.parentElement||e.parentNode}while(e!==null);return null}),Element.prototype.prepend||(Element.prototype.prepend=function(n){const e=document.createDocumentFragment();Array.isArray(n)||(n=[n]),n.forEach(t=>{const r=t instanceof Node;e.appendChild(r?t:document.createTextNode(t))}),this.insertBefore(e,this.firstChild)}),Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(n){n=arguments.length===0?!0:!!n;const e=this.parentNode,t=window.getComputedStyle(e,null),r=parseInt(t.getPropertyValue("border-top-width")),o=parseInt(t.getPropertyValue("border-left-width")),i=this.offsetTop-e.offsetTop<e.scrollTop,s=this.offsetTop-e.offsetTop+this.clientHeight-r>e.scrollTop+e.clientHeight,a=this.offsetLeft-e.offsetLeft<e.scrollLeft,l=this.offsetLeft-e.offsetLeft+this.clientWidth-o>e.scrollLeft+e.clientWidth,d=i&&!s;(i||s)&&n&&(e.scrollTop=this.offsetTop-e.offsetTop-e.clientHeight/2-r+this.clientHeight/2),(a||l)&&n&&(e.scrollLeft=this.offsetLeft-e.offsetLeft-e.clientWidth/2-o+this.clientWidth/2),(i||s||a||l)&&!n&&this.scrollIntoView(d)}),window.requestIdleCallback=window.requestIdleCallback||function(n){const e=Date.now();return setTimeout(function(){n({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(n){clearTimeout(n)};let Wz=(n=21)=>crypto.getRandomValues(new Uint8Array(n)).reduce((e,t)=>(t&=63,t<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"");var Y5=(n=>(n.VERBOSE="VERBOSE",n.INFO="INFO",n.WARN="WARN",n.ERROR="ERROR",n))(Y5||{});const Te={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46},Uz={LEFT:0};function Yl(n,e,t="log",r,o="color: inherit"){if(!("console"in window)||!window.console[t])return;const i=["info","log","warn","error"].includes(t),s=[];switch(Yl.logLevel){case"ERROR":if(t!=="error")return;break;case"WARN":if(!["error","warn"].includes(t))return;break;case"INFO":if(!i||n)return;break}r&&s.push(r);const a="Editor.js 2.31.2";n&&(i?(s.unshift(`line-height: 1em;
|
|
21
|
+
`),role:"dialog",onMousedown:e[1]||(e[1]=c.withModifiers(()=>{},["stop"]))},[n.hasCloseButton?(c.openBlock(),c.createElementBlock("button",{key:0,"aria-label":"Close modal",class:"btn-close",type:"button",onClick:e[0]||(e[0]=(...a)=>n.closed&&n.closed(...a))},[c.createVNode(s,{class:"icon","icon-name":"close",size:24})])):c.createCommentVNode("",!0),c.createElementVNode("div",mz,[n.hasSideBar?(c.openBlock(),c.createElementBlock("aside",gz,[c.renderSlot(n.$slots,"sidebar",{},void 0,!0),n.hasSideBarButtonBottom?c.renderSlot(n.$slots,"sidebar-button-bottom",{key:0},void 0,!0):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),c.createElementVNode("section",{class:c.normalizeClass(`right-section ${n.hasSideBar?"":"full"}`)},[n.hasHeader?(c.openBlock(),c.createElementBlock("header",vz,[c.renderSlot(n.$slots,"header",{},void 0,!0)])):c.createCommentVNode("",!0),c.createElementVNode("section",{id:"modalDescription",class:c.normalizeClass(["modal-body",[n.bodyClass,n.hasBodyScrolling?"":"modal-body-no-scroll"]])},[c.renderSlot(n.$slots,"body",{},void 0,!0)],2),c.createElementVNode("footer",yz,[n.hasFooter?c.renderSlot(n.$slots,"footer",{key:0},void 0,!0):c.createCommentVNode("",!0),n.hasFooterButtonRight?c.renderSlot(n.$slots,"footer-button-right",{key:1},void 0,!0):c.createCommentVNode("",!0)])],2)])],34)],32)]),_:3})}const bz=he(Uh,[["render",Cz],["__scopeId","data-v-db2339ab"]]),qh=c.defineComponent({components:{DhIcon:Be},props:{notificationType:{type:String,required:!0,default:"toast",validator:n=>["toast","bottom-message","actionable","modal"].includes(n)},icon:{type:String,required:!0,default:"info"},isActive:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:""},message:{type:String,required:!1,default:""},dismissible:{type:Boolean,required:!1,default:!0},showCloseIcon:{type:Boolean,default:!0},buttonAction:{type:String,default:"Action"},buttonActionE2e:{type:String,default:""},buttonDismiss:{type:String,default:"Dismiss"},buttonDismissE2e:{type:String,default:""},disableClick:{type:Boolean,default:!1},zIndex:{type:Number,default:2},show:{type:Boolean,default:!1},animationEnter:{type:String,default:"animate-enter"},animationUp:{type:String,default:"animate-up"},animationSpeed:{type:String,default:"0.2s"},showDismissButton:{type:Boolean,default:!0},width:{type:String,default:""}},mounted(){this.dismissible&&["toast","bottom-message"].includes(this.notificationType)&&setTimeout(()=>{this.close()},5e3)},emits:["action"],methods:{close(n=!1){this.$emit("action",n)},limitTitle(n,e){return["toast","actionable"].includes(e)&&n.length>=60?`${n.substring(0,60)}..`:["bottom-message"].includes(e)&&n.length>=40?`${n.substring(0,40)}..`:["modal"].includes(e)&&n.length>=80?`${n.substring(0,80)}..`:n}}}),q5=()=>{c.useCssVars(n=>({v5259a62c:n.animationSpeed,v3bec509d:n.width}))},Z5=qh.setup;qh.setup=Z5?(n,e)=>(q5(),Z5(n,e)):q5;const wz="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.24%206L6%2017.24M6.15627%206.31252L17.0837%2017.24'%20stroke='%23828282'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",kz={key:0,class:"descriptions"},xz=["data-e2e","disabled"],Sz=["data-e2e"];function Mz(n,e,t,r,o,i){const s=c.resolveComponent("dh-icon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`dh-notification-container ${n.notificationType}`),style:c.normalizeStyle({"z-index":n.zIndex})},[n.show?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["bottom-message"].includes(n.notificationType)?`${n.animationUp} status status-${n.notificationType}`:`${n.animationEnter} status status-${n.notificationType}`)},[!["modal","bottom-message"].includes(n.notificationType)&&n.showCloseIcon?(c.openBlock(),c.createElementBlock("button",{key:0,class:"close-notification",onClick:e[0]||(e[0]=a=>n.close(!1))},[...e[3]||(e[3]=[c.createElementVNode("img",{alt:"icon",class:"close-icon",src:wz},null,-1)])])):c.createCommentVNode("",!0),c.createElementVNode("div",{class:c.normalizeClass(`content content- ${n.notificationType}`)},[c.createElementVNode("div",{class:c.normalizeClass(`ellipse ellipse-${n.notificationType} ellipse-${n.icon}`)},[c.createVNode(s,{active:n.isActive,class:c.normalizeClass(`icon-${n.icon}`),"icon-name":n.icon,size:33},null,8,["active","class","icon-name"])],2),c.createElementVNode("div",{class:c.normalizeClass(["additional-text",{"fixed-width":n.width}])},[c.createElementVNode("div",{class:c.normalizeClass(`body-section-title title-${n.notificationType}`)},c.toDisplayString(n.limitTitle(n.title,n.notificationType)),3),["bottom-message"].includes(n.notificationType)?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",kz,c.toDisplayString(n.message.length>=280?`${n.message.substring(0,280)}..`:n.message),1))],2),["toast","bottom-message"].includes(n.notificationType)?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(`buttons ${n.notificationType}`)},[c.createElementVNode("button",{class:c.normalizeClass(["btn btn-normal",n.icon=="delete"?"btn-danger":"btn-primary"]),"data-e2e":n.buttonActionE2e,disabled:n.disableClick,onClick:e[1]||(e[1]=a=>n.close(!0))},c.toDisplayString(n.buttonAction),11,xz),n.showDismissButton?(c.openBlock(),c.createElementBlock("button",{key:0,class:"btn btn-normal btn-secondary dismiss","data-e2e":n.buttonDismissE2e,onClick:e[2]||(e[2]=a=>n.close())},c.toDisplayString(n.buttonDismiss),9,Sz)):c.createCommentVNode("",!0)],2))],2)],2)):c.createCommentVNode("",!0)],6)}const Ez=he(qh,[["render",Mz],["__scopeId","data-v-c03c0b15"]]),Tz={class:"password__panel"},Bz=["placeholder","type"],_z={class:"icon is-right"},Az={key:0,class:"password__tooltip"},Oz=he(c.defineComponent({__name:"PasswordField",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},tipChars:{type:String,default:"12 Characters"},tipNumbers:{type:String,default:"Numbers"},tipSymbols:{type:String,default:"Symbols"},passwordTooltipDisabled:{type:Boolean,default:!1}},emits:["submit","update:modelValue"],setup(n,{emit:e}){const t=n,r=c.ref(""),o=c.ref(!1),i=c.ref(!1),s=c.ref(!1),a=c.ref(!1),l=c.ref(!1),d=e,u=c.ref(!1);function h(){d("submit",r.value),d("update:modelValue",r.value)}function f(){o.value=!0,u.value=!0}function p(){o.value=!1,u.value=!1}function m(){l.value=!l.value}return c.onMounted(()=>()=>r.value=t.modelValue||""),c.watch(t,()=>(r.value=t.modelValue||"",i.value=r.value.length>11,s.value=/\d/.test(r.value),a.value=/[!@#$%^&*)(+=._-]/.test(r.value))),(g,v)=>(c.openBlock(),c.createElementBlock("div",Tz,[c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":v[0]||(v[0]=y=>r.value=y),autocomplete:"current-password",class:"form__input password__panel_input","data-e2e":"password-input",placeholder:t.placeholder,type:l.value?"text":"password",onFocus:f,onFocusout:p,onInput:h},null,40,Bz),[[c.vModelDynamic,r.value]]),c.createElementVNode("button",{class:"password__panel_button",type:"button",onClick:m},[c.createElementVNode("span",_z,[c.createVNode(Be,{active:u.value,"icon-name":l.value?"invisible":"visible",size:20},null,8,["active","icon-name"])])]),o.value&&!t.passwordTooltipDisabled?(c.openBlock(),c.createElementBlock("div",Az,[c.createElementVNode("p",{class:c.normalizeClass(["password__tooltip_text",i.value?"password__tooltip_text--valid":""])},[c.createVNode(Be,{class:c.normalizeClass(i.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":i.value?"accept":"close",size:16},null,8,["class","icon-name"]),c.createElementVNode("span",null,c.toDisplayString(t.tipChars),1)],2),c.createElementVNode("p",{class:c.normalizeClass(["password__tooltip_text",s.value?"password__tooltip_text--valid":""])},[c.createVNode(Be,{class:c.normalizeClass(s.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":s.value?"accept":"close",size:16},null,8,["class","icon-name"]),c.createElementVNode("span",null,c.toDisplayString(t.tipNumbers),1)],2),c.createElementVNode("p",{class:c.normalizeClass(["password__tooltip_text",a.value?"password__tooltip_text--valid":""])},[c.createVNode(Be,{class:c.normalizeClass(a.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":a.value?"accept":"close",size:16},null,8,["class","icon-name"]),c.createElementVNode("span",null,c.toDisplayString(t.tipSymbols),1)],2)])):c.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-86aec833"]]),Lz={class:"radio"},Nz=["for"],Dz=["id","type","value"],Iz={class:"radio__label_txt"},K5=he({__name:"RadioBox",props:{type:{type:String,default:"radio"},value:{type:String,required:!0},label:{type:String,required:!0}},emits:["clickBox"],setup(n,{emit:e}){const t=e;return(r,o)=>(c.openBlock(),c.createElementBlock("div",Lz,[c.createElementVNode("label",{class:"radio__label",for:n.value},[c.createElementVNode("input",{id:n.value,class:"radio__input",name:"radiobox",type:n.type,value:n.value,onClick:o[0]||(o[0]=i=>t("clickBox"))},null,8,Dz),c.createElementVNode("span",Iz,c.toDisplayString(n.label),1)],8,Nz)]))}},[["__scopeId","data-v-b8f348d4"]]),Pz={__name:"RadioBoxGroup",props:{orientation:{type:String,default:"horizontal"},type:{type:String,default:"radio"},list:{type:Array,required:!0}},setup(n){const e=c.ref(null);function t(){const r=document.querySelectorAll("input");for(let o=0;o<r.length;o++)r[o].checked?r[o].parentNode.parentNode.classList.add("radio--checked"):r[o].parentNode.parentNode.classList.remove("radio--checked")}return(r,o)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["radio__grp",n.orientation==="vertical"?"radio__vertical":"radio__horizontal"])},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.list,i=>(c.openBlock(),c.createBlock(K5,{key:i.key,ref_for:!0,ref_key:"boxes",ref:e,label:i.label,type:n.type,value:i.value,onClickBox:t},null,8,["label","type","value"]))),128))],2))}},Rz={class:"search-panel"},Vz=["placeholder"],Hz=he(c.defineComponent({__name:"SearchInput",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},focus:{type:Boolean,default:!1}},emits:["submit","clean","update:modelValue"],setup(n,{emit:e}){const t=n,r=c.ref(""),o=c.ref(null),i=e;function s(){i("submit",r.value),i("update:modelValue",r.value)}function a(){r.value="",i("clean"),i("update:modelValue",r.value)}return c.onMounted(()=>()=>r.value=t.modelValue||""),c.watch(t,()=>{r.value=t.modelValue||"",t.focus&&o.value&&o.value.focus()}),(l,d)=>(c.openBlock(),c.createElementBlock("div",Rz,[c.withDirectives(c.createElementVNode("input",{ref_key:"searchInput",ref:o,"onUpdate:modelValue":d[0]||(d[0]=u=>r.value=u),class:"form-input search-panel-input","data-e2e":"search-input",placeholder:t.placeholder,onKeyup:s},null,40,Vz),[[c.vModelText,r.value]]),r.value?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("button",{key:0,class:"search-panel-button","data-e2e":"search-submit",onClick:s},[c.createVNode(Be,{active:!0,"icon-name":"search",size:24})])),r.value?(c.openBlock(),c.createElementBlock("button",{key:1,class:"search-panel-button close","data-e2e":"search-close",onClick:a},[c.createVNode(Be,{class:"icon","icon-name":"close",size:24})])):c.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-0ddf3e82"]]),Fz={class:"stepper"},zz=he(c.defineComponent({__name:"Stepper",props:{maxSteps:{type:Number,default:0},currentStep:{type:Number,default:0}},setup(n){let e=n;function t(){return Array.from(Array(e.maxSteps||0).keys())}return(r,o)=>(c.openBlock(),c.createElementBlock("div",Fz,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t(),(i,s)=>(c.openBlock(),c.createElementBlock("div",{key:s,class:"step"},[c.createElementVNode("span",{class:c.normalizeClass(["step-number",{active:i===n.currentStep}])},c.toDisplayString(i+1),3),o[0]||(o[0]=c.createElementVNode("hr",{class:"solid"},null,-1))]))),128))]))}}),[["__scopeId","data-v-36fd763b"]]),$z=c.defineComponent({__name:"Tag",props:{label:{type:String,required:!0},color:{type:String,required:!1,default:"primary"},size:{type:String,required:!1,default:""},isClickable:{type:Boolean,required:!1,default:!0}},setup(n){const e=n;function t(){return e.color?`tag-${e.color}`:""}function r(){return e.size?`tag-${e.size}`:""}return(o,i)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["tag",[t(),r(),{clickable:n.isClickable}]])},c.toDisplayString(n.label),3))}});(function(){try{if(typeof document<"u"){var n=document.createElement("style");n.appendChild(document.createTextNode(".ce-hint--align-start{text-align:left}.ce-hint--align-center{text-align:center}.ce-hint__description{opacity:.6;margin-top:3px}")),document.head.appendChild(n)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();var Kl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function jz(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return n[r]}})}),t}function Zh(){}Object.assign(Zh,{default:Zh,register:Zh,revert:function(){},__esModule:!0}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(n){const e=(this.document||this.ownerDocument).querySelectorAll(n);let t=e.length;for(;--t>=0&&e.item(t)!==this;);return t>-1}),Element.prototype.closest||(Element.prototype.closest=function(n){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(n))return e;e=e.parentElement||e.parentNode}while(e!==null);return null}),Element.prototype.prepend||(Element.prototype.prepend=function(n){const e=document.createDocumentFragment();Array.isArray(n)||(n=[n]),n.forEach(t=>{const r=t instanceof Node;e.appendChild(r?t:document.createTextNode(t))}),this.insertBefore(e,this.firstChild)}),Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(n){n=arguments.length===0?!0:!!n;const e=this.parentNode,t=window.getComputedStyle(e,null),r=parseInt(t.getPropertyValue("border-top-width")),o=parseInt(t.getPropertyValue("border-left-width")),i=this.offsetTop-e.offsetTop<e.scrollTop,s=this.offsetTop-e.offsetTop+this.clientHeight-r>e.scrollTop+e.clientHeight,a=this.offsetLeft-e.offsetLeft<e.scrollLeft,l=this.offsetLeft-e.offsetLeft+this.clientWidth-o>e.scrollLeft+e.clientWidth,d=i&&!s;(i||s)&&n&&(e.scrollTop=this.offsetTop-e.offsetTop-e.clientHeight/2-r+this.clientHeight/2),(a||l)&&n&&(e.scrollLeft=this.offsetLeft-e.offsetLeft-e.clientWidth/2-o+this.clientWidth/2),(i||s||a||l)&&!n&&this.scrollIntoView(d)}),window.requestIdleCallback=window.requestIdleCallback||function(n){const e=Date.now();return setTimeout(function(){n({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(n){clearTimeout(n)};let Wz=(n=21)=>crypto.getRandomValues(new Uint8Array(n)).reduce((e,t)=>(t&=63,t<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"");var Y5=(n=>(n.VERBOSE="VERBOSE",n.INFO="INFO",n.WARN="WARN",n.ERROR="ERROR",n))(Y5||{});const Te={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46},Uz={LEFT:0};function Yl(n,e,t="log",r,o="color: inherit"){if(!("console"in window)||!window.console[t])return;const i=["info","log","warn","error"].includes(t),s=[];switch(Yl.logLevel){case"ERROR":if(t!=="error")return;break;case"WARN":if(!["error","warn"].includes(t))return;break;case"INFO":if(!i||n)return;break}r&&s.push(r);const a="Editor.js 2.31.2";n&&(i?(s.unshift(`line-height: 1em;
|
|
22
22
|
color: #006FEA;
|
|
23
23
|
display: inline-block;
|
|
24
24
|
font-size: 11px;
|