@3mo/data-grid 0.5.15 → 0.5.17

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.
Files changed (42) hide show
  1. package/dist/ColumnDefinition.d.ts +1 -1
  2. package/dist/ColumnDefinition.d.ts.map +1 -1
  3. package/dist/DataGrid.d.ts +1 -1
  4. package/dist/DataGrid.d.ts.map +1 -1
  5. package/dist/DataGrid.js +1 -1
  6. package/dist/DataGridCell.d.ts +2 -2
  7. package/dist/DataGridCell.d.ts.map +1 -1
  8. package/dist/DataGridFooter.d.ts +1 -1
  9. package/dist/DataGridFooter.d.ts.map +1 -1
  10. package/dist/DataGridFooter.js +92 -92
  11. package/dist/DataGridHeader.d.ts +1 -1
  12. package/dist/DataGridHeader.d.ts.map +1 -1
  13. package/dist/DataGridHeaderSeparator.d.ts +1 -1
  14. package/dist/DataGridHeaderSeparator.d.ts.map +1 -1
  15. package/dist/DataGridSelectionController.d.ts +1 -1
  16. package/dist/DataGridSelectionController.d.ts.map +1 -1
  17. package/dist/DataGridSidePanel.d.ts +1 -1
  18. package/dist/DataGridSidePanel.d.ts.map +1 -1
  19. package/dist/FieldSelectDataGridPageSize.d.ts +1 -1
  20. package/dist/FieldSelectDataGridPageSize.d.ts.map +1 -1
  21. package/dist/FieldSelectDataGridPageSize.js +7 -7
  22. package/dist/columns/DataGridColumn.d.ts +1 -1
  23. package/dist/columns/DataGridColumn.d.ts.map +1 -1
  24. package/dist/columns/DataGridColumnBoolean.d.ts +1 -1
  25. package/dist/columns/DataGridColumnBoolean.d.ts.map +1 -1
  26. package/dist/columns/DataGridColumnDeletion.d.ts +1 -1
  27. package/dist/columns/DataGridColumnDeletion.d.ts.map +1 -1
  28. package/dist/columns/DataGridColumnImage.d.ts +5 -1
  29. package/dist/columns/DataGridColumnImage.d.ts.map +1 -1
  30. package/dist/columns/DataGridColumnImage.js +13 -9
  31. package/dist/columns/date-time/DataGridColumnDateTimeBase.d.ts +1 -1
  32. package/dist/columns/date-time/DataGridColumnDateTimeBase.d.ts.map +1 -1
  33. package/dist/columns/number/DataGridColumnCurrency.d.ts +5 -2
  34. package/dist/columns/number/DataGridColumnCurrency.d.ts.map +1 -1
  35. package/dist/columns/number/DataGridColumnCurrency.js +12 -7
  36. package/dist/columns/number/DataGridColumnNumberBase.d.ts +1 -1
  37. package/dist/columns/number/DataGridColumnNumberBase.d.ts.map +1 -1
  38. package/dist/custom-elements.json +86 -39
  39. package/dist/rows/DataGridRow.d.ts +3 -3
  40. package/dist/rows/DataGridRow.d.ts.map +1 -1
  41. package/dist/tsconfig.tsbuildinfo +1 -1
  42. package/package.json +1 -1
@@ -964,10 +964,6 @@
964
964
  "type": "boolean",
965
965
  "default": "false"
966
966
  },
967
- {
968
- "name": "menuAlignment",
969
- "type": "PopoverAlignment | undefined"
970
- },
971
967
  {
972
968
  "name": "open",
973
969
  "type": "boolean",
@@ -1007,6 +1003,16 @@
1007
1003
  "description": "The selected index.",
1008
1004
  "type": "Index"
1009
1005
  },
1006
+ {
1007
+ "name": "menuAlignment",
1008
+ "description": "Menu popover alignment",
1009
+ "type": "PopoverAlignment | undefined"
1010
+ },
1011
+ {
1012
+ "name": "menuPlacement",
1013
+ "description": "Menu popover placement",
1014
+ "type": "PopoverPlacement | undefined"
1015
+ },
1010
1016
  {
1011
1017
  "name": "value",
1012
1018
  "description": "The selected value.",
@@ -1035,10 +1041,6 @@
1035
1041
  "description": "Whether the field is required",
1036
1042
  "type": "boolean",
1037
1043
  "default": "false"
1038
- },
1039
- {
1040
- "name": "alignment",
1041
- "description": "Popover alignment"
1042
1044
  }
1043
1045
  ],
1044
1046
  "properties": [
@@ -1061,11 +1063,6 @@
1061
1063
  "type": "boolean",
1062
1064
  "default": "false"
1063
1065
  },
1064
- {
1065
- "name": "menuAlignment",
1066
- "attribute": "menuAlignment",
1067
- "type": "PopoverAlignment | undefined"
1068
- },
1069
1066
  {
1070
1067
  "name": "open",
1071
1068
  "attribute": "open",
@@ -1140,6 +1137,18 @@
1140
1137
  "description": "The selected index.",
1141
1138
  "type": "Index"
1142
1139
  },
1140
+ {
1141
+ "name": "menuAlignment",
1142
+ "attribute": "menuAlignment",
1143
+ "description": "Menu popover alignment",
1144
+ "type": "PopoverAlignment | undefined"
1145
+ },
1146
+ {
1147
+ "name": "menuPlacement",
1148
+ "attribute": "menuPlacement",
1149
+ "description": "Menu popover placement",
1150
+ "type": "PopoverPlacement | undefined"
1151
+ },
1143
1152
  {
1144
1153
  "name": "change",
1145
1154
  "type": "EventDispatcher<T | undefined>"
@@ -1614,6 +1623,7 @@
1614
1623
  "attributes": [
1615
1624
  {
1616
1625
  "name": "tooltipSelector",
1626
+ "description": "The data selector of the column to use as a tooltip. If a function is provided, it will be called with the data as an argument.",
1617
1627
  "type": "KeyPathOf<TData>"
1618
1628
  },
1619
1629
  {
@@ -1673,16 +1683,17 @@
1673
1683
  }
1674
1684
  ],
1675
1685
  "properties": [
1676
- {
1677
- "name": "tooltipSelector",
1678
- "attribute": "tooltipSelector",
1679
- "type": "(object extends TData ? string : TData extends readonly any[] ? Extract<keyof TData, `${number}`> | SubKeyPathOf<TData, Extract<keyof TData, `${number}`>, 1> : TData extends object ? Extract<...> | SubKeyPathOf<...> : never) | ((data: TData) => string | undefined) | undefined"
1680
- },
1681
1686
  {
1682
1687
  "name": "getEditContentTemplate",
1683
1688
  "type": "undefined",
1684
1689
  "default": "\"undefined\""
1685
1690
  },
1691
+ {
1692
+ "name": "tooltipSelector",
1693
+ "attribute": "tooltipSelector",
1694
+ "description": "The data selector of the column to use as a tooltip. If a function is provided, it will be called with the data as an argument.",
1695
+ "type": "(object extends TData ? string : TData extends readonly any[] ? Extract<keyof TData, `${number}`> | SubKeyPathOf<TData, Extract<keyof TData, `${number}`>, 1> : TData extends object ? Extract<...> | SubKeyPathOf<...> : never) | ((data: TData) => string | undefined) | undefined"
1696
+ },
1686
1697
  {
1687
1698
  "name": "regex",
1688
1699
  "type": "RegExp",
@@ -2583,8 +2594,12 @@
2583
2594
  {
2584
2595
  "name": "currency",
2585
2596
  "description": "The currency of the values.",
2586
- "type": "Currency | undefined",
2587
- "default": "\"defaultCurrency\""
2597
+ "type": "Currency | undefined"
2598
+ },
2599
+ {
2600
+ "name": "currencyDataSelector",
2601
+ "description": "The key path to the currency of the values.",
2602
+ "type": "KeyPathOf<TData>"
2588
2603
  },
2589
2604
  {
2590
2605
  "name": "sumHeading",
@@ -2656,8 +2671,13 @@
2656
2671
  "name": "currency",
2657
2672
  "attribute": "currency",
2658
2673
  "description": "The currency of the values.",
2659
- "type": "Currency | undefined",
2660
- "default": "\"defaultCurrency\""
2674
+ "type": "Currency | undefined"
2675
+ },
2676
+ {
2677
+ "name": "currencyDataSelector",
2678
+ "attribute": "currencyDataSelector",
2679
+ "description": "The key path to the currency of the values.",
2680
+ "type": "(object extends TData ? string : TData extends readonly any[] ? Extract<keyof TData, `${number}`> | SubKeyPathOf<TData, Extract<keyof TData, `${number}`>, 1> : TData extends object ? Extract<...> | SubKeyPathOf<...> : never) | undefined"
2661
2681
  },
2662
2682
  {
2663
2683
  "name": "sumHeading",
@@ -3935,10 +3955,6 @@
3935
3955
  "type": "boolean",
3936
3956
  "default": "false"
3937
3957
  },
3938
- {
3939
- "name": "menuAlignment",
3940
- "type": "PopoverAlignment | undefined"
3941
- },
3942
3958
  {
3943
3959
  "name": "open",
3944
3960
  "type": "boolean",
@@ -3978,6 +3994,16 @@
3978
3994
  "description": "The selected index.",
3979
3995
  "type": "Index"
3980
3996
  },
3997
+ {
3998
+ "name": "menuAlignment",
3999
+ "description": "Menu popover alignment",
4000
+ "type": "PopoverAlignment | undefined"
4001
+ },
4002
+ {
4003
+ "name": "menuPlacement",
4004
+ "description": "Menu popover placement",
4005
+ "type": "PopoverPlacement | undefined"
4006
+ },
3981
4007
  {
3982
4008
  "name": "value",
3983
4009
  "description": "The selected value.",
@@ -4006,10 +4032,6 @@
4006
4032
  "description": "Whether the field is required",
4007
4033
  "type": "boolean",
4008
4034
  "default": "false"
4009
- },
4010
- {
4011
- "name": "alignment",
4012
- "description": "Popover alignment"
4013
4035
  }
4014
4036
  ],
4015
4037
  "properties": [
@@ -4031,11 +4053,6 @@
4031
4053
  "type": "boolean",
4032
4054
  "default": "false"
4033
4055
  },
4034
- {
4035
- "name": "menuAlignment",
4036
- "attribute": "menuAlignment",
4037
- "type": "PopoverAlignment | undefined"
4038
- },
4039
4056
  {
4040
4057
  "name": "open",
4041
4058
  "attribute": "open",
@@ -4110,6 +4127,18 @@
4110
4127
  "description": "The selected index.",
4111
4128
  "type": "Index"
4112
4129
  },
4130
+ {
4131
+ "name": "menuAlignment",
4132
+ "attribute": "menuAlignment",
4133
+ "description": "Menu popover alignment",
4134
+ "type": "PopoverAlignment | undefined"
4135
+ },
4136
+ {
4137
+ "name": "menuPlacement",
4138
+ "attribute": "menuPlacement",
4139
+ "description": "Menu popover placement",
4140
+ "type": "PopoverPlacement | undefined"
4141
+ },
4113
4142
  {
4114
4143
  "name": "change",
4115
4144
  "type": "EventDispatcher<T | undefined>"
@@ -4527,6 +4556,11 @@
4527
4556
  "name": "mo-data-grid-column-image",
4528
4557
  "path": ".\\packages\\DataGrid\\dist\\columns\\DataGridColumnImage.d.ts",
4529
4558
  "attributes": [
4559
+ {
4560
+ "name": "tooltipSelector",
4561
+ "description": "The data selector of the column to use as a tooltip. If a function is provided, it will be called with the data as an argument.",
4562
+ "type": "KeyPathOf<TData>"
4563
+ },
4530
4564
  {
4531
4565
  "name": "width",
4532
4566
  "description": "The width of the column",
@@ -4574,14 +4608,16 @@
4574
4608
  }
4575
4609
  ],
4576
4610
  "properties": [
4577
- {
4578
- "name": "tooltipSelector",
4579
- "type": "(object extends TData ? string : TData extends readonly any[] ? Extract<keyof TData, `${number}`> | SubKeyPathOf<TData, Extract<keyof TData, `${number}`>, 1> : TData extends object ? Extract<...> | SubKeyPathOf<...> : never) | ((data: TData) => string | undefined) | undefined"
4580
- },
4581
4611
  {
4582
4612
  "name": "getEditContentTemplate",
4583
4613
  "type": "undefined"
4584
4614
  },
4615
+ {
4616
+ "name": "tooltipSelector",
4617
+ "attribute": "tooltipSelector",
4618
+ "description": "The data selector of the column to use as a tooltip. If a function is provided, it will be called with the data as an argument.",
4619
+ "type": "(object extends TData ? string : TData extends readonly any[] ? Extract<keyof TData, `${number}`> | SubKeyPathOf<TData, Extract<keyof TData, `${number}`>, 1> : TData extends object ? Extract<...> | SubKeyPathOf<...> : never) | ((data: TData) => string | undefined) | undefined"
4620
+ },
4585
4621
  {
4586
4622
  "name": "regex",
4587
4623
  "type": "RegExp"
@@ -5374,6 +5410,11 @@
5374
5410
  "description": "The currency of the values.",
5375
5411
  "type": "Currency | undefined"
5376
5412
  },
5413
+ {
5414
+ "name": "currencyDataSelector",
5415
+ "description": "The key path to the currency of the values.",
5416
+ "type": "KeyPathOf<TData>"
5417
+ },
5377
5418
  {
5378
5419
  "name": "width",
5379
5420
  "description": "The width of the column",
@@ -5431,6 +5472,12 @@
5431
5472
  "description": "The currency of the values.",
5432
5473
  "type": "Currency | undefined"
5433
5474
  },
5475
+ {
5476
+ "name": "currencyDataSelector",
5477
+ "attribute": "currencyDataSelector",
5478
+ "description": "The key path to the currency of the values.",
5479
+ "type": "(object extends TData ? string : TData extends readonly any[] ? Extract<keyof TData, `${number}`> | SubKeyPathOf<TData, Extract<keyof TData, `${number}`>, 1> : TData extends object ? Extract<...> | SubKeyPathOf<...> : never) | undefined"
5480
+ },
5434
5481
  {
5435
5482
  "name": "sumHeading",
5436
5483
  "type": "string | undefined"
@@ -1,6 +1,6 @@
1
- import { Component, HTMLTemplateResult } from '@a11d/lit';
2
- import { ColumnDefinition } from '../ColumnDefinition.js';
3
- import { DataGrid, DataGridCell } from '../index.js';
1
+ import { Component, type HTMLTemplateResult } from '@a11d/lit';
2
+ import { type ColumnDefinition } from '../ColumnDefinition.js';
3
+ import { type DataGrid, type DataGridCell } from '../index.js';
4
4
  /**
5
5
  * @attr dataGrid
6
6
  * @attr data
@@ -1 +1 @@
1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