hisonvue 1.1.2 → 1.1.3

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.
Files changed (63) hide show
  1. package/dist/{HAccordion-nste-gIh.js → HAccordion-Bc8LHllz.js} +1 -1
  2. package/dist/{HAccordion-DXkKdzdS.mjs → HAccordion-CYdLZCoO.mjs} +2 -2
  3. package/dist/{HBaggie-D9XHuvli.js → HBaggie-XgHTnkp2.js} +1 -1
  4. package/dist/{HBaggie-CNEAlhu4.mjs → HBaggie-Ywgz5nvV.mjs} +2 -2
  5. package/dist/{HBanner-B8DynVnX.js → HBanner-BcDU3AwV.js} +1 -1
  6. package/dist/{HBanner-Bh1c1LQ0.mjs → HBanner-CidWbYwG.mjs} +2 -2
  7. package/dist/{HButton-eTsFKKnM.js → HButton-B6af0nzb.js} +1 -1
  8. package/dist/{HButton-9dYGtsQK.mjs → HButton-Bf1WiQNr.mjs} +2 -2
  9. package/dist/{HCalendar-Cq5zpcAr.js → HCalendar-BiiLjDq7.js} +1 -1
  10. package/dist/{HCalendar-UVAkYS-W.mjs → HCalendar-CQs3-lsy.mjs} +1 -1
  11. package/dist/{HCaption-C51bVq01.mjs → HCaption-CJD8YqTy.mjs} +1 -1
  12. package/dist/{HCaption-uIKYMMan.js → HCaption-DxXZw4pH.js} +1 -1
  13. package/dist/{HChart-B5ejc-SG.mjs → HChart-Br_mONmh.mjs} +1 -1
  14. package/dist/{HChart-oEkG07OJ.js → HChart-CLxSeQfB.js} +1 -1
  15. package/dist/{HDrawer-DHJl-quY.mjs → HDrawer-C_zCEAoj.mjs} +1 -1
  16. package/dist/{HDrawer-Cc3jqUlQ.js → HDrawer-QSVck31B.js} +1 -1
  17. package/dist/{HDropdown-Dtw78Nkz.mjs → HDropdown-CzKF2cyh.mjs} +2 -2
  18. package/dist/{HDropdown-CU3zKxJ3.js → HDropdown-l_g96ufU.js} +1 -1
  19. package/dist/{HFileset-CthT1M21.mjs → HFileset-B6ezY9_O.mjs} +1 -1
  20. package/dist/{HFileset-BTxxYDz4.js → HFileset-CnM1z10l.js} +1 -1
  21. package/dist/{HGap-B-PVteyd.mjs → HGap--qHusiKo.mjs} +1 -1
  22. package/dist/{HGap-BWYEUzBg.js → HGap-D9TgBL0P.js} +1 -1
  23. package/dist/{HGrid-BdSoZ3Df.mjs → HGrid-DWFs2PVH.mjs} +1 -1
  24. package/dist/{HGrid-V2xOmqxp.js → HGrid-DZT6UYsc.js} +1 -1
  25. package/dist/{HImagebox-Cy1XmZOi.mjs → HImagebox-B6DkNa0s.mjs} +1 -1
  26. package/dist/{HImagebox-Rjlk6PO-.js → HImagebox-C-kUyV2a.js} +1 -1
  27. package/dist/HInput-DF_oPvVG.js +1 -0
  28. package/dist/HInput-Dih14jAK.mjs +1217 -0
  29. package/dist/{HInputGroup-C5CCa_H8.js → HInputGroup-CxiRFkpV.js} +1 -1
  30. package/dist/{HInputGroup-CVVIbprI.mjs → HInputGroup-Czqo_DBM.mjs} +1 -1
  31. package/dist/HLabel-BFuX1v46.js +1 -0
  32. package/dist/HLabel-x3QyAn-P.mjs +400 -0
  33. package/dist/{HLayout-BbYIgmYy.js → HLayout-DHwcSj6Y.js} +1 -1
  34. package/dist/{HLayout-DXRXlsWL.mjs → HLayout-DbIW32b3.mjs} +1 -1
  35. package/dist/{HList-BdC2kv9A.mjs → HList-B0_bqe2X.mjs} +2 -2
  36. package/dist/{HList-BbhTZa3d.js → HList-CGt8QYPb.js} +1 -1
  37. package/dist/{HModal-BuIgfi_-.js → HModal-Bbq2SffE.js} +1 -1
  38. package/dist/{HModal-4ABSx2me.mjs → HModal-DaQTId_h.mjs} +1 -1
  39. package/dist/{HNote-DSQJDOUy.mjs → HNote-BxjGgGT6.mjs} +1 -1
  40. package/dist/{HNote-h-lB6QZv.js → HNote-CHa35R5J.js} +1 -1
  41. package/dist/{HPagination-BqoDaVlP.mjs → HPagination-BZpSWEEW.mjs} +2 -2
  42. package/dist/{HPagination-CostpT0D.js → HPagination-OwLtKBDy.js} +1 -1
  43. package/dist/{HParagraph-BGOLdRFM.mjs → HParagraph-BiOV9AaX.mjs} +1 -1
  44. package/dist/{HParagraph-C_afHbvS.js → HParagraph-DA30mUOK.js} +1 -1
  45. package/dist/{HPopup-B7lscsTs.mjs → HPopup-CSWCs1bC.mjs} +1 -1
  46. package/dist/{HPopup-BBpZXoYa.js → HPopup-CXsLCjT7.js} +1 -1
  47. package/dist/{HSpinner--MbdeUop.js → HSpinner-B6mWhGkj.js} +1 -1
  48. package/dist/{HSpinner-CYbVuwRT.mjs → HSpinner-DEHdIFhp.mjs} +1 -1
  49. package/dist/{HTable-DI9-1vqI.js → HTable-BoUCH2Zf.js} +1 -1
  50. package/dist/{HTable-CJFft6Z1.mjs → HTable-By0pF5zV.mjs} +1 -1
  51. package/dist/hisonvue.cjs.js +1 -1
  52. package/dist/hisonvue.css +1 -1
  53. package/dist/hisonvue.d.ts +60 -0
  54. package/dist/hisonvue.es.js +2 -2
  55. package/dist/{index-lqOpF_Ng.mjs → index-BC8m9ivd.mjs} +1 -1
  56. package/dist/{index-nNWQ7mcU.js → index-CyZluKOE.js} +1 -1
  57. package/dist/{setButtonCssEvent-Ba1z9cap.mjs → setButtonCssEvent-DzPansSE.mjs} +1 -1
  58. package/dist/{setButtonCssEvent-DLH6Bh2r.js → setButtonCssEvent-fXHkzhY1.js} +1 -1
  59. package/package.json +1 -1
  60. package/dist/HInput-CEtGDqFm.mjs +0 -1103
  61. package/dist/HInput-DATgRssT.js +0 -1
  62. package/dist/HLabel-DZA3unsC.mjs +0 -369
  63. package/dist/HLabel-Dn0SXEHh.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as Ee, ref as o, computed as v, onMounted as Oe, onBeforeUnmount as Me, watch as i, nextTick as c, unref as ae, createElementBlock as j, openBlock as U, normalizeStyle as $, normalizeClass as P, createElementVNode as A, withKeys as ie, withModifiers as se, renderSlot as Te, toDisplayString as ue, createCommentVNode as xe, Fragment as Le, renderList as De } from "vue";
2
- import { T as He, w as b, D as ke, x as Ve, E as Re, y as Z, g as $e, u as ze, e as Be, t as Fe, b as re, h as N, r as qe, c as je, d as Ue } from "./index-lqOpF_Ng.mjs";
3
- import { a as Pe, r as Ge } from "./setButtonCssEvent-Ba1z9cap.mjs";
2
+ import { T as He, w as b, D as ke, x as Ve, E as Re, y as Z, g as $e, u as ze, e as Be, t as Fe, b as re, h as N, r as qe, c as je, d as Ue } from "./index-BC8m9ivd.mjs";
3
+ import { a as Pe, r as Ge } from "./setButtonCssEvent-DzPansSE.mjs";
4
4
  import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
