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

@vaadin/vaadin-grid-pro

Package Overview
Dependencies
Maintainers
16
Versions
271
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/vaadin-grid-pro - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0-alpha1

./@types/interfaces.d.ts

32

package.json

@@ -13,3 +13,3 @@ {

"name": "@vaadin/vaadin-grid-pro",
"version": "2.1.0",
"version": "2.2.0-alpha1",
"main": "vaadin-grid-pro.js",

@@ -22,3 +22,5 @@ "author": "Vaadin Ltd",

"files": [
"vaadin-*.d.ts",
"vaadin-*.js",
"@types",
"src",

@@ -35,18 +37,18 @@ "theme"

"@polymer/polymer": "^3.0.0",
"@vaadin/vaadin-themable-mixin": "^1.5.2",
"@vaadin/vaadin-element-mixin": "^2.3.0",
"@vaadin/vaadin-themable-mixin": "^1.6.1",
"@vaadin/vaadin-element-mixin": "^2.4.1",
"@vaadin/vaadin-lumo-styles": "^1.6.0",
"@vaadin/vaadin-material-styles": "^1.3.2",
"@vaadin/vaadin-license-checker": "^2.1.0",
"@vaadin/vaadin-text-field": "^2.6.0",
"@vaadin/vaadin-select": "^2.2.0",
"@vaadin/vaadin-list-box": "^1.3.0",
"@vaadin/vaadin-item": "^2.2.0",
"@vaadin/vaadin-grid": "^5.6.0",
"@vaadin/vaadin-checkbox": "^2.3.0"
"@vaadin/vaadin-text-field": "^2.7.0-alpha1",
"@vaadin/vaadin-select": "^2.3.0-alpha1",
"@vaadin/vaadin-list-box": "^1.4.0-alpha1",
"@vaadin/vaadin-item": "^2.3.0-alpha1",
"@vaadin/vaadin-grid": "^5.7.0-alpha1",
"@vaadin/vaadin-checkbox": "^2.4.0-alpha1"
},
"scripts": {
"generate-typings": "gen-typescript-declarations --outDir . --verify"
},
"devDependencies": {
"generate-typings": "gen-typescript-declarations --outDir . --verify"
},
"devDependencies": {
"@polymer/iron-component-page": "^4.0.0",

@@ -56,7 +58,7 @@ "@polymer/iron-test-helpers": "^3.0.0",

"wct-browser-legacy": "^1.0.1",
"@vaadin/vaadin-combo-box": "^5.1.0",
"@vaadin/vaadin-combo-box": "^5.3.0-alpha1",
"@vaadin/vaadin-demo-helpers": "^3.1.0",
"@vaadin/vaadin-date-picker": "^4.1.0",
"@vaadin/vaadin-dialog": "^2.2.1"
"@vaadin/vaadin-date-picker": "^4.3.0-alpha1",
"@vaadin/vaadin-dialog": "^2.5.0-alpha1"
}
}

@@ -29,3 +29,3 @@ /**

*
* @extends PolymerElement
* @extends GridColumnElement
*/

