@vaadin/grid-pro 22.0.12 → 22.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/grid-pro",
3
- "version": "22.0.12",
3
+ "version": "22.0.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,26 +34,26 @@
34
34
  "dependencies": {
35
35
  "@open-wc/dedupe-mixin": "^1.3.0",
36
36
  "@polymer/polymer": "^3.0.0",
37
- "@vaadin/checkbox": "^22.0.12",
38
- "@vaadin/component-base": "^22.0.12",
39
- "@vaadin/grid": "^22.0.12",
40
- "@vaadin/item": "^22.0.12",
41
- "@vaadin/list-box": "^22.0.12",
42
- "@vaadin/select": "^22.0.12",
43
- "@vaadin/text-field": "^22.0.12",
37
+ "@vaadin/checkbox": "^22.0.15",
38
+ "@vaadin/component-base": "^22.0.15",
39
+ "@vaadin/grid": "^22.0.15",
40
+ "@vaadin/item": "^22.0.15",
41
+ "@vaadin/list-box": "^22.0.15",
42
+ "@vaadin/select": "^22.0.15",
43
+ "@vaadin/text-field": "^22.0.15",
44
44
  "@vaadin/vaadin-license-checker": "^2.1.0",
45
- "@vaadin/vaadin-lumo-styles": "^22.0.12",
46
- "@vaadin/vaadin-material-styles": "^22.0.12",
47
- "@vaadin/vaadin-themable-mixin": "^22.0.12"
45
+ "@vaadin/vaadin-lumo-styles": "^22.0.15",
46
+ "@vaadin/vaadin-material-styles": "^22.0.15",
47
+ "@vaadin/vaadin-themable-mixin": "^22.0.15"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@esm-bundle/chai": "^4.3.4",
51
- "@vaadin/date-picker": "^22.0.12",
52
- "@vaadin/dialog": "^22.0.12",
53
- "@vaadin/polymer-legacy-adapter": "^22.0.12",
51
+ "@vaadin/date-picker": "^22.0.15",
52
+ "@vaadin/dialog": "^22.0.15",
53
+ "@vaadin/polymer-legacy-adapter": "^22.0.15",
54
54
  "@vaadin/testing-helpers": "^0.3.2",
55
55
  "lit": "^2.0.0",
56
56
  "sinon": "^9.2.1"
57
57
  },
58
- "gitHead": "ba1b2b04365d6cc9d5c05376b6d1f1402bc314ec"
58
+ "gitHead": "bba021b56ba45da93d2bb980242956ad929ecfe2"
59
59
  }
@@ -59,7 +59,7 @@ class GridProEditColumn extends GridColumn {
59
59
  */
60
60
  editorOptions: {
61
61
  type: Array,
62
- value: () => []
62
+ value: () => [],
63
63
  },
64
64
 
65
65
  /**
@@ -75,7 +75,7 @@ class GridProEditColumn extends GridColumn {
75
75
  editorType: {
76
76
  type: String,
77
77
  notify: true, // FIXME(web-padawan): needed by Flow counterpart
78
- value: 'text'
78
+ value: 'text',
79
79
  },
80
80
 
81
81
  /**
@@ -85,7 +85,7 @@ class GridProEditColumn extends GridColumn {
85
85
  */
86
86
  editorValuePath: {
87
87
  type: String,
88
- value: 'value'
88
+ value: 'value',
89
89
  },
90
90
 
91
91
  /**
@@ -93,11 +93,11 @@ class GridProEditColumn extends GridColumn {
93
93
  */
94
94
  path: {
95
95
  type: String,
96
- observer: '_pathChanged'
96
+ observer: '_pathChanged',
97
97
  },
98
98
 
99
99
  /** @private */
100
- _oldRenderer: Function
100
+ _oldRenderer: Function,
101
101
  };
102
102
  }
103
103
 
@@ -23,16 +23,16 @@ class GridProEditSelect extends Select {
23
23
  return {
24
24
  options: {
25
25
  type: Array,
26
- value: () => []
26
+ value: () => [],
27
27
  },
28
28
 
29
29
  _grid: {
30
- type: Object
30
+ type: Object,
31
31
  },
32
32
 
33
33
  _initialized: {
34
- type: Boolean
35
- }
34
+ type: Boolean,
35
+ },
36
36
  };