5
  const Ke = {
6
6
  /**
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./index-nNWQ7mcU.js"),X=require("./setButtonCssEvent-DLH6Bh2r.js"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.js"),ge={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},toggleStyle:{type:[String,Object,Array],required:!1},menuStyle:{type:[String,Object,Array],required:!1},itemStyle:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},editMode:{type:String,default:o.EditMode.editable,validator:n=>o.EDIT_MODE_VALUES.includes(n)},placeholder:{type:String,default:""},trigger:{type:String,default:o.DropdownTrigger.click,validator:n=>o.DROPDOWN_TRIGGER_VALUES.includes(n)},modelValue:{type:Object,required:!0},maxHeight:{type:Number,default:240,validator:n=>Number.isFinite(n)&&n>=0},closeOnSelect:{type:Boolean,default:!0},textAlign:{type:String,default:o.TextAlign.left,validator:n=>o.TEXT_ALIGN_VALUES.includes(n)},animate:{type:Boolean,default:!0},duration:{type:Number,default:500,validator:n=>Number.isFinite(n)&&n>=0},easing:{type:String,default:"ease"},tabIndex:{type:[Number,String],default:null,validator:n=>n===null||n===""||!isNaN(+n)&&isFinite(+n)},zIndex:{type:Number,default:1050}},fe=t.defineComponent({name:"HDropdown",props:ge,inheritAttrs:!1,emits:["mounted","responsive-change","open","close","toggle-click","item-click","change","update:modelValue"],setup(n,{emit:i}){var K,Y;const g=n.id||o.getUUID(),V=`hdropdown:${g}`,s=t.ref(null),p=t.ref(null),a=o.useDevice(),r=t.ref(!1),c=t.ref(((K=n.modelValue)==null?void 0:K.options)??[]),d=t.ref(((Y=n.modelValue)==null?void 0:Y.value)??null),y=t.ref(!!n.visible),b=t.ref(n.editMode),S=t.computed(()=>b.value===o.EditMode.disable),C=t.computed(()=>b.value===o.EditMode.readonly),L=t.ref(n.placeholder||""),T=t.ref(n.trigger),x=t.ref(n.textAlign??o.TextAlign.left),Z=t.computed(()=>({textAlign:x.value})),E=t.ref(n.animate??!0),A=t.ref(n.duration??500),N=t.ref(n.easing??"ease"),k=t.ref(n.tabIndex!==null&&n.tabIndex!==""?Number(n.tabIndex):null),I=t.ref(n.zIndex??1100),J=t.computed(()=>({"--hdd-duration":`${A.value}ms`,"--hdd-easing":N.value})),Q=t.computed(()=>y.value?"":"hison-display-none"),_=t.computed(()=>S.value?"hison-disable":""),ee=t.computed(()=>C.value?"hison-readonly":""),z=t.ref([]),D=()=>{z.value=o.extractResponsiveClasses(o.toClassString(n.class)||"",a.value),o.addComponentNameToClass(z.value,"size",o.hisonCloser.componentStyle.size),o.addComponentNameToClass(z.value,"color","primary")},F=t.computed(()=>{const e=c.value.find(l=>l.value===d.value);return(e==null?void 0:e.label)??""}),h=t.ref(n.maxHeight??240),te=t.computed(()=>({maxHeight:`${h.value}px`,overflowY:"auto"})),M=t.ref(n.closeOnSelect??!0),ne=t.computed(()=>{const e=c.value.findIndex(l=>l.value===d.value);return e>=0?`opt-${e}`:void 0}),j=t.ref({}),w=t.ref(!0),B=0,le=120;function oe(){if(!p.value)return 0;const e=p.value.querySelector(".hison-dropdown-panel-inner");return e&&e.scrollHeight||0}function u(){if(!r.value||!s.value)return;const e=s.value.getBoundingClientRect(),l=window.innerHeight,v=e.width,m=e.left,W=l-e.bottom,se=e.top;w.value=W>=le;const re=oe(),ue=w.value?W-B:se-B,q=Math.max(0,Math.min(re||h.value,h.value,ue)),de=w.value?e.bottom+B:e.top-q-B,ce=getComputedStyle(s.value).fontSize||"inherit";j.value={position:"fixed",left:`${m}px`,top:`${de}px`,width:`${v}px`,height:w.value?"auto":`${q}px`,maxHeight:`${q}px`,overflowY:"auto",zIndex:String(I.value),fontSize:ce,transformOrigin:w.value?"top center":"bottom center"}}function H(){r.value&&u()}const U=e=>{if(!r.value)return;const l=e.target,v=!!s.value&&!!l&&s.value.contains(l),m=!!p.value&&!!l&&p.value.contains(l);!v&&!m&&O()},R=e=>{S.value||C.value||!y.value||r.value||(r.value=!0,t.nextTick(()=>{u(),requestAnimationFrame(()=>u())}),i("open",e??null,f.value))},O=e=>{var m;if(!r.value)return;const l=document.activeElement,v=p.value;v&&l&&v.contains(l)&&((m=s.value)==null||m.focus()),r.value=!1,i("close",e??null,f.value)},$=e=>r.value?O(e):R(e),ie=e=>{T.value==="click"&&(S.value||C.value||(i("toggle-click",e,f.value),$(e)))},ae=(e,l)=>{if(e.disabled||S.value||C.value)return;l&&i("item-click",l,f.value,e);const v=d.value;if(e.value!==v){d.value=e.value;const m={value:d.value,options:t.unref(c)};i("update:modelValue",m),i("change",v,d.value,f.value)}M.value&&O(l)},f=t.ref(null),P=()=>{o.hisonCloser.component.dropdownList[g]&&o.hisonCloser.component.dropdownList[g].isHisonvueComponent&&console.warn(`[Hisonvue] The dropdown ID is at risk of being duplicated. ${g}`),o.registerReloadable(V,()=>{G(),t.nextTick(P)}),s.value&&X.addButtonCssEvent(s.value),D(),f.value={isHisonvueComponent:!0,getId:()=>g,getType:()=>"dropdown",isVisible:()=>y.value,setVisible:e=>{y.value=e},getEditMode:()=>b.value,setEditMode:e=>{b.value=e},isOpen:()=>r.value,open:R,close:O,toggle:$,getValue:()=>d.value,setValue:e=>{d.value=e},getText:()=>F.value,getOptions:()=>t.unref(c),setOptions:e=>{c.value=Array.isArray(e)?e:[]},setTriggerType:e=>{T.value=e},getMaxHeight:()=>h.value,setMaxHeight:e=>{const l=Number(e);!Number.isFinite(l)||l<0||(h.value=l,t.nextTick(u))},isCloseOnSelect:()=>M.value,setCloseOnSelect:e=>{M.value=!!e},getTextAlign:()=>x.value,setTextAlign:e=>{(e===o.TextAlign.left||e===o.TextAlign.center||e===o.TextAlign.right)&&(x.value=e,t.nextTick(u))},getAnimate:()=>E.value,setAnimate:e=>{E.value=!!e},getDuration:()=>A.value,setDuration:e=>{const l=Number(e);Number.isFinite(l)&&l>=0&&(A.value=l)},getEasing:()=>N.value,setEasing:e=>{typeof e=="string"&&(N.value=e)},getTabIndex:()=>k.value,setTabIndex:e=>{k.value=e!=null?Number(e):null},getZIndex:()=>I.value,setZIndex:e=>{I.value=e},focus:()=>{var e;(e=s.value)==null||e.focus()},reload:()=>o.reloadHisonComponent(V)},o.hisonCloser.component.dropdownList[g]=f.value,document.addEventListener("mousedown",U),window.addEventListener("scroll",H,!0),window.addEventListener("resize",H),t.nextTick(u),i("mounted",f.value)},G=()=>{var e;o.unregisterReloadable(V);try{document.removeEventListener("mousedown",U)}catch{}try{window.removeEventListener("scroll",H,!0)}catch{}try{window.removeEventListener("resize",H)}catch{}s.value&&X.removeButtonCssEvent(s.value),(e=o.hisonCloser.component)!=null&&e.dropdownList&&delete o.hisonCloser.component.dropdownList[g]};return t.onMounted(P),t.onBeforeUnmount(G),t.watch(()=>n.modelValue,e=>{!e||typeof e!="object"||(Array.isArray(e.options)&&(c.value=e.options),d.value=e.value,t.nextTick(u))},{deep:!0}),t.watch(a,e=>{D(),i("responsive-change",e),t.nextTick(u)}),t.watch(()=>n.visible,e=>{!!e!==y.value&&(y.value=!!e)}),t.watch(()=>n.editMode,e=>{e&&e!==b.value&&(b.value=e)}),t.watch(()=>n.placeholder,e=>{const l=e??"";l!==L.value&&(L.value=l)}),t.watch(()=>n.trigger,e=>{e&&e!==T.value&&(T.value=e)}),t.watch(()=>n.textAlign,e=>{(e===o.TextAlign.left||e===o.TextAlign.center||e===o.TextAlign.right)&&e!==x.value&&(x.value=e,t.nextTick(u))}),t.watch(()=>n.animate,e=>{const l=!!e;l!==E.value&&(E.value=l)}),t.watch(()=>n.duration,e=>{const l=Number(e);Number.isFinite(l)&&l>=0&&l!==A.value&&(A.value=l)}),t.watch(()=>n.easing,e=>{const l=typeof e=="string"?e:"ease";l!==N.value&&(N.value=l)}),t.watch(()=>n.tabIndex,e=>{const l=e===null||e===""?null:Number(e);l!==k.value&&(k.value=l)}),t.watch(()=>n.maxHeight,e=>{const l=Number(e);Number.isFinite(l)&&l>=0&&l!==h.value&&(h.value=l,t.nextTick(u))}),t.watch(()=>n.closeOnSelect,e=>{const l=!!e;l!==M.value&&(M.value=l)}),t.watch(()=>n.class,()=>{D(),t.nextTick(u)}),t.watch(()=>n.zIndex,e=>{const l=Number(e);Number.isFinite(l)&&l!==I.value&&(I.value=l)}),{toggleRef:s,menuRef:p,props:n,isDisabled:S,isReadonly:C,visibleClass:Q,disableClass:_,readonlyClass:ee,responsiveClassList:z,isOpen:r,trigger:T,selectedValue:d,selectedLabel:F,placeholder:L,activeDescId:ne,menuInlineStyle:te,options:c,animate:E,rootInlineStyle:J,tabIndex:k,fixedMenuStyle:j,openBelow:w,onToggleClick:ie,onSelect:ae,textAlignStyle:Z,open:R,close:O,toggle:$}}}),me=["aria-expanded","aria-disabled","tabindex"],pe={class:"hison-dropdown-label"},he=["aria-activedescendant","inert"],ye={class:"hison-dropdown-panel"},be=["aria-selected","onClick"],we={key:0,class:"hison-dropdown-empty"};function Se(n,i,g,V,s,p){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["hison-dropdown",...n.responsiveClassList,n.visibleClass,n.disableClass,n.readonlyClass,n.isOpen?"hison-open":"",n.animate?"":"hison-no-anim"]),style:t.normalizeStyle([n.rootInlineStyle,n.props.style]),onMouseenter:i[3]||(i[3]=a=>n.trigger==="hover"?n.open(a):null),onMouseleave:i[4]||(i[4]=a=>n.trigger==="hover"?n.close(a):null)},[t.createElementVNode("div",{ref:"toggleRef",class:t.normalizeClass(["hison-dropdown-toggle",[n.isDisabled?"hison-disable":"",n.isReadonly?"hison-readonly":""]]),"aria-expanded":n.isOpen,role:"combobox","aria-disabled":n.isDisabled||n.isReadonly?"true":"false",tabindex:n.tabIndex??void 0,style:t.normalizeStyle([n.textAlignStyle,n.props.toggleStyle]),onClick:i[0]||(i[0]=a=>n.onToggleClick(a)),onKeydown:[i[1]||(i[1]=t.withKeys(t.withModifiers(a=>n.onToggleClick(a),["prevent"]),["enter"])),i[2]||(i[2]=t.withKeys(t.withModifiers(a=>n.onToggleClick(a),["prevent"]),["space"]))]},[t.createElementVNode("span",pe,t.toDisplayString(n.selectedLabel||n.placeholder),1),t.renderSlot(n.$slots,"caret",{},()=>[i[5]||(i[5]=t.createElementVNode("span",{class:"hison-dropdown-caret"},"▾",-1))])],46,me),t.createElementVNode("div",{ref:"menuRef",class:t.normalizeClass(["hison-dropdown-menu hison-dropdown-menu-fixed",[n.isOpen?"hison-open":"",n.openBelow?"hison-open-below":"hison-open-above"]]),style:t.normalizeStyle([n.fixedMenuStyle,n.textAlignStyle,n.props.menuStyle]),role:"listbox","aria-activedescendant":n.activeDescId,inert:!n.isOpen||void 0},[t.createElementVNode("div",ye,[t.createElementVNode("div",{class:"hison-dropdown-panel-inner",style:t.normalizeStyle(n.menuInlineStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,(a,r)=>(t.openBlock(),t.createElementBlock("div",{key:`opt-${r}`,class:t.normalizeClass(["hison-dropdown-item",[a.disabled?"hison-disable":"",a.value===n.selectedValue?"hison-selected":""]]),style:t.normalizeStyle(n.props.itemStyle),role:"option","aria-selected":a.value===n.selectedValue?"true":"false",onClick:c=>n.onSelect(a,c)},t.toDisplayString(a.label),15,be))),128)),n.options.length===0?(t.openBlock(),t.createElementBlock("div",we,"No options")):t.createCommentVNode("",!0)],4)])],14,he)],38)}const Ce=ve._export_sfc(fe,[["render",Se]]);exports.default=Ce;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./index-CyZluKOE.js"),X=require("./setButtonCssEvent-fXHkzhY1.js"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.js"),ge={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},toggleStyle:{type:[String,Object,Array],required:!1},menuStyle:{type:[String,Object,Array],required:!1},itemStyle:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},editMode:{type:String,default:o.EditMode.editable,validator:n=>o.EDIT_MODE_VALUES.includes(n)},placeholder:{type:String,default:""},trigger:{type:String,default:o.DropdownTrigger.click,validator:n=>o.DROPDOWN_TRIGGER_VALUES.includes(n)},modelValue:{type:Object,required:!0},maxHeight:{type:Number,default:240,validator:n=>Number.isFinite(n)&&n>=0},closeOnSelect:{type:Boolean,default:!0},textAlign:{type:String,default:o.TextAlign.left,validator:n=>o.TEXT_ALIGN_VALUES.includes(n)},animate:{type:Boolean,default:!0},duration:{type:Number,default:500,validator:n=>Number.isFinite(n)&&n>=0},easing:{type:String,default:"ease"},tabIndex:{type:[Number,String],default:null,validator:n=>n===null||n===""||!isNaN(+n)&&isFinite(+n)},zIndex:{type:Number,default:1050}},fe=t.defineComponent({name:"HDropdown",props:ge,inheritAttrs:!1,emits:["mounted","responsive-change","open","close","toggle-click","item-click","change","update:modelValue"],setup(n,{emit:i}){var K,Y;const g=n.id||o.getUUID(),V=`hdropdown:${g}`,s=t.ref(null),p=t.ref(null),a=o.useDevice(),r=t.ref(!1),c=t.ref(((K=n.modelValue)==null?void 0:K.options)??[]),d=t.ref(((Y=n.modelValue)==null?void 0:Y.value)??null),y=t.ref(!!n.visible),b=t.ref(n.editMode),S=t.computed(()=>b.value===o.EditMode.disable),C=t.computed(()=>b.value===o.EditMode.readonly),L=t.ref(n.placeholder||""),T=t.ref(n.trigger),x=t.ref(n.textAlign??o.TextAlign.left),Z=t.computed(()=>({textAlign:x.value})),E=t.ref(n.animate??!0),A=t.ref(n.duration??500),N=t.ref(n.easing??"ease"),k=t.ref(n.tabIndex!==null&&n.tabIndex!==""?Number(n.tabIndex):null),I=t.ref(n.zIndex??1100),J=t.computed(()=>({"--hdd-duration":`${A.value}ms`,"--hdd-easing":N.value})),Q=t.computed(()=>y.value?"":"hison-display-none"),_=t.computed(()=>S.value?"hison-disable":""),ee=t.computed(()=>C.value?"hison-readonly":""),z=t.ref([]),D=()=>{z.value=o.extractResponsiveClasses(o.toClassString(n.class)||"",a.value),o.addComponentNameToClass(z.value,"size",o.hisonCloser.componentStyle.size),o.addComponentNameToClass(z.value,"color","primary")},F=t.computed(()=>{const e=c.value.find(l=>l.value===d.value);return(e==null?void 0:e.label)??""}),h=t.ref(n.maxHeight??240),te=t.computed(()=>({maxHeight:`${h.value}px`,overflowY:"auto"})),M=t.ref(n.closeOnSelect??!0),ne=t.computed(()=>{const e=c.value.findIndex(l=>l.value===d.value);return e>=0?`opt-${e}`:void 0}),j=t.ref({}),w=t.ref(!0),B=0,le=120;function oe(){if(!p.value)return 0;const e=p.value.querySelector(".hison-dropdown-panel-inner");return e&&e.scrollHeight||0}function u(){if(!r.value||!s.value)return;const e=s.value.getBoundingClientRect(),l=window.innerHeight,v=e.width,m=e.left,W=l-e.bottom,se=e.top;w.value=W>=le;const re=oe(),ue=w.value?W-B:se-B,q=Math.max(0,Math.min(re||h.value,h.value,ue)),de=w.value?e.bottom+B:e.top-q-B,ce=getComputedStyle(s.value).fontSize||"inherit";j.value={position:"fixed",left:`${m}px`,top:`${de}px`,width:`${v}px`,height:w.value?"auto":`${q}px`,maxHeight:`${q}px`,overflowY:"auto",zIndex:String(I.value),fontSize:ce,transformOrigin:w.value?"top center":"bottom center"}}function H(){r.value&&u()}const U=e=>{if(!r.value)return;const l=e.target,v=!!s.value&&!!l&&s.value.contains(l),m=!!p.value&&!!l&&p.value.contains(l);!v&&!m&&O()},R=e=>{S.value||C.value||!y.value||r.value||(r.value=!0,t.nextTick(()=>{u(),requestAnimationFrame(()=>u())}),i("open",e??null,f.value))},O=e=>{var m;if(!r.value)return;const l=document.activeElement,v=p.value;v&&l&&v.contains(l)&&((m=s.value)==null||m.focus()),r.value=!1,i("close",e??null,f.value)},$=e=>r.value?O(e):R(e),ie=e=>{T.value==="click"&&(S.value||C.value||(i("toggle-click",e,f.value),$(e)))},ae=(e,l)=>{if(e.disabled||S.value||C.value)return;l&&i("item-click",l,f.value,e);const v=d.value;if(e.value!==v){d.value=e.value;const m={value:d.value,options:t.unref(c)};i("update:modelValue",m),i("change",v,d.value,f.value)}M.value&&O(l)},f=t.ref(null),P=()=>{o.hisonCloser.component.dropdownList[g]&&o.hisonCloser.component.dropdownList[g].isHisonvueComponent&&console.warn(`[Hisonvue] The dropdown ID is at risk of being duplicated. ${g}`),o.registerReloadable(V,()=>{G(),t.nextTick(P)}),s.value&&X.addButtonCssEvent(s.value),D(),f.value={isHisonvueComponent:!0,getId:()=>g,getType:()=>"dropdown",isVisible:()=>y.value,setVisible:e=>{y.value=e},getEditMode:()=>b.value,setEditMode:e=>{b.value=e},isOpen:()=>r.value,open:R,close:O,toggle:$,getValue:()=>d.value,setValue:e=>{d.value=e},getText:()=>F.value,getOptions:()=>t.unref(c),setOptions:e=>{c.value=Array.isArray(e)?e:[]},setTriggerType:e=>{T.value=e},getMaxHeight:()=>h.value,setMaxHeight:e=>{const l=Number(e);!Number.isFinite(l)||l<0||(h.value=l,t.nextTick(u))},isCloseOnSelect:()=>M.value,setCloseOnSelect:e=>{M.value=!!e},getTextAlign:()=>x.value,setTextAlign:e=>{(e===o.TextAlign.left||e===o.TextAlign.center||e===o.TextAlign.right)&&(x.value=e,t.nextTick(u))},getAnimate:()=>E.value,setAnimate:e=>{E.value=!!e},getDuration:()=>A.value,setDuration:e=>{const l=Number(e);Number.isFinite(l)&&l>=0&&(A.value=l)},getEasing:()=>N.value,setEasing:e=>{typeof e=="string"&&(N.value=e)},getTabIndex:()=>k.value,setTabIndex:e=>{k.value=e!=null?Number(e):null},getZIndex:()=>I.value,setZIndex:e=>{I.value=e},focus:()=>{var e;(e=s.value)==null||e.focus()},reload:()=>o.reloadHisonComponent(V)},o.hisonCloser.component.dropdownList[g]=f.value,document.addEventListener("mousedown",U),window.addEventListener("scroll",H,!0),window.addEventListener("resize",H),t.nextTick(u),i("mounted",f.value)},G=()=>{var e;o.unregisterReloadable(V);try{document.removeEventListener("mousedown",U)}catch{}try{window.removeEventListener("scroll",H,!0)}catch{}try{window.removeEventListener("resize",H)}catch{}s.value&&X.removeButtonCssEvent(s.value),(e=o.hisonCloser.component)!=null&&e.dropdownList&&delete o.hisonCloser.component.dropdownList[g]};return t.onMounted(P),t.onBeforeUnmount(G),t.watch(()=>n.modelValue,e=>{!e||typeof e!="object"||(Array.isArray(e.options)&&(c.value=e.options),d.value=e.value,t.nextTick(u))},{deep:!0}),t.watch(a,e=>{D(),i("responsive-change",e),t.nextTick(u)}),t.watch(()=>n.visible,e=>{!!e!==y.value&&(y.value=!!e)}),t.watch(()=>n.editMode,e=>{e&&e!==b.value&&(b.value=e)}),t.watch(()=>n.placeholder,e=>{const l=e??"";l!==L.value&&(L.value=l)}),t.watch(()=>n.trigger,e=>{e&&e!==T.value&&(T.value=e)}),t.watch(()=>n.textAlign,e=>{(e===o.TextAlign.left||e===o.TextAlign.center||e===o.TextAlign.right)&&e!==x.value&&(x.value=e,t.nextTick(u))}),t.watch(()=>n.animate,e=>{const l=!!e;l!==E.value&&(E.value=l)}),t.watch(()=>n.duration,e=>{const l=Number(e);Number.isFinite(l)&&l>=0&&l!==A.value&&(A.value=l)}),t.watch(()=>n.easing,e=>{const l=typeof e=="string"?e:"ease";l!==N.value&&(N.value=l)}),t.watch(()=>n.tabIndex,e=>{const l=e===null||e===""?null:Number(e);l!==k.value&&(k.value=l)}),t.watch(()=>n.maxHeight,e=>{const l=Number(e);Number.isFinite(l)&&l>=0&&l!==h.value&&(h.value=l,t.nextTick(u))}),t.watch(()=>n.closeOnSelect,e=>{const l=!!e;l!==M.value&&(M.value=l)}),t.watch(()=>n.class,()=>{D(),t.nextTick(u)}),t.watch(()=>n.zIndex,e=>{const l=Number(e);Number.isFinite(l)&&l!==I.value&&(I.value=l)}),{toggleRef:s,menuRef:p,props:n,isDisabled:S,isReadonly:C,visibleClass:Q,disableClass:_,readonlyClass:ee,responsiveClassList:z,isOpen:r,trigger:T,selectedValue:d,selectedLabel:F,placeholder:L,activeDescId:ne,menuInlineStyle:te,options:c,animate:E,rootInlineStyle:J,tabIndex:k,fixedMenuStyle:j,openBelow:w,onToggleClick:ie,onSelect:ae,textAlignStyle:Z,open:R,close:O,toggle:$}}}),me=["aria-expanded","aria-disabled","tabindex"],pe={class:"hison-dropdown-label"},he=["aria-activedescendant","inert"],ye={class:"hison-dropdown-panel"},be=["aria-selected","onClick"],we={key:0,class:"hison-dropdown-empty"};function Se(n,i,g,V,s,p){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["hison-dropdown",...n.responsiveClassList,n.visibleClass,n.disableClass,n.readonlyClass,n.isOpen?"hison-open":"",n.animate?"":"hison-no-anim"]),style:t.normalizeStyle([n.rootInlineStyle,n.props.style]),onMouseenter:i[3]||(i[3]=a=>n.trigger==="hover"?n.open(a):null),onMouseleave:i[4]||(i[4]=a=>n.trigger==="hover"?n.close(a):null)},[t.createElementVNode("div",{ref:"toggleRef",class:t.normalizeClass(["hison-dropdown-toggle",[n.isDisabled?"hison-disable":"",n.isReadonly?"hison-readonly":""]]),"aria-expanded":n.isOpen,role:"combobox","aria-disabled":n.isDisabled||n.isReadonly?"true":"false",tabindex:n.tabIndex??void 0,style:t.normalizeStyle([n.textAlignStyle,n.props.toggleStyle]),onClick:i[0]||(i[0]=a=>n.onToggleClick(a)),onKeydown:[i[1]||(i[1]=t.withKeys(t.withModifiers(a=>n.onToggleClick(a),["prevent"]),["enter"])),i[2]||(i[2]=t.withKeys(t.withModifiers(a=>n.onToggleClick(a),["prevent"]),["space"]))]},[t.createElementVNode("span",pe,t.toDisplayString(n.selectedLabel||n.placeholder),1),t.renderSlot(n.$slots,"caret",{},()=>[i[5]||(i[5]=t.createElementVNode("span",{class:"hison-dropdown-caret"},"▾",-1))])],46,me),t.createElementVNode("div",{ref:"menuRef",class:t.normalizeClass(["hison-dropdown-menu hison-dropdown-menu-fixed",[n.isOpen?"hison-open":"",n.openBelow?"hison-open-below":"hison-open-above"]]),style:t.normalizeStyle([n.fixedMenuStyle,n.textAlignStyle,n.props.menuStyle]),role:"listbox","aria-activedescendant":n.activeDescId,inert:!n.isOpen||void 0},[t.createElementVNode("div",ye,[t.createElementVNode("div",{class:"hison-dropdown-panel-inner",style:t.normalizeStyle(n.menuInlineStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,(a,r)=>(t.openBlock(),t.createElementBlock("div",{key:`opt-${r}`,class:t.normalizeClass(["hison-dropdown-item",[a.disabled?"hison-disable":"",a.value===n.selectedValue?"hison-selected":""]]),style:t.normalizeStyle(n.props.itemStyle),role:"option","aria-selected":a.value===n.selectedValue?"true":"false",onClick:c=>n.onSelect(a,c)},t.toDisplayString(a.label),15,be))),128)),n.options.length===0?(t.openBlock(),t.createElementBlock("div",we,"No options")):t.createCommentVNode("",!0)],4)])],14,he)],38)}const Ce=ve._export_sfc(fe,[["render",Se]]);exports.default=Ce;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as Me, ref as i, computed as N, onMounted as ze, onBeforeUnmount as Ne, watch as o, nextTick as _, resolveComponent as xe, createElementBlock as F, openBlock as T, normalizeClass as x, createElementVNode as O, normalizeStyle as $e, createCommentVNode as de, withModifiers as W, toDisplayString as X, Fragment as re, renderList as Ae, renderSlot as ee, createVNode as ke, withCtx as Be } from "vue";
2
- import { E as Ee, y as D, g as Le, l as y, u as Oe, j as ve, t as le, h as S, e as je, a as Re, b as fe, r as He, c as Ve, d as Pe } from "./index-lqOpF_Ng.mjs";
2
+ import { E as Ee, y as D, g as Le, l as y, u as Oe, j as ve, t as le, h as S, e as je, a as Re, b as fe, r as He, c as Ve, d as Pe } from "./index-BC8m9ivd.mjs";
3
3
  import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
4
  const Je = {
5
5
  /**
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),i=require("./index-nNWQ7mcU.js"),re=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},editMode:{type:String,default:i.EditMode.editable,validator:t=>i.EDIT_MODE_VALUES.includes(t)},modelValue:{type:Array,default:()=>[]},attId:{type:String,default:""},addButtonText:{type:String,default:"Add"},removeButtonText:{type:String,default:"x"},placeholder:{type:String,default:"There are no files."},enableDrop:{type:Boolean,default:!0},downloadHandler:{type:Function,default:void 0},multiCols:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},allowedTypes:{type:[String,Array],default:void 0,validator:t=>t===void 0||typeof t=="string"||Array.isArray(t)&&t.every(o=>typeof o=="string")},disallowedTypes:{type:[String,Array],default:void 0,validator:t=>t===void 0||typeof t=="string"||Array.isArray(t)&&t.every(o=>typeof o=="string")},maxFileSize:{type:Number,default:1/0,validator:t=>Number.isFinite(t)&&t>=0||t===1/0},maxTotalFileSize:{type:Number,default:1/0,validator:t=>Number.isFinite(t)&&t>=0||t===1/0},maxFileCount:{type:Number,default:0,validator:t=>Number.isInteger(t)&&t>=0},onDisallowedType:{type:Function,default:void 0},onMaxFileSizeExceeded:{type:Function,default:void 0},onMaxTotalSizeExceeded:{type:Function,default:void 0},tabIndex:{type:[Number,String],default:null,validator:t=>t===null||t===""||!isNaN(+t)&&isFinite(+t)}},fe=l.defineComponent({name:"HFileset",props:ce,emits:["mounted","responsive-change","update:modelValue","add","remove","focus","blur","download","change"],setup(t,{emit:o}){const F=l.ref(null),n=l.ref([...t.modelValue]),m=l.ref(null),c=t.id?t.id:i.getUUID(),N=`hbutton:${c}`,s=l.ref(t.visible),d=l.ref(t.editMode),B=l.computed(()=>d.value===i.EditMode.disable),X=l.computed(()=>d.value===i.EditMode.readonly),Y=l.computed(()=>d.value!==i.EditMode.editable?`hison-fileset-${d.value}`:""),Z=l.computed(()=>s.value?"":"hison-display-none"),j=l.ref(t.attId||""),E=l.ref(t.addButtonText||""),x=l.ref(t.removeButtonText||""),A=l.ref(t.placeholder??""),R=l.ref(!1),M=l.ref(t.enableDrop),$=l.ref(typeof t.downloadHandler=="function"?t.downloadHandler:void 0),O=l.ref(t.multiCols??!1),h=l.ref(t.multiple??!1),H=l.ref(!1),_=l.computed(()=>{if(y.value.length===0)return"";const e=new Set(w.value.map(u=>u.toLowerCase())),a=y.value.filter(u=>!e.has(u.toLowerCase()));return a.length>0?a.join(","):void 0}),y=l.ref(Array.isArray(t.allowedTypes)?t.allowedTypes:t.allowedTypes?t.allowedTypes.split(","):[]),w=l.ref(Array.isArray(t.disallowedTypes)?t.disallowedTypes:t.disallowedTypes?t.disallowedTypes.split(","):[]),b=l.ref(t.maxFileSize??i.hison.getMaxFilesetSize()),C=l.ref(t.maxTotalFileSize??i.hison.getMaxFilesetTotalSize()),D=l.ref(t.maxFileCount),g=l.ref(typeof t.onDisallowedType=="function"?t.onDisallowedType:void 0),z=l.ref(typeof t.onMaxFileSizeExceeded=="function"?t.onMaxFileSizeExceeded:void 0),k=l.ref(typeof t.onMaxTotalSizeExceeded=="function"?t.onMaxTotalSizeExceeded:void 0),L=l.ref(t.tabIndex!==null&&t.tabIndex!==""?Number(t.tabIndex):null),U=i.useDevice(),I=l.ref([]),P=()=>{I.value=i.extractResponsiveClasses(i.toClassString(t.class)||"",U.value),i.getIndexSpecificClassNameFromClassList(I.value,"col")===-1&&I.value.push("hison-col-12"),i.addComponentNameToClass(I.value,"size",i.hisonCloser.componentStyle.size),i.addComponentNameToClass(I.value,"color","primary")},ee=l.computed(()=>{const e=[];return e.push(...i.extractPrefixedClasses(i.toClassString(t.class)||"","size")),e.push(...i.extractPrefixedClasses(i.toClassString(t.class)||"","color")),e}),te=()=>{var e;(e=F.value)==null||e.click()},le=e=>{var r,S,f;const a=e.type,u="."+((r=e.name.split(".").pop())==null?void 0:r.toLowerCase());return y.value.length>0&&!y.value.some(T=>T===a||T===u)?(console.warn(`File type not in allowedTypes: ${a} / ${u}`),(S=g.value)==null||S.call(g,e,y.value,null),!1):w.value.length>0&&w.value.some(T=>T===a||T===u)?(console.warn(`File type is in disallowedTypes: ${a} / ${u}`),(f=g.value)==null||f.call(g,e,null,w.value),!1):!0},ae=e=>{var a;return typeof b.value=="number"&&Number.isFinite(b.value)&&e.size>b.value?(console.warn(`File too large: ${e.name}
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),i=require("./index-CyZluKOE.js"),re=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},editMode:{type:String,default:i.EditMode.editable,validator:t=>i.EDIT_MODE_VALUES.includes(t)},modelValue:{type:Array,default:()=>[]},attId:{type:String,default:""},addButtonText:{type:String,default:"Add"},removeButtonText:{type:String,default:"x"},placeholder:{type:String,default:"There are no files."},enableDrop:{type:Boolean,default:!0},downloadHandler:{type:Function,default:void 0},multiCols:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},allowedTypes:{type:[String,Array],default:void 0,validator:t=>t===void 0||typeof t=="string"||Array.isArray(t)&&t.every(o=>typeof o=="string")},disallowedTypes:{type:[String,Array],default:void 0,validator:t=>t===void 0||typeof t=="string"||Array.isArray(t)&&t.every(o=>typeof o=="string")},maxFileSize:{type:Number,default:1/0,validator:t=>Number.isFinite(t)&&t>=0||t===1/0},maxTotalFileSize:{type:Number,default:1/0,validator:t=>Number.isFinite(t)&&t>=0||t===1/0},maxFileCount:{type:Number,default:0,validator:t=>Number.isInteger(t)&&t>=0},onDisallowedType:{type:Function,default:void 0},onMaxFileSizeExceeded:{type:Function,default:void 0},onMaxTotalSizeExceeded:{type:Function,default:void 0},tabIndex:{type:[Number,String],default:null,validator:t=>t===null||t===""||!isNaN(+t)&&isFinite(+t)}},fe=l.defineComponent({name:"HFileset",props:ce,emits:["mounted","responsive-change","update:modelValue","add","remove","focus","blur","download","change"],setup(t,{emit:o}){const F=l.ref(null),n=l.ref([...t.modelValue]),m=l.ref(null),c=t.id?t.id:i.getUUID(),N=`hbutton:${c}`,s=l.ref(t.visible),d=l.ref(t.editMode),B=l.computed(()=>d.value===i.EditMode.disable),X=l.computed(()=>d.value===i.EditMode.readonly),Y=l.computed(()=>d.value!==i.EditMode.editable?`hison-fileset-${d.value}`:""),Z=l.computed(()=>s.value?"":"hison-display-none"),j=l.ref(t.attId||""),E=l.ref(t.addButtonText||""),x=l.ref(t.removeButtonText||""),A=l.ref(t.placeholder??""),R=l.ref(!1),M=l.ref(t.enableDrop),$=l.ref(typeof t.downloadHandler=="function"?t.downloadHandler:void 0),O=l.ref(t.multiCols??!1),h=l.ref(t.multiple??!1),H=l.ref(!1),_=l.computed(()=>{if(y.value.length===0)return"";const e=new Set(w.value.map(u=>u.toLowerCase())),a=y.value.filter(u=>!e.has(u.toLowerCase()));return a.length>0?a.join(","):void 0}),y=l.ref(Array.isArray(t.allowedTypes)?t.allowedTypes:t.allowedTypes?t.allowedTypes.split(","):[]),w=l.ref(Array.isArray(t.disallowedTypes)?t.disallowedTypes:t.disallowedTypes?t.disallowedTypes.split(","):[]),b=l.ref(t.maxFileSize??i.hison.getMaxFilesetSize()),C=l.ref(t.maxTotalFileSize??i.hison.getMaxFilesetTotalSize()),D=l.ref(t.maxFileCount),g=l.ref(typeof t.onDisallowedType=="function"?t.onDisallowedType:void 0),z=l.ref(typeof t.onMaxFileSizeExceeded=="function"?t.onMaxFileSizeExceeded:void 0),k=l.ref(typeof t.onMaxTotalSizeExceeded=="function"?t.onMaxTotalSizeExceeded:void 0),L=l.ref(t.tabIndex!==null&&t.tabIndex!==""?Number(t.tabIndex):null),U=i.useDevice(),I=l.ref([]),P=()=>{I.value=i.extractResponsiveClasses(i.toClassString(t.class)||"",U.value),i.getIndexSpecificClassNameFromClassList(I.value,"col")===-1&&I.value.push("hison-col-12"),i.addComponentNameToClass(I.value,"size",i.hisonCloser.componentStyle.size),i.addComponentNameToClass(I.value,"color","primary")},ee=l.computed(()=>{const e=[];return e.push(...i.extractPrefixedClasses(i.toClassString(t.class)||"","size")),e.push(...i.extractPrefixedClasses(i.toClassString(t.class)||"","color")),e}),te=()=>{var e;(e=F.value)==null||e.click()},le=e=>{var r,S,f;const a=e.type,u="."+((r=e.name.split(".").pop())==null?void 0:r.toLowerCase());return y.value.length>0&&!y.value.some(T=>T===a||T===u)?(console.warn(`File type not in allowedTypes: ${a} / ${u}`),(S=g.value)==null||S.call(g,e,y.value,null),!1):w.value.length>0&&w.value.some(T=>T===a||T===u)?(console.warn(`File type is in disallowedTypes: ${a} / ${u}`),(f=g.value)==null||f.call(g,e,null,w.value),!1):!0},ae=e=>{var a;return typeof b.value=="number"&&Number.isFinite(b.value)&&e.size>b.value?(console.warn(`File too large: ${e.name}
2
2
  Max size: ${b.value} Byte`),(a=z.value)==null||a.call(z,e,e.size,b.value),!1):!0},q=e=>{var S;let a=e.filter(f=>ae(f)&&le(f));!h.value&&a.length>1&&(a=[a[0]]);let u=!1;const r=[];for(const f of a){let V=n.value.filter(v=>!v.isDeleted),T=V.length;const Q=V.reduce((v,p)=>v+(p.fileSize??0),0)+f.size;if(C.value>0&&Q>C.value){(S=k.value)==null||S.call(k,f,Q,C.value),console.warn("Total file size exceeds limit.");break}if(!h.value){for(const v of V)if(v.isNew){const p=n.value.indexOf(v);p!==-1&&n.value.splice(p,1)}else v.isDeleted=!0;u=!0}if(h.value&&D.value>0&&T>=D.value){const v=n.value.findIndex(p=>!p.isDeleted);if(v!==-1){const p=n.value[v];p.isNew?n.value.splice(v,1):p.isDeleted=!0,u=!0}else{console.warn("No replaceable file found for maxFileCount overflow.");break}}const W={fileName:f.name,fileSize:f.size,extension:f.name.split(".").pop(),file:f,isNew:!0};n.value.push(W),u=!0,r.push(W)}u&&(H.value=!0,o("update:modelValue",[...n.value]),r.length&&o("add",i.hison.utils.deepCopyObject(r),m.value),o("change",i.hison.utils.deepCopyObject(n.value),m.value))},ie=e=>{if(d.value!==i.EditMode.editable)return;const a=n.value[e];a.fileId?a.isDeleted=!0:n.value.splice(e,1),H.value=!0,o("update:modelValue",[...n.value]),o("remove",i.hison.utils.deepCopyObject(a),e,m.value),o("change",i.hison.utils.deepCopyObject(n.value),m.value)},oe=e=>{if(d.value!==i.EditMode.editable)return;const a=e.target.files;!a||a.length===0||(q(Array.from(a)),l.nextTick(()=>{F.value&&(F.value.value="")}))},ne=l.computed(()=>n.value.filter(e=>!e.isDeleted)),se=e=>{if(o("download",i.hison.utils.deepCopyObject(e),m.value),$.value){$.value(e);return}let a="",u=e.fileName||"download";if(e.file){const S=new Blob([e.file],{type:e.file.type});a=URL.createObjectURL(S)}else if(e.filePath)a=e.filePath;else{console.warn("Download failed: no filePath or file object.");return}const r=document.createElement("a");r.href=a,r.download=u,r.click(),e.file&&URL.revokeObjectURL(a)},ue=e=>{!M.value||d.value!==i.EditMode.editable||(R.value=!0)},de=e=>{var a;R.value=!1,!(!M.value||d.value!==i.EditMode.editable)&&(a=e.dataTransfer)!=null&&a.files&&q(Array.from(e.dataTransfer.files))},J=e=>{if(!e||!e.getIsDataModel||!e.getIsDataModel()||e.getRowCount()===0)return;const a=e.getRows();n.value=[...a]},G=()=>{i.hisonCloser.component.filesetList[c]&&i.hisonCloser.component.filesetList[c].isHisonvueComponent&&console.warn(`[Hisonvue] The fileset ID is at risk of being duplicated. ${c}`),i.registerReloadable(N,()=>{K(),l.nextTick(G)}),F.value&&(P(),m.value={isHisonvueComponent:!0,getId:()=>c,getType:()=>"fileset",isVisible:()=>s.value,setVisible:e=>{s.value=e},getEditMode:()=>d.value,setEditMode:e=>{var a;d.value=e,(a=i.hisonCloser.component.buttonList[`hison_fileset_add_button_${c}`])==null||a.setDisable(B.value)},getValue:()=>i.hison.utils.deepCopyObject(n.value),setValue:e=>{n.value=i.hison.utils.deepCopyObject([...e])},getDataModel:()=>n.value.length>0?new i.hison.data.DataModel(n.value):null,setDataModel:e=>{J(e)},load:e=>{e&&e.getIsDataModel&&e.getIsDataModel()?J(e):n.value=i.hison.utils.deepCopyObject([...e])},getAttId:()=>j.value,setAttId:e=>{j.value=e},getAddButtonText:()=>E.value,setAddButtonText:e=>{E.value=e},getRemoveButtonText:()=>x.value,setRemoveButtonText:e=>{x.value=e},isEnableDrop:()=>M.value,setEnableDrop:e=>{M.value=e},setDownloadHandler:e=>{$.value=e},isMultiCols:()=>O.value,setMultiCols:e=>{O.value=e},isMultiple:()=>h.value,setMultiple:e=>{h.value=e},getPlaceholder:()=>A.value,setPlaceholder:e=>{A.value=e},getAllowedTypes:()=>y.value,setAllowedTypes:e=>{y.value=e},getDisallowedTypes:()=>w.value,setDisallowedTypes:e=>{w.value=e},getMaxFileSize:()=>b.value,setMaxFileSize:e=>{b.value=e},getMaxTotalFileSize:()=>C.value,setMaxTotalFileSize:e=>{C.value=e},getMaxFileCount:()=>D.value,setMaxFileCount:e=>{D.value=e},setOnDisallowedType:e=>{g.value=e},setOnMaxFileSizeExceeded:e=>{z.value=e},setOnMaxTotalSizeExceeded:e=>{k.value=e},isModified:()=>H.value,setModified:e=>{H.value=e},getTabIndex:()=>L.value,setTabIndex:e=>{L.value=e!=null?Number(e):null},focus:()=>{var e;(e=i.hisonCloser.component.buttonList[`hison_fileset_add_button_${c}`])==null||e.focus()},reload:()=>i.reloadHisonComponent(N)},i.hisonCloser.component.filesetList[c]=m.value,o("mounted",m.value))},K=()=>{i.unregisterReloadable(N),delete i.hisonCloser.component.filesetList[c]};return l.onMounted(G),l.onBeforeUnmount(K),l.watch(()=>t.modelValue,e=>{JSON.stringify(e)!==JSON.stringify(n.value)&&(n.value=[...e])},{deep:!0}),l.watch(U,e=>{P(),o("responsive-change",e)}),l.watch(()=>t.visible,e=>{const a=!!e;a!==s.value&&(s.value=a)}),l.watch(()=>t.editMode,e=>{e&&e!==d.value&&(d.value=e,l.nextTick(()=>{var a;return(a=i.hisonCloser.component.buttonList[`hison_fileset_add_button_${c}`])==null?void 0:a.setDisable(B.value)}))}),l.watch(()=>t.attId,e=>{const a=e??"";a!==j.value&&(j.value=a)}),l.watch(()=>t.addButtonText,e=>{const a=e??"";a!==E.value&&(E.value=a)}),l.watch(()=>t.removeButtonText,e=>{const a=e??"";a!==x.value&&(x.value=a)}),l.watch(()=>t.placeholder,e=>{const a=e??"";a!==A.value&&(A.value=a)}),l.watch(()=>t.enableDrop,e=>{const a=!!e;a!==M.value&&(M.value=a)}),l.watch(()=>t.downloadHandler,e=>{const a=typeof e=="function"?e:void 0;a!==$.value&&($.value=a)}),l.watch(()=>t.multiCols,e=>{const a=!!e;a!==O.value&&(O.value=a)}),l.watch(()=>t.multiple,e=>{const a=!!e;a!==h.value&&(h.value=a)}),l.watch(()=>t.allowedTypes,e=>{const u=(Array.isArray(e)?e:typeof e=="string"?e.split(","):[]).map(r=>String(r).trim()).filter(Boolean);JSON.stringify(u)!==JSON.stringify(y.value)&&(y.value=u)}),l.watch(()=>t.disallowedTypes,e=>{const u=(Array.isArray(e)?e:typeof e=="string"?e.split(","):[]).map(r=>String(r).trim()).filter(Boolean);JSON.stringify(u)!==JSON.stringify(w.value)&&(w.value=u)}),l.watch(()=>t.maxFileSize,e=>{const a=e===1/0?1/0:Number(e);(Number.isFinite(a)||a===1/0)&&a!==b.value&&(b.value=a)}),l.watch(()=>t.maxTotalFileSize,e=>{const a=e===1/0?1/0:Number(e);(Number.isFinite(a)||a===1/0)&&a!==C.value&&(C.value=a)}),l.watch(()=>t.maxFileCount,e=>{const a=Number(e);Number.isInteger(a)&&a>=0&&a!==D.value&&(D.value=a)}),l.watch(()=>t.onDisallowedType,e=>{const a=typeof e=="function"?e:void 0;a!==g.value&&(g.value=a)}),l.watch(()=>t.onMaxFileSizeExceeded,e=>{const a=typeof e=="function"?e:void 0;a!==z.value&&(z.value=a)}),l.watch(()=>t.onMaxTotalSizeExceeded,e=>{const a=typeof e=="function"?e:void 0;a!==k.value&&(k.value=a)}),l.watch(()=>t.tabIndex,e=>{const a=e===null||e===""?null:Number(e);a!==L.value&&(L.value=a)}),l.watch(()=>t.class,()=>{P()}),{fileInputRef:F,id:c,props:t,visibleFiles:ne,filesetMethods:m,responsiveClassList:I,buttonClassList:ee,visibleClass:Z,editModeClass:Y,disable:B,readonly:X,addButtonText:E,removeButtonText:x,placeholder:A,isDragging:R,multiCols:O,multiple:h,accept:_,tabIndex:L,openFileDialog:te,removeFile:ie,onFileChange:oe,downloadFile:se,handleDragEnter:ue,handleDrop:de}}}),ve={key:0,class:"file-placeholder"},me=["onClick"],ye=["disabled","onClick"],be={class:"hison-fileset-remove-text"},ge={key:0,class:"add-btn-container"},pe={key:1,class:"hison-fileset-add-text"},he=["id","accept","multiple"];function we(t,o,F,n,m,c){const N=l.resolveComponent("HButton");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["hison-wrapper",...t.responsiveClassList,t.visibleClass])},[l.createElementVNode("div",{class:l.normalizeClass(["hison-fileset",t.editModeClass]),style:l.normalizeStyle(t.props.style)},[l.createElementVNode("div",{class:l.normalizeClass(["file-list-wrapper",{"drag-over":t.isDragging}]),onDragover:o[0]||(o[0]=l.withModifiers(()=>{},["prevent"])),onDragenter:o[1]||(o[1]=l.withModifiers((...s)=>t.handleDragEnter&&t.handleDragEnter(...s),["prevent"])),onDragleave:o[2]||(o[2]=l.withModifiers(s=>t.isDragging=!1,["prevent"])),onDrop:o[3]||(o[3]=l.withModifiers((...s)=>t.handleDrop&&t.handleDrop(...s),["prevent"]))},[l.createElementVNode("div",{class:l.normalizeClass(["file-list",{"multi-cols":t.multiCols}])},[t.visibleFiles.length===0&&t.placeholder?(l.openBlock(),l.createElementBlock("div",ve,l.toDisplayString(t.placeholder),1)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(t.visibleFiles,(s,d)=>(l.openBlock(),l.createElementBlock("div",{key:d,class:"file-item"},[l.renderSlot(t.$slots,"file-icon",{file:s}),l.createElementVNode("span",{class:l.normalizeClass(["file-name",{clickable:s.file||s.filePath}]),onClick:B=>t.downloadFile(s)},l.toDisplayString(s.fileName),11,me),t.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[t.$slots["remove-button"]?l.renderSlot(t.$slots,"remove-button",{key:0,file:s,index:d,remove:()=>t.removeFile(d),disable:t.disable}):(l.openBlock(),l.createElementBlock("button",{key:1,class:l.normalizeClass(["delete-btn",{"hison-disable":t.disable}]),disabled:t.disable,onClick:B=>t.removeFile(d)},[l.createElementVNode("span",be,l.toDisplayString(t.removeButtonText),1)],10,ye))],64))]))),128))],2)],34),t.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",ge,[l.createVNode(N,{onClick:t.openFileDialog,onFocus:o[4]||(o[4]=s=>t.$emit("focus",t.filesetMethods)),onBlur:o[5]||(o[5]=s=>t.$emit("blur",t.filesetMethods)),id:`hison_fileset_add_button_${t.id}`,disable:t.disable,class:l.normalizeClass([...t.buttonClassList]),tabindex:t.tabIndex??void 0},{default:l.withCtx(()=>[t.$slots["add-button"]?l.renderSlot(t.$slots,"add-button",{key:0,add:t.openFileDialog}):(l.openBlock(),l.createElementBlock("span",pe,l.toDisplayString(t.addButtonText),1))]),_:3},8,["onClick","id","disable","class","tabindex"])])),l.createElementVNode("input",{id:`hison_fileset_${t.id}`,ref:"fileInputRef",type:"file",accept:t.accept||void 0,multiple:t.multiple,hidden:"",onChange:o[6]||(o[6]=(...s)=>t.onFileChange&&t.onFileChange(...s))},null,40,he)],6)],2)}const Ce=re._export_sfc(fe,[["render",we]]);exports.default=Ce;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as D, ref as n, computed as i, onMounted as P, onBeforeUnmount as q, watch as s, nextTick as O, createElementBlock as S, openBlock as L, normalizeClass as U, createElementVNode as j, normalizeStyle as T, createCommentVNode as M } from "vue";
2
- import { z as Y, A as K, B as J, f as b, g as Q, u as X, F as V, o as Z, h as c, e as ee, t as te, b as W, a as le, r as ne, c as se, d as ae } from "./index-lqOpF_Ng.mjs";
2
+ import { z as Y, A as K, B as J, f as b, g as Q, u as X, F as V, o as Z, h as c, e as ee, t as te, b as W, a as le, r as ne, c as se, d as ae } from "./index-BC8m9ivd.mjs";
3
3
  import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
4
  const ie = {
5
5
  /**
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),n=require("./index-nNWQ7mcU.js"),A=require("./_plugin-vue_export-helper-BHFhmbuH.js"),R={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},border:{type:Boolean,default:!1},backgroundType:{type:String,default:n.BackgroundType.empty,validator:l=>n.BACKGROUND_TYPE_VALUES.includes(l)},line:{type:String,default:"none",validator:l=>n.H_GAP_RULE_VALUES.includes(l)},lineStyle:{type:String,default:"solid",validator:l=>n.H_GAP_LINE_STYLE_VALUES.includes(l)},lineWidth:{type:[Number,String],default:1},lineColor:{type:String,default:""}},V=t.defineComponent({name:"HGap",props:R,inheritAttrs:!1,emits:["mounted","responsive-change"],setup(l,{emit:y}){const h=t.ref(null),g=t.ref(null),a=l.id?l.id:n.getUUID(),f=`hgap:${a}`,C=n.useDevice(),u=t.ref(l.visible),c=t.ref(l.border??!1),d=t.ref(l.backgroundType??n.BackgroundType.empty),v=t.ref(l.line),i=t.ref(l.lineStyle||"solid"),r=t.ref(l.lineWidth??1),p=t.ref(l.lineColor||""),b=t.computed(()=>{var w,$;const e=String(p.value||"").trim(),o=n.getHexCodeFromColorText(e);if(o)return o;if(e)return e;const k=n.getSpecificClassValueFromClassList(s.value,"color"),B=k?n.getHexCodeFromColorText(k):null;return B||(($=(w=n.hisonCloser)==null?void 0:w.componentStyle)==null?void 0:$.mutedColor)||"#999999"}),S=t.computed(()=>{const e=r.value;return typeof e=="number"?`${e}px`:String(e||"1px")}),z=t.computed(()=>({borderTop:`${S.value} ${i.value} ${b.value}`})),E=t.computed(()=>({borderLeft:`${S.value} ${i.value} ${b.value}`})),H=t.computed(()=>u.value?"":"hison-display-none"),N=t.computed(()=>c.value?"hison-border":""),_=t.computed(()=>{switch(d.value){case n.BackgroundType.empty:return"hison-bg-empty";case n.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),s=t.ref([]),m=()=>{s.value=n.extractResponsiveClasses(n.toClassString(l.class)||"",C.value),n.addComponentNameToClass(s.value,"size",n.hisonCloser.componentStyle.size),n.addComponentNameToClass(s.value,"color","primary"),n.getIndexSpecificClassNameFromClassList(s.value,"col")===-1&&s.value.push("hison-col-12")},L=()=>{n.hisonCloser.component.gapList[a]&&n.hisonCloser.component.gapList[a].isHisonvueComponent&&console.warn(`[Hisonvue] The gap ID is at risk of being duplicated. ${a}`),n.registerReloadable(f,()=>{T(),t.nextTick(L)}),m(),g.value={isHisonvueComponent:!0,getId:()=>a,getType:()=>"gap",isVisible:()=>u.value,setVisible:e=>{u.value=e},isBorder:()=>c.value,setBorder:e=>{c.value=e},getBackgroundType:()=>d.value,setBackgroundType:e=>{d.value=e},getLine:()=>v.value,setLine:e=>{v.value=e},getLineStyle:()=>i.value,setLineStyle:e=>{i.value=e},getLineWidth:()=>r.value,setLineWidth:e=>{r.value=e},getLineColor:()=>p.value,setLineColor:e=>{p.value=e??""},reload:()=>n.reloadHisonComponent(f)},n.hisonCloser.component.gapList[a]=g.value,y("mounted",g.value)},T=()=>{n.unregisterReloadable(f),delete n.hisonCloser.component.gapList[a]};return t.onMounted(L),t.onBeforeUnmount(T),t.watch(C,e=>{m(),y("responsive-change",e)}),t.watch(()=>l.visible,e=>{const o=!!e;o!==u.value&&(u.value=o)}),t.watch(()=>l.border,e=>{const o=!!e;o!==c.value&&(c.value=o)}),t.watch(()=>l.backgroundType,e=>{e&&e!==d.value&&(d.value=e)}),t.watch(()=>l.line,e=>{(e==="none"||e==="horizontal"||e==="vertical")&&e!==v.value&&(v.value=e)}),t.watch(()=>l.lineStyle,e=>{["solid","dashed","dotted","double","groove","ridge","inset","outset"].includes(e)&&e!==i.value&&(i.value=e)}),t.watch(()=>l.lineWidth,e=>{const o=typeof e=="number"&&Number.isFinite(e)&&e>=0||typeof e=="string"?e:r.value;o!==r.value&&(r.value=o)}),t.watch(()=>l.lineColor,e=>{const o=(e??"").toString();o!==p.value&&(p.value=o)}),t.watch(()=>l.class,()=>{m()}),{gapRef:h,props:l,line:v,visibleClass:H,borderClass:N,backgroundTypeClass:_,responsiveClassList:s,horizontalStyle:z,verticalStyle:E}}});function U(l,y,h,g,a,f){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["hison-wrapper",...l.responsiveClassList,l.visibleClass])},[t.createElementVNode("div",{ref:"gapRef",class:t.normalizeClass(["hison-gap",l.borderClass,l.backgroundTypeClass]),style:t.normalizeStyle(l.props.style)},[l.line==="horizontal"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"hison-gap-line-horizontal",style:t.normalizeStyle(l.horizontalStyle)},null,4)):l.line==="vertical"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"hison-gap-line-vertical",style:t.normalizeStyle(l.verticalStyle)},null,4)):t.createCommentVNode("",!0)],6)],2)}const x=A._export_sfc(V,[["render",U]]);exports.default=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),n=require("./index-CyZluKOE.js"),A=require("./_plugin-vue_export-helper-BHFhmbuH.js"),R={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},border:{type:Boolean,default:!1},backgroundType:{type:String,default:n.BackgroundType.empty,validator:l=>n.BACKGROUND_TYPE_VALUES.includes(l)},line:{type:String,default:"none",validator:l=>n.H_GAP_RULE_VALUES.includes(l)},lineStyle:{type:String,default:"solid",validator:l=>n.H_GAP_LINE_STYLE_VALUES.includes(l)},lineWidth:{type:[Number,String],default:1},lineColor:{type:String,default:""}},V=t.defineComponent({name:"HGap",props:R,inheritAttrs:!1,emits:["mounted","responsive-change"],setup(l,{emit:y}){const h=t.ref(null),g=t.ref(null),a=l.id?l.id:n.getUUID(),f=`hgap:${a}`,C=n.useDevice(),u=t.ref(l.visible),c=t.ref(l.border??!1),d=t.ref(l.backgroundType??n.BackgroundType.empty),v=t.ref(l.line),i=t.ref(l.lineStyle||"solid"),r=t.ref(l.lineWidth??1),p=t.ref(l.lineColor||""),b=t.computed(()=>{var w,$;const e=String(p.value||"").trim(),o=n.getHexCodeFromColorText(e);if(o)return o;if(e)return e;const k=n.getSpecificClassValueFromClassList(s.value,"color"),B=k?n.getHexCodeFromColorText(k):null;return B||(($=(w=n.hisonCloser)==null?void 0:w.componentStyle)==null?void 0:$.mutedColor)||"#999999"}),S=t.computed(()=>{const e=r.value;return typeof e=="number"?`${e}px`:String(e||"1px")}),z=t.computed(()=>({borderTop:`${S.value} ${i.value} ${b.value}`})),E=t.computed(()=>({borderLeft:`${S.value} ${i.value} ${b.value}`})),H=t.computed(()=>u.value?"":"hison-display-none"),N=t.computed(()=>c.value?"hison-border":""),_=t.computed(()=>{switch(d.value){case n.BackgroundType.empty:return"hison-bg-empty";case n.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),s=t.ref([]),m=()=>{s.value=n.extractResponsiveClasses(n.toClassString(l.class)||"",C.value),n.addComponentNameToClass(s.value,"size",n.hisonCloser.componentStyle.size),n.addComponentNameToClass(s.value,"color","primary"),n.getIndexSpecificClassNameFromClassList(s.value,"col")===-1&&s.value.push("hison-col-12")},L=()=>{n.hisonCloser.component.gapList[a]&&n.hisonCloser.component.gapList[a].isHisonvueComponent&&console.warn(`[Hisonvue] The gap ID is at risk of being duplicated. ${a}`),n.registerReloadable(f,()=>{T(),t.nextTick(L)}),m(),g.value={isHisonvueComponent:!0,getId:()=>a,getType:()=>"gap",isVisible:()=>u.value,setVisible:e=>{u.value=e},isBorder:()=>c.value,setBorder:e=>{c.value=e},getBackgroundType:()=>d.value,setBackgroundType:e=>{d.value=e},getLine:()=>v.value,setLine:e=>{v.value=e},getLineStyle:()=>i.value,setLineStyle:e=>{i.value=e},getLineWidth:()=>r.value,setLineWidth:e=>{r.value=e},getLineColor:()=>p.value,setLineColor:e=>{p.value=e??""},reload:()=>n.reloadHisonComponent(f)},n.hisonCloser.component.gapList[a]=g.value,y("mounted",g.value)},T=()=>{n.unregisterReloadable(f),delete n.hisonCloser.component.gapList[a]};return t.onMounted(L),t.onBeforeUnmount(T),t.watch(C,e=>{m(),y("responsive-change",e)}),t.watch(()=>l.visible,e=>{const o=!!e;o!==u.value&&(u.value=o)}),t.watch(()=>l.border,e=>{const o=!!e;o!==c.value&&(c.value=o)}),t.watch(()=>l.backgroundType,e=>{e&&e!==d.value&&(d.value=e)}),t.watch(()=>l.line,e=>{(e==="none"||e==="horizontal"||e==="vertical")&&e!==v.value&&(v.value=e)}),t.watch(()=>l.lineStyle,e=>{["solid","dashed","dotted","double","groove","ridge","inset","outset"].includes(e)&&e!==i.value&&(i.value=e)}),t.watch(()=>l.lineWidth,e=>{const o=typeof e=="number"&&Number.isFinite(e)&&e>=0||typeof e=="string"?e:r.value;o!==r.value&&(r.value=o)}),t.watch(()=>l.lineColor,e=>{const o=(e??"").toString();o!==p.value&&(p.value=o)}),t.watch(()=>l.class,()=>{m()}),{gapRef:h,props:l,line:v,visibleClass:H,borderClass:N,backgroundTypeClass:_,responsiveClassList:s,horizontalStyle:z,verticalStyle:E}}});function U(l,y,h,g,a,f){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["hison-wrapper",...l.responsiveClassList,l.visibleClass])},[t.createElementVNode("div",{ref:"gapRef",class:t.normalizeClass(["hison-gap",l.borderClass,l.backgroundTypeClass]),style:t.normalizeStyle(l.props.style)},[l.line==="horizontal"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"hison-gap-line-horizontal",style:t.normalizeStyle(l.horizontalStyle)},null,4)):l.line==="vertical"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"hison-gap-line-vertical",style:t.normalizeStyle(l.verticalStyle)},null,4)):t.createCommentVNode("",!0)],6)],2)}const x=A._export_sfc(V,[["render",U]]);exports.default=x;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as V, ref as f, computed as L, onMounted as _, onBeforeUnmount as x, watch as F, triggerRef as I, nextTick as M, createElementBlock as N, openBlock as T, normalizeStyle as U, normalizeClass as $, createElementVNode as P, mergeProps as K } from "vue";
2
- import { G as j, I as W, J as Y, K as Z, L as J, M as X, h as v, g as Q, u as ee, e as R, t as H, o as y, a as te, l as m, F as z, v as g, r as ie, c as le, d as re } from "./index-lqOpF_Ng.mjs";
2
+ import { G as j, I as W, J as Y, K as Z, L as J, M as X, h as v, g as Q, u as ee, e as R, t as H, o as y, a as te, l as m, F as z, v as g, r as ie, c as le, d as re } from "./index-BC8m9ivd.mjs";
3
3
  import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
4
  const ne = {
5
5
  modelValue: Array,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),l=require("./index-nNWQ7mcU.js"),A=require("./_plugin-vue_export-helper-BHFhmbuH.js"),L={modelValue:Array,id:{type:String,required:!0},columns:{type:Array,required:!0},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object],required:!1},name:{type:String,required:!1},locked:{type:Boolean,default:!1},lockedColor:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},redoable:{type:Boolean,default:!0},redoCount:{type:Number,required:!1},visible:{type:Boolean,default:!0},headerVisible:{type:Boolean,default:!0},rownumVisible:{type:Boolean,default:!0},rownumSize:{type:String,required:!1},rownumLockedColor:{type:Boolean,default:!1},statusVisible:{type:Boolean,default:!0},statusLockedColor:{type:Boolean,default:!1},selectionPolicy:{type:String,required:!1,validator:e=>l.SELECTION_POLICY_VALUES.includes(e)},nullValue:{type:String,required:!1},dateFormat:{type:String,required:!1,validator:e=>l.GRID_DATE_FORMAT_VALUES.includes(e)},monthFormat:{type:String,required:!1,validator:e=>l.GRID_MONTH_FORMAT_VALUES.includes(e)},alterRow:{type:Boolean,default:!0},frozenColCount:{type:Number,required:!1},frozenRowCount:{type:Number,required:!1},sortable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},allCheckable:{type:Boolean,default:!0},checkedValue:{type:String,required:!1},uncheckedValue:{type:String,required:!1},width:{type:String,required:!1},height:{type:String,required:!1},margin:{type:String,required:!1},padding:{type:String,required:!1},sizeLevel:{type:Number,required:!1},verticalAlign:{type:String,required:!1,validator:e=>l.GRID_VERTICAL_ALIGN_VALUES.includes(e)},cellFontSize:{type:String,required:!1},cellMinHeight:{type:String,required:!1},horizenBorderSize:{type:Number,required:!1},verticalBorderSize:{type:Number,required:!1},gridFontFamily:{type:String,required:!1},editorFontFamily:{type:String,required:!1},overflowWrap:{type:String,required:!1},wordBreak:{type:String,required:!1},whiteSpace:{type:String,required:!1},linkHasUnderLine:{type:Boolean,required:!1},invertColor:{type:Boolean,default:!1},color:{type:String,required:!1,validator:e=>l.COLOR_SET_VALUES.includes(e)||l.isCssColorLike(e)},gridBorderColor:{type:String,required:!1},headerCellBackColor:{type:String,required:!1},headerCellBorderColor:{type:String,required:!1},headerCellFontColor:{type:String,required:!1},footerCellBackColor:{type:String,required:!1},footerCellBorderColor:{type:String,required:!1},footerCellFontColor:{type:String,required:!1},bodyBackColor:{type:String,required:!1},bodyCellBackColor:{type:String,required:!1},bodyCellBorderColor:{type:String,required:!1},bodyCellFontColor:{type:String,required:!1},editorBackColor:{type:String,required:!1},editorFontColor:{type:String,required:!1},selectCellBackColor:{type:String,required:!1},selectCellFontColor:{type:String,required:!1},selectColBackColor:{type:String,required:!1},selectColFontColor:{type:String,required:!1},selectRowBackColor:{type:String,required:!1},selectRowFontColor:{type:String,required:!1},mouseoverCellBackColor:{type:String,required:!1},mouseoverCellFontColor:{type:String,required:!1},lockCellBackColor:{type:String,required:!1},lockCellFontColor:{type:String,required:!1},alterRowBackColor:{type:String,required:!1},alterRowFontColor:{type:String,required:!1},buttonFontColor:{type:String,required:!1},buttonBorderColor:{type:String,required:!1},buttonBackColor:{type:String,required:!1},buttonHoverFontColor:{type:String,required:!1},buttonHoverBackColor:{type:String,required:!1},buttonActiveFontColor:{type:String,required:!1},buttonActiveBackColor:{type:String,required:!1},linkFontColor:{type:String,required:!1},linkHoverFontColor:{type:String,required:!1},linkActiveFontColor:{type:String,required:!1},linkVisitedFontColor:{type:String,required:!1},linkFocusFontColor:{type:String,required:!1}},R={activeCell:Function,activeCells:Function,activeRow:Function,activeRows:Function,activeCol:Function,activeCols:Function,beforeChange:Function,afterChange:Function,beforeClickCell:Function,afterClickCell:Function,clickSelect:Function,clickCheckbox:Function,clickButton:Function,clickLink:Function,beforeDblClickCell:Function,afterDblClickCell:Function,beforeClickHeader:Function,afterClickHeader:Function,beforeDblClickHeader:Function,afterDblClickHeader:Function,beforeEditEnter:Function,afterEditEnter:Function,editEnding:Function,clickFilter:Function,chooseFilter:Function,paste:Function,copy:Function,resize:Function,keydownEditor:Function,inputEditor:Function,keydownGrid:Function},z=r.defineComponent({name:"HGrid",props:{...L,...R},emits:["mounted","responsive-change"],setup(e,{emit:y}){const C=l.hisonCloser.grid,s=r.ref(null),t=r.ref(null),d=e.id?e.id:l.getUUID(),g=`hgrid:${d}`,S=l.useDevice(),v=r.ref(e.visible),E=r.computed(()=>v.value?"":"hison-display-none"),k=r.ref([]),w=["columns","id","class","style","visible"],b=r.ref(0),F=()=>{r.triggerRef(b)},q=r.ref(""),O=r.computed(()=>{b.value;const o=l.extractResponsiveClasses(l.toClassString(e.class)||"",S.value),n=l.getSpecificClassValueFromClassList(o,"color")??"primary",a=l.getSpecificClassValueFromClassList(o,"size");l.getIndexSpecificClassNameFromClassList(o,"col")===-1&&o.push("hison-col-12"),k.value=o;const i={};i["data-id"]=d;for(const[f,c]of Object.entries(e))w.includes(f)||c!=null&&(i[f.replace(/[A-Z]/g,u=>"-"+u.toLowerCase())]=String(c));return i["size-level"]=i["size-level"]&&l.hison.utils.isNumber(i["size-level"])?String(Math.min(Math.max(Number(i["size-level"]),1),9)):m(5,a),n&&!i.color&&(i.color=n),i.color&&(i.color=l.getHexCodeFromColorText(i.color)??i.color),(e.invertColor||l.hisonCloser.componentStyle.invertColor)&&(i["invert-color"]="true"),q.value=i.color,i}),m=(o,n)=>{switch(n=n??l.hisonCloser.componentStyle.size,n){case l.Size.s:o-=2;break;case l.Size.m:break;case l.Size.l:o+=2;break;case l.Size.xl:o+=3;break}return String(Math.min(Math.max(o,1),9))},h=()=>{if(l.registerReloadable(g,()=>{B(),F(),r.nextTick(h)}),C.init(),!s.value)return;const o=s.value.querySelector("[data-vanillagrid]");if(!o)return;e.columns.forEach(a=>{const i=document.createElement("div");i.setAttribute("data-col","");for(const f in a){const c=a[f];if(c!=null){const u=f.replace(/([A-Z])/g,"-$1").toLowerCase();i.setAttribute(u,String(c))}}o.appendChild(i)}),C.mountGrid(s.value),o.style.border="none",o.style.boxShadow=`0 0.5px 1px 0.5px ${q.value}`;const n=C.getGrid(d);if(n&&(n.getId=()=>d),t.value=n,t.value){t.value.isHisonvueComponent=!0,t.value.getId=()=>d,t.value.getType=()=>"grid","isGridVisible"in t.value&&delete t.value.isGridVisible,"setGridVisible"in t.value&&delete t.value.setGridVisible,t.value.isVisible=()=>v.value,t.value.setVisible=i=>{v.value=i},t.value.getDataModel=()=>new l.hison.data.DataModel(t.value.getValues()),t.value.setDataModel=i=>{if(!(!i||i.getRowCount()==0))return t.value.load(i)},t.value.reload=()=>l.reloadHisonComponent(g);const a=t.value.load.bind(t.value);t.value.load=i=>i&&i.getIsDataModel&&i.getIsDataModel()?a(i.getRows()):a(i)}t.value&&(typeof e.activeCell=="function"&&t.value.setOnActiveCell(e.activeCell),typeof e.activeCells=="function"&&t.value.setOnActiveCells(e.activeCells),typeof e.activeRow=="function"&&t.value.setOnActiveRow(e.activeRow),typeof e.activeRows=="function"&&t.value.setOnActiveRows(e.activeRows),typeof e.activeCol=="function"&&t.value.setOnActiveCol(e.activeCol),typeof e.activeCols=="function"&&t.value.setOnActiveCols(e.activeCols),typeof e.beforeChange=="function"&&t.value.setOnBeforeChange(e.beforeChange),typeof e.afterChange=="function"&&t.value.setOnAfterChange(e.afterChange),typeof e.beforeClickCell=="function"&&t.value.setOnBeforeClickCell(e.beforeClickCell),typeof e.afterClickCell=="function"&&t.value.setOnAfterClickCell(e.afterClickCell),typeof e.clickSelect=="function"&&t.value.setOnClickSelect(e.clickSelect),typeof e.clickCheckbox=="function"&&t.value.setOnClickCheckbox(e.clickCheckbox),typeof e.clickButton=="function"&&t.value.setOnClickButton(e.clickButton),typeof e.clickLink=="function"&&t.value.setOnClickLink(e.clickLink),typeof e.beforeDblClickCell=="function"&&t.value.setOnBeforeDblClickCell(e.beforeDblClickCell),typeof e.afterDblClickCell=="function"&&t.value.setOnAfterDblClickCell(e.afterDblClickCell),typeof e.beforeClickHeader=="function"&&t.value.setOnBeforeClickHeader(e.beforeClickHeader),typeof e.afterClickHeader=="function"&&t.value.setOnAfterClickHeader(e.afterClickHeader),typeof e.beforeDblClickHeader=="function"&&t.value.setOnBeforeDblClickHeader(e.beforeDblClickHeader),typeof e.afterDblClickHeader=="function"&&t.value.setOnAfterDblClickHeader(e.afterDblClickHeader),typeof e.beforeEditEnter=="function"&&t.value.setOnBeforeEditEnter(e.beforeEditEnter),typeof e.afterEditEnter=="function"&&t.value.setOnAfterEditEnter(e.afterEditEnter),typeof e.editEnding=="function"&&t.value.setOnEditEnding(e.editEnding),typeof e.clickFilter=="function"&&t.value.setOnClickFilter(e.clickFilter),typeof e.chooseFilter=="function"&&t.value.setOnChooseFilter(e.chooseFilter),typeof e.paste=="function"&&t.value.setOnPaste(e.paste),typeof e.copy=="function"&&t.value.setOnCopy(e.copy),typeof e.resize=="function"&&t.value.setOnResize(e.resize),typeof e.keydownEditor=="function"&&t.value.setOnKeydownEditor(e.keydownEditor),typeof e.inputEditor=="function"&&t.value.setOnInputEditor(e.inputEditor),typeof e.keydownGrid=="function"&&t.value.setOnKeydownGrid(e.keydownGrid)),y("mounted",t.value)},B=()=>{l.unregisterReloadable(g),s.value&&C.unmountGrid(s.value)};return r.onMounted(h),r.onBeforeUnmount(B),r.watch(S,o=>{const n=t.value;if(n){const a=l.extractResponsiveClasses(l.toClassString(e.class)||"",S.value),i=l.getSpecificClassValueFromClassList(a,"color"),f=l.getSpecificClassValueFromClassList(a,"size"),c=e.sizeLevel&&l.hison.utils.isNumber(String(e.sizeLevel))?String(Math.min(Math.max(Number(e.sizeLevel),1),9)):m(5,f);n.setGridSizeLevel(Number(c));let u="";i&&!e.color&&(u=i),u&&(u=l.getHexCodeFromColorText(u)??u,n.setGridColor(u),(e.invertColor||l.hisonCloser.componentStyle.invertColor)&&n.invertColor(!0))}y("responsive-change",o)}),r.watch(()=>e.visible,o=>{const n=!!o;n!==v.value&&(v.value=n)}),r.watch(()=>e.class,()=>{F()}),{editorWrap:s,props:e,bindAttrs:O,responsiveClassList:k,visibleClass:E}}});function H(e,y,C,s,t,d){return r.openBlock(),r.createElementBlock("div",{ref:"editorWrap",class:r.normalizeClass(["hison-grid","hison-wrapper",...e.responsiveClassList,e.visibleClass]),style:r.normalizeStyle(e.props.style)},[r.createElementVNode("div",r.mergeProps({"data-vanillagrid":""},e.bindAttrs),null,16)],6)}const p=A._export_sfc(z,[["render",H]]);exports.default=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),l=require("./index-CyZluKOE.js"),A=require("./_plugin-vue_export-helper-BHFhmbuH.js"),L={modelValue:Array,id:{type:String,required:!0},columns:{type:Array,required:!0},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object],required:!1},name:{type:String,required:!1},locked:{type:Boolean,default:!1},lockedColor:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},redoable:{type:Boolean,default:!0},redoCount:{type:Number,required:!1},visible:{type:Boolean,default:!0},headerVisible:{type:Boolean,default:!0},rownumVisible:{type:Boolean,default:!0},rownumSize:{type:String,required:!1},rownumLockedColor:{type:Boolean,default:!1},statusVisible:{type:Boolean,default:!0},statusLockedColor:{type:Boolean,default:!1},selectionPolicy:{type:String,required:!1,validator:e=>l.SELECTION_POLICY_VALUES.includes(e)},nullValue:{type:String,required:!1},dateFormat:{type:String,required:!1,validator:e=>l.GRID_DATE_FORMAT_VALUES.includes(e)},monthFormat:{type:String,required:!1,validator:e=>l.GRID_MONTH_FORMAT_VALUES.includes(e)},alterRow:{type:Boolean,default:!0},frozenColCount:{type:Number,required:!1},frozenRowCount:{type:Number,required:!1},sortable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},allCheckable:{type:Boolean,default:!0},checkedValue:{type:String,required:!1},uncheckedValue:{type:String,required:!1},width:{type:String,required:!1},height:{type:String,required:!1},margin:{type:String,required:!1},padding:{type:String,required:!1},sizeLevel:{type:Number,required:!1},verticalAlign:{type:String,required:!1,validator:e=>l.GRID_VERTICAL_ALIGN_VALUES.includes(e)},cellFontSize:{type:String,required:!1},cellMinHeight:{type:String,required:!1},horizenBorderSize:{type:Number,required:!1},verticalBorderSize:{type:Number,required:!1},gridFontFamily:{type:String,required:!1},editorFontFamily:{type:String,required:!1},overflowWrap:{type:String,required:!1},wordBreak:{type:String,required:!1},whiteSpace:{type:String,required:!1},linkHasUnderLine:{type:Boolean,required:!1},invertColor:{type:Boolean,default:!1},color:{type:String,required:!1,validator:e=>l.COLOR_SET_VALUES.includes(e)||l.isCssColorLike(e)},gridBorderColor:{type:String,required:!1},headerCellBackColor:{type:String,required:!1},headerCellBorderColor:{type:String,required:!1},headerCellFontColor:{type:String,required:!1},footerCellBackColor:{type:String,required:!1},footerCellBorderColor:{type:String,required:!1},footerCellFontColor:{type:String,required:!1},bodyBackColor:{type:String,required:!1},bodyCellBackColor:{type:String,required:!1},bodyCellBorderColor:{type:String,required:!1},bodyCellFontColor:{type:String,required:!1},editorBackColor:{type:String,required:!1},editorFontColor:{type:String,required:!1},selectCellBackColor:{type:String,required:!1},selectCellFontColor:{type:String,required:!1},selectColBackColor:{type:String,required:!1},selectColFontColor:{type:String,required:!1},selectRowBackColor:{type:String,required:!1},selectRowFontColor:{type:String,required:!1},mouseoverCellBackColor:{type:String,required:!1},mouseoverCellFontColor:{type:String,required:!1},lockCellBackColor:{type:String,required:!1},lockCellFontColor:{type:String,required:!1},alterRowBackColor:{type:String,required:!1},alterRowFontColor:{type:String,required:!1},buttonFontColor:{type:String,required:!1},buttonBorderColor:{type:String,required:!1},buttonBackColor:{type:String,required:!1},buttonHoverFontColor:{type:String,required:!1},buttonHoverBackColor:{type:String,required:!1},buttonActiveFontColor:{type:String,required:!1},buttonActiveBackColor:{type:String,required:!1},linkFontColor:{type:String,required:!1},linkHoverFontColor:{type:String,required:!1},linkActiveFontColor:{type:String,required:!1},linkVisitedFontColor:{type:String,required:!1},linkFocusFontColor:{type:String,required:!1}},R={activeCell:Function,activeCells:Function,activeRow:Function,activeRows:Function,activeCol:Function,activeCols:Function,beforeChange:Function,afterChange:Function,beforeClickCell:Function,afterClickCell:Function,clickSelect:Function,clickCheckbox:Function,clickButton:Function,clickLink:Function,beforeDblClickCell:Function,afterDblClickCell:Function,beforeClickHeader:Function,afterClickHeader:Function,beforeDblClickHeader:Function,afterDblClickHeader:Function,beforeEditEnter:Function,afterEditEnter:Function,editEnding:Function,clickFilter:Function,chooseFilter:Function,paste:Function,copy:Function,resize:Function,keydownEditor:Function,inputEditor:Function,keydownGrid:Function},z=r.defineComponent({name:"HGrid",props:{...L,...R},emits:["mounted","responsive-change"],setup(e,{emit:y}){const C=l.hisonCloser.grid,s=r.ref(null),t=r.ref(null),d=e.id?e.id:l.getUUID(),g=`hgrid:${d}`,S=l.useDevice(),v=r.ref(e.visible),E=r.computed(()=>v.value?"":"hison-display-none"),k=r.ref([]),w=["columns","id","class","style","visible"],b=r.ref(0),F=()=>{r.triggerRef(b)},q=r.ref(""),O=r.computed(()=>{b.value;const o=l.extractResponsiveClasses(l.toClassString(e.class)||"",S.value),n=l.getSpecificClassValueFromClassList(o,"color")??"primary",a=l.getSpecificClassValueFromClassList(o,"size");l.getIndexSpecificClassNameFromClassList(o,"col")===-1&&o.push("hison-col-12"),k.value=o;const i={};i["data-id"]=d;for(const[f,c]of Object.entries(e))w.includes(f)||c!=null&&(i[f.replace(/[A-Z]/g,u=>"-"+u.toLowerCase())]=String(c));return i["size-level"]=i["size-level"]&&l.hison.utils.isNumber(i["size-level"])?String(Math.min(Math.max(Number(i["size-level"]),1),9)):m(5,a),n&&!i.color&&(i.color=n),i.color&&(i.color=l.getHexCodeFromColorText(i.color)??i.color),(e.invertColor||l.hisonCloser.componentStyle.invertColor)&&(i["invert-color"]="true"),q.value=i.color,i}),m=(o,n)=>{switch(n=n??l.hisonCloser.componentStyle.size,n){case l.Size.s:o-=2;break;case l.Size.m:break;case l.Size.l:o+=2;break;case l.Size.xl:o+=3;break}return String(Math.min(Math.max(o,1),9))},h=()=>{if(l.registerReloadable(g,()=>{B(),F(),r.nextTick(h)}),C.init(),!s.value)return;const o=s.value.querySelector("[data-vanillagrid]");if(!o)return;e.columns.forEach(a=>{const i=document.createElement("div");i.setAttribute("data-col","");for(const f in a){const c=a[f];if(c!=null){const u=f.replace(/([A-Z])/g,"-$1").toLowerCase();i.setAttribute(u,String(c))}}o.appendChild(i)}),C.mountGrid(s.value),o.style.border="none",o.style.boxShadow=`0 0.5px 1px 0.5px ${q.value}`;const n=C.getGrid(d);if(n&&(n.getId=()=>d),t.value=n,t.value){t.value.isHisonvueComponent=!0,t.value.getId=()=>d,t.value.getType=()=>"grid","isGridVisible"in t.value&&delete t.value.isGridVisible,"setGridVisible"in t.value&&delete t.value.setGridVisible,t.value.isVisible=()=>v.value,t.value.setVisible=i=>{v.value=i},t.value.getDataModel=()=>new l.hison.data.DataModel(t.value.getValues()),t.value.setDataModel=i=>{if(!(!i||i.getRowCount()==0))return t.value.load(i)},t.value.reload=()=>l.reloadHisonComponent(g);const a=t.value.load.bind(t.value);t.value.load=i=>i&&i.getIsDataModel&&i.getIsDataModel()?a(i.getRows()):a(i)}t.value&&(typeof e.activeCell=="function"&&t.value.setOnActiveCell(e.activeCell),typeof e.activeCells=="function"&&t.value.setOnActiveCells(e.activeCells),typeof e.activeRow=="function"&&t.value.setOnActiveRow(e.activeRow),typeof e.activeRows=="function"&&t.value.setOnActiveRows(e.activeRows),typeof e.activeCol=="function"&&t.value.setOnActiveCol(e.activeCol),typeof e.activeCols=="function"&&t.value.setOnActiveCols(e.activeCols),typeof e.beforeChange=="function"&&t.value.setOnBeforeChange(e.beforeChange),typeof e.afterChange=="function"&&t.value.setOnAfterChange(e.afterChange),typeof e.beforeClickCell=="function"&&t.value.setOnBeforeClickCell(e.beforeClickCell),typeof e.afterClickCell=="function"&&t.value.setOnAfterClickCell(e.afterClickCell),typeof e.clickSelect=="function"&&t.value.setOnClickSelect(e.clickSelect),typeof e.clickCheckbox=="function"&&t.value.setOnClickCheckbox(e.clickCheckbox),typeof e.clickButton=="function"&&t.value.setOnClickButton(e.clickButton),typeof e.clickLink=="function"&&t.value.setOnClickLink(e.clickLink),typeof e.beforeDblClickCell=="function"&&t.value.setOnBeforeDblClickCell(e.beforeDblClickCell),typeof e.afterDblClickCell=="function"&&t.value.setOnAfterDblClickCell(e.afterDblClickCell),typeof e.beforeClickHeader=="function"&&t.value.setOnBeforeClickHeader(e.beforeClickHeader),typeof e.afterClickHeader=="function"&&t.value.setOnAfterClickHeader(e.afterClickHeader),typeof e.beforeDblClickHeader=="function"&&t.value.setOnBeforeDblClickHeader(e.beforeDblClickHeader),typeof e.afterDblClickHeader=="function"&&t.value.setOnAfterDblClickHeader(e.afterDblClickHeader),typeof e.beforeEditEnter=="function"&&t.value.setOnBeforeEditEnter(e.beforeEditEnter),typeof e.afterEditEnter=="function"&&t.value.setOnAfterEditEnter(e.afterEditEnter),typeof e.editEnding=="function"&&t.value.setOnEditEnding(e.editEnding),typeof e.clickFilter=="function"&&t.value.setOnClickFilter(e.clickFilter),typeof e.chooseFilter=="function"&&t.value.setOnChooseFilter(e.chooseFilter),typeof e.paste=="function"&&t.value.setOnPaste(e.paste),typeof e.copy=="function"&&t.value.setOnCopy(e.copy),typeof e.resize=="function"&&t.value.setOnResize(e.resize),typeof e.keydownEditor=="function"&&t.value.setOnKeydownEditor(e.keydownEditor),typeof e.inputEditor=="function"&&t.value.setOnInputEditor(e.inputEditor),typeof e.keydownGrid=="function"&&t.value.setOnKeydownGrid(e.keydownGrid)),y("mounted",t.value)},B=()=>{l.unregisterReloadable(g),s.value&&C.unmountGrid(s.value)};return r.onMounted(h),r.onBeforeUnmount(B),r.watch(S,o=>{const n=t.value;if(n){const a=l.extractResponsiveClasses(l.toClassString(e.class)||"",S.value),i=l.getSpecificClassValueFromClassList(a,"color"),f=l.getSpecificClassValueFromClassList(a,"size"),c=e.sizeLevel&&l.hison.utils.isNumber(String(e.sizeLevel))?String(Math.min(Math.max(Number(e.sizeLevel),1),9)):m(5,f);n.setGridSizeLevel(Number(c));let u="";i&&!e.color&&(u=i),u&&(u=l.getHexCodeFromColorText(u)??u,n.setGridColor(u),(e.invertColor||l.hisonCloser.componentStyle.invertColor)&&n.invertColor(!0))}y("responsive-change",o)}),r.watch(()=>e.visible,o=>{const n=!!o;n!==v.value&&(v.value=n)}),r.watch(()=>e.class,()=>{F()}),{editorWrap:s,props:e,bindAttrs:O,responsiveClassList:k,visibleClass:E}}});function H(e,y,C,s,t,d){return r.openBlock(),r.createElementBlock("div",{ref:"editorWrap",class:r.normalizeClass(["hison-grid","hison-wrapper",...e.responsiveClassList,e.visibleClass]),style:r.normalizeStyle(e.props.style)},[r.createElementVNode("div",r.mergeProps({"data-vanillagrid":""},e.bindAttrs),null,16)],6)}const p=A._export_sfc(z,[["render",H]]);exports.default=p;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as Me, ref as a, computed as v, onMounted as Be, onBeforeUnmount as Le, watch as u, nextTick as J, resolveComponent as Ae, createElementBlock as T, openBlock as w, normalizeStyle as ne, normalizeClass as E, createElementVNode as K, withModifiers as U, renderSlot as j, createCommentVNode as xe, toDisplayString as O, createBlock as ze, withCtx as Q, Fragment as Ee, createVNode as ie } from "vue";
2
- import { E as Ne, y as b, g as Ve, l as N, u as Re, j as ae, t as X, h as m, e as Ue, a as je, b as se, r as Oe, c as He } from "./index-lqOpF_Ng.mjs";
2
+ import { E as Ne, y as b, g as Ve, l as N, u as Re, j as ae, t as X, h as m, e as Ue, a as je, b as se, r as Oe, c as He } from "./index-BC8m9ivd.mjs";
3
3
  import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
4
  const We = {
5
5
  /**
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),a=require("./index-nNWQ7mcU.js"),me=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},imgStyle:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},editMode:{type:String,default:a.EditMode.editable,validator:t=>a.EDIT_MODE_VALUES.includes(t)},modelValue:{type:Object,default:null},attId:{type:String,default:""},addButtonText:{type:String,default:"Add"},removeButtonText:{type:String,default:"Remove"},placeholder:{type:String,default:"There is no image"},enableDrop:{type:Boolean,default:!0},allowedTypes:{type:[String,Array],default:()=>[".jpg",".jpeg",".png",".gif","image/*"]},disallowedTypes:{type:[String,Array],default:void 0},maxFileSize:{type:Number,default:1/0},border:{type:Boolean,default:!1},onDisallowedType:Function,onMaxFileSizeExceeded:Function,tabIndex:{type:[Number,String],default:null,validator:t=>t===null||t===""||!isNaN(+t)&&isFinite(+t)}},fe=o.defineComponent({name:"HImagebox",props:ce,emits:["mounted","responsive-change","update:modelValue","add","remove","focus","blur","change","preview-click","preview-dblclick","preview-contextmenu","preview-pointerenter","preview-pointerleave","preview-pointerdown","preview-pointerup"],setup(t,{emit:n}){const y=o.ref(null),u=t.id?t.id:a.getUUID(),x=`himagebox:${u}`,d=o.ref(null),v=o.ref(t.visible),i=o.ref(t.editMode),b=o.computed(()=>i.value===a.EditMode.disable),z=o.computed(()=>i.value===a.EditMode.readonly),T=o.ref(t.border??!1),q=o.computed(()=>i.value!==a.EditMode.editable?`hison-imagebox-${i.value}`:""),W=o.computed(()=>v.value?"":"hison-display-none"),G=o.computed(()=>T.value?"hison-border":""),F=o.ref(t.attId||""),L=o.ref(!1),h=o.ref(t.enableDrop),k=o.ref(t.placeholder),M=o.ref(t.addButtonText),P=o.ref(t.removeButtonText),m=o.ref(Array.isArray(t.allowedTypes)?t.allowedTypes:t.allowedTypes?t.allowedTypes.split(","):[]),g=o.ref(Array.isArray(t.disallowedTypes)?t.disallowedTypes:t.disallowedTypes?t.disallowedTypes.split(","):[]),c=o.ref(t.maxFileSize??a.hison.getMaxFilesetSize()),f=o.ref(typeof t.onDisallowedType=="function"?t.onDisallowedType:void 0),C=o.ref(typeof t.onMaxFileSizeExceeded=="function"?t.onMaxFileSizeExceeded:void 0),r=o.ref(t.modelValue),I=o.ref(!1),J=o.computed(()=>{if(m.value.length===0)return"";const e=new Set(g.value.map(s=>s.toLowerCase())),l=m.value.filter(s=>!e.has(s.toLowerCase()));return l.length>0?l.join(","):void 0}),D=o.ref(null),p=e=>{if(!e||e.isDeleted){D.value=null;return}if(e.filePath)D.value=e.filePath;else if(e.file instanceof File){const l=new FileReader;l.onload=s=>{var $;return D.value=String((($=s.target)==null?void 0:$.result)||"")},l.readAsDataURL(e.file)}else e.fileName&&e.fileName.startsWith("data:")?D.value=e.fileName:D.value=null};p(r.value);const w=(e,l)=>{n(e,{event:l,api:d.value})},K=e=>w("preview-click",e),Q=e=>w("preview-dblclick",e),X=e=>w("preview-contextmenu",e),Y=e=>w("preview-pointerenter",e),Z=e=>w("preview-pointerleave",e),_=e=>w("preview-pointerdown",e),ee=e=>w("preview-pointerup",e),B=o.ref(t.tabIndex!==null&&t.tabIndex!==""?Number(t.tabIndex):null),N=a.useDevice(),S=o.ref([]),A=()=>{S.value=a.extractResponsiveClasses(a.toClassString(t.class)||"",N.value),a.getIndexSpecificClassNameFromClassList(S.value,"col")===-1&&S.value.push("hison-col-12"),a.addComponentNameToClass(S.value,"size",a.hisonCloser.componentStyle.size),a.addComponentNameToClass(S.value,"color","primary")},te=o.computed(()=>{const e=[];return e.push(...a.extractPrefixedClasses(a.toClassString(t.class)||"","size")),e.push(...a.extractPrefixedClasses(a.toClassString(t.class)||"","color")),e}),oe=o.computed(()=>i.value!==a.EditMode.readonly),le=o.computed(()=>!!r.value&&i.value!==a.EditMode.readonly),ne=e=>{var $,O,H;const l=e.type,s="."+(($=e.name.split(".").pop())==null?void 0:$.toLowerCase());return m.value.length>0&&!m.value.some(E=>E===l||E===s)?(console.warn(`File type not in allowedTypes: ${l} / ${s}`),(O=f.value)==null||O.call(f,e,m.value,null),!1):g.value.length>0&&g.value.some(E=>E===l||E===s)?(console.warn(`File type is in disallowedTypes: ${l} / ${s}`),(H=f.value)==null||H.call(f,e,null,g.value),!1):!0},ie=e=>{var l;return typeof c.value=="number"&&Number.isFinite(c.value)&&e.size>c.value?(console.warn(`File too large: ${e.name}
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),a=require("./index-CyZluKOE.js"),me=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},imgStyle:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},editMode:{type:String,default:a.EditMode.editable,validator:t=>a.EDIT_MODE_VALUES.includes(t)},modelValue:{type:Object,default:null},attId:{type:String,default:""},addButtonText:{type:String,default:"Add"},removeButtonText:{type:String,default:"Remove"},placeholder:{type:String,default:"There is no image"},enableDrop:{type:Boolean,default:!0},allowedTypes:{type:[String,Array],default:()=>[".jpg",".jpeg",".png",".gif","image/*"]},disallowedTypes:{type:[String,Array],default:void 0},maxFileSize:{type:Number,default:1/0},border:{type:Boolean,default:!1},onDisallowedType:Function,onMaxFileSizeExceeded:Function,tabIndex:{type:[Number,String],default:null,validator:t=>t===null||t===""||!isNaN(+t)&&isFinite(+t)}},fe=o.defineComponent({name:"HImagebox",props:ce,emits:["mounted","responsive-change","update:modelValue","add","remove","focus","blur","change","preview-click","preview-dblclick","preview-contextmenu","preview-pointerenter","preview-pointerleave","preview-pointerdown","preview-pointerup"],setup(t,{emit:n}){const y=o.ref(null),u=t.id?t.id:a.getUUID(),x=`himagebox:${u}`,d=o.ref(null),v=o.ref(t.visible),i=o.ref(t.editMode),b=o.computed(()=>i.value===a.EditMode.disable),z=o.computed(()=>i.value===a.EditMode.readonly),T=o.ref(t.border??!1),q=o.computed(()=>i.value!==a.EditMode.editable?`hison-imagebox-${i.value}`:""),W=o.computed(()=>v.value?"":"hison-display-none"),G=o.computed(()=>T.value?"hison-border":""),F=o.ref(t.attId||""),L=o.ref(!1),h=o.ref(t.enableDrop),k=o.ref(t.placeholder),M=o.ref(t.addButtonText),P=o.ref(t.removeButtonText),m=o.ref(Array.isArray(t.allowedTypes)?t.allowedTypes:t.allowedTypes?t.allowedTypes.split(","):[]),g=o.ref(Array.isArray(t.disallowedTypes)?t.disallowedTypes:t.disallowedTypes?t.disallowedTypes.split(","):[]),c=o.ref(t.maxFileSize??a.hison.getMaxFilesetSize()),f=o.ref(typeof t.onDisallowedType=="function"?t.onDisallowedType:void 0),C=o.ref(typeof t.onMaxFileSizeExceeded=="function"?t.onMaxFileSizeExceeded:void 0),r=o.ref(t.modelValue),I=o.ref(!1),J=o.computed(()=>{if(m.value.length===0)return"";const e=new Set(g.value.map(s=>s.toLowerCase())),l=m.value.filter(s=>!e.has(s.toLowerCase()));return l.length>0?l.join(","):void 0}),D=o.ref(null),p=e=>{if(!e||e.isDeleted){D.value=null;return}if(e.filePath)D.value=e.filePath;else if(e.file instanceof File){const l=new FileReader;l.onload=s=>{var $;return D.value=String((($=s.target)==null?void 0:$.result)||"")},l.readAsDataURL(e.file)}else e.fileName&&e.fileName.startsWith("data:")?D.value=e.fileName:D.value=null};p(r.value);const w=(e,l)=>{n(e,{event:l,api:d.value})},K=e=>w("preview-click",e),Q=e=>w("preview-dblclick",e),X=e=>w("preview-contextmenu",e),Y=e=>w("preview-pointerenter",e),Z=e=>w("preview-pointerleave",e),_=e=>w("preview-pointerdown",e),ee=e=>w("preview-pointerup",e),B=o.ref(t.tabIndex!==null&&t.tabIndex!==""?Number(t.tabIndex):null),N=a.useDevice(),S=o.ref([]),A=()=>{S.value=a.extractResponsiveClasses(a.toClassString(t.class)||"",N.value),a.getIndexSpecificClassNameFromClassList(S.value,"col")===-1&&S.value.push("hison-col-12"),a.addComponentNameToClass(S.value,"size",a.hisonCloser.componentStyle.size),a.addComponentNameToClass(S.value,"color","primary")},te=o.computed(()=>{const e=[];return e.push(...a.extractPrefixedClasses(a.toClassString(t.class)||"","size")),e.push(...a.extractPrefixedClasses(a.toClassString(t.class)||"","color")),e}),oe=o.computed(()=>i.value!==a.EditMode.readonly),le=o.computed(()=>!!r.value&&i.value!==a.EditMode.readonly),ne=e=>{var $,O,H;const l=e.type,s="."+(($=e.name.split(".").pop())==null?void 0:$.toLowerCase());return m.value.length>0&&!m.value.some(E=>E===l||E===s)?(console.warn(`File type not in allowedTypes: ${l} / ${s}`),(O=f.value)==null||O.call(f,e,m.value,null),!1):g.value.length>0&&g.value.some(E=>E===l||E===s)?(console.warn(`File type is in disallowedTypes: ${l} / ${s}`),(H=f.value)==null||H.call(f,e,null,g.value),!1):!0},ie=e=>{var l;return typeof c.value=="number"&&Number.isFinite(c.value)&&e.size>c.value?(console.warn(`File too large: ${e.name}
2
2
  Max size: ${c.value} Byte`),(l=C.value)==null||l.call(C,e,e.size,c.value),!1):!0},V=e=>{if(!ne(e)||!ie(e))return;const l=e.name.split(".").pop()||"",s={fileName:e.name,fileSize:e.size,extension:l,file:e,isNew:!0};r.value=s,p(s),I.value=!0,n("update:modelValue",s),n("add",s,d.value),n("change",s,d.value)},ae=e=>{if(i.value!==a.EditMode.editable)return;const l=e.target.files;!l||!l.length||(V(l[0]),o.nextTick(()=>{y.value&&(y.value.value="")}))},se=e=>{!h.value||i.value!==a.EditMode.editable||z.value||b.value||(L.value=!0)},re=e=>{var l;L.value=!1,!(!h.value||i.value!==a.EditMode.editable)&&(z.value||b.value||!((l=e.dataTransfer)!=null&&l.files)||!e.dataTransfer.files.length||V(e.dataTransfer.files[0]))},ue=()=>{if(i.value!==a.EditMode.editable)return;const e=r.value;e&&e.file&&!e.fileId?r.value=null:e&&e.fileId&&(r.value={...e,isDeleted:!0}),p(null),I.value=!0,n("update:modelValue",r.value),n("remove",e,d.value),n("change",r.value,d.value)},de=()=>{var e;(e=y.value)==null||e.click()},R=e=>{if(!e||!e.getIsDataModel||!e.getIsDataModel()||e.getRowCount()===0)return;const l=e.getRow(0);r.value=l,p(l)},U=()=>{a.hisonCloser.component.imageboxList[u]&&a.hisonCloser.component.imageboxList[u].isHisonvueComponent&&console.warn(`[Hisonvue] The imagebox ID is at risk of being duplicated. ${u}`),a.registerReloadable(x,()=>{j(),o.nextTick(U)}),y.value&&(A(),d.value={isHisonvueComponent:!0,getId:()=>u,getType:()=>"imagebox",isVisible:()=>v.value,setVisible:e=>v.value=e,getEditMode:()=>i.value,setEditMode:e=>{var l,s;i.value=e,(l=a.hisonCloser.component.buttonList[`hison_imagebox_add_button_${u}`])==null||l.setDisable(b.value),(s=a.hisonCloser.component.buttonList[`hison_imagebox_remove_button_${u}`])==null||s.setDisable(b.value)},getValue:()=>a.hison.utils.deepCopyObject(r.value),setValue:e=>{r.value=a.hison.utils.deepCopyObject(e),p(e)},getDataModel:()=>r.value?new a.hison.data.DataModel(r.value):null,setDataModel:e=>{R(e)},load:e=>{e&&e.getIsDataModel&&e.getIsDataModel()?R(e):r.value=a.hison.utils.deepCopyObject(e)},getAttId:()=>F.value,setAttId:e=>{F.value=e},getAddButtonText:()=>M.value,setAddButtonText:e=>M.value=e,getRemoveButtonText:()=>P.value,setRemoveButtonText:e=>P.value=e,getPlaceholder:()=>k.value,setPlaceholder:e=>k.value=e,isEnableDrop:()=>h.value,setEnableDrop:e=>{h.value=e},getAllowedTypes:()=>m.value,setAllowedTypes:e=>m.value=e,getDisallowedTypes:()=>g.value,setDisallowedTypes:e=>{g.value=e},getMaxFileSize:()=>c.value,setMaxFileSize:e=>c.value=e,setOnDisallowedType:e=>{f.value=e},setOnMaxFileSizeExceeded:e=>{C.value=e},isModified:()=>I.value,setModified:e=>I.value=e,isBorder:()=>T.value,setBorder:e=>{T.value=e},getTabIndex:()=>B.value,setTabIndex:e=>{B.value=e!=null?Number(e):null},focus:()=>{var e;(e=a.hisonCloser.component.buttonList[`hison_imagebox_add_button_${u}`])==null||e.focus()},reload:()=>a.reloadHisonComponent(x)},a.hisonCloser.component.imageboxList[u]=d.value,n("mounted",d.value))},j=()=>{delete a.hisonCloser.component.imageboxList[u]};return o.onMounted(U),o.onBeforeUnmount(j),o.watch(()=>t.modelValue,e=>{e!==r.value&&(r.value=e,p(e))}),o.watch(N,e=>{A(),n("responsive-change",e)}),o.watch(()=>t.visible,e=>{const l=!!e;l!==v.value&&(v.value=l)}),o.watch(()=>t.editMode,e=>{e&&e!==i.value&&(i.value=e,o.nextTick(()=>{var l,s;(l=a.hisonCloser.component.buttonList[`hison_imagebox_add_button_${u}`])==null||l.setDisable(b.value),(s=a.hisonCloser.component.buttonList[`hison_imagebox_remove_button_${u}`])==null||s.setDisable(b.value)}))}),o.watch(()=>t.border,e=>{const l=!!e;l!==T.value&&(T.value=l)}),o.watch(()=>t.attId,e=>{const l=e||"";l!==F.value&&(F.value=l)}),o.watch(()=>t.allowedTypes,e=>{const l=Array.isArray(e)?e:e?String(e).split(","):[];l.toString()!==m.value.toString()&&(m.value=l)}),o.watch(()=>t.disallowedTypes,e=>{const l=Array.isArray(e)?e:e?String(e).split(","):[];l.toString()!==g.value.toString()&&(g.value=l)}),o.watch(()=>t.maxFileSize,e=>{const l=Number(e);(Number.isFinite(l)||l===1/0)&&l!==c.value&&(c.value=l)}),o.watch(()=>t.onDisallowedType,e=>{const l=typeof e=="function"?e:void 0;l!==f.value&&(f.value=l)}),o.watch(()=>t.onMaxFileSizeExceeded,e=>{const l=typeof e=="function"?e:void 0;l!==C.value&&(C.value=l)}),o.watch(()=>t.placeholder,e=>{const l=e??"";l!==k.value&&(k.value=l)}),o.watch(()=>t.addButtonText,e=>{const l=e??"";l!==M.value&&(M.value=l)}),o.watch(()=>t.removeButtonText,e=>{const l=e??"";l!==P.value&&(P.value=l)}),o.watch(()=>t.enableDrop,e=>{const l=!!e;l!==h.value&&(h.value=l)}),o.watch(()=>t.modelValue,e=>{e!==r.value&&(r.value=e,p(e))}),o.watch(()=>t.tabIndex,e=>{const l=e===null||e===""?null:Number(e);l!==B.value&&(B.value=l)}),o.watch(()=>t.class,()=>{A()}),{fileInputRef:y,id:u,props:t,imgStyle:o.computed(()=>t.imgStyle||{}),imageValue:r,imageboxMethods:d,visibleClass:W,editModeClass:q,borderClass:G,responsiveClassList:S,buttonClassList:te,disable:b,readonly:z,addButtonText:M,removeButtonText:P,placeholder:k,isDragging:L,previewUrl:D,showAddButton:oe,showRemoveButton:le,accept:J,tabIndex:B,handleDragEnter:se,handleDrop:re,openFileDialog:de,removeImage:ue,onFileChange:ae,onPreviewClick:K,onPreviewDblClick:Q,onPreviewContextMenu:X,onPreviewPointerEnter:Y,onPreviewPointerLeave:Z,onPreviewPointerDown:_,onPreviewPointerUp:ee}}}),ge=["src"],be={class:"img-placeholder"},pe={key:2,class:"imgbox-btn-row"},we={key:1,class:"hison-imagebox-add-text"},ye={key:1,class:"hison-imagebox-add-text"},he={key:1,class:"hison-imagebox-remove-text"},Ce=["id","accept"];function De(t,n,y,u,x,d){const v=o.resolveComponent("HButton");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["hison-imagebox",...t.responsiveClassList,t.visibleClass,t.borderClass,t.editModeClass]),style:o.normalizeStyle(t.props.style)},[o.createElementVNode("div",{class:o.normalizeClass(["img-preview",{"drag-over":t.isDragging}]),onDragover:n[11]||(n[11]=o.withModifiers(()=>{},["prevent"])),onDragenter:n[12]||(n[12]=o.withModifiers((...i)=>t.handleDragEnter&&t.handleDragEnter(...i),["prevent"])),onDragleave:n[13]||(n[13]=o.withModifiers(i=>t.isDragging=!1,["prevent"])),onDrop:n[14]||(n[14]=o.withModifiers((...i)=>t.handleDrop&&t.handleDrop(...i),["prevent"]))},[t.previewUrl?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.previewUrl,class:"preview-img",style:o.normalizeStyle([t.imgStyle]),onClick:n[0]||(n[0]=(...i)=>t.onPreviewClick&&t.onPreviewClick(...i)),onDblclick:n[1]||(n[1]=(...i)=>t.onPreviewDblClick&&t.onPreviewDblClick(...i)),onContextmenu:n[2]||(n[2]=(...i)=>t.onPreviewContextMenu&&t.onPreviewContextMenu(...i)),onPointerenter:n[3]||(n[3]=(...i)=>t.onPreviewPointerEnter&&t.onPreviewPointerEnter(...i)),onPointerleave:n[4]||(n[4]=(...i)=>t.onPreviewPointerLeave&&t.onPreviewPointerLeave(...i)),onPointerdown:n[5]||(n[5]=(...i)=>t.onPreviewPointerDown&&t.onPreviewPointerDown(...i)),onPointerup:n[6]||(n[6]=(...i)=>t.onPreviewPointerUp&&t.onPreviewPointerUp(...i))},null,44,ge)):o.renderSlot(t.$slots,"empty",{key:1},()=>[o.createElementVNode("div",be,o.toDisplayString(t.placeholder),1)]),t.readonly?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",pe,[t.imageValue?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(v,{id:`hison_imagebox_add_button_${t.id}`,disable:t.disable,class:o.normalizeClass(["hison-col-6",...t.buttonClassList]),onClick:t.openFileDialog,onFocus:n[9]||(n[9]=i=>t.$emit("focus",t.imageboxMethods)),onBlur:n[10]||(n[10]=i=>t.$emit("blur",t.imageboxMethods))},{default:o.withCtx(()=>[t.$slots["add-button"]?o.renderSlot(t.$slots,"add-button",{key:0,add:t.openFileDialog}):(o.openBlock(),o.createElementBlock("span",ye,o.toDisplayString(t.addButtonText),1))]),_:3},8,["id","disable","class","onClick"]),o.createVNode(v,{id:`hison_imagebox_remove_button_${t.id}`,disable:t.disable,class:o.normalizeClass(["hison-col-6",...t.buttonClassList]),onClick:t.removeImage},{default:o.withCtx(()=>[t.$slots["remove-button"]?o.renderSlot(t.$slots,"remove-button",{key:0,remove:t.removeImage}):(o.openBlock(),o.createElementBlock("span",he,o.toDisplayString(t.removeButtonText),1))]),_:3},8,["id","disable","class","onClick"])],64)):(o.openBlock(),o.createBlock(v,{key:0,id:`hison_imagebox_add_button_${t.id}`,disable:t.disable,class:o.normalizeClass(["hison-col-12",...t.buttonClassList]),tabindex:t.tabIndex??void 0,onClick:t.openFileDialog,onFocus:n[7]||(n[7]=i=>t.$emit("focus",t.imageboxMethods)),onBlur:n[8]||(n[8]=i=>t.$emit("blur",t.imageboxMethods))},{default:o.withCtx(()=>[t.$slots["add-button"]?o.renderSlot(t.$slots,"add-button",{key:0,add:t.openFileDialog}):(o.openBlock(),o.createElementBlock("span",we,o.toDisplayString(t.addButtonText),1))]),_:3},8,["id","disable","class","tabindex","onClick"]))]))],34),o.createElementVNode("input",{id:`hison_imagebox_${t.id}`,ref:"fileInputRef",type:"file",accept:t.accept||void 0,multiple:!1,hidden:"",onChange:n[15]||(n[15]=(...i)=>t.onFileChange&&t.onFileChange(...i))},null,40,Ce)],6)}const Se=me._export_sfc(fe,[["render",De]]);exports.default=Se;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),u=require("./index-CyZluKOE.js"),Ve=require("./_plugin-vue_export-helper-BHFhmbuH.js"),De={id:{type:String,required:!1},name:{type:String,required:!1},modelValue:{type:[String,Number,Boolean,Object,Array,Date],default:null},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},title:{type:String,required:!1},inputType:{type:String,required:!1,validator:e=>u.INPUT_TYPE_VALUES.includes(e)},format:{type:String,required:!1},nullText:{type:String,default:""},maxNumber:{type:[String,Number],required:!1},minNumber:{type:[String,Number],required:!1},roundNumber:{type:[String,Number],required:!1},maxLength:{type:[String,Number],required:!1},maxByte:{type:[String,Number],required:!1},placeholder:{type:String,required:!1},editMode:{type:String,default:u.EditMode.editable,validator:e=>["editable","disable","readonly"].includes(e)},required:{type:Boolean,default:!1},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:e=>e==null||u.TEXT_ALIGN_VALUES.includes(e)},border:{type:Boolean,default:!0},options:{type:Array,required:!1,default:()=>[]},checkedText:{type:String,default:"Y"},uncheckedText:{type:String,default:"N"},tabIndex:{type:[Number,String],default:null,validator:e=>e===null||e===""||!isNaN(+e)&&isFinite(+e)},inputTextdHandler:{type:Function,default:void 0},toggleStyle:{type:String,default:"default",validator:e=>["default","switch"].includes(e)}},H=new WeakSet,O=new WeakSet,oe=e=>{const n=e.currentTarget;if(u.hisonCloser.event.cssEvent.input_onBeforeFocus(e)===!1){e.stopPropagation(),e.preventDefault();return}n.classList.add("hison-input-on-active"),u.hisonCloser.event.cssEvent.input_onAfterFocus(e)},te=e=>{const n=e.currentTarget;if(u.hisonCloser.event.cssEvent.input_onBeforeBlur(e)===!1){e.stopPropagation(),e.preventDefault();return}n.classList.remove("hison-input-on-active"),n.classList.remove("hison-input-on-mouseover"),u.hisonCloser.event.cssEvent.input_onAfterBlur(e)},ie=e=>{const n=e.currentTarget;if(!n.readOnly){if(u.hisonCloser.event.cssEvent.input_onBeforeMouseover(e)===!1){e.stopPropagation(),e.preventDefault();return}n.classList.add("hison-input-on-mouseover"),u.hisonCloser.event.cssEvent.input_onAfterMouseover(e)}},ue=e=>{const n=e.currentTarget;if(!n.readOnly){if(u.hisonCloser.event.cssEvent.input_onBeforeMouseout(e)===!1){e.stopPropagation(),e.preventDefault();return}n.classList.remove("hison-input-on-mouseover"),u.hisonCloser.event.cssEvent.input_onAfterMouseout(e)}},se=e=>{const n=e.currentTarget;if(!n.readOnly){if(u.hisonCloser.event.cssEvent.input_onBeforeTouchstart(e)===!1){e.stopPropagation(),e.preventDefault();return}n.classList.add("hison-input-on-mouseover"),u.hisonCloser.event.cssEvent.input_onAfterTouchstart(e)}},le=e=>{const n=e.currentTarget;if(!n.readOnly){if(u.hisonCloser.event.cssEvent.input_onBeforeTouchend(e)===!1){e.stopPropagation(),e.preventDefault();return}n.classList.remove("hison-input-on-mouseover"),u.hisonCloser.event.cssEvent.input_onAfterTouchend(e)}},re=e=>{const n=e.currentTarget;n.readOnly||n.classList.remove("hison-input-on-mouseover")},qe=e=>{H.has(e)||(H.add(e),e.addEventListener("mouseenter",ie),e.addEventListener("mouseleave",ue),e.addEventListener("touchstart",se,{passive:!1,capture:!0}),e.addEventListener("touchend",le,{passive:!1,capture:!0}),e.addEventListener("touchcancel",re,{passive:!1,capture:!0}))},Re=e=>{H.has(e)&&(H.delete(e),e.removeEventListener("mouseenter",ie),e.removeEventListener("mouseleave",ue),e.removeEventListener("touchstart",se,{capture:!0}),e.removeEventListener("touchend",le,{capture:!0}),e.removeEventListener("touchcancel",re,{capture:!0}),e.classList.remove("hison-input-on-mouseover"))},ze=e=>{O.has(e)||(O.add(e),e.addEventListener("focus",oe),e.addEventListener("blur",te))},Ke=e=>{O.has(e)&&(O.delete(e),e.removeEventListener("focus",oe),e.removeEventListener("blur",te),e.classList.remove("hison-input-on-active"),e.classList.remove("hison-input-on-mouseover"))},Ue=i.defineComponent({name:"HInput",props:De,inheritAttrs:!1,emits:["update:modelValue","mounted","responsive-change","click","dblclick","mousedown","mouseup","mouseenter","mouseleave","mouseover","mouseout","mousemove","pointerdown","pointerup","pointermove","pointerenter","pointerleave","touchstart","touchend","touchmove","touchcancel","focus","blur","input","change","compositionstart","compositionupdate","compositionend","keydown","keyup","dragstart","dragend","drag","drop","copy","cut","paste","wheel","contextmenu"],setup(e,{emit:n}){const m=i.ref(null),b=i.ref(null),f=i.ref(null),p=e.id?e.id:u.getUUID(),o=i.ref(e.name??p),de=i.computed(()=>o.value),j=`hinput:${p}`,x=u.useDevice(),I=i.ref([]),W=()=>{I.value=u.extractResponsiveClasses(u.toClassString(e.class)||"",x.value),u.getIndexSpecificClassNameFromClassList(I.value,"col")===-1&&I.value.push("hison-col-12"),u.addComponentNameToClass(I.value,"size",u.hisonCloser.componentStyle.size),u.addComponentNameToClass(I.value,"color","primary")},r=i.ref(e.inputType??u.InputType.text),Y=i.computed(()=>{switch(r.value){case u.InputType.checkbox:return"checkbox";case u.InputType.radio:return"radio";case u.InputType.select:return"select";case u.InputType.range:return"range";case u.InputType.color:return"color";default:return"text"}}),ae=i.computed(()=>{switch(r.value){case u.InputType.mask:case u.InputType.digit:return"text";default:return r.value}}),L=i.ref(e.toggleStyle??"default"),M=i.ref(e.format??null),T=i.ref(u.hison.utils.isNumeric(e.maxNumber)?Number(e.maxNumber):null),$=i.ref(u.hison.utils.isNumeric(e.minNumber)?Number(e.minNumber):null),w=i.ref(u.hison.utils.isInteger(e.roundNumber)||u.hison.utils.isNegativeInteger(e.roundNumber)||e.roundNumber==="0"?Number(e.roundNumber):null),C=i.ref(u.hison.utils.isPositiveInteger(e.maxLength)?Number(e.maxLength):null),h=i.ref(u.hison.utils.isPositiveInteger(e.maxByte)?Number(e.maxByte):null),X=t=>{switch(t){case u.InputType.number:case u.InputType.digit:return u.TextAlign.right;case u.InputType.date:case u.InputType.month:case u.InputType.time:return u.TextAlign.center;default:return u.TextAlign.left}},k=i.ref(e.textAlign??X(r.value)),pe=i.computed(()=>({textAlign:k.value})),E=i.ref(e.border??!0),me=t=>(t=String(t),C.value&&(t=t.substring(0,C.value)),h.value&&(t=u.hison.utils.getCutByteLength(t,h.value)),t),ve=t=>(t=Number(t),T.value&&t>T.value&&(t=T.value),$.value&&t<$.value&&(t=$.value),w.value&&(t=u.hison.utils.getRound(t,w.value)),t),J=t=>{if(u.isNullOrUndefined(t))return r.value===u.InputType.checkbox||r.value===u.InputType.radio?!1:t;try{switch(r.value){case u.InputType.text:case u.InputType.password:case u.InputType.email:case u.InputType.mask:case u.InputType.digit:case u.InputType.textarea:r.value===u.InputType.mask&&(t=u.getMaskValue(t,M.value??"")),r.value===u.InputType.digit&&(t=u.getDigitsOnly(t)),t=me(t);break;case u.InputType.number:r.value===u.InputType.number&&(t=ve(t));break;case u.InputType.date:t&&(t=u.hison.utils.getDateWithFormat(t,u.Hisonjs_bundleExports.DateFormat["yyyy-MM-dd"]));break;case u.InputType.month:t&&(t=u.hison.utils.getDateWithFormat(t,u.Hisonjs_bundleExports.YearMonthFormat["yyyy-MM"]));break;case u.InputType.time:t&&(t=u.hison.utils.getDateWithFormat(t,u.Hisonjs_bundleExports.TimeFormat["HH:mm:ss"]));break;case u.InputType.checkbox:case u.InputType.radio:t=!!t;default:break}}catch(s){console.warn("[HInput] Failed to format value",t,s)}return t},l=i.ref(J(e.modelValue)),fe=i.computed(()=>l.value),v=i.ref(null),F=i.ref(e.visible),P=i.ref(e.title??""),A=i.ref(e.nullText??""),y=i.ref(e.editMode),ye=i.computed(()=>y.value===u.EditMode.disable),Q=i.computed(()=>y.value===u.EditMode.readonly),Me=i.computed(()=>E.value&&!Q.value?"hison-border":""),ge=i.computed(()=>y.value!==u.EditMode.editable?[`hison-input-${y.value}`,`hison-input-${Y.value}-${y.value}`]:[]),S=i.ref(e.required),be=i.computed(()=>S.value?["hison-input-required",`hison-input-${Y.value}-required`]:[]),V=i.ref(e.placeholder??""),D=i.ref(e.fontBold),Te=i.computed(()=>{if(D.value)return"hison-font-bold"}),q=i.ref(e.fontItalic),$e=i.computed(()=>{if(q.value)return"hison-font-italic"}),R=i.ref(e.fontThruline),Ce=i.computed(()=>{if(R.value)return"hison-font-thruline"}),z=i.ref(e.fontUnderline),he=i.computed(()=>{if(z.value)return"hison-font-underline"}),ke=i.computed(()=>F.value?"":"hison-display-none"),Z=i.ref(!1),g=i.ref(!1),K=i.ref(e.tabIndex!==null&&e.tabIndex!==""?Number(e.tabIndex):null),c=i.inject("registerToInputGroup",null),d=i.inject("notifyInputGroupStatus",null),B=i.inject("radioMembershipChanged",null),G=t=>{if(r.value===u.InputType.checkbox||r.value===u.InputType.radio)return t?e.checkedText:e.uncheckedText;if(u.isNullOrUndefined(t)||t==="")return A.value??"";if(e.inputTextdHandler)return e.inputTextdHandler(t);let s=String(t);try{switch(r.value){case u.InputType.password:s="•".repeat(t.length);break;case u.InputType.number:s=u.hison.utils.getNumberFormat(t,M.value??u.hison.getNumberFormat());break;case u.InputType.date:s=u.hison.utils.getDateWithFormat(t,M.value??u.hison.getDateFormat());break;case u.InputType.month:s=u.hison.utils.getDateWithFormat(t,M.value??u.hison.getYearMonthFormat());break;case u.InputType.time:s=u.hison.utils.getDateWithFormat(t,M.value??u.hison.getTimeFormat());break;case u.InputType.select:const N=m.value,ne=N.selectedIndex;s=ne>=0?N.options[ne].text:"";break}}catch(N){console.warn("[HInput] Failed to format value",t,N),s=""}return s},U=i.ref(""),Ie=t=>{y.value===u.EditMode.editable&&(Z.value=!0),i.nextTick(()=>{var s;(s=m.value)==null||s.focus()})},we=t=>{let s=m.value.value;(r.value===u.InputType.mask||r.value===u.InputType.digit||(C.value||h.value)&&(r.value===u.InputType.text||r.value===u.InputType.email||r.value===u.InputType.password||r.value===u.InputType.textarea))&&(s=J(s),m.value.value=s),l.value=s,g.value=!0,d==null||d(p,l.value),n("input",t,f.value,l.value),n("update:modelValue",l.value)},Be=t=>{v.value=l.value,n("focus",t,f.value)},Ne=t=>{v.value!==l.value&&(a(l.value,!0,!0),g.value=!0,d==null||d(p,l.value)),Z.value=!1,n("blur",t,f.value)},a=(t,s=!0,N=!1)=>{l.value=s?J(t):t,U.value=G(l.value),r.value===u.InputType.checkbox||r.value===u.InputType.radio?m.value.checked=!!l.value:m.value.value=l.value,N&&n("change",v.value,l.value,f.value)},Le=t=>{const s=t.target;a(s.value,!1,!0),g.value=!0,d==null||d(p,l.value),n("update:modelValue",l.value)},Ee=t=>{const s=t.target;a(s.value,!1,!0),g.value=!0,d==null||d(p,l.value),n("update:modelValue",l.value)},Fe=t=>{const s=t.target;a(s.checked,!1,!0),g.value=!0,d==null||d(p,l.value),n("update:modelValue",l.value)},Pe=t=>{const s=t.target;a(s.checked,!1,!0),g.value=!0,d&&o.value?d(o.value,s.checked?p:null):d==null||d(p,l.value),n("update:modelValue",l.value)},Ae=t=>{const s=t.target;a(s.value,!1,!0),g.value=!0,d==null||d(p,l.value),n("update:modelValue",l.value)},Se=t=>{if(Q.value&&(t.code==="Space"||t.code==="Enter")){t.preventDefault(),t.stopPropagation();return}n("keydown",t,f.value)},_=()=>{u.hisonCloser.component.inputList[p]&&u.hisonCloser.component.inputList[p].isHisonvueComponent&&console.warn(`[Hisonvue] The input ID is at risk of being duplicated. ${p}`),u.registerReloadable(j,()=>{ee(),i.nextTick(_)}),m.value&&(W(),b.value&&qe(b.value),r.value!==u.InputType.checkbox&&r.value!==u.InputType.radio&&r.value!==u.InputType.range&&r.value!==u.InputType.color&&ze(m.value),a(l.value,!1),f.value={isHisonvueComponent:!0,getId:()=>p,getType:()=>"input",getName:()=>o.value,setName:t=>{if(t===o.value)return;const s=o.value;o.value=t,r.value===u.InputType.radio&&(B==null||B(p,s,t,!!l.value))},getText:()=>U.value,getValue:()=>l.value,setValue:t=>{v.value=l.value,l.value=t,a(l.value)},getTitle:()=>P.value,setTitle:t=>{P.value=t},isVisible:()=>F.value,setVisible:t=>{F.value=t},getInputType:()=>r.value,setInputType:t=>{r.value=u.InputType[t],v.value=l.value,a(l.value),e.textAlign==null&&(k.value=X(r.value))},getFormat:()=>M.value??"",setFormat:t=>{M.value=t,v.value=l.value,a(l.value)},getNullText:()=>A.value,setNullText:t=>{A.value=t,(u.isNullOrUndefined(l.value)||l.value==="")&&(U.value=G(l.value))},getEditMode:()=>y.value,setEditMode:t=>{y.value=t},getMaxNumber:()=>T.value,setMaxNumber:t=>{u.hison.utils.isNumeric(t)&&(T.value=t,v.value=l.value,r.value===u.InputType.number&&a(l.value))},getMinNumber:()=>$.value,setMinNumber:t=>{u.hison.utils.isNumeric(t)&&($.value=t,v.value=l.value,r.value===u.InputType.number&&a(l.value))},getRoundNumber:()=>w.value,setRoundNumber:t=>{!u.hison.utils.isPositiveInteger(t)&&!u.hison.utils.isNegativeInteger(t)&&t!==0||(w.value=t,v.value=l.value,r.value===u.InputType.number&&a(l.value))},getMaxLength:()=>C.value,setMaxLength:t=>{u.hison.utils.isPositiveInteger(t)&&(C.value=t),v.value=l.value,a(l.value)},getMaxByte:()=>h.value,setMaxByte:t=>{u.hison.utils.isPositiveInteger(t)&&(h.value=t),v.value=l.value,a(l.value)},getRequired:()=>S.value,setRequired:t=>{S.value=t},getPlaceholder:()=>V.value,setPlaceholder:t=>{V.value=t},isFontBold:()=>D.value,setFontBold:t=>{D.value=t},isFontItalic:()=>q.value,setFontItalic:t=>{q.value=t},isFontThruline:()=>R.value,setFontThruline:t=>{R.value=t},isFontUnderline:()=>z.value,setFontUnderline:t=>{z.value=t},getTextAlign:()=>k.value,setTextAlign:t=>{(t===u.TextAlign.left||t===u.TextAlign.center||t===u.TextAlign.right)&&(k.value=t)},isBorder:()=>E.value,setBorder:t=>{E.value=t},isModified:()=>g.value,setModified:t=>{g.value=t},getToggleStyle:()=>L.value,setToggleStyle:t=>{(t==="default"||t==="switch")&&(L.value=t)},getTabIndex:()=>K.value,setTabIndex:t=>{K.value=t!=null?Number(t):null},focus:()=>{var t;b.value?b.value.focus():(t=m.value)==null||t.focus()},reload:()=>u.reloadHisonComponent(j)},u.hisonCloser.component.inputList[p]=f.value,c&&c(p),n("mounted",f.value))},ee=()=>{u.unregisterReloadable(j),delete u.hisonCloser.component.inputList[p],r.value!==u.InputType.checkbox&&r.value!==u.InputType.radio&&r.value!==u.InputType.range&&r.value!==u.InputType.color&&Ke(m.value),b.value&&Re(b.value)};return i.onMounted(_),i.onBeforeUnmount(ee),i.watch(x,t=>{W(),n("responsive-change",t)}),i.watch(()=>e.modelValue,t=>{a(t,!1)}),i.watch(()=>e.name,t=>{if(t&&t!==o.value){const s=o.value;o.value=t,r.value===u.InputType.radio&&(B==null||B(p,s,t,!!l.value))}}),i.watch(()=>e.visible,t=>{const s=!!t;s!==F.value&&(F.value=s)}),i.watch(()=>e.title,t=>{const s=t??"";s!==P.value&&(P.value=s)}),i.watch(()=>e.nullText,t=>{const s=t??"";s!==A.value&&(A.value=s,(u.isNullOrUndefined(l.value)||l.value==="")&&(U.value=G(l.value)))}),i.watch(()=>e.inputType,t=>{t&&t!==r.value&&(r.value=t,e.textAlign==null&&(k.value=X(r.value)),a(l.value))}),i.watch(()=>e.format,t=>{const s=t??null;s!==M.value&&(M.value=s,a(l.value))}),i.watch(()=>e.maxNumber,t=>{const s=u.hison.utils.isNumeric(t)?Number(t):null;s!==T.value&&(T.value=s,r.value===u.InputType.number&&a(l.value))}),i.watch(()=>e.minNumber,t=>{const s=u.hison.utils.isNumeric(t)?Number(t):null;s!==$.value&&($.value=s,r.value===u.InputType.number&&a(l.value))}),i.watch(()=>e.roundNumber,t=>{const s=u.hison.utils.isInteger(t)||u.hison.utils.isNegativeInteger(t)||t==="0"?Number(t):null;s!==w.value&&(w.value=s,r.value===u.InputType.number&&a(l.value))}),i.watch(()=>e.maxLength,t=>{const s=u.hison.utils.isPositiveInteger(t)?Number(t):null;s!==C.value&&(C.value=s,a(l.value))}),i.watch(()=>e.maxByte,t=>{const s=u.hison.utils.isPositiveInteger(t)?Number(t):null;s!==h.value&&(h.value=s,a(l.value))}),i.watch(()=>e.textAlign,t=>{t&&t!==k.value&&(t===u.TextAlign.left||t===u.TextAlign.center||t===u.TextAlign.right)&&(k.value=t)}),i.watch(()=>e.border,t=>{const s=!!t;s!==E.value&&(E.value=s)}),i.watch(()=>e.placeholder,t=>{const s=t??"";s!==V.value&&(V.value=s)}),i.watch(()=>e.required,t=>{const s=!!t;s!==S.value&&(S.value=s)}),i.watch(()=>e.fontBold,t=>{const s=!!t;s!==D.value&&(D.value=s)}),i.watch(()=>e.fontItalic,t=>{const s=!!t;s!==q.value&&(q.value=s)}),i.watch(()=>e.fontThruline,t=>{const s=!!t;s!==R.value&&(R.value=s)}),i.watch(()=>e.fontUnderline,t=>{const s=!!t;s!==z.value&&(z.value=s)}),i.watch(()=>e.editMode,t=>{t&&t!==y.value&&(y.value=t)}),i.watch(()=>e.tabIndex,t=>{const s=t===null||t===""?null:Number(t);s!==K.value&&(K.value=s)}),i.watch(()=>e.class,()=>{W()}),i.watch(()=>e.toggleStyle,t=>{const s=t??"default";s!==L.value&&(s==="default"||s==="switch")&&(L.value=s)}),{inputRef:m,inputTextRef:b,inputMethods:i.computed(()=>i.unref(f)),inputValue:fe,editing:Z,props:e,id:p,nameAttr:de,responsiveClassList:I,visibleClass:ke,editModeClassList:ge,requiredClassList:be,fontBoldClass:Te,fontItalicClass:$e,fontThrulineClass:Ce,fontUnderlineClass:he,textAlignStyle:pe,borderClass:Me,disable:ye,readonly:Q,inputType:r,inputExpressionType:Y,inputAttrType:ae,title:P,placeholder:V,maxNumber:T,minNumber:$,spanText:U,toggleStyle:L,tabIndex:K,onInput:we,onTextInputFocus:Ie,onFocus:Be,onBlur:Ne,onRangeChange:Le,onColorChange:Ee,onCheckboxChange:Fe,onRadioChange:Pe,onSelectChange:Ae,onKeydown:Se}}}),He=["id","name","value","disabled","readonly","title","tabindex"],Oe=["id","name","value","disabled","readonly","checked","title","tabindex"],je=["id","name","disabled","readonly","checked","title","tabindex"],We=["id","name","disabled","readonly","checked","title","tabindex"],Ye=["id","name","disabled","readonly","checked","title","tabindex"],Xe=["id","name","disabled","readonly","checked","title","tabindex"],Je=["id","name","value","disabled","readonly","title","tabindex"],Qe=["value"],Ze=["id","name","value","disabled","readonly","placeholder","title","maxlength","tabindex"],Ge=["id","name","value","disabled","readonly","title","placeholder","tabindex"],xe=["id","name","value","disabled","readonly","type","title","placeholder","max","min","tabindex"];function ce(e,n,m,b,f,p){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["hison-wrapper","hison-s-input-margin-adjustment",...e.responsiveClassList,e.visibleClass])},[e.inputType==="range"?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["hison-input","hison-input-range-div"]),style:i.normalizeStyle([e.textAlignStyle,e.props.style])},[i.createElementVNode("input",{ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,type:"range",class:i.normalizeClass([`hison-input-${e.inputType}`,...e.editModeClassList,...e.requiredClassList]),value:e.inputValue,disabled:e.disable,readonly:e.readonly,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[0]||(n[0]=(...o)=>e.onRangeChange&&e.onRangeChange(...o)),onFocus:n[1]||(n[1]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[2]||(n[2]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[3]||(n[3]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[4]||(n[4]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[5]||(n[5]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[6]||(n[6]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[7]||(n[7]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[8]||(n[8]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[9]||(n[9]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[10]||(n[10]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[11]||(n[11]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[12]||(n[12]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[13]||(n[13]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[14]||(n[14]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[15]||(n[15]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[16]||(n[16]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[17]||(n[17]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[18]||(n[18]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[19]||(n[19]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[20]||(n[20]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[21]||(n[21]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,42,He)],4)):e.inputType==="color"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["hison-input","hison-input-color-div"]),style:i.normalizeStyle([e.textAlignStyle,e.props.style])},[i.createElementVNode("input",{ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,type:"color",class:i.normalizeClass([`hison-input-${e.inputType}`,...e.editModeClassList,...e.requiredClassList]),value:e.inputValue,disabled:e.disable,readonly:e.readonly,checked:e.inputValue===!0,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[22]||(n[22]=(...o)=>e.onColorChange&&e.onColorChange(...o)),onFocus:n[23]||(n[23]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[24]||(n[24]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[25]||(n[25]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[26]||(n[26]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[27]||(n[27]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[28]||(n[28]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[29]||(n[29]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[30]||(n[30]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[31]||(n[31]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[32]||(n[32]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[33]||(n[33]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[34]||(n[34]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[35]||(n[35]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[36]||(n[36]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[37]||(n[37]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[38]||(n[38]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[39]||(n[39]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[40]||(n[40]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[41]||(n[41]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[42]||(n[42]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[43]||(n[43]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,42,Oe)],4)):e.inputType==="checkbox"?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(["hison-input","hison-input-checkbox-div"]),style:i.normalizeStyle([e.textAlignStyle,e.props.style])},[e.toggleStyle!=="switch"?(i.openBlock(),i.createElementBlock("input",{key:0,ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,type:"checkbox",class:i.normalizeClass([`hison-input-${e.inputType}`,...e.editModeClassList,...e.requiredClassList]),disabled:e.disable,readonly:e.readonly,checked:e.inputValue===!0,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[44]||(n[44]=(...o)=>e.onCheckboxChange&&e.onCheckboxChange(...o)),onFocus:n[45]||(n[45]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[46]||(n[46]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[47]||(n[47]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[48]||(n[48]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[49]||(n[49]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[50]||(n[50]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[51]||(n[51]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[52]||(n[52]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[53]||(n[53]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[54]||(n[54]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[55]||(n[55]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[56]||(n[56]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[57]||(n[57]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[58]||(n[58]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[59]||(n[59]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[60]||(n[60]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[61]||(n[61]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[62]||(n[62]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[63]||(n[63]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[64]||(n[64]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[65]||(n[65]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,42,je)):(i.openBlock(),i.createElementBlock("label",{key:1,class:i.normalizeClass(["hison-input-checkbox-switch",...e.editModeClassList])},[i.createElementVNode("input",{ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,type:"checkbox",class:"hison-cswitch-input",disabled:e.disable,readonly:e.readonly,checked:e.inputValue===!0,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[66]||(n[66]=(...o)=>e.onCheckboxChange&&e.onCheckboxChange(...o)),onFocus:n[67]||(n[67]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[68]||(n[68]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[69]||(n[69]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[70]||(n[70]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[71]||(n[71]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[72]||(n[72]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[73]||(n[73]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[74]||(n[74]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[75]||(n[75]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[76]||(n[76]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[77]||(n[77]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[78]||(n[78]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[79]||(n[79]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[80]||(n[80]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[81]||(n[81]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[82]||(n[82]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[83]||(n[83]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[84]||(n[84]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[85]||(n[85]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[86]||(n[86]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[87]||(n[87]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,40,We),i.createElementVNode("span",{class:i.normalizeClass(["hison-switch-visual",[...e.editModeClassList,...e.requiredClassList]]),"aria-hidden":"true"},null,2)],2))],4)):e.inputType==="radio"?(i.openBlock(),i.createElementBlock("div",{key:3,class:i.normalizeClass(["hison-input","hison-input-radio-div"]),style:i.normalizeStyle([e.textAlignStyle,e.props.style])},[e.toggleStyle!=="switch"?(i.openBlock(),i.createElementBlock("input",{key:0,ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,type:"radio",class:i.normalizeClass([`hison-input-${e.inputType}`,"hison-input-radio--default",...e.editModeClassList,...e.requiredClassList]),disabled:e.disable||e.readonly,readonly:e.readonly,checked:e.inputValue===!0,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[88]||(n[88]=(...o)=>e.onRadioChange&&e.onRadioChange(...o)),onFocus:n[89]||(n[89]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[90]||(n[90]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[91]||(n[91]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[92]||(n[92]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[93]||(n[93]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[94]||(n[94]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[95]||(n[95]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[96]||(n[96]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[97]||(n[97]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[98]||(n[98]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[99]||(n[99]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[100]||(n[100]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[101]||(n[101]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[102]||(n[102]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[103]||(n[103]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[104]||(n[104]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[105]||(n[105]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[106]||(n[106]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[107]||(n[107]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[108]||(n[108]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[109]||(n[109]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,42,Ye)):(i.openBlock(),i.createElementBlock("label",{key:1,class:i.normalizeClass(["hison-input-radio-switch",...e.editModeClassList])},[i.createElementVNode("input",{ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,type:"radio",class:"hison-radio-switch-input",disabled:e.disable||e.readonly,readonly:e.readonly,checked:e.inputValue===!0,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[110]||(n[110]=(...o)=>e.onRadioChange&&e.onRadioChange(...o)),onFocus:n[111]||(n[111]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[112]||(n[112]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[113]||(n[113]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[114]||(n[114]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[115]||(n[115]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[116]||(n[116]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[117]||(n[117]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[118]||(n[118]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[119]||(n[119]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[120]||(n[120]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[121]||(n[121]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[122]||(n[122]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[123]||(n[123]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[124]||(n[124]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[125]||(n[125]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[126]||(n[126]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[127]||(n[127]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[128]||(n[128]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[129]||(n[129]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[130]||(n[130]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[131]||(n[131]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,40,Xe),i.createElementVNode("span",{class:i.normalizeClass(["hison-switch-visual",[...e.editModeClassList,...e.requiredClassList]]),"aria-hidden":"true"},null,2)],2))],4)):e.inputType==="select"?(i.openBlock(),i.createElementBlock("select",{key:4,ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,style:i.normalizeStyle([e.textAlignStyle,e.props.style]),class:i.normalizeClass(["hison-input",`hison-input-${e.inputType}`,...e.editModeClassList,...e.requiredClassList,e.fontBoldClass,e.fontItalicClass,e.fontThrulineClass,e.fontUnderlineClass,e.borderClass]),value:e.inputValue,disabled:e.disable,readonly:e.readonly,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[132]||(n[132]=(...o)=>e.onSelectChange&&e.onSelectChange(...o)),onFocus:n[133]||(n[133]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[134]||(n[134]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[135]||(n[135]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[136]||(n[136]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[137]||(n[137]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[138]||(n[138]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[139]||(n[139]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[140]||(n[140]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[141]||(n[141]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[142]||(n[142]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[143]||(n[143]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[144]||(n[144]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[145]||(n[145]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[146]||(n[146]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[147]||(n[147]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[148]||(n[148]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[149]||(n[149]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[150]||(n[150]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[151]||(n[151]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[152]||(n[152]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[153]||(n[153]=o=>e.$emit("contextmenu",o,e.inputMethods))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.props.options,o=>(i.openBlock(),i.createElementBlock("option",{key:o.value,value:o.value},i.toDisplayString(o.text),9,Qe))),128))],46,Je)):e.inputType==="textarea"?(i.openBlock(),i.createElementBlock("textarea",{key:5,ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,class:i.normalizeClass(["hison-input",`hison-input-${e.inputType}`,...e.editModeClassList,...e.requiredClassList,e.fontBoldClass,e.fontItalicClass,e.fontThrulineClass,e.fontUnderlineClass,e.borderClass]),value:e.inputValue,style:i.normalizeStyle([e.textAlignStyle,e.props.style]),disabled:e.disable,readonly:e.readonly,placeholder:e.placeholder||void 0,title:e.title||void 0,maxlength:e.maxLength||void 0,tabindex:e.tabIndex??void 0,onInput:n[154]||(n[154]=(...o)=>e.onInput&&e.onInput(...o)),onFocus:n[155]||(n[155]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[156]||(n[156]=(...o)=>e.onBlur&&e.onBlur(...o))},i.toDisplayString(e.inputValue),47,Ze)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:6},[i.withDirectives(i.createElementVNode("input",{ref:"inputTextRef",id:`input_text_${e.id}`,name:`input_text_${e.nameAttr}`,class:i.normalizeClass(["hison-input",`hison-input-text-${e.inputType}`,...e.editModeClassList,...e.requiredClassList,e.fontBoldClass,e.fontItalicClass,e.fontThrulineClass,e.fontUnderlineClass,e.borderClass]),type:"text",value:e.spanText,style:i.normalizeStyle([e.textAlignStyle,e.props.style]),disabled:e.disable,readonly:e.readonly,title:e.title||void 0,placeholder:e.placeholder||void 0,tabindex:e.tabIndex??void 0,onFocus:n[157]||(n[157]=(...o)=>e.onTextInputFocus&&e.onTextInputFocus(...o)),onClick:n[158]||(n[158]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[159]||(n[159]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[160]||(n[160]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[161]||(n[161]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[162]||(n[162]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[163]||(n[163]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[164]||(n[164]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[165]||(n[165]=o=>e.$emit("mouseout",o,e.inputMethods)),onMousemove:n[166]||(n[166]=o=>e.$emit("mousemove",o,e.inputMethods)),onPointerdown:n[167]||(n[167]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[168]||(n[168]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[169]||(n[169]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[170]||(n[170]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[171]||(n[171]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[172]||(n[172]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[173]||(n[173]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[174]||(n[174]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[175]||(n[175]=o=>e.$emit("touchcancel",o,e.inputMethods))},null,46,Ge),[[i.vShow,!e.editing]]),i.withDirectives(i.createElementVNode("input",{ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,class:i.normalizeClass(["hison-input",`hison-input-${e.inputType}`,...e.editModeClassList,e.borderClass]),value:e.inputValue,style:i.normalizeStyle([e.textAlignStyle,e.props.style]),disabled:e.disable,readonly:e.readonly,type:e.inputType,title:e.title||void 0,placeholder:e.placeholder||void 0,max:e.maxNumber||void 0,min:e.minNumber||void 0,tabindex:e.tabIndex??void 0,onFocus:n[176]||(n[176]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[177]||(n[177]=(...o)=>e.onBlur&&e.onBlur(...o)),onInput:n[178]||(n[178]=(...o)=>e.onInput&&e.onInput(...o)),onCompositionstart:n[179]||(n[179]=o=>e.$emit("compositionstart",o,e.inputMethods)),onCompositionupdate:n[180]||(n[180]=o=>e.$emit("compositionupdate",o,e.inputMethods)),onCompositionend:n[181]||(n[181]=o=>e.$emit("compositionend",o,e.inputMethods)),onKeydown:n[182]||(n[182]=o=>e.$emit("keydown",o,e.inputMethods)),onKeyup:n[183]||(n[183]=o=>e.$emit("keyup",o,e.inputMethods)),onDragstart:n[184]||(n[184]=o=>e.$emit("dragstart",o,e.inputMethods)),onDragend:n[185]||(n[185]=o=>e.$emit("dragend",o,e.inputMethods)),onDrag:n[186]||(n[186]=o=>e.$emit("drag",o,e.inputMethods)),onDrop:n[187]||(n[187]=o=>e.$emit("drop",o,e.inputMethods)),onCopy:n[188]||(n[188]=o=>e.$emit("copy",o,e.inputMethods)),onCut:n[189]||(n[189]=o=>e.$emit("cut",o,e.inputMethods)),onPaste:n[190]||(n[190]=o=>e.$emit("paste",o,e.inputMethods)),onWheel:n[191]||(n[191]=o=>e.$emit("wheel",o,e.inputMethods)),onContextmenu:n[192]||(n[192]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,46,xe),[[i.vShow,e.editing]])],64))],2)}const _e=Ve._export_sfc(Ue,[["render",ce]]);exports.default=_e;