@slickgrid-universal/custom-tooltip-plugin
Advanced tools
Comparing version 4.2.0 to 4.3.0
@@ -1,2 +0,2 @@ | ||
import type { CancellablePromiseWrapper, Column, ContainerService, CustomTooltipOption, DOMEvent, Formatter, GridOption, RxJsFacade, SharedService, SlickDataView, SlickGrid, Subscription } from '@slickgrid-universal/common'; | ||
import type { CancellablePromiseWrapper, Column, ContainerService, CustomDataView, CustomTooltipOption, Formatter, GridOption, RxJsFacade, SharedService, SlickEventData, SlickGrid, Subscription } from '@slickgrid-universal/common'; | ||
import { SlickEventHandler } from '@slickgrid-universal/common'; | ||
@@ -47,3 +47,3 @@ type CellType = 'slick-cell' | 'slick-header-column' | 'slick-headerrow-column'; | ||
get className(): string; | ||
get dataView(): SlickDataView; | ||
get dataView(): CustomDataView; | ||
/** Getter for the Grid Options pulled through the Grid Object */ | ||
@@ -74,4 +74,4 @@ get gridOptions(): GridOption; | ||
/** depending on the selector type, execute the necessary handler code */ | ||
protected handleOnHeaderMouseEnterByType(event: DOMEvent<HTMLDivElement>, args: any, selector: CellType): void; | ||
protected handleOnMouseEnter(event: DOMEvent<HTMLDivElement>): Promise<void>; | ||
protected handleOnHeaderMouseEnterByType(event: SlickEventData, args: any, selector: CellType): void; | ||
protected handleOnMouseEnter(event: SlickEventData): Promise<void>; | ||
/** | ||
@@ -78,0 +78,0 @@ * Parse the Custom Formatter (when provided) or return directly the text when it is already a string. |
{ | ||
"name": "@slickgrid-universal/custom-tooltip-plugin", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"description": "A plugin to add Custom Tooltip when hovering a cell, it subscribes to the cell", | ||
@@ -48,7 +48,7 @@ "main": "./dist/cjs/index.js", | ||
"dependencies": { | ||
"@slickgrid-universal/common": "~4.2.0", | ||
"@slickgrid-universal/utils": "~4.2.0", | ||
"dompurify": "^3.0.6" | ||
"@slickgrid-universal/common": "~4.3.0", | ||
"@slickgrid-universal/utils": "~4.3.0", | ||
"dompurify": "^3.0.8" | ||
}, | ||
"gitHead": "d97d211a6c2d7d2f3ad65a3d5f19b27584e5ae8c" | ||
"gitHead": "42fb4d8bbf9a0199c99658c344c912ac3aaa9772" | ||
} |
@@ -5,4 +5,4 @@ import type { | ||
ContainerService, | ||
CustomDataView, | ||
CustomTooltipOption, | ||
DOMEvent, | ||
Formatter, | ||
@@ -15,3 +15,3 @@ FormatterResultWithHtml, | ||
SharedService, | ||
SlickDataView, | ||
SlickEventData, | ||
SlickGrid, | ||
@@ -101,4 +101,4 @@ Subscription, | ||
} | ||
get dataView(): SlickDataView { | ||
return this._grid.getData<SlickDataView>() || {}; | ||
get dataView(): CustomDataView { | ||
return this._grid.getData<CustomDataView>() || {}; | ||
} | ||
@@ -133,8 +133,8 @@ | ||
this._eventHandler | ||
.subscribe(grid.onMouseEnter, this.handleOnMouseEnter.bind(this) as unknown as EventListener) | ||
.subscribe(grid.onMouseEnter, this.handleOnMouseEnter.bind(this)) | ||
.subscribe(grid.onHeaderMouseEnter, (e, args) => this.handleOnHeaderMouseEnterByType(e, args, 'slick-header-column')) | ||
.subscribe(grid.onHeaderRowMouseEnter, (e, args) => this.handleOnHeaderMouseEnterByType(e, args, 'slick-headerrow-column')) | ||
.subscribe(grid.onMouseLeave, this.hideTooltip.bind(this) as unknown as EventListener) | ||
.subscribe(grid.onHeaderMouseLeave, this.hideTooltip.bind(this) as unknown as EventListener) | ||
.subscribe(grid.onHeaderRowMouseLeave, this.hideTooltip.bind(this) as unknown as EventListener); | ||
.subscribe(grid.onMouseLeave, this.hideTooltip.bind(this)) | ||
.subscribe(grid.onHeaderMouseLeave, this.hideTooltip.bind(this)) | ||
.subscribe(grid.onHeaderRowMouseLeave, this.hideTooltip.bind(this)); | ||
} | ||
@@ -176,3 +176,3 @@ | ||
*/ | ||
protected asyncProcessCallback(asyncResult: any, cell: { row: number, cell: number }, value: any, columnDef: Column, dataContext: any) { | ||
protected asyncProcessCallback(asyncResult: any, cell: { row: number, cell: number; }, value: any, columnDef: Column, dataContext: any) { | ||
this.hideTooltip(); | ||
@@ -188,3 +188,3 @@ const itemWithAsyncData = { ...dataContext, [this.addonOptions?.asyncParamsPropName ?? '__params']: asyncResult }; | ||
/** depending on the selector type, execute the necessary handler code */ | ||
protected handleOnHeaderMouseEnterByType(event: DOMEvent<HTMLDivElement>, args: any, selector: CellType) { | ||
protected handleOnHeaderMouseEnterByType(event: SlickEventData, args: any, selector: CellType) { | ||
this._cellType = selector; | ||
@@ -230,3 +230,3 @@ | ||
protected async handleOnMouseEnter(event: DOMEvent<HTMLDivElement>) { | ||
protected async handleOnMouseEnter(event: SlickEventData) { | ||
this._cellType = 'slick-cell'; | ||
@@ -233,0 +233,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
216983
+ Added@slickgrid-universal/common@4.3.1(transitive)
+ Added@slickgrid-universal/event-pub-sub@4.3.0(transitive)
+ Added@slickgrid-universal/utils@4.3.0(transitive)
- Removed@slickgrid-universal/common@4.2.0(transitive)
- Removed@slickgrid-universal/event-pub-sub@4.2.0(transitive)
- Removed@slickgrid-universal/utils@4.2.0(transitive)
Updateddompurify@^3.0.8