@dynect/base 0.1.0 → 0.2.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
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description SVG Icon constants for org chart buttons
|
|
3
|
+
* @author Amirul Apex
|
|
4
|
+
* @created Jan 2026
|
|
5
|
+
* @project Dynect
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const SVG_ICONS = {
|
|
9
|
+
/**
|
|
10
|
+
* Chevron pointing left (collapse indicator for left layout)
|
|
11
|
+
*/
|
|
12
|
+
chevronLeft: `<path d="M14.283 3.50094L6.51 11.4749C6.37348 11.615 6.29707 11.8029 6.29707 11.9984C6.29707 12.194 6.37348 12.3819 6.51 12.5219L14.283 20.4989C14.3466 20.5643 14.4226 20.6162 14.5066 20.6516C14.5906 20.6871 14.6808 20.7053 14.772 20.7053C14.8632 20.7053 14.9534 20.6871 15.0374 20.6516C15.1214 20.6162 15.1974 20.5643 15.261 20.4989C15.3918 20.365 15.4651 20.1852 15.4651 19.9979C15.4651 19.8107 15.3918 19.6309 15.261 19.4969L7.9515 11.9984L15.261 4.50144C15.3914 4.36756 15.4643 4.18807 15.4643 4.00119C15.4643 3.81431 15.3914 3.63482 15.261 3.50094C15.1974 3.43563 15.1214 3.38371 15.0374 3.34827C14.9534 3.31282 14.8632 3.29456 14.772 3.29456C14.6808 3.29456 14.5906 3.31282 14.5066 3.34827C14.4226 3.38371 14.3466 3.43563 14.283 3.50094V3.50094Z" fill="#716E7B" stroke="#716E7B"/>`,
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Chevron pointing right (expand indicator for left layout, collapse for right layout)
|
|
16
|
+
*/
|
|
17
|
+
chevronRight: `<path d="M7.989 3.49944C7.85817 3.63339 7.78492 3.8132 7.78492 4.00044C7.78492 4.18768 7.85817 4.36749 7.989 4.50144L15.2985 11.9999L7.989 19.4969C7.85817 19.6309 7.78492 19.8107 7.78492 19.9979C7.78492 20.1852 7.85817 20.365 7.989 20.4989C8.05259 20.5643 8.12863 20.6162 8.21261 20.6516C8.2966 20.6871 8.38684 20.7053 8.478 20.7053C8.56916 20.7053 8.6594 20.6871 8.74338 20.6516C8.82737 20.6162 8.90341 20.5643 8.967 20.4989L16.74 12.5234C16.8765 12.3834 16.9529 12.1955 16.9529 11.9999C16.9529 11.8044 16.8765 11.6165 16.74 11.4764L8.967 3.50094C8.90341 3.43563 8.82737 3.38371 8.74338 3.34827C8.6594 3.31282 8.56916 3.29456 8.478 3.29456C8.38684 3.29456 8.2966 3.31282 8.21261 3.34827C8.12863 3.38371 8.05259 3.43563 7.989 3.50094V3.49944Z" fill="#716E7B" stroke="#716E7B"/>`,
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Chevron pointing down (collapse indicator for top/bottom layouts)
|
|
21
|
+
*/
|
|
22
|
+
chevronDown: `<path d="M19.497 7.98903L12 15.297L4.503 7.98903C4.36905 7.85819 4.18924 7.78495 4.002 7.78495C3.81476 7.78495 3.63495 7.85819 3.501 7.98903C3.43614 8.05257 3.38462 8.12842 3.34944 8.21213C3.31427 8.29584 3.29615 8.38573 3.29615 8.47653C3.29615 8.56733 3.31427 8.65721 3.34944 8.74092C3.38462 8.82463 3.43614 8.90048 3.501 8.96403L11.4765 16.74C11.6166 16.8765 11.8044 16.953 12 16.953C12.1956 16.953 12.3834 16.8765 12.5235 16.74L20.499 8.96553C20.5643 8.90193 20.6162 8.8259 20.6517 8.74191C20.6871 8.65792 20.7054 8.56769 20.7054 8.47653C20.7054 8.38537 20.6871 8.29513 20.6517 8.21114C20.6162 8.12715 20.5643 8.05112 20.499 7.98753C20.3651 7.85669 20.1852 7.78345 19.998 7.78345C19.8108 7.78345 19.6309 7.85669 19.497 7.98753V7.98903Z" fill="#716E7B" stroke="#716E7B"/>`,
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Chevron pointing up (expand indicator for top/bottom layouts)
|
|
26
|
+
*/
|
|
27
|
+
chevronUp: `<path d="M11.457 8.07005L3.49199 16.4296C3.35903 16.569 3.28485 16.7543 3.28485 16.9471C3.28485 17.1398 3.35903 17.3251 3.49199 17.4646L3.50099 17.4736C3.56545 17.5414 3.64304 17.5954 3.72904 17.6324C3.81504 17.6693 3.90765 17.6883 4.00124 17.6883C4.09483 17.6883 4.18745 17.6693 4.27344 17.6324C4.35944 17.5954 4.43703 17.5414 4.50149 17.4736L12.0015 9.60155L19.4985 17.4736C19.563 17.5414 19.6405 17.5954 19.7265 17.6324C19.8125 17.6693 19.9052 17.6883 19.9987 17.6883C20.0923 17.6883 20.1849 17.6693 20.2709 17.6324C20.3569 17.5954 20.4345 17.5414 20.499 17.4736L20.508 17.4646C20.641 17.3251 20.7151 17.1398 20.7151 16.9471C20.7151 16.7543 20.641 16.569 20.508 16.4296L12.543 8.07005C12.4729 7.99653 12.3887 7.93801 12.2954 7.89801C12.202 7.85802 12.1015 7.8374 12 7.8374C11.8984 7.8374 11.798 7.85802 11.7046 7.89801C11.6113 7.93801 11.527 7.99653 11.457 8.07005Z" fill="#716E7B" stroke="#716E7B"/>`,
|
|
28
|
+
} as const;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Creates an SVG icon element with count display
|
|
32
|
+
* @param iconPath - SVG path data from SVG_ICONS
|
|
33
|
+
* @param count - Number to display next to the icon
|
|
34
|
+
* @param marginLeft - Optional left margin for the count (default: 0)
|
|
35
|
+
* @returns HTML string for the icon with count
|
|
36
|
+
*/
|
|
37
|
+
export function createIconSVG(iconPath: string, count: number, marginLeft: string = '0'): string {
|
|
38
|
+
return `<div style="display:flex;"><span style="align-items:center;display:flex;"><svg width="8" height="8" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
39
|
+
${iconPath}
|
|
40
|
+
</svg></span><span style="margin-left:${marginLeft};color:#716E7B">${count}</span></div>`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Gets the appropriate icon for a given layout and state
|
|
45
|
+
* @param layout - The layout type (left, right, top, bottom)
|
|
46
|
+
* @param hasChildren - Whether the node has children (collapsed state)
|
|
47
|
+
* @returns SVG path string
|
|
48
|
+
*/
|
|
49
|
+
export function getLayoutIcon(layout: 'left' | 'right' | 'top' | 'bottom', hasChildren: boolean): string {
|
|
50
|
+
const iconMap = {
|
|
51
|
+
left: hasChildren ? SVG_ICONS.chevronLeft : SVG_ICONS.chevronRight,
|
|
52
|
+
right: hasChildren ? SVG_ICONS.chevronRight : SVG_ICONS.chevronLeft,
|
|
53
|
+
top: hasChildren ? SVG_ICONS.chevronUp : SVG_ICONS.chevronDown,
|
|
54
|
+
bottom: hasChildren ? SVG_ICONS.chevronDown : SVG_ICONS.chevronUp,
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
return iconMap[layout];
|
|
58
|
+
}
|
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import type { FlextreeLayout } from 'd3-flextree';
|
|
2
|
+
import type { HierarchyNode, Selection, ZoomBehavior, D3ZoomEvent } from 'd3';
|
|
3
|
+
|
|
4
|
+
// ============================================================================
|
|
5
|
+
// Core Data Structures
|
|
6
|
+
// ============================================================================
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Base data interface for organization chart nodes
|
|
10
|
+
* Supports flexible id/parentId property naming and custom properties
|
|
11
|
+
*/
|
|
12
|
+
export interface OrgChartNodeData {
|
|
13
|
+
// ID properties (flexible naming)
|
|
14
|
+
nodeId?: string | number;
|
|
15
|
+
id?: string | number;
|
|
16
|
+
parentNodeId?: string | number;
|
|
17
|
+
parentId?: string | number;
|
|
18
|
+
|
|
19
|
+
// Runtime state flags
|
|
20
|
+
_expanded?: boolean;
|
|
21
|
+
_centered?: boolean;
|
|
22
|
+
_highlighted?: boolean;
|
|
23
|
+
_upToTheRootHighlighted?: boolean;
|
|
24
|
+
_pagingButton?: boolean;
|
|
25
|
+
_pagingStep?: number;
|
|
26
|
+
_directSubordinates?: number;
|
|
27
|
+
_totalSubordinates?: number;
|
|
28
|
+
_directSubordinatesPaging?: number;
|
|
29
|
+
_filteredOut?: boolean;
|
|
30
|
+
_centeredWithDescendants?: boolean;
|
|
31
|
+
_children?: any[];
|
|
32
|
+
|
|
33
|
+
// Depth property
|
|
34
|
+
depth?: number;
|
|
35
|
+
|
|
36
|
+
// Allow any custom properties
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Extended hierarchy node with layout-specific properties
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* Extended hierarchy node with layout-specific properties
|
|
45
|
+
*/
|
|
46
|
+
export interface OrgChartNode<Datum = any> extends HierarchyNode<Datum & OrgChartNodeData> {
|
|
47
|
+
// Position coordinates
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
x0?: number;
|
|
51
|
+
y0?: number;
|
|
52
|
+
|
|
53
|
+
// Dimensions
|
|
54
|
+
width: number;
|
|
55
|
+
height: number;
|
|
56
|
+
|
|
57
|
+
// Compact layout properties
|
|
58
|
+
flexCompactDim?: [number, number];
|
|
59
|
+
firstCompact?: boolean;
|
|
60
|
+
firstCompactNode?: this;
|
|
61
|
+
compactEven?: boolean;
|
|
62
|
+
row?: number;
|
|
63
|
+
|
|
64
|
+
// Collapsed children
|
|
65
|
+
_children?: this[];
|
|
66
|
+
|
|
67
|
+
// Paging button visibility
|
|
68
|
+
_pagingButton?: boolean;
|
|
69
|
+
|
|
70
|
+
// Override parent/children types to be OrgChartNode
|
|
71
|
+
// Using 'this' type to maintain type compatibility with HierarchyNode
|
|
72
|
+
parent: this | null;
|
|
73
|
+
children?: this[];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Connection between two nodes (for custom relationships)
|
|
78
|
+
*/
|
|
79
|
+
export interface Connection<Datum = any> {
|
|
80
|
+
from: string | number;
|
|
81
|
+
to: string | number;
|
|
82
|
+
label?: string;
|
|
83
|
+
_source?: OrgChartNode<Datum>;
|
|
84
|
+
_target?: OrgChartNode<Datum>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// ============================================================================
|
|
88
|
+
// Callback & Accessor Types
|
|
89
|
+
// ============================================================================
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Generic accessor function for extracting values from nodes
|
|
93
|
+
*/
|
|
94
|
+
/**
|
|
95
|
+
* Generic accessor function for extracting values from nodes
|
|
96
|
+
*/
|
|
97
|
+
export type NodeAccessor<Result, Datum = any> = (node: OrgChartNode<Datum>) => Result;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Accessor that can work with raw data
|
|
101
|
+
*/
|
|
102
|
+
export type DataAccessor<Result, Datum = any> = (data: Datum) => Result;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Zoom event callbacks
|
|
106
|
+
*/
|
|
107
|
+
export type ZoomCallback<Datum = any> = (event: D3ZoomEvent<SVGSVGElement, Datum>) => void;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Node interaction callbacks
|
|
111
|
+
*/
|
|
112
|
+
export type NodeClickCallback<Datum = any> = (node: OrgChartNode<Datum>) => void;
|
|
113
|
+
export type NodeExpandCollapseCallback<Datum = any> = (node: OrgChartNode<Datum>) => void;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Node content generators (return HTML strings)
|
|
117
|
+
*/
|
|
118
|
+
export type NodeContentCallback<Datum = any> = (node: OrgChartNode<Datum>) => string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Button content callback with state context
|
|
122
|
+
*/
|
|
123
|
+
export interface ButtonContentArgs<Datum = any> {
|
|
124
|
+
node: OrgChartNode<Datum>;
|
|
125
|
+
state: OrgChartAttrs<Datum>;
|
|
126
|
+
}
|
|
127
|
+
export type ButtonContentCallback<Datum = any> = (args: ButtonContentArgs<Datum>) => string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Paging button callback
|
|
131
|
+
*/
|
|
132
|
+
export type PagingButtonCallback<Datum = any> = (node: OrgChartNode<Datum>, index: number, array: OrgChartNode<Datum>[], state: OrgChartAttrs<Datum>) => string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Node update callbacks for DOM manipulation
|
|
136
|
+
*/
|
|
137
|
+
export type NodeUpdateCallback<Datum = any> = (this: SVGGElement, node: OrgChartNode<Datum>, index: number, groups: SVGGElement[] | ArrayLike<SVGGElement>) => void;
|
|
138
|
+
|
|
139
|
+
export type NodeEnterCallback<Datum = any> = (node: OrgChartNode<Datum>) => OrgChartNode<Datum>;
|
|
140
|
+
export type NodeExitCallback<Datum = any> = (node: OrgChartNode<Datum>) => OrgChartNode<Datum>;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Link update callback for DOM manipulation
|
|
144
|
+
*/
|
|
145
|
+
export type LinkUpdateCallback<Datum = any> = (this: SVGPathElement, node: OrgChartNode<Datum>, index: number, groups: SVGPathElement[] | ArrayLike<SVGPathElement>) => void;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Defs (SVG definitions) generator callback
|
|
149
|
+
*/
|
|
150
|
+
export type DefsCallback<Datum = any> = (state: OrgChartAttrs<Datum>, connections: Connection<Datum>[]) => string;
|
|
151
|
+
|
|
152
|
+
export type ConnectionsUpdateCallback<Datum = any> = (this: SVGPathElement, d: Connection<Datum>, i: number, arr: SVGPathElement[] | ArrayLike<SVGPathElement>) => void;
|
|
153
|
+
|
|
154
|
+
// ============================================================================
|
|
155
|
+
// Layout System Types
|
|
156
|
+
// ============================================================================
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Supported layout directions
|
|
160
|
+
*/
|
|
161
|
+
export type LayoutType = 'top' | 'left' | 'right' | 'bottom';
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Parameters for coordinate transformations
|
|
165
|
+
*/
|
|
166
|
+
export interface PositionParams {
|
|
167
|
+
x: number;
|
|
168
|
+
y: number;
|
|
169
|
+
width: number;
|
|
170
|
+
height: number;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Point coordinates
|
|
175
|
+
*/
|
|
176
|
+
export interface Point {
|
|
177
|
+
x: number;
|
|
178
|
+
y: number;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Compact dimension sizing functions
|
|
183
|
+
*/
|
|
184
|
+
export interface CompactDimension<Datum = any> {
|
|
185
|
+
sizeColumn: (node: OrgChartNode<Datum>) => number;
|
|
186
|
+
sizeRow: (node: OrgChartNode<Datum>) => number;
|
|
187
|
+
reverse: <T>(arr: T[]) => T[];
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Layout-specific coordinate and rendering functions
|
|
192
|
+
*/
|
|
193
|
+
export interface LayoutBinding<Datum = any> {
|
|
194
|
+
// Node boundary positions
|
|
195
|
+
nodeLeftX: (node: OrgChartNode<Datum>) => number;
|
|
196
|
+
nodeRightX: (node: OrgChartNode<Datum>) => number;
|
|
197
|
+
nodeTopY: (node: OrgChartNode<Datum>) => number;
|
|
198
|
+
nodeBottomY: (node: OrgChartNode<Datum>) => number;
|
|
199
|
+
|
|
200
|
+
// Animation entry points
|
|
201
|
+
nodeJoinX: (params: PositionParams) => number;
|
|
202
|
+
nodeJoinY: (params: PositionParams) => number;
|
|
203
|
+
|
|
204
|
+
// Link connection points
|
|
205
|
+
linkJoinX: (params: PositionParams) => number;
|
|
206
|
+
linkJoinY: (params: PositionParams) => number;
|
|
207
|
+
linkX: (node: OrgChartNode<Datum>) => number;
|
|
208
|
+
linkY: (node: OrgChartNode<Datum>) => number;
|
|
209
|
+
linkParentX: (node: OrgChartNode<Datum>) => number;
|
|
210
|
+
linkParentY: (node: OrgChartNode<Datum>) => number;
|
|
211
|
+
|
|
212
|
+
// Compact layout link positions
|
|
213
|
+
linkCompactXStart: (node: OrgChartNode<Datum>) => number;
|
|
214
|
+
linkCompactYStart: (node: OrgChartNode<Datum>) => number;
|
|
215
|
+
compactLinkMidX: (node: OrgChartNode<Datum>, state: OrgChartAttrs<Datum>) => number;
|
|
216
|
+
compactLinkMidY: (node: OrgChartNode<Datum>, state: OrgChartAttrs<Datum>) => number;
|
|
217
|
+
|
|
218
|
+
// Button positioning
|
|
219
|
+
buttonX: (node: OrgChartNode<Datum>) => number;
|
|
220
|
+
buttonY: (node: OrgChartNode<Datum>) => number;
|
|
221
|
+
|
|
222
|
+
// Transform functions
|
|
223
|
+
centerTransform: (params: { root: OrgChartNode<Datum>; rootMargin: number; scale: number; centerX: number; centerY: number }) => string;
|
|
224
|
+
nodeUpdateTransform: (node: OrgChartNode<Datum>, state: OrgChartAttrs<Datum>) => string;
|
|
225
|
+
zoomTransform: (transform: { x: number; y: number; k: number }) => string;
|
|
226
|
+
|
|
227
|
+
// Flex layout
|
|
228
|
+
nodeFlexSize: (params: { height: number; width: number; siblingsMargin: number; childrenMargin: number; state: OrgChartAttrs<Datum>; node: OrgChartNode<Datum> }) => [number, number];
|
|
229
|
+
|
|
230
|
+
// Compact dimensions
|
|
231
|
+
compactDimension: CompactDimension<Datum>;
|
|
232
|
+
|
|
233
|
+
// Link path generators
|
|
234
|
+
diagonal: (source: Point, target: Point, mid?: Point | null, offsets?: { sy?: number; ty?: number }) => string;
|
|
235
|
+
|
|
236
|
+
hdiagonal?: (source: Point, target: Point, mid?: Point | null, offsets?: { sx?: number; tx?: number }) => string;
|
|
237
|
+
|
|
238
|
+
// Coordinate swap for layout transformations
|
|
239
|
+
swap: (node: OrgChartNode<Datum>) => void;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// ============================================================================
|
|
243
|
+
// Main Configuration Interface
|
|
244
|
+
// ============================================================================
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Calculated properties derived from configuration
|
|
248
|
+
*/
|
|
249
|
+
export interface CalcProperties {
|
|
250
|
+
id: string;
|
|
251
|
+
chartWidth: number;
|
|
252
|
+
chartHeight: number;
|
|
253
|
+
centerX: number;
|
|
254
|
+
centerY: number;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Text measurement parameters
|
|
259
|
+
*/
|
|
260
|
+
export interface TextMeasurementParams {
|
|
261
|
+
fontSize?: string | number;
|
|
262
|
+
fontWeight?: string;
|
|
263
|
+
defaultFont: string;
|
|
264
|
+
ctx: CanvasRenderingContext2D;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Complete chart configuration and state
|
|
269
|
+
*/
|
|
270
|
+
export interface OrgChartAttrs<Datum = any> {
|
|
271
|
+
// ========== Internal/Private Properties ==========
|
|
272
|
+
id: string;
|
|
273
|
+
firstDraw: boolean;
|
|
274
|
+
ctx: CanvasRenderingContext2D;
|
|
275
|
+
initialExpandLevel: number;
|
|
276
|
+
nodeDefaultBackground: string;
|
|
277
|
+
lastTransform: { x: number; y: number; k: number };
|
|
278
|
+
allowedNodesCount: Record<string, number>;
|
|
279
|
+
zoomBehavior: ZoomBehavior<SVGSVGElement, Datum> | null;
|
|
280
|
+
generateRoot: ((data: Datum[]) => OrgChartNode<Datum>) | null;
|
|
281
|
+
|
|
282
|
+
// Calculated properties
|
|
283
|
+
calc?: CalcProperties;
|
|
284
|
+
|
|
285
|
+
// Hierarchy data
|
|
286
|
+
allNodes?: OrgChartNode<Datum>[];
|
|
287
|
+
root?: OrgChartNode<Datum>;
|
|
288
|
+
|
|
289
|
+
// Flextree layout instance
|
|
290
|
+
flexTreeLayout?: FlextreeLayout<Datum>;
|
|
291
|
+
|
|
292
|
+
// ========== SVG Elements ==========
|
|
293
|
+
svg?: Selection<SVGSVGElement, unknown, null, undefined>;
|
|
294
|
+
chart?: Selection<SVGGElement, unknown, null, undefined>;
|
|
295
|
+
centerG?: Selection<SVGGElement, unknown, null, undefined>;
|
|
296
|
+
linksWrapper?: Selection<SVGGElement, unknown, null, undefined>;
|
|
297
|
+
nodesWrapper?: Selection<SVGGElement, unknown, null, undefined>;
|
|
298
|
+
connectionsWrapper?: Selection<SVGGElement, unknown, null, undefined>;
|
|
299
|
+
defsWrapper?: Selection<SVGGElement, unknown, null, undefined>;
|
|
300
|
+
|
|
301
|
+
// ========== Public Configuration ==========
|
|
302
|
+
svgWidth: number;
|
|
303
|
+
svgHeight: number;
|
|
304
|
+
container: string | HTMLElement;
|
|
305
|
+
data: Datum[] | null;
|
|
306
|
+
connections: Connection<Datum>[];
|
|
307
|
+
defaultFont: string;
|
|
308
|
+
|
|
309
|
+
// ========== Data Accessors ==========
|
|
310
|
+
nodeId: DataAccessor<string | number, Datum>;
|
|
311
|
+
parentNodeId: DataAccessor<string | number, Datum>;
|
|
312
|
+
|
|
313
|
+
// ========== Layout Configuration ==========
|
|
314
|
+
rootMargin: number;
|
|
315
|
+
nodeWidth: NodeAccessor<number, Datum>;
|
|
316
|
+
nodeHeight: NodeAccessor<number, Datum>;
|
|
317
|
+
neighbourMargin: (node1: OrgChartNode<Datum>, node2: OrgChartNode<Datum>) => number;
|
|
318
|
+
siblingsMargin: NodeAccessor<number, Datum>;
|
|
319
|
+
childrenMargin: NodeAccessor<number, Datum>;
|
|
320
|
+
compactMarginPair: NodeAccessor<number, Datum>;
|
|
321
|
+
compactMarginBetween: NodeAccessor<number, Datum>;
|
|
322
|
+
|
|
323
|
+
// ========== Button Configuration ==========
|
|
324
|
+
nodeButtonWidth: NodeAccessor<number, Datum>;
|
|
325
|
+
nodeButtonHeight: NodeAccessor<number, Datum>;
|
|
326
|
+
nodeButtonX: NodeAccessor<number, Datum>;
|
|
327
|
+
nodeButtonY: NodeAccessor<number, Datum>;
|
|
328
|
+
|
|
329
|
+
// ========== Behavior Configuration ==========
|
|
330
|
+
linkYOffset: number;
|
|
331
|
+
pagingStep: NodeAccessor<number, Datum>;
|
|
332
|
+
minPagingVisibleNodes: NodeAccessor<number, Datum>;
|
|
333
|
+
scaleExtent: [number, number];
|
|
334
|
+
duration: number;
|
|
335
|
+
imageName: string;
|
|
336
|
+
setActiveNodeCentered: boolean;
|
|
337
|
+
layout: LayoutType;
|
|
338
|
+
compact: boolean;
|
|
339
|
+
|
|
340
|
+
// ========== Zoom Behavior ==========
|
|
341
|
+
createZoom: (node: OrgChartNode<Datum>) => ZoomBehavior<SVGSVGElement, Datum>;
|
|
342
|
+
|
|
343
|
+
// ========== Event Callbacks ==========
|
|
344
|
+
onZoomStart: ZoomCallback<Datum>;
|
|
345
|
+
onZoom: ZoomCallback<Datum>;
|
|
346
|
+
onZoomEnd: ZoomCallback<Datum>;
|
|
347
|
+
onNodeClick: NodeClickCallback<Datum>;
|
|
348
|
+
onExpandOrCollapse: NodeExpandCollapseCallback<Datum>;
|
|
349
|
+
|
|
350
|
+
// ========== Content Generators ==========
|
|
351
|
+
nodeContent: NodeContentCallback<Datum>;
|
|
352
|
+
buttonContent: ButtonContentCallback<Datum>;
|
|
353
|
+
pagingButton: PagingButtonCallback<Datum>;
|
|
354
|
+
defs: DefsCallback<Datum>;
|
|
355
|
+
|
|
356
|
+
// ========== DOM Update Callbacks ==========
|
|
357
|
+
nodeUpdate: NodeUpdateCallback<Datum>;
|
|
358
|
+
nodeEnter: NodeEnterCallback<Datum>;
|
|
359
|
+
nodeExit: NodeExitCallback<Datum>;
|
|
360
|
+
linkUpdate: LinkUpdateCallback<Datum>;
|
|
361
|
+
connectionsUpdate: ConnectionsUpdateCallback<Datum>;
|
|
362
|
+
|
|
363
|
+
// ========== D3 Generators ==========
|
|
364
|
+
linkGroupArc?: any;
|
|
365
|
+
hdiagonal?: (s: Point, t: Point, m?: Point | null, offsets?: any) => string;
|
|
366
|
+
diagonal?: (s: Point, t: Point, m?: Point | null, offsets?: any) => string;
|
|
367
|
+
|
|
368
|
+
// ========== Layout Bindings ==========
|
|
369
|
+
layoutBindings: Record<LayoutType, LayoutBinding<Datum>>;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
// ============================================================================
|
|
373
|
+
// Export/Image Related Types
|
|
374
|
+
// ============================================================================
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Parameters for image export
|
|
378
|
+
*/
|
|
379
|
+
export interface ExportImageParams {
|
|
380
|
+
full?: boolean;
|
|
381
|
+
scale?: number;
|
|
382
|
+
onLoad?: (img: HTMLImageElement) => void;
|
|
383
|
+
save?: boolean;
|
|
384
|
+
backgroundColor?: string;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Parameters for image download
|
|
389
|
+
*/
|
|
390
|
+
export interface DownloadImageParams {
|
|
391
|
+
node: SVGSVGElement | HTMLCanvasElement;
|
|
392
|
+
scale?: number;
|
|
393
|
+
imageName: string;
|
|
394
|
+
isSvg?: boolean;
|
|
395
|
+
save?: boolean;
|
|
396
|
+
backgroundColor?: string;
|
|
397
|
+
onAlreadySerialized?: (serialized: string) => void;
|
|
398
|
+
onLoad?: (img: HTMLImageElement) => void;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Parameters for fit operation
|
|
403
|
+
*/
|
|
404
|
+
export interface FitParams {
|
|
405
|
+
animate?: boolean;
|
|
406
|
+
nodes?: OrgChartNode[];
|
|
407
|
+
scale?: boolean;
|
|
408
|
+
onCompleted?: () => void;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Parameters for zoom to bounds operation
|
|
413
|
+
*/
|
|
414
|
+
export interface ZoomToBoundsParams {
|
|
415
|
+
x0: number;
|
|
416
|
+
x1: number;
|
|
417
|
+
y0: number;
|
|
418
|
+
y1: number;
|
|
419
|
+
params?: FitParams;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Update parameters for render updates
|
|
424
|
+
*/
|
|
425
|
+
export interface UpdateParams {
|
|
426
|
+
x0: number;
|
|
427
|
+
y0: number;
|
|
428
|
+
x?: number;
|
|
429
|
+
y?: number;
|
|
430
|
+
width: number;
|
|
431
|
+
height: number;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
// ============================================================================
|
|
435
|
+
// OrgChart Class Interface (for reference)
|
|
436
|
+
// ============================================================================
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Main OrgChart class interface
|
|
440
|
+
* Note: Actual implementation uses dynamic getters/setters for all attrs properties
|
|
441
|
+
*/
|
|
442
|
+
export interface OrgChart<Datum = any> {
|
|
443
|
+
// Core methods
|
|
444
|
+
render(): this;
|
|
445
|
+
update(params: UpdateParams): this;
|
|
446
|
+
clear(): void;
|
|
447
|
+
getChartState(): OrgChartAttrs<Datum>;
|
|
448
|
+
|
|
449
|
+
// Data manipulation
|
|
450
|
+
addNode(obj: Datum): this;
|
|
451
|
+
removeNode(nodeId: string | number): this;
|
|
452
|
+
|
|
453
|
+
// State management
|
|
454
|
+
setExpanded(id: string | number, expandedFlag?: boolean): this;
|
|
455
|
+
setCentered(nodeId: string | number): this;
|
|
456
|
+
setHighlighted(nodeId: string | number | null): this;
|
|
457
|
+
setUpToTheRootHighlighted(nodeId: string | number | null): this;
|
|
458
|
+
clearHighlighting(): this;
|
|
459
|
+
|
|
460
|
+
// Tree operations
|
|
461
|
+
collapse(node: OrgChartNode<Datum>): this;
|
|
462
|
+
expand(node: OrgChartNode<Datum>): this;
|
|
463
|
+
collapseAll(): this;
|
|
464
|
+
expandAll(): this;
|
|
465
|
+
|
|
466
|
+
// Navigation
|
|
467
|
+
fit(params?: FitParams): this;
|
|
468
|
+
initialZoom(zoomLevel: number): this;
|
|
469
|
+
zoomIn(): this;
|
|
470
|
+
zoomOut(): this;
|
|
471
|
+
|
|
472
|
+
// Export
|
|
473
|
+
exportImg(params?: ExportImageParams): void;
|
|
474
|
+
exportSvg(): void;
|
|
475
|
+
fullscreen(elem?: HTMLElement): void;
|
|
476
|
+
|
|
477
|
+
// Dynamic getters/setters for all attrs properties
|
|
478
|
+
[key: string]: any;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
// ============================================================================
|
|
482
|
+
// D3 Selection Extension
|
|
483
|
+
// ============================================================================
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Parameters for the patternify method
|
|
487
|
+
*/
|
|
488
|
+
export interface PatternifyParams {
|
|
489
|
+
selector: string;
|
|
490
|
+
tag: string;
|
|
491
|
+
data?: any[] | ((d: any) => any[]);
|
|
492
|
+
}
|