Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/grid

Package Overview
Dependencies
Maintainers
19
Versions
404
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/grid - npm Package Compare versions

Comparing version 22.0.0-alpha7 to 22.0.0-alpha8

20

package.json
{
"name": "@vaadin/grid",
"version": "22.0.0-alpha7",
"version": "22.0.0-alpha8",
"publishConfig": {

@@ -42,13 +42,13 @@ "access": "public"

"@polymer/polymer": "^3.0.0",
"@vaadin/checkbox": "22.0.0-alpha7",
"@vaadin/component-base": "22.0.0-alpha7",
"@vaadin/text-field": "22.0.0-alpha7",
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha7",
"@vaadin/vaadin-material-styles": "22.0.0-alpha7",
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha7",
"@vaadin/virtual-list": "22.0.0-alpha7"
"@vaadin/checkbox": "22.0.0-alpha8",
"@vaadin/component-base": "22.0.0-alpha8",
"@vaadin/text-field": "22.0.0-alpha8",
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha8",
"@vaadin/vaadin-material-styles": "22.0.0-alpha8",
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha8",
"@vaadin/virtual-list": "22.0.0-alpha8"
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/polymer-legacy-adapter": "22.0.0-alpha7",
"@vaadin/polymer-legacy-adapter": "22.0.0-alpha8",
"@vaadin/testing-helpers": "^0.3.0",

@@ -58,3 +58,3 @@ "lit": "^2.0.0",

},
"gitHead": "8e89419c6b44a1d225d5859e180d7b35e47ddb52"
"gitHead": "c24468526298ee26ad7f7280b59f6c8789e1f75f"
}

@@ -0,1 +1,7 @@

