@vaadin/grid 25.3.0-alpha1 → 25.3.0-alpha11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +248 -128
- package/package.json +12 -12
- package/src/directives/cell-content-directive.js +33 -0
- package/src/styles/vaadin-grid-base-styles.js +7 -0
- package/src/vaadin-grid-a11y-mixin.js +20 -31
- package/src/vaadin-grid-active-item-mixin.js +1 -1
- package/src/vaadin-grid-column-auto-width-mixin.js +4 -13
- package/src/vaadin-grid-column-group-mixin.js +5 -20
- package/src/vaadin-grid-column-mixin.d.ts +3 -3
- package/src/vaadin-grid-column-mixin.js +57 -98
- package/src/vaadin-grid-column-reordering-mixin.js +10 -5
- package/src/vaadin-grid-column-resizing-mixin.js +4 -0
- package/src/vaadin-grid-data-provider-mixin.js +1 -1
- package/src/vaadin-grid-drag-and-drop-mixin.js +14 -5
- package/src/vaadin-grid-dynamic-columns-mixin.js +0 -5
- package/src/vaadin-grid-filter-column-mixin.js +1 -1
- package/src/vaadin-grid-filter-element-mixin.js +1 -3
- package/src/vaadin-grid-filter.js +1 -0
- package/src/vaadin-grid-header-footer-rendering-mixin.js +296 -0
- package/src/vaadin-grid-helpers.js +13 -0
- package/src/vaadin-grid-keyboard-navigation-mixin.js +3 -7
- package/src/vaadin-grid-mixin.js +70 -225
- package/src/vaadin-grid-row-details-mixin.js +1 -1
- package/src/vaadin-grid-scroll-mixin.js +2 -11
- package/src/vaadin-grid-selection-column-base-mixin.js +66 -21
- package/src/vaadin-grid-sort-column-mixin.js +11 -2
- package/src/vaadin-grid-sorter-mixin.js +22 -2
- package/src/vaadin-grid-sorter.js +2 -1
- package/src/vaadin-grid-tree-toggle.js +1 -0
- package/src/vaadin-grid.d.ts +63 -1
- package/src/vaadin-grid.js +51 -2
- package/web-types.json +29 -94
- package/web-types.lit.json +17 -10
package/custom-elements.json
CHANGED
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
"type": {
|
|
498
498
|
"text": "string"
|
|
499
499
|
},
|
|
500
|
-
"description": "Aligns the columns cell content horizontally
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1674
|
+
"description": "Aligns the columns cell content horizontally.",
|
|
1675
1675
|
"fieldName": "textAlign",
|
|
1676
1676
|
"inheritedFrom": {
|
|
1677
1677
|
"name": "ColumnBaseMixin",
|
|
@@ -2027,7 +2027,7 @@
|
|
|
2027
2027
|
"type": {
|
|
2028
2028
|
"text": "string"
|
|
2029
2029
|
},
|
|
2030
|
-
"description": "Aligns the columns cell content horizontally
|
|
2030
|
+
"description": "Aligns the columns cell content horizontally.",
|
|
2031
2031
|
"attribute": "text-align",
|
|
2032
2032
|
"inheritedFrom": {
|
|
2033
2033
|
"name": "ColumnBaseMixin",
|
|
@@ -2240,7 +2240,7 @@
|
|
|
2240
2240
|
"type": {
|
|
2241
2241
|
"text": "string"
|
|
2242
2242
|
},
|
|
2243
|
-
"description": "Aligns the columns cell content horizontally
|
|
2243
|
+
"description": "Aligns the columns cell content horizontally.",
|
|
2244
2244
|
"fieldName": "textAlign",
|
|
2245
2245
|
"inheritedFrom": {
|
|
2246
2246
|
"name": "ColumnBaseMixin",
|
|
@@ -2954,7 +2954,7 @@
|
|
|
2954
2954
|
"type": {
|
|
2955
2955
|
"text": "string"
|
|
2956
2956
|
},
|
|
2957
|
-
"description": "Aligns the columns cell content horizontally
|
|
2957
|
+
"description": "Aligns the columns cell content horizontally.",
|
|
2958
2958
|
"attribute": "text-align",
|
|
2959
2959
|
"inheritedFrom": {
|
|
2960
2960
|
"name": "GridColumn",
|
|
@@ -3163,7 +3163,7 @@
|
|
|
3163
3163
|
"type": {
|
|
3164
3164
|
"text": "string"
|
|
3165
3165
|
},
|
|
3166
|
-
"description": "Aligns the columns cell content horizontally
|
|
3166
|
+
"description": "Aligns the columns cell content horizontally.",
|
|
3167
3167
|
"fieldName": "textAlign",
|
|
3168
3168
|
"inheritedFrom": {
|
|
3169
3169
|
"name": "GridColumn",
|
|
@@ -3350,30 +3350,6 @@
|
|
|
3350
3350
|
"name": "value-changed"
|
|
3351
3351
|
}
|
|
3352
3352
|
],
|
|
3353
|
-
"mixins": [
|
|
3354
|
-
{
|
|
3355
|
-
"name": "GridFilterElementMixin",
|
|
3356
|
-
"module": "src/vaadin-grid-filter-element-mixin.js"
|
|
3357
|
-
},
|
|
3358
|
-
{
|
|
3359
|
-
"name": "ThemableMixin",
|
|
3360
|
-
"package": "@vaadin/vaadin-themable-mixin"
|
|
3361
|
-
},
|
|
3362
|
-
{
|
|
3363
|
-
"name": "PolylitMixin",
|
|
3364
|
-
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
3365
|
-
},
|
|
3366
|
-
{
|
|
3367
|
-
"name": "LumoInjectionMixin",
|
|
3368
|
-
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
3369
|
-
}
|
|
3370
|
-
],
|
|
3371
|
-
"superclass": {
|
|
3372
|
-
"name": "LitElement",
|
|
3373
|
-
"package": "lit"
|
|
3374
|
-
},
|
|
3375
|
-
"tagName": "vaadin-grid-filter",
|
|
3376
|
-
"customElement": true,
|
|
3377
3353
|
"attributes": [
|
|
3378
3354
|
{
|
|
3379
3355
|
"name": "path",
|
|
@@ -3387,6 +3363,13 @@
|
|
|
3387
3363
|
"module": "src/vaadin-grid-filter-element-mixin.js"
|
|
3388
3364
|
}
|
|
3389
3365
|
},
|
|
3366
|
+
{
|
|
3367
|
+
"type": {
|
|
3368
|
+
"text": "string"
|
|
3369
|
+
},
|
|
3370
|
+
"description": "The theme variants to apply to the component.",
|
|
3371
|
+
"name": "theme"
|
|
3372
|
+
},
|
|
3390
3373
|
{
|
|
3391
3374
|
"name": "value",
|
|
3392
3375
|
"type": {
|
|
@@ -3399,7 +3382,31 @@
|
|
|
3399
3382
|
"module": "src/vaadin-grid-filter-element-mixin.js"
|
|
3400
3383
|
}
|
|
3401
3384
|
}
|
|
3402
|
-
]
|
|
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
|
|
3403
3410
|
}
|
|
3404
3411
|
],
|
|
3405
3412
|
"exports": [
|
|
@@ -3413,10 +3420,55 @@
|
|
|
3413
3420
|
}
|
|
3414
3421
|
]
|
|
3415
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
|
+
},
|
|
3416
3450
|
{
|
|
3417
3451
|
"kind": "javascript-module",
|
|
3418
3452
|
"path": "src/vaadin-grid-helpers.js",
|
|
3419
3453
|
"declarations": [
|
|
3454
|
+
{
|
|
3455
|
+
"kind": "function",
|
|
3456
|
+
"name": "getClosestCell",
|
|
3457
|
+
"parameters": [
|
|
3458
|
+
{
|
|
3459
|
+
"name": "node",
|
|
3460
|
+
"type": {
|
|
3461
|
+
"text": "Node"
|
|
3462
|
+
}
|
|
3463
|
+
}
|
|
3464
|
+
],
|
|
3465
|
+
"description": "Returns the grid cell that contains the given node, or `undefined` if the\nnode is not inside a cell's content.",
|
|
3466
|
+
"return": {
|
|
3467
|
+
"type": {
|
|
3468
|
+
"text": "HTMLElement | undefined"
|
|
3469
|
+
}
|
|
3470
|
+
}
|
|
3471
|
+
},
|
|
3420
3472
|
{
|
|
3421
3473
|
"kind": "function",
|
|
3422
3474
|
"name": "getBodyRowCells",
|
|
@@ -3693,6 +3745,14 @@
|
|
|
3693
3745
|
}
|
|
3694
3746
|
],
|
|
3695
3747
|
"exports": [
|
|
3748
|
+
{
|
|
3749
|
+
"kind": "js",
|
|
3750
|
+
"name": "getClosestCell",
|
|
3751
|
+
"declaration": {
|
|
3752
|
+
"name": "getClosestCell",
|
|
3753
|
+
"module": "src/vaadin-grid-helpers.js"
|
|
3754
|
+
}
|
|
3755
|
+
},
|
|
3696
3756
|
{
|
|
3697
3757
|
"kind": "js",
|
|
3698
3758
|
"name": "getBodyRowCells",
|
|
@@ -4713,6 +4773,10 @@
|
|
|
4713
4773
|
"name": "DynamicColumnsMixin",
|
|
4714
4774
|
"module": "src/vaadin-grid-dynamic-columns-mixin.js"
|
|
4715
4775
|
},
|
|
4776
|
+
{
|
|
4777
|
+
"name": "HeaderFooterRenderingMixin",
|
|
4778
|
+
"module": "src/vaadin-grid-header-footer-rendering-mixin.js"
|
|
4779
|
+
},
|
|
4716
4780
|
{
|
|
4717
4781
|
"name": "ActiveItemMixin",
|
|
4718
4782
|
"module": "src/vaadin-grid-active-item-mixin.js"
|
|
@@ -5583,7 +5647,7 @@
|
|
|
5583
5647
|
"type": {
|
|
5584
5648
|
"text": "string"
|
|
5585
5649
|
},
|
|
5586
|
-
"description": "Aligns the columns cell content horizontally
|
|
5650
|
+
"description": "Aligns the columns cell content horizontally.",
|
|
5587
5651
|
"attribute": "text-align",
|
|
5588
5652
|
"inheritedFrom": {
|
|
5589
5653
|
"name": "GridColumn",
|
|
@@ -5837,7 +5901,7 @@
|
|
|
5837
5901
|
"type": {
|
|
5838
5902
|
"text": "string"
|
|
5839
5903
|
},
|
|
5840
|
-
"description": "Aligns the columns cell content horizontally
|
|
5904
|
+
"description": "Aligns the columns cell content horizontally.",
|
|
5841
5905
|
"fieldName": "textAlign",
|
|
5842
5906
|
"inheritedFrom": {
|
|
5843
5907
|
"name": "GridColumn",
|
|
@@ -6249,7 +6313,7 @@
|
|
|
6249
6313
|
"type": {
|
|
6250
6314
|
"text": "string"
|
|
6251
6315
|
},
|
|
6252
|
-
"description": "Aligns the columns cell content horizontally
|
|
6316
|
+
"description": "Aligns the columns cell content horizontally.",
|
|
6253
6317
|
"attribute": "text-align",
|
|
6254
6318
|
"inheritedFrom": {
|
|
6255
6319
|
"name": "GridColumn",
|
|
@@ -6479,7 +6543,7 @@
|
|
|
6479
6543
|
"type": {
|
|
6480
6544
|
"text": "string"
|
|
6481
6545
|
},
|
|
6482
|
-
"description": "Aligns the columns cell content horizontally
|
|
6546
|
+
"description": "Aligns the columns cell content horizontally.",
|
|
6483
6547
|
"fieldName": "textAlign",
|
|
6484
6548
|
"inheritedFrom": {
|
|
6485
6549
|
"name": "GridColumn",
|
|
@@ -6742,6 +6806,39 @@
|
|
|
6742
6806
|
}
|
|
6743
6807
|
}
|
|
6744
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
|
+
],
|
|
6745
6842
|
"mixins": [
|
|
6746
6843
|
{
|
|
6747
6844
|
"name": "GridSorterMixin",
|
|
@@ -6769,33 +6866,7 @@
|
|
|
6769
6866
|
"package": "lit"
|
|
6770
6867
|
},
|
|
6771
6868
|
"tagName": "vaadin-grid-sorter",
|
|
6772
|
-
"customElement": true
|
|
6773
|
-
"attributes": [
|
|
6774
|
-
{
|
|
6775
|
-
"name": "direction",
|
|
6776
|
-
"type": {
|
|
6777
|
-
"text": "string"
|
|
6778
|
-
},
|
|
6779
|
-
"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.",
|
|
6780
|
-
"fieldName": "direction",
|
|
6781
|
-
"inheritedFrom": {
|
|
6782
|
-
"name": "GridSorterMixin",
|
|
6783
|
-
"module": "src/vaadin-grid-sorter-mixin.js"
|
|
6784
|
-
}
|
|
6785
|
-
},
|
|
6786
|
-
{
|
|
6787
|
-
"name": "path",
|
|
6788
|
-
"type": {
|
|
6789
|
-
"text": "string"
|
|
6790
|
-
},
|
|
6791
|
-
"description": "JS Path of the property in the item used for sorting the data.",
|
|
6792
|
-
"fieldName": "path",
|
|
6793
|
-
"inheritedFrom": {
|
|
6794
|
-
"name": "GridSorterMixin",
|
|
6795
|
-
"module": "src/vaadin-grid-sorter-mixin.js"
|
|
6796
|
-
}
|
|
6797
|
-
}
|
|
6798
|
-
]
|
|
6869
|
+
"customElement": true
|
|
6799
6870
|
}
|
|
6800
6871
|
],
|
|
6801
6872
|
"exports": [
|
|
@@ -7123,7 +7194,7 @@
|
|
|
7123
7194
|
"type": {
|
|
7124
7195
|
"text": "string"
|
|
7125
7196
|
},
|
|
7126
|
-
"description": "Aligns the columns cell content horizontally
|
|
7197
|
+
"description": "Aligns the columns cell content horizontally.",
|
|
7127
7198
|
"attribute": "text-align",
|
|
7128
7199
|
"inheritedFrom": {
|
|
7129
7200
|
"name": "GridColumn",
|
|
@@ -7332,7 +7403,7 @@
|
|
|
7332
7403
|
"type": {
|
|
7333
7404
|
"text": "string"
|
|
7334
7405
|
},
|
|
7335
|
-
"description": "Aligns the columns cell content horizontally
|
|
7406
|
+
"description": "Aligns the columns cell content horizontally.",
|
|
7336
7407
|
"fieldName": "textAlign",
|
|
7337
7408
|
"inheritedFrom": {
|
|
7338
7409
|
"name": "GridColumn",
|
|
@@ -7511,34 +7582,6 @@
|
|
|
7511
7582
|
"name": "expanded-changed"
|
|
7512
7583
|
}
|
|
7513
7584
|
],
|
|
7514
|
-
"mixins": [
|
|
7515
|
-
{
|
|
7516
|
-
"name": "GridTreeToggleMixin",
|
|
7517
|
-
"module": "src/vaadin-grid-tree-toggle-mixin.js"
|
|
7518
|
-
},
|
|
7519
|
-
{
|
|
7520
|
-
"name": "ThemableMixin",
|
|
7521
|
-
"package": "@vaadin/vaadin-themable-mixin"
|
|
7522
|
-
},
|
|
7523
|
-
{
|
|
7524
|
-
"name": "DirMixin",
|
|
7525
|
-
"package": "@vaadin/component-base/src/dir-mixin.js"
|
|
7526
|
-
},
|
|
7527
|
-
{
|
|
7528
|
-
"name": "PolylitMixin",
|
|
7529
|
-
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
7530
|
-
},
|
|
7531
|
-
{
|
|
7532
|
-
"name": "LumoInjectionMixin",
|
|
7533
|
-
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
7534
|
-
}
|
|
7535
|
-
],
|
|
7536
|
-
"superclass": {
|
|
7537
|
-
"name": "LitElement",
|
|
7538
|
-
"package": "lit"
|
|
7539
|
-
},
|
|
7540
|
-
"tagName": "vaadin-grid-tree-toggle",
|
|
7541
|
-
"customElement": true,
|
|
7542
7585
|
"attributes": [
|
|
7543
7586
|
{
|
|
7544
7587
|
"name": "expanded",
|
|
@@ -7575,8 +7618,43 @@
|
|
|
7575
7618
|
"name": "GridTreeToggleMixin",
|
|
7576
7619
|
"module": "src/vaadin-grid-tree-toggle-mixin.js"
|
|
7577
7620
|
}
|
|
7621
|
+
},
|
|
7622
|
+
{
|
|
7623
|
+
"type": {
|
|
7624
|
+
"text": "string"
|
|
7625
|
+
},
|
|
7626
|
+
"description": "The theme variants to apply to the component.",
|
|
7627
|
+
"name": "theme"
|
|
7578
7628
|
}
|
|
7579
|
-
]
|
|
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
|
|
7580
7658
|
}
|
|
7581
7659
|
],
|
|
7582
7660
|
"exports": [
|
|
@@ -7921,6 +7999,25 @@
|
|
|
7921
7999
|
"module": "src/vaadin-grid-data-provider-mixin.js"
|
|
7922
8000
|
}
|
|
7923
8001
|
},
|
|
8002
|
+
{
|
|
8003
|
+
"kind": "field",
|
|
8004
|
+
"name": "i18n",
|
|
8005
|
+
"privacy": "public",
|
|
8006
|
+
"type": {
|
|
8007
|
+
"text": "Object"
|
|
8008
|
+
},
|
|
8009
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\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```",
|
|
8010
|
+
"attribute": "i18n",
|
|
8011
|
+
"return": {
|
|
8012
|
+
"type": {
|
|
8013
|
+
"text": "!GridI18n"
|
|
8014
|
+
}
|
|
8015
|
+
},
|
|
8016
|
+
"inheritedFrom": {
|
|
8017
|
+
"name": "I18nMixin",
|
|
8018
|
+
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
8019
|
+
}
|
|
8020
|
+
},
|
|
7924
8021
|
{
|
|
7925
8022
|
"kind": "field",
|
|
7926
8023
|
"name": "isItemSelectable",
|
|
@@ -8324,34 +8421,6 @@
|
|
|
8324
8421
|
"name": "size-changed"
|
|
8325
8422
|
}
|
|
8326
8423
|
],
|
|
8327
|
-
"mixins": [
|
|
8328
|
-
{
|
|
8329
|
-
"name": "GridMixin",
|
|
8330
|
-
"module": "src/vaadin-grid-mixin.js"
|
|
8331
|
-
},
|
|
8332
|
-
{
|
|
8333
|
-
"name": "ElementMixin",
|
|
8334
|
-
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
8335
|
-
},
|
|
8336
|
-
{
|
|
8337
|
-
"name": "ThemableMixin",
|
|
8338
|
-
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
8339
|
-
},
|
|
8340
|
-
{
|
|
8341
|
-
"name": "PolylitMixin",
|
|
8342
|
-
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
8343
|
-
},
|
|
8344
|
-
{
|
|
8345
|
-
"name": "LumoInjectionMixin",
|
|
8346
|
-
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
8347
|
-
}
|
|
8348
|
-
],
|
|
8349
|
-
"superclass": {
|
|
8350
|
-
"name": "LitElement",
|
|
8351
|
-
"package": "lit"
|
|
8352
|
-
},
|
|
8353
|
-
"tagName": "vaadin-grid",
|
|
8354
|
-
"customElement": true,
|
|
8355
8424
|
"attributes": [
|
|
8356
8425
|
{
|
|
8357
8426
|
"name": "accessible-name",
|
|
@@ -8485,6 +8554,18 @@
|
|
|
8485
8554
|
"module": "src/vaadin-grid-drag-and-drop-mixin.js"
|
|
8486
8555
|
}
|
|
8487
8556
|
},
|
|
8557
|
+
{
|
|
8558
|
+
"name": "i18n",
|
|
8559
|
+
"type": {
|
|
8560
|
+
"text": "Object"
|
|
8561
|
+
},
|
|
8562
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
8563
|
+
"fieldName": "i18n",
|
|
8564
|
+
"inheritedFrom": {
|
|
8565
|
+
"name": "I18nMixin",
|
|
8566
|
+
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
8567
|
+
}
|
|
8568
|
+
},
|
|
8488
8569
|
{
|
|
8489
8570
|
"name": "is-item-selectable",
|
|
8490
8571
|
"type": {
|
|
@@ -8616,8 +8697,47 @@
|
|
|
8616
8697
|
"name": "DataProviderMixin",
|
|
8617
8698
|
"module": "src/vaadin-grid-data-provider-mixin.js"
|
|
8618
8699
|
}
|
|
8700
|
+
},
|
|
8701
|
+
{
|
|
8702
|
+
"type": {
|
|
8703
|
+
"text": "string"
|
|
8704
|
+
},
|
|
8705
|
+
"description": "The theme variants to apply to the component.",
|
|
8706
|
+
"name": "theme"
|
|
8619
8707
|
}
|
|
8620
|
-
]
|
|
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
|
|
8621
8741
|
}
|
|
8622
8742
|
],
|
|
8623
8743
|
"exports": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/grid",
|
|
3
|
-
"version": "25.3.0-
|
|
3
|
+
"version": "25.3.0-alpha11",
|
|
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-
|
|
49
|
-
"@vaadin/checkbox": "25.3.0-
|
|
50
|
-
"@vaadin/component-base": "25.3.0-
|
|
51
|
-
"@vaadin/lit-renderer": "25.3.0-
|
|
52
|
-
"@vaadin/text-field": "25.3.0-
|
|
53
|
-
"@vaadin/vaadin-themable-mixin": "25.3.0-
|
|
48
|
+
"@vaadin/a11y-base": "25.3.0-alpha11",
|
|
49
|
+
"@vaadin/checkbox": "25.3.0-alpha11",
|
|
50
|
+
"@vaadin/component-base": "25.3.0-alpha11",
|
|
51
|
+
"@vaadin/lit-renderer": "25.3.0-alpha11",
|
|
52
|
+
"@vaadin/text-field": "25.3.0-alpha11",
|
|
53
|
+
"@vaadin/vaadin-themable-mixin": "25.3.0-alpha11",
|
|
54
54
|
"lit": "^3.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@vaadin/aura": "25.3.0-
|
|
58
|
-
"@vaadin/chai-plugins": "25.3.0-
|
|
59
|
-
"@vaadin/test-runner-commands": "25.3.0-
|
|
57
|
+
"@vaadin/aura": "25.3.0-alpha11",
|
|
58
|
+
"@vaadin/chai-plugins": "25.3.0-alpha11",
|
|
59
|
+
"@vaadin/test-runner-commands": "25.3.0-alpha11",
|
|
60
60
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
61
|
-
"@vaadin/vaadin-lumo-styles": "25.3.0-
|
|
61
|
+
"@vaadin/vaadin-lumo-styles": "25.3.0-alpha11",
|
|
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": "
|
|
69
|
+
"gitHead": "7e0c61a37e68d8971def9cdf28ad0548a0f530a9"
|
|
70
70
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2016 - 2026 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import { html } from 'lit';
|
|
7
|
+
import { AsyncDirective, directive } from 'lit/async-directive.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A directive that manages the `<vaadin-grid-cell-content>` element for a cell.
|
|
11
|
+
*/
|
|
12
|
+
class CellContentDirective extends AsyncDirective {
|
|
13
|
+
#cell;
|
|
14
|
+
|
|
15
|
+
update(part, [grid, slotName, { textAlign } = {}]) {
|
|
16
|
+
this.#cell = part.parentNode;
|
|
17
|
+
this.#cell._content ??= document.createElement('vaadin-grid-cell-content');
|
|
18
|
+
this.#cell._content.slot = slotName;
|
|
19
|
+
this.#cell._content.style.textAlign = textAlign ?? '';
|
|
20
|
+
|
|
21
|
+
if (!grid.contains(this.#cell._content)) {
|
|
22
|
+
grid.appendChild(this.#cell._content);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return html`<slot name="${slotName}"></slot>`;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
disconnected() {
|
|
29
|
+
this.#cell._content?.remove();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const cellContent = directive(CellContentDirective);
|