| ActionCardDef |
Type : ContentTemplateDef<ActionCardComponent>
|
Default value : {
component: ActionCardComponent,
spec: ActionCardSchema,
projectedProperties: {
'*': 'content',
"hra-action-card-action:not([alignment='right'])": 'actionsLeft',
"hra-action-card-action[alignment='right']": 'actionsRight',
},
}
|
|
Content template definition for action card |
| ActionCardVariantSchema |
Type : unknown
|
Default value : z.enum(['elevated', 'flat', 'outlined', 'outlined-with-icons'])
|
|
Schema for action card variants |
| ACTIVE_MATCH_OPTIONS |
Type : IsActiveMatchOptions
|
Default value : {
paths: 'exact',
matrixParams: 'ignored',
queryParams: 'ignored',
fragment: 'ignored',
}
|
|
Options for active link matching |
| ApiCommandDef |
Type : ContentTemplateDef<ApiCommandComponent>
|
Default value : {
component: ApiCommandComponent,
spec: ApiCommandSchema,
}
|
|
Content template definition for ApiCommandComponent |
| EXPANSION_PANEL_ANIMATION_TIMING |
Type : string
|
Default value : '225ms cubic-bezier(0.4,0.0,0.2,1)'
|
|
Animation for the expansion panel |
| BrandLogoSchema |
Type : unknown
|
Default value : z.object({
size: BrandLogoSizeSchema,
src: z.string(),
width: z.number().positive(),
height: z.number().positive(),
})
|
|
Schema for logo item |
| BrandLogoSizeSchema |
Type : unknown
|
Default value : z.enum(['small', 'regular'])
|
|
Schema for logo size |
| BrandLogosSchema |
Type : unknown
|
Default value : z.object({
$schema: z.string(),
logos: BrandLogoSchema.array(),
})
|
|
Schema for logos |
| BrandMarkSchema |
Type : unknown
|
Default value : z.object({
variant: BrandMarkVariantSchema,
src: z.string(),
width: z.number().positive(),
height: z.number().positive(),
})
|
|
Schema for mark item |
| BrandMarksSchema |
Type : unknown
|
Default value : z.object({
$schema: z.string(),
marks: BrandMarkSchema.array(),
})
|
|
Schema for marks |
| BrandMarkVariantSchema |
Type : unknown
|
Default value : z.enum(['default', 'contrast', 'small'])
|
|
Schema for mark variant |
| ButtonDef |
Type : ContentTemplateDef<ButtonComponent>
|
Default value : {
component: ButtonComponent,
spec: ButtonSchema,
}
|
|
Content template definition for DataViewerComponent |
| CATEGORY_DEFS |
Type : CategoryDef[]
|
Default value : [
{
id: EventCategory.Necessary,
title: 'Necessary',
description: `Necessary cookies and similar technologies make websites usable by enabling basic functions like page navigation.
The website cannot function properly without this feature.`,
provider: 'Human Reference Atlas',
providerLink: 'https://humanatlas.io/privacy-policy',
required: true,
},
{
id: EventCategory.Preferences,
title: 'Preferences',
description: `Preference cookies remember your choices, like your preferred language or display settings.
They help the site behave in a way that matches your preferences.`,
details: 'We do not use cookies or technology of this type',
},
{
id: EventCategory.Statistics,
title: 'Statistics',
description: `We use statistics cookies and similar technologies to collect aggregated,
anonymous data that help us understand traffic patterns, popular pages, and overall performance.
This information supports continuous improvements to our website.`,
provider: 'Human Reference Atlas',
providerLink: 'https://humanatlas.io/privacy-policy',
},
{
id: EventCategory.Marketing,
title: 'Marketing',
description: `These cookies are used by third-party services, such as YouTube, to enable embedded video playback.
If these cookies are disabled, embedded videos will not play on this site.`,
provider: 'YouTube',
providerLink: 'https://policies.google.com/privacy',
},
]
|
|
Definitions for each category |
| CodeBlockDef |
Type : ContentTemplateDef<CodeBlockComponent>
|
Default value : {
component: CodeBlockComponent,
spec: CodeBlockSchema,
}
|
|
Content template definition for MarkdownComponent |
| COMPONENTS |
Type : []
|
Default value : [WorkflowCardComponent, WorkflowCardActionsComponent, WorkflowCardExtraComponent]
|
|
All components |
| CONSENT_BANNER_ARIA_LABELLEDBY_ID |
Type : string
|
Default value : 'consentBannerDialogTitle'
|
|
Aria labelledby id of consent banner component |
| CONSENT_BANNER_PANEL_CLASS |
Type : string
|
Default value : 'hra-consent-banner-panel'
|
|
Dialog panel class |
| CONSENT_BANNER_DIALOG_ID |
Type : string
|
Default value : 'consentBannerDialog'
|
|
ID for the consent banner dialog |
| PRIVACY_PREFERENCES_DIALOG_ID |
Type : string
|
Default value : 'privacyPreferencesDialog'
|
|
ID for the privacy preferences dialog |
| PRIVACY_PREFERENCES_STORAGE_KEY |
Type : string
|
Default value : '__hra-analytics-privacy-preferences'
|
|
Key used to store privacy preferences in local storage |
| DataViewerDef |
Type : ContentTemplateDef<DataViewerComponent>
|
Default value : {
component: DataViewerComponent,
spec: DataViewerSchema,
}
|
|
Content template definition for DataViewerComponent |
| DataViewerVariantSchema |
Type : unknown
|
Default value : z.enum(['ftu', '3d-organ'])
|
|
Schema for data viewer variant |
| ViewerFileSchema |
Type : unknown
|
Default value : z.object({
label: z.string(),
url: z.string().url(),
})
|
|
Schema for viewer file data |
| ViewerOrganDataSchema |
Type : unknown
|
Default value : z.object({
label: z.string(),
icon: z.string(), // This is a mat-icon svg icon
cards: ViewerCardSchema.array(),
})
|
|
Schema for organ data |
| DEFAULT_LOGOS |
Type : BrandLogo[]
|
Default value : [
{
size: 'regular',
src: 'assets/brand/logo/regular.svg',
width: 178,
height: 74,
},
{
size: 'small',
src: 'assets/brand/logo/small.svg',
width: 116,
height: 48,
},
]
|
|
Default logos for applications |
| DEFAULT_POLYFILL_URL |
Type : string
|
Default value : 'assets/polyfills/scroll-timeline-polyfill.js'
|
|
Default scroll timeline polyfill url |
| DEFAULT_ROOT_MARGIN |
Type : string
|
Default value : '0px 0px -80% 0px'
|
|
Default root margin |
| PAGE_SECTION_ACTIVATION_OPTIONS |
Type : unknown
|
Default value : new InjectionToken<PageSectionActivationOptions>(
'Page Section Activation Options',
)
|
|
Token used to provide service options |
| Densities |
Type : unknown
|
Default value : {
Compact0: 'compact-0',
Compact2: 'compact-2',
Compact4: 'compact-4',
} as const
|
|
Density level enum |
| MOBILE_MENU_POSITIONS |
Type : ConnectedPosition[]
|
Default value : [
{ originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top' },
]
|
|
Position of the mobile menu overlay |
| DOCS_NAVIGATION_MENU |
Type : unknown
|
Default value : menuItems as DocsMenuItems
|
|
Docs Navigation Menu |
| DocsMenuItemsSchema |
Type : unknown
|
Default value : z.array(z.union([DocsNavigationCategorySchema, DocsNavigationItemSchema]))
|
|
Docs Menu Items Array Schema |
| DocsNavigationItemSchema |
Type : unknown
|
Default value : z.object({
type: z.literal('item'),
label: z.string(),
icon: z.string().optional(),
url: z.string(),
})
|
|
Docs Navigation Item Schema |
| DocsNavigationMenuSchema |
Type : unknown
|
Default value : z.object({
$schema: z.string(),
menuItems: DocsMenuItemsSchema,
})
|
|
Docs Navigation Menu Schema |
| SVG_ICON_DIRECTORY |
Type : unknown
|
Default value : new InjectionToken('SVG_ICON_DIRECTORY', {
providedIn: 'root',
factory: () => 'assets/icons/',
})
|
|
Token with the svg icon directory |
| FONT_SIZES |
Type : Record<TreeSize, number>
|
Default value : {
small: 0.75,
medium: 0.875,
large: 1,
}
|
|
Font sizes for each tree size (rem) |
| ICON_SIZES |
Type : Record<TreeSize, number>
|
Default value : {
small: 1.25,
medium: 1.5,
large: 1.5,
}
|
|
Icon sizes for each tree size (rem) |
| NODE_HEIGHTS |
Type : Record<TreeSize, number>
|
Default value : {
small: 1.5,
medium: 1.75,
large: 2,
}
|
|
Node heights for each tree size (rem) |
| FUNDER_IDS |
Type : unknown
|
Default value : FUNDERS.map(({ id }) => id)
|
|
All available funder ids |
| FUNDERS |
Type : unknown
|
Default value : FundersSchema.parse(RAW_FUNDERS).funders
|
|
Parsed funders static data |
| FunderSchema |
Type : unknown
|
Default value : z.object({
id: z.string().brand<'FunderId'>(),
name: z.string(),
link: z.string().url(),
image: z.string(),
})
|
|
Schema for a funder item |
| FundersSchema |
Type : unknown
|
Default value : z.object({
$schema: z.string(),
funders: FunderSchema.array(),
})
|
|
Schema for multiple funders |
| GoogleMapsDef |
Type : ContentTemplateDef<GoogleMapsComponent>
|
Default value : {
component: GoogleMapsComponent,
spec: GoogleMapsSchema,
}
|
|
Content template definition for GoogleMapsComponent |
| HUBMAP_MENU |
Type : unknown
|
Default value : groups as HubmapMenuGroup[]
|
|
Hubmap menu objects |
| MENUS |
Type : unknown
|
Default value : menus as Menu[]
|
|
Menus objects |
| HubmapMenuGroupSchema |
Type : unknown
|
Default value : z.object({
label: z.string(),
items: HubmapMenuItemSchema.array(),
})
|
|
Schema for a hubmap menu group |
| HubmapMenuItemSchema |
Type : unknown
|
Default value : z.object({
label: z.string(),
description: z.string(),
icon: z.string(),
url: z.string().url(),
})
|
|
Schema for a hubmap menu item |
| HubmapMenuSchema |
Type : unknown
|
Default value : z.object({
$schema: z.string(),
groups: HubmapMenuGroupSchema.array(),
})
|
|
Schema for a humbap menu |
| IconColumnTypeSchema |
Type : unknown
|
Default value : z.object({
type: z.literal('icon'),
icon: z.string(),
tooltip: z.string().optional(),
})
|
|
Schema for Icon Column |
| LinkColumnTypeSchema |
Type : unknown
|
Default value : z.object({
type: z.literal('link'),
urlColumn: z.string(),
internal: z.boolean().optional(),
})
|
|
Schema for Link Column |
| MarkdownColumnTypeSchema |
Type : unknown
|
Default value : z.object({
type: z.literal('markdown'),
})
|
|
Schema for Markdown Column |
| MenuButtonColumnTypeSchema |
Type : unknown
|
Default value : z.object({
type: z.literal('menu'),
icon: z.string(),
options: z.string(),
tooltip: z.string().optional(),
})
|
|
Schema for MenuButton Column |
| NumericColumnTypeSchema |
Type : unknown
|
Default value : z.object({
type: z.literal('numeric'),
computeTotal: z.boolean().optional(),
// TODO add format
})
|
|
Schema for Numeric Column |
| TableRowSchema |
Type : unknown
|
Default value : z.record(z.string(), z.union([z.string(), z.number(), z.boolean(), z.array(z.any())]))
|
|
Schema for a single table row |
| TableVariantSchema |
Type : unknown
|
Default value : z.enum(['alternating', 'divider', 'basic'])
|
|
Schema for table style |
| TextColumnTypeSchema |
Type : unknown
|
Default value : z.object({
type: z.literal('text'),
})
|
|
Schema for Text Column |
| IconListSchema |
Type : unknown
|
Default value : z.union([
z.union([z.string(), IconDataSchema]),
z.union([z.string(), IconDataSchema]).array(),
])
|
|
Schema for icon list |
| IconSchema |
Type : unknown
|
Default value : ContentTemplateSchema.extend({
component: z.literal('Icon'),
}).merge(IconDataSchema)
|
|
Schema for icon content template |
| IconDef |
Type : ContentTemplateDef<IconComponent>
|
Default value : {
component: IconComponent,
spec: IconSchema,
}
|
|
Icon content template definition |
| idCounter |
Type : number
|
Default value : 0
|
|
Counter to keep track of distinct panels |
| ImageDef |
Type : ContentTemplateDef<ImageComponent>
|
Default value : {
component: ImageComponent,
spec: ImageSchema,
}
|
|
Content template definition for ImageComponent |
| ImageSchema |
Type : unknown
|
Default value : ContentTemplateSchema.extend({
component: z.literal('Image'),
src: z.string(),
alt: z.string().optional(),
})
|
|
Schema for image component |
| MarkdownDef |
Type : ContentTemplateDef<MarkdownComponent>
|
Default value : {
component: MarkdownComponent,
spec: MarkdownSchema,
}
|
|
Content template definition for MarkdownComponent |
| MARKS |
Type : unknown
|
Default value : BrandMarksSchema.parse(RAW_MARKS).marks
|
|
All marks data |
| MenuDividerSchema |
Type : unknown
|
Default value : z.object({
type: z.literal('divider'),
})
|
|
Schema for a menu divider |
| MenuSchema |
Type : unknown
|
Default value : z.object({
type: z.literal('menu'),
id: z.string(),
label: z.string(),
items: z.union([MenuGroupSchema, MenuDividerSchema]).array(),
})
|
|
Schema for a menu |
| MenusSchema |
Type : unknown
|
Default value : z.object({
$schema: z.string(),
menus: MenuSchema.array(),
})
|
|
Schema for multiple menus |
| MenuSubGroupSchema |
Type : unknown
|
Default value : z.object({
type: z.literal('subgroup'),
label: z.string(),
items: MenuItemSchema.array(),
})
|
|
Schema for a menu subgroup |
| MISCELLANEOUS_ICON_CONFIG |
Type : IconConfig
|
Default value : {
color: '#ffffff',
backgroundColor: '#4b4b5e',
}
|
|
Icon configuration for miscellaneous logos |
| ORGAN_ICON_CONFIG |
Type : IconConfig
|
Default value : {
color: '#ffffff',
backgroundColor: '#ff0043',
}
|
|
Icon configuration for organ logos |
| PADDING |
Type : Record<TreeSize, number>
|
Default value : {
small: 32,
medium: 36,
large: 40,
}
|
|
Padding indents for each tree size (px) |
| PageTableDef |
Type : ContentTemplateDef<TableComponent>
|
Default value : {
component: TableComponent,
spec: PageTableSchema,
}
|
|
Content template definition for TableComponent |
| VIEWPORT_MARGIN |
Type : number
|
Default value : 8
|
|
Viewport margin for the rich tooltip |
| PRODUCT_ICON_CONFIG |
Type : IconConfig
|
Default value : {
color: '#ffffff',
backgroundColor: '#201e3d',
}
|
|
Icon configuration for product logos |
| ProfileCardDef |
Type : ContentTemplateDef<ProfileCardComponent>
|
Default value : {
component: ProfileCardComponent,
spec: ProfileCardSchema,
projectedProperties: {
'*': 'actions',
},
}
|
|
ProfileCard content template definition |
| REEXPORTS |
Type : []
|
Default value : [BackButtonBarComponent, CtaBarComponent, FooterComponent, HeaderComponent, SiteNavigationComponent]
|
|
All sub library components, module, etc. |
| REEXPORTS |
Type : []
|
Default value : [FlatCardComponent, FlatCardActionsComponent]
|
|
All re-exported modules, components, directives, etc. |
| SOCIAL_IDS |
Type : unknown
|
Default value : SOCIALS.map(({ id }) => id)
|
|
All available social ids |
| SOCIALS |
Type : unknown
|
Default value : SocialsSchema.parse(RAW_SOCIALS).socials
|
|
Parsed social media items |
| SocialsSchema |
Type : unknown
|
Default value : z.object({
$schema: z.string(),
socials: SocialMediaSchema.array(),
})
|
|
Schema for social media items |
| tabIdToIndex |
Type : Record<PrivacyPreferencesTab, number>
|
Default value : {
consent: 0,
manage: 1,
}
|
|
Mapping of tab IDs to their respective index |
| TextHyperlinkDef |
Type : ContentTemplateDef<TextHyperlinkComponent>
|
Default value : {
component: TextHyperlinkComponent,
spec: TextHyperlinkSchema,
}
|
|
Text hyperlink component definition |
| YouTubePlayerDef |
Type : ContentTemplateDef<HraYoutubePlayerComponent>
|
Default value : {
component: HraYoutubePlayerComponent,
spec: YouTubePlayerSchema,
}
|
|
Content template definition for YoutubePlayer |
| YouTubePlayerSchema |
Type : unknown
|
Default value : ContentTemplateSchema.extend({
component: z.literal('YouTubePlayer'),
videoId: z.string(),
label: z.string(),
})
|
|
Schema for YouTube component |