arlas-wui-toolkit / Exports / TimelineShortcutComponent

Class: TimelineShortcutComponent

This component contains shortcut labels that allow to apply predefined temporal filters on a timeline (Last year, Last month, Today, etc ...). It also displays the start and end values of the current selection on the timeline. And if enabled, a datepicker is allowed on those start and end values. This component is used internally in TimelineComponent

Implements

  • OnInit

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new TimelineShortcutComponent(arlasCollaborativesearchService, arlasStartupService, translate)

Parameters

Name Type
arlasCollaborativesearchService ArlasCollaborativesearchService
arlasStartupService ArlasStartupService
translate TranslateService

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:49

Properties

HIDE_SHOW

HIDE_SHOW: string = 'Show'

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:45


activeDatePicker

activeDatePicker: boolean = false

input : Angular

description Whether the date picker is enabled

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:38


dateFormat

dateFormat: string

input : Angular

description Optional input. Sets the format of start/end date values of the timeline.

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:33


isShortcutSelected

isShortcutSelected: boolean = false

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:46


showRemoveIcon

showRemoveIcon: boolean = false

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:43


showShortcuts

showShortcuts: boolean = false

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:44


timeShortcuts

timeShortcuts: StringifiedTimeShortcut[]

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:41


timeShortcutsMap

timeShortcutsMap: Map<string, StringifiedTimeShortcut[]>

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:42


timeZone

timeZone: string = 'UTC'

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:47


timelineComponent

timelineComponent: any

input : Angular

description In this object, all the necessary inputs of HistogramComponent (ARLAS-web-components) must be set as well as the identifier of the contributor that fetches timeline data. The HistogramContributor should be declared before in the contributorRegistry of ArlasStartupService

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:28


timelineContributor

timelineContributor: HistogramContributor

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:40


translate

translate: TranslateService

Methods

getKeys

getKeys(map): string[]

Gets the list of keys of a Typescript map

Parameters

Name Type
map any

Returns

string[]

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:118


ngOnInit

ngOnInit(): void

Returns

void

Implementation of

OnInit.ngOnInit

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:63


removeTimelineCollaboration

removeTimelineCollaboration(): void

Removes all temporal filters of the timeline

Returns

void

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:108


setShortcut

setShortcut(shortCut): void

Applies a temporal filter on timeline according to the chosen shortcut.

Parameters

Name Type
shortCut StringifiedTimeShortcut

Returns

void

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:80


showSortcuts

showSortcuts(): void

Shows/hides the div containing the shortcuts list

Returns

void

Defined in

projects/arlas-toolkit/src/lib/components/timeline/timeline-shortcut/timeline-shortcut.component.ts:94