@12-apps/ui 6.86.0 → 6.86.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/components/data-display/Alert/Alert.js +2 -2
- package/dist/_internal/components/data-display/AsyncStateContainer/AsyncStateContainer.js +3 -3
- package/dist/_internal/components/data-display/Avatar/Avatar.js +2 -2
- package/dist/_internal/components/data-display/CardKit/CardKebab.js +3 -3
- package/dist/_internal/components/data-display/CardKit/card-actions-context.js +3 -3
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +7 -7
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +3 -3
- package/dist/_internal/components/data-display/Carousel/Carousel.js +3 -3
- package/dist/_internal/components/data-display/Chart/Chart.js +4 -4
- package/dist/_internal/components/data-display/Chart/SpecChart.js +5 -5
- package/dist/_internal/components/data-display/Chart/chart-context.js +2 -2
- package/dist/_internal/components/data-display/Chart/chart-renderers.js +3 -3
- package/dist/_internal/components/data-display/Chip/Chip.js +3 -3
- package/dist/_internal/components/data-display/Chip/Chip.styles.js +2 -2
- package/dist/_internal/components/data-display/DataGrid/DataGrid.js +3 -3
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +36 -36
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +46 -46
- package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +3 -3
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +4 -4
- package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +3 -3
- package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +3 -3
- package/dist/_internal/components/data-display/DataViews/base-list-card-layout.js +3 -3
- package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +2 -2
- package/dist/_internal/components/data-display/DataViews/base-list-card.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-card-body.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-columns.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-empty.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-export.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +11 -11
- package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +30 -30
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +9 -9
- package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +8 -8
- package/dist/_internal/components/data-display/DataViews/data-views-range-pill.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-scope-tabs.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-select-all-strip.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +8 -8
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +8 -8
- package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +7 -7
- package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +3 -3
- package/dist/_internal/components/data-display/DataViews/list-card-rails.js +2 -2
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +7 -7
- package/dist/_internal/components/data-display/EmptyState/EmptyState.js +2 -2
- package/dist/_internal/components/data-display/FleetMap/FleetBody.js +11 -11
- package/dist/_internal/components/data-display/FleetMap/FleetCanvas.js +10 -10
- package/dist/_internal/components/data-display/FleetMap/FleetMap.js +14 -14
- package/dist/_internal/components/data-display/InteractiveTooltip/InteractiveTooltip.js +2 -2
- package/dist/_internal/components/data-display/Lightbox/Lightbox.js +7 -7
- package/dist/_internal/components/data-display/Lightbox/LightboxControls.js +2 -2
- package/dist/_internal/components/data-display/Lightbox/LightboxOverlay.js +3 -3
- package/dist/_internal/components/data-display/Lightbox/LightboxThumbnails.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapDecorations.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapLayers.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapPreview.hooks.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapPreview.js +9 -9
- package/dist/_internal/components/data-display/MapPreview/MapTiles.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/StaticMapView.js +4 -4
- package/dist/_internal/components/data-display/MapPreview/useMapPreview.js +3 -3
- package/dist/_internal/components/data-display/RegionMap/RegionMap.js +4 -3
- package/dist/_internal/components/data-display/RegionMap/RegionMap.labels.js +12 -0
- package/dist/_internal/components/data-display/RegionMap/RegionMap.labels.js.map +1 -0
- package/dist/_internal/components/data-display/RegionMap/RegionMapDrawing.js +2 -1
- package/dist/_internal/components/data-display/SectionOnboarding/SectionOnboarding.js +3 -3
- package/dist/_internal/components/data-display/Sheet/Sheet.js +2 -2
- package/dist/_internal/components/data-display/Table/Table.js +2 -2
- package/dist/_internal/components/data-display/index.js +51 -50
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +3 -3
- package/dist/_internal/components/feedback/Modal/Modal.js +2 -2
- package/dist/_internal/components/feedback/NotificationStatusNotice/NotificationStatusNotice.js +5 -5
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.js +6 -6
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.parts.js +5 -5
- package/dist/_internal/components/feedback/index.js +10 -10
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.js +4 -4
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocompleteField.js +2 -2
- package/dist/_internal/components/form/AddressAutocomplete/AddressSuggestionsPaper.js +1 -1
- package/dist/_internal/components/form/Autocomplete/Autocomplete.js +1 -1
- package/dist/_internal/components/form/Button/Button.js +2 -2
- package/dist/_internal/components/form/Calendar/Calendar.band.js +18 -0
- package/dist/_internal/components/form/Calendar/Calendar.band.js.map +1 -0
- package/dist/_internal/components/form/Calendar/Calendar.js +7 -5
- package/dist/_internal/components/form/Calendar/CalendarDay.js +4 -1
- package/dist/_internal/components/form/Calendar/CalendarDayCell.js +4 -2
- package/dist/_internal/components/form/Calendar/CalendarMonth.js +5 -3
- package/dist/_internal/components/form/Calendar/CalendarSelectorsMonth.js +6 -4
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +7 -6
- package/dist/_internal/components/form/index.js +14 -13
- package/dist/_internal/components/form/total-form/SubmitButton.js +3 -3
- package/dist/_internal/components/index.js +84 -82
- package/dist/_internal/components/layout/SettingCard/SettingCard.js +10 -10
- package/dist/_internal/components/layout/SettingCard/SettingCard.parts.js +6 -6
- package/dist/_internal/components/layout/SettingCard/SettingCard.summary.js +9 -9
- package/dist/_internal/components/layout/SettingCard/SettingGrid.js +7 -7
- package/dist/_internal/components/layout/SettingCard/SettingGroup.js +11 -11
- package/dist/_internal/components/layout/SettingCard/SettingSwitch.js +10 -10
- package/dist/_internal/components/layout/SettingCard/SettingToggle.js +11 -11
- package/dist/_internal/components/layout/index.js +14 -14
- package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +5 -5
- package/dist/_internal/components/navigation/CommandPalette/CommandPalette.helpers.js +2 -2
- package/dist/_internal/components/navigation/CommandPalette/CommandPalette.hooks.js +3 -3
- package/dist/_internal/components/navigation/CommandPalette/CommandPalette.js +5 -5
- package/dist/_internal/components/navigation/CommandPalette/CommandPaletteResults.js +2 -2
- package/dist/_internal/components/navigation/index.js +10 -10
- package/dist/_internal/en-US.navigation.js +1 -1
- package/dist/_internal/pt-BR.navigation.js +1 -1
- package/dist/_internal/social-login-button/social-login-button.js +3 -3
- package/dist/_internal/user-avatar/user-avatar.js +5 -5
- package/dist/charts.js +5 -5
- package/dist/{chunk-OPY2AGAU.js → chunk-2IHUFUTO.js} +2 -2
- package/dist/{chunk-33AVAYCR.js → chunk-2L6TANRY.js} +5 -5
- package/dist/{chunk-ENJOBJPK.js → chunk-2MT6VSS2.js} +2 -2
- package/dist/{chunk-QADTI63U.js → chunk-3JZ3KEQQ.js} +2 -2
- package/dist/{chunk-EOIRU62W.js → chunk-42D7KBDH.js} +2 -2
- package/dist/{chunk-LXIPBHNJ.js → chunk-42TOCPXB.js} +5 -5
- package/dist/{chunk-IFX5KP65.js → chunk-437HQPUN.js} +4 -4
- package/dist/{chunk-VYQZ5U3N.js → chunk-4NG3LTRX.js} +2 -2
- package/dist/{chunk-POUNFTG3.js → chunk-4OUJ4ZMK.js} +9 -3
- package/dist/chunk-4OUJ4ZMK.js.map +1 -0
- package/dist/{chunk-7YJYIMWP.js → chunk-4QR7LM5F.js} +6 -6
- package/dist/{chunk-KR4TN3OF.js → chunk-4ZQQUICR.js} +2 -2
- package/dist/{chunk-IYDXKLCE.js → chunk-5C3JSXBK.js} +2 -2
- package/dist/{chunk-T6QVM5Q5.js → chunk-5IMI2XNU.js} +6 -6
- package/dist/{chunk-JKIKHWD2.js → chunk-5NT2M2JI.js} +4 -4
- package/dist/{chunk-Q7XLTN2D.js → chunk-5VKHJ7PI.js} +3 -3
- package/dist/{chunk-BP3ZKIPE.js → chunk-64UNVW6D.js} +4 -4
- package/dist/{chunk-SSCEX5NY.js → chunk-656DBMWT.js} +3 -2
- package/dist/{chunk-SSCEX5NY.js.map → chunk-656DBMWT.js.map} +1 -1
- package/dist/{chunk-FCLON3MO.js → chunk-6HXNFNOB.js} +3 -3
- package/dist/{chunk-3OL2TSEJ.js → chunk-6IRZZYHF.js} +5 -5
- package/dist/{chunk-ZLVRCQPG.js → chunk-6X7PE5DH.js} +6 -6
- package/dist/{chunk-ABRVOPC2.js → chunk-7FFY4LJY.js} +2 -2
- package/dist/{chunk-U3HGQHEO.js → chunk-7WE432RQ.js} +13 -13
- package/dist/{chunk-VHGHF537.js → chunk-A3DDEKLV.js} +3 -3
- package/dist/{chunk-A63WU4UZ.js → chunk-AKE6KVQG.js} +70 -41
- package/dist/chunk-AKE6KVQG.js.map +1 -0
- package/dist/{chunk-KRPDBVUB.js → chunk-APSEM5AA.js} +3 -3
- package/dist/{chunk-5ZC7CNU4.js → chunk-AQPPSR4P.js} +2 -2
- package/dist/{chunk-AWUFS2ZC.js → chunk-BAC2PBOS.js} +6 -6
- package/dist/{chunk-OA6T2ME3.js → chunk-BLZDSCIZ.js} +4 -4
- package/dist/{chunk-OQN2FHEL.js → chunk-C4NSEUT5.js} +3 -3
- package/dist/{chunk-IEAPXS57.js → chunk-CJLZHW2Z.js} +2 -2
- package/dist/{chunk-I7JUAHUO.js → chunk-DILDC77M.js} +3 -3
- package/dist/{chunk-U4WAAZXJ.js → chunk-DVX4HDNP.js} +2 -2
- package/dist/{chunk-UTUYXH72.js → chunk-E5QOT7KK.js} +8 -8
- package/dist/{chunk-V6KQ5R4T.js → chunk-EAFZ3RDY.js} +5 -5
- package/dist/{chunk-C5RQBTRZ.js → chunk-EIOGJBJ5.js} +25 -5
- package/dist/chunk-EIOGJBJ5.js.map +1 -0
- package/dist/{chunk-CESGZRVQ.js → chunk-EMSMJRP3.js} +4 -4
- package/dist/{chunk-ULAZDF6D.js → chunk-FF22F7FA.js} +2 -2
- package/dist/{chunk-Z5WUSI47.js → chunk-G3JFESKD.js} +6 -6
- package/dist/{chunk-CARUHKZW.js → chunk-G4W6HR6Q.js} +9 -9
- package/dist/{chunk-KYTFGW4R.js → chunk-GMIMHQ6H.js} +2 -2
- package/dist/chunk-H2UUMZQR.js +74 -0
- package/dist/chunk-H2UUMZQR.js.map +1 -0
- package/dist/{chunk-UT545JBQ.js → chunk-HC6OZ7QK.js} +3 -3
- package/dist/{chunk-MVNFUIJS.js → chunk-HOPRZEBM.js} +4 -4
- package/dist/{chunk-Z445LLFN.js → chunk-I44XL4Z4.js} +7 -6
- package/dist/chunk-I44XL4Z4.js.map +1 -0
- package/dist/{chunk-FZUAB2KS.js → chunk-INFBO356.js} +2 -2
- package/dist/{chunk-XW44IFYE.js → chunk-IWMAFTXP.js} +2 -2
- package/dist/{chunk-2DDCRHJE.js → chunk-IX5ADKII.js} +2 -2
- package/dist/{chunk-N5OEDOJT.js → chunk-J2KVF5GO.js} +3 -3
- package/dist/chunk-J3AWGTJY.js +29 -0
- package/dist/chunk-J3AWGTJY.js.map +1 -0
- package/dist/{chunk-TZC6KIK2.js → chunk-JG733RMP.js} +5 -5
- package/dist/{chunk-PGYYDSNX.js → chunk-JH2XLVWM.js} +2 -2
- package/dist/{chunk-XNMU32XC.js → chunk-JHW35C6W.js} +5 -5
- package/dist/{chunk-4V37DAMA.js → chunk-JRBSTOMA.js} +3 -3
- package/dist/{chunk-K6VEN5VN.js → chunk-K3PMMW23.js} +4 -4
- package/dist/{chunk-JVTZ7FWR.js → chunk-K6FCSB6T.js} +7 -7
- package/dist/{chunk-FZEDQNUN.js → chunk-K7IDOTSU.js} +3 -3
- package/dist/{chunk-XMWTVDQN.js → chunk-LH43GKP2.js} +17 -17
- package/dist/{chunk-YHPSPFU5.js → chunk-LIN4A2BW.js} +4 -4
- package/dist/{chunk-LXMFHD7M.js → chunk-LTSVYILY.js} +4 -4
- package/dist/{chunk-QJLOWBFW.js → chunk-LXTNWQWF.js} +2 -2
- package/dist/{chunk-HI7JPDD6.js → chunk-M3XJVD5G.js} +2 -2
- package/dist/{chunk-FQMLTCXT.js → chunk-MAHY7PK3.js} +4 -4
- package/dist/{chunk-NTRWUDP6.js → chunk-MKVDHR3B.js} +2 -2
- package/dist/{chunk-C74PDNTF.js → chunk-NKEFH3RS.js} +4 -4
- package/dist/{chunk-T6YTDEY4.js → chunk-OFESNJKE.js} +3 -3
- package/dist/{chunk-GLR5MSU3.js → chunk-OY437NRJ.js} +2 -2
- package/dist/{chunk-NI67M453.js → chunk-PGANINQD.js} +5 -5
- package/dist/{chunk-LRQT4MQO.js → chunk-PJNIJIE6.js} +2 -2
- package/dist/{chunk-KRYOT3KB.js → chunk-PQGHYFUA.js} +2 -2
- package/dist/{chunk-5XTPEA3O.js → chunk-PXEIN3J4.js} +7 -7
- package/dist/{chunk-ARMKSYEQ.js → chunk-Q4QFYGPH.js} +2 -2
- package/dist/{chunk-TIM4PXWN.js → chunk-QHIWV55K.js} +2 -2
- package/dist/{chunk-DHAXUVMR.js → chunk-QN7FVZQD.js} +4 -4
- package/dist/{chunk-2WVHZIWP.js → chunk-QSRZOXQI.js} +2 -2
- package/dist/{chunk-IF5UY3CT.js → chunk-QVDEGBME.js} +4 -4
- package/dist/{chunk-6PTP5NID.js → chunk-R2ODLE6G.js} +2 -2
- package/dist/{chunk-XQJPR57I.js → chunk-T5RFH2T5.js} +2 -2
- package/dist/{chunk-WMAS6DZR.js → chunk-TLJVUWJ5.js} +2 -2
- package/dist/{chunk-MK6UXAWY.js → chunk-TSEBMVYY.js} +3 -3
- package/dist/{chunk-NEYZV6V5.js → chunk-UAOE3ZPC.js} +6 -6
- package/dist/{chunk-IMCSY2SI.js → chunk-UFGT2SFD.js} +6 -6
- package/dist/{chunk-WTOA52EQ.js → chunk-UKNMPGEM.js} +2 -2
- package/dist/{chunk-P772HCHI.js → chunk-W676GY42.js} +4 -4
- package/dist/{chunk-T2G4LDU5.js → chunk-WLLUARTC.js} +2 -2
- package/dist/{chunk-JZQYVGPV.js → chunk-WLSFBXGS.js} +3 -3
- package/dist/{chunk-52RHAAIH.js → chunk-X3EEV3OI.js} +3 -3
- package/dist/{chunk-DYRZRY2T.js → chunk-X4N6Q37Q.js} +4 -4
- package/dist/{chunk-HKGKQKQT.js → chunk-X5OGIT2F.js} +52 -20
- package/dist/chunk-X5OGIT2F.js.map +1 -0
- package/dist/{chunk-56GWNA5V.js → chunk-X6D5JEUV.js} +12 -5
- package/dist/chunk-X6D5JEUV.js.map +1 -0
- package/dist/{chunk-ZVZTQF7E.js → chunk-XS6QHZMD.js} +2 -2
- package/dist/{chunk-CPZGFIFH.js → chunk-YNVTUQ5B.js} +2 -2
- package/dist/{chunk-HJJR2WGL.js → chunk-YOXYSAUI.js} +4 -4
- package/dist/{chunk-D72GD4XC.js → chunk-YPW4HZ3Z.js} +6 -2
- package/dist/chunk-YPW4HZ3Z.js.map +1 -0
- package/dist/{chunk-G76PIGF7.js → chunk-ZHQAVW2V.js} +3 -2
- package/dist/chunk-ZHQAVW2V.js.map +1 -0
- package/dist/{chunk-HWPQKHN2.js → chunk-ZIHSCBMN.js} +13 -13
- package/dist/data-display/Alert.js +2 -2
- package/dist/data-display/AsyncStateContainer.js +3 -3
- package/dist/data-display/Avatar.js +2 -2
- package/dist/data-display/CardKit.js +18 -18
- package/dist/data-display/Carousel.js +3 -3
- package/dist/data-display/Chart.js +5 -5
- package/dist/data-display/Chip.js +3 -3
- package/dist/data-display/DataGrid.js +3 -3
- package/dist/data-display/DataViews.js +59 -59
- package/dist/data-display/EmptyState.js +2 -2
- package/dist/data-display/FleetMap.js +14 -14
- package/dist/data-display/InteractiveTooltip.js +2 -2
- package/dist/data-display/Lightbox.js +7 -7
- package/dist/data-display/MapPreview.js +9 -9
- package/dist/data-display/RegionMap.js +4 -3
- package/dist/data-display/SectionOnboarding.js +3 -3
- package/dist/data-display/Sheet.js +2 -2
- package/dist/data-display/Table.js +2 -2
- package/dist/en-US.js +1 -1
- package/dist/feedback/ConfirmAction.js +3 -3
- package/dist/feedback/Modal.js +2 -2
- package/dist/feedback/NotificationStatusNotice.js +5 -5
- package/dist/feedback/SequenceResolver.js +6 -6
- package/dist/form/AddressAutocomplete.js +4 -4
- package/dist/form/Autocomplete.js +1 -1
- package/dist/form/Button.js +2 -2
- package/dist/form/Calendar.js +7 -5
- package/dist/form/DateRangePicker.js +7 -6
- package/dist/form/total-form.js +3 -3
- package/dist/layout/SettingCard.js +14 -14
- package/dist/locales.js +2 -2
- package/dist/navigation/AppHeader.js +5 -5
- package/dist/navigation/CommandPalette.js +5 -5
- package/dist/pt-BR.js +1 -1
- package/dist/social-login-button.js +3 -3
- package/dist/types/components/data-display/RegionMap/RegionMap.labels.d.ts +42 -0
- package/dist/types/components/data-display/RegionMap/RegionMap.labels.d.ts.map +1 -0
- package/dist/types/components/data-display/RegionMap/RegionMapDrawing.d.ts.map +1 -1
- package/dist/types/components/form/AddressAutocomplete/AddressAutocompleteField.d.ts.map +1 -1
- package/dist/types/components/form/AddressAutocomplete/AddressSuggestionsPaper.d.ts +11 -1
- package/dist/types/components/form/AddressAutocomplete/AddressSuggestionsPaper.d.ts.map +1 -1
- package/dist/types/components/form/Calendar/Calendar.band.d.ts +44 -0
- package/dist/types/components/form/Calendar/Calendar.band.d.ts.map +1 -0
- package/dist/types/components/form/Calendar/CalendarDay.d.ts +2 -0
- package/dist/types/components/form/Calendar/CalendarDay.d.ts.map +1 -1
- package/dist/types/components/form/Calendar/CalendarDayCell.d.ts.map +1 -1
- package/dist/types/components/form/Calendar/CalendarMonth.d.ts +3 -2
- package/dist/types/components/form/Calendar/CalendarMonth.d.ts.map +1 -1
- package/dist/types/components/navigation/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/types/copy/navigation.d.ts +2 -0
- package/dist/types/copy/navigation.d.ts.map +1 -1
- package/dist/types/en-US.navigation.d.ts.map +1 -1
- package/dist/types/pt-BR.navigation.d.ts.map +1 -1
- package/dist/user-avatar.js +5 -5
- package/package.json +1 -1
- package/src/components/data-display/RegionMap/RegionMap.labels.ts +60 -0
- package/src/components/data-display/RegionMap/RegionMapDrawing.tsx +87 -45
- package/src/components/form/AddressAutocomplete/AddressAutocompleteField.tsx +17 -4
- package/src/components/form/AddressAutocomplete/AddressSuggestionsPaper.tsx +32 -3
- package/src/components/form/Calendar/Calendar.band.ts +118 -0
- package/src/components/form/Calendar/CalendarDay.tsx +73 -23
- package/src/components/form/Calendar/CalendarDayCell.tsx +2 -0
- package/src/components/form/Calendar/CalendarMonth.tsx +14 -4
- package/src/components/navigation/CommandPalette/CommandPalette.md +1 -0
- package/src/components/navigation/CommandPalette/CommandPalette.tsx +4 -2
- package/src/copy/navigation.ts +2 -0
- package/src/en-US.navigation.ts +1 -0
- package/src/pt-BR.navigation.ts +1 -0
- package/dist/chunk-56GWNA5V.js.map +0 -1
- package/dist/chunk-A63WU4UZ.js.map +0 -1
- package/dist/chunk-C5RQBTRZ.js.map +0 -1
- package/dist/chunk-D72GD4XC.js.map +0 -1
- package/dist/chunk-G76PIGF7.js.map +0 -1
- package/dist/chunk-HKGKQKQT.js.map +0 -1
- package/dist/chunk-POUNFTG3.js.map +0 -1
- package/dist/chunk-Z445LLFN.js.map +0 -1
- /package/dist/{chunk-OPY2AGAU.js.map → chunk-2IHUFUTO.js.map} +0 -0
- /package/dist/{chunk-33AVAYCR.js.map → chunk-2L6TANRY.js.map} +0 -0
- /package/dist/{chunk-ENJOBJPK.js.map → chunk-2MT6VSS2.js.map} +0 -0
- /package/dist/{chunk-QADTI63U.js.map → chunk-3JZ3KEQQ.js.map} +0 -0
- /package/dist/{chunk-EOIRU62W.js.map → chunk-42D7KBDH.js.map} +0 -0
- /package/dist/{chunk-LXIPBHNJ.js.map → chunk-42TOCPXB.js.map} +0 -0
- /package/dist/{chunk-IFX5KP65.js.map → chunk-437HQPUN.js.map} +0 -0
- /package/dist/{chunk-VYQZ5U3N.js.map → chunk-4NG3LTRX.js.map} +0 -0
- /package/dist/{chunk-7YJYIMWP.js.map → chunk-4QR7LM5F.js.map} +0 -0
- /package/dist/{chunk-KR4TN3OF.js.map → chunk-4ZQQUICR.js.map} +0 -0
- /package/dist/{chunk-IYDXKLCE.js.map → chunk-5C3JSXBK.js.map} +0 -0
- /package/dist/{chunk-T6QVM5Q5.js.map → chunk-5IMI2XNU.js.map} +0 -0
- /package/dist/{chunk-JKIKHWD2.js.map → chunk-5NT2M2JI.js.map} +0 -0
- /package/dist/{chunk-Q7XLTN2D.js.map → chunk-5VKHJ7PI.js.map} +0 -0
- /package/dist/{chunk-BP3ZKIPE.js.map → chunk-64UNVW6D.js.map} +0 -0
- /package/dist/{chunk-FCLON3MO.js.map → chunk-6HXNFNOB.js.map} +0 -0
- /package/dist/{chunk-3OL2TSEJ.js.map → chunk-6IRZZYHF.js.map} +0 -0
- /package/dist/{chunk-ZLVRCQPG.js.map → chunk-6X7PE5DH.js.map} +0 -0
- /package/dist/{chunk-ABRVOPC2.js.map → chunk-7FFY4LJY.js.map} +0 -0
- /package/dist/{chunk-U3HGQHEO.js.map → chunk-7WE432RQ.js.map} +0 -0
- /package/dist/{chunk-VHGHF537.js.map → chunk-A3DDEKLV.js.map} +0 -0
- /package/dist/{chunk-KRPDBVUB.js.map → chunk-APSEM5AA.js.map} +0 -0
- /package/dist/{chunk-5ZC7CNU4.js.map → chunk-AQPPSR4P.js.map} +0 -0
- /package/dist/{chunk-AWUFS2ZC.js.map → chunk-BAC2PBOS.js.map} +0 -0
- /package/dist/{chunk-OA6T2ME3.js.map → chunk-BLZDSCIZ.js.map} +0 -0
- /package/dist/{chunk-OQN2FHEL.js.map → chunk-C4NSEUT5.js.map} +0 -0
- /package/dist/{chunk-IEAPXS57.js.map → chunk-CJLZHW2Z.js.map} +0 -0
- /package/dist/{chunk-I7JUAHUO.js.map → chunk-DILDC77M.js.map} +0 -0
- /package/dist/{chunk-U4WAAZXJ.js.map → chunk-DVX4HDNP.js.map} +0 -0
- /package/dist/{chunk-UTUYXH72.js.map → chunk-E5QOT7KK.js.map} +0 -0
- /package/dist/{chunk-V6KQ5R4T.js.map → chunk-EAFZ3RDY.js.map} +0 -0
- /package/dist/{chunk-CESGZRVQ.js.map → chunk-EMSMJRP3.js.map} +0 -0
- /package/dist/{chunk-ULAZDF6D.js.map → chunk-FF22F7FA.js.map} +0 -0
- /package/dist/{chunk-Z5WUSI47.js.map → chunk-G3JFESKD.js.map} +0 -0
- /package/dist/{chunk-CARUHKZW.js.map → chunk-G4W6HR6Q.js.map} +0 -0
- /package/dist/{chunk-KYTFGW4R.js.map → chunk-GMIMHQ6H.js.map} +0 -0
- /package/dist/{chunk-UT545JBQ.js.map → chunk-HC6OZ7QK.js.map} +0 -0
- /package/dist/{chunk-MVNFUIJS.js.map → chunk-HOPRZEBM.js.map} +0 -0
- /package/dist/{chunk-FZUAB2KS.js.map → chunk-INFBO356.js.map} +0 -0
- /package/dist/{chunk-XW44IFYE.js.map → chunk-IWMAFTXP.js.map} +0 -0
- /package/dist/{chunk-2DDCRHJE.js.map → chunk-IX5ADKII.js.map} +0 -0
- /package/dist/{chunk-N5OEDOJT.js.map → chunk-J2KVF5GO.js.map} +0 -0
- /package/dist/{chunk-TZC6KIK2.js.map → chunk-JG733RMP.js.map} +0 -0
- /package/dist/{chunk-PGYYDSNX.js.map → chunk-JH2XLVWM.js.map} +0 -0
- /package/dist/{chunk-XNMU32XC.js.map → chunk-JHW35C6W.js.map} +0 -0
- /package/dist/{chunk-4V37DAMA.js.map → chunk-JRBSTOMA.js.map} +0 -0
- /package/dist/{chunk-K6VEN5VN.js.map → chunk-K3PMMW23.js.map} +0 -0
- /package/dist/{chunk-JVTZ7FWR.js.map → chunk-K6FCSB6T.js.map} +0 -0
- /package/dist/{chunk-FZEDQNUN.js.map → chunk-K7IDOTSU.js.map} +0 -0
- /package/dist/{chunk-XMWTVDQN.js.map → chunk-LH43GKP2.js.map} +0 -0
- /package/dist/{chunk-YHPSPFU5.js.map → chunk-LIN4A2BW.js.map} +0 -0
- /package/dist/{chunk-LXMFHD7M.js.map → chunk-LTSVYILY.js.map} +0 -0
- /package/dist/{chunk-QJLOWBFW.js.map → chunk-LXTNWQWF.js.map} +0 -0
- /package/dist/{chunk-HI7JPDD6.js.map → chunk-M3XJVD5G.js.map} +0 -0
- /package/dist/{chunk-FQMLTCXT.js.map → chunk-MAHY7PK3.js.map} +0 -0
- /package/dist/{chunk-NTRWUDP6.js.map → chunk-MKVDHR3B.js.map} +0 -0
- /package/dist/{chunk-C74PDNTF.js.map → chunk-NKEFH3RS.js.map} +0 -0
- /package/dist/{chunk-T6YTDEY4.js.map → chunk-OFESNJKE.js.map} +0 -0
- /package/dist/{chunk-GLR5MSU3.js.map → chunk-OY437NRJ.js.map} +0 -0
- /package/dist/{chunk-NI67M453.js.map → chunk-PGANINQD.js.map} +0 -0
- /package/dist/{chunk-LRQT4MQO.js.map → chunk-PJNIJIE6.js.map} +0 -0
- /package/dist/{chunk-KRYOT3KB.js.map → chunk-PQGHYFUA.js.map} +0 -0
- /package/dist/{chunk-5XTPEA3O.js.map → chunk-PXEIN3J4.js.map} +0 -0
- /package/dist/{chunk-ARMKSYEQ.js.map → chunk-Q4QFYGPH.js.map} +0 -0
- /package/dist/{chunk-TIM4PXWN.js.map → chunk-QHIWV55K.js.map} +0 -0
- /package/dist/{chunk-DHAXUVMR.js.map → chunk-QN7FVZQD.js.map} +0 -0
- /package/dist/{chunk-2WVHZIWP.js.map → chunk-QSRZOXQI.js.map} +0 -0
- /package/dist/{chunk-IF5UY3CT.js.map → chunk-QVDEGBME.js.map} +0 -0
- /package/dist/{chunk-6PTP5NID.js.map → chunk-R2ODLE6G.js.map} +0 -0
- /package/dist/{chunk-XQJPR57I.js.map → chunk-T5RFH2T5.js.map} +0 -0
- /package/dist/{chunk-WMAS6DZR.js.map → chunk-TLJVUWJ5.js.map} +0 -0
- /package/dist/{chunk-MK6UXAWY.js.map → chunk-TSEBMVYY.js.map} +0 -0
- /package/dist/{chunk-NEYZV6V5.js.map → chunk-UAOE3ZPC.js.map} +0 -0
- /package/dist/{chunk-IMCSY2SI.js.map → chunk-UFGT2SFD.js.map} +0 -0
- /package/dist/{chunk-WTOA52EQ.js.map → chunk-UKNMPGEM.js.map} +0 -0
- /package/dist/{chunk-P772HCHI.js.map → chunk-W676GY42.js.map} +0 -0
- /package/dist/{chunk-T2G4LDU5.js.map → chunk-WLLUARTC.js.map} +0 -0
- /package/dist/{chunk-JZQYVGPV.js.map → chunk-WLSFBXGS.js.map} +0 -0
- /package/dist/{chunk-52RHAAIH.js.map → chunk-X3EEV3OI.js.map} +0 -0
- /package/dist/{chunk-DYRZRY2T.js.map → chunk-X4N6Q37Q.js.map} +0 -0
- /package/dist/{chunk-ZVZTQF7E.js.map → chunk-XS6QHZMD.js.map} +0 -0
- /package/dist/{chunk-CPZGFIFH.js.map → chunk-YNVTUQ5B.js.map} +0 -0
- /package/dist/{chunk-HJJR2WGL.js.map → chunk-YOXYSAUI.js.map} +0 -0
- /package/dist/{chunk-HWPQKHN2.js.map → chunk-ZIHSCBMN.js.map} +0 -0
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
actionsOf,
|
|
3
|
+
makeTestId
|
|
4
|
+
} from "./chunk-MWFSIB6K.js";
|
|
1
5
|
import {
|
|
2
6
|
ACTIONS_GAP_UNITS,
|
|
3
7
|
ACTIONS_MARGIN_TOP_UNITS,
|
|
@@ -14,10 +18,6 @@ import {
|
|
|
14
18
|
illustrationMaxWidth,
|
|
15
19
|
illustrationOpacity
|
|
16
20
|
} from "./chunk-KLPTOVIX.js";
|
|
17
|
-
import {
|
|
18
|
-
actionsOf,
|
|
19
|
-
makeTestId
|
|
20
|
-
} from "./chunk-MWFSIB6K.js";
|
|
21
21
|
import {
|
|
22
22
|
EN_US_UI_LABELS
|
|
23
23
|
} from "./chunk-XOXXG7Q5.js";
|
|
@@ -207,4 +207,4 @@ export {
|
|
|
207
207
|
EmptyState,
|
|
208
208
|
EmptyState_default
|
|
209
209
|
};
|
|
210
|
-
//# sourceMappingURL=chunk-
|
|
210
|
+
//# sourceMappingURL=chunk-42TOCPXB.js.map
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
MapControlBar
|
|
7
7
|
} from "./chunk-6WHIJPEF.js";
|
|
8
|
-
import {
|
|
9
|
-
MapSearchBar
|
|
10
|
-
} from "./chunk-MIUPTZS6.js";
|
|
11
8
|
import {
|
|
12
9
|
resolveMapCopy
|
|
13
10
|
} from "./chunk-CSGBHYW6.js";
|
|
14
11
|
import {
|
|
15
12
|
HEATMAP_VIEWBOX
|
|
16
13
|
} from "./chunk-H2J2MTRE.js";
|
|
14
|
+
import {
|
|
15
|
+
MapSearchBar
|
|
16
|
+
} from "./chunk-MIUPTZS6.js";
|
|
17
17
|
|
|
18
18
|
// src/components/data-display/MapPreview/MapLayers.tsx
|
|
19
19
|
import { useTheme } from "@mui/material/styles/index.js";
|
|
@@ -59,4 +59,4 @@ var MapLayers = ({ settings, zoom, mapType, search, controls }) => {
|
|
|
59
59
|
export {
|
|
60
60
|
MapLayers
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=chunk-
|
|
62
|
+
//# sourceMappingURL=chunk-437HQPUN.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-6DPAWXZ3.js";
|
|
7
7
|
import {
|
|
8
8
|
Button
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YOXYSAUI.js";
|
|
10
10
|
import {
|
|
11
11
|
Text
|
|
12
12
|
} from "./chunk-AJBRO76D.js";
|
|
@@ -167,4 +167,4 @@ function DataViewsExportMenu({
|
|
|
167
167
|
export {
|
|
168
168
|
DataViewsExportMenu
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=chunk-
|
|
170
|
+
//# sourceMappingURL=chunk-4NG3LTRX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CalendarDayCell
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YPW4HZ3Z.js";
|
|
4
4
|
import {
|
|
5
5
|
getMonthName
|
|
6
6
|
} from "./chunk-QWOI5BZV.js";
|
|
@@ -16,7 +16,13 @@ import IconButton from "@mui/material/IconButton/index.js";
|
|
|
16
16
|
import Typography from "@mui/material/Typography/index.js";
|
|
17
17
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
18
|
var SPACER_WIDTH = sxRem(32);
|
|
19
|
-
var GRID_SX = {
|
|
19
|
+
var GRID_SX = {
|
|
20
|
+
display: "grid",
|
|
21
|
+
justifyItems: "center",
|
|
22
|
+
gridTemplateColumns: "repeat(7, minmax(0, 1fr))",
|
|
23
|
+
columnGap: 0,
|
|
24
|
+
rowGap: 0.5
|
|
25
|
+
};
|
|
20
26
|
var MONTH_SX = { flex: `1 1 ${sxRem(280)}`, minWidth: 0, maxWidth: sxRem(304) };
|
|
21
27
|
var MonthNavHeader = ({ title, showPrevious, showNext, onPreviousMonth, onNextMonth }) => /* @__PURE__ */ jsxs(
|
|
22
28
|
Box,
|
|
@@ -118,4 +124,4 @@ export {
|
|
|
118
124
|
MonthDays,
|
|
119
125
|
CalendarMonth
|
|
120
126
|
};
|
|
121
|
-
//# sourceMappingURL=chunk-
|
|
127
|
+
//# sourceMappingURL=chunk-4OUJ4ZMK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/form/Calendar/CalendarMonth.tsx"],"sourcesContent":["import ChevronLeft from '@mui/icons-material/ChevronLeft';\nimport ChevronRight from '@mui/icons-material/ChevronRight';\nimport Box from '@mui/material/Box/index.js';\nimport IconButton from '@mui/material/IconButton/index.js';\nimport Typography from '@mui/material/Typography/index.js';\nimport type { FC } from 'react';\nimport React from 'react';\n\nimport { sxRem } from '../../../tokens/relative';\n\nimport { getMonthName } from './Calendar.dates';\nimport type { CalendarProps, MonthMatrix } from './Calendar.types';\nimport type { DayCellContext } from './CalendarDayCell';\nimport { CalendarDayCell } from './CalendarDayCell';\n\n/** The nav spacer's width and the weekday row's height, 32 design px through the type scale. */\nconst SPACER_WIDTH = sxRem(32);\n\n// `minmax(0, 1fr)`, not `1fr`: a bare `1fr` keeps each column at least its\n// content's width, which is what held the grid at 304px (FUT-3861). No column\n// gap: a selected range is one band across the days, and a gap cut it into\n// tiles (FUT-4162). Rows keep theirs. Items centre in their column: the built-in\n// day stretches across it, a host's `renderDay` cell sits in its middle.\nconst GRID_SX = {\n display: 'grid',\n justifyItems: 'center',\n gridTemplateColumns: 'repeat(7, minmax(0, 1fr))',\n columnGap: 0,\n rowGap: 0.5,\n} as const;\n\n/**\n * A month takes the room it is given, from nothing up to seven full columns\n * (304 design px: what 7 × 40 cells and 6 × 4 gaps came to before the gaps\n * went, FUT-4162). Months side by side keep a 280 basis,\n * so a multi-month calendar still wraps rather than squeezing every month.\n */\nexport const MONTH_SX = { flex: `1 1 ${sxRem(280)}`, minWidth: 0, maxWidth: sxRem(304) } as const;\n\n// Only the outermost months carry arrows; the ones between get a spacer so their\n// titles stay centred.\nconst MonthNavHeader: FC<{\n title: React.ReactNode;\n showPrevious: boolean;\n showNext: boolean;\n onPreviousMonth: () => void;\n onNextMonth: () => void;\n}> = ({ title, showPrevious, showNext, onPreviousMonth, onNextMonth }) => (\n <Box\n sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', mb: 2 }}\n data-testid=\"calendar-header\"\n >\n {showPrevious && (\n <IconButton onClick={onPreviousMonth} size=\"small\" data-testid=\"calendar-prev-month\">\n <ChevronLeft />\n </IconButton>\n )}\n\n <Typography\n variant=\"h6\"\n component=\"h2\"\n sx={{ fontWeight: 'bold', flex: 1, textAlign: 'center' }}\n >\n {title}\n </Typography>\n\n {showNext && (\n <IconButton onClick={onNextMonth} size=\"small\" data-testid=\"calendar-next-month\">\n <ChevronRight />\n </IconButton>\n )}\n\n {!showPrevious && !showNext && <Box sx={{ width: SPACER_WIDTH }} />}\n </Box>\n);\n\nconst WeekdayHeader: FC<{ weekdayNames: string[] }> = ({ weekdayNames }) => (\n <Box sx={{ ...GRID_SX, mb: 1 }}>\n {weekdayNames.map((weekday, index) => (\n <Box\n // Narrow weekday names repeat within a week ('S', 'T'), so position is\n // the only stable key here.\n key={`weekday-${index}`}\n role=\"columnheader\"\n data-testid={`calendar-weekday-${index}`}\n sx={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: SPACER_WIDTH,\n fontSize: sxRem(14),\n fontWeight: 'bold',\n color: 'text.secondary',\n }}\n >\n {weekday}\n </Box>\n ))}\n </Box>\n);\n\n/** The weekday row and the day grid under a month's caption. */\nexport const MonthDays: FC<{\n matrix: MonthMatrix;\n monthIndex: number;\n weekdayNames: string[];\n dayContext: DayCellContext;\n}> = ({ matrix, monthIndex, weekdayNames, dayContext }) => (\n <>\n <WeekdayHeader weekdayNames={weekdayNames} />\n\n <Box\n role=\"grid\"\n aria-labelledby={`month-${monthIndex}`}\n data-testid=\"calendar-grid\"\n sx={GRID_SX}\n >\n {matrix.weeks.flat().map((day) => (\n <CalendarDayCell key={day.key} day={day} {...dayContext} />\n ))}\n </Box>\n </>\n);\n\nexport interface CalendarMonthProps {\n matrix: MonthMatrix;\n monthIndex: number;\n monthsToShow: number;\n locale: string;\n weekdayNames: string[];\n renderHeader?: CalendarProps['renderHeader'];\n onPreviousMonth: () => void;\n onNextMonth: () => void;\n dayContext: DayCellContext;\n}\n\nexport const CalendarMonth: FC<CalendarMonthProps> = ({\n matrix,\n monthIndex,\n monthsToShow,\n locale,\n weekdayNames,\n renderHeader,\n onPreviousMonth,\n onNextMonth,\n dayContext,\n}) => {\n const monthName = getMonthName(matrix.month, matrix.year, locale);\n const title = renderHeader ? renderHeader({ month: matrix.month, year: matrix.year }) : monthName;\n\n return (\n /* The month is addressable by its position, because in a multi-month\n calendar every day number appears once PER MONTH — `calendar-date-5` is\n January's 5th and February's. Without a per-month hook a test can only\n reach a day positionally, which is exactly what the flakiness gate\n refuses. Additive: `calendar-grid` below is unchanged. */\n <Box sx={MONTH_SX} data-testid={`calendar-month-${monthIndex}`}>\n <MonthNavHeader\n title={title}\n showPrevious={monthIndex === 0}\n showNext={monthIndex === monthsToShow - 1}\n onPreviousMonth={onPreviousMonth}\n onNextMonth={onNextMonth}\n />\n\n <MonthDays\n matrix={matrix}\n monthIndex={monthIndex}\n weekdayNames={weekdayNames}\n dayContext={dayContext}\n />\n </Box>\n );\n};\n"],"mappings":";;;;;;;;;;;AAAA,OAAO,iBAAiB;AACxB,OAAO,kBAAkB;AACzB,OAAO,SAAS;AAChB,OAAO,gBAAgB;AACvB,OAAO,gBAAgB;AA4CrB,SA4DA,UAtDM,KANN;AAhCF,IAAM,eAAe,MAAM,EAAE;AAO7B,IAAM,UAAU;AAAA,EACd,SAAS;AAAA,EACT,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,WAAW;AAAA,EACX,QAAQ;AACV;AAQO,IAAM,WAAW,EAAE,MAAM,OAAO,MAAM,GAAG,CAAC,IAAI,UAAU,GAAG,UAAU,MAAM,GAAG,EAAE;AAIvF,IAAM,iBAMD,CAAC,EAAE,OAAO,cAAc,UAAU,iBAAiB,YAAY,MAClE;AAAA,EAAC;AAAA;AAAA,IACC,IAAI,EAAE,SAAS,QAAQ,YAAY,UAAU,gBAAgB,iBAAiB,IAAI,EAAE;AAAA,IACpF,eAAY;AAAA,IAEX;AAAA,sBACC,oBAAC,cAAW,SAAS,iBAAiB,MAAK,SAAQ,eAAY,uBAC7D,8BAAC,eAAY,GACf;AAAA,MAGF;AAAA,QAAC;AAAA;AAAA,UACC,SAAQ;AAAA,UACR,WAAU;AAAA,UACV,IAAI,EAAE,YAAY,QAAQ,MAAM,GAAG,WAAW,SAAS;AAAA,UAEtD;AAAA;AAAA,MACH;AAAA,MAEC,YACC,oBAAC,cAAW,SAAS,aAAa,MAAK,SAAQ,eAAY,uBACzD,8BAAC,gBAAa,GAChB;AAAA,MAGD,CAAC,gBAAgB,CAAC,YAAY,oBAAC,OAAI,IAAI,EAAE,OAAO,aAAa,GAAG;AAAA;AAAA;AACnE;AAGF,IAAM,gBAAgD,CAAC,EAAE,aAAa,MACpE,oBAAC,OAAI,IAAI,EAAE,GAAG,SAAS,IAAI,EAAE,GAC1B,uBAAa,IAAI,CAAC,SAAS,UAC1B;AAAA,EAAC;AAAA;AAAA,IAIC,MAAK;AAAA,IACL,eAAa,oBAAoB,KAAK;AAAA,IACtC,IAAI;AAAA,MACF,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,QAAQ;AAAA,MACR,UAAU,MAAM,EAAE;AAAA,MAClB,YAAY;AAAA,MACZ,OAAO;AAAA,IACT;AAAA,IAEC;AAAA;AAAA,EAbI,WAAW,KAAK;AAcvB,CACD,GACH;AAIK,IAAM,YAKR,CAAC,EAAE,QAAQ,YAAY,cAAc,WAAW,MACnD,iCACE;AAAA,sBAAC,iBAAc,cAA4B;AAAA,EAE3C;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,mBAAiB,SAAS,UAAU;AAAA,MACpC,eAAY;AAAA,MACZ,IAAI;AAAA,MAEH,iBAAO,MAAM,KAAK,EAAE,IAAI,CAAC,QACxB,oBAAC,mBAA8B,KAAW,GAAG,cAAvB,IAAI,GAA+B,CAC1D;AAAA;AAAA,EACH;AAAA,GACF;AAeK,IAAM,gBAAwC,CAAC;AAAA,EACpD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,YAAY,aAAa,OAAO,OAAO,OAAO,MAAM,MAAM;AAChE,QAAM,QAAQ,eAAe,aAAa,EAAE,OAAO,OAAO,OAAO,MAAM,OAAO,KAAK,CAAC,IAAI;AAExF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAME,qBAAC,OAAI,IAAI,UAAU,eAAa,kBAAkB,UAAU,IAC1D;AAAA;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,cAAc,eAAe;AAAA,UAC7B,UAAU,eAAe,eAAe;AAAA,UACxC;AAAA,UACA;AAAA;AAAA,MACF;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA;AAAA,MACF;AAAA,OACF;AAAA;AAEJ;","names":[]}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AVATAR_DEFAULTS,
|
|
3
|
-
contentTypeOf,
|
|
4
|
-
pickAvatarContent
|
|
5
|
-
} from "./chunk-3ZVUNSFF.js";
|
|
6
1
|
import {
|
|
7
2
|
AvatarView
|
|
8
3
|
} from "./chunk-EOQ6EKTS.js";
|
|
@@ -12,6 +7,11 @@ import {
|
|
|
12
7
|
GROUP_MAX,
|
|
13
8
|
GROUP_OVERLAP
|
|
14
9
|
} from "./chunk-6ZZGK5DT.js";
|
|
10
|
+
import {
|
|
11
|
+
AVATAR_DEFAULTS,
|
|
12
|
+
contentTypeOf,
|
|
13
|
+
pickAvatarContent
|
|
14
|
+
} from "./chunk-3ZVUNSFF.js";
|
|
15
15
|
import {
|
|
16
16
|
EN_US_UI_LABELS
|
|
17
17
|
} from "./chunk-XOXXG7Q5.js";
|
|
@@ -178,4 +178,4 @@ export {
|
|
|
178
178
|
Avatar,
|
|
179
179
|
AvatarGroup
|
|
180
180
|
};
|
|
181
|
-
//# sourceMappingURL=chunk-
|
|
181
|
+
//# sourceMappingURL=chunk-4QR7LM5F.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cardGridTracks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UKNMPGEM.js";
|
|
4
4
|
import {
|
|
5
5
|
default as default2
|
|
6
6
|
} from "./chunk-6DPAWXZ3.js";
|
|
@@ -48,4 +48,4 @@ function CardBody({
|
|
|
48
48
|
export {
|
|
49
49
|
CardBody
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-4ZQQUICR.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
MONTH_SX,
|
|
6
6
|
MonthDays
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4OUJ4ZMK.js";
|
|
8
8
|
import {
|
|
9
9
|
MONTH_INDEXES,
|
|
10
10
|
canShiftMonth,
|
|
@@ -115,4 +115,4 @@ var CalendarSelectorsMonth = ({
|
|
|
115
115
|
export {
|
|
116
116
|
CalendarSelectorsMonth
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=chunk-
|
|
118
|
+
//# sourceMappingURL=chunk-5C3JSXBK.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SaveViewModal
|
|
3
|
-
} from "./chunk-WMAS6DZR.js";
|
|
4
1
|
import {
|
|
5
2
|
ManageViewsDialog
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K7IDOTSU.js";
|
|
4
|
+
import {
|
|
5
|
+
SaveViewModal
|
|
6
|
+
} from "./chunk-TLJVUWJ5.js";
|
|
7
7
|
import {
|
|
8
8
|
useDataViewsCopy
|
|
9
9
|
} from "./chunk-KHG57NAE.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-4SQ2WCZA.js";
|
|
13
13
|
import {
|
|
14
14
|
Alert
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QVDEGBME.js";
|
|
16
16
|
|
|
17
17
|
// src/components/data-display/DataViews/data-views-table-parts.tsx
|
|
18
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -121,4 +121,4 @@ export {
|
|
|
121
121
|
ViewsMenuSlot,
|
|
122
122
|
ViewDialogs
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=chunk-
|
|
124
|
+
//# sourceMappingURL=chunk-5IMI2XNU.js.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
geocode
|
|
3
|
-
} from "./chunk-CB6DTWD5.js";
|
|
4
1
|
import {
|
|
5
2
|
CITY_ZOOM,
|
|
6
3
|
CLICK_JITTER_DEGREES,
|
|
@@ -9,6 +6,9 @@ import {
|
|
|
9
6
|
MAX_ZOOM,
|
|
10
7
|
MIN_ZOOM
|
|
11
8
|
} from "./chunk-H2J2MTRE.js";
|
|
9
|
+
import {
|
|
10
|
+
geocode
|
|
11
|
+
} from "./chunk-CB6DTWD5.js";
|
|
12
12
|
|
|
13
13
|
// src/components/data-display/MapPreview/MapPreview.hooks.ts
|
|
14
14
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -186,4 +186,4 @@ export {
|
|
|
186
186
|
useMapSearch,
|
|
187
187
|
useMapClick
|
|
188
188
|
};
|
|
189
|
-
//# sourceMappingURL=chunk-
|
|
189
|
+
//# sourceMappingURL=chunk-5NT2M2JI.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Sheet
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X4N6Q37Q.js";
|
|
4
4
|
import {
|
|
5
5
|
Dialog
|
|
6
6
|
} from "./chunk-DAFFZED3.js";
|
|
7
7
|
import {
|
|
8
8
|
Button
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YOXYSAUI.js";
|
|
10
10
|
import {
|
|
11
11
|
accentFor
|
|
12
12
|
} from "./chunk-B7ZHEOQQ.js";
|
|
@@ -166,4 +166,4 @@ AppHeaderDetails.displayName = "AppHeaderDetails";
|
|
|
166
166
|
export {
|
|
167
167
|
AppHeaderDetails
|
|
168
168
|
};
|
|
169
|
-
//# sourceMappingURL=chunk-
|
|
169
|
+
//# sourceMappingURL=chunk-5VKHJ7PI.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useLightboxCopy
|
|
3
|
-
} from "./chunk-TEQYTEM2.js";
|
|
4
1
|
import {
|
|
5
2
|
thumbnailStripSx
|
|
6
3
|
} from "./chunk-VQU3CBAL.js";
|
|
4
|
+
import {
|
|
5
|
+
useLightboxCopy
|
|
6
|
+
} from "./chunk-TEQYTEM2.js";
|
|
7
7
|
import {
|
|
8
8
|
onMedia,
|
|
9
9
|
sheen
|
|
@@ -89,4 +89,4 @@ var LightboxThumbnails = ({
|
|
|
89
89
|
export {
|
|
90
90
|
LightboxThumbnails
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=chunk-
|
|
92
|
+
//# sourceMappingURL=chunk-64UNVW6D.js.map
|
|
@@ -10,7 +10,8 @@ var EN_US_COMMAND_PALETTE_COPY = {
|
|
|
10
10
|
placeholder: "Type a command or search...",
|
|
11
11
|
commandCount: (count) => `${count} commands`,
|
|
12
12
|
noCommandsFound: (query) => `No commands found for "${query}"`,
|
|
13
|
-
general: "General"
|
|
13
|
+
general: "General",
|
|
14
|
+
closeSearch: "Close search"
|
|
14
15
|
};
|
|
15
16
|
var EN_US_BREADCRUMB_COPY = {
|
|
16
17
|
showMore: "Show more",
|
|
@@ -27,4 +28,4 @@ export {
|
|
|
27
28
|
EN_US_BREADCRUMB_COPY,
|
|
28
29
|
EN_US_SECTION_NAV_COPY
|
|
29
30
|
};
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
31
|
+
//# sourceMappingURL=chunk-656DBMWT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/en-US.navigation.ts"],"sourcesContent":["/**\n * The en-US pack for the navigation family. Split the same way\n * `pt-BR.navigation.ts` is — see `en-US.ts` for why.\n */\nimport type {\n BreadcrumbCopy,\n CommandPaletteCopy,\n SectionNavCopy,\n} from './copy';\n\nexport const EN_US_COMMAND_PALETTE_COPY: Required<CommandPaletteCopy> = {\n execute: \"Run\",\n // The arrow glyphs and the key name are part of the hint a reader looks at\n // while their hands are on the keyboard, so they survive translation intact.\n navigate: \"↑↓ Navigate\",\n close: \"ESC Close\",\n recent: \"Recent\",\n tryAnotherTerm: \"Try another term\",\n placeholder: \"Type a command or search...\",\n commandCount: (count) => `${count} commands`,\n noCommandsFound: (query) => `No commands found for \"${query}\"`,\n general: \"General\",\n};\n\nexport const EN_US_BREADCRUMB_COPY: BreadcrumbCopy = {\n showMore: \"Show more\",\n moreItems: \"More items\",\n};\n\nexport const EN_US_SECTION_NAV_COPY: SectionNavCopy = {\n close: \"Close\",\n badge: (count) => (count === 1 ? \"1 pending\" : `${count} pending`),\n attention: \"Needs attention\",\n};\n"],"mappings":";AAUO,IAAM,6BAA2D;AAAA,EACtE,SAAS;AAAA;AAAA;AAAA,EAGT,UAAU;AAAA,EACV,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,cAAc,CAAC,UAAU,GAAG,KAAK;AAAA,EACjC,iBAAiB,CAAC,UAAU,0BAA0B,KAAK;AAAA,EAC3D,SAAS;
|
|
1
|
+
{"version":3,"sources":["../src/en-US.navigation.ts"],"sourcesContent":["/**\n * The en-US pack for the navigation family. Split the same way\n * `pt-BR.navigation.ts` is — see `en-US.ts` for why.\n */\nimport type {\n BreadcrumbCopy,\n CommandPaletteCopy,\n SectionNavCopy,\n} from './copy';\n\nexport const EN_US_COMMAND_PALETTE_COPY: Required<CommandPaletteCopy> = {\n execute: \"Run\",\n // The arrow glyphs and the key name are part of the hint a reader looks at\n // while their hands are on the keyboard, so they survive translation intact.\n navigate: \"↑↓ Navigate\",\n close: \"ESC Close\",\n recent: \"Recent\",\n tryAnotherTerm: \"Try another term\",\n placeholder: \"Type a command or search...\",\n commandCount: (count) => `${count} commands`,\n noCommandsFound: (query) => `No commands found for \"${query}\"`,\n general: \"General\",\n closeSearch: \"Close search\",\n};\n\nexport const EN_US_BREADCRUMB_COPY: BreadcrumbCopy = {\n showMore: \"Show more\",\n moreItems: \"More items\",\n};\n\nexport const EN_US_SECTION_NAV_COPY: SectionNavCopy = {\n close: \"Close\",\n badge: (count) => (count === 1 ? \"1 pending\" : `${count} pending`),\n attention: \"Needs attention\",\n};\n"],"mappings":";AAUO,IAAM,6BAA2D;AAAA,EACtE,SAAS;AAAA;AAAA;AAAA,EAGT,UAAU;AAAA,EACV,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,cAAc,CAAC,UAAU,GAAG,KAAK;AAAA,EACjC,iBAAiB,CAAC,UAAU,0BAA0B,KAAK;AAAA,EAC3D,SAAS;AAAA,EACT,aAAa;AACf;AAEO,IAAM,wBAAwC;AAAA,EACnD,UAAU;AAAA,EACV,WAAW;AACb;AAEO,IAAM,yBAAyC;AAAA,EACpD,OAAO;AAAA,EACP,OAAO,CAAC,UAAW,UAAU,IAAI,cAAc,GAAG,KAAK;AAAA,EACvD,WAAW;AACb;","names":[]}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
ViewFooter,
|
|
11
11
|
ViewHeader,
|
|
12
12
|
ViewsList
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2MT6VSS2.js";
|
|
14
14
|
import {
|
|
15
15
|
useDataViewsCopy
|
|
16
16
|
} from "./chunk-KHG57NAE.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-6DPAWXZ3.js";
|
|
20
20
|
import {
|
|
21
21
|
Button
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YOXYSAUI.js";
|
|
23
23
|
import {
|
|
24
24
|
rem,
|
|
25
25
|
sxRem
|
|
@@ -265,4 +265,4 @@ function DataViewsDisplayPanel({
|
|
|
265
265
|
export {
|
|
266
266
|
DataViewsDisplayPanel
|
|
267
267
|
};
|
|
268
|
-
//# sourceMappingURL=chunk-
|
|
268
|
+
//# sourceMappingURL=chunk-6HXNFNOB.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RegionMapLegend
|
|
3
|
+
} from "./chunk-PBRCKHN3.js";
|
|
1
4
|
import {
|
|
2
5
|
RegionMapDrawing
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AKE6KVQG.js";
|
|
4
7
|
import {
|
|
5
8
|
useRegionMap
|
|
6
9
|
} from "./chunk-GMRQPNG3.js";
|
|
7
10
|
import {
|
|
8
11
|
RegionMapList
|
|
9
12
|
} from "./chunk-BRZKOUEL.js";
|
|
10
|
-
import {
|
|
11
|
-
RegionMapLegend
|
|
12
|
-
} from "./chunk-PBRCKHN3.js";
|
|
13
13
|
|
|
14
14
|
// src/components/data-display/RegionMap/RegionMap.tsx
|
|
15
15
|
import Box from "@mui/material/Box/index.js";
|
|
@@ -77,4 +77,4 @@ function RegionMap({
|
|
|
77
77
|
export {
|
|
78
78
|
RegionMap
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-6IRZZYHF.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DataViewsGrid
|
|
3
|
-
} from "./chunk-I7JUAHUO.js";
|
|
4
1
|
import {
|
|
5
2
|
DeleteViewDialog
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YNVTUQ5B.js";
|
|
4
|
+
import {
|
|
5
|
+
DataViewsGrid
|
|
6
|
+
} from "./chunk-DILDC77M.js";
|
|
7
7
|
import {
|
|
8
8
|
viewStateKey
|
|
9
9
|
} from "./chunk-ZOLAYP2D.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
ViewDialogs,
|
|
16
16
|
ViewMutationErrorAlert
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5IMI2XNU.js";
|
|
18
18
|
import {
|
|
19
19
|
useSavedViewsController
|
|
20
20
|
} from "./chunk-B2JSUFDX.js";
|
|
@@ -166,4 +166,4 @@ function renderViewDialogs(ctl, fields, columns, views, testIdPrefix, onSaved) {
|
|
|
166
166
|
export {
|
|
167
167
|
DataViewsTableBase
|
|
168
168
|
};
|
|
169
|
-
//# sourceMappingURL=chunk-
|
|
169
|
+
//# sourceMappingURL=chunk-6X7PE5DH.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-4XK6JQ4D.js";
|
|
4
4
|
import {
|
|
5
5
|
Button
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YOXYSAUI.js";
|
|
7
7
|
import {
|
|
8
8
|
fieldHeight
|
|
9
9
|
} from "./chunk-RGVNXES5.js";
|
|
@@ -34,4 +34,4 @@ function SubmitButton({
|
|
|
34
34
|
export {
|
|
35
35
|
SubmitButton
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-7FFY4LJY.js.map
|
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useColumnsWithActions,
|
|
3
3
|
useRenderedColumns
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FF22F7FA.js";
|
|
5
5
|
import {
|
|
6
6
|
filterRows
|
|
7
7
|
} from "./chunk-YGQX7BNI.js";
|
|
8
|
-
import {
|
|
9
|
-
resolveScope,
|
|
10
|
-
useScopeConfigChecks
|
|
11
|
-
} from "./chunk-PL2AB5HJ.js";
|
|
12
|
-
import {
|
|
13
|
-
computeActiveFilterCount,
|
|
14
|
-
defaultSortFields
|
|
15
|
-
} from "./chunk-WTOA52EQ.js";
|
|
16
8
|
import {
|
|
17
9
|
serverDerived,
|
|
18
10
|
useServerQuery
|
|
@@ -21,15 +13,23 @@ import {
|
|
|
21
13
|
useSelection
|
|
22
14
|
} from "./chunk-LLZWB32X.js";
|
|
23
15
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./chunk-
|
|
16
|
+
resolveScope,
|
|
17
|
+
useScopeConfigChecks
|
|
18
|
+
} from "./chunk-PL2AB5HJ.js";
|
|
19
|
+
import {
|
|
20
|
+
computeActiveFilterCount,
|
|
21
|
+
defaultSortFields
|
|
22
|
+
} from "./chunk-UKNMPGEM.js";
|
|
27
23
|
import {
|
|
28
24
|
emptyViewState
|
|
29
25
|
} from "./chunk-HLYYB4O5.js";
|
|
30
26
|
import {
|
|
31
27
|
useDataViewsCopy
|
|
32
28
|
} from "./chunk-KHG57NAE.js";
|
|
29
|
+
import {
|
|
30
|
+
useClearFilters,
|
|
31
|
+
useStateWriters
|
|
32
|
+
} from "./chunk-OOLES6RR.js";
|
|
33
33
|
|
|
34
34
|
// src/components/data-display/DataViews/use-data-views-state.ts
|
|
35
35
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -178,4 +178,4 @@ function useDataViewsState({
|
|
|
178
178
|
export {
|
|
179
179
|
useDataViewsState
|
|
180
180
|
};
|
|
181
|
-
//# sourceMappingURL=chunk-
|
|
181
|
+
//# sourceMappingURL=chunk-7WE432RQ.js.map
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from "./chunk-L7BRU4UF.js";
|
|
9
9
|
import {
|
|
10
10
|
Alert
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QVDEGBME.js";
|
|
12
12
|
import {
|
|
13
13
|
Button
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YOXYSAUI.js";
|
|
15
15
|
|
|
16
16
|
// src/components/feedback/NotificationStatusNotice/NotificationStatusNotice.tsx
|
|
17
17
|
import Box from "@mui/material/Box/index.js";
|
|
@@ -106,4 +106,4 @@ NotificationStatusNotice.displayName = "NotificationStatusNotice";
|
|
|
106
106
|
export {
|
|
107
107
|
NotificationStatusNotice
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-A3DDEKLV.js.map
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
labelOrder,
|
|
3
|
+
placeLabels
|
|
4
|
+
} from "./chunk-J3AWGTJY.js";
|
|
1
5
|
import {
|
|
2
6
|
labelPosition
|
|
3
7
|
} from "./chunk-COOSJKZL.js";
|
|
@@ -26,7 +30,9 @@ function RegionMapDrawing({
|
|
|
26
30
|
const { view, drawn } = model;
|
|
27
31
|
const wanted = new Set(highlightedIds);
|
|
28
32
|
const highlighted = drawn.filter((d) => wanted.has(d.id));
|
|
29
|
-
const labelled =
|
|
33
|
+
const labelled = labelOrder(drawn.filter((d) => d.excluded || wanted.has(d.id)), wanted);
|
|
34
|
+
const boxRef = React.useRef(null);
|
|
35
|
+
useLabelPlacement(boxRef, labelled.map((d) => d.id).join("|"), remPx(theme, 4));
|
|
30
36
|
const base = drawn.map((d) => ({ id: d.id, name: d.name, geometry: d.geometry, outside: d.outside === true }));
|
|
31
37
|
return /* @__PURE__ */ jsxs(
|
|
32
38
|
Box,
|
|
@@ -44,6 +50,7 @@ function RegionMapDrawing({
|
|
|
44
50
|
bgcolor: "background.paper"
|
|
45
51
|
},
|
|
46
52
|
"data-testid": `${testId}-canvas`,
|
|
53
|
+
ref: boxRef,
|
|
47
54
|
children: [
|
|
48
55
|
/* @__PURE__ */ jsxs(
|
|
49
56
|
"svg",
|
|
@@ -59,20 +66,7 @@ function RegionMapDrawing({
|
|
|
59
66
|
/* @__PURE__ */ jsx(BaseAreas, { areas: base, testId, theme }),
|
|
60
67
|
/* @__PURE__ */ jsx(ExcludedAreas, { drawn, hatchId, testId, theme }),
|
|
61
68
|
/* @__PURE__ */ jsx(Circles, { radii: model.radii, theme }),
|
|
62
|
-
|
|
63
|
-
"path",
|
|
64
|
-
{
|
|
65
|
-
d: d.geometry.path,
|
|
66
|
-
fillRule: "evenodd",
|
|
67
|
-
vectorEffect: "non-scaling-stroke",
|
|
68
|
-
fill: alpha(theme.palette.primary.main, 0.3),
|
|
69
|
-
stroke: theme.palette.primary.main,
|
|
70
|
-
strokeWidth: 2.5,
|
|
71
|
-
pointerEvents: "none",
|
|
72
|
-
"data-testid": `${testId}-highlight-${d.id}`
|
|
73
|
-
},
|
|
74
|
-
`h-${d.id}`
|
|
75
|
-
)),
|
|
69
|
+
/* @__PURE__ */ jsx(Highlights, { areas: highlighted, testId, theme }),
|
|
76
70
|
showCenter && /* @__PURE__ */ jsx(
|
|
77
71
|
"circle",
|
|
78
72
|
{
|
|
@@ -95,6 +89,26 @@ function RegionMapDrawing({
|
|
|
95
89
|
}
|
|
96
90
|
);
|
|
97
91
|
}
|
|
92
|
+
function Highlights({
|
|
93
|
+
areas,
|
|
94
|
+
testId,
|
|
95
|
+
theme
|
|
96
|
+
}) {
|
|
97
|
+
return /* @__PURE__ */ jsx(Fragment, { children: areas.map((d) => /* @__PURE__ */ jsx(
|
|
98
|
+
"path",
|
|
99
|
+
{
|
|
100
|
+
d: d.geometry.path,
|
|
101
|
+
fillRule: "evenodd",
|
|
102
|
+
vectorEffect: "non-scaling-stroke",
|
|
103
|
+
fill: alpha(theme.palette.primary.main, 0.3),
|
|
104
|
+
stroke: theme.palette.primary.main,
|
|
105
|
+
strokeWidth: 2.5,
|
|
106
|
+
pointerEvents: "none",
|
|
107
|
+
"data-testid": `${testId}-highlight-${d.id}`
|
|
108
|
+
},
|
|
109
|
+
`h-${d.id}`
|
|
110
|
+
)) });
|
|
111
|
+
}
|
|
98
112
|
function Hatch({ id, pitch, theme }) {
|
|
99
113
|
return /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("pattern", { id, width: pitch, height: pitch, patternUnits: "userSpaceOnUse", patternTransform: "rotate(45)", children: [
|
|
100
114
|
/* @__PURE__ */ jsx("rect", { width: pitch, height: pitch, fill: alpha(theme.palette.text.primary, 0.1) }),
|
|
@@ -164,9 +178,38 @@ function Circles({ radii, theme }) {
|
|
|
164
178
|
radius
|
|
165
179
|
)) });
|
|
166
180
|
}
|
|
167
|
-
function
|
|
168
|
-
|
|
169
|
-
|
|
181
|
+
function useLabelPlacement(boxRef, key, gap) {
|
|
182
|
+
React.useEffect(() => {
|
|
183
|
+
const box = boxRef.current;
|
|
184
|
+
if (!box || typeof ResizeObserver === "undefined") return void 0;
|
|
185
|
+
const labels = Array.from(box.querySelectorAll("[data-region-label]"));
|
|
186
|
+
const place = () => {
|
|
187
|
+
const spanX = box.clientWidth;
|
|
188
|
+
const spanY = box.clientHeight;
|
|
189
|
+
if (spanX === 0 || spanY === 0) return;
|
|
190
|
+
const placed = placeLabels(
|
|
191
|
+
labels.map((label) => ({
|
|
192
|
+
fractionX: Number(label.dataset.fractionX),
|
|
193
|
+
fractionY: Number(label.dataset.fractionY),
|
|
194
|
+
spanX: label.offsetWidth,
|
|
195
|
+
spanY: label.offsetHeight
|
|
196
|
+
})),
|
|
197
|
+
{ spanX, spanY },
|
|
198
|
+
gap
|
|
199
|
+
);
|
|
200
|
+
placed.forEach(({ x, y, visible }, index) => {
|
|
201
|
+
const label = labels[index];
|
|
202
|
+
label.style.left = `${x / spanX * 100}%`;
|
|
203
|
+
label.style.top = `${y / spanY * 100}%`;
|
|
204
|
+
label.style.visibility = visible ? "visible" : "hidden";
|
|
205
|
+
label.dataset.hidden = visible ? "false" : "true";
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
const observer = new ResizeObserver(place);
|
|
209
|
+
observer.observe(box);
|
|
210
|
+
for (const label of labels) observer.observe(label);
|
|
211
|
+
return () => observer.disconnect();
|
|
212
|
+
}, [boxRef, key, gap]);
|
|
170
213
|
}
|
|
171
214
|
function AreaLabel({
|
|
172
215
|
area,
|
|
@@ -175,38 +218,24 @@ function AreaLabel({
|
|
|
175
218
|
theme
|
|
176
219
|
}) {
|
|
177
220
|
const at = labelPosition(area.geometry.rings, view);
|
|
178
|
-
const ref = React.useRef(null);
|
|
179
|
-
const gap = remPx(theme, 4);
|
|
180
|
-
React.useEffect(() => {
|
|
181
|
-
const label = ref.current;
|
|
182
|
-
const box = label?.parentElement;
|
|
183
|
-
if (!label || !box || typeof ResizeObserver === "undefined") return void 0;
|
|
184
|
-
const observer = new ResizeObserver(() => {
|
|
185
|
-
const width = box.clientWidth;
|
|
186
|
-
const height = box.clientHeight;
|
|
187
|
-
if (width === 0 || height === 0) return;
|
|
188
|
-
const x = clampCentre(at.fractionX * width, label.offsetWidth / 2, width, gap);
|
|
189
|
-
const y = clampCentre(at.fractionY * height, label.offsetHeight / 2, height, gap);
|
|
190
|
-
label.style.left = `${x / width * 100}%`;
|
|
191
|
-
label.style.top = `${y / height * 100}%`;
|
|
192
|
-
});
|
|
193
|
-
observer.observe(box);
|
|
194
|
-
observer.observe(label);
|
|
195
|
-
return () => observer.disconnect();
|
|
196
|
-
}, [at.fractionX, at.fractionY, gap]);
|
|
197
221
|
const halo = `0 0 ${rem(theme, 3)} ${theme.palette.background.paper}`;
|
|
198
222
|
return /* @__PURE__ */ jsx(
|
|
199
223
|
Typography,
|
|
200
224
|
{
|
|
201
|
-
ref,
|
|
202
225
|
component: "span",
|
|
203
226
|
"aria-hidden": true,
|
|
204
227
|
"data-testid": `${testId}-label-${area.id}`,
|
|
205
|
-
|
|
228
|
+
"data-region-label": "",
|
|
229
|
+
"data-fraction-x": at.fractionX,
|
|
230
|
+
"data-fraction-y": at.fractionY,
|
|
231
|
+
style: {
|
|
232
|
+
left: `${(at.fractionX * 100).toFixed(2)}%`,
|
|
233
|
+
top: `${(at.fractionY * 100).toFixed(2)}%`
|
|
234
|
+
},
|
|
206
235
|
sx: {
|
|
207
236
|
position: "absolute",
|
|
208
237
|
transform: "translate(-50%, -50%)",
|
|
209
|
-
fontSize: rem(theme,
|
|
238
|
+
fontSize: rem(theme, 12),
|
|
210
239
|
fontWeight: 700,
|
|
211
240
|
lineHeight: 1.1,
|
|
212
241
|
textAlign: "center",
|
|
@@ -223,4 +252,4 @@ function AreaLabel({
|
|
|
223
252
|
export {
|
|
224
253
|
RegionMapDrawing
|
|
225
254
|
};
|
|
226
|
-
//# sourceMappingURL=chunk-
|
|
255
|
+
//# sourceMappingURL=chunk-AKE6KVQG.js.map
|