| BLOCKED_URL_SCHEMES |
Type : []
|
Default value : ['javascript:', 'data:', 'vbscript:', 'file:']
|
|
Blocked URL schemes for security (XSS prevention) |
| CONTAINER_CLASS |
Type : string
|
Default value : 'notification-container'
|
|
Class name of the notification container DOM element. |
| CONTAINER_Z_INDEX |
Type : number
|
Default value : 1001
|
|
Z-index of the notification container. |
| DEFAULT_DURATION |
Type : number
|
Default value : 5
|
|
Default duration in seconds before auto-dismiss is triggered. |
| DEFAULT_ICONS |
Type : Record<TNotificationLevel, string>
|
Default value : {
[NotificationLevel.Info]: 'info',
[NotificationLevel.Success]: 'task-alt',
[NotificationLevel.Warning]: 'warning',
[NotificationLevel.Error]: 'highlight-off',
}
|
|
Default icon for each notification level. |
| TRANSITION_DURATION |
Type : number
|
Default value : 0.6
|
|
Cumulated transition duration (transition + transition delay) in seconds. Must sync with transition-duration in stylesheet. |
| dateInTheFutureFilter |
Type : DateFilterFn
|
Default value : (allowToday?: boolean) => {
const today = new Date();
if (allowToday) {
today.setHours(0, 0, 0, 0);
} else {
today.setHours(23, 59, 59, 59);
}
return (date: Date) => {
return allowToday ? date >= today : date > today;
};
}
|
|
Filter for days in the future (allowToday: true includes today) Only allows to select dates in the future and greys out other options in the overlay Example : |
| dateInThePastFilter |
Type : DateFilterFn
|
Default value : (allowToday?: boolean) => {
const today = new Date();
if (allowToday) {
today.setHours(23, 59, 59, 59);
} else {
today.setHours(0, 0, 0, 0);
}
return (date: Date) => {
return allowToday ? date <= today : date < today;
};
}
|
|
Filter for days in the past (allowToday: true includes today) Only allows to select dates in the passt and greys out other options in the overlay Example : |
| Handlebars |
Type : any
|
| JSZip |
Type : any
|
| monaco |
Type : any
|
| TalenraBaseTranslations |
Type : object
|
Default value : { enGB, deCH, frCH, itCH }
|
|
Available translation dictionaries for TalenraBase components. Contains translations for English (GB), German (CH), French (CH), and Italian (CH) locales. Example :ImportExample : |
| TRANSITION_DELAY |
Type : number
|
Default value : 0.15
|
|
Transition (switching step) delay in seconds. Must match the CSS transition delay. |
| TRANSITION_DURATION |
Type : number
|
Default value : 0.3
|
|
Transition (switching step) duration in seconds. Must match the CSS transition duration. |
| TRANSITION_DURATION |
Type : number
|
Default value : 0.4
|
|
Transition duration in sec |
| version |
Type : string
|
Default value : LIB_VERSION
|
|
Current version of the library (e.g. "1.0.0", "1.1.0-rc.0") Example : |