@deskhero/dh_ui 2.29.2 → 2.30.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/components/Notification.vue.d.ts +9 -0
- package/dist/dh_ui.es.js +10 -5
- package/dist/dh_ui.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -61,6 +61,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
type: StringConstructor;
|
|
62
62
|
default: string;
|
|
63
63
|
};
|
|
64
|
+
showDismissButton: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
64
68
|
}, unknown, unknown, {}, {
|
|
65
69
|
close(confirmation?: boolean): void;
|
|
66
70
|
limitTitle(_title: string, _type: string): string;
|
|
@@ -127,6 +131,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
127
131
|
type: StringConstructor;
|
|
128
132
|
default: string;
|
|
129
133
|
};
|
|
134
|
+
showDismissButton: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
130
138
|
}>> & {
|
|
131
139
|
onAction?: ((...args: any[]) => any) | undefined;
|
|
132
140
|
}, {
|
|
@@ -144,5 +152,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
144
152
|
animationEnter: string;
|
|
145
153
|
animationUp: string;
|
|
146
154
|
animationSpeed: string;
|
|
155
|
+
showDismissButton: boolean;
|
|
147
156
|
}, {}>;
|
|
148
157
|
export default _default;
|
package/dist/dh_ui.es.js
CHANGED
|
@@ -21415,6 +21415,10 @@ const EQ = /* @__PURE__ */ jt(Ac, [["render", oC], ["__scopeId", "data-v-db2339a
|
|
|
21415
21415
|
animationSpeed: {
|
|
21416
21416
|
type: String,
|
|
21417
21417
|
default: "0.2s"
|
|
21418
|
+
},
|
|
21419
|
+
showDismissButton: {
|
|
21420
|
+
type: Boolean,
|
|
21421
|
+
default: !0
|
|
21418
21422
|
}
|
|
21419
21423
|
},
|
|
21420
21424
|
mounted() {
|
|
@@ -21433,12 +21437,12 @@ const EQ = /* @__PURE__ */ jt(Ac, [["render", oC], ["__scopeId", "data-v-db2339a
|
|
|
21433
21437
|
}
|
|
21434
21438
|
}), RN = () => {
|
|
21435
21439
|
ho((i) => ({
|
|
21436
|
-
|
|
21440
|
+
e297e524: i.animationSpeed
|
|
21437
21441
|
}));
|
|
21438
21442
|
}, ZN = Tc.setup;
|
|
21439
21443
|
Tc.setup = ZN ? (i, e) => (RN(), ZN(i, e)) : RN;
|
|
21440
21444
|
const rC = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjI0IDZMNiAxNy4yNE02LjE1NjI3IDYuMzEyNTJMMTcuMDgzNyAxNy4yNCIgc3Ryb2tlPSIjODI4MjgyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==";
|
|
21441
|
-
const aC = (i) => (Pl("data-v-
|
|
21445
|
+
const aC = (i) => (Pl("data-v-e7daee06"), i = i(), Bl(), i), sC = /* @__PURE__ */ aC(() => /* @__PURE__ */ Y("img", {
|
|
21442
21446
|
alt: "icon",
|
|
21443
21447
|
class: "close-icon",
|
|
21444
21448
|
src: rC
|
|
@@ -21492,17 +21496,18 @@ function dC(i, e, t, n, o, r) {
|
|
|
21492
21496
|
"data-e2e": i.buttonActionE2e,
|
|
21493
21497
|
onClick: e[1] || (e[1] = (s) => i.close(!0))
|
|
21494
21498
|
}, re(i.buttonAction), 11, cC),
|
|
21495
|
-
|
|
21499
|
+
i.showDismissButton ? (S(), Q("button", {
|
|
21500
|
+
key: 0,
|
|
21496
21501
|
class: "btn btn-normal btn-secondary dismiss",
|
|
21497
21502
|
"data-e2e": i.buttonDismissE2e,
|
|
21498
21503
|
onClick: e[2] || (e[2] = (s) => i.close())
|
|
21499
|
-
}, re(i.buttonDismiss), 9, gC)
|
|
21504
|
+
}, re(i.buttonDismiss), 9, gC)) : U("", !0)
|
|
21500
21505
|
], 2))
|
|
21501
21506
|
], 2)
|
|
21502
21507
|
], 2)) : U("", !0)
|
|
21503
21508
|
], 6);
|
|
21504
21509
|
}
|
|
21505
|
-
const wQ = /* @__PURE__ */ jt(Tc, [["render", dC], ["__scopeId", "data-v-
|
|
21510
|
+
const wQ = /* @__PURE__ */ jt(Tc, [["render", dC], ["__scopeId", "data-v-e7daee06"]]), NC = { class: "password__panel" }, jC = ["placeholder", "type"], yC = { class: "icon is-right" }, IC = {
|
|
21506
21511
|
key: 0,
|
|
21507
21512
|
class: "password__tooltip"
|
|
21508
21513
|
}, DC = /* @__PURE__ */ Ue({
|
package/dist/dh_ui.umd.js
CHANGED
|
@@ -20,7 +20,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
20
20
|
${i.hasSideBar?i.sideBarPosition:""}
|
|
21
21
|
${i.hasBodyScrolling?"":"modal-auto-height"}
|
|
22
22
|
${i.fitContent?"modal modal-fit-content":"modal"}
|
|
23
|
-
`),role:"dialog",onMousedown:e[1]||(e[1]=s.withModifiers(()=>{},["stop"]))},[i.hasCloseButton?(s.openBlock(),s.createElementBlock("button",{key:0,"aria-label":"Close modal",class:"btn-close",type:"button",onClick:e[0]||(e[0]=(...l)=>i.closed&&i.closed(...l))},[s.createVNode(a,{class:"icon","icon-name":"close",size:24})])):s.createCommentVNode("",!0),s.createElementVNode("div",ow,[i.hasSideBar?(s.openBlock(),s.createElementBlock("aside",rw,[s.renderSlot(i.$slots,"sidebar",{},void 0,!0),i.hasSideBarButtonBottom?s.renderSlot(i.$slots,"sidebar-button-bottom",{key:0},void 0,!0):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.createElementVNode("section",{class:s.normalizeClass(`right-section ${i.hasSideBar?"":"full"}`)},[i.hasHeader?(s.openBlock(),s.createElementBlock("header",aw,[s.renderSlot(i.$slots,"header",{},void 0,!0)])):s.createCommentVNode("",!0),s.createElementVNode("section",{id:"modalDescription",class:s.normalizeClass(["modal-body",[i.bodyClass,i.hasBodyScrolling?"":"modal-body-no-scroll"]])},[s.renderSlot(i.$slots,"body",{},void 0,!0)],2),s.createElementVNode("footer",sw,[i.hasFooter?s.renderSlot(i.$slots,"footer",{key:0},void 0,!0):s.createCommentVNode("",!0),i.hasFooterButtonRight?s.renderSlot(i.$slots,"footer-button-right",{key:1},void 0,!0):s.createCommentVNode("",!0)])],2)])],34)],32)]),_:3})}const Mw=He(qM,[["render",lw],["__scopeId","data-v-db2339ab"]]),ec=s.defineComponent({components:{DhIcon:de},props:{notificationType:{type:String,required:!0,default:"toast",validator:i=>["toast","bottom-message","actionable","modal"].includes(i)},icon:{type:String,required:!0,default:"info"},title:{type:String,required:!1,default:""},message:{type:String,required:!1,default:""},dismissible:{type:Boolean,required:!1,default:!0},buttonAction:{type:String,default:"Action"},buttonActionE2e:{type:String,default:""},buttonDismiss:{type:String,default:"Dismiss"},buttonDismissE2e:{type:String,default:""},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"}},mounted(){this.dismissible&&["toast","bottom-message"].includes(this.notificationType)&&setTimeout(()=>{this.close()},5e3)},emits:["action"],methods:{close(i=!1){this.$emit("action",i)},limitTitle(i,e){return["toast","actionable"].includes(e)&&i.length>=60?`${i.substring(0,60)}..`:["bottom-message"].includes(e)&&i.length>=40?`${i.substring(0,40)}..`:["modal"].includes(e)&&i.length>=80?`${i.substring(0,80)}..`:i}}}),Zj=()=>{s.useCssVars(i=>({"22ecefdc":i.animationSpeed}))},Vj=ec.setup;ec.setup=Vj?(i,e)=>(Zj(),Vj(i,e)):Zj;const cw="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjI0IDZMNiAxNy4yNE02LjE1NjI3IDYuMzEyNTJMMTcuMDgzNyAxNy4yNCIgc3Ryb2tlPSIjODI4MjgyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==",tQ="",uw=[(i=>(s.pushScopeId("data-v-774320ea"),i=i(),s.popScopeId(),i))(()=>s.createElementVNode("img",{alt:"icon",class:"close-icon",src:cw},null,-1))],gw={class:"additional-text"},dw={key:0,class:"descriptions"},Nw=["data-e2e"],jw=["data-e2e"];function yw(i,e,t,n,o,r){const a=s.resolveComponent("dh-icon");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(`dh-notification-container ${i.notificationType}`),style:s.normalizeStyle({"z-index":i.zIndex})},[i.show?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["bottom-message"].includes(i.notificationType)?`${i.animationUp} status status-${i.notificationType}`:`${i.animationEnter} status status-${i.notificationType}`)},[["modal","bottom-message"].includes(i.notificationType)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("button",{key:0,class:"close-notification",onClick:e[0]||(e[0]=l=>i.close(!1))},uw)),s.createElementVNode("div",{class:s.normalizeClass(`content content- ${i.notificationType}`)},[s.createElementVNode("div",{class:s.normalizeClass(`ellipse ellipse-${i.notificationType} ellipse-${i.icon}`)},[s.createVNode(a,{class:s.normalizeClass(`icon-${i.icon}`),"icon-name":i.icon,size:33},null,8,["class","icon-name"])],2),s.createElementVNode("div",gw,[s.createElementVNode("div",{class:s.normalizeClass(`body-section-title title-${i.notificationType}`)},s.toDisplayString(i.limitTitle(i.title,i.notificationType)),3),["bottom-message"].includes(i.notificationType)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",dw,s.toDisplayString(i.message.length>=280?`${i.message.substring(0,280)}..`:i.message),1))]),["toast","bottom-message"].includes(i.notificationType)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(`buttons ${i.notificationType}`)},[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-normal",i.icon=="delete"?"btn-danger":"btn-primary"]),"data-e2e":i.buttonActionE2e,onClick:e[1]||(e[1]=l=>i.close(!0))},s.toDisplayString(i.buttonAction),11,Nw),s.createElementVNode("button",{class:"btn btn-normal btn-secondary dismiss","data-e2e":i.buttonDismissE2e,onClick:e[2]||(e[2]=l=>i.close())},s.toDisplayString(i.buttonDismiss),9,jw)],2))],2)],2)):s.createCommentVNode("",!0)],6)}const Iw=He(ec,[["render",yw],["__scopeId","data-v-774320ea"]]),Dw={class:"password__panel"},hw=["placeholder","type"],fw={class:"icon is-right"},pw={key:0,class:"password__tooltip"},zw=s.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(i,{emit:e}){const t=i,n=s.ref(""),o=s.ref(!1),r=s.ref(!1),a=s.ref(!1),l=s.ref(!1),M=s.ref(!1),c=s.ref(!1);function u(){e("submit",n.value),e("update:modelValue",n.value)}function g(){o.value=!0,c.value=!0}function d(){o.value=!1,c.value=!1}function y(){M.value=!M.value}return s.onMounted(()=>()=>n.value=t.modelValue||""),s.watch(t,()=>(n.value=t.modelValue||"",r.value=n.value.length>11,a.value=/\d/.test(n.value),l.value=/[!@#$%^&*)(+=._-]/.test(n.value))),(j,h)=>(s.openBlock(),s.createElementBlock("div",Dw,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":h[0]||(h[0]=D=>n.value=D),class:"form__input password__panel_input","data-e2e":"password-input",placeholder:t.placeholder,type:M.value?"text":"password",onFocus:g,onFocusout:d,onInput:u,autocomplete:"current-password"},null,40,hw),[[s.vModelDynamic,n.value]]),s.createElementVNode("button",{class:"password__panel_button",type:"button",onClick:y},[s.createElementVNode("span",fw,[s.createVNode(de,{active:c.value,"icon-name":M.value?"invisible":"visible",size:20},null,8,["active","icon-name"])])]),o.value&&!t.passwordTooltipDisabled?(s.openBlock(),s.createElementBlock("div",pw,[s.createElementVNode("p",{class:s.normalizeClass(["password__tooltip_text",r.value?"password__tooltip_text--valid":""])},[s.createVNode(de,{class:s.normalizeClass(r.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":r.value?"accept":"close",size:16},null,8,["class","icon-name"]),s.createElementVNode("span",null,s.toDisplayString(t.tipChars),1)],2),s.createElementVNode("p",{class:s.normalizeClass(["password__tooltip_text",a.value?"password__tooltip_text--valid":""])},[s.createVNode(de,{class:s.normalizeClass(a.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":a.value?"accept":"close",size:16},null,8,["class","icon-name"]),s.createElementVNode("span",null,s.toDisplayString(t.tipNumbers),1)],2),s.createElementVNode("p",{class:s.normalizeClass(["password__tooltip_text",l.value?"password__tooltip_text--valid":""])},[s.createVNode(de,{class:s.normalizeClass(l.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":l.value?"accept":"close",size:16},null,8,["class","icon-name"]),s.createElementVNode("span",null,s.toDisplayString(t.tipSymbols),1)],2)])):s.createCommentVNode("",!0)]))}}),oQ="",mw=He(zw,[["__scopeId","data-v-c1189888"]]),rQ="",Aw={class:"radio"},Tw=["for"],xw=["id","type","value"],Lw={class:"radio__label_txt"},Gj=He({__name:"RadioBox",props:{type:{type:String,default:"radio"},value:{type:String,required:!0},label:{type:String,required:!0}},emits:["clickBox"],setup(i,{emit:e}){return(t,n)=>(s.openBlock(),s.createElementBlock("div",Aw,[s.createElementVNode("label",{class:"radio__label",for:i.value},[s.createElementVNode("input",{id:i.value,class:"radio__input",name:"radiobox",type:i.type,value:i.value,onClick:n[0]||(n[0]=o=>e("clickBox"))},null,8,xw),s.createElementVNode("span",Lw,s.toDisplayString(i.label),1)],8,Tw)]))}},[["__scopeId","data-v-fbb2f05d"]]),sQ="",Ew={__name:"RadioBoxGroup",props:{orientation:{type:String,default:"horizontal"},type:{type:String,default:"radio"},list:{type:Array,required:!0}},setup(i){const e=s.ref(null);function t(){const n=document.querySelectorAll("input");for(let o=0;o<n.length;o++)n[o].checked?n[o].parentNode.parentNode.classList.add("radio--checked"):n[o].parentNode.parentNode.classList.remove("radio--checked")}return(n,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["radio__grp",i.orientation==="vertical"?"radio__vertical":"radio__horizontal"])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.list,r=>(s.openBlock(),s.createBlock(Gj,{key:r.key,ref_for:!0,ref_key:"boxes",ref:e,label:r.label,type:i.type,value:r.value,onClickBox:t},null,8,["label","type","value"]))),128))],2))}},bw={class:"search-panel"},Ow=["placeholder"],Cw=s.defineComponent({__name:"SearchInput",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},focus:{type:Boolean,default:!1}},emits:["submit","clean","update:modelValue"],setup(i,{emit:e}){const t=i,n=s.ref(""),o=s.ref(null);function r(){e("submit",n.value),e("update:modelValue",n.value)}function a(){n.value="",e("clean"),e("update:modelValue",n.value)}return s.onMounted(()=>()=>n.value=t.modelValue||""),s.watch(t,()=>{n.value=t.modelValue||"",t.focus&&o.value&&o.value.focus()}),(l,M)=>(s.openBlock(),s.createElementBlock("div",bw,[s.withDirectives(s.createElementVNode("input",{ref_key:"searchInput",ref:o,"onUpdate:modelValue":M[0]||(M[0]=c=>n.value=c),class:"form-input search-panel-input","data-e2e":"search-input",placeholder:t.placeholder,onKeyup:r},null,40,Ow),[[s.vModelText,n.value]]),n.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("button",{key:0,class:"search-panel-button","data-e2e":"search-submit",onClick:r},[s.createVNode(de,{active:!0,"icon-name":"search",size:24})])),n.value?(s.openBlock(),s.createElementBlock("button",{key:1,class:"search-panel-button close","data-e2e":"search-close",onClick:a},[s.createVNode(de,{class:"icon","icon-name":"close",size:24})])):s.createCommentVNode("",!0)]))}}),lQ="",Sw=He(Cw,[["__scopeId","data-v-0ddf3e82"]]),ww=i=>(s.pushScopeId("data-v-795f52ea"),i=i(),s.popScopeId(),i),kw={class:"stepper"},vw=ww(()=>s.createElementVNode("hr",{class:"solid"},null,-1)),Qw=s.defineComponent({__name:"Stepper",props:{maxSteps:{type:Number,default:0},currentStep:{type:Number,default:0}},setup(i){const e=i;function t(){return Array.from(Array(e.maxSteps||0).keys())}return(n,o)=>(s.openBlock(),s.createElementBlock("div",kw,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t(),(r,a)=>(s.openBlock(),s.createElementBlock("div",{key:a,class:"step"},[s.createElementVNode("span",{class:s.normalizeClass(["step-number",{active:r===i.currentStep}])},s.toDisplayString(r+1),3),vw]))),128))]))}}),MQ="",Yw=He(Qw,[["__scopeId","data-v-795f52ea"]]),Uw=s.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(i){const e=i;function t(){return e.color?`tag-${e.color}`:""}function n(){return e.size?`tag-${e.size}`:""}return(o,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["tag",[t(),n(),{clickable:i.isClickable}]])},s.toDisplayString(i.label),3))}}),cQ="";var _w=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ja(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function tc(){}Object.assign(tc,{default:tc,register:tc,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(i){const e=(this.document||this.ownerDocument).querySelectorAll(i);let t=e.length;for(;--t>=0&&e.item(t)!==this;);return t>-1}),Element.prototype.closest||(Element.prototype.closest=function(i){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(i))return e;e=e.parentElement||e.parentNode}while(e!==null);return null}),Element.prototype.prepend||(Element.prototype.prepend=function(i){const e=document.createDocumentFragment();Array.isArray(i)||(i=[i]),i.forEach(t=>{const n=t instanceof Node;e.appendChild(n?t:document.createTextNode(t))}),this.insertBefore(e,this.firstChild)}),Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(i){i=arguments.length===0?!0:!!i;const e=this.parentNode,t=window.getComputedStyle(e,null),n=parseInt(t.getPropertyValue("border-top-width")),o=parseInt(t.getPropertyValue("border-left-width")),r=this.offsetTop-e.offsetTop<e.scrollTop,a=this.offsetTop-e.offsetTop+this.clientHeight-n>e.scrollTop+e.clientHeight,l=this.offsetLeft-e.offsetLeft<e.scrollLeft,M=this.offsetLeft-e.offsetLeft+this.clientWidth-o>e.scrollLeft+e.clientWidth,c=r&&!a;(r||a)&&i&&(e.scrollTop=this.offsetTop-e.offsetTop-e.clientHeight/2-n+this.clientHeight/2),(l||M)&&i&&(e.scrollLeft=this.offsetLeft-e.offsetLeft-e.clientWidth/2-o+this.clientWidth/2),(r||a||l||M)&&!i&&this.scrollIntoView(c)}),window.requestIdleCallback=window.requestIdleCallback||function(i){const e=Date.now();return setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(i){clearTimeout(i)};let Bw=(i=21)=>crypto.getRandomValues(new Uint8Array(i)).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 Wj=(i=>(i.VERBOSE="VERBOSE",i.INFO="INFO",i.WARN="WARN",i.ERROR="ERROR",i))(Wj||{});const ce={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,META:91},Pw={LEFT:0,WHEEL:1,RIGHT:2,BACKWARD:3,FORWARD:4};function Io(i,e,t="log",n,o="color: inherit"){if(!("console"in window)||!window.console[t])return;const r=["info","log","warn","error"].includes(t),a=[];switch(Io.logLevel){case"ERROR":if(t!=="error")return;break;case"WARN":if(!["error","warn"].includes(t))return;break;case"INFO":if(!r||i)return;break}n&&a.push(n);const l="Editor.js 2.28.2",M=`line-height: 1em;
|
|
23
|
+
`),role:"dialog",onMousedown:e[1]||(e[1]=s.withModifiers(()=>{},["stop"]))},[i.hasCloseButton?(s.openBlock(),s.createElementBlock("button",{key:0,"aria-label":"Close modal",class:"btn-close",type:"button",onClick:e[0]||(e[0]=(...l)=>i.closed&&i.closed(...l))},[s.createVNode(a,{class:"icon","icon-name":"close",size:24})])):s.createCommentVNode("",!0),s.createElementVNode("div",ow,[i.hasSideBar?(s.openBlock(),s.createElementBlock("aside",rw,[s.renderSlot(i.$slots,"sidebar",{},void 0,!0),i.hasSideBarButtonBottom?s.renderSlot(i.$slots,"sidebar-button-bottom",{key:0},void 0,!0):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.createElementVNode("section",{class:s.normalizeClass(`right-section ${i.hasSideBar?"":"full"}`)},[i.hasHeader?(s.openBlock(),s.createElementBlock("header",aw,[s.renderSlot(i.$slots,"header",{},void 0,!0)])):s.createCommentVNode("",!0),s.createElementVNode("section",{id:"modalDescription",class:s.normalizeClass(["modal-body",[i.bodyClass,i.hasBodyScrolling?"":"modal-body-no-scroll"]])},[s.renderSlot(i.$slots,"body",{},void 0,!0)],2),s.createElementVNode("footer",sw,[i.hasFooter?s.renderSlot(i.$slots,"footer",{key:0},void 0,!0):s.createCommentVNode("",!0),i.hasFooterButtonRight?s.renderSlot(i.$slots,"footer-button-right",{key:1},void 0,!0):s.createCommentVNode("",!0)])],2)])],34)],32)]),_:3})}const Mw=He(qM,[["render",lw],["__scopeId","data-v-db2339ab"]]),ec=s.defineComponent({components:{DhIcon:de},props:{notificationType:{type:String,required:!0,default:"toast",validator:i=>["toast","bottom-message","actionable","modal"].includes(i)},icon:{type:String,required:!0,default:"info"},title:{type:String,required:!1,default:""},message:{type:String,required:!1,default:""},dismissible:{type:Boolean,required:!1,default:!0},buttonAction:{type:String,default:"Action"},buttonActionE2e:{type:String,default:""},buttonDismiss:{type:String,default:"Dismiss"},buttonDismissE2e:{type:String,default:""},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}},mounted(){this.dismissible&&["toast","bottom-message"].includes(this.notificationType)&&setTimeout(()=>{this.close()},5e3)},emits:["action"],methods:{close(i=!1){this.$emit("action",i)},limitTitle(i,e){return["toast","actionable"].includes(e)&&i.length>=60?`${i.substring(0,60)}..`:["bottom-message"].includes(e)&&i.length>=40?`${i.substring(0,40)}..`:["modal"].includes(e)&&i.length>=80?`${i.substring(0,80)}..`:i}}}),Zj=()=>{s.useCssVars(i=>({e297e524:i.animationSpeed}))},Vj=ec.setup;ec.setup=Vj?(i,e)=>(Zj(),Vj(i,e)):Zj;const cw="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjI0IDZMNiAxNy4yNE02LjE1NjI3IDYuMzEyNTJMMTcuMDgzNyAxNy4yNCIgc3Ryb2tlPSIjODI4MjgyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==",tQ="",uw=[(i=>(s.pushScopeId("data-v-e7daee06"),i=i(),s.popScopeId(),i))(()=>s.createElementVNode("img",{alt:"icon",class:"close-icon",src:cw},null,-1))],gw={class:"additional-text"},dw={key:0,class:"descriptions"},Nw=["data-e2e"],jw=["data-e2e"];function yw(i,e,t,n,o,r){const a=s.resolveComponent("dh-icon");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(`dh-notification-container ${i.notificationType}`),style:s.normalizeStyle({"z-index":i.zIndex})},[i.show?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["bottom-message"].includes(i.notificationType)?`${i.animationUp} status status-${i.notificationType}`:`${i.animationEnter} status status-${i.notificationType}`)},[["modal","bottom-message"].includes(i.notificationType)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("button",{key:0,class:"close-notification",onClick:e[0]||(e[0]=l=>i.close(!1))},uw)),s.createElementVNode("div",{class:s.normalizeClass(`content content- ${i.notificationType}`)},[s.createElementVNode("div",{class:s.normalizeClass(`ellipse ellipse-${i.notificationType} ellipse-${i.icon}`)},[s.createVNode(a,{class:s.normalizeClass(`icon-${i.icon}`),"icon-name":i.icon,size:33},null,8,["class","icon-name"])],2),s.createElementVNode("div",gw,[s.createElementVNode("div",{class:s.normalizeClass(`body-section-title title-${i.notificationType}`)},s.toDisplayString(i.limitTitle(i.title,i.notificationType)),3),["bottom-message"].includes(i.notificationType)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",dw,s.toDisplayString(i.message.length>=280?`${i.message.substring(0,280)}..`:i.message),1))]),["toast","bottom-message"].includes(i.notificationType)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(`buttons ${i.notificationType}`)},[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-normal",i.icon=="delete"?"btn-danger":"btn-primary"]),"data-e2e":i.buttonActionE2e,onClick:e[1]||(e[1]=l=>i.close(!0))},s.toDisplayString(i.buttonAction),11,Nw),i.showDismissButton?(s.openBlock(),s.createElementBlock("button",{key:0,class:"btn btn-normal btn-secondary dismiss","data-e2e":i.buttonDismissE2e,onClick:e[2]||(e[2]=l=>i.close())},s.toDisplayString(i.buttonDismiss),9,jw)):s.createCommentVNode("",!0)],2))],2)],2)):s.createCommentVNode("",!0)],6)}const Iw=He(ec,[["render",yw],["__scopeId","data-v-e7daee06"]]),Dw={class:"password__panel"},hw=["placeholder","type"],fw={class:"icon is-right"},pw={key:0,class:"password__tooltip"},zw=s.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(i,{emit:e}){const t=i,n=s.ref(""),o=s.ref(!1),r=s.ref(!1),a=s.ref(!1),l=s.ref(!1),M=s.ref(!1),c=s.ref(!1);function u(){e("submit",n.value),e("update:modelValue",n.value)}function g(){o.value=!0,c.value=!0}function d(){o.value=!1,c.value=!1}function y(){M.value=!M.value}return s.onMounted(()=>()=>n.value=t.modelValue||""),s.watch(t,()=>(n.value=t.modelValue||"",r.value=n.value.length>11,a.value=/\d/.test(n.value),l.value=/[!@#$%^&*)(+=._-]/.test(n.value))),(j,h)=>(s.openBlock(),s.createElementBlock("div",Dw,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":h[0]||(h[0]=D=>n.value=D),class:"form__input password__panel_input","data-e2e":"password-input",placeholder:t.placeholder,type:M.value?"text":"password",onFocus:g,onFocusout:d,onInput:u,autocomplete:"current-password"},null,40,hw),[[s.vModelDynamic,n.value]]),s.createElementVNode("button",{class:"password__panel_button",type:"button",onClick:y},[s.createElementVNode("span",fw,[s.createVNode(de,{active:c.value,"icon-name":M.value?"invisible":"visible",size:20},null,8,["active","icon-name"])])]),o.value&&!t.passwordTooltipDisabled?(s.openBlock(),s.createElementBlock("div",pw,[s.createElementVNode("p",{class:s.normalizeClass(["password__tooltip_text",r.value?"password__tooltip_text--valid":""])},[s.createVNode(de,{class:s.normalizeClass(r.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":r.value?"accept":"close",size:16},null,8,["class","icon-name"]),s.createElementVNode("span",null,s.toDisplayString(t.tipChars),1)],2),s.createElementVNode("p",{class:s.normalizeClass(["password__tooltip_text",a.value?"password__tooltip_text--valid":""])},[s.createVNode(de,{class:s.normalizeClass(a.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":a.value?"accept":"close",size:16},null,8,["class","icon-name"]),s.createElementVNode("span",null,s.toDisplayString(t.tipNumbers),1)],2),s.createElementVNode("p",{class:s.normalizeClass(["password__tooltip_text",l.value?"password__tooltip_text--valid":""])},[s.createVNode(de,{class:s.normalizeClass(l.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":l.value?"accept":"close",size:16},null,8,["class","icon-name"]),s.createElementVNode("span",null,s.toDisplayString(t.tipSymbols),1)],2)])):s.createCommentVNode("",!0)]))}}),oQ="",mw=He(zw,[["__scopeId","data-v-c1189888"]]),rQ="",Aw={class:"radio"},Tw=["for"],xw=["id","type","value"],Lw={class:"radio__label_txt"},Gj=He({__name:"RadioBox",props:{type:{type:String,default:"radio"},value:{type:String,required:!0},label:{type:String,required:!0}},emits:["clickBox"],setup(i,{emit:e}){return(t,n)=>(s.openBlock(),s.createElementBlock("div",Aw,[s.createElementVNode("label",{class:"radio__label",for:i.value},[s.createElementVNode("input",{id:i.value,class:"radio__input",name:"radiobox",type:i.type,value:i.value,onClick:n[0]||(n[0]=o=>e("clickBox"))},null,8,xw),s.createElementVNode("span",Lw,s.toDisplayString(i.label),1)],8,Tw)]))}},[["__scopeId","data-v-fbb2f05d"]]),sQ="",Ew={__name:"RadioBoxGroup",props:{orientation:{type:String,default:"horizontal"},type:{type:String,default:"radio"},list:{type:Array,required:!0}},setup(i){const e=s.ref(null);function t(){const n=document.querySelectorAll("input");for(let o=0;o<n.length;o++)n[o].checked?n[o].parentNode.parentNode.classList.add("radio--checked"):n[o].parentNode.parentNode.classList.remove("radio--checked")}return(n,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["radio__grp",i.orientation==="vertical"?"radio__vertical":"radio__horizontal"])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.list,r=>(s.openBlock(),s.createBlock(Gj,{key:r.key,ref_for:!0,ref_key:"boxes",ref:e,label:r.label,type:i.type,value:r.value,onClickBox:t},null,8,["label","type","value"]))),128))],2))}},bw={class:"search-panel"},Ow=["placeholder"],Cw=s.defineComponent({__name:"SearchInput",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},focus:{type:Boolean,default:!1}},emits:["submit","clean","update:modelValue"],setup(i,{emit:e}){const t=i,n=s.ref(""),o=s.ref(null);function r(){e("submit",n.value),e("update:modelValue",n.value)}function a(){n.value="",e("clean"),e("update:modelValue",n.value)}return s.onMounted(()=>()=>n.value=t.modelValue||""),s.watch(t,()=>{n.value=t.modelValue||"",t.focus&&o.value&&o.value.focus()}),(l,M)=>(s.openBlock(),s.createElementBlock("div",bw,[s.withDirectives(s.createElementVNode("input",{ref_key:"searchInput",ref:o,"onUpdate:modelValue":M[0]||(M[0]=c=>n.value=c),class:"form-input search-panel-input","data-e2e":"search-input",placeholder:t.placeholder,onKeyup:r},null,40,Ow),[[s.vModelText,n.value]]),n.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("button",{key:0,class:"search-panel-button","data-e2e":"search-submit",onClick:r},[s.createVNode(de,{active:!0,"icon-name":"search",size:24})])),n.value?(s.openBlock(),s.createElementBlock("button",{key:1,class:"search-panel-button close","data-e2e":"search-close",onClick:a},[s.createVNode(de,{class:"icon","icon-name":"close",size:24})])):s.createCommentVNode("",!0)]))}}),lQ="",Sw=He(Cw,[["__scopeId","data-v-0ddf3e82"]]),ww=i=>(s.pushScopeId("data-v-795f52ea"),i=i(),s.popScopeId(),i),kw={class:"stepper"},vw=ww(()=>s.createElementVNode("hr",{class:"solid"},null,-1)),Qw=s.defineComponent({__name:"Stepper",props:{maxSteps:{type:Number,default:0},currentStep:{type:Number,default:0}},setup(i){const e=i;function t(){return Array.from(Array(e.maxSteps||0).keys())}return(n,o)=>(s.openBlock(),s.createElementBlock("div",kw,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t(),(r,a)=>(s.openBlock(),s.createElementBlock("div",{key:a,class:"step"},[s.createElementVNode("span",{class:s.normalizeClass(["step-number",{active:r===i.currentStep}])},s.toDisplayString(r+1),3),vw]))),128))]))}}),MQ="",Yw=He(Qw,[["__scopeId","data-v-795f52ea"]]),Uw=s.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(i){const e=i;function t(){return e.color?`tag-${e.color}`:""}function n(){return e.size?`tag-${e.size}`:""}return(o,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["tag",[t(),n(),{clickable:i.isClickable}]])},s.toDisplayString(i.label),3))}}),cQ="";var _w=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ja(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function tc(){}Object.assign(tc,{default:tc,register:tc,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(i){const e=(this.document||this.ownerDocument).querySelectorAll(i);let t=e.length;for(;--t>=0&&e.item(t)!==this;);return t>-1}),Element.prototype.closest||(Element.prototype.closest=function(i){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(i))return e;e=e.parentElement||e.parentNode}while(e!==null);return null}),Element.prototype.prepend||(Element.prototype.prepend=function(i){const e=document.createDocumentFragment();Array.isArray(i)||(i=[i]),i.forEach(t=>{const n=t instanceof Node;e.appendChild(n?t:document.createTextNode(t))}),this.insertBefore(e,this.firstChild)}),Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(i){i=arguments.length===0?!0:!!i;const e=this.parentNode,t=window.getComputedStyle(e,null),n=parseInt(t.getPropertyValue("border-top-width")),o=parseInt(t.getPropertyValue("border-left-width")),r=this.offsetTop-e.offsetTop<e.scrollTop,a=this.offsetTop-e.offsetTop+this.clientHeight-n>e.scrollTop+e.clientHeight,l=this.offsetLeft-e.offsetLeft<e.scrollLeft,M=this.offsetLeft-e.offsetLeft+this.clientWidth-o>e.scrollLeft+e.clientWidth,c=r&&!a;(r||a)&&i&&(e.scrollTop=this.offsetTop-e.offsetTop-e.clientHeight/2-n+this.clientHeight/2),(l||M)&&i&&(e.scrollLeft=this.offsetLeft-e.offsetLeft-e.clientWidth/2-o+this.clientWidth/2),(r||a||l||M)&&!i&&this.scrollIntoView(c)}),window.requestIdleCallback=window.requestIdleCallback||function(i){const e=Date.now();return setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(i){clearTimeout(i)};let Bw=(i=21)=>crypto.getRandomValues(new Uint8Array(i)).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 Wj=(i=>(i.VERBOSE="VERBOSE",i.INFO="INFO",i.WARN="WARN",i.ERROR="ERROR",i))(Wj||{});const ce={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,META:91},Pw={LEFT:0,WHEEL:1,RIGHT:2,BACKWARD:3,FORWARD:4};function Io(i,e,t="log",n,o="color: inherit"){if(!("console"in window)||!window.console[t])return;const r=["info","log","warn","error"].includes(t),a=[];switch(Io.logLevel){case"ERROR":if(t!=="error")return;break;case"WARN":if(!["error","warn"].includes(t))return;break;case"INFO":if(!r||i)return;break}n&&a.push(n);const l="Editor.js 2.28.2",M=`line-height: 1em;
|
|
24
24
|
color: #006FEA;
|
|
25
25
|
display: inline-block;
|
|
26
26
|
font-size: 11px;
|