@spteck/react-controls-v2 2.0.18 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +143 -387
- package/dist/LocalizationProvider-BLjmybBa.cjs +2 -0
- package/dist/LocalizationProvider-BSlUf0tp.js +497 -0
- package/dist/_arrayEach-CnIMt1eB.js +61 -0
- package/dist/_arrayEach-vx8gLv03.cjs +2 -0
- package/dist/abstractions/ILocalizationProvider.d.ts +52 -0
- package/dist/abstractions/index.d.ts +1 -0
- package/dist/abstractions/providers/DefaultLocalizationProvider.d.ts +52 -0
- package/dist/abstractions/providers/LocalizationProvider.d.ts +47 -0
- package/dist/abstractions/providers/index.d.ts +3 -1
- package/dist/ar-C1pLt8fa.js +219 -0
- package/dist/ar-Jzw7PLrc.cjs +2 -0
- package/dist/arc-DPTV8xm_.js +132 -0
- package/dist/arc-fdHOvWdS.cjs +2 -0
- package/dist/architecture-7HQA4BMR-BAUhgjE2.js +6 -0
- package/dist/architecture-7HQA4BMR-DwCjpO72.cjs +2 -0
- package/dist/architectureDiagram-VXUJARFQ-B5yGOjRk.js +8680 -0
- package/dist/architectureDiagram-VXUJARFQ-C7K57uon.cjs +2 -0
- package/dist/az-C0Ow5Hxa.cjs +2 -0
- package/dist/az-C3-F9ybX.js +219 -0
- package/dist/bg-YB0TmpRF.cjs +2 -0
- package/dist/bg-w2e_udiK.js +219 -0
- package/dist/blockDiagram-VD42YOAC-B9MtQVc8.js +3756 -0
- package/dist/blockDiagram-VD42YOAC-CXUX1_9K.cjs +2 -0
- package/dist/bs-BoW04lRb.cjs +2 -0
- package/dist/bs-CEe_gjEx.js +219 -0
- package/dist/c4Diagram-YG6GDRKO-0rSYap-S.cjs +2 -0
- package/dist/c4Diagram-YG6GDRKO-CKFTKCbq.js +2483 -0
- package/dist/ca-Bsy2Y5pS.cjs +2 -0
- package/dist/ca-CKpd72XI.js +219 -0
- package/dist/channel-CJ2FoHig.js +8 -0
- package/dist/channel-DjKs64mj.cjs +2 -0
- package/dist/chunk-4BX2VUAB-DJlF8TIZ.cjs +2 -0
- package/dist/chunk-4BX2VUAB-ghaW5jSQ.js +18 -0
- package/dist/chunk-55IACEB6-9B1z6QHL.cjs +2 -0
- package/dist/chunk-55IACEB6-__yJgpDO.js +14 -0
- package/dist/chunk-B4BG7PRW-Dbzu88Oo.cjs +2 -0
- package/dist/chunk-B4BG7PRW-NVucxzRs.js +1828 -0
- package/dist/chunk-DI55MBZ5-Bun58OTZ.js +1928 -0
- package/dist/chunk-DI55MBZ5-e__JA50C.cjs +2 -0
- package/dist/chunk-FMBD7UC4-DulgQOWY.js +20 -0
- package/dist/chunk-FMBD7UC4-Pi8Fs7F6.cjs +2 -0
- package/dist/chunk-QN33PNHL-DA_6jplh.js +26 -0
- package/dist/chunk-QN33PNHL-DcHwlyDo.cjs +2 -0
- package/dist/chunk-QZHKN3VN-BfGBK4_s.cjs +2 -0
- package/dist/chunk-QZHKN3VN-C5x9oEL1.js +18 -0
- package/dist/chunk-TZMSLE5B-BCBp8EeB.cjs +2 -0
- package/dist/chunk-TZMSLE5B-Bj2-6aT8.js +109 -0
- package/dist/classDiagram-2ON5EDUG-BGUaVc1W.cjs +2 -0
- package/dist/classDiagram-2ON5EDUG-BcR1HP9z.js +20 -0
- package/dist/classDiagram-v2-WZHVMYZB-BGUaVc1W.cjs +2 -0
- package/dist/classDiagram-v2-WZHVMYZB-BcR1HP9z.js +20 -0
- package/dist/components/AISearchControl/index.d.ts +1 -0
- package/dist/components/Card/index.d.ts +0 -1
- package/dist/components/Carousel/index.d.ts +0 -3
- package/dist/components/Container/Container.d.ts +1 -9
- package/dist/components/Container/IContainerProps.d.ts +10 -4
- package/dist/components/Container/index.d.ts +1 -1
- package/dist/components/ContentRenderer/ContentRenderer.d.ts +1 -37
- package/dist/components/ContentRenderer/IContentRendererProps.d.ts +45 -0
- package/dist/components/ContentRenderer/index.d.ts +1 -1
- package/dist/components/DataGridV2/DataGridHandle.d.ts +14 -0
- package/dist/components/DataGridV2/DataGridV2.d.ts +2 -36
- package/dist/components/DataGridV2/IDataGridV2ExtraProps.d.ts +25 -0
- package/dist/components/DataGridV2/index.d.ts +1 -0
- package/dist/components/Grid/useGridStyles.d.ts +1 -1
- package/dist/components/ItemPicker/IItemPickerOption.d.ts +14 -0
- package/dist/components/ItemPicker/IItemPickerPagingInfo.d.ts +9 -0
- package/dist/components/ItemPicker/IItemPickerProps.d.ts +54 -0
- package/dist/components/ItemPicker/ItemPicker.d.ts +4 -0
- package/dist/components/ItemPicker/index.d.ts +5 -0
- package/dist/components/ItemPicker/useItemPickerStyles.d.ts +10 -0
- package/dist/components/KPIControl/IKpiCardData.d.ts +19 -0
- package/dist/components/KPIControl/IKpiCardProps.d.ts +6 -0
- package/dist/components/KPIControl/KpiCard.d.ts +4 -0
- package/dist/components/KPIControl/KpiCardCompact.d.ts +4 -0
- package/dist/components/KPIControl/KpiCardSkeleton.d.ts +8 -0
- package/dist/components/KPIControl/Kpis.d.ts +7 -0
- package/dist/components/KPIControl/NoKpisCard.d.ts +8 -0
- package/dist/components/KPIControl/index.d.ts +8 -0
- package/dist/components/KPIControl/useKpiStyles.d.ts +33 -0
- package/dist/components/ListToolbar/FlatItem.d.ts +8 -0
- package/dist/components/ListToolbar/IListToolbarProps.d.ts +27 -0
- package/dist/components/ListToolbar/IToolbarItem.d.ts +37 -0
- package/dist/components/ListToolbar/IToolbarItemRendererProps.d.ts +13 -0
- package/dist/components/ListToolbar/ListToolbar.d.ts +5 -0
- package/dist/components/ListToolbar/ToolbarItemRenderer.d.ts +7 -0
- package/dist/components/ListToolbar/helpers.d.ts +6 -0
- package/dist/components/ListToolbar/index.d.ts +4 -0
- package/dist/components/ListToolbar/useListToolbarStyles.d.ts +16 -0
- package/dist/components/ListToolbar/useOverflowIndex.d.ts +18 -0
- package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts +1 -1
- package/dist/components/MarkdownRenderer/useMarkdownStyles.d.ts +4 -0
- package/dist/components/MermaidDiagram/IMermaidDiagramProps.d.ts +31 -0
- package/dist/components/MermaidDiagram/MermaidDiagram.d.ts +4 -0
- package/dist/components/MermaidDiagram/index.d.ts +4 -0
- package/dist/components/MermaidDiagram/useMermaidDiagramStyles.d.ts +9 -0
- package/dist/components/Navigation/INavigationProps.d.ts +141 -0
- package/dist/components/Navigation/Navigation.d.ts +27 -0
- package/dist/components/Navigation/index.d.ts +4 -0
- package/dist/components/Navigation/useNavigationStyles.d.ts +13 -0
- package/dist/components/SelectTime/IOptionTimeProps.d.ts +23 -0
- package/dist/components/SelectTime/ISelectTimeProps.d.ts +25 -0
- package/dist/components/SelectTime/OptionTime.d.ts +16 -0
- package/dist/components/SelectTime/SelectTime.d.ts +4 -0
- package/dist/components/SelectTime/index.d.ts +7 -0
- package/dist/components/SelectTime/useOptionTimeStyles.d.ts +6 -0
- package/dist/components/SelectTime/useSelectTimeStyles.d.ts +7 -0
- package/dist/components/SplitPane/ISplitPaneProps.d.ts +28 -0
- package/dist/components/SplitPane/SplitPane.d.ts +10 -0
- package/dist/components/SplitPane/index.d.ts +4 -0
- package/dist/components/SplitPane/useSplitPaneStyles.d.ts +13 -0
- package/dist/components/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts +1 -1
- package/dist/components/adaptiveCardHost/fluentUI/renderCompat.d.ts +7 -0
- package/dist/components/aiAssistant/index.d.ts +1 -0
- package/dist/components/appDashboard/IAppDashboardProps.d.ts +2 -2
- package/dist/components/breadcrumb/IBreadcrumProps.d.ts +1 -1
- package/dist/components/breadcrumb/index.d.ts +1 -0
- package/dist/components/customControlBar/CustomControlBar.d.ts +1 -13
- package/dist/components/customControlBar/IControlItem.d.ts +6 -0
- package/dist/components/customControlBar/ICustomControlBarProps.d.ts +11 -0
- package/dist/components/customControlBar/index.d.ts +2 -0
- package/dist/components/dropDownField/useDropdownFieldStyles.d.ts +5 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/inputField/IInputFieldProps.d.ts +22 -0
- package/dist/components/inputField/InputField.d.ts +4 -0
- package/dist/components/inputField/index.d.ts +3 -0
- package/dist/components/inputField/useInputFieldStyles.d.ts +5 -0
- package/dist/components/renderDrawer/RenderDrawer.d.ts +1 -4
- package/dist/components/renderHeader/index.d.ts +1 -0
- package/dist/components/searchControl/ISearchControlProps.d.ts +14 -0
- package/dist/components/searchControl/SearchControl.d.ts +5 -0
- package/dist/components/searchControl/index.d.ts +3 -0
- package/dist/components/searchControl/useSearchControlStyles.d.ts +13 -0
- package/dist/components/stackv2/StackV2.d.ts +1 -1
- package/dist/components/worldMap/index.d.ts +2 -0
- package/dist/components/worldMap/useContentToolTipStyles.d.ts +2 -8
- package/dist/cose-bilkent-S5V4N54A-BcLbJZT7.cjs +2 -0
- package/dist/cose-bilkent-S5V4N54A-CtEV3dGx.js +4934 -0
- package/dist/cs-D-801PIR.cjs +2 -0
- package/dist/cs-DQvRPciB.js +219 -0
- package/dist/cy-BxyJCM05.js +219 -0
- package/dist/cy-aUPUcn-S.cjs +2 -0
- package/dist/cytoscape.esm-BS1owLay.js +30250 -0
- package/dist/cytoscape.esm-BxB3woZB.cjs +10 -0
- package/dist/da-B05ad5Iq.js +219 -0
- package/dist/da-CTiLOqut.cjs +2 -0
- package/dist/dagre-6UL2VRFP-BZ9apxkx.js +696 -0
- package/dist/dagre-6UL2VRFP-FmOJGmX_.cjs +2 -0
- package/dist/de-DJ5iwpd7.js +219 -0
- package/dist/de-Dm204UMA.cjs +2 -0
- package/dist/defaultLocale-7NeEK7SF.cjs +2 -0
- package/dist/defaultLocale-DVr69WTU.js +207 -0
- package/dist/diagram-PSM6KHXK-BZxXJahR.cjs +2 -0
- package/dist/diagram-PSM6KHXK-_wkJk__z.js +848 -0
- package/dist/diagram-QEK2KX5R-NQiK3YZe.cjs +2 -0
- package/dist/diagram-QEK2KX5R-YQAU79Lo.js +305 -0
- package/dist/diagram-S2PKOQOG-Cob2HIrt.cjs +2 -0
- package/dist/diagram-S2PKOQOG-D8jaJbP8.js +212 -0
- package/dist/el-CBS9mHS3.js +219 -0
- package/dist/el-DbtZj-ph.cjs +2 -0
- package/dist/erDiagram-Q2GNP2WA-DAzex-RZ.cjs +2 -0
- package/dist/erDiagram-Q2GNP2WA-syuB6Tgc.js +1160 -0
- package/dist/es-Bo08apQr.js +219 -0
- package/dist/es-Cc-4Vqf7.cjs +2 -0
- package/dist/et-D5pQ66eY.cjs +2 -0
- package/dist/et-pRL0Tmle.js +219 -0
- package/dist/eu-Br68gaf7.js +219 -0
- package/dist/eu-RZ-27koK.cjs +2 -0
- package/dist/fi-BCXB-k_X.js +219 -0
- package/dist/fi-Dqa9mgnW.cjs +2 -0
- package/dist/flowDiagram-NV44I4VS-CXJA5Xu7.js +2339 -0
- package/dist/flowDiagram-NV44I4VS-DOcXDmk8.cjs +2 -0
- package/dist/fr-B7fhkle4.cjs +2 -0
- package/dist/fr-gKE1SSIF.js +219 -0
- package/dist/ga-4Hf7vKvr.cjs +2 -0
- package/dist/ga-C1SpITZy.js +219 -0
- package/dist/ganttDiagram-JELNMOA3-BodaBsjX.js +3652 -0
- package/dist/ganttDiagram-JELNMOA3-oeOE4Au1.cjs +2 -0
- package/dist/gitGraph-G5XIXVHT-BAoUh2t9.js +6 -0
- package/dist/gitGraph-G5XIXVHT-bEuOx0_B.cjs +2 -0
- package/dist/gitGraphDiagram-V2S2FVAM-B5dByD3_.js +1215 -0
- package/dist/gitGraphDiagram-V2S2FVAM-D4G2FRg-.cjs +2 -0
- package/dist/gl-COSpsMSK.cjs +2 -0
- package/dist/gl-CSzCeu2L.js +219 -0
- package/dist/graph-C7xixGrW.cjs +2 -0
- package/dist/graph-DH3cnEko.js +421 -0
- package/dist/he-BrkfqoIm.js +219 -0
- package/dist/he-C7Wi6-EL.cjs +2 -0
- package/dist/hi-C1RGDPzn.js +219 -0
- package/dist/hi-ojklJj-a.cjs +2 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useLocalizationStrings.d.ts +71 -0
- package/dist/hr-CsO_h2VT.js +219 -0
- package/dist/hr-DkEwOCGU.cjs +2 -0
- package/dist/hu-CVtbM-V2.js +219 -0
- package/dist/hu-D8uAAzvN.cjs +2 -0
- package/dist/id-18yPGK2f.cjs +2 -0
- package/dist/id-CARSN0W8.js +219 -0
- package/dist/index-CP55uT1-.js +55270 -0
- package/dist/index-DkoeCnje.cjs +428 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +165 -200
- package/dist/info-VBDWY6EO-CCtIeR-l.js +6 -0
- package/dist/info-VBDWY6EO-CIQZzC1h.cjs +2 -0
- package/dist/infoDiagram-HS3SLOUP-BCGLBWdb.js +32 -0
- package/dist/infoDiagram-HS3SLOUP-l61UBAGu.cjs +2 -0
- package/dist/init-DZ96s0AS.cjs +2 -0
- package/dist/init-ZxktEp_H.js +17 -0
- package/dist/it-BVq911RW.cjs +2 -0
- package/dist/it-ClWGK7XT.js +219 -0
- package/dist/ja-BgcKuKZ4.cjs +2 -0
- package/dist/ja-DGL12HwE.js +219 -0
- package/dist/journeyDiagram-XKPGCS4Q-CngaMpvw.js +1255 -0
- package/dist/journeyDiagram-XKPGCS4Q-DDFQr_sf.cjs +2 -0
- package/dist/kanban-definition-3W4ZIXB7-DE64tG2k.js +1049 -0
- package/dist/kanban-definition-3W4ZIXB7-Yh2cXBd5.cjs +2 -0
- package/dist/katex-DPu4QpBP.cjs +2 -0
- package/dist/katex-Dd1-wdX2.js +14523 -0
- package/dist/kk-CkKXbKso.js +219 -0
- package/dist/kk-Dn3FBkOR.cjs +2 -0
- package/dist/ko-CKAbV25b.cjs +2 -0
- package/dist/ko-QYvDV2aw.js +219 -0
- package/dist/layout-D6yO7DzL.cjs +2 -0
- package/dist/layout-bxkZz7Cm.js +1919 -0
- package/dist/linear-CytTXQM2.cjs +2 -0
- package/dist/linear-R5bATomY.js +341 -0
- package/dist/localization/ILibraryStrings.d.ts +299 -0
- package/dist/localization/defaults/ar.d.ts +8 -0
- package/dist/localization/defaults/az.d.ts +8 -0
- package/dist/localization/defaults/bg.d.ts +8 -0
- package/dist/localization/defaults/bs.d.ts +8 -0
- package/dist/localization/defaults/ca.d.ts +8 -0
- package/dist/localization/defaults/cs.d.ts +8 -0
- package/dist/localization/defaults/cy.d.ts +8 -0
- package/dist/localization/defaults/da.d.ts +8 -0
- package/dist/localization/defaults/de.d.ts +8 -0
- package/dist/localization/defaults/el.d.ts +8 -0
- package/dist/localization/defaults/en.d.ts +8 -0
- package/dist/localization/defaults/es.d.ts +8 -0
- package/dist/localization/defaults/et.d.ts +8 -0
- package/dist/localization/defaults/eu.d.ts +8 -0
- package/dist/localization/defaults/fi.d.ts +8 -0
- package/dist/localization/defaults/fr.d.ts +8 -0
- package/dist/localization/defaults/ga.d.ts +8 -0
- package/dist/localization/defaults/gl.d.ts +8 -0
- package/dist/localization/defaults/he.d.ts +8 -0
- package/dist/localization/defaults/hi.d.ts +8 -0
- package/dist/localization/defaults/hr.d.ts +8 -0
- package/dist/localization/defaults/hu.d.ts +8 -0
- package/dist/localization/defaults/id.d.ts +8 -0
- package/dist/localization/defaults/index.d.ts +47 -0
- package/dist/localization/defaults/it.d.ts +8 -0
- package/dist/localization/defaults/ja.d.ts +8 -0
- package/dist/localization/defaults/kk.d.ts +8 -0
- package/dist/localization/defaults/ko.d.ts +8 -0
- package/dist/localization/defaults/lt.d.ts +8 -0
- package/dist/localization/defaults/lv.d.ts +8 -0
- package/dist/localization/defaults/mk.d.ts +8 -0
- package/dist/localization/defaults/ms.d.ts +8 -0
- package/dist/localization/defaults/nb.d.ts +8 -0
- package/dist/localization/defaults/nl.d.ts +8 -0
- package/dist/localization/defaults/pl.d.ts +8 -0
- package/dist/localization/defaults/pt.d.ts +8 -0
- package/dist/localization/defaults/ro.d.ts +8 -0
- package/dist/localization/defaults/ru.d.ts +8 -0
- package/dist/localization/defaults/sk.d.ts +8 -0
- package/dist/localization/defaults/sl.d.ts +8 -0
- package/dist/localization/defaults/sr.d.ts +8 -0
- package/dist/localization/defaults/sv.d.ts +8 -0
- package/dist/localization/defaults/th.d.ts +8 -0
- package/dist/localization/defaults/tr.d.ts +8 -0
- package/dist/localization/defaults/uk.d.ts +8 -0
- package/dist/localization/defaults/vi.d.ts +8 -0
- package/dist/localization/defaults/zh.d.ts +8 -0
- package/dist/localization/index.d.ts +8 -0
- package/dist/localization/utils.d.ts +10 -0
- package/dist/lt-BKnFyiLV.js +219 -0
- package/dist/lt-BnGNEsIS.cjs +2 -0
- package/dist/lv-Clqo0Ogm.js +219 -0
- package/dist/lv-D3rJQRhc.cjs +2 -0
- package/dist/maplibre-gl-D9TSGNCf.cjs +6 -0
- package/dist/maplibre-gl-DwyiD0x9.js +23511 -0
- package/dist/mermaid-parser.core-BbdofhA6.js +23791 -0
- package/dist/mermaid-parser.core-C4ChZJz4.cjs +2 -0
- package/dist/mindmap-definition-VGOIOE7T-BonbrEly.cjs +2 -0
- package/dist/mindmap-definition-VGOIOE7T-C8FL7caj.js +1129 -0
- package/dist/mk-EhcD0RzW.js +219 -0
- package/dist/mk-hVxJgrE0.cjs +2 -0
- package/dist/ms-CJACwjo7.js +219 -0
- package/dist/ms-D0txYckK.cjs +2 -0
- package/dist/nb-BfKRl99z.cjs +2 -0
- package/dist/nb-NCgnP0Pu.js +219 -0
- package/dist/nl-EgsNCunP.js +219 -0
- package/dist/nl-ZXiLkBj_.cjs +2 -0
- package/dist/ordinal-BZdahNih.cjs +2 -0
- package/dist/ordinal-DSZU4PqD.js +77 -0
- package/dist/packet-DYOGHKS2-64UpspMA.cjs +2 -0
- package/dist/packet-DYOGHKS2-DCndr5Wp.js +6 -0
- package/dist/pie-VRWISCQL-B_5_SIgL.cjs +2 -0
- package/dist/pie-VRWISCQL-BbSFz_Jh.js +6 -0
- package/dist/pieDiagram-ADFJNKIX-C8b4kPLp.cjs +2 -0
- package/dist/pieDiagram-ADFJNKIX-CQjh4P80.js +238 -0
- package/dist/pl-H28GVtiG.js +219 -0
- package/dist/pl-tVjdYTB9.cjs +2 -0
- package/dist/providers.cjs +2 -0
- package/dist/providers.js +252 -1
- package/dist/pt-1k62N9F3.cjs +2 -0
- package/dist/pt-BSPZhWKl.js +211 -0
- package/dist/quadrantDiagram-AYHSOK5B-Bb99yQJL.cjs +2 -0
- package/dist/quadrantDiagram-AYHSOK5B-BiLBDCHf.js +1338 -0
- package/dist/radar-ZZBFDIW7-DC8bA3_e.cjs +2 -0
- package/dist/radar-ZZBFDIW7-DpGZ3D_F.js +6 -0
- package/dist/requirementDiagram-UZGBJVZJ-BeLfR5tA.cjs +2 -0
- package/dist/requirementDiagram-UZGBJVZJ-D6hcN5kf.js +1164 -0
- package/dist/ro-9Qt1qDDA.cjs +2 -0
- package/dist/ro-BpaZLre_.js +219 -0
- package/dist/ru-4WxRouIU.cjs +2 -0
- package/dist/ru-CUZzD-Tx.js +219 -0
- package/dist/sankeyDiagram-TZEHDZUN-7K2pggbF.js +1194 -0
- package/dist/sankeyDiagram-TZEHDZUN-T1lqY3ke.cjs +2 -0
- package/dist/sequenceDiagram-WL72ISMW-CaSRrEHR.cjs +2 -0
- package/dist/sequenceDiagram-WL72ISMW-DymCRly8.js +3882 -0
- package/dist/sk-CoQ6XiCY.js +219 -0
- package/dist/sk-uWukDQab.cjs +2 -0
- package/dist/sl-B6DVbKg6.cjs +2 -0
- package/dist/sl-CHW-ZGol.js +219 -0
- package/dist/sr-BOD8Tc-D.cjs +2 -0
- package/dist/sr-EQGjIBJE.js +219 -0
- package/dist/stateDiagram-FKZM4ZOC-B3uhYYpW.js +449 -0
- package/dist/stateDiagram-FKZM4ZOC-BETxyYxX.cjs +2 -0
- package/dist/stateDiagram-v2-4FDKWEC3-B4AjT1wB.cjs +2 -0
- package/dist/stateDiagram-v2-4FDKWEC3-BuiA8K0X.js +20 -0
- package/dist/style.css +1 -0
- package/dist/sv-B6nLuQr7.cjs +2 -0
- package/dist/sv-DTxWN6ED.js +219 -0
- package/dist/th-BVPzHvBf.js +219 -0
- package/dist/th-DmULV6uT.cjs +2 -0
- package/dist/timeline-definition-IT6M3QCI-CsJvwNrg.cjs +2 -0
- package/dist/timeline-definition-IT6M3QCI-DNROY61n.js +1227 -0
- package/dist/tr-BE5geTUC.cjs +2 -0
- package/dist/tr-BHR1QA-D.js +219 -0
- package/dist/treemap-GDKQZRPO-DbPXSmw-.js +6 -0
- package/dist/treemap-GDKQZRPO-Dj3L_VQH.cjs +2 -0
- package/dist/uk-Bc5TwelE.js +219 -0
- package/dist/uk-DS5ukB_-.cjs +2 -0
- package/dist/vi-D9FF4kkG.cjs +2 -0
- package/dist/vi-DC0eQZb7.js +219 -0
- package/dist/xychartDiagram-PRI3JC2R-CXT2FhOm.cjs +2 -0
- package/dist/xychartDiagram-PRI3JC2R-D7UaoGaC.js +1887 -0
- package/dist/zh-CGcOiJ3s.cjs +2 -0
- package/dist/zh-GsCLn8OE.js +219 -0
- package/package.json +95 -92
- package/dist/ILoggingProvider-C4FFlnQ0.js +0 -2
- package/dist/ILoggingProvider-C4FFlnQ0.js.map +0 -1
- package/dist/ILoggingProvider-CYYYCGLY.mjs +0 -18
- package/dist/ILoggingProvider-CYYYCGLY.mjs.map +0 -1
- package/dist/abstractions/IApplicationContext.d.ts.map +0 -1
- package/dist/abstractions/IAuthenticationProvider.d.ts.map +0 -1
- package/dist/abstractions/IGraphProvider.d.ts.map +0 -1
- package/dist/abstractions/ILoggingProvider.d.ts.map +0 -1
- package/dist/abstractions/IPageContext.d.ts.map +0 -1
- package/dist/abstractions/IStorageProvider.d.ts.map +0 -1
- package/dist/abstractions/index.d.ts.map +0 -1
- package/dist/abstractions/providers/ConsoleLoggingProvider.d.ts.map +0 -1
- package/dist/abstractions/providers/DefaultGraphClient.d.ts.map +0 -1
- package/dist/abstractions/providers/LocalStorageProvider.d.ts.map +0 -1
- package/dist/abstractions/providers/index.d.ts.map +0 -1
- package/dist/components/AISearchControl/AISearchControl.d.ts.map +0 -1
- package/dist/components/AISearchControl/AISearchIcon.d.ts.map +0 -1
- package/dist/components/AISearchControl/AISearchIconExample.d.ts.map +0 -1
- package/dist/components/AISearchControl/index.d.ts.map +0 -1
- package/dist/components/AISearchControl/useAISearchControlStyles.d.ts.map +0 -1
- package/dist/components/AspectRatio/AspectRatio.d.ts.map +0 -1
- package/dist/components/AspectRatio/IAspectRationProps.d.ts.map +0 -1
- package/dist/components/AspectRatio/index.d.ts.map +0 -1
- package/dist/components/AspectRatio/useAspectRatioStyles.d.ts.map +0 -1
- package/dist/components/Card/Card.d.ts.map +0 -1
- package/dist/components/Card/ICardProps.d.ts.map +0 -1
- package/dist/components/Card/index.d.ts.map +0 -1
- package/dist/components/Card/useCardStyles.d.ts.map +0 -1
- package/dist/components/Carousel/Carousel.d.ts.map +0 -1
- package/dist/components/Carousel/ICarouselProps.d.ts.map +0 -1
- package/dist/components/Carousel/index.d.ts.map +0 -1
- package/dist/components/Carousel/useCarouselButton.d.ts.map +0 -1
- package/dist/components/Carousel/useCarouselStyles.d.ts.map +0 -1
- package/dist/components/Carousel/useCarouselStylesMain.d.ts.map +0 -1
- package/dist/components/Center/Center.d.ts.map +0 -1
- package/dist/components/Center/ICenterProps.d.ts.map +0 -1
- package/dist/components/Center/index.d.ts.map +0 -1
- package/dist/components/Center/useCenterStyles.d.ts.map +0 -1
- package/dist/components/Container/Container.d.ts.map +0 -1
- package/dist/components/Container/IContainerProps.d.ts.map +0 -1
- package/dist/components/Container/index.d.ts.map +0 -1
- package/dist/components/Container/useContainerStyles.d.ts.map +0 -1
- package/dist/components/ContentRenderer/ContentRenderer.d.ts.map +0 -1
- package/dist/components/ContentRenderer/index.d.ts.map +0 -1
- package/dist/components/DataGridV2/DataGridV2.d.ts.map +0 -1
- package/dist/components/DataGridV2/index.d.ts.map +0 -1
- package/dist/components/DataGridV2/useDataGridV2Styles.d.ts.map +0 -1
- package/dist/components/Grid/Grid.d.ts.map +0 -1
- package/dist/components/Grid/IGridProps.d.ts.map +0 -1
- package/dist/components/Grid/index.d.ts.map +0 -1
- package/dist/components/Grid/useGridStyles.d.ts.map +0 -1
- package/dist/components/Layout/ILayoutProps.d.ts.map +0 -1
- package/dist/components/Layout/Layout.d.ts.map +0 -1
- package/dist/components/Layout/LayoutItem.d.ts.map +0 -1
- package/dist/components/Layout/index.d.ts.map +0 -1
- package/dist/components/Layout/useLayoutStyles.d.ts.map +0 -1
- package/dist/components/ListItemActivityMessage/IAction.d.ts.map +0 -1
- package/dist/components/ListItemActivityMessage/IActivity.d.ts.map +0 -1
- package/dist/components/ListItemActivityMessage/IActivityMessageProps.d.ts.map +0 -1
- package/dist/components/ListItemActivityMessage/IActor.d.ts.map +0 -1
- package/dist/components/ListItemActivityMessage/IUserActor.d.ts.map +0 -1
- package/dist/components/ListItemActivityMessage/ListItemActivityMessage.d.ts.map +0 -1
- package/dist/components/ListItemActivityMessage/index.d.ts.map +0 -1
- package/dist/components/ListItemActivityMessage/useSharePointActivities.d.ts.map +0 -1
- package/dist/components/LivePersona/ILivePersonaProps.d.ts.map +0 -1
- package/dist/components/LivePersona/LivePersona.d.ts.map +0 -1
- package/dist/components/LivePersona/index.d.ts.map +0 -1
- package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +0 -1
- package/dist/components/MarkdownRenderer/index.d.ts.map +0 -1
- package/dist/components/Popup/Popup.d.ts.map +0 -1
- package/dist/components/Popup/index.d.ts.map +0 -1
- package/dist/components/Provider/UniversalProvider.d.ts.map +0 -1
- package/dist/components/Provider/index.d.ts.map +0 -1
- package/dist/components/RenderLabel/RenderLabel.d.ts.map +0 -1
- package/dist/components/RenderLabel/index.d.ts.map +0 -1
- package/dist/components/RenderLabel/useRenderLabelStylesStyles.d.ts.map +0 -1
- package/dist/components/RenderSpninner/RenderSpinner.d.ts.map +0 -1
- package/dist/components/RenderSpninner/index.d.ts.map +0 -1
- package/dist/components/Space/ISpaceProps.d.ts.map +0 -1
- package/dist/components/Space/SPace.d.ts.map +0 -1
- package/dist/components/Space/index.d.ts.map +0 -1
- package/dist/components/Space/useSpaceStyles.d.ts.map +0 -1
- package/dist/components/Stack/IStackProps.d.ts.map +0 -1
- package/dist/components/Stack/Stack.d.ts.map +0 -1
- package/dist/components/Stack/StackItem.d.ts.map +0 -1
- package/dist/components/Stack/index.d.ts.map +0 -1
- package/dist/components/Stack/useStackStyles.d.ts.map +0 -1
- package/dist/components/StackedUsers/IStackedUsersProps.d.ts.map +0 -1
- package/dist/components/StackedUsers/StackedUsers.d.ts.map +0 -1
- package/dist/components/StackedUsers/index.d.ts.map +0 -1
- package/dist/components/StackedUsers/useStackedUsersStyles.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/AdaptiveCardHost.Exports.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/AdaptiveCardHost.HostConfig.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/AdaptiveCardHost.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/IAdaptiveCardHostProps.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/Actions.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/Elements.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUIChoiceSetInput.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUIDateInput.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUINumberInput.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUITextInput.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUITimeInput.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUIToggleInput.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/HostCapability.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/HostConfig.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/IconButton.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/Styles.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/index.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/inlineButtonRootStyle.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/internalRender.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/index.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/models/AdaptiveCardHostThemeType.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/models/IAadInfo.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostActionResult.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostEvaluationContext.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/models/ICultureInfo.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/models/ISPListInfo.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/models/ISPListItemInfo.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/models/ISPSiteInfo.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/models/ISPWebInfo.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/models/IUserInfo.d.ts.map +0 -1
- package/dist/components/adaptiveCardHost/models/index.d.ts.map +0 -1
- package/dist/components/aiAssistant/AIAssistant.d.ts.map +0 -1
- package/dist/components/aiAssistant/ChatAction.d.ts.map +0 -1
- package/dist/components/aiAssistant/ChatInput.d.ts.map +0 -1
- package/dist/components/aiAssistant/ChatInputProps.d.ts.map +0 -1
- package/dist/components/aiAssistant/ChatInputWithMensions.d.ts.map +0 -1
- package/dist/components/aiAssistant/ChatInputWithMensionsProps.d.ts.map +0 -1
- package/dist/components/aiAssistant/ChatInputWithMensionsV1.d.ts.map +0 -1
- package/dist/components/aiAssistant/ChatInputWithMensionsV2.d.ts.map +0 -1
- package/dist/components/aiAssistant/ChatList.d.ts.map +0 -1
- package/dist/components/aiAssistant/ChatState.d.ts.map +0 -1
- package/dist/components/aiAssistant/IAIAssistantProps.d.ts.map +0 -1
- package/dist/components/aiAssistant/IChatItem.d.ts.map +0 -1
- package/dist/components/aiAssistant/IResponse.d.ts.map +0 -1
- package/dist/components/aiAssistant/LoadingDots.d.ts.map +0 -1
- package/dist/components/aiAssistant/chatReducer.d.ts.map +0 -1
- package/dist/components/aiAssistant/index.d.ts.map +0 -1
- package/dist/components/aiAssistant/useAIAssistantStyles.d.ts.map +0 -1
- package/dist/components/aiAssistant/useChatInputStyles.d.ts.map +0 -1
- package/dist/components/aiAssistant/useChatInputWithMensionsStyles.d.ts.map +0 -1
- package/dist/components/aiAssistant/useLoadingDotsStyles.d.ts.map +0 -1
- package/dist/components/aiAssistant/useStreamRequest.d.ts.map +0 -1
- package/dist/components/aiAssistant/useStyles.d.ts.map +0 -1
- package/dist/components/appDashboard/AppDashboard.d.ts.map +0 -1
- package/dist/components/appDashboard/IAppDashboardProps.d.ts.map +0 -1
- package/dist/components/appDashboard/NoDashboards.d.ts.map +0 -1
- package/dist/components/appDashboard/index.d.ts.map +0 -1
- package/dist/components/appDashboard/selectZoom/SelectZoom.d.ts.map +0 -1
- package/dist/components/appDashboard/useDashboardStyles.d.ts.map +0 -1
- package/dist/components/baseComponentProps/IBaseProps.d.ts.map +0 -1
- package/dist/components/breadcrumb/Breadcrumb.d.ts.map +0 -1
- package/dist/components/breadcrumb/IBreadcrumItem.d.ts.map +0 -1
- package/dist/components/breadcrumb/IBreadcrumProps.d.ts.map +0 -1
- package/dist/components/breadcrumb/OverflowMenu.d.ts.map +0 -1
- package/dist/components/breadcrumb/index.d.ts.map +0 -1
- package/dist/components/breadcrumb/useBreadcrumStyles.d.ts.map +0 -1
- package/dist/components/buttonMenu/ButtonMenu.d.ts.map +0 -1
- package/dist/components/buttonMenu/IButtonMenuOption.d.ts.map +0 -1
- package/dist/components/buttonMenu/index.d.ts.map +0 -1
- package/dist/components/calendarControl/CalendarControl.d.ts.map +0 -1
- package/dist/components/calendarControl/Day.d.ts.map +0 -1
- package/dist/components/calendarControl/DayView.d.ts.map +0 -1
- package/dist/components/calendarControl/EventDetailsPopover.d.ts.map +0 -1
- package/dist/components/calendarControl/EventPopoverCard.d.ts.map +0 -1
- package/dist/components/calendarControl/EventRender.d.ts.map +0 -1
- package/dist/components/calendarControl/RenderEventToDayOfMonth.d.ts.map +0 -1
- package/dist/components/calendarControl/SelectCalendarView.d.ts.map +0 -1
- package/dist/components/calendarControl/Toolbar.d.ts.map +0 -1
- package/dist/components/calendarControl/WeekView.d.ts.map +0 -1
- package/dist/components/calendarControl/hooks/index.d.ts.map +0 -1
- package/dist/components/calendarControl/hooks/useCalendar.d.ts.map +0 -1
- package/dist/components/calendarControl/hooks/useCalendarStyles.d.ts.map +0 -1
- package/dist/components/calendarControl/hooks/useDayViewStyles.d.ts.map +0 -1
- package/dist/components/calendarControl/hooks/useUtils.d.ts.map +0 -1
- package/dist/components/calendarControl/hooks/useWeekViewStyles.d.ts.map +0 -1
- package/dist/components/calendarControl/index.d.ts.map +0 -1
- package/dist/components/calendarControl/models/ECalendarViews.d.ts.map +0 -1
- package/dist/components/calendarControl/models/IAttendee.d.ts.map +0 -1
- package/dist/components/calendarControl/models/ICalendarControlProps.d.ts.map +0 -1
- package/dist/components/calendarControl/models/ICalendarDay.d.ts.map +0 -1
- package/dist/components/calendarControl/models/IEventColors.d.ts.map +0 -1
- package/dist/components/calendarControl/models/IEvents.d.ts.map +0 -1
- package/dist/components/calendarControl/models/IStrings.d.ts.map +0 -1
- package/dist/components/calendarControl/models/index.d.ts.map +0 -1
- package/dist/components/customControlBar/CustomControlBar.d.ts.map +0 -1
- package/dist/components/customControlBar/index.d.ts.map +0 -1
- package/dist/components/dataGrid/DataGrid.d.ts.map +0 -1
- package/dist/components/dataGrid/IColumnConfig.d.ts.map +0 -1
- package/dist/components/dataGrid/IDataGridProps.d.ts.map +0 -1
- package/dist/components/dataGrid/ISortState.d.ts.map +0 -1
- package/dist/components/dataGrid/index.d.ts.map +0 -1
- package/dist/components/dataGrid/stack/IStackProps.d.ts.map +0 -1
- package/dist/components/dataGrid/stack/Stack.d.ts.map +0 -1
- package/dist/components/dataGrid/useDataGridStyles.d.ts.map +0 -1
- package/dist/components/dropDownField/DropDownField.d.ts.map +0 -1
- package/dist/components/dropDownField/IDropDownFieldProps.d.ts.map +0 -1
- package/dist/components/dropDownField/IOption.d.ts.map +0 -1
- package/dist/components/dropDownField/index.d.ts.map +0 -1
- package/dist/components/genericOverFlowMenu/GenericOverFlowMenu.d.ts.map +0 -1
- package/dist/components/genericOverFlowMenu/index.d.ts.map +0 -1
- package/dist/components/genericOverFlowMenu/useOverflowMenuStyles.d.ts.map +0 -1
- package/dist/components/iconButton/IconButton.d.ts.map +0 -1
- package/dist/components/iconButton/IconButtonProps.d.ts.map +0 -1
- package/dist/components/iconButton/index.d.ts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/mensions/IMensionsProps.d.ts.map +0 -1
- package/dist/components/mensions/Mensions.d.ts.map +0 -1
- package/dist/components/mensions/MensionsExample.d.ts.map +0 -1
- package/dist/components/mensions/index.d.ts.map +0 -1
- package/dist/components/mensions/useMensionsStyles.d.ts.map +0 -1
- package/dist/components/renderAdaptiveCard/RenderAdaptiveCard.d.ts.map +0 -1
- package/dist/components/renderAdaptiveCard/index.d.ts.map +0 -1
- package/dist/components/renderDialog/RenderDialog.d.ts.map +0 -1
- package/dist/components/renderDialog/index.d.ts.map +0 -1
- package/dist/components/renderDrawer/RenderDrawer.d.ts.map +0 -1
- package/dist/components/renderDrawer/index.d.ts.map +0 -1
- package/dist/components/renderHeader/IRenderHeaderProps.d.ts.map +0 -1
- package/dist/components/renderHeader/RenderHeader.d.ts.map +0 -1
- package/dist/components/renderHeader/index.d.ts.map +0 -1
- package/dist/components/renderHeader/useRenderHeaderStyles.d.ts.map +0 -1
- package/dist/components/selectDay/SelectDay.d.ts.map +0 -1
- package/dist/components/selectDay/index.d.ts.map +0 -1
- package/dist/components/selectMonth/CalendarMonth.d.ts.map +0 -1
- package/dist/components/selectMonth/SelectMonth.d.ts.map +0 -1
- package/dist/components/selectMonth/index.d.ts.map +0 -1
- package/dist/components/selectView/SelectView.d.ts.map +0 -1
- package/dist/components/selectView/index.d.ts.map +0 -1
- package/dist/components/selectWeek/SelectWeek.d.ts.map +0 -1
- package/dist/components/selectWeek/index.d.ts.map +0 -1
- package/dist/components/shareDialog/ShareDialog.d.ts.map +0 -1
- package/dist/components/shareDialog/index.d.ts.map +0 -1
- package/dist/components/showError/IErrorDisplayProps.d.ts.map +0 -1
- package/dist/components/showError/ShowError.d.ts.map +0 -1
- package/dist/components/showError/index.d.ts.map +0 -1
- package/dist/components/showError/useShowErrorStyles.d.ts.map +0 -1
- package/dist/components/showMessage/IShowMessage.d.ts.map +0 -1
- package/dist/components/showMessage/ShowMessage.d.ts.map +0 -1
- package/dist/components/showMessage/index.d.ts.map +0 -1
- package/dist/components/showMessage/useShowMessageStyles.d.ts.map +0 -1
- package/dist/components/stackv2/IStackV2Props.d.ts.map +0 -1
- package/dist/components/stackv2/StackV2.d.ts.map +0 -1
- package/dist/components/stackv2/index.d.ts.map +0 -1
- package/dist/components/svgImages/BusinessReportIcon.d.ts.map +0 -1
- package/dist/components/typographyControl/ITypographyControlProps.d.ts.map +0 -1
- package/dist/components/typographyControl/TypographyControl.d.ts.map +0 -1
- package/dist/components/typographyControl/index.d.ts.map +0 -1
- package/dist/components/userCard/IUserCardProps.d.ts.map +0 -1
- package/dist/components/userCard/IUserInfo.d.ts.map +0 -1
- package/dist/components/userCard/UserCard.d.ts.map +0 -1
- package/dist/components/userCard/constants.d.ts.map +0 -1
- package/dist/components/userCard/index.d.ts.map +0 -1
- package/dist/components/userCard/useUserCardStyles.d.ts.map +0 -1
- package/dist/components/userCard/useUserProfile.d.ts.map +0 -1
- package/dist/components/videoPlayer/VideoPlayer.d.ts.map +0 -1
- package/dist/components/videoPlayer/index.d.ts.map +0 -1
- package/dist/components/videoPlayer/useVideoStyles.d.ts.map +0 -1
- package/dist/components/worldMap/IWorldMapProps.d.ts.map +0 -1
- package/dist/components/worldMap/MapNavigation.d.ts.map +0 -1
- package/dist/components/worldMap/MaplibreWorldMapProps.d.ts.map +0 -1
- package/dist/components/worldMap/TooltipContent.d.ts.map +0 -1
- package/dist/components/worldMap/WorldMap.d.ts.map +0 -1
- package/dist/components/worldMap/WorldMapControl.d.ts.map +0 -1
- package/dist/components/worldMap/data.d.ts.map +0 -1
- package/dist/components/worldMap/index.d.ts.map +0 -1
- package/dist/components/worldMap/marker.d.ts.map +0 -1
- package/dist/components/worldMap/useCleanMapStyle.d.ts.map +0 -1
- package/dist/components/worldMap/useContentToolTipStyles.d.ts.map +0 -1
- package/dist/components/worldMap/useGeocodedCountries.d.ts.map +0 -1
- package/dist/constants/EBreakPoints.d.ts.map +0 -1
- package/dist/constants/EMessageTypes.d.ts.map +0 -1
- package/dist/constants/index.d.ts.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/useAIAssistant.d.ts.map +0 -1
- package/dist/hooks/useAIAssistantParser.d.ts.map +0 -1
- package/dist/hooks/useGraphAPI.d.ts.map +0 -1
- package/dist/hooks/useIndexedDB.d.ts.map +0 -1
- package/dist/hooks/useLogging.d.ts.map +0 -1
- package/dist/hooks/usePolling.d.ts.map +0 -1
- package/dist/hooks/useTimeZone.d.ts.map +0 -1
- package/dist/hooks/useTimeZoneHelper.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -27983
- package/dist/index.mjs.map +0 -1
- package/dist/models/IAppCardContainer.d.ts.map +0 -1
- package/dist/models/index.d.ts.map +0 -1
- package/dist/providers.js.map +0 -1
- package/dist/providers.mjs +0 -250
- package/dist/providers.mjs.map +0 -1
- package/dist/types/TBaseSpacing.d.ts.map +0 -1
- package/dist/types/THorizontalSpacing.d.ts.map +0 -1
- package/dist/types/THorizontalSpacingBreakPoints.d.ts.map +0 -1
- package/dist/types/TLayoutBreakPoints.d.ts.map +0 -1
- package/dist/types/TPaddingBreakPoints.d.ts.map +0 -1
- package/dist/types/TPading.d.ts.map +0 -1
- package/dist/types/TVerticalSpacing.d.ts.map +0 -1
- package/dist/types/TVerticalSpacingBreakPoints.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/contentDetector.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/lodash.d.ts.map +0 -1
- package/dist/utils/useComponentsUtils.d.ts.map +0 -1
- package/dist/utils/useDateUtils.d.ts.map +0 -1
- package/dist/utils/useImageUtils.d.ts.map +0 -1
|
@@ -0,0 +1,848 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
import { _ as __name, F as cleanAndMerge, G as getConfig, K as selectSvgElement, e as configureSvgSize, l as log, b4 as styles2String, d as select, b as setAccTitle, a as getAccTitle, q as setDiagramTitle, t as getDiagramTitle, g as getAccDescription, s as setAccDescription, H as defaultConfig_default, b5 as isLabelStyle, z as clear } from "./index-CP55uT1-.js";
|
|
3
|
+
import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-DA_6jplh.js";
|
|
4
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-ghaW5jSQ.js";
|
|
5
|
+
import { p as parse } from "./mermaid-parser.core-BbdofhA6.js";
|
|
6
|
+
import { b as format } from "./defaultLocale-DVr69WTU.js";
|
|
7
|
+
import { o as ordinal } from "./ordinal-DSZU4PqD.js";
|
|
8
|
+
function count(node) {
|
|
9
|
+
var sum = 0, children = node.children, i = children && children.length;
|
|
10
|
+
if (!i) sum = 1;
|
|
11
|
+
else while (--i >= 0) sum += children[i].value;
|
|
12
|
+
node.value = sum;
|
|
13
|
+
}
|
|
14
|
+
function node_count() {
|
|
15
|
+
return this.eachAfter(count);
|
|
16
|
+
}
|
|
17
|
+
function node_each(callback, that) {
|
|
18
|
+
let index = -1;
|
|
19
|
+
for (const node of this) {
|
|
20
|
+
callback.call(that, node, ++index, this);
|
|
21
|
+
}
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
function node_eachBefore(callback, that) {
|
|
25
|
+
var node = this, nodes = [node], children, i, index = -1;
|
|
26
|
+
while (node = nodes.pop()) {
|
|
27
|
+
callback.call(that, node, ++index, this);
|
|
28
|
+
if (children = node.children) {
|
|
29
|
+
for (i = children.length - 1; i >= 0; --i) {
|
|
30
|
+
nodes.push(children[i]);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
function node_eachAfter(callback, that) {
|
|
37
|
+
var node = this, nodes = [node], next = [], children, i, n, index = -1;
|
|
38
|
+
while (node = nodes.pop()) {
|
|
39
|
+
next.push(node);
|
|
40
|
+
if (children = node.children) {
|
|
41
|
+
for (i = 0, n = children.length; i < n; ++i) {
|
|
42
|
+
nodes.push(children[i]);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
while (node = next.pop()) {
|
|
47
|
+
callback.call(that, node, ++index, this);
|
|
48
|
+
}
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
function node_find(callback, that) {
|
|
52
|
+
let index = -1;
|
|
53
|
+
for (const node of this) {
|
|
54
|
+
if (callback.call(that, node, ++index, this)) {
|
|
55
|
+
return node;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function node_sum(value) {
|
|
60
|
+
return this.eachAfter(function(node) {
|
|
61
|
+
var sum = +value(node.data) || 0, children = node.children, i = children && children.length;
|
|
62
|
+
while (--i >= 0) sum += children[i].value;
|
|
63
|
+
node.value = sum;
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function node_sort(compare) {
|
|
67
|
+
return this.eachBefore(function(node) {
|
|
68
|
+
if (node.children) {
|
|
69
|
+
node.children.sort(compare);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function node_path(end) {
|
|
74
|
+
var start = this, ancestor = leastCommonAncestor(start, end), nodes = [start];
|
|
75
|
+
while (start !== ancestor) {
|
|
76
|
+
start = start.parent;
|
|
77
|
+
nodes.push(start);
|
|
78
|
+
}
|
|
79
|
+
var k = nodes.length;
|
|
80
|
+
while (end !== ancestor) {
|
|
81
|
+
nodes.splice(k, 0, end);
|
|
82
|
+
end = end.parent;
|
|
83
|
+
}
|
|
84
|
+
return nodes;
|
|
85
|
+
}
|
|
86
|
+
function leastCommonAncestor(a, b) {
|
|
87
|
+
if (a === b) return a;
|
|
88
|
+
var aNodes = a.ancestors(), bNodes = b.ancestors(), c = null;
|
|
89
|
+
a = aNodes.pop();
|
|
90
|
+
b = bNodes.pop();
|
|
91
|
+
while (a === b) {
|
|
92
|
+
c = a;
|
|
93
|
+
a = aNodes.pop();
|
|
94
|
+
b = bNodes.pop();
|
|
95
|
+
}
|
|
96
|
+
return c;
|
|
97
|
+
}
|
|
98
|
+
function node_ancestors() {
|
|
99
|
+
var node = this, nodes = [node];
|
|
100
|
+
while (node = node.parent) {
|
|
101
|
+
nodes.push(node);
|
|
102
|
+
}
|
|
103
|
+
return nodes;
|
|
104
|
+
}
|
|
105
|
+
function node_descendants() {
|
|
106
|
+
return Array.from(this);
|
|
107
|
+
}
|
|
108
|
+
function node_leaves() {
|
|
109
|
+
var leaves = [];
|
|
110
|
+
this.eachBefore(function(node) {
|
|
111
|
+
if (!node.children) {
|
|
112
|
+
leaves.push(node);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
return leaves;
|
|
116
|
+
}
|
|
117
|
+
function node_links() {
|
|
118
|
+
var root = this, links = [];
|
|
119
|
+
root.each(function(node) {
|
|
120
|
+
if (node !== root) {
|
|
121
|
+
links.push({ source: node.parent, target: node });
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
return links;
|
|
125
|
+
}
|
|
126
|
+
function* node_iterator() {
|
|
127
|
+
var node = this, current, next = [node], children, i, n;
|
|
128
|
+
do {
|
|
129
|
+
current = next.reverse(), next = [];
|
|
130
|
+
while (node = current.pop()) {
|
|
131
|
+
yield node;
|
|
132
|
+
if (children = node.children) {
|
|
133
|
+
for (i = 0, n = children.length; i < n; ++i) {
|
|
134
|
+
next.push(children[i]);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
} while (next.length);
|
|
139
|
+
}
|
|
140
|
+
function hierarchy(data, children) {
|
|
141
|
+
if (data instanceof Map) {
|
|
142
|
+
data = [void 0, data];
|
|
143
|
+
if (children === void 0) children = mapChildren;
|
|
144
|
+
} else if (children === void 0) {
|
|
145
|
+
children = objectChildren;
|
|
146
|
+
}
|
|
147
|
+
var root = new Node(data), node, nodes = [root], child, childs, i, n;
|
|
148
|
+
while (node = nodes.pop()) {
|
|
149
|
+
if ((childs = children(node.data)) && (n = (childs = Array.from(childs)).length)) {
|
|
150
|
+
node.children = childs;
|
|
151
|
+
for (i = n - 1; i >= 0; --i) {
|
|
152
|
+
nodes.push(child = childs[i] = new Node(childs[i]));
|
|
153
|
+
child.parent = node;
|
|
154
|
+
child.depth = node.depth + 1;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return root.eachBefore(computeHeight);
|
|
159
|
+
}
|
|
160
|
+
function node_copy() {
|
|
161
|
+
return hierarchy(this).eachBefore(copyData);
|
|
162
|
+
}
|
|
163
|
+
function objectChildren(d) {
|
|
164
|
+
return d.children;
|
|
165
|
+
}
|
|
166
|
+
function mapChildren(d) {
|
|
167
|
+
return Array.isArray(d) ? d[1] : null;
|
|
168
|
+
}
|
|
169
|
+
function copyData(node) {
|
|
170
|
+
if (node.data.value !== void 0) node.value = node.data.value;
|
|
171
|
+
node.data = node.data.data;
|
|
172
|
+
}
|
|
173
|
+
function computeHeight(node) {
|
|
174
|
+
var height = 0;
|
|
175
|
+
do
|
|
176
|
+
node.height = height;
|
|
177
|
+
while ((node = node.parent) && node.height < ++height);
|
|
178
|
+
}
|
|
179
|
+
function Node(data) {
|
|
180
|
+
this.data = data;
|
|
181
|
+
this.depth = this.height = 0;
|
|
182
|
+
this.parent = null;
|
|
183
|
+
}
|
|
184
|
+
Node.prototype = hierarchy.prototype = {
|
|
185
|
+
constructor: Node,
|
|
186
|
+
count: node_count,
|
|
187
|
+
each: node_each,
|
|
188
|
+
eachAfter: node_eachAfter,
|
|
189
|
+
eachBefore: node_eachBefore,
|
|
190
|
+
find: node_find,
|
|
191
|
+
sum: node_sum,
|
|
192
|
+
sort: node_sort,
|
|
193
|
+
path: node_path,
|
|
194
|
+
ancestors: node_ancestors,
|
|
195
|
+
descendants: node_descendants,
|
|
196
|
+
leaves: node_leaves,
|
|
197
|
+
links: node_links,
|
|
198
|
+
copy: node_copy,
|
|
199
|
+
[Symbol.iterator]: node_iterator
|
|
200
|
+
};
|
|
201
|
+
function required(f) {
|
|
202
|
+
if (typeof f !== "function") throw new Error();
|
|
203
|
+
return f;
|
|
204
|
+
}
|
|
205
|
+
function constantZero() {
|
|
206
|
+
return 0;
|
|
207
|
+
}
|
|
208
|
+
function constant(x) {
|
|
209
|
+
return function() {
|
|
210
|
+
return x;
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
function roundNode(node) {
|
|
214
|
+
node.x0 = Math.round(node.x0);
|
|
215
|
+
node.y0 = Math.round(node.y0);
|
|
216
|
+
node.x1 = Math.round(node.x1);
|
|
217
|
+
node.y1 = Math.round(node.y1);
|
|
218
|
+
}
|
|
219
|
+
function treemapDice(parent, x0, y0, x1, y1) {
|
|
220
|
+
var nodes = parent.children, node, i = -1, n = nodes.length, k = parent.value && (x1 - x0) / parent.value;
|
|
221
|
+
while (++i < n) {
|
|
222
|
+
node = nodes[i], node.y0 = y0, node.y1 = y1;
|
|
223
|
+
node.x0 = x0, node.x1 = x0 += node.value * k;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
function treemapSlice(parent, x0, y0, x1, y1) {
|
|
227
|
+
var nodes = parent.children, node, i = -1, n = nodes.length, k = parent.value && (y1 - y0) / parent.value;
|
|
228
|
+
while (++i < n) {
|
|
229
|
+
node = nodes[i], node.x0 = x0, node.x1 = x1;
|
|
230
|
+
node.y0 = y0, node.y1 = y0 += node.value * k;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
var phi = (1 + Math.sqrt(5)) / 2;
|
|
234
|
+
function squarifyRatio(ratio, parent, x0, y0, x1, y1) {
|
|
235
|
+
var rows = [], nodes = parent.children, row, nodeValue, i0 = 0, i1 = 0, n = nodes.length, dx, dy, value = parent.value, sumValue, minValue, maxValue, newRatio, minRatio, alpha, beta;
|
|
236
|
+
while (i0 < n) {
|
|
237
|
+
dx = x1 - x0, dy = y1 - y0;
|
|
238
|
+
do
|
|
239
|
+
sumValue = nodes[i1++].value;
|
|
240
|
+
while (!sumValue && i1 < n);
|
|
241
|
+
minValue = maxValue = sumValue;
|
|
242
|
+
alpha = Math.max(dy / dx, dx / dy) / (value * ratio);
|
|
243
|
+
beta = sumValue * sumValue * alpha;
|
|
244
|
+
minRatio = Math.max(maxValue / beta, beta / minValue);
|
|
245
|
+
for (; i1 < n; ++i1) {
|
|
246
|
+
sumValue += nodeValue = nodes[i1].value;
|
|
247
|
+
if (nodeValue < minValue) minValue = nodeValue;
|
|
248
|
+
if (nodeValue > maxValue) maxValue = nodeValue;
|
|
249
|
+
beta = sumValue * sumValue * alpha;
|
|
250
|
+
newRatio = Math.max(maxValue / beta, beta / minValue);
|
|
251
|
+
if (newRatio > minRatio) {
|
|
252
|
+
sumValue -= nodeValue;
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
minRatio = newRatio;
|
|
256
|
+
}
|
|
257
|
+
rows.push(row = { value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1) });
|
|
258
|
+
if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);
|
|
259
|
+
else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);
|
|
260
|
+
value -= sumValue, i0 = i1;
|
|
261
|
+
}
|
|
262
|
+
return rows;
|
|
263
|
+
}
|
|
264
|
+
const squarify = function custom(ratio) {
|
|
265
|
+
function squarify2(parent, x0, y0, x1, y1) {
|
|
266
|
+
squarifyRatio(ratio, parent, x0, y0, x1, y1);
|
|
267
|
+
}
|
|
268
|
+
squarify2.ratio = function(x) {
|
|
269
|
+
return custom((x = +x) > 1 ? x : 1);
|
|
270
|
+
};
|
|
271
|
+
return squarify2;
|
|
272
|
+
}(phi);
|
|
273
|
+
function treemap() {
|
|
274
|
+
var tile = squarify, round = false, dx = 1, dy = 1, paddingStack = [0], paddingInner = constantZero, paddingTop = constantZero, paddingRight = constantZero, paddingBottom = constantZero, paddingLeft = constantZero;
|
|
275
|
+
function treemap2(root) {
|
|
276
|
+
root.x0 = root.y0 = 0;
|
|
277
|
+
root.x1 = dx;
|
|
278
|
+
root.y1 = dy;
|
|
279
|
+
root.eachBefore(positionNode);
|
|
280
|
+
paddingStack = [0];
|
|
281
|
+
if (round) root.eachBefore(roundNode);
|
|
282
|
+
return root;
|
|
283
|
+
}
|
|
284
|
+
function positionNode(node) {
|
|
285
|
+
var p = paddingStack[node.depth], x0 = node.x0 + p, y0 = node.y0 + p, x1 = node.x1 - p, y1 = node.y1 - p;
|
|
286
|
+
if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
|
|
287
|
+
if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
|
|
288
|
+
node.x0 = x0;
|
|
289
|
+
node.y0 = y0;
|
|
290
|
+
node.x1 = x1;
|
|
291
|
+
node.y1 = y1;
|
|
292
|
+
if (node.children) {
|
|
293
|
+
p = paddingStack[node.depth + 1] = paddingInner(node) / 2;
|
|
294
|
+
x0 += paddingLeft(node) - p;
|
|
295
|
+
y0 += paddingTop(node) - p;
|
|
296
|
+
x1 -= paddingRight(node) - p;
|
|
297
|
+
y1 -= paddingBottom(node) - p;
|
|
298
|
+
if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
|
|
299
|
+
if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
|
|
300
|
+
tile(node, x0, y0, x1, y1);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
treemap2.round = function(x) {
|
|
304
|
+
return arguments.length ? (round = !!x, treemap2) : round;
|
|
305
|
+
};
|
|
306
|
+
treemap2.size = function(x) {
|
|
307
|
+
return arguments.length ? (dx = +x[0], dy = +x[1], treemap2) : [dx, dy];
|
|
308
|
+
};
|
|
309
|
+
treemap2.tile = function(x) {
|
|
310
|
+
return arguments.length ? (tile = required(x), treemap2) : tile;
|
|
311
|
+
};
|
|
312
|
+
treemap2.padding = function(x) {
|
|
313
|
+
return arguments.length ? treemap2.paddingInner(x).paddingOuter(x) : treemap2.paddingInner();
|
|
314
|
+
};
|
|
315
|
+
treemap2.paddingInner = function(x) {
|
|
316
|
+
return arguments.length ? (paddingInner = typeof x === "function" ? x : constant(+x), treemap2) : paddingInner;
|
|
317
|
+
};
|
|
318
|
+
treemap2.paddingOuter = function(x) {
|
|
319
|
+
return arguments.length ? treemap2.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap2.paddingTop();
|
|
320
|
+
};
|
|
321
|
+
treemap2.paddingTop = function(x) {
|
|
322
|
+
return arguments.length ? (paddingTop = typeof x === "function" ? x : constant(+x), treemap2) : paddingTop;
|
|
323
|
+
};
|
|
324
|
+
treemap2.paddingRight = function(x) {
|
|
325
|
+
return arguments.length ? (paddingRight = typeof x === "function" ? x : constant(+x), treemap2) : paddingRight;
|
|
326
|
+
};
|
|
327
|
+
treemap2.paddingBottom = function(x) {
|
|
328
|
+
return arguments.length ? (paddingBottom = typeof x === "function" ? x : constant(+x), treemap2) : paddingBottom;
|
|
329
|
+
};
|
|
330
|
+
treemap2.paddingLeft = function(x) {
|
|
331
|
+
return arguments.length ? (paddingLeft = typeof x === "function" ? x : constant(+x), treemap2) : paddingLeft;
|
|
332
|
+
};
|
|
333
|
+
return treemap2;
|
|
334
|
+
}
|
|
335
|
+
var TreeMapDB = (_a = class {
|
|
336
|
+
constructor() {
|
|
337
|
+
this.nodes = [];
|
|
338
|
+
this.levels = /* @__PURE__ */ new Map();
|
|
339
|
+
this.outerNodes = [];
|
|
340
|
+
this.classes = /* @__PURE__ */ new Map();
|
|
341
|
+
this.setAccTitle = setAccTitle;
|
|
342
|
+
this.getAccTitle = getAccTitle;
|
|
343
|
+
this.setDiagramTitle = setDiagramTitle;
|
|
344
|
+
this.getDiagramTitle = getDiagramTitle;
|
|
345
|
+
this.getAccDescription = getAccDescription;
|
|
346
|
+
this.setAccDescription = setAccDescription;
|
|
347
|
+
}
|
|
348
|
+
getNodes() {
|
|
349
|
+
return this.nodes;
|
|
350
|
+
}
|
|
351
|
+
getConfig() {
|
|
352
|
+
const defaultConfig = defaultConfig_default;
|
|
353
|
+
const userConfig = getConfig();
|
|
354
|
+
return cleanAndMerge({
|
|
355
|
+
...defaultConfig.treemap,
|
|
356
|
+
...userConfig.treemap ?? {}
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
addNode(node, level) {
|
|
360
|
+
this.nodes.push(node);
|
|
361
|
+
this.levels.set(node, level);
|
|
362
|
+
if (level === 0) {
|
|
363
|
+
this.outerNodes.push(node);
|
|
364
|
+
this.root ?? (this.root = node);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
getRoot() {
|
|
368
|
+
return { name: "", children: this.outerNodes };
|
|
369
|
+
}
|
|
370
|
+
addClass(id, _style) {
|
|
371
|
+
const styleClass = this.classes.get(id) ?? { id, styles: [], textStyles: [] };
|
|
372
|
+
const styles = _style.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
|
|
373
|
+
if (styles) {
|
|
374
|
+
styles.forEach((s) => {
|
|
375
|
+
if (isLabelStyle(s)) {
|
|
376
|
+
if (styleClass == null ? void 0 : styleClass.textStyles) {
|
|
377
|
+
styleClass.textStyles.push(s);
|
|
378
|
+
} else {
|
|
379
|
+
styleClass.textStyles = [s];
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
if (styleClass == null ? void 0 : styleClass.styles) {
|
|
383
|
+
styleClass.styles.push(s);
|
|
384
|
+
} else {
|
|
385
|
+
styleClass.styles = [s];
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
this.classes.set(id, styleClass);
|
|
390
|
+
}
|
|
391
|
+
getClasses() {
|
|
392
|
+
return this.classes;
|
|
393
|
+
}
|
|
394
|
+
getStylesForClass(classSelector) {
|
|
395
|
+
var _a2;
|
|
396
|
+
return ((_a2 = this.classes.get(classSelector)) == null ? void 0 : _a2.styles) ?? [];
|
|
397
|
+
}
|
|
398
|
+
clear() {
|
|
399
|
+
clear();
|
|
400
|
+
this.nodes = [];
|
|
401
|
+
this.levels = /* @__PURE__ */ new Map();
|
|
402
|
+
this.outerNodes = [];
|
|
403
|
+
this.classes = /* @__PURE__ */ new Map();
|
|
404
|
+
this.root = void 0;
|
|
405
|
+
}
|
|
406
|
+
}, __name(_a, "TreeMapDB"), _a);
|
|
407
|
+
function buildHierarchy(items) {
|
|
408
|
+
if (!items.length) {
|
|
409
|
+
return [];
|
|
410
|
+
}
|
|
411
|
+
const root = [];
|
|
412
|
+
const stack = [];
|
|
413
|
+
items.forEach((item) => {
|
|
414
|
+
const node = {
|
|
415
|
+
name: item.name,
|
|
416
|
+
children: item.type === "Leaf" ? void 0 : []
|
|
417
|
+
};
|
|
418
|
+
node.classSelector = item == null ? void 0 : item.classSelector;
|
|
419
|
+
if (item == null ? void 0 : item.cssCompiledStyles) {
|
|
420
|
+
node.cssCompiledStyles = [item.cssCompiledStyles];
|
|
421
|
+
}
|
|
422
|
+
if (item.type === "Leaf" && item.value !== void 0) {
|
|
423
|
+
node.value = item.value;
|
|
424
|
+
}
|
|
425
|
+
while (stack.length > 0 && stack[stack.length - 1].level >= item.level) {
|
|
426
|
+
stack.pop();
|
|
427
|
+
}
|
|
428
|
+
if (stack.length === 0) {
|
|
429
|
+
root.push(node);
|
|
430
|
+
} else {
|
|
431
|
+
const parent = stack[stack.length - 1].node;
|
|
432
|
+
if (parent.children) {
|
|
433
|
+
parent.children.push(node);
|
|
434
|
+
} else {
|
|
435
|
+
parent.children = [node];
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
if (item.type !== "Leaf") {
|
|
439
|
+
stack.push({ node, level: item.level });
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
return root;
|
|
443
|
+
}
|
|
444
|
+
__name(buildHierarchy, "buildHierarchy");
|
|
445
|
+
var populate = /* @__PURE__ */ __name((ast, db) => {
|
|
446
|
+
populateCommonDb(ast, db);
|
|
447
|
+
const items = [];
|
|
448
|
+
for (const row of ast.TreemapRows ?? []) {
|
|
449
|
+
if (row.$type === "ClassDefStatement") {
|
|
450
|
+
db.addClass(row.className ?? "", row.styleText ?? "");
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
for (const row of ast.TreemapRows ?? []) {
|
|
454
|
+
const item = row.item;
|
|
455
|
+
if (!item) {
|
|
456
|
+
continue;
|
|
457
|
+
}
|
|
458
|
+
const level = row.indent ? parseInt(row.indent) : 0;
|
|
459
|
+
const name = getItemName(item);
|
|
460
|
+
const styles = item.classSelector ? db.getStylesForClass(item.classSelector) : [];
|
|
461
|
+
const cssCompiledStyles = styles.length > 0 ? styles.join(";") : void 0;
|
|
462
|
+
const itemData = {
|
|
463
|
+
level,
|
|
464
|
+
name,
|
|
465
|
+
type: item.$type,
|
|
466
|
+
value: item.value,
|
|
467
|
+
classSelector: item.classSelector,
|
|
468
|
+
cssCompiledStyles
|
|
469
|
+
};
|
|
470
|
+
items.push(itemData);
|
|
471
|
+
}
|
|
472
|
+
const hierarchyNodes = buildHierarchy(items);
|
|
473
|
+
const addNodesRecursively = /* @__PURE__ */ __name((nodes, level) => {
|
|
474
|
+
for (const node of nodes) {
|
|
475
|
+
db.addNode(node, level);
|
|
476
|
+
if (node.children && node.children.length > 0) {
|
|
477
|
+
addNodesRecursively(node.children, level + 1);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}, "addNodesRecursively");
|
|
481
|
+
addNodesRecursively(hierarchyNodes, 0);
|
|
482
|
+
}, "populate");
|
|
483
|
+
var getItemName = /* @__PURE__ */ __name((item) => {
|
|
484
|
+
return item.name ? String(item.name) : "";
|
|
485
|
+
}, "getItemName");
|
|
486
|
+
var parser = {
|
|
487
|
+
// @ts-expect-error - TreeMapDB is not assignable to DiagramDB
|
|
488
|
+
parser: { yy: void 0 },
|
|
489
|
+
parse: /* @__PURE__ */ __name(async (text) => {
|
|
490
|
+
var _a2;
|
|
491
|
+
try {
|
|
492
|
+
const parseFunc = parse;
|
|
493
|
+
const ast = await parseFunc("treemap", text);
|
|
494
|
+
log.debug("Treemap AST:", ast);
|
|
495
|
+
const db = (_a2 = parser.parser) == null ? void 0 : _a2.yy;
|
|
496
|
+
if (!(db instanceof TreeMapDB)) {
|
|
497
|
+
throw new Error(
|
|
498
|
+
"parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
|
|
499
|
+
);
|
|
500
|
+
}
|
|
501
|
+
populate(ast, db);
|
|
502
|
+
} catch (error) {
|
|
503
|
+
log.error("Error parsing treemap:", error);
|
|
504
|
+
throw error;
|
|
505
|
+
}
|
|
506
|
+
}, "parse")
|
|
507
|
+
};
|
|
508
|
+
var DEFAULT_INNER_PADDING = 10;
|
|
509
|
+
var SECTION_INNER_PADDING = 10;
|
|
510
|
+
var SECTION_HEADER_HEIGHT = 25;
|
|
511
|
+
var draw = /* @__PURE__ */ __name((_text, id, _version, diagram2) => {
|
|
512
|
+
const treemapDb = diagram2.db;
|
|
513
|
+
const config = treemapDb.getConfig();
|
|
514
|
+
const treemapInnerPadding = config.padding ?? DEFAULT_INNER_PADDING;
|
|
515
|
+
const title = treemapDb.getDiagramTitle();
|
|
516
|
+
const root = treemapDb.getRoot();
|
|
517
|
+
const { themeVariables } = getConfig();
|
|
518
|
+
if (!root) {
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
const titleHeight = title ? 30 : 0;
|
|
522
|
+
const svg = selectSvgElement(id);
|
|
523
|
+
const width = config.nodeWidth ? config.nodeWidth * SECTION_INNER_PADDING : 960;
|
|
524
|
+
const height = config.nodeHeight ? config.nodeHeight * SECTION_INNER_PADDING : 500;
|
|
525
|
+
const svgWidth = width;
|
|
526
|
+
const svgHeight = height + titleHeight;
|
|
527
|
+
svg.attr("viewBox", `0 0 ${svgWidth} ${svgHeight}`);
|
|
528
|
+
configureSvgSize(svg, svgHeight, svgWidth, config.useMaxWidth);
|
|
529
|
+
let valueFormat;
|
|
530
|
+
try {
|
|
531
|
+
const formatStr = config.valueFormat || ",";
|
|
532
|
+
if (formatStr === "$0,0") {
|
|
533
|
+
valueFormat = /* @__PURE__ */ __name((value) => "$" + format(",")(value), "valueFormat");
|
|
534
|
+
} else if (formatStr.startsWith("$") && formatStr.includes(",")) {
|
|
535
|
+
const precision = /\.\d+/.exec(formatStr);
|
|
536
|
+
const precisionStr = precision ? precision[0] : "";
|
|
537
|
+
valueFormat = /* @__PURE__ */ __name((value) => "$" + format("," + precisionStr)(value), "valueFormat");
|
|
538
|
+
} else if (formatStr.startsWith("$")) {
|
|
539
|
+
const restOfFormat = formatStr.substring(1);
|
|
540
|
+
valueFormat = /* @__PURE__ */ __name((value) => "$" + format(restOfFormat || "")(value), "valueFormat");
|
|
541
|
+
} else {
|
|
542
|
+
valueFormat = format(formatStr);
|
|
543
|
+
}
|
|
544
|
+
} catch (error) {
|
|
545
|
+
log.error("Error creating format function:", error);
|
|
546
|
+
valueFormat = format(",");
|
|
547
|
+
}
|
|
548
|
+
const colorScale = ordinal().range([
|
|
549
|
+
"transparent",
|
|
550
|
+
themeVariables.cScale0,
|
|
551
|
+
themeVariables.cScale1,
|
|
552
|
+
themeVariables.cScale2,
|
|
553
|
+
themeVariables.cScale3,
|
|
554
|
+
themeVariables.cScale4,
|
|
555
|
+
themeVariables.cScale5,
|
|
556
|
+
themeVariables.cScale6,
|
|
557
|
+
themeVariables.cScale7,
|
|
558
|
+
themeVariables.cScale8,
|
|
559
|
+
themeVariables.cScale9,
|
|
560
|
+
themeVariables.cScale10,
|
|
561
|
+
themeVariables.cScale11
|
|
562
|
+
]);
|
|
563
|
+
const colorScalePeer = ordinal().range([
|
|
564
|
+
"transparent",
|
|
565
|
+
themeVariables.cScalePeer0,
|
|
566
|
+
themeVariables.cScalePeer1,
|
|
567
|
+
themeVariables.cScalePeer2,
|
|
568
|
+
themeVariables.cScalePeer3,
|
|
569
|
+
themeVariables.cScalePeer4,
|
|
570
|
+
themeVariables.cScalePeer5,
|
|
571
|
+
themeVariables.cScalePeer6,
|
|
572
|
+
themeVariables.cScalePeer7,
|
|
573
|
+
themeVariables.cScalePeer8,
|
|
574
|
+
themeVariables.cScalePeer9,
|
|
575
|
+
themeVariables.cScalePeer10,
|
|
576
|
+
themeVariables.cScalePeer11
|
|
577
|
+
]);
|
|
578
|
+
const colorScaleLabel = ordinal().range([
|
|
579
|
+
themeVariables.cScaleLabel0,
|
|
580
|
+
themeVariables.cScaleLabel1,
|
|
581
|
+
themeVariables.cScaleLabel2,
|
|
582
|
+
themeVariables.cScaleLabel3,
|
|
583
|
+
themeVariables.cScaleLabel4,
|
|
584
|
+
themeVariables.cScaleLabel5,
|
|
585
|
+
themeVariables.cScaleLabel6,
|
|
586
|
+
themeVariables.cScaleLabel7,
|
|
587
|
+
themeVariables.cScaleLabel8,
|
|
588
|
+
themeVariables.cScaleLabel9,
|
|
589
|
+
themeVariables.cScaleLabel10,
|
|
590
|
+
themeVariables.cScaleLabel11
|
|
591
|
+
]);
|
|
592
|
+
if (title) {
|
|
593
|
+
svg.append("text").attr("x", svgWidth / 2).attr("y", titleHeight / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(title);
|
|
594
|
+
}
|
|
595
|
+
const g = svg.append("g").attr("transform", `translate(0, ${titleHeight})`).attr("class", "treemapContainer");
|
|
596
|
+
const hierarchyRoot = hierarchy(root).sum((d) => d.value ?? 0).sort((a, b) => (b.value ?? 0) - (a.value ?? 0));
|
|
597
|
+
const treemapLayout = treemap().size([width, height]).paddingTop(
|
|
598
|
+
(d) => d.children && d.children.length > 0 ? SECTION_HEADER_HEIGHT + SECTION_INNER_PADDING : 0
|
|
599
|
+
).paddingInner(treemapInnerPadding).paddingLeft((d) => d.children && d.children.length > 0 ? SECTION_INNER_PADDING : 0).paddingRight((d) => d.children && d.children.length > 0 ? SECTION_INNER_PADDING : 0).paddingBottom((d) => d.children && d.children.length > 0 ? SECTION_INNER_PADDING : 0).round(true);
|
|
600
|
+
const treemapData = treemapLayout(hierarchyRoot);
|
|
601
|
+
const branchNodes = treemapData.descendants().filter((d) => d.children && d.children.length > 0);
|
|
602
|
+
const sections = g.selectAll(".treemapSection").data(branchNodes).enter().append("g").attr("class", "treemapSection").attr("transform", (d) => `translate(${d.x0},${d.y0})`);
|
|
603
|
+
sections.append("rect").attr("width", (d) => d.x1 - d.x0).attr("height", SECTION_HEADER_HEIGHT).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (d) => {
|
|
604
|
+
if (d.depth === 0) {
|
|
605
|
+
return "display: none;";
|
|
606
|
+
}
|
|
607
|
+
return "";
|
|
608
|
+
});
|
|
609
|
+
sections.append("clipPath").attr("id", (_d, i) => `clip-section-${id}-${i}`).append("rect").attr("width", (d) => Math.max(0, d.x1 - d.x0 - 12)).attr("height", SECTION_HEADER_HEIGHT);
|
|
610
|
+
sections.append("rect").attr("width", (d) => d.x1 - d.x0).attr("height", (d) => d.y1 - d.y0).attr("class", (_d, i) => {
|
|
611
|
+
return `treemapSection section${i}`;
|
|
612
|
+
}).attr("fill", (d) => colorScale(d.data.name)).attr("fill-opacity", 0.6).attr("stroke", (d) => colorScalePeer(d.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (d) => {
|
|
613
|
+
if (d.depth === 0) {
|
|
614
|
+
return "display: none;";
|
|
615
|
+
}
|
|
616
|
+
const styles = styles2String({ cssCompiledStyles: d.data.cssCompiledStyles });
|
|
617
|
+
return styles.nodeStyles + ";" + styles.borderStyles.join(";");
|
|
618
|
+
});
|
|
619
|
+
sections.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", SECTION_HEADER_HEIGHT / 2).attr("dominant-baseline", "middle").text((d) => d.depth === 0 ? "" : d.data.name).attr("font-weight", "bold").attr("style", (d) => {
|
|
620
|
+
if (d.depth === 0) {
|
|
621
|
+
return "display: none;";
|
|
622
|
+
}
|
|
623
|
+
const labelStyles = "dominant-baseline: middle; font-size: 12px; fill:" + colorScaleLabel(d.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;";
|
|
624
|
+
const styles = styles2String({ cssCompiledStyles: d.data.cssCompiledStyles });
|
|
625
|
+
return labelStyles + styles.labelStyles.replace("color:", "fill:");
|
|
626
|
+
}).each(function(d) {
|
|
627
|
+
if (d.depth === 0) {
|
|
628
|
+
return;
|
|
629
|
+
}
|
|
630
|
+
const self = select(this);
|
|
631
|
+
const originalText = d.data.name;
|
|
632
|
+
self.text(originalText);
|
|
633
|
+
const totalHeaderWidth = d.x1 - d.x0;
|
|
634
|
+
const labelXPosition = 6;
|
|
635
|
+
let spaceForTextContent;
|
|
636
|
+
if (config.showValues !== false && d.value) {
|
|
637
|
+
const valueEndsAtXRelative = totalHeaderWidth - 10;
|
|
638
|
+
const estimatedValueTextActualWidth = 30;
|
|
639
|
+
const gapBetweenLabelAndValue = 10;
|
|
640
|
+
const labelMustEndBeforeX = valueEndsAtXRelative - estimatedValueTextActualWidth - gapBetweenLabelAndValue;
|
|
641
|
+
spaceForTextContent = labelMustEndBeforeX - labelXPosition;
|
|
642
|
+
} else {
|
|
643
|
+
const labelOwnRightPadding = 6;
|
|
644
|
+
spaceForTextContent = totalHeaderWidth - labelXPosition - labelOwnRightPadding;
|
|
645
|
+
}
|
|
646
|
+
const minimumWidthToDisplay = 15;
|
|
647
|
+
const actualAvailableWidth = Math.max(minimumWidthToDisplay, spaceForTextContent);
|
|
648
|
+
const textNode = self.node();
|
|
649
|
+
const currentTextContentLength = textNode.getComputedTextLength();
|
|
650
|
+
if (currentTextContentLength > actualAvailableWidth) {
|
|
651
|
+
const ellipsis = "...";
|
|
652
|
+
let currentTruncatedText = originalText;
|
|
653
|
+
while (currentTruncatedText.length > 0) {
|
|
654
|
+
currentTruncatedText = originalText.substring(0, currentTruncatedText.length - 1);
|
|
655
|
+
if (currentTruncatedText.length === 0) {
|
|
656
|
+
self.text(ellipsis);
|
|
657
|
+
if (textNode.getComputedTextLength() > actualAvailableWidth) {
|
|
658
|
+
self.text("");
|
|
659
|
+
}
|
|
660
|
+
break;
|
|
661
|
+
}
|
|
662
|
+
self.text(currentTruncatedText + ellipsis);
|
|
663
|
+
if (textNode.getComputedTextLength() <= actualAvailableWidth) {
|
|
664
|
+
break;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
if (config.showValues !== false) {
|
|
670
|
+
sections.append("text").attr("class", "treemapSectionValue").attr("x", (d) => d.x1 - d.x0 - 10).attr("y", SECTION_HEADER_HEIGHT / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((d) => d.value ? valueFormat(d.value) : "").attr("font-style", "italic").attr("style", (d) => {
|
|
671
|
+
if (d.depth === 0) {
|
|
672
|
+
return "display: none;";
|
|
673
|
+
}
|
|
674
|
+
const labelStyles = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + colorScaleLabel(d.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;";
|
|
675
|
+
const styles = styles2String({ cssCompiledStyles: d.data.cssCompiledStyles });
|
|
676
|
+
return labelStyles + styles.labelStyles.replace("color:", "fill:");
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
const leafNodes = treemapData.leaves();
|
|
680
|
+
const cell = g.selectAll(".treemapLeafGroup").data(leafNodes).enter().append("g").attr("class", (d, i) => {
|
|
681
|
+
return `treemapNode treemapLeafGroup leaf${i}${d.data.classSelector ? ` ${d.data.classSelector}` : ""}x`;
|
|
682
|
+
}).attr("transform", (d) => `translate(${d.x0},${d.y0})`);
|
|
683
|
+
cell.append("rect").attr("width", (d) => d.x1 - d.x0).attr("height", (d) => d.y1 - d.y0).attr("class", "treemapLeaf").attr("fill", (d) => {
|
|
684
|
+
return d.parent ? colorScale(d.parent.data.name) : colorScale(d.data.name);
|
|
685
|
+
}).attr("style", (d) => {
|
|
686
|
+
const styles = styles2String({ cssCompiledStyles: d.data.cssCompiledStyles });
|
|
687
|
+
return styles.nodeStyles;
|
|
688
|
+
}).attr("fill-opacity", 0.3).attr("stroke", (d) => {
|
|
689
|
+
return d.parent ? colorScale(d.parent.data.name) : colorScale(d.data.name);
|
|
690
|
+
}).attr("stroke-width", 3);
|
|
691
|
+
cell.append("clipPath").attr("id", (_d, i) => `clip-${id}-${i}`).append("rect").attr("width", (d) => Math.max(0, d.x1 - d.x0 - 4)).attr("height", (d) => Math.max(0, d.y1 - d.y0 - 4));
|
|
692
|
+
const leafLabels = cell.append("text").attr("class", "treemapLabel").attr("x", (d) => (d.x1 - d.x0) / 2).attr("y", (d) => (d.y1 - d.y0) / 2).attr("style", (d) => {
|
|
693
|
+
const labelStyles = "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + colorScaleLabel(d.data.name) + ";";
|
|
694
|
+
const styles = styles2String({ cssCompiledStyles: d.data.cssCompiledStyles });
|
|
695
|
+
return labelStyles + styles.labelStyles.replace("color:", "fill:");
|
|
696
|
+
}).attr("clip-path", (_d, i) => `url(#clip-${id}-${i})`).text((d) => d.data.name);
|
|
697
|
+
leafLabels.each(function(d) {
|
|
698
|
+
const self = select(this);
|
|
699
|
+
const nodeWidth = d.x1 - d.x0;
|
|
700
|
+
const nodeHeight = d.y1 - d.y0;
|
|
701
|
+
const textNode = self.node();
|
|
702
|
+
const padding = 4;
|
|
703
|
+
const availableWidth = nodeWidth - 2 * padding;
|
|
704
|
+
const availableHeight = nodeHeight - 2 * padding;
|
|
705
|
+
if (availableWidth < 10 || availableHeight < 10) {
|
|
706
|
+
self.style("display", "none");
|
|
707
|
+
return;
|
|
708
|
+
}
|
|
709
|
+
let currentLabelFontSize = parseInt(self.style("font-size"), 10);
|
|
710
|
+
const minLabelFontSize = 8;
|
|
711
|
+
const originalValueRelFontSize = 28;
|
|
712
|
+
const valueScaleFactor = 0.6;
|
|
713
|
+
const minValueFontSize = 6;
|
|
714
|
+
const spacingBetweenLabelAndValue = 2;
|
|
715
|
+
while (textNode.getComputedTextLength() > availableWidth && currentLabelFontSize > minLabelFontSize) {
|
|
716
|
+
currentLabelFontSize--;
|
|
717
|
+
self.style("font-size", `${currentLabelFontSize}px`);
|
|
718
|
+
}
|
|
719
|
+
let prospectiveValueFontSize = Math.max(
|
|
720
|
+
minValueFontSize,
|
|
721
|
+
Math.min(originalValueRelFontSize, Math.round(currentLabelFontSize * valueScaleFactor))
|
|
722
|
+
);
|
|
723
|
+
let combinedHeight = currentLabelFontSize + spacingBetweenLabelAndValue + prospectiveValueFontSize;
|
|
724
|
+
while (combinedHeight > availableHeight && currentLabelFontSize > minLabelFontSize) {
|
|
725
|
+
currentLabelFontSize--;
|
|
726
|
+
prospectiveValueFontSize = Math.max(
|
|
727
|
+
minValueFontSize,
|
|
728
|
+
Math.min(originalValueRelFontSize, Math.round(currentLabelFontSize * valueScaleFactor))
|
|
729
|
+
);
|
|
730
|
+
if (prospectiveValueFontSize < minValueFontSize && currentLabelFontSize === minLabelFontSize) {
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
733
|
+
self.style("font-size", `${currentLabelFontSize}px`);
|
|
734
|
+
combinedHeight = currentLabelFontSize + spacingBetweenLabelAndValue + prospectiveValueFontSize;
|
|
735
|
+
}
|
|
736
|
+
self.style("font-size", `${currentLabelFontSize}px`);
|
|
737
|
+
if (textNode.getComputedTextLength() > availableWidth || currentLabelFontSize < minLabelFontSize || availableHeight < currentLabelFontSize) {
|
|
738
|
+
self.style("display", "none");
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
if (config.showValues !== false) {
|
|
742
|
+
const leafValues = cell.append("text").attr("class", "treemapValue").attr("x", (d) => (d.x1 - d.x0) / 2).attr("y", function(d) {
|
|
743
|
+
return (d.y1 - d.y0) / 2;
|
|
744
|
+
}).attr("style", (d) => {
|
|
745
|
+
const labelStyles = "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + colorScaleLabel(d.data.name) + ";";
|
|
746
|
+
const styles = styles2String({ cssCompiledStyles: d.data.cssCompiledStyles });
|
|
747
|
+
return labelStyles + styles.labelStyles.replace("color:", "fill:");
|
|
748
|
+
}).attr("clip-path", (_d, i) => `url(#clip-${id}-${i})`).text((d) => d.value ? valueFormat(d.value) : "");
|
|
749
|
+
leafValues.each(function(d) {
|
|
750
|
+
const valueTextElement = select(this);
|
|
751
|
+
const parentCellNode = this.parentNode;
|
|
752
|
+
if (!parentCellNode) {
|
|
753
|
+
valueTextElement.style("display", "none");
|
|
754
|
+
return;
|
|
755
|
+
}
|
|
756
|
+
const labelElement = select(parentCellNode).select(".treemapLabel");
|
|
757
|
+
if (labelElement.empty() || labelElement.style("display") === "none") {
|
|
758
|
+
valueTextElement.style("display", "none");
|
|
759
|
+
return;
|
|
760
|
+
}
|
|
761
|
+
const finalLabelFontSize = parseFloat(labelElement.style("font-size"));
|
|
762
|
+
const originalValueFontSize = 28;
|
|
763
|
+
const valueScaleFactor = 0.6;
|
|
764
|
+
const minValueFontSize = 6;
|
|
765
|
+
const spacingBetweenLabelAndValue = 2;
|
|
766
|
+
const actualValueFontSize = Math.max(
|
|
767
|
+
minValueFontSize,
|
|
768
|
+
Math.min(originalValueFontSize, Math.round(finalLabelFontSize * valueScaleFactor))
|
|
769
|
+
);
|
|
770
|
+
valueTextElement.style("font-size", `${actualValueFontSize}px`);
|
|
771
|
+
const labelCenterY = (d.y1 - d.y0) / 2;
|
|
772
|
+
const valueTopActualY = labelCenterY + finalLabelFontSize / 2 + spacingBetweenLabelAndValue;
|
|
773
|
+
valueTextElement.attr("y", valueTopActualY);
|
|
774
|
+
const nodeWidth = d.x1 - d.x0;
|
|
775
|
+
const nodeTotalHeight = d.y1 - d.y0;
|
|
776
|
+
const cellBottomPadding = 4;
|
|
777
|
+
const maxValueBottomY = nodeTotalHeight - cellBottomPadding;
|
|
778
|
+
const availableWidthForValue = nodeWidth - 2 * 4;
|
|
779
|
+
if (valueTextElement.node().getComputedTextLength() > availableWidthForValue || valueTopActualY + actualValueFontSize > maxValueBottomY || actualValueFontSize < minValueFontSize) {
|
|
780
|
+
valueTextElement.style("display", "none");
|
|
781
|
+
} else {
|
|
782
|
+
valueTextElement.style("display", null);
|
|
783
|
+
}
|
|
784
|
+
});
|
|
785
|
+
}
|
|
786
|
+
const diagramPadding = config.diagramPadding ?? 8;
|
|
787
|
+
setupViewPortForSVG(svg, diagramPadding, "flowchart", (config == null ? void 0 : config.useMaxWidth) || false);
|
|
788
|
+
}, "draw");
|
|
789
|
+
var getClasses = /* @__PURE__ */ __name(function(_text, diagramObj) {
|
|
790
|
+
return diagramObj.db.getClasses();
|
|
791
|
+
}, "getClasses");
|
|
792
|
+
var renderer = { draw, getClasses };
|
|
793
|
+
var defaultTreemapStyleOptions = {
|
|
794
|
+
sectionStrokeColor: "black",
|
|
795
|
+
sectionStrokeWidth: "1",
|
|
796
|
+
sectionFillColor: "#efefef",
|
|
797
|
+
leafStrokeColor: "black",
|
|
798
|
+
leafStrokeWidth: "1",
|
|
799
|
+
leafFillColor: "#efefef",
|
|
800
|
+
labelColor: "black",
|
|
801
|
+
labelFontSize: "12px",
|
|
802
|
+
valueFontSize: "10px",
|
|
803
|
+
valueColor: "black",
|
|
804
|
+
titleColor: "black",
|
|
805
|
+
titleFontSize: "14px"
|
|
806
|
+
};
|
|
807
|
+
var getStyles = /* @__PURE__ */ __name(({
|
|
808
|
+
treemap: treemap2
|
|
809
|
+
} = {}) => {
|
|
810
|
+
const options = cleanAndMerge(defaultTreemapStyleOptions, treemap2);
|
|
811
|
+
return `
|
|
812
|
+
.treemapNode.section {
|
|
813
|
+
stroke: ${options.sectionStrokeColor};
|
|
814
|
+
stroke-width: ${options.sectionStrokeWidth};
|
|
815
|
+
fill: ${options.sectionFillColor};
|
|
816
|
+
}
|
|
817
|
+
.treemapNode.leaf {
|
|
818
|
+
stroke: ${options.leafStrokeColor};
|
|
819
|
+
stroke-width: ${options.leafStrokeWidth};
|
|
820
|
+
fill: ${options.leafFillColor};
|
|
821
|
+
}
|
|
822
|
+
.treemapLabel {
|
|
823
|
+
fill: ${options.labelColor};
|
|
824
|
+
font-size: ${options.labelFontSize};
|
|
825
|
+
}
|
|
826
|
+
.treemapValue {
|
|
827
|
+
fill: ${options.valueColor};
|
|
828
|
+
font-size: ${options.valueFontSize};
|
|
829
|
+
}
|
|
830
|
+
.treemapTitle {
|
|
831
|
+
fill: ${options.titleColor};
|
|
832
|
+
font-size: ${options.titleFontSize};
|
|
833
|
+
}
|
|
834
|
+
`;
|
|
835
|
+
}, "getStyles");
|
|
836
|
+
var styles_default = getStyles;
|
|
837
|
+
var diagram = {
|
|
838
|
+
parser,
|
|
839
|
+
get db() {
|
|
840
|
+
return new TreeMapDB();
|
|
841
|
+
},
|
|
842
|
+
renderer,
|
|
843
|
+
styles: styles_default
|
|
844
|
+
};
|
|
845
|
+
export {
|
|
846
|
+
diagram
|
|
847
|
+
};
|
|
848
|
+
//# sourceMappingURL=diagram-PSM6KHXK-_wkJk__z.js.map
|