@vaadin/grid-pro 25.4.0-dev.55bb86e155 → 25.4.0-rc1

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.
@@ -4,7 +4,7 @@
4
4
  "modules": [
5
5
  {
6
6
  "kind": "javascript-module",
7
- "path": "vaadin-grid-pro.js",
7
+ "path": "vaadin-grid-pro-edit-column.js",
8
8
  "declarations": [],
9
9
  "exports": [
10
10
  {
@@ -12,14 +12,14 @@
12
12
  "name": "*",
13
13
  "declaration": {
14
14
  "name": "*",
15
- "module": "src/vaadin-grid-pro.js"
15
+ "module": "src/vaadin-grid-pro-edit-column.js"
16
16
  }
17
17
  }
18
18
  ]
19
19
  },
20
20
  {
21
21
  "kind": "javascript-module",
22
- "path": "vaadin-grid-pro-edit-column.js",
22
+ "path": "vaadin-grid-pro.js",
23
23
  "declarations": [],
24
24
  "exports": [
25
25
  {
@@ -27,7 +27,7 @@
27
27
  "name": "*",
28
28
  "declaration": {
29
29
  "name": "*",
30
- "module": "src/vaadin-grid-pro-edit-column.js"
30
+ "module": "src/vaadin-grid-pro.js"
31
31
  }
32
32
  }
33
33
  ]
@@ -48,8 +48,7 @@
48
48
  "type": {
49
49
  "text": "!GridBodyRenderer | null | undefined"
50
50
  },
51
- "description": "Custom function for rendering the cell content in edit mode.\nReceives three arguments:\n\n- `root` The cell content DOM element. Append your editor component to it.\n- `column` The `<vaadin-grid-pro-edit-column>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
52
- "attribute": "edit-mode-renderer"
51
+ "description": "Custom function for rendering the cell content in edit mode.\nReceives three arguments:\n\n- `root` The cell content DOM element. Append your editor component to it.\n- `column` The `<vaadin-grid-pro-edit-column>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state."
53
52
  },
54
53
  {
55
54
  "kind": "field",
@@ -58,8 +57,7 @@
58
57
  "type": {
59
58
  "text": "!Array<string>"
60
59
  },
61
- "description": "The list of options which should be passed to cell editor component.\nUsed with the `select` editor type, to provide a list of items.",
62
- "attribute": "editor-options"
60
+ "description": "The list of options which should be passed to cell editor component.\nUsed with the `select` editor type, to provide a list of items."
63
61
  },
64
62
  {
65
63
  "kind": "field",
@@ -88,8 +86,7 @@
88
86
  "type": {
89
87
  "text": "(model: GridItemModel) => boolean"
90
88
  },
91
- "description": "A function to check whether a specific cell of this column can be\nedited. This allows to disable editing of individual rows or cells,\nbased on the item.\n\nReceives a `model` object containing the item for an individual row,\nand should return a boolean indicating whether the column's cell in\nthat row is editable.\n\nThe `model` object contains:\n- `model.index` The index of the item.\n- `model.item` The item.\n- `model.expanded` Sublevel toggle state.\n- `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n- `model.selected` Selected state.",
92
- "attribute": "is-cell-editable"
89
+ "description": "A function to check whether a specific cell of this column can be\nedited. This allows to disable editing of individual rows or cells,\nbased on the item.\n\nReceives a `model` object containing the item for an individual row,\nand should return a boolean indicating whether the column's cell in\nthat row is editable.\n\nThe `model` object contains:\n- `model.index` The index of the item.\n- `model.item` The item.\n- `model.expanded` Sublevel toggle state.\n- `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n- `model.selected` Selected state.\n- `model.detailsOpened` Details opened state."
93
90
  },
94
91
  {
95
92
  "kind": "field",
@@ -103,14 +100,6 @@
103
100
  }
104
101
  ],
