From 2f1f64e58d13c0b347a5dcd718a704a60537022c Mon Sep 17 00:00:00 2001 From: volkanceylan Date: Fri, 3 May 2024 13:40:41 +0300 Subject: [PATCH] :up: 1.8.3 --- Serenity.SleekGrid.csproj | 2 +- dist/index.d.ts | 14 +++++++------- package.json | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Serenity.SleekGrid.csproj b/Serenity.SleekGrid.csproj index 5f3654d..2cf53d2 100644 --- a/Serenity.SleekGrid.csproj +++ b/Serenity.SleekGrid.csproj @@ -1,6 +1,6 @@ - 1.8.2 + 1.8.3 NuGet version of @serenity-is/sleekgrid NPM package diff --git a/dist/index.d.ts b/dist/index.d.ts index ce7bfab..a8735d1 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -248,21 +248,21 @@ export interface FormatterContext { /** when returning a formatter result, prefer ctx.escape() to avoid script injection attacks! */ value?: any; } -export type FormatterResult = (string | Element | DocumentFragment); -export type ColumnFormat = (ctx: FormatterContext) => FormatterResult; +export declare type FormatterResult = (string | Element | DocumentFragment); +export declare type ColumnFormat = (ctx: FormatterContext) => FormatterResult; export interface CompatFormatterResult { addClasses?: string; text?: FormatterResult; toolTip?: string; } -export type CompatFormatter = (row: number, cell: number, value: any, column: Column, item: TItem, grid?: any) => string | CompatFormatterResult; +export declare type CompatFormatter = (row: number, cell: number, value: any, column: Column, item: TItem, grid?: any) => string | CompatFormatterResult; export interface FormatterFactory { getFormat?(column: Column): ColumnFormat; getFormatter?(column: Column): CompatFormatter; } -export type AsyncPostRender = (cellNode: HTMLElement, row: number, item: TItem, column: Column, reRender: boolean) => void; -export type AsyncPostCleanup = (cellNode: HTMLElement, row?: number, column?: Column) => void; -export type CellStylesHash = { +export declare type AsyncPostRender = (cellNode: HTMLElement, row: number, item: TItem, column: Column, reRender: boolean) => void; +export declare type AsyncPostCleanup = (cellNode: HTMLElement, row?: number, column?: Column) => void; +export declare type CellStylesHash = { [row: number]: { [columnId: string]: string; }; @@ -1018,7 +1018,7 @@ export interface ArgsColumn extends ArgsGrid { export interface ArgsColumnNode extends ArgsColumn { node: HTMLElement; } -export type ArgsSortCol = { +export declare type ArgsSortCol = { sortCol: Column; sortAsc: boolean; }; diff --git a/package.json b/package.json index 2ebc261..0732d46 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@serenity-is/sleekgrid", - "version": "1.8.2", + "version": "1.8.3", "description": "A modern Data Grid / Spreadsheet component", "type": "module", "types": "dist/index.d.ts",