@3mo/data-grid 0.6.1 → 0.6.3

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.
@@ -660,7 +660,7 @@
660
660
  },
661
661
  {
662
662
  "name": "--mo-data-grid-cell-padding",
663
- "description": "The inline padding of the cells. Default to 3px."
663
+ "description": "The inline padding of the cells. Default to 10px."
664
664
  },
665
665
  {
666
666
  "name": "--mo-data-grid-column-sub-row-indentation",
@@ -1225,6 +1225,10 @@
1225
1225
  {
1226
1226
  "name": "dropDownIcon",
1227
1227
  "description": "The dropdown icon."
1228
+ },
1229
+ {
1230
+ "name": "container",
1231
+ "description": "Field's container"
1228
1232
  }
1229
1233
  ]
1230
1234
  },
@@ -1281,7 +1285,7 @@
1281
1285
  {
1282
1286
  "name": "textAlign",
1283
1287
  "description": "The text alignment of the column",
1284
- "type": "string",
1288
+ "type": "DataGridColumnAlignment",
1285
1289
  "default": "\"start\""
1286
1290
  },
1287
1291
  {
@@ -1380,7 +1384,7 @@
1380
1384
  "name": "textAlign",
1381
1385
  "attribute": "textAlign",
1382
1386
  "description": "The text alignment of the column",
1383
- "type": "string",
1387
+ "type": "DataGridColumnAlignment",
1384
1388
  "default": "\"start\""
1385
1389
  },
1386
1390
  {
@@ -1457,7 +1461,7 @@
1457
1461
  {
1458
1462
  "name": "textAlign",
1459
1463
  "description": "The text alignment of the column",
1460
- "type": "string",
1464
+ "type": "DataGridColumnAlignment",
1461
1465
  "default": "\"start\""
1462
1466
  },
1463
1467
  {
@@ -1555,7 +1559,7 @@
1555
1559
  "name": "textAlign",
1556
1560
  "attribute": "textAlign",
1557
1561
  "description": "The text alignment of the column",
1558
- "type": "string",
1562
+ "type": "DataGridColumnAlignment",
1559
1563
  "default": "\"start\""
1560
1564
  },
1561
1565
  {
@@ -1632,7 +1636,7 @@
1632
1636
  {
1633
1637
  "name": "textAlign",
1634
1638
  "description": "The text alignment of the column",
1635
- "type": "string",
1639
+ "type": "DataGridColumnAlignment",
1636
1640
  "default": "\"start\""
1637
1641
  },
1638
1642
  {
@@ -1714,7 +1718,7 @@
1714
1718
  "name": "textAlign",
1715
1719
  "attribute": "textAlign",
1716
1720
  "description": "The text alignment of the column",
1717
- "type": "string",
1721
+ "type": "DataGridColumnAlignment",
1718
1722
  "default": "\"start\""
1719
1723
  },
1720
1724
  {
@@ -1780,7 +1784,7 @@
1780
1784
  {
1781
1785
  "name": "textAlign",
1782
1786
  "description": "The text alignment of the column",
1783
- "type": "string",
1787
+ "type": "DataGridColumnAlignment",
1784
1788
  "default": "\"start\""
1785
1789
  },
1786
1790
  {
@@ -1851,7 +1855,7 @@
1851
1855
  "name": "textAlign",
1852
1856
  "attribute": "textAlign",
1853
1857
  "description": "The text alignment of the column",
1854
- "type": "string",
1858
+ "type": "DataGridColumnAlignment",
1855
1859
  "default": "\"start\""
1856
1860
  },
1857
1861
  {
@@ -1928,7 +1932,7 @@
1928
1932
  {
1929
1933
  "name": "textAlign",
1930
1934
  "description": "The text alignment of the column",
1931
- "type": "string",
1935
+ "type": "DataGridColumnAlignment",
1932
1936
  "default": "\"start\""
1933
1937
  },
1934
1938
  {
@@ -2021,7 +2025,7 @@
2021
2025
  "name": "textAlign",
2022
2026
  "attribute": "textAlign",
2023
2027
  "description": "The text alignment of the column",
2024
- "type": "string",
2028
+ "type": "DataGridColumnAlignment",
2025
2029
  "default": "\"start\""
2026
2030
  },
2027
2031
  {
@@ -2098,7 +2102,7 @@
2098
2102
  {
2099
2103
  "name": "textAlign",
2100
2104
  "description": "The text alignment of the column",
2101
- "type": "string",
2105
+ "type": "DataGridColumnAlignment",
2102
2106
  "default": "\"start\""
2103
2107
  },
2104
2108
  {
@@ -2191,7 +2195,7 @@
2191
2195
  "name": "textAlign",
2192
2196
  "attribute": "textAlign",
2193
2197
  "description": "The text alignment of the column",
2194
- "type": "string",
2198
+ "type": "DataGridColumnAlignment",
2195
2199
  "default": "\"start\""
2196
2200
  },
2197
2201
  {
@@ -2268,7 +2272,7 @@
2268
2272
  {
2269
2273
  "name": "textAlign",
2270
2274
  "description": "The text alignment of the column",
2271
- "type": "string",
2275
+ "type": "DataGridColumnAlignment",
2272
2276
  "default": "\"start\""
2273
2277
  },
2274
2278
  {
@@ -2361,7 +2365,7 @@
2361
2365
  "name": "textAlign",
2362
2366
  "attribute": "textAlign",
2363
2367
  "description": "The text alignment of the column",
2364
- "type": "string",
2368
+ "type": "DataGridColumnAlignment",
2365
2369
  "default": "\"start\""
2366
2370
  },
2367
2371
  {
@@ -2438,7 +2442,7 @@
2438
2442
  {
2439
2443
  "name": "textAlign",
2440
2444
  "description": "The text alignment of the column",
2441
- "type": "string",
2445
+ "type": "DataGridColumnAlignment",
2442
2446
  "default": "\"start\""
2443
2447
  },
2444
2448
  {
@@ -2531,7 +2535,7 @@
2531
2535
  "name": "textAlign",
2532
2536
  "attribute": "textAlign",
2533
2537
  "description": "The text alignment of the column",
2534
- "type": "string",
2538
+ "type": "DataGridColumnAlignment",
2535
2539
  "default": "\"start\""
2536
2540
  },
2537
2541
  {
@@ -2612,7 +2616,7 @@
2612
2616
  {
2613
2617
  "name": "textAlign",
2614
2618
  "description": "The text alignment of the column",
2615
- "type": "string",
2619
+ "type": "DataGridColumnAlignment",
2616
2620
  "default": "\"end\""
2617
2621
  },
2618
2622
  {
@@ -2705,7 +2709,7 @@
2705
2709
  "name": "textAlign",
2706
2710
  "attribute": "textAlign",
2707
2711
  "description": "The text alignment of the column",
2708
- "type": "string",
2712
+ "type": "DataGridColumnAlignment",
2709
2713
  "default": "\"end\""
2710
2714
  },
2711
2715
  {
@@ -2776,7 +2780,7 @@
2776
2780
  {
2777
2781
  "name": "textAlign",
2778
2782
  "description": "The text alignment of the column",
2779
- "type": "string",
2783
+ "type": "DataGridColumnAlignment",
2780
2784
  "default": "\"end\""
2781
2785
  },
2782
2786
  {
@@ -2853,7 +2857,7 @@
2853
2857
  "name": "textAlign",
2854
2858
  "attribute": "textAlign",
2855
2859
  "description": "The text alignment of the column",
2856
- "type": "string",
2860
+ "type": "DataGridColumnAlignment",
2857
2861
  "default": "\"end\""
2858
2862
  },
2859
2863
  {
@@ -2924,7 +2928,7 @@
2924
2928
  {
2925
2929
  "name": "textAlign",
2926
2930
  "description": "The text alignment of the column",
2927
- "type": "string",
2931
+ "type": "DataGridColumnAlignment",
2928
2932
  "default": "\"end\""
2929
2933
  },
2930
2934
  {
@@ -3001,7 +3005,7 @@
3001
3005
  "name": "textAlign",
3002
3006
  "attribute": "textAlign",
3003
3007
  "description": "The text alignment of the column",
3004
- "type": "string",
3008
+ "type": "DataGridColumnAlignment",
3005
3009
  "default": "\"end\""
3006
3010
  },
3007
3011
  {
@@ -3672,7 +3676,7 @@
3672
3676
  },
3673
3677
  {
3674
3678
  "name": "--mo-data-grid-cell-padding",
3675
- "description": "The inline padding of the cells. Default to 3px."
3679
+ "description": "The inline padding of the cells. Default to 10px."
3676
3680
  },
3677
3681
  {
3678
3682
  "name": "--mo-data-grid-column-sub-row-indentation",
@@ -4197,6 +4201,10 @@
4197
4201
  {
4198
4202
  "name": "dropDownIcon",
4199
4203
  "description": "The dropdown icon."
4204
+ },
4205
+ {
4206
+ "name": "container",
4207
+ "description": "Field's container"
4200
4208
  }
4201
4209
  ]
4202
4210
  },
@@ -4242,7 +4250,7 @@
4242
4250
  {
4243
4251
  "name": "textAlign",
4244
4252
  "description": "The text alignment of the column",
4245
- "type": "string"
4253
+ "type": "DataGridColumnAlignment"
4246
4254
  },
4247
4255
  {
4248
4256
  "name": "title",
@@ -4329,7 +4337,7 @@
4329
4337
  "name": "textAlign",
4330
4338
  "attribute": "textAlign",
4331
4339
  "description": "The text alignment of the column",
4332
- "type": "string"
4340
+ "type": "DataGridColumnAlignment"
4333
4341
  },
4334
4342
  {
4335
4343
  "name": "title",
@@ -4390,7 +4398,7 @@
4390
4398
  {
4391
4399
  "name": "textAlign",
4392
4400
  "description": "The text alignment of the column",
4393
- "type": "string"
4401
+ "type": "DataGridColumnAlignment"
4394
4402
  },
4395
4403
  {
4396
4404
  "name": "title",
@@ -4475,7 +4483,7 @@
4475
4483
  "name": "textAlign",
4476
4484
  "attribute": "textAlign",
4477
4485
  "description": "The text alignment of the column",
4478
- "type": "string"
4486
+ "type": "DataGridColumnAlignment"
4479
4487
  },
4480
4488
  {
4481
4489
  "name": "title",
@@ -4542,7 +4550,7 @@
4542
4550
  {
4543
4551
  "name": "textAlign",
4544
4552
  "description": "The text alignment of the column",
4545
- "type": "string"
4553
+ "type": "DataGridColumnAlignment"
4546
4554
  },
4547
4555
  {
4548
4556
  "name": "title",
@@ -4615,7 +4623,7 @@
4615
4623
  "name": "textAlign",
4616
4624
  "attribute": "textAlign",
4617
4625
  "description": "The text alignment of the column",
4618
- "type": "string"
4626
+ "type": "DataGridColumnAlignment"
4619
4627
  },
4620
4628
  {
4621
4629
  "name": "title",
@@ -4671,7 +4679,7 @@
4671
4679
  {
4672
4680
  "name": "textAlign",
4673
4681
  "description": "The text alignment of the column",
4674
- "type": "string"
4682
+ "type": "DataGridColumnAlignment"
4675
4683
  },
4676
4684
  {
4677
4685
  "name": "title",
@@ -4734,7 +4742,7 @@
4734
4742
  "name": "textAlign",
4735
4743
  "attribute": "textAlign",
4736
4744
  "description": "The text alignment of the column",
4737
- "type": "string"
4745
+ "type": "DataGridColumnAlignment"
4738
4746
  },
4739
4747
  {
4740
4748
  "name": "title",
@@ -4800,7 +4808,7 @@
4800
4808
  {
4801
4809
  "name": "textAlign",
4802
4810
  "description": "The text alignment of the column",
4803
- "type": "string"
4811
+ "type": "DataGridColumnAlignment"
4804
4812
  },
4805
4813
  {
4806
4814
  "name": "title",
@@ -4883,7 +4891,7 @@
4883
4891
  "name": "textAlign",
4884
4892
  "attribute": "textAlign",
4885
4893
  "description": "The text alignment of the column",
4886
- "type": "string"
4894
+ "type": "DataGridColumnAlignment"
4887
4895
  },
4888
4896
  {
4889
4897
  "name": "title",
@@ -4949,7 +4957,7 @@
4949
4957
  {
4950
4958
  "name": "textAlign",
4951
4959
  "description": "The text alignment of the column",
4952
- "type": "string"
4960
+ "type": "DataGridColumnAlignment"
4953
4961
  },
4954
4962
  {
4955
4963
  "name": "title",
@@ -5032,7 +5040,7 @@
5032
5040
  "name": "textAlign",
5033
5041
  "attribute": "textAlign",
5034
5042
  "description": "The text alignment of the column",
5035
- "type": "string"
5043
+ "type": "DataGridColumnAlignment"
5036
5044
  },
5037
5045
  {
5038
5046
  "name": "title",
@@ -5098,7 +5106,7 @@
5098
5106
  {
5099
5107
  "name": "textAlign",
5100
5108
  "description": "The text alignment of the column",
5101
- "type": "string"
5109
+ "type": "DataGridColumnAlignment"
5102
5110
  },
5103
5111
  {
5104
5112
  "name": "title",
@@ -5181,7 +5189,7 @@
5181
5189
  "name": "textAlign",
5182
5190
  "attribute": "textAlign",
5183
5191
  "description": "The text alignment of the column",
5184
- "type": "string"
5192
+ "type": "DataGridColumnAlignment"
5185
5193
  },
5186
5194
  {
5187
5195
  "name": "title",
@@ -5247,7 +5255,7 @@
5247
5255
  {
5248
5256
  "name": "textAlign",
5249
5257
  "description": "The text alignment of the column",
5250
- "type": "string"
5258
+ "type": "DataGridColumnAlignment"
5251
5259
  },
5252
5260
  {
5253
5261
  "name": "title",
@@ -5330,7 +5338,7 @@
5330
5338
  "name": "textAlign",
5331
5339
  "attribute": "textAlign",
5332
5340
  "description": "The text alignment of the column",
5333
- "type": "string"
5341
+ "type": "DataGridColumnAlignment"
5334
5342
  },
5335
5343
  {
5336
5344
  "name": "title",
@@ -5396,7 +5404,7 @@
5396
5404
  {
5397
5405
  "name": "textAlign",
5398
5406
  "description": "The text alignment of the column",
5399
- "type": "string"
5407
+ "type": "DataGridColumnAlignment"
5400
5408
  },
5401
5409
  {
5402
5410
  "name": "title",
@@ -5479,7 +5487,7 @@
5479
5487
  "name": "textAlign",
5480
5488
  "attribute": "textAlign",
5481
5489
  "description": "The text alignment of the column",
5482
- "type": "string"
5490
+ "type": "DataGridColumnAlignment"
5483
5491
  },
5484
5492
  {
5485
5493
  "name": "title",
@@ -5535,7 +5543,7 @@
5535
5543
  {
5536
5544
  "name": "textAlign",
5537
5545
  "description": "The text alignment of the column",
5538
- "type": "string"
5546
+ "type": "DataGridColumnAlignment"
5539
5547
  },
5540
5548
  {
5541
5549
  "name": "title",
@@ -5602,7 +5610,7 @@
5602
5610
  "name": "textAlign",
5603
5611
  "attribute": "textAlign",
5604
5612
  "description": "The text alignment of the column",
5605
- "type": "string"
5613
+ "type": "DataGridColumnAlignment"
5606
5614
  },
5607
5615
  {
5608
5616
  "name": "title",
@@ -5658,7 +5666,7 @@
5658
5666
  {
5659
5667
  "name": "textAlign",
5660
5668
  "description": "The text alignment of the column",
5661
- "type": "string"
5669
+ "type": "DataGridColumnAlignment"
5662
5670
  },
5663
5671
  {
5664
5672
  "name": "title",
@@ -5725,7 +5733,7 @@
5725
5733
  "name": "textAlign",
5726
5734
  "attribute": "textAlign",
5727
5735
  "description": "The text alignment of the column",
5728
- "type": "string"
5736
+ "type": "DataGridColumnAlignment"
5729
5737
  },
5730
5738
  {
5731
5739
  "name": "title",
@@ -21,6 +21,7 @@ export declare abstract class DataGridRow<TData, TDetailsElement extends Element
21
21
  level: number;
22
22
  protected contextMenuOpen: boolean;
23
23
  get detailsElement(): TDetailsElement | undefined;
24
+ getCell(column: ColumnDefinition<TData, any>): DataGridCell<any, TData, TDetailsElement> | undefined;
24
25
  protected initialized(): void;
25
26
  updated(...parameters: Parameters<Component['updated']>): void;
26
27
  protected get hasDetails(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridRow.d.ts","sourceRoot":"","sources":["../../rows/DataGridRow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAyB,KAAK,kBAAkB,EAAqB,MAAM,WAAW,CAAA;AAEvH,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAyD,MAAM,aAAa,CAAA;AAErH;;;;;;;;GA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CAAC,GAAG,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAShE,SAAS,KAAK,UAAU,YAEvB;IAED,WAAoB,MAAM,kCA6FzB;IAED,cAAuB,QAAQ,uBAY9B;IAED,SAAS,CAAC,QAAQ,KAAK,WAAW,IAAI,kBAAkB,CAAA;IAExD,SAAS,KAAK,uBAAuB,uBAepC;IAED,SAAS,KAAK,iBAAiB,uBAc9B;IAED,SAAS,CAAC,eAAe,CAAC,MAAM,EAAE,gBAAgB,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAUlG,SAAS,KAAK,6BAA6B,uBAS1C;IAED,SAAS,KAAK,eAAe,uBAmB5B;IAED,OAAO,CAAC,YAAY;IAIpB,SAAS,CAAC,kBAAkB;cAYZ,wBAAwB;cAKxB,wBAAwB;YAK1B,yCAAyC;IAQjD,eAAe,CAAC,KAAK,CAAC,EAAE,YAAY;IAwB1C,OAAO,KAAK,eAAe,GAI1B;IAED,OAAO,KAAK,mBAAmB,GAE9B;IAEK,gBAAgB;IAKtB,SAAS,CAAC,aAAa;IAIvB,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO;CAIvC;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;KACxC;CACD"}
@@ -22,6 +22,9 @@ export class DataGridRow extends Component {
22
22
  get detailsElement() {
23
23
  return this.renderRoot.querySelector('#detailsContainer')?.firstElementChild;
24
24
  }
25
+ getCell(column) {
26
+ return this.cells.find(cell => cell.column === column);
27
+ }
25
28
  initialized() {
26
29
  this.toggleAttribute('mo-data-grid-row', true);
27
30
  }