105
102
  "attributes": [
106
- {
107
- "name": "edit-mode-renderer",
108
- "type": {
109
- "text": "!GridBodyRenderer | null | undefined"
110
- },
111
- "description": "Custom function for rendering the cell content in edit mode.\nReceives three arguments:\n\n- `root` The cell content DOM element. Append your editor component to it.\n- `column` The `<vaadin-grid-pro-edit-column>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
112
- "fieldName": "editModeRenderer"
113
- },
114
103
  {
115
104
  "name": "editor-type",
116
105
  "type": {
@@ -127,14 +116,6 @@
127
116
  "description": "Path of the property used for the value of the editor component.",
128
117
  "fieldName": "editorValuePath"
129
118
  },
130
- {
131
- "name": "is-cell-editable",
132
- "type": {
133
- "text": "(model: GridItemModel) => boolean"
134
- },
135
- "description": "A function to check whether a specific cell of this column can be\nedited. This allows to disable editing of individual rows or cells,\nbased on the item.\n\nReceives a `model` object containing the item for an individual row,\nand should return a boolean indicating whether the column's cell in\nthat row is editable.\n\nThe `model` object contains:\n- `model.index` The index of the item.\n- `model.item` The item.\n- `model.expanded` Sublevel toggle state.\n- `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n- `model.selected` Selected state.",
136
- "fieldName": "isCellEditable"
137
- },
138
119
  {
139
120
  "name": "path",
140
121
  "type": {
@@ -193,7 +174,6 @@
193
174
  "text": "!GridBodyRenderer | null | undefined"
194
175
  },
195
176
  "description": "Custom function for rendering the cell content in edit mode.\nReceives three arguments:\n\n- `root` The cell content DOM element. Append your editor component to it.\n- `column` The `<vaadin-grid-pro-edit-column>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
196
- "attribute": "edit-mode-renderer",
197
177
  "inheritedFrom": {
198
178
  "name": "GridProEditColumnMixin",
199
179
  "module": "src/vaadin-grid-pro-edit-column-mixin.js"
@@ -207,7 +187,6 @@
207
187
  "text": "!Array<string>"
208
188
  },
209
189
  "description": "The list of options which should be passed to cell editor component.\nUsed with the `select` editor type, to provide a list of items.",
210
- "attribute": "editor-options",
211
190
  "inheritedFrom": {
212
191
  "name": "GridProEditColumnMixin",
213
192
  "module": "src/vaadin-grid-pro-edit-column-mixin.js"
@@ -277,7 +256,6 @@
277
256
  "text": "GridHeaderFooterRenderer | null | undefined"
278
257
  },
279
258
  "description": "Custom function for rendering the footer content.\nReceives two arguments:\n\n- `root` The footer cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
280
- "attribute": "footer-renderer",
281
259
  "inheritedFrom": {
282
260
  "name": "ColumnBaseMixin",
283
261
  "package": "@vaadin/grid/src/vaadin-grid-column-mixin.js"
@@ -347,7 +325,6 @@
347
325
  "text": "GridHeaderFooterRenderer | null | undefined"
348
326
  },
349
327
  "description": "Custom function for rendering the header content.\nReceives two arguments:\n\n- `root` The header cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
350
- "attribute": "header-renderer",
351
328
  "inheritedFrom": {
352
329
  "name": "ColumnBaseMixin",
353
330
  "package": "@vaadin/grid/src/vaadin-grid-column-mixin.js"
@@ -374,8 +351,7 @@
374
351
  "type": {
375
352
  "text": "(model: GridItemModel) => boolean"
376
353
  },
377
- "description": "A function to check whether a specific cell of this column can be\nedited. This allows to disable editing of individual rows or cells,\nbased on the item.\n\nReceives a `model` object containing the item for an individual row,\nand should return a boolean indicating whether the column's cell in\nthat row is editable.\n\nThe `model` object contains:\n- `model.index` The index of the item.\n- `model.item` The item.\n- `model.expanded` Sublevel toggle state.\n- `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n- `model.selected` Selected state.",
378
- "attribute": "is-cell-editable",
354
+ "description": "A function to check whether a specific cell of this column can be\nedited. This allows to disable editing of individual rows or cells,\nbased on the item.\n\nReceives a `model` object containing the item for an individual row,\nand should return a boolean indicating whether the column's cell in\nthat row is editable.\n\nThe `model` object contains:\n- `model.index` The index of the item.\n- `model.item` The item.\n- `model.expanded` Sublevel toggle state.\n- `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n- `model.selected` Selected state.\n- `model.detailsOpened` Details opened state.",
379
355
  "inheritedFrom": {
380
356
  "name": "GridProEditColumnMixin",
381
357
  "module": "src/vaadin-grid-pro-edit-column-mixin.js"
@@ -391,8 +367,8 @@
391
367
  "description": "JS Path of the property in the item used for the editable content.",
392
368
  "attribute": "path",
393
369
  "inheritedFrom": {
394
- "name": "GridColumnMixin",
395
- "package": "@vaadin/grid/src/vaadin-grid-column-mixin.js"
370
+ "name": "GridProEditColumnMixin",
371
+ "module": "src/vaadin-grid-pro-edit-column-mixin.js"
396
372
  }
397
373
  },
398
374
  {
@@ -403,7 +379,6 @@
403
379
  "text": "GridBodyRenderer | null | undefined"
404
380
  },
405
381
  "description": "Custom function for rendering the cell content.\nReceives three arguments:\n\n- `root` The cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.\n - `model.hasChildren` Whether the item has children.",
406
- "attribute": "renderer",
407
382
  "inheritedFrom": {
408
383
  "name": "GridColumnMixin",
409
384
  "package": "@vaadin/grid/src/vaadin-grid-column-mixin.js"
@@ -459,7 +434,7 @@
459
434
  "type": {
460
435
  "text": "string"
461
436
  },
462
- "description": "Width of the cells for this column.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
437
+ "description": "Width of the cells for this column.\nSetting the property to `null` or `undefined` restores the default width.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
463
438
  "attribute": "width",
464
439
  "inheritedFrom": {
465
440
  "name": "GridColumnMixin",
@@ -492,18 +467,6 @@
492
467
  "package": "@vaadin/grid/src/vaadin-grid-column-mixin.js"
493
468
  }
494
469
  },
495
- {
496
- "name": "edit-mode-renderer",
497
- "type": {
498
- "text": "!GridBodyRenderer | null | undefined"
499
- },
500
- "description": "Custom function for rendering the cell content in edit mode.\nReceives three arguments:\n\n- `root` The cell content DOM element. Append your editor component to it.\n- `column` The `<vaadin-grid-pro-edit-column>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
501
- "fieldName": "editModeRenderer",
502
- "inheritedFrom": {
503
- "name": "GridProEditColumnMixin",
504
- "module": "src/vaadin-grid-pro-edit-column-mixin.js"
505
- }
506
- },
507
470
  {
508
471
  "name": "editor-type",
509
472
  "type": {
@@ -552,18 +515,6 @@
552
515
  "package": "@vaadin/grid/src/vaadin-grid-column-mixin.js"
553
516
  }
554
517
  },
555
- {
556
- "name": "footer-renderer",
557
- "type": {
558
- "text": "GridHeaderFooterRenderer | null | undefined"
559
- },
560
- "description": "Custom function for rendering the footer content.\nReceives two arguments:\n\n- `root` The footer cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
561
- "fieldName": "footerRenderer",
562
- "inheritedFrom": {
563
- "name": "ColumnBaseMixin",
564
- "package": "@vaadin/grid/src/vaadin-grid-column-mixin.js"
565
- }
566
- },
567
518
  {
568
519
  "name": "frozen",
569
520
  "type": {
@@ -612,18 +563,6 @@
612
563
  "package": "@vaadin/grid/src/vaadin-grid-column-mixin.js"
613
564
  }
614
565
  },
615
- {
616
- "name": "header-renderer",
617
- "type": {
618
- "text": "GridHeaderFooterRenderer | null | undefined"
619
- },
620
- "description": "Custom function for rendering the header content.\nReceives two arguments:\n\n- `root` The header cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
621
- "fieldName": "headerRenderer",
622
- "inheritedFrom": {
623
- "name": "ColumnBaseMixin",
624
- "package": "@vaadin/grid/src/vaadin-grid-column-mixin.js"
625
- }
626
- },
627
566
  {
628
567
  "name": "hidden",
629
568
  "type": {
@@ -636,18 +575,6 @@
636
575
  "package": "@vaadin/grid/src/vaadin-grid-column-mixin.js"
637
576
  }
638
577
  },
639
- {
640
- "name": "is-cell-editable",
641
- "type": {
642
- "text": "(model: GridItemModel) => boolean"
643
- },
644
- "description": "A function to check whether a specific cell of this column can be\nedited. This allows to disable editing of individual rows or cells,\nbased on the item.\n\nReceives a `model` object containing the item for an individual row,\nand should return a boolean indicating whether the column's cell in\nthat row is editable.\n\nThe `model` object contains:\n- `model.index` The index of the item.\n- `model.item` The item.\n- `model.expanded` Sublevel toggle state.\n- `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n- `model.selected` Selected state.",
645
- "fieldName": "isCellEditable",
646
- "inheritedFrom": {
647
- "name": "GridProEditColumnMixin",
648
- "module": "src/vaadin-grid-pro-edit-column-mixin.js"
649
- }
650
- },
651
578
  {
652
579
  "name": "path",
653
580
  "type": {
@@ -656,20 +583,8 @@
656
583
  "description": "JS Path of the property in the item used for the editable content.",
657
584
  "fieldName": "path",
658
585
  "inheritedFrom": {
659
- "name": "GridColumnMixin",
660
- "package": "@vaadin/grid/src/vaadin-grid-column-mixin.js"
661
- }
662
- },
663
- {
664
- "name": "renderer",
665
- "type": {
666
- "text": "GridBodyRenderer | null | undefined"
667
- },
668
- "description": "Custom function for rendering the cell content.\nReceives three arguments:\n\n- `root` The cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.\n - `model.hasChildren` Whether the item has children.",
669
- "fieldName": "renderer",
670
- "inheritedFrom": {
671
- "name": "GridColumnMixin",
672
- "package": "@vaadin/grid/src/vaadin-grid-column-mixin.js"
586
+ "name": "GridProEditColumnMixin",
587
+ "module": "src/vaadin-grid-pro-edit-column-mixin.js"
673
588
  }
674
589
  },
675
590
  {
@@ -714,7 +629,7 @@
714
629
  "type": {
715
630
  "text": "string"
716
631
  },
717
- "description": "Width of the cells for this column.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
632
+ "description": "Width of the cells for this column.\nSetting the property to `null` or `undefined` restores the default width.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
718
633
  "fieldName": "width",
719
634
  "inheritedFrom": {
720
635
  "name": "GridColumnMixin",
@@ -751,23 +666,14 @@
751
666
  "privacy": "public",
752
667
  "type": {
753
668
  "text": "array"
754
- },
755
- "attribute": "options"
669
+ }
756
670
  },
757
671
  {
758
672
  "kind": "method",
759
673
  "name": "ready"
760
674
  }
761
675
  ],
762
- "attributes": [
763
- {
764
- "name": "options",
765
- "type": {
766
- "text": "array"
767
- },
768
- "fieldName": "options"
769
- }
770
- ],
676
+ "attributes": [],
771
677
  "parameters": [
772
678
  {
773
679
  "name": "superClass"
@@ -915,7 +821,6 @@
915
821
  "text": "GridItem"
916
822
  },
917
823
  "description": "The item user has last interacted with. Turns to `null` after user deactivates\nthe item by re-interacting with the currently active item.",
918
- "attribute": "active-item",
919
824
  "inheritedFrom": {
920
825
  "name": "ActiveItemMixin",
921
826
  "package": "@vaadin/grid/src/vaadin-grid-active-item-mixin.js"
@@ -942,8 +847,7 @@
942
847
  "type": {
943
848
  "text": "GridCellPartNameGenerator | null | undefined"
944
849
  },
945
- "description": "A function that allows generating CSS `part` names for grid cells in Shadow DOM based\non their row and column, for styling from outside using the `::part()` selector.\n\nThe return value should be the generated part name as a string, or multiple part names\nseparated by whitespace characters.\n\nReceives two arguments:\n- `column` The `<vaadin-grid-column>` element (`undefined` for details-cell).\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
946
- "attribute": "cell-part-name-generator",
850
+ "description": "A function that allows generating CSS `part` names for grid cells in Shadow DOM based\non their row and column, for styling from outside using the `::part()` selector.\n\nThe return value should be the generated part name as a string, or multiple part names\nseparated by whitespace characters.\n\nReceives two arguments:\n- `column` The `<vaadin-grid-column>` element (`undefined` for details-cell).\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
947
851
  "inheritedFrom": {
948
852
  "name": "StylingMixin",
949
853
  "package": "@vaadin/grid/src/vaadin-grid-styling-mixin.js"
@@ -1028,7 +932,6 @@
1028
932
  "text": "GridDataProvider | null | undefined"
1029
933
  },
1030
934
  "description": "Function that provides items lazily. Receives arguments `params`, `callback`\n\n`params.page` Requested page index\n\n`params.pageSize` Current page size\n\n`params.filters` Currently applied filters\n\n`params.sortOrders` Currently applied sorting orders\n\n`params.parentItem` When tree is used, and sublevel items\nare requested, reference to parent item of the requested sublevel.\nOtherwise `undefined`.\n\n`callback(items, size)` Callback function with arguments:\n - `items` Current page of items\n - `size` Total number of items. When tree sublevel items\n are requested, total number of items in the requested sublevel.\n Optional when tree is not used, required for tree.",
1031
- "attribute": "data-provider",
1032
935
  "inheritedFrom": {
1033
936
  "name": "DataProviderMixin",
1034
937
  "package": "@vaadin/grid/src/vaadin-grid-data-provider-mixin.js"
@@ -1060,7 +963,6 @@
1060
963
  "text": "!Array<!GridItem>"
1061
964
  },
1062
965
  "description": "An array containing references to items with open row details.",
1063
- "attribute": "details-opened-items",
1064
966
  "inheritedFrom": {
1065
967
  "name": "RowDetailsMixin",
1066
968
  "package": "@vaadin/grid/src/vaadin-grid-row-details-mixin.js"
@@ -1087,8 +989,7 @@
1087
989
  "type": {
1088
990
  "text": "GridDragAndDropFilter | null | undefined"
1089
991
  },
1090
- "description": "A function that filters dragging of specific grid rows. The return value should be false\nif dragging of the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
1091
- "attribute": "drag-filter",
992
+ "description": "A function that filters dragging of specific grid rows. The return value should be false\nif dragging of the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
1092
993
  "inheritedFrom": {
1093
994
  "name": "DragAndDropMixin",
1094
995
  "package": "@vaadin/grid/src/vaadin-grid-drag-and-drop-mixin.js"
@@ -1101,8 +1002,7 @@
1101
1002
  "type": {
1102
1003
  "text": "GridDragAndDropFilter | null | undefined"
1103
1004
  },
1104
- "description": "A function that filters dropping on specific grid rows. The return value should be false\nif dropping on the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
1105
- "attribute": "drop-filter",
1005
+ "description": "A function that filters dropping on specific grid rows. The return value should be false\nif dropping on the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
1106
1006
  "inheritedFrom": {
1107
1007
  "name": "DragAndDropMixin",
1108
1008
  "package": "@vaadin/grid/src/vaadin-grid-drag-and-drop-mixin.js"
@@ -1158,7 +1058,6 @@
1158
1058
  "text": "!Array<!GridItem>"
1159
1059
  },
1160
1060
  "description": "An array that contains the expanded items.",
1161
- "attribute": "expanded-items",
1162
1061
  "inheritedFrom": {
1163
1062
  "name": "DataProviderMixin",
1164
1063
  "package": "@vaadin/grid/src/vaadin-grid-data-provider-mixin.js"
@@ -1246,12 +1145,11 @@
1246
1145
  {
1247
1146
  "kind": "field",
1248
1147
  "name": "i18n",
1249
- "description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
1148
+ "description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following JSON structure and default values:\n\n```js\n{\n // Accessible name (aria-label) for the select all checkbox in the\n // selection column header cell.\n selectAll: 'Select All',\n // Screen-reader-only label announced for the selection column header cell\n // when the Select All checkbox is hidden (data provider or conditional selection).\n selectAllUnavailable: 'Select All unavailable',\n // Accessible name (aria-label) for the select row checkbox in each\n // selection column body cell. The `{rowHeader}` placeholder is replaced with the\n // row header cell text content or row index if there is no row header column.\n selectRow: 'Select Row {rowHeader}',\n // Accessible name (aria-label) for the grid sorters. The `{column}`\n // placeholder is replaced with the sorter text content.\n sorter: 'Sort by {column}',\n}\n```",
1250
1149
  "type": {
1251
1150
  "text": "GridI18n | undefined"
1252
1151
  },
1253
1152
  "privacy": "public",
1254
- "attribute": "i18n",
1255
1153
  "inheritedFrom": {
1256
1154
  "name": "Grid",
1257
1155
  "package": "@vaadin/grid/src/vaadin-grid.js"
@@ -1265,7 +1163,6 @@
1265
1163
  "text": "(item: !GridItem) => boolean"
1266
1164
  },
1267
1165
  "description": "A function to check whether a specific item in the grid may be\nselected or deselected by the user. Used by the selection column to\nconditionally enable to disable checkboxes for individual items. This\nfunction does not prevent programmatic selection/deselection of\nitems. Changing the function does not modify the currently selected\nitems.\n\nConfiguring this function hides the select all checkbox of the grid\nselection column, which means users can not select or deselect all\nitems anymore, nor do they get feedback on whether all items are\nselected or not.\n\nReceives an item instance and should return a boolean indicating\nwhether users may change the selection state of that item.",
1268
- "attribute": "is-item-selectable",
1269
1166
  "inheritedFrom": {
1270
1167
  "name": "SelectionMixin",
1271
1168
  "package": "@vaadin/grid/src/vaadin-grid-selection-mixin.js"
@@ -1307,7 +1204,6 @@
1307
1204
  "text": "Array<!GridItem> | undefined"
1308
1205
  },
1309
1206
  "description": "An array containing the items which will be passed to renderer functions.",
1310
- "attribute": "items",
1311
1207
  "inheritedFrom": {
1312
1208
  "name": "ArrayDataProviderMixin",
1313
1209
  "package": "@vaadin/grid/src/vaadin-grid-array-data-provider-mixin.js"
@@ -1321,7 +1217,6 @@
1321
1217
  "text": "boolean"
1322
1218
  },
1323
1219
  "description": "`true` while data is being requested from the data provider.",
1324
- "attribute": "loading",
1325
1220
  "readonly": true,
1326
1221
  "inheritedFrom": {
1327
1222
  "name": "DataProviderMixin",
@@ -1426,8 +1321,7 @@
1426
1321
  "type": {
1427
1322
  "text": "GridRowDetailsRenderer | null | undefined"
1428
1323
  },
1429
- "description": "Custom function for rendering the content of the row details.\nReceives three arguments:\n\n- `root` The row details content DOM element. Append your content to it.\n- `grid` The `<vaadin-grid>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.level` The number of the item's tree sublevel, starts from 0.\n - `model.expanded` True if the item's tree sublevel is expanded.\n - `model.selected` True if the item is selected.",
1430
- "attribute": "row-details-renderer",
1324
+ "description": "Custom function for rendering the content of the row details.\nReceives three arguments:\n\n- `root` The row details content DOM element. Append your content to it.\n- `grid` The `<vaadin-grid>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.level` The number of the item's tree sublevel, starts from 0.\n - `model.expanded` True if the item's tree sublevel is expanded.\n - `model.selected` True if the item is selected.\n - `model.detailsOpened` True if the details of the item are opened.",
1431
1325
  "inheritedFrom": {
1432
1326
  "name": "RowDetailsMixin",
1433
1327
  "package": "@vaadin/grid/src/vaadin-grid-row-details-mixin.js"
@@ -1479,8 +1373,8 @@
1479
1373
  ],
1480
1374
  "description": "Scroll to a specific row index in the virtual list. Note that the row index is\nnot always the same for any particular item. For example, sorting or filtering\nitems can affect the row index related to an item.\n\nThe `indexes` parameter can be either a single number or multiple numbers.\nThe grid will first try to scroll to the item at the first index on the top level.\nIn case the item at the first index is expanded, the grid will then try scroll to the\nitem at the second index within the children of the expanded first item, and so on.\nEach given index points to a child of the item at the previous index.\n\nUsing `Infinity` as an index will point to the last item on the level.",
1481
1375
  "inheritedFrom": {
1482
- "name": "DataProviderMixin",
1483
- "package": "@vaadin/grid/src/vaadin-grid-data-provider-mixin.js"
1376
+ "name": "ScrollMixin",
1377
+ "package": "@vaadin/grid/src/vaadin-grid-scroll-mixin.js"
1484
1378
  }
1485
1379
  },
1486
1380
  {
@@ -1491,7 +1385,6 @@
1491
1385
  "text": "!Array<!GridItem>"
1492
1386
  },
1493
1387
  "description": "An array that contains the selected items.",
1494
- "attribute": "selected-items",
1495
1388
  "inheritedFrom": {
1496
1389
  "name": "SelectionMixin",
1497
1390
  "package": "@vaadin/grid/src/vaadin-grid-selection-mixin.js"
@@ -1568,33 +1461,21 @@
1568
1461
  "text": "CustomEvent"
1569
1462
  },
1570
1463
  "description": "Fired when the `activeItem` property changes.",
1571
- "name": "active-item-changed",
1572
- "inheritedFrom": {
1573
- "name": "Grid",
1574
- "package": "@vaadin/grid/src/vaadin-grid.js"
1575
- }
1464
+ "name": "active-item-changed"
1576
1465
  },
1577
1466
  {
1578
1467
  "type": {
1579
1468
  "text": "CustomEvent"
1580
1469
  },
1581
1470
  "description": "Fired when the cell is activated with click or keyboard.",
1582
- "name": "cell-activate",
1583
- "inheritedFrom": {
1584
- "name": "Grid",
1585
- "package": "@vaadin/grid/src/vaadin-grid.js"
1586
- }
1471
+ "name": "cell-activate"
1587
1472
  },
1588
1473
  {
1589
- "name": "cell-edit-started",
1590
1474
  "type": {
1591
1475
  "text": "CustomEvent"
1592
1476
  },
1593
1477
  "description": "Fired when the user starts editing a grid cell.",
1594
- "inheritedFrom": {
1595
- "name": "InlineEditingMixin",
1596
- "module": "src/vaadin-grid-pro-inline-editing-mixin.js"
1597
- }
1478
+ "name": "cell-edit-started"
1598
1479
  },
1599
1480
  {
1600
1481
  "type": {
@@ -1612,22 +1493,14 @@
1612
1493
  "text": "CustomEvent"
1613
1494
  },
1614
1495
  "description": "Fired when the columns in the grid are reordered.",
1615
- "name": "column-reorder",
1616
- "inheritedFrom": {
1617
- "name": "Grid",
1618
- "package": "@vaadin/grid/src/vaadin-grid.js"
1619
- }
1496
+ "name": "column-reorder"
1620
1497
  },
1621
1498
  {
1622
1499
  "type": {
1623
1500
  "text": "CustomEvent"
1624
1501
  },
1625
1502
  "description": "Fired when the grid column resize is finished.",
1626
- "name": "column-resize",
1627
- "inheritedFrom": {
1628
- "name": "Grid",
1629
- "package": "@vaadin/grid/src/vaadin-grid.js"
1630
- }
1503
+ "name": "column-resize"
1631
1504
  },
1632
1505
  {
1633
1506
  "type": {
@@ -1645,55 +1518,35 @@
1645
1518
  "text": "CustomEvent"
1646
1519
  },
1647
1520
  "description": "Fired when the `expandedItems` property changes.",
1648
- "name": "expanded-items-changed",
1649
- "inheritedFrom": {
1650
- "name": "Grid",
1651
- "package": "@vaadin/grid/src/vaadin-grid.js"
1652
- }
1521
+ "name": "expanded-items-changed"
1653
1522
  },
1654
1523
  {
1655
1524
  "type": {
1656
1525
  "text": "CustomEvent"
1657
1526
  },
1658
1527
  "description": "Fired when the dragging of the rows ends.",
1659
- "name": "grid-dragend",
1660
- "inheritedFrom": {
1661
- "name": "Grid",
1662
- "package": "@vaadin/grid/src/vaadin-grid.js"
1663
- }
1528
+ "name": "grid-dragend"
1664
1529
  },
1665
1530
  {
1666
1531
  "type": {
1667
1532
  "text": "CustomEvent"
1668
1533
  },
1669
1534
  "description": "Fired when starting to drag grid rows.",
1670
- "name": "grid-dragstart",
1671
- "inheritedFrom": {
1672
- "name": "Grid",
1673
- "package": "@vaadin/grid/src/vaadin-grid.js"
1674
- }
1535
+ "name": "grid-dragstart"
1675
1536
  },
1676
1537
  {
1677
1538
  "type": {
1678
1539
  "text": "CustomEvent"
1679
1540
  },
1680
1541
  "description": "Fired when a drop occurs on top of the grid.",
1681
- "name": "grid-drop",
1682
- "inheritedFrom": {
1683
- "name": "Grid",
1684
- "package": "@vaadin/grid/src/vaadin-grid.js"
1685
- }
1542
+ "name": "grid-drop"
1686
1543
  },
1687
1544
  {
1688
- "name": "item-property-changed",
1689
1545
  "type": {
1690
1546
  "text": "CustomEvent"
1691
1547
  },
1692
1548
  "description": "Fired before exiting cell edit mode if the value has been changed. If the default is prevented, the value change is not applied.",
1693
- "inheritedFrom": {
1694
- "name": "InlineEditingMixin",
1695
- "module": "src/vaadin-grid-pro-inline-editing-mixin.js"
1696
- }
1549
+ "name": "item-property-changed"
1697
1550
  },
1698
1551
  {
1699
1552
  "type": {
@@ -1711,22 +1564,14 @@
1711
1564
  "text": "CustomEvent"
1712
1565
  },
1713
1566
  "description": "Fired when the `loading` property changes.",
1714
- "name": "loading-changed",
1715
- "inheritedFrom": {
1716
- "name": "Grid",
1717
- "package": "@vaadin/grid/src/vaadin-grid.js"
1718
- }
1567
+ "name": "loading-changed"
1719
1568
  },
1720
1569
  {
1721
1570
  "type": {
1722
1571
  "text": "CustomEvent"
1723
1572
  },
1724
1573
  "description": "Fired when the `selectedItems` property changes.",
1725
- "name": "selected-items-changed",
1726
- "inheritedFrom": {
1727
- "name": "Grid",
1728
- "package": "@vaadin/grid/src/vaadin-grid.js"
1729
- }
1574
+ "name": "selected-items-changed"
1730
1575
  },
1731
1576
  {
1732
1577
  "type": {
@@ -1769,18 +1614,6 @@
1769
1614
  "package": "@vaadin/grid/src/vaadin-grid-a11y-mixin.js"
1770
1615
  }
1771
1616
  },
1772
- {
1773
- "name": "active-item",
1774
- "type": {
1775
- "text": "GridItem"
1776
- },
1777
- "description": "The item user has last interacted with. Turns to `null` after user deactivates\nthe item by re-interacting with the currently active item.",
1778
- "fieldName": "activeItem",
1779
- "inheritedFrom": {
1780
- "name": "ActiveItemMixin",
1781
- "package": "@vaadin/grid/src/vaadin-grid-active-item-mixin.js"
1782
- }
1783
- },
1784
1617
  {
1785
1618
  "name": "all-rows-visible",
1786
1619
  "type": {
@@ -1793,18 +1626,6 @@
1793
1626
  "package": "@vaadin/grid/src/vaadin-grid-mixin.js"
1794
1627
  }
1795
1628
  },
1796
- {
1797
- "name": "cell-part-name-generator",
1798
- "type": {
1799
- "text": "GridCellPartNameGenerator | null | undefined"
1800
- },
1801
- "description": "A function that allows generating CSS `part` names for grid cells in Shadow DOM based\non their row and column, for styling from outside using the `::part()` selector.\n\nThe return value should be the generated part name as a string, or multiple part names\nseparated by whitespace characters.\n\nReceives two arguments:\n- `column` The `<vaadin-grid-column>` element (`undefined` for details-cell).\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
1802
- "fieldName": "cellPartNameGenerator",
1803
- "inheritedFrom": {
1804
- "name": "StylingMixin",
1805
- "package": "@vaadin/grid/src/vaadin-grid-styling-mixin.js"
1806
- }
1807
- },
1808
1629
  {
1809
1630
  "name": "column-rendering",
1810
1631
  "type": {
@@ -1829,18 +1650,6 @@
1829
1650
  "package": "@vaadin/grid/src/vaadin-grid-column-reordering-mixin.js"
1830
1651
  }
1831
1652
  },
1832
- {
1833
- "name": "data-provider",
1834
- "type": {
1835
- "text": "GridDataProvider | null | undefined"
1836
- },
1837
- "description": "Function that provides items lazily. Receives arguments `params`, `callback`\n\n`params.page` Requested page index\n\n`params.pageSize` Current page size\n\n`params.filters` Currently applied filters\n\n`params.sortOrders` Currently applied sorting orders\n\n`params.parentItem` When tree is used, and sublevel items\nare requested, reference to parent item of the requested sublevel.\nOtherwise `undefined`.\n\n`callback(items, size)` Callback function with arguments:\n - `items` Current page of items\n - `size` Total number of items. When tree sublevel items\n are requested, total number of items in the requested sublevel.\n Optional when tree is not used, required for tree.",
1838
- "fieldName": "dataProvider",
1839
- "inheritedFrom": {
1840
- "name": "DataProviderMixin",
1841
- "package": "@vaadin/grid/src/vaadin-grid-data-provider-mixin.js"
1842
- }
1843
- },
1844
1653
  {
1845
1654
  "name": "disabled",
1846
1655
  "type": {
@@ -1853,30 +1662,6 @@
1853
1662
  "package": "@vaadin/a11y-base/src/disabled-mixin.js"
1854
1663
  }
1855
1664
  },
1856
- {
1857
- "name": "drag-filter",
1858
- "type": {
1859
- "text": "GridDragAndDropFilter | null | undefined"
1860
- },
1861
- "description": "A function that filters dragging of specific grid rows. The return value should be false\nif dragging of the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
1862
- "fieldName": "dragFilter",
1863
- "inheritedFrom": {
1864
- "name": "DragAndDropMixin",
1865
- "package": "@vaadin/grid/src/vaadin-grid-drag-and-drop-mixin.js"
1866
- }
1867
- },
1868
- {
1869
- "name": "drop-filter",
1870
- "type": {
1871
- "text": "GridDragAndDropFilter | null | undefined"
1872
- },
1873
- "description": "A function that filters dropping on specific grid rows. The return value should be false\nif dropping on the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
1874
- "fieldName": "dropFilter",
1875
- "inheritedFrom": {
1876
- "name": "DragAndDropMixin",
1877
- "package": "@vaadin/grid/src/vaadin-grid-drag-and-drop-mixin.js"
1878
- }
1879
- },
1880
1665
  {
1881
1666
  "name": "drop-mode",
1882
1667
  "type": {
@@ -1913,30 +1698,6 @@
1913
1698
  "module": "src/vaadin-grid-pro-inline-editing-mixin.js"
1914
1699
  }
1915
1700
  },
1916
- {
1917
- "name": "i18n",
1918
- "type": {
1919
- "text": "Object | undefined"
1920
- },
1921
- "description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
1922
- "fieldName": "i18n",
1923
- "inheritedFrom": {
1924
- "name": "I18nMixin",
1925
- "package": "@vaadin/component-base/src/i18n-mixin.js"
1926
- }
1927
- },
1928
- {
1929
- "name": "is-item-selectable",
1930
- "type": {
1931
- "text": "(item: !GridItem) => boolean"
1932
- },
1933
- "description": "A function to check whether a specific item in the grid may be\nselected or deselected by the user. Used by the selection column to\nconditionally enable to disable checkboxes for individual items. This\nfunction does not prevent programmatic selection/deselection of\nitems. Changing the function does not modify the currently selected\nitems.\n\nConfiguring this function hides the select all checkbox of the grid\nselection column, which means users can not select or deselect all\nitems anymore, nor do they get feedback on whether all items are\nselected or not.\n\nReceives an item instance and should return a boolean indicating\nwhether users may change the selection state of that item.",
1934
- "fieldName": "isItemSelectable",
1935
- "inheritedFrom": {
1936
- "name": "SelectionMixin",
1937
- "package": "@vaadin/grid/src/vaadin-grid-selection-mixin.js"
1938
- }
1939
- },
1940
1701
  {
1941
1702
  "name": "item-has-children-path",
1942
1703
  "type": {
@@ -1961,18 +1722,6 @@
1961
1722
  "package": "@vaadin/grid/src/vaadin-grid-data-provider-mixin.js"
1962
1723
  }
1963
1724
  },
1964
- {
1965
- "name": "loading",
1966
- "type": {
1967
- "text": "boolean"
1968
- },
1969
- "description": "`true` while data is being requested from the data provider.",
1970
- "fieldName": "loading",
1971
- "inheritedFrom": {
1972
- "name": "DataProviderMixin",
1973
- "package": "@vaadin/grid/src/vaadin-grid-data-provider-mixin.js"
1974
- }
1975
- },
1976
1725
  {
1977
1726
  "name": "multi-sort",
1978
1727
  "type": {
@@ -2021,18 +1770,6 @@
2021
1770
  "package": "@vaadin/grid/src/vaadin-grid-data-provider-mixin.js"
2022
1771
  }
2023
1772
  },
2024
- {
2025
- "name": "row-details-renderer",
2026
- "type": {
2027
- "text": "GridRowDetailsRenderer | null | undefined"
2028
- },
2029
- "description": "Custom function for rendering the content of the row details.\nReceives three arguments:\n\n- `root` The row details content DOM element. Append your content to it.\n- `grid` The `<vaadin-grid>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.level` The number of the item's tree sublevel, starts from 0.\n - `model.expanded` True if the item's tree sublevel is expanded.\n - `model.selected` True if the item is selected.",
2030
- "fieldName": "rowDetailsRenderer",
2031
- "inheritedFrom": {
2032
- "name": "RowDetailsMixin",
2033
- "package": "@vaadin/grid/src/vaadin-grid-row-details-mixin.js"
2034
- }
2035
- },
2036
1773
  {
2037
1774
  "name": "rows-draggable",
2038
1775
  "type": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/grid-pro",
3
- "version": "25.4.0-dev.55bb86e155",
3
+ "version": "25.4.0-rc1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,22 +37,22 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@open-wc/dedupe-mixin": "^1.3.0",
40
- "@vaadin/a11y-base": "25.4.0-dev.55bb86e155",
41
- "@vaadin/checkbox": "25.4.0-dev.55bb86e155",
42
- "@vaadin/component-base": "25.4.0-dev.55bb86e155",
43
- "@vaadin/grid": "25.4.0-dev.55bb86e155",
44
- "@vaadin/lit-renderer": "25.4.0-dev.55bb86e155",
45
- "@vaadin/select": "25.4.0-dev.55bb86e155",
46
- "@vaadin/text-field": "25.4.0-dev.55bb86e155",
47
- "@vaadin/vaadin-themable-mixin": "25.4.0-dev.55bb86e155",
40
+ "@vaadin/a11y-base": "25.4.0-rc1",
41
+ "@vaadin/checkbox": "25.4.0-rc1",
42
+ "@vaadin/component-base": "25.4.0-rc1",
43
+ "@vaadin/grid": "25.4.0-rc1",
44
+ "@vaadin/lit-renderer": "25.4.0-rc1",
45
+ "@vaadin/select": "25.4.0-rc1",
46
+ "@vaadin/text-field": "25.4.0-rc1",
47
+ "@vaadin/vaadin-themable-mixin": "25.4.0-rc1",
48
48
  "lit": "^3.0.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@vaadin/aura": "25.4.0-dev.55bb86e155",
52
- "@vaadin/chai-plugins": "25.4.0-dev.55bb86e155",
53
- "@vaadin/test-runner-commands": "25.4.0-dev.55bb86e155",
51
+ "@vaadin/aura": "25.4.0-rc1",
52
+ "@vaadin/chai-plugins": "25.4.0-rc1",
53
+ "@vaadin/test-runner-commands": "25.4.0-rc1",
54
54
  "@vaadin/testing-helpers": "^2.0.0",
55
- "@vaadin/vaadin-lumo-styles": "25.4.0-dev.55bb86e155",
55
+ "@vaadin/vaadin-lumo-styles": "25.4.0-rc1",
56
56
  "sinon": "^22.0.0"
57
57
  },
58
58
  "cvdlName": "vaadin-grid-pro",
@@ -61,5 +61,5 @@
61
61
  "web-types.json",
62
62
  "web-types.lit.json"
63
63
  ],
64
- "gitHead": "5db8e58fb088121b067290b0ed90d12d7d4084f2"
64
+ "gitHead": "abe6d2338024cb71110c7df9bd5d97c0d110a135"
65
65
  }
@@ -73,6 +73,7 @@ export declare class GridProEditColumnMixinClass<TItem> {
73
73
  * - `model.expanded` Sublevel toggle state.
74
74
  * - `model.level` Level of the tree represented with a horizontal offset of the toggle button.
75
75
  * - `model.selected` Selected state.
76
+ * - `model.detailsOpened` Details opened state.
76
77
  */
77
78
  isCellEditable: (model: GridItemModel<TItem>) => boolean;
78
79
 
@@ -9,6 +9,7 @@
9
9
  */
10
10
  import { getDeepActiveElement } from '@vaadin/a11y-base/src/focus-utils.js';
11
11
  import { get, set } from '@vaadin/component-base/src/path-utils.js';
12
+ import { getClosestCell } from '@vaadin/grid/src/vaadin-grid-helpers.js';
12
13
 
13
14
  export const GridProEditColumnMixin = (superClass) =>
14
15
  class extends superClass {
@@ -92,6 +93,7 @@ export const GridProEditColumnMixin = (superClass) =>
92
93
  * - `model.expanded` Sublevel toggle state.
93
94
  * - `model.level` Level of the tree represented with a horizontal offset of the toggle button.
94
95
  * - `model.selected` Selected state.
96
+ * - `model.detailsOpened` Details opened state.
95
97
  *
96
98
  * @type {(model: GridItemModel) => boolean}
97
99
  */
@@ -118,7 +120,7 @@ export const GridProEditColumnMixin = (superClass) =>
118
120
  this._focusButtonMode = navigator.platform.includes('Mac');
119
121
 
120
122
  this.__editModeRenderer = function (root, column) {
121
- const cell = root.assignedSlot.parentNode;
123
+ const cell = getClosestCell(root);
122
124
 
123
125
  const tagName = column._getEditorTagName(cell);
124
126
  if (!root.firstElementChild || root.firstElementChild.localName.toLowerCase() !== tagName) {
@@ -253,6 +255,18 @@ export const GridProEditColumnMixin = (superClass) =>
253
255
  }
254
256
  }
255
257
 
258
+ /** @private */
259
+ __setEditorAccessibleName(editor) {
260
+ if (this.editorType === 'custom') {
261
+ return;
262
+ }
263
+
264
+ const name = this._headerCell?._content.textContent.trim();
265
+ if (name) {
266
+ editor.accessibleName = name;
267
+ }
268
+ }
269
+
256
270
  /** @private */
257
271
  _setEditorValue(editor, value) {
258
272
  const path = this.editorType === 'checkbox' ? 'checked' : this.editorValuePath;
@@ -277,6 +291,7 @@ export const GridProEditColumnMixin = (superClass) =>
277
291
  editor.addEventListener('focusin', this._grid.__boundEditorFocusIn);
278
292
  this._setEditorOptions(editor);
279
293
  this._setEditorValue(editor, get(this.path, model.item));
294
+ this.__setEditorAccessibleName(editor);
280
295
  editor._grid = this._grid;
281
296
 
282
297
  if (editor.updateComplete) {
@@ -231,7 +231,7 @@ export const InlineEditingMixin = (superClass) =>
231
231
  return;
232
232
  }
233
233
 
234
- if (!this._isCellEditable(cell)) {
234
+ if (!this._isCellEditable(cell._column, cell.__parentRow)) {
235
235
  return;
236
236
  }
237
237
 
@@ -359,7 +359,7 @@ export const InlineEditingMixin = (superClass) =>
359
359
  /** @private */
360
360
  _startEdit(cell, column) {
361
361
  // TODO: remove `_editingDisabled` after Flow counterpart is updated.
362
- if (this.disabled || this._editingDisabled || !this._isCellEditable(cell)) {
362
+ if (this.disabled || this._editingDisabled || !this._isCellEditable(cell._column, cell.__parentRow)) {
363
363
  return;
364
364
  }
365
365
 
@@ -375,7 +375,7 @@ export const InlineEditingMixin = (superClass) =>
375
375
 
376
376
  // Stopping the previous edit runs listeners that may have made this cell
377
377
  // non-editable
378
- if (!this._isCellEditable(cell)) {
378
+ if (!this._isCellEditable(cell._column, cell.__parentRow)) {
379
379
  return;
380
380
  }
381
381
 
@@ -504,7 +504,8 @@ export const InlineEditingMixin = (superClass) =>
504
504
  // Try to find the next editable cell
505
505
  let nextIndex = model.index;
506
506
  let nextColumn = column;
507
- let nextCell = cell;
507
+ let nextRow = cell.__parentRow;
508
+ let found = false;
508
509
  let directionX = 0;
509
510
  let directionY = 0;
510
511
 
@@ -519,7 +520,7 @@ export const InlineEditingMixin = (superClass) =>
519
520
  }
520
521
 
521
522
  if (directionX || directionY) {
522
- while (nextCell) {
523
+ while (nextRow) {
523
524
  if (directionX) {
524
525
  // Move horizontally
525
526
  nextColumn = editableColumns[editableColumns.indexOf(nextColumn) + directionX];
@@ -534,21 +535,28 @@ export const InlineEditingMixin = (superClass) =>
534
535
  nextIndex += directionY;
535
536
  }
536
537
  // Stop looking if the next cell is editable
537
- const nextRow = this._getRowByIndex(nextIndex);
538
- // eslint-disable-next-line no-loop-func
539
- nextCell = nextRow && Array.from(nextRow.__cells).find((cell) => cell._column === nextColumn);
540
- if (nextCell && this._isCellEditable(nextCell)) {
538
+ nextRow = this._getRowByIndex(nextIndex);
539
+ if (nextRow && this._isCellEditable(nextColumn, nextRow)) {
540
+ found = true;
541
541
  break;
542
542
  }
543
543
  }
544
544
  }
545
545
 
546
546
  // Focus current cell as fallback
547
- if (!nextCell) {
548
- nextCell = cell;
547
+ if (!found) {
548
+ nextColumn = column;
549
+ nextRow = cell.__parentRow;
549
550
  nextIndex = model.index;
550
551
  }
551
552
 
553
+ if (this._lazyColumns) {
554
+ // Make sure the cells of the target column are rendered
555
+ this.scrollToColumn(nextColumn);
556
+ }
557
+
558
+ const nextCell = nextRow.__cells.find((cell) => cell._column === nextColumn);
559
+
552
560
  if (!this.singleCellEdit && nextCell !== cell) {
553
561
  this._startEdit(nextCell, nextColumn);
554
562
  } else {
@@ -559,13 +567,14 @@ export const InlineEditingMixin = (superClass) =>
559
567
 
560
568
  /**
561
569
  * @param {!HTMLElement} row
570
+ * @param {{ skipRenderers?: boolean }} options
562
571
  * @private
563
572
  */
564
- __updateRow(row) {
573
+ __updateRow(row, options) {
565
574
  const item = this.__getRowItem(row);
566
575
  if (this.__edited) {
567
576
  const { cell, model } = this.__edited;
568
- if (!this._isCellEditable(cell)) {
577
+ if (!this._isCellEditable(cell._column, cell.__parentRow)) {
569
578
  // Cell is no longer editable, cancel edit
570
579
  this._stopEdit(true, true);
571
580
  } else if (cell.__parentRow === row && item && this.getItemId(model.item) !== this.getItemId(item)) {
@@ -573,28 +582,33 @@ export const InlineEditingMixin = (superClass) =>
573
582
  this._stopEdit();
574
583
  }
575
584
  }
576
- super.__updateRow(row, item);
585
+ super.__updateRow(row, options);
577
586
  }
578
587
 
579
588
  /**
580
- * Override method from `StylingMixin` to apply `editable-cell` part to the
589
+ * Override method from `BodyRenderingMixin` to apply `editable-cell` part to the
581
590
  * cells of edit columns.
582
591
  *
583
592
  * @override
584
593
  */
585
- _generateCellPartNames(row, model) {
586
- super._generateCellPartNames(row, model);
594
+ __renderBodyRow(row) {
595
+ super.__renderBodyRow(row);
587
596
 
588
597
  iterateRowCells(row, (cell) => {
589
- const isEditable = !row.hasAttribute('loading') && this._isCellEditable(cell);
598
+ const isEditable = !row.hasAttribute('loading') && this._isCellEditable(cell._column, row);
590
599
  const target = cell._focusButton || cell;
591
600
  updatePart(target, 'editable-cell', isEditable);
592
601
  });
593
602
  }
594
603
 
595
- /** @private */
596
- _isCellEditable(cell) {
597
- const column = cell._column;
604
+ /**
605
+ * Returns true if the cell of the given column in the given row is editable.
606
+ *
607
+ * @param {!GridColumn} column
608
+ * @param {!HTMLElement} row
609
+ * @private
610
+ */
611
+ _isCellEditable(column, row) {
598
612
  // Not editable if the column is not an edit column
599
613
  if (!this._isEditColumn(column)) {
600
614
  return false;
@@ -604,7 +618,7 @@ export const InlineEditingMixin = (superClass) =>
604
618
  return true;
605
619
  }
606
620
  // Otherwise, check isCellEditable function
607
- const model = this.__getRowModel(cell.__parentRow);
621
+ const model = this.__getRowModel(row);
608
622
  return column.isCellEditable(model);
609
623
  }
610
624
  };
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/grid-pro",
4
- "version": "25.4.0-dev.55bb86e155",
4
+ "version": "25.4.0-rc1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -116,7 +116,8 @@
116
116
  "type": [
117
117
  "boolean"
118
118
  ]
119
- }
119
+ },
120
+ "default": "false"
120
121
  },
121
122
  {
122
123
  "name": "row-header",
@@ -138,7 +139,7 @@
138
139
  },
139
140
  {
140
141
  "name": "width",
141
- "description": "Width of the cells for this column.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
142
+ "description": "Width of the cells for this column.\nSetting the property to `null` or `undefined` restores the default width.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
142
143
  "value": {
143
144
  "type": [
144
145
  "string"
@@ -282,7 +283,7 @@
282
283
  },
283
284
  {
284
285
  "name": "isCellEditable",
285
- "description": "A function to check whether a specific cell of this column can be\nedited. This allows to disable editing of individual rows or cells,\nbased on the item.\n\nReceives a `model` object containing the item for an individual row,\nand should return a boolean indicating whether the column's cell in\nthat row is editable.\n\nThe `model` object contains:\n- `model.index` The index of the item.\n- `model.item` The item.\n- `model.expanded` Sublevel toggle state.\n- `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n- `model.selected` Selected state.",
286
+ "description": "A function to check whether a specific cell of this column can be\nedited. This allows to disable editing of individual rows or cells,\nbased on the item.\n\nReceives a `model` object containing the item for an individual row,\nand should return a boolean indicating whether the column's cell in\nthat row is editable.\n\nThe `model` object contains:\n- `model.index` The index of the item.\n- `model.item` The item.\n- `model.expanded` Sublevel toggle state.\n- `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n- `model.selected` Selected state.\n- `model.detailsOpened` Details opened state.",
286
287
  "value": {
287
288
  "type": [
288
289
  "model: GridItemModel => boolean"
@@ -316,7 +317,8 @@
316
317
  "type": [
317
318
  "boolean"
318
319
  ]
319
- }
320
+ },
321
+ "default": "false"
320
322
  },
321
323
  {
322
324
  "name": "rowHeader",
@@ -338,7 +340,7 @@
338
340
  },
339
341
  {
340
342
  "name": "width",
341
- "description": "Width of the cells for this column.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
343
+ "description": "Width of the cells for this column.\nSetting the property to `null` or `undefined` restores the default width.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
342
344
  "value": {
343
345
  "type": [
344
346
  "string"
@@ -351,7 +353,7 @@
351
353
  },
352
354
  {
353
355
  "name": "vaadin-grid-pro",
354
- "description": "`<vaadin-grid-pro>` is a high quality data grid / data table Web Component with extended functionality.\nIt extends `<vaadin-grid>` and adds extra features on top of the basic ones.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-dev.55bb86e155/#/elements/vaadin-grid) documentation for details.\n\n```html\n<vaadin-grid-pro></vaadin-grid-pro>\n```\n\n### Internal components\n\nIn addition to `<vaadin-grid-pro>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-grid-pro-edit-checkbox>` - has the same API as [`<vaadin-checkbox>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-dev.55bb86e155/#/elements/vaadin-checkbox).\n- `<vaadin-grid-pro-edit-text-field>` - has the same API as [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-dev.55bb86e155/#/elements/vaadin-text-field).\n- `<vaadin-grid-pro-edit-select>` - has the same API as [`<vaadin-select>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-dev.55bb86e155/#/elements/vaadin-select).\n\n### Styling\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:------------------------------------------------------|\n| `--vaadin-grid-background` |\n| `--vaadin-grid-border-color` |\n| `--vaadin-grid-border-radius` |\n| `--vaadin-grid-border-width` |\n| `--vaadin-grid-cell-background-color` |\n| `--vaadin-grid-cell-padding` |\n| `--vaadin-grid-cell-text-overflow` |\n| `--vaadin-grid-column-border-width` |\n| `--vaadin-grid-column-resize-handle-color` |\n| `--vaadin-grid-header-font-size` |\n| `--vaadin-grid-header-font-weight` |\n| `--vaadin-grid-header-text-color` |\n| `--vaadin-grid-pro-editable-cell-background-color` |\n| `--vaadin-grid-row-background-color` |\n| `--vaadin-grid-row-border-width` |\n| `--vaadin-grid-row-highlight-background-color` |\n| `--vaadin-grid-row-hover-background-color` |\n| `--vaadin-grid-row-odd-background-color` |\n| `--vaadin-grid-row-selected-background-color` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
356
+ "description": "`<vaadin-grid-pro>` is a high quality data grid / data table Web Component with extended functionality.\nIt extends `<vaadin-grid>` and adds extra features on top of the basic ones.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-rc1/#/elements/vaadin-grid) documentation for details.\n\n```html\n<vaadin-grid-pro></vaadin-grid-pro>\n```\n\n### Internal components\n\nIn addition to `<vaadin-grid-pro>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-grid-pro-edit-checkbox>` - has the same API as [`<vaadin-checkbox>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-rc1/#/elements/vaadin-checkbox).\n- `<vaadin-grid-pro-edit-text-field>` - has the same API as [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-rc1/#/elements/vaadin-text-field).\n- `<vaadin-grid-pro-edit-select>` - has the same API as [`<vaadin-select>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-rc1/#/elements/vaadin-select).\n\n### Styling\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:------------------------------------------------------|\n| `--vaadin-grid-background` |\n| `--vaadin-grid-border-color` |\n| `--vaadin-grid-border-radius` |\n| `--vaadin-grid-border-width` |\n| `--vaadin-grid-cell-background-color` |\n| `--vaadin-grid-cell-padding` |\n| `--vaadin-grid-cell-text-overflow` |\n| `--vaadin-grid-column-border-width` |\n| `--vaadin-grid-column-resize-handle-color` |\n| `--vaadin-grid-header-font-size` |\n| `--vaadin-grid-header-font-weight` |\n| `--vaadin-grid-header-text-color` |\n| `--vaadin-grid-pro-editable-cell-background-color` |\n| `--vaadin-grid-row-background-color` |\n| `--vaadin-grid-row-border-width` |\n| `--vaadin-grid-row-highlight-background-color` |\n| `--vaadin-grid-row-hover-background-color` |\n| `--vaadin-grid-row-odd-background-color` |\n| `--vaadin-grid-row-selected-background-color` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
355
357
  "attributes": [
356
358
  {
357
359
  "name": "accessible-name",
@@ -547,7 +549,7 @@
547
549
  },
548
550
  {
549
551
  "name": "cellPartNameGenerator",
550
- "description": "A function that allows generating CSS `part` names for grid cells in Shadow DOM based\non their row and column, for styling from outside using the `::part()` selector.\n\nThe return value should be the generated part name as a string, or multiple part names\nseparated by whitespace characters.\n\nReceives two arguments:\n- `column` The `<vaadin-grid-column>` element (`undefined` for details-cell).\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
552
+ "description": "A function that allows generating CSS `part` names for grid cells in Shadow DOM based\non their row and column, for styling from outside using the `::part()` selector.\n\nThe return value should be the generated part name as a string, or multiple part names\nseparated by whitespace characters.\n\nReceives two arguments:\n- `column` The `<vaadin-grid-column>` element (`undefined` for details-cell).\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
551
553
  "value": {
552
554
  "type": [
553
555
  "GridCellPartNameGenerator",
@@ -605,7 +607,7 @@
605
607
  },
606
608
  {
607
609
  "name": "dragFilter",
608
- "description": "A function that filters dragging of specific grid rows. The return value should be false\nif dragging of the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
610
+ "description": "A function that filters dragging of specific grid rows. The return value should be false\nif dragging of the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
609
611
  "value": {
610
612
  "type": [
611
613
  "GridDragAndDropFilter",
@@ -616,7 +618,7 @@
616
618
  },
617
619
  {
618
620
  "name": "dropFilter",
619
- "description": "A function that filters dropping on specific grid rows. The return value should be false\nif dropping on the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
621
+ "description": "A function that filters dropping on specific grid rows. The return value should be false\nif dropping on the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
620
622
  "value": {
621
623
  "type": [
622
624
  "GridDragAndDropFilter",
@@ -663,7 +665,7 @@
663
665
  },
664
666
  {
665
667
  "name": "i18n",
666
- "description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
668
+ "description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following JSON structure and default values:\n\n```js\n{\n // Accessible name (aria-label) for the select all checkbox in the\n // selection column header cell.\n selectAll: 'Select All',\n // Screen-reader-only label announced for the selection column header cell\n // when the Select All checkbox is hidden (data provider or conditional selection).\n selectAllUnavailable: 'Select All unavailable',\n // Accessible name (aria-label) for the select row checkbox in each\n // selection column body cell. The `{rowHeader}` placeholder is replaced with the\n // row header cell text content or row index if there is no row header column.\n selectRow: 'Select Row {rowHeader}',\n // Accessible name (aria-label) for the grid sorters. The `{column}`\n // placeholder is replaced with the sorter text content.\n sorter: 'Sort by {column}',\n}\n```",
667
669
  "value": {
668
670
  "type": [
669
671
  "GridI18n",
@@ -746,7 +748,7 @@
746
748
  },
747
749
  {
748
750
  "name": "rowDetailsRenderer",
749
- "description": "Custom function for rendering the content of the row details.\nReceives three arguments:\n\n- `root` The row details content DOM element. Append your content to it.\n- `grid` The `<vaadin-grid>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.level` The number of the item's tree sublevel, starts from 0.\n - `model.expanded` True if the item's tree sublevel is expanded.\n - `model.selected` True if the item is selected.",
751
+ "description": "Custom function for rendering the content of the row details.\nReceives three arguments:\n\n- `root` The row details content DOM element. Append your content to it.\n- `grid` The `<vaadin-grid>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.level` The number of the item's tree sublevel, starts from 0.\n - `model.expanded` True if the item's tree sublevel is expanded.\n - `model.selected` True if the item is selected.\n - `model.detailsOpened` True if the details of the item are opened.",
750
752
  "value": {
751
753
  "type": [
752
754
  "GridRowDetailsRenderer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/grid-pro",
4
- "version": "25.4.0-dev.55bb86e155",
4
+ "version": "25.4.0-rc1",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -119,7 +119,7 @@
119
119
  },
120
120
  {
121
121
  "name": ".isCellEditable",
122
- "description": "A function to check whether a specific cell of this column can be\nedited. This allows to disable editing of individual rows or cells,\nbased on the item.\n\nReceives a `model` object containing the item for an individual row,\nand should return a boolean indicating whether the column's cell in\nthat row is editable.\n\nThe `model` object contains:\n- `model.index` The index of the item.\n- `model.item` The item.\n- `model.expanded` Sublevel toggle state.\n- `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n- `model.selected` Selected state.",
122
+ "description": "A function to check whether a specific cell of this column can be\nedited. This allows to disable editing of individual rows or cells,\nbased on the item.\n\nReceives a `model` object containing the item for an individual row,\nand should return a boolean indicating whether the column's cell in\nthat row is editable.\n\nThe `model` object contains:\n- `model.index` The index of the item.\n- `model.item` The item.\n- `model.expanded` Sublevel toggle state.\n- `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n- `model.selected` Selected state.\n- `model.detailsOpened` Details opened state.",
123
123
  "value": {
124
124
  "kind": "expression"
125
125
  }
@@ -161,7 +161,7 @@
161
161
  },
162
162
  {
163
163
  "name": ".width",
164
- "description": "Width of the cells for this column.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
164
+ "description": "Width of the cells for this column.\nSetting the property to `null` or `undefined` restores the default width.\n\nPlease note that using the `em` length unit is discouraged as\nit might lead to misalignment issues if the header, body, and footer\ncells have different font sizes. Instead, use `rem` if you need\na length unit relative to the font size.",
165
165
  "value": {
166
166
  "kind": "expression"
167
167
  }
@@ -170,7 +170,7 @@
170
170
  },
171
171
  {
172
172
  "name": "vaadin-grid-pro",
173
- "description": "`<vaadin-grid-pro>` is a high quality data grid / data table Web Component with extended functionality.\nIt extends `<vaadin-grid>` and adds extra features on top of the basic ones.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-dev.55bb86e155/#/elements/vaadin-grid) documentation for details.\n\n```html\n<vaadin-grid-pro></vaadin-grid-pro>\n```\n\n### Internal components\n\nIn addition to `<vaadin-grid-pro>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-grid-pro-edit-checkbox>` - has the same API as [`<vaadin-checkbox>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-dev.55bb86e155/#/elements/vaadin-checkbox).\n- `<vaadin-grid-pro-edit-text-field>` - has the same API as [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-dev.55bb86e155/#/elements/vaadin-text-field).\n- `<vaadin-grid-pro-edit-select>` - has the same API as [`<vaadin-select>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-dev.55bb86e155/#/elements/vaadin-select).\n\n### Styling\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:------------------------------------------------------|\n| `--vaadin-grid-background` |\n| `--vaadin-grid-border-color` |\n| `--vaadin-grid-border-radius` |\n| `--vaadin-grid-border-width` |\n| `--vaadin-grid-cell-background-color` |\n| `--vaadin-grid-cell-padding` |\n| `--vaadin-grid-cell-text-overflow` |\n| `--vaadin-grid-column-border-width` |\n| `--vaadin-grid-column-resize-handle-color` |\n| `--vaadin-grid-header-font-size` |\n| `--vaadin-grid-header-font-weight` |\n| `--vaadin-grid-header-text-color` |\n| `--vaadin-grid-pro-editable-cell-background-color` |\n| `--vaadin-grid-row-background-color` |\n| `--vaadin-grid-row-border-width` |\n| `--vaadin-grid-row-highlight-background-color` |\n| `--vaadin-grid-row-hover-background-color` |\n| `--vaadin-grid-row-odd-background-color` |\n| `--vaadin-grid-row-selected-background-color` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
173
+ "description": "`<vaadin-grid-pro>` is a high quality data grid / data table Web Component with extended functionality.\nIt extends `<vaadin-grid>` and adds extra features on top of the basic ones.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-rc1/#/elements/vaadin-grid) documentation for details.\n\n```html\n<vaadin-grid-pro></vaadin-grid-pro>\n```\n\n### Internal components\n\nIn addition to `<vaadin-grid-pro>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-grid-pro-edit-checkbox>` - has the same API as [`<vaadin-checkbox>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-rc1/#/elements/vaadin-checkbox).\n- `<vaadin-grid-pro-edit-text-field>` - has the same API as [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-rc1/#/elements/vaadin-text-field).\n- `<vaadin-grid-pro-edit-select>` - has the same API as [`<vaadin-select>`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-rc1/#/elements/vaadin-select).\n\n### Styling\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:------------------------------------------------------|\n| `--vaadin-grid-background` |\n| `--vaadin-grid-border-color` |\n| `--vaadin-grid-border-radius` |\n| `--vaadin-grid-border-width` |\n| `--vaadin-grid-cell-background-color` |\n| `--vaadin-grid-cell-padding` |\n| `--vaadin-grid-cell-text-overflow` |\n| `--vaadin-grid-column-border-width` |\n| `--vaadin-grid-column-resize-handle-color` |\n| `--vaadin-grid-header-font-size` |\n| `--vaadin-grid-header-font-weight` |\n| `--vaadin-grid-header-text-color` |\n| `--vaadin-grid-pro-editable-cell-background-color` |\n| `--vaadin-grid-row-background-color` |\n| `--vaadin-grid-row-border-width` |\n| `--vaadin-grid-row-highlight-background-color` |\n| `--vaadin-grid-row-hover-background-color` |\n| `--vaadin-grid-row-odd-background-color` |\n| `--vaadin-grid-row-selected-background-color` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
174
174
  "extension": true,
175
175
  "attributes": [
176
176
  {
@@ -196,7 +196,7 @@
196
196
  },
197
197
  {
198
198
  "name": ".cellPartNameGenerator",
199
- "description": "A function that allows generating CSS `part` names for grid cells in Shadow DOM based\non their row and column, for styling from outside using the `::part()` selector.\n\nThe return value should be the generated part name as a string, or multiple part names\nseparated by whitespace characters.\n\nReceives two arguments:\n- `column` The `<vaadin-grid-column>` element (`undefined` for details-cell).\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
199
+ "description": "A function that allows generating CSS `part` names for grid cells in Shadow DOM based\non their row and column, for styling from outside using the `::part()` selector.\n\nThe return value should be the generated part name as a string, or multiple part names\nseparated by whitespace characters.\n\nReceives two arguments:\n- `column` The `<vaadin-grid-column>` element (`undefined` for details-cell).\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
200
200
  "value": {
201
201
  "kind": "expression"
202
202
  }
@@ -238,14 +238,14 @@
238
238
  },
239
239
  {
240
240
  "name": ".dragFilter",
241
- "description": "A function that filters dragging of specific grid rows. The return value should be false\nif dragging of the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
241
+ "description": "A function that filters dragging of specific grid rows. The return value should be false\nif dragging of the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
242
242
  "value": {
243
243
  "kind": "expression"
244
244
  }
245
245
  },
246
246
  {
247
247
  "name": ".dropFilter",
248
- "description": "A function that filters dropping on specific grid rows. The return value should be false\nif dropping on the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
248
+ "description": "A function that filters dropping on specific grid rows. The return value should be false\nif dropping on the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
249
249
  "value": {
250
250
  "kind": "expression"
251
251
  }
@@ -280,7 +280,7 @@
280
280
  },
281
281
  {
282
282
  "name": ".i18n",
283
- "description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
283
+ "description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following JSON structure and default values:\n\n```js\n{\n // Accessible name (aria-label) for the select all checkbox in the\n // selection column header cell.\n selectAll: 'Select All',\n // Screen-reader-only label announced for the selection column header cell\n // when the Select All checkbox is hidden (data provider or conditional selection).\n selectAllUnavailable: 'Select All unavailable',\n // Accessible name (aria-label) for the select row checkbox in each\n // selection column body cell. The `{rowHeader}` placeholder is replaced with the\n // row header cell text content or row index if there is no row header column.\n selectRow: 'Select Row {rowHeader}',\n // Accessible name (aria-label) for the grid sorters. The `{column}`\n // placeholder is replaced with the sorter text content.\n sorter: 'Sort by {column}',\n}\n```",
284
284
  "value": {
285
285
  "kind": "expression"
286
286
  }
@@ -343,7 +343,7 @@
343
343
  },
344
344
  {
345
345
  "name": ".rowDetailsRenderer",
346
- "description": "Custom function for rendering the content of the row details.\nReceives three arguments:\n\n- `root` The row details content DOM element. Append your content to it.\n- `grid` The `<vaadin-grid>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.level` The number of the item's tree sublevel, starts from 0.\n - `model.expanded` True if the item's tree sublevel is expanded.\n - `model.selected` True if the item is selected.",
346
+ "description": "Custom function for rendering the content of the row details.\nReceives three arguments:\n\n- `root` The row details content DOM element. Append your content to it.\n- `grid` The `<vaadin-grid>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.level` The number of the item's tree sublevel, starts from 0.\n - `model.expanded` True if the item's tree sublevel is expanded.\n - `model.selected` True if the item is selected.\n - `model.detailsOpened` True if the details of the item are opened.",
347
347
  "value": {
348
348
  "kind": "expression"
349
349
  }