37
37
  }
38
38
 
@@ -7,7 +7,7 @@
7
7
  import { Constructor } from '@open-wc/dedupe-mixin';
8
8
 
9
9
  export declare function InlineEditingMixin<T extends Constructor<HTMLElement>>(
10
- base: T
10
+ base: T,
11
11
  ): T & Constructor<InlineEditingMixinClass>;
12
12
 
13
13
  export declare class InlineEditingMixinClass {
@@ -22,7 +22,7 @@ export const InlineEditingMixin = (superClass) =>
22
22
  */
23
23
  enterNextRow: {
24
24
  type: Boolean,
25
- notify: true // FIXME(yuriy-fix): needed by Flow counterpart
25
+ notify: true, // FIXME(yuriy-fix): needed by Flow counterpart
26
26
  },
27
27
 
28
28
  /**
@@ -35,7 +35,7 @@ export const InlineEditingMixin = (superClass) =>
35
35
  */
36
36
  singleCellEdit: {
37
37
  type: Boolean,
38
- notify: true // FIXME(yuriy-fix): needed by Flow counterpart
38
+ notify: true, // FIXME(yuriy-fix): needed by Flow counterpart
39
39
  },
40
40
 
41
41
  /**
@@ -44,13 +44,13 @@ export const InlineEditingMixin = (superClass) =>
44
44
  * @attr {boolean} edit-on-click
45
45
  */
46
46
  editOnClick: {
47
- type: Boolean
47
+ type: Boolean,
48
48
  },
49
49
 
50
50
  /** @private */
51
51
  _editingDisabled: {
52
- type: Boolean
53
- }
52
+ type: Boolean,
53
+ },
54
54
  };
55
55
  }
56
56
 
@@ -279,7 +279,7 @@ export const InlineEditingMixin = (superClass) =>
279
279
  if (edited) {
280
280
  // detect focus moving to e.g. vaadin-select-overlay
281
281
  const overlay = Array.from(e.composedPath()).filter(
282
- (node) => node.nodeType === Node.ELEMENT_NODE && /^vaadin-(?!dialog).*-overlay$/i.test(node.localName)
282
+ (node) => node.nodeType === Node.ELEMENT_NODE && /^vaadin-(?!dialog).*-overlay$/i.test(node.localName),
283
283
  )[0];
284
284
 
285
285
  if (overlay) {
@@ -308,10 +308,10 @@ export const InlineEditingMixin = (superClass) =>
308
308
  detail: {
309
309
  index: model.index,
310
310
  item: model.item,
311
- path: column.path
311
+ path: column.path,
312
312
  },
313
- composed: true
314
- })
313
+ composed: true,
314
+ }),
315
315
  );
316
316
  this.addEventListener('item-property-changed', this.__boundItemPropertyChanged);
317
317
  }
@@ -345,12 +345,12 @@ export const InlineEditingMixin = (superClass) =>
345
345
  index: model.index,
346
346
  item: model.item,
347
347
  path: column.path,
348
- value: value
348
+ value: value,
349
349
  },
350
350
  bubbles: true,
351
351
  cancelable: true,
352
- composed: true
353
- })
352
+ composed: true,
353
+ }),
354
354
  );
355
355
  }
356
356
  }
@@ -12,23 +12,19 @@ export { GridProEditorType } from './vaadin-grid-pro-edit-column.js';
12
12
  * Fired when the user starts editing a grid cell.
13
13
  */
14
14
  export type GridProCellEditStartedEvent<TItem> = CustomEvent<{
15
- value: {
16
- index: number;
17
- item: TItem;
18
- path: string;
19
- };
15
+ index: number;
16
+ item: TItem;
17
+ path: string;
20
18
  }>;
21
19
 
22
20
  /**
23
21
  * Fired before exiting the cell edit mode, if the value has been changed.
24
22
  */
25
23
  export type GridProItemPropertyChangedEvent<TItem> = CustomEvent<{
26
- value: {
27
- index: number;
28
- item: TItem;
29
- path: string;
30
- value: string | boolean;
31
- };
24
+ index: number;
25
+ item: TItem;
26
+ path: string;
27
+ value: string | boolean;
32
28
  }>;
33
29
 
