hisonvue 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HAccordion-DABKXdkp.mjs → HAccordion-B9X5a8uS.mjs} +2 -2
- package/dist/{HAccordion-CcqP8KVN.js → HAccordion-CwX4X5rP.js} +1 -1
- package/dist/{HBaggie-Dnq5t8un.mjs → HBaggie-BkdjoUd8.mjs} +2 -2
- package/dist/{HBaggie-Dc-KPRDG.js → HBaggie-p4YtANgJ.js} +1 -1
- package/dist/{HBanner-Cxl_X-Ui.mjs → HBanner-DJSW0-oC.mjs} +2 -2
- package/dist/{HBanner-ClmYECkp.js → HBanner-XHxPBDDx.js} +1 -1
- package/dist/{HButton-BuJp6l32.mjs → HButton-BTx3hnGw.mjs} +2 -2
- package/dist/{HButton-D7w35fAT.js → HButton-Cog_ozZo.js} +1 -1
- package/dist/{HCalendar-GfsTZV86.js → HCalendar-CNQKtcAW.js} +1 -1
- package/dist/{HCalendar-Cg1Ejr3b.mjs → HCalendar-DBOIOJU5.mjs} +1 -1
- package/dist/{HCaption-BP0zpAoh.mjs → HCaption-CLJuVeBS.mjs} +1 -1
- package/dist/{HCaption-BZklN1hJ.js → HCaption-DxHNXOQT.js} +1 -1
- package/dist/{HChart-BoIsUY-U.js → HChart-BL9C0v1k.js} +1 -1
- package/dist/{HChart-ZHMznCxo.mjs → HChart-DDf5oZRS.mjs} +1 -1
- package/dist/{HDrawer-BfMsOIMU.mjs → HDrawer-BoOaLn_5.mjs} +1 -1
- package/dist/{HDrawer-BdNXB7bZ.js → HDrawer-C34D6Yyn.js} +1 -1
- package/dist/{HDropdown-KwBejxH6.mjs → HDropdown-Qv-J_mld.mjs} +2 -2
- package/dist/{HDropdown-CFFwgLxP.js → HDropdown-YYE5X-xr.js} +1 -1
- package/dist/{HFileset-BVwhCpWk.js → HFileset-BA_iNeiI.js} +1 -1
- package/dist/{HFileset-NrFG7upU.mjs → HFileset-BvDO3aNe.mjs} +1 -1
- package/dist/{HGap-DQ7KNksh.mjs → HGap-BHFeKNmj.mjs} +1 -1
- package/dist/{HGap-D-OpGS6f.js → HGap-BrB040ot.js} +1 -1
- package/dist/{HGrid-Dgv2QLud.mjs → HGrid-B3sogW2X.mjs} +1 -1
- package/dist/{HGrid-PEaylCn3.js → HGrid-DqB9uUXP.js} +1 -1
- package/dist/{HImagebox-CVmax7-2.js → HImagebox-CJ6ZePsH.js} +1 -1
- package/dist/{HImagebox-DGj7kyoL.mjs → HImagebox-FskJNzsv.mjs} +1 -1
- package/dist/{HInput-CRyozCxo.js → HInput-CJr5PE-7.js} +1 -1
- package/dist/{HInput-DzT-VAwv.mjs → HInput-CXjTaPED.mjs} +1 -1
- package/dist/{HInputGroup-CjBmNgV9.mjs → HInputGroup-BhSyxYq0.mjs} +1 -1
- package/dist/{HInputGroup-CaYUBopI.js → HInputGroup-D8p9jS7n.js} +1 -1
- package/dist/{HLabel-BA2ph0V-.js → HLabel-5ptBVe28.js} +1 -1
- package/dist/{HLabel-c8gR7-ur.mjs → HLabel-BVsI-mje.mjs} +2 -2
- package/dist/{HLayout-GazOMB2h.mjs → HLayout-DryvkRqE.mjs} +43 -45
- package/dist/HLayout-DtM-cTSx.js +1 -0
- package/dist/{HList-B14zIkzR.js → HList-DU3WuYwD.js} +1 -1
- package/dist/{HList-tAOQaX_Q.mjs → HList-DtOpQ2V3.mjs} +2 -2
- package/dist/{HModal-oGryjRSc.mjs → HModal-BJKdf65e.mjs} +1 -1
- package/dist/{HModal-Boe8kpBb.js → HModal-C_mi279o.js} +1 -1
- package/dist/{HNote-CZ02WSkW.mjs → HNote-B6GFOj0S.mjs} +1 -1
- package/dist/{HNote-JSNpTQXQ.js → HNote-B9gSb3LH.js} +1 -1
- package/dist/{HPagination-DlPSez0N.js → HPagination-4wmIvYNJ.js} +1 -1
- package/dist/{HPagination-ZJZWJ7HP.mjs → HPagination-CqOA6UCF.mjs} +2 -2
- package/dist/{HParagraph-D0bGPbRd.mjs → HParagraph-CM2yycMU.mjs} +1 -1
- package/dist/{HParagraph-BPtGEwa6.js → HParagraph-PTHx_RN4.js} +1 -1
- package/dist/{HPopup-Dv018FIN.mjs → HPopup-CRXaObMA.mjs} +1 -1
- package/dist/{HPopup-DhNEnDcR.js → HPopup-VSP63YBK.js} +1 -1
- package/dist/{HSpinner-Bvk7nkiS.mjs → HSpinner-CMNqrFQm.mjs} +1 -1
- package/dist/{HSpinner-BHcYPH5-.js → HSpinner-DUSvlAUB.js} +1 -1
- package/dist/{HTable-Dq_ySJrZ.js → HTable-Cxnp6Dcb.js} +1 -1
- package/dist/{HTable-C1ZdeMIP.mjs → HTable-D_7pbQh6.mjs} +1 -1
- package/dist/hisonvue.cjs.js +1 -1
- package/dist/hisonvue.d.ts +17 -6
- package/dist/hisonvue.es.js +2 -2
- package/dist/{index-Cp0RZa-k.js → index-8ra42Geo.js} +18 -18
- package/dist/{index-9uY2HzIO.mjs → index-CTBjU64J.mjs} +10 -4
- package/dist/{setButtonCssEvent-C_OU9wiq.mjs → setButtonCssEvent-D2gKOB4N.mjs} +1 -1
- package/dist/{setButtonCssEvent-CEQ0vsUw.js → setButtonCssEvent-Dr7JxaDk.js} +1 -1
- package/package.json +2 -2
- package/dist/HLayout-Da1XBfUi.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),l=require("./index-Cp0RZa-k.js"),He=require("./_plugin-vue_export-helper-BHFhmbuH.js"),qe={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},headerCellClass:{type:[String,Array,Object],required:!1},bodyCellClass:{type:[String,Array,Object],required:!1},footerCellClass:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},headerCellStyle:{type:[String,Object,Array],required:!1},bodyCellStyle:{type:[String,Object,Array],required:!1},footerCellStyle:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},caption:{type:String,default:""},striped:{type:String,default:"row"},hoverable:{type:String,default:"row"},border:{type:Boolean,default:!1},headerBorderTop:{type:Boolean,default:!1},headerBorderBottom:{type:Boolean,default:!1},headerBorderLeft:{type:Boolean,default:!1},headerBorderRight:{type:Boolean,default:!1},bodyBorderTop:{type:Boolean,default:!1},bodyBorderBottom:{type:Boolean,default:!1},bodyBorderLeft:{type:Boolean,default:!1},bodyBorderRight:{type:Boolean,default:!1},footerBorderTop:{type:Boolean,default:!1},footerBorderBottom:{type:Boolean,default:!1},footerBorderLeft:{type:Boolean,default:!1},footerBorderRight:{type:Boolean,default:!1},headerTextAlign:{type:String,default:l.TextAlign.center,validator:o=>o==null||l.TEXT_ALIGN_VALUES.includes(o)},bodyTextAlign:{type:String,default:l.TextAlign.left,validator:o=>o==null||l.TEXT_ALIGN_VALUES.includes(o)},footerTextAlign:{type:String,default:l.TextAlign.right,validator:o=>o==null||l.TEXT_ALIGN_VALUES.includes(o)},headerVerticalAlign:{type:String,default:l.VerticalAlign.middle,validator:o=>l.VERTICAL_ALIGN_VALUES.includes(o)},bodyVerticalAlign:{type:String,default:l.VerticalAlign.middle,validator:o=>l.VERTICAL_ALIGN_VALUES.includes(o)},footerVerticalAlign:{type:String,default:l.VerticalAlign.middle,validator:o=>l.VERTICAL_ALIGN_VALUES.includes(o)},backgroundType:{type:String,default:l.BackgroundType.empty,validator:o=>l.BACKGROUND_TYPE_VALUES.includes(o)}},$e=t.defineComponent({name:"HTable",props:qe,inheritAttrs:!1,emits:["mounted","responsive-change"],setup(o,{emit:j}){const J=t.ref(null),$=t.ref(null),s=t.ref(null),N=t.ref(null),i=o.id?o.id:l.getUUID(),U=`htable:${i}`,Q=l.useDevice(),z=t.ref(null),f=t.ref(o.visible),ae=t.computed(()=>f.value?"":"hison-display-none"),v=t.ref(o.caption||""),u=t.ref(!!o.border),c=t.ref(o.striped??"row"),d=t.ref(o.hoverable??"row"),h=t.ref(o.backgroundType||l.BackgroundType.empty),y=t.ref(!!o.headerBorderTop),B=t.ref(!!o.headerBorderBottom),g=t.ref(!!o.headerBorderLeft),b=t.ref(!!o.headerBorderRight),m=t.ref(!!o.bodyBorderTop),C=t.ref(!!o.bodyBorderBottom),A=t.ref(!!o.bodyBorderLeft),T=t.ref(!!o.bodyBorderRight),p=t.ref(!!o.footerBorderTop),S=t.ref(!!o.footerBorderBottom),L=t.ref(!!o.footerBorderLeft),w=t.ref(!!o.footerBorderRight),V=t.ref(o.headerTextAlign),R=t.ref(o.bodyTextAlign),k=t.ref(o.footerTextAlign),E=t.ref(o.headerVerticalAlign),H=t.ref(o.bodyVerticalAlign),q=t.ref(o.footerVerticalAlign),se=t.computed(()=>u.value?"hison-border":""),ne=t.computed(()=>{switch(h.value){case l.BackgroundType.empty:return"hison-bg-empty";case l.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),de=t.computed(()=>c.value==="row"?"is-striped-row":c.value==="col"?"is-striped-col":null),ie=t.computed(()=>d.value==="row"?"is-hover-row":d.value==="col"?"is-hover-col":null),ue=t.computed(()=>y.value?"hison-header-border-top":""),ce=t.computed(()=>B.value?"hison-header-border-bottom":""),fe=t.computed(()=>g.value?"hison-header-border-left":""),ve=t.computed(()=>b.value?"hison-header-border-right":""),he=t.computed(()=>m.value?"hison-body-border-top":""),ye=t.computed(()=>C.value?"hison-body-border-bottom":""),Be=t.computed(()=>A.value?"hison-body-border-left":""),ge=t.computed(()=>T.value?"hison-body-border-right":""),be=t.computed(()=>p.value?"hison-footer-border-top":""),me=t.computed(()=>S.value?"hison-footer-border-bottom":""),Ce=t.computed(()=>L.value?"hison-footer-border-left":""),Ae=t.computed(()=>w.value?"hison-footer-border-right":""),I=(e,r)=>{const a=e==="thead"?"hison-thead":e==="tbody"?"hison-tbody":"hison-tfoot";switch(r){case"center":return`${a}-ta-center`;case"right":return`${a}-ta-right`;default:return`${a}-ta-left`}},M=(e,r)=>{const a=e==="thead"?"hison-thead":e==="tbody"?"hison-tbody":"hison-tfoot";switch(r){case"top":return`${a}-valign-top`;case"bottom":return`${a}-valign-bottom`;default:return`${a}-valign-middle`}},Te=t.computed(()=>I("thead",V.value)),pe=t.computed(()=>I("tbody",R.value)),Se=t.computed(()=>I("tfoot",k.value)),Le=t.computed(()=>M("thead",E.value)),we=t.computed(()=>M("tbody",H.value)),Ve=t.computed(()=>M("tfoot",q.value)),F=t.ref([]),G=()=>{F.value=l.extractResponsiveClasses(l.toClassString(o.class)||"",Q.value),l.addComponentNameToClass(F.value,"size",l.hisonCloser.componentStyle.size),l.addComponentNameToClass(F.value,"color","primary")};let D=-1;const W=()=>{const e=s.value;e&&(e.querySelectorAll("td.is-col-hover-cell").forEach(r=>r.classList.remove("is-col-hover-cell")),D=-1)},Re=e=>{const r=s.value;r&&(W(),r.querySelectorAll("tr").forEach(a=>{const n=a.querySelectorAll("td")[e];n&&n.classList.add("is-col-hover-cell")}),D=e)},_=e=>{if(d.value!=="col")return;const r=e.target;if(!r||r.tagName!=="TD")return;const n=r.cellIndex;n!==D&&Re(n)},ee=()=>{d.value==="col"&&W()},ke=e=>e.replace(/[A-Z]/g,r=>"-"+r.toLowerCase()).replace(/^ms-/,"-ms-"),te=e=>e?typeof e=="string"?e.trim().split(/\s+/).filter(Boolean):Array.isArray(e)?e.flatMap(te):Object.entries(e).filter(([,r])=>!!r).map(([r])=>r):[],Ee=e=>{if(!e)return[];if(typeof e=="string"){const r={};return e.split(";").forEach(a=>{const[n,O]=a.split(":");!n||!O||(r[n.trim()]=O.trim())}),[r]}return Array.isArray(e)?e.filter(Boolean):typeof e=="object"?[e]:[]},P=(e,r)=>{const a=Ee(r);if(a.length)for(const n of a)for(const[O,Z]of Object.entries(n)){if(Z==null||Z==="")continue;const le=ke(O);e.style.getPropertyValue(le)||e.style.setProperty(le,String(Z))}},x=(e,r)=>{const a=te(r);a.length&&e.classList.add(...a)},X=()=>{const e=$.value;if(!e)return;Array.from(e.querySelectorAll("th")).forEach(a=>{x(a,o.headerCellClass),P(a,o.headerCellStyle)})},K=()=>{const e=s.value;if(!e)return;Array.from(e.querySelectorAll("td")).forEach(a=>{x(a,o.bodyCellClass),P(a,o.bodyCellStyle)})},Y=()=>{const e=N.value;if(!e)return;Array.from(e.querySelectorAll("td")).forEach(a=>{x(a,o.footerCellClass),P(a,o.footerCellStyle)})},oe=async()=>{l.hisonCloser.component.tableList[i]&&l.hisonCloser.component.tableList[i].isHisonvueComponent&&console.warn(`[Hisonvue] The table ID is at risk of being duplicated. ${i}`),l.registerReloadable(U,()=>{re(),setTimeout(oe)}),G(),s.value&&(s.value.addEventListener("mouseover",_),s.value.addEventListener("mouseleave",ee)),await t.nextTick(),X(),K(),Y(),z.value={isHisonvueComponent:!0,getId:()=>i,getType:()=>"table",isVisible:()=>f.value,setVisible:e=>{f.value=e},isBorder:()=>u.value,setBorder:e=>{u.value=e},isHeaderBorderTop:()=>y.value,setHeaderBorderTop:e=>{y.value=e},isHeaderBorderBottom:()=>B.value,setHeaderBorderBottom:e=>{B.value=e},isHeaderBorderLeft:()=>g.value,setHeaderBorderLeft:e=>{g.value=e},isHeaderBorderRight:()=>b.value,setHeaderBorderRight:e=>{b.value=e},isBodyBorderTop:()=>m.value,setBodyBorderTop:e=>{m.value=e},isBodyBorderBottom:()=>C.value,setBodyBorderBottom:e=>{C.value=e},isBodyBorderLeft:()=>A.value,setBodyBorderLeft:e=>{A.value=e},isBodyBorderRight:()=>T.value,setBodyBorderRight:e=>{T.value=e},isFooterBorderTop:()=>p.value,setFooterBorderTop:e=>{p.value=e},isFooterBorderBottom:()=>S.value,setFooterBorderBottom:e=>{S.value=e},isFooterBorderLeft:()=>L.value,setFooterBorderLeft:e=>{L.value=e},isFooterBorderRight:()=>w.value,setFooterBorderRight:e=>{w.value=e},getStriped:()=>c.value,setStriped:e=>{c.value=e},getHoverable:()=>d.value,setHoverable:e=>{d.value=e},getCaption:()=>v.value,setCaption:e=>{v.value=e},getBackgroundType:()=>h.value,setBackgroundType:e=>{h.value=e},getHeaderTextAlign:()=>V.value,setHeaderTextAlign:e=>{V.value=e},getBodyTextAlign:()=>R.value,setBodyTextAlign:e=>{R.value=e},getFooterTextAlign:()=>k.value,setFooterTextAlign:e=>{k.value=e},getHeaderVerticalAlign:()=>E.value,setHeaderVerticalAlign:e=>{E.value=e},getBodyVerticalAlign:()=>H.value,setBodyVerticalAlign:e=>{H.value=e},getFooterVerticalAlign:()=>q.value,setFooterVerticalAlign:e=>{q.value=e},getRowCount:()=>{const e=s.value;return e?e.querySelectorAll(":scope > tr").length:0},getRowElement:e=>{const r=s.value;if(!r||!Number.isInteger(e)||e<0)return null;const a=r.querySelectorAll(":scope > tr");return e>=a.length?null:a[e]},getHeadElement:()=>$.value,getBodyElement:()=>s.value,getFootElement:()=>N.value,reload:()=>l.reloadHisonComponent(U)},l.hisonCloser.component.tableList[i]=z.value,j("mounted",z.value)},re=()=>{s.value&&(s.value.removeEventListener("mouseover",_),s.value.removeEventListener("mouseleave",ee)),l.unregisterReloadable(U),delete l.hisonCloser.component.tableList[i]};return t.onMounted(oe),t.onBeforeUnmount(re),t.watch(Q,e=>{G(),j("responsive-change",e)}),t.watch(()=>o.visible,e=>{const r=!!e;r!==f.value&&(f.value=r)}),t.watch(()=>o.caption,e=>{const r=e??"";r!==v.value&&(v.value=r)}),t.watch(()=>o.border,e=>{const r=!!e;r!==u.value&&(u.value=r)}),t.watch(()=>o.backgroundType,e=>{e&&e!==h.value&&(h.value=e)}),t.watch(()=>o.striped,e=>{const r=e??"row";r!==c.value&&(c.value=r)}),t.watch(()=>o.hoverable,e=>{const r=e??"row";r!==d.value&&(d.value=r)}),t.watch(()=>o.headerBorderTop,e=>{const r=!!e;r!==y.value&&(y.value=r)}),t.watch(()=>o.headerBorderBottom,e=>{const r=!!e;r!==B.value&&(B.value=r)}),t.watch(()=>o.headerBorderLeft,e=>{const r=!!e;r!==g.value&&(g.value=r)}),t.watch(()=>o.headerBorderRight,e=>{const r=!!e;r!==b.value&&(b.value=r)}),t.watch(()=>o.bodyBorderTop,e=>{const r=!!e;r!==m.value&&(m.value=r)}),t.watch(()=>o.bodyBorderBottom,e=>{const r=!!e;r!==C.value&&(C.value=r)}),t.watch(()=>o.bodyBorderLeft,e=>{const r=!!e;r!==A.value&&(A.value=r)}),t.watch(()=>o.bodyBorderRight,e=>{const r=!!e;r!==T.value&&(T.value=r)}),t.watch(()=>o.footerBorderTop,e=>{const r=!!e;r!==p.value&&(p.value=r)}),t.watch(()=>o.footerBorderBottom,e=>{const r=!!e;r!==S.value&&(S.value=r)}),t.watch(()=>o.footerBorderLeft,e=>{const r=!!e;r!==L.value&&(L.value=r)}),t.watch(()=>o.footerBorderRight,e=>{const r=!!e;r!==w.value&&(w.value=r)}),t.watch(()=>o.headerTextAlign,e=>{e&&e!==V.value&&(V.value=e)}),t.watch(()=>o.bodyTextAlign,e=>{e&&e!==R.value&&(R.value=e)}),t.watch(()=>o.footerTextAlign,e=>{e&&e!==k.value&&(k.value=e)}),t.watch(()=>o.headerVerticalAlign,e=>{e&&e!==E.value&&(E.value=e)}),t.watch(()=>o.bodyVerticalAlign,e=>{e&&e!==H.value&&(H.value=e)}),t.watch(()=>o.footerVerticalAlign,e=>{e&&e!==q.value&&(q.value=e)}),t.watch(()=>o.headerCellClass,()=>t.nextTick(X)),t.watch(()=>o.headerCellStyle,()=>t.nextTick(X)),t.watch(()=>o.bodyCellClass,()=>t.nextTick(K)),t.watch(()=>o.bodyCellStyle,()=>t.nextTick(K)),t.watch(()=>o.footerCellClass,()=>t.nextTick(Y)),t.watch(()=>o.footerCellStyle,()=>t.nextTick(Y)),t.watch(()=>o.class,()=>{G()}),{props:o,tableRef:J,theadRef:$,tbodyRef:s,tfootRef:N,visibleClass:ae,stripedClass:de,hoverableClass:ie,caption:v,border:u,borderClass:se,tableBackgroundTypeClass:ne,responsiveClassList:F,headerBorderTopClass:ue,bodyBorderTopClass:he,footerBorderTopClass:be,headerBorderBottomClass:ce,bodyBorderBottomClass:ye,footerBorderBottomClass:me,headerBorderLeftClass:fe,bodyBorderLeftClass:Be,footerBorderLeftClass:Ce,headerBorderRightClass:ve,bodyBorderRightClass:ge,footerBorderRightClass:Ae,headerTextAlignClass:Te,bodyTextAlignClass:pe,footerTextAlignClass:Se,headerVAlignClass:Le,bodyVAlignClass:we,footerVAlignClass:Ve}}}),Ne={key:0,class:"hison-table-caption"};function Fe(o,j,J,$,s,N){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["hison-wrapper",...o.responsiveClassList,o.visibleClass])},[t.createElementVNode("table",{ref:"tableRef",class:t.normalizeClass(["hison-table",o.borderClass,o.tableBackgroundTypeClass,o.stripedClass,o.hoverableClass]),style:t.normalizeStyle(o.props.style)},[o.$slots.caption||o.caption?(t.openBlock(),t.createElementBlock("caption",Ne,[t.renderSlot(o.$slots,"caption",{},()=>[t.createTextVNode(t.toDisplayString(o.caption),1)])])):t.createCommentVNode("",!0),t.renderSlot(o.$slots,"colgroup"),o.$slots.thead?(t.openBlock(),t.createElementBlock("thead",{key:1,ref:"theadRef",class:t.normalizeClass([o.headerBorderTopClass,o.headerBorderBottomClass,o.headerBorderLeftClass,o.headerBorderRightClass,o.headerTextAlignClass,o.headerVAlignClass])},[t.renderSlot(o.$slots,"thead")],2)):t.createCommentVNode("",!0),t.createElementVNode("tbody",{ref:"tbodyRef",class:t.normalizeClass([o.bodyBorderTopClass,o.bodyBorderBottomClass,o.bodyBorderLeftClass,o.bodyBorderRightClass,o.bodyTextAlignClass,o.bodyVAlignClass])},[t.renderSlot(o.$slots,"default")],2),o.$slots.tfoot?(t.openBlock(),t.createElementBlock("tfoot",{key:2,ref:"tfootRef",class:t.normalizeClass([o.footerBorderTopClass,o.footerBorderBottomClass,o.footerBorderLeftClass,o.footerBorderRightClass,o.footerTextAlignClass,o.footerVAlignClass])},[t.renderSlot(o.$slots,"tfoot")],2)):t.createCommentVNode("",!0)],6)],2)}const Oe=He._export_sfc($e,[["render",Fe]]);exports.default=Oe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),l=require("./index-8ra42Geo.js"),He=require("./_plugin-vue_export-helper-BHFhmbuH.js"),qe={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},headerCellClass:{type:[String,Array,Object],required:!1},bodyCellClass:{type:[String,Array,Object],required:!1},footerCellClass:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},headerCellStyle:{type:[String,Object,Array],required:!1},bodyCellStyle:{type:[String,Object,Array],required:!1},footerCellStyle:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},caption:{type:String,default:""},striped:{type:String,default:"row"},hoverable:{type:String,default:"row"},border:{type:Boolean,default:!1},headerBorderTop:{type:Boolean,default:!1},headerBorderBottom:{type:Boolean,default:!1},headerBorderLeft:{type:Boolean,default:!1},headerBorderRight:{type:Boolean,default:!1},bodyBorderTop:{type:Boolean,default:!1},bodyBorderBottom:{type:Boolean,default:!1},bodyBorderLeft:{type:Boolean,default:!1},bodyBorderRight:{type:Boolean,default:!1},footerBorderTop:{type:Boolean,default:!1},footerBorderBottom:{type:Boolean,default:!1},footerBorderLeft:{type:Boolean,default:!1},footerBorderRight:{type:Boolean,default:!1},headerTextAlign:{type:String,default:l.TextAlign.center,validator:o=>o==null||l.TEXT_ALIGN_VALUES.includes(o)},bodyTextAlign:{type:String,default:l.TextAlign.left,validator:o=>o==null||l.TEXT_ALIGN_VALUES.includes(o)},footerTextAlign:{type:String,default:l.TextAlign.right,validator:o=>o==null||l.TEXT_ALIGN_VALUES.includes(o)},headerVerticalAlign:{type:String,default:l.VerticalAlign.middle,validator:o=>l.VERTICAL_ALIGN_VALUES.includes(o)},bodyVerticalAlign:{type:String,default:l.VerticalAlign.middle,validator:o=>l.VERTICAL_ALIGN_VALUES.includes(o)},footerVerticalAlign:{type:String,default:l.VerticalAlign.middle,validator:o=>l.VERTICAL_ALIGN_VALUES.includes(o)},backgroundType:{type:String,default:l.BackgroundType.empty,validator:o=>l.BACKGROUND_TYPE_VALUES.includes(o)}},$e=t.defineComponent({name:"HTable",props:qe,inheritAttrs:!1,emits:["mounted","responsive-change"],setup(o,{emit:j}){const J=t.ref(null),$=t.ref(null),s=t.ref(null),N=t.ref(null),i=o.id?o.id:l.getUUID(),U=`htable:${i}`,Q=l.useDevice(),z=t.ref(null),f=t.ref(o.visible),ae=t.computed(()=>f.value?"":"hison-display-none"),v=t.ref(o.caption||""),u=t.ref(!!o.border),c=t.ref(o.striped??"row"),d=t.ref(o.hoverable??"row"),h=t.ref(o.backgroundType||l.BackgroundType.empty),y=t.ref(!!o.headerBorderTop),B=t.ref(!!o.headerBorderBottom),g=t.ref(!!o.headerBorderLeft),b=t.ref(!!o.headerBorderRight),m=t.ref(!!o.bodyBorderTop),C=t.ref(!!o.bodyBorderBottom),A=t.ref(!!o.bodyBorderLeft),T=t.ref(!!o.bodyBorderRight),p=t.ref(!!o.footerBorderTop),S=t.ref(!!o.footerBorderBottom),L=t.ref(!!o.footerBorderLeft),w=t.ref(!!o.footerBorderRight),V=t.ref(o.headerTextAlign),R=t.ref(o.bodyTextAlign),k=t.ref(o.footerTextAlign),E=t.ref(o.headerVerticalAlign),H=t.ref(o.bodyVerticalAlign),q=t.ref(o.footerVerticalAlign),se=t.computed(()=>u.value?"hison-border":""),ne=t.computed(()=>{switch(h.value){case l.BackgroundType.empty:return"hison-bg-empty";case l.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),de=t.computed(()=>c.value==="row"?"is-striped-row":c.value==="col"?"is-striped-col":null),ie=t.computed(()=>d.value==="row"?"is-hover-row":d.value==="col"?"is-hover-col":null),ue=t.computed(()=>y.value?"hison-header-border-top":""),ce=t.computed(()=>B.value?"hison-header-border-bottom":""),fe=t.computed(()=>g.value?"hison-header-border-left":""),ve=t.computed(()=>b.value?"hison-header-border-right":""),he=t.computed(()=>m.value?"hison-body-border-top":""),ye=t.computed(()=>C.value?"hison-body-border-bottom":""),Be=t.computed(()=>A.value?"hison-body-border-left":""),ge=t.computed(()=>T.value?"hison-body-border-right":""),be=t.computed(()=>p.value?"hison-footer-border-top":""),me=t.computed(()=>S.value?"hison-footer-border-bottom":""),Ce=t.computed(()=>L.value?"hison-footer-border-left":""),Ae=t.computed(()=>w.value?"hison-footer-border-right":""),I=(e,r)=>{const a=e==="thead"?"hison-thead":e==="tbody"?"hison-tbody":"hison-tfoot";switch(r){case"center":return`${a}-ta-center`;case"right":return`${a}-ta-right`;default:return`${a}-ta-left`}},M=(e,r)=>{const a=e==="thead"?"hison-thead":e==="tbody"?"hison-tbody":"hison-tfoot";switch(r){case"top":return`${a}-valign-top`;case"bottom":return`${a}-valign-bottom`;default:return`${a}-valign-middle`}},Te=t.computed(()=>I("thead",V.value)),pe=t.computed(()=>I("tbody",R.value)),Se=t.computed(()=>I("tfoot",k.value)),Le=t.computed(()=>M("thead",E.value)),we=t.computed(()=>M("tbody",H.value)),Ve=t.computed(()=>M("tfoot",q.value)),F=t.ref([]),G=()=>{F.value=l.extractResponsiveClasses(l.toClassString(o.class)||"",Q.value),l.addComponentNameToClass(F.value,"size",l.hisonCloser.componentStyle.size),l.addComponentNameToClass(F.value,"color","primary")};let D=-1;const W=()=>{const e=s.value;e&&(e.querySelectorAll("td.is-col-hover-cell").forEach(r=>r.classList.remove("is-col-hover-cell")),D=-1)},Re=e=>{const r=s.value;r&&(W(),r.querySelectorAll("tr").forEach(a=>{const n=a.querySelectorAll("td")[e];n&&n.classList.add("is-col-hover-cell")}),D=e)},_=e=>{if(d.value!=="col")return;const r=e.target;if(!r||r.tagName!=="TD")return;const n=r.cellIndex;n!==D&&Re(n)},ee=()=>{d.value==="col"&&W()},ke=e=>e.replace(/[A-Z]/g,r=>"-"+r.toLowerCase()).replace(/^ms-/,"-ms-"),te=e=>e?typeof e=="string"?e.trim().split(/\s+/).filter(Boolean):Array.isArray(e)?e.flatMap(te):Object.entries(e).filter(([,r])=>!!r).map(([r])=>r):[],Ee=e=>{if(!e)return[];if(typeof e=="string"){const r={};return e.split(";").forEach(a=>{const[n,O]=a.split(":");!n||!O||(r[n.trim()]=O.trim())}),[r]}return Array.isArray(e)?e.filter(Boolean):typeof e=="object"?[e]:[]},P=(e,r)=>{const a=Ee(r);if(a.length)for(const n of a)for(const[O,Z]of Object.entries(n)){if(Z==null||Z==="")continue;const le=ke(O);e.style.getPropertyValue(le)||e.style.setProperty(le,String(Z))}},x=(e,r)=>{const a=te(r);a.length&&e.classList.add(...a)},X=()=>{const e=$.value;if(!e)return;Array.from(e.querySelectorAll("th")).forEach(a=>{x(a,o.headerCellClass),P(a,o.headerCellStyle)})},K=()=>{const e=s.value;if(!e)return;Array.from(e.querySelectorAll("td")).forEach(a=>{x(a,o.bodyCellClass),P(a,o.bodyCellStyle)})},Y=()=>{const e=N.value;if(!e)return;Array.from(e.querySelectorAll("td")).forEach(a=>{x(a,o.footerCellClass),P(a,o.footerCellStyle)})},oe=async()=>{l.hisonCloser.component.tableList[i]&&l.hisonCloser.component.tableList[i].isHisonvueComponent&&console.warn(`[Hisonvue] The table ID is at risk of being duplicated. ${i}`),l.registerReloadable(U,()=>{re(),setTimeout(oe)}),G(),s.value&&(s.value.addEventListener("mouseover",_),s.value.addEventListener("mouseleave",ee)),await t.nextTick(),X(),K(),Y(),z.value={isHisonvueComponent:!0,getId:()=>i,getType:()=>"table",isVisible:()=>f.value,setVisible:e=>{f.value=e},isBorder:()=>u.value,setBorder:e=>{u.value=e},isHeaderBorderTop:()=>y.value,setHeaderBorderTop:e=>{y.value=e},isHeaderBorderBottom:()=>B.value,setHeaderBorderBottom:e=>{B.value=e},isHeaderBorderLeft:()=>g.value,setHeaderBorderLeft:e=>{g.value=e},isHeaderBorderRight:()=>b.value,setHeaderBorderRight:e=>{b.value=e},isBodyBorderTop:()=>m.value,setBodyBorderTop:e=>{m.value=e},isBodyBorderBottom:()=>C.value,setBodyBorderBottom:e=>{C.value=e},isBodyBorderLeft:()=>A.value,setBodyBorderLeft:e=>{A.value=e},isBodyBorderRight:()=>T.value,setBodyBorderRight:e=>{T.value=e},isFooterBorderTop:()=>p.value,setFooterBorderTop:e=>{p.value=e},isFooterBorderBottom:()=>S.value,setFooterBorderBottom:e=>{S.value=e},isFooterBorderLeft:()=>L.value,setFooterBorderLeft:e=>{L.value=e},isFooterBorderRight:()=>w.value,setFooterBorderRight:e=>{w.value=e},getStriped:()=>c.value,setStriped:e=>{c.value=e},getHoverable:()=>d.value,setHoverable:e=>{d.value=e},getCaption:()=>v.value,setCaption:e=>{v.value=e},getBackgroundType:()=>h.value,setBackgroundType:e=>{h.value=e},getHeaderTextAlign:()=>V.value,setHeaderTextAlign:e=>{V.value=e},getBodyTextAlign:()=>R.value,setBodyTextAlign:e=>{R.value=e},getFooterTextAlign:()=>k.value,setFooterTextAlign:e=>{k.value=e},getHeaderVerticalAlign:()=>E.value,setHeaderVerticalAlign:e=>{E.value=e},getBodyVerticalAlign:()=>H.value,setBodyVerticalAlign:e=>{H.value=e},getFooterVerticalAlign:()=>q.value,setFooterVerticalAlign:e=>{q.value=e},getRowCount:()=>{const e=s.value;return e?e.querySelectorAll(":scope > tr").length:0},getRowElement:e=>{const r=s.value;if(!r||!Number.isInteger(e)||e<0)return null;const a=r.querySelectorAll(":scope > tr");return e>=a.length?null:a[e]},getHeadElement:()=>$.value,getBodyElement:()=>s.value,getFootElement:()=>N.value,reload:()=>l.reloadHisonComponent(U)},l.hisonCloser.component.tableList[i]=z.value,j("mounted",z.value)},re=()=>{s.value&&(s.value.removeEventListener("mouseover",_),s.value.removeEventListener("mouseleave",ee)),l.unregisterReloadable(U),delete l.hisonCloser.component.tableList[i]};return t.onMounted(oe),t.onBeforeUnmount(re),t.watch(Q,e=>{G(),j("responsive-change",e)}),t.watch(()=>o.visible,e=>{const r=!!e;r!==f.value&&(f.value=r)}),t.watch(()=>o.caption,e=>{const r=e??"";r!==v.value&&(v.value=r)}),t.watch(()=>o.border,e=>{const r=!!e;r!==u.value&&(u.value=r)}),t.watch(()=>o.backgroundType,e=>{e&&e!==h.value&&(h.value=e)}),t.watch(()=>o.striped,e=>{const r=e??"row";r!==c.value&&(c.value=r)}),t.watch(()=>o.hoverable,e=>{const r=e??"row";r!==d.value&&(d.value=r)}),t.watch(()=>o.headerBorderTop,e=>{const r=!!e;r!==y.value&&(y.value=r)}),t.watch(()=>o.headerBorderBottom,e=>{const r=!!e;r!==B.value&&(B.value=r)}),t.watch(()=>o.headerBorderLeft,e=>{const r=!!e;r!==g.value&&(g.value=r)}),t.watch(()=>o.headerBorderRight,e=>{const r=!!e;r!==b.value&&(b.value=r)}),t.watch(()=>o.bodyBorderTop,e=>{const r=!!e;r!==m.value&&(m.value=r)}),t.watch(()=>o.bodyBorderBottom,e=>{const r=!!e;r!==C.value&&(C.value=r)}),t.watch(()=>o.bodyBorderLeft,e=>{const r=!!e;r!==A.value&&(A.value=r)}),t.watch(()=>o.bodyBorderRight,e=>{const r=!!e;r!==T.value&&(T.value=r)}),t.watch(()=>o.footerBorderTop,e=>{const r=!!e;r!==p.value&&(p.value=r)}),t.watch(()=>o.footerBorderBottom,e=>{const r=!!e;r!==S.value&&(S.value=r)}),t.watch(()=>o.footerBorderLeft,e=>{const r=!!e;r!==L.value&&(L.value=r)}),t.watch(()=>o.footerBorderRight,e=>{const r=!!e;r!==w.value&&(w.value=r)}),t.watch(()=>o.headerTextAlign,e=>{e&&e!==V.value&&(V.value=e)}),t.watch(()=>o.bodyTextAlign,e=>{e&&e!==R.value&&(R.value=e)}),t.watch(()=>o.footerTextAlign,e=>{e&&e!==k.value&&(k.value=e)}),t.watch(()=>o.headerVerticalAlign,e=>{e&&e!==E.value&&(E.value=e)}),t.watch(()=>o.bodyVerticalAlign,e=>{e&&e!==H.value&&(H.value=e)}),t.watch(()=>o.footerVerticalAlign,e=>{e&&e!==q.value&&(q.value=e)}),t.watch(()=>o.headerCellClass,()=>t.nextTick(X)),t.watch(()=>o.headerCellStyle,()=>t.nextTick(X)),t.watch(()=>o.bodyCellClass,()=>t.nextTick(K)),t.watch(()=>o.bodyCellStyle,()=>t.nextTick(K)),t.watch(()=>o.footerCellClass,()=>t.nextTick(Y)),t.watch(()=>o.footerCellStyle,()=>t.nextTick(Y)),t.watch(()=>o.class,()=>{G()}),{props:o,tableRef:J,theadRef:$,tbodyRef:s,tfootRef:N,visibleClass:ae,stripedClass:de,hoverableClass:ie,caption:v,border:u,borderClass:se,tableBackgroundTypeClass:ne,responsiveClassList:F,headerBorderTopClass:ue,bodyBorderTopClass:he,footerBorderTopClass:be,headerBorderBottomClass:ce,bodyBorderBottomClass:ye,footerBorderBottomClass:me,headerBorderLeftClass:fe,bodyBorderLeftClass:Be,footerBorderLeftClass:Ce,headerBorderRightClass:ve,bodyBorderRightClass:ge,footerBorderRightClass:Ae,headerTextAlignClass:Te,bodyTextAlignClass:pe,footerTextAlignClass:Se,headerVAlignClass:Le,bodyVAlignClass:we,footerVAlignClass:Ve}}}),Ne={key:0,class:"hison-table-caption"};function Fe(o,j,J,$,s,N){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["hison-wrapper",...o.responsiveClassList,o.visibleClass])},[t.createElementVNode("table",{ref:"tableRef",class:t.normalizeClass(["hison-table",o.borderClass,o.tableBackgroundTypeClass,o.stripedClass,o.hoverableClass]),style:t.normalizeStyle(o.props.style)},[o.$slots.caption||o.caption?(t.openBlock(),t.createElementBlock("caption",Ne,[t.renderSlot(o.$slots,"caption",{},()=>[t.createTextVNode(t.toDisplayString(o.caption),1)])])):t.createCommentVNode("",!0),t.renderSlot(o.$slots,"colgroup"),o.$slots.thead?(t.openBlock(),t.createElementBlock("thead",{key:1,ref:"theadRef",class:t.normalizeClass([o.headerBorderTopClass,o.headerBorderBottomClass,o.headerBorderLeftClass,o.headerBorderRightClass,o.headerTextAlignClass,o.headerVAlignClass])},[t.renderSlot(o.$slots,"thead")],2)):t.createCommentVNode("",!0),t.createElementVNode("tbody",{ref:"tbodyRef",class:t.normalizeClass([o.bodyBorderTopClass,o.bodyBorderBottomClass,o.bodyBorderLeftClass,o.bodyBorderRightClass,o.bodyTextAlignClass,o.bodyVAlignClass])},[t.renderSlot(o.$slots,"default")],2),o.$slots.tfoot?(t.openBlock(),t.createElementBlock("tfoot",{key:2,ref:"tfootRef",class:t.normalizeClass([o.footerBorderTopClass,o.footerBorderBottomClass,o.footerBorderLeftClass,o.footerBorderRightClass,o.footerTextAlignClass,o.footerVAlignClass])},[t.renderSlot(o.$slots,"tfoot")],2)):t.createCommentVNode("",!0)],6)],2)}const Oe=He._export_sfc($e,[["render",Fe]]);exports.default=Oe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Xe, ref as a, computed as s, onMounted as Ye, onBeforeUnmount as Ze, watch as r, nextTick as f, createElementBlock as P, openBlock as G, normalizeClass as O, createElementVNode as he, normalizeStyle as Je, createCommentVNode as le, renderSlot as j, createTextVNode as Qe, toDisplayString as We } from "vue";
|
|
2
|
-
import { B as xe, f as I, a1 as ae, a2 as se, T as ne, w as de, g as _e, u as et, e as tt, t as ot, b as Ce, h as N, r as rt, c as lt, d as at } from "./index-
|
|
2
|
+
import { B as xe, f as I, a1 as ae, a2 as se, T as ne, w as de, g as _e, u as et, e as tt, t as ot, b as Ce, h as N, r as rt, c as lt, d as at } from "./index-CTBjU64J.mjs";
|
|
3
3
|
import { _ as st } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
const nt = {
|
|
5
5
|
/**
|
package/dist/hisonvue.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-8ra42Geo.js");exports.BACKGROUND_TYPE_VALUES=e.BACKGROUND_TYPE_VALUES;exports.BACK_IMAGE_ALIGN_VALUES=e.BACK_IMAGE_ALIGN_VALUES;exports.BACK_IMAGE_STYLE_VALUES=e.BACK_IMAGE_STYLE_VALUES;exports.BACK_IMAGE_VERTICAL_ALIGN_VALUES=e.BACK_IMAGE_VERTICAL_ALIGN_VALUES;exports.BackImageAlign=e.BackImageAlign;exports.BackImageRepeat=e.BackImageRepeat;exports.BackImageVerticalAlign=e.BackImageVerticalAlign;exports.BackgroundType=e.BackgroundType;exports.COLOR_SET_VALUES=e.COLOR_SET_VALUES;exports.CSS_VAR_RE=e.CSS_VAR_RE;exports.Color=e.Color;exports.DATA_STATUS_VALUES=e.DATA_STATUS_VALUES;exports.DROPDOWN_TRIGGER_VALUES=e.DROPDOWN_TRIGGER_VALUES;exports.DataStatus=e.DataStatus;exports.DayOfWeek=e.DayOfWeek;exports.DropdownTrigger=e.DropdownTrigger;exports.EDIT_MODE_VALUES=e.EDIT_MODE_VALUES;exports.EditMode=e.EditMode;exports.GRID_ALIGN_VALUES=e.GRID_ALIGN_VALUES;exports.GRID_DATE_FORMAT_VALUES=e.GRID_DATE_FORMAT_VALUES;exports.GRID_MONTH_FORMAT_VALUES=e.GRID_MONTH_FORMAT_VALUES;exports.GRID_VERTICAL_ALIGN_VALUES=e.GRID_VERTICAL_ALIGN_VALUES;exports.HAccordionClientOnly=e.HAccordionClientOnly;exports.HBaggieClientOnly=e.HBaggieClientOnly;exports.HBannerClientOnly=e.HBannerClientOnly;exports.HButtonClientOnly=e.HButtonClientOnly;exports.HCalendarClientOnly=e.HCalendarClientOnly;exports.HCalendarTimeFormat=e.HCalendarTimeFormat;exports.HCalendarView=e.HCalendarView;exports.HCaptionClientOnly=e.HCaptionClientOnly;exports.HChartClientOnly=e.HChartClientOnly;exports.HDrawerClientOnly=e.HDrawerClientOnly;exports.HDropdownClientOnly=e.HDropdownClientOnly;exports.HEX_COLOR_RE=e.HEX_COLOR_RE;exports.HFilesetClientOnly=e.HFilesetClientOnly;exports.HGapClientOnly=e.HGapClientOnly;exports.HGapLine=e.HGapLine;exports.HGapLineStyle=e.HGapLineStyle;exports.HGridClientOnly=e.HGridClientOnly;exports.HImageboxClientOnly=e.HImageboxClientOnly;exports.HInputClientOnly=e.HInputClientOnly;exports.HInputGroupClientOnly=e.HInputGroupClientOnly;exports.HLabelClientOnly=e.HLabelClientOnly;exports.HLayoutClientOnly=e.HLayoutClientOnly;exports.HListClientOnly=e.HListClientOnly;exports.HModalClientOnly=e.HModalClientOnly;exports.HNoteClientOnly=e.HNoteClientOnly;exports.HPaginationClientOnly=e.HPaginationClientOnly;exports.HParagraphClientOnly=e.HParagraphClientOnly;exports.HPopupClientOnly=e.HPopupClientOnly;exports.HSpinnerClientOnly=e.HSpinnerClientOnly;exports.HTableClientOnly=e.HTableClientOnly;exports.H_CALENDAR_TIME_FORMAT_VALUES=e.H_CALENDAR_TIME_FORMAT_VALUES;exports.H_CALENDAR_VIEW_VALUES=e.H_CALENDAR_VIEW_VALUES;exports.H_GAP_LINE_STYLE_VALUES=e.H_GAP_LINE_STYLE_VALUES;exports.H_GAP_RULE_VALUES=e.H_GAP_RULE_VALUES;exports.INPUT_TYPE_VALUES=e.INPUT_TYPE_VALUES;exports.InputType=e.InputType;exports.MODAL_PLACEMENT_VALUES=e.MODAL_PLACEMENT_VALUES;exports.ModalPlacement=e.ModalPlacement;exports.NOTE_MODE_BY_DEVICE_VALUES=e.NOTE_MODE_BY_DEVICE_VALUES;exports.SCREEN_POSITION_VALUES=e.SCREEN_POSITION_VALUES;exports.SELECTION_POLICY_VALUES=e.SELECTION_POLICY_VALUES;exports.SPINNER_TYPE_VALUES=e.SPINNER_TYPE_VALUES;exports.ScreenPosition=e.ScreenPosition;exports.Size=e.Size;exports.SpinnerType=e.SpinnerType;exports.TEXT_ALIGN_VALUES=e.TEXT_ALIGN_VALUES;exports.TOOL_POSITION_VALUES=e.TOOL_POSITION_VALUES;exports.TextAlign=e.TextAlign;exports.VERTICAL_ALIGN_VALUES=e.VERTICAL_ALIGN_VALUES;exports.VerticalAlign=e.VerticalAlign;exports.WHITE_SPACE_VALUES=e.WHITE_SPACE_VALUES;exports.WhiteSpace=e.WhiteSpace;exports.getDefaultHisonConfig=e.getDefaultHisonConfig;exports.hison=e.hison;exports.hisonCloser=e.hisonCloser;exports.hisonvue=e.hisonvue;exports.isCssColorLike=e.isCssColorLike;exports.AllDateTimeFormat=e.Hisonjs_bundleExports.AllDateTimeFormat;exports.ApiDelete=e.Hisonjs_bundleExports.ApiDelete;exports.ApiDeleteUrl=e.Hisonjs_bundleExports.ApiDeleteUrl;exports.ApiGet=e.Hisonjs_bundleExports.ApiGet;exports.ApiGetUrl=e.Hisonjs_bundleExports.ApiGetUrl;exports.ApiPatch=e.Hisonjs_bundleExports.ApiPatch;exports.ApiPatchUrl=e.Hisonjs_bundleExports.ApiPatchUrl;exports.ApiPost=e.Hisonjs_bundleExports.ApiPost;exports.ApiPostUrl=e.Hisonjs_bundleExports.ApiPostUrl;exports.ApiPut=e.Hisonjs_bundleExports.ApiPut;exports.ApiPutUrl=e.Hisonjs_bundleExports.ApiPutUrl;exports.CachingModule=e.Hisonjs_bundleExports.CachingModule;exports.ColorSet=e.Vanillagrid2_bundleExports.ColorSet;exports.CountDateType=e.Hisonjs_bundleExports.CountDateType;exports.DataModel=e.Hisonjs_bundleExports.DataModel;exports.DataWrapper=e.Hisonjs_bundleExports.DataWrapper;exports.DateFormat=e.Hisonjs_bundleExports.DateFormat;exports.DateTimeFormat=e.Hisonjs_bundleExports.DateTimeFormat;exports.DayFormat=e.Hisonjs_bundleExports.DayFormat;exports.DayOfWeekFormat=e.Hisonjs_bundleExports.DayOfWeekFormat;exports.DayOfWeekFullName=e.Hisonjs_bundleExports.DayOfWeekFullName;exports.DayOfWeekFullNameKR=e.Hisonjs_bundleExports.DayOfWeekFullNameKR;exports.DayOfWeekShortName=e.Hisonjs_bundleExports.DayOfWeekShortName;exports.DayOfWeekShortNameKR=e.Hisonjs_bundleExports.DayOfWeekShortNameKR;exports.GridAlign=e.Vanillagrid2_bundleExports.Align;exports.GridBasicDataType=e.Vanillagrid2_bundleExports.BasicDataType;exports.GridDateFormat=e.Vanillagrid2_bundleExports.DateFormat;exports.GridMonthFormat=e.Vanillagrid2_bundleExports.MonthFormat;exports.GridRowStatus=e.Vanillagrid2_bundleExports.RowStatus;exports.GridVerticalAlign=e.Vanillagrid2_bundleExports.VerticalAlign;exports.HourFormat=e.Hisonjs_bundleExports.HourFormat;exports.HourMinuteFormat=e.Hisonjs_bundleExports.HourMinuteFormat;exports.MinuteFormat=e.Hisonjs_bundleExports.MinuteFormat;exports.MonthFormat=e.Hisonjs_bundleExports.MonthFormat;exports.MonthFullName=e.Hisonjs_bundleExports.MonthFullName;exports.MonthShortName=e.Hisonjs_bundleExports.MonthShortName;exports.NoteModeByDevice=e.Vanillanote2_bundleExports.NoteModeByDevice;exports.NoteToolPosition=e.Vanillanote2_bundleExports.ToolPosition;exports.SecondFormat=e.Hisonjs_bundleExports.SecondFormat;exports.SelectionPolicy=e.Vanillagrid2_bundleExports.SelectionPolicy;exports.TimeFormat=e.Hisonjs_bundleExports.TimeFormat;exports.YearFormat=e.Hisonjs_bundleExports.YearFormat;exports.YearMonthFormat=e.Hisonjs_bundleExports.YearMonthFormat;exports.createHison=e.Hisonjs_bundleExports.createHison;exports.getVanillagrid=e.Vanillagrid2_bundleExports.getVanillagrid;exports.getVanillagridConfig=e.Vanillagrid2_bundleExports.getVanillagridConfig;exports.getVanillanote=e.Vanillanote2_bundleExports.getVanillanote;exports.getVanillanoteConfig=e.Vanillanote2_bundleExports.getVanillanoteConfig;
|
package/dist/hisonvue.d.ts
CHANGED
|
@@ -9720,6 +9720,17 @@ export declare interface Hison extends Hison_2 {
|
|
|
9720
9720
|
* When enabled, derived text/background pairs flip to preserve contrast.
|
|
9721
9721
|
*/
|
|
9722
9722
|
setInvertColor(invert: boolean): void;
|
|
9723
|
+
/**
|
|
9724
|
+
* Returns the current device type based on the client viewport width.
|
|
9725
|
+
* - SSR-safe: returns `'pc'` by default when executed on the server.
|
|
9726
|
+
*
|
|
9727
|
+
* @returns {'mb' | 'tb' | 'pc' | 'wd'} - Device type:
|
|
9728
|
+
* - 'mb': mobile (<768px)
|
|
9729
|
+
* - 'tb': tablet (<1200px)
|
|
9730
|
+
* - 'pc': desktop (<1980px)
|
|
9731
|
+
* - 'wd': wide (≥1980px)
|
|
9732
|
+
*/
|
|
9733
|
+
getDeviceType(): DeviceType;
|
|
9723
9734
|
/** Returns the base filled surface color. */
|
|
9724
9735
|
getFilledColor(): string;
|
|
9725
9736
|
/** Returns the base empty/outline surface color. */
|
|
@@ -16936,7 +16947,7 @@ declare interface ShieldConfig {
|
|
|
16936
16947
|
* the specified URL. If not, access may be blocked.
|
|
16937
16948
|
*
|
|
16938
16949
|
* - Default value: `""` (empty string, meaning no restriction)
|
|
16939
|
-
* - Used in `shield.
|
|
16950
|
+
* - Used in `shield.execute(hison: Hison)` to validate the URL.
|
|
16940
16951
|
*/
|
|
16941
16952
|
shieldURL: string;
|
|
16942
16953
|
/**
|
|
@@ -16945,7 +16956,7 @@ declare interface ShieldConfig {
|
|
|
16945
16956
|
* When the shield mechanism is activated, only these IPs are granted access.
|
|
16946
16957
|
*
|
|
16947
16958
|
* - Default value: `["0:0:0:0:0:0:0:1"]` (allows localhost)
|
|
16948
|
-
* - Used in `shield.
|
|
16959
|
+
* - Used in `shield.execute(hison: Hison)` to verify access permissions.
|
|
16949
16960
|
*/
|
|
16950
16961
|
exposeIpList: string[];
|
|
16951
16962
|
/**
|
|
@@ -16955,7 +16966,7 @@ declare interface ShieldConfig {
|
|
|
16955
16966
|
* ensuring that no further changes can be made.
|
|
16956
16967
|
*
|
|
16957
16968
|
* - Default value: `true`
|
|
16958
|
-
* - Used in `shield.
|
|
16969
|
+
* - Used in `shield.execute(hison: Hison)`, where `deepFreeze(hison)` is applied.
|
|
16959
16970
|
*/
|
|
16960
16971
|
isFreeze: boolean;
|
|
16961
16972
|
/**
|
|
@@ -16964,7 +16975,7 @@ declare interface ShieldConfig {
|
|
|
16964
16975
|
* If `false`, a mechanism is implemented to prevent the user from navigating back.
|
|
16965
16976
|
*
|
|
16966
16977
|
* - Default value: `false`
|
|
16967
|
-
* - Used in `shield.
|
|
16978
|
+
* - Used in `shield.execute(hison: Hison)`, where `history.pushState()` is applied
|
|
16968
16979
|
* to disable the back button.
|
|
16969
16980
|
*/
|
|
16970
16981
|
isPossibleGoBack: boolean;
|
|
@@ -16975,7 +16986,7 @@ declare interface ShieldConfig {
|
|
|
16975
16986
|
* browser dev tools, resizing, etc.), and alerts the user if an attempt is detected.
|
|
16976
16987
|
*
|
|
16977
16988
|
* - Default value: `false`
|
|
16978
|
-
* - Used in `shield.
|
|
16989
|
+
* - Used in `shield.execute(hison: Hison)`, where `shieldFuncCreateBlockDevMode()` is triggered.
|
|
16979
16990
|
*/
|
|
16980
16991
|
isPossibleOpenDevTool: boolean;
|
|
16981
16992
|
/**
|
|
@@ -16989,7 +17000,7 @@ declare interface ShieldConfig {
|
|
|
16989
17000
|
* - Common custom actions include inserting a `debugger;`, showing alerts, or halting program flow.
|
|
16990
17001
|
*
|
|
16991
17002
|
* - Default value: `() => {}` (no action)
|
|
16992
|
-
* - Used in `shield.
|
|
17003
|
+
* - Used in `shield.execute(hison: Hison)` when attempting to detect devtool access.
|
|
16993
17004
|
*
|
|
16994
17005
|
* ---
|
|
16995
17006
|
* ### Example Usage
|
package/dist/hisonvue.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Q as a, au as e, av as t } from "./index-
|
|
2
|
-
import { B as aa, Y as ta, Z as ea, X as oa, ax as na, az as sa, ay as la, f as ia, G as ra, aJ as Aa, aw as ca, V as _a, D as Ea, W as Ca, aK as ma, x as Sa, E as Da, y as Oa, aH as pa, L as La, K as ya, J as Ta, a4 as Va, a5 as Ha, a6 as Fa, a7 as ga, a8 as ua, aL as Ia, m as Ua, a9 as Ma, aa as Na, ab as da, ac as Ga, aI as Pa, ad as ha, ae as Ra, aF as fa, aG as Ba, af as ka, ag as Wa, ah as Ya, ai as Ka, aj as wa, ak as xa, al as ba, am as va, an as za, ao as Xa, ap as $a, aq as ja, ar as Ja, as as qa, k as Qa, H as Za, z as at, A as tt, N as et, O as ot, aA as nt, aB as st, $ as lt, S as it, M as rt, aC as At, i as ct, v as _t, aD as Et, T as Ct, _ as mt, w as St, a1 as Dt, a2 as Ot, a0 as pt, aE as Lt, at as yt, l as Tt, h as Vt, a3 as Ht, I as Ft } from "./index-
|
|
1
|
+
import { Q as a, au as e, av as t } from "./index-CTBjU64J.mjs";
|
|
2
|
+
import { B as aa, Y as ta, Z as ea, X as oa, ax as na, az as sa, ay as la, f as ia, G as ra, aJ as Aa, aw as ca, V as _a, D as Ea, W as Ca, aK as ma, x as Sa, E as Da, y as Oa, aH as pa, L as La, K as ya, J as Ta, a4 as Va, a5 as Ha, a6 as Fa, a7 as ga, a8 as ua, aL as Ia, m as Ua, a9 as Ma, aa as Na, ab as da, ac as Ga, aI as Pa, ad as ha, ae as Ra, aF as fa, aG as Ba, af as ka, ag as Wa, ah as Ya, ai as Ka, aj as wa, ak as xa, al as ba, am as va, an as za, ao as Xa, ap as $a, aq as ja, ar as Ja, as as qa, k as Qa, H as Za, z as at, A as tt, N as et, O as ot, aA as nt, aB as st, $ as lt, S as it, M as rt, aC as At, i as ct, v as _t, aD as Et, T as Ct, _ as mt, w as St, a1 as Dt, a2 as Ot, a0 as pt, aE as Lt, at as yt, l as Tt, h as Vt, a3 as Ht, I as Ft } from "./index-CTBjU64J.mjs";
|
|
3
3
|
const n = a.AllDateTimeFormat, s = a.ApiDelete, l = a.ApiDeleteUrl, i = a.ApiGet, r = a.ApiGetUrl, A = a.ApiPatch, c = a.ApiPatchUrl, _ = a.ApiPost, E = a.ApiPostUrl, C = a.ApiPut, m = a.ApiPutUrl, S = a.CachingModule, D = t.ColorSet, O = a.CountDateType, p = a.DataModel, L = a.DataWrapper, y = a.DateFormat, T = a.DateTimeFormat, V = a.DayFormat, H = a.DayOfWeekFormat, F = a.DayOfWeekFullName, g = a.DayOfWeekFullNameKR, u = a.DayOfWeekShortName, I = a.DayOfWeekShortNameKR, U = t.Align, M = t.BasicDataType, N = t.DateFormat, d = t.MonthFormat, G = t.RowStatus, P = t.VerticalAlign, h = a.HourFormat, R = a.HourMinuteFormat, f = a.MinuteFormat, B = a.MonthFormat, k = a.MonthFullName, W = a.MonthShortName, Y = e.NoteModeByDevice, K = e.ToolPosition, w = a.SecondFormat, x = t.SelectionPolicy, b = a.TimeFormat, v = a.YearFormat, z = a.YearMonthFormat, X = a.createHison, $ = t.getVanillagrid, j = t.getVanillagridConfig, J = e.getVanillanote, q = e.getVanillanoteConfig;
|
|
4
4
|
export {
|
|
5
5
|
n as AllDateTimeFormat,
|