hisonvue 1.0.2 → 1.0.4

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 (59) hide show
  1. package/dist/{HAccordion-DXNoziwY.mjs → HAccordion-CrCXK2YM.mjs} +2 -2
  2. package/dist/{HAccordion-FatqOgy2.js → HAccordion-DleNf4M-.js} +1 -1
  3. package/dist/{HBaggie-DWSes7QC.js → HBaggie-CtDuqAan.js} +1 -1
  4. package/dist/{HBaggie-C4qcuGl9.mjs → HBaggie-DR86wX0x.mjs} +2 -2
  5. package/dist/{HBanner-D2IVlykU.js → HBanner-BDv5sYCa.js} +1 -1
  6. package/dist/{HBanner-DNOhDRli.mjs → HBanner-D4j3o022.mjs} +2 -2
  7. package/dist/{HButton-Dhyb_Apz.mjs → HButton-BeKvR0cC.mjs} +2 -2
  8. package/dist/{HButton-D3aVYVY3.js → HButton-CkHZhjwN.js} +1 -1
  9. package/dist/{HCalendar-BB0XyvZV.js → HCalendar-BbVDcV_g.js} +1 -1
  10. package/dist/{HCalendar-Bv1mZ6DG.mjs → HCalendar-vI0VJJUJ.mjs} +1 -1
  11. package/dist/{HCaption-BKJlg7ZH.mjs → HCaption-Cf3dj2IG.mjs} +1 -1
  12. package/dist/{HCaption-2Wpf8L9R.js → HCaption-DbjKugnx.js} +1 -1
  13. package/dist/{HChart-H5M0gQB0.mjs → HChart-BITDUWsH.mjs} +1 -1
  14. package/dist/{HChart-BEe_bo5V.js → HChart-CTa5zLah.js} +1 -1
  15. package/dist/{HDrawer-CWkLJyMS.js → HDrawer-BdhP3EDS.js} +1 -1
  16. package/dist/{HDrawer-BYrUd-eA.mjs → HDrawer-vEgPHlwE.mjs} +1 -1
  17. package/dist/{HDropdown-DTaeDC5I.js → HDropdown-BfZUh6z-.js} +1 -1
  18. package/dist/{HDropdown-Dpba4jMR.mjs → HDropdown-BojM0eHC.mjs} +2 -2
  19. package/dist/{HFileset-Qo0JIgMJ.mjs → HFileset-BG5l_qx4.mjs} +1 -1
  20. package/dist/{HFileset-CWDMfYdY.js → HFileset-Cb7WvJLf.js} +1 -1
  21. package/dist/{HGap-B5lrnzJ6.mjs → HGap-CNKNrbB5.mjs} +1 -1
  22. package/dist/{HGap-Bcl_WYxa.js → HGap-CZfD94Bb.js} +1 -1
  23. package/dist/{HGrid-59dIVp9V.mjs → HGrid-BudEkfCU.mjs} +8 -8
  24. package/dist/HGrid-CbxqCD5t.js +1 -0
  25. package/dist/{HImagebox-G-LvB26S.mjs → HImagebox--UAgOadx.mjs} +1 -1
  26. package/dist/{HImagebox-DIYXXh95.js → HImagebox-BPvmvGWb.js} +1 -1
  27. package/dist/{HInput-C9rOBXqc.mjs → HInput-C5otOYZ7.mjs} +1 -1
  28. package/dist/{HInput-PgalO88P.js → HInput-CpbGKZg2.js} +1 -1
  29. package/dist/{HInputGroup-XryXR-6k.js → HInputGroup-BRYFCJDS.js} +1 -1
  30. package/dist/{HInputGroup-BaK14hkQ.mjs → HInputGroup-CV595p3t.mjs} +1 -1
  31. package/dist/{HLabel-jbc0_u5J.mjs → HLabel-DSOf8CAF.mjs} +2 -2
  32. package/dist/{HLabel-CbQeG2R3.js → HLabel-buiY-oWY.js} +1 -1
  33. package/dist/{HLayout-DmTQQmLs.mjs → HLayout-0PWr0ybN.mjs} +1 -1
  34. package/dist/{HLayout-CUwfApcb.js → HLayout-Bu0hB8wf.js} +1 -1
  35. package/dist/{HList-DCupvbju.js → HList-BIKaUFs1.js} +1 -1
  36. package/dist/{HList-rD5kL7cI.mjs → HList-CAYpxvpT.mjs} +2 -2
  37. package/dist/{HModal-eniLW2gp.js → HModal-DDL-MrHu.js} +1 -1
  38. package/dist/{HModal-XDNcukop.mjs → HModal-FqJbINTG.mjs} +1 -1
  39. package/dist/{HNote-BA3umb5e.mjs → HNote-CQVkY196.mjs} +1 -1
  40. package/dist/{HNote-DzeszCEe.js → HNote-Dwbr1_V2.js} +1 -1
  41. package/dist/{HPagination-BS4l4xGP.js → HPagination-DFnrZYhq.js} +1 -1
  42. package/dist/{HPagination-CgufEtL4.mjs → HPagination-DwYSg0IX.mjs} +2 -2
  43. package/dist/{HParagraph-DPFx64UD.js → HParagraph-BFQ0qCCP.js} +1 -1
  44. package/dist/{HParagraph-hCHZmj-4.mjs → HParagraph-DCTkBsye.mjs} +1 -1
  45. package/dist/{HPopup-BfPYzBy6.mjs → HPopup-DNzBPmHh.mjs} +1 -1
  46. package/dist/{HPopup-NBwn8RA4.js → HPopup-hBOpdf7v.js} +1 -1
  47. package/dist/{HSpinner-1UQgVEve.mjs → HSpinner-DN8JhipU.mjs} +1 -1
  48. package/dist/{HSpinner-CMsmFVOv.js → HSpinner-Zl3b9VKW.js} +1 -1
  49. package/dist/{HTable-Dweedemn.js → HTable-8jwoguW_.js} +1 -1
  50. package/dist/{HTable-BUIKSXIR.mjs → HTable-Ci4lTwPm.mjs} +1 -1
  51. package/dist/hisonvue.cjs.js +1 -1
  52. package/dist/hisonvue.css +1 -1
  53. package/dist/hisonvue.es.js +2 -2
  54. package/dist/{index-p1EBArRP.mjs → index-0mmn7cpg.mjs} +2 -2
  55. package/dist/{index-CKU70ocu.js → index-DON-Hfjr.js} +2 -2
  56. package/dist/{setButtonCssEvent-CB-7jMmJ.mjs → setButtonCssEvent-BNLo78yX.mjs} +1 -1
  57. package/dist/{setButtonCssEvent-BoBQS2-T.js → setButtonCssEvent-Dl2nV55A.js} +1 -1
  58. package/package.json +1 -1
  59. package/dist/HGrid-f8xHSk9C.js +0 -1
@@ -1,4 +1,4 @@
1
- import { h as n } from "./index-p1EBArRP.mjs";
1
+ import { h as n } from "./index-0mmn7cpg.mjs";
2
2
  const o = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakSet(), u = (t) => {
3
3
  const e = t.currentTarget;
4
4
  if (n.event.cssEvent.button_onBeforeFocus(t) === !1) {
@@ -1 +1 @@
1
- "use strict";const o=require("./index-CKU70ocu.js"),n=new WeakMap,r=new WeakSet,u=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeFocus(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.add("hison-button-on-focus"),o.hisonCloser.event.cssEvent.button_onAfterFocus(t)},a=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeBlur(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.remove("hison-button-on-focus"),e.classList.remove("hison-button-on-active");const s=n.get(e);s&&(clearTimeout(s),n.delete(e)),o.hisonCloser.event.cssEvent.button_onAfterBlur(t)},c=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeClick(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.remove("hison-button-on-mouseover","hison-button-on-focus"),e.classList.add("hison-button-on-active");const s=n.get(e);s&&clearTimeout(s);const l=window.setTimeout(()=>{e.classList.remove("hison-button-on-active"),document.activeElement===e&&e.classList.add("hison-button-on-focus"),o.hisonCloser.event.cssEvent.button_onAfterClick(t),n.delete(e)},100);n.set(e,l)},i=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeMouseover(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.add("hison-button-on-mouseover"),o.hisonCloser.event.cssEvent.button_onAfterMouseover(t)},v=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeMouseout(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.remove("hison-button-on-mouseover"),o.hisonCloser.event.cssEvent.button_onAfterMouseout(t)},f=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeTouchstart(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.add("hison-button-on-mouseover"),o.hisonCloser.event.cssEvent.button_onAfterTouchstart(t)},d=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeTouchend(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.remove("hison-button-on-mouseover"),o.hisonCloser.event.cssEvent.button_onAfterTouchend(t)},h=t=>{r.has(t)||(r.add(t),t.addEventListener("click",c,{capture:!0}),t.addEventListener("focus",u),t.addEventListener("blur",a),t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",v),t.addEventListener("touchstart",f,{passive:!1,capture:!0}),t.addEventListener("touchend",d,{passive:!1,capture:!0}))},E=t=>{if(!r.has(t))return;r.delete(t),t.removeEventListener("click",c,{capture:!0}),t.removeEventListener("focus",u),t.removeEventListener("blur",a),t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",v),t.removeEventListener("touchstart",f,{capture:!0}),t.removeEventListener("touchend",d,{capture:!0});const e=n.get(t);e&&(clearTimeout(e),n.delete(t))};exports.addButtonCssEvent=h;exports.removeButtonCssEvent=E;
1
+ "use strict";const o=require("./index-DON-Hfjr.js"),n=new WeakMap,r=new WeakSet,u=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeFocus(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.add("hison-button-on-focus"),o.hisonCloser.event.cssEvent.button_onAfterFocus(t)},a=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeBlur(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.remove("hison-button-on-focus"),e.classList.remove("hison-button-on-active");const s=n.get(e);s&&(clearTimeout(s),n.delete(e)),o.hisonCloser.event.cssEvent.button_onAfterBlur(t)},c=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeClick(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.remove("hison-button-on-mouseover","hison-button-on-focus"),e.classList.add("hison-button-on-active");const s=n.get(e);s&&clearTimeout(s);const l=window.setTimeout(()=>{e.classList.remove("hison-button-on-active"),document.activeElement===e&&e.classList.add("hison-button-on-focus"),o.hisonCloser.event.cssEvent.button_onAfterClick(t),n.delete(e)},100);n.set(e,l)},i=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeMouseover(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.add("hison-button-on-mouseover"),o.hisonCloser.event.cssEvent.button_onAfterMouseover(t)},v=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeMouseout(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.remove("hison-button-on-mouseover"),o.hisonCloser.event.cssEvent.button_onAfterMouseout(t)},f=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeTouchstart(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.add("hison-button-on-mouseover"),o.hisonCloser.event.cssEvent.button_onAfterTouchstart(t)},d=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeTouchend(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.remove("hison-button-on-mouseover"),o.hisonCloser.event.cssEvent.button_onAfterTouchend(t)},h=t=>{r.has(t)||(r.add(t),t.addEventListener("click",c,{capture:!0}),t.addEventListener("focus",u),t.addEventListener("blur",a),t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",v),t.addEventListener("touchstart",f,{passive:!1,capture:!0}),t.addEventListener("touchend",d,{passive:!1,capture:!0}))},E=t=>{if(!r.has(t))return;r.delete(t),t.removeEventListener("click",c,{capture:!0}),t.removeEventListener("focus",u),t.removeEventListener("blur",a),t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",v),t.removeEventListener("touchstart",f,{capture:!0}),t.removeEventListener("touchend",d,{capture:!0});const e=n.get(t);e&&(clearTimeout(e),n.delete(t))};exports.addButtonCssEvent=h;exports.removeButtonCssEvent=E;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hisonvue",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "main": "./dist/hisonvue.cjs.js",
5
5
  "module": "./dist/hisonvue.es.js",
6
6
  "types": "./dist/hisonvue.d.ts",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),l=require("./index-CKU70ocu.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"),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;