hisonvue 1.0.0 → 1.0.2
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/LICENSE +21 -21
- package/README.md +248 -248
- package/dist/{HAccordion-ll-4cIAw.mjs → HAccordion-DXNoziwY.mjs} +14 -14
- package/dist/{HAccordion-CPtgQUK0.js → HAccordion-FatqOgy2.js} +1 -1
- package/dist/{HBaggie-D_7mEiuV.mjs → HBaggie-C4qcuGl9.mjs} +2 -2
- package/dist/{HBaggie-D6omQoFh.js → HBaggie-DWSes7QC.js} +1 -1
- package/dist/{HBanner-Io4SdGGs.js → HBanner-D2IVlykU.js} +1 -1
- package/dist/{HBanner-DmcMOFqS.mjs → HBanner-DNOhDRli.mjs} +46 -46
- package/dist/{HButton-DAVuDmOQ.js → HButton-D3aVYVY3.js} +1 -1
- package/dist/{HButton-DAriO81x.mjs → HButton-Dhyb_Apz.mjs} +2 -2
- package/dist/HCalendar-BB0XyvZV.js +2 -0
- package/dist/{HCalendar-w18iIB90.mjs → HCalendar-Bv1mZ6DG.mjs} +7 -7
- package/dist/{HCaption-6CbSqRA7.js → HCaption-2Wpf8L9R.js} +1 -1
- package/dist/{HCaption-DwsXHDNK.mjs → HCaption-BKJlg7ZH.mjs} +1 -1
- package/dist/{HChart-C86JXUyW.js → HChart-BEe_bo5V.js} +1 -1
- package/dist/{HChart-CcArHFr0.mjs → HChart-H5M0gQB0.mjs} +1 -1
- package/dist/{HDrawer-DG1O42iF.mjs → HDrawer-BYrUd-eA.mjs} +47 -47
- package/dist/HDrawer-CWkLJyMS.js +1 -0
- package/dist/{HDropdown-D4RAGmjE.js → HDropdown-DTaeDC5I.js} +1 -1
- package/dist/{HDropdown-Bs7AfefJ.mjs → HDropdown-Dpba4jMR.mjs} +13 -13
- package/dist/{HFileset-CuPR6Hwf.js → HFileset-CWDMfYdY.js} +1 -1
- package/dist/{HFileset-BGuP9O4l.mjs → HFileset-Qo0JIgMJ.mjs} +1 -1
- package/dist/{HGap-DzGrfWVt.mjs → HGap-B5lrnzJ6.mjs} +1 -1
- package/dist/{HGap-BPAdnOQz.js → HGap-Bcl_WYxa.js} +1 -1
- package/dist/{HGrid-BiIhVCv_.mjs → HGrid-59dIVp9V.mjs} +1 -1
- package/dist/{HGrid-C3EV_pgM.js → HGrid-f8xHSk9C.js} +1 -1
- package/dist/{HImagebox-t_UdFjQO.js → HImagebox-DIYXXh95.js} +1 -1
- package/dist/{HImagebox-D_DKeCrO.mjs → HImagebox-G-LvB26S.mjs} +1 -1
- package/dist/{HInput-BEyJqYkD.mjs → HInput-C9rOBXqc.mjs} +1 -1
- package/dist/{HInput-DMGLY473.js → HInput-PgalO88P.js} +1 -1
- package/dist/{HInputGroup-D37WTYoI.mjs → HInputGroup-BaK14hkQ.mjs} +1 -1
- package/dist/{HInputGroup-Dcfr23sZ.js → HInputGroup-XryXR-6k.js} +1 -1
- package/dist/{HLabel-Dm48mSwn.js → HLabel-CbQeG2R3.js} +1 -1
- package/dist/{HLabel-B2FOqSiS.mjs → HLabel-jbc0_u5J.mjs} +2 -2
- package/dist/{HLayout-C1e4BZ_K.js → HLayout-CUwfApcb.js} +1 -1
- package/dist/{HLayout-BbCEm_aO.mjs → HLayout-DmTQQmLs.mjs} +2 -2
- package/dist/{HList-eNXmMf27.js → HList-DCupvbju.js} +1 -1
- package/dist/{HList-CAeYb-hz.mjs → HList-rD5kL7cI.mjs} +2 -2
- package/dist/{HModal-BDBEEpKm.mjs → HModal-XDNcukop.mjs} +1 -1
- package/dist/{HModal-GODLq3wH.js → HModal-eniLW2gp.js} +1 -1
- package/dist/{HNote-CWnUjt3_.mjs → HNote-BA3umb5e.mjs} +1 -1
- package/dist/{HNote-D_Xwu9oL.js → HNote-DzeszCEe.js} +1 -1
- package/dist/{HPagination-Db_L9wv-.js → HPagination-BS4l4xGP.js} +1 -1
- package/dist/{HPagination-e5e2a5GS.mjs → HPagination-CgufEtL4.mjs} +15 -15
- package/dist/{HParagraph-BRuSeOMU.js → HParagraph-DPFx64UD.js} +1 -1
- package/dist/{HParagraph-DYuB-qjY.mjs → HParagraph-hCHZmj-4.mjs} +1 -1
- package/dist/{HPopup-Brp1FVpm.mjs → HPopup-BfPYzBy6.mjs} +1 -1
- package/dist/{HPopup-ChkoI3xm.js → HPopup-NBwn8RA4.js} +1 -1
- package/dist/{HSpinner-DOq2k5kT.mjs → HSpinner-1UQgVEve.mjs} +6 -6
- package/dist/{HSpinner-DDtU9PL_.js → HSpinner-CMsmFVOv.js} +1 -1
- package/dist/{HTable-GCDP5O_J.mjs → HTable-BUIKSXIR.mjs} +1 -1
- package/dist/{HTable-DGFnzD4u.js → HTable-Dweedemn.js} +1 -1
- package/dist/ar.es-C08a05mp.mjs +57 -0
- package/dist/{bg.es-BJ7fu6yy.mjs → bg.es-BxUPtB2r.mjs} +15 -15
- package/dist/bn.es-J9yOJsGH.mjs +57 -0
- package/dist/{bs.es-yMnaKmdi.mjs → bs.es-Fq6ZEbY-.mjs} +13 -13
- package/dist/{ca.es-DIhlxmQc.mjs → ca.es-Bu3i72ow.mjs} +21 -21
- package/dist/{cs.es-BN8oxRXQ.mjs → cs.es-CeLWs7BX.mjs} +19 -19
- package/dist/da.es-BkbgeF4x.mjs +57 -0
- package/dist/{de.es-glb8GeJh.mjs → de.es-Dxj10D7g.mjs} +15 -15
- package/dist/{drag-and-drop.es-Ckzp6XEn.mjs → drag-and-drop.es-CoYQRahm.mjs} +1 -1
- package/dist/drag-and-drop.es-DWn92Mem.js +5 -0
- package/dist/{el.es-_bBZf22h.mjs → el.es-BcvYhsc8.mjs} +23 -23
- package/dist/{en.es-CV9nmQGr.mjs → en.es-stDfj1fG.mjs} +11 -11
- package/dist/es.es-DJ9hC3M1.mjs +57 -0
- package/dist/{et.es-CjvQAzNF.mjs → et.es-Bh__rR0h.mjs} +20 -20
- package/dist/fa.es-CyoM_QAj.mjs +57 -0
- package/dist/{he.es-nF4GFhjH.mjs → he.es-Bytj24fj.mjs} +21 -21
- package/dist/hisonvue.cjs.js +1 -1
- package/dist/hisonvue.css +1 -1
- package/dist/hisonvue.d.ts +9 -9
- package/dist/hisonvue.es.js +2 -2
- package/dist/{hr.es-QFfz660j.mjs → hr.es-DjKclO4X.mjs} +15 -15
- package/dist/{hu.es-Ck2rE01V.mjs → hu.es-CgiNeVVu.mjs} +21 -21
- package/dist/index-CKU70ocu.js +153 -0
- package/dist/{index-DUh7pai4.mjs → index-p1EBArRP.mjs} +889 -889
- package/dist/is.es-yRheRWhc.mjs +57 -0
- package/dist/ja.es-CALG6dhe.mjs +57 -0
- package/dist/{ka.es-x9QJo_dl.mjs → ka.es-6dlQBWDo.mjs} +20 -20
- package/dist/ko.es-BU6TVPXM.mjs +57 -0
- package/dist/mn.es-CY_Brq9B.mjs +57 -0
- package/dist/{nl.es-bB1qWR_S.mjs → nl.es-CN5JXXxr.mjs} +15 -15
- package/dist/no.es-BZkgoly8.mjs +57 -0
- package/dist/{pl.es-Dzct23w9.mjs → pl.es-BJ9nIcgc.mjs} +21 -21
- package/dist/pt-br.es-DEhn4BON.mjs +57 -0
- package/dist/pt-pt.es-DEhn4BON.mjs +57 -0
- package/dist/ro.es-CsOras9g.mjs +57 -0
- package/dist/{ru.es-Bv9UvrBe.mjs → ru.es-CPzb0Fst.mjs} +23 -23
- package/dist/{setButtonCssEvent-B9WTs2X7.js → setButtonCssEvent-BoBQS2-T.js} +1 -1
- package/dist/{setButtonCssEvent-dBs1GcAh.mjs → setButtonCssEvent-CB-7jMmJ.mjs} +1 -1
- package/dist/sk.es-D6YtHvSy.mjs +57 -0
- package/dist/{sl.es-DeIGgZbR.mjs → sl.es-D0fiCGIm.mjs} +16 -16
- package/dist/{sq.es-CQJJrZHv.mjs → sq.es-a8QTS1Hv.mjs} +17 -17
- package/dist/{sr.es-CKS0AkiW.mjs → sr.es-CIc0WPBO.mjs} +13 -13
- package/dist/sv.es-DFVxHUOu.mjs +57 -0
- package/dist/tr.es-CXIKJ2UV.mjs +57 -0
- package/dist/{uk.es-CiR4NnbN.mjs → uk.es-BvUxN5ag.mjs} +23 -23
- package/dist/{vi.es-DFDi5l7p.mjs → vi.es-C0AyhgP1.mjs} +26 -26
- package/dist/zh-cn.es-AODwJ7q7.mjs +67 -0
- package/dist/zh-hk.es-Bdbs8ke2.mjs +67 -0
- package/nuxt/module.mjs +39 -39
- package/nuxt/plugin.mjs +21 -21
- package/package.json +53 -53
- package/dist/HCalendar-DKwGatUk.js +0 -2
- package/dist/HDrawer-U5VC_okK.js +0 -1
- package/dist/ar.es-XxSuE68c.mjs +0 -57
- package/dist/bn.es-CYlBkxc5.mjs +0 -57
- package/dist/da.es-DJB5lAli.mjs +0 -57
- package/dist/drag-and-drop.es-4ttM1tRs.js +0 -5
- package/dist/es.es-CZjcWK54.mjs +0 -57
- package/dist/fa.es-DykeFwDA.mjs +0 -57
- package/dist/index-BmKMHsSZ.js +0 -153
- package/dist/is.es-bzprHvXI.mjs +0 -57
- package/dist/ja.es-BaiGjqZ6.mjs +0 -57
- package/dist/ko.es-6c447eTS.mjs +0 -57
- package/dist/mn.es-BLQRG1uu.mjs +0 -57
- package/dist/no.es-CWDVXpTf.mjs +0 -57
- package/dist/pt-br.es-BeBuiitI.mjs +0 -57
- package/dist/pt-pt.es-BeBuiitI.mjs +0 -57
- package/dist/ro.es-DfMVJ30M.mjs +0 -57
- package/dist/sk.es-CUOTpLuL.mjs +0 -57
- package/dist/sv.es-ChHQRrAe.mjs +0 -57
- package/dist/tr.es-B3v90gVv.mjs +0 -57
- package/dist/zh-cn.es-9cbEAuAi.mjs +0 -67
- package/dist/zh-hk.es-z0tio4jE.mjs +0 -67
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CKU70ocu.js"),V=require("./scrollManager-CEEWQwoK.js"),A=require("./_plugin-vue_export-helper-BHFhmbuH.js"),H={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:1500},position:{type:String,default:t.ScreenPosition.middleCenter,validator:s=>t.SCREEN_POSITION_VALUES.includes(s)},overlayStyle:{type:[String,Object,Array],required:!1},timeoutMs:{type:Number,default:0},spinnerType:{type:String,default:"ring",validator:s=>["ring","dots","bars","pulse"].includes(s)}},O=e.defineComponent({name:"HSpinner",props:H,inheritAttrs:!1,emits:["mounted","responsive-change","open","close","toggle"],setup(s,{emit:o}){const l=s.id||t.getUUID(),y=`hspinner:${l}`,k=t.useDevice(),N=e.ref(null),I=e.ref(null),i=e.ref(s.visible),c=e.ref(s.zIndex??1400),m=e.ref(s.position),f=e.ref(s.overlayStyle),p=e.ref(s.timeoutMs??0),u=e.ref(s.spinnerType),B=e.computed(()=>i.value?"":"hison-display-none"),L=e.computed(()=>`hison-spinner-type-${u.value}`),h=e.ref([]),C=()=>{h.value=t.extractResponsiveClasses(t.toClassString(s.class)||"",k.value),t.addComponentNameToClass(h.value,"size",t.hisonCloser.componentStyle.size),t.addComponentNameToClass(h.value,"color","primary")},R=e.computed(()=>{const n={zIndex:c.value};switch(n.left="",n.right="",n.top="",n.bottom="",n.transform="none",m.value){case t.ScreenPosition.topLeft:n.left="5%",n.top="5%";break;case t.ScreenPosition.topCenter:n.left="50%",n.top="5%",n.transform="translateX(-50%)";break;case t.ScreenPosition.topRight:n.right="5%",n.top="5%";break;case t.ScreenPosition.middleLeft:n.left="5%",n.top="50%",n.transform="translateY(-50%)";break;case t.ScreenPosition.middleCenter:n.left="50%",n.top="50%",n.transform="translate(-50%, -50%)";break;case t.ScreenPosition.middleRight:n.right="5%",n.top="50%",n.transform="translateY(-50%)";break;case t.ScreenPosition.bottomLeft:n.left="5%",n.bottom="5%";break;case t.ScreenPosition.bottomCenter:n.left="50%",n.bottom="5%",n.transform="translateX(-50%)";break;case t.ScreenPosition.bottomRight:n.right="5%",n.bottom="5%";break}return n}),M=e.computed(()=>{const r={zIndex:(c.value??1400)-1},d=f.value;return d?Array.isArray(d)?[{...r},...d]:typeof d=="string"?[r,d]:{...r,...d}:r});let g=null;const T=()=>{g!=null&&(clearTimeout(g),g=null)},b=()=>{T(),p.value>0&&(g=window.setTimeout(()=>{v()},p.value))},w=()=>V.acquireScrollLock(l),E=()=>V.releaseScrollLock(l),S=async()=>{i.value||(i.value=!0,w(),await e.nextTick(),b(),o("open",e.unref(a)))},v=async()=>{if(i.value)try{T()}finally{i.value=!1,E(),o("close",e.unref(a))}},q=async()=>{i.value?await v():await S(),o("toggle",e.unref(a))},a=e.ref(null),z=()=>{t.hisonCloser.component.spinnerList[l]&&t.hisonCloser.component.spinnerList[l].isHisonvueComponent&&console.warn(`[Hisonvue] The spinner ID is at risk of being duplicated. ${l}`),t.registerReloadable(y,()=>{P(),e.nextTick(z)}),C(),i.value&&(w(),b()),a.value={isHisonvueComponent:!0,getId:()=>l,getType:()=>"spinner",isVisible:()=>i.value,open:S,close:v,toggle:q,setVisible:n=>n?S():v(),getZIndex:()=>c.value,setZIndex:n=>{c.value=n},getPosition:()=>m.value,setPosition:n=>{m.value=n},getTimeout:()=>p.value,setTimeout:n=>{p.value=Math.max(0,Number(n)||0),i.value&&b()},getSpinnerType:()=>u.value,setSpinnerType:n=>{u.value=n},getOverlayStyle:()=>f.value,setOverlayStyle:n=>{f.value=n},reload:()=>t.reloadHisonComponent(y)},t.hisonCloser.component.spinnerList[l]=a.value,o("mounted",a.value)},P=()=>{t.unregisterReloadable(y),delete t.hisonCloser.component.spinnerList[l],T(),i.value&&E()};return e.onMounted(z),e.onBeforeUnmount(P),e.watch(k,n=>{C(),o("responsive-change",n)}),e.watch(()=>s.visible,n=>{const r=!!n;r!==i.value&&(r?S():v())}),e.watch(()=>s.zIndex,n=>{const r=Number(n??1400);r!==c.value&&(c.value=r)}),e.watch(()=>s.position,n=>{n&&n!==m.value&&(m.value=n)}),e.watch(()=>s.overlayStyle,n=>{n!==f.value&&(f.value=n)}),e.watch(()=>s.timeoutMs,n=>{const r=Math.max(0,Number(n)||0);r!==p.value&&(p.value=r,i.value&&b())}),e.watch(()=>s.spinnerType,n=>{n&&n!==u.value&&(u.value=n)}),e.watch(()=>s.class,()=>{C()}),{id:l,props:s,wrapperRef:N,spinnerRef:I,visible:i,visibleClass:B,responsiveClassList:h,overlayStyleWithZ:M,wrapperStyle:R,spinnerType:u,spinnerTypeClass:L,spinnerMethods:e.computed(()=>e.unref(a))}}}),$={key:0,class:"hison-spinner-ring"},j={key:1,class:"hison-spinner-dots"},U={key:2,class:"hison-spinner-bars"},Z={key:3,class:"hison-spinner-pulse"};function x(s,o,l,y,k,N){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hison-layer-host",s.visibleClass])},[s.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"hison-spinner-overlay",style:e.normalizeStyle(s.overlayStyleWithZ)},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref:"wrapperRef",class:e.normalizeClass(["hison-spinner-wrapper",...s.responsiveClassList]),style:e.normalizeStyle(s.wrapperStyle)},[e.createElementVNode("div",{ref:"spinnerRef",class:e.normalizeClass(["hison-spinner",s.spinnerTypeClass]),style:e.normalizeStyle(s.props.style),role:"status","aria-live":"polite","aria-busy":"true"},[e.renderSlot(s.$slots,"spinner",{spinnerEl:s.spinnerRef,spinner:s.spinnerMethods,type:s.spinnerType},()=>[s.spinnerType==="ring"?(e.openBlock(),e.createElementBlock("div",$,[...o[0]||(o[0]=[e.createStaticVNode('<span class="hison-spinner-ring-seg"></span><span class="hison-spinner-ring-seg"></span><span class="hison-spinner-ring-seg"></span><span class="hison-spinner-ring-seg"></span><span class="hison-spinner-ring-seg"></span><span class="hison-spinner-ring-seg"></span><span class="hison-spinner-ring-seg"></span>',7)])])):s.spinnerType==="dots"?(e.openBlock(),e.createElementBlock("div",j,[...o[1]||(o[1]=[e.createElementVNode("span",{class:"hison-spinner-dot"},null,-1),e.createElementVNode("span",{class:"hison-spinner-dot"},null,-1),e.createElementVNode("span",{class:"hison-spinner-dot"},null,-1)])])):s.spinnerType==="bars"?(e.openBlock(),e.createElementBlock("div",U,[...o[2]||(o[2]=[e.createElementVNode("span",{class:"hison-spinner-bar"},null,-1),e.createElementVNode("span",{class:"hison-spinner-bar"},null,-1),e.createElementVNode("span",{class:"hison-spinner-bar"},null,-1),e.createElementVNode("span",{class:"hison-spinner-bar"},null,-1)])])):(e.openBlock(),e.createElementBlock("div",Z,[...o[3]||(o[3]=[e.createElementVNode("span",{class:"hison-spinner-pulse-span"},null,-1)])]))])],6)],6)],2)}const D=A._export_sfc(O,[["render",x]]);exports.default=D;
|
|
@@ -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-p1EBArRP.mjs";
|
|
3
3
|
import { _ as st } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
const nt = {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),l=require("./index-BmKMHsSZ.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-CKU70ocu.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;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue-cal v4.10.2
|
|
3
|
+
* (c) 2025 Antoni Andre <antoniandre.web@gmail.com>
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
const t = [
|
|
7
|
+
"الإثنين",
|
|
8
|
+
"الثلاثاء",
|
|
9
|
+
"الأربعاء",
|
|
10
|
+
"الخميس",
|
|
11
|
+
"الجمعة",
|
|
12
|
+
"السبت",
|
|
13
|
+
"الأحد"
|
|
14
|
+
], e = [
|
|
15
|
+
"يناير",
|
|
16
|
+
"فبراير",
|
|
17
|
+
"مارس",
|
|
18
|
+
"أبريل",
|
|
19
|
+
"مايو",
|
|
20
|
+
"يونيو",
|
|
21
|
+
"يوليو",
|
|
22
|
+
"أغسطس",
|
|
23
|
+
"سبتمبر",
|
|
24
|
+
"أكتوبر",
|
|
25
|
+
"نوفمبر",
|
|
26
|
+
" ديسمبر"
|
|
27
|
+
], n = "سنوات", r = "سنة", l = "شهر", o = "أسبوع", m = "يوم", s = "اليوم", a = "لا حدث", c = "طوال اليوم", v = "حذف", d = "إنشاء حدث", y = "dddd D MMMM YYYY", E = {
|
|
28
|
+
weekDays: t,
|
|
29
|
+
months: e,
|
|
30
|
+
years: n,
|
|
31
|
+
year: "سنة",
|
|
32
|
+
month: "شهر",
|
|
33
|
+
week: o,
|
|
34
|
+
day: "يوم",
|
|
35
|
+
today: s,
|
|
36
|
+
noEvent: a,
|
|
37
|
+
allDay: c,
|
|
38
|
+
deleteEvent: "حذف",
|
|
39
|
+
createEvent: d,
|
|
40
|
+
dateFormat: y
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
c as allDay,
|
|
44
|
+
d as createEvent,
|
|
45
|
+
y as dateFormat,
|
|
46
|
+
m as day,
|
|
47
|
+
E as default,
|
|
48
|
+
v as deleteEvent,
|
|
49
|
+
l as month,
|
|
50
|
+
e as months,
|
|
51
|
+
a as noEvent,
|
|
52
|
+
s as today,
|
|
53
|
+
o as week,
|
|
54
|
+
t as weekDays,
|
|
55
|
+
r as year,
|
|
56
|
+
n as years
|
|
57
|
+
};
|
|
@@ -24,32 +24,32 @@ const t = [
|
|
|
24
24
|
"Октомври",
|
|
25
25
|
"Ноември",
|
|
26
26
|
"Декември"
|
|
27
|
-
], o = "Години", s = "Година", e = "Месец", c = "Седмица",
|
|
27
|
+
], o = "Години", s = "Година", e = "Месец", c = "Седмица", Y = "Ден", a = "Днес", d = "Няма събития", y = "Цял ден", r = "Изтрий", l = "Създай събитие", M = "dddd D MMMM YYYY", m = {
|
|
28
28
|
weekDays: t,
|
|
29
29
|
months: n,
|
|
30
30
|
years: o,
|
|
31
31
|
year: s,
|
|
32
32
|
month: e,
|
|
33
33
|
week: c,
|
|
34
|
-
day:
|
|
35
|
-
today:
|
|
36
|
-
noEvent:
|
|
37
|
-
allDay:
|
|
38
|
-
deleteEvent:
|
|
39
|
-
createEvent:
|
|
40
|
-
dateFormat:
|
|
34
|
+
day: "Ден",
|
|
35
|
+
today: a,
|
|
36
|
+
noEvent: d,
|
|
37
|
+
allDay: y,
|
|
38
|
+
deleteEvent: r,
|
|
39
|
+
createEvent: l,
|
|
40
|
+
dateFormat: M
|
|
41
41
|
};
|
|
42
42
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
y as allDay,
|
|
44
|
+
l as createEvent,
|
|
45
|
+
M as dateFormat,
|
|
46
|
+
Y as day,
|
|
47
47
|
m as default,
|
|
48
|
-
|
|
48
|
+
r as deleteEvent,
|
|
49
49
|
e as month,
|
|
50
50
|
n as months,
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
d as noEvent,
|
|
52
|
+
a as today,
|
|
53
53
|
c as week,
|
|
54
54
|
t as weekDays,
|
|
55
55
|
s as year,
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue-cal v4.10.2
|
|
3
|
+
* (c) 2025 Antoni Andre <antoniandre.web@gmail.com>
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
const t = [
|
|
7
|
+
"সোম",
|
|
8
|
+
"মঙ্গল",
|
|
9
|
+
"বুধ",
|
|
10
|
+
"বৃহস্পতি",
|
|
11
|
+
"শুক্র",
|
|
12
|
+
"শনি",
|
|
13
|
+
"রবি"
|
|
14
|
+
], n = [
|
|
15
|
+
"জানুয়ারি",
|
|
16
|
+
"ফেব্ুয়ারী",
|
|
17
|
+
"মার্চ",
|
|
18
|
+
"এপ্রিল",
|
|
19
|
+
"মে",
|
|
20
|
+
"জুন",
|
|
21
|
+
"জুলাই",
|
|
22
|
+
"অগাস্ট",
|
|
23
|
+
"সেপ্টেম্বর",
|
|
24
|
+
"অক্টোবর",
|
|
25
|
+
"নভেম্বর",
|
|
26
|
+
"ডিসেম্বর"
|
|
27
|
+
], y = "বছর", r = "বছর", l = "মাস", o = "সপ্তাহ", m = "দিন", M = "আজ", e = "কার্যসূচী", s = "সারাদিন", a = "মুছুন", c = "কার্যসূচী তৈরি করুন", d = "dddd D MMMM YYYY", Y = {
|
|
28
|
+
weekDays: t,
|
|
29
|
+
months: n,
|
|
30
|
+
years: "বছর",
|
|
31
|
+
year: "বছর",
|
|
32
|
+
month: "মাস",
|
|
33
|
+
week: o,
|
|
34
|
+
day: "দিন",
|
|
35
|
+
today: "আজ",
|
|
36
|
+
noEvent: e,
|
|
37
|
+
allDay: s,
|
|
38
|
+
deleteEvent: a,
|
|
39
|
+
createEvent: c,
|
|
40
|
+
dateFormat: d
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
s as allDay,
|
|
44
|
+
c as createEvent,
|
|
45
|
+
d as dateFormat,
|
|
46
|
+
m as day,
|
|
47
|
+
Y as default,
|
|
48
|
+
a as deleteEvent,
|
|
49
|
+
l as month,
|
|
50
|
+
n as months,
|
|
51
|
+
e as noEvent,
|
|
52
|
+
M as today,
|
|
53
|
+
o as week,
|
|
54
|
+
t as weekDays,
|
|
55
|
+
r as year,
|
|
56
|
+
y as years
|
|
57
|
+
};
|
|
@@ -24,32 +24,32 @@ const a = [
|
|
|
24
24
|
"Oktobar",
|
|
25
25
|
"Novembar",
|
|
26
26
|
"Decembar"
|
|
27
|
-
], t = "Godine", o = "Godina", n = "Mjesec", s = "Sedmica",
|
|
27
|
+
], t = "Godine", o = "Godina", n = "Mjesec", s = "Sedmica", b = "Dan", r = "Danas", d = "Nema događaja", c = "Cijeli dan", j = "Obriši", i = "Kreiraj događaj", l = "dddd D MMMM YYYY", m = {
|
|
28
28
|
weekDays: a,
|
|
29
29
|
months: e,
|
|
30
30
|
years: t,
|
|
31
31
|
year: o,
|
|
32
32
|
month: n,
|
|
33
33
|
week: s,
|
|
34
|
-
day:
|
|
35
|
-
today:
|
|
34
|
+
day: "Dan",
|
|
35
|
+
today: r,
|
|
36
36
|
noEvent: d,
|
|
37
|
-
allDay:
|
|
38
|
-
deleteEvent:
|
|
39
|
-
createEvent:
|
|
40
|
-
dateFormat:
|
|
37
|
+
allDay: c,
|
|
38
|
+
deleteEvent: j,
|
|
39
|
+
createEvent: i,
|
|
40
|
+
dateFormat: l
|
|
41
41
|
};
|
|
42
42
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
c as allDay,
|
|
44
|
+
i as createEvent,
|
|
45
|
+
l as dateFormat,
|
|
46
|
+
b as day,
|
|
47
47
|
m as default,
|
|
48
|
-
|
|
48
|
+
j as deleteEvent,
|
|
49
49
|
n as month,
|
|
50
50
|
e as months,
|
|
51
51
|
d as noEvent,
|
|
52
|
-
|
|
52
|
+
r as today,
|
|
53
53
|
s as week,
|
|
54
54
|
a as weekDays,
|
|
55
55
|
o as year,
|
|
@@ -32,36 +32,36 @@ const e = [
|
|
|
32
32
|
"Octubre",
|
|
33
33
|
"Novembre",
|
|
34
34
|
"Desembre"
|
|
35
|
-
], s = "Anys",
|
|
35
|
+
], s = "Anys", m = "Any", l = "Mes", o = "Setmana", y = "Dia", a = "Avui", r = "No hi ha esdeveniments", c = "Tot el dia", D = "Eliminar", i = "Crear un esdeveniment", d = "dddd D MMMM YYYY", u = {
|
|
36
36
|
weekDays: e,
|
|
37
37
|
weekDaysShort: t,
|
|
38
38
|
months: n,
|
|
39
39
|
years: s,
|
|
40
|
-
year:
|
|
41
|
-
month:
|
|
42
|
-
week:
|
|
43
|
-
day:
|
|
44
|
-
today:
|
|
45
|
-
noEvent:
|
|
46
|
-
allDay:
|
|
47
|
-
deleteEvent:
|
|
48
|
-
createEvent:
|
|
49
|
-
dateFormat:
|
|
40
|
+
year: "Any",
|
|
41
|
+
month: "Mes",
|
|
42
|
+
week: o,
|
|
43
|
+
day: "Dia",
|
|
44
|
+
today: a,
|
|
45
|
+
noEvent: r,
|
|
46
|
+
allDay: c,
|
|
47
|
+
deleteEvent: D,
|
|
48
|
+
createEvent: i,
|
|
49
|
+
dateFormat: d
|
|
50
50
|
};
|
|
51
51
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
c as allDay,
|
|
53
|
+
i as createEvent,
|
|
54
|
+
d as dateFormat,
|
|
55
|
+
y as day,
|
|
56
56
|
u as default,
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
D as deleteEvent,
|
|
58
|
+
l as month,
|
|
59
59
|
n as months,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
r as noEvent,
|
|
61
|
+
a as today,
|
|
62
|
+
o as week,
|
|
63
63
|
e as weekDays,
|
|
64
64
|
t as weekDaysShort,
|
|
65
|
-
|
|
65
|
+
m as year,
|
|
66
66
|
s as years
|
|
67
67
|
};
|
|
@@ -24,34 +24,34 @@ const e = [
|
|
|
24
24
|
"Říjen",
|
|
25
25
|
"Listopad",
|
|
26
26
|
"Prosinec"
|
|
27
|
-
], n = "Roky",
|
|
27
|
+
], n = "Roky", v = "Rok", o = "Měsíc", s = "Týden", k = "Den", d = "Dnes", c = "Bez událostí", a = "Celý den", r = "Odstranit", y = "Vytvořit událost", l = "dddd D. MMMM YYYY", D = {
|
|
28
28
|
weekDays: e,
|
|
29
29
|
months: t,
|
|
30
30
|
years: n,
|
|
31
|
-
year:
|
|
32
|
-
month:
|
|
33
|
-
week:
|
|
34
|
-
day:
|
|
35
|
-
today:
|
|
36
|
-
noEvent:
|
|
37
|
-
allDay:
|
|
38
|
-
deleteEvent:
|
|
31
|
+
year: "Rok",
|
|
32
|
+
month: o,
|
|
33
|
+
week: s,
|
|
34
|
+
day: "Den",
|
|
35
|
+
today: d,
|
|
36
|
+
noEvent: c,
|
|
37
|
+
allDay: a,
|
|
38
|
+
deleteEvent: r,
|
|
39
39
|
createEvent: y,
|
|
40
|
-
dateFormat:
|
|
40
|
+
dateFormat: l
|
|
41
41
|
};
|
|
42
42
|
export {
|
|
43
|
-
|
|
43
|
+
a as allDay,
|
|
44
44
|
y as createEvent,
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
l as dateFormat,
|
|
46
|
+
k as day,
|
|
47
47
|
D as default,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
r as deleteEvent,
|
|
49
|
+
o as month,
|
|
50
50
|
t as months,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
c as noEvent,
|
|
52
|
+
d as today,
|
|
53
|
+
s as week,
|
|
54
54
|
e as weekDays,
|
|
55
|
-
|
|
55
|
+
v as year,
|
|
56
56
|
n as years
|
|
57
57
|
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue-cal v4.10.2
|
|
3
|
+
* (c) 2025 Antoni Andre <antoniandre.web@gmail.com>
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
const e = [
|
|
7
|
+
"Mandag",
|
|
8
|
+
"Tirsdag",
|
|
9
|
+
"Onsdag",
|
|
10
|
+
"Torsdag",
|
|
11
|
+
"Fredag",
|
|
12
|
+
"Lørdag",
|
|
13
|
+
"Søndag"
|
|
14
|
+
], t = [
|
|
15
|
+
"Januar",
|
|
16
|
+
"Februar",
|
|
17
|
+
"Marts",
|
|
18
|
+
"April",
|
|
19
|
+
"Maj",
|
|
20
|
+
"Juni",
|
|
21
|
+
"Juli",
|
|
22
|
+
"August",
|
|
23
|
+
"September",
|
|
24
|
+
"Oktober",
|
|
25
|
+
"November",
|
|
26
|
+
"December"
|
|
27
|
+
], a = "År (flertal)", l = "År", n = "Måned", y = "Uge", M = "Dag", o = "I dag", r = "Ingen begivenhed", s = "Hele dagen", d = "Slet", c = "Opret et event", g = "dddd D MMMM YYYY", u = {
|
|
28
|
+
weekDays: e,
|
|
29
|
+
months: t,
|
|
30
|
+
years: a,
|
|
31
|
+
year: "År",
|
|
32
|
+
month: n,
|
|
33
|
+
week: "Uge",
|
|
34
|
+
day: "Dag",
|
|
35
|
+
today: o,
|
|
36
|
+
noEvent: r,
|
|
37
|
+
allDay: s,
|
|
38
|
+
deleteEvent: d,
|
|
39
|
+
createEvent: c,
|
|
40
|
+
dateFormat: g
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
s as allDay,
|
|
44
|
+
c as createEvent,
|
|
45
|
+
g as dateFormat,
|
|
46
|
+
M as day,
|
|
47
|
+
u as default,
|
|
48
|
+
d as deleteEvent,
|
|
49
|
+
n as month,
|
|
50
|
+
t as months,
|
|
51
|
+
r as noEvent,
|
|
52
|
+
o as today,
|
|
53
|
+
y as week,
|
|
54
|
+
e as weekDays,
|
|
55
|
+
l as year,
|
|
56
|
+
a as years
|
|
57
|
+
};
|
|
@@ -24,32 +24,32 @@ const e = [
|
|
|
24
24
|
"Oktober",
|
|
25
25
|
"November",
|
|
26
26
|
"Dezember"
|
|
27
|
-
], n = "Jahre", a = "Jahr", o = "Monat", s = "Woche",
|
|
27
|
+
], n = "Jahre", a = "Jahr", o = "Monat", s = "Woche", l = "Tag", r = "Heute", c = "Keine Events", d = "Ganztägig", g = "Löschen", i = "Event erstellen", M = "dddd D MMMM YYYY", u = {
|
|
28
28
|
weekDays: e,
|
|
29
29
|
months: t,
|
|
30
30
|
years: n,
|
|
31
31
|
year: a,
|
|
32
32
|
month: o,
|
|
33
33
|
week: s,
|
|
34
|
-
day:
|
|
35
|
-
today:
|
|
36
|
-
noEvent:
|
|
37
|
-
allDay:
|
|
38
|
-
deleteEvent:
|
|
39
|
-
createEvent:
|
|
40
|
-
dateFormat:
|
|
34
|
+
day: "Tag",
|
|
35
|
+
today: r,
|
|
36
|
+
noEvent: c,
|
|
37
|
+
allDay: d,
|
|
38
|
+
deleteEvent: g,
|
|
39
|
+
createEvent: i,
|
|
40
|
+
dateFormat: M
|
|
41
41
|
};
|
|
42
42
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
d as allDay,
|
|
44
|
+
i as createEvent,
|
|
45
|
+
M as dateFormat,
|
|
46
|
+
l as day,
|
|
47
47
|
u as default,
|
|
48
|
-
|
|
48
|
+
g as deleteEvent,
|
|
49
49
|
o as month,
|
|
50
50
|
t as months,
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
c as noEvent,
|
|
52
|
+
r as today,
|
|
53
53
|
s as week,
|
|
54
54
|
e as weekDays,
|
|
55
55
|
a as year,
|
|
@@ -40,7 +40,7 @@ const r = {
|
|
|
40
40
|
const o = l + this._vuecal.snapToTime / 2;
|
|
41
41
|
l = o - o % this._vuecal.snapToTime;
|
|
42
42
|
}
|
|
43
|
-
e.startTimeMinutes = l, e.start = new Date(new Date(i).setMinutes(l)), e.endTimeMinutes = Math.min(l + n,
|
|
43
|
+
e.startTimeMinutes = l, e.start = new Date(new Date(i).setMinutes(l)), e.endTimeMinutes = Math.min(l + n, 1440), e.end = new Date(new Date(i).setMinutes(e.endTimeMinutes));
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* On event drag start, only possible if editableEvent is true.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var S=Object.defineProperty,V=(t,e,a)=>e in t?S(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,C=(t,e,a)=>V(t,e+"",a);/**
|
|
2
|
+
* vue-cal v4.10.2
|
|
3
|
+
* (c) 2025 Antoni Andre <antoniandre.web@gmail.com>
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const m=800;let d=null,c=null,v={id:null,date:null},f=!1,_=!0,u={el:null,cell:null,timeout:null};const n={_eid:null,fromVueCal:null,toVueCal:null},M=class{constructor(t){C(this,"_vuecal"),this._vuecal=t}_getEventStart(t){const{timeStep:e,timeCellHeight:a,timeFrom:i,utils:r}=this._vuecal;let{y:l}=r.cell.getPosition(t);return l-=t.dataTransfer.getData("cursor-grab-at")*1,Math.round(l*e/parseInt(a)+i)}_updateEventStartEnd(t,e,a,i){const r=a.duration*1||e.endTimeMinutes-e.startTimeMinutes;let l=Math.max(this._getEventStart(t),0);if(this._vuecal.snapToTime){const o=l+this._vuecal.snapToTime/2;l=o-o%this._vuecal.snapToTime}e.startTimeMinutes=l,e.start=new Date(new Date(i).setMinutes(l)),e.endTimeMinutes=Math.min(l+r,1440),e.end=new Date(new Date(i).setMinutes(e.endTimeMinutes))}eventDragStart(t,e){if(t.target.nodeType===3)return t.preventDefault();t.dataTransfer.dropEffect="move",t.dataTransfer.setData("event",JSON.stringify(e)),t.dataTransfer.setData("cursor-grab-at",t.offsetY);const{clickHoldAnEvent:a}=this._vuecal.domEvents;setTimeout(()=>{a._eid=null,clearTimeout(a.timeoutId),e.deleting=!1},0),this._vuecal.domEvents.dragAnEvent._eid=e._eid,n._eid=e._eid,n.fromVueCal=this._vuecal._.uid,e.dragging=!0,setTimeout(()=>e.draggingStatic=!0,0),f=!1,v={id:this._vuecal.view.id,date:this._vuecal.view.startDate},_=!0}eventDragEnd(t){this._vuecal.domEvents.dragAnEvent._eid=null,n._eid=null,t.dragging=!1,t.draggingStatic=!1;const{fromVueCal:e,toVueCal:a}=n;a&&e!==a&&this._vuecal.utils.event.deleteAnEvent(t),n.fromVueCal=null,n.toVueCal=null,f&&_&&v.id&&this._vuecal.switchView(v.id,v.date,!0)}cellDragEnter(t,e,a){const i=t.currentTarget;if(!t.currentTarget.contains(t.relatedTarget)){if(i===u.el||!i.className.includes("vuecal__cell-content"))return!1;u.el&&(u.cell.highlighted=!1),u={el:i,cell:e,timeout:clearTimeout(u.timeout)},e.highlighted=!0,["years","year","month"].includes(this._vuecal.view.id)&&(u.timeout=setTimeout(()=>this._vuecal.switchToNarrowerView(a),2e3))}}cellDragOver(t,e,a,i){t.preventDefault(),e.highlighted=!0,(i||i===0)&&(e.highlightedSplit=i)}cellDragLeave(t,e){t.preventDefault(),!t.currentTarget.contains(t.relatedTarget)&&(e.highlightedSplit=!1,u.cell===e&&(clearTimeout(u.timeout),u={el:null,cell:null,timeout:null},e.highlighted=!1))}cellDragDrop(t,e,a,i){t.preventDefault(),clearTimeout(u.timeout),u={el:null,cell:null,timeout:null};const r=JSON.parse(t.dataTransfer.getData("event")||"{}");let l,o;if(n.fromVueCal!==this._vuecal._.uid){const{_eid:s,start:D,end:p,duration:h,...E}=r;l=this._vuecal.utils.event.createAnEvent(a,h,{...E,split:i})}else if(l=this._vuecal.view.events.find(s=>s._eid===n._eid),l||(l=this._vuecal.mutableEvents.find(s=>s._eid===n._eid),o=!!l),!l){const s=r.endTimeMinutes-r.startTimeMinutes,{start:D,end:p,...h}=r;l=this._vuecal.utils.event.createAnEvent(a,s,{...h,split:i})}const{start:T,split:w}=l;this._updateEventStartEnd(t,l,r,a),o&&this._vuecal.addEventsToView([l]),l.dragging=!1,(i||i===0)&&(l.split=i),e.highlighted=!1,e.highlightedSplit=null,_=!1,n.toVueCal=this._vuecal._.uid;const g={event:this._vuecal.cleanupEvent(l),oldDate:T,newDate:l.start,...(i||i===0)&&{oldSplit:w,newSplit:i},originalEvent:this._vuecal.cleanupEvent(r),external:!n.fromVueCal};this._vuecal.$emit("event-drop",g),this._vuecal.$emit("event-change",{event:g.event,originalEvent:g.originalEvent}),setTimeout(()=>{n._eid&&this.eventDragEnd(l)},300)}viewSelectorDragEnter(t,e,a){t.currentTarget.contains(t.relatedTarget)||(a.highlightedControl=e,clearTimeout(d),d=setTimeout(()=>{if(["previous","next"].includes(e))this._vuecal[e](),clearInterval(c),c=setInterval(this._vuecal[e],m);else if(e==="today"){clearInterval(c);let i;this._vuecal.view.id.includes("year")&&(i=this._vuecal.enabledViews.filter(r=>!r.includes("year"))[0]),this._vuecal.switchView(i||this._vuecal.view.id,new Date(new Date().setHours(0,0,0,0)),!0)}else this._vuecal.switchView(e,null,!0);f=!0},m))}viewSelectorDragLeave(t,e,a){t.currentTarget.contains(t.relatedTarget)||a.highlightedControl===e&&(a.highlightedControl=null,d&&(d=clearTimeout(d)),c&&(c=clearInterval(c)))}};exports.DragAndDrop=M;
|
|
@@ -37,40 +37,40 @@ const t = [
|
|
|
37
37
|
"Οκτωβρίου",
|
|
38
38
|
"Νοεμβρίου",
|
|
39
39
|
"Δεκεμβρίου"
|
|
40
|
-
],
|
|
40
|
+
], h = "Έτη", s = "Έτος", e = "Μήνα", c = "Εβδομάδα", a = "Ημέρα", d = "Σήμερα", y = "Κανένα συμβάν", m = "Ημερήσιο συμβάν", r = "Διαγραφή", l = "Δημιουργία συμβάντος", v = "dddd D MMMMG YYYY", M = "π.μ.", Y = "μ.μ.", D = {
|
|
41
41
|
weekDays: t,
|
|
42
42
|
months: n,
|
|
43
43
|
monthsGenitive: o,
|
|
44
|
-
years:
|
|
45
|
-
year:
|
|
46
|
-
month:
|
|
47
|
-
week:
|
|
48
|
-
day:
|
|
49
|
-
today:
|
|
44
|
+
years: "Έτη",
|
|
45
|
+
year: s,
|
|
46
|
+
month: e,
|
|
47
|
+
week: c,
|
|
48
|
+
day: a,
|
|
49
|
+
today: d,
|
|
50
50
|
noEvent: y,
|
|
51
|
-
allDay:
|
|
51
|
+
allDay: m,
|
|
52
52
|
deleteEvent: r,
|
|
53
|
-
createEvent:
|
|
54
|
-
dateFormat:
|
|
55
|
-
am:
|
|
56
|
-
pm:
|
|
53
|
+
createEvent: l,
|
|
54
|
+
dateFormat: v,
|
|
55
|
+
am: M,
|
|
56
|
+
pm: Y
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
m as allDay,
|
|
60
|
+
M as am,
|
|
61
|
+
l as createEvent,
|
|
62
|
+
v as dateFormat,
|
|
63
|
+
a as day,
|
|
64
64
|
D as default,
|
|
65
65
|
r as deleteEvent,
|
|
66
|
-
|
|
66
|
+
e as month,
|
|
67
67
|
n as months,
|
|
68
68
|
o as monthsGenitive,
|
|
69
69
|
y as noEvent,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
Y as pm,
|
|
71
|
+
d as today,
|
|
72
|
+
c as week,
|
|
73
73
|
t as weekDays,
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
s as year,
|
|
75
|
+
h as years
|
|
76
76
|
};
|