@@ -53,2 +53,3 @@ class GridProEditColumnElement extends GridColumnElement {

* - `rowData.selected` Selected state.
* @type {!GridBodyRenderer | null | undefined}
*/

@@ -60,2 +61,3 @@ editModeRenderer: Function,

* Used with the `select` editor type, to provide a list of items.
* @type {!Array<string>}
*/

@@ -75,2 +77,3 @@ editorOptions: {

* or editor template provided for the column.
* @type {!GridProEditorType}
*/

@@ -85,2 +88,3 @@ editorType: {

* Path of the property used for the value of the editor component.
* @type {string}
*/

@@ -100,4 +104,6 @@ editorValuePath: {

/** @private */
_oldTemplate: Object,
/** @private */
_oldRenderer: Function

@@ -140,2 +146,3 @@ };

/** @private */
_pathChanged(path) {

@@ -147,2 +154,3 @@ if (!path || path.length == 0) {

/** @private */
_cellsChanged() {

@@ -157,2 +165,3 @@ this._cells.forEach(cell => {

/** @private */
_removeNewRendererOrTemplate(template, oldTemplate, renderer, oldRenderer) {

@@ -166,2 +175,3 @@ if (template !== oldTemplate) {

/** @private */
_editModeTemplateOrRendererChanged(template, renderer) {

@@ -186,2 +196,4 @@ if (template === undefined && renderer === undefined && !this._oldTemplate && !this._oldRenderer) {

* Override body template preparation to take editor into account.
* @return {HTMLTemplateElement}
* @protected
*/

@@ -194,2 +206,7 @@ _prepareBodyTemplate() {

* Override template filtering to take editor into account.
* @param {boolean} header
* @param {boolean} footer
* @param {boolean} editor
* @return {HTMLTemplateElement}
* @protected
*/

@@ -208,2 +225,7 @@ _selectFirstTemplate(header = false, footer = false, editor = false) {

* Override template search to take editor into account.
* @param {boolean} header
* @param {boolean} footer
* @param {boolean=} editor
* @return {HTMLTemplateElement}
* @protected
*/

@@ -221,2 +243,3 @@ _findTemplate(header, footer, editor) {

/** @private */
_prepareEditModeTemplate() {

@@ -226,2 +249,7 @@ return this._prepareTemplatizer(this._findTemplate(false, false, true) || null, {});

/**
* @param {!HTMLElement} cell
* @return {string}
* @protected
*/
_getEditorTagName(cell) {

@@ -233,2 +261,7 @@ return this.editorType === 'custom' ?

/**
* @param {!HTMLElement} cell
* @return {HTMLElement | null}
* @protected
*/
_getEditorComponent(cell) {

@@ -240,2 +273,3 @@ return this.editorType === 'custom' ?

/** @private */
_getTagNameByType() {

@@ -258,2 +292,3 @@ let type;

/** @private */
_focusEditor(editor) {

@@ -270,2 +305,7 @@ editor.focus();

/**
* @param {!HTMLElement} editor
* @return {unknown}
* @protected
*/
_getEditorValue(editor) {

@@ -276,2 +316,3 @@ const path = this.editorType === 'checkbox' ? 'checked' : this.editorValuePath;

/** @private */
_renderEditor(cell, model) {

@@ -294,2 +335,3 @@ if (cell._template) {

/** @private */
_removeEditor(cell, model) {

@@ -307,2 +349,3 @@ if (cell.__savedTemplate) {

/** @private */
_setEditorOptions(editor) {

@@ -314,2 +357,3 @@ if (this.editorOptions && this.editorOptions.length) {

/** @private */
_setEditorValue(editor, value) {

@@ -323,2 +367,7 @@ const path = this.editorType === 'checkbox' ? 'checked' : this.editorValuePath;

/**
* @param {!HTMLElement} cell
* @param {!GridRowData} model
* @protected
*/
_startCellEdit(cell, model) {

@@ -338,2 +387,3 @@ this._renderEditor(cell, model);

/** @private */
_stampTemplateToCell(cell, template, model) {

@@ -350,2 +400,3 @@ cell._template = template;

/** @private */
_stampRendererToCell(cell, renderer, model) {

@@ -357,2 +408,7 @@ cell._content.innerHTML = '';

/**
* @param {!HTMLElement} cell
* @param {!GridRowData} model
* @protected
*/
_stopCellEdit(cell, model) {

@@ -359,0 +415,0 @@ const editor = this._getEditorComponent(cell);

@@ -42,2 +42,3 @@ /**

/** @private */
_editingDisabled: {

@@ -69,2 +70,3 @@ type: Boolean

/** @protected */
ready() {

@@ -131,2 +133,3 @@ // add listener before `vaadin-grid` interaction mode listener

/** @protected */
_checkImports() {

@@ -144,2 +147,3 @@ super._checkImports();

/** @private */
_applyEdit({path, value, index, item}) {

@@ -150,2 +154,3 @@ this.set(path, value, item);

/** @private */
_addEditColumnListener(type, callback) {

@@ -174,2 +179,3 @@ this.addEventListener(type, e => {

/** @private */
_onItemPropertyChanged(e) {

@@ -181,2 +187,3 @@ if (!e.defaultPrevented) {

/** @private */
_getRowByIndex(index) {

@@ -186,2 +193,3 @@ return Array.from(this.$.items.children).filter(el => el.index === index)[0];

/** @private */
_isEditColumn(column) {

@@ -191,2 +199,3 @@ return column.localName.toLowerCase() === 'vaadin-grid-pro-edit-column';

/** @private */
_getEditColumns() {

@@ -199,2 +208,3 @@ const columnTreeLevel = this._columnTree.length - 1;

/** @private */
_cancelStopEdit() {

@@ -209,2 +219,3 @@ // stop edit on outside click will always trigger notify resize.

/** @private */
_flushStopEdit() {

@@ -217,2 +228,3 @@ if (this._debouncerStopEdit) {

/** @private */
_enterEditFromEvent(e, type) {

@@ -247,2 +259,3 @@ const context = this.getEventContext(e);

/** @private */
_onEditorFocusOut() {

@@ -256,2 +269,3 @@ // schedule stop on editor component focusout

/** @private */
_onEditorFocusIn(e) {

@@ -261,2 +275,3 @@ this._cancelStopEdit();

/** @private */
_onGlobalFocusIn(e) {

@@ -276,2 +291,3 @@ const edited = this.__edited;

/** @private */
_startEdit(cell, column) {

@@ -301,2 +317,7 @@ if (this._editingDisabled) {

/**
* @param {boolean=} shouldCancel
* @param {boolean=} shouldRestoreFocus
* @protected
*/
_stopEdit(shouldCancel, shouldRestoreFocus) {

@@ -339,2 +360,3 @@ if (!this.__edited) {

/** @private */
_setCancelCellSwitch() {

@@ -345,2 +367,6 @@ this.__cancelCellSwitch = true;

/**
* @param {!KeyboardEvent} e
* @protected
*/
_switchEditCell(e) {

@@ -414,2 +440,7 @@ if (this.__cancelCellSwitch ||

/**
* @param {!HTMLElement} row
* @param {GridItem} item
* @protected
*/
_updateItem(row, item) {

@@ -416,0 +447,0 @@ if (this.__edited) {

@@ -24,4 +24,4 @@ /**

*
* @extends PolymerElement
* @mixes GridPro.InlineEditingMixin
* @extends GridElement
* @mixes InlineEditingMixin
* @demo demo/index.html

@@ -35,3 +35,3 @@ */

static get version() {
return '2.1.0';
return '2.2.0-alpha1';
}

@@ -38,0 +38,0 @@

import './theme/lumo/vaadin-grid-pro-edit-column.js';
export * from './src/vaadin-grid-pro-edit-column.js';
import './theme/lumo/vaadin-grid-pro.js';
export * from './src/vaadin-grid-pro.js';
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