arlas-wui-toolkit / Exports / WidgetComponent

Class: WidgetComponent

A Widget wraps a component from ARLAS-web-components and bind it to its contributor. The component has thus input data to plot. Note: This component is binded to ARLAS-wui configuration

Implements

  • OnInit

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new WidgetComponent(arlasStartupService, cdr, arlasCollaborativesearchService, arlasOverlayService, translate, arlasExportCsvService)

Parameters

Name Type
arlasStartupService ArlasStartupService
cdr ChangeDetectorRef
arlasCollaborativesearchService ArlasCollaborativesearchService
arlasOverlayService ArlasOverlayService
translate TranslateService
arlasExportCsvService ArlasExportCsvService

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:113

Properties

arlasExportCsvService

arlasExportCsvService: ArlasExportCsvService

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:117


chartType

chartType: typeof ChartType = ChartType

Defined in

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


componentParams

componentParams: any

Input

: Angular

Description

Inputs of one of the ARLAS-web-components

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:69


componentType

componentType: any

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:58


contributor

contributor: any

Defined in

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


contributorId

contributorId: string

Input

: Angular

Description

Identifier of the contributor that serves data to the component

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:64


contributorType

contributorType: any

Defined in

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


donutOverlayRef

donutOverlayRef: ArlasOverlayRef

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:55


graphParam

graphParam: any = {}

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:53


groupLength

groupLength: number

Input

: Angular

Description

Number of widgets in the group to whom this widget belongs

Defined in

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


highlightItems

highlightItems: Set<string>

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:51


histogramComponent

histogramComponent: HistogramComponent

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:111


indeterminatedItems

indeterminatedItems: Set<string>

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:50


metricApproximate

metricApproximate: boolean = false

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:54


noDetail

noDetail: boolean

Input

: Angular

Description

Whether the widget has to display a detailed version of itself. Currently only used for histograms

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:100


outEvents

outEvents: Subject<{ data?: any ; event: string ; origin: string }>

Output

: Angular

Description

Emits an output that comes from the component (ARLAS-web-components). The emitted output has information about the origin which is the contributor id of the component; event the name of the event; and eventually data which contains the emitted data from the component.

Defined in

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


position

position: number

Input

: Angular

Description

Position of the widget in the group

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:88


showExportCsv

showExportCsv: boolean = false

Input

: Angular

Description

Whether we dispylay the export csv button

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:75


showSwimlaneDropDown

showSwimlaneDropDown: boolean

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:52


spinnerOptions

spinnerOptions: SpinnerOptions

Input

: Angular

Description

Spinner options

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:82


swimSelected

swimSelected: any

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:48


swimlanes

swimlanes: any[] = []

Defined in

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


translate

translate: TranslateService

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:117

Methods

changePowerbarsOperator

changePowerbarsOperator(op): void

Parameters

Name Type
op "Neq" | "Eq"

Returns

void

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:219


changeSwimlane

changeSwimlane(swimlaneName): void

Description

Changes swimlane from the pool of swimlanes defined in SwimlaneContributor configuration.

Parameters

Name Type Description
swimlaneName any The name of swimlane.

Returns

void

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:175


emitEvent

emitEvent(source, event, data): void

Emits the components output events.

Parameters

Name Type Description
source string Contributor identifier
event string Name of the event
data any Emitted data

Returns

void

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:197


exportCsv

exportCsv(contributor, stayAtFirstLevel, componentType, contributorType?): void

Parameters

Name Type
contributor Contributor
stayAtFirstLevel boolean
componentType string
contributorType? string

Returns

void

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:201


ngOnInit

ngOnInit(): void

Returns

void

Implementation of

OnInit.ngOnInit

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:148


showDonutTooltip

showDonutTooltip(tooltip, e): void

Parameters

Name Type
tooltip ARLASDonutTooltip
e ElementRef<any>

Returns

void

Defined in

projects/arlas-toolkit/src/lib/components/widget/widget.component.ts:120