@vaadin/grid 25.3.0-alpha7 → 25.3.0-alpha9

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.
@@ -497,7 +497,7 @@
497
497
  "type": {
498
498
  "text": "string"
499
499
  },
500
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
500
+ "description": "Aligns the columns cell content horizontally.",
501
501
  "attribute": "text-align",
502
502
  "inheritedFrom": {
503
503
  "name": "ColumnBaseMixin",
@@ -651,7 +651,7 @@
651
651
  "type": {
652
652
  "text": "string"
653
653
  },
654
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
654
+ "description": "Aligns the columns cell content horizontally.",
655
655
  "fieldName": "textAlign",
656
656
  "inheritedFrom": {
657
657
  "name": "ColumnBaseMixin",
@@ -863,7 +863,7 @@
863
863
  "type": {
864
864
  "text": "string"
865
865
  },
866
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
866
+ "description": "Aligns the columns cell content horizontally.",
867
867
  "attribute": "text-align",
868
868
  "inheritedFrom": {
869
869
  "name": "ColumnBaseMixin",
@@ -1041,7 +1041,7 @@
1041
1041
  "type": {
1042
1042
  "text": "string"
1043
1043
  },
1044
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
1044
+ "description": "Aligns the columns cell content horizontally.",
1045
1045
  "fieldName": "textAlign",
1046
1046
  "inheritedFrom": {
1047
1047
  "name": "ColumnBaseMixin",
@@ -1200,7 +1200,7 @@
1200
1200
  "type": {
1201
1201
  "text": "string"
1202
1202
  },
1203
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
1203
+ "description": "Aligns the columns cell content horizontally.",
1204
1204
  "attribute": "text-align"
1205
1205
  }
1206
1206
  ],
@@ -1291,7 +1291,7 @@
1291
1291
  "type": {
1292
1292
  "text": "string"
1293
1293
  },
1294
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
1294
+ "description": "Aligns the columns cell content horizontally.",
1295
1295
  "fieldName": "textAlign"
1296
1296
  }
1297
1297
  ],
@@ -1494,7 +1494,7 @@
1494
1494
  "type": {
1495
1495
  "text": "string"
1496
1496
  },
1497
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
1497
+ "description": "Aligns the columns cell content horizontally.",
1498
1498
  "attribute": "text-align",
1499
1499
  "inheritedFrom": {
1500
1500
  "name": "ColumnBaseMixin",
@@ -1671,7 +1671,7 @@
1671
1671
  "type": {
1672
1672
  "text": "string"
1673
1673
  },
1674
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
1674
+ "description": "Aligns the columns cell content horizontally.",
1675
1675
  "fieldName": "textAlign",
1676
1676
  "inheritedFrom": {
1677
1677
  "name": "ColumnBaseMixin",
@@ -1723,33 +1723,6 @@
1723
1723
  }
1724
1724
  ]
1725
1725
  },
1726
- {
1727
- "kind": "javascript-module",
1728
- "path": "src/vaadin-grid-column-rendering-mixin.js",
1729
- "declarations": [
1730
- {
1731
- "kind": "mixin",
1732
- "description": "A mixin providing rendering of rows based on the column tree.",
1733
- "name": "ColumnRenderingMixin",
1734
- "members": [],
1735
- "parameters": [
1736
- {
1737
- "name": "superClass"
1738
- }
1739
- ]
1740
- }
1741
- ],
1742
- "exports": [
1743
- {
1744
- "kind": "js",
1745
- "name": "ColumnRenderingMixin",
1746
- "declaration": {
1747
- "name": "ColumnRenderingMixin",
1748
- "module": "src/vaadin-grid-column-rendering-mixin.js"
1749
- }
1750
- }
1751
- ]
1752
- },
1753
1726
  {
1754
1727
  "kind": "javascript-module",
1755
1728
  "path": "src/vaadin-grid-column-reordering-mixin.js",
@@ -2054,7 +2027,7 @@
2054
2027
  "type": {
2055
2028
  "text": "string"
2056
2029
  },
2057
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
2030
+ "description": "Aligns the columns cell content horizontally.",
2058
2031
  "attribute": "text-align",
2059
2032
  "inheritedFrom": {
2060
2033
  "name": "ColumnBaseMixin",
@@ -2267,7 +2240,7 @@
2267
2240
  "type": {
2268
2241
  "text": "string"
2269
2242
  },
2270
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
2243
+ "description": "Aligns the columns cell content horizontally.",
2271
2244
  "fieldName": "textAlign",
2272
2245
  "inheritedFrom": {
2273
2246
  "name": "ColumnBaseMixin",
@@ -2981,7 +2954,7 @@
2981
2954
  "type": {
2982
2955
  "text": "string"
2983
2956
  },
2984
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
2957
+ "description": "Aligns the columns cell content horizontally.",
2985
2958
  "attribute": "text-align",
2986
2959
  "inheritedFrom": {
2987
2960
  "name": "GridColumn",
@@ -3190,7 +3163,7 @@
3190
3163
  "type": {
3191
3164
  "text": "string"
3192
3165
  },
3193
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
3166
+ "description": "Aligns the columns cell content horizontally.",
3194
3167
  "fieldName": "textAlign",
3195
3168
  "inheritedFrom": {
3196
3169
  "name": "GridColumn",
@@ -3377,30 +3350,6 @@
3377
3350
  "name": "value-changed"
3378
3351
  }
3379
3352
  ],
3380
- "mixins": [
3381
- {
3382
- "name": "GridFilterElementMixin",
3383
- "module": "src/vaadin-grid-filter-element-mixin.js"
3384
- },
3385
- {
3386
- "name": "ThemableMixin",
3387
- "package": "@vaadin/vaadin-themable-mixin"
3388
- },
3389
- {
3390
- "name": "PolylitMixin",
3391
- "package": "@vaadin/component-base/src/polylit-mixin.js"
3392
- },
3393
- {
3394
- "name": "LumoInjectionMixin",
3395
- "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
3396
- }
3397
- ],
3398
- "superclass": {
3399
- "name": "LitElement",
3400
- "package": "lit"
3401
- },
3402
- "tagName": "vaadin-grid-filter",
3403
- "customElement": true,
3404
3353
  "attributes": [
3405
3354
  {
3406
3355
  "name": "path",
@@ -3414,6 +3363,13 @@
3414
3363
  "module": "src/vaadin-grid-filter-element-mixin.js"
3415
3364
  }
3416
3365
  },
3366
+ {
3367
+ "type": {
3368
+ "text": "string"
3369
+ },
3370
+ "description": "The theme variants to apply to the component.",
3371
+ "name": "theme"
3372
+ },
3417
3373
  {
3418
3374
  "name": "value",
3419
3375
  "type": {
@@ -3426,7 +3382,31 @@
3426
3382
  "module": "src/vaadin-grid-filter-element-mixin.js"
3427
3383
  }
3428
3384
  }
3429
- ]
3385
+ ],
3386
+ "mixins": [
3387
+ {
3388
+ "name": "GridFilterElementMixin",
3389
+ "module": "src/vaadin-grid-filter-element-mixin.js"
3390
+ },
3391
+ {
3392
+ "name": "ThemableMixin",
3393
+ "package": "@vaadin/vaadin-themable-mixin"
3394
+ },
3395
+ {
3396
+ "name": "PolylitMixin",
3397
+ "package": "@vaadin/component-base/src/polylit-mixin.js"
3398
+ },
3399
+ {
3400
+ "name": "LumoInjectionMixin",
3401
+ "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
3402
+ }
3403
+ ],
3404
+ "superclass": {
3405
+ "name": "LitElement",
3406
+ "package": "lit"
3407
+ },
3408
+ "tagName": "vaadin-grid-filter",
3409
+ "customElement": true
3430
3410
  }
3431
3411
  ],
3432
3412
  "exports": [
@@ -3440,6 +3420,33 @@
3440
3420
  }
3441
3421
  ]
3442
3422
  },
3423
+ {
3424
+ "kind": "javascript-module",
3425
+ "path": "src/vaadin-grid-header-footer-rendering-mixin.js",
3426
+ "declarations": [
3427
+ {
3428
+ "kind": "mixin",
3429
+ "description": "A mixin providing rendering of header and footer rows based on the column tree.",
3430
+ "name": "HeaderFooterRenderingMixin",
3431
+ "members": [],
3432
+ "parameters": [
3433
+ {
3434
+ "name": "superClass"
3435
+ }
3436
+ ]
3437
+ }
3438
+ ],
3439
+ "exports": [
3440
+ {
3441
+ "kind": "js",
3442
+ "name": "HeaderFooterRenderingMixin",
3443
+ "declaration": {
3444
+ "name": "HeaderFooterRenderingMixin",
3445
+ "module": "src/vaadin-grid-header-footer-rendering-mixin.js"
3446
+ }
3447
+ }
3448
+ ]
3449
+ },
3443
3450
  {
3444
3451
  "kind": "javascript-module",
3445
3452
  "path": "src/vaadin-grid-helpers.js",
@@ -4767,8 +4774,8 @@
4767
4774
  "module": "src/vaadin-grid-dynamic-columns-mixin.js"
4768
4775
  },
4769
4776
  {
4770
- "name": "ColumnRenderingMixin",
4771
- "module": "src/vaadin-grid-column-rendering-mixin.js"
4777
+ "name": "HeaderFooterRenderingMixin",
4778
+ "module": "src/vaadin-grid-header-footer-rendering-mixin.js"
4772
4779
  },
4773
4780
  {
4774
4781
  "name": "ActiveItemMixin",
@@ -5640,7 +5647,7 @@
5640
5647
  "type": {
5641
5648
  "text": "string"
5642
5649
  },
5643
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
5650
+ "description": "Aligns the columns cell content horizontally.",
5644
5651
  "attribute": "text-align",
5645
5652
  "inheritedFrom": {
5646
5653
  "name": "GridColumn",
@@ -5894,7 +5901,7 @@
5894
5901
  "type": {
5895
5902
  "text": "string"
5896
5903
  },
5897
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
5904
+ "description": "Aligns the columns cell content horizontally.",
5898
5905
  "fieldName": "textAlign",
5899
5906
  "inheritedFrom": {
5900
5907
  "name": "GridColumn",
@@ -6306,7 +6313,7 @@
6306
6313
  "type": {
6307
6314
  "text": "string"
6308
6315
  },
6309
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
6316
+ "description": "Aligns the columns cell content horizontally.",
6310
6317
  "attribute": "text-align",
6311
6318
  "inheritedFrom": {
6312
6319
  "name": "GridColumn",
@@ -6536,7 +6543,7 @@
6536
6543
  "type": {
6537
6544
  "text": "string"
6538
6545
  },
6539
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
6546
+ "description": "Aligns the columns cell content horizontally.",
6540
6547
  "fieldName": "textAlign",
6541
6548
  "inheritedFrom": {
6542
6549
  "name": "GridColumn",
@@ -6799,6 +6806,39 @@
6799
6806
  }
6800
6807
  }
6801
6808
  ],
6809
+ "attributes": [
6810
+ {
6811
+ "name": "direction",
6812
+ "type": {
6813
+ "text": "string"
6814
+ },
6815
+ "description": "How to sort the data.\nPossible values are `asc` to use an ascending algorithm, `desc` to sort the data in\ndescending direction, or `null` for not sorting the data.",
6816
+ "fieldName": "direction",
6817
+ "inheritedFrom": {
6818
+ "name": "GridSorterMixin",
6819
+ "module": "src/vaadin-grid-sorter-mixin.js"
6820
+ }
6821
+ },
6822
+ {
6823
+ "name": "path",
6824
+ "type": {
6825
+ "text": "string"
6826
+ },
6827
+ "description": "JS Path of the property in the item used for sorting the data.",
6828
+ "fieldName": "path",
6829
+ "inheritedFrom": {
6830
+ "name": "GridSorterMixin",
6831
+ "module": "src/vaadin-grid-sorter-mixin.js"
6832
+ }
6833
+ },
6834
+ {
6835
+ "type": {
6836
+ "text": "string"
6837
+ },
6838
+ "description": "The theme variants to apply to the component.",
6839
+ "name": "theme"
6840
+ }
6841
+ ],
6802
6842
  "mixins": [
6803
6843
  {
6804
6844
  "name": "GridSorterMixin",
@@ -6826,33 +6866,7 @@
6826
6866
  "package": "lit"
6827
6867
  },
6828
6868
  "tagName": "vaadin-grid-sorter",
6829
- "customElement": true,
6830
- "attributes": [
6831
- {
6832
- "name": "direction",
6833
- "type": {
6834
- "text": "string"
6835
- },
6836
- "description": "How to sort the data.\nPossible values are `asc` to use an ascending algorithm, `desc` to sort the data in\ndescending direction, or `null` for not sorting the data.",
6837
- "fieldName": "direction",
6838
- "inheritedFrom": {
6839
- "name": "GridSorterMixin",
6840
- "module": "src/vaadin-grid-sorter-mixin.js"
6841
- }
6842
- },
6843
- {
6844
- "name": "path",
6845
- "type": {
6846
- "text": "string"
6847
- },
6848
- "description": "JS Path of the property in the item used for sorting the data.",
6849
- "fieldName": "path",
6850
- "inheritedFrom": {
6851
- "name": "GridSorterMixin",
6852
- "module": "src/vaadin-grid-sorter-mixin.js"
6853
- }
6854
- }
6855
- ]
6869
+ "customElement": true
6856
6870
  }
6857
6871
  ],
6858
6872
  "exports": [
@@ -7180,7 +7194,7 @@
7180
7194
  "type": {
7181
7195
  "text": "string"
7182
7196
  },
7183
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
7197
+ "description": "Aligns the columns cell content horizontally.",
7184
7198
  "attribute": "text-align",
7185
7199
  "inheritedFrom": {
7186
7200
  "name": "GridColumn",
@@ -7389,7 +7403,7 @@
7389
7403
  "type": {
7390
7404
  "text": "string"
7391
7405
  },
7392
- "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
7406
+ "description": "Aligns the columns cell content horizontally.",
7393
7407
  "fieldName": "textAlign",
7394
7408
  "inheritedFrom": {
7395
7409
  "name": "GridColumn",
@@ -7568,34 +7582,6 @@
7568
7582
  "name": "expanded-changed"
7569
7583
  }
7570
7584
  ],
7571
- "mixins": [
7572
- {
7573
- "name": "GridTreeToggleMixin",
7574
- "module": "src/vaadin-grid-tree-toggle-mixin.js"
7575
- },
7576
- {
7577
- "name": "ThemableMixin",
7578
- "package": "@vaadin/vaadin-themable-mixin"
7579
- },
7580
- {
7581
- "name": "DirMixin",
7582
- "package": "@vaadin/component-base/src/dir-mixin.js"
7583
- },
7584
- {
7585
- "name": "PolylitMixin",
7586
- "package": "@vaadin/component-base/src/polylit-mixin.js"
7587
- },
7588
- {
7589
- "name": "LumoInjectionMixin",
7590
- "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
7591
- }
7592
- ],
7593
- "superclass": {
7594
- "name": "LitElement",
7595
- "package": "lit"
7596
- },
7597
- "tagName": "vaadin-grid-tree-toggle",
7598
- "customElement": true,
7599
7585
  "attributes": [
7600
7586
  {
7601
7587
  "name": "expanded",
@@ -7632,8 +7618,43 @@
7632
7618
  "name": "GridTreeToggleMixin",
7633
7619
  "module": "src/vaadin-grid-tree-toggle-mixin.js"
7634
7620
  }
7621
+ },
7622
+ {
7623
+ "type": {
7624
+ "text": "string"
7625
+ },
7626
+ "description": "The theme variants to apply to the component.",
7627
+ "name": "theme"
7635
7628
  }
7636
- ]
7629
+ ],
7630
+ "mixins": [
7631
+ {
7632
+ "name": "GridTreeToggleMixin",
7633
+ "module": "src/vaadin-grid-tree-toggle-mixin.js"
7634
+ },
7635
+ {
7636
+ "name": "ThemableMixin",
7637
+ "package": "@vaadin/vaadin-themable-mixin"
7638
+ },
7639
+ {
7640
+ "name": "DirMixin",
7641
+ "package": "@vaadin/component-base/src/dir-mixin.js"
7642
+ },
7643
+ {
7644
+ "name": "PolylitMixin",
7645
+ "package": "@vaadin/component-base/src/polylit-mixin.js"
7646
+ },
7647
+ {
7648
+ "name": "LumoInjectionMixin",
7649
+ "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
7650
+ }
7651
+ ],
7652
+ "superclass": {
7653
+ "name": "LitElement",
7654
+ "package": "lit"
7655
+ },
7656
+ "tagName": "vaadin-grid-tree-toggle",
7657
+ "customElement": true
7637
7658
  }
7638
7659
  ],
7639
7660
  "exports": [
@@ -8400,38 +8421,6 @@
8400
8421
  "name": "size-changed"
8401
8422
  }
8402
8423
  ],
8403
- "mixins": [
8404
- {
8405
- "name": "GridMixin",
8406
- "module": "src/vaadin-grid-mixin.js"
8407
- },
8408
- {
8409
- "name": "I18nMixin",
8410
- "package": "@vaadin/component-base/src/i18n-mixin.js"
8411
- },
8412
- {
8413
- "name": "ElementMixin",
8414
- "package": "@vaadin/component-base/src/element-mixin.js"
8415
- },
8416
- {
8417
- "name": "ThemableMixin",
8418
- "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
8419
- },
8420
- {
8421
- "name": "PolylitMixin",
8422
- "package": "@vaadin/component-base/src/polylit-mixin.js"
8423
- },
8424
- {
8425
- "name": "LumoInjectionMixin",
8426
- "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
8427
- }
8428
- ],
8429
- "superclass": {
8430
- "name": "LitElement",
8431
- "package": "lit"
8432
- },
8433
- "tagName": "vaadin-grid",
8434
- "customElement": true,
8435
8424
  "attributes": [
8436
8425
  {
8437
8426
  "name": "accessible-name",
@@ -8708,8 +8697,47 @@
8708
8697
  "name": "DataProviderMixin",
8709
8698
  "module": "src/vaadin-grid-data-provider-mixin.js"
8710
8699
  }
8700
+ },
8701
+ {
8702
+ "type": {
8703
+ "text": "string"
8704
+ },
8705
+ "description": "The theme variants to apply to the component.",
8706
+ "name": "theme"
8711
8707
  }
8712
- ]
8708
+ ],
8709
+ "mixins": [
8710
+ {
8711
+ "name": "GridMixin",
8712
+ "module": "src/vaadin-grid-mixin.js"
8713
+ },
8714
+ {
8715
+ "name": "I18nMixin",
8716
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
8717
+ },
8718
+ {
8719
+ "name": "ElementMixin",
8720
+ "package": "@vaadin/component-base/src/element-mixin.js"
8721
+ },
8722
+ {
8723
+ "name": "ThemableMixin",
8724
+ "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
8725
+ },
8726
+ {
8727
+ "name": "PolylitMixin",
8728
+ "package": "@vaadin/component-base/src/polylit-mixin.js"
8729
+ },
8730
+ {
8731
+ "name": "LumoInjectionMixin",
8732
+ "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
8733
+ }
8734
+ ],
8735
+ "superclass": {
8736
+ "name": "LitElement",
8737
+ "package": "lit"
8738
+ },
8739
+ "tagName": "vaadin-grid",
8740
+ "customElement": true
8713
8741
  }
8714
8742
  ],
8715
8743
  "exports": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/grid",
3
- "version": "25.3.0-alpha7",
3
+ "version": "25.3.0-alpha9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -45,20 +45,20 @@
45
45
  ],
46
46
  "dependencies": {
47
47
  "@open-wc/dedupe-mixin": "^1.3.0",
48
- "@vaadin/a11y-base": "25.3.0-alpha7",
49
- "@vaadin/checkbox": "25.3.0-alpha7",
50
- "@vaadin/component-base": "25.3.0-alpha7",
51
- "@vaadin/lit-renderer": "25.3.0-alpha7",
52
- "@vaadin/text-field": "25.3.0-alpha7",
53
- "@vaadin/vaadin-themable-mixin": "25.3.0-alpha7",
48
+ "@vaadin/a11y-base": "25.3.0-alpha9",
49
+ "@vaadin/checkbox": "25.3.0-alpha9",
50
+ "@vaadin/component-base": "25.3.0-alpha9",
51
+ "@vaadin/lit-renderer": "25.3.0-alpha9",
52
+ "@vaadin/text-field": "25.3.0-alpha9",
53
+ "@vaadin/vaadin-themable-mixin": "25.3.0-alpha9",
54
54
  "lit": "^3.0.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@vaadin/aura": "25.3.0-alpha7",
58
- "@vaadin/chai-plugins": "25.3.0-alpha7",
59
- "@vaadin/test-runner-commands": "25.3.0-alpha7",
57
+ "@vaadin/aura": "25.3.0-alpha9",
58
+ "@vaadin/chai-plugins": "25.3.0-alpha9",
59
+ "@vaadin/test-runner-commands": "25.3.0-alpha9",
60
60
  "@vaadin/testing-helpers": "^2.0.0",
61
- "@vaadin/vaadin-lumo-styles": "25.3.0-alpha7",
61
+ "@vaadin/vaadin-lumo-styles": "25.3.0-alpha9",
62
62
  "sinon": "^22.0.0"
63
63
  },
64
64
  "customElements": "custom-elements.json",
@@ -66,5 +66,5 @@
66
66
  "web-types.json",
67
67
  "web-types.lit.json"
68
68
  ],
69
- "gitHead": "ae7b9823df5598faebd7a482993029ee489c35ae"
69
+ "gitHead": "cb915ebde095ec5b94a87af93dd4530f51984c52"
70
70
  }
@@ -12,10 +12,11 @@ import { AsyncDirective, directive } from 'lit/async-directive.js';
12
12
  class CellContentDirective extends AsyncDirective {
13
13
  #cell;
14
14
 
15
- update(part, [grid, slotName]) {
15
+ update(part, [grid, slotName, { textAlign } = {}]) {
16
16
  this.#cell = part.parentNode;
17
17
  this.#cell._content ??= document.createElement('vaadin-grid-cell-content');
18
18
  this.#cell._content.slot = slotName;
19
+ this.#cell._content.style.textAlign = textAlign ?? '';
19
20
 
20
21
  if (!grid.contains(this.#cell._content)) {
21
22
  grid.appendChild(this.#cell._content);
@@ -3,6 +3,7 @@
3
3
  * Copyright (c) 2016 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
+ import { setOrRemoveAttribute } from '@vaadin/component-base/src/dom-utils.js';
6
7
  import { findTreeToggleCell, getClosestCell, iterateChildren, iterateRowCells } from './vaadin-grid-helpers.js';
7
8
 
8
9
  export const A11yMixin = (superClass) =>
@@ -110,19 +111,13 @@ export const A11yMixin = (superClass) =>
110
111
  const toggleCell = findTreeToggleCell(row);
111
112
  if (this.__isRowExpandable(row)) {
112
113
  row.setAttribute('aria-expanded', 'false');
113
- if (toggleCell) {
114
- toggleCell.setAttribute('aria-expanded', 'false');
115
- }
114
+ toggleCell?.setAttribute('aria-expanded', 'false');
116
115
  } else if (this.__isRowCollapsible(row)) {
117
116
  row.setAttribute('aria-expanded', 'true');
118
- if (toggleCell) {
119
- toggleCell.setAttribute('aria-expanded', 'true');
120
- }
117
+ toggleCell?.setAttribute('aria-expanded', 'true');
121
118
  } else {
122
119
  row.removeAttribute('aria-expanded');
123
- if (toggleCell) {
124
- toggleCell.removeAttribute('aria-expanded');
125
- }
120
+ toggleCell?.removeAttribute('aria-expanded');
126
121
  }
127
122
  }
128
123
 
@@ -133,11 +128,8 @@ export const A11yMixin = (superClass) =>
133
128
  */
134
129
  __a11yUpdateRowLevel(row, level) {
135
130
  // Set level for the expandable rows itself, and all the nested rows.
136
- if (level > 0 || this.__isRowCollapsible(row) || this.__isRowExpandable(row)) {
137
- row.setAttribute('aria-level', level + 1);
138
- } else {
139
- row.removeAttribute('aria-level');
140
- }
131
+ const hasLevel = level > 0 || this.__isRowCollapsible(row) || this.__isRowExpandable(row);
132
+ setOrRemoveAttribute(row, 'aria-level', hasLevel && level + 1);
141
133
  }
142
134
 
143
135
  /**
@@ -153,15 +145,6 @@ export const A11yMixin = (superClass) =>
153
145
  });
154
146
  }
155
147
 
156
- /**
157
- * @param {!HTMLElement} cell
158
- * @param {number} colspan
159
- * @private
160
- */
161
- __a11yUpdateCellColspan(cell, colspan) {
162
- cell.setAttribute('aria-colspan', Number(colspan));
163
- }
164
-
165
148
  /** @private */
166
149
  __a11yUpdateSorters() {
167
150
  Array.from(this.querySelectorAll('vaadin-grid-sorter')).forEach((sorter) => {