src/lib/inbox/services/keyboard.service.ts
Service to handle keyboard events. Specific key are registered and propagated to the components. Specific keys are subscribable.
Properties |
|
Methods |
| closeAllMenus | ||||||||
closeAllMenus(notClose?: string)
|
||||||||
|
Closes all mat-menus, attribute-settings and action menu.
Parameters :
Returns :
void
|
| Public createSubscriptions |
createSubscriptions()
|
|
Creates the subscriptions.
Returns :
void
|
| getNextDataItemIndex | ||||||||||||
getNextDataItemIndex(index: number, direction: number)
|
||||||||||||
|
Get the next possible selected data item. If returned -2 the next data item is not selectable.
Parameters :
Returns :
number
|
| handleSidePanel | ||||||||
handleSidePanel(tab: string)
|
||||||||
|
Opens or closes the side panel and sets the correct tab.
Parameters :
Returns :
void
|
| keyDownEvent | ||||||||
keyDownEvent(event: KeyboardEvent)
|
||||||||
|
Registers key click and propagate to components.
Parameters :
Returns :
void
|
| keyUpEvent | ||||||||
keyUpEvent(event: KeyboardEvent)
|
||||||||
|
Registers key click and propagate to components.
Parameters :
Returns :
void
|
| Public Readonly arrowLeftKeyPressed |
Type : BehaviorSubject<boolean>
|
Default value : new BehaviorSubject<boolean>(false)
|
|
Determines whether arrowLeft key is pressed. |
| Public Readonly arrowRightKeyPressed |
Type : BehaviorSubject<boolean>
|
Default value : new BehaviorSubject<boolean>(false)
|
|
The boolean if the arrowRight key is pressed. |
| Public bigDetailViewScreen |
Type : BehaviorSubject<boolean>
|
Default value : new BehaviorSubject<boolean>(false)
|
|
The boolean if the big detail view is shown. |
| Optional clickedDataItemEmitter |
Type : EventEmitter<any>
|
|
The clicked data item emitter to be called when a key is pressed. Passed on from the inbox component to emit the clicked data Item. |
| Public Readonly controlKeyPressed |
Type : BehaviorSubject<boolean>
|
Default value : new BehaviorSubject<boolean>(false)
|
|
The boolean if the control key is pressed. |
| Optional dataItemsAvailable |
Type : boolean
|
|
The boolean if the data items are available. |
| Public dataItemsClass |
Type : DataItemsClass
|
Default value : new DataItemsClass()
|
|
Class to interact with data-items-list-data. |
| Optional dataItemSelectedFunction |
Type : function
|
|
The data item selected function to be called when a key is pressed. |
| Optional dataItemsInteractions |
Type : EventEmitter<IInteractedDataItems>
|
|
The data ite, interactions function to be called when a key is pressed. Passed on from the inbox component to emit the specific event. |
| dataItemsService |
Type : unknown
|
Default value : inject(DataItemsService)
|
|
The public service of the data items. |
| Public disabledButtonNoDataItemFound |
Type : unknown
|
Default value : false
|
|
Some icon buttons are disabled at the moment |
| Public Readonly enterKeyPressed |
Type : BehaviorSubject<boolean>
|
Default value : new BehaviorSubject<boolean>(false)
|
|
The boolean if the enter key is pressed. |
| Public Readonly escapeKeyPressed |
Type : BehaviorSubject<boolean>
|
Default value : new BehaviorSubject<boolean>(false)
|
|
The boolean if the escape key is pressed. |
| filterToolbarService |
Type : unknown
|
Default value : inject(FilterToolbarService)
|
|
The public service of the filter toolbar. |
| Optional iconBtnFunction |
Type : function
|
|
The icon button function to be called when a key is pressed. |
| inboxDetailViewService |
Type : unknown
|
Default value : inject(InboxDetailViewService)
|
|
The public service of the inbox detail viewe. |
| inboxState |
Type : unknown
|
Default value : inject(InboxState)
|
|
The state of the inbox. |
| inboxToolbarService |
Type : unknown
|
Default value : inject(InboxToolbarService)
|
|
The public service of the inbox toolbar. |
| Optional lockedDataItems |
Type : IDataItemId[]
|
|
The locked data items for the data item list. |
| Public Readonly metaKeyPressed |
Type : BehaviorSubject<boolean>
|
Default value : new BehaviorSubject<boolean>(false)
|
|
The boolean if the meta key is pressed. |
| refreshing |
Type : unknown
|
Default value : false
|
|
The boolean if data item list is refreshing. |
| Public searchedDataItems |
Type : any[]
|
Default value : []
|
|
Data Items which are filtered by the search |
| Public shiftKeyPressed |
Type : BehaviorSubject<boolean>
|
Default value : new BehaviorSubject<boolean>(false)
|
|
The boolean if the shift key is pressed. |
| Public subscriptions |
Type : Subscription
|
Default value : new Subscription()
|
|
The subscriptions of the service. |