34
30
  export interface GridProCustomEventMap<TItem> {
@@ -78,13 +74,13 @@ declare class GridPro<TItem = GridDefaultItem> extends Grid<TItem> {
78
74
  addEventListener<K extends keyof GridProEventMap<TItem>>(
79
75
  type: K,
80
76
  listener: (this: GridPro<TItem>, ev: GridProEventMap<TItem>[K]) => void,
81
- options?: boolean | AddEventListenerOptions
77
+ options?: boolean | AddEventListenerOptions,
82
78
  ): void;
83
79
 
84
80
  removeEventListener<K extends keyof GridProEventMap<TItem>>(
85
81
  type: K,
86
82
  listener: (this: GridPro<TItem>, ev: GridProEventMap<TItem>[K]) => void,
87
- options?: boolean | EventListenerOptions
83
+ options?: boolean | EventListenerOptions,
88
84
  ): void;
89
85
  }
90
86
 
@@ -20,5 +20,5 @@ const gridProEditSelect = css`
20
20
  `;
21
21
 
22
22
  registerStyles('vaadin-grid-pro-edit-select', [gridProEditor, gridProEditSelect], {
23
- moduleId: 'lumo-grid-pro-edit-select'
23
+ moduleId: 'lumo-grid-pro-edit-select',
24
24
  });
@@ -2,5 +2,5 @@ import { registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mi
2
2
  import { gridProEditor } from './vaadin-grid-pro-editor-styles.js';
3
3
 
4
4
  registerStyles('vaadin-grid-pro-edit-text-field', gridProEditor, {
5
- moduleId: 'lumo-grid-pro-edit-text-field'
5
+ moduleId: 'lumo-grid-pro-edit-text-field',
6
6
  });
@@ -23,20 +23,18 @@ registerStyles(
23
23
 
24
24
  [part~='editable-cell']:hover,
25
25
  [part~='editable-cell']:focus {
26
- background-color: var(--lumo-contrast-5pct);
27
- background-clip: padding-box;
26
+ background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
28
27
  }
29
28
 
30
29
  /* Indicate editable cells */
31
30
 
32
31
  :host([theme~='highlight-editable-cells']) [part~='editable-cell'] {
33
- background-color: var(--lumo-contrast-5pct);
34
- background-clip: border-box;
32
+ background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
35
33
  }
36
34
 
37
35
  :host([theme~='highlight-editable-cells']) [part~='editable-cell']:hover,
38
36
  :host([theme~='highlight-editable-cells']) [part~='editable-cell']:focus {
39
- background-color: var(--lumo-contrast-10pct);
37
+ background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-10pct), var(--lumo-contrast-10pct));
40
38
  }
41
39
 
42
40
  /* Indicate read-only cells */
@@ -51,5 +49,5 @@ registerStyles(
51
49
  );
52
50
  }
53
51
  `,
54
- { moduleId: 'lumo-grid-pro' }
52
+ { moduleId: 'lumo-grid-pro' },
55
53
  );
@@ -13,5 +13,5 @@ const gridProEditSelect = css`
13
13
  `;
14
14
 
15
15
  registerStyles('vaadin-grid-pro-edit-select', [gridProEditor, gridProEditSelect], {
16
- moduleId: 'material-grid-pro-edit-select'
16
+ moduleId: 'material-grid-pro-edit-select',
17
17
  });
@@ -2,5 +2,5 @@ import { registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mi
2
2
  import { gridProEditor } from './vaadin-grid-pro-editor-styles.js';
3
3
 
4
4
  registerStyles('vaadin-grid-pro-edit-text-field', gridProEditor, {
5
- moduleId: 'material-grid-pro-edit-text-field'
5
+ moduleId: 'material-grid-pro-edit-text-field',
6
6
  });
@@ -16,9 +16,8 @@ registerStyles(
16
16
 
17
17
  [part~='row'] > [part~='editable-cell']:hover,
18
18
  [part~='row'] > [part~='editable-cell']:focus {
19
- background-color: var(--material-grid-pro-editable-cell-hover-background-color, rgba(0, 0, 0, 0.04));
20
- background-clip: padding-box;
19
+ background: var(--material-background-color) linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08));
21
20
  }
22
21
  `,
23
- { moduleId: 'material-grid-pro' }
22
+ { moduleId: 'material-grid-pro' },
24
23
  );