/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
declare function ActiveItemMixin<TItem, T extends new (...args: any[]) => {}>(

@@ -2,0 +8,0 @@ base: T

@@ -0,1 +1,7 @@

/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
declare function ArrayDataProviderMixin<TItem, T extends new (...args: any[]) => {}>(

@@ -2,0 +8,0 @@ base: T

@@ -1,3 +0,8 @@

import { GridDefaultItem } from './interfaces';
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { ColumnBaseMixin } from './vaadin-grid-column.js';
import { GridDefaultItem } from './vaadin-grid.js';

@@ -4,0 +9,0 @@ /**

@@ -0,1 +1,7 @@

/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
declare function ColumnReorderingMixin<T extends new (...args: any[]) => {}>(

@@ -2,0 +8,0 @@ base: T

@@ -1,5 +0,18 @@

import { Grid } from './vaadin-grid.js';
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { GridDefaultItem, GridItemModel } from './vaadin-grid.js';
import { GridBodyRenderer, GridColumnTextAlign, GridHeaderFooterRenderer, GridDefaultItem } from './interfaces';
export type GridBodyRenderer<TItem> = (
root: HTMLElement,
column: GridColumn<TItem>,
model: GridItemModel<TItem>
) => void;
export type GridColumnTextAlign = 'start' | 'center' | 'end' | null;
export type GridHeaderFooterRenderer<TItem> = (root: HTMLElement, column: GridColumn<TItem>) => void;
declare function ColumnBaseMixin<TItem, T extends new (...args: any[]) => {}>(

@@ -14,5 +27,2 @@ base: T

interface ColumnBaseMixin<TItem> {
readonly _grid: Grid<TItem> | undefined;
readonly _allCells: HTMLElement[];
/**

@@ -19,0 +29,0 @@ * When set to true, the column is user-resizable.

@@ -1,3 +0,35 @@

import { GridDataProvider } from './interfaces';
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { GridSorterDirection } from './vaadin-grid-sorter.js';
export { GridSorterDirection };
export interface GridFilterDefinition {
path: string;
value: string;
}
export interface GridSorterDefinition {
path: string;
direction: GridSorterDirection;
}
export type GridDataProviderCallback<TItem> = (items: Array<TItem>, size?: number) => void;
export type GridDataProviderParams<TItem> = {
page: number;
pageSize: number;
filters: Array<GridFilterDefinition>;
sortOrders: Array<GridSorterDefinition>;
parentItem?: TItem;
};
export type GridDataProvider<TItem> = (
params: GridDataProviderParams<TItem>,
callback: GridDataProviderCallback<TItem>
) => void;
declare class ItemCache<TItem> {

@@ -4,0 +36,0 @@ grid: HTMLElement;

@@ -1,3 +0,14 @@

import { GridDragAndDropFilter, GridDropMode } from './interfaces';
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { GridItemModel } from './vaadin-grid.js';
export type GridDragAndDropFilter<TItem> = (model: GridItemModel<TItem>) => boolean;
export type GridDropLocation = 'above' | 'on-top' | 'below' | 'empty';
export type GridDropMode = 'between' | 'on-top' | 'on-top-or-between' | 'on-grid';
declare function DragAndDropMixin<TItem, T extends new (...args: any[]) => {}>(

@@ -4,0 +15,0 @@ base: T

@@ -1,3 +0,19 @@

import { GridEventContext } from './interfaces';
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { GridColumn } from './vaadin-grid-column.js';
export interface GridEventContext<TItem> {
section?: 'body' | 'header' | 'footer' | 'details';
item?: TItem;
column?: GridColumn<TItem>;
index?: number;
selected?: boolean;
detailsOpened?: boolean;
expanded?: boolean;
level?: number;
}
declare function EventContextMixin<TItem, T extends new (...args: any[]) => {}>(

@@ -4,0 +20,0 @@ base: T

@@ -1,3 +0,8 @@

import { GridDefaultItem } from './interfaces';
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { GridColumn } from './vaadin-grid-column.js';
import { GridDefaultItem } from './vaadin-grid.js';

@@ -4,0 +9,0 @@ /**

/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
/**
* Fired when the `value` property changes.

@@ -3,0 +9,0 @@ */

@@ -1,3 +0,14 @@

import { GridRowDetailsRenderer } from './interfaces';
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { Grid, GridItemModel } from './vaadin-grid.js';
export type GridRowDetailsRenderer<TItem> = (
root: HTMLElement,
grid?: Grid<TItem>,
model?: GridItemModel<TItem>
) => void;
declare function RowDetailsMixin<TItem, T extends new (...args: any[]) => {}>(

@@ -4,0 +15,0 @@ base: T

@@ -0,1 +1,7 @@

/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
declare function ScrollMixin<T extends new (...args: any[]) => {}>(base: T): T & ScrollMixinConstructor;

@@ -2,0 +8,0 @@

@@ -1,3 +0,8 @@

import { GridDefaultItem } from './interfaces';
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { GridColumn } from './vaadin-grid-column.js';
import { GridDefaultItem } from './vaadin-grid.js';

@@ -4,0 +9,0 @@ /**

@@ -0,1 +1,7 @@

/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
declare function SelectionMixin<TItem, T extends new (...args: any[]) => {}>(

@@ -2,0 +8,0 @@ base: T

@@ -1,4 +0,9 @@

import { GridDefaultItem, GridSorterDirection } from './interfaces';
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { GridColumn } from './vaadin-grid-column.js';
import { GridDefaultItem } from './vaadin-grid.js';
import { GridSorterDirection } from './vaadin-grid-sorter.js';

@@ -5,0 +10,0 @@ /**

@@ -0,1 +1,7 @@

/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
declare function SortMixin<T extends new (...args: any[]) => {}>(base: T): T & SortMixinConstructor;

@@ -2,0 +8,0 @@

@@ -8,4 +8,5 @@ /**

import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
import { GridSorterDirection } from './interfaces';
export type GridSorterDirection = 'asc' | 'desc' | null;
/**

@@ -12,0 +13,0 @@ * Fired when the `direction` property changes.

@@ -1,3 +0,11 @@

import { GridCellClassNameGenerator } from './interfaces';
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { GridColumn } from './vaadin-grid-column.js';
import { GridItemModel } from './vaadin-grid.js';
export type GridCellClassNameGenerator<TItem> = (column: GridColumn<TItem>, model: GridItemModel<TItem>) => string;
declare function StylingMixin<TItem, T extends new (...args: any[]) => {}>(base: T): T & StylingMixinConstructor<TItem>;

@@ -4,0 +12,0 @@

@@ -1,3 +0,8 @@

import { GridDefaultItem } from './interfaces';
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { GridColumn } from './vaadin-grid-column.js';
import { GridDefaultItem } from './vaadin-grid.js';

@@ -4,0 +9,0 @@ /**

@@ -0,31 +1,62 @@

/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
import { GridDefaultItem, GridDropLocation, GridEventContext, GridItemModel } from './interfaces';
import { ActiveItemMixin } from './vaadin-grid-active-item-mixin.js';
import { ArrayDataProviderMixin } from './vaadin-grid-array-data-provider-mixin.js';
import { DataProviderMixin } from './vaadin-grid-data-provider-mixin.js';
import { EventContextMixin } from './vaadin-grid-event-context-mixin.js';
import { RowDetailsMixin } from './vaadin-grid-row-details-mixin.js';
import { GridColumn, GridBodyRenderer, GridHeaderFooterRenderer } from './vaadin-grid-column.js';
import { ColumnReorderingMixin } from './vaadin-grid-column-reordering-mixin.js';
import {
DataProviderMixin,
GridDataProvider,
GridDataProviderCallback,
GridDataProviderParams,
GridFilterDefinition,
GridSorterDefinition,
GridSorterDirection
} from './vaadin-grid-data-provider-mixin.js';
import {
DragAndDropMixin,
GridDragAndDropFilter,
GridDropLocation,
GridDropMode
} from './vaadin-grid-drag-and-drop-mixin.js';
import { EventContextMixin, GridEventContext } from './vaadin-grid-event-context-mixin.js';
import { RowDetailsMixin, GridRowDetailsRenderer } from './vaadin-grid-row-details-mixin.js';
import { ScrollMixin } from './vaadin-grid-scroll-mixin.js';
import { SelectionMixin } from './vaadin-grid-selection-mixin.js';
import { SortMixin } from './vaadin-grid-sort-mixin.js';
import { StylingMixin, GridCellClassNameGenerator } from './vaadin-grid-styling-mixin.js';
import { StylingMixin } from './vaadin-grid-styling-mixin.js';
export {
GridBodyRenderer,
GridCellClassNameGenerator,
GridDataProvider,
GridDataProviderCallback,
GridDataProviderParams,
GridDragAndDropFilter,
GridDropLocation,
GridDropMode,
GridEventContext,
GridFilterDefinition,
GridHeaderFooterRenderer,
GridRowDetailsRenderer,
GridSorterDefinition,
GridSorterDirection
};
import { DragAndDropMixin } from './vaadin-grid-drag-and-drop-mixin.js';
export type GridDefaultItem = any;
import { ColumnReorderingMixin } from './vaadin-grid-column-reordering-mixin.js';
export interface GridItemModel<TItem> {
index: number;
item: TItem;
selected?: boolean;
expanded?: boolean;
level?: number;
detailsOpened?: boolean;
}
import { GridColumn } from './vaadin-grid-column.js';
/**

@@ -345,10 +376,2 @@ * Fired when the `activeItem` property changes.

/**
* Manually invoke existing renderers for all the columns
* (header, footer and body cells) and opened row details.
*
* @deprecated Since Vaadin 21, `render()` is deprecated. Please use `requestContentUpdate()` instead.
*/
render(): void;
/**
* Updates the computed metrics and positioning of internal grid parts

@@ -355,0 +378,0 @@ * (row/details cell positioning etc). Needs to be invoked whenever the sizing of grid

@@ -969,14 +969,2 @@ /**

/**
* Manually invoke existing renderers for all the columns
* (header, footer and body cells) and opened row details.
*
* @deprecated Since Vaadin 21, `render()` is deprecated. Please use `requestContentUpdate()` instead.
*/
render() {
console.warn('WARNING: Since Vaadin 21, render() is deprecated. Please use requestContentUpdate() instead.');
this.requestContentUpdate();
}
/** @protected */

@@ -983,0 +971,0 @@ __updateVisibleRows(start, end) {

export * from './src/vaadin-grid.js';
export * from './src/vaadin-grid-column.js';
export * from './src/interfaces';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc