@abyss-project/commons-front-core 20.5.1 → 21.0.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/CHANGELOG.md +39 -0
- package/README.md +18 -0
- package/catalog/pages/CookieConsent.tsx +1 -1
- package/catalog/pages/MobileShell.tsx +75 -39
- package/catalog/pages/Tabs.tsx +24 -0
- package/catalog/specs/cookie-consent-modal.spec.ts +1 -1
- package/catalog/specs/mobile-shell.spec.ts +28 -0
- package/dist/{CookieConsentSettings-BGIHx7eH.js → CookieConsentSettings-BzeQZ5tD.js} +223 -224
- package/dist/{Surface-B74cXq1M.js → Surface-t4XKtudZ.js} +319 -714
- package/dist/Tabs-DXgqVX6V.js +5276 -0
- package/dist/components/ScanStatus/InfectedDownloadWarningModal.d.ts +14 -45
- package/dist/components/business/AbyssProjectLinkField/AbyssProjectLinkField.d.ts +48 -0
- package/dist/components/business/CookieConsent/containing-block.d.ts +1 -1
- package/dist/components/business/Deliveries/ScheduledTaskPanel.d.ts +7 -2
- package/dist/components/business/Deliveries/deliveries.logic.d.ts +31 -0
- package/dist/components/business/Deliveries/deliveries.types.d.ts +24 -0
- package/dist/components/business/Deliveries/use-missed-run-count.hook.d.ts +8 -0
- package/dist/components/business/Deliveries/use-missed-runs.hook.d.ts +13 -0
- package/dist/components/business/Deliveries/use-previous-page-edge.hook.d.ts +22 -0
- package/dist/components/business/PendingInvitations/PendingInvitations.d.ts +28 -0
- package/dist/components/business/index.d.ts +2 -0
- package/dist/components/editors/PdfEditor/PdfEditor.d.ts +2 -2
- package/dist/components/editors/PdfEditor/pdf-colors.d.ts +2 -2
- package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.d.ts +3 -3
- package/dist/components/inputs/date-localization.d.ts +3 -3
- package/dist/components/layers/Modal/Modal.d.ts +1 -1
- package/dist/components/meaning/Avatar/Avatar.d.ts +2 -0
- package/dist/components/mobile/ActionBar/ActionBar.d.ts +2 -1
- package/dist/components/mobile/BottomSheet/BottomSheet.d.ts +8 -2
- package/dist/components/mobile/MobileShell/MobileShell.d.ts +2 -1
- package/dist/components/mobile/MobileShell/MobileShellActionBar.d.ts +7 -0
- package/dist/components/mobile/MobileShell/MobileShellPageFrame.d.ts +13 -0
- package/dist/components/mobile/index.d.ts +1 -0
- package/dist/components/mobile/mobile-layout.d.ts +8 -0
- package/dist/components/mobile/test-support/mobile-test-harness.d.ts +5 -0
- package/dist/components/structure/AppShell/AppShell.d.ts +2 -2
- package/dist/components/structure/test-support/structure-test-harness.d.ts +1 -3
- package/dist/cookie-consent.js +2 -2
- package/dist/demo/DemoBanner/DemoBanner.d.ts +1 -1
- package/dist/{editors-s-GER37R.js → editors-Dt29L0Ux.js} +4074 -4063
- package/dist/editors.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +52 -454
- package/dist/hooks/use-scroll-overflow-cue.hook.d.ts +8 -2
- package/dist/{index-DoWxAfPn.js → index-3hRPEDk5.js} +4 -4
- package/dist/{index-DctO0l5q.js → index-BHKOZzg1.js} +1 -1
- package/dist/{index-NX_Kd4oz.js → index-BYWSBoej.js} +3 -3
- package/dist/{index-genxamHw.js → index-BYWcX6y7.js} +2 -2
- package/dist/{index-Dka20zad.js → index-BaS25rA-.js} +2 -2
- package/dist/{index-BZgkwoZ5.js → index-BczDLUpv.js} +2 -2
- package/dist/{index-BxlF9T05.js → index-Bh0e5MGQ.js} +2 -2
- package/dist/{index-CO6rjqWZ.js → index-C3iToWR_.js} +4 -4
- package/dist/{index-B635dFQ2.js → index-CNem7pV2.js} +2 -2
- package/dist/{index-B_fqzhtm.js → index-Cs5brR68.js} +3 -3
- package/dist/{index-D9IW7UEw.js → index-D0E9e2bc.js} +2 -2
- package/dist/{index-CXEf_Hel.js → index-D2yo-g20.js} +4 -4
- package/dist/{index-1n03jgsr.js → index-DGizXlGr.js} +3 -3
- package/dist/{index-CE-4v9ue.js → index-DLZ2_Fhk.js} +3 -3
- package/dist/{index-CVN6HOlq.js → index-DbBqHu3d.js} +2 -2
- package/dist/{index-B-oGxRVH.js → index-Deq0UIQ5.js} +2 -2
- package/dist/{index-8L4OftHM.js → index-Dg0a5ekJ.js} +2 -2
- package/dist/{index-yqn8Hbay.js → index-DvcQvaXv.js} +2 -2
- package/dist/{index-YkgGwyfx.js → index-ETHoxvZf.js} +2 -2
- package/dist/{index-D4kZ3Yip.js → index-na4ea52T.js} +2 -2
- package/dist/{index-Bn9RgQrP.js → index-vX7Ua1iM.js} +2 -2
- package/dist/index.js +47045 -19954
- package/dist/theme/design-media.d.ts +4 -4
- package/dist/theme/design-theme.d.ts +1 -5
- package/dist/theme/index.d.ts +0 -1
- package/dist/translations/en.d.ts +18 -219
- package/dist/translations/fr.d.ts +18 -219
- package/dist/utils/file.utils.d.ts +2 -2
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/notification-target.utils.d.ts +49 -0
- package/package.json +8 -22
- package/test-results/catalog/.last-run.json +4 -0
- package/vite.config.ts +6 -8
- package/dist/Tabs-nH2IBqqa.js +0 -1991
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/design-theme-DtU1zQos.js +0 -27703
- package/dist/index-C27b790L.js +0 -3304
- package/dist/legacy/components/Avatars/OrganizationAvatar/OrganizationAvatar.component.d.ts +0 -24
- package/dist/legacy/components/Avatars/OrganizationAvatar/index.d.ts +0 -2
- package/dist/legacy/components/Avatars/ProjectAvatar/ProjectAvatar.component.d.ts +0 -29
- package/dist/legacy/components/Avatars/ProjectAvatar/index.d.ts +0 -2
- package/dist/legacy/components/Avatars/UserAvatar/UserAvatar.component.d.ts +0 -25
- package/dist/legacy/components/Avatars/UserAvatar/constant.d.ts +0 -8
- package/dist/legacy/components/Avatars/UserAvatar/index.d.ts +0 -3
- package/dist/legacy/components/Avatars/UserAvatarList/UserAvatarList.component.d.ts +0 -18
- package/dist/legacy/components/Avatars/UserAvatarList/index.d.ts +0 -2
- package/dist/legacy/components/Avatars/index.d.ts +0 -4
- package/dist/legacy/components/Banking/AccountTransactions/AccountTransactionsRow.component.d.ts +0 -30
- package/dist/legacy/components/Banking/AccountTransactions/index.d.ts +0 -2
- package/dist/legacy/components/Banking/Inputs/SelectAccountTransactionCategory/SelectAccountTransactionCategory.component.d.ts +0 -12
- package/dist/legacy/components/Banking/Inputs/SelectAccountTransactionCategory/index.d.ts +0 -1
- package/dist/legacy/components/Banking/Inputs/index.d.ts +0 -1
- package/dist/legacy/components/Banking/index.d.ts +0 -1
- package/dist/legacy/components/Cards/InternalProjectCard/InternalProjectCard.component.d.ts +0 -36
- package/dist/legacy/components/Cards/InternalProjectCard/index.d.ts +0 -2
- package/dist/legacy/components/Cards/ProjectCard/ProjectCard.component.d.ts +0 -28
- package/dist/legacy/components/Cards/ProjectCard/index.d.ts +0 -2
- package/dist/legacy/components/Cards/index.d.ts +0 -2
- package/dist/legacy/components/Charts/AbyssBarChart/AbyssBarChart.component.d.ts +0 -21
- package/dist/legacy/components/Charts/AbyssBarChart/index.d.ts +0 -1
- package/dist/legacy/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.d.ts +0 -14
- package/dist/legacy/components/Charts/AbyssCashFlowChart/index.d.ts +0 -1
- package/dist/legacy/components/Charts/AbyssLineChart/AbyssLineChart.component.d.ts +0 -33
- package/dist/legacy/components/Charts/AbyssLineChart/index.d.ts +0 -1
- package/dist/legacy/components/Charts/AbyssPieChart/AbyssPieChart.component.d.ts +0 -18
- package/dist/legacy/components/Charts/AbyssPieChart/index.d.ts +0 -1
- package/dist/legacy/components/Charts/index.d.ts +0 -4
- package/dist/legacy/components/Charts/useNivoTheme.d.ts +0 -65
- package/dist/legacy/components/Chips/ApplicationSentinelTypeChip/ApplicationSentinelTypeChip.component.d.ts +0 -7
- package/dist/legacy/components/Chips/ApplicationSentinelTypeChip/index.d.ts +0 -1
- package/dist/legacy/components/Chips/LogTypeChip/LogTypeChip.component.d.ts +0 -7
- package/dist/legacy/components/Chips/LogTypeChip/index.d.ts +0 -1
- package/dist/legacy/components/Chips/ProjectStatusChip/ProjectStatusChip.component.d.ts +0 -7
- package/dist/legacy/components/Chips/ProjectStatusChip/index.d.ts +0 -1
- package/dist/legacy/components/Chips/WebhookResponseCodeChip/WebhookResponseCodeChip.component.d.ts +0 -6
- package/dist/legacy/components/Chips/WebhookResponseCodeChip/index.d.ts +0 -1
- package/dist/legacy/components/Chips/index.d.ts +0 -4
- package/dist/legacy/components/CommandPalette/AbyssCommandPalette.d.ts +0 -12
- package/dist/legacy/components/CommandPalette/index.d.ts +0 -3
- package/dist/legacy/components/CommandPalette/types.d.ts +0 -104
- package/dist/legacy/components/CommandPalette/useCommandPaletteHotkey.d.ts +0 -10
- package/dist/legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.d.ts +0 -13
- package/dist/legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.error.spec.d.ts +0 -1
- package/dist/legacy/components/CompanySearchAutocomplete/index.d.ts +0 -2
- package/dist/legacy/components/Data/AbyssTable/AbyssTable.component.d.ts +0 -70
- package/dist/legacy/components/Data/AbyssTable/AbyssTable.component.spec.d.ts +0 -1
- package/dist/legacy/components/Data/AbyssTable/AbyssTableCards.component.d.ts +0 -25
- package/dist/legacy/components/Data/AbyssTable/abyss-table.logic.d.ts +0 -147
- package/dist/legacy/components/Data/AbyssTable/abyss-table.logic.spec.d.ts +0 -1
- package/dist/legacy/components/Data/AbyssTable/index.d.ts +0 -2
- package/dist/legacy/components/Data/index.d.ts +0 -1
- package/dist/legacy/components/InfoBox/InfoBox.component.d.ts +0 -6
- package/dist/legacy/components/InfoBox/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/AbyssDatePicker/AbyssDatePicker.component.d.ts +0 -4
- package/dist/legacy/components/Inputs/AbyssDatePicker/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/AbyssDateTimePicker/AbyssDateTimePicker.component.d.ts +0 -4
- package/dist/legacy/components/Inputs/AbyssDateTimePicker/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/AbyssNumberField/AbyssNumberField.component.d.ts +0 -35
- package/dist/legacy/components/Inputs/AbyssNumberField/format.d.ts +0 -35
- package/dist/legacy/components/Inputs/AbyssNumberField/format.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/AbyssNumberField/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/AbyssScopeSwitcher/AbyssScopeSwitcher.component.d.ts +0 -21
- package/dist/legacy/components/Inputs/AbyssScopeSwitcher/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/AbyssScopeSwitcher/scope-option.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/AbyssSelectOrganization/AbyssSelectOrganization.component.d.ts +0 -18
- package/dist/legacy/components/Inputs/AbyssSelectOrganization/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/AbyssSelectProject/AbyssSelectProject.component.d.ts +0 -18
- package/dist/legacy/components/Inputs/AbyssSelectProject/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/CloudImport/CloudImport.component.d.ts +0 -17
- package/dist/legacy/components/Inputs/CloudImport/CloudImport.component.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/CloudImport/CloudImportFile.component.d.ts +0 -14
- package/dist/legacy/components/Inputs/CloudImport/CloudImportFile.component.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/CloudImport/CloudImportFolder.component.d.ts +0 -18
- package/dist/legacy/components/Inputs/CloudImport/index.d.ts +0 -3
- package/dist/legacy/components/Inputs/ColorPalette/ColorPalette.component.d.ts +0 -23
- package/dist/legacy/components/Inputs/ColorPalette/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/ColorPicker/ColorPicker.component.d.ts +0 -19
- package/dist/legacy/components/Inputs/ColorPicker/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/ContextSelector/ContextSelector.component.d.ts +0 -68
- package/dist/legacy/components/Inputs/ContextSelector/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +0 -60
- package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.granularity.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.segmented.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-i18n.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-picker.logic.d.ts +0 -69
- package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-picker.logic.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-presets.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-presets.util.d.ts +0 -15
- package/dist/legacy/components/Inputs/DatePeriodPicker/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/DropZone/DropZone.component.d.ts +0 -27
- package/dist/legacy/components/Inputs/DropZone/DropZone.component.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/DropZone/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/LanguageFlagLabel/LanguageFlagLabel.component.d.ts +0 -22
- package/dist/legacy/components/Inputs/LanguageFlagLabel/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/LanguageFlagLabel/language-flags.d.ts +0 -12
- package/dist/legacy/components/Inputs/PasswordInput/PasswordInput.component.d.ts +0 -41
- package/dist/legacy/components/Inputs/PasswordInput/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/ProjectCategoryBadge/ProjectCategoryBadge.component.d.ts +0 -8
- package/dist/legacy/components/Inputs/ProjectCategoryBadge/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +0 -39
- package/dist/legacy/components/Inputs/ProjectLinkSelector/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/ProjectTagChip/ProjectTagChip.component.d.ts +0 -9
- package/dist/legacy/components/Inputs/ProjectTagChip/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/index.d.ts +0 -17
- package/dist/legacy/components/Invitations/AbyssPendingInvitations.component.d.ts +0 -18
- package/dist/legacy/components/Invitations/index.d.ts +0 -2
- package/dist/legacy/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.d.ts +0 -11
- package/dist/legacy/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.spec.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssBillingPlan/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssDashboardLayout/AbyssDashboardLayout.component.d.ts +0 -13
- package/dist/legacy/components/Layouts/AbyssDashboardLayout/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssFamilyBanner/AbyssFamilyBanner.component.d.ts +0 -32
- package/dist/legacy/components/Layouts/AbyssFamilyBanner/AbyssFamilyBanner.logic.spec.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssFamilyBanner/index.d.ts +0 -2
- package/dist/legacy/components/Layouts/AbyssHeader/AbyssHeader.component.d.ts +0 -14
- package/dist/legacy/components/Layouts/AbyssHeader/AbyssHeader.component.spec.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssHeader/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssLayoutProvider/AbyssLayoutProvider.component.d.ts +0 -25
- package/dist/legacy/components/Layouts/AbyssLayoutProvider/abyss-layout.store.d.ts +0 -27
- package/dist/legacy/components/Layouts/AbyssLayoutProvider/index.d.ts +0 -3
- package/dist/legacy/components/Layouts/AbyssLoadingScreen/AbyssLoadingScreen.component.d.ts +0 -3
- package/dist/legacy/components/Layouts/AbyssLoadingScreen/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssSearchBar/AbyssSearchBar.component.d.ts +0 -8
- package/dist/legacy/components/Layouts/AbyssSearchBar/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssSidebar/AbyssSidebar.component.d.ts +0 -35
- package/dist/legacy/components/Layouts/AbyssSidebar/AbyssSidebarItem.component.d.ts +0 -9
- package/dist/legacy/components/Layouts/AbyssSidebar/index.d.ts +0 -3
- package/dist/legacy/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.d.ts +0 -8
- package/dist/legacy/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.spec.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssThemeToggle/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/DashboardLayout/DashboardLayout.layout.d.ts +0 -19
- package/dist/legacy/components/Layouts/DashboardLayout/DashboardLayoutHeader.layout.d.ts +0 -11
- package/dist/legacy/components/Layouts/DashboardLayout/index.d.ts +0 -2
- package/dist/legacy/components/Layouts/LoadingLayout/LoadingLayout.layout.d.ts +0 -7
- package/dist/legacy/components/Layouts/LoadingLayout/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/MainLayout/MainLayout.layout.d.ts +0 -9
- package/dist/legacy/components/Layouts/MainLayout/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/index.d.ts +0 -12
- package/dist/legacy/components/Modals/AbyssModal/AbyssModal.component.d.ts +0 -18
- package/dist/legacy/components/Modals/AbyssModal/index.d.ts +0 -1
- package/dist/legacy/components/Modals/ConfirmModal/ConfirmModal.d.ts +0 -22
- package/dist/legacy/components/Modals/ConfirmModal/index.d.ts +0 -2
- package/dist/legacy/components/Modals/ImportFromCloudModal/ImportFromCloudModal.component.d.ts +0 -15
- package/dist/legacy/components/Modals/ImportFromCloudModal/index.d.ts +0 -1
- package/dist/legacy/components/Modals/QRCodeModal/QRCodeModal.component.d.ts +0 -12
- package/dist/legacy/components/Modals/QRCodeModal/index.d.ts +0 -1
- package/dist/legacy/components/Modals/UserSettingsModal/UserSettings.compat.d.ts +0 -12
- package/dist/legacy/components/Modals/UserSettingsModal/UserSettingsModal.component.d.ts +0 -38
- package/dist/legacy/components/Modals/UserSettingsModal/index.d.ts +0 -2
- package/dist/legacy/components/Modals/UserSettingsModal/user-settings-modal.family.spec.d.ts +0 -1
- package/dist/legacy/components/Modals/UserSettingsModal/user-settings-modal.links.spec.d.ts +0 -1
- package/dist/legacy/components/Modals/index.d.ts +0 -6
- package/dist/legacy/components/QuotaGauge/AbyssQuotaGauge.component.d.ts +0 -53
- package/dist/legacy/components/QuotaGauge/bubble-placement.d.ts +0 -47
- package/dist/legacy/components/QuotaGauge/bubble-placement.spec.d.ts +0 -1
- package/dist/legacy/components/QuotaGauge/gauge-highlight.spec.d.ts +0 -1
- package/dist/legacy/components/QuotaGauge/gauge-i18n-coverage.spec.d.ts +0 -1
- package/dist/legacy/components/QuotaGauge/gauge-segments.d.ts +0 -80
- package/dist/legacy/components/QuotaGauge/gauge-segments.spec.d.ts +0 -1
- package/dist/legacy/components/QuotaGauge/index.d.ts +0 -6
- package/dist/legacy/components/QuotaOffer/AbyssQuotaOffer.component.d.ts +0 -83
- package/dist/legacy/components/QuotaOffer/AbyssQuotaOffer.component.spec.d.ts +0 -1
- package/dist/legacy/components/QuotaOffer/index.d.ts +0 -4
- package/dist/legacy/components/QuotaOffer/quota-phrase-coverage.spec.d.ts +0 -1
- package/dist/legacy/components/QuotaReached/QuotaReachedDialog.component.d.ts +0 -15
- package/dist/legacy/components/QuotaReached/index.d.ts +0 -3
- package/dist/legacy/components/QuotaReached/quota-service-meta.d.ts +0 -31
- package/dist/legacy/components/Spotlight/InternalProjectCard/InternalProjectCard.component.d.ts +0 -15
- package/dist/legacy/components/Spotlight/InternalProjectCard/index.d.ts +0 -1
- package/dist/legacy/components/Spotlight/ProjectCard/ProjectCard.component.d.ts +0 -20
- package/dist/legacy/components/Spotlight/ProjectCard/index.d.ts +0 -1
- package/dist/legacy/components/Spotlight/ProjectCategoryBadge/ProjectCategoryBadge.component.d.ts +0 -7
- package/dist/legacy/components/Spotlight/ProjectCategoryBadge/index.d.ts +0 -1
- package/dist/legacy/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +0 -10
- package/dist/legacy/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.spec.d.ts +0 -1
- package/dist/legacy/components/Spotlight/ProjectLinkSelector/index.d.ts +0 -2
- package/dist/legacy/components/Spotlight/ProjectTagChip/ProjectTagChip.component.d.ts +0 -9
- package/dist/legacy/components/Spotlight/ProjectTagChip/index.d.ts +0 -1
- package/dist/legacy/components/Spotlight/index.d.ts +0 -5
- package/dist/legacy/components/Utils/AbyssBackground/AbyssBackground.component.d.ts +0 -12
- package/dist/legacy/components/Utils/AbyssDrawer/AbyssDrawer.component.d.ts +0 -39
- package/dist/legacy/components/Utils/AbyssDrawer/index.d.ts +0 -2
- package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorBoundary.component.d.ts +0 -10
- package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorBoundary.component.spec.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorPage.component.d.ts +0 -11
- package/dist/legacy/components/Utils/AbyssErrorPage/index.d.ts +0 -3
- package/dist/legacy/components/Utils/AbyssFamilyMenuSection/AbyssFamilyMenuSection.d.ts +0 -6
- package/dist/legacy/components/Utils/AbyssFamilyMenuSection/AbyssFamilyMenuSection.spec.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssFamilyMenuSection/index.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssHeaderTitle/AbyssHeaderTitle.component.d.ts +0 -11
- package/dist/legacy/components/Utils/AbyssHeaderTitle/index.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.d.ts +0 -43
- package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.spec.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssMenuItem.component.d.ts +0 -15
- package/dist/legacy/components/Utils/AbyssLayoutMenu/index.d.ts +0 -3
- package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.d.ts +0 -36
- package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.spec.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.d.ts +0 -30
- package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.spec.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssLayoutNotifications/index.d.ts +0 -4
- package/dist/legacy/components/Utils/ImportButton/ImportButton.component.d.ts +0 -19
- package/dist/legacy/components/Utils/ImportButton/index.d.ts +0 -2
- package/dist/legacy/components/Utils/WaterParticles/WaterParticles.component.d.ts +0 -14
- package/dist/legacy/components/Utils/WaterParticles/index.d.ts +0 -1
- package/dist/legacy/components/Utils/index.d.ts +0 -10
- package/dist/legacy/components/aria-labels-i18n.spec.d.ts +0 -1
- package/dist/legacy/components/commons-labels-i18n.spec.d.ts +0 -1
- package/dist/legacy/components/index.d.ts +0 -18
- package/dist/legacy/components/theme-mode-colors.spec.d.ts +0 -1
- package/dist/legacy/fonts.css +0 -7
- package/dist/legacy/hooks/confirm-modal/confirm-modal.context.d.ts +0 -10
- package/dist/legacy/hooks/confirm-modal/index.d.ts +0 -1
- package/dist/legacy/hooks/index.d.ts +0 -1
- package/dist/legacy/index.d.ts +0 -4
- package/dist/legacy/legacy-editors-removed.spec.d.ts +0 -1
- package/dist/legacy/legacy-support-removed.spec.d.ts +0 -1
- package/dist/legacy/legacy-under-new-theme.spec.d.ts +0 -1
- package/dist/legacy/theme/augmentation.d.ts +0 -84
- package/dist/legacy/theme/components/buttons.d.ts +0 -35
- package/dist/legacy/theme/components/data-display.d.ts +0 -4
- package/dist/legacy/theme/components/index.d.ts +0 -2
- package/dist/legacy/theme/components/inputs.d.ts +0 -4
- package/dist/legacy/theme/components/inputs.spec.d.ts +0 -1
- package/dist/legacy/theme/components/navigation.d.ts +0 -4
- package/dist/legacy/theme/components/surfaces.d.ts +0 -4
- package/dist/legacy/theme/core-breakpoints-under-legacy-theme.spec.d.ts +0 -1
- package/dist/legacy/theme/create-theme.d.ts +0 -9
- package/dist/legacy/theme/create-theme.spec.d.ts +0 -1
- package/dist/legacy/theme/disabled-contrast.spec.d.ts +0 -1
- package/dist/legacy/theme/index.d.ts +0 -23
- package/dist/legacy/theme/legacy-tokens.d.ts +0 -3
- package/dist/legacy/theme/new-components-under-legacy-theme.spec.d.ts +0 -1
- package/dist/legacy/theme/palettes/common.d.ts +0 -74
- package/dist/legacy/theme/palettes/dark.d.ts +0 -67
- package/dist/legacy/theme/palettes/light.d.ts +0 -67
- package/dist/legacy/theme/tokens/animations.d.ts +0 -33
- package/dist/legacy/theme/tokens/borders.d.ts +0 -14
- package/dist/legacy/theme/tokens/colors.d.ts +0 -129
- package/dist/legacy/theme/tokens/shadows.d.ts +0 -53
- package/dist/legacy/theme/tokens/transitions.d.ts +0 -25
- package/dist/legacy/theme/tokens/typography.d.ts +0 -99
- package/dist/legacy/utils/billing-colors.utils.d.ts +0 -7
- package/dist/legacy/utils/color.utils.d.ts +0 -11
- package/dist/legacy/utils/file.utils.d.ts +0 -2
- package/dist/legacy/utils/index.d.ts +0 -3
- package/dist/legacy.d.ts +0 -2
- package/dist/legacy.js +0 -16282
- package/dist/theme/DesignCssVariables.d.ts +0 -12
- package/dist/theme/DesignCssVariables.spec.d.ts +0 -1
- package/dist/utils/share-notification.utils.d.ts +0 -10
- /package/dist/{legacy/components/Cards/project-card-date.spec.d.ts → components/business/AbyssProjectLinkField/AbyssProjectLinkField.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.spec.d.ts → components/business/PendingInvitations/PendingInvitations.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Charts/AbyssLineChart/AbyssLineChart.component.spec.d.ts → components/mobile/MobileShell/MobileShellActionBar.spec.d.ts} +0 -0
- /package/dist/{legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.date.spec.d.ts → utils/notification-target.utils.spec.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# Changelog — @abyss-project/commons-front-core
|
|
2
2
|
|
|
3
|
+
## 21.0.1
|
|
4
|
+
|
|
5
|
+
- Dependencies: `@abyss-project/banking`, `@abyss-project/crypt`, `@abyss-project/form`, `@abyss-project/memories`, `@abyss-project/spotlight` and `@abyss-project/monitor` are dropped. The package imports none of them; they brought a second, older `@abyss-project/main` (1.12.0, through banking) and the server monitor SDK into every front's graph. An application that imports one of them declares it itself.
|
|
6
|
+
|
|
7
|
+
## 21.0.0
|
|
8
|
+
|
|
9
|
+
Card #286 (sous-projet 6, closing of the design system).
|
|
10
|
+
|
|
11
|
+
Breaking:
|
|
12
|
+
|
|
13
|
+
- `legacy/` is removed, with the `./legacy` and `./legacy/fonts.css` entries of `exports` and `typesVersions`: `createAbyssTheme`, `theme.abyss`, the `Abyss*` components and the Lexend font are gone. The dependency `@fontsource-variable/lexend` is dropped. An application still on `/legacy` (Odyssey, pinned to `^20.1.0`) stays on 20.
|
|
14
|
+
- `DesignCssVariables` is removed from the root (it served a host still under the legacy provider; none is left).
|
|
15
|
+
- Translation blocks only the legacy components read are removed (FR and EN): `abyss-banking`, `company-search-autocomplete`, `inputs`, `quota-phrase`, `commons.scope`, `notifications.sound`, `project.spotlight`, `quota-gauge.segment`, `table.details`. Blocks an application or the core still reads stay.
|
|
16
|
+
- `handleShareNotificationNavigation` (`utils/share-notification.utils`) is removed: `notificationTargetOf` (below) gives the destination of a notification without navigating.
|
|
17
|
+
- `@abyss-project/main` 36.1.0 exact, as dependency and peer (the workspace pin is frozen at publication); dependency `@abyss-project/storage` `^6.0.0`; peer `@abyss-project/flow` `^2.0.0`. New dependency `@formatjs/icu-messageformat-parser` (the parser react-intl already brings, kept external: one copy per app).
|
|
18
|
+
- `InfectedDownloadWarningModal`: `infected-download-warning-modal` now marks the body of the window (the file name and the phrase to type back); the title, `infected-download-cancel` and `infected-download-confirm` are outside it, in the header and the footer: a host that looked them up inside it must look them up in the page or the dialog.
|
|
19
|
+
|
|
20
|
+
Added:
|
|
21
|
+
|
|
22
|
+
- `AVATAR_SMALL_SIZE` (`meaning/Avatar`, 24 px), next to `AVATAR_DEFAULT_SIZE`: the side of an avatar inside a field row or a list option. `AbyssProjectLinkField` takes it instead of a spacing step.
|
|
23
|
+
- `MobileShellActionBar({ actions })`: the action bar of a page of a `MobileShell`. Inside the shell it is portalled into a slot of the page frame, sticky against the tab bar even on a short page, full width, without a second bottom inset; outside a shell it renders an `ActionBar` in place. `MobileShell` now wraps its `children` in that frame (a flex column whose page grows to the height of the content area), with or without a bar. A page of the shell is therefore a flex item of a column that only has a minimum height: a `height: 100%` set by the page no longer resolves, take `flex: 1` (or `minHeight: 100%`).
|
|
24
|
+
- `PendingInvitations` (`components/business`): the invitations of a user to a content of a service, accept and decline per invitation (busy per row, a failure handed back to the host). Each invitation carries its `serviceName`. New keys `pending-invitations.*` (FR and EN); exported types `PendingInvitation`, `PendingInvitationsProps`.
|
|
25
|
+
- `AbyssProjectLinkField` (`components/business`): the organization and project picker that links a content to a project (own projects and shared ones). New keys `project-link-field.*` (FR and EN); exported types `AbyssProjectLinkFieldProps`, `AbyssProjectLinkOrganization`, `AbyssProjectLinkProject`, `AbyssProjectLinkProjects`.
|
|
26
|
+
- `utils/notification-target.utils`: `notificationTargetOf(notification, { invitationsPath, serviceTarget? })` (a shared content leads to its `contentUrl`, an invitation to `invitationsPath`, anything else to the host's `serviceTarget`), `isInvitationNotificationContentType(contentType)`, `notificationLinkOf(link)`, `fillsEveryMessageArgument(message, values)`, `messageArgumentNames(message)`. Against the copies they replace in the applications:
|
|
27
|
+
- only `http:` and `https:` links are followed (a `javascript:` URL no longer becomes a link); a URL of the current origin becomes its route, another origin stays absolute, a root-relative `/x` is a route;
|
|
28
|
+
- the main front no longer navigates while its notifications list renders: a content shared from another origin used to send the page away as soon as the list loaded;
|
|
29
|
+
- the arguments of a message are read from the tree of `@formatjs/icu-messageformat-parser`, the parser react-intl formats with (`plural`, `select`, `selectordinal` branches, `number`/`date`/`time` styles, rich text tags): a one-word branch such as `other {fichiers}` is no longer taken for an argument, a tag name such as `b` in `<b>{name}</b>` is not one either while the arguments inside the tag are; a message the parser refuses is never filled.
|
|
30
|
+
|
|
31
|
+
Changed:
|
|
32
|
+
|
|
33
|
+
- `InfectedDownloadWarningModal` (opened by `useInfectedDownloadGuard`, API unchanged) is drawn on the core's `Modal` instead of the legacy `AbyssModal`: the title and the warning sit in the modal header, which gains its close button; « Annuler » is an outlined button; the window takes the `bg.surface` of the tokens (no gradient nor tinted border); below 768 px it opens as a bottom sheet. The file label is the ICU key `infected-download.file-label` (FR `Fichier : {name}`, with the non-breaking space before the colon, EN `File: {name}`), the name in bold. Statuses, the phrase to type back and the other keys are unchanged; the test ids moved, see Breaking.
|
|
34
|
+
- Touch-target and label overrides that only served an application under the legacy theme are removed (`FilterBar`, `PageState`, `Callout`, `DataTableMobile`, `DateRangeField`, `CookieConsent*`, `RichSelect`, `FormField`, `ComboboxField`, `Menu`): under `AbyssThemeProvider` the theme draws the same 44 px targets, labels and surfaces. A host on another MUI theme would lose them.
|
|
35
|
+
- `NotificationsMenu` below 768 px: the bottom sheet has a « Fermer » button (EN « Close »), new key `ds.structure.notifications-menu.close`.
|
|
36
|
+
- `MobileShell` header: the back and actions columns never shrink below their content (a long title is cut between them) and are spaced by 16 px; the toasts sit above the tab bar, safe area included (`useElementToastClearance` on the tab bar).
|
|
37
|
+
- `ScheduledTasks`, runs of a task: new optional `listMissedRuns(id, { from?, to? })`, the runs that were due and never started for the window of the runs on screen (from the oldest to the newest run of the page, open at the top of the first page and at the bottom of the last one, the period filter bounding them). They are drawn among the runs at their scheduled time as « Run manqué » (EN « Missed run », the `highlight` tone), with no duration, no code and no detail, only while no outcome or request id filter narrows the list; a task with missed runs and no run shows them instead of the empty state; a failed read says so above the list and keeps the runs. Without the binding, nothing changes. New keys `deliveries.run-status.missed` and `deliveries.tasks.runs.missed-failed` (FR and EN); new exported types `ScheduledTaskMissedRun`, `ScheduledTaskMissedRunsQuery`. New optional `countMissedRuns(id, { from?, to? }): Promise<number>`: how many missed runs the task has in the period of the filters, whatever the page; while the missed runs are drawn the footer's total is Flow's count of runs plus that number (Flow's alone without it, while it is read, when it fails, or under an outcome or request id filter).
|
|
38
|
+
- `ActionBar` in the content of a `MobileShell` (card #286, sous-projet 5): its bottom edge no longer adds `env(safe-area-inset-bottom)`, which the shell's tab bar right under it already carries (the inset counted twice and left a dead band under the buttons). `MobileShell` tells it through an internal context; an `ActionBar` on a screen of its own keeps the inset.
|
|
39
|
+
- `BottomSheet`: new optional `footer`, kept in sight under the scrolling content. `Modal` below 768 px puts its `actions` there: the main action of a long sheet (filters, a form) is no longer below the fold (card #286, sous-projet 5).
|
|
40
|
+
- `Tabs`: the fade at the end of the row is as wide as the tabs left beyond it, 32 px at most (it was always 32 px). A row that overflows by 20 px (the four tabs of a Reflex service on a phone) no longer fades the end of a tab that is still shown. New hook `useScrollHiddenBeyondEnd(ref, axis, content?)` (distance left beyond the end, in px); `useScrollOverflowCue` is unchanged.
|
|
41
|
+
|
|
3
42
|
## 20.5.0
|
|
4
43
|
|
|
5
44
|
Card #792 (P5 L3c, after the final review: Monitor's tasks, webhooks and history pages carried two titles).
|
package/README.md
CHANGED
|
@@ -97,6 +97,24 @@ export const buildRumOptions = () =>
|
|
|
97
97
|
|
|
98
98
|
`ABYSS_MAIN_RUM_SESSION_ROUTE` (`/org/:orgId/project/:projectId/application/:applicationId/monitor/rum/sessions/:sessionId`) est la seule source du chemin de la page d'une session dans le front d'abyss-main, qui le monte. `abyssMainRumSessionPath({ orgId, projectId, applicationId }, sessionId, t?)` le remplit (id de session encodé) et ajoute `?t=` en secondes entières, jamais négatif.
|
|
99
99
|
|
|
100
|
+
## Notifications
|
|
101
|
+
|
|
102
|
+
Les hooks de notifications des fronts (`use-<app>-notifications`) remplissent les `NotificationItem` de `NotificationsMenu` avec deux utilitaires communs (`src/utils/notification-target.utils.ts`).
|
|
103
|
+
|
|
104
|
+
### Destination : `notificationTargetOf(notification, { invitationsPath, serviceTarget? })`
|
|
105
|
+
|
|
106
|
+
Donne le `href` d'une notification (`{ contentType?, data? }`), sans jamais naviguer :
|
|
107
|
+
|
|
108
|
+
- **contenu partagé** (`CONTENT_SHARED`) : son `data.contentUrl`, en route de l'application quand il pointe vers l'origine courante, en adresse absolue sinon ; aucune destination quand il manque ou n'est pas une adresse web ;
|
|
109
|
+
- **invitation** (`isInvitationNotificationContentType` : `INVITATION_CONTENT_SHARE`, `INVITATION_ORG_MEMBER`, `INVITATION_PROJECT_ACCESS`) : `invitationsPath`, une route de l'application (front principal) ou l'adresse absolue de la page des invitations du front principal (satellites) ;
|
|
110
|
+
- **toute autre** : `serviceTarget(notification)`, le routage propre à l'application (projet, formulaire, connexion bancaire…) ; aucune destination sans lui.
|
|
111
|
+
|
|
112
|
+
`notificationLinkOf(link)` est la règle des liens portés : une route (`/chemin`) reste telle quelle, une adresse `http(s)` de l'origine courante devient sa route, une adresse d'une autre origine reste absolue ; tout le reste (`javascript:`, `mailto:`, `//hôte`, chemin relatif, texte quelconque) ne mène nulle part, un champ stocké en base ne décide ni d'exécuter du code ni de quitter le web.
|
|
113
|
+
|
|
114
|
+
### Texte du catalogue : `fillsEveryMessageArgument(message, values)`
|
|
115
|
+
|
|
116
|
+
Vrai quand `values` (propriétés propres) remplit chaque argument du message ICU : sinon le texte afficherait `{nom}`, et le hook retombe sur le texte que la notification porte. Les arguments sont ceux que lit ICU (`{nom}`, `{n, number, …}`, `{n, plural, …}` et les arguments de ses branches) : le texte d'une branche (`other {fichiers}`) n'en est pas un, les accolades entre apostrophes (`'{'`) non plus. Un message mal formé n'est jamais rempli. `messageArgumentNames(message)` rend l'ensemble de ces noms, `undefined` pour un message mal formé.
|
|
117
|
+
|
|
100
118
|
## Changements visibles
|
|
101
119
|
|
|
102
120
|
### 10.1.0
|
|
@@ -21,7 +21,7 @@ enum SurfaceEffect {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const SURFACE_STYLES: Record<SurfaceEffect, Record<string, string>> = {
|
|
24
|
-
//
|
|
24
|
+
// A frosted-glass dialog paper, as a host theme may draw one.
|
|
25
25
|
[SurfaceEffect.BackdropFilter]: { backdropFilter: 'blur(12px)' },
|
|
26
26
|
[SurfaceEffect.Filter]: { filter: 'drop-shadow(0 2px 4px rgba(0,0,0,0.3))' },
|
|
27
27
|
};
|
|
@@ -10,6 +10,7 @@ import CelebrationOutlined from '@mui/icons-material/CelebrationOutlined';
|
|
|
10
10
|
import HomeOutlined from '@mui/icons-material/HomeOutlined';
|
|
11
11
|
import SearchRounded from '@mui/icons-material/SearchRounded';
|
|
12
12
|
import { MobileShell } from '../../src/components/mobile/MobileShell/MobileShell';
|
|
13
|
+
import { MobileShellActionBar } from '../../src/components/mobile/MobileShell/MobileShellActionBar';
|
|
13
14
|
import { BottomSheet } from '../../src/components/mobile/BottomSheet/BottomSheet';
|
|
14
15
|
import { Section } from '../../src/components/structure/Section/Section';
|
|
15
16
|
import { KeyValueList } from '../../src/components/data/KeyValueList/KeyValueList';
|
|
@@ -74,7 +75,10 @@ const BIRTHDAYS = [
|
|
|
74
75
|
},
|
|
75
76
|
];
|
|
76
77
|
|
|
77
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* The Memories app frame: large title, back, four tabs around the central "add a photo" action.
|
|
80
|
+
* The « Événements » tab is a short page with its action bar, held against the tab bar.
|
|
81
|
+
*/
|
|
78
82
|
export const MobileShellPage = () => {
|
|
79
83
|
const { log } = useEventLog();
|
|
80
84
|
const [tab, setTab] = useState('home');
|
|
@@ -103,48 +107,80 @@ export const MobileShellPage = () => {
|
|
|
103
107
|
}}
|
|
104
108
|
onRefresh={async () => log('actualiser')}
|
|
105
109
|
>
|
|
106
|
-
|
|
107
|
-
<
|
|
108
|
-
title="
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
{tab === 'events' ? (
|
|
111
|
+
<Content>
|
|
112
|
+
<Section title="Événements" count={1}>
|
|
113
|
+
<TouchList
|
|
114
|
+
items={[
|
|
115
|
+
{
|
|
116
|
+
id: 'acme',
|
|
117
|
+
title: 'Séminaire Acme 2026',
|
|
118
|
+
subtitle: '248 médias',
|
|
119
|
+
},
|
|
120
|
+
]}
|
|
121
|
+
onOpen={(id) => log(`ouvrir ${id}`)}
|
|
122
|
+
/>
|
|
123
|
+
</Section>
|
|
124
|
+
<LastEvent />
|
|
125
|
+
<MobileShellActionBar
|
|
126
|
+
actions={[
|
|
116
127
|
{
|
|
117
|
-
id: '
|
|
118
|
-
label: '
|
|
119
|
-
|
|
120
|
-
mono: true,
|
|
128
|
+
id: 'create',
|
|
129
|
+
label: 'Créer un événement',
|
|
130
|
+
onPress: () => log('créer un événement'),
|
|
121
131
|
},
|
|
122
|
-
{ id: 'moderation', label: 'À modérer', value: '6', mono: true },
|
|
123
132
|
]}
|
|
124
133
|
/>
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
label
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
134
|
+
</Content>
|
|
135
|
+
) : (
|
|
136
|
+
<Content>
|
|
137
|
+
<Section
|
|
138
|
+
title="Séminaire Acme 2026"
|
|
139
|
+
actions={
|
|
140
|
+
<StatusBadge tone={StatusTone.Danger} label="En cours" dot />
|
|
141
|
+
}
|
|
142
|
+
>
|
|
143
|
+
<KeyValueList
|
|
144
|
+
items={[
|
|
145
|
+
{ id: 'media', label: 'Médias', value: '248', mono: true },
|
|
146
|
+
{
|
|
147
|
+
id: 'contributors',
|
|
148
|
+
label: 'Contributeurs',
|
|
149
|
+
value: '31',
|
|
150
|
+
mono: true,
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
id: 'moderation',
|
|
154
|
+
label: 'À modérer',
|
|
155
|
+
value: '6',
|
|
156
|
+
mono: true,
|
|
157
|
+
},
|
|
158
|
+
]}
|
|
159
|
+
/>
|
|
160
|
+
<Button variant="contained" onClick={() => setSheetOpen(true)}>
|
|
161
|
+
Options de l'événement
|
|
162
|
+
</Button>
|
|
163
|
+
</Section>
|
|
164
|
+
<Section title="Prochains anniversaires" count={BIRTHDAYS.length}>
|
|
165
|
+
<TouchList
|
|
166
|
+
items={BIRTHDAYS.map((birthday) => ({
|
|
167
|
+
id: birthday.id,
|
|
168
|
+
leading: <Initials>{birthday.initials}</Initials>,
|
|
169
|
+
title: birthday.name,
|
|
170
|
+
subtitle: birthday.detail,
|
|
171
|
+
trailing: (
|
|
172
|
+
<StatusBadge
|
|
173
|
+
tone={StatusTone.Highlight}
|
|
174
|
+
label={birthday.when}
|
|
175
|
+
/>
|
|
176
|
+
),
|
|
177
|
+
}))}
|
|
178
|
+
onOpen={(id) => log(`ouvrir ${id}`)}
|
|
179
|
+
/>
|
|
180
|
+
</Section>
|
|
181
|
+
<LastEvent />
|
|
182
|
+
</Content>
|
|
183
|
+
)}
|
|
148
184
|
<BottomSheet
|
|
149
185
|
open={sheetOpen}
|
|
150
186
|
onClose={() => {
|
package/catalog/pages/Tabs.tsx
CHANGED
|
@@ -23,6 +23,17 @@ const ACCOUNT_TABS: TabItem[] = [
|
|
|
23
23
|
},
|
|
24
24
|
];
|
|
25
25
|
|
|
26
|
+
const SERVICE_TABS: TabItem[] = [
|
|
27
|
+
{ value: 'routes', label: 'Routes', to: '/service/routes' },
|
|
28
|
+
{ value: 'versions', label: 'Versions', to: '/service/versions' },
|
|
29
|
+
{ value: 'deployments', label: 'Déploiements', to: '/service/deploiements' },
|
|
30
|
+
{
|
|
31
|
+
value: 'configuration',
|
|
32
|
+
label: 'Configuration',
|
|
33
|
+
to: '/service/configuration',
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
|
|
26
37
|
const BILLING_TABS: TabItem[] = [
|
|
27
38
|
{ value: 'overview', label: 'Vue d’ensemble' },
|
|
28
39
|
{ value: 'subscription', label: 'Abonnement' },
|
|
@@ -36,6 +47,7 @@ export const TabsPage = () => {
|
|
|
36
47
|
const { log } = useEventLog();
|
|
37
48
|
const [account, setAccount] = useState('billing');
|
|
38
49
|
const [billing, setBilling] = useState('overview');
|
|
50
|
+
const [service, setService] = useState('routes');
|
|
39
51
|
return (
|
|
40
52
|
<Showcase
|
|
41
53
|
family="Structure"
|
|
@@ -54,6 +66,18 @@ export const TabsPage = () => {
|
|
|
54
66
|
}}
|
|
55
67
|
/>
|
|
56
68
|
</Example>
|
|
69
|
+
<Example title="Onglets d'un service (primaire, quatre onglets sur un téléphone)">
|
|
70
|
+
<Tabs
|
|
71
|
+
aria-label="Service"
|
|
72
|
+
variant={TabsVariant.Primary}
|
|
73
|
+
items={SERVICE_TABS}
|
|
74
|
+
value={service}
|
|
75
|
+
onChange={(next) => {
|
|
76
|
+
setService(next);
|
|
77
|
+
log(`onglet ${next}`);
|
|
78
|
+
}}
|
|
79
|
+
/>
|
|
80
|
+
</Example>
|
|
57
81
|
<Example title="Sous-navigation de la facturation (secondaire, boutons)">
|
|
58
82
|
<Tabs
|
|
59
83
|
aria-label="Facturation"
|
|
@@ -97,7 +97,7 @@ for (const viewport of VIEWPORTS) {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
// The banner is `position: fixed`. A surface that carries `backdrop-filter` (
|
|
100
|
+
// The banner is `position: fixed`. A surface that carries `backdrop-filter` (a frosted-glass
|
|
101
101
|
// dialog paper), `filter`, `transform`... becomes the box that fixed element is laid out in: the
|
|
102
102
|
// banner then sticks to the bottom of the surface and covers « Suivant ». The catalog's own theme
|
|
103
103
|
// has none, so these dialogs carry the property by hand.
|
|
@@ -98,6 +98,34 @@ for (const theme of CATALOG_THEMES) {
|
|
|
98
98
|
expect(scrollWidth).toBeLessThanOrEqual(innerWidth);
|
|
99
99
|
});
|
|
100
100
|
|
|
101
|
+
test("a short page's action bar sits right on the tab bar, full width", async ({
|
|
102
|
+
page,
|
|
103
|
+
}) => {
|
|
104
|
+
const tabBar = page.getByRole('navigation', {
|
|
105
|
+
name: 'Navigation principale',
|
|
106
|
+
});
|
|
107
|
+
await tabBar.getByRole('button', { name: 'Événements' }).click();
|
|
108
|
+
const bar = page.getByRole('toolbar', { name: 'Actions' });
|
|
109
|
+
await expect(bar).toBeVisible();
|
|
110
|
+
await settle(page);
|
|
111
|
+
|
|
112
|
+
const barBox = await bar.boundingBox();
|
|
113
|
+
const tabBarBox = await tabBar.boundingBox();
|
|
114
|
+
if (barBox === null || tabBarBox === null) {
|
|
115
|
+
throw new Error('The action bar or the tab bar is not laid out.');
|
|
116
|
+
}
|
|
117
|
+
expect(Math.round(barBox.y + barBox.height)).toBe(
|
|
118
|
+
Math.round(tabBarBox.y),
|
|
119
|
+
);
|
|
120
|
+
expect(Math.round(barBox.x)).toBe(0);
|
|
121
|
+
expect(Math.round(barBox.width)).toBe(PHONE.width);
|
|
122
|
+
|
|
123
|
+
await bar.getByRole('button', { name: 'Créer un événement' }).click();
|
|
124
|
+
await expect(lastEvent(page)).toHaveText(
|
|
125
|
+
'Dernier appel : créer un événement',
|
|
126
|
+
);
|
|
127
|
+
});
|
|
128
|
+
|
|
101
129
|
test('a BottomSheet opens, stays under the drag threshold, and closes when dragged down', async ({
|
|
102
130
|
page,
|
|
103
131
|
}) => {
|