Index

projects/ui-kit-lib/src/lib/v2/modals/dialog-ref.ts

_closeDialogVia
_closeDialogVia(ref: MefDevDialogRef, interactionType: FocusOrigin, result?: R)

Helper to close a dialog and tag the close with the interaction origin. Used by default ESC/backdrop handlers to restore focus appropriately.

Parameters :
Name Type Optional
ref MefDevDialogRef No
interactionType FocusOrigin No
result R Yes

projects/ui-kit-lib/src/lib/v2/select/option.ts

_countGroupLabelsBeforeOption
_countGroupLabelsBeforeOption(optionIndex: number, options: QueryList, optionGroups: QueryList)

Count how many group labels appear before a given option index. Useful for computing aria-posinset / active-descendant offsets when groups are present.

Parameters :
Name Type Optional Description
optionIndex number No

Index of the target option among all rendered options.

options QueryList No

QueryList of all MDOption items (in render order).

optionGroups QueryList No

QueryList of MDOptionGroup (in render order).

Returns : number

Number of group headers preceding the option.

_getOptionScrollPosition
_getOptionScrollPosition(optionOffset: number, optionHeight: number, currentScrollPosition: number, panelHeight: number)

Compute the scrollTop needed to bring an option fully into view inside a panel.

Parameters :
Name Type Optional Description
optionOffset number No

Distance (px) from top of panel to the top of the option.

optionHeight number No

Height of the option (px).

currentScrollPosition number No

Current scrollTop of the panel.

panelHeight number No

Visible height of the panel (px).

Returns : number

Desired scrollTop to ensure full visibility (or current if already visible).

projects/ui-kit-lib/src/lib/v2/cards-grid/column-sizing.utils.ts

_removeFromArray
_removeFromArray(array, object: T)
Parameters :
Name Type Optional
array No
object T No
Returns : void
getPreferredWidthForElements
getPreferredWidthForElements(elements, host: HTMLElement)
Parameters :
Name Type Optional
elements No
host HTMLElement No
getWidthOfColsInList
getWidthOfColsInList(columnList)
Parameters :
Name Optional
columnList No
normaliseColumnWidth
normaliseColumnWidth(column: MDGridColumnDirective, newWidth: number, limits)
Parameters :
Name Type Optional Default value
column MDGridColumnDirective No
newWidth number No
limits No {}
refreshFlexedColumns
refreshFlexedColumns(totalSpace: number, columns, resizingCols?)
Parameters :
Name Type Optional
totalSpace number No
columns No
resizingCols Yes
sizeColumnsToFit
sizeColumnsToFit(gridWidth: number, allColumns, defaultMinColumnWidth, defaultMaxColumnWidth, onlyScaleUp: boolean)
Parameters :
Name Type Optional
gridWidth number No
allColumns No
defaultMinColumnWidth No
defaultMaxColumnWidth No
onlyScaleUp boolean No

projects/ui-kit-lib/src/lib/v2/datepicker/calendar.ts

asDate
asDate(value)
Parameters :
Name Optional
value No
Returns : Date | null
createWeekdays
createWeekdays()
Returns : string[]
sameDate
sameDate(a: Date, b: Date)
Parameters :
Name Type Optional
a Date No
b Date No
Returns : boolean
startOfMonth
startOfMonth(date: Date)
Parameters :
Name Type Optional
date Date No
Returns : Date

projects/ui-kit-lib/src/lib/v2/datepicker/date-range-input.ts

asDate
asDate(value)
Parameters :
Name Optional
value No
Returns : Date | null
formatDate
formatDate(value)
Parameters :
Name Optional
value No
Returns : string
parseDate
parseDate(value: string)
Parameters :
Name Type Optional
value string No
Returns : Date | null

projects/ui-kit-lib/src/lib/v2/datepicker/date-range-picker.ts

asDate
asDate(value)
Parameters :
Name Optional
value No
Returns : Date | null
createWeekdays
createWeekdays()
Returns : string[]
isWithinRange
isWithinRange(date: Date, start, end)
Parameters :
Name Type Optional
date Date No
start No
end No
Returns : boolean
sameDate
sameDate(a: Date, b: Date)
Parameters :
Name Type Optional
a Date No
b Date No
Returns : boolean
startOfMonth
startOfMonth(date: Date)
Parameters :
Name Type Optional
date Date No
Returns : Date

projects/ui-kit-lib/src/lib/v2/datepicker/datepicker-input.ts

asDate
asDate(value)
Parameters :
Name Optional
value No
Returns : Date | null
formatDate
formatDate(value)
Parameters :
Name Optional
value No
Returns : string
parseDate
parseDate(value: string)
Parameters :
Name Type Optional
value string No
Returns : Date | null

projects/ui-kit-lib/src/lib/v2/datepicker/datepicker.ts

asDate
asDate(value)
Parameters :
Name Optional
value No
Returns : Date | null
createWeekdays
createWeekdays()
Returns : string[]
sameDate
sameDate(a: Date, b: Date)
Parameters :
Name Type Optional
a Date No
b Date No
Returns : boolean
startOfMonth
startOfMonth(date: Date)
Parameters :
Name Type Optional
date Date No
Returns : Date

projects/ui-kit-lib/src/lib/v2/cards-grid/cards-grid.component.ts

checkMinAndMaxWidthsForSet
checkMinAndMaxWidthsForSet(columnResizeSet: ColumnResizeSet)
Parameters :
Name Type Optional
columnResizeSet ColumnResizeSet No

projects/ui-kit-lib/src/lib/v2/progress-bar/progress-bar.ts

clamp
clamp(value: number)
Parameters :
Name Type Optional
value number No
Returns : number

projects/ui-kit-lib/src/lib/v2/progress-spinner/progress-spinner.ts

clamp
clamp(value: number)
Parameters :
Name Type Optional
value number No
Returns : number

projects/ui-kit-lib/src/lib/v2/datepicker/date-range-selection-strategy.ts

compareDates
compareDates(a, b)
Parameters :
Name Optional
a No
b No
Returns : number
dateValue
dateValue(value)
Parameters :
Name Optional
value No
Returns : number

projects/ui-kit-lib/src/lib/v2/cards-grid/cards-grid.utils.ts

createValueGetter
createValueGetter(prop?: string)

Create value getter function for column

Parameters :
Name Type Optional
prop string Yes
Returns : any
defaultComparator
defaultComparator(valueA: any, valueB: any)

Default comparator for sorting

Parameters :
Name Type Optional
valueA any No
valueB any No
Returns : number
formatPropAsName
formatPropAsName(prop: string)

Format property name as display name e.g., 'firstName' -> 'First Name', 'user_name' -> 'User Name'

Parameters :
Name Type Optional
prop string No
Returns : string
generateColumnId
generateColumnId()

Generate unique column ID

Returns : string
getValueByPath
getValueByPath(obj: T, path: string)

Get value from object by property path (supports nested paths like 'user.name')

Parameters :
Name Type Optional
obj T No
path string No
Returns : any
groupRowsByProperty
groupRowsByProperty(rows, groupBy)

Group rows by a property

Parameters :
Name Optional
rows No
groupBy No
Returns : GroupedRows[]
nextSortDirection
nextSortDirection(currentDir, enableClearing: boolean)

Get next sort direction

Parameters :
Name Type Optional Default value
currentDir No
enableClearing boolean No false
sortRows
sortRows(rows, sorts, columns)

Sort rows by sort configuration

Parameters :
Name Optional
rows No
sorts No
columns No
Returns : T[]

projects/ui-kit-lib/src/lib/v2/modals/dialog-content-directives.ts

getClosestDialog
getClosestDialog(element: ElementRef, openDialogs)

Finds the closest MD dialog container element in the ancestors of element and returns its corresponding MefDevDialogRef from the openDialogs stack.

This is a fallback for cases where directives are used outside of the primary injection context but still live inside the dialog DOM subtree.

Parameters :
Name Type Optional
element ElementRef No
openDialogs No

projects/ui-kit-lib/src/lib/v2/autocomplete/autocomplete.trigger.ts

getMDAutocompleteMissingPanelError
getMDAutocompleteMissingPanelError()
Returns : Error

projects/ui-kit-lib/src/lib/v2/select/select-errors.ts

getMDSelectDynamicMultipleError
getMDSelectDynamicMultipleError()

Returns an exception to be thrown when attempting to change a select's multiple option after initialization.

Returns : Error
getMDSelectNonArrayValueError
getMDSelectNonArrayValueError()

Returns an exception to be thrown when attempting to assign a non-array value to a select in multiple mode. Note that undefined and null are still valid values to allow for resetting the value.

Returns : Error
getMDSelectNonFunctionValueError
getMDSelectNonFunctionValueError()

Returns an exception to be thrown when assigning a non-function value to the comparator used to determine if a value corresponds to an option. Note that whether the function actually takes two values and returns a boolean is not checked.

Returns : Error

projects/ui-kit-lib/src/lib/v2/tabs/tab-overflow.ts

getOverflowIndices
getOverflowIndices(widths, available: number, menuWidth: number, preferred: number)

Pack whole labels in order, reserving space for the menu and the selected/focused tab.

Parameters :
Name Type Optional
widths No
available number No
menuWidth number No
preferred number No
Returns : number[]

projects/ui-kit-lib/src/lib/v2/tabs/ink-bar.ts

INK_BAR_POSITIONER_FACTORY
INK_BAR_POSITIONER_FACTORY()

Factory returning a default ink bar positioner based on offsetLeft/offsetWidth. Useful as the default strategy; can be overridden via DI.

Returns : _InkBarPositioner

projects/ui-kit-lib/src/lib/v2/dropzone/dropzone.ts

matchesFileAccept
matchesFileAccept(file: Pick, accept: string)
Parameters :
Name Type Optional
file Pick No
accept string No
Returns : boolean

projects/ui-kit-lib/src/lib/v2/pagination/pagination-pages.ts

paginationPages
paginationPages(page: number, count: number)

Bounded page window, including both ends; never iterates over the total page count.

Parameters :
Name Type Optional
page number No
count number No
Returns : unknown[]
positiveInteger
positiveInteger(value: number, fallback: number)
Parameters :
Name Type Optional
value number No
fallback number No
Returns : number

projects/ui-kit-lib/src/lib/v2/modals/dialog-container.ts

parseCssTime
parseCssTime(time)

Parses a CSS time value (e.g., '150ms', '0.15s', '0') into milliseconds. Returns null when the input is undefined or cannot be parsed.

Parameters :
Name Optional
time No
Returns : number | null

projects/ui-kit-lib/src/lib/v2/executors/stepper-intl.ts

STEPPER_INTL_PROVIDER_FACTORY
STEPPER_INTL_PROVIDER_FACTORY(parentIntl: StepperIntl)

Factory that returns the closest parent StepperIntl if available, otherwise creates a new instance.

This allows apps/libraries to provide a single shared StepperIntl higher in the injector tree and have all steppers reuse it.

Parameters :
Name Type Optional
parentIntl StepperIntl No

projects/ui-kit-lib/src/lib/v2/menu/menu-errors.ts

throwMDMenuInvalidPositionX
throwMDMenuInvalidPositionX()
throwMDMenuInvalidPositionY
throwMDMenuInvalidPositionY()
throwMDMenuRecursiveError
throwMDMenuRecursiveError()

results matching ""

    No results matching ""