@dynect/base 0.1.0 → 0.3.0
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/package.json +1 -1
- package/src/runtime/assets/svg/app/asset.svg +8 -0
- package/src/runtime/assets/svg/app/crm.svg +8 -0
- package/src/runtime/assets/svg/app/dark/asset.svg +6 -0
- package/src/runtime/assets/svg/app/dark/crm.svg +6 -0
- package/src/runtime/assets/svg/app/dark/erp.svg +5 -0
- package/src/runtime/assets/svg/app/dark/hrms.svg +8 -0
- package/src/runtime/assets/svg/app/dark/investment.svg +10 -0
- package/src/runtime/assets/svg/app/dark/pos.svg +5 -0
- package/src/runtime/assets/svg/app/dark/project.svg +8 -0
- package/src/runtime/assets/svg/app/dark/retail.svg +9 -0
- package/src/runtime/assets/svg/app/erp.svg +5 -0
- package/src/runtime/assets/svg/app/hrms.svg +10 -0
- package/src/runtime/assets/svg/app/investment.svg +12 -0
- package/src/runtime/assets/svg/app/outline/asset.svg +5 -0
- package/src/runtime/assets/svg/app/outline/crm.svg +6 -0
- package/src/runtime/assets/svg/app/outline/erp.svg +5 -0
- package/src/runtime/assets/svg/app/outline/hrms.svg +7 -0
- package/src/runtime/assets/svg/app/outline/investment.svg +9 -0
- package/src/runtime/assets/svg/app/outline/pos.svg +5 -0
- package/src/runtime/assets/svg/app/outline/project.svg +8 -0
- package/src/runtime/assets/svg/app/outline/retail.svg +9 -0
- package/src/runtime/assets/svg/app/pos.svg +7 -0
- package/src/runtime/assets/svg/app/project.svg +10 -0
- package/src/runtime/assets/svg/app/retail.svg +11 -0
- package/src/runtime/assets/svg/flags/ad.svg +150 -0
- package/src/runtime/assets/svg/flags/ae.svg +6 -0
- package/src/runtime/assets/svg/flags/af.svg +81 -0
- package/src/runtime/assets/svg/flags/ag.svg +14 -0
- package/src/runtime/assets/svg/flags/ai.svg +29 -0
- package/src/runtime/assets/svg/flags/al.svg +5 -0
- package/src/runtime/assets/svg/flags/am.svg +5 -0
- package/src/runtime/assets/svg/flags/ao.svg +13 -0
- package/src/runtime/assets/svg/flags/aq.svg +5 -0
- package/src/runtime/assets/svg/flags/ar.svg +32 -0
- package/src/runtime/assets/svg/flags/arab.svg +109 -0
- package/src/runtime/assets/svg/flags/as.svg +72 -0
- package/src/runtime/assets/svg/flags/asean.svg +13 -0
- package/src/runtime/assets/svg/flags/at.svg +4 -0
- package/src/runtime/assets/svg/flags/au.svg +8 -0
- package/src/runtime/assets/svg/flags/aw.svg +186 -0
- package/src/runtime/assets/svg/flags/ax.svg +18 -0
- package/src/runtime/assets/svg/flags/az.svg +8 -0
- package/src/runtime/assets/svg/flags/ba.svg +12 -0
- package/src/runtime/assets/svg/flags/bb.svg +6 -0
- package/src/runtime/assets/svg/flags/bd.svg +4 -0
- package/src/runtime/assets/svg/flags/be.svg +7 -0
- package/src/runtime/assets/svg/flags/bf.svg +7 -0
- package/src/runtime/assets/svg/flags/bg.svg +5 -0
- package/src/runtime/assets/svg/flags/bh.svg +4 -0
- package/src/runtime/assets/svg/flags/bi.svg +15 -0
- package/src/runtime/assets/svg/flags/bj.svg +14 -0
- package/src/runtime/assets/svg/flags/bl.svg +5 -0
- package/src/runtime/assets/svg/flags/bm.svg +97 -0
- package/src/runtime/assets/svg/flags/bn.svg +36 -0
- package/src/runtime/assets/svg/flags/bo.svg +673 -0
- package/src/runtime/assets/svg/flags/bq.svg +5 -0
- package/src/runtime/assets/svg/flags/br.svg +45 -0
- package/src/runtime/assets/svg/flags/bs.svg +13 -0
- package/src/runtime/assets/svg/flags/bt.svg +89 -0
- package/src/runtime/assets/svg/flags/bv.svg +13 -0
- package/src/runtime/assets/svg/flags/bw.svg +7 -0
- package/src/runtime/assets/svg/flags/by.svg +18 -0
- package/src/runtime/assets/svg/flags/bz.svg +145 -0
- package/src/runtime/assets/svg/flags/ca.svg +4 -0
- package/src/runtime/assets/svg/flags/cc.svg +19 -0
- package/src/runtime/assets/svg/flags/cd.svg +5 -0
- package/src/runtime/assets/svg/flags/cefta.svg +13 -0
- package/src/runtime/assets/svg/flags/cf.svg +15 -0
- package/src/runtime/assets/svg/flags/cg.svg +12 -0
- package/src/runtime/assets/svg/flags/ch.svg +9 -0
- package/src/runtime/assets/svg/flags/ci.svg +7 -0
- package/src/runtime/assets/svg/flags/ck.svg +9 -0
- package/src/runtime/assets/svg/flags/cl.svg +13 -0
- package/src/runtime/assets/svg/flags/cm.svg +15 -0
- package/src/runtime/assets/svg/flags/cn.svg +11 -0
- package/src/runtime/assets/svg/flags/co.svg +7 -0
- package/src/runtime/assets/svg/flags/cp.svg +7 -0
- package/src/runtime/assets/svg/flags/cr.svg +7 -0
- package/src/runtime/assets/svg/flags/cu.svg +13 -0
- package/src/runtime/assets/svg/flags/cv.svg +13 -0
- package/src/runtime/assets/svg/flags/cw.svg +14 -0
- package/src/runtime/assets/svg/flags/cx.svg +15 -0
- package/src/runtime/assets/svg/flags/cy.svg +6 -0
- package/src/runtime/assets/svg/flags/cz.svg +5 -0
- package/src/runtime/assets/svg/flags/de.svg +5 -0
- package/src/runtime/assets/svg/flags/dg.svg +130 -0
- package/src/runtime/assets/svg/flags/dj.svg +13 -0
- package/src/runtime/assets/svg/flags/dk.svg +5 -0
- package/src/runtime/assets/svg/flags/dm.svg +152 -0
- package/src/runtime/assets/svg/flags/do.svg +121 -0
- package/src/runtime/assets/svg/flags/dz.svg +5 -0
- package/src/runtime/assets/svg/flags/eac.svg +48 -0
- package/src/runtime/assets/svg/flags/ec.svg +138 -0
- package/src/runtime/assets/svg/flags/ee.svg +5 -0
- package/src/runtime/assets/svg/flags/eg.svg +38 -0
- package/src/runtime/assets/svg/flags/eh.svg +16 -0
- package/src/runtime/assets/svg/flags/er.svg +8 -0
- package/src/runtime/assets/svg/flags/es-ct.svg +4 -0
- package/src/runtime/assets/svg/flags/es-ga.svg +187 -0
- package/src/runtime/assets/svg/flags/es-pv.svg +5 -0
- package/src/runtime/assets/svg/flags/es.svg +544 -0
- package/src/runtime/assets/svg/flags/et.svg +14 -0
- package/src/runtime/assets/svg/flags/eu.svg +28 -0
- package/src/runtime/assets/svg/flags/fi.svg +5 -0
- package/src/runtime/assets/svg/flags/fj.svg +120 -0
- package/src/runtime/assets/svg/flags/fk.svg +90 -0
- package/src/runtime/assets/svg/flags/fm.svg +11 -0
- package/src/runtime/assets/svg/flags/fo.svg +12 -0
- package/src/runtime/assets/svg/flags/fr.svg +5 -0
- package/src/runtime/assets/svg/flags/ga.svg +7 -0
- package/src/runtime/assets/svg/flags/gb-eng.svg +5 -0
- package/src/runtime/assets/svg/flags/gb-nir.svg +132 -0
- package/src/runtime/assets/svg/flags/gb-sct.svg +4 -0
- package/src/runtime/assets/svg/flags/gb-wls.svg +9 -0
- package/src/runtime/assets/svg/flags/gb.svg +7 -0
- package/src/runtime/assets/svg/flags/gd.svg +27 -0
- package/src/runtime/assets/svg/flags/ge.svg +6 -0
- package/src/runtime/assets/svg/flags/gf.svg +5 -0
- package/src/runtime/assets/svg/flags/gg.svg +9 -0
- package/src/runtime/assets/svg/flags/gh.svg +6 -0
- package/src/runtime/assets/svg/flags/gi.svg +32 -0
- package/src/runtime/assets/svg/flags/gl.svg +4 -0
- package/src/runtime/assets/svg/flags/gm.svg +14 -0
- package/src/runtime/assets/svg/flags/gn.svg +7 -0
- package/src/runtime/assets/svg/flags/gp.svg +5 -0
- package/src/runtime/assets/svg/flags/gq.svg +23 -0
- package/src/runtime/assets/svg/flags/gr.svg +16 -0
- package/src/runtime/assets/svg/flags/gs.svg +133 -0
- package/src/runtime/assets/svg/flags/gt.svg +204 -0
- package/src/runtime/assets/svg/flags/gu.svg +19 -0
- package/src/runtime/assets/svg/flags/gw.svg +13 -0
- package/src/runtime/assets/svg/flags/gy.svg +9 -0
- package/src/runtime/assets/svg/flags/hk.svg +8 -0
- package/src/runtime/assets/svg/flags/hm.svg +8 -0
- package/src/runtime/assets/svg/flags/hn.svg +18 -0
- package/src/runtime/assets/svg/flags/hr.svg +58 -0
- package/src/runtime/assets/svg/flags/ht.svg +116 -0
- package/src/runtime/assets/svg/flags/hu.svg +7 -0
- package/src/runtime/assets/svg/flags/ic.svg +7 -0
- package/src/runtime/assets/svg/flags/id.svg +4 -0
- package/src/runtime/assets/svg/flags/ie.svg +7 -0
- package/src/runtime/assets/svg/flags/il.svg +14 -0
- package/src/runtime/assets/svg/flags/im.svg +36 -0
- package/src/runtime/assets/svg/flags/in.svg +25 -0
- package/src/runtime/assets/svg/flags/io.svg +130 -0
- package/src/runtime/assets/svg/flags/iq.svg +10 -0
- package/src/runtime/assets/svg/flags/ir.svg +219 -0
- package/src/runtime/assets/svg/flags/is.svg +12 -0
- package/src/runtime/assets/svg/flags/it.svg +7 -0
- package/src/runtime/assets/svg/flags/je.svg +62 -0
- package/src/runtime/assets/svg/flags/jm.svg +8 -0
- package/src/runtime/assets/svg/flags/jo.svg +16 -0
- package/src/runtime/assets/svg/flags/jp.svg +11 -0
- package/src/runtime/assets/svg/flags/ke.svg +23 -0
- package/src/runtime/assets/svg/flags/kg.svg +4 -0
- package/src/runtime/assets/svg/flags/kh.svg +61 -0
- package/src/runtime/assets/svg/flags/ki.svg +36 -0
- package/src/runtime/assets/svg/flags/km.svg +16 -0
- package/src/runtime/assets/svg/flags/kn.svg +14 -0
- package/src/runtime/assets/svg/flags/kp.svg +15 -0
- package/src/runtime/assets/svg/flags/kr.svg +24 -0
- package/src/runtime/assets/svg/flags/kw.svg +13 -0
- package/src/runtime/assets/svg/flags/ky.svg +103 -0
- package/src/runtime/assets/svg/flags/kz.svg +36 -0
- package/src/runtime/assets/svg/flags/la.svg +12 -0
- package/src/runtime/assets/svg/flags/lb.svg +15 -0
- package/src/runtime/assets/svg/flags/lc.svg +8 -0
- package/src/runtime/assets/svg/flags/li.svg +43 -0
- package/src/runtime/assets/svg/flags/lk.svg +22 -0
- package/src/runtime/assets/svg/flags/lr.svg +14 -0
- package/src/runtime/assets/svg/flags/ls.svg +8 -0
- package/src/runtime/assets/svg/flags/lt.svg +7 -0
- package/src/runtime/assets/svg/flags/lu.svg +5 -0
- package/src/runtime/assets/svg/flags/lv.svg +6 -0
- package/src/runtime/assets/svg/flags/ly.svg +13 -0
- package/src/runtime/assets/svg/flags/ma.svg +4 -0
- package/src/runtime/assets/svg/flags/mc.svg +6 -0
- package/src/runtime/assets/svg/flags/md.svg +70 -0
- package/src/runtime/assets/svg/flags/me.svg +116 -0
- package/src/runtime/assets/svg/flags/mf.svg +5 -0
- package/src/runtime/assets/svg/flags/mg.svg +7 -0
- package/src/runtime/assets/svg/flags/mh.svg +7 -0
- package/src/runtime/assets/svg/flags/mk.svg +5 -0
- package/src/runtime/assets/svg/flags/ml.svg +7 -0
- package/src/runtime/assets/svg/flags/mm.svg +12 -0
- package/src/runtime/assets/svg/flags/mn.svg +14 -0
- package/src/runtime/assets/svg/flags/mo.svg +9 -0
- package/src/runtime/assets/svg/flags/mp.svg +86 -0
- package/src/runtime/assets/svg/flags/mq.svg +5 -0
- package/src/runtime/assets/svg/flags/mr.svg +6 -0
- package/src/runtime/assets/svg/flags/ms.svg +29 -0
- package/src/runtime/assets/svg/flags/mt.svg +58 -0
- package/src/runtime/assets/svg/flags/mu.svg +8 -0
- package/src/runtime/assets/svg/flags/mv.svg +6 -0
- package/src/runtime/assets/svg/flags/mw.svg +10 -0
- package/src/runtime/assets/svg/flags/mx.svg +382 -0
- package/src/runtime/assets/svg/flags/my.svg +26 -0
- package/src/runtime/assets/svg/flags/mz.svg +21 -0
- package/src/runtime/assets/svg/flags/na.svg +16 -0
- package/src/runtime/assets/svg/flags/nc.svg +13 -0
- package/src/runtime/assets/svg/flags/ne.svg +6 -0
- package/src/runtime/assets/svg/flags/nf.svg +9 -0
- package/src/runtime/assets/svg/flags/ng.svg +6 -0
- package/src/runtime/assets/svg/flags/ni.svg +129 -0
- package/src/runtime/assets/svg/flags/nl.svg +5 -0
- package/src/runtime/assets/svg/flags/no.svg +7 -0
- package/src/runtime/assets/svg/flags/np.svg +13 -0
- package/src/runtime/assets/svg/flags/nr.svg +12 -0
- package/src/runtime/assets/svg/flags/nu.svg +10 -0
- package/src/runtime/assets/svg/flags/nz.svg +36 -0
- package/src/runtime/assets/svg/flags/om.svg +115 -0
- package/src/runtime/assets/svg/flags/pa.svg +14 -0
- package/src/runtime/assets/svg/flags/pc.svg +33 -0
- package/src/runtime/assets/svg/flags/pe.svg +4 -0
- package/src/runtime/assets/svg/flags/pf.svg +19 -0
- package/src/runtime/assets/svg/flags/pg.svg +9 -0
- package/src/runtime/assets/svg/flags/ph.svg +6 -0
- package/src/runtime/assets/svg/flags/pk.svg +15 -0
- package/src/runtime/assets/svg/flags/pl.svg +6 -0
- package/src/runtime/assets/svg/flags/pm.svg +5 -0
- package/src/runtime/assets/svg/flags/pn.svg +53 -0
- package/src/runtime/assets/svg/flags/pr.svg +13 -0
- package/src/runtime/assets/svg/flags/ps.svg +15 -0
- package/src/runtime/assets/svg/flags/pt.svg +57 -0
- package/src/runtime/assets/svg/flags/pw.svg +11 -0
- package/src/runtime/assets/svg/flags/py.svg +157 -0
- package/src/runtime/assets/svg/flags/qa.svg +4 -0
- package/src/runtime/assets/svg/flags/re.svg +5 -0
- package/src/runtime/assets/svg/flags/ro.svg +7 -0
- package/src/runtime/assets/svg/flags/rs.svg +292 -0
- package/src/runtime/assets/svg/flags/ru.svg +5 -0
- package/src/runtime/assets/svg/flags/rw.svg +13 -0
- package/src/runtime/assets/svg/flags/sa.svg +25 -0
- package/src/runtime/assets/svg/flags/sb.svg +13 -0
- package/src/runtime/assets/svg/flags/sc.svg +7 -0
- package/src/runtime/assets/svg/flags/sd.svg +13 -0
- package/src/runtime/assets/svg/flags/se.svg +4 -0
- package/src/runtime/assets/svg/flags/sg.svg +13 -0
- package/src/runtime/assets/svg/flags/sh-ac.svg +689 -0
- package/src/runtime/assets/svg/flags/sh-hl.svg +164 -0
- package/src/runtime/assets/svg/flags/sh-ta.svg +76 -0
- package/src/runtime/assets/svg/flags/sh.svg +7 -0
- package/src/runtime/assets/svg/flags/si.svg +18 -0
- package/src/runtime/assets/svg/flags/sj.svg +7 -0
- package/src/runtime/assets/svg/flags/sk.svg +9 -0
- package/src/runtime/assets/svg/flags/sl.svg +7 -0
- package/src/runtime/assets/svg/flags/sm.svg +75 -0
- package/src/runtime/assets/svg/flags/sn.svg +8 -0
- package/src/runtime/assets/svg/flags/so.svg +11 -0
- package/src/runtime/assets/svg/flags/sr.svg +6 -0
- package/src/runtime/assets/svg/flags/ss.svg +8 -0
- package/src/runtime/assets/svg/flags/st.svg +16 -0
- package/src/runtime/assets/svg/flags/state/ft.svg +5503 -0
- package/src/runtime/assets/svg/flags/state/johor.svg +59 -0
- package/src/runtime/assets/svg/flags/state/kedah.svg +246 -0
- package/src/runtime/assets/svg/flags/state/kelantan.svg +84 -0
- package/src/runtime/assets/svg/flags/state/kuala_lumpur.svg +9 -0
- package/src/runtime/assets/svg/flags/state/labuan.svg +10 -0
- package/src/runtime/assets/svg/flags/state/melaka.svg +56 -0
- package/src/runtime/assets/svg/flags/state/negeri_sembilan.svg +5 -0
- package/src/runtime/assets/svg/flags/state/pahang.svg +5 -0
- package/src/runtime/assets/svg/flags/state/penang.svg +514 -0
- package/src/runtime/assets/svg/flags/state/perak.svg +5 -0
- package/src/runtime/assets/svg/flags/state/perlis.svg +5 -0
- package/src/runtime/assets/svg/flags/state/putrajaya.svg +2631 -0
- package/src/runtime/assets/svg/flags/state/sabah.svg +8 -0
- package/src/runtime/assets/svg/flags/state/sarawak.svg +18 -0
- package/src/runtime/assets/svg/flags/state/selangor.svg +20 -0
- package/src/runtime/assets/svg/flags/state/terengganu.svg +6 -0
- package/src/runtime/assets/svg/flags/sv.svg +593 -0
- package/src/runtime/assets/svg/flags/sx.svg +56 -0
- package/src/runtime/assets/svg/flags/sy.svg +6 -0
- package/src/runtime/assets/svg/flags/sz.svg +34 -0
- package/src/runtime/assets/svg/flags/tc.svg +50 -0
- package/src/runtime/assets/svg/flags/td.svg +7 -0
- package/src/runtime/assets/svg/flags/tf.svg +15 -0
- package/src/runtime/assets/svg/flags/tg.svg +14 -0
- package/src/runtime/assets/svg/flags/th.svg +7 -0
- package/src/runtime/assets/svg/flags/tj.svg +22 -0
- package/src/runtime/assets/svg/flags/tk.svg +5 -0
- package/src/runtime/assets/svg/flags/tl.svg +13 -0
- package/src/runtime/assets/svg/flags/tm.svg +204 -0
- package/src/runtime/assets/svg/flags/tn.svg +4 -0
- package/src/runtime/assets/svg/flags/to.svg +10 -0
- package/src/runtime/assets/svg/flags/tr.svg +8 -0
- package/src/runtime/assets/svg/flags/tt.svg +5 -0
- package/src/runtime/assets/svg/flags/tv.svg +9 -0
- package/src/runtime/assets/svg/flags/tw.svg +34 -0
- package/src/runtime/assets/svg/flags/tz.svg +13 -0
- package/src/runtime/assets/svg/flags/ua.svg +6 -0
- package/src/runtime/assets/svg/flags/ug.svg +30 -0
- package/src/runtime/assets/svg/flags/um.svg +9 -0
- package/src/runtime/assets/svg/flags/un.svg +16 -0
- package/src/runtime/assets/svg/flags/us.svg +9 -0
- package/src/runtime/assets/svg/flags/uy.svg +28 -0
- package/src/runtime/assets/svg/flags/uz.svg +30 -0
- package/src/runtime/assets/svg/flags/va.svg +190 -0
- package/src/runtime/assets/svg/flags/vc.svg +8 -0
- package/src/runtime/assets/svg/flags/ve.svg +26 -0
- package/src/runtime/assets/svg/flags/vg.svg +59 -0
- package/src/runtime/assets/svg/flags/vi.svg +28 -0
- package/src/runtime/assets/svg/flags/vn.svg +11 -0
- package/src/runtime/assets/svg/flags/vu.svg +21 -0
- package/src/runtime/assets/svg/flags/wf.svg +5 -0
- package/src/runtime/assets/svg/flags/ws.svg +7 -0
- package/src/runtime/assets/svg/flags/xk.svg +5 -0
- package/src/runtime/assets/svg/flags/xx.svg +4 -0
- package/src/runtime/assets/svg/flags/ye.svg +7 -0
- package/src/runtime/assets/svg/flags/yt.svg +5 -0
- package/src/runtime/assets/svg/flags/za.svg +17 -0
- package/src/runtime/assets/svg/flags/zm.svg +27 -0
- package/src/runtime/assets/svg/flags/zw.svg +21 -0
- package/src/runtime/assets/svg/icon/activity.svg +4 -0
- package/src/runtime/assets/svg/icon/arrow-left.svg +3 -0
- package/src/runtime/assets/svg/icon/arrow-right.svg +3 -0
- package/src/runtime/assets/svg/icon/building-07.svg +4 -0
- package/src/runtime/assets/svg/icon/car-01.svg +4 -0
- package/src/runtime/assets/svg/icon/cash.svg +3 -0
- package/src/runtime/assets/svg/icon/clipboard-check.svg +3 -0
- package/src/runtime/assets/svg/icon/cog.svg +3 -0
- package/src/runtime/assets/svg/icon/colapse-sidebar.svg +3 -0
- package/src/runtime/assets/svg/icon/file-chart-bar.svg +3 -0
- package/src/runtime/assets/svg/icon/frame.svg +3 -0
- package/src/runtime/assets/svg/icon/gift-09.svg +7 -0
- package/src/runtime/assets/svg/icon/grid.svg +227 -0
- package/src/runtime/assets/svg/icon/layers.svg +3 -0
- package/src/runtime/assets/svg/icon/medical-cross.svg +3 -0
- package/src/runtime/assets/svg/icon/minimise-sidebar.svg +3 -0
- package/src/runtime/assets/svg/icon/rocket.svg +3 -0
- package/src/runtime/assets/svg/icon/speedometer-04.svg +5 -0
- package/src/runtime/assets/svg/icon/user-headset.svg +3 -0
- package/src/runtime/assets/svg/icon/users-group.svg +3 -0
- package/src/runtime/assets/svg/icon/users.svg +3 -0
- package/src/runtime/assets/svg/images/document-folders.svg +86 -0
- package/src/runtime/assets/svg/images/error-404.svg +56 -0
- package/src/runtime/assets/svg/images/error-500.svg +243 -0
- package/src/runtime/assets/svg/images/login-right-content.svg +272 -0
- package/src/runtime/assets/svg/images/man-question-mark.svg +130 -0
- package/src/runtime/assets/svg/logo/logomark.svg +4 -0
- package/src/runtime/assets/svg/logo/logotext.svg +10 -0
- package/src/runtime/components/base/event-calendar/AgendaView.vue +92 -0
- package/src/runtime/components/base/event-calendar/ColorManager.vue +149 -0
- package/src/runtime/components/base/event-calendar/DayEventsOverflowPopup.vue +41 -0
- package/src/runtime/components/base/event-calendar/DayView.vue +254 -0
- package/src/runtime/components/base/event-calendar/DragDropVisualFeedback.vue +97 -0
- package/src/runtime/components/base/event-calendar/EventCalendar.md +203 -0
- package/src/runtime/components/base/event-calendar/EventCalendar.vue +414 -0
- package/src/runtime/components/base/event-calendar/EventModal.vue +573 -0
- package/src/runtime/components/base/event-calendar/EventResizeHandle.vue +284 -0
- package/src/runtime/components/base/event-calendar/ExternalCalendarSettings.vue +138 -0
- package/src/runtime/components/base/event-calendar/LocationDisplay.vue +62 -0
- package/src/runtime/components/base/event-calendar/MonthView.vue +272 -0
- package/src/runtime/components/base/event-calendar/WeekView.vue +329 -0
- package/src/runtime/components/base/event-calendar/composables/useAdvancedValidation.ts +557 -0
- package/src/runtime/components/base/event-calendar/composables/useCalendarUtils.ts +70 -0
- package/src/runtime/components/base/event-calendar/composables/useColorManager.ts +244 -0
- package/src/runtime/components/base/event-calendar/composables/useCompatibility.ts +318 -0
- package/src/runtime/components/base/event-calendar/composables/useDragAndDrop.ts +481 -0
- package/src/runtime/components/base/event-calendar/composables/useEventFiltering.ts +116 -0
- package/src/runtime/components/base/event-calendar/composables/useEventStatus.ts +108 -0
- package/src/runtime/components/base/event-calendar/composables/useEventStore.ts +325 -0
- package/src/runtime/components/base/event-calendar/composables/useExternalCalendar.ts +340 -0
- package/src/runtime/components/base/event-calendar/composables/useKeyboardNavigation.ts +95 -0
- package/src/runtime/components/base/event-calendar/composables/useMonitoring.ts +433 -0
- package/src/runtime/components/base/event-calendar/composables/useMultiDayLayout.ts +131 -0
- package/src/runtime/components/base/event-calendar/composables/usePerformanceCache.ts +134 -0
- package/src/runtime/components/base/event-calendar/composables/useRecurringEvents.ts +291 -0
- package/src/runtime/components/base/event-calendar/composables/useResilientErrorHandling.ts +480 -0
- package/src/runtime/components/base/event-calendar/composables/useSecurity.ts +425 -0
- package/src/runtime/components/base/event-calendar/composables/useTimezone.ts +256 -0
- package/src/runtime/components/base/event-calendar/constants.ts +18 -0
- package/src/runtime/components/base/event-calendar/eventModal.schema.ts +32 -0
- package/src/runtime/components/base/event-calendar/types.ts +96 -0
- package/src/runtime/components/base/org-chart/index.vue +359 -0
- package/src/runtime/components/base/org-chart/main.ts +2372 -0
- package/src/runtime/components/base/org-chart/svg-icons.ts +58 -0
- package/src/runtime/components/base/org-chart/types.ts +492 -0
- package/src/runtime/components/base/signature/index.vue +218 -0
- package/src/runtime/components/base/toast/Toast.vue +396 -0
- package/src/runtime/components/base/toast/Toaster.vue +1241 -0
- package/src/runtime/components/base/toast/assets/CloseIcon.vue +3 -0
- package/src/runtime/components/base/toast/assets/ErrorIcon.vue +7 -0
- package/src/runtime/components/base/toast/assets/IconWrapper.vue +13 -0
- package/src/runtime/components/base/toast/assets/InfoIcon.vue +7 -0
- package/src/runtime/components/base/toast/assets/Loader.vue +18 -0
- package/src/runtime/components/base/toast/assets/SuccessIcon.vue +7 -0
- package/src/runtime/components/base/toast/assets/WarningIcon.vue +7 -0
- package/src/runtime/components/base/toast/constant.ts +30 -0
- package/src/runtime/components/base/toast/hooks.ts +114 -0
- package/src/runtime/components/base/toast/state.ts +317 -0
- package/src/runtime/components/base/toast/types.ts +201 -0
- package/src/runtime/components/chart/Bar.vue +175 -0
- package/src/runtime/components/chart/Line.vue +149 -0
- package/src/runtime/components/chart/Pie.vue +115 -0
- package/src/runtime/components/chart/Radar.vue +167 -0
- package/src/runtime/components/dynect/Accordion.vue +152 -0
- package/src/runtime/components/dynect/Alert.vue +194 -0
- package/src/runtime/components/dynect/Autocomplete.vue +404 -0
- package/src/runtime/components/dynect/Avatar.vue +132 -0
- package/src/runtime/components/dynect/AvatarGroup.vue +56 -0
- package/src/runtime/components/dynect/AvatarLabel.vue +82 -0
- package/src/runtime/components/dynect/Badge.vue +101 -0
- package/src/runtime/components/dynect/Button.vue +36 -0
- package/src/runtime/components/dynect/Checkbox.vue +80 -0
- package/src/runtime/components/dynect/DatePicker.vue +180 -0
- package/src/runtime/components/dynect/DateRange.vue +217 -0
- package/src/runtime/components/dynect/Dropzone.vue +355 -0
- package/src/runtime/components/dynect/EventCalendar.vue +66 -0
- package/src/runtime/components/dynect/Filters.vue +162 -0
- package/src/runtime/components/dynect/FormDescription.vue +20 -0
- package/src/runtime/components/dynect/FormError.vue +20 -0
- package/src/runtime/components/dynect/FormField.vue +45 -0
- package/src/runtime/components/dynect/FormLabel.vue +40 -0
- package/src/runtime/components/dynect/Gantt.vue +231 -0
- package/src/runtime/components/dynect/Input.vue +234 -0
- package/src/runtime/components/dynect/Kanban.vue +128 -0
- package/src/runtime/components/dynect/Modal.vue +118 -0
- package/src/runtime/components/dynect/OtpInput.vue +148 -0
- package/src/runtime/components/dynect/Pagination.vue +57 -0
- package/src/runtime/components/dynect/PermissionGuard.vue +50 -0
- package/src/runtime/components/dynect/Progress.vue +102 -0
- package/src/runtime/components/dynect/Radio.vue +90 -0
- package/src/runtime/components/dynect/Select.vue +190 -0
- package/src/runtime/components/dynect/SelectMultiple.vue +259 -0
- package/src/runtime/components/dynect/Sheet.vue +80 -0
- package/src/runtime/components/dynect/Signature.vue +135 -0
- package/src/runtime/components/dynect/SwitchColor.vue +14 -0
- package/src/runtime/components/dynect/SwitchLanguage.vue +39 -0
- package/src/runtime/components/dynect/Table.vue +488 -0
- package/src/runtime/components/dynect/TagsInput.vue +388 -0
- package/src/runtime/components/dynect/Telephone.vue +651 -0
- package/src/runtime/components/dynect/TextEditor.vue +94 -0
- package/src/runtime/components/dynect/Textarea.vue +108 -0
- package/src/runtime/components/dynect/TimePicker.vue +275 -0
- package/src/runtime/components/dynect/Timeline.vue +301 -0
- package/src/runtime/components/dynect/Toggle.vue +100 -0
- package/src/runtime/components/ui/accordion/Accordion.vue +15 -0
- package/src/runtime/components/ui/accordion/AccordionContent.vue +19 -0
- package/src/runtime/components/ui/accordion/AccordionItem.vue +19 -0
- package/src/runtime/components/ui/accordion/AccordionTrigger.vue +32 -0
- package/src/runtime/components/ui/accordion/index.ts +4 -0
- package/src/runtime/components/ui/alert/Alert.vue +17 -0
- package/src/runtime/components/ui/alert/AlertDescription.vue +14 -0
- package/src/runtime/components/ui/alert/AlertTitle.vue +14 -0
- package/src/runtime/components/ui/alert/index.ts +20 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialog.vue +15 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogAction.vue +18 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogCancel.vue +18 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogContent.vue +36 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogDescription.vue +17 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogFooter.vue +14 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogHeader.vue +14 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogTitle.vue +17 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue +12 -0
- package/src/runtime/components/ui/alert-dialog/index.ts +9 -0
- package/src/runtime/components/ui/aspect-ratio/AspectRatio.vue +12 -0
- package/src/runtime/components/ui/aspect-ratio/index.ts +1 -0
- package/src/runtime/components/ui/avatar/Avatar.vue +15 -0
- package/src/runtime/components/ui/avatar/AvatarFallback.vue +17 -0
- package/src/runtime/components/ui/avatar/AvatarImage.vue +12 -0
- package/src/runtime/components/ui/avatar/index.ts +3 -0
- package/src/runtime/components/ui/badge/Badge.vue +24 -0
- package/src/runtime/components/ui/badge/index.ts +22 -0
- package/src/runtime/components/ui/breadcrumb/Breadcrumb.vue +13 -0
- package/src/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue +18 -0
- package/src/runtime/components/ui/breadcrumb/BreadcrumbItem.vue +14 -0
- package/src/runtime/components/ui/breadcrumb/BreadcrumbLink.vue +16 -0
- package/src/runtime/components/ui/breadcrumb/BreadcrumbList.vue +14 -0
- package/src/runtime/components/ui/breadcrumb/BreadcrumbPage.vue +14 -0
- package/src/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue +17 -0
- package/src/runtime/components/ui/breadcrumb/index.ts +7 -0
- package/src/runtime/components/ui/button/Button.vue +38 -0
- package/src/runtime/components/ui/button/index.ts +51 -0
- package/src/runtime/components/ui/button-group/ButtonGroup.vue +17 -0
- package/src/runtime/components/ui/button-group/ButtonGroupSeparator.vue +16 -0
- package/src/runtime/components/ui/button-group/ButtonGroupText.vue +22 -0
- package/src/runtime/components/ui/button-group/index.ts +23 -0
- package/src/runtime/components/ui/calendar/Calendar.vue +163 -0
- package/src/runtime/components/ui/calendar/CalendarCell.vue +19 -0
- package/src/runtime/components/ui/calendar/CalendarCellTrigger.vue +47 -0
- package/src/runtime/components/ui/calendar/CalendarGrid.vue +19 -0
- package/src/runtime/components/ui/calendar/CalendarGridBody.vue +12 -0
- package/src/runtime/components/ui/calendar/CalendarGridHead.vue +13 -0
- package/src/runtime/components/ui/calendar/CalendarGridRow.vue +19 -0
- package/src/runtime/components/ui/calendar/CalendarHeadCell.vue +19 -0
- package/src/runtime/components/ui/calendar/CalendarHeader.vue +19 -0
- package/src/runtime/components/ui/calendar/CalendarHeading.vue +25 -0
- package/src/runtime/components/ui/calendar/CalendarNextButton.vue +22 -0
- package/src/runtime/components/ui/calendar/CalendarPrevButton.vue +22 -0
- package/src/runtime/components/ui/calendar/index.ts +14 -0
- package/src/runtime/components/ui/card/Card.vue +14 -0
- package/src/runtime/components/ui/card/CardAction.vue +14 -0
- package/src/runtime/components/ui/card/CardContent.vue +14 -0
- package/src/runtime/components/ui/card/CardDescription.vue +14 -0
- package/src/runtime/components/ui/card/CardFooter.vue +14 -0
- package/src/runtime/components/ui/card/CardHeader.vue +14 -0
- package/src/runtime/components/ui/card/CardTitle.vue +14 -0
- package/src/runtime/components/ui/card/index.ts +7 -0
- package/src/runtime/components/ui/carousel/Carousel.vue +46 -0
- package/src/runtime/components/ui/carousel/CarouselContent.vue +21 -0
- package/src/runtime/components/ui/carousel/CarouselItem.vue +15 -0
- package/src/runtime/components/ui/carousel/CarouselNext.vue +32 -0
- package/src/runtime/components/ui/carousel/CarouselPrevious.vue +32 -0
- package/src/runtime/components/ui/carousel/index.ts +8 -0
- package/src/runtime/components/ui/carousel/interface.ts +22 -0
- package/src/runtime/components/ui/carousel/useCarousel.ts +51 -0
- package/src/runtime/components/ui/chart/ChartContainer.vue +61 -0
- package/src/runtime/components/ui/chart/ChartLegendContent.vue +52 -0
- package/src/runtime/components/ui/chart/ChartStyle.vue +37 -0
- package/src/runtime/components/ui/chart/ChartTooltipContent.vue +92 -0
- package/src/runtime/components/ui/chart/index.ts +26 -0
- package/src/runtime/components/ui/chart/utils.ts +45 -0
- package/src/runtime/components/ui/checkbox/Checkbox.vue +34 -0
- package/src/runtime/components/ui/checkbox/index.ts +1 -0
- package/src/runtime/components/ui/collapsible/Collapsible.vue +15 -0
- package/src/runtime/components/ui/collapsible/CollapsibleContent.vue +12 -0
- package/src/runtime/components/ui/collapsible/CollapsibleTrigger.vue +12 -0
- package/src/runtime/components/ui/collapsible/index.ts +3 -0
- package/src/runtime/components/ui/combobox/Combobox.vue +15 -0
- package/src/runtime/components/ui/combobox/ComboboxAnchor.vue +19 -0
- package/src/runtime/components/ui/combobox/ComboboxEmpty.vue +17 -0
- package/src/runtime/components/ui/combobox/ComboboxGroup.vue +25 -0
- package/src/runtime/components/ui/combobox/ComboboxInput.vue +33 -0
- package/src/runtime/components/ui/combobox/ComboboxItem.vue +29 -0
- package/src/runtime/components/ui/combobox/ComboboxItemIndicator.vue +19 -0
- package/src/runtime/components/ui/combobox/ComboboxList.vue +38 -0
- package/src/runtime/components/ui/combobox/ComboboxSeparator.vue +17 -0
- package/src/runtime/components/ui/combobox/ComboboxTrigger.vue +19 -0
- package/src/runtime/components/ui/combobox/ComboboxViewport.vue +19 -0
- package/src/runtime/components/ui/combobox/index.ts +12 -0
- package/src/runtime/components/ui/command/Command.vue +85 -0
- package/src/runtime/components/ui/command/CommandDialog.vue +36 -0
- package/src/runtime/components/ui/command/CommandEmpty.vue +22 -0
- package/src/runtime/components/ui/command/CommandGroup.vue +40 -0
- package/src/runtime/components/ui/command/CommandInput.vue +38 -0
- package/src/runtime/components/ui/command/CommandItem.vue +80 -0
- package/src/runtime/components/ui/command/CommandList.vue +21 -0
- package/src/runtime/components/ui/command/CommandSeparator.vue +17 -0
- package/src/runtime/components/ui/command/CommandShortcut.vue +14 -0
- package/src/runtime/components/ui/command/index.ts +25 -0
- package/src/runtime/components/ui/context-menu/ContextMenu.vue +15 -0
- package/src/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue +37 -0
- package/src/runtime/components/ui/context-menu/ContextMenuContent.vue +35 -0
- package/src/runtime/components/ui/context-menu/ContextMenuGroup.vue +12 -0
- package/src/runtime/components/ui/context-menu/ContextMenuItem.vue +42 -0
- package/src/runtime/components/ui/context-menu/ContextMenuLabel.vue +17 -0
- package/src/runtime/components/ui/context-menu/ContextMenuPortal.vue +12 -0
- package/src/runtime/components/ui/context-menu/ContextMenuRadioGroup.vue +15 -0
- package/src/runtime/components/ui/context-menu/ContextMenuRadioItem.vue +37 -0
- package/src/runtime/components/ui/context-menu/ContextMenuSeparator.vue +15 -0
- package/src/runtime/components/ui/context-menu/ContextMenuShortcut.vue +14 -0
- package/src/runtime/components/ui/context-menu/ContextMenuSub.vue +15 -0
- package/src/runtime/components/ui/context-menu/ContextMenuSubContent.vue +29 -0
- package/src/runtime/components/ui/context-menu/ContextMenuSubTrigger.vue +31 -0
- package/src/runtime/components/ui/context-menu/ContextMenuTrigger.vue +14 -0
- package/src/runtime/components/ui/context-menu/index.ts +14 -0
- package/src/runtime/components/ui/dialog/Dialog.vue +15 -0
- package/src/runtime/components/ui/dialog/DialogClose.vue +12 -0
- package/src/runtime/components/ui/dialog/DialogContent.vue +49 -0
- package/src/runtime/components/ui/dialog/DialogDescription.vue +19 -0
- package/src/runtime/components/ui/dialog/DialogFooter.vue +25 -0
- package/src/runtime/components/ui/dialog/DialogHeader.vue +14 -0
- package/src/runtime/components/ui/dialog/DialogOverlay.vue +17 -0
- package/src/runtime/components/ui/dialog/DialogScrollContent.vue +46 -0
- package/src/runtime/components/ui/dialog/DialogTitle.vue +19 -0
- package/src/runtime/components/ui/dialog/DialogTrigger.vue +12 -0
- package/src/runtime/components/ui/dialog/index.ts +10 -0
- package/src/runtime/components/ui/drawer/Drawer.vue +19 -0
- package/src/runtime/components/ui/drawer/DrawerClose.vue +12 -0
- package/src/runtime/components/ui/drawer/DrawerContent.vue +40 -0
- package/src/runtime/components/ui/drawer/DrawerDescription.vue +17 -0
- package/src/runtime/components/ui/drawer/DrawerFooter.vue +14 -0
- package/src/runtime/components/ui/drawer/DrawerHeader.vue +14 -0
- package/src/runtime/components/ui/drawer/DrawerOverlay.vue +15 -0
- package/src/runtime/components/ui/drawer/DrawerTitle.vue +17 -0
- package/src/runtime/components/ui/drawer/DrawerTrigger.vue +12 -0
- package/src/runtime/components/ui/drawer/index.ts +9 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenu.vue +15 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +37 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue +37 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuGroup.vue +12 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue +41 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue +18 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +15 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +38 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.vue +19 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.vue +14 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuSub.vue +15 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue +29 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +30 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue +14 -0
- package/src/runtime/components/ui/dropdown-menu/index.ts +16 -0
- package/src/runtime/components/ui/empty/Empty.vue +14 -0
- package/src/runtime/components/ui/empty/EmptyContent.vue +14 -0
- package/src/runtime/components/ui/empty/EmptyDescription.vue +14 -0
- package/src/runtime/components/ui/empty/EmptyHeader.vue +14 -0
- package/src/runtime/components/ui/empty/EmptyMedia.vue +17 -0
- package/src/runtime/components/ui/empty/EmptyTitle.vue +14 -0
- package/src/runtime/components/ui/empty/index.ts +23 -0
- package/src/runtime/components/ui/field/Field.vue +17 -0
- package/src/runtime/components/ui/field/FieldContent.vue +14 -0
- package/src/runtime/components/ui/field/FieldDescription.vue +17 -0
- package/src/runtime/components/ui/field/FieldError.vue +45 -0
- package/src/runtime/components/ui/field/FieldGroup.vue +14 -0
- package/src/runtime/components/ui/field/FieldLabel.vue +31 -0
- package/src/runtime/components/ui/field/FieldLegend.vue +15 -0
- package/src/runtime/components/ui/field/FieldSeparator.vue +18 -0
- package/src/runtime/components/ui/field/FieldSet.vue +14 -0
- package/src/runtime/components/ui/field/FieldTitle.vue +14 -0
- package/src/runtime/components/ui/field/index.ts +32 -0
- package/src/runtime/components/ui/form/FormControl.vue +12 -0
- package/src/runtime/components/ui/form/FormDescription.vue +17 -0
- package/src/runtime/components/ui/form/FormItem.vue +20 -0
- package/src/runtime/components/ui/form/FormLabel.vue +17 -0
- package/src/runtime/components/ui/form/FormMessage.vue +17 -0
- package/src/runtime/components/ui/form/index.ts +7 -0
- package/src/runtime/components/ui/form/injectionKeys.ts +3 -0
- package/src/runtime/components/ui/form/useFormField.ts +29 -0
- package/src/runtime/components/ui/gantt/Gantt.vue +108 -0
- package/src/runtime/components/ui/gantt/GanttCreateMarkerTrigger.vue +44 -0
- package/src/runtime/components/ui/gantt/GanttFeatureItem.vue +303 -0
- package/src/runtime/components/ui/gantt/GanttFeatureList.vue +16 -0
- package/src/runtime/components/ui/gantt/GanttFeatureListGroup.vue +20 -0
- package/src/runtime/components/ui/gantt/GanttHeader.vue +197 -0
- package/src/runtime/components/ui/gantt/GanttMarker.vue +133 -0
- package/src/runtime/components/ui/gantt/GanttSidebar.vue +65 -0
- package/src/runtime/components/ui/gantt/GanttSidebarGroup.vue +25 -0
- package/src/runtime/components/ui/gantt/GanttSidebarItem.vue +32 -0
- package/src/runtime/components/ui/gantt/GanttTimeline.vue +179 -0
- package/src/runtime/components/ui/gantt/GanttToday.vue +52 -0
- package/src/runtime/components/ui/gantt/GanttZoomControls.vue +49 -0
- package/src/runtime/components/ui/gantt/README.md +356 -0
- package/src/runtime/components/ui/gantt/index.ts +18 -0
- package/src/runtime/components/ui/gantt/meta.json +96 -0
- package/src/runtime/components/ui/hover-card/HoverCard.vue +15 -0
- package/src/runtime/components/ui/hover-card/HoverCardContent.vue +36 -0
- package/src/runtime/components/ui/hover-card/HoverCardTrigger.vue +12 -0
- package/src/runtime/components/ui/hover-card/index.ts +3 -0
- package/src/runtime/components/ui/inline-editable-input/InlineEditableInput.vue +126 -0
- package/src/runtime/components/ui/inline-editable-input/index.ts +1 -0
- package/src/runtime/components/ui/input/Input.vue +35 -0
- package/src/runtime/components/ui/input/index.ts +1 -0
- package/src/runtime/components/ui/input-group/InputGroup.vue +37 -0
- package/src/runtime/components/ui/input-group/InputGroupAddon.vue +33 -0
- package/src/runtime/components/ui/input-group/InputGroupButton.vue +25 -0
- package/src/runtime/components/ui/input-group/InputGroupInput.vue +13 -0
- package/src/runtime/components/ui/input-group/InputGroupText.vue +14 -0
- package/src/runtime/components/ui/input-group/InputGroupTextarea.vue +13 -0
- package/src/runtime/components/ui/input-group/index.ts +41 -0
- package/src/runtime/components/ui/input-otp/InputOTP.vue +22 -0
- package/src/runtime/components/ui/input-otp/InputOTPGroup.vue +18 -0
- package/src/runtime/components/ui/input-otp/InputOTPSeparator.vue +17 -0
- package/src/runtime/components/ui/input-otp/InputOTPSlot.vue +37 -0
- package/src/runtime/components/ui/input-otp/index.ts +4 -0
- package/src/runtime/components/ui/item/Item.vue +27 -0
- package/src/runtime/components/ui/item/ItemActions.vue +14 -0
- package/src/runtime/components/ui/item/ItemContent.vue +14 -0
- package/src/runtime/components/ui/item/ItemDescription.vue +14 -0
- package/src/runtime/components/ui/item/ItemFooter.vue +14 -0
- package/src/runtime/components/ui/item/ItemGroup.vue +14 -0
- package/src/runtime/components/ui/item/ItemHeader.vue +14 -0
- package/src/runtime/components/ui/item/ItemMedia.vue +17 -0
- package/src/runtime/components/ui/item/ItemSeparator.vue +12 -0
- package/src/runtime/components/ui/item/ItemTitle.vue +14 -0
- package/src/runtime/components/ui/item/index.ts +47 -0
- package/src/runtime/components/ui/kanban/Kanban.vue +42 -0
- package/src/runtime/components/ui/kanban/KanbanBoard.vue +75 -0
- package/src/runtime/components/ui/kanban/KanbanCard.vue +59 -0
- package/src/runtime/components/ui/kanban/KanbanCards.vue +27 -0
- package/src/runtime/components/ui/kanban/KanbanHeader.vue +15 -0
- package/src/runtime/components/ui/kanban/README.md +184 -0
- package/src/runtime/components/ui/kanban/index.ts +8 -0
- package/src/runtime/components/ui/kbd/Kbd.vue +23 -0
- package/src/runtime/components/ui/kbd/KbdGroup.vue +14 -0
- package/src/runtime/components/ui/kbd/index.ts +2 -0
- package/src/runtime/components/ui/label/Label.vue +30 -0
- package/src/runtime/components/ui/label/index.ts +1 -0
- package/src/runtime/components/ui/menubar/Menubar.vue +20 -0
- package/src/runtime/components/ui/menubar/MenubarCheckboxItem.vue +37 -0
- package/src/runtime/components/ui/menubar/MenubarContent.vue +38 -0
- package/src/runtime/components/ui/menubar/MenubarGroup.vue +12 -0
- package/src/runtime/components/ui/menubar/MenubarItem.vue +37 -0
- package/src/runtime/components/ui/menubar/MenubarLabel.vue +16 -0
- package/src/runtime/components/ui/menubar/MenubarMenu.vue +12 -0
- package/src/runtime/components/ui/menubar/MenubarRadioGroup.vue +15 -0
- package/src/runtime/components/ui/menubar/MenubarRadioItem.vue +37 -0
- package/src/runtime/components/ui/menubar/MenubarSeparator.vue +17 -0
- package/src/runtime/components/ui/menubar/MenubarShortcut.vue +14 -0
- package/src/runtime/components/ui/menubar/MenubarSub.vue +20 -0
- package/src/runtime/components/ui/menubar/MenubarSubContent.vue +35 -0
- package/src/runtime/components/ui/menubar/MenubarSubTrigger.vue +25 -0
- package/src/runtime/components/ui/menubar/MenubarTrigger.vue +19 -0
- package/src/runtime/components/ui/menubar/index.ts +15 -0
- package/src/runtime/components/ui/native-select/NativeSelect.vue +45 -0
- package/src/runtime/components/ui/native-select/NativeSelectOptGroup.vue +15 -0
- package/src/runtime/components/ui/native-select/NativeSelectOption.vue +15 -0
- package/src/runtime/components/ui/native-select/index.ts +3 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenu.vue +31 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuContent.vue +30 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuIndicator.vue +23 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuItem.vue +17 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuLink.vue +28 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuList.vue +19 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue +22 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuViewport.vue +28 -0
- package/src/runtime/components/ui/navigation-menu/index.ts +14 -0
- package/src/runtime/components/ui/number-field/NumberField.vue +20 -0
- package/src/runtime/components/ui/number-field/NumberFieldContent.vue +14 -0
- package/src/runtime/components/ui/number-field/NumberFieldDecrement.vue +22 -0
- package/src/runtime/components/ui/number-field/NumberFieldIncrement.vue +22 -0
- package/src/runtime/components/ui/number-field/NumberFieldInput.vue +16 -0
- package/src/runtime/components/ui/number-field/index.ts +5 -0
- package/src/runtime/components/ui/pagination/Pagination.vue +23 -0
- package/src/runtime/components/ui/pagination/PaginationContent.vue +17 -0
- package/src/runtime/components/ui/pagination/PaginationEllipsis.vue +21 -0
- package/src/runtime/components/ui/pagination/PaginationFirst.vue +34 -0
- package/src/runtime/components/ui/pagination/PaginationItem.vue +44 -0
- package/src/runtime/components/ui/pagination/PaginationLast.vue +33 -0
- package/src/runtime/components/ui/pagination/PaginationNext.vue +33 -0
- package/src/runtime/components/ui/pagination/PaginationPrevious.vue +33 -0
- package/src/runtime/components/ui/pagination/index.ts +8 -0
- package/src/runtime/components/ui/pin-input/PinInput.vue +22 -0
- package/src/runtime/components/ui/pin-input/PinInputGroup.vue +17 -0
- package/src/runtime/components/ui/pin-input/PinInputSeparator.vue +16 -0
- package/src/runtime/components/ui/pin-input/PinInputSlot.vue +26 -0
- package/src/runtime/components/ui/pin-input/index.ts +4 -0
- package/src/runtime/components/ui/popover/Popover.vue +15 -0
- package/src/runtime/components/ui/popover/PopoverAnchor.vue +12 -0
- package/src/runtime/components/ui/popover/PopoverContent.vue +38 -0
- package/src/runtime/components/ui/popover/PopoverTrigger.vue +12 -0
- package/src/runtime/components/ui/popover/index.ts +4 -0
- package/src/runtime/components/ui/progress/Progress.vue +19 -0
- package/src/runtime/components/ui/progress/index.ts +1 -0
- package/src/runtime/components/ui/radio-group/RadioGroup.vue +20 -0
- package/src/runtime/components/ui/radio-group/RadioGroupItem.vue +33 -0
- package/src/runtime/components/ui/radio-group/index.ts +2 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendar.vue +61 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarCell.vue +32 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.vue +46 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarGrid.vue +19 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarGridBody.vue +12 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarGridHead.vue +12 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarGridRow.vue +19 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarHeadCell.vue +19 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarHeader.vue +19 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarHeading.vue +25 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarNextButton.vue +22 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarPrevButton.vue +22 -0
- package/src/runtime/components/ui/range-calendar/index.ts +12 -0
- package/src/runtime/components/ui/resizable/ResizableHandle.vue +35 -0
- package/src/runtime/components/ui/resizable/ResizablePanel.vue +16 -0
- package/src/runtime/components/ui/resizable/ResizablePanelGroup.vue +20 -0
- package/src/runtime/components/ui/resizable/index.ts +3 -0
- package/src/runtime/components/ui/scroll-area/ScrollArea.vue +22 -0
- package/src/runtime/components/ui/scroll-area/ScrollBar.vue +19 -0
- package/src/runtime/components/ui/scroll-area/index.ts +2 -0
- package/src/runtime/components/ui/select/Select.vue +15 -0
- package/src/runtime/components/ui/select/SelectContent.vue +43 -0
- package/src/runtime/components/ui/select/SelectGroup.vue +12 -0
- package/src/runtime/components/ui/select/SelectItem.vue +39 -0
- package/src/runtime/components/ui/select/SelectItemText.vue +12 -0
- package/src/runtime/components/ui/select/SelectLabel.vue +14 -0
- package/src/runtime/components/ui/select/SelectScrollDownButton.vue +22 -0
- package/src/runtime/components/ui/select/SelectScrollUpButton.vue +22 -0
- package/src/runtime/components/ui/select/SelectSeparator.vue +15 -0
- package/src/runtime/components/ui/select/SelectTrigger.vue +32 -0
- package/src/runtime/components/ui/select/SelectValue.vue +12 -0
- package/src/runtime/components/ui/select/index.ts +11 -0
- package/src/runtime/components/ui/separator/Separator.vue +18 -0
- package/src/runtime/components/ui/separator/index.ts +1 -0
- package/src/runtime/components/ui/sheet/Sheet.vue +15 -0
- package/src/runtime/components/ui/sheet/SheetClose.vue +12 -0
- package/src/runtime/components/ui/sheet/SheetContent.vue +54 -0
- package/src/runtime/components/ui/sheet/SheetDescription.vue +17 -0
- package/src/runtime/components/ui/sheet/SheetFooter.vue +12 -0
- package/src/runtime/components/ui/sheet/SheetHeader.vue +12 -0
- package/src/runtime/components/ui/sheet/SheetOverlay.vue +17 -0
- package/src/runtime/components/ui/sheet/SheetTitle.vue +17 -0
- package/src/runtime/components/ui/sheet/SheetTrigger.vue +12 -0
- package/src/runtime/components/ui/sheet/index.ts +8 -0
- package/src/runtime/components/ui/sidebar/Sidebar.vue +78 -0
- package/src/runtime/components/ui/sidebar/SidebarContent.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarFooter.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarGroup.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarGroupAction.vue +31 -0
- package/src/runtime/components/ui/sidebar/SidebarGroupContent.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarGroupLabel.vue +30 -0
- package/src/runtime/components/ui/sidebar/SidebarHeader.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarInput.vue +15 -0
- package/src/runtime/components/ui/sidebar/SidebarInset.vue +24 -0
- package/src/runtime/components/ui/sidebar/SidebarMenu.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuAction.vue +41 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuBadge.vue +28 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuButton.vue +49 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue +27 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuItem.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue +23 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuSub.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuSubButton.vue +43 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuSubItem.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarProvider.vue +89 -0
- package/src/runtime/components/ui/sidebar/SidebarRail.vue +35 -0
- package/src/runtime/components/ui/sidebar/SidebarSeparator.vue +15 -0
- package/src/runtime/components/ui/sidebar/SidebarTrigger.vue +19 -0
- package/src/runtime/components/ui/sidebar/index.ts +59 -0
- package/src/runtime/components/ui/sidebar/utils.ts +19 -0
- package/src/runtime/components/ui/skeleton/Skeleton.vue +14 -0
- package/src/runtime/components/ui/skeleton/index.ts +1 -0
- package/src/runtime/components/ui/slider/Slider.vue +34 -0
- package/src/runtime/components/ui/slider/index.ts +1 -0
- package/src/runtime/components/ui/spinner/Spinner.vue +13 -0
- package/src/runtime/components/ui/spinner/index.ts +1 -0
- package/src/runtime/components/ui/stepper/Stepper.vue +20 -0
- package/src/runtime/components/ui/stepper/StepperDescription.vue +19 -0
- package/src/runtime/components/ui/stepper/StepperIndicator.vue +34 -0
- package/src/runtime/components/ui/stepper/StepperItem.vue +19 -0
- package/src/runtime/components/ui/stepper/StepperSeparator.vue +29 -0
- package/src/runtime/components/ui/stepper/StepperTitle.vue +19 -0
- package/src/runtime/components/ui/stepper/StepperTrigger.vue +19 -0
- package/src/runtime/components/ui/stepper/index.ts +7 -0
- package/src/runtime/components/ui/switch/Switch.vue +36 -0
- package/src/runtime/components/ui/switch/index.ts +1 -0
- package/src/runtime/components/ui/table/Table.vue +16 -0
- package/src/runtime/components/ui/table/TableBody.vue +14 -0
- package/src/runtime/components/ui/table/TableCaption.vue +14 -0
- package/src/runtime/components/ui/table/TableCell.vue +14 -0
- package/src/runtime/components/ui/table/TableEmpty.vue +29 -0
- package/src/runtime/components/ui/table/TableFooter.vue +14 -0
- package/src/runtime/components/ui/table/TableHead.vue +14 -0
- package/src/runtime/components/ui/table/TableHeader.vue +14 -0
- package/src/runtime/components/ui/table/TableRow.vue +14 -0
- package/src/runtime/components/ui/table/index.ts +9 -0
- package/src/runtime/components/ui/table/utils.ts +8 -0
- package/src/runtime/components/ui/tabs/Tabs.vue +23 -0
- package/src/runtime/components/ui/tabs/TabsContent.vue +17 -0
- package/src/runtime/components/ui/tabs/TabsList.vue +17 -0
- package/src/runtime/components/ui/tabs/TabsTrigger.vue +28 -0
- package/src/runtime/components/ui/tabs/index.ts +4 -0
- package/src/runtime/components/ui/tags-input/TagsInput.vue +20 -0
- package/src/runtime/components/ui/tags-input/TagsInputInput.vue +17 -0
- package/src/runtime/components/ui/tags-input/TagsInputItem.vue +20 -0
- package/src/runtime/components/ui/tags-input/TagsInputItemDelete.vue +22 -0
- package/src/runtime/components/ui/tags-input/TagsInputItemText.vue +19 -0
- package/src/runtime/components/ui/tags-input/index.ts +5 -0
- package/src/runtime/components/ui/textarea/Textarea.vue +31 -0
- package/src/runtime/components/ui/textarea/index.ts +1 -0
- package/src/runtime/components/ui/tiptap/TiptapContent.vue +154 -0
- package/src/runtime/components/ui/tiptap/TiptapEditor.vue +37 -0
- package/src/runtime/components/ui/tiptap/TiptapIcon.vue +141 -0
- package/src/runtime/components/ui/tiptap/TiptapKeyboardShortcuts.vue +25 -0
- package/src/runtime/components/ui/tiptap/TiptapMobileToolbar.vue +148 -0
- package/src/runtime/components/ui/tiptap/TiptapProvider.vue +407 -0
- package/src/runtime/components/ui/tiptap/TiptapSlotPanel.vue +112 -0
- package/src/runtime/components/ui/tiptap/TiptapStatusBar.vue +83 -0
- package/src/runtime/components/ui/tiptap/TiptapTableToolbar.vue +176 -0
- package/src/runtime/components/ui/tiptap/TiptapToolbar.vue +223 -0
- package/src/runtime/components/ui/tiptap/TiptapTreeItem.vue +210 -0
- package/src/runtime/components/ui/tiptap/TiptapTreeStructure.vue +133 -0
- package/src/runtime/components/ui/tiptap/index.ts +49 -0
- package/src/runtime/components/ui/tiptap/tiptapTreeUtils.ts +137 -0
- package/src/runtime/components/ui/toggle/Toggle.vue +35 -0
- package/src/runtime/components/ui/toggle/index.ts +27 -0
- package/src/runtime/components/ui/toggle-group/ToggleGroup.vue +54 -0
- package/src/runtime/components/ui/toggle-group/ToggleGroupItem.vue +51 -0
- package/src/runtime/components/ui/toggle-group/index.ts +2 -0
- package/src/runtime/components/ui/tooltip/Tooltip.vue +15 -0
- package/src/runtime/components/ui/tooltip/TooltipContent.vue +39 -0
- package/src/runtime/components/ui/tooltip/TooltipProvider.vue +14 -0
- package/src/runtime/components/ui/tooltip/TooltipTrigger.vue +12 -0
- package/src/runtime/components/ui/tooltip/index.ts +4 -0
- package/src/runtime/composables/useDevices.ts +2 -11
- package/src/runtime/composables/useDropzone.ts +6 -30
- package/src/runtime/composables/useGantt.ts +12 -3
- package/src/runtime/composables/useKanban.ts +2 -0
- package/src/runtime/composables/useServerSideEvent.ts +3 -8
- package/src/runtime/plugins/ssr-width.ts +1 -0
- package/src/runtime/plugins/toast.client.ts +1 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="itemRef"
|
|
4
|
+
data-gantt-feature-item
|
|
5
|
+
:class="cn('group absolute z-20 flex cursor-move items-center gap-2 rounded-sm px-3 py-1.5', isDragging && 'cursor-grabbing opacity-50', isResizing && 'opacity-50', props.class)"
|
|
6
|
+
:style="{
|
|
7
|
+
left: `${leftPosition}px`,
|
|
8
|
+
width: `${width}px`,
|
|
9
|
+
top: '50%',
|
|
10
|
+
transform: 'translateY(-50%)',
|
|
11
|
+
backgroundColor: props.status?.color || '#3b82f6',
|
|
12
|
+
color: getContrastColor(props.status?.color || '#3b82f6'),
|
|
13
|
+
height: `${gantt.rowHeight.value - 12}px`,
|
|
14
|
+
}"
|
|
15
|
+
@mousedown="handleMouseDown"
|
|
16
|
+
>
|
|
17
|
+
<!-- Left resize handle -->
|
|
18
|
+
<div class="absolute top-0 left-0 h-full w-2 cursor-ew-resize rounded-l-md opacity-0 group-hover:opacity-100 hover:bg-white/30" @mousedown.stop="handleResizeStart('left', $event)" @mouseenter="showTooltip('start')" @mouseleave="hideTooltip" />
|
|
19
|
+
|
|
20
|
+
<!-- Right resize handle -->
|
|
21
|
+
<div class="absolute top-0 right-0 h-full w-2 cursor-ew-resize rounded-r-md opacity-0 group-hover:opacity-100 hover:bg-white/30" @mousedown.stop="handleResizeStart('right', $event)" @mouseenter="showTooltip('end')" @mouseleave="hideTooltip" />
|
|
22
|
+
|
|
23
|
+
<!-- Progress indicator bar -->
|
|
24
|
+
<div
|
|
25
|
+
v-if="props.progress !== undefined && props.progress > 0"
|
|
26
|
+
class="pointer-events-none absolute top-0 left-0 z-0 h-full rounded-sm"
|
|
27
|
+
:style="{
|
|
28
|
+
width: `${props.progress}%`,
|
|
29
|
+
backgroundColor: getProgressColor(props.status?.color || '#3b82f6'),
|
|
30
|
+
}"
|
|
31
|
+
/>
|
|
32
|
+
|
|
33
|
+
<!-- Slot content with higher z-index to appear above progress indicator -->
|
|
34
|
+
<div class="relative z-10">
|
|
35
|
+
<slot />
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<!-- Tooltip -->
|
|
39
|
+
<div v-if="tooltip.visible" ref="tooltipRef" class="pointer-events-none absolute z-50 rounded bg-gray-900 px-2 py-1 text-xs whitespace-nowrap text-white" :style="tooltipStyle">
|
|
40
|
+
{{ tooltip.text }}
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<!-- Drag tooltip showing both dates -->
|
|
44
|
+
<div v-if="isDragging && dragTooltip.visible" class="pointer-events-none absolute z-50 rounded bg-gray-900 px-3 py-2 text-xs whitespace-nowrap text-white" :style="dragTooltipStyle">
|
|
45
|
+
<div class="flex flex-col gap-1">
|
|
46
|
+
<div>Start: {{ formatDateTime(props.startAt, 'dd MMM yyyy') }}</div>
|
|
47
|
+
<div>End: {{ formatDateTime(props.endAt, 'dd MMM yyyy') }}</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
<script setup lang="ts">
|
|
54
|
+
import { cn } from '@/lib/utils';
|
|
55
|
+
|
|
56
|
+
const props = defineProps({ id: { type: String, required: true }, startAt: { type: Date, required: true }, endAt: { type: Date, required: true }, class: { type: String, required: false }, status: { type: Object, required: false }, progress: { type: Number, required: false } });
|
|
57
|
+
const emit = defineEmits<{
|
|
58
|
+
move: [id: string, startAt: Date, endAt: Date | null];
|
|
59
|
+
}>();
|
|
60
|
+
|
|
61
|
+
const gantt = useGantt();
|
|
62
|
+
const isDragging = ref(false);
|
|
63
|
+
const isResizing = ref(false);
|
|
64
|
+
const dragStartX = ref(0);
|
|
65
|
+
const dragStartLeft = ref(0);
|
|
66
|
+
const originalStartAt = ref<Date>(props.startAt);
|
|
67
|
+
const originalEndAt = ref<Date>(props.endAt);
|
|
68
|
+
const resizeType = ref<'left' | 'right' | null>(null);
|
|
69
|
+
const resizeStartX = ref(0);
|
|
70
|
+
const resizeStartWidth = ref(0);
|
|
71
|
+
|
|
72
|
+
// Tooltip state
|
|
73
|
+
const tooltip = ref({
|
|
74
|
+
visible: false,
|
|
75
|
+
text: '',
|
|
76
|
+
type: 'start' as 'start' | 'end',
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// Drag tooltip state
|
|
80
|
+
const dragTooltip = ref({
|
|
81
|
+
visible: false,
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
const timelineStartDate = computed(() => {
|
|
85
|
+
const firstYear = gantt.timelineData.value[0]?.year;
|
|
86
|
+
return new Date(firstYear || new Date().getFullYear(), 0, 1);
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
const leftPosition = computed(() => {
|
|
90
|
+
return getOffset(props.startAt, timelineStartDate.value, {
|
|
91
|
+
zoom: gantt.zoom.value,
|
|
92
|
+
range: gantt.range.value,
|
|
93
|
+
columnWidth: gantt.columnWidth.value,
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
const width = computed(() => {
|
|
98
|
+
if (!props.startAt || !props.endAt) return 0;
|
|
99
|
+
const days = differenceInDays(props.endAt, props.startAt);
|
|
100
|
+
const columnWidth = (gantt.columnWidth.value * gantt.zoom.value) / 100;
|
|
101
|
+
|
|
102
|
+
// For monthly view, approximate width based on days
|
|
103
|
+
if (gantt.range.value === 'monthly') {
|
|
104
|
+
return Math.max((days / 30) * columnWidth, columnWidth / 4);
|
|
105
|
+
} else if (gantt.range.value === 'weekly') {
|
|
106
|
+
return Math.max((days / 7) * columnWidth, columnWidth / 4);
|
|
107
|
+
} else {
|
|
108
|
+
return Math.max(days * columnWidth, columnWidth / 4);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
const tooltipStyle = computed(() => {
|
|
113
|
+
if (!tooltip.value.visible) return {};
|
|
114
|
+
|
|
115
|
+
const isLeft = tooltip.value.type === 'start';
|
|
116
|
+
return {
|
|
117
|
+
left: isLeft ? '0px' : '100%',
|
|
118
|
+
top: '-35px',
|
|
119
|
+
transform: isLeft ? 'translateX(0)' : 'translateX(-100%)',
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
const dragTooltipStyle = computed(() => {
|
|
124
|
+
return {
|
|
125
|
+
left: '50%',
|
|
126
|
+
top: '-60px',
|
|
127
|
+
transform: 'translateX(-50%)',
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
function getContrastColor(hexColor: string): string {
|
|
132
|
+
const hex = hexColor.replace('#', '');
|
|
133
|
+
const r = Number.parseInt(hex.substr(0, 2), 16);
|
|
134
|
+
const g = Number.parseInt(hex.substr(2, 2), 16);
|
|
135
|
+
const b = Number.parseInt(hex.substr(4, 2), 16);
|
|
136
|
+
const brightness = (r * 299 + g * 587 + b * 114) / 1000;
|
|
137
|
+
return brightness > 128 ? '#000000' : '#ffffff';
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function getProgressColor(hexColor: string): string {
|
|
141
|
+
// Create a darker shade for the progress indicator
|
|
142
|
+
const hex = hexColor.replace('#', '');
|
|
143
|
+
const r = Number.parseInt(hex.substr(0, 2), 16);
|
|
144
|
+
const g = Number.parseInt(hex.substr(2, 2), 16);
|
|
145
|
+
const b = Number.parseInt(hex.substr(4, 2), 16);
|
|
146
|
+
|
|
147
|
+
// Darken by 20%
|
|
148
|
+
const darken = (value: number) => Math.max(0, Math.floor(value * 0.8));
|
|
149
|
+
|
|
150
|
+
const darkenedR = darken(r);
|
|
151
|
+
const darkenedG = darken(g);
|
|
152
|
+
const darkenedB = darken(b);
|
|
153
|
+
|
|
154
|
+
return `rgb(${darkenedR}, ${darkenedG}, ${darkenedB})`;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function showTooltip(type: 'start' | 'end') {
|
|
158
|
+
const date = type === 'start' ? props.startAt : props.endAt;
|
|
159
|
+
const label = type === 'start' ? 'Start' : 'End';
|
|
160
|
+
tooltip.value = {
|
|
161
|
+
visible: true,
|
|
162
|
+
text: `${label}: ${formatDateTime(date, 'dd MMM yyyy')}`,
|
|
163
|
+
type,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function hideTooltip() {
|
|
168
|
+
tooltip.value.visible = false;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function updateTooltipDuringResize() {
|
|
172
|
+
if (!isResizing.value || !resizeType.value) return;
|
|
173
|
+
|
|
174
|
+
const date = resizeType.value === 'left' ? props.startAt : props.endAt;
|
|
175
|
+
const label = resizeType.value === 'left' ? 'Start' : 'End';
|
|
176
|
+
tooltip.value.text = `${label}: ${formatDateTime(date, 'dd MMM yyyy')}`;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function handleMouseDown(event: MouseEvent) {
|
|
180
|
+
event.preventDefault();
|
|
181
|
+
event.stopPropagation(); // Prevent timeline drag when clicking on bar
|
|
182
|
+
isDragging.value = true;
|
|
183
|
+
dragStartX.value = event.clientX;
|
|
184
|
+
dragStartLeft.value = leftPosition.value;
|
|
185
|
+
originalStartAt.value = props.startAt;
|
|
186
|
+
originalEndAt.value = props.endAt;
|
|
187
|
+
|
|
188
|
+
// Show drag tooltip
|
|
189
|
+
dragTooltip.value.visible = true;
|
|
190
|
+
|
|
191
|
+
document.addEventListener('mousemove', handleMouseMove);
|
|
192
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function handleMouseMove(event: MouseEvent) {
|
|
196
|
+
if (!isDragging.value) return;
|
|
197
|
+
|
|
198
|
+
const deltaX = event.clientX - dragStartX.value;
|
|
199
|
+
const newLeft = dragStartLeft.value + deltaX;
|
|
200
|
+
|
|
201
|
+
// Calculate new dates based on position
|
|
202
|
+
const columnWidth = (gantt.columnWidth.value * gantt.zoom.value) / 100;
|
|
203
|
+
let daysOffset = 0;
|
|
204
|
+
|
|
205
|
+
if (gantt.range.value === 'monthly') {
|
|
206
|
+
daysOffset = Math.round(((newLeft - dragStartLeft.value) / columnWidth) * 30);
|
|
207
|
+
} else if (gantt.range.value === 'weekly') {
|
|
208
|
+
daysOffset = Math.round(((newLeft - dragStartLeft.value) / columnWidth) * 7);
|
|
209
|
+
} else {
|
|
210
|
+
daysOffset = Math.round((newLeft - dragStartLeft.value) / columnWidth);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const duration = differenceInDays(originalEndAt.value, originalStartAt.value);
|
|
214
|
+
const newStartAt = addDays(originalStartAt.value, daysOffset);
|
|
215
|
+
const newEndAt = addDays(newStartAt, duration);
|
|
216
|
+
|
|
217
|
+
// Emit temporary move event for visual feedback
|
|
218
|
+
emit('move', props.id, newStartAt, newEndAt);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
function handleMouseUp() {
|
|
222
|
+
isDragging.value = false;
|
|
223
|
+
dragTooltip.value.visible = false;
|
|
224
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
225
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
function handleResizeStart(type: 'left' | 'right', event: MouseEvent) {
|
|
229
|
+
event.preventDefault();
|
|
230
|
+
event.stopPropagation();
|
|
231
|
+
|
|
232
|
+
isResizing.value = true;
|
|
233
|
+
resizeType.value = type;
|
|
234
|
+
resizeStartX.value = event.clientX;
|
|
235
|
+
resizeStartWidth.value = width.value;
|
|
236
|
+
|
|
237
|
+
// Store the original dates at the start of resize
|
|
238
|
+
originalStartAt.value = props.startAt;
|
|
239
|
+
originalEndAt.value = props.endAt;
|
|
240
|
+
|
|
241
|
+
// Show tooltip for the resize operation
|
|
242
|
+
showTooltip(type === 'left' ? 'start' : 'end');
|
|
243
|
+
|
|
244
|
+
document.addEventListener('mousemove', handleResizeMove);
|
|
245
|
+
document.addEventListener('mouseup', handleResizeEnd);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
function handleResizeMove(event: MouseEvent) {
|
|
249
|
+
if (!isResizing.value || !resizeType.value) return;
|
|
250
|
+
|
|
251
|
+
const deltaX = event.clientX - resizeStartX.value;
|
|
252
|
+
const columnWidth = (gantt.columnWidth.value * gantt.zoom.value) / 100;
|
|
253
|
+
|
|
254
|
+
let daysOffset = 0;
|
|
255
|
+
if (gantt.range.value === 'monthly') {
|
|
256
|
+
daysOffset = Math.round((deltaX / columnWidth) * 30);
|
|
257
|
+
} else if (gantt.range.value === 'weekly') {
|
|
258
|
+
daysOffset = Math.round((deltaX / columnWidth) * 7);
|
|
259
|
+
} else {
|
|
260
|
+
daysOffset = Math.round(deltaX / columnWidth);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
let newStartAt = new Date(originalStartAt.value);
|
|
264
|
+
let newEndAt = new Date(originalEndAt.value);
|
|
265
|
+
|
|
266
|
+
if (resizeType.value === 'left') {
|
|
267
|
+
// Resize from left edge - adjust start date
|
|
268
|
+
newStartAt = addDays(originalStartAt.value, daysOffset);
|
|
269
|
+
// Ensure start date doesn't go beyond end date
|
|
270
|
+
if (newStartAt >= originalEndAt.value) {
|
|
271
|
+
newStartAt = new Date(originalEndAt.value.getTime() - 24 * 60 * 60 * 1000); // 1 day before end
|
|
272
|
+
}
|
|
273
|
+
} else if (resizeType.value === 'right') {
|
|
274
|
+
// Resize from right edge - adjust end date
|
|
275
|
+
newEndAt = addDays(originalEndAt.value, daysOffset);
|
|
276
|
+
// Ensure end date doesn't go before start date
|
|
277
|
+
if (newEndAt <= originalStartAt.value) {
|
|
278
|
+
newEndAt = new Date(originalStartAt.value.getTime() + 24 * 60 * 60 * 1000); // 1 day after start
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// Emit resize event for visual feedback
|
|
283
|
+
emit('move', props.id, newStartAt, newEndAt);
|
|
284
|
+
|
|
285
|
+
// Update tooltip with new date
|
|
286
|
+
updateTooltipDuringResize();
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
function handleResizeEnd() {
|
|
290
|
+
isResizing.value = false;
|
|
291
|
+
resizeType.value = null;
|
|
292
|
+
hideTooltip();
|
|
293
|
+
document.removeEventListener('mousemove', handleResizeMove);
|
|
294
|
+
document.removeEventListener('mouseup', handleResizeEnd);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
onUnmounted(() => {
|
|
298
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
299
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
300
|
+
document.removeEventListener('mousemove', handleResizeMove);
|
|
301
|
+
document.removeEventListener('mouseup', handleResizeEnd);
|
|
302
|
+
});
|
|
303
|
+
</script>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="cn('flex w-full flex-col', props.class)">
|
|
3
|
+
<slot />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup lang="ts">
|
|
8
|
+
import { cn } from '@/lib/utils';
|
|
9
|
+
|
|
10
|
+
export interface GanttFeatureListProps {
|
|
11
|
+
class?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const props = defineProps<GanttFeatureListProps>();
|
|
15
|
+
const gantt = useGantt();
|
|
16
|
+
</script>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="cn('border-border border-b', props.class)">
|
|
3
|
+
<!-- Group Header Row -->
|
|
4
|
+
<div class="border-border bg-muted/50 flex items-center border-b" :style="{ height: `${gantt.rowHeight.value}px` }" />
|
|
5
|
+
|
|
6
|
+
<!-- Group Items -->
|
|
7
|
+
<slot />
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script setup lang="ts">
|
|
12
|
+
import { cn } from '@/lib/utils';
|
|
13
|
+
|
|
14
|
+
export interface GanttFeatureListGroupProps {
|
|
15
|
+
class?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const props = defineProps<GanttFeatureListGroupProps>();
|
|
19
|
+
const gantt = useGantt();
|
|
20
|
+
</script>
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="cn('timeline-header sticky top-0 z-30 flex flex-col border-b border-slate-200', props.class)" :style="{ height: `${gantt.headerHeight.value}px` }">
|
|
3
|
+
<!-- Year Row -->
|
|
4
|
+
<div class="relative flex h-1/2 items-center border-b border-slate-200">
|
|
5
|
+
<template v-for="(yearData, yearIndex) in gantt.timelineData.value" :key="`year-${yearData.year}`">
|
|
6
|
+
<template v-if="shouldShowYear(yearData.year, yearIndex)">
|
|
7
|
+
<div class="border-border relative flex items-center border-r" :style="{ width: getYearWidth(), minWidth: getYearWidth() }">
|
|
8
|
+
<!-- Month labels at the 1st of each month -->
|
|
9
|
+
<template v-for="(quarter, qIndex) in yearData.quarters" :key="`quarter-${yearData.year}-${qIndex}`">
|
|
10
|
+
<template v-for="(month, mIndex) in quarter.months" :key="`month-${yearData.year}-${qIndex}-${mIndex}`">
|
|
11
|
+
<template v-if="gantt.range.value === 'daily'">
|
|
12
|
+
<!-- Show month label at the 1st day of each month -->
|
|
13
|
+
<div
|
|
14
|
+
class="text-foreground absolute px-2 text-xs font-medium"
|
|
15
|
+
:style="{
|
|
16
|
+
left: `${getMonthStartOffset(yearData.year, qIndex * 3 + mIndex)}px`,
|
|
17
|
+
zIndex: 20,
|
|
18
|
+
}"
|
|
19
|
+
>
|
|
20
|
+
{{ getMonthName(qIndex * 3 + mIndex) }}
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
<template v-else-if="gantt.range.value === 'weekly'">
|
|
24
|
+
<!-- Show month label at the 1st week of each month -->
|
|
25
|
+
<div
|
|
26
|
+
class="text-foreground absolute px-2 text-xs font-medium"
|
|
27
|
+
:style="{
|
|
28
|
+
left: `${getMonthStartOffsetWeekly(yearData.year, qIndex * 3 + mIndex)}px`,
|
|
29
|
+
zIndex: 20,
|
|
30
|
+
}"
|
|
31
|
+
>
|
|
32
|
+
{{ getMonthName(qIndex * 3 + mIndex) }}
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
35
|
+
</template>
|
|
36
|
+
</template>
|
|
37
|
+
<!-- Year label at the end (sticky) - inside year container -->
|
|
38
|
+
<div
|
|
39
|
+
class="text-foreground sticky right-0 z-10 ml-auto px-2 text-sm font-medium"
|
|
40
|
+
:style="{
|
|
41
|
+
backgroundColor: 'hsl(var(--card) / 0.8)',
|
|
42
|
+
backdropFilter: 'blur(12px)',
|
|
43
|
+
WebkitBackdropFilter: 'blur(12px)',
|
|
44
|
+
}"
|
|
45
|
+
>
|
|
46
|
+
{{ yearData.year }}
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
</template>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<!-- Period Row (Months/Weeks/Days) -->
|
|
54
|
+
<div class="flex h-1/2 items-center">
|
|
55
|
+
<template v-for="yearData in gantt.timelineData.value" :key="`periods-${yearData.year}`">
|
|
56
|
+
<template v-for="(quarter, qIndex) in yearData.quarters" :key="`quarter-${yearData.year}-${qIndex}`">
|
|
57
|
+
<template v-for="(month, mIndex) in quarter.months" :key="`month-${yearData.year}-${qIndex}-${mIndex}`">
|
|
58
|
+
<template v-if="gantt.range.value === 'monthly'">
|
|
59
|
+
<div class="border-border text-muted-foreground flex items-center justify-center border-r px-2 text-xs" :style="{ width: `var(--gantt-column-width)` }">
|
|
60
|
+
{{ getMonthName(qIndex * 3 + mIndex) }}
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
<template v-else-if="gantt.range.value === 'weekly'">
|
|
64
|
+
<div
|
|
65
|
+
v-for="week in getWeeksForMonth(yearData.year, qIndex * 3 + mIndex, month.days)"
|
|
66
|
+
:key="`week-${yearData.year}-${qIndex}-${mIndex}-${week}`"
|
|
67
|
+
class="border-border text-muted-foreground flex items-center justify-center border-r px-2 text-xs"
|
|
68
|
+
:style="{ width: `var(--gantt-column-width)` }"
|
|
69
|
+
>
|
|
70
|
+
W{{ week }}
|
|
71
|
+
</div>
|
|
72
|
+
</template>
|
|
73
|
+
<template v-else>
|
|
74
|
+
<div v-for="day in month.days" :key="`day-${yearData.year}-${qIndex}-${mIndex}-${day}`" class="border-border text-muted-foreground flex items-center justify-center border-r px-2 text-xs" :style="{ width: `var(--gantt-column-width)` }">
|
|
75
|
+
{{ day }}
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
78
|
+
</template>
|
|
79
|
+
</template>
|
|
80
|
+
</template>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</template>
|
|
84
|
+
|
|
85
|
+
<script setup lang="ts">
|
|
86
|
+
import { cn } from '@/lib/utils';
|
|
87
|
+
|
|
88
|
+
export interface GanttHeaderProps {
|
|
89
|
+
class?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const props = defineProps<GanttHeaderProps>();
|
|
93
|
+
const gantt = useGantt();
|
|
94
|
+
|
|
95
|
+
const monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
96
|
+
|
|
97
|
+
function getMonthName(monthIndex: number) {
|
|
98
|
+
return monthNames[monthIndex];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function getWeeksForMonth(year: number, monthIndex: number, daysInMonth: number) {
|
|
102
|
+
const startDayOfYear = getDayOfYear(year, monthIndex);
|
|
103
|
+
const endDayOfYear = startDayOfYear + daysInMonth - 1;
|
|
104
|
+
|
|
105
|
+
const startWeek = Math.ceil(startDayOfYear / 7);
|
|
106
|
+
const endWeek = Math.ceil(endDayOfYear / 7);
|
|
107
|
+
|
|
108
|
+
const weeks: number[] = [];
|
|
109
|
+
for (let i = startWeek; i <= endWeek; i++) {
|
|
110
|
+
weeks.push(i);
|
|
111
|
+
}
|
|
112
|
+
return weeks;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function getYearWidth() {
|
|
116
|
+
const range = gantt.range.value;
|
|
117
|
+
let periods = 12; // months by default
|
|
118
|
+
|
|
119
|
+
if (range === 'daily') {
|
|
120
|
+
periods = 365;
|
|
121
|
+
} else if (range === 'weekly') {
|
|
122
|
+
periods = 52;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return `calc(var(--gantt-column-width) * ${periods})`;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function shouldShowYear(year: number, index: number) {
|
|
129
|
+
// Always show the first year and any year change
|
|
130
|
+
if (index === 0) return true;
|
|
131
|
+
const prevYear = gantt.timelineData.value[index - 1]?.year;
|
|
132
|
+
return year !== prevYear;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function getDayOfYear(year: number, monthIndex: number): number {
|
|
136
|
+
// Calculate the day of year for the 1st of the given month
|
|
137
|
+
const date = new Date(year, monthIndex, 1);
|
|
138
|
+
const startOfYear = new Date(year, 0, 1);
|
|
139
|
+
const diffTime = date.getTime() - startOfYear.getTime();
|
|
140
|
+
const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));
|
|
141
|
+
return diffDays + 1;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function getMonthStartOffset(year: number, monthIndex: number): number {
|
|
145
|
+
// Calculate the pixel offset for the 1st day of the month
|
|
146
|
+
const dayOfYear = getDayOfYear(year, monthIndex);
|
|
147
|
+
const columnWidth = (gantt.columnWidth.value * gantt.zoom.value) / 100;
|
|
148
|
+
return (dayOfYear - 1) * columnWidth;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function getMonthStartWeek(year: number, monthIndex: number): number {
|
|
152
|
+
// Calculate which week of the year the 1st of the month falls on
|
|
153
|
+
const date = new Date(year, monthIndex, 1);
|
|
154
|
+
const startOfYear = new Date(year, 0, 1);
|
|
155
|
+
const diffTime = date.getTime() - startOfYear.getTime();
|
|
156
|
+
const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));
|
|
157
|
+
return Math.ceil((diffDays + startOfYear.getDay() + 1) / 7);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function getMonthStartOffsetWeekly(year: number, monthIndex: number): number {
|
|
161
|
+
// Calculate the pixel offset for the 1st week of the month
|
|
162
|
+
const weekOfYear = getMonthStartWeek(year, monthIndex);
|
|
163
|
+
const columnWidth = (gantt.columnWidth.value * gantt.zoom.value) / 100;
|
|
164
|
+
return (weekOfYear - 1) * columnWidth;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function getYearEndPosition(yearIndex: number): number {
|
|
168
|
+
// Calculate the position at the end of the year (right edge)
|
|
169
|
+
let offset = 0;
|
|
170
|
+
const range = gantt.range.value;
|
|
171
|
+
let periodsPerYear = 12; // months by default
|
|
172
|
+
if (range === 'daily') {
|
|
173
|
+
periodsPerYear = 365;
|
|
174
|
+
} else if (range === 'weekly') {
|
|
175
|
+
periodsPerYear = 52;
|
|
176
|
+
}
|
|
177
|
+
const columnWidth = (gantt.columnWidth.value * gantt.zoom.value) / 100;
|
|
178
|
+
|
|
179
|
+
// Calculate cumulative width of all years up to and including this one
|
|
180
|
+
for (let i = 0; i <= yearIndex; i++) {
|
|
181
|
+
const yearData = gantt.timelineData.value[i];
|
|
182
|
+
if (yearData && shouldShowYear(yearData.year, i)) {
|
|
183
|
+
offset += periodsPerYear * columnWidth;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return offset;
|
|
187
|
+
}
|
|
188
|
+
</script>
|
|
189
|
+
|
|
190
|
+
<style scoped>
|
|
191
|
+
.timeline-header {
|
|
192
|
+
background: hsl(var(--card) / 0.8);
|
|
193
|
+
backdrop-filter: blur(12px);
|
|
194
|
+
-webkit-backdrop-filter: blur(12px);
|
|
195
|
+
border-bottom-color: rgb(226 232 240); /* slate-200 - lighter border */
|
|
196
|
+
}
|
|
197
|
+
</style>
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="pointer-events-none absolute inset-y-0 left-0 z-40 flex h-full flex-col items-center justify-center overflow-visible select-none"
|
|
4
|
+
:style="{
|
|
5
|
+
width: 0,
|
|
6
|
+
transform: `translateX(calc(var(--gantt-column-width) * ${offset} + ${innerOffset}px))`,
|
|
7
|
+
}"
|
|
8
|
+
>
|
|
9
|
+
<div :class="cn('group pointer-events-auto sticky top-0 flex cursor-move flex-col flex-nowrap items-center justify-center rounded-b-md px-2 py-1 text-xs whitespace-nowrap select-auto', isDragging && 'cursor-grabbing opacity-50', props.className)" @mousedown="handleMouseDown">
|
|
10
|
+
{{ label }}
|
|
11
|
+
<span class="max-h-0 overflow-hidden opacity-80 group-hover:max-h-8">
|
|
12
|
+
{{ formattedDate }}
|
|
13
|
+
</span>
|
|
14
|
+
<button v-if="onRemove" type="button" class="mt-1 max-h-0 overflow-hidden text-xs opacity-0 group-hover:max-h-8 group-hover:opacity-100 hover:underline" @click.stop="() => onRemove?.(id)">Remove</button>
|
|
15
|
+
</div>
|
|
16
|
+
<div :class="cn('h-full w-px', props.className)" />
|
|
17
|
+
|
|
18
|
+
<!-- Drag tooltip -->
|
|
19
|
+
<div v-if="isDragging && tooltip.visible" class="pointer-events-none absolute z-50 rounded bg-gray-900 px-2 py-1 text-xs whitespace-nowrap text-white" :style="tooltipStyle">
|
|
20
|
+
{{ tooltip.text }}
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script setup lang="ts">
|
|
26
|
+
import { cn } from '@/lib/utils';
|
|
27
|
+
|
|
28
|
+
export interface GanttMarkerProps {
|
|
29
|
+
id: string;
|
|
30
|
+
date: Date;
|
|
31
|
+
label: string;
|
|
32
|
+
className?: string;
|
|
33
|
+
onRemove?: (id: string) => void;
|
|
34
|
+
onMove?: (id: string, newDate: Date) => void;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const props = defineProps<GanttMarkerProps>();
|
|
38
|
+
const emit = defineEmits<{
|
|
39
|
+
move: [id: string, newDate: Date];
|
|
40
|
+
}>();
|
|
41
|
+
|
|
42
|
+
const gantt = useGantt();
|
|
43
|
+
|
|
44
|
+
// Drag state
|
|
45
|
+
const isDragging = ref(false);
|
|
46
|
+
const dragStartX = ref(0);
|
|
47
|
+
const originalDate = ref<Date>(props.date);
|
|
48
|
+
|
|
49
|
+
// Tooltip state
|
|
50
|
+
const tooltip = ref({
|
|
51
|
+
visible: false,
|
|
52
|
+
text: '',
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const timelineStartDate = computed(() => {
|
|
56
|
+
const firstYear = gantt.timelineData.value[0]?.year;
|
|
57
|
+
return new Date(firstYear || new Date().getFullYear(), 0, 1);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
const differenceIn = computed(() => getDifferenceIn(gantt.range.value));
|
|
61
|
+
|
|
62
|
+
const offset = computed(() => {
|
|
63
|
+
return differenceIn.value(props.date, timelineStartDate.value);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const innerOffset = computed(() => {
|
|
67
|
+
return calculateInnerOffset(props.date, gantt.range.value, (gantt.columnWidth.value * gantt.zoom.value) / 100);
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const formattedDate = computed(() => {
|
|
71
|
+
return formatDateTime(props.date, 'dd MMM yyyy');
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const tooltipStyle = computed(() => {
|
|
75
|
+
return {
|
|
76
|
+
top: '-35px',
|
|
77
|
+
left: '50%',
|
|
78
|
+
transform: 'translateX(-50%)',
|
|
79
|
+
};
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
function handleMouseDown(event: MouseEvent) {
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
isDragging.value = true;
|
|
85
|
+
dragStartX.value = event.clientX;
|
|
86
|
+
originalDate.value = props.date;
|
|
87
|
+
|
|
88
|
+
// Show tooltip
|
|
89
|
+
tooltip.value.visible = true;
|
|
90
|
+
tooltip.value.text = formatDateTime(props.date, 'dd MMM yyyy');
|
|
91
|
+
|
|
92
|
+
document.addEventListener('mousemove', handleMouseMove);
|
|
93
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function handleMouseMove(event: MouseEvent) {
|
|
97
|
+
if (!isDragging.value) return;
|
|
98
|
+
|
|
99
|
+
const deltaX = event.clientX - dragStartX.value;
|
|
100
|
+
const columnWidth = (gantt.columnWidth.value * gantt.zoom.value) / 100;
|
|
101
|
+
|
|
102
|
+
// Calculate new date based on movement - always move by days like bars
|
|
103
|
+
let daysOffset = 0;
|
|
104
|
+
|
|
105
|
+
if (gantt.range.value === 'monthly') {
|
|
106
|
+
daysOffset = Math.round((deltaX / columnWidth) * 30);
|
|
107
|
+
} else if (gantt.range.value === 'weekly') {
|
|
108
|
+
daysOffset = Math.round((deltaX / columnWidth) * 7);
|
|
109
|
+
} else {
|
|
110
|
+
daysOffset = Math.round(deltaX / columnWidth);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const newDate = addDays(originalDate.value, daysOffset);
|
|
114
|
+
|
|
115
|
+
// Update tooltip
|
|
116
|
+
tooltip.value.text = formatDateTime(newDate, 'dd MMM yyyy');
|
|
117
|
+
|
|
118
|
+
// Emit move event
|
|
119
|
+
emit('move', props.id, newDate);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function handleMouseUp() {
|
|
123
|
+
isDragging.value = false;
|
|
124
|
+
tooltip.value.visible = false;
|
|
125
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
126
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
onUnmounted(() => {
|
|
130
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
131
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
132
|
+
});
|
|
133
|
+
</script>
|