@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/dist/legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.error.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { SxProps } from '@mui/material';
|
|
2
|
-
import { ColumnDef, RowData, SortingState } from '@tanstack/react-table';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import { AbyssTableMobilePlacement } from './abyss-table.logic';
|
|
5
|
-
declare module '@tanstack/react-table' {
|
|
6
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
7
|
-
/** Where this column goes in `mobileLayout="cards"`. See `resolveMobilePlacements`. */
|
|
8
|
-
mobile?: AbyssTableMobilePlacement;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export type { AbyssTableMobilePlacement };
|
|
12
|
-
export type AbyssTableFilterDef = {
|
|
13
|
-
columnId: string;
|
|
14
|
-
label: string;
|
|
15
|
-
render: (value: any, onChange: (value: any) => void) => ReactNode;
|
|
16
|
-
};
|
|
17
|
-
export type AbyssTableProps<TData extends object> = {
|
|
18
|
-
data: TData[];
|
|
19
|
-
columns: ColumnDef<TData, any>[];
|
|
20
|
-
enableGlobalFilter?: boolean;
|
|
21
|
-
enableColumnFilters?: boolean;
|
|
22
|
-
enableSorting?: boolean;
|
|
23
|
-
enablePagination?: boolean;
|
|
24
|
-
defaultPageSize?: number;
|
|
25
|
-
pageSizeOptions?: number[];
|
|
26
|
-
/**
|
|
27
|
-
* Server-side (manual) sorting: the table reports the sort instead of applying it.
|
|
28
|
-
*
|
|
29
|
-
* Without this, a table in `manualPagination` sorts the rows it holds — one page — against
|
|
30
|
-
* nothing, which reads as broken. See the README's gotcha section.
|
|
31
|
-
*/
|
|
32
|
-
manualSorting?: boolean;
|
|
33
|
-
/** Host-controlled sort. Only honoured under `manualSorting`. */
|
|
34
|
-
sorting?: SortingState;
|
|
35
|
-
/** Called with the next sort when the reader clicks a column header. */
|
|
36
|
-
onSortingChange?: (next: SortingState) => void;
|
|
37
|
-
manualPagination?: boolean;
|
|
38
|
-
pageCount?: number;
|
|
39
|
-
totalItems?: number;
|
|
40
|
-
currentPage?: number;
|
|
41
|
-
onPageChange?: (page: number) => void;
|
|
42
|
-
onPageSizeChange?: (pageSize: number) => void;
|
|
43
|
-
filters?: AbyssTableFilterDef[];
|
|
44
|
-
/** Controlled server-side search. When provided, the toolbar search box reports
|
|
45
|
-
* debounced changes to the host instead of filtering client-side. */
|
|
46
|
-
onSearchChange?: (value: string) => void;
|
|
47
|
-
/** Current search text when the host owns the search state. */
|
|
48
|
-
searchValue?: string;
|
|
49
|
-
/** Placeholder for the search box; falls back to the existing i18n `table.search`. */
|
|
50
|
-
searchPlaceholder?: string;
|
|
51
|
-
/** Debounce applied before calling `onSearchChange`. Defaults to 400ms (the
|
|
52
|
-
* value the admin's local table wrapper used). */
|
|
53
|
-
searchDebounceMs?: number;
|
|
54
|
-
emptyMessage?: string;
|
|
55
|
-
emptyContent?: ReactNode;
|
|
56
|
-
onRowClick?: (row: TData) => void;
|
|
57
|
-
sx?: SxProps;
|
|
58
|
-
tableLabel?: string;
|
|
59
|
-
getRowSx?: (row: TData, index: number) => SxProps;
|
|
60
|
-
isLoading?: boolean;
|
|
61
|
-
renderAboveTable?: ReactNode;
|
|
62
|
-
/**
|
|
63
|
-
* `'cards'` reflows each row into a card below the `sm` breakpoint: `primary` columns in the card's
|
|
64
|
-
* header, `secondary` ones behind a "details" button, `hidden` ones nowhere — per column, through
|
|
65
|
-
* `meta.mobile`. `'table'` (the default) keeps the `<table>` at every width.
|
|
66
|
-
*/
|
|
67
|
-
mobileLayout?: 'table' | 'cards';
|
|
68
|
-
};
|
|
69
|
-
declare function AbyssTable<TData extends object>({ data, columns, enableGlobalFilter, enableColumnFilters, enableSorting, manualSorting, sorting: externalSorting, onSortingChange, enablePagination, defaultPageSize, pageSizeOptions, manualPagination, pageCount: externalPageCount, totalItems: externalTotalItems, currentPage: externalCurrentPage, onPageChange, onPageSizeChange, filters, onSearchChange, searchValue, searchPlaceholder, searchDebounceMs, emptyMessage, emptyContent, onRowClick, sx, tableLabel, getRowSx, isLoading, renderAboveTable, mobileLayout, }: AbyssTableProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
70
|
-
export default AbyssTable;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { SxProps } from '@mui/material';
|
|
2
|
-
import { Header, Row } from '@tanstack/react-table';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import { AbyssTableMobilePlacement } from './abyss-table.logic';
|
|
5
|
-
export type AbyssTableCardsProps<TData extends object> = {
|
|
6
|
-
rows: Row<TData>[];
|
|
7
|
-
/** The table's leaf headers, used to label each value with its own column header. */
|
|
8
|
-
headers: Header<TData, unknown>[];
|
|
9
|
-
placements: Record<string, AbyssTableMobilePlacement>;
|
|
10
|
-
onRowClick?: (row: TData) => void;
|
|
11
|
-
getRowSx?: (row: TData, index: number) => SxProps;
|
|
12
|
-
isLoading: boolean;
|
|
13
|
-
/** What the table shows with zero rows — the exact node the `<table>` layout renders. */
|
|
14
|
-
emptyState: ReactNode;
|
|
15
|
-
listLabel?: string;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* AbyssTable's rows reflowed as a list, for narrow viewports.
|
|
19
|
-
*
|
|
20
|
-
* Each card is the table row it replaces, not a floating tile: cards sit edge to edge inside the
|
|
21
|
-
* table's own container, separated by the theme divider, so the pagination footer below them reads as
|
|
22
|
-
* the same object it closes on desktop.
|
|
23
|
-
*/
|
|
24
|
-
declare function AbyssTableCards<TData extends object>({ rows, headers, placements, onRowClick, getRowSx, isLoading, emptyState, listLabel, }: AbyssTableCardsProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export default AbyssTableCards;
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pure, dependency-free helpers backing AbyssTable's pagination and search
|
|
3
|
-
* behaviour. Kept free of React/MUI so they can be spec'd directly (commons
|
|
4
|
-
* has no jsdom/testing-library — all logic modules are pure-function specs).
|
|
5
|
-
*/
|
|
6
|
-
export interface ResolvePageIndexParams {
|
|
7
|
-
/** Whether the table is in server-side (manual) pagination mode. */
|
|
8
|
-
manualPagination: boolean;
|
|
9
|
-
/** Host-controlled page index (0-based), when the host owns pagination. */
|
|
10
|
-
externalCurrentPage?: number;
|
|
11
|
-
/** The table's own internal pagination state (0-based). */
|
|
12
|
-
internalPageIndex: number;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Resolves the page index AbyssTable renders, mirroring the component's
|
|
16
|
-
* existing precedence exactly:
|
|
17
|
-
* - manual pagination + a host-provided `currentPage` -> the host value wins.
|
|
18
|
-
* - manual pagination without a host-provided `currentPage` -> falls back to
|
|
19
|
-
* the internal pagination state.
|
|
20
|
-
* - non-manual (client-side) pagination -> always uses the internal state,
|
|
21
|
-
* regardless of `externalCurrentPage`.
|
|
22
|
-
*/
|
|
23
|
-
export declare function resolvePageIndex({ manualPagination, externalCurrentPage, internalPageIndex, }: ResolvePageIndexParams): number;
|
|
24
|
-
/**
|
|
25
|
-
* Whether the toolbar search box should operate as a controlled, debounced,
|
|
26
|
-
* server-side search (reporting to the host via `onSearchChange`) instead of
|
|
27
|
-
* AbyssTable's default client-side global filtering.
|
|
28
|
-
*/
|
|
29
|
-
export declare function shouldUseServerSearch(onSearchChange?: (value: string) => void): boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Resolves the placeholder text shown in the toolbar search box: an explicit
|
|
32
|
-
* `searchPlaceholder` prop wins, otherwise the caller's fallback (the
|
|
33
|
-
* component's existing i18n `table.search` message) is used.
|
|
34
|
-
*/
|
|
35
|
-
export declare function resolveSearchPlaceholder(searchPlaceholder: string | undefined, fallback: string): string;
|
|
36
|
-
/** One column's sort direction, mirroring `@tanstack/react-table`'s `SortingState` entry. */
|
|
37
|
-
export interface SortingEntry {
|
|
38
|
-
id: string;
|
|
39
|
-
desc: boolean;
|
|
40
|
-
}
|
|
41
|
-
export interface ResolveSortingStateParams {
|
|
42
|
-
/** Whether the host owns the sort and applies it itself (server-side). */
|
|
43
|
-
manualSorting: boolean;
|
|
44
|
-
/** Host-controlled sort, when the host owns it. */
|
|
45
|
-
externalSorting?: SortingEntry[];
|
|
46
|
-
/** The table's own internal sorting state. */
|
|
47
|
-
internalSorting: SortingEntry[];
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Resolves the sorting state AbyssTable renders its header affordance from.
|
|
51
|
-
*
|
|
52
|
-
* The precedence mirrors `resolvePageIndex`, and for the same reason: a host that owns the sort must
|
|
53
|
-
* see the arrow it asked for, not one the table decided on its own. A host in manual mode that
|
|
54
|
-
* passes no `sorting` still gets a working header — it just has nothing to restore on a reload.
|
|
55
|
-
*
|
|
56
|
-
* Client-side sorting ignores `externalSorting` entirely, so a host cannot half-control the sort and
|
|
57
|
-
* end up with a header that disagrees with the rows underneath it.
|
|
58
|
-
*/
|
|
59
|
-
export declare function resolveSortingState({ manualSorting, externalSorting, internalSorting, }: ResolveSortingStateParams): SortingEntry[];
|
|
60
|
-
/**
|
|
61
|
-
* Whether the table must build a sorted row model of its own.
|
|
62
|
-
*
|
|
63
|
-
* Never under `manualSorting`: the rows it holds are one page of a result set the server already
|
|
64
|
-
* ordered, and re-sorting them locally reorders that page against the rest — the failure the
|
|
65
|
-
* README's gotcha describes, arrived at from the other direction.
|
|
66
|
-
*/
|
|
67
|
-
export declare function shouldSortRowsLocally(enableSorting: boolean, manualSorting: boolean): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Whether a column header offers a sort affordance.
|
|
70
|
-
*
|
|
71
|
-
* Client-side, the answer is TanStack's: a column with no accessor has no value to compare, so it
|
|
72
|
-
* cannot be sorted and `getCanSort()` says so.
|
|
73
|
-
*
|
|
74
|
-
* Under `manualSorting` that reasoning does not apply. The server does the ordering; the column only
|
|
75
|
-
* has to name itself. Display-only columns — a cell built from several fields, a chip, an avatar —
|
|
76
|
-
* are exactly the ones a host wants sortable server-side, and deferring to `getCanSort()` would make
|
|
77
|
-
* the whole manual-sorting API silently do nothing on them.
|
|
78
|
-
*/
|
|
79
|
-
export declare function isColumnSortable(params: {
|
|
80
|
-
enableSorting: boolean;
|
|
81
|
-
manualSorting: boolean;
|
|
82
|
-
/** The column's own `enableSorting`, `undefined` when it does not say. */
|
|
83
|
-
columnEnableSorting: boolean | undefined;
|
|
84
|
-
/** What TanStack answers for client-side sorting. */
|
|
85
|
-
canSortClientSide: boolean;
|
|
86
|
-
}): boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Resolves the page size options AbyssTable's "rows per page" `Select` renders.
|
|
89
|
-
*
|
|
90
|
-
* A `Select`'s value must be one of its own `MenuItem` values or MUI renders it blank — the bug this
|
|
91
|
-
* closes. A host's `defaultPageSize` (or a size restored from `onPageSizeChange`) is not guaranteed to
|
|
92
|
-
* be one of the caller's `pageSizeOptions`, so the current size is folded in, sorted, whenever it is
|
|
93
|
-
* missing.
|
|
94
|
-
*/
|
|
95
|
-
export declare function resolvePageSizeOptions(options: number[], current: number): number[];
|
|
96
|
-
export interface ResolveCurrentPageSizeParams {
|
|
97
|
-
/** Whether the table is in server-side (manual) pagination mode. */
|
|
98
|
-
manualPagination: boolean;
|
|
99
|
-
/** The table's own internal pagination state's page size, when it drives one. */
|
|
100
|
-
tablePageSize: number | undefined;
|
|
101
|
-
/** The size the host asked the table to start on — and, in manual mode, its live current size. */
|
|
102
|
-
defaultPageSize: number;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Resolves the page size AbyssTable renders and reports "X–Y of Z" against.
|
|
106
|
-
*
|
|
107
|
-
* Under `manualPagination`, `getPaginationRowModel` is skipped (see the component) and the server,
|
|
108
|
-
* not the table, decides how many rows a page holds. `defaultPageSize` is the ONLY value this
|
|
109
|
-
* function may trust there — per the README's contract, the host is expected to feed its live
|
|
110
|
-
* `pageSize` state through that prop on every render, and `onPageSizeChange` is how the table asks
|
|
111
|
-
* it to. Echoing the reader's raw selector click instead, from an internal "controlled size" state,
|
|
112
|
-
* would show a size on a host that never wired `onPageSizeChange`: the selector and the "X–Y of Z"
|
|
113
|
-
* would silently start lying about a `limit` the server was never asked to honour.
|
|
114
|
-
*
|
|
115
|
-
* Client-side, the table already owns its page size through `getPaginationRowModel`, so `tablePageSize`
|
|
116
|
-
* wins, falling back to `defaultPageSize` only before the table has produced a state of its own.
|
|
117
|
-
*/
|
|
118
|
-
export declare function resolveCurrentPageSize({ manualPagination, tablePageSize, defaultPageSize, }: ResolveCurrentPageSizeParams): number;
|
|
119
|
-
/**
|
|
120
|
-
* Where a column's value goes when AbyssTable renders a row as a mobile card:
|
|
121
|
-
* - `primary` — in the card's always-visible header;
|
|
122
|
-
* - `secondary` — behind the card's "details" button, as a label/value pair;
|
|
123
|
-
* - `hidden` — not rendered in the card at all (a column whose job the card already does itself,
|
|
124
|
-
* such as a per-row expand toggle the whole card now carries).
|
|
125
|
-
*/
|
|
126
|
-
export type AbyssTableMobilePlacement = 'primary' | 'secondary' | 'hidden';
|
|
127
|
-
/**
|
|
128
|
-
* Resolves every column's mobile card placement, in column order.
|
|
129
|
-
*
|
|
130
|
-
* A declared placement always wins. Undeclared columns fall back to a default: the first two of them
|
|
131
|
-
* are `primary`, every later one `secondary`. Only undeclared columns count towards those two — a host
|
|
132
|
-
* that hides its first column or pushes one to `secondary` has not used up a header slot, so the next
|
|
133
|
-
* undeclared column still makes the header.
|
|
134
|
-
*/
|
|
135
|
-
export declare function resolveMobilePlacements(columnIds: string[], declared: Record<string, AbyssTableMobilePlacement | undefined>): Record<string, AbyssTableMobilePlacement>;
|
|
136
|
-
/**
|
|
137
|
-
* The next sort after a click on a column header, under `manualSorting`.
|
|
138
|
-
*
|
|
139
|
-
* TanStack's own toggle handler is not usable here: it no-ops on a column it considers unsortable,
|
|
140
|
-
* which under manual sorting is every display-only column — the ones a host most wants ordered by
|
|
141
|
-
* the server.
|
|
142
|
-
*
|
|
143
|
-
* The cycle is ascending, then descending, then nothing. Three states rather than two because
|
|
144
|
-
* "nothing" is a real answer: it is how a reader goes back to the list's own default order, and a
|
|
145
|
-
* two-state toggle would trap them between two orders they may not want either of.
|
|
146
|
-
*/
|
|
147
|
-
export declare function nextManualSorting(current: SortingEntry[], columnId: string): SortingEntry[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AbyssTable';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { BoxProps } from '@mui/material';
|
|
3
|
-
export declare const InfoBox: FC<BoxProps>;
|
|
4
|
-
export declare const ErrorInfoBox: FC<BoxProps>;
|
|
5
|
-
export declare const WarnInfoBox: FC<BoxProps>;
|
|
6
|
-
export declare const SuccessInfoBox: FC<BoxProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './InfoBox.component';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as AbyssDatePicker } from './AbyssDatePicker.component';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as AbyssDateTimePicker } from './AbyssDateTimePicker.component';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { TextFieldProps } from '@mui/material';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
export type AbyssNumberFieldProps = Omit<TextFieldProps, 'value' | 'onChange'> & {
|
|
4
|
-
/** The numeric value */
|
|
5
|
-
value: number | null;
|
|
6
|
-
/** Called with the raw number on change */
|
|
7
|
-
onChange: (value: number | null) => void;
|
|
8
|
-
/** Format mode */
|
|
9
|
-
mode?: 'number' | 'currency';
|
|
10
|
-
/** Currency symbol (default: '€') */
|
|
11
|
-
currencySymbol?: string;
|
|
12
|
-
/** Currency position */
|
|
13
|
-
currencyPosition?: 'start' | 'end';
|
|
14
|
-
/**
|
|
15
|
-
* BCP-47 locale for formatting. Defaults to the active IntlProvider locale,
|
|
16
|
-
* so the decimal separator follows the app language (fr -> "50,00", en ->
|
|
17
|
-
* "50.00"). Only override to force a specific locale.
|
|
18
|
-
*/
|
|
19
|
-
locale?: string;
|
|
20
|
-
/** Decimal places (default: 0 for number, 2 for currency) */
|
|
21
|
-
decimals?: number;
|
|
22
|
-
/**
|
|
23
|
-
* Thousands separator. Defaults to the active locale's grouping separator;
|
|
24
|
-
* pass to override.
|
|
25
|
-
*/
|
|
26
|
-
thousandSeparator?: string;
|
|
27
|
-
/** Min value */
|
|
28
|
-
min?: number;
|
|
29
|
-
/** Max value */
|
|
30
|
-
max?: number;
|
|
31
|
-
/** Allow negative */
|
|
32
|
-
allowNegative?: boolean;
|
|
33
|
-
};
|
|
34
|
-
declare const AbyssNumberField: FC<AbyssNumberFieldProps>;
|
|
35
|
-
export default AbyssNumberField;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Locale-aware number formatting/parsing helpers for {@link AbyssNumberField}.
|
|
3
|
-
*
|
|
4
|
-
* The decimal and grouping separators are derived from the ACTIVE locale
|
|
5
|
-
* (fr-FR -> "," decimal, en-* -> "." decimal) and are never hardcoded, so a
|
|
6
|
-
* currency value like 50 renders as "50,00 €" in French and "50.00" in English.
|
|
7
|
-
* Parsing is intentionally forgiving: a user typing "50,00" or "50" both
|
|
8
|
-
* round-trip to the numeric 50 that flows back out through onChange.
|
|
9
|
-
*/
|
|
10
|
-
export interface LocaleSeparators {
|
|
11
|
-
/** Thousands / grouping separator (fr-FR: narrow no-break space, en-US: ","). */
|
|
12
|
-
group: string;
|
|
13
|
-
/** Decimal separator (fr-FR: ",", en-US: "."). */
|
|
14
|
-
decimal: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Resolve the grouping and decimal separators used by the given BCP-47 locale
|
|
18
|
-
* by inspecting `Intl.NumberFormat` output. Falls back to space/dot if the
|
|
19
|
-
* locale is unknown or Intl throws.
|
|
20
|
-
*/
|
|
21
|
-
export declare function getLocaleSeparators(locale: string): LocaleSeparators;
|
|
22
|
-
/**
|
|
23
|
-
* Format a numeric value for display using the provided locale separators.
|
|
24
|
-
* Returns an empty string for null/undefined/NaN.
|
|
25
|
-
*/
|
|
26
|
-
export declare function formatNumberValue(value: number | null | undefined, decimals: number, separators: LocaleSeparators): string;
|
|
27
|
-
/**
|
|
28
|
-
* Parse a user-typed string back into a number.
|
|
29
|
-
*
|
|
30
|
-
* Grouping separators (the locale's own group char plus common whitespace
|
|
31
|
-
* variants) are stripped first, then either "," or "." is accepted as the
|
|
32
|
-
* decimal marker so that fr comma-input and en dot-input both yield the same
|
|
33
|
-
* numeric value. Returns null for empty / non-numeric input.
|
|
34
|
-
*/
|
|
35
|
-
export declare function parseNumberInput(raw: string | null | undefined, separators: LocaleSeparators): number | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export type ScopeOption = {
|
|
3
|
-
id: string | null;
|
|
4
|
-
name: string;
|
|
5
|
-
logoId?: string | null;
|
|
6
|
-
kind?: 'standard' | 'family';
|
|
7
|
-
};
|
|
8
|
-
type Props = {
|
|
9
|
-
organizations: ScopeOption[];
|
|
10
|
-
selectedOrganizationId: string | null;
|
|
11
|
-
onChange: (organizationId: string | null) => void;
|
|
12
|
-
getOrganizationLogoUrl: (orgId: string) => string;
|
|
13
|
-
personalLabel?: string;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
userId?: string;
|
|
16
|
-
userName?: string;
|
|
17
|
-
getUserProfilePictureUrl?: (userId: string) => string;
|
|
18
|
-
hidePersonal?: boolean;
|
|
19
|
-
};
|
|
20
|
-
declare function AbyssScopeSwitcher({ organizations, selectedOrganizationId, onChange, getOrganizationLogoUrl, personalLabel, placeholder, userId, userName, getUserProfilePictureUrl, hidePersonal, }: Props): React.ReactElement;
|
|
21
|
-
export { AbyssScopeSwitcher };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/legacy/components/Inputs/AbyssSelectOrganization/AbyssSelectOrganization.component.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export type SelectableOrganization = {
|
|
3
|
-
id?: string;
|
|
4
|
-
name: string;
|
|
5
|
-
description?: string | null;
|
|
6
|
-
logoId?: string | null;
|
|
7
|
-
};
|
|
8
|
-
type Props<T extends SelectableOrganization = SelectableOrganization> = {
|
|
9
|
-
organizations: T[] | null;
|
|
10
|
-
selectedOrganization: T | null;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
onChange: (selectedOrganization: T | null) => void;
|
|
13
|
-
label?: string;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
getOrganizationLogoUrl: (orgId: string) => string;
|
|
16
|
-
};
|
|
17
|
-
declare function AbyssSelectOrganization<T extends SelectableOrganization = SelectableOrganization>({ onChange, organizations, selectedOrganization, disabled, label, placeholder, getOrganizationLogoUrl, }: Props<T>): React.ReactElement;
|
|
18
|
-
export default AbyssSelectOrganization;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export type SelectableProject = {
|
|
3
|
-
id?: string;
|
|
4
|
-
name: string;
|
|
5
|
-
description?: string | null;
|
|
6
|
-
pictureId?: string | null;
|
|
7
|
-
};
|
|
8
|
-
type Props<T extends SelectableProject = SelectableProject> = {
|
|
9
|
-
projects: T[] | null;
|
|
10
|
-
selectedProject: T | null;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
onChange: (selectedProject: T | null) => void;
|
|
13
|
-
label?: string;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
getProjectPictureUrl: (projectId: string) => string;
|
|
16
|
-
};
|
|
17
|
-
declare function AbyssSelectProject<T extends SelectableProject = SelectableProject>({ onChange, projects, selectedProject, disabled, label, placeholder, getProjectPictureUrl, }: Props<T>): React.ReactElement;
|
|
18
|
-
export default AbyssSelectProject;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ISpace, IFile } from '@abyss-project/cloud';
|
|
3
|
-
import { CloudPicker } from '../../../../hooks/cloud-picker.types';
|
|
4
|
-
type Props = {
|
|
5
|
-
submitFiles: (cloud: ISpace, files: IFile[]) => void;
|
|
6
|
-
maxSize?: number;
|
|
7
|
-
multiple?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* The files offered, as the HTML `accept` attribute lists them: MIME types (`application/pdf`),
|
|
10
|
-
* wildcards (`image/*`) and extensions (`.pdf`). Absent or empty: every file.
|
|
11
|
-
*/
|
|
12
|
-
accept?: string[];
|
|
13
|
-
/** Picker state and actions, as returned by `useCloudPicker`. */
|
|
14
|
-
cloudPicker: CloudPicker;
|
|
15
|
-
};
|
|
16
|
-
declare const CloudImport: React.FC<Props>;
|
|
17
|
-
export default CloudImport;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IFile } from '@abyss-project/cloud';
|
|
3
|
-
type Props = {
|
|
4
|
-
file: IFile;
|
|
5
|
-
maxSize?: number;
|
|
6
|
-
multiple?: boolean;
|
|
7
|
-
selectedFiles?: IFile[];
|
|
8
|
-
selectFiles?: (files: IFile[]) => void;
|
|
9
|
-
unselectFiles?: (files: IFile[]) => void;
|
|
10
|
-
accept?: string[];
|
|
11
|
-
getFileThumbnailUrl: (id: string) => string;
|
|
12
|
-
};
|
|
13
|
-
declare const CloudImportFile: React.FC<Props>;
|
|
14
|
-
export default CloudImportFile;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IFile, IFolder } from '@abyss-project/cloud';
|
|
3
|
-
type Props = {
|
|
4
|
-
folder: IFolder;
|
|
5
|
-
maxSize?: number;
|
|
6
|
-
multiple?: boolean;
|
|
7
|
-
selectedFiles?: IFile[];
|
|
8
|
-
selectFiles?: (files: IFile[]) => void;
|
|
9
|
-
unselectFiles?: (files: IFile[]) => void;
|
|
10
|
-
selectedFolders?: IFolder[];
|
|
11
|
-
selectFolders?: (folders: IFolder[]) => void;
|
|
12
|
-
unselectFolders?: (folders: IFolder[]) => void;
|
|
13
|
-
maskFiles?: boolean;
|
|
14
|
-
accept?: string[];
|
|
15
|
-
getFileThumbnailUrl: (id: string) => string;
|
|
16
|
-
};
|
|
17
|
-
declare const CloudImportFolder: React.FC<Props>;
|
|
18
|
-
export default CloudImportFolder;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { SxProps } from '@mui/material';
|
|
3
|
-
declare const SIZE_MAP: {
|
|
4
|
-
readonly sm: 18;
|
|
5
|
-
readonly md: 22;
|
|
6
|
-
readonly lg: 28;
|
|
7
|
-
};
|
|
8
|
-
type ColorPaletteSize = keyof typeof SIZE_MAP;
|
|
9
|
-
type ColorPaletteShape = 'circle' | 'square';
|
|
10
|
-
type Props = {
|
|
11
|
-
colors: string[];
|
|
12
|
-
value: string;
|
|
13
|
-
onChange: (color: string) => void;
|
|
14
|
-
size?: ColorPaletteSize | number;
|
|
15
|
-
shape?: ColorPaletteShape;
|
|
16
|
-
showCustomPicker?: boolean;
|
|
17
|
-
/** Tooltip for the custom-color button. Pass an i18n string from the host
|
|
18
|
-
* (defaults to French for legacy callers). */
|
|
19
|
-
customTooltip?: string;
|
|
20
|
-
sx?: SxProps;
|
|
21
|
-
};
|
|
22
|
-
declare const ColorPalette: React.FC<Props>;
|
|
23
|
-
export default ColorPalette;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ColorPalette } from './ColorPalette.component';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { SxProps } from '@mui/material';
|
|
3
|
-
declare const SIZE_MAP: {
|
|
4
|
-
readonly sm: 22;
|
|
5
|
-
readonly md: 28;
|
|
6
|
-
readonly lg: 36;
|
|
7
|
-
};
|
|
8
|
-
type ColorPickerSize = keyof typeof SIZE_MAP;
|
|
9
|
-
type ColorPickerShape = 'circle' | 'square';
|
|
10
|
-
type Props = {
|
|
11
|
-
value: string;
|
|
12
|
-
onChange: (color: string) => void;
|
|
13
|
-
size?: ColorPickerSize | number;
|
|
14
|
-
shape?: ColorPickerShape;
|
|
15
|
-
tooltip?: string;
|
|
16
|
-
sx?: SxProps;
|
|
17
|
-
};
|
|
18
|
-
declare const ColorPicker: React.FC<Props>;
|
|
19
|
-
export default ColorPicker;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ColorPicker } from './ColorPicker.component';
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
/** A project that belongs to an organization. */
|
|
3
|
-
export type ContextSelectorProject = {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
/** Optional custom avatar (e.g. a `ProjectAvatar`). Falls back to an icon. */
|
|
7
|
-
avatar?: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
/** An organization the user belongs to, with its projects. */
|
|
10
|
-
export type ContextSelectorOrganization = {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
/** Optional custom avatar (e.g. an `OrganizationAvatar`). Falls back to an icon. */
|
|
14
|
-
avatar?: React.ReactNode;
|
|
15
|
-
projects?: ContextSelectorProject[];
|
|
16
|
-
};
|
|
17
|
-
/** The personal ("Mon Espace") scope entry. */
|
|
18
|
-
export type ContextSelectorPersonal = {
|
|
19
|
-
/** Display label (e.g. the user's alias). Falls back to the i18n "Mon Espace". */
|
|
20
|
-
label?: string;
|
|
21
|
-
/** Optional custom avatar (e.g. a `UserAvatar`). Falls back to an icon. */
|
|
22
|
-
avatar?: React.ReactNode;
|
|
23
|
-
};
|
|
24
|
-
/** Full data shape: the personal scope plus the user's organizations. */
|
|
25
|
-
export type ContextSelectorData = {
|
|
26
|
-
personal: ContextSelectorPersonal;
|
|
27
|
-
organizations: ContextSelectorOrganization[];
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* The currently-selected context. A discriminated union mirroring the
|
|
31
|
-
* personal / organization / project scope used across the apps.
|
|
32
|
-
*/
|
|
33
|
-
export type ContextValue = {
|
|
34
|
-
kind: 'personal';
|
|
35
|
-
} | {
|
|
36
|
-
kind: 'organization';
|
|
37
|
-
organizationId: string;
|
|
38
|
-
} | {
|
|
39
|
-
kind: 'project';
|
|
40
|
-
organizationId: string;
|
|
41
|
-
projectId: string;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* - `grouped`: three flat headers — "Mon Espace", "Organisation", "Projets".
|
|
45
|
-
* - `by-org`: "Mon Espace" first, then one group per organization (by name),
|
|
46
|
-
* each containing an "Organisation" entry + that org's projects.
|
|
47
|
-
*/
|
|
48
|
-
export type ContextSelectorVariant = 'grouped' | 'by-org';
|
|
49
|
-
type ContextSelectorProps = {
|
|
50
|
-
/** Personal + organizations (each with their projects). */
|
|
51
|
-
data: ContextSelectorData;
|
|
52
|
-
/** The currently-selected context. */
|
|
53
|
-
value: ContextValue;
|
|
54
|
-
/** Fires with the new context when the user picks an option. */
|
|
55
|
-
onChange: (next: ContextValue) => void;
|
|
56
|
-
/** Layout of the option list. Defaults to `grouped`. */
|
|
57
|
-
variant?: ContextSelectorVariant;
|
|
58
|
-
/** Optional field label rendered by the inner `TextField`. */
|
|
59
|
-
label?: string;
|
|
60
|
-
/** Optional placeholder for the inner `TextField`. */
|
|
61
|
-
placeholder?: string;
|
|
62
|
-
/** Disables the whole control. */
|
|
63
|
-
disabled?: boolean;
|
|
64
|
-
/** Min width of the control. Defaults to 240px. */
|
|
65
|
-
minWidth?: number | string;
|
|
66
|
-
};
|
|
67
|
-
export declare const ContextSelector: React.FC<ContextSelectorProps>;
|
|
68
|
-
export default ContextSelector;
|