hisonvue 1.1.14 → 1.1.16
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/{HAccordion-AMMxc-n7.mjs → HAccordion-lIL8UGRX.mjs} +2 -2
- package/dist/{HAccordion-DUbR-LEB.js → HAccordion-siQaLAoK.js} +1 -1
- package/dist/{HBaggie-D1SDq6Aq.mjs → HBaggie-Cs_-3k4M.mjs} +2 -2
- package/dist/{HBaggie-GcDxoIp_.js → HBaggie-D1vkaljq.js} +1 -1
- package/dist/{HBanner-BDmz48P7.mjs → HBanner-BqBIINgJ.mjs} +2 -2
- package/dist/{HBanner-eYrKFMD3.js → HBanner-C8vF-YOX.js} +1 -1
- package/dist/{HButton-D5J3QJ3k.mjs → HButton-BUY3zQMk.mjs} +2 -2
- package/dist/{HButton-DY0Z8AD0.js → HButton-C6snZhs5.js} +1 -1
- package/dist/{HCalendar-B70zw7PF.mjs → HCalendar-BqyfeGfZ.mjs} +1 -1
- package/dist/{HCalendar-DdGP7stc.js → HCalendar-S2Bgjnyy.js} +1 -1
- package/dist/{HCaption-Brk7an21.js → HCaption-BBkA5LCw.js} +1 -1
- package/dist/{HCaption-CZS7sSnK.mjs → HCaption-icMp3A1j.mjs} +1 -1
- package/dist/{HChart-Bp-Pe6N4.js → HChart-BDnVqO99.js} +1 -1
- package/dist/{HChart-DDOyVEKT.mjs → HChart-BjpuQd29.mjs} +1 -1
- package/dist/{HDrawer-hHybg8SX.mjs → HDrawer-B6M4eOq5.mjs} +1 -1
- package/dist/{HDrawer-XsgiKbXk.js → HDrawer-D3JaNCUq.js} +1 -1
- package/dist/{HDropdown-B1lOTt80.mjs → HDropdown-CIf0ARhc.mjs} +2 -2
- package/dist/{HDropdown-BAhVukt7.js → HDropdown-DHIEnS5Q.js} +1 -1
- package/dist/{HFileset-BqFrvfdg.js → HFileset-BHCZQ0y0.js} +1 -1
- package/dist/{HFileset--kImkvAy.mjs → HFileset-D9t9qsVS.mjs} +1 -1
- package/dist/{HGap-DgiEBgM7.js → HGap-B0xx04DS.js} +1 -1
- package/dist/{HGap-BAT2kKz2.mjs → HGap-TNS70G9l.mjs} +1 -1
- package/dist/{HGrid-DcrmReS5.js → HGrid-B8Kp5qcZ.js} +1 -1
- package/dist/{HGrid-CKBU9x2G.mjs → HGrid-DWkk1uo9.mjs} +1 -1
- package/dist/{HImagebox-p-VeFWFd.js → HImagebox-BOCLg6NX.js} +1 -1
- package/dist/{HImagebox-CCFVW-fE.mjs → HImagebox-IvXpEWz7.mjs} +1 -1
- package/dist/{HInput-CIPnIotR.js → HInput-Cupw-34B.js} +1 -1
- package/dist/{HInput-Dnzu2oDw.mjs → HInput-DNJ-iBPP.mjs} +1 -1
- package/dist/{HInputGroup-LkHKC_Y0.js → HInputGroup-BaA5OQHo.js} +1 -1
- package/dist/{HInputGroup-CEVPImN2.mjs → HInputGroup-ByBCd1j0.mjs} +1 -1
- package/dist/{HLabel-W1SpsHAb.mjs → HLabel-4caR33Aw.mjs} +2 -2
- package/dist/{HLabel-CfZ6vkuS.js → HLabel-EopKJw5B.js} +1 -1
- package/dist/{HLayout-DmV1cmwM.mjs → HLayout-BA4T709Y.mjs} +2 -2
- package/dist/{HLayout-fV1YUnaU.js → HLayout-CPflD0kD.js} +1 -1
- package/dist/{HList-DVOTg58_.mjs → HList-BA92wY3G.mjs} +2 -2
- package/dist/{HList-SesiDx90.js → HList-BpZwIQOr.js} +1 -1
- package/dist/{HModal-CkKQ2QOR.js → HModal-B9aHgVnm.js} +1 -1
- package/dist/{HModal-DYvv8zcl.mjs → HModal-bSdg1ZT7.mjs} +1 -1
- package/dist/{HNote-txZdZMkb.mjs → HNote-BmesZ9Ck.mjs} +1 -1
- package/dist/{HNote-DYIug_Uu.js → HNote-Da3cC4ai.js} +1 -1
- package/dist/{HPagination-DSp3KBLT.js → HPagination-updh8eau.js} +1 -1
- package/dist/{HPagination-DgUKOXec.mjs → HPagination-y7RJYSLp.mjs} +2 -2
- package/dist/{HParagraph-Bd6H8B4S.mjs → HParagraph-B5RcWI99.mjs} +1 -1
- package/dist/{HParagraph-uLP5-Rxz.js → HParagraph-BvVvWc_u.js} +1 -1
- package/dist/{HPopup-CiQK7Lcy.mjs → HPopup-BLcY7Y6L.mjs} +1 -1
- package/dist/{HPopup-Cx8Zu9C0.js → HPopup-Bi4aRzJy.js} +1 -1
- package/dist/{HSpinner-Cj1Dyp1l.mjs → HSpinner-7L5221AE.mjs} +1 -1
- package/dist/{HSpinner-Ddqgbqv8.js → HSpinner-B-PBVfju.js} +1 -1
- package/dist/{HTable-BIP9_Lby.js → HTable-C7CzkJ4v.js} +1 -1
- package/dist/{HTable-BXrwEo6K.mjs → HTable-D3ATeV4m.mjs} +1 -1
- package/dist/hisonvue.cjs.js +1 -1
- package/dist/hisonvue.css +1 -1
- package/dist/hisonvue.d.ts +101 -1
- package/dist/hisonvue.es.js +2 -2
- package/dist/{index-Bv6aEJhv.js → index-Bg8WW8Oo.js} +98 -48
- package/dist/{index-q_fzCRqA.mjs → index-DFLqS2VX.mjs} +4258 -3993
- package/dist/{setButtonCssEvent-YKTJlBkM.mjs → setButtonCssEvent-GeMZtIKH.mjs} +1 -1
- package/dist/{setButtonCssEvent-Dk2GorRb.js → setButtonCssEvent-QUBf_KD8.js} +1 -1
- package/nuxt/module.mjs +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),a=require("./index-Bg8WW8Oo.js"),M=require("./setButtonCssEvent-QUBf_KD8.js"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.js"),ce={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},title:{type:String,required:!1},text:{type:String,required:!1},href:{type:String,default:null},anchorAttrs:{type:Object,default:()=>({})},fontBold:{type:Boolean,default:!1},fontItalic:{type:Boolean,default:!1},fontThruline:{type:Boolean,default:!1},fontUnderline:{type:Boolean,default:!1},textAlign:{type:String,default:null,validator:l=>l==null||a.TEXT_ALIGN_VALUES.includes(l)},border:{type:Boolean,default:!1},backgroundType:{type:String,default:a.BackgroundType.empty,validator:l=>a.BACKGROUND_TYPE_VALUES.includes(l)},toggleTarget:{type:String,default:null},translate:{type:Boolean,default:!0},tabIndex:{type:[Number,String],default:null,validator:l=>l===null||l===""||!isNaN(+l)&&isFinite(+l)}},de=t.defineComponent({name:"HLabel",props:ce,inheritAttrs:!1,emits:["mounted","responsive-change","click","mousedown","mouseup","mouseover","mouseout"],setup(l,{emit:o,slots:G}){const v=t.ref(null),g=t.ref(null),r=l.id?l.id:a.getUUID(),s=`hlabel:${r}`,F=a.useDevice(),U=t.useSlots(),T=t.ref(l.visible),c=t.ref(l.title||""),y=t.ref(l.textAlign??a.TextAlign.left),J=t.computed(()=>({textAlign:y.value})),d=t.ref(l.href??null),u=t.ref({...l.anchorAttrs||{}}),h=t.computed(()=>!!(d.value&&String(d.value).trim())),X=t.computed(()=>{const e={...u.value};return c.value&&e.title==null&&(e.title=c.value),e.href=d.value||void 0,e.download===!0&&(e.download=""),String(e.target||"")==="_blank"&&(e.rel==null||String(e.rel).trim()==="")&&(e.rel="noopener noreferrer"),e}),N=t.computed(()=>U.default?U.default():[]),H=t.computed(()=>N.value.length>0&&N.value.every(e=>e.type===t.Text)),A=t.computed(()=>!!U.default&&!H.value),Y=t.computed(()=>A.value?"div":h.value?"a":"span"),C=t.ref(l.fontBold),Q=t.computed(()=>{if(C.value)return"hison-font-bold"}),p=t.ref(l.fontItalic),W=t.computed(()=>{if(p.value)return"hison-font-italic"}),k=t.ref(l.fontThruline),Z=t.computed(()=>{if(k.value)return"hison-font-thruline-important"}),B=t.ref(l.fontUnderline),_=t.computed(()=>{if(B.value)return"hison-font-underline-important"}),w=t.ref(l.border??!1),S=t.ref(l.backgroundType||a.BackgroundType.empty),ee=t.computed(()=>T.value?"":"hison-display-none"),te=t.computed(()=>w.value?"hison-border":""),le=t.computed(()=>{switch(S.value){case a.BackgroundType.empty:return"hison-bg-empty";case a.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),i=t.ref(l.text||"");t.onMounted(()=>{if(H.value){const e=N.value.map(n=>String(n.children??"")).join("");i.value=e}});const f=t.ref(l.toggleTarget??null),m=t.computed(()=>!!(f.value&&String(f.value).trim())),b=t.ref(l.translate),ne=t.computed(()=>b.value===!1?"notranslate":""),ae=t.computed(()=>b.value===!1?"no":void 0),I=t.ref(l.tabIndex!==null&&l.tabIndex!==""?Number(l.tabIndex):null),E=t.ref([]),L=()=>{E.value=a.extractResponsiveClasses(a.toClassString(l.class)||"",F.value),a.addComponentNameToClass(E.value,"size",a.hisonCloser.componentStyle.size),a.addComponentNameToClass(E.value,"color","primary")},q=()=>{var O,D,R,j,P,z;if(!m.value)return;const e=String(f.value),n=(O=a.hisonCloser.component.inputList)==null?void 0:O[e];if(!n||!n.isHisonvueComponent)return;const x=(D=n.getInputType)==null?void 0:D.call(n),ue=(R=n.getEditMode)==null?void 0:R.call(n);if(x!=="checkbox"&&x!=="radio"||ue!=="editable")return;const re=!!((j=n.getValue)!=null&&j.call(n));x==="checkbox"?(P=n.setValue)==null||P.call(n,!re):(z=n.setValue)==null||z.call(n,!0)},oe=e=>{m.value&&q(),o("click",e,g.value)},se=e=>{if(m.value&&q(),!h.value)return;const n=v.value;n&&n.tagName==="A"&&n.click()},$=(e=!0)=>{const n=v.value;if(n){if(M.removeButtonCssEvent(n),m.value){M.addButtonCssEvent(n);return}e&&h.value&&n.tagName==="A"&&M.addButtonCssEvent(n)}},V=()=>{a.hisonCloser.component.labelList[r]&&a.hisonCloser.component.labelList[r].isHisonvueComponent&&console.warn(`[Hisonvue] The label ID is at risk of being duplicated. ${r}`),a.registerReloadable(s,()=>{K(),t.nextTick(V)}),L(),t.nextTick(()=>$(!0)),g.value={isHisonvueComponent:!0,getId:()=>r,getType:()=>"label",isVisible:()=>T.value,setVisible:e=>{T.value=e},getTitle:()=>c.value,setTitle:e=>{c.value=e},getText:()=>A.value?"":i.value,setText:e=>{A.value||(i.value=e)},getHref:()=>d.value??"",setHref:e=>{d.value=e??null},getAnchorAttrs:()=>({...u.value}),replaceAnchorAttrs:e=>{u.value={...e}},mergeAnchorAttrs:e=>{u.value={...u.value,...e}},setAnchorAttr:(e,n)=>{u.value={...u.value,[e]:n}},removeAnchorAttr:e=>{const n={...u.value};delete n[e],u.value=n},isFontBold:()=>C.value,setFontBold:e=>{C.value=e},isFontItalic:()=>p.value,setFontItalic:e=>{p.value=e},isFontThruline:()=>k.value,setFontThruline:e=>{k.value=e},isFontUnderline:()=>B.value,setFontUnderline:e=>{B.value=e},getTextAlign:()=>y.value,setTextAlign:e=>{(e===a.TextAlign.left||e===a.TextAlign.center||e===a.TextAlign.right)&&(y.value=e)},isBorder:()=>w.value,setBorder:e=>{w.value=e},getBackgroundType:()=>S.value,setBackgroundType:e=>{S.value=e},getToggleTarget:()=>f.value,setToggleTarget:e=>{f.value=e},isTranslate:()=>b.value,setTranslate:e=>{b.value=e},reload:()=>a.reloadHisonComponent(s),getTabIndex:()=>I.value,setTabIndex:e=>{I.value=e!=null?Number(e):null},focus:()=>{const e=v.value;e&&h.value&&e.tagName==="A"&&e.focus()}},a.hisonCloser.component.labelList[r]=g.value,o("mounted",g.value)},K=()=>{a.unregisterReloadable(s);const e=v.value;e&&M.removeButtonCssEvent(e),delete a.hisonCloser.component.labelList[r]};return t.onMounted(V),t.onBeforeUnmount(K),t.watch(F,e=>{L(),o("responsive-change",e)}),t.watch(h,e=>{t.nextTick(()=>$(e))},{flush:"post"}),t.watch(m,e=>{t.nextTick(()=>$(e))},{flush:"post"}),t.watch(()=>l.visible,e=>{const n=!!e;n!==T.value&&(T.value=n)}),t.watch(()=>l.title,e=>{const n=e??"";n!==c.value&&(c.value=n)}),t.watch(()=>l.text,e=>{if(!A.value){const n=e??"";n!==i.value&&(i.value=n)}}),t.watch(N,e=>{if(H.value){const n=e.map(x=>String(x.children??"")).join("");n!==i.value&&(i.value=n)}}),t.watch(()=>l.href,e=>{const n=e??null;n!==d.value&&(d.value=n)}),t.watch(()=>l.anchorAttrs,e=>{const n={...e||{}};JSON.stringify(n)!==JSON.stringify(u.value)&&(u.value=n)}),t.watch(()=>l.fontBold,e=>{const n=!!e;n!==C.value&&(C.value=n)}),t.watch(()=>l.fontItalic,e=>{const n=!!e;n!==p.value&&(p.value=n)}),t.watch(()=>l.fontThruline,e=>{const n=!!e;n!==k.value&&(k.value=n)}),t.watch(()=>l.fontUnderline,e=>{const n=!!e;n!==B.value&&(B.value=n)}),t.watch(()=>l.textAlign,e=>{e&&e!==y.value&&(e===a.TextAlign.left||e===a.TextAlign.center||e===a.TextAlign.right)&&(y.value=e)}),t.watch(()=>l.border,e=>{const n=!!e;n!==w.value&&(w.value=n)}),t.watch(()=>l.backgroundType,e=>{e&&e!==S.value&&(S.value=e)}),t.watch(()=>l.toggleTarget,e=>{const n=e??null;n!==f.value&&(f.value=n)}),t.watch(()=>l.translate,e=>{const n=!!e;n!==b.value&&(b.value=n)}),t.watch(()=>l.tabIndex,e=>{const n=e===null||e===""?null:Number(e);n!==I.value&&(I.value=n)}),t.watch(()=>l.class,()=>{L()}),{labelRef:v,labelMethods:t.computed(()=>t.unref(g)),props:l,title:c,hasHref:h,hasToggleTarget:m,hasElementSlot:A,renderTag:Y,internalText:i,computedAnchorAttrs:X,visibleClass:ee,fontBoldClass:Q,fontItalicClass:W,fontThrulineClass:Z,fontUnderlineClass:_,textAlignStyle:J,translateAttr:ae,translateClass:ne,borderClass:te,backgroundTypeClass:le,responsiveClassList:E,tabIndex:I,onClick:oe,onKeyActivate:se}}}),fe={key:2,class:"hison-label-text"};function ve(l,o,G,v,g,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["hison-wrapper",...l.responsiveClassList,l.visibleClass])},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.renderTag),t.mergeProps({ref:"labelRef",class:["hison-label",l.hasHref?"hison-label-link":null,l.hasToggleTarget?"hison-label-has-toggle-target":null,l.fontBoldClass,l.fontItalicClass,l.fontThrulineClass,l.fontUnderlineClass,l.borderClass,l.backgroundTypeClass,l.translateClass],style:[l.textAlignStyle,l.props.style],title:l.title||void 0,tabindex:l.tabIndex??void 0,translate:l.translateAttr},l.renderTag==="a"?l.computedAnchorAttrs:void 0,{onClick:l.onClick,onMousedown:o[0]||(o[0]=s=>l.$emit("mousedown",s,l.labelMethods)),onMouseup:o[1]||(o[1]=s=>l.$emit("mouseup",s,l.labelMethods)),onMouseover:o[2]||(o[2]=s=>l.$emit("mouseover",s,l.labelMethods)),onMouseout:o[3]||(o[3]=s=>l.$emit("mouseout",s,l.labelMethods)),onKeydown:[t.withKeys(t.withModifiers(l.onKeyActivate,["prevent"]),["enter"]),t.withKeys(t.withModifiers(l.onKeyActivate,["prevent"]),["space"])]}),{default:t.withCtx(()=>[l.hasElementSlot?t.renderSlot(l.$slots,"default",{key:0}):l.hasHref?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(l.internalText),1)],64)):(t.openBlock(),t.createElementBlock("span",fe,t.toDisplayString(l.internalText),1))]),_:3},16,["class","style","title","tabindex","translate","onClick","onKeydown"]))],2)}const ge=ie._export_sfc(de,[["render",ve]]);exports.default=ge;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as A, ref as d, computed as m, onMounted as B, onBeforeUnmount as $, watch as b, unref as L, nextTick as M, createElementBlock as R, openBlock as V, normalizeStyle as p, normalizeClass as q, createElementVNode as E, renderSlot as H } from "vue";
|
|
2
|
-
import { X as T, Y as U, Z as w, g as G, u as N, F as I, e as W, t as z, a as P, b as j, h as k, r as D, c as F, d as K } from "./index-
|
|
2
|
+
import { X as T, Y as U, Z as w, g as G, u as N, F as I, e as W, t as z, a as P, b as j, h as k, r as D, c as F, d as K } from "./index-DFLqS2VX.mjs";
|
|
3
3
|
import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
const O = {
|
|
5
5
|
/**
|
|
@@ -63,7 +63,7 @@ const O = {
|
|
|
63
63
|
* Acceptable values:
|
|
64
64
|
* - Hex: '#ffffff', '#fff'
|
|
65
65
|
* - RGB/RGBA: 'rgb(255,255,255)', 'rgba(0,0,0,0.5)'
|
|
66
|
-
* - Keyword: 'primary', 'muted', 'info', 'success', 'danger', 'warning'
|
|
66
|
+
* - Keyword: 'primary', 'muted', 'info', 'success', 'danger', 'warning', 'custom1', 'custom2'..
|
|
67
67
|
* (these will be resolved via getHexCodeFromColorText)
|
|
68
68
|
*/
|
|
69
69
|
backColor: { type: String, required: !1 },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),o=require("./index-Bg8WW8Oo.js"),C=require("./_plugin-vue_export-helper-BHFhmbuH.js"),h={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},backImageSrc:{type:String,required:!1},backImageRepeat:{type:String,required:!1,validator:e=>e==null||o.BACK_IMAGE_STYLE_VALUES.includes(e)?!0:/^(repeat-x|repeat-y|repeat|no-repeat)(\s+\S+\/\S+)?$/.test(e)||/^(cover|contain)$/.test(e)||/[\/\s]/.test(e)},backImageWidth:{type:String,required:!1},backImageAlign:{type:String,required:!1,validator:e=>e==null||o.BACK_IMAGE_ALIGN_VALUES.includes(e)},backImageVerticalAlign:{type:String,required:!1,validator:e=>e==null||o.BACK_IMAGE_VERTICAL_ALIGN_VALUES.includes(e)},backColor:{type:String,required:!1},border:{type:Boolean,default:!1},height:{type:String,required:!1}},S=a.defineComponent({name:"HLayout",props:h,inheritAttrs:!1,emits:["mounted","responsive-change","click","mousedown","mouseup","mouseover","mouseout"],setup(e,{emit:n}){const l=a.ref(null),u=a.ref(null),r=e.id?e.id:o.getUUID(),m=`hlayout:${r}`,s=o.useDevice(),c=a.ref(e.visible),y=a.computed(()=>c.value?"":"hison-display-none"),d=a.ref(e.border??!1),f=a.computed(()=>d.value?"hison-border":""),I=a.computed(()=>{const t={};if(e.backImageSrc&&(t.backgroundImage=`url(${e.backImageSrc})`,t.backgroundRepeat=e.backImageRepeat||"no-repeat",t.backgroundSize=e.backImageWidth||"auto",t.backgroundPosition=`${e.backImageAlign||"center"} ${e.backImageVerticalAlign||"center"}`),e.backColor){const i=o.getHexCodeFromColorText(e.backColor)||e.backColor;t.backgroundColor=i}return e.height&&(t.height=e.height),t}),g=a.ref([]),b=()=>{g.value=o.extractResponsiveClasses(o.toClassString(e.class)||"",s.value),o.getIndexSpecificClassNameFromClassList(g.value,"col")===-1&&g.value.push("hison-col-12"),o.addComponentNameToClass(g.value,"color","primary")},k=()=>{o.hisonCloser.component.layoutList[r]&&o.hisonCloser.component.layoutList[r].isHisonvueComponent&&console.warn(`[Hisonvue] The layout ID is at risk of being duplicated. ${r}`),o.registerReloadable(m,()=>{v(),a.nextTick(k)}),l.value&&(b(),u.value={isHisonvueComponent:!0,getId:()=>r,getType:()=>"layout",isVisible:()=>c.value,setVisible:t=>{c.value=t},getBackImageSrc:()=>e.backImageSrc||"",setBackImageSrc:t=>{l.value&&(l.value.style.backgroundImage=`url(${t})`)},getBackImageRepeat:()=>e.backImageRepeat||"",setBackImageRepeat:t=>{l.value&&(l.value.style.backgroundRepeat=t)},getBackImageWidth:()=>e.backImageWidth||"",setBackImageWidth:t=>{l.value&&(l.value.style.backgroundSize=t)},getBackImageAlign:()=>e.backImageAlign||"",setBackImageAlign:t=>{if(l.value){const i=e.backImageVerticalAlign||"center";l.value.style.backgroundPosition=`${t} ${i}`}},getBackImageVerticalAlign:()=>e.backImageVerticalAlign||"",setBackImageVerticalAlign:t=>{if(l.value){const i=e.backImageAlign||"center";l.value.style.backgroundPosition=`${i} ${t}`}},getBackColor:()=>e.backColor||"",setBackColor:t=>{l.value&&(l.value.style.backgroundColor=o.getHexCodeFromColorText(t)||t)},isBorder:()=>d.value,setBorder:t=>{d.value=t},getHeight:()=>e.height||"",setHeight:t=>{l.value&&(l.value.style.height=t)},reload:()=>o.reloadHisonComponent(m)},o.hisonCloser.component.layoutList[r]=u.value,n("mounted",u.value))},v=()=>{o.unregisterReloadable(m),delete o.hisonCloser.component.layoutList[r]};return a.onMounted(k),a.onBeforeUnmount(v),a.watch(s,t=>{b(),n("responsive-change",t)}),a.watch(()=>e.visible,t=>{const i=!!t;i!==c.value&&(c.value=i)}),a.watch(()=>e.border,t=>{const i=!!t;i!==d.value&&(d.value=i)}),a.watch(()=>e.class,()=>{b()}),{layoutRef:l,layoutMethods:a.computed(()=>a.unref(u)),props:e,responsiveClassList:g,visibleClass:y,borderClass:f,computedBackStyle:I}}});function A(e,n,l,u,r,m){return a.openBlock(),a.createElementBlock("div",{ref:"layoutRef",class:a.normalizeClass(["hison-layout",...e.responsiveClassList,e.visibleClass,e.borderClass]),style:a.normalizeStyle([e.props.style,e.computedBackStyle]),onClick:n[0]||(n[0]=s=>e.$emit("click",s,e.layoutMethods)),onMousedown:n[1]||(n[1]=s=>e.$emit("mousedown",s,e.layoutMethods)),onMouseup:n[2]||(n[2]=s=>e.$emit("mouseup",s,e.layoutMethods)),onMouseover:n[3]||(n[3]=s=>e.$emit("mouseover",s,e.layoutMethods)),onMouseout:n[4]||(n[4]=s=>e.$emit("mouseout",s,e.layoutMethods))},[n[5]||(n[5]=a.createElementVNode("div",{class:"hison-layout-frame-adjust"},null,-1)),a.renderSlot(e.$slots,"default")],38)}const B=C._export_sfc(S,[["render",A]]);exports.default=B;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as ye, ref as o, computed as f, onMounted as ce, onBeforeUnmount as be, watch as r, Comment as ge, Text as pe, Fragment as U, nextTick as Y, createElementBlock as u, openBlock as i, normalizeClass as H, createBlock as J, resolveDynamicComponent as Q, withKeys as W, normalizeStyle as z, withModifiers as X, withCtx as he, renderList as Z, createElementVNode as D, createCommentVNode as x, toDisplayString as w, renderSlot as ke } from "vue";
|
|
2
|
-
import { B as _, f as c, g as Ie, u as Ce, e as Te, t as Be, b as ee, h as E, r as Le, c as Se, d as we } from "./index-
|
|
3
|
-
import { r as te, a as Ee } from "./setButtonCssEvent-
|
|
2
|
+
import { B as _, f as c, g as Ie, u as Ce, e as Te, t as Be, b as ee, h as E, r as Le, c as Se, d as we } from "./index-DFLqS2VX.mjs";
|
|
3
|
+
import { r as te, a as Ee } from "./setButtonCssEvent-GeMZtIKH.mjs";
|
|
4
4
|
import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
5
|
const Ae = {
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-Bg8WW8Oo.js"),N=require("./setButtonCssEvent-QUBf_KD8.js"),W=require("./_plugin-vue_export-helper-BHFhmbuH.js"),X={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},listItemStyle:{type:[String,Object,Array],required:!1},listItemInnerStyle:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},border:{type:Boolean,default:!1},listBorder:{type:Boolean,default:!1},backgroundType:{type:String,default:o.BackgroundType.empty,validator:n=>o.BACKGROUND_TYPE_VALUES.includes(n)},listBackgroundType:{type:String,default:o.BackgroundType.empty,validator:n=>o.BACKGROUND_TYPE_VALUES.includes(n)},listType:{type:String,default:"ul",validator:n=>n==="ul"||n==="ol"},bulletChar:{type:String,default:"•"},showMarker:{type:Boolean,default:!0},textList:{type:Array,default:()=>[]},addEvent:{type:Boolean,default:!1},tabIndex:{type:[Number,String],default:null,validator:n=>n===null||n===""||!isNaN(+n)&&isFinite(+n)}},Z=e.defineComponent({name:"HList",props:X,inheritAttrs:!1,emits:["mounted","responsive-change","click","mousedown","mouseup","mouseover","mouseout"],setup(n,{emit:l,slots:I}){const A=e.ref(null),i=e.ref([]),T=e.ref([]),a=n.id?n.id:o.getUUID(),d=`hlist:${a}`,r=o.useDevice(),v=e.ref(null),y=e.ref(n.visible),$=e.computed(()=>y.value?"":"hison-display-none"),m=e.ref(n.listType||"ul"),p=e.ref(n.bulletChar||"•"),k=e.ref(n.showMarker!==!1),g=e.ref(n.border??!1),h=e.ref(n.listBorder??!1),B=e.ref(n.backgroundType||o.BackgroundType.empty),b=e.ref(n.listBackgroundType||o.BackgroundType.empty),c=e.ref(!!n.addEvent),H=e.computed(()=>g.value?"hison-border":""),O=e.computed(()=>h.value?"hison-border":""),U=e.computed(()=>{switch(B.value){case o.BackgroundType.empty:return"hison-bg-empty";case o.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),K=e.computed(()=>{switch(b.value){case o.BackgroundType.empty:return"hison-bg-empty";case o.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),j=e.computed(()=>{var t;return((t=I.default)==null?void 0:t.call(I))??[]}),f=e.ref(n.tabIndex!==null&&n.tabIndex!==""?Number(n.tabIndex):null),R=(t,s=[])=>{if(!t||t.length===0)return s;for(const u of t)if(u.type!==e.Comment&&u.type!==e.Text)if(u.type===e.Fragment){const S=u.children;R(S,s)}else s.push(u);return s},L=e.computed(()=>R(j.value)),F=e.computed(()=>L.value.length>0),w=e.ref(Array.isArray(n.textList)?n.textList:[]),z=e.computed(()=>w.value??[]),P=e.computed(()=>m.value),E=e.ref([]),M=()=>{E.value=o.extractResponsiveClasses(o.toClassString(n.class)||"",r.value),o.addComponentNameToClass(E.value,"size",o.hisonCloser.componentStyle.size),o.addComponentNameToClass(E.value,"color","primary")},C=(t=!0)=>{e.nextTick(()=>{i.value.forEach(s=>{s&&(N.removeButtonCssEvent(s),t&&c.value&&N.addButtonCssEvent(s))})})},G=t=>{c.value&&l("click",t,v.value)},Y=(t,s)=>{c.value&&l(t,s,v.value)},D=()=>{o.hisonCloser.component.listList[a]&&o.hisonCloser.component.listList[a].isHisonvueComponent&&console.warn(`[Hisonvue] The list ID is at risk of being duplicated. ${a}`),o.registerReloadable(d,()=>{V(),e.nextTick(D)}),M(),C(!0),v.value={isHisonvueComponent:!0,getId:()=>a,getType:()=>"list",isVisible:()=>y.value,setVisible:t=>{y.value=t},getListType:()=>m.value,setListType:t=>{m.value=t},isShowMarker:()=>k.value,setShowMarker:t=>{k.value=t},getBulletChar:()=>p.value,setBulletChar:t=>{p.value=t},isBorder:()=>g.value,setBorder:t=>{g.value=t},isListBorder:()=>h.value,setListBorder:t=>{h.value=t},getBackgroundType:()=>B.value,setBackgroundType:t=>{B.value=t},getListBackgroundType:()=>b.value,setListBackgroundType:t=>{b.value=t},getTextList:()=>[...z.value],setTextList:t=>{w.value=Array.isArray(t)?t:[]},isAddEvent:()=>c.value,setAddEvent:t=>{c.value=!!t,C(!0)},getTabIndex:()=>f.value,setTabIndex:t=>{f.value=t!=null?Number(t):null},getListRowCount:()=>i.value.length,getListItem:t=>!Number.isInteger(t)||t<0||t>=i.value.length?null:i.value[t]??null,focus:(t=0)=>{var S;if(!c.value)return;const s=f.value;if(s==null||s===-1||!Number.isInteger(t)||t<0||t>=i.value.length)return;const u=i.value[t];(S=u==null?void 0:u.focus)==null||S.call(u)},reload:()=>o.reloadHisonComponent(d)},o.hisonCloser.component.listList[a]=v.value,l("mounted",v.value)},V=()=>{o.unregisterReloadable(d),i.value.forEach(t=>t&&N.removeButtonCssEvent(t)),delete o.hisonCloser.component.listList[a]};e.onMounted(D),e.onBeforeUnmount(V);const q=t=>{if(!t)return null;if(t instanceof Element)return t;const s=t.$el;return s instanceof Element?s:null},J=t=>{const s=q(t);s&&(i.value.includes(s)||i.value.push(s))},Q=t=>{const s=q(t);s&&(T.value.includes(s)||T.value.push(s))};return e.watch(r,t=>{M(),l("responsive-change",t)}),e.watch(()=>n.visible,t=>{const s=!!t;s!==y.value&&(y.value=s)}),e.watch(()=>n.border,t=>{const s=!!t;s!==g.value&&(g.value=s)}),e.watch(()=>n.listBorder,t=>{const s=!!t;s!==h.value&&(h.value=s)}),e.watch(()=>n.backgroundType,t=>{t&&t!==B.value&&(B.value=t)}),e.watch(()=>n.listBackgroundType,t=>{t&&t!==b.value&&(b.value=t)}),e.watch(()=>n.listType,t=>{const s=t==="ol"?"ol":"ul";s!==m.value&&(m.value=s)}),e.watch(()=>n.bulletChar,t=>{const s=t??"•";s!==p.value&&(p.value=s)}),e.watch(()=>n.showMarker,t=>{const s=t!==!1;s!==k.value&&(k.value=s)}),e.watch(()=>n.textList,t=>{w.value=Array.isArray(t)?t:[]}),e.watch(()=>n.addEvent,t=>{const s=!!t;s!==c.value&&(c.value=s,C(!0))}),e.watch(()=>n.tabIndex,t=>{const s=t===null||t===""?null:Number(t);s!==f.value&&(f.value=s)}),e.watch(()=>n.class,()=>{M()}),e.watch(L,()=>{C(!0)}),e.watch(w,()=>{C(!0)},{deep:!0}),{props:n,listRef:A,itemRefs:i,itemInnerRefs:T,renderTag:P,listType:m,bulletChar:p,showMarker:k,visibleClass:$,borderClass:H,listBorderClass:O,backgroundTypeClass:U,listBackgroundTypeClass:K,responsiveClassList:E,hasElementSlot:F,elementNodes:L,normalizedItems:z,tabIndex:f,setItemRef:J,setItemInnerRef:Q,onItemClick:G,emitItem:Y}}}),x=["tabindex"],_={key:0,class:"hison-list-marker"},ee={key:0},te={key:1},ne={class:"hison-list-content"},se=["tabindex"],le={key:0,class:"hison-list-marker"},oe={key:0},re={key:1},ae={class:"hison-list-content"},ie={key:1,class:"hison-list-item-text"};function ue(n,l,I,A,i,T){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hison-wrapper",...n.responsiveClassList,n.visibleClass])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.renderTag),{ref:"listRef",class:e.normalizeClass(["hison-list",n.borderClass,n.backgroundTypeClass]),style:e.normalizeStyle(n.props.style),onKeydown:[e.withKeys(e.withModifiers(n.onItemClick,["prevent"]),["enter"]),e.withKeys(e.withModifiers(n.onItemClick,["prevent"]),["space"])]},{default:e.withCtx(()=>[n.hasElementSlot?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.elementNodes,(a,d)=>(e.openBlock(),e.createElementBlock("li",{key:d,class:e.normalizeClass(["hison-list-item",n.listBorderClass,n.listBackgroundTypeClass]),style:e.normalizeStyle(n.props.listItemStyle),ref_for:!0,ref:n.setItemRef,tabindex:n.tabIndex??void 0,onClick:l[0]||(l[0]=(...r)=>n.onItemClick&&n.onItemClick(...r)),onMousedown:l[1]||(l[1]=r=>n.emitItem("mousedown",r)),onMouseup:l[2]||(l[2]=r=>n.emitItem("mouseup",r)),onMouseover:l[3]||(l[3]=r=>n.emitItem("mouseover",r)),onMouseout:l[4]||(l[4]=r=>n.emitItem("mouseout",r))},[e.createElementVNode("div",{class:"hison-list-item-inner",style:e.normalizeStyle(n.props.listItemInnerStyle),ref_for:!0,ref:n.setItemInnerRef},[n.showMarker?(e.openBlock(),e.createElementBlock("div",_,[n.listType==="ol"?(e.openBlock(),e.createElementBlock("span",ee,e.toDisplayString(d+1)+".",1)):(e.openBlock(),e.createElementBlock("span",te,e.toDisplayString(n.bulletChar),1))])):e.createCommentVNode("",!0),e.createElementVNode("div",ne,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a)))])],4)],46,x))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.normalizedItems,(a,d)=>(e.openBlock(),e.createElementBlock("li",{key:d,class:e.normalizeClass(["hison-list-item",n.listBorderClass,n.listBackgroundTypeClass]),ref_for:!0,ref:n.setItemRef,tabindex:n.tabIndex??void 0,onClick:l[5]||(l[5]=(...r)=>n.onItemClick&&n.onItemClick(...r)),onMousedown:l[6]||(l[6]=r=>n.emitItem("mousedown",r)),onMouseup:l[7]||(l[7]=r=>n.emitItem("mouseup",r)),onMouseover:l[8]||(l[8]=r=>n.emitItem("mouseover",r)),onMouseout:l[9]||(l[9]=r=>n.emitItem("mouseout",r))},[e.createElementVNode("div",{class:"hison-list-item-inner",style:e.normalizeStyle(n.props.listItemInnerStyle),ref_for:!0,ref:n.setItemInnerRef},[n.showMarker?(e.openBlock(),e.createElementBlock("div",le,[n.listType==="ol"?(e.openBlock(),e.createElementBlock("span",oe,e.toDisplayString(d+1)+".",1)):(e.openBlock(),e.createElementBlock("span",re,e.toDisplayString(n.bulletChar),1))])):e.createCommentVNode("",!0),e.createElementVNode("div",ae,[n.$slots.item?e.renderSlot(n.$slots,"item",{key:0,item:a,index:d}):(e.openBlock(),e.createElementBlock("span",ie,e.toDisplayString(String(a??"")),1))])],4)],42,se))),128))]),_:3},40,["class","style","onKeydown"]))],2)}const de=W._export_sfc(Z,[["render",ue]]);exports.default=de;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-Bv6aEJhv.js"),Ce=require("./scrollManager-CEEWQwoK.js"),Ne=require("./_plugin-vue_export-helper-BHFhmbuH.js"),He={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!1},border:{type:Boolean,default:!0},backgroundType:{type:String,default:n.BackgroundType.empty,validator:o=>n.BACKGROUND_TYPE_VALUES.includes(o)},zIndex:{type:Number,default:1300},position:{type:String,default:n.ScreenPosition.middleCenter,validator:o=>n.SCREEN_POSITION_VALUES.includes(o)},headerVisible:{type:Boolean,default:!0},footerVisible:{type:Boolean,default:!0},caption:{type:String,default:null},captionBorder:{type:Boolean,default:!1},captionBackgroundType:{type:String,default:n.BackgroundType.filled,validator:o=>n.BACKGROUND_TYPE_VALUES.includes(o)},captionPlacement:{type:String,default:"header-center"},closeButtonVisible:{type:Boolean,default:!0},closeButtonText:{type:String,default:"X"},closeButtonTitle:{type:String,default:"close"},closeButtonBorder:{type:Boolean,default:!0},closeButtonBackgroundType:{type:String,default:n.BackgroundType.empty,validator:o=>n.BACKGROUND_TYPE_VALUES.includes(o)},closeButtonPlacement:{type:String,default:"footer-right"},closeClickOverlay:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},overlayStyle:{type:[String,Object,Array],required:!1},scrollLock:{type:Boolean,default:!0},enterAnimationClass:{type:String,required:!1},leaveAnimationClass:{type:String,required:!1}},ze=e.defineComponent({name:"HModal",props:He,inheritAttrs:!1,emits:["mounted","responsive-change","open","close"],setup(o,{emit:m,slots:E}){const c=o.id||n.getUUID(),P=`hmodal:${c}`,I=n.useDevice(),d=e.ref(null),a=e.ref(o.visible),u=e.ref(o.headerVisible),C=e.ref(o.footerVisible),v=e.ref(o.closeButtonVisible),h=e.ref(o.caption??null),S=e.ref(o.captionBorder),w=e.ref(o.captionBackgroundType),T=e.ref(o.closeButtonBorder),V=e.ref(o.closeButtonBackgroundType),$=e.ref(o.closeClickOverlay),L=e.ref(o.showOverlay),k=e.ref(o.scrollLock),N=e.ref(o.border),H=e.ref(o.backgroundType||n.BackgroundType.empty),s=e.ref(o.closeButtonPlacement),r=e.ref(o.captionPlacement),y=e.ref(o.zIndex??1e3),z=e.ref(o.position),ve=e.computed(()=>{const t={zIndex:y.value};switch(t.left="",t.right="",t.top="",t.bottom="",t.transform="none",z.value){case n.ScreenPosition.topLeft:t.left="0",t.top="0";break;case n.ScreenPosition.topCenter:t.left="50%",t.top="0",t.transform="translateX(-50%)";break;case n.ScreenPosition.topRight:t.right="0",t.top="0";break;case n.ScreenPosition.middleLeft:t.left="0",t.top="50%",t.transform="translateY(-50%)";break;case n.ScreenPosition.middleCenter:t.left="50%",t.top="50%",t.transform="translate(-50%, -50%)";break;case n.ScreenPosition.middleRight:t.right="0",t.top="50%",t.transform="translateY(-50%)";break;case n.ScreenPosition.bottomLeft:t.left="0",t.bottom="0";break;case n.ScreenPosition.bottomCenter:t.left="50%",t.bottom="0",t.transform="translateX(-50%)";break;case n.ScreenPosition.bottomRight:t.right="0",t.bottom="0";break}return t}),he=e.computed(()=>{const l={zIndex:(y.value??1e3)-1},g=o.overlayStyle;return g?Array.isArray(g)?[{...l},...g]:typeof g=="string"?[l,g]:{...l,...g}:l}),pe=e.computed(()=>a.value?"":"hison-display-none"),fe=e.computed(()=>{switch(H.value){case"transparent":return"hison-bg-transparent";case"filled":return"hison-bg-filled";default:return"hison-bg-empty"}}),ke=e.computed(()=>N.value?"hison-border":""),O=e.ref([]),q=()=>{O.value=n.extractResponsiveClasses(n.toClassString(o.class)||"",I.value),n.addComponentNameToClass(O.value,"size",n.hisonCloser.componentStyle.size),n.addComponentNameToClass(O.value,"color","primary")},ye=e.computed(()=>[...n.extractPrefixedClasses(n.toClassString(o.class)||"","size"),...n.extractPrefixedClasses(n.toClassString(o.class)||"","color")]),Be=e.computed(()=>a.value&&L.value),be=e.computed(()=>!!E.header),ge=e.computed(()=>!!E.footer),i=t=>t.split("-")[1]||"left",j=e.computed(()=>!!(h.value&&h.value.trim().length)),U=e.computed(()=>j.value&&r.value.startsWith("header")),W=e.computed(()=>v.value&&s.value.startsWith("header")),Z=e.computed(()=>U.value&&i(r.value)==="left"),G=e.computed(()=>U.value&&i(r.value)==="center"),K=e.computed(()=>U.value&&i(r.value)==="right"),X=e.computed(()=>W.value&&i(s.value)==="left"),J=e.computed(()=>W.value&&i(s.value)==="center"),Q=e.computed(()=>W.value&&i(s.value)==="right"),_=e.computed(()=>Z.value||X.value),x=e.computed(()=>G.value||J.value),ee=e.computed(()=>K.value||Q.value),M=e.computed(()=>j.value&&r.value.startsWith("footer")),D=e.computed(()=>v.value&&s.value.startsWith("footer")),oe=e.computed(()=>M.value&&i(r.value)==="left"),te=e.computed(()=>M.value&&i(r.value)==="center"),le=e.computed(()=>M.value&&i(r.value)==="right"),ne=e.computed(()=>D.value&&i(s.value)==="left"),ae=e.computed(()=>D.value&&i(s.value)==="center"),se=e.computed(()=>D.value&&i(s.value)==="right"),re=e.computed(()=>oe.value||ne.value),ie=e.computed(()=>te.value||ae.value),ce=e.computed(()=>le.value||se.value),Se=e.computed(()=>u.value&&(be.value||_.value||x.value||ee.value)),we=e.computed(()=>C.value&&(ge.value||re.value||ie.value||ce.value)),R=()=>{k.value&&Ce.acquireScrollLock(c)},F=()=>{k.value&&Ce.releaseScrollLock(c)},B=e.ref(null),Te=t=>{$.value&&b()},Ve=t=>{b()},p=e.ref(o.enterAnimationClass||"hison-modal-enter"),f=e.ref(o.leaveAnimationClass||"hison-modal-leave"),Y=e.ref(null),ue=async()=>{const t=Y.value;!t||!p.value||(t.classList.remove(f.value),t.offsetWidth,t.classList.add(p.value))},$e=async()=>{const t=Y.value;!t||!f.value||(t.classList.remove(p.value),t.offsetWidth,t.classList.add(f.value),await new Promise(l=>setTimeout(l,200)))},A=async()=>{a.value||(a.value=!0,R(),await e.nextTick(),ue(),m("open",e.unref(B)))},b=async()=>{if(a.value)try{await $e()}finally{a.value=!1,F(),m("close",e.unref(B))}},Le=async()=>a.value?b():A(),de=()=>{n.hisonCloser.component.modalList[c]&&n.hisonCloser.component.modalList[c].isHisonvueComponent&&console.warn(`[Hisonvue] The modal ID is at risk of being duplicated. ${c}`),n.registerReloadable(P,()=>{me(),e.nextTick(de)}),q(),a.value&&(R(),e.nextTick(ue)),B.value={isHisonvueComponent:!0,getId:()=>c,getType:()=>"modal",isVisible:()=>a.value,open:A,close:b,toggle:Le,setVisible:t=>t?A():b(),getZIndex:()=>y.value,setZIndex:t=>{y.value=t},getPosition:()=>z.value,setPosition:t=>{z.value=t},isHeaderVisible:()=>u.value,setHeaderVisible:t=>{u.value=t},isFooterVisible:()=>C.value,setFooterVisible:t=>{C.value=t},getCaption:()=>h.value||"",setCaption:t=>{h.value=t},isCaptionBorder:()=>S.value,setCaptionBorder:t=>{S.value=t},getCaptionBackgroundType:()=>w.value,setCaptionBackgroundType:t=>{w.value=t},isCloseButtonVisible:()=>v.value,setCloseButtonVisible:t=>{v.value=t},isCloseButtonBorder:()=>T.value,setCloseButtonBorder:t=>{T.value=t},getCloseButtonBackgroundType:()=>V.value,setCloseButtonBackgroundType:t=>{V.value=t},getButtonPlacement:()=>s.value,setButtonPlacement:t=>{s.value=t},getCaptionPlacement:()=>r.value,setCaptionPlacement:t=>{r.value=t},isCloseClickOverlay:()=>$.value,setCloseClickOverlay:t=>{$.value=t},isOverlayShown:()=>L.value,setOverlayShown:t=>{L.value=t},isBorder:()=>N.value,setBorder:t=>{N.value=t},getBackgroundType:()=>H.value,setBackgroundType:t=>{H.value=t},isScrollLocked:()=>k.value,setScrollLock:t=>{k.value=t,a.value&&(t?R():F())},getAnimationClasses:()=>({enter:p.value,leave:f.value}),setAnimationClasses:t=>{"enter"in t&&(p.value=t.enter||""),"leave"in t&&(f.value=t.leave||"")},reload:()=>n.reloadHisonComponent(P)},n.hisonCloser.component.modalList[c]=B.value,m("mounted",B.value)},me=()=>{n.unregisterReloadable(P),delete n.hisonCloser.component.modalList[c],a.value&&F()};return e.onMounted(de),e.onBeforeUnmount(me),e.watch(I,t=>{q(),m("responsive-change",t)}),e.watch(()=>o.visible,t=>{const l=!!t;l&&!a.value?A():!l&&a.value&&b()}),e.watch(()=>o.headerVisible,t=>{const l=!!t;l!==u.value&&(u.value=l)}),e.watch(()=>o.footerVisible,t=>{const l=!!t;l!==C.value&&(C.value=l)}),e.watch(()=>o.closeButtonVisible,t=>{const l=!!t;l!==v.value&&(v.value=l)}),e.watch(()=>o.caption,t=>{const l=t??null;l!==h.value&&(h.value=l)}),e.watch(()=>o.captionBorder,t=>{const l=!!t;l!==S.value&&(S.value=l)}),e.watch(()=>o.captionBackgroundType,t=>{t&&t!==w.value&&(w.value=t)}),e.watch(()=>o.closeButtonBorder,t=>{const l=!!t;l!==T.value&&(T.value=l)}),e.watch(()=>o.closeButtonBackgroundType,t=>{t&&t!==V.value&&(V.value=t)}),e.watch(()=>o.closeButtonPlacement,t=>{t&&t!==s.value&&(s.value=t)}),e.watch(()=>o.captionPlacement,t=>{t&&t!==r.value&&(r.value=t)}),e.watch(()=>o.closeClickOverlay,t=>{const l=!!t;l!==$.value&&($.value=l)}),e.watch(()=>o.showOverlay,t=>{const l=!!t;l!==L.value&&(L.value=l)}),e.watch(()=>o.scrollLock,t=>{const l=!!t;l!==k.value&&(k.value=l,a.value&&(l?R():F()))}),e.watch(()=>o.border,t=>{const l=!!t;l!==N.value&&(N.value=l)}),e.watch(()=>o.backgroundType,t=>{t&&t!==H.value&&(H.value=t)}),e.watch(()=>o.zIndex,t=>{const l=Number(t??1300);l!==y.value&&(y.value=l)}),e.watch(()=>o.position,t=>{t&&t!==z.value&&(z.value=t)}),e.watch(()=>o.enterAnimationClass,t=>{const l=t||"hison-modal-enter";l!==p.value&&(p.value=l)}),e.watch(()=>o.leaveAnimationClass,t=>{const l=t||"hison-modal-leave";l!==f.value&&(f.value=l)}),e.watch(()=>o.class,()=>{q()}),{id:c,props:o,modalRef:Y,modalWrapperRef:d,caption:h,responsiveClassList:O,visibleClass:pe,borderClass:ke,backgroundTypeClass:fe,isOverlayVisible:Be,headerVisibleComputed:Se,footerVisibleComputed:we,headerHasLeft:_,headerHasCenter:x,headerHasRight:ee,showHeaderCaptionLeft:Z,showHeaderCaptionCenter:G,showHeaderCaptionRight:K,showHeaderCloseLeft:X,showHeaderCloseCenter:J,showHeaderCloseRight:Q,footerHasLeft:re,footerHasCenter:ie,footerHasRight:ce,showFooterCaptionLeft:oe,showFooterCaptionCenter:te,showFooterCaptionRight:le,showFooterCloseLeft:ne,showFooterCloseCenter:ae,showFooterCloseRight:se,childClassList:ye,overlayStyleWithZ:he,wrapperStyle:ve,onOverlayClick:Te,onClickCloseButton:Ve,modalMethods:e.computed(()=>e.unref(B)),closeButtonVisible:v,buttonPlacement:s,captionPlacement:r,closeButtonText:o.closeButtonText,closeButtonTitle:o.closeButtonTitle,closeButtonBorder:T,closeButtonBackgroundType:V,captionBorder:S,captionBackgroundType:w}}});function Pe(o,m,E,c,P,I){const d=e.resolveComponent("HLabel"),a=e.resolveComponent("HButton"),u=e.resolveComponent("HLayout");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hison-layer-host",o.visibleClass])},[o.isOverlayVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"hison-modal-overlay",style:e.normalizeStyle(o.overlayStyleWithZ),onClick:m[0]||(m[0]=(...C)=>o.onOverlayClick&&o.onOverlayClick(...C))},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref:"modalWrapperRef",class:e.normalizeClass(["hison-modal-wrapper",...o.responsiveClassList]),style:e.normalizeStyle(o.wrapperStyle)},[e.createElementVNode("div",{ref:"modalRef",class:e.normalizeClass(["hison-modal",o.borderClass,o.backgroundTypeClass]),style:e.normalizeStyle(o.props.style),role:"dialog"},[o.headerVisibleComputed?(e.openBlock(),e.createBlock(u,{key:0,id:`hison_modal_header_layout_${o.id}`,class:e.normalizeClass(["hison-modal-header",...o.childClassList])},{default:e.withCtx(()=>[o.$slots.header?e.renderSlot(o.$slots,"header",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.headerHasLeft?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.showHeaderCaptionLeft?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-left","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showHeaderCloseLeft?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"header-left"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-left","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.headerHasCenter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.showHeaderCaptionCenter?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-center","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showHeaderCloseCenter?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"header-center"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-center","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.headerHasRight?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[o.showHeaderCaptionRight?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-right","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showHeaderCloseRight?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"header-right"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-right","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))]),_:3},8,["id","class"])):e.createCommentVNode("",!0),e.createVNode(u,{id:`hison_modal_body_layout_${o.id}`,class:e.normalizeClass(["hison-modal-body",...o.childClassList])},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["id","class"]),o.footerVisibleComputed?(e.openBlock(),e.createBlock(u,{key:1,id:`hison_modal_footer_layout_${o.id}`,class:e.normalizeClass(["hison-modal-footer",...o.childClassList])},{default:e.withCtx(()=>[o.$slots.footer?e.renderSlot(o.$slots,"footer",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.footerHasLeft?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.showFooterCaptionLeft?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-left","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showFooterCloseLeft?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"footer-left"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-left","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.footerHasCenter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.showFooterCaptionCenter?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-center","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showFooterCloseCenter?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"footer-center"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-center","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.footerHasRight?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[o.showFooterCaptionRight?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-right","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showFooterCloseRight?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"footer-right"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-right","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))]),_:3},8,["id","class"])):e.createCommentVNode("",!0)],6)],6)],2)}const Oe=Ne._export_sfc(ze,[["render",Pe]]);exports.default=Oe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-Bg8WW8Oo.js"),Ce=require("./scrollManager-CEEWQwoK.js"),Ne=require("./_plugin-vue_export-helper-BHFhmbuH.js"),He={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!1},border:{type:Boolean,default:!0},backgroundType:{type:String,default:n.BackgroundType.empty,validator:o=>n.BACKGROUND_TYPE_VALUES.includes(o)},zIndex:{type:Number,default:1300},position:{type:String,default:n.ScreenPosition.middleCenter,validator:o=>n.SCREEN_POSITION_VALUES.includes(o)},headerVisible:{type:Boolean,default:!0},footerVisible:{type:Boolean,default:!0},caption:{type:String,default:null},captionBorder:{type:Boolean,default:!1},captionBackgroundType:{type:String,default:n.BackgroundType.filled,validator:o=>n.BACKGROUND_TYPE_VALUES.includes(o)},captionPlacement:{type:String,default:"header-center"},closeButtonVisible:{type:Boolean,default:!0},closeButtonText:{type:String,default:"X"},closeButtonTitle:{type:String,default:"close"},closeButtonBorder:{type:Boolean,default:!0},closeButtonBackgroundType:{type:String,default:n.BackgroundType.empty,validator:o=>n.BACKGROUND_TYPE_VALUES.includes(o)},closeButtonPlacement:{type:String,default:"footer-right"},closeClickOverlay:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},overlayStyle:{type:[String,Object,Array],required:!1},scrollLock:{type:Boolean,default:!0},enterAnimationClass:{type:String,required:!1},leaveAnimationClass:{type:String,required:!1}},ze=e.defineComponent({name:"HModal",props:He,inheritAttrs:!1,emits:["mounted","responsive-change","open","close"],setup(o,{emit:m,slots:E}){const c=o.id||n.getUUID(),P=`hmodal:${c}`,I=n.useDevice(),d=e.ref(null),a=e.ref(o.visible),u=e.ref(o.headerVisible),C=e.ref(o.footerVisible),v=e.ref(o.closeButtonVisible),h=e.ref(o.caption??null),S=e.ref(o.captionBorder),w=e.ref(o.captionBackgroundType),T=e.ref(o.closeButtonBorder),V=e.ref(o.closeButtonBackgroundType),$=e.ref(o.closeClickOverlay),L=e.ref(o.showOverlay),k=e.ref(o.scrollLock),N=e.ref(o.border),H=e.ref(o.backgroundType||n.BackgroundType.empty),s=e.ref(o.closeButtonPlacement),r=e.ref(o.captionPlacement),y=e.ref(o.zIndex??1e3),z=e.ref(o.position),ve=e.computed(()=>{const t={zIndex:y.value};switch(t.left="",t.right="",t.top="",t.bottom="",t.transform="none",z.value){case n.ScreenPosition.topLeft:t.left="0",t.top="0";break;case n.ScreenPosition.topCenter:t.left="50%",t.top="0",t.transform="translateX(-50%)";break;case n.ScreenPosition.topRight:t.right="0",t.top="0";break;case n.ScreenPosition.middleLeft:t.left="0",t.top="50%",t.transform="translateY(-50%)";break;case n.ScreenPosition.middleCenter:t.left="50%",t.top="50%",t.transform="translate(-50%, -50%)";break;case n.ScreenPosition.middleRight:t.right="0",t.top="50%",t.transform="translateY(-50%)";break;case n.ScreenPosition.bottomLeft:t.left="0",t.bottom="0";break;case n.ScreenPosition.bottomCenter:t.left="50%",t.bottom="0",t.transform="translateX(-50%)";break;case n.ScreenPosition.bottomRight:t.right="0",t.bottom="0";break}return t}),he=e.computed(()=>{const l={zIndex:(y.value??1e3)-1},g=o.overlayStyle;return g?Array.isArray(g)?[{...l},...g]:typeof g=="string"?[l,g]:{...l,...g}:l}),pe=e.computed(()=>a.value?"":"hison-display-none"),fe=e.computed(()=>{switch(H.value){case"transparent":return"hison-bg-transparent";case"filled":return"hison-bg-filled";default:return"hison-bg-empty"}}),ke=e.computed(()=>N.value?"hison-border":""),O=e.ref([]),q=()=>{O.value=n.extractResponsiveClasses(n.toClassString(o.class)||"",I.value),n.addComponentNameToClass(O.value,"size",n.hisonCloser.componentStyle.size),n.addComponentNameToClass(O.value,"color","primary")},ye=e.computed(()=>[...n.extractPrefixedClasses(n.toClassString(o.class)||"","size"),...n.extractPrefixedClasses(n.toClassString(o.class)||"","color")]),Be=e.computed(()=>a.value&&L.value),be=e.computed(()=>!!E.header),ge=e.computed(()=>!!E.footer),i=t=>t.split("-")[1]||"left",j=e.computed(()=>!!(h.value&&h.value.trim().length)),U=e.computed(()=>j.value&&r.value.startsWith("header")),W=e.computed(()=>v.value&&s.value.startsWith("header")),Z=e.computed(()=>U.value&&i(r.value)==="left"),G=e.computed(()=>U.value&&i(r.value)==="center"),K=e.computed(()=>U.value&&i(r.value)==="right"),X=e.computed(()=>W.value&&i(s.value)==="left"),J=e.computed(()=>W.value&&i(s.value)==="center"),Q=e.computed(()=>W.value&&i(s.value)==="right"),_=e.computed(()=>Z.value||X.value),x=e.computed(()=>G.value||J.value),ee=e.computed(()=>K.value||Q.value),M=e.computed(()=>j.value&&r.value.startsWith("footer")),D=e.computed(()=>v.value&&s.value.startsWith("footer")),oe=e.computed(()=>M.value&&i(r.value)==="left"),te=e.computed(()=>M.value&&i(r.value)==="center"),le=e.computed(()=>M.value&&i(r.value)==="right"),ne=e.computed(()=>D.value&&i(s.value)==="left"),ae=e.computed(()=>D.value&&i(s.value)==="center"),se=e.computed(()=>D.value&&i(s.value)==="right"),re=e.computed(()=>oe.value||ne.value),ie=e.computed(()=>te.value||ae.value),ce=e.computed(()=>le.value||se.value),Se=e.computed(()=>u.value&&(be.value||_.value||x.value||ee.value)),we=e.computed(()=>C.value&&(ge.value||re.value||ie.value||ce.value)),R=()=>{k.value&&Ce.acquireScrollLock(c)},F=()=>{k.value&&Ce.releaseScrollLock(c)},B=e.ref(null),Te=t=>{$.value&&b()},Ve=t=>{b()},p=e.ref(o.enterAnimationClass||"hison-modal-enter"),f=e.ref(o.leaveAnimationClass||"hison-modal-leave"),Y=e.ref(null),ue=async()=>{const t=Y.value;!t||!p.value||(t.classList.remove(f.value),t.offsetWidth,t.classList.add(p.value))},$e=async()=>{const t=Y.value;!t||!f.value||(t.classList.remove(p.value),t.offsetWidth,t.classList.add(f.value),await new Promise(l=>setTimeout(l,200)))},A=async()=>{a.value||(a.value=!0,R(),await e.nextTick(),ue(),m("open",e.unref(B)))},b=async()=>{if(a.value)try{await $e()}finally{a.value=!1,F(),m("close",e.unref(B))}},Le=async()=>a.value?b():A(),de=()=>{n.hisonCloser.component.modalList[c]&&n.hisonCloser.component.modalList[c].isHisonvueComponent&&console.warn(`[Hisonvue] The modal ID is at risk of being duplicated. ${c}`),n.registerReloadable(P,()=>{me(),e.nextTick(de)}),q(),a.value&&(R(),e.nextTick(ue)),B.value={isHisonvueComponent:!0,getId:()=>c,getType:()=>"modal",isVisible:()=>a.value,open:A,close:b,toggle:Le,setVisible:t=>t?A():b(),getZIndex:()=>y.value,setZIndex:t=>{y.value=t},getPosition:()=>z.value,setPosition:t=>{z.value=t},isHeaderVisible:()=>u.value,setHeaderVisible:t=>{u.value=t},isFooterVisible:()=>C.value,setFooterVisible:t=>{C.value=t},getCaption:()=>h.value||"",setCaption:t=>{h.value=t},isCaptionBorder:()=>S.value,setCaptionBorder:t=>{S.value=t},getCaptionBackgroundType:()=>w.value,setCaptionBackgroundType:t=>{w.value=t},isCloseButtonVisible:()=>v.value,setCloseButtonVisible:t=>{v.value=t},isCloseButtonBorder:()=>T.value,setCloseButtonBorder:t=>{T.value=t},getCloseButtonBackgroundType:()=>V.value,setCloseButtonBackgroundType:t=>{V.value=t},getButtonPlacement:()=>s.value,setButtonPlacement:t=>{s.value=t},getCaptionPlacement:()=>r.value,setCaptionPlacement:t=>{r.value=t},isCloseClickOverlay:()=>$.value,setCloseClickOverlay:t=>{$.value=t},isOverlayShown:()=>L.value,setOverlayShown:t=>{L.value=t},isBorder:()=>N.value,setBorder:t=>{N.value=t},getBackgroundType:()=>H.value,setBackgroundType:t=>{H.value=t},isScrollLocked:()=>k.value,setScrollLock:t=>{k.value=t,a.value&&(t?R():F())},getAnimationClasses:()=>({enter:p.value,leave:f.value}),setAnimationClasses:t=>{"enter"in t&&(p.value=t.enter||""),"leave"in t&&(f.value=t.leave||"")},reload:()=>n.reloadHisonComponent(P)},n.hisonCloser.component.modalList[c]=B.value,m("mounted",B.value)},me=()=>{n.unregisterReloadable(P),delete n.hisonCloser.component.modalList[c],a.value&&F()};return e.onMounted(de),e.onBeforeUnmount(me),e.watch(I,t=>{q(),m("responsive-change",t)}),e.watch(()=>o.visible,t=>{const l=!!t;l&&!a.value?A():!l&&a.value&&b()}),e.watch(()=>o.headerVisible,t=>{const l=!!t;l!==u.value&&(u.value=l)}),e.watch(()=>o.footerVisible,t=>{const l=!!t;l!==C.value&&(C.value=l)}),e.watch(()=>o.closeButtonVisible,t=>{const l=!!t;l!==v.value&&(v.value=l)}),e.watch(()=>o.caption,t=>{const l=t??null;l!==h.value&&(h.value=l)}),e.watch(()=>o.captionBorder,t=>{const l=!!t;l!==S.value&&(S.value=l)}),e.watch(()=>o.captionBackgroundType,t=>{t&&t!==w.value&&(w.value=t)}),e.watch(()=>o.closeButtonBorder,t=>{const l=!!t;l!==T.value&&(T.value=l)}),e.watch(()=>o.closeButtonBackgroundType,t=>{t&&t!==V.value&&(V.value=t)}),e.watch(()=>o.closeButtonPlacement,t=>{t&&t!==s.value&&(s.value=t)}),e.watch(()=>o.captionPlacement,t=>{t&&t!==r.value&&(r.value=t)}),e.watch(()=>o.closeClickOverlay,t=>{const l=!!t;l!==$.value&&($.value=l)}),e.watch(()=>o.showOverlay,t=>{const l=!!t;l!==L.value&&(L.value=l)}),e.watch(()=>o.scrollLock,t=>{const l=!!t;l!==k.value&&(k.value=l,a.value&&(l?R():F()))}),e.watch(()=>o.border,t=>{const l=!!t;l!==N.value&&(N.value=l)}),e.watch(()=>o.backgroundType,t=>{t&&t!==H.value&&(H.value=t)}),e.watch(()=>o.zIndex,t=>{const l=Number(t??1300);l!==y.value&&(y.value=l)}),e.watch(()=>o.position,t=>{t&&t!==z.value&&(z.value=t)}),e.watch(()=>o.enterAnimationClass,t=>{const l=t||"hison-modal-enter";l!==p.value&&(p.value=l)}),e.watch(()=>o.leaveAnimationClass,t=>{const l=t||"hison-modal-leave";l!==f.value&&(f.value=l)}),e.watch(()=>o.class,()=>{q()}),{id:c,props:o,modalRef:Y,modalWrapperRef:d,caption:h,responsiveClassList:O,visibleClass:pe,borderClass:ke,backgroundTypeClass:fe,isOverlayVisible:Be,headerVisibleComputed:Se,footerVisibleComputed:we,headerHasLeft:_,headerHasCenter:x,headerHasRight:ee,showHeaderCaptionLeft:Z,showHeaderCaptionCenter:G,showHeaderCaptionRight:K,showHeaderCloseLeft:X,showHeaderCloseCenter:J,showHeaderCloseRight:Q,footerHasLeft:re,footerHasCenter:ie,footerHasRight:ce,showFooterCaptionLeft:oe,showFooterCaptionCenter:te,showFooterCaptionRight:le,showFooterCloseLeft:ne,showFooterCloseCenter:ae,showFooterCloseRight:se,childClassList:ye,overlayStyleWithZ:he,wrapperStyle:ve,onOverlayClick:Te,onClickCloseButton:Ve,modalMethods:e.computed(()=>e.unref(B)),closeButtonVisible:v,buttonPlacement:s,captionPlacement:r,closeButtonText:o.closeButtonText,closeButtonTitle:o.closeButtonTitle,closeButtonBorder:T,closeButtonBackgroundType:V,captionBorder:S,captionBackgroundType:w}}});function Pe(o,m,E,c,P,I){const d=e.resolveComponent("HLabel"),a=e.resolveComponent("HButton"),u=e.resolveComponent("HLayout");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hison-layer-host",o.visibleClass])},[o.isOverlayVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"hison-modal-overlay",style:e.normalizeStyle(o.overlayStyleWithZ),onClick:m[0]||(m[0]=(...C)=>o.onOverlayClick&&o.onOverlayClick(...C))},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref:"modalWrapperRef",class:e.normalizeClass(["hison-modal-wrapper",...o.responsiveClassList]),style:e.normalizeStyle(o.wrapperStyle)},[e.createElementVNode("div",{ref:"modalRef",class:e.normalizeClass(["hison-modal",o.borderClass,o.backgroundTypeClass]),style:e.normalizeStyle(o.props.style),role:"dialog"},[o.headerVisibleComputed?(e.openBlock(),e.createBlock(u,{key:0,id:`hison_modal_header_layout_${o.id}`,class:e.normalizeClass(["hison-modal-header",...o.childClassList])},{default:e.withCtx(()=>[o.$slots.header?e.renderSlot(o.$slots,"header",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.headerHasLeft?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.showHeaderCaptionLeft?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-left","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showHeaderCloseLeft?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"header-left"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-left","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.headerHasCenter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.showHeaderCaptionCenter?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-center","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showHeaderCloseCenter?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"header-center"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-center","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.headerHasRight?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[o.showHeaderCaptionRight?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-right","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showHeaderCloseRight?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"header-right"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-right","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))]),_:3},8,["id","class"])):e.createCommentVNode("",!0),e.createVNode(u,{id:`hison_modal_body_layout_${o.id}`,class:e.normalizeClass(["hison-modal-body",...o.childClassList])},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["id","class"]),o.footerVisibleComputed?(e.openBlock(),e.createBlock(u,{key:1,id:`hison_modal_footer_layout_${o.id}`,class:e.normalizeClass(["hison-modal-footer",...o.childClassList])},{default:e.withCtx(()=>[o.$slots.footer?e.renderSlot(o.$slots,"footer",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.footerHasLeft?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.showFooterCaptionLeft?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-left","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showFooterCloseLeft?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"footer-left"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-left","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.footerHasCenter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.showFooterCaptionCenter?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-center","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showFooterCloseCenter?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"footer-center"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-center","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.footerHasRight?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[o.showFooterCaptionRight?(e.openBlock(),e.createBlock(d,{key:0,id:`hison_modal_caption_label_${o.id}`,class:e.normalizeClass(["hison-modal-caption","hison-pos-right","hison-pos-vertical-center",...o.childClassList]),text:o.caption??"",border:o.captionBorder,"background-type":o.captionBackgroundType},null,8,["id","class","text","border","background-type"])):e.createCommentVNode("",!0),o.showFooterCloseRight?e.renderSlot(o.$slots,"close-button",{key:1,onClick:o.onClickCloseButton,text:o.closeButtonText,title:o.closeButtonTitle||"Close",placement:"footer-right"},()=>[e.createVNode(a,{id:`hison_modal_close_button_${o.id}`,class:e.normalizeClass(["hison-modal-close-btn","hison-pos-right","hison-pos-vertical-center","hison-size-s","hison-color-danger"]),text:o.closeButtonText,title:o.closeButtonTitle||"Close",border:o.closeButtonBorder,"background-type":o.closeButtonBackgroundType,onClick:o.onClickCloseButton},e.createSlots({default:e.withCtx(()=>[o.$slots["close-label"]?e.renderSlot(o.$slots,"close-label",{key:0}):e.createCommentVNode("",!0)]),_:2},[o.$slots["close-icon"]?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"close-icon")]),key:"0"}:void 0]),1032,["id","text","title","border","background-type","onClick"])]):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))]),_:3},8,["id","class"])):e.createCommentVNode("",!0)],6)],6)],2)}const Oe=Ne._export_sfc(ze,[["render",Pe]]);exports.default=Oe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Qe, ref as a, computed as l, onMounted as _e, onBeforeUnmount as xe, watch as n, unref as ae, nextTick as ne, resolveComponent as ie, createElementBlock as C, openBlock as u, normalizeClass as c, createCommentVNode as s, createElementVNode as ze, normalizeStyle as re, createBlock as m, createVNode as H, withCtx as d, renderSlot as r, Fragment as B, createSlots as A } from "vue";
|
|
2
|
-
import { B as ue, f as J, S as eo, i as b, g as oo, u as to, j as Ae, t as ce, e as lo, b as Fe, h as D, r as so, c as ao, d as no } from "./index-
|
|
2
|
+
import { B as ue, f as J, S as eo, i as b, g as oo, u as to, j as Ae, t as ce, e as lo, b as Fe, h as D, r as so, c as ao, d as no } from "./index-DFLqS2VX.mjs";
|
|
3
3
|
import { a as io, r as ro } from "./scrollManager-BGnq4wyt.mjs";
|
|
4
4
|
import { _ as uo } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
5
|
const co = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as d, computed as E, onMounted as Q, onBeforeUnmount as p, watch as a, nextTick as ee, triggerRef as te, createElementBlock as ne, openBlock as oe, normalizeStyle as ie, normalizeClass as le, createElementVNode as fe, mergeProps as ce } from "vue";
|
|
2
|
-
import { _ as re, $ as ae, y as b, g as ue, u as Be, e as ke, t as de, o as w, a as Ce, l as V, F as Ae, h as u, v as s, d as R, r as me, c as _e } from "./index-
|
|
2
|
+
import { _ as re, $ as ae, y as b, g as ue, u as Be, e as ke, t as de, o as w, a as Ce, l as V, F as Ae, h as u, v as s, d as R, r as me, c as _e } from "./index-DFLqS2VX.mjs";
|
|
3
3
|
import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
const ye = {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),c=require("./index-Bv6aEJhv.js"),P=require("./_plugin-vue_export-helper-BHFhmbuH.js"),j={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},editMode:{type:String,default:c.EditMode.editable,validator:e=>["editable","disable","readonly"].includes(e)},noteModeByDevice:{type:String,required:!1,validator:e=>e==null||c.NOTE_MODE_BY_DEVICE_VALUES.includes(e)},toolPosition:{type:String,required:!1,validator:e=>e==null||c.TOOL_POSITION_VALUES.includes(e)},toolDefaultLine:{type:Number,required:!1},toolToggle:{type:Boolean,default:!1},textareaWidth:{type:String,required:!1},textareaHeight:{type:String,required:!1},textareaMaxWidth:{type:String,required:!1},textareaMaxHeight:{type:String,required:!1},textareaHeightIsModify:{type:Boolean,default:!1},placeholderIsVisible:{type:Boolean,default:!1},placeholderAddTop:{type:Number,required:!1},placeholderAddLeft:{type:Number,required:!1},placeholderWidth:{type:String,required:!1},placeholderColor:{type:String,required:!1},placeholderBackgroundColor:{type:String,required:!1},placeholderTitle:{type:String,required:!1},placeholderTextContent:{type:String,required:!1},attFilePreventTypes:{type:String,required:!1},attFileAcceptTypes:{type:String,required:!1},attFileMaxSize:{type:Number,required:!1,default:20*1024*1024},attImagePreventTypes:{type:String,required:!1},attImageAcceptTypes:{type:String,required:!1},attImageMaxSize:{type:Number,required:!1,default:20*1024*1024},defaultFontSize:{type:Number,required:!1},defaultLineHeight:{type:Number,required:!1},defaultFontFamily:{type:String,required:!1},defaultToolFontFamily:{type:String,required:!1},addFontFamily:{type:String,required:!1},removeFontFamily:{type:String,required:!1},language:{type:String,required:!1},recodeLimit:{type:String,required:!1},sizeLevelDesktop:{type:Number,required:!1},sizeLevelMobile:{type:Number,required:!1},color:{type:String,required:!1},invertColor:{type:Boolean,default:!1},usingParagraphStyle:{type:Boolean,default:!0},usingBold:{type:Boolean,default:!0},usingUnderline:{type:Boolean,default:!0},usingItalic:{type:Boolean,default:!0},usingUl:{type:Boolean,default:!0},usingOl:{type:Boolean,default:!0},usingTextAlign:{type:Boolean,default:!0},usingAttLink:{type:Boolean,default:!0},usingAttFile:{type:Boolean,default:!0},usingAttImage:{type:Boolean,default:!0},usingAttVideo:{type:Boolean,default:!0},usingFontSize:{type:Boolean,default:!0},usingLetterSpacing:{type:Boolean,default:!0},usingLineHeight:{type:Boolean,default:!0},usingFontFamily:{type:Boolean,default:!0},usingColorText:{type:Boolean,default:!0},usingColorBack:{type:Boolean,default:!0},usingFormatClear:{type:Boolean,default:!0},usingUndo:{type:Boolean,default:!0},usingRedo:{type:Boolean,default:!0},usingHelp:{type:Boolean,default:!0},usingParagraphAllStyle:{type:Boolean,default:!0},usingCharacterStyle:{type:Boolean,default:!0},usingCharacterSize:{type:Boolean,default:!0},usingAttachFile:{type:Boolean,default:!0},usingDo:{type:Boolean,default:!0},required:{type:Boolean,default:!1},modelValue:{type:Object,required:!1},tabIndex:{type:[Number,String],default:null,validator:e=>e===null||e===""||!isNaN(+e)&&isFinite(+e)}},K={textareaBeforeClick:Function,textareaAfterClick:Function,textareaBeforeFocus:Function,textareaAfterFocus:Function,textareaBeforeBlur:Function,textareaAfterBlur:Function,paragraphStyleSelectBeforeClick:Function,paragraphStyleSelectAfterClick:Function,toolToggleBeforeClick:Function,toolToggleAfterClick:Function,styleNomalBeforeClick:Function,styleNomalAfterClick:Function,styleHeader1BeforeClick:Function,styleHeader1AfterClick:Function,styleHeader2BeforeClick:Function,styleHeader2AfterClick:Function,styleHeader3BeforeClick:Function,styleHeader3AfterClick:Function,styleHeader4BeforeClick:Function,styleHeader4AfterClick:Function,styleHeader5BeforeClick:Function,styleHeader5AfterClick:Function,styleHeader6BeforeClick:Function,styleHeader6AfterClick:Function,boldBeforeClick:Function,boldAfterClick:Function,underlineBeforeClick:Function,underlineAfterClick:Function,italicBeforeClick:Function,italicAfterClick:Function,ulBeforeClick:Function,ulAfterClick:Function,olBeforeClick:Function,olAfterClick:Function,textAlignSelectBeforeClick:Function,textAlignSelectAfterClick:Function,textAlignLeftBeforeClick:Function,textAlignLeftAfterClick:Function,textAlignCenterBeforeClick:Function,textAlignCenterAfterClick:Function,textAlignRightBeforeClick:Function,textAlignRightAfterClick:Function,attLinkBeforeClick:Function,attLinkAfterClick:Function,attFileBeforeClick:Function,attFileAfterClick:Function,attImageBeforeClick:Function,attImageAfterClick:Function,attVideoBeforeClick:Function,attVideoAfterClick:Function,fontSizeBoxBeforeClick:Function,fontSizeBoxAfterClick:Function,fontSizeBeforeClick:Function,fontSizeAfterClick:Function,fontSizeBeforeInput:Function,fontSizeAfterInput:Function,fontSizeBeforeBlur:Function,fontSizeAfterBlur:Function,letterSpacingBoxBeforeClick:Function,letterSpacingBoxAfterClick:Function,letterSpacingBeforeClick:Function,letterSpacingAfterClick:Function,letterSpacingBeforeInput:Function,letterSpacingAfterInput:Function,letterSpacingBeforeBlur:Function,letterSpacingAfterBlur:Function,lineHeightBoxBeforeClick:Function,lineHeightBoxAfterClick:Function,lineHeightBeforeClick:Function,lineHeightAfterClick:Function,lineHeightBeforeInput:Function,lineHeightAfterInput:Function,lineHeightBeforeBlur:Function,lineHeightAfterBlur:Function,fontFamilySelectBeforeClick:Function,fontFamilySelectAfterClick:Function,colorTextSelectBeforeClick:Function,colorTextSelectAfterClick:Function,colorTextSelectBoxBeforeClick:Function,colorTextSelectBoxAfterClick:Function,colorText0BeforeClick:Function,colorText0AfterClick:Function,colorText1BeforeClick:Function,colorText1AfterClick:Function,colorText2BeforeClick:Function,colorText2AfterClick:Function,colorText3BeforeClick:Function,colorText3AfterClick:Function,colorText4BeforeClick:Function,colorText4AfterClick:Function,colorText5BeforeClick:Function,colorText5AfterClick:Function,colorText6BeforeClick:Function,colorText6AfterClick:Function,colorText7BeforeClick:Function,colorText7AfterClick:Function,colorTextRBeforeClick:Function,colorTextRAfterClick:Function,colorTextRBeforeInput:Function,colorTextRAfterInput:Function,colorTextRBeforeBlur:Function,colorTextRAfterBlur:Function,colorTextGBeforeClick:Function,colorTextGAfterClick:Function,colorTextGBeforeInput:Function,colorTextGAfterInput:Function,colorTextGBeforeBlur:Function,colorTextGAfterBlur:Function,colorTextBBeforeClick:Function,colorTextBAfterClick:Function,colorTextBBeforeInput:Function,colorTextBAfterInput:Function,colorTextBBeforeBlur:Function,colorTextBAfterBlur:Function,colorTextOpacityBeforeClick:Function,colorTextOpacityAfterClick:Function,colorTextOpacityBeforeInput:Function,colorTextOpacityAfterInput:Function,colorTextOpacityBeforeBlur:Function,colorTextOpacityAfterBlur:Function,colorBackSelectBeforeClick:Function,colorBackSelectAfterClick:Function,colorBackSelectBoxBeforeClick:Function,colorBackSelectBoxAfterClick:Function,colorBack0BeforeClick:Function,colorBack0AfterClick:Function,colorBack1BeforeClick:Function,colorBack1AfterClick:Function,colorBack2BeforeClick:Function,colorBack2AfterClick:Function,colorBack3BeforeClick:Function,colorBack3AfterClick:Function,colorBack4BeforeClick:Function,colorBack4AfterClick:Function,colorBack5BeforeClick:Function,colorBack5AfterClick:Function,colorBack6BeforeClick:Function,colorBack6AfterClick:Function,colorBack7BeforeClick:Function,colorBack7AfterClick:Function,colorBackRBeforeClick:Function,colorBackRAfterClick:Function,colorBackRBeforeInput:Function,colorBackRAfterInput:Function,colorBackRBeforeBlur:Function,colorBackRAfterBlur:Function,colorBackGBeforeClick:Function,colorBackGAfterClick:Function,colorBackGBeforeInput:Function,colorBackGAfterInput:Function,colorBackGBeforeBlur:Function,colorBackGAfterBlur:Function,colorBackBBeforeClick:Function,colorBackBAfterClick:Function,colorBackBBeforeInput:Function,colorBackBAfterInput:Function,colorBackBBeforeBlur:Function,colorBackBAfterBlur:Function,colorBackOpacityBeforeClick:Function,colorBackOpacityAfterClick:Function,colorBackOpacityBeforeInput:Function,colorBackOpacityAfterInput:Function,colorBackOpacityBeforeBlur:Function,colorBackOpacityAfterBlur:Function,formatClearBeforeClick:Function,formatClearAfterClick:Function,undoBeforeClick:Function,undoAfterClick:Function,redoBeforeClick:Function,redoAfterClick:Function,helpBeforeClick:Function,helpAfterClick:Function,modalBackBeforeClick:Function,modalBackAfterClick:Function,attLinkModalBeforeClick:Function,attLinkModalAfterClick:Function,attLinkTextBeforeInput:Function,attLinkTextAfterInput:Function,attLinkTextBeforeBlur:Function,attLinkTextAfterBlur:Function,attLinkHrefBeforeInput:Function,attLinkHrefAfterInput:Function,attLinkHrefBeforeBlur:Function,attLinkHrefAfterBlur:Function,attLinkInsertBeforeClick:Function,attLinkInsertAfterClick:Function,attFileModalBeforeClick:Function,attFileModalAfterClick:Function,attFileUploadBeforeClick:Function,attFileUploadAfterClick:Function,attFileUploadDivBeforeDragover:Function,attFileUploadDivAfterDragover:Function,attFileUploadDivBeforeDrop:Function,attFileUploadDivAfterDrop:Function,attFileUploadDivBeforeClick:Function,attFileUploadDivAfterClick:Function,attFileUploadBeforeInput:Function,attFileUploadAfterInput:Function,attFileUploadBeforeBlur:Function,attFileUploadAfterBlur:Function,attFileInsertBeforeClick:Function,attFileInsertAfterClick:Function,attLinkTooltipEditBeforeClick:Function,attLinkTooltipEditAfterClick:Function,attLinkTooltipUnlinkBeforeClick:Function,attLinkTooltipUnlinkAfterClick:Function,attImageModalBeforeClick:Function,attImageModalAfterClick:Function,attImageUploadViewBeforeDragover:Function,attImageUploadViewAfterDragover:Function,attImageUploadViewBeforeDrop:Function,attImageUploadViewAfterDrop:Function,attImageUploadViewBeforeClick:Function,attImageUploadViewAfterClick:Function,attImageViewPreBeforeClick:Function,attImageViewPreAfterClick:Function,attImageViewNextBeforeClick:Function,attImageViewNextAfterClick:Function,attImageUploadBeforeInput:Function,attImageUploadAfterInput:Function,attImageUploadBeforeBlur:Function,attImageUploadAfterBlur:Function,attImageURLBeforeInput:Function,attImageURLAfterInput:Function,attImageURLBeforeBlur:Function,attImageURLAfterBlur:Function,attImageInsertBeforeClick:Function,attImageInsertAfterClick:Function,attVideoModalBeforeClick:Function,attVideoModalAfterClick:Function,attVideoEmbedIdBeforeInput:Function,attVideoEmbedIdAfterInput:Function,attVideoEmbedIdBeforeBlur:Function,attVideoEmbedIdAfterBlur:Function,attVideoWidthBeforeInput:Function,attVideoWidthAfterInput:Function,attVideoWidthBeforeBlur:Function,attVideoWidthAfterBlur:Function,attVideoHeightBeforeInput:Function,attVideoHeightAfterInput:Function,attVideoHeightBeforeBlur:Function,attVideoHeightAfterBlur:Function,attVideoInsertBeforeClick:Function,attVideoInsertAfterClick:Function,attImageAndVideoTooltipWidthBeforeInput:Function,attImageAndVideoTooltipWidthAfterInput:Function,attImageAndVideoTooltipWidthBeforeBlur:Function,attImageAndVideoTooltipWidthAfterBlur:Function,attImageAndVideoTooltipWidthBeforeKeyup:Function,attImageAndVideoTooltipWidthAfterKeyup:Function,attImageAndVideoTooltipFloatRadioNoneBeforeClick:Function,attImageAndVideoTooltipFloatRadioNoneAfterClick:Function,attImageAndVideoTooltipFloatRadioLeftBeforeClick:Function,attImageAndVideoTooltipFloatRadioLeftAfterClick:Function,attImageAndVideoTooltipFloatRadioRightBeforeClick:Function,attImageAndVideoTooltipFloatRadioRightAfterClick:Function,attImageAndVideoTooltipShapeRadioSquareBeforeClick:Function,attImageAndVideoTooltipShapeRadioSquareAfterClick:Function,attImageAndVideoTooltipShapeRadioRadiusBeforeClick:Function,attImageAndVideoTooltipShapeRadioRadiusAfterClick:Function,attImageAndVideoTooltipShapeRadioCircleBeforeClick:Function,attImageAndVideoTooltipShapeRadioCircleAfterClick:Function,helpModalBeforeClick:Function,helpModalAfterClick:Function,placeholderBeforeClick:Function,placeholderAfterClick:Function},J=l.defineComponent({name:"HNote",props:{...j,...K},emits:["update:modelValue","mounted","responsive-change"],setup(e,{emit:v}){const _=c.hisonCloser.note,F=l.ref(null),B=l.ref(null),A=e.id?e.id:c.getUUID(),g=`hnote:${A}`,a=l.ref(!1),u=l.ref(!0);let s=!1;const y=l.ref(e.required),D=l.computed(()=>{if(y.value)return"hison-note-required"}),h=c.useDevice(),I=l.ref(e.visible),O=l.computed(()=>I.value?"":"hison-display-none"),C=l.ref(e.editMode),M=l.computed(()=>{if(C.value!==c.EditMode.editable)return`hison-note-${C.value}`}),T=l.ref(!1),m=l.ref(e.tabIndex!==null&&e.tabIndex!==""?Number(e.tabIndex):null),S=(o,n)=>{if(!o)return;const t=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]","[tabindex]"].join(",");o.querySelectorAll(t).forEach(r=>{n?r.setAttribute("tabindex","-1"):r.getAttribute("tabindex")==="-1"&&r.removeAttribute("tabindex")})},E=()=>{var t;const o=B.value;if(!o)return;const n=(t=o._elements)==null?void 0:t.textarea;n&&(C.value!==c.EditMode.editable?(n.removeAttribute("contenteditable"),n.removeAttribute("role"),n.removeAttribute("aria-multiline"),n.removeAttribute("spellcheck"),n.removeAttribute("autocorrect"),S(o,!0)):(n.setAttribute("contenteditable","true"),n.setAttribute("role","textbox"),n.setAttribute("aria-multiline","true"),n.setAttribute("spellcheck","true"),n.setAttribute("autocorrect","true"),S(o,!1)))},V=l.ref([]),N=["modelValue","id","class","style","visible","editMode"],b=l.ref(0),w=()=>{l.triggerRef(b)},z=l.computed(()=>{b.value;const o=c.extractResponsiveClasses(c.toClassString(e.class)||"",h.value),n=c.getSpecificClassValueFromClassList(o,"color"),t=c.getSpecificClassValueFromClassList(o,"size");c.getIndexSpecificClassNameFromClassList(o,"col")===-1&&o.push("hison-col-12"),V.value=o;const f={};f["data-id"]=A;for(const[r,i]of Object.entries(e))N.includes(r)||i!=null&&(f[r.replace(/[A-Z]/g,k=>"-"+k.toLowerCase())]=String(i));if(f["size-level-desktop"]=f["size-level-desktop"]&&c.hison.utils.isNumber(f["size-level-desktop"])?String(Math.min(Math.max(Number(f["size-level-desktop"]),1),9)):R(3,t),f["size-level-mobile"]=f["size-level-mobile"]&&c.hison.utils.isNumber(f["size-level-mobile"])?String(Math.min(Math.max(Number(f["size-level-mobile"]),1),9)):R(5,t),n&&!f.color&&(f.color=n),f.color){const r=c.getHexCodeFromColorText(f.color)??f.color;f["main-color"]=r,delete f.color}return(e.invertColor||c.hisonCloser.componentStyle.invertColor)&&(f["invert-color"]="true"),f}),R=(o,n)=>{switch(n=n??c.hisonCloser.componentStyle.size,n){case c.Size.s:o-=2;break;case c.Size.m:break;case c.Size.l:o+=2;break;case c.Size.xl:o+=3;break}return String(Math.min(Math.max(o,1),9))},x=new MutationObserver(o=>{var f;const n=(f=o[0])==null?void 0:f.target;!n||a.value||!q(n)||W()}),q=o=>{var t;let n=o;for(;n&&!(n instanceof Element);)n=n.parentNode;return((t=n==null?void 0:n.closest)==null?void 0:t.call(n,"[data-vanillanote]"))||null},G=(o,n)=>{if(!o||!n||o.html!==n.html||o.plainText!==n.plainText||JSON.stringify(o.links)!==JSON.stringify(n.links)||JSON.stringify(o.files)!==JSON.stringify(n.files)||JSON.stringify(o.images)!==JSON.stringify(n.images)||JSON.stringify(o.videos)!==JSON.stringify(n.videos))return!1;const t=Object.keys(o.fileObjects||{}),f=Object.keys(n.fileObjects||{});if(t.length!==f.length||!t.every(k=>f.includes(k)))return!1;const r=Object.keys(o.imageObjects||{}),i=Object.keys(n.imageObjects||{});return!(r.length!==i.length||!r.every(k=>i.includes(k)))},W=()=>{B.value&&(T.value=!0,v("update:modelValue",B.value.getNoteData()))},d=()=>{u.value&&(c.unregisterReloadable(g),H(),w(),l.nextTick(()=>{u.value&&L()}))},L=()=>{var f,r;if(!u.value)return;c.unregisterReloadable(g),c.registerReloadable(g,()=>{u.value&&d()}),s||(_.init(),s=!0);const o=F.value;if(!o||a.value)return;_.mountNote(o);const n=_.getNote(A);n&&(n.getId=()=>A),B.value=n;const t=B.value;if(e.modelValue&&t&&t.setNoteData(e.modelValue),m.value&&((f=t==null?void 0:t._elements)!=null&&f.textarea)&&t._elements.textarea.setAttribute("tabIndex",String(m.value)),t&&(t.isHisonvueComponent=!0,t.getId=()=>A,t.getType=()=>"note",t.getRequired=()=>y.value,t.setRequired=i=>{y.value=i},t.isVisible=()=>I.value,t.setVisible=i=>{I.value=i},t.getEditMode=()=>C.value,t.setEditMode=i=>{C.value=i,E()},t.isModified=()=>T.value,t.initModified=()=>T.value=!1,t.getTabIndex=()=>m.value,t.setTabIndex=i=>{m.value=i!=null?Number(i):null},t.focus=()=>{var i,k,U;(U=(k=(i=t._elements)==null?void 0:i.textarea)==null?void 0:k.focus)==null||U.call(k)},t.getDataModel=()=>{const i=t.getNoteData();return new c.hison.data.DataModel(i)},t.setDataModel=i=>{if(!i||i.getRowCount()==0)return;const k={html:i.hasColumn("html")?i.getValue(0,"html"):"",plainText:i.hasColumn("plainText")?i.getValue(0,"plainText"):"",links:i.hasColumn("links")?i.getValue(0,"links"):[],files:i.hasColumn("files")?i.getValue(0,"files"):[],images:i.hasColumn("images")?i.getValue(0,"images"):[],videos:i.hasColumn("videos")?i.getValue(0,"videos"):[],fileObjects:i.hasColumn("fileObjects")?i.getValue(0,"fileObjects"):{},imageObjects:i.hasColumn("imageObjects")?i.getValue(0,"imageObjects"):{}};return t.setNoteData(k)},t.load=i=>{i&&i.getIsDataModel&&i.getIsDataModel()?t.setDataModel(i):t.setNoteData(i)},t.reload=()=>c.reloadHisonComponent(g)),t){const i=(r=t._elements)==null?void 0:r.textarea;i&&x.observe(i,{characterData:!0,childList:!0,subtree:!0})}t&&(t._cssEvents.target_onBeforeClick=c.hisonCloser.event.cssEvent.button_onBeforeClick,t._cssEvents.target_onAfterClick=c.hisonCloser.event.cssEvent.button_onAfterClick,t._cssEvents.target_onBeforeMouseover=c.hisonCloser.event.cssEvent.button_onBeforeMouseover,t._cssEvents.target_onAfterMouseover=c.hisonCloser.event.cssEvent.button_onAfterMouseover,t._cssEvents.target_onBeforeMouseout=c.hisonCloser.event.cssEvent.button_onBeforeMouseout,t._cssEvents.target_onAfterMouseout=c.hisonCloser.event.cssEvent.button_onAfterMouseout,t._cssEvents.target_onBeforeTouchstart=c.hisonCloser.event.cssEvent.button_onBeforeTouchstart,t._cssEvents.target_onAfterTouchstart=c.hisonCloser.event.cssEvent.button_onAfterTouchstart,t._cssEvents.target_onBeforeTouchend=c.hisonCloser.event.cssEvent.button_onBeforeTouchend,t._cssEvents.target_onAfterTouchend=c.hisonCloser.event.cssEvent.button_onAfterTouchend,typeof e.textareaBeforeClick=="function"&&(t._elementEvents.textarea_onBeforeClick=e.textareaBeforeClick),typeof e.textareaAfterClick=="function"&&(t._elementEvents.textarea_onAfterClick=e.textareaAfterClick),typeof e.textareaBeforeFocus=="function"&&(t._elementEvents.textarea_onBeforeFocus=e.textareaBeforeFocus),typeof e.textareaAfterFocus=="function"&&(t._elementEvents.textarea_onAfterFocus=e.textareaAfterFocus),typeof e.textareaBeforeBlur=="function"&&(t._elementEvents.textarea_onBeforeBlur=e.textareaBeforeBlur),typeof e.textareaAfterBlur=="function"&&(t._elementEvents.textarea_onAfterBlur=e.textareaAfterBlur),typeof e.paragraphStyleSelectBeforeClick=="function"&&(t._elementEvents.paragraphStyleSelect_onBeforeClick=e.paragraphStyleSelectBeforeClick),typeof e.paragraphStyleSelectAfterClick=="function"&&(t._elementEvents.paragraphStyleSelect_onAfterClick=e.paragraphStyleSelectAfterClick),typeof e.toolToggleBeforeClick=="function"&&(t._elementEvents.toolToggleButton_onBeforeClick=e.toolToggleBeforeClick),typeof e.toolToggleAfterClick=="function"&&(t._elementEvents.toolToggleButton_onAfterClick=e.toolToggleAfterClick),typeof e.styleNomalBeforeClick=="function"&&(t._elementEvents.styleNomal_onBeforeClick=e.styleNomalBeforeClick),typeof e.styleNomalAfterClick=="function"&&(t._elementEvents.styleNomal_onAfterClick=e.styleNomalAfterClick),typeof e.styleHeader1BeforeClick=="function"&&(t._elementEvents.styleHeader1_onBeforeClick=e.styleHeader1BeforeClick),typeof e.styleHeader1AfterClick=="function"&&(t._elementEvents.styleHeader1_onAfterClick=e.styleHeader1AfterClick),typeof e.styleHeader2BeforeClick=="function"&&(t._elementEvents.styleHeader2_onBeforeClick=e.styleHeader2BeforeClick),typeof e.styleHeader2AfterClick=="function"&&(t._elementEvents.styleHeader2_onAfterClick=e.styleHeader2AfterClick),typeof e.styleHeader3BeforeClick=="function"&&(t._elementEvents.styleHeader3_onBeforeClick=e.styleHeader3BeforeClick),typeof e.styleHeader3AfterClick=="function"&&(t._elementEvents.styleHeader3_onAfterClick=e.styleHeader3AfterClick),typeof e.styleHeader4BeforeClick=="function"&&(t._elementEvents.styleHeader4_onBeforeClick=e.styleHeader4BeforeClick),typeof e.styleHeader4AfterClick=="function"&&(t._elementEvents.styleHeader4_onAfterClick=e.styleHeader4AfterClick),typeof e.styleHeader5BeforeClick=="function"&&(t._elementEvents.styleHeader5_onBeforeClick=e.styleHeader5BeforeClick),typeof e.styleHeader5AfterClick=="function"&&(t._elementEvents.styleHeader5_onAfterClick=e.styleHeader5AfterClick),typeof e.styleHeader6BeforeClick=="function"&&(t._elementEvents.styleHeader6_onBeforeClick=e.styleHeader6BeforeClick),typeof e.styleHeader6AfterClick=="function"&&(t._elementEvents.styleHeader6_onAfterClick=e.styleHeader6AfterClick),typeof e.boldBeforeClick=="function"&&(t._elementEvents.boldButton_onBeforeClick=e.boldBeforeClick),typeof e.boldAfterClick=="function"&&(t._elementEvents.boldButton_onAfterClick=e.boldAfterClick),typeof e.underlineBeforeClick=="function"&&(t._elementEvents.underlineButton_onBeforeClick=e.underlineBeforeClick),typeof e.underlineAfterClick=="function"&&(t._elementEvents.underlineButton_onAfterClick=e.underlineAfterClick),typeof e.italicBeforeClick=="function"&&(t._elementEvents.italicButton_onBeforeClick=e.italicBeforeClick),typeof e.italicAfterClick=="function"&&(t._elementEvents.italicButton_onAfterClick=e.italicAfterClick),typeof e.ulBeforeClick=="function"&&(t._elementEvents.ulButton_onBeforeClick=e.ulBeforeClick),typeof e.ulAfterClick=="function"&&(t._elementEvents.ulButton_onAfterClick=e.ulAfterClick),typeof e.olBeforeClick=="function"&&(t._elementEvents.olButton_onBeforeClick=e.olBeforeClick),typeof e.olAfterClick=="function"&&(t._elementEvents.olButton_onAfterClick=e.olAfterClick),typeof e.textAlignSelectBeforeClick=="function"&&(t._elementEvents.textAlignSelect_onBeforeClick=e.textAlignSelectBeforeClick),typeof e.textAlignSelectAfterClick=="function"&&(t._elementEvents.textAlignSelect_onAfterClick=e.textAlignSelectAfterClick),typeof e.textAlignLeftBeforeClick=="function"&&(t._elementEvents.textAlignLeft_onBeforeClick=e.textAlignLeftBeforeClick),typeof e.textAlignLeftAfterClick=="function"&&(t._elementEvents.textAlignLeft_onAfterClick=e.textAlignLeftAfterClick),typeof e.textAlignCenterBeforeClick=="function"&&(t._elementEvents.textAlignCenter_onBeforeClick=e.textAlignCenterBeforeClick),typeof e.textAlignCenterAfterClick=="function"&&(t._elementEvents.textAlignCenter_onAfterClick=e.textAlignCenterAfterClick),typeof e.textAlignRightBeforeClick=="function"&&(t._elementEvents.textAlignRight_onBeforeClick=e.textAlignRightBeforeClick),typeof e.textAlignRightAfterClick=="function"&&(t._elementEvents.textAlignRight_onAfterClick=e.textAlignRightAfterClick),typeof e.attLinkBeforeClick=="function"&&(t._elementEvents.attLinkButton_onBeforeClick=e.attLinkBeforeClick),typeof e.attLinkAfterClick=="function"&&(t._elementEvents.attLinkButton_onAfterClick=e.attLinkAfterClick),typeof e.attFileBeforeClick=="function"&&(t._elementEvents.attFileButton_onBeforeClick=e.attFileBeforeClick),typeof e.attFileAfterClick=="function"&&(t._elementEvents.attFileButton_onAfterClick=e.attFileAfterClick),typeof e.attImageBeforeClick=="function"&&(t._elementEvents.attImageButton_onBeforeClick=e.attImageBeforeClick),typeof e.attImageAfterClick=="function"&&(t._elementEvents.attImageButton_onAfterClick=e.attImageAfterClick),typeof e.attVideoBeforeClick=="function"&&(t._elementEvents.attVideoButton_onBeforeClick=e.attVideoBeforeClick),typeof e.attVideoAfterClick=="function"&&(t._elementEvents.attVideoButton_onAfterClick=e.attVideoAfterClick),typeof e.fontSizeBoxBeforeClick=="function"&&(t._elementEvents.fontSizeInputBox_onBeforeClick=e.fontSizeBoxBeforeClick),typeof e.fontSizeBoxAfterClick=="function"&&(t._elementEvents.fontSizeInputBox_onAfterClick=e.fontSizeBoxAfterClick),typeof e.fontSizeBeforeClick=="function"&&(t._elementEvents.fontSizeInput_onBeforeClick=e.fontSizeBeforeClick),typeof e.fontSizeAfterClick=="function"&&(t._elementEvents.fontSizeInput_onAfterClick=e.fontSizeAfterClick),typeof e.fontSizeBeforeInput=="function"&&(t._elementEvents.fontSizeInput_onBeforeInput=e.fontSizeBeforeInput),typeof e.fontSizeAfterInput=="function"&&(t._elementEvents.fontSizeInput_onAfterInput=e.fontSizeAfterInput),typeof e.fontSizeBeforeBlur=="function"&&(t._elementEvents.fontSizeInput_onBeforeBlur=e.fontSizeBeforeBlur),typeof e.fontSizeAfterBlur=="function"&&(t._elementEvents.fontSizeInput_onAfterBlur=e.fontSizeAfterBlur),typeof e.letterSpacingBoxBeforeClick=="function"&&(t._elementEvents.letterSpacingInputBox_onBeforeClick=e.letterSpacingBoxBeforeClick),typeof e.letterSpacingBoxAfterClick=="function"&&(t._elementEvents.letterSpacingInputBox_onAfterClick=e.letterSpacingBoxAfterClick),typeof e.letterSpacingBeforeClick=="function"&&(t._elementEvents.letterSpacingInput_onBeforeClick=e.letterSpacingBeforeClick),typeof e.letterSpacingAfterClick=="function"&&(t._elementEvents.letterSpacingInput_onAfterClick=e.letterSpacingAfterClick),typeof e.letterSpacingBeforeInput=="function"&&(t._elementEvents.letterSpacingInput_onBeforeInput=e.letterSpacingBeforeInput),typeof e.letterSpacingAfterInput=="function"&&(t._elementEvents.letterSpacingInput_onAfterInput=e.letterSpacingAfterInput),typeof e.letterSpacingBeforeBlur=="function"&&(t._elementEvents.letterSpacingInput_onBeforeBlur=e.letterSpacingBeforeBlur),typeof e.letterSpacingAfterBlur=="function"&&(t._elementEvents.letterSpacingInput_onAfterBlur=e.letterSpacingAfterBlur),typeof e.lineHeightBoxBeforeClick=="function"&&(t._elementEvents.lineHeightInputBox_onBeforeClick=e.lineHeightBoxBeforeClick),typeof e.lineHeightBoxAfterClick=="function"&&(t._elementEvents.lineHeightInputBox_onAfterClick=e.lineHeightBoxAfterClick),typeof e.lineHeightBeforeClick=="function"&&(t._elementEvents.lineHeightInput_onBeforeClick=e.lineHeightBeforeClick),typeof e.lineHeightAfterClick=="function"&&(t._elementEvents.lineHeightInput_onAfterClick=e.lineHeightAfterClick),typeof e.lineHeightBeforeInput=="function"&&(t._elementEvents.lineHeightInput_onBeforeInput=e.lineHeightBeforeInput),typeof e.lineHeightAfterInput=="function"&&(t._elementEvents.lineHeightInput_onAfterInput=e.lineHeightAfterInput),typeof e.lineHeightBeforeBlur=="function"&&(t._elementEvents.lineHeightInput_onBeforeBlur=e.lineHeightBeforeBlur),typeof e.lineHeightAfterBlur=="function"&&(t._elementEvents.lineHeightInput_onAfterBlur=e.lineHeightAfterBlur),typeof e.fontFamilySelectBeforeClick=="function"&&(t._elementEvents.fontFamilySelect_onBeforeClick=e.fontFamilySelectBeforeClick),typeof e.fontFamilySelectAfterClick=="function"&&(t._elementEvents.fontFamilySelect_onAfterClick=e.fontFamilySelectAfterClick),typeof e.colorTextSelectBeforeClick=="function"&&(t._elementEvents.colorTextSelect_onBeforeClick=e.colorTextSelectBeforeClick),typeof e.colorTextSelectAfterClick=="function"&&(t._elementEvents.colorTextSelect_onAfterClick=e.colorTextSelectAfterClick),typeof e.colorTextSelectBoxBeforeClick=="function"&&(t._elementEvents.colorTextSelectBox_onBeforeClick=e.colorTextSelectBoxBeforeClick),typeof e.colorTextSelectBoxAfterClick=="function"&&(t._elementEvents.colorTextSelectBox_onAfterClick=e.colorTextSelectBoxAfterClick),typeof e.colorText0BeforeClick=="function"&&(t._elementEvents.colorText0_onBeforeClick=e.colorText0BeforeClick),typeof e.colorText0AfterClick=="function"&&(t._elementEvents.colorText0_onAfterClick=e.colorText0AfterClick),typeof e.colorText1BeforeClick=="function"&&(t._elementEvents.colorText1_onBeforeClick=e.colorText1BeforeClick),typeof e.colorText1AfterClick=="function"&&(t._elementEvents.colorText1_onAfterClick=e.colorText1AfterClick),typeof e.colorText2BeforeClick=="function"&&(t._elementEvents.colorText2_onBeforeClick=e.colorText2BeforeClick),typeof e.colorText2AfterClick=="function"&&(t._elementEvents.colorText2_onAfterClick=e.colorText2AfterClick),typeof e.colorText3BeforeClick=="function"&&(t._elementEvents.colorText3_onBeforeClick=e.colorText3BeforeClick),typeof e.colorText3AfterClick=="function"&&(t._elementEvents.colorText3_onAfterClick=e.colorText3AfterClick),typeof e.colorText4BeforeClick=="function"&&(t._elementEvents.colorText4_onBeforeClick=e.colorText4BeforeClick),typeof e.colorText4AfterClick=="function"&&(t._elementEvents.colorText4_onAfterClick=e.colorText4AfterClick),typeof e.colorText5BeforeClick=="function"&&(t._elementEvents.colorText5_onBeforeClick=e.colorText5BeforeClick),typeof e.colorText5AfterClick=="function"&&(t._elementEvents.colorText5_onAfterClick=e.colorText5AfterClick),typeof e.colorText6BeforeClick=="function"&&(t._elementEvents.colorText6_onBeforeClick=e.colorText6BeforeClick),typeof e.colorText6AfterClick=="function"&&(t._elementEvents.colorText6_onAfterClick=e.colorText6AfterClick),typeof e.colorText7BeforeClick=="function"&&(t._elementEvents.colorText7_onBeforeClick=e.colorText7BeforeClick),typeof e.colorText7AfterClick=="function"&&(t._elementEvents.colorText7_onAfterClick=e.colorText7AfterClick),typeof e.colorTextRBeforeClick=="function"&&(t._elementEvents.colorTextRInput_onBeforeClick=e.colorTextRBeforeClick),typeof e.colorTextRAfterClick=="function"&&(t._elementEvents.colorTextRInput_onAfterClick=e.colorTextRAfterClick),typeof e.colorTextRBeforeInput=="function"&&(t._elementEvents.colorTextRInput_onBeforeInput=e.colorTextRBeforeInput),typeof e.colorTextRAfterInput=="function"&&(t._elementEvents.colorTextRInput_onAfterInput=e.colorTextRAfterInput),typeof e.colorTextRBeforeBlur=="function"&&(t._elementEvents.colorTextRInput_onBeforeBlur=e.colorTextRBeforeBlur),typeof e.colorTextRAfterBlur=="function"&&(t._elementEvents.colorTextRInput_onAfterBlur=e.colorTextRAfterBlur),typeof e.colorTextGBeforeClick=="function"&&(t._elementEvents.colorTextGInput_onBeforeClick=e.colorTextGBeforeClick),typeof e.colorTextGAfterClick=="function"&&(t._elementEvents.colorTextGInput_onAfterClick=e.colorTextGAfterClick),typeof e.colorTextGBeforeInput=="function"&&(t._elementEvents.colorTextGInput_onBeforeInput=e.colorTextGBeforeInput),typeof e.colorTextGAfterInput=="function"&&(t._elementEvents.colorTextGInput_onAfterInput=e.colorTextGAfterInput),typeof e.colorTextGBeforeBlur=="function"&&(t._elementEvents.colorTextGInput_onBeforeBlur=e.colorTextGBeforeBlur),typeof e.colorTextGAfterBlur=="function"&&(t._elementEvents.colorTextGInput_onAfterBlur=e.colorTextGAfterBlur),typeof e.colorTextBBeforeClick=="function"&&(t._elementEvents.colorTextBInput_onBeforeClick=e.colorTextBBeforeClick),typeof e.colorTextBAfterClick=="function"&&(t._elementEvents.colorTextBInput_onAfterClick=e.colorTextBAfterClick),typeof e.colorTextBBeforeInput=="function"&&(t._elementEvents.colorTextBInput_onBeforeInput=e.colorTextBBeforeInput),typeof e.colorTextBAfterInput=="function"&&(t._elementEvents.colorTextBInput_onAfterInput=e.colorTextBAfterInput),typeof e.colorTextBBeforeBlur=="function"&&(t._elementEvents.colorTextBInput_onBeforeBlur=e.colorTextBBeforeBlur),typeof e.colorTextBAfterBlur=="function"&&(t._elementEvents.colorTextBInput_onAfterBlur=e.colorTextBAfterBlur),typeof e.colorTextOpacityBeforeClick=="function"&&(t._elementEvents.colorTextOpacityInput_onBeforeClick=e.colorTextOpacityBeforeClick),typeof e.colorTextOpacityAfterClick=="function"&&(t._elementEvents.colorTextOpacityInput_onAfterClick=e.colorTextOpacityAfterClick),typeof e.colorTextOpacityBeforeInput=="function"&&(t._elementEvents.colorTextOpacityInput_onBeforeInput=e.colorTextOpacityBeforeInput),typeof e.colorTextOpacityAfterInput=="function"&&(t._elementEvents.colorTextOpacityInput_onAfterInput=e.colorTextOpacityAfterInput),typeof e.colorTextOpacityBeforeBlur=="function"&&(t._elementEvents.colorTextOpacityInput_onBeforeBlur=e.colorTextOpacityBeforeBlur),typeof e.colorTextOpacityAfterBlur=="function"&&(t._elementEvents.colorTextOpacityInput_onAfterBlur=e.colorTextOpacityAfterBlur),typeof e.colorBackSelectBeforeClick=="function"&&(t._elementEvents.colorBackSelect_onBeforeClick=e.colorBackSelectBeforeClick),typeof e.colorBackSelectAfterClick=="function"&&(t._elementEvents.colorBackSelect_onAfterClick=e.colorBackSelectAfterClick),typeof e.colorBackSelectBoxBeforeClick=="function"&&(t._elementEvents.colorBackSelectBox_onBeforeClick=e.colorBackSelectBoxBeforeClick),typeof e.colorBackSelectBoxAfterClick=="function"&&(t._elementEvents.colorBackSelectBox_onAfterClick=e.colorBackSelectBoxAfterClick),typeof e.colorBack0BeforeClick=="function"&&(t._elementEvents.colorBack0_onBeforeClick=e.colorBack0BeforeClick),typeof e.colorBack0AfterClick=="function"&&(t._elementEvents.colorBack0_onAfterClick=e.colorBack0AfterClick),typeof e.colorBack1BeforeClick=="function"&&(t._elementEvents.colorBack1_onBeforeClick=e.colorBack1BeforeClick),typeof e.colorBack1AfterClick=="function"&&(t._elementEvents.colorBack1_onAfterClick=e.colorBack1AfterClick),typeof e.colorBack2BeforeClick=="function"&&(t._elementEvents.colorBack2_onBeforeClick=e.colorBack2BeforeClick),typeof e.colorBack2AfterClick=="function"&&(t._elementEvents.colorBack2_onAfterClick=e.colorBack2AfterClick),typeof e.colorBack3BeforeClick=="function"&&(t._elementEvents.colorBack3_onBeforeClick=e.colorBack3BeforeClick),typeof e.colorBack3AfterClick=="function"&&(t._elementEvents.colorBack3_onAfterClick=e.colorBack3AfterClick),typeof e.colorBack4BeforeClick=="function"&&(t._elementEvents.colorBack4_onBeforeClick=e.colorBack4BeforeClick),typeof e.colorBack4AfterClick=="function"&&(t._elementEvents.colorBack4_onAfterClick=e.colorBack4AfterClick),typeof e.colorBack5BeforeClick=="function"&&(t._elementEvents.colorBack5_onBeforeClick=e.colorBack5BeforeClick),typeof e.colorBack5AfterClick=="function"&&(t._elementEvents.colorBack5_onAfterClick=e.colorBack5AfterClick),typeof e.colorBack6BeforeClick=="function"&&(t._elementEvents.colorBack6_onBeforeClick=e.colorBack6BeforeClick),typeof e.colorBack6AfterClick=="function"&&(t._elementEvents.colorBack6_onAfterClick=e.colorBack6AfterClick),typeof e.colorBack7BeforeClick=="function"&&(t._elementEvents.colorBack7_onBeforeClick=e.colorBack7BeforeClick),typeof e.colorBack7AfterClick=="function"&&(t._elementEvents.colorBack7_onAfterClick=e.colorBack7AfterClick),typeof e.colorBackRBeforeClick=="function"&&(t._elementEvents.colorBackRInput_onBeforeClick=e.colorBackRBeforeClick),typeof e.colorBackRAfterClick=="function"&&(t._elementEvents.colorBackRInput_onAfterClick=e.colorBackRAfterClick),typeof e.colorBackRBeforeInput=="function"&&(t._elementEvents.colorBackRInput_onBeforeInput=e.colorBackRBeforeInput),typeof e.colorBackRAfterInput=="function"&&(t._elementEvents.colorBackRInput_onAfterInput=e.colorBackRAfterInput),typeof e.colorBackRBeforeBlur=="function"&&(t._elementEvents.colorBackRInput_onBeforeBlur=e.colorBackRBeforeBlur),typeof e.colorBackRAfterBlur=="function"&&(t._elementEvents.colorBackRInput_onAfterBlur=e.colorBackRAfterBlur),typeof e.colorBackGBeforeClick=="function"&&(t._elementEvents.colorBackGInput_onBeforeClick=e.colorBackGBeforeClick),typeof e.colorBackGAfterClick=="function"&&(t._elementEvents.colorBackGInput_onAfterClick=e.colorBackGAfterClick),typeof e.colorBackGBeforeInput=="function"&&(t._elementEvents.colorBackGInput_onBeforeInput=e.colorBackGBeforeInput),typeof e.colorBackGAfterInput=="function"&&(t._elementEvents.colorBackGInput_onAfterInput=e.colorBackGAfterInput),typeof e.colorBackGBeforeBlur=="function"&&(t._elementEvents.colorBackGInput_onBeforeBlur=e.colorBackGBeforeBlur),typeof e.colorBackGAfterBlur=="function"&&(t._elementEvents.colorBackGInput_onAfterBlur=e.colorBackGAfterBlur),typeof e.colorBackBBeforeClick=="function"&&(t._elementEvents.colorBackBInput_onBeforeClick=e.colorBackBBeforeClick),typeof e.colorBackBAfterClick=="function"&&(t._elementEvents.colorBackBInput_onAfterClick=e.colorBackBAfterClick),typeof e.colorBackBBeforeInput=="function"&&(t._elementEvents.colorBackBInput_onBeforeInput=e.colorBackBBeforeInput),typeof e.colorBackBAfterInput=="function"&&(t._elementEvents.colorBackBInput_onAfterInput=e.colorBackBAfterInput),typeof e.colorBackBBeforeBlur=="function"&&(t._elementEvents.colorBackBInput_onBeforeBlur=e.colorBackBBeforeBlur),typeof e.colorBackBAfterBlur=="function"&&(t._elementEvents.colorBackBInput_onAfterBlur=e.colorBackBAfterBlur),typeof e.colorBackOpacityBeforeClick=="function"&&(t._elementEvents.colorBackOpacityInput_onBeforeClick=e.colorBackOpacityBeforeClick),typeof e.colorBackOpacityAfterClick=="function"&&(t._elementEvents.colorBackOpacityInput_onAfterClick=e.colorBackOpacityAfterClick),typeof e.colorBackOpacityBeforeInput=="function"&&(t._elementEvents.colorBackOpacityInput_onBeforeInput=e.colorBackOpacityBeforeInput),typeof e.colorBackOpacityAfterInput=="function"&&(t._elementEvents.colorBackOpacityInput_onAfterInput=e.colorBackOpacityAfterInput),typeof e.colorBackOpacityBeforeBlur=="function"&&(t._elementEvents.colorBackOpacityInput_onBeforeBlur=e.colorBackOpacityBeforeBlur),typeof e.colorBackOpacityAfterBlur=="function"&&(t._elementEvents.colorBackOpacityInput_onAfterBlur=e.colorBackOpacityAfterBlur),typeof e.formatClearBeforeClick=="function"&&(t._elementEvents.formatClearButton_onBeforeClick=e.formatClearBeforeClick),typeof e.formatClearAfterClick=="function"&&(t._elementEvents.formatClearButton_onAfterClick=e.formatClearAfterClick),typeof e.undoBeforeClick=="function"&&(t._elementEvents.undoButton_onBeforeClick=e.undoBeforeClick),typeof e.undoAfterClick=="function"&&(t._elementEvents.undoButton_onAfterClick=e.undoAfterClick),typeof e.redoBeforeClick=="function"&&(t._elementEvents.redoButton_onBeforeClick=e.redoBeforeClick),typeof e.redoAfterClick=="function"&&(t._elementEvents.redoButton_onAfterClick=e.redoAfterClick),typeof e.helpBeforeClick=="function"&&(t._elementEvents.helpButton_onBeforeClick=e.helpBeforeClick),typeof e.helpAfterClick=="function"&&(t._elementEvents.helpButton_onAfterClick=e.helpAfterClick),typeof e.modalBackBeforeClick=="function"&&(t._elementEvents.modalBack_onBeforeClick=e.modalBackBeforeClick),typeof e.modalBackAfterClick=="function"&&(t._elementEvents.modalBack_onAfterClick=e.modalBackAfterClick),typeof e.attLinkModalBeforeClick=="function"&&(t._elementEvents.attLinkModal_onBeforeClick=e.attLinkModalBeforeClick),typeof e.attLinkModalAfterClick=="function"&&(t._elementEvents.attLinkModal_onAfterClick=e.attLinkModalAfterClick),typeof e.attLinkTextBeforeInput=="function"&&(t._elementEvents.attLinkText_onBeforeInput=e.attLinkTextBeforeInput),typeof e.attLinkTextAfterInput=="function"&&(t._elementEvents.attLinkText_onAfterInput=e.attLinkTextAfterInput),typeof e.attLinkTextBeforeBlur=="function"&&(t._elementEvents.attLinkText_onBeforeBlur=e.attLinkTextBeforeBlur),typeof e.attLinkTextAfterBlur=="function"&&(t._elementEvents.attLinkText_onAfterBlur=e.attLinkTextAfterBlur),typeof e.attLinkHrefBeforeInput=="function"&&(t._elementEvents.attLinkHref_onBeforeInput=e.attLinkHrefBeforeInput),typeof e.attLinkHrefAfterInput=="function"&&(t._elementEvents.attLinkHref_onAfterInput=e.attLinkHrefAfterInput),typeof e.attLinkHrefBeforeBlur=="function"&&(t._elementEvents.attLinkHref_onBeforeBlur=e.attLinkHrefBeforeBlur),typeof e.attLinkHrefAfterBlur=="function"&&(t._elementEvents.attLinkHref_onAfterBlur=e.attLinkHrefAfterBlur),typeof e.attLinkInsertBeforeClick=="function"&&(t._elementEvents.attLinkInsertButton_onBeforeClick=e.attLinkInsertBeforeClick),typeof e.attLinkInsertAfterClick=="function"&&(t._elementEvents.attLinkInsertButton_onAfterClick=e.attLinkInsertAfterClick),typeof e.attFileModalBeforeClick=="function"&&(t._elementEvents.attFileModal_onBeforeClick=e.attFileModalBeforeClick),typeof e.attFileModalAfterClick=="function"&&(t._elementEvents.attFileModal_onAfterClick=e.attFileModalAfterClick),typeof e.attFileUploadBeforeClick=="function"&&(t._elementEvents.attFileUploadButton_onBeforeClick=e.attFileUploadBeforeClick),typeof e.attFileUploadAfterClick=="function"&&(t._elementEvents.attFileUploadButton_onAfterClick=e.attFileUploadAfterClick),typeof e.attFileUploadDivBeforeDragover=="function"&&(t._elementEvents.attFileUploadDiv_onBeforeDragover=e.attFileUploadDivBeforeDragover),typeof e.attFileUploadDivAfterDragover=="function"&&(t._elementEvents.attFileUploadDiv_onAfterDragover=e.attFileUploadDivAfterDragover),typeof e.attFileUploadDivBeforeDrop=="function"&&(t._elementEvents.attFileUploadDiv_onBeforeDrop=e.attFileUploadDivBeforeDrop),typeof e.attFileUploadDivAfterDrop=="function"&&(t._elementEvents.attFileUploadDiv_onAfterDrop=e.attFileUploadDivAfterDrop),typeof e.attFileUploadDivBeforeClick=="function"&&(t._elementEvents.attFileUploadDiv_onBeforeClick=e.attFileUploadDivBeforeClick),typeof e.attFileUploadDivAfterClick=="function"&&(t._elementEvents.attFileUploadDiv_onAfterClick=e.attFileUploadDivAfterClick),typeof e.attFileUploadBeforeInput=="function"&&(t._elementEvents.attFileUpload_onBeforeInput=e.attFileUploadBeforeInput),typeof e.attFileUploadAfterInput=="function"&&(t._elementEvents.attFileUpload_onAfterInput=e.attFileUploadAfterInput),typeof e.attFileUploadBeforeBlur=="function"&&(t._elementEvents.attFileUpload_onBeforeBlur=e.attFileUploadBeforeBlur),typeof e.attFileUploadAfterBlur=="function"&&(t._elementEvents.attFileUpload_onAfterBlur=e.attFileUploadAfterBlur),typeof e.attFileInsertBeforeClick=="function"&&(t._elementEvents.attFileInsertButton_onBeforeClick=e.attFileInsertBeforeClick),typeof e.attFileInsertAfterClick=="function"&&(t._elementEvents.attFileInsertButton_onAfterClick=e.attFileInsertAfterClick),typeof e.attLinkTooltipEditBeforeClick=="function"&&(t._elementEvents.attLinkTooltipEditButton_onBeforeClick=e.attLinkTooltipEditBeforeClick),typeof e.attLinkTooltipEditAfterClick=="function"&&(t._elementEvents.attLinkTooltipEditButton_onAfterClick=e.attLinkTooltipEditAfterClick),typeof e.attLinkTooltipUnlinkBeforeClick=="function"&&(t._elementEvents.attLinkTooltipUnlinkButton_onBeforeClick=e.attLinkTooltipUnlinkBeforeClick),typeof e.attLinkTooltipUnlinkAfterClick=="function"&&(t._elementEvents.attLinkTooltipUnlinkButton_onAfterClick=e.attLinkTooltipUnlinkAfterClick),typeof e.attImageModalBeforeClick=="function"&&(t._elementEvents.attImageModal_onBeforeClick=e.attImageModalBeforeClick),typeof e.attImageModalAfterClick=="function"&&(t._elementEvents.attImageModal_onAfterClick=e.attImageModalAfterClick),typeof e.attImageUploadViewBeforeDragover=="function"&&(t._elementEvents.attImageUploadButtonAndView_onBeforeDragover=e.attImageUploadViewBeforeDragover),typeof e.attImageUploadViewAfterDragover=="function"&&(t._elementEvents.attImageUploadButtonAndView_onAfterDragover=e.attImageUploadViewAfterDragover),typeof e.attImageUploadViewBeforeDrop=="function"&&(t._elementEvents.attImageUploadButtonAndView_onBeforeDrop=e.attImageUploadViewBeforeDrop),typeof e.attImageUploadViewAfterDrop=="function"&&(t._elementEvents.attImageUploadButtonAndView_onAfterDrop=e.attImageUploadViewAfterDrop),typeof e.attImageUploadViewBeforeClick=="function"&&(t._elementEvents.attImageUploadButtonAndView_onBeforeClick=e.attImageUploadViewBeforeClick),typeof e.attImageUploadViewAfterClick=="function"&&(t._elementEvents.attImageUploadButtonAndView_onAfterClick=e.attImageUploadViewAfterClick),typeof e.attImageViewPreBeforeClick=="function"&&(t._elementEvents.attImageViewPreButton_onBeforeClick=e.attImageViewPreBeforeClick),typeof e.attImageViewPreAfterClick=="function"&&(t._elementEvents.attImageViewPreButton_onAfterClick=e.attImageViewPreAfterClick),typeof e.attImageViewNextBeforeClick=="function"&&(t._elementEvents.attImageViewNextButton_onBeforeClick=e.attImageViewNextBeforeClick),typeof e.attImageViewNextAfterClick=="function"&&(t._elementEvents.attImageViewNextButton_onAfterClick=e.attImageViewNextAfterClick),typeof e.attImageUploadBeforeInput=="function"&&(t._elementEvents.attImageUpload_onBeforeInput=e.attImageUploadBeforeInput),typeof e.attImageUploadAfterInput=="function"&&(t._elementEvents.attImageUpload_onAfterInput=e.attImageUploadAfterInput),typeof e.attImageUploadBeforeBlur=="function"&&(t._elementEvents.attImageUpload_onBeforeBlur=e.attImageUploadBeforeBlur),typeof e.attImageUploadAfterBlur=="function"&&(t._elementEvents.attImageUpload_onAfterBlur=e.attImageUploadAfterBlur),typeof e.attImageURLBeforeInput=="function"&&(t._elementEvents.attImageURL_onBeforeInput=e.attImageURLBeforeInput),typeof e.attImageURLAfterInput=="function"&&(t._elementEvents.attImageURL_onAfterInput=e.attImageURLAfterInput),typeof e.attImageURLBeforeBlur=="function"&&(t._elementEvents.attImageURL_onBeforeBlur=e.attImageURLBeforeBlur),typeof e.attImageURLAfterBlur=="function"&&(t._elementEvents.attImageURL_onAfterBlur=e.attImageURLAfterBlur),typeof e.attImageInsertBeforeClick=="function"&&(t._elementEvents.attImageInsertButton_onBeforeClick=e.attImageInsertBeforeClick),typeof e.attImageInsertAfterClick=="function"&&(t._elementEvents.attImageInsertButton_onAfterClick=e.attImageInsertAfterClick),typeof e.attVideoModalBeforeClick=="function"&&(t._elementEvents.attVideoModal_onBeforeClick=e.attVideoModalBeforeClick),typeof e.attVideoModalAfterClick=="function"&&(t._elementEvents.attVideoModal_onAfterClick=e.attVideoModalAfterClick),typeof e.attVideoEmbedIdBeforeInput=="function"&&(t._elementEvents.attVideoEmbedId_onBeforeInput=e.attVideoEmbedIdBeforeInput),typeof e.attVideoEmbedIdAfterInput=="function"&&(t._elementEvents.attVideoEmbedId_onAfterInput=e.attVideoEmbedIdAfterInput),typeof e.attVideoEmbedIdBeforeBlur=="function"&&(t._elementEvents.attVideoEmbedId_onBeforeBlur=e.attVideoEmbedIdBeforeBlur),typeof e.attVideoEmbedIdAfterBlur=="function"&&(t._elementEvents.attVideoEmbedId_onAfterBlur=e.attVideoEmbedIdAfterBlur),typeof e.attVideoWidthBeforeInput=="function"&&(t._elementEvents.attVideoWidth_onBeforeInput=e.attVideoWidthBeforeInput),typeof e.attVideoWidthAfterInput=="function"&&(t._elementEvents.attVideoWidth_onAfterInput=e.attVideoWidthAfterInput),typeof e.attVideoWidthBeforeBlur=="function"&&(t._elementEvents.attVideoWidth_onBeforeBlur=e.attVideoWidthBeforeBlur),typeof e.attVideoWidthAfterBlur=="function"&&(t._elementEvents.attVideoWidth_onAfterBlur=e.attVideoWidthAfterBlur),typeof e.attVideoHeightBeforeInput=="function"&&(t._elementEvents.attVideoHeight_onBeforeInput=e.attVideoHeightBeforeInput),typeof e.attVideoHeightAfterInput=="function"&&(t._elementEvents.attVideoHeight_onAfterInput=e.attVideoHeightAfterInput),typeof e.attVideoHeightBeforeBlur=="function"&&(t._elementEvents.attVideoHeight_onBeforeBlur=e.attVideoHeightBeforeBlur),typeof e.attVideoHeightAfterBlur=="function"&&(t._elementEvents.attVideoHeight_onAfterBlur=e.attVideoHeightAfterBlur),typeof e.attVideoInsertBeforeClick=="function"&&(t._elementEvents.attVideoInsertButton_onBeforeClick=e.attVideoInsertBeforeClick),typeof e.attVideoInsertAfterClick=="function"&&(t._elementEvents.attVideoInsertButton_onAfterClick=e.attVideoInsertAfterClick),typeof e.attImageAndVideoTooltipWidthBeforeInput=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeInput=e.attImageAndVideoTooltipWidthBeforeInput),typeof e.attImageAndVideoTooltipWidthAfterInput=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterInput=e.attImageAndVideoTooltipWidthAfterInput),typeof e.attImageAndVideoTooltipWidthBeforeBlur=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeBlur=e.attImageAndVideoTooltipWidthBeforeBlur),typeof e.attImageAndVideoTooltipWidthAfterBlur=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterBlur=e.attImageAndVideoTooltipWidthAfterBlur),typeof e.attImageAndVideoTooltipWidthBeforeKeyup=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeKeyup=e.attImageAndVideoTooltipWidthBeforeKeyup),typeof e.attImageAndVideoTooltipWidthAfterKeyup=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterKeyup=e.attImageAndVideoTooltipWidthAfterKeyup),typeof e.attImageAndVideoTooltipFloatRadioNoneBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onBeforeClick=e.attImageAndVideoTooltipFloatRadioNoneBeforeClick),typeof e.attImageAndVideoTooltipFloatRadioNoneAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onAfterClick=e.attImageAndVideoTooltipFloatRadioNoneAfterClick),typeof e.attImageAndVideoTooltipFloatRadioLeftBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onBeforeClick=e.attImageAndVideoTooltipFloatRadioLeftBeforeClick),typeof e.attImageAndVideoTooltipFloatRadioLeftAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onAfterClick=e.attImageAndVideoTooltipFloatRadioLeftAfterClick),typeof e.attImageAndVideoTooltipFloatRadioRightBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onBeforeClick=e.attImageAndVideoTooltipFloatRadioRightBeforeClick),typeof e.attImageAndVideoTooltipFloatRadioRightAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onAfterClick=e.attImageAndVideoTooltipFloatRadioRightAfterClick),typeof e.attImageAndVideoTooltipShapeRadioSquareBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onBeforeClick=e.attImageAndVideoTooltipShapeRadioSquareBeforeClick),typeof e.attImageAndVideoTooltipShapeRadioSquareAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onAfterClick=e.attImageAndVideoTooltipShapeRadioSquareAfterClick),typeof e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onBeforeClick=e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick),typeof e.attImageAndVideoTooltipShapeRadioRadiusAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onAfterClick=e.attImageAndVideoTooltipShapeRadioRadiusAfterClick),typeof e.attImageAndVideoTooltipShapeRadioCircleBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onBeforeClick=e.attImageAndVideoTooltipShapeRadioCircleBeforeClick),typeof e.attImageAndVideoTooltipShapeRadioCircleAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onAfterClick=e.attImageAndVideoTooltipShapeRadioCircleAfterClick),typeof e.helpModalBeforeClick=="function"&&(t._elementEvents.helpModal_onBeforeClick=e.helpModalBeforeClick),typeof e.helpModalAfterClick=="function"&&(t._elementEvents.helpModal_onAfterClick=e.helpModalAfterClick),typeof e.placeholderBeforeClick=="function"&&(t._elementEvents.placeholder_onBeforeClick=e.placeholderBeforeClick),typeof e.placeholderAfterClick=="function"&&(t._elementEvents.placeholder_onAfterClick=e.placeholderAfterClick)),E(),a.value=!1,o.__hnoteDestroyed=!1,v("mounted",t)},H=()=>{c.unregisterReloadable(g);const o=F.value;if(!o||a.value){x.disconnect();return}if(!o.isConnected){a.value=!0,x.disconnect(),B.value=null;return}try{_.unmountNote(o)}catch(n){console.warn("[HNote] unmountNote skipped:",n)}x.disconnect(),a.value=!0,o.__hnoteDestroyed=!0,B.value=null};return l.onMounted(L),l.onBeforeUnmount(()=>{u.value=!1,H()}),l.watch(h,o=>{!u.value||a.value||(d(),v("responsive-change",o))}),l.watch(()=>e.modelValue,o=>{if(a.value||!B.value)return;const n=B.value.getNoteData();G(n,o)||B.value.setNoteData(o)}),l.watch(()=>e.visible,o=>{const n=!!o;n!==I.value&&(I.value=n)}),l.watch(()=>e.editMode,o=>{o&&o!==C.value&&(C.value=o,E())}),l.watch(()=>e.required,o=>{const n=!!o;n!==y.value&&(y.value=n)}),l.watch(()=>e.tabIndex,o=>{var t,f;const n=o===null||o===""?null:Number(o);if(n!==m.value){m.value=n;const r=(f=(t=B.value)==null?void 0:t._elements)==null?void 0:f.textarea;r&&(n==null?r.removeAttribute("tabIndex"):r.setAttribute("tabIndex",String(n)))}}),l.watch(()=>e.class,()=>{!u.value||a.value||d()}),l.watch(()=>[e.noteModeByDevice,e.toolPosition,e.toolDefaultLine,e.toolToggle],()=>{!u.value||a.value||d()}),l.watch(()=>[e.textareaWidth,e.textareaHeight,e.textareaMaxWidth,e.textareaMaxHeight,e.textareaHeightIsModify],()=>{!u.value||a.value||d()}),l.watch(()=>[e.placeholderIsVisible,e.placeholderAddTop,e.placeholderAddLeft,e.placeholderWidth,e.placeholderColor,e.placeholderBackgroundColor,e.placeholderTitle,e.placeholderTextContent],()=>{!u.value||a.value||d()}),l.watch(()=>[e.attFilePreventTypes,e.attFileAcceptTypes,e.attFileMaxSize,e.attImagePreventTypes,e.attImageAcceptTypes,e.attImageMaxSize],()=>{!u.value||a.value||d()}),l.watch(()=>[e.defaultFontSize,e.defaultLineHeight,e.defaultFontFamily,e.defaultToolFontFamily,e.addFontFamily,e.removeFontFamily,e.language,e.recodeLimit],()=>{!u.value||a.value||d()}),l.watch(()=>[e.sizeLevelDesktop,e.sizeLevelMobile,e.invertColor,e.color],()=>{!u.value||a.value||d()}),l.watch(()=>[e.usingParagraphStyle,e.usingBold,e.usingUnderline,e.usingItalic,e.usingUl,e.usingOl,e.usingTextAlign,e.usingAttLink,e.usingAttFile,e.usingAttImage,e.usingAttVideo,e.usingFontSize,e.usingLetterSpacing,e.usingLineHeight,e.usingFontFamily,e.usingColorText,e.usingColorBack,e.usingFormatClear,e.usingUndo,e.usingRedo,e.usingHelp,e.usingParagraphAllStyle,e.usingCharacterStyle,e.usingCharacterSize,e.usingAttachFile,e.usingDo],()=>{!u.value||a.value||d()}),{editorWrap:F,props:e,bindAttrs:z,responsiveClassList:V,visibleClass:O,requiredClass:D,editModeClass:M}}});function $(e,v,_,F,B,A){return l.openBlock(),l.createElementBlock("div",{ref:"editorWrap",class:l.normalizeClass(["hison-note","hison-wrap",...e.responsiveClassList,e.visibleClass,e.requiredClass,e.editModeClass]),style:l.normalizeStyle(e.props.style)},[l.createElementVNode("div",l.mergeProps({"data-vanillanote":""},e.bindAttrs),null,16)],6)}const Y=P._export_sfc(J,[["render",$]]);exports.default=Y;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),c=require("./index-Bg8WW8Oo.js"),P=require("./_plugin-vue_export-helper-BHFhmbuH.js"),j={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},editMode:{type:String,default:c.EditMode.editable,validator:e=>["editable","disable","readonly"].includes(e)},noteModeByDevice:{type:String,required:!1,validator:e=>e==null||c.NOTE_MODE_BY_DEVICE_VALUES.includes(e)},toolPosition:{type:String,required:!1,validator:e=>e==null||c.TOOL_POSITION_VALUES.includes(e)},toolDefaultLine:{type:Number,required:!1},toolToggle:{type:Boolean,default:!1},textareaWidth:{type:String,required:!1},textareaHeight:{type:String,required:!1},textareaMaxWidth:{type:String,required:!1},textareaMaxHeight:{type:String,required:!1},textareaHeightIsModify:{type:Boolean,default:!1},placeholderIsVisible:{type:Boolean,default:!1},placeholderAddTop:{type:Number,required:!1},placeholderAddLeft:{type:Number,required:!1},placeholderWidth:{type:String,required:!1},placeholderColor:{type:String,required:!1},placeholderBackgroundColor:{type:String,required:!1},placeholderTitle:{type:String,required:!1},placeholderTextContent:{type:String,required:!1},attFilePreventTypes:{type:String,required:!1},attFileAcceptTypes:{type:String,required:!1},attFileMaxSize:{type:Number,required:!1,default:20*1024*1024},attImagePreventTypes:{type:String,required:!1},attImageAcceptTypes:{type:String,required:!1},attImageMaxSize:{type:Number,required:!1,default:20*1024*1024},defaultFontSize:{type:Number,required:!1},defaultLineHeight:{type:Number,required:!1},defaultFontFamily:{type:String,required:!1},defaultToolFontFamily:{type:String,required:!1},addFontFamily:{type:String,required:!1},removeFontFamily:{type:String,required:!1},language:{type:String,required:!1},recodeLimit:{type:String,required:!1},sizeLevelDesktop:{type:Number,required:!1},sizeLevelMobile:{type:Number,required:!1},color:{type:String,required:!1},invertColor:{type:Boolean,default:!1},usingParagraphStyle:{type:Boolean,default:!0},usingBold:{type:Boolean,default:!0},usingUnderline:{type:Boolean,default:!0},usingItalic:{type:Boolean,default:!0},usingUl:{type:Boolean,default:!0},usingOl:{type:Boolean,default:!0},usingTextAlign:{type:Boolean,default:!0},usingAttLink:{type:Boolean,default:!0},usingAttFile:{type:Boolean,default:!0},usingAttImage:{type:Boolean,default:!0},usingAttVideo:{type:Boolean,default:!0},usingFontSize:{type:Boolean,default:!0},usingLetterSpacing:{type:Boolean,default:!0},usingLineHeight:{type:Boolean,default:!0},usingFontFamily:{type:Boolean,default:!0},usingColorText:{type:Boolean,default:!0},usingColorBack:{type:Boolean,default:!0},usingFormatClear:{type:Boolean,default:!0},usingUndo:{type:Boolean,default:!0},usingRedo:{type:Boolean,default:!0},usingHelp:{type:Boolean,default:!0},usingParagraphAllStyle:{type:Boolean,default:!0},usingCharacterStyle:{type:Boolean,default:!0},usingCharacterSize:{type:Boolean,default:!0},usingAttachFile:{type:Boolean,default:!0},usingDo:{type:Boolean,default:!0},required:{type:Boolean,default:!1},modelValue:{type:Object,required:!1},tabIndex:{type:[Number,String],default:null,validator:e=>e===null||e===""||!isNaN(+e)&&isFinite(+e)}},K={textareaBeforeClick:Function,textareaAfterClick:Function,textareaBeforeFocus:Function,textareaAfterFocus:Function,textareaBeforeBlur:Function,textareaAfterBlur:Function,paragraphStyleSelectBeforeClick:Function,paragraphStyleSelectAfterClick:Function,toolToggleBeforeClick:Function,toolToggleAfterClick:Function,styleNomalBeforeClick:Function,styleNomalAfterClick:Function,styleHeader1BeforeClick:Function,styleHeader1AfterClick:Function,styleHeader2BeforeClick:Function,styleHeader2AfterClick:Function,styleHeader3BeforeClick:Function,styleHeader3AfterClick:Function,styleHeader4BeforeClick:Function,styleHeader4AfterClick:Function,styleHeader5BeforeClick:Function,styleHeader5AfterClick:Function,styleHeader6BeforeClick:Function,styleHeader6AfterClick:Function,boldBeforeClick:Function,boldAfterClick:Function,underlineBeforeClick:Function,underlineAfterClick:Function,italicBeforeClick:Function,italicAfterClick:Function,ulBeforeClick:Function,ulAfterClick:Function,olBeforeClick:Function,olAfterClick:Function,textAlignSelectBeforeClick:Function,textAlignSelectAfterClick:Function,textAlignLeftBeforeClick:Function,textAlignLeftAfterClick:Function,textAlignCenterBeforeClick:Function,textAlignCenterAfterClick:Function,textAlignRightBeforeClick:Function,textAlignRightAfterClick:Function,attLinkBeforeClick:Function,attLinkAfterClick:Function,attFileBeforeClick:Function,attFileAfterClick:Function,attImageBeforeClick:Function,attImageAfterClick:Function,attVideoBeforeClick:Function,attVideoAfterClick:Function,fontSizeBoxBeforeClick:Function,fontSizeBoxAfterClick:Function,fontSizeBeforeClick:Function,fontSizeAfterClick:Function,fontSizeBeforeInput:Function,fontSizeAfterInput:Function,fontSizeBeforeBlur:Function,fontSizeAfterBlur:Function,letterSpacingBoxBeforeClick:Function,letterSpacingBoxAfterClick:Function,letterSpacingBeforeClick:Function,letterSpacingAfterClick:Function,letterSpacingBeforeInput:Function,letterSpacingAfterInput:Function,letterSpacingBeforeBlur:Function,letterSpacingAfterBlur:Function,lineHeightBoxBeforeClick:Function,lineHeightBoxAfterClick:Function,lineHeightBeforeClick:Function,lineHeightAfterClick:Function,lineHeightBeforeInput:Function,lineHeightAfterInput:Function,lineHeightBeforeBlur:Function,lineHeightAfterBlur:Function,fontFamilySelectBeforeClick:Function,fontFamilySelectAfterClick:Function,colorTextSelectBeforeClick:Function,colorTextSelectAfterClick:Function,colorTextSelectBoxBeforeClick:Function,colorTextSelectBoxAfterClick:Function,colorText0BeforeClick:Function,colorText0AfterClick:Function,colorText1BeforeClick:Function,colorText1AfterClick:Function,colorText2BeforeClick:Function,colorText2AfterClick:Function,colorText3BeforeClick:Function,colorText3AfterClick:Function,colorText4BeforeClick:Function,colorText4AfterClick:Function,colorText5BeforeClick:Function,colorText5AfterClick:Function,colorText6BeforeClick:Function,colorText6AfterClick:Function,colorText7BeforeClick:Function,colorText7AfterClick:Function,colorTextRBeforeClick:Function,colorTextRAfterClick:Function,colorTextRBeforeInput:Function,colorTextRAfterInput:Function,colorTextRBeforeBlur:Function,colorTextRAfterBlur:Function,colorTextGBeforeClick:Function,colorTextGAfterClick:Function,colorTextGBeforeInput:Function,colorTextGAfterInput:Function,colorTextGBeforeBlur:Function,colorTextGAfterBlur:Function,colorTextBBeforeClick:Function,colorTextBAfterClick:Function,colorTextBBeforeInput:Function,colorTextBAfterInput:Function,colorTextBBeforeBlur:Function,colorTextBAfterBlur:Function,colorTextOpacityBeforeClick:Function,colorTextOpacityAfterClick:Function,colorTextOpacityBeforeInput:Function,colorTextOpacityAfterInput:Function,colorTextOpacityBeforeBlur:Function,colorTextOpacityAfterBlur:Function,colorBackSelectBeforeClick:Function,colorBackSelectAfterClick:Function,colorBackSelectBoxBeforeClick:Function,colorBackSelectBoxAfterClick:Function,colorBack0BeforeClick:Function,colorBack0AfterClick:Function,colorBack1BeforeClick:Function,colorBack1AfterClick:Function,colorBack2BeforeClick:Function,colorBack2AfterClick:Function,colorBack3BeforeClick:Function,colorBack3AfterClick:Function,colorBack4BeforeClick:Function,colorBack4AfterClick:Function,colorBack5BeforeClick:Function,colorBack5AfterClick:Function,colorBack6BeforeClick:Function,colorBack6AfterClick:Function,colorBack7BeforeClick:Function,colorBack7AfterClick:Function,colorBackRBeforeClick:Function,colorBackRAfterClick:Function,colorBackRBeforeInput:Function,colorBackRAfterInput:Function,colorBackRBeforeBlur:Function,colorBackRAfterBlur:Function,colorBackGBeforeClick:Function,colorBackGAfterClick:Function,colorBackGBeforeInput:Function,colorBackGAfterInput:Function,colorBackGBeforeBlur:Function,colorBackGAfterBlur:Function,colorBackBBeforeClick:Function,colorBackBAfterClick:Function,colorBackBBeforeInput:Function,colorBackBAfterInput:Function,colorBackBBeforeBlur:Function,colorBackBAfterBlur:Function,colorBackOpacityBeforeClick:Function,colorBackOpacityAfterClick:Function,colorBackOpacityBeforeInput:Function,colorBackOpacityAfterInput:Function,colorBackOpacityBeforeBlur:Function,colorBackOpacityAfterBlur:Function,formatClearBeforeClick:Function,formatClearAfterClick:Function,undoBeforeClick:Function,undoAfterClick:Function,redoBeforeClick:Function,redoAfterClick:Function,helpBeforeClick:Function,helpAfterClick:Function,modalBackBeforeClick:Function,modalBackAfterClick:Function,attLinkModalBeforeClick:Function,attLinkModalAfterClick:Function,attLinkTextBeforeInput:Function,attLinkTextAfterInput:Function,attLinkTextBeforeBlur:Function,attLinkTextAfterBlur:Function,attLinkHrefBeforeInput:Function,attLinkHrefAfterInput:Function,attLinkHrefBeforeBlur:Function,attLinkHrefAfterBlur:Function,attLinkInsertBeforeClick:Function,attLinkInsertAfterClick:Function,attFileModalBeforeClick:Function,attFileModalAfterClick:Function,attFileUploadBeforeClick:Function,attFileUploadAfterClick:Function,attFileUploadDivBeforeDragover:Function,attFileUploadDivAfterDragover:Function,attFileUploadDivBeforeDrop:Function,attFileUploadDivAfterDrop:Function,attFileUploadDivBeforeClick:Function,attFileUploadDivAfterClick:Function,attFileUploadBeforeInput:Function,attFileUploadAfterInput:Function,attFileUploadBeforeBlur:Function,attFileUploadAfterBlur:Function,attFileInsertBeforeClick:Function,attFileInsertAfterClick:Function,attLinkTooltipEditBeforeClick:Function,attLinkTooltipEditAfterClick:Function,attLinkTooltipUnlinkBeforeClick:Function,attLinkTooltipUnlinkAfterClick:Function,attImageModalBeforeClick:Function,attImageModalAfterClick:Function,attImageUploadViewBeforeDragover:Function,attImageUploadViewAfterDragover:Function,attImageUploadViewBeforeDrop:Function,attImageUploadViewAfterDrop:Function,attImageUploadViewBeforeClick:Function,attImageUploadViewAfterClick:Function,attImageViewPreBeforeClick:Function,attImageViewPreAfterClick:Function,attImageViewNextBeforeClick:Function,attImageViewNextAfterClick:Function,attImageUploadBeforeInput:Function,attImageUploadAfterInput:Function,attImageUploadBeforeBlur:Function,attImageUploadAfterBlur:Function,attImageURLBeforeInput:Function,attImageURLAfterInput:Function,attImageURLBeforeBlur:Function,attImageURLAfterBlur:Function,attImageInsertBeforeClick:Function,attImageInsertAfterClick:Function,attVideoModalBeforeClick:Function,attVideoModalAfterClick:Function,attVideoEmbedIdBeforeInput:Function,attVideoEmbedIdAfterInput:Function,attVideoEmbedIdBeforeBlur:Function,attVideoEmbedIdAfterBlur:Function,attVideoWidthBeforeInput:Function,attVideoWidthAfterInput:Function,attVideoWidthBeforeBlur:Function,attVideoWidthAfterBlur:Function,attVideoHeightBeforeInput:Function,attVideoHeightAfterInput:Function,attVideoHeightBeforeBlur:Function,attVideoHeightAfterBlur:Function,attVideoInsertBeforeClick:Function,attVideoInsertAfterClick:Function,attImageAndVideoTooltipWidthBeforeInput:Function,attImageAndVideoTooltipWidthAfterInput:Function,attImageAndVideoTooltipWidthBeforeBlur:Function,attImageAndVideoTooltipWidthAfterBlur:Function,attImageAndVideoTooltipWidthBeforeKeyup:Function,attImageAndVideoTooltipWidthAfterKeyup:Function,attImageAndVideoTooltipFloatRadioNoneBeforeClick:Function,attImageAndVideoTooltipFloatRadioNoneAfterClick:Function,attImageAndVideoTooltipFloatRadioLeftBeforeClick:Function,attImageAndVideoTooltipFloatRadioLeftAfterClick:Function,attImageAndVideoTooltipFloatRadioRightBeforeClick:Function,attImageAndVideoTooltipFloatRadioRightAfterClick:Function,attImageAndVideoTooltipShapeRadioSquareBeforeClick:Function,attImageAndVideoTooltipShapeRadioSquareAfterClick:Function,attImageAndVideoTooltipShapeRadioRadiusBeforeClick:Function,attImageAndVideoTooltipShapeRadioRadiusAfterClick:Function,attImageAndVideoTooltipShapeRadioCircleBeforeClick:Function,attImageAndVideoTooltipShapeRadioCircleAfterClick:Function,helpModalBeforeClick:Function,helpModalAfterClick:Function,placeholderBeforeClick:Function,placeholderAfterClick:Function},J=l.defineComponent({name:"HNote",props:{...j,...K},emits:["update:modelValue","mounted","responsive-change"],setup(e,{emit:v}){const _=c.hisonCloser.note,F=l.ref(null),B=l.ref(null),A=e.id?e.id:c.getUUID(),g=`hnote:${A}`,a=l.ref(!1),u=l.ref(!0);let s=!1;const y=l.ref(e.required),D=l.computed(()=>{if(y.value)return"hison-note-required"}),h=c.useDevice(),I=l.ref(e.visible),O=l.computed(()=>I.value?"":"hison-display-none"),C=l.ref(e.editMode),M=l.computed(()=>{if(C.value!==c.EditMode.editable)return`hison-note-${C.value}`}),T=l.ref(!1),m=l.ref(e.tabIndex!==null&&e.tabIndex!==""?Number(e.tabIndex):null),S=(o,n)=>{if(!o)return;const t=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]","[tabindex]"].join(",");o.querySelectorAll(t).forEach(r=>{n?r.setAttribute("tabindex","-1"):r.getAttribute("tabindex")==="-1"&&r.removeAttribute("tabindex")})},E=()=>{var t;const o=B.value;if(!o)return;const n=(t=o._elements)==null?void 0:t.textarea;n&&(C.value!==c.EditMode.editable?(n.removeAttribute("contenteditable"),n.removeAttribute("role"),n.removeAttribute("aria-multiline"),n.removeAttribute("spellcheck"),n.removeAttribute("autocorrect"),S(o,!0)):(n.setAttribute("contenteditable","true"),n.setAttribute("role","textbox"),n.setAttribute("aria-multiline","true"),n.setAttribute("spellcheck","true"),n.setAttribute("autocorrect","true"),S(o,!1)))},V=l.ref([]),N=["modelValue","id","class","style","visible","editMode"],b=l.ref(0),w=()=>{l.triggerRef(b)},z=l.computed(()=>{b.value;const o=c.extractResponsiveClasses(c.toClassString(e.class)||"",h.value),n=c.getSpecificClassValueFromClassList(o,"color"),t=c.getSpecificClassValueFromClassList(o,"size");c.getIndexSpecificClassNameFromClassList(o,"col")===-1&&o.push("hison-col-12"),V.value=o;const f={};f["data-id"]=A;for(const[r,i]of Object.entries(e))N.includes(r)||i!=null&&(f[r.replace(/[A-Z]/g,k=>"-"+k.toLowerCase())]=String(i));if(f["size-level-desktop"]=f["size-level-desktop"]&&c.hison.utils.isNumber(f["size-level-desktop"])?String(Math.min(Math.max(Number(f["size-level-desktop"]),1),9)):R(3,t),f["size-level-mobile"]=f["size-level-mobile"]&&c.hison.utils.isNumber(f["size-level-mobile"])?String(Math.min(Math.max(Number(f["size-level-mobile"]),1),9)):R(5,t),n&&!f.color&&(f.color=n),f.color){const r=c.getHexCodeFromColorText(f.color)??f.color;f["main-color"]=r,delete f.color}return(e.invertColor||c.hisonCloser.componentStyle.invertColor)&&(f["invert-color"]="true"),f}),R=(o,n)=>{switch(n=n??c.hisonCloser.componentStyle.size,n){case c.Size.s:o-=2;break;case c.Size.m:break;case c.Size.l:o+=2;break;case c.Size.xl:o+=3;break}return String(Math.min(Math.max(o,1),9))},x=new MutationObserver(o=>{var f;const n=(f=o[0])==null?void 0:f.target;!n||a.value||!q(n)||W()}),q=o=>{var t;let n=o;for(;n&&!(n instanceof Element);)n=n.parentNode;return((t=n==null?void 0:n.closest)==null?void 0:t.call(n,"[data-vanillanote]"))||null},G=(o,n)=>{if(!o||!n||o.html!==n.html||o.plainText!==n.plainText||JSON.stringify(o.links)!==JSON.stringify(n.links)||JSON.stringify(o.files)!==JSON.stringify(n.files)||JSON.stringify(o.images)!==JSON.stringify(n.images)||JSON.stringify(o.videos)!==JSON.stringify(n.videos))return!1;const t=Object.keys(o.fileObjects||{}),f=Object.keys(n.fileObjects||{});if(t.length!==f.length||!t.every(k=>f.includes(k)))return!1;const r=Object.keys(o.imageObjects||{}),i=Object.keys(n.imageObjects||{});return!(r.length!==i.length||!r.every(k=>i.includes(k)))},W=()=>{B.value&&(T.value=!0,v("update:modelValue",B.value.getNoteData()))},d=()=>{u.value&&(c.unregisterReloadable(g),H(),w(),l.nextTick(()=>{u.value&&L()}))},L=()=>{var f,r;if(!u.value)return;c.unregisterReloadable(g),c.registerReloadable(g,()=>{u.value&&d()}),s||(_.init(),s=!0);const o=F.value;if(!o||a.value)return;_.mountNote(o);const n=_.getNote(A);n&&(n.getId=()=>A),B.value=n;const t=B.value;if(e.modelValue&&t&&t.setNoteData(e.modelValue),m.value&&((f=t==null?void 0:t._elements)!=null&&f.textarea)&&t._elements.textarea.setAttribute("tabIndex",String(m.value)),t&&(t.isHisonvueComponent=!0,t.getId=()=>A,t.getType=()=>"note",t.getRequired=()=>y.value,t.setRequired=i=>{y.value=i},t.isVisible=()=>I.value,t.setVisible=i=>{I.value=i},t.getEditMode=()=>C.value,t.setEditMode=i=>{C.value=i,E()},t.isModified=()=>T.value,t.initModified=()=>T.value=!1,t.getTabIndex=()=>m.value,t.setTabIndex=i=>{m.value=i!=null?Number(i):null},t.focus=()=>{var i,k,U;(U=(k=(i=t._elements)==null?void 0:i.textarea)==null?void 0:k.focus)==null||U.call(k)},t.getDataModel=()=>{const i=t.getNoteData();return new c.hison.data.DataModel(i)},t.setDataModel=i=>{if(!i||i.getRowCount()==0)return;const k={html:i.hasColumn("html")?i.getValue(0,"html"):"",plainText:i.hasColumn("plainText")?i.getValue(0,"plainText"):"",links:i.hasColumn("links")?i.getValue(0,"links"):[],files:i.hasColumn("files")?i.getValue(0,"files"):[],images:i.hasColumn("images")?i.getValue(0,"images"):[],videos:i.hasColumn("videos")?i.getValue(0,"videos"):[],fileObjects:i.hasColumn("fileObjects")?i.getValue(0,"fileObjects"):{},imageObjects:i.hasColumn("imageObjects")?i.getValue(0,"imageObjects"):{}};return t.setNoteData(k)},t.load=i=>{i&&i.getIsDataModel&&i.getIsDataModel()?t.setDataModel(i):t.setNoteData(i)},t.reload=()=>c.reloadHisonComponent(g)),t){const i=(r=t._elements)==null?void 0:r.textarea;i&&x.observe(i,{characterData:!0,childList:!0,subtree:!0})}t&&(t._cssEvents.target_onBeforeClick=c.hisonCloser.event.cssEvent.button_onBeforeClick,t._cssEvents.target_onAfterClick=c.hisonCloser.event.cssEvent.button_onAfterClick,t._cssEvents.target_onBeforeMouseover=c.hisonCloser.event.cssEvent.button_onBeforeMouseover,t._cssEvents.target_onAfterMouseover=c.hisonCloser.event.cssEvent.button_onAfterMouseover,t._cssEvents.target_onBeforeMouseout=c.hisonCloser.event.cssEvent.button_onBeforeMouseout,t._cssEvents.target_onAfterMouseout=c.hisonCloser.event.cssEvent.button_onAfterMouseout,t._cssEvents.target_onBeforeTouchstart=c.hisonCloser.event.cssEvent.button_onBeforeTouchstart,t._cssEvents.target_onAfterTouchstart=c.hisonCloser.event.cssEvent.button_onAfterTouchstart,t._cssEvents.target_onBeforeTouchend=c.hisonCloser.event.cssEvent.button_onBeforeTouchend,t._cssEvents.target_onAfterTouchend=c.hisonCloser.event.cssEvent.button_onAfterTouchend,typeof e.textareaBeforeClick=="function"&&(t._elementEvents.textarea_onBeforeClick=e.textareaBeforeClick),typeof e.textareaAfterClick=="function"&&(t._elementEvents.textarea_onAfterClick=e.textareaAfterClick),typeof e.textareaBeforeFocus=="function"&&(t._elementEvents.textarea_onBeforeFocus=e.textareaBeforeFocus),typeof e.textareaAfterFocus=="function"&&(t._elementEvents.textarea_onAfterFocus=e.textareaAfterFocus),typeof e.textareaBeforeBlur=="function"&&(t._elementEvents.textarea_onBeforeBlur=e.textareaBeforeBlur),typeof e.textareaAfterBlur=="function"&&(t._elementEvents.textarea_onAfterBlur=e.textareaAfterBlur),typeof e.paragraphStyleSelectBeforeClick=="function"&&(t._elementEvents.paragraphStyleSelect_onBeforeClick=e.paragraphStyleSelectBeforeClick),typeof e.paragraphStyleSelectAfterClick=="function"&&(t._elementEvents.paragraphStyleSelect_onAfterClick=e.paragraphStyleSelectAfterClick),typeof e.toolToggleBeforeClick=="function"&&(t._elementEvents.toolToggleButton_onBeforeClick=e.toolToggleBeforeClick),typeof e.toolToggleAfterClick=="function"&&(t._elementEvents.toolToggleButton_onAfterClick=e.toolToggleAfterClick),typeof e.styleNomalBeforeClick=="function"&&(t._elementEvents.styleNomal_onBeforeClick=e.styleNomalBeforeClick),typeof e.styleNomalAfterClick=="function"&&(t._elementEvents.styleNomal_onAfterClick=e.styleNomalAfterClick),typeof e.styleHeader1BeforeClick=="function"&&(t._elementEvents.styleHeader1_onBeforeClick=e.styleHeader1BeforeClick),typeof e.styleHeader1AfterClick=="function"&&(t._elementEvents.styleHeader1_onAfterClick=e.styleHeader1AfterClick),typeof e.styleHeader2BeforeClick=="function"&&(t._elementEvents.styleHeader2_onBeforeClick=e.styleHeader2BeforeClick),typeof e.styleHeader2AfterClick=="function"&&(t._elementEvents.styleHeader2_onAfterClick=e.styleHeader2AfterClick),typeof e.styleHeader3BeforeClick=="function"&&(t._elementEvents.styleHeader3_onBeforeClick=e.styleHeader3BeforeClick),typeof e.styleHeader3AfterClick=="function"&&(t._elementEvents.styleHeader3_onAfterClick=e.styleHeader3AfterClick),typeof e.styleHeader4BeforeClick=="function"&&(t._elementEvents.styleHeader4_onBeforeClick=e.styleHeader4BeforeClick),typeof e.styleHeader4AfterClick=="function"&&(t._elementEvents.styleHeader4_onAfterClick=e.styleHeader4AfterClick),typeof e.styleHeader5BeforeClick=="function"&&(t._elementEvents.styleHeader5_onBeforeClick=e.styleHeader5BeforeClick),typeof e.styleHeader5AfterClick=="function"&&(t._elementEvents.styleHeader5_onAfterClick=e.styleHeader5AfterClick),typeof e.styleHeader6BeforeClick=="function"&&(t._elementEvents.styleHeader6_onBeforeClick=e.styleHeader6BeforeClick),typeof e.styleHeader6AfterClick=="function"&&(t._elementEvents.styleHeader6_onAfterClick=e.styleHeader6AfterClick),typeof e.boldBeforeClick=="function"&&(t._elementEvents.boldButton_onBeforeClick=e.boldBeforeClick),typeof e.boldAfterClick=="function"&&(t._elementEvents.boldButton_onAfterClick=e.boldAfterClick),typeof e.underlineBeforeClick=="function"&&(t._elementEvents.underlineButton_onBeforeClick=e.underlineBeforeClick),typeof e.underlineAfterClick=="function"&&(t._elementEvents.underlineButton_onAfterClick=e.underlineAfterClick),typeof e.italicBeforeClick=="function"&&(t._elementEvents.italicButton_onBeforeClick=e.italicBeforeClick),typeof e.italicAfterClick=="function"&&(t._elementEvents.italicButton_onAfterClick=e.italicAfterClick),typeof e.ulBeforeClick=="function"&&(t._elementEvents.ulButton_onBeforeClick=e.ulBeforeClick),typeof e.ulAfterClick=="function"&&(t._elementEvents.ulButton_onAfterClick=e.ulAfterClick),typeof e.olBeforeClick=="function"&&(t._elementEvents.olButton_onBeforeClick=e.olBeforeClick),typeof e.olAfterClick=="function"&&(t._elementEvents.olButton_onAfterClick=e.olAfterClick),typeof e.textAlignSelectBeforeClick=="function"&&(t._elementEvents.textAlignSelect_onBeforeClick=e.textAlignSelectBeforeClick),typeof e.textAlignSelectAfterClick=="function"&&(t._elementEvents.textAlignSelect_onAfterClick=e.textAlignSelectAfterClick),typeof e.textAlignLeftBeforeClick=="function"&&(t._elementEvents.textAlignLeft_onBeforeClick=e.textAlignLeftBeforeClick),typeof e.textAlignLeftAfterClick=="function"&&(t._elementEvents.textAlignLeft_onAfterClick=e.textAlignLeftAfterClick),typeof e.textAlignCenterBeforeClick=="function"&&(t._elementEvents.textAlignCenter_onBeforeClick=e.textAlignCenterBeforeClick),typeof e.textAlignCenterAfterClick=="function"&&(t._elementEvents.textAlignCenter_onAfterClick=e.textAlignCenterAfterClick),typeof e.textAlignRightBeforeClick=="function"&&(t._elementEvents.textAlignRight_onBeforeClick=e.textAlignRightBeforeClick),typeof e.textAlignRightAfterClick=="function"&&(t._elementEvents.textAlignRight_onAfterClick=e.textAlignRightAfterClick),typeof e.attLinkBeforeClick=="function"&&(t._elementEvents.attLinkButton_onBeforeClick=e.attLinkBeforeClick),typeof e.attLinkAfterClick=="function"&&(t._elementEvents.attLinkButton_onAfterClick=e.attLinkAfterClick),typeof e.attFileBeforeClick=="function"&&(t._elementEvents.attFileButton_onBeforeClick=e.attFileBeforeClick),typeof e.attFileAfterClick=="function"&&(t._elementEvents.attFileButton_onAfterClick=e.attFileAfterClick),typeof e.attImageBeforeClick=="function"&&(t._elementEvents.attImageButton_onBeforeClick=e.attImageBeforeClick),typeof e.attImageAfterClick=="function"&&(t._elementEvents.attImageButton_onAfterClick=e.attImageAfterClick),typeof e.attVideoBeforeClick=="function"&&(t._elementEvents.attVideoButton_onBeforeClick=e.attVideoBeforeClick),typeof e.attVideoAfterClick=="function"&&(t._elementEvents.attVideoButton_onAfterClick=e.attVideoAfterClick),typeof e.fontSizeBoxBeforeClick=="function"&&(t._elementEvents.fontSizeInputBox_onBeforeClick=e.fontSizeBoxBeforeClick),typeof e.fontSizeBoxAfterClick=="function"&&(t._elementEvents.fontSizeInputBox_onAfterClick=e.fontSizeBoxAfterClick),typeof e.fontSizeBeforeClick=="function"&&(t._elementEvents.fontSizeInput_onBeforeClick=e.fontSizeBeforeClick),typeof e.fontSizeAfterClick=="function"&&(t._elementEvents.fontSizeInput_onAfterClick=e.fontSizeAfterClick),typeof e.fontSizeBeforeInput=="function"&&(t._elementEvents.fontSizeInput_onBeforeInput=e.fontSizeBeforeInput),typeof e.fontSizeAfterInput=="function"&&(t._elementEvents.fontSizeInput_onAfterInput=e.fontSizeAfterInput),typeof e.fontSizeBeforeBlur=="function"&&(t._elementEvents.fontSizeInput_onBeforeBlur=e.fontSizeBeforeBlur),typeof e.fontSizeAfterBlur=="function"&&(t._elementEvents.fontSizeInput_onAfterBlur=e.fontSizeAfterBlur),typeof e.letterSpacingBoxBeforeClick=="function"&&(t._elementEvents.letterSpacingInputBox_onBeforeClick=e.letterSpacingBoxBeforeClick),typeof e.letterSpacingBoxAfterClick=="function"&&(t._elementEvents.letterSpacingInputBox_onAfterClick=e.letterSpacingBoxAfterClick),typeof e.letterSpacingBeforeClick=="function"&&(t._elementEvents.letterSpacingInput_onBeforeClick=e.letterSpacingBeforeClick),typeof e.letterSpacingAfterClick=="function"&&(t._elementEvents.letterSpacingInput_onAfterClick=e.letterSpacingAfterClick),typeof e.letterSpacingBeforeInput=="function"&&(t._elementEvents.letterSpacingInput_onBeforeInput=e.letterSpacingBeforeInput),typeof e.letterSpacingAfterInput=="function"&&(t._elementEvents.letterSpacingInput_onAfterInput=e.letterSpacingAfterInput),typeof e.letterSpacingBeforeBlur=="function"&&(t._elementEvents.letterSpacingInput_onBeforeBlur=e.letterSpacingBeforeBlur),typeof e.letterSpacingAfterBlur=="function"&&(t._elementEvents.letterSpacingInput_onAfterBlur=e.letterSpacingAfterBlur),typeof e.lineHeightBoxBeforeClick=="function"&&(t._elementEvents.lineHeightInputBox_onBeforeClick=e.lineHeightBoxBeforeClick),typeof e.lineHeightBoxAfterClick=="function"&&(t._elementEvents.lineHeightInputBox_onAfterClick=e.lineHeightBoxAfterClick),typeof e.lineHeightBeforeClick=="function"&&(t._elementEvents.lineHeightInput_onBeforeClick=e.lineHeightBeforeClick),typeof e.lineHeightAfterClick=="function"&&(t._elementEvents.lineHeightInput_onAfterClick=e.lineHeightAfterClick),typeof e.lineHeightBeforeInput=="function"&&(t._elementEvents.lineHeightInput_onBeforeInput=e.lineHeightBeforeInput),typeof e.lineHeightAfterInput=="function"&&(t._elementEvents.lineHeightInput_onAfterInput=e.lineHeightAfterInput),typeof e.lineHeightBeforeBlur=="function"&&(t._elementEvents.lineHeightInput_onBeforeBlur=e.lineHeightBeforeBlur),typeof e.lineHeightAfterBlur=="function"&&(t._elementEvents.lineHeightInput_onAfterBlur=e.lineHeightAfterBlur),typeof e.fontFamilySelectBeforeClick=="function"&&(t._elementEvents.fontFamilySelect_onBeforeClick=e.fontFamilySelectBeforeClick),typeof e.fontFamilySelectAfterClick=="function"&&(t._elementEvents.fontFamilySelect_onAfterClick=e.fontFamilySelectAfterClick),typeof e.colorTextSelectBeforeClick=="function"&&(t._elementEvents.colorTextSelect_onBeforeClick=e.colorTextSelectBeforeClick),typeof e.colorTextSelectAfterClick=="function"&&(t._elementEvents.colorTextSelect_onAfterClick=e.colorTextSelectAfterClick),typeof e.colorTextSelectBoxBeforeClick=="function"&&(t._elementEvents.colorTextSelectBox_onBeforeClick=e.colorTextSelectBoxBeforeClick),typeof e.colorTextSelectBoxAfterClick=="function"&&(t._elementEvents.colorTextSelectBox_onAfterClick=e.colorTextSelectBoxAfterClick),typeof e.colorText0BeforeClick=="function"&&(t._elementEvents.colorText0_onBeforeClick=e.colorText0BeforeClick),typeof e.colorText0AfterClick=="function"&&(t._elementEvents.colorText0_onAfterClick=e.colorText0AfterClick),typeof e.colorText1BeforeClick=="function"&&(t._elementEvents.colorText1_onBeforeClick=e.colorText1BeforeClick),typeof e.colorText1AfterClick=="function"&&(t._elementEvents.colorText1_onAfterClick=e.colorText1AfterClick),typeof e.colorText2BeforeClick=="function"&&(t._elementEvents.colorText2_onBeforeClick=e.colorText2BeforeClick),typeof e.colorText2AfterClick=="function"&&(t._elementEvents.colorText2_onAfterClick=e.colorText2AfterClick),typeof e.colorText3BeforeClick=="function"&&(t._elementEvents.colorText3_onBeforeClick=e.colorText3BeforeClick),typeof e.colorText3AfterClick=="function"&&(t._elementEvents.colorText3_onAfterClick=e.colorText3AfterClick),typeof e.colorText4BeforeClick=="function"&&(t._elementEvents.colorText4_onBeforeClick=e.colorText4BeforeClick),typeof e.colorText4AfterClick=="function"&&(t._elementEvents.colorText4_onAfterClick=e.colorText4AfterClick),typeof e.colorText5BeforeClick=="function"&&(t._elementEvents.colorText5_onBeforeClick=e.colorText5BeforeClick),typeof e.colorText5AfterClick=="function"&&(t._elementEvents.colorText5_onAfterClick=e.colorText5AfterClick),typeof e.colorText6BeforeClick=="function"&&(t._elementEvents.colorText6_onBeforeClick=e.colorText6BeforeClick),typeof e.colorText6AfterClick=="function"&&(t._elementEvents.colorText6_onAfterClick=e.colorText6AfterClick),typeof e.colorText7BeforeClick=="function"&&(t._elementEvents.colorText7_onBeforeClick=e.colorText7BeforeClick),typeof e.colorText7AfterClick=="function"&&(t._elementEvents.colorText7_onAfterClick=e.colorText7AfterClick),typeof e.colorTextRBeforeClick=="function"&&(t._elementEvents.colorTextRInput_onBeforeClick=e.colorTextRBeforeClick),typeof e.colorTextRAfterClick=="function"&&(t._elementEvents.colorTextRInput_onAfterClick=e.colorTextRAfterClick),typeof e.colorTextRBeforeInput=="function"&&(t._elementEvents.colorTextRInput_onBeforeInput=e.colorTextRBeforeInput),typeof e.colorTextRAfterInput=="function"&&(t._elementEvents.colorTextRInput_onAfterInput=e.colorTextRAfterInput),typeof e.colorTextRBeforeBlur=="function"&&(t._elementEvents.colorTextRInput_onBeforeBlur=e.colorTextRBeforeBlur),typeof e.colorTextRAfterBlur=="function"&&(t._elementEvents.colorTextRInput_onAfterBlur=e.colorTextRAfterBlur),typeof e.colorTextGBeforeClick=="function"&&(t._elementEvents.colorTextGInput_onBeforeClick=e.colorTextGBeforeClick),typeof e.colorTextGAfterClick=="function"&&(t._elementEvents.colorTextGInput_onAfterClick=e.colorTextGAfterClick),typeof e.colorTextGBeforeInput=="function"&&(t._elementEvents.colorTextGInput_onBeforeInput=e.colorTextGBeforeInput),typeof e.colorTextGAfterInput=="function"&&(t._elementEvents.colorTextGInput_onAfterInput=e.colorTextGAfterInput),typeof e.colorTextGBeforeBlur=="function"&&(t._elementEvents.colorTextGInput_onBeforeBlur=e.colorTextGBeforeBlur),typeof e.colorTextGAfterBlur=="function"&&(t._elementEvents.colorTextGInput_onAfterBlur=e.colorTextGAfterBlur),typeof e.colorTextBBeforeClick=="function"&&(t._elementEvents.colorTextBInput_onBeforeClick=e.colorTextBBeforeClick),typeof e.colorTextBAfterClick=="function"&&(t._elementEvents.colorTextBInput_onAfterClick=e.colorTextBAfterClick),typeof e.colorTextBBeforeInput=="function"&&(t._elementEvents.colorTextBInput_onBeforeInput=e.colorTextBBeforeInput),typeof e.colorTextBAfterInput=="function"&&(t._elementEvents.colorTextBInput_onAfterInput=e.colorTextBAfterInput),typeof e.colorTextBBeforeBlur=="function"&&(t._elementEvents.colorTextBInput_onBeforeBlur=e.colorTextBBeforeBlur),typeof e.colorTextBAfterBlur=="function"&&(t._elementEvents.colorTextBInput_onAfterBlur=e.colorTextBAfterBlur),typeof e.colorTextOpacityBeforeClick=="function"&&(t._elementEvents.colorTextOpacityInput_onBeforeClick=e.colorTextOpacityBeforeClick),typeof e.colorTextOpacityAfterClick=="function"&&(t._elementEvents.colorTextOpacityInput_onAfterClick=e.colorTextOpacityAfterClick),typeof e.colorTextOpacityBeforeInput=="function"&&(t._elementEvents.colorTextOpacityInput_onBeforeInput=e.colorTextOpacityBeforeInput),typeof e.colorTextOpacityAfterInput=="function"&&(t._elementEvents.colorTextOpacityInput_onAfterInput=e.colorTextOpacityAfterInput),typeof e.colorTextOpacityBeforeBlur=="function"&&(t._elementEvents.colorTextOpacityInput_onBeforeBlur=e.colorTextOpacityBeforeBlur),typeof e.colorTextOpacityAfterBlur=="function"&&(t._elementEvents.colorTextOpacityInput_onAfterBlur=e.colorTextOpacityAfterBlur),typeof e.colorBackSelectBeforeClick=="function"&&(t._elementEvents.colorBackSelect_onBeforeClick=e.colorBackSelectBeforeClick),typeof e.colorBackSelectAfterClick=="function"&&(t._elementEvents.colorBackSelect_onAfterClick=e.colorBackSelectAfterClick),typeof e.colorBackSelectBoxBeforeClick=="function"&&(t._elementEvents.colorBackSelectBox_onBeforeClick=e.colorBackSelectBoxBeforeClick),typeof e.colorBackSelectBoxAfterClick=="function"&&(t._elementEvents.colorBackSelectBox_onAfterClick=e.colorBackSelectBoxAfterClick),typeof e.colorBack0BeforeClick=="function"&&(t._elementEvents.colorBack0_onBeforeClick=e.colorBack0BeforeClick),typeof e.colorBack0AfterClick=="function"&&(t._elementEvents.colorBack0_onAfterClick=e.colorBack0AfterClick),typeof e.colorBack1BeforeClick=="function"&&(t._elementEvents.colorBack1_onBeforeClick=e.colorBack1BeforeClick),typeof e.colorBack1AfterClick=="function"&&(t._elementEvents.colorBack1_onAfterClick=e.colorBack1AfterClick),typeof e.colorBack2BeforeClick=="function"&&(t._elementEvents.colorBack2_onBeforeClick=e.colorBack2BeforeClick),typeof e.colorBack2AfterClick=="function"&&(t._elementEvents.colorBack2_onAfterClick=e.colorBack2AfterClick),typeof e.colorBack3BeforeClick=="function"&&(t._elementEvents.colorBack3_onBeforeClick=e.colorBack3BeforeClick),typeof e.colorBack3AfterClick=="function"&&(t._elementEvents.colorBack3_onAfterClick=e.colorBack3AfterClick),typeof e.colorBack4BeforeClick=="function"&&(t._elementEvents.colorBack4_onBeforeClick=e.colorBack4BeforeClick),typeof e.colorBack4AfterClick=="function"&&(t._elementEvents.colorBack4_onAfterClick=e.colorBack4AfterClick),typeof e.colorBack5BeforeClick=="function"&&(t._elementEvents.colorBack5_onBeforeClick=e.colorBack5BeforeClick),typeof e.colorBack5AfterClick=="function"&&(t._elementEvents.colorBack5_onAfterClick=e.colorBack5AfterClick),typeof e.colorBack6BeforeClick=="function"&&(t._elementEvents.colorBack6_onBeforeClick=e.colorBack6BeforeClick),typeof e.colorBack6AfterClick=="function"&&(t._elementEvents.colorBack6_onAfterClick=e.colorBack6AfterClick),typeof e.colorBack7BeforeClick=="function"&&(t._elementEvents.colorBack7_onBeforeClick=e.colorBack7BeforeClick),typeof e.colorBack7AfterClick=="function"&&(t._elementEvents.colorBack7_onAfterClick=e.colorBack7AfterClick),typeof e.colorBackRBeforeClick=="function"&&(t._elementEvents.colorBackRInput_onBeforeClick=e.colorBackRBeforeClick),typeof e.colorBackRAfterClick=="function"&&(t._elementEvents.colorBackRInput_onAfterClick=e.colorBackRAfterClick),typeof e.colorBackRBeforeInput=="function"&&(t._elementEvents.colorBackRInput_onBeforeInput=e.colorBackRBeforeInput),typeof e.colorBackRAfterInput=="function"&&(t._elementEvents.colorBackRInput_onAfterInput=e.colorBackRAfterInput),typeof e.colorBackRBeforeBlur=="function"&&(t._elementEvents.colorBackRInput_onBeforeBlur=e.colorBackRBeforeBlur),typeof e.colorBackRAfterBlur=="function"&&(t._elementEvents.colorBackRInput_onAfterBlur=e.colorBackRAfterBlur),typeof e.colorBackGBeforeClick=="function"&&(t._elementEvents.colorBackGInput_onBeforeClick=e.colorBackGBeforeClick),typeof e.colorBackGAfterClick=="function"&&(t._elementEvents.colorBackGInput_onAfterClick=e.colorBackGAfterClick),typeof e.colorBackGBeforeInput=="function"&&(t._elementEvents.colorBackGInput_onBeforeInput=e.colorBackGBeforeInput),typeof e.colorBackGAfterInput=="function"&&(t._elementEvents.colorBackGInput_onAfterInput=e.colorBackGAfterInput),typeof e.colorBackGBeforeBlur=="function"&&(t._elementEvents.colorBackGInput_onBeforeBlur=e.colorBackGBeforeBlur),typeof e.colorBackGAfterBlur=="function"&&(t._elementEvents.colorBackGInput_onAfterBlur=e.colorBackGAfterBlur),typeof e.colorBackBBeforeClick=="function"&&(t._elementEvents.colorBackBInput_onBeforeClick=e.colorBackBBeforeClick),typeof e.colorBackBAfterClick=="function"&&(t._elementEvents.colorBackBInput_onAfterClick=e.colorBackBAfterClick),typeof e.colorBackBBeforeInput=="function"&&(t._elementEvents.colorBackBInput_onBeforeInput=e.colorBackBBeforeInput),typeof e.colorBackBAfterInput=="function"&&(t._elementEvents.colorBackBInput_onAfterInput=e.colorBackBAfterInput),typeof e.colorBackBBeforeBlur=="function"&&(t._elementEvents.colorBackBInput_onBeforeBlur=e.colorBackBBeforeBlur),typeof e.colorBackBAfterBlur=="function"&&(t._elementEvents.colorBackBInput_onAfterBlur=e.colorBackBAfterBlur),typeof e.colorBackOpacityBeforeClick=="function"&&(t._elementEvents.colorBackOpacityInput_onBeforeClick=e.colorBackOpacityBeforeClick),typeof e.colorBackOpacityAfterClick=="function"&&(t._elementEvents.colorBackOpacityInput_onAfterClick=e.colorBackOpacityAfterClick),typeof e.colorBackOpacityBeforeInput=="function"&&(t._elementEvents.colorBackOpacityInput_onBeforeInput=e.colorBackOpacityBeforeInput),typeof e.colorBackOpacityAfterInput=="function"&&(t._elementEvents.colorBackOpacityInput_onAfterInput=e.colorBackOpacityAfterInput),typeof e.colorBackOpacityBeforeBlur=="function"&&(t._elementEvents.colorBackOpacityInput_onBeforeBlur=e.colorBackOpacityBeforeBlur),typeof e.colorBackOpacityAfterBlur=="function"&&(t._elementEvents.colorBackOpacityInput_onAfterBlur=e.colorBackOpacityAfterBlur),typeof e.formatClearBeforeClick=="function"&&(t._elementEvents.formatClearButton_onBeforeClick=e.formatClearBeforeClick),typeof e.formatClearAfterClick=="function"&&(t._elementEvents.formatClearButton_onAfterClick=e.formatClearAfterClick),typeof e.undoBeforeClick=="function"&&(t._elementEvents.undoButton_onBeforeClick=e.undoBeforeClick),typeof e.undoAfterClick=="function"&&(t._elementEvents.undoButton_onAfterClick=e.undoAfterClick),typeof e.redoBeforeClick=="function"&&(t._elementEvents.redoButton_onBeforeClick=e.redoBeforeClick),typeof e.redoAfterClick=="function"&&(t._elementEvents.redoButton_onAfterClick=e.redoAfterClick),typeof e.helpBeforeClick=="function"&&(t._elementEvents.helpButton_onBeforeClick=e.helpBeforeClick),typeof e.helpAfterClick=="function"&&(t._elementEvents.helpButton_onAfterClick=e.helpAfterClick),typeof e.modalBackBeforeClick=="function"&&(t._elementEvents.modalBack_onBeforeClick=e.modalBackBeforeClick),typeof e.modalBackAfterClick=="function"&&(t._elementEvents.modalBack_onAfterClick=e.modalBackAfterClick),typeof e.attLinkModalBeforeClick=="function"&&(t._elementEvents.attLinkModal_onBeforeClick=e.attLinkModalBeforeClick),typeof e.attLinkModalAfterClick=="function"&&(t._elementEvents.attLinkModal_onAfterClick=e.attLinkModalAfterClick),typeof e.attLinkTextBeforeInput=="function"&&(t._elementEvents.attLinkText_onBeforeInput=e.attLinkTextBeforeInput),typeof e.attLinkTextAfterInput=="function"&&(t._elementEvents.attLinkText_onAfterInput=e.attLinkTextAfterInput),typeof e.attLinkTextBeforeBlur=="function"&&(t._elementEvents.attLinkText_onBeforeBlur=e.attLinkTextBeforeBlur),typeof e.attLinkTextAfterBlur=="function"&&(t._elementEvents.attLinkText_onAfterBlur=e.attLinkTextAfterBlur),typeof e.attLinkHrefBeforeInput=="function"&&(t._elementEvents.attLinkHref_onBeforeInput=e.attLinkHrefBeforeInput),typeof e.attLinkHrefAfterInput=="function"&&(t._elementEvents.attLinkHref_onAfterInput=e.attLinkHrefAfterInput),typeof e.attLinkHrefBeforeBlur=="function"&&(t._elementEvents.attLinkHref_onBeforeBlur=e.attLinkHrefBeforeBlur),typeof e.attLinkHrefAfterBlur=="function"&&(t._elementEvents.attLinkHref_onAfterBlur=e.attLinkHrefAfterBlur),typeof e.attLinkInsertBeforeClick=="function"&&(t._elementEvents.attLinkInsertButton_onBeforeClick=e.attLinkInsertBeforeClick),typeof e.attLinkInsertAfterClick=="function"&&(t._elementEvents.attLinkInsertButton_onAfterClick=e.attLinkInsertAfterClick),typeof e.attFileModalBeforeClick=="function"&&(t._elementEvents.attFileModal_onBeforeClick=e.attFileModalBeforeClick),typeof e.attFileModalAfterClick=="function"&&(t._elementEvents.attFileModal_onAfterClick=e.attFileModalAfterClick),typeof e.attFileUploadBeforeClick=="function"&&(t._elementEvents.attFileUploadButton_onBeforeClick=e.attFileUploadBeforeClick),typeof e.attFileUploadAfterClick=="function"&&(t._elementEvents.attFileUploadButton_onAfterClick=e.attFileUploadAfterClick),typeof e.attFileUploadDivBeforeDragover=="function"&&(t._elementEvents.attFileUploadDiv_onBeforeDragover=e.attFileUploadDivBeforeDragover),typeof e.attFileUploadDivAfterDragover=="function"&&(t._elementEvents.attFileUploadDiv_onAfterDragover=e.attFileUploadDivAfterDragover),typeof e.attFileUploadDivBeforeDrop=="function"&&(t._elementEvents.attFileUploadDiv_onBeforeDrop=e.attFileUploadDivBeforeDrop),typeof e.attFileUploadDivAfterDrop=="function"&&(t._elementEvents.attFileUploadDiv_onAfterDrop=e.attFileUploadDivAfterDrop),typeof e.attFileUploadDivBeforeClick=="function"&&(t._elementEvents.attFileUploadDiv_onBeforeClick=e.attFileUploadDivBeforeClick),typeof e.attFileUploadDivAfterClick=="function"&&(t._elementEvents.attFileUploadDiv_onAfterClick=e.attFileUploadDivAfterClick),typeof e.attFileUploadBeforeInput=="function"&&(t._elementEvents.attFileUpload_onBeforeInput=e.attFileUploadBeforeInput),typeof e.attFileUploadAfterInput=="function"&&(t._elementEvents.attFileUpload_onAfterInput=e.attFileUploadAfterInput),typeof e.attFileUploadBeforeBlur=="function"&&(t._elementEvents.attFileUpload_onBeforeBlur=e.attFileUploadBeforeBlur),typeof e.attFileUploadAfterBlur=="function"&&(t._elementEvents.attFileUpload_onAfterBlur=e.attFileUploadAfterBlur),typeof e.attFileInsertBeforeClick=="function"&&(t._elementEvents.attFileInsertButton_onBeforeClick=e.attFileInsertBeforeClick),typeof e.attFileInsertAfterClick=="function"&&(t._elementEvents.attFileInsertButton_onAfterClick=e.attFileInsertAfterClick),typeof e.attLinkTooltipEditBeforeClick=="function"&&(t._elementEvents.attLinkTooltipEditButton_onBeforeClick=e.attLinkTooltipEditBeforeClick),typeof e.attLinkTooltipEditAfterClick=="function"&&(t._elementEvents.attLinkTooltipEditButton_onAfterClick=e.attLinkTooltipEditAfterClick),typeof e.attLinkTooltipUnlinkBeforeClick=="function"&&(t._elementEvents.attLinkTooltipUnlinkButton_onBeforeClick=e.attLinkTooltipUnlinkBeforeClick),typeof e.attLinkTooltipUnlinkAfterClick=="function"&&(t._elementEvents.attLinkTooltipUnlinkButton_onAfterClick=e.attLinkTooltipUnlinkAfterClick),typeof e.attImageModalBeforeClick=="function"&&(t._elementEvents.attImageModal_onBeforeClick=e.attImageModalBeforeClick),typeof e.attImageModalAfterClick=="function"&&(t._elementEvents.attImageModal_onAfterClick=e.attImageModalAfterClick),typeof e.attImageUploadViewBeforeDragover=="function"&&(t._elementEvents.attImageUploadButtonAndView_onBeforeDragover=e.attImageUploadViewBeforeDragover),typeof e.attImageUploadViewAfterDragover=="function"&&(t._elementEvents.attImageUploadButtonAndView_onAfterDragover=e.attImageUploadViewAfterDragover),typeof e.attImageUploadViewBeforeDrop=="function"&&(t._elementEvents.attImageUploadButtonAndView_onBeforeDrop=e.attImageUploadViewBeforeDrop),typeof e.attImageUploadViewAfterDrop=="function"&&(t._elementEvents.attImageUploadButtonAndView_onAfterDrop=e.attImageUploadViewAfterDrop),typeof e.attImageUploadViewBeforeClick=="function"&&(t._elementEvents.attImageUploadButtonAndView_onBeforeClick=e.attImageUploadViewBeforeClick),typeof e.attImageUploadViewAfterClick=="function"&&(t._elementEvents.attImageUploadButtonAndView_onAfterClick=e.attImageUploadViewAfterClick),typeof e.attImageViewPreBeforeClick=="function"&&(t._elementEvents.attImageViewPreButton_onBeforeClick=e.attImageViewPreBeforeClick),typeof e.attImageViewPreAfterClick=="function"&&(t._elementEvents.attImageViewPreButton_onAfterClick=e.attImageViewPreAfterClick),typeof e.attImageViewNextBeforeClick=="function"&&(t._elementEvents.attImageViewNextButton_onBeforeClick=e.attImageViewNextBeforeClick),typeof e.attImageViewNextAfterClick=="function"&&(t._elementEvents.attImageViewNextButton_onAfterClick=e.attImageViewNextAfterClick),typeof e.attImageUploadBeforeInput=="function"&&(t._elementEvents.attImageUpload_onBeforeInput=e.attImageUploadBeforeInput),typeof e.attImageUploadAfterInput=="function"&&(t._elementEvents.attImageUpload_onAfterInput=e.attImageUploadAfterInput),typeof e.attImageUploadBeforeBlur=="function"&&(t._elementEvents.attImageUpload_onBeforeBlur=e.attImageUploadBeforeBlur),typeof e.attImageUploadAfterBlur=="function"&&(t._elementEvents.attImageUpload_onAfterBlur=e.attImageUploadAfterBlur),typeof e.attImageURLBeforeInput=="function"&&(t._elementEvents.attImageURL_onBeforeInput=e.attImageURLBeforeInput),typeof e.attImageURLAfterInput=="function"&&(t._elementEvents.attImageURL_onAfterInput=e.attImageURLAfterInput),typeof e.attImageURLBeforeBlur=="function"&&(t._elementEvents.attImageURL_onBeforeBlur=e.attImageURLBeforeBlur),typeof e.attImageURLAfterBlur=="function"&&(t._elementEvents.attImageURL_onAfterBlur=e.attImageURLAfterBlur),typeof e.attImageInsertBeforeClick=="function"&&(t._elementEvents.attImageInsertButton_onBeforeClick=e.attImageInsertBeforeClick),typeof e.attImageInsertAfterClick=="function"&&(t._elementEvents.attImageInsertButton_onAfterClick=e.attImageInsertAfterClick),typeof e.attVideoModalBeforeClick=="function"&&(t._elementEvents.attVideoModal_onBeforeClick=e.attVideoModalBeforeClick),typeof e.attVideoModalAfterClick=="function"&&(t._elementEvents.attVideoModal_onAfterClick=e.attVideoModalAfterClick),typeof e.attVideoEmbedIdBeforeInput=="function"&&(t._elementEvents.attVideoEmbedId_onBeforeInput=e.attVideoEmbedIdBeforeInput),typeof e.attVideoEmbedIdAfterInput=="function"&&(t._elementEvents.attVideoEmbedId_onAfterInput=e.attVideoEmbedIdAfterInput),typeof e.attVideoEmbedIdBeforeBlur=="function"&&(t._elementEvents.attVideoEmbedId_onBeforeBlur=e.attVideoEmbedIdBeforeBlur),typeof e.attVideoEmbedIdAfterBlur=="function"&&(t._elementEvents.attVideoEmbedId_onAfterBlur=e.attVideoEmbedIdAfterBlur),typeof e.attVideoWidthBeforeInput=="function"&&(t._elementEvents.attVideoWidth_onBeforeInput=e.attVideoWidthBeforeInput),typeof e.attVideoWidthAfterInput=="function"&&(t._elementEvents.attVideoWidth_onAfterInput=e.attVideoWidthAfterInput),typeof e.attVideoWidthBeforeBlur=="function"&&(t._elementEvents.attVideoWidth_onBeforeBlur=e.attVideoWidthBeforeBlur),typeof e.attVideoWidthAfterBlur=="function"&&(t._elementEvents.attVideoWidth_onAfterBlur=e.attVideoWidthAfterBlur),typeof e.attVideoHeightBeforeInput=="function"&&(t._elementEvents.attVideoHeight_onBeforeInput=e.attVideoHeightBeforeInput),typeof e.attVideoHeightAfterInput=="function"&&(t._elementEvents.attVideoHeight_onAfterInput=e.attVideoHeightAfterInput),typeof e.attVideoHeightBeforeBlur=="function"&&(t._elementEvents.attVideoHeight_onBeforeBlur=e.attVideoHeightBeforeBlur),typeof e.attVideoHeightAfterBlur=="function"&&(t._elementEvents.attVideoHeight_onAfterBlur=e.attVideoHeightAfterBlur),typeof e.attVideoInsertBeforeClick=="function"&&(t._elementEvents.attVideoInsertButton_onBeforeClick=e.attVideoInsertBeforeClick),typeof e.attVideoInsertAfterClick=="function"&&(t._elementEvents.attVideoInsertButton_onAfterClick=e.attVideoInsertAfterClick),typeof e.attImageAndVideoTooltipWidthBeforeInput=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeInput=e.attImageAndVideoTooltipWidthBeforeInput),typeof e.attImageAndVideoTooltipWidthAfterInput=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterInput=e.attImageAndVideoTooltipWidthAfterInput),typeof e.attImageAndVideoTooltipWidthBeforeBlur=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeBlur=e.attImageAndVideoTooltipWidthBeforeBlur),typeof e.attImageAndVideoTooltipWidthAfterBlur=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterBlur=e.attImageAndVideoTooltipWidthAfterBlur),typeof e.attImageAndVideoTooltipWidthBeforeKeyup=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeKeyup=e.attImageAndVideoTooltipWidthBeforeKeyup),typeof e.attImageAndVideoTooltipWidthAfterKeyup=="function"&&(t._elementEvents.attImageAndVideoTooltipWidthInput_onAfterKeyup=e.attImageAndVideoTooltipWidthAfterKeyup),typeof e.attImageAndVideoTooltipFloatRadioNoneBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onBeforeClick=e.attImageAndVideoTooltipFloatRadioNoneBeforeClick),typeof e.attImageAndVideoTooltipFloatRadioNoneAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioNone_onAfterClick=e.attImageAndVideoTooltipFloatRadioNoneAfterClick),typeof e.attImageAndVideoTooltipFloatRadioLeftBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onBeforeClick=e.attImageAndVideoTooltipFloatRadioLeftBeforeClick),typeof e.attImageAndVideoTooltipFloatRadioLeftAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioLeft_onAfterClick=e.attImageAndVideoTooltipFloatRadioLeftAfterClick),typeof e.attImageAndVideoTooltipFloatRadioRightBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onBeforeClick=e.attImageAndVideoTooltipFloatRadioRightBeforeClick),typeof e.attImageAndVideoTooltipFloatRadioRightAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipFloatRadioRight_onAfterClick=e.attImageAndVideoTooltipFloatRadioRightAfterClick),typeof e.attImageAndVideoTooltipShapeRadioSquareBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onBeforeClick=e.attImageAndVideoTooltipShapeRadioSquareBeforeClick),typeof e.attImageAndVideoTooltipShapeRadioSquareAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioSquare_onAfterClick=e.attImageAndVideoTooltipShapeRadioSquareAfterClick),typeof e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onBeforeClick=e.attImageAndVideoTooltipShapeRadioRadiusBeforeClick),typeof e.attImageAndVideoTooltipShapeRadioRadiusAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioRadius_onAfterClick=e.attImageAndVideoTooltipShapeRadioRadiusAfterClick),typeof e.attImageAndVideoTooltipShapeRadioCircleBeforeClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onBeforeClick=e.attImageAndVideoTooltipShapeRadioCircleBeforeClick),typeof e.attImageAndVideoTooltipShapeRadioCircleAfterClick=="function"&&(t._elementEvents.attImageAndVideoTooltipShapeRadioCircle_onAfterClick=e.attImageAndVideoTooltipShapeRadioCircleAfterClick),typeof e.helpModalBeforeClick=="function"&&(t._elementEvents.helpModal_onBeforeClick=e.helpModalBeforeClick),typeof e.helpModalAfterClick=="function"&&(t._elementEvents.helpModal_onAfterClick=e.helpModalAfterClick),typeof e.placeholderBeforeClick=="function"&&(t._elementEvents.placeholder_onBeforeClick=e.placeholderBeforeClick),typeof e.placeholderAfterClick=="function"&&(t._elementEvents.placeholder_onAfterClick=e.placeholderAfterClick)),E(),a.value=!1,o.__hnoteDestroyed=!1,v("mounted",t)},H=()=>{c.unregisterReloadable(g);const o=F.value;if(!o||a.value){x.disconnect();return}if(!o.isConnected){a.value=!0,x.disconnect(),B.value=null;return}try{_.unmountNote(o)}catch(n){console.warn("[HNote] unmountNote skipped:",n)}x.disconnect(),a.value=!0,o.__hnoteDestroyed=!0,B.value=null};return l.onMounted(L),l.onBeforeUnmount(()=>{u.value=!1,H()}),l.watch(h,o=>{!u.value||a.value||(d(),v("responsive-change",o))}),l.watch(()=>e.modelValue,o=>{if(a.value||!B.value)return;const n=B.value.getNoteData();G(n,o)||B.value.setNoteData(o)}),l.watch(()=>e.visible,o=>{const n=!!o;n!==I.value&&(I.value=n)}),l.watch(()=>e.editMode,o=>{o&&o!==C.value&&(C.value=o,E())}),l.watch(()=>e.required,o=>{const n=!!o;n!==y.value&&(y.value=n)}),l.watch(()=>e.tabIndex,o=>{var t,f;const n=o===null||o===""?null:Number(o);if(n!==m.value){m.value=n;const r=(f=(t=B.value)==null?void 0:t._elements)==null?void 0:f.textarea;r&&(n==null?r.removeAttribute("tabIndex"):r.setAttribute("tabIndex",String(n)))}}),l.watch(()=>e.class,()=>{!u.value||a.value||d()}),l.watch(()=>[e.noteModeByDevice,e.toolPosition,e.toolDefaultLine,e.toolToggle],()=>{!u.value||a.value||d()}),l.watch(()=>[e.textareaWidth,e.textareaHeight,e.textareaMaxWidth,e.textareaMaxHeight,e.textareaHeightIsModify],()=>{!u.value||a.value||d()}),l.watch(()=>[e.placeholderIsVisible,e.placeholderAddTop,e.placeholderAddLeft,e.placeholderWidth,e.placeholderColor,e.placeholderBackgroundColor,e.placeholderTitle,e.placeholderTextContent],()=>{!u.value||a.value||d()}),l.watch(()=>[e.attFilePreventTypes,e.attFileAcceptTypes,e.attFileMaxSize,e.attImagePreventTypes,e.attImageAcceptTypes,e.attImageMaxSize],()=>{!u.value||a.value||d()}),l.watch(()=>[e.defaultFontSize,e.defaultLineHeight,e.defaultFontFamily,e.defaultToolFontFamily,e.addFontFamily,e.removeFontFamily,e.language,e.recodeLimit],()=>{!u.value||a.value||d()}),l.watch(()=>[e.sizeLevelDesktop,e.sizeLevelMobile,e.invertColor,e.color],()=>{!u.value||a.value||d()}),l.watch(()=>[e.usingParagraphStyle,e.usingBold,e.usingUnderline,e.usingItalic,e.usingUl,e.usingOl,e.usingTextAlign,e.usingAttLink,e.usingAttFile,e.usingAttImage,e.usingAttVideo,e.usingFontSize,e.usingLetterSpacing,e.usingLineHeight,e.usingFontFamily,e.usingColorText,e.usingColorBack,e.usingFormatClear,e.usingUndo,e.usingRedo,e.usingHelp,e.usingParagraphAllStyle,e.usingCharacterStyle,e.usingCharacterSize,e.usingAttachFile,e.usingDo],()=>{!u.value||a.value||d()}),{editorWrap:F,props:e,bindAttrs:z,responsiveClassList:V,visibleClass:O,requiredClass:D,editModeClass:M}}});function $(e,v,_,F,B,A){return l.openBlock(),l.createElementBlock("div",{ref:"editorWrap",class:l.normalizeClass(["hison-note","hison-wrap",...e.responsiveClassList,e.visibleClass,e.requiredClass,e.editModeClass]),style:l.normalizeStyle(e.props.style)},[l.createElementVNode("div",l.mergeProps({"data-vanillanote":""},e.bindAttrs),null,16)],6)}const Y=P._export_sfc(J,[["render",$]]);exports.default=Y;
|