@mieweb/ui 0.10.0-dev.2 → 0.10.0-dev.20
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/agent/mieweb-ui.instructions.md +13 -1
- package/dist/CsvBlock-FX5YNGNE.cjs +17 -0
- package/dist/{CsvBlock-ROJCKJDP.cjs.map → CsvBlock-FX5YNGNE.cjs.map} +1 -1
- package/dist/CsvBlock-VLMG7GUO.js +8 -0
- package/dist/{CsvBlock-UWPMTLE2.js.map → CsvBlock-VLMG7GUO.js.map} +1 -1
- package/dist/HtmlPreviewBlock-5JE7L3GR.js +8 -0
- package/dist/{HtmlPreviewBlock-ME5U3XNS.js.map → HtmlPreviewBlock-5JE7L3GR.js.map} +1 -1
- package/dist/HtmlPreviewBlock-UO37JQ3K.cjs +17 -0
- package/dist/{HtmlPreviewBlock-DWFN6EUB.cjs.map → HtmlPreviewBlock-UO37JQ3K.cjs.map} +1 -1
- package/dist/Input-yN516s5_.d.cts +3 -0
- package/dist/Input-yN516s5_.d.ts +3 -0
- package/dist/MermaidBlock-3XHFBAMV.js +8 -0
- package/dist/{MermaidBlock-2B6CPD6Y.js.map → MermaidBlock-3XHFBAMV.js.map} +1 -1
- package/dist/MermaidBlock-RZ75RPZA.cjs +17 -0
- package/dist/{MermaidBlock-D2UC5M55.cjs.map → MermaidBlock-RZ75RPZA.cjs.map} +1 -1
- package/dist/SurveyBlock-MUVJ3JUI.js +8 -0
- package/dist/{SurveyBlock-4DO62RBT.js.map → SurveyBlock-MUVJ3JUI.js.map} +1 -1
- package/dist/SurveyBlock-VH47YXZC.cjs +17 -0
- package/dist/{SurveyBlock-4CD4AYMJ.cjs.map → SurveyBlock-VH47YXZC.cjs.map} +1 -1
- package/dist/ag-grid.d.cts +142 -1
- package/dist/ag-grid.d.ts +142 -1
- package/dist/{chunk-ACCAXVOG.js → chunk-2ABWFQQH.js} +133 -55
- package/dist/chunk-2ABWFQQH.js.map +1 -0
- package/dist/{chunk-Y5HFM7LO.js → chunk-2BARVD4C.js} +3 -3
- package/dist/{chunk-Y5HFM7LO.js.map → chunk-2BARVD4C.js.map} +1 -1
- package/dist/{chunk-G3JX3UAU.cjs → chunk-3KPDQG5O.cjs} +5 -5
- package/dist/{chunk-G3JX3UAU.cjs.map → chunk-3KPDQG5O.cjs.map} +1 -1
- package/dist/chunk-3YBS4WUQ.js +52 -0
- package/dist/chunk-3YBS4WUQ.js.map +1 -0
- package/dist/chunk-4HC2IBOX.js +258 -0
- package/dist/chunk-4HC2IBOX.js.map +1 -0
- package/dist/chunk-4IS3QCOQ.cjs +453 -0
- package/dist/chunk-4IS3QCOQ.cjs.map +1 -0
- package/dist/chunk-4NCDU5IG.cjs +56 -0
- package/dist/chunk-4NCDU5IG.cjs.map +1 -0
- package/dist/{chunk-E4IBHYJ7.cjs → chunk-6N6LIAUJ.cjs} +9 -9
- package/dist/{chunk-E4IBHYJ7.cjs.map → chunk-6N6LIAUJ.cjs.map} +1 -1
- package/dist/chunk-74ENCTIK.js +162 -0
- package/dist/chunk-74ENCTIK.js.map +1 -0
- package/dist/{chunk-GOALNQZ2.js → chunk-7YO7DNUV.js} +4 -83
- package/dist/chunk-7YO7DNUV.js.map +1 -0
- package/dist/{chunk-VILW53UZ.js → chunk-BIQ7GSO2.js} +3 -3
- package/dist/{chunk-VILW53UZ.js.map → chunk-BIQ7GSO2.js.map} +1 -1
- package/dist/chunk-BM35CACB.js +148 -0
- package/dist/chunk-BM35CACB.js.map +1 -0
- package/dist/{chunk-XI34EGK5.cjs → chunk-CPPUT74P.cjs} +9 -9
- package/dist/{chunk-XI34EGK5.cjs.map → chunk-CPPUT74P.cjs.map} +1 -1
- package/dist/{chunk-WNM7IZJ7.js → chunk-DSB4DKWG.js} +7 -7
- package/dist/{chunk-WNM7IZJ7.js.map → chunk-DSB4DKWG.js.map} +1 -1
- package/dist/chunk-DXEPYK3I.cjs +92 -0
- package/dist/chunk-DXEPYK3I.cjs.map +1 -0
- package/dist/{chunk-JI244Y7C.js → chunk-EK3BCET6.js} +57 -4
- package/dist/chunk-EK3BCET6.js.map +1 -0
- package/dist/{chunk-5JJ2DAE4.js → chunk-ENMXHZNE.js} +3 -3
- package/dist/{chunk-5JJ2DAE4.js.map → chunk-ENMXHZNE.js.map} +1 -1
- package/dist/{chunk-XCP454Q6.js → chunk-F4N67NAF.js} +12 -3
- package/dist/chunk-F4N67NAF.js.map +1 -0
- package/dist/{chunk-VKELAMAZ.js → chunk-FBLVPM2K.js} +3 -3
- package/dist/{chunk-VKELAMAZ.js.map → chunk-FBLVPM2K.js.map} +1 -1
- package/dist/{chunk-VU6UTJRM.js → chunk-FIKO4WR6.js} +3 -3
- package/dist/{chunk-VU6UTJRM.js.map → chunk-FIKO4WR6.js.map} +1 -1
- package/dist/{chunk-DEDN5HAG.js → chunk-FZURBQJ2.js} +3 -3
- package/dist/{chunk-DEDN5HAG.js.map → chunk-FZURBQJ2.js.map} +1 -1
- package/dist/{chunk-ENKFJJZX.js → chunk-G45FBKKV.js} +5 -5
- package/dist/{chunk-ENKFJJZX.js.map → chunk-G45FBKKV.js.map} +1 -1
- package/dist/{chunk-JHULS3EC.js → chunk-GBUVIGD5.js} +89 -3
- package/dist/chunk-GBUVIGD5.js.map +1 -0
- package/dist/chunk-GU5OS7JJ.cjs +281 -0
- package/dist/chunk-GU5OS7JJ.cjs.map +1 -0
- package/dist/{chunk-V7D3YGUV.js → chunk-GVLNXPJX.js} +4 -4
- package/dist/{chunk-V7D3YGUV.js.map → chunk-GVLNXPJX.js.map} +1 -1
- package/dist/chunk-GVM6DTR5.js +90 -0
- package/dist/chunk-GVM6DTR5.js.map +1 -0
- package/dist/{chunk-3QEVGSFG.cjs → chunk-GYXUS65N.cjs} +5 -5
- package/dist/{chunk-3QEVGSFG.cjs.map → chunk-GYXUS65N.cjs.map} +1 -1
- package/dist/{chunk-WGPLUCBD.js → chunk-H2IAMSHK.js} +3 -3
- package/dist/{chunk-WGPLUCBD.js.map → chunk-H2IAMSHK.js.map} +1 -1
- package/dist/{chunk-7ZXAQTV4.cjs → chunk-HIZWOAWY.cjs} +8 -8
- package/dist/{chunk-7ZXAQTV4.cjs.map → chunk-HIZWOAWY.cjs.map} +1 -1
- package/dist/{chunk-ELPW32ZI.cjs → chunk-HQ4CGVWX.cjs} +41 -41
- package/dist/{chunk-ELPW32ZI.cjs.map → chunk-HQ4CGVWX.cjs.map} +1 -1
- package/dist/{chunk-6EN3IQQI.cjs → chunk-I4LXSHKO.cjs} +4 -4
- package/dist/{chunk-6EN3IQQI.cjs.map → chunk-I4LXSHKO.cjs.map} +1 -1
- package/dist/{chunk-NV2CWBI2.cjs → chunk-IEY3ZJIT.cjs} +12 -3
- package/dist/chunk-IEY3ZJIT.cjs.map +1 -0
- package/dist/{chunk-2YCERQWC.js → chunk-IH55BEB3.js} +4 -4
- package/dist/{chunk-2YCERQWC.js.map → chunk-IH55BEB3.js.map} +1 -1
- package/dist/chunk-IT775BYG.js +179 -0
- package/dist/chunk-IT775BYG.js.map +1 -0
- package/dist/chunk-IYWG72DM.js +166 -0
- package/dist/chunk-IYWG72DM.js.map +1 -0
- package/dist/{chunk-IX6KFB3K.cjs → chunk-JELTRRR5.cjs} +9 -9
- package/dist/{chunk-IX6KFB3K.cjs.map → chunk-JELTRRR5.cjs.map} +1 -1
- package/dist/{chunk-FXO5ARBB.cjs → chunk-KDW6BD4O.cjs} +4 -4
- package/dist/{chunk-FXO5ARBB.cjs.map → chunk-KDW6BD4O.cjs.map} +1 -1
- package/dist/chunk-KHSFJTEX.js +1924 -0
- package/dist/chunk-KHSFJTEX.js.map +1 -0
- package/dist/{chunk-UV2FVNWT.cjs → chunk-LFPJ3OUM.cjs} +5 -5
- package/dist/{chunk-UV2FVNWT.cjs.map → chunk-LFPJ3OUM.cjs.map} +1 -1
- package/dist/{chunk-WNAA6CLE.cjs → chunk-LHBWRMNC.cjs} +94 -2
- package/dist/chunk-LHBWRMNC.cjs.map +1 -0
- package/dist/{chunk-X4XPNTCZ.cjs → chunk-LJZKEMAH.cjs} +135 -57
- package/dist/chunk-LJZKEMAH.cjs.map +1 -0
- package/dist/{chunk-2QKBTPUC.cjs → chunk-MQPG3KVK.cjs} +8 -8
- package/dist/{chunk-2QKBTPUC.cjs.map → chunk-MQPG3KVK.cjs.map} +1 -1
- package/dist/{chunk-WIAQQNFU.cjs → chunk-MYHV2ND3.cjs} +37 -3
- package/dist/chunk-MYHV2ND3.cjs.map +1 -0
- package/dist/{chunk-OE5CKRUC.js → chunk-MZNCLXXU.js} +4 -4
- package/dist/{chunk-OE5CKRUC.js.map → chunk-MZNCLXXU.js.map} +1 -1
- package/dist/{chunk-XEAT7XJG.cjs → chunk-N2CJJHHB.cjs} +4 -4
- package/dist/{chunk-XEAT7XJG.cjs.map → chunk-N2CJJHHB.cjs.map} +1 -1
- package/dist/chunk-N7C4OEP7.cjs +356 -0
- package/dist/chunk-N7C4OEP7.cjs.map +1 -0
- package/dist/chunk-OGNADPM4.cjs +170 -0
- package/dist/chunk-OGNADPM4.cjs.map +1 -0
- package/dist/{chunk-5GUOOLPR.cjs → chunk-P5CMZZRZ.cjs} +5 -5
- package/dist/{chunk-5GUOOLPR.cjs.map → chunk-P5CMZZRZ.cjs.map} +1 -1
- package/dist/{chunk-U42F3HLE.cjs → chunk-QNDP6PE5.cjs} +57 -4
- package/dist/chunk-QNDP6PE5.cjs.map +1 -0
- package/dist/{chunk-H4ZXMQQW.js → chunk-QOVJ6Z6R.js} +3 -3
- package/dist/{chunk-H4ZXMQQW.js.map → chunk-QOVJ6Z6R.js.map} +1 -1
- package/dist/{chunk-GD7EBGC4.cjs → chunk-R2O72G6Z.cjs} +19 -19
- package/dist/{chunk-GD7EBGC4.cjs.map → chunk-R2O72G6Z.cjs.map} +1 -1
- package/dist/{chunk-TMMVIUUN.js → chunk-R6KPWIGO.js} +4 -4
- package/dist/{chunk-TMMVIUUN.js.map → chunk-R6KPWIGO.js.map} +1 -1
- package/dist/{chunk-VPWJCJCX.cjs → chunk-S45EERW3.cjs} +5 -5
- package/dist/{chunk-VPWJCJCX.cjs.map → chunk-S45EERW3.cjs.map} +1 -1
- package/dist/{chunk-WNZAYBVB.cjs → chunk-SQ2D7AON.cjs} +45 -45
- package/dist/{chunk-WNZAYBVB.cjs.map → chunk-SQ2D7AON.cjs.map} +1 -1
- package/dist/{chunk-P2CA3XGI.js → chunk-SYRLCTDV.js} +3 -3
- package/dist/{chunk-P2CA3XGI.js.map → chunk-SYRLCTDV.js.map} +1 -1
- package/dist/{chunk-7ZDPD5ZX.cjs → chunk-T4L7Q5FA.cjs} +7 -7
- package/dist/{chunk-7ZDPD5ZX.cjs.map → chunk-T4L7Q5FA.cjs.map} +1 -1
- package/dist/{chunk-ZGRCSNPK.js → chunk-TF7YWJHU.js} +3 -3
- package/dist/{chunk-ZGRCSNPK.js.map → chunk-TF7YWJHU.js.map} +1 -1
- package/dist/{chunk-2IZLKPUW.js → chunk-THLIL6PY.js} +3 -3
- package/dist/{chunk-2IZLKPUW.js.map → chunk-THLIL6PY.js.map} +1 -1
- package/dist/{chunk-N6IY47YA.cjs → chunk-TTSSUOEV.cjs} +8 -8
- package/dist/{chunk-N6IY47YA.cjs.map → chunk-TTSSUOEV.cjs.map} +1 -1
- package/dist/{chunk-5MCBWTIF.cjs → chunk-TYE5K5WV.cjs} +4 -4
- package/dist/{chunk-5MCBWTIF.cjs.map → chunk-TYE5K5WV.cjs.map} +1 -1
- package/dist/{chunk-22CYDCXA.js → chunk-TZJQB4P2.js} +37 -4
- package/dist/chunk-TZJQB4P2.js.map +1 -0
- package/dist/{chunk-VOKVG3ER.js → chunk-UBSH27C2.js} +4 -4
- package/dist/{chunk-VOKVG3ER.js.map → chunk-UBSH27C2.js.map} +1 -1
- package/dist/chunk-VINZZQBD.cjs +323 -0
- package/dist/chunk-VINZZQBD.cjs.map +1 -0
- package/dist/chunk-VPTASZ2O.cjs +171 -0
- package/dist/chunk-VPTASZ2O.cjs.map +1 -0
- package/dist/{chunk-SGFYA22I.cjs → chunk-VYPPQPSZ.cjs} +7 -7
- package/dist/{chunk-SGFYA22I.cjs.map → chunk-VYPPQPSZ.cjs.map} +1 -1
- package/dist/chunk-WCDJFMZO.cjs +1967 -0
- package/dist/chunk-WCDJFMZO.cjs.map +1 -0
- package/dist/{chunk-VNYW4C4J.cjs → chunk-X6A27RGO.cjs} +4 -84
- package/dist/chunk-X6A27RGO.cjs.map +1 -0
- package/dist/chunk-XBTKZCZF.js +333 -0
- package/dist/chunk-XBTKZCZF.js.map +1 -0
- package/dist/chunk-XDIMTPZU.cjs +202 -0
- package/dist/chunk-XDIMTPZU.cjs.map +1 -0
- package/dist/chunk-XVW5DPPP.js +429 -0
- package/dist/chunk-XVW5DPPP.js.map +1 -0
- package/dist/chunk-Y4E2WRUR.cjs +188 -0
- package/dist/chunk-Y4E2WRUR.cjs.map +1 -0
- package/dist/chunk-Y4QNLW7W.js +300 -0
- package/dist/chunk-Y4QNLW7W.js.map +1 -0
- package/dist/{chunk-KZFBQ7GY.js → chunk-YU55JD35.js} +3 -3
- package/dist/{chunk-KZFBQ7GY.js.map → chunk-YU55JD35.js.map} +1 -1
- package/dist/{chunk-OD47TTAW.cjs → chunk-Z4JR23IB.cjs} +9 -9
- package/dist/{chunk-OD47TTAW.cjs.map → chunk-Z4JR23IB.cjs.map} +1 -1
- package/dist/{chunk-3M7TAXNR.js → chunk-ZTW4KODY.js} +3 -3
- package/dist/{chunk-3M7TAXNR.js.map → chunk-ZTW4KODY.js.map} +1 -1
- package/dist/{chunk-3QGS6CXD.js → chunk-ZYL4SNOR.js} +3 -3
- package/dist/{chunk-3QGS6CXD.js.map → chunk-ZYL4SNOR.js.map} +1 -1
- package/dist/components/Alert/index.d.cts +1 -1
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/AlertDialog/index.cjs +6 -5
- package/dist/components/AlertDialog/index.d.cts +28 -3
- package/dist/components/AlertDialog/index.d.ts +28 -3
- package/dist/components/AlertDialog/index.js +5 -4
- package/dist/components/AudioRecorder/index.d.cts +2 -2
- package/dist/components/AudioRecorder/index.d.ts +2 -2
- package/dist/components/Autocomplete/index.d.cts +8 -2
- package/dist/components/Autocomplete/index.d.ts +8 -2
- package/dist/components/Avatar/index.d.cts +1 -1
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Badge/index.d.cts +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/BoardView/index.cjs +24 -0
- package/dist/components/BoardView/index.cjs.map +1 -0
- package/dist/components/BoardView/index.d.cts +129 -0
- package/dist/components/BoardView/index.d.ts +129 -0
- package/dist/components/BoardView/index.js +7 -0
- package/dist/components/BoardView/index.js.map +1 -0
- package/dist/components/Button/index.cjs +4 -3
- package/dist/components/Button/index.d.cts +2 -1
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/Button/index.js +2 -1
- package/dist/components/CalendarView/index.cjs +23 -0
- package/dist/components/CalendarView/index.cjs.map +1 -0
- package/dist/components/CalendarView/index.d.cts +39 -0
- package/dist/components/CalendarView/index.d.ts +39 -0
- package/dist/components/CalendarView/index.js +10 -0
- package/dist/components/CalendarView/index.js.map +1 -0
- package/dist/components/Card/index.d.cts +3 -3
- package/dist/components/Card/index.d.ts +3 -3
- package/dist/components/Collapsible/index.cjs +5 -5
- package/dist/components/Collapsible/index.js +2 -2
- package/dist/components/CustomizableDashboard/index.cjs +10 -9
- package/dist/components/CustomizableDashboard/index.js +3 -2
- package/dist/components/Dropdown/index.cjs +9 -9
- package/dist/components/Dropdown/index.d.cts +2 -1
- package/dist/components/Dropdown/index.d.ts +2 -1
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/FloatingWindow/index.cjs +5 -4
- package/dist/components/FloatingWindow/index.js +3 -2
- package/dist/components/GanttView/index.cjs +20 -0
- package/dist/components/GanttView/index.cjs.map +1 -0
- package/dist/components/GanttView/index.d.cts +36 -0
- package/dist/components/GanttView/index.d.ts +36 -0
- package/dist/components/GanttView/index.js +7 -0
- package/dist/components/GanttView/index.js.map +1 -0
- package/dist/components/KeyboardShortcutsOverlay/index.cjs +5 -5
- package/dist/components/KeyboardShortcutsOverlay/index.js +3 -3
- package/dist/components/ListView/index.cjs +23 -0
- package/dist/components/ListView/index.cjs.map +1 -0
- package/dist/components/ListView/index.d.cts +124 -0
- package/dist/components/ListView/index.d.ts +124 -0
- package/dist/components/ListView/index.js +10 -0
- package/dist/components/ListView/index.js.map +1 -0
- package/dist/components/Markdown/index.cjs +20 -19
- package/dist/components/Markdown/index.js +8 -7
- package/dist/components/MediaEditor/index.cjs +11 -10
- package/dist/components/MediaEditor/index.d.cts +91 -2
- package/dist/components/MediaEditor/index.d.ts +91 -2
- package/dist/components/MediaEditor/index.js +6 -5
- package/dist/components/MediaPlayer/index.cjs +6 -5
- package/dist/components/MediaPlayer/index.d.cts +1 -1
- package/dist/components/MediaPlayer/index.d.ts +1 -1
- package/dist/components/MediaPlayer/index.js +3 -2
- package/dist/components/MegaMenu/index.cjs +6 -5
- package/dist/components/MegaMenu/index.js +3 -2
- package/dist/components/Modal/index.cjs +10 -10
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Pagination/index.d.cts +1 -1
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/PhoneInput/index.d.cts +36 -3
- package/dist/components/PhoneInput/index.d.ts +36 -3
- package/dist/components/Progress/index.d.cts +1 -1
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/Q/index.d.cts +2 -2
- package/dist/components/Q/index.d.ts +2 -2
- package/dist/components/QuickAction/index.d.cts +1 -1
- package/dist/components/QuickAction/index.d.ts +1 -1
- package/dist/components/RadialExplorer/index.cjs +4 -3
- package/dist/components/RadialExplorer/index.js +3 -2
- package/dist/components/RecordButton/index.d.cts +1 -1
- package/dist/components/RecordButton/index.d.ts +1 -1
- package/dist/components/RichTextEditor/index.cjs +8 -7
- package/dist/components/RichTextEditor/index.d.cts +7 -2
- package/dist/components/RichTextEditor/index.d.ts +7 -2
- package/dist/components/RichTextEditor/index.js +5 -4
- package/dist/components/ScrollArea/index.d.cts +1 -1
- package/dist/components/ScrollArea/index.d.ts +1 -1
- package/dist/components/SectionSpyNav/index.cjs +4 -3
- package/dist/components/SectionSpyNav/index.js +3 -2
- package/dist/components/Select/index.d.cts +1 -2
- package/dist/components/Select/index.d.ts +1 -2
- package/dist/components/Skeleton/index.d.cts +1 -1
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Slider/index.d.cts +2 -2
- package/dist/components/Slider/index.d.ts +2 -2
- package/dist/components/Spinner/index.d.cts +2 -2
- package/dist/components/Spinner/index.d.ts +2 -2
- package/dist/components/SuperChat/index.cjs +478 -281
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.d.cts +2 -4
- package/dist/components/SuperChat/index.d.ts +2 -4
- package/dist/components/SuperChat/index.js +468 -271
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/components/SuperChat/plugins/index.cjs +5 -5
- package/dist/components/SuperChat/plugins/index.d.cts +2 -3
- package/dist/components/SuperChat/plugins/index.d.ts +2 -3
- package/dist/components/SuperChat/plugins/index.js +4 -4
- package/dist/components/Text/index.d.cts +3 -3
- package/dist/components/Text/index.d.ts +3 -3
- package/dist/components/Textarea/index.d.cts +1 -2
- package/dist/components/Textarea/index.d.ts +1 -2
- package/dist/components/ThemeProvider/index.d.cts +3 -1
- package/dist/components/ThemeProvider/index.d.ts +3 -1
- package/dist/components/TranscriptView/index.d.cts +85 -4
- package/dist/components/TranscriptView/index.d.ts +85 -4
- package/dist/components/ViewSet/index.cjs +24 -0
- package/dist/components/ViewSet/index.cjs.map +1 -0
- package/dist/components/ViewSet/index.d.cts +300 -0
- package/dist/components/ViewSet/index.d.ts +300 -0
- package/dist/components/ViewSet/index.js +15 -0
- package/dist/components/ViewSet/index.js.map +1 -0
- package/dist/components/ViewSwitcher/index.cjs +20 -0
- package/dist/components/ViewSwitcher/index.cjs.map +1 -0
- package/dist/components/ViewSwitcher/index.d.cts +57 -0
- package/dist/components/ViewSwitcher/index.d.ts +57 -0
- package/dist/components/ViewSwitcher/index.js +7 -0
- package/dist/components/ViewSwitcher/index.js.map +1 -0
- package/dist/datavis.cjs +3 -2
- package/dist/datavis.cjs.map +1 -1
- package/dist/datavis.d.cts +167 -13
- package/dist/datavis.d.ts +167 -13
- package/dist/datavis.js +2 -1
- package/dist/datavis.js.map +1 -1
- package/dist/esheet.cjs +9 -8
- package/dist/esheet.cjs.map +1 -1
- package/dist/esheet.d.cts +183 -1
- package/dist/esheet.d.ts +183 -1
- package/dist/esheet.js +6 -5
- package/dist/esheet.js.map +1 -1
- package/dist/hooks/index.cjs +49 -16
- package/dist/hooks/index.d.cts +590 -31
- package/dist/hooks/index.d.ts +590 -31
- package/dist/hooks/index.js +3 -2
- package/dist/index.cjs +1375 -1088
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8596 -683
- package/dist/index.d.ts +8596 -683
- package/dist/index.js +433 -340
- package/dist/index.js.map +1 -1
- package/dist/kerebron.cjs +58 -19
- package/dist/kerebron.cjs.map +1 -1
- package/dist/kerebron.d.cts +37 -0
- package/dist/kerebron.d.ts +37 -0
- package/dist/kerebron.js +58 -19
- package/dist/kerebron.js.map +1 -1
- package/dist/motion.cjs +7 -7
- package/dist/motion.d.cts +186 -2
- package/dist/motion.d.ts +186 -2
- package/dist/motion.js +2 -2
- package/dist/q.d.cts +25 -3
- package/dist/q.d.ts +25 -3
- package/dist/{speaker-verify-5GTWAN5Y.cjs → speaker-verify-4NEJAK6C.cjs} +57 -90
- package/dist/speaker-verify-4NEJAK6C.cjs.map +1 -0
- package/dist/{speaker-verify-R67P433H.js → speaker-verify-AWSKI6DI.js} +57 -90
- package/dist/speaker-verify-AWSKI6DI.js.map +1 -0
- package/dist/styles/effects.css +33 -0
- package/dist/styles.css +1 -1
- package/dist/tailwind-preset.cjs +4 -4
- package/dist/tailwind-preset.js +1 -1
- package/dist/templates.cjs +103 -0
- package/dist/templates.cjs.map +1 -0
- package/dist/templates.d.cts +560 -0
- package/dist/templates.d.ts +560 -0
- package/dist/templates.js +10 -0
- package/dist/templates.js.map +1 -0
- package/dist/types-C3HQe74F.d.cts +86 -0
- package/dist/types-C3HQe74F.d.ts +86 -0
- package/dist/{types-B97JNRNQ.d.cts → types-DOxdTwmq.d.cts} +170 -2
- package/dist/{types-gZXrfLj6.d.ts → types-DOxdTwmq.d.ts} +170 -2
- package/dist/utils/index.d.cts +13 -2
- package/dist/utils/index.d.ts +13 -2
- package/package.json +21 -4
- package/dist/Animated-XmH6k8pZ.d.cts +0 -188
- package/dist/Animated-XmH6k8pZ.d.ts +0 -188
- package/dist/CsvBlock-ROJCKJDP.cjs +0 -16
- package/dist/CsvBlock-UWPMTLE2.js +0 -7
- package/dist/HtmlPreviewBlock-DWFN6EUB.cjs +0 -16
- package/dist/HtmlPreviewBlock-ME5U3XNS.js +0 -7
- package/dist/MedicationEditor-Bp4NLy7y.d.cts +0 -352
- package/dist/MedicationEditor-Bp4NLy7y.d.ts +0 -352
- package/dist/MermaidBlock-2B6CPD6Y.js +0 -7
- package/dist/MermaidBlock-D2UC5M55.cjs +0 -16
- package/dist/SurveyBlock-4CD4AYMJ.cjs +0 -16
- package/dist/SurveyBlock-4DO62RBT.js +0 -7
- package/dist/chunk-22CYDCXA.js.map +0 -1
- package/dist/chunk-ACCAXVOG.js.map +0 -1
- package/dist/chunk-GOALNQZ2.js.map +0 -1
- package/dist/chunk-JHULS3EC.js.map +0 -1
- package/dist/chunk-JI244Y7C.js.map +0 -1
- package/dist/chunk-NV2CWBI2.cjs.map +0 -1
- package/dist/chunk-U42F3HLE.cjs.map +0 -1
- package/dist/chunk-VNYW4C4J.cjs.map +0 -1
- package/dist/chunk-WIAQQNFU.cjs.map +0 -1
- package/dist/chunk-WNAA6CLE.cjs.map +0 -1
- package/dist/chunk-X4XPNTCZ.cjs.map +0 -1
- package/dist/chunk-XCP454Q6.js.map +0 -1
- package/dist/html-MdxqSzjD.d.cts +0 -13
- package/dist/html-MdxqSzjD.d.ts +0 -13
- package/dist/orderRows-BUJYgSc7.d.cts +0 -221
- package/dist/orderRows-BUJYgSc7.d.ts +0 -221
- package/dist/speaker-verify-5GTWAN5Y.cjs.map +0 -1
- package/dist/speaker-verify-R67P433H.js.map +0 -1
- package/dist/transcript-Cg7uSW-C.d.cts +0 -84
- package/dist/transcript-Cg7uSW-C.d.ts +0 -84
- package/dist/types-CnPEwzlp.d.cts +0 -254
- package/dist/types-CnPEwzlp.d.ts +0 -254
- package/dist/useAnchoredPosition-CKwLSQW8.d.cts +0 -76
- package/dist/useAnchoredPosition-CKwLSQW8.d.ts +0 -76
- package/dist/useTheme-B9SWu6ui.d.cts +0 -24
- package/dist/useTheme-B9SWu6ui.d.ts +0 -24
- package/dist/useTranscriptEdits-CGzlemHT.d.cts +0 -182
- package/dist/useTranscriptEdits-D32bLs0l.d.ts +0 -182
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The contract every component in the `Modules/Views` family reads through.
|
|
8
|
+
*
|
|
9
|
+
* A page describes its collection once — which field is the id, the title, the
|
|
10
|
+
* status, the start date — and every view understands it. That is the whole
|
|
11
|
+
* reason the family exists: without it each view needs its own adapter and you
|
|
12
|
+
* end up re-implementing the same board per entity.
|
|
13
|
+
*
|
|
14
|
+
* Views are headless. Nothing here fetches, subscribes, or navigates.
|
|
15
|
+
* See CONTRIBUTING → "Modules: headless data components".
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Which layout is on screen. `overview` and `table` are rendered by the host
|
|
20
|
+
* through `ViewSet` slots rather than by a component in this family — a tabular
|
|
21
|
+
* collection is `DataVisNitroGrid`, and an overview is domain content.
|
|
22
|
+
*/
|
|
23
|
+
type ViewId = 'overview' | 'list' | 'board' | 'calendar' | 'gantt' | 'roadmap' | 'table';
|
|
24
|
+
/**
|
|
25
|
+
* A semantic colour name, resolved to `--mieweb-*` tokens by each view.
|
|
26
|
+
*
|
|
27
|
+
* Accessors return one of these rather than a class string so a caller cannot
|
|
28
|
+
* hardcode a palette that breaks under another brand or in dark mode.
|
|
29
|
+
*/
|
|
30
|
+
type Accent = 'primary' | 'success' | 'warning' | 'destructive' | 'info' | 'neutral';
|
|
31
|
+
/** A named stage: a board column, and the segments of a stage bar. */
|
|
32
|
+
interface Stage {
|
|
33
|
+
id: string;
|
|
34
|
+
label: string;
|
|
35
|
+
accent?: Accent;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* How a view reads one item. Only `getId` and `getTitle` are always required;
|
|
39
|
+
* each view documents which of the rest it needs (a board needs `getStatus`, a
|
|
40
|
+
* Gantt needs `getStart`) and renders an explanatory empty state without them.
|
|
41
|
+
*/
|
|
42
|
+
interface ViewAccessors<T> {
|
|
43
|
+
getId: (item: T) => string;
|
|
44
|
+
getTitle: (item: T) => string;
|
|
45
|
+
/** Secondary line under the title. */
|
|
46
|
+
getSubtitle?: (item: T) => string | undefined;
|
|
47
|
+
/** Board column and list group; matched against `Stage['id']`. */
|
|
48
|
+
getStatus?: (item: T) => string;
|
|
49
|
+
/** Gantt bar start, calendar placement. */
|
|
50
|
+
getStart?: (item: T) => Date | string | null | undefined;
|
|
51
|
+
/** Gantt bar end, calendar span. Falls back to the start when absent. */
|
|
52
|
+
getEnd?: (item: T) => Date | string | null | undefined;
|
|
53
|
+
/** Swimlane in a roadmap, row group in a Gantt. */
|
|
54
|
+
getGroup?: (item: T) => string | undefined;
|
|
55
|
+
getAccent?: (item: T) => Accent;
|
|
56
|
+
}
|
|
57
|
+
/** Strings a view renders. Every one is overridable; the defaults are English. */
|
|
58
|
+
interface ViewLabels {
|
|
59
|
+
/** Accessible name of the view switcher group. */
|
|
60
|
+
viewSwitcher: string;
|
|
61
|
+
loading: string;
|
|
62
|
+
empty: string;
|
|
63
|
+
error: string;
|
|
64
|
+
/** Action on the error state. */
|
|
65
|
+
retry: string;
|
|
66
|
+
/** Heading for the group a record with no status or group falls into. */
|
|
67
|
+
ungrouped: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Props every view accepts. Views are controlled: selection, the active view and
|
|
71
|
+
* filter state live in the page, and every change is handed back.
|
|
72
|
+
*/
|
|
73
|
+
interface ViewBaseProps<T> {
|
|
74
|
+
items: T[];
|
|
75
|
+
accessors: ViewAccessors<T>;
|
|
76
|
+
loading?: boolean;
|
|
77
|
+
error?: Error | null;
|
|
78
|
+
selectedId?: string | null;
|
|
79
|
+
/** Called when the user activates an item. */
|
|
80
|
+
onOpen?: (id: string, item: T) => void;
|
|
81
|
+
/** Return a URL to render each item as a real anchor — middle-clickable and crawlable. */
|
|
82
|
+
getHref?: (id: string, item: T) => string;
|
|
83
|
+
/** Render one item. Receives the active view so one function can serve several. */
|
|
84
|
+
renderItem?: (item: T, context: {
|
|
85
|
+
view: ViewId;
|
|
86
|
+
}) => React.ReactNode;
|
|
87
|
+
/** Replaces the built-in empty state. */
|
|
88
|
+
emptyState?: React.ReactNode;
|
|
89
|
+
labels?: Partial<ViewLabels>;
|
|
90
|
+
/** Pins "today" so stories, tests and visual snapshots stay deterministic. */
|
|
91
|
+
now?: Date;
|
|
92
|
+
className?: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
interface ViewOption {
|
|
96
|
+
id: ViewId;
|
|
97
|
+
/** Overrides the built-in English label. */
|
|
98
|
+
label?: string;
|
|
99
|
+
/** Overrides the built-in icon. */
|
|
100
|
+
icon?: React.ComponentType<{
|
|
101
|
+
className?: string;
|
|
102
|
+
'aria-hidden'?: boolean;
|
|
103
|
+
}>;
|
|
104
|
+
disabled?: boolean;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
type ListViewSlot = 'group' | 'groupHeader' | 'item' | 'selectedItem' | 'state';
|
|
108
|
+
interface ListViewProps<T> extends ViewBaseProps<T>, VariantProps<typeof itemVariants> {
|
|
109
|
+
/**
|
|
110
|
+
* Group rows by `accessors.getStatus`, using these stages for order and
|
|
111
|
+
* labels. Items whose status matches no stage are appended under their own
|
|
112
|
+
* heading rather than dropped.
|
|
113
|
+
*/
|
|
114
|
+
stages?: readonly Stage[];
|
|
115
|
+
/** Group by `accessors.getGroup` instead of by stage. */
|
|
116
|
+
groupBy?: 'status' | 'group' | 'none';
|
|
117
|
+
/** Groups that start collapsed. Uncontrolled; the user can reopen them. */
|
|
118
|
+
defaultCollapsedGroups?: readonly string[];
|
|
119
|
+
/** Retries the failed load. Renders the retry action only when provided. */
|
|
120
|
+
onRetry?: () => void;
|
|
121
|
+
classNames?: Partial<Record<ListViewSlot, string>>;
|
|
122
|
+
/** Heading level for group headers, under the page's own heading. */
|
|
123
|
+
headingLevel?: 'h2' | 'h3' | 'h4';
|
|
124
|
+
}
|
|
125
|
+
declare const itemVariants: (props?: ({
|
|
126
|
+
density?: "comfortable" | "compact" | null | undefined;
|
|
127
|
+
interactive?: boolean | null | undefined;
|
|
128
|
+
selected?: boolean | null | undefined;
|
|
129
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
130
|
+
|
|
131
|
+
type BoardViewSlot = 'column' | 'columnHeader' | 'card' | 'selectedCard' | 'state';
|
|
132
|
+
interface BoardLabels extends ViewLabels {
|
|
133
|
+
/** Accessible name of the scrollable board region. */
|
|
134
|
+
board: string;
|
|
135
|
+
/** Announced when a card starts moving. `{item}` and `{stage}` are substituted. */
|
|
136
|
+
moved: string;
|
|
137
|
+
/** Announced when `onMove` rejects. */
|
|
138
|
+
moveFailed: string;
|
|
139
|
+
/** Hint on a focusable card describing the keyboard move. */
|
|
140
|
+
moveHint: string;
|
|
141
|
+
}
|
|
142
|
+
interface BoardViewProps<T> extends ViewBaseProps<T>, VariantProps<typeof cardVariants> {
|
|
143
|
+
/** Columns, in order. A board without stages has nothing to draw. */
|
|
144
|
+
stages: readonly Stage[];
|
|
145
|
+
/**
|
|
146
|
+
* Commits a move. The board shows the card in its new column while this is
|
|
147
|
+
* pending and puts it back if the promise rejects, so the caller never has to
|
|
148
|
+
* re-render it home.
|
|
149
|
+
*/
|
|
150
|
+
onMove?: (id: string, toStage: string, item: T) => void | Promise<void>;
|
|
151
|
+
labels?: Partial<BoardLabels>;
|
|
152
|
+
classNames?: Partial<Record<BoardViewSlot, string>>;
|
|
153
|
+
/** Heading level for column headers, under the page's own heading. */
|
|
154
|
+
headingLevel?: 'h2' | 'h3' | 'h4';
|
|
155
|
+
}
|
|
156
|
+
declare const cardVariants: (props?: ({
|
|
157
|
+
density?: "comfortable" | "compact" | null | undefined;
|
|
158
|
+
interactive?: boolean | null | undefined;
|
|
159
|
+
selected?: boolean | null | undefined;
|
|
160
|
+
pending?: boolean | null | undefined;
|
|
161
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
162
|
+
|
|
163
|
+
type CalendarViewSlot = 'toolbar' | 'weekday' | 'day' | 'outsideDay' | 'today' | 'entry' | 'selectedEntry' | 'state';
|
|
164
|
+
interface CalendarLabels extends ViewLabels {
|
|
165
|
+
previousMonth: string;
|
|
166
|
+
nextMonth: string;
|
|
167
|
+
today: string;
|
|
168
|
+
/** Overflow affordance. `{count}` is substituted. */
|
|
169
|
+
more: string;
|
|
170
|
+
}
|
|
171
|
+
interface CalendarViewProps<T> extends ViewBaseProps<T> {
|
|
172
|
+
/** Controlled month. Any date inside the month works. */
|
|
173
|
+
month?: Date;
|
|
174
|
+
/** Starting month when uncontrolled. Defaults to the month containing `now`. */
|
|
175
|
+
defaultMonth?: Date;
|
|
176
|
+
onMonthChange?: (month: Date) => void;
|
|
177
|
+
/**
|
|
178
|
+
* IANA zone the grid is drawn in, e.g. `America/New_York`. Defaults to the
|
|
179
|
+
* runtime's. A day boundary is a business fact, so state it explicitly when
|
|
180
|
+
* the collection belongs to somewhere other than the viewer.
|
|
181
|
+
*/
|
|
182
|
+
timeZone?: string;
|
|
183
|
+
/** 1 = Monday … 7 = Sunday. Defaults to Monday. */
|
|
184
|
+
weekStartsOn?: number;
|
|
185
|
+
/** Locale for month, weekday and day-number formatting. */
|
|
186
|
+
locale?: string;
|
|
187
|
+
/** Entries to show per day before collapsing into "{count} more". */
|
|
188
|
+
maxPerDay?: number;
|
|
189
|
+
labels?: Partial<CalendarLabels>;
|
|
190
|
+
classNames?: Partial<Record<CalendarViewSlot, string>>;
|
|
191
|
+
/** Hide the month toolbar when the host renders its own. */
|
|
192
|
+
hideToolbar?: boolean;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Column width in time. `month` and `quarter` are what a roadmap is — the
|
|
197
|
+
* family has no separate RoadmapView, because it would be this component with
|
|
198
|
+
* wider columns.
|
|
199
|
+
*/
|
|
200
|
+
type GanttCadence = 'day' | 'week' | 'month' | 'quarter';
|
|
201
|
+
type GanttViewSlot = 'header' | 'groupLabel' | 'row' | 'bar' | 'selectedBar' | 'state';
|
|
202
|
+
interface GanttLabels extends ViewLabels {
|
|
203
|
+
/** Accessible name of the scrollable chart region. */
|
|
204
|
+
chart: string;
|
|
205
|
+
/** Footnote for records a time axis cannot place. `{count}` is substituted. */
|
|
206
|
+
undated: string;
|
|
207
|
+
}
|
|
208
|
+
interface GanttViewProps<T> extends ViewBaseProps<T> {
|
|
209
|
+
/** Column width in time. Defaults to `week`. */
|
|
210
|
+
cadence?: GanttCadence;
|
|
211
|
+
/** First column. Defaults to the earliest start in `items`. */
|
|
212
|
+
rangeStart?: Date;
|
|
213
|
+
/** Last column. Defaults to the latest end in `items`. */
|
|
214
|
+
rangeEnd?: Date;
|
|
215
|
+
/** Group rows into swimlanes by `accessors.getGroup`. */
|
|
216
|
+
groupByLane?: boolean;
|
|
217
|
+
timeZone?: string;
|
|
218
|
+
locale?: string;
|
|
219
|
+
labels?: Partial<GanttLabels>;
|
|
220
|
+
classNames?: Partial<Record<GanttViewSlot, string>>;
|
|
221
|
+
headingLevel?: 'h2' | 'h3' | 'h4';
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Every string any layout in the set can render.
|
|
226
|
+
*
|
|
227
|
+
* Each view extends `ViewLabels` with its own — the calendar's month arrows and
|
|
228
|
+
* "+n more", the board's move announcements, the Gantt's undated footnote. They
|
|
229
|
+
* are all shared props, so the per-view escape hatches below exclude `labels`;
|
|
230
|
+
* without widening here a non-English host could translate the common strings
|
|
231
|
+
* and nothing else, which would break the contract that every user-facing
|
|
232
|
+
* string is overridable. A view ignores the keys it does not know.
|
|
233
|
+
*/
|
|
234
|
+
type ViewSetLabels = Partial<CalendarLabels & BoardLabels & GanttLabels>;
|
|
235
|
+
/**
|
|
236
|
+
* Props `ViewSet` passes to every layout itself, beyond `ViewBaseProps`. Named
|
|
237
|
+
* here so the per-view escape hatches below can exclude them by key rather than
|
|
238
|
+
* by a hand-kept list that would drift the moment a shared prop is added.
|
|
239
|
+
*/
|
|
240
|
+
type ViewSetOwned = 'stages' | 'onMove' | 'timeZone' | 'locale';
|
|
241
|
+
type ViewOverrides<P, T> = Omit<Partial<P>, keyof ViewBaseProps<T> | ViewSetOwned>;
|
|
242
|
+
interface ViewSetProps<T> extends ViewBaseProps<T> {
|
|
243
|
+
/** Every string any offered layout can render, not just the shared ones. */
|
|
244
|
+
labels?: ViewSetLabels;
|
|
245
|
+
/** Views to offer, in order. The first is the default when uncontrolled. */
|
|
246
|
+
views: readonly (ViewId | ViewOption)[];
|
|
247
|
+
view?: ViewId;
|
|
248
|
+
defaultView?: ViewId;
|
|
249
|
+
onViewChange?: (view: ViewId) => void;
|
|
250
|
+
/**
|
|
251
|
+
* Remembers the chosen view under this key. Ignored when `view` is
|
|
252
|
+
* controlled — a page with its own URL state should own it there instead.
|
|
253
|
+
*/
|
|
254
|
+
storageKey?: string;
|
|
255
|
+
/** Stages for the board and for list grouping. */
|
|
256
|
+
stages?: readonly Stage[];
|
|
257
|
+
onMove?: BoardViewProps<T>['onMove'];
|
|
258
|
+
/**
|
|
259
|
+
* IANA zone the date views read day boundaries in. Shared, because a page
|
|
260
|
+
* showing one collection as a calendar and as a Gantt must place it on the
|
|
261
|
+
* same days in both.
|
|
262
|
+
*/
|
|
263
|
+
timeZone?: string;
|
|
264
|
+
/** Locale for date formatting in the calendar and Gantt. */
|
|
265
|
+
locale?: string;
|
|
266
|
+
/** Rendered above the switcher row. */
|
|
267
|
+
toolbar?: React.ReactNode;
|
|
268
|
+
/** Rendered under the switcher row, above the view. */
|
|
269
|
+
filters?: React.ReactNode;
|
|
270
|
+
/** The `overview` view. Domain content — the library has no opinion on it. */
|
|
271
|
+
overview?: React.ReactNode;
|
|
272
|
+
/** The `table` view. A tabular collection is a grid, not a view component. */
|
|
273
|
+
table?: React.ReactNode;
|
|
274
|
+
/** Rendered beside the view, for a list-plus-detail layout. */
|
|
275
|
+
detail?: React.ReactNode;
|
|
276
|
+
/**
|
|
277
|
+
* Per-view escape hatches for props this shell does not surface. Shared props
|
|
278
|
+
* are excluded: one collection rendered several ways means switching view can
|
|
279
|
+
* never change the records, the selection or the load state.
|
|
280
|
+
*
|
|
281
|
+
* `ViewSetOwned` covers the props the shell passes itself but that are not on
|
|
282
|
+
* `ViewBaseProps`. They are spread after the shared ones, so leaving them open
|
|
283
|
+
* would let one layout carry different stages, a different mutation callback
|
|
284
|
+
* or a different time zone from its neighbours — the same collection quietly
|
|
285
|
+
* disagreeing with itself as you switch tabs.
|
|
286
|
+
*/
|
|
287
|
+
listProps?: ViewOverrides<ListViewProps<T>, T>;
|
|
288
|
+
boardProps?: ViewOverrides<BoardViewProps<T>, T>;
|
|
289
|
+
calendarProps?: ViewOverrides<CalendarViewProps<T>, T>;
|
|
290
|
+
ganttProps?: ViewOverrides<GanttViewProps<T>, T>;
|
|
291
|
+
classNames?: Partial<Record<'toolbar' | 'switcher' | 'body' | 'detail', string>>;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* The page-level composition: switcher, the enabled views, and the slots a page
|
|
295
|
+
* needs around them. It owns which view is showing and nothing else — items,
|
|
296
|
+
* selection and every mutation stay with the caller.
|
|
297
|
+
*/
|
|
298
|
+
declare function ViewSet<T>({ views, view, defaultView, onViewChange, storageKey, stages, onMove, toolbar, filters, overview, table, detail, listProps, boardProps, calendarProps, ganttProps, className, classNames, ...shared }: ViewSetProps<T>): react_jsx_runtime.JSX.Element;
|
|
299
|
+
|
|
300
|
+
export { ViewSet, type ViewSetLabels, type ViewSetProps };
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The contract every component in the `Modules/Views` family reads through.
|
|
8
|
+
*
|
|
9
|
+
* A page describes its collection once — which field is the id, the title, the
|
|
10
|
+
* status, the start date — and every view understands it. That is the whole
|
|
11
|
+
* reason the family exists: without it each view needs its own adapter and you
|
|
12
|
+
* end up re-implementing the same board per entity.
|
|
13
|
+
*
|
|
14
|
+
* Views are headless. Nothing here fetches, subscribes, or navigates.
|
|
15
|
+
* See CONTRIBUTING → "Modules: headless data components".
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Which layout is on screen. `overview` and `table` are rendered by the host
|
|
20
|
+
* through `ViewSet` slots rather than by a component in this family — a tabular
|
|
21
|
+
* collection is `DataVisNitroGrid`, and an overview is domain content.
|
|
22
|
+
*/
|
|
23
|
+
type ViewId = 'overview' | 'list' | 'board' | 'calendar' | 'gantt' | 'roadmap' | 'table';
|
|
24
|
+
/**
|
|
25
|
+
* A semantic colour name, resolved to `--mieweb-*` tokens by each view.
|
|
26
|
+
*
|
|
27
|
+
* Accessors return one of these rather than a class string so a caller cannot
|
|
28
|
+
* hardcode a palette that breaks under another brand or in dark mode.
|
|
29
|
+
*/
|
|
30
|
+
type Accent = 'primary' | 'success' | 'warning' | 'destructive' | 'info' | 'neutral';
|
|
31
|
+
/** A named stage: a board column, and the segments of a stage bar. */
|
|
32
|
+
interface Stage {
|
|
33
|
+
id: string;
|
|
34
|
+
label: string;
|
|
35
|
+
accent?: Accent;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* How a view reads one item. Only `getId` and `getTitle` are always required;
|
|
39
|
+
* each view documents which of the rest it needs (a board needs `getStatus`, a
|
|
40
|
+
* Gantt needs `getStart`) and renders an explanatory empty state without them.
|
|
41
|
+
*/
|
|
42
|
+
interface ViewAccessors<T> {
|
|
43
|
+
getId: (item: T) => string;
|
|
44
|
+
getTitle: (item: T) => string;
|
|
45
|
+
/** Secondary line under the title. */
|
|
46
|
+
getSubtitle?: (item: T) => string | undefined;
|
|
47
|
+
/** Board column and list group; matched against `Stage['id']`. */
|
|
48
|
+
getStatus?: (item: T) => string;
|
|
49
|
+
/** Gantt bar start, calendar placement. */
|
|
50
|
+
getStart?: (item: T) => Date | string | null | undefined;
|
|
51
|
+
/** Gantt bar end, calendar span. Falls back to the start when absent. */
|
|
52
|
+
getEnd?: (item: T) => Date | string | null | undefined;
|
|
53
|
+
/** Swimlane in a roadmap, row group in a Gantt. */
|
|
54
|
+
getGroup?: (item: T) => string | undefined;
|
|
55
|
+
getAccent?: (item: T) => Accent;
|
|
56
|
+
}
|
|
57
|
+
/** Strings a view renders. Every one is overridable; the defaults are English. */
|
|
58
|
+
interface ViewLabels {
|
|
59
|
+
/** Accessible name of the view switcher group. */
|
|
60
|
+
viewSwitcher: string;
|
|
61
|
+
loading: string;
|
|
62
|
+
empty: string;
|
|
63
|
+
error: string;
|
|
64
|
+
/** Action on the error state. */
|
|
65
|
+
retry: string;
|
|
66
|
+
/** Heading for the group a record with no status or group falls into. */
|
|
67
|
+
ungrouped: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Props every view accepts. Views are controlled: selection, the active view and
|
|
71
|
+
* filter state live in the page, and every change is handed back.
|
|
72
|
+
*/
|
|
73
|
+
interface ViewBaseProps<T> {
|
|
74
|
+
items: T[];
|
|
75
|
+
accessors: ViewAccessors<T>;
|
|
76
|
+
loading?: boolean;
|
|
77
|
+
error?: Error | null;
|
|
78
|
+
selectedId?: string | null;
|
|
79
|
+
/** Called when the user activates an item. */
|
|
80
|
+
onOpen?: (id: string, item: T) => void;
|
|
81
|
+
/** Return a URL to render each item as a real anchor — middle-clickable and crawlable. */
|
|
82
|
+
getHref?: (id: string, item: T) => string;
|
|
83
|
+
/** Render one item. Receives the active view so one function can serve several. */
|
|
84
|
+
renderItem?: (item: T, context: {
|
|
85
|
+
view: ViewId;
|
|
86
|
+
}) => React.ReactNode;
|
|
87
|
+
/** Replaces the built-in empty state. */
|
|
88
|
+
emptyState?: React.ReactNode;
|
|
89
|
+
labels?: Partial<ViewLabels>;
|
|
90
|
+
/** Pins "today" so stories, tests and visual snapshots stay deterministic. */
|
|
91
|
+
now?: Date;
|
|
92
|
+
className?: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
interface ViewOption {
|
|
96
|
+
id: ViewId;
|
|
97
|
+
/** Overrides the built-in English label. */
|
|
98
|
+
label?: string;
|
|
99
|
+
/** Overrides the built-in icon. */
|
|
100
|
+
icon?: React.ComponentType<{
|
|
101
|
+
className?: string;
|
|
102
|
+
'aria-hidden'?: boolean;
|
|
103
|
+
}>;
|
|
104
|
+
disabled?: boolean;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
type ListViewSlot = 'group' | 'groupHeader' | 'item' | 'selectedItem' | 'state';
|
|
108
|
+
interface ListViewProps<T> extends ViewBaseProps<T>, VariantProps<typeof itemVariants> {
|
|
109
|
+
/**
|
|
110
|
+
* Group rows by `accessors.getStatus`, using these stages for order and
|
|
111
|
+
* labels. Items whose status matches no stage are appended under their own
|
|
112
|
+
* heading rather than dropped.
|
|
113
|
+
*/
|
|
114
|
+
stages?: readonly Stage[];
|
|
115
|
+
/** Group by `accessors.getGroup` instead of by stage. */
|
|
116
|
+
groupBy?: 'status' | 'group' | 'none';
|
|
117
|
+
/** Groups that start collapsed. Uncontrolled; the user can reopen them. */
|
|
118
|
+
defaultCollapsedGroups?: readonly string[];
|
|
119
|
+
/** Retries the failed load. Renders the retry action only when provided. */
|
|
120
|
+
onRetry?: () => void;
|
|
121
|
+
classNames?: Partial<Record<ListViewSlot, string>>;
|
|
122
|
+
/** Heading level for group headers, under the page's own heading. */
|
|
123
|
+
headingLevel?: 'h2' | 'h3' | 'h4';
|
|
124
|
+
}
|
|
125
|
+
declare const itemVariants: (props?: ({
|
|
126
|
+
density?: "comfortable" | "compact" | null | undefined;
|
|
127
|
+
interactive?: boolean | null | undefined;
|
|
128
|
+
selected?: boolean | null | undefined;
|
|
129
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
130
|
+
|
|
131
|
+
type BoardViewSlot = 'column' | 'columnHeader' | 'card' | 'selectedCard' | 'state';
|
|
132
|
+
interface BoardLabels extends ViewLabels {
|
|
133
|
+
/** Accessible name of the scrollable board region. */
|
|
134
|
+
board: string;
|
|
135
|
+
/** Announced when a card starts moving. `{item}` and `{stage}` are substituted. */
|
|
136
|
+
moved: string;
|
|
137
|
+
/** Announced when `onMove` rejects. */
|
|
138
|
+
moveFailed: string;
|
|
139
|
+
/** Hint on a focusable card describing the keyboard move. */
|
|
140
|
+
moveHint: string;
|
|
141
|
+
}
|
|
142
|
+
interface BoardViewProps<T> extends ViewBaseProps<T>, VariantProps<typeof cardVariants> {
|
|
143
|
+
/** Columns, in order. A board without stages has nothing to draw. */
|
|
144
|
+
stages: readonly Stage[];
|
|
145
|
+
/**
|
|
146
|
+
* Commits a move. The board shows the card in its new column while this is
|
|
147
|
+
* pending and puts it back if the promise rejects, so the caller never has to
|
|
148
|
+
* re-render it home.
|
|
149
|
+
*/
|
|
150
|
+
onMove?: (id: string, toStage: string, item: T) => void | Promise<void>;
|
|
151
|
+
labels?: Partial<BoardLabels>;
|
|
152
|
+
classNames?: Partial<Record<BoardViewSlot, string>>;
|
|
153
|
+
/** Heading level for column headers, under the page's own heading. */
|
|
154
|
+
headingLevel?: 'h2' | 'h3' | 'h4';
|
|
155
|
+
}
|
|
156
|
+
declare const cardVariants: (props?: ({
|
|
157
|
+
density?: "comfortable" | "compact" | null | undefined;
|
|
158
|
+
interactive?: boolean | null | undefined;
|
|
159
|
+
selected?: boolean | null | undefined;
|
|
160
|
+
pending?: boolean | null | undefined;
|
|
161
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
162
|
+
|
|
163
|
+
type CalendarViewSlot = 'toolbar' | 'weekday' | 'day' | 'outsideDay' | 'today' | 'entry' | 'selectedEntry' | 'state';
|
|
164
|
+
interface CalendarLabels extends ViewLabels {
|
|
165
|
+
previousMonth: string;
|
|
166
|
+
nextMonth: string;
|
|
167
|
+
today: string;
|
|
168
|
+
/** Overflow affordance. `{count}` is substituted. */
|
|
169
|
+
more: string;
|
|
170
|
+
}
|
|
171
|
+
interface CalendarViewProps<T> extends ViewBaseProps<T> {
|
|
172
|
+
/** Controlled month. Any date inside the month works. */
|
|
173
|
+
month?: Date;
|
|
174
|
+
/** Starting month when uncontrolled. Defaults to the month containing `now`. */
|
|
175
|
+
defaultMonth?: Date;
|
|
176
|
+
onMonthChange?: (month: Date) => void;
|
|
177
|
+
/**
|
|
178
|
+
* IANA zone the grid is drawn in, e.g. `America/New_York`. Defaults to the
|
|
179
|
+
* runtime's. A day boundary is a business fact, so state it explicitly when
|
|
180
|
+
* the collection belongs to somewhere other than the viewer.
|
|
181
|
+
*/
|
|
182
|
+
timeZone?: string;
|
|
183
|
+
/** 1 = Monday … 7 = Sunday. Defaults to Monday. */
|
|
184
|
+
weekStartsOn?: number;
|
|
185
|
+
/** Locale for month, weekday and day-number formatting. */
|
|
186
|
+
locale?: string;
|
|
187
|
+
/** Entries to show per day before collapsing into "{count} more". */
|
|
188
|
+
maxPerDay?: number;
|
|
189
|
+
labels?: Partial<CalendarLabels>;
|
|
190
|
+
classNames?: Partial<Record<CalendarViewSlot, string>>;
|
|
191
|
+
/** Hide the month toolbar when the host renders its own. */
|
|
192
|
+
hideToolbar?: boolean;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Column width in time. `month` and `quarter` are what a roadmap is — the
|
|
197
|
+
* family has no separate RoadmapView, because it would be this component with
|
|
198
|
+
* wider columns.
|
|
199
|
+
*/
|
|
200
|
+
type GanttCadence = 'day' | 'week' | 'month' | 'quarter';
|
|
201
|
+
type GanttViewSlot = 'header' | 'groupLabel' | 'row' | 'bar' | 'selectedBar' | 'state';
|
|
202
|
+
interface GanttLabels extends ViewLabels {
|
|
203
|
+
/** Accessible name of the scrollable chart region. */
|
|
204
|
+
chart: string;
|
|
205
|
+
/** Footnote for records a time axis cannot place. `{count}` is substituted. */
|
|
206
|
+
undated: string;
|
|
207
|
+
}
|
|
208
|
+
interface GanttViewProps<T> extends ViewBaseProps<T> {
|
|
209
|
+
/** Column width in time. Defaults to `week`. */
|
|
210
|
+
cadence?: GanttCadence;
|
|
211
|
+
/** First column. Defaults to the earliest start in `items`. */
|
|
212
|
+
rangeStart?: Date;
|
|
213
|
+
/** Last column. Defaults to the latest end in `items`. */
|
|
214
|
+
rangeEnd?: Date;
|
|
215
|
+
/** Group rows into swimlanes by `accessors.getGroup`. */
|
|
216
|
+
groupByLane?: boolean;
|
|
217
|
+
timeZone?: string;
|
|
218
|
+
locale?: string;
|
|
219
|
+
labels?: Partial<GanttLabels>;
|
|
220
|
+
classNames?: Partial<Record<GanttViewSlot, string>>;
|
|
221
|
+
headingLevel?: 'h2' | 'h3' | 'h4';
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Every string any layout in the set can render.
|
|
226
|
+
*
|
|
227
|
+
* Each view extends `ViewLabels` with its own — the calendar's month arrows and
|
|
228
|
+
* "+n more", the board's move announcements, the Gantt's undated footnote. They
|
|
229
|
+
* are all shared props, so the per-view escape hatches below exclude `labels`;
|
|
230
|
+
* without widening here a non-English host could translate the common strings
|
|
231
|
+
* and nothing else, which would break the contract that every user-facing
|
|
232
|
+
* string is overridable. A view ignores the keys it does not know.
|
|
233
|
+
*/
|
|
234
|
+
type ViewSetLabels = Partial<CalendarLabels & BoardLabels & GanttLabels>;
|
|
235
|
+
/**
|
|
236
|
+
* Props `ViewSet` passes to every layout itself, beyond `ViewBaseProps`. Named
|
|
237
|
+
* here so the per-view escape hatches below can exclude them by key rather than
|
|
238
|
+
* by a hand-kept list that would drift the moment a shared prop is added.
|
|
239
|
+
*/
|
|
240
|
+
type ViewSetOwned = 'stages' | 'onMove' | 'timeZone' | 'locale';
|
|
241
|
+
type ViewOverrides<P, T> = Omit<Partial<P>, keyof ViewBaseProps<T> | ViewSetOwned>;
|
|
242
|
+
interface ViewSetProps<T> extends ViewBaseProps<T> {
|
|
243
|
+
/** Every string any offered layout can render, not just the shared ones. */
|
|
244
|
+
labels?: ViewSetLabels;
|
|
245
|
+
/** Views to offer, in order. The first is the default when uncontrolled. */
|
|
246
|
+
views: readonly (ViewId | ViewOption)[];
|
|
247
|
+
view?: ViewId;
|
|
248
|
+
defaultView?: ViewId;
|
|
249
|
+
onViewChange?: (view: ViewId) => void;
|
|
250
|
+
/**
|
|
251
|
+
* Remembers the chosen view under this key. Ignored when `view` is
|
|
252
|
+
* controlled — a page with its own URL state should own it there instead.
|
|
253
|
+
*/
|
|
254
|
+
storageKey?: string;
|
|
255
|
+
/** Stages for the board and for list grouping. */
|
|
256
|
+
stages?: readonly Stage[];
|
|
257
|
+
onMove?: BoardViewProps<T>['onMove'];
|
|
258
|
+
/**
|
|
259
|
+
* IANA zone the date views read day boundaries in. Shared, because a page
|
|
260
|
+
* showing one collection as a calendar and as a Gantt must place it on the
|
|
261
|
+
* same days in both.
|
|
262
|
+
*/
|
|
263
|
+
timeZone?: string;
|
|
264
|
+
/** Locale for date formatting in the calendar and Gantt. */
|
|
265
|
+
locale?: string;
|
|
266
|
+
/** Rendered above the switcher row. */
|
|
267
|
+
toolbar?: React.ReactNode;
|
|
268
|
+
/** Rendered under the switcher row, above the view. */
|
|
269
|
+
filters?: React.ReactNode;
|
|
270
|
+
/** The `overview` view. Domain content — the library has no opinion on it. */
|
|
271
|
+
overview?: React.ReactNode;
|
|
272
|
+
/** The `table` view. A tabular collection is a grid, not a view component. */
|
|
273
|
+
table?: React.ReactNode;
|
|
274
|
+
/** Rendered beside the view, for a list-plus-detail layout. */
|
|
275
|
+
detail?: React.ReactNode;
|
|
276
|
+
/**
|
|
277
|
+
* Per-view escape hatches for props this shell does not surface. Shared props
|
|
278
|
+
* are excluded: one collection rendered several ways means switching view can
|
|
279
|
+
* never change the records, the selection or the load state.
|
|
280
|
+
*
|
|
281
|
+
* `ViewSetOwned` covers the props the shell passes itself but that are not on
|
|
282
|
+
* `ViewBaseProps`. They are spread after the shared ones, so leaving them open
|
|
283
|
+
* would let one layout carry different stages, a different mutation callback
|
|
284
|
+
* or a different time zone from its neighbours — the same collection quietly
|
|
285
|
+
* disagreeing with itself as you switch tabs.
|
|
286
|
+
*/
|
|
287
|
+
listProps?: ViewOverrides<ListViewProps<T>, T>;
|
|
288
|
+
boardProps?: ViewOverrides<BoardViewProps<T>, T>;
|
|
289
|
+
calendarProps?: ViewOverrides<CalendarViewProps<T>, T>;
|
|
290
|
+
ganttProps?: ViewOverrides<GanttViewProps<T>, T>;
|
|
291
|
+
classNames?: Partial<Record<'toolbar' | 'switcher' | 'body' | 'detail', string>>;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* The page-level composition: switcher, the enabled views, and the slots a page
|
|
295
|
+
* needs around them. It owns which view is showing and nothing else — items,
|
|
296
|
+
* selection and every mutation stay with the caller.
|
|
297
|
+
*/
|
|
298
|
+
declare function ViewSet<T>({ views, view, defaultView, onViewChange, storageKey, stages, onMove, toolbar, filters, overview, table, detail, listProps, boardProps, calendarProps, ganttProps, className, classNames, ...shared }: ViewSetProps<T>): react_jsx_runtime.JSX.Element;
|
|
299
|
+
|
|
300
|
+
export { ViewSet, type ViewSetLabels, type ViewSetProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { ViewSet } from '../../chunk-IYWG72DM.js';
|
|
2
|
+
import '../../chunk-IT775BYG.js';
|
|
3
|
+
import '../../chunk-4HC2IBOX.js';
|
|
4
|
+
import '../../chunk-Y4QNLW7W.js';
|
|
5
|
+
import '../../chunk-XBTKZCZF.js';
|
|
6
|
+
import '../../chunk-XVW5DPPP.js';
|
|
7
|
+
import '../../chunk-3YBS4WUQ.js';
|
|
8
|
+
import '../../chunk-UA7E7PDS.js';
|
|
9
|
+
import '../../chunk-BKSPDTX4.js';
|
|
10
|
+
import '../../chunk-7YO7DNUV.js';
|
|
11
|
+
import '../../chunk-GVM6DTR5.js';
|
|
12
|
+
import '../../chunk-TQONQSJO.js';
|
|
13
|
+
import '../../chunk-PX6F3LHL.js';
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXDIMTPZU_cjs = require('../../chunk-XDIMTPZU.cjs');
|
|
4
|
+
require('../../chunk-4NCDU5IG.cjs');
|
|
5
|
+
require('../../chunk-L7L5S2HO.cjs');
|
|
6
|
+
require('../../chunk-S5RVSXDV.cjs');
|
|
7
|
+
require('../../chunk-EUAMEVVI.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "ViewSwitcher", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkXDIMTPZU_cjs.ViewSwitcher; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "viewSwitcherVariants", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkXDIMTPZU_cjs.viewSwitcherVariants; }
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
20
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|