@gen3/frontend 0.10.83 → 0.10.85

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.
Files changed (92) hide show
  1. package/dist/cjs/index.js +395 -177
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/features/Analysis/AnalysisCard.d.ts +5 -0
  4. package/dist/dts/features/Analysis/AnalysisCard.d.ts.map +1 -0
  5. package/dist/dts/features/Analysis/AnalysisCard.js +14 -0
  6. package/dist/dts/features/Analysis/AnalysisCard.js.map +1 -0
  7. package/dist/dts/features/Analysis/AnalysisCardCompact.d.ts +6 -0
  8. package/dist/dts/features/Analysis/AnalysisCardCompact.d.ts.map +1 -0
  9. package/dist/dts/features/Analysis/AnalysisCardCompact.js +12 -0
  10. package/dist/dts/features/Analysis/AnalysisCardCompact.js.map +1 -0
  11. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +32 -0
  12. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts.map +1 -0
  13. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.js +23 -0
  14. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.js.map +1 -0
  15. package/dist/dts/features/Analysis/AnalysisCardEditor.js.map +1 -1
  16. package/dist/dts/features/Analysis/AnalysisCenter.d.ts.map +1 -1
  17. package/dist/dts/features/Analysis/AnalysisCenter.js +3 -10
  18. package/dist/dts/features/Analysis/AnalysisCenter.js.map +1 -1
  19. package/dist/dts/features/Analysis/AnalysisCenterWithSections.d.ts +22 -0
  20. package/dist/dts/features/Analysis/AnalysisCenterWithSections.d.ts.map +1 -0
  21. package/dist/dts/features/Analysis/AnalysisCenterWithSections.js +53 -0
  22. package/dist/dts/features/Analysis/AnalysisCenterWithSections.js.map +1 -0
  23. package/dist/dts/features/Analysis/AnalysisCenterWithSections.stories.d.ts +13 -0
  24. package/dist/dts/features/Analysis/AnalysisCenterWithSections.stories.d.ts.map +1 -0
  25. package/dist/dts/features/Analysis/AnalysisCenterWithSections.stories.js +113 -0
  26. package/dist/dts/features/Analysis/AnalysisCenterWithSections.stories.js.map +1 -0
  27. package/dist/dts/features/Analysis/TextDescription.d.ts.map +1 -1
  28. package/dist/dts/features/Analysis/TextDescription.js +16 -2
  29. package/dist/dts/features/Analysis/TextDescription.js.map +1 -1
  30. package/dist/dts/features/Analysis/index.d.ts +3 -1
  31. package/dist/dts/features/Analysis/index.d.ts.map +1 -1
  32. package/dist/dts/features/Analysis/index.js +2 -1
  33. package/dist/dts/features/Analysis/index.js.map +1 -1
  34. package/dist/dts/features/Analysis/types.d.ts +15 -2
  35. package/dist/dts/features/Analysis/types.d.ts.map +1 -1
  36. package/dist/dts/features/Analysis/types.js +20 -1
  37. package/dist/dts/features/Analysis/types.js.map +1 -1
  38. package/dist/dts/features/Navigation/ActionMenu.d.ts +2 -2
  39. package/dist/dts/features/Navigation/ActionMenu.d.ts.map +1 -1
  40. package/dist/dts/features/Navigation/ActionMenu.js.map +1 -1
  41. package/dist/dts/features/Navigation/Header.js +1 -1
  42. package/dist/dts/features/Navigation/Header.js.map +1 -1
  43. package/dist/dts/features/Navigation/HorizontalClean/HorizontalNavigationBar.d.ts +1 -1
  44. package/dist/dts/features/Navigation/HorizontalClean/HorizontalNavigationBar.d.ts.map +1 -1
  45. package/dist/dts/features/Navigation/TopBar/AccountButton.d.ts +5 -0
  46. package/dist/dts/features/Navigation/TopBar/AccountButton.d.ts.map +1 -0
  47. package/dist/dts/features/Navigation/TopBar/AccountButton.js +78 -0
  48. package/dist/dts/features/Navigation/TopBar/AccountButton.js.map +1 -0
  49. package/dist/dts/features/Navigation/TopBar/IconButton.d.ts +11 -0
  50. package/dist/dts/features/Navigation/TopBar/IconButton.d.ts.map +1 -0
  51. package/dist/dts/features/Navigation/TopBar/IconButton.js +23 -0
  52. package/dist/dts/features/Navigation/TopBar/IconButton.js.map +1 -0
  53. package/dist/dts/features/Navigation/TopBar/IconButton.stories.d.ts +35 -0
  54. package/dist/dts/features/Navigation/TopBar/IconButton.stories.d.ts.map +1 -0
  55. package/dist/dts/features/Navigation/TopBar/IconButton.stories.js +40 -0
  56. package/dist/dts/features/Navigation/TopBar/IconButton.stories.js.map +1 -0
  57. package/dist/dts/features/Navigation/TopBar/LoginButton.d.ts +10 -0
  58. package/dist/dts/features/Navigation/TopBar/LoginButton.d.ts.map +1 -0
  59. package/dist/dts/features/Navigation/TopBar/LoginButton.js +80 -0
  60. package/dist/dts/features/Navigation/TopBar/LoginButton.js.map +1 -0
  61. package/dist/dts/features/Navigation/TopBar/TopBar.d.ts +13 -0
  62. package/dist/dts/features/Navigation/TopBar/TopBar.d.ts.map +1 -0
  63. package/dist/dts/features/Navigation/TopBar/TopBar.js +39 -0
  64. package/dist/dts/features/Navigation/TopBar/TopBar.js.map +1 -0
  65. package/dist/dts/features/Navigation/TopBar/TopBar.stories.d.ts +14 -0
  66. package/dist/dts/features/Navigation/TopBar/TopBar.stories.d.ts.map +1 -0
  67. package/dist/dts/features/Navigation/TopBar/TopBar.stories.js +44 -0
  68. package/dist/dts/features/Navigation/TopBar/TopBar.stories.js.map +1 -0
  69. package/dist/dts/features/Navigation/Vertical/VerticalTopBar.d.ts +1 -1
  70. package/dist/dts/features/Navigation/Vertical/VerticalTopBar.d.ts.map +1 -1
  71. package/dist/dts/features/Navigation/index.d.ts +1 -1
  72. package/dist/dts/features/Navigation/index.d.ts.map +1 -1
  73. package/dist/dts/features/Navigation/types.d.ts +8 -1
  74. package/dist/dts/features/Navigation/types.d.ts.map +1 -1
  75. package/dist/dts/index.d.ts +1 -1
  76. package/dist/dts/index.d.ts.map +1 -1
  77. package/dist/dts/index.js +1 -1
  78. package/dist/dts/index.js.map +1 -1
  79. package/dist/dts/pages/Analysis/Analysis.d.ts +1 -1
  80. package/dist/dts/pages/Analysis/Analysis.d.ts.map +1 -1
  81. package/dist/dts/pages/Analysis/Analysis.js +7 -4
  82. package/dist/dts/pages/Analysis/Analysis.js.map +1 -1
  83. package/dist/dts/pages/Analysis/data.d.ts.map +1 -1
  84. package/dist/dts/pages/Analysis/data.js +2 -2
  85. package/dist/dts/pages/Analysis/data.js.map +1 -1
  86. package/dist/dts/pages/Analysis/types.d.ts +4 -2
  87. package/dist/dts/pages/Analysis/types.d.ts.map +1 -1
  88. package/dist/esm/index.js +394 -177
  89. package/dist/esm/index.js.map +1 -1
  90. package/dist/index.d.ts +54 -16
  91. package/dist/tsconfig.tsbuildinfo +1 -1
  92. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -374,20 +374,17 @@ interface Gen3LinkProps extends ClassProps$1 {
374
374
  declare const Gen3Link: ({ className, href, linkType, text, showExternalIcon, }: PropsWithChildren<Gen3LinkProps>) => react_jsx_runtime.JSX.Element;
375
375
  //# sourceMappingURL=Gen3Link.d.ts.map
376
376
 
377
- interface NameAndIcon {
378
- readonly name: string;
379
- readonly iconSize?: string;
380
- readonly rightIcon?: string;
381
- readonly leftIcon?: string;
382
- readonly classNames?: StylingOverrideWithMergeControl;
383
- readonly drawBorder?: boolean;
384
- }
385
377
  interface TopIconButtonProps extends NameAndIcon {
386
- readonly href: string;
387
- readonly tooltip?: string;
378
+ tooltip?: string;
379
+ clickHandler?: () => void;
380
+ ariaLabel?: string;
381
+ }
382
+ interface TopIconButtonPropsWithLink extends TopIconButtonProps {
383
+ href: string;
388
384
  }
385
+
389
386
  interface TopBarProps {
390
- readonly items: TopIconButtonProps[];
387
+ readonly items: TopIconButtonPropsWithLink[];
391
388
  readonly loginButtonVisibility?: LoginButtonVisibility;
392
389
  readonly externalLoginUrl?: string;
393
390
  readonly classNames?: StylingOverrideWithMergeControl;
@@ -450,6 +447,13 @@ interface HeaderProps {
450
447
  interface MainContentProps {
451
448
  fixed: boolean;
452
449
  }
450
+ interface NameAndIcon {
451
+ readonly name?: string;
452
+ readonly iconSize?: string;
453
+ readonly rightIcon?: string;
454
+ readonly leftIcon?: string;
455
+ readonly classNames?: StylingOverrideWithMergeControl;
456
+ }
453
457
 
454
458
  /**
455
459
  * Header component.
@@ -1051,7 +1055,7 @@ interface WorkspaceProps {
1051
1055
  declare const Workspace: ({ config }: WorkspaceProps) => react_jsx_runtime.JSX.Element;
1052
1056
  //# sourceMappingURL=Workspace.d.ts.map
1053
1057
 
1054
- interface AnalysisToolConfig {
1058
+ interface AnalysisToolConfiguration {
1055
1059
  title: string;
1056
1060
  image?: string;
1057
1061
  icon: string | ReactElement;
@@ -1060,15 +1064,47 @@ interface AnalysisToolConfig {
1060
1064
  hasDemo?: boolean;
1061
1065
  loginRequired: boolean;
1062
1066
  href: string;
1067
+ count?: number;
1068
+ countUnits?: string;
1069
+ cardType?: 'regular' | 'compact';
1063
1070
  }
1064
1071
  interface AnalysisCenterConfiguration {
1065
- tools: Array<AnalysisToolConfig>;
1072
+ tools: Array<AnalysisToolConfiguration>;
1066
1073
  showFilterAndSort?: boolean;
1067
1074
  }
1075
+ interface AnalysisCenterSection {
1076
+ label: string;
1077
+ classNames?: Record<string, string>;
1078
+ tools: Array<AnalysisToolConfiguration>;
1079
+ }
1080
+ interface AnalysisCenterWithSectionsConfiguration {
1081
+ sections: Array<AnalysisCenterSection>;
1082
+ classNames?: Record<string, string>;
1083
+ }
1068
1084
 
1069
1085
  declare const AnalysisCenter: ({ tools, showFilterAndSort, }: AnalysisCenterConfiguration) => ReactElement;
1070
1086
  //# sourceMappingURL=AnalysisCenter.d.ts.map
1071
1087
 
1088
+ /**
1089
+ * AnalysisPanelWithSections component.
1090
+ *
1091
+ * This React functional component renders a panel that organizes tools into sections. Each section
1092
+ * includes a title, a divider, and a grid of tool cards. The component supports customizable styling
1093
+ * for global and section-specific classNames.
1094
+ *
1095
+ * @type {React.FC<AnalysisCenterWithSectionsConfiguration>}
1096
+ *
1097
+ * @param {Object} props - The component properties.
1098
+ * @param {Array} props.sections - The array of sections to display in the panel. Each section includes
1099
+ * a label, an optional classNames object for custom styling, and an array of tools.
1100
+ * @param {Object} [props.classNames] - An optional object of global classNames used for styling
1101
+ * components within the panel. These can be overridden on a per-section basis.
1102
+ *
1103
+ * @returns {ReactElement} A React element that renders the analysis panel with sections.
1104
+ */
1105
+ declare const AnalysisCenterWithSections: React__default.FC<AnalysisCenterWithSectionsConfiguration>;
1106
+ //# sourceMappingURL=AnalysisCenterWithSections.d.ts.map
1107
+
1072
1108
  declare const create10ColorPallet: (mainColor: string) => Record<string, string>;
1073
1109
  declare const create10ColorAccessibleContrast: (pallet: Record<string, string>) => Record<string, string>;
1074
1110
 
@@ -1503,10 +1539,12 @@ declare const WorkspacePageGetServerSideProps: GetServerSideProps<WorkspacePageL
1503
1539
  declare const WorkspaceNoAccessPageServerSideProps: GetServerSideProps<NavPageLayoutProps>;
1504
1540
 
1505
1541
  interface AnalysisPageLayoutProps extends NavPageLayoutProps {
1506
- tools: Array<AnalysisToolConfig>;
1542
+ tools?: Array<AnalysisToolConfiguration>;
1543
+ sections?: Array<AnalysisCenterSection>;
1544
+ classNames?: Record<string, string>;
1507
1545
  }
1508
1546
 
1509
- declare const AnalysisPage: ({ headerProps, footerProps, tools, }: AnalysisPageLayoutProps) => JSX.Element;
1547
+ declare const AnalysisPage: ({ headerProps, footerProps, tools, sections, classNames, }: AnalysisPageLayoutProps) => JSX.Element;
1510
1548
  //# sourceMappingURL=Analysis.d.ts.map
1511
1549
 
1512
1550
  declare const AnalysisPageGetServerSideProps: GetServerSideProps<AnalysisPageLayoutProps>;
@@ -1691,4 +1729,4 @@ declare function export_default$1(req: NextApiRequest, res: NextApiResponse): Pr
1691
1729
 
1692
1730
  declare function export_default(req: NextApiRequest, res: NextApiResponse): Promise<void>;
1693
1731
 
1694
- export { AISearchPageGetServerSideProps, ActionButton, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AnalysisCenter, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, AuthzPage, type BannerProps, BaseModal, type CellRenderFunctionProps, type CellRendererFunctionProps, type ChartProps, Charts, CohortBuilder, type CohortBuilderConfiguration, type CohortBuilderProps, type CohortPanelConfig, CollapsableSidebar, ColorThemePage, ColorThemePageGetServerSideProps, ContentSource, CreateCredentialsAPIKeyModal, CrosswalkPage, CrosswalkPageGetServerSideProps, Custom404Page, DataLibraryPage, DataLibraryPageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, DiscoveryCellRendererFactory, type DiscoveryConfig, DiscoveryProvider as DiscoveryConfigProvider, DiscoveryIndexPanel, DiscoveryPage, DiscoveryPageGetServerSideProps, DiscoveryRowRendererFactory, DropdownButton, EnumFacetChart, ErrorCard, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerPageGetServerSidePropsForConfigId, type ExplorerPageProps, ExplorerTableCellRendererFactory, ExplorerTableDetailsPanelFactory, FirstTimeModal, type Fonts, Footer, type FooterProps, Gen3Button, Gen3ButtonReverse, Gen3Link, Gen3ModalsProvider, Gen3Provider, GqlQueryEditor, Header, type HeaderProps, HoverLink, LandingPage, LandingPageGetStaticProps, LoginButton, type LoginConfig, LoginPage, LoginPageGetServerSideProps, LoginPanel, LoginProvidersPanel, MinutesToMilliseconds, type ModalsConfig, NavPageLayout, type NavPageLayoutProps, NavigationBar, NavigationButton, type NavigationProps, NoAccessModal, NotebookLitePage, NotebookLitePageGetStaticProps, type ProfileConfig, ProfilePage, ProfilePageGetServerSideProps, ProfileProvider, ProtectedContent, QueryPage, QueryPageGetServerSideProps, ReactECharts, type ReactEChartsProps, type RegisteredIcons, ResourcesFilters, type RowRenderFunctionParams, SPECIAL_CASE_FIELDS, type SessionConfiguration, SessionExpiredModal, type StudyDetailsField, StudyGroup, SubmissionPage, SubmissionPageGetServerSideProps, type SummaryChart, type TableDetailsPanelProps, TagCloud, type TagData, type TagsConfig, TailwindConfig, type TenStringArray, TopBar, type TopBarProps, UploadJSONButton, User$1 as User, Workspace, type WorkspaceConfig, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, capitalize, computeRowSpan, convertMinutesToMilliseconds, convertSecondsToMilliseconds, create10ColorAccessibleContrast, create10ColorPallet, createMantineTheme, export_default$1 as credentialsLogin, export_default as credentialsLogout, extractObjectKey, focusStyles, getCurrentUnixTimestamp, getNavPageLayoutPropsFromConfig, getParamsValueAsString, getTagInfo, hasOwnProperty, isArrayOfString, isPropertyKey, isTextTransform, processLabel, processRangeKeyLabel, registerCohortBuilderDefaultPreviewRenderers, registerCohortDiscoveryApp, registerCohortSimilarityApp, registerDefaultDiscoveryDataLoaders, registerDiscoveryDefaultCellRenderers, registerDiscoveryDefaultStudyPreviewRenderers, registerExplorerDefaultCellRenderers, registerMetadataSchemaApp, removeKey, resourcePathFromProjectID, export_default$2 as sessionLogout, export_default$3 as sessionToken, stripTrailingSlash, toDisplayName, truncateString, unixTimeToString, useDiscoveryContext, userHasMethodForServiceOnResource };
1732
+ export { AISearchPageGetServerSideProps, ActionButton, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AnalysisCenter, type AnalysisCenterSection, AnalysisCenterWithSections, type AnalysisCenterWithSectionsConfiguration, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, type AnalysisToolConfiguration, AuthzPage, type BannerProps, BaseModal, type CellRenderFunctionProps, type CellRendererFunctionProps, type ChartProps, Charts, CohortBuilder, type CohortBuilderConfiguration, type CohortBuilderProps, type CohortPanelConfig, CollapsableSidebar, ColorThemePage, ColorThemePageGetServerSideProps, ContentSource, CreateCredentialsAPIKeyModal, CrosswalkPage, CrosswalkPageGetServerSideProps, Custom404Page, DataLibraryPage, DataLibraryPageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, DiscoveryCellRendererFactory, type DiscoveryConfig, DiscoveryProvider as DiscoveryConfigProvider, DiscoveryIndexPanel, DiscoveryPage, DiscoveryPageGetServerSideProps, DiscoveryRowRendererFactory, DropdownButton, EnumFacetChart, ErrorCard, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerPageGetServerSidePropsForConfigId, type ExplorerPageProps, ExplorerTableCellRendererFactory, ExplorerTableDetailsPanelFactory, FirstTimeModal, type Fonts, Footer, type FooterProps, Gen3Button, Gen3ButtonReverse, Gen3Link, Gen3ModalsProvider, Gen3Provider, GqlQueryEditor, Header, type HeaderProps, HoverLink, LandingPage, LandingPageGetStaticProps, LoginButton, type LoginConfig, LoginPage, LoginPageGetServerSideProps, LoginPanel, LoginProvidersPanel, MinutesToMilliseconds, type ModalsConfig, NavPageLayout, type NavPageLayoutProps, NavigationBar, NavigationButton, type NavigationProps, NoAccessModal, NotebookLitePage, NotebookLitePageGetStaticProps, type ProfileConfig, ProfilePage, ProfilePageGetServerSideProps, ProfileProvider, ProtectedContent, QueryPage, QueryPageGetServerSideProps, ReactECharts, type ReactEChartsProps, type RegisteredIcons, ResourcesFilters, type RowRenderFunctionParams, SPECIAL_CASE_FIELDS, type SessionConfiguration, SessionExpiredModal, type StudyDetailsField, StudyGroup, SubmissionPage, SubmissionPageGetServerSideProps, type SummaryChart, type TableDetailsPanelProps, TagCloud, type TagData, type TagsConfig, TailwindConfig, type TenStringArray, TopBar, type TopBarProps, UploadJSONButton, User$1 as User, Workspace, type WorkspaceConfig, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, capitalize, computeRowSpan, convertMinutesToMilliseconds, convertSecondsToMilliseconds, create10ColorAccessibleContrast, create10ColorPallet, createMantineTheme, export_default$1 as credentialsLogin, export_default as credentialsLogout, extractObjectKey, focusStyles, getCurrentUnixTimestamp, getNavPageLayoutPropsFromConfig, getParamsValueAsString, getTagInfo, hasOwnProperty, isArrayOfString, isPropertyKey, isTextTransform, processLabel, processRangeKeyLabel, registerCohortBuilderDefaultPreviewRenderers, registerCohortDiscoveryApp, registerCohortSimilarityApp, registerDefaultDiscoveryDataLoaders, registerDiscoveryDefaultCellRenderers, registerDiscoveryDefaultStudyPreviewRenderers, registerExplorerDefaultCellRenderers, registerMetadataSchemaApp, removeKey, resourcePathFromProjectID, export_default$2 as sessionLogout, export_default$3 as sessionToken, stripTrailingSlash, toDisplayName, truncateString, unixTimeToString, useDiscoveryContext, userHasMethodForServiceOnResource };