| compareByGroupKey | ||||||||||||
compareByGroupKey(a: GroupByKey, b: GroupByKey)
|
||||||||||||
|
Compares two groupBy keys for sorting
Parameters :
Returns :
number
Comparison result |
| compareByName | ||||||||||||||||
compareByName(a: PeopleItem, b: PeopleItem, order)
|
||||||||||||||||
|
Compares two team members by last name
Parameters :
Returns :
number
Comparison result |
| compareByNumericProperty | ||||||||||||||||||||
compareByNumericProperty(a: PeopleItem, b: PeopleItem, propertyMap: Map, order)
|
||||||||||||||||||||
|
Compares two team members by a numeric property
Parameters :
Returns :
number
Comparison result |
| createGroupByKeyFn | |||||||||
createGroupByKeyFn(groupBy, store)
|
|||||||||
|
Creates a function to derive groupBy keys for team members
Parameters :
Returns :
GroupByKey
A function that derives group keys for team members |
| createGroupByKeyImpl | ||||||
createGroupByKeyImpl(groupBy)
|
||||||
|
Creates implementation for deriving groupBy keys for a team member's role
Parameters :
Returns :
GroupByKey
A function that derives group keys from a role |
| createSortFn | ||||||||||||
createSortFn(sortBy: SortBy, store: PeopleProps)
|
||||||||||||
|
Creates a sorting function based on the selected sort option
Parameters :
Returns :
number
A comparison function for sorting team members |
| groupKeyToLabel | ||||||||
groupKeyToLabel(key: GroupByKey)
|
||||||||
|
Converts a groupBy key to a human-readable label
Parameters :
Returns :
string
Human-readable label |
| withOrdering |
withOrdering()
|
|
Adds sorting and grouping capabilities for team members Supports multiple sort orders and grouping by role, start year, or end year |
| compareRolesByEndDateDesc | ||||||||||||
compareRolesByEndDateDesc(a: AnyRole, b: AnyRole)
|
||||||||||||
|
Compare two roles by their end dates in descending order.
Parameters :
Returns :
number
Comparison result for sorting |
| convertToListViewItem | ||||||||
convertToListViewItem(item: ResearchItem)
|
||||||||
|
Converts a research item to a list view item format.
Parameters :
Returns :
ListViewItem
|
| createGroupByKeyFn | ||||||
createGroupByKeyFn(groupBy)
|
||||||
|
Creates a function to extract the grouping key from a research item.
Parameters :
Returns :
GroupByKey
|
| createKeyLabelsMap | ||||
createKeyLabelsMap(types)
|
||||
|
Creates a mapping of group keys to display labels.
Parameters :
Returns :
Signal<Record<GroupByKey, string>>
|
| createSortByFn | ||||||
createSortByFn(sortBy)
|
||||||
|
Creates a sorting function based on the selected sort option.
Parameters :
Returns :
unknown | undefined
|
| groupByKeyToLabel | ||||||||||||
groupByKeyToLabel(key: GroupByKey, keyLabels: Record)
|
||||||||||||
|
Converts a group key to its display label.
Parameters :
Returns :
string
|
| withOrdering |
withOrdering()
|
|
Adds sorting and grouping capabilities for research items. Provides sorted and grouped views of filtered research items. |
| createFilteredBy | ||||||||||||
createFilteredBy(items, options, filterFn)
|
||||||||||||
|
Filters items by selected options using a provided predicate.
Parameters :
Returns :
Signal<T[]>
|
| createYearList | ||||||||
createYearList(startYear: number)
|
||||||||
|
Builds a descending list of years starting at startYear.
Parameters :
Returns :
number[]
|
| filterOptionsByIds | |||||||||
filterOptionsByIds(options, ids)
|
|||||||||
|
Filters options by selected IDs.
Parameters :
Returns :
Signal<TypedSearchListOption[]>
Accessor for typed search list options |
| normalizeSearchString | ||||||||
normalizeSearchString(str: string)
|
||||||||
|
Normalizes search text for case/diacritic-insensitive matching.
Parameters :
Returns :
string
|
| optionsToFilter | ||||||||||||||||
optionsToFilter(base: FilterOptionCategory, selected, options?)
|
||||||||||||||||
|
Merges base filter config with current selection and options.
Parameters :
Returns :
Signal<FilterOptionCategory<Opt>>
|
| optionsToSet | ||||||
optionsToSet(...options: undefined)
|
||||||
|
Builds a set of selected option IDs across multiple selections.
Parameters :
Returns :
Signal<Set<Opt>>
|
| researchTypesToOptions | ||||||
researchTypesToOptions(researchTypes)
|
||||||
|
Converts research type definitions to typed search list options.
Parameters :
Returns :
Signal<TypedSearchListOption[]>
Accessor for typed search list options |
| toSentenceCase | ||||||||
toSentenceCase(str: string)
|
||||||||
|
Converts a string to sentence case.
Parameters :
Returns :
string
|
| withFilters |
withFilters()
|
|
Adds filtering capabilities for research items. Provides filtered item lists, counts, and filter option signals. |
| createPersonResolver | ||||||||
createPersonResolver(baseUrl: string)
|
||||||||
|
Resolver to load person data by slug
Parameters :
Returns :
ResolveFn<PeopleItem>
A resolve function that fetches and parses person data |
| createRolesPropertyMap | ||||||||||||
createRolesPropertyMap(people, getProperty, reducer)
|
||||||||||||
|
Creates a map of people to a derived property from their roles
Parameters :
Returns :
Map<PeopleItem, R>
Map of people to the derived property |
| sortRoleByDateDesc |
sortRoleByDateDesc(a: AnyRole, b: AnyRole)
|
|
Sorts roles by end date in descending order (most recent first)
Returns :
number
Comparison result |
| withPeople |
withPeople()
|
|
Adds people data, role mappings, and query methods |
| createWritableStateSlice | ||||||||||||
createWritableStateSlice(stateSignal: Signal, set)
|
||||||||||||
|
Creates a WritableSignal wrapper around a read-only state signal and setter function. Used to bridge ngrx signal store state with APIs that expect WritableSignal.
Parameters :
Returns :
WritableSignal<T>
A WritableSignal that wraps the state signal |
| createWritableStateSlice | ||||||||||||
createWritableStateSlice(stateSignal: Signal, set)
|
||||||||||||
|
Creates a writable signal slice from a readonly signal and setter function.
Parameters :
Returns :
WritableSignal<T>
|
| createYearList | ||||||||
createYearList(startYear: number)
|
||||||||
|
Create a list of years from startYear to current year
Parameters :
Returns :
number[]
Array of years in descending order |
| withFilters |
withFilters()
|
|
Adds filtering capabilities for team members Filters by team type (current/past), role, active year, and search text |
| getImageUrl | ||||||||
getImageUrl(item: ResearchItem)
|
||||||||
|
Gets image url and uses the appropriate placeholder if none is provided.
Parameters :
Returns :
string
image url |
| getRefinedRoleTypeLabel | ||||||||
getRefinedRoleTypeLabel(type: RefinedRoleType)
|
||||||||
|
Gets the display label for a given refined role type
Parameters :
Returns :
string
The display label for the role type |
| refineRoleType | ||||||||
refineRoleType(role: AnyRole)
|
||||||||
|
Derives a refined role type from a given role based on its type and degree (if applicable)
Parameters :
Returns :
RefinedRoleType
The refined role type |
| handleNavigationError | ||||||||
handleNavigationError(event: NavigationError)
|
||||||||
|
Handles navigation errors by logging and redirecting to appropriate error pages
Parameters :
Returns :
RedirectCommand
Redirect command to the appropriate error page |
| selectRedirectPath | ||||||||
selectRedirectPath(event: NavigationError)
|
||||||||
|
Selects the appropriate redirect path based on the navigation error
Parameters :
Returns :
string
Either the 404 or 500 error page path |
| parseCategories | ||||||
parseCategories(value)
|
||||||
|
Parses category query parameter into category options.
Parameters :
Returns :
[] | null
|
| parseEnum | ||||||||||||
parseEnum(enumObj: T, value)
|
||||||||||||
|
Parses a string value into a matching enum member, case-insensitive.
Parameters :
Returns :
unknown | null
|
| parseEventIds | ||||||
parseEventIds(value)
|
||||||
|
Parses event query parameter into event options.
Parameters :
Returns :
[] | null
|
| parseFundingIds | ||||||
parseFundingIds(value)
|
||||||
|
Parses funding query parameter into funding options.
Parameters :
Returns :
[] | null
|
| parseGroupBy | ||||||
parseGroupBy(value)
|
||||||
|
Parses group-by query parameter into group enum.
Parameters :
Returns :
string | null
|
| parseOptions | |||||||||
parseOptions(options, value)
|
|||||||||
|
Parses comma-separated option IDs into option objects, preserving order.
Parameters :
Returns :
[] | null
|
| parsePeopleIds | ||||||
parsePeopleIds(value)
|
||||||
|
Parses people IDs from comma-separated query parameter.
Parameters :
Returns :
[] | null
|
| parsePublicationIds | ||||||
parsePublicationIds(value)
|
||||||
|
Parses publication IDs from comma-separated query parameter.
Parameters :
Returns :
[] | null
|
| parseSearch | ||||||
parseSearch(value)
|
||||||
|
Parses search text from query parameter.
Parameters :
Returns :
string | null
|
| parseSortBy | ||||||
parseSortBy(value)
|
||||||
|
Parses sort-by query parameter into sort enum.
Parameters :
Returns :
SortBy
|
| parseView | ||||||
parseView(value)
|
||||||
|
Parses view query parameter into a view enum.
Parameters :
Returns :
View
|
| parseYears | ||||||
parseYears(value)
|
||||||
|
Parses year query parameter into year options.
Parameters :
Returns :
[] | null
|
| serializeCategories | ||||||
serializeCategories(options)
|
||||||
|
Serializes selected categories to query parameter format.
Parameters :
Returns :
string | null
|
| serializeEventIds | ||||||
serializeEventIds(ids)
|
||||||
|
Serializes selected events to query parameter format.
Parameters :
Returns :
string | null
|
| serializeFundingIds | ||||||
serializeFundingIds(ids)
|
||||||
|
Serializes selected funding options to query parameter format.
Parameters :
Returns :
string | null
|
| serializeOptions | ||||||
serializeOptions(options)
|
||||||
|
Serializes selected options to a comma-delimited string for query params.
Parameters :
Returns :
string | null
|
| serializePeopleIds | ||||||
serializePeopleIds(ids)
|
||||||
|
Serializes people IDs to comma-delimited string.
Parameters :
Returns :
string | null
|
| serializePublicationIds | ||||||
serializePublicationIds(ids)
|
||||||
|
Serializes publication IDs to comma-delimited string.
Parameters :
Returns :
string | null
|
| serializeYears | ||||||
serializeYears(options)
|
||||||
|
Serializes selected years to query parameter format.
Parameters :
Returns :
string | null
|
| parseEnum | ||||||||||||
parseEnum(enumObj: T, value)
|
||||||||||||
|
Parses an unknown value into an enum value
Parameters :
Returns :
unknown | null
The matched enum value or null if not found |
| parseGroupBy | ||||||
parseGroupBy(value)
|
||||||
|
Parses a URL query param value into a GroupBy enum
Parameters :
Returns :
GroupBy | null
The parsed GroupBy value or null |
| parseOptions | |||||||||
parseOptions(options, value)
|
|||||||||
|
Parses a comma-separated string into an array of matching options
Parameters :
Returns :
[] | null
Array of matched options or null if none found |
| parseRoles | ||||||
parseRoles(value)
|
||||||
|
Parses a URL query param value into role type options
Parameters :
Returns :
[] | null
Array of matched role options or null |
| parseSearch | ||||||
parseSearch(value)
|
||||||
|
Parses a URL query param value into a search string
Parameters :
Returns :
string | null
The search string or null |
| parseSortBy | ||||||
parseSortBy(value)
|
||||||
|
Parses a URL query param value into a SortBy enum
Parameters :
Returns :
SortBy | null
The parsed SortBy value or null |
| parseTeamType | ||||||
parseTeamType(value)
|
||||||
|
Parses a URL query param value into a TeamType enum
Parameters :
Returns :
TeamType
The parsed TeamType, defaults to Current |
| parseYears | ||||||
parseYears(value)
|
||||||
|
Parses a URL query param value into year options
Parameters :
Returns :
[] | null
Array of matched year options or null |
| serializeRoles | ||||||
serializeRoles(options)
|
||||||
|
Serializes role options into a comma-separated string for URL
Parameters :
Returns :
string | null
Comma-separated string of role IDs or null |
| serializeYears | ||||||
serializeYears(options)
|
||||||
|
Serializes year options into a comma-separated string for URL
Parameters :
Returns :
string | null
Comma-separated string of years or null |
| uniqueValues | ||||||
uniqueValues(items)
|
||||||
|
Remove duplicate items from an array
Parameters :
Returns :
T[]
Array with unique items |
| withResearch |
withResearch()
|
|
Provides core research data management. Stores research items, people, publication type definitions, and tags. |
| withView |
withView()
|
|
Manages view mode for research items (gallery or list). Automatically sets list view for certain categories on initial load. |