apex-grid 3.0.1 → 3.2.0

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 (58) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/README.md +1 -1
  3. package/components/cell.d.ts +7 -0
  4. package/components/cell.js +33 -0
  5. package/components/cell.js.map +1 -1
  6. package/components/filter-row.d.ts +1 -1
  7. package/components/grid.d.ts +20 -5
  8. package/components/grid.js +22 -1
  9. package/components/grid.js.map +1 -1
  10. package/components/header-row.d.ts +3 -3
  11. package/components/header.d.ts +2 -2
  12. package/components/header.js +1 -1
  13. package/components/header.js.map +1 -1
  14. package/components/paginator.d.ts +1 -1
  15. package/components/row.d.ts +11 -4
  16. package/components/row.js +35 -1
  17. package/components/row.js.map +1 -1
  18. package/components/toolbar.d.ts +2 -2
  19. package/controllers/data-operation.js +1 -0
  20. package/controllers/data-operation.js.map +1 -1
  21. package/controllers/dom.js +1 -0
  22. package/controllers/dom.js.map +1 -1
  23. package/controllers/resize.d.ts +1 -1
  24. package/controllers/sort.d.ts +1 -1
  25. package/controllers/sort.js +2 -2
  26. package/controllers/sort.js.map +1 -1
  27. package/controllers/state.d.ts +34 -1
  28. package/controllers/state.js +50 -1
  29. package/controllers/state.js.map +1 -1
  30. package/custom-elements.json +437 -3
  31. package/docs/assets/hierarchy.js +1 -1
  32. package/docs/classes/ApexGrid.html +27 -21
  33. package/docs/hierarchy.html +1 -1
  34. package/docs/index.html +1 -1
  35. package/docs/interfaces/BaseApexCellContext.html +1 -1
  36. package/docs/interfaces/BaseApexEditorContext.html +1 -1
  37. package/docs/interfaces/CSVExportOptions.html +1 -1
  38. package/docs/interfaces/ExportOptions.html +1 -1
  39. package/docs/interfaces/PaginationState.html +1 -1
  40. package/docs/media/_tokens.scss +98 -0
  41. package/docs/media/package.json +1 -1
  42. package/internal/feature-module.d.ts +135 -3
  43. package/internal/feature-module.js +20 -1
  44. package/internal/feature-module.js.map +1 -1
  45. package/internal/index.d.ts +4 -2
  46. package/internal/index.js +2 -0
  47. package/internal/index.js.map +1 -1
  48. package/package.json +1 -1
  49. package/styles/_tokens.css.js +1 -1
  50. package/styles/_tokens.css.js.map +1 -1
  51. package/styles/body-cell/body-cell.css.js +1 -1
  52. package/styles/body-cell/body-cell.css.js.map +1 -1
  53. package/styles/grid/_grid.base.css.js +1 -1
  54. package/styles/grid/_grid.base.css.js.map +1 -1
  55. package/styles/grid/grid.css.js +1 -1
  56. package/styles/grid/grid.css.js.map +1 -1
  57. package/styles/paginator/paginator.css.js +1 -1
  58. package/styles/paginator/paginator.css.js.map +1 -1
@@ -806,6 +806,37 @@
806
806
  "default": "0",
807
807
  "description": "1-based column index used to populate `aria-colindex`. Accounts for the\nauto-rendered selection + expansion columns ahead of the data columns."
808
808
  },
809
+ {
810
+ "kind": "field",
811
+ "name": "decorationVersion",
812
+ "type": {
813
+ "text": "number"
814
+ },
815
+ "privacy": "public",
816
+ "default": "0",
817
+ "description": "Reactive token forwarded from StateController.decorationVersion.\nChanging it re-runs willUpdate so module-driven cell decoration is\nre-evaluated when it changes (e.g. while dragging a selection range). Stays\n`0` for the community grid, so cells are never re-decorated there."
818
+ },
819
+ {
820
+ "kind": "field",
821
+ "name": "#decoratedKeys",
822
+ "privacy": "private",
823
+ "type": {
824
+ "text": "string[]"
825
+ },
826
+ "default": "[]",
827
+ "description": "Decoration attribute keys applied on the previous update, for cleanup."
828
+ },
829
+ {
830
+ "kind": "method",
831
+ "name": "#applyDecoration",
832
+ "privacy": "private",
833
+ "return": {
834
+ "type": {
835
+ "text": "void"
836
+ }
837
+ },
838
+ "description": "Reflects module-contributed decoration attributes (see CellDecorator)\nonto the cell host, reconciling against the previous update so attributes\nthat are no longer present are removed. Inert for the community grid:\n`state.decorateCell` returns `null` with no modules, so nothing is set."
839
+ },
809
840
  {
810
841
  "kind": "field",
811
842
  "name": "#handleClick",
@@ -1319,6 +1350,10 @@
1319
1350
  "description": "Grid edge/shadow override. Default is a flat 1px hairline edge; set to `var(--ag-shadow-card)` for the elevated card look, or `none` to remove it.",
1320
1351
  "name": "--ag-grid-shadow"
1321
1352
  },
1353
+ {
1354
+ "description": "Host card background. Defaults to a subtle light gradient; override with a flat color (or use `theme=\"dark\"`) for dark themes.",
1355
+ "name": "--ag-grid-bg"
1356
+ },
1322
1357
  {
1323
1358
  "description": "Grid card background (must be opaque).",
1324
1359
  "name": "--ag-surface"
@@ -2492,6 +2527,20 @@
2492
2527
  }
2493
2528
  ]
2494
2529
  },
2530
+ {
2531
+ "kind": "method",
2532
+ "name": "bodyPointerHandler",
2533
+ "privacy": "protected",
2534
+ "parameters": [
2535
+ {
2536
+ "name": "event",
2537
+ "type": {
2538
+ "text": "PointerEvent"
2539
+ }
2540
+ }
2541
+ ],
2542
+ "description": "Forwards body-cell pointer interactions (press / drag-over / release) to\nfeature modules via StateController.handleCellInteraction. Gated on\nthere being at least one registered module so the community grid does no\nper-event work (it registers none). The seam a range-selection feature\nbuilds on."
2543
+ },
2495
2544
  {
2496
2545
  "kind": "method",
2497
2546
  "name": "renderHeaderRow",
@@ -2791,6 +2840,13 @@
2791
2840
  "description": "Enables drag-and-drop column reordering on the column headers.",
2792
2841
  "fieldName": "columnReordering",
2793
2842
  "attribute": "column-reordering"
2843
+ },
2844
+ {
2845
+ "type": {
2846
+ "text": "string"
2847
+ },
2848
+ "description": "Space-separated theme flags. `dark` opts into the built-in dark palette; `tinted` mixes `--ag-brand` into the chrome surfaces. Combine as `theme=\"dark tinted\"`.",
2849
+ "name": "theme"
2794
2850
  }
2795
2851
  ],
2796
2852
  "superclass": {
@@ -3029,7 +3085,7 @@
3029
3085
  {
3030
3086
  "name": "e",
3031
3087
  "type": {
3032
- "text": "Event"
3088
+ "text": "MouseEvent"
3033
3089
  }
3034
3090
  }
3035
3091
  ]
@@ -3423,6 +3479,26 @@
3423
3479
  "default": "null",
3424
3480
  "description": "The column key currently being edited in this row, or `null`."
3425
3481
  },
3482
+ {
3483
+ "kind": "field",
3484
+ "name": "decorationVersion",
3485
+ "type": {
3486
+ "text": "number"
3487
+ },
3488
+ "privacy": "public",
3489
+ "default": "0",
3490
+ "description": "Reactive token from StateController.decorationVersion, forwarded to\neach cell so a decoration-only change re-renders the row's cells. Stays `0`\nfor the community grid."
3491
+ },
3492
+ {
3493
+ "kind": "field",
3494
+ "name": "#presented",
3495
+ "privacy": "private",
3496
+ "type": {
3497
+ "text": "PresentedRow | null"
3498
+ },
3499
+ "default": "null",
3500
+ "description": "Result of the feature-module row presenter for the current update, or\n`null` when no module renders this row full-width (the normal case).\nComputed in willUpdate and consumed in render."
3501
+ },
3426
3502
  {
3427
3503
  "kind": "field",
3428
3504
  "name": "ariaRowOffset",
@@ -6157,6 +6233,10 @@
6157
6233
  "type": {
6158
6234
  "text": "ColumnConfiguration<T>"
6159
6235
  }
6236
+ },
6237
+ {
6238
+ "name": "additive",
6239
+ "default": "false"
6160
6240
  }
6161
6241
  ]
6162
6242
  },
@@ -6477,6 +6557,118 @@
6477
6557
  ],
6478
6558
  "description": "Look up a feature controller contributed by a GridFeatureModule,\nby its module id. Returns `undefined` when no such module is registered."
6479
6559
  },
6560
+ {
6561
+ "kind": "method",
6562
+ "name": "applyModuleTransforms",
6563
+ "privacy": "public",
6564
+ "return": {
6565
+ "type": {
6566
+ "text": "T[]"
6567
+ }
6568
+ },
6569
+ "parameters": [
6570
+ {
6571
+ "name": "rows",
6572
+ "type": {
6573
+ "text": "T[]"
6574
+ }
6575
+ }
6576
+ ],
6577
+ "description": "Runs the post-pipeline row transforms contributed by feature modules\nimplementing RowTransformer, in registration order. Returns the\ninput unchanged when no such module is registered — the community grid path\nis a no-op pass-through."
6578
+ },
6579
+ {
6580
+ "kind": "method",
6581
+ "name": "presentRow",
6582
+ "privacy": "public",
6583
+ "return": {
6584
+ "type": {
6585
+ "text": "PresentedRow | null"
6586
+ }
6587
+ },
6588
+ "parameters": [
6589
+ {
6590
+ "name": "row",
6591
+ "type": {
6592
+ "text": "T"
6593
+ }
6594
+ },
6595
+ {
6596
+ "name": "ctx",
6597
+ "type": {
6598
+ "text": "RowPresenterContext<T>"
6599
+ }
6600
+ }
6601
+ ],
6602
+ "description": "Asks feature modules implementing RowPresenter whether they render\nthe given row as full-width custom content (e.g. a group header). Returns\nthe first non-null result, or `null` when no module owns the row."
6603
+ },
6604
+ {
6605
+ "kind": "field",
6606
+ "name": "#decorationVersion",
6607
+ "privacy": "private",
6608
+ "type": {
6609
+ "text": "number"
6610
+ },
6611
+ "default": "0",
6612
+ "description": "Monotonic token bumped by bumpDecoration whenever module-driven cell\ndecoration changes. Forwarded down to each cell as a reactive property so a\ndecoration-only change (e.g. dragging a selection range) re-renders cells\nwithout re-running the data pipeline. Always `0` for the community grid."
6613
+ },
6614
+ {
6615
+ "kind": "field",
6616
+ "name": "decorationVersion",
6617
+ "type": {
6618
+ "text": "number"
6619
+ },
6620
+ "privacy": "public",
6621
+ "readonly": true
6622
+ },
6623
+ {
6624
+ "kind": "method",
6625
+ "name": "bumpDecoration",
6626
+ "privacy": "public",
6627
+ "return": {
6628
+ "type": {
6629
+ "text": "void"
6630
+ }
6631
+ },
6632
+ "description": "Signals that CellDecorator output may have changed. Bumps the\ndecorationVersion and requests a host update so cells re-run their\ndecoration. Called by feature modules after mutating decoration state."
6633
+ },
6634
+ {
6635
+ "kind": "method",
6636
+ "name": "decorateCell",
6637
+ "privacy": "public",
6638
+ "return": {
6639
+ "type": {
6640
+ "text": "CellDecoration | null"
6641
+ }
6642
+ },
6643
+ "parameters": [
6644
+ {
6645
+ "name": "ctx",
6646
+ "type": {
6647
+ "text": "CellDecoratorContext<T>"
6648
+ }
6649
+ }
6650
+ ],
6651
+ "description": "Collects per-cell decoration contributed by feature modules implementing\nCellDecorator, merging their attribute maps (later modules win on a\nkey clash). Returns `null` when no module decorates the cell — the community\ngrid path, where each cell applies nothing."
6652
+ },
6653
+ {
6654
+ "kind": "method",
6655
+ "name": "handleCellInteraction",
6656
+ "privacy": "public",
6657
+ "return": {
6658
+ "type": {
6659
+ "text": "void"
6660
+ }
6661
+ },
6662
+ "parameters": [
6663
+ {
6664
+ "name": "interaction",
6665
+ "type": {
6666
+ "text": "CellInteraction<T>"
6667
+ }
6668
+ }
6669
+ ],
6670
+ "description": "Forwards a body-cell pointer interaction to every feature module that\nimplements CellInteractionHandler. No-op for the community grid\n(no modules); the grid only calls this when modules are registered."
6671
+ },
6480
6672
  {
6481
6673
  "kind": "method",
6482
6674
  "name": "hostConnected",
@@ -7458,8 +7650,114 @@
7458
7650
  {
7459
7651
  "kind": "javascript-module",
7460
7652
  "path": "src/internal/feature-module.ts",
7461
- "declarations": [],
7462
- "exports": []
7653
+ "declarations": [
7654
+ {
7655
+ "kind": "function",
7656
+ "name": "isRowTransformer",
7657
+ "return": {
7658
+ "type": {
7659
+ "text": "controller is RowTransformer<T>"
7660
+ }
7661
+ },
7662
+ "parameters": [
7663
+ {
7664
+ "name": "controller",
7665
+ "type": {
7666
+ "text": "unknown"
7667
+ }
7668
+ }
7669
+ ],
7670
+ "description": "Runtime type-guard for RowTransformer."
7671
+ },
7672
+ {
7673
+ "kind": "function",
7674
+ "name": "isRowPresenter",
7675
+ "return": {
7676
+ "type": {
7677
+ "text": "controller is RowPresenter<T>"
7678
+ }
7679
+ },
7680
+ "parameters": [
7681
+ {
7682
+ "name": "controller",
7683
+ "type": {
7684
+ "text": "unknown"
7685
+ }
7686
+ }
7687
+ ],
7688
+ "description": "Runtime type-guard for RowPresenter."
7689
+ },
7690
+ {
7691
+ "kind": "function",
7692
+ "name": "isCellDecorator",
7693
+ "return": {
7694
+ "type": {
7695
+ "text": "controller is CellDecorator<T>"
7696
+ }
7697
+ },
7698
+ "parameters": [
7699
+ {
7700
+ "name": "controller",
7701
+ "type": {
7702
+ "text": "unknown"
7703
+ }
7704
+ }
7705
+ ],
7706
+ "description": "Runtime type-guard for CellDecorator."
7707
+ },
7708
+ {
7709
+ "kind": "function",
7710
+ "name": "isCellInteractionHandler",
7711
+ "return": {
7712
+ "type": {
7713
+ "text": "controller is CellInteractionHandler<T>"
7714
+ }
7715
+ },
7716
+ "parameters": [
7717
+ {
7718
+ "name": "controller",
7719
+ "type": {
7720
+ "text": "unknown"
7721
+ }
7722
+ }
7723
+ ],
7724
+ "description": "Runtime type-guard for CellInteractionHandler."
7725
+ }
7726
+ ],
7727
+ "exports": [
7728
+ {
7729
+ "kind": "js",
7730
+ "name": "isRowTransformer",
7731
+ "declaration": {
7732
+ "name": "isRowTransformer",
7733
+ "module": "src/internal/feature-module.ts"
7734
+ }
7735
+ },
7736
+ {
7737
+ "kind": "js",
7738
+ "name": "isRowPresenter",
7739
+ "declaration": {
7740
+ "name": "isRowPresenter",
7741
+ "module": "src/internal/feature-module.ts"
7742
+ }
7743
+ },
7744
+ {
7745
+ "kind": "js",
7746
+ "name": "isCellDecorator",
7747
+ "declaration": {
7748
+ "name": "isCellDecorator",
7749
+ "module": "src/internal/feature-module.ts"
7750
+ }
7751
+ },
7752
+ {
7753
+ "kind": "js",
7754
+ "name": "isCellInteractionHandler",
7755
+ "declaration": {
7756
+ "name": "isCellInteractionHandler",
7757
+ "module": "src/internal/feature-module.ts"
7758
+ }
7759
+ }
7760
+ ]
7463
7761
  },
7464
7762
  {
7465
7763
  "kind": "javascript-module",
@@ -7743,6 +8041,54 @@
7743
8041
  "module": "./export.js"
7744
8042
  }
7745
8043
  },
8044
+ {
8045
+ "kind": "js",
8046
+ "name": "CellDecoration",
8047
+ "declaration": {
8048
+ "name": "CellDecoration",
8049
+ "module": "./feature-module.js"
8050
+ }
8051
+ },
8052
+ {
8053
+ "kind": "js",
8054
+ "name": "CellDecorator",
8055
+ "declaration": {
8056
+ "name": "CellDecorator",
8057
+ "module": "./feature-module.js"
8058
+ }
8059
+ },
8060
+ {
8061
+ "kind": "js",
8062
+ "name": "CellDecoratorContext",
8063
+ "declaration": {
8064
+ "name": "CellDecoratorContext",
8065
+ "module": "./feature-module.js"
8066
+ }
8067
+ },
8068
+ {
8069
+ "kind": "js",
8070
+ "name": "CellInteraction",
8071
+ "declaration": {
8072
+ "name": "CellInteraction",
8073
+ "module": "./feature-module.js"
8074
+ }
8075
+ },
8076
+ {
8077
+ "kind": "js",
8078
+ "name": "CellInteractionHandler",
8079
+ "declaration": {
8080
+ "name": "CellInteractionHandler",
8081
+ "module": "./feature-module.js"
8082
+ }
8083
+ },
8084
+ {
8085
+ "kind": "js",
8086
+ "name": "CellInteractionKind",
8087
+ "declaration": {
8088
+ "name": "CellInteractionKind",
8089
+ "module": "./feature-module.js"
8090
+ }
8091
+ },
7746
8092
  {
7747
8093
  "kind": "js",
7748
8094
  "name": "GridFeatureModule",
@@ -7751,6 +8097,70 @@
7751
8097
  "module": "./feature-module.js"
7752
8098
  }
7753
8099
  },
8100
+ {
8101
+ "kind": "js",
8102
+ "name": "PresentedRow",
8103
+ "declaration": {
8104
+ "name": "PresentedRow",
8105
+ "module": "./feature-module.js"
8106
+ }
8107
+ },
8108
+ {
8109
+ "kind": "js",
8110
+ "name": "RowPresenter",
8111
+ "declaration": {
8112
+ "name": "RowPresenter",
8113
+ "module": "./feature-module.js"
8114
+ }
8115
+ },
8116
+ {
8117
+ "kind": "js",
8118
+ "name": "RowPresenterContext",
8119
+ "declaration": {
8120
+ "name": "RowPresenterContext",
8121
+ "module": "./feature-module.js"
8122
+ }
8123
+ },
8124
+ {
8125
+ "kind": "js",
8126
+ "name": "RowTransformer",
8127
+ "declaration": {
8128
+ "name": "RowTransformer",
8129
+ "module": "./feature-module.js"
8130
+ }
8131
+ },
8132
+ {
8133
+ "kind": "js",
8134
+ "name": "isCellDecorator",
8135
+ "declaration": {
8136
+ "name": "isCellDecorator",
8137
+ "module": "./feature-module.js"
8138
+ }
8139
+ },
8140
+ {
8141
+ "kind": "js",
8142
+ "name": "isCellInteractionHandler",
8143
+ "declaration": {
8144
+ "name": "isCellInteractionHandler",
8145
+ "module": "./feature-module.js"
8146
+ }
8147
+ },
8148
+ {
8149
+ "kind": "js",
8150
+ "name": "isRowPresenter",
8151
+ "declaration": {
8152
+ "name": "isRowPresenter",
8153
+ "module": "./feature-module.js"
8154
+ }
8155
+ },
8156
+ {
8157
+ "kind": "js",
8158
+ "name": "isRowTransformer",
8159
+ "declaration": {
8160
+ "name": "isRowTransformer",
8161
+ "module": "./feature-module.js"
8162
+ }
8163
+ },
7754
8164
  {
7755
8165
  "kind": "js",
7756
8166
  "name": "registerComponent",
@@ -7767,6 +8177,14 @@
7767
8177
  "module": "./types.js"
7768
8178
  }
7769
8179
  },
8180
+ {
8181
+ "kind": "js",
8182
+ "name": "ColumnConfiguration",
8183
+ "declaration": {
8184
+ "name": "ColumnConfiguration",
8185
+ "module": "./types.js"
8186
+ }
8187
+ },
7770
8188
  {
7771
8189
  "kind": "js",
7772
8190
  "name": "GridHost",
@@ -7774,6 +8192,22 @@
7774
8192
  "name": "GridHost",
7775
8193
  "module": "./types.js"
7776
8194
  }
8195
+ },
8196
+ {
8197
+ "kind": "js",
8198
+ "name": "Keys",
8199
+ "declaration": {
8200
+ "name": "Keys",
8201
+ "module": "./types.js"
8202
+ }
8203
+ },
8204
+ {
8205
+ "kind": "js",
8206
+ "name": "getDisplayColumns",
8207
+ "declaration": {
8208
+ "name": "getDisplayColumns",
8209
+ "module": "./utils.js"
8210
+ }
7777
8211
  }
7778
8212
  ]
7779
8213
  },
@@ -1 +1 @@
1
- window.hierarchyData = "eJyVkctqwzAQRf9l1kqbWPID7VLjdQOBboIXwprYoopkpGkxBP97cQvFDaaJN7Oaq3Pm6grBe4ogT4LvmNhyluZFzSDg2WJDxrsI8gpZPk2nLggS9j0OB9Vi2SnXoq4+0REweDdOg0zSjMFHsCDBOMJwVg3G56XIU0cXCwwaq2IECRT1Znpj85uDkQEvxAxdHt+qofeBXvsft/+xt+uPIcWWz5BreGthDJrOWB3QgTzxQtQTne9m9BcVcSqvRGtL7wiHe1UvJNaaCJF8m4hkwaTShnxY5/In89gnpHkxgx9Ua5yaaj2SIryDvdlee36W1+M4fgGn4Ark"
1
+ window.hierarchyData = "eJyVkbFqwzAQht/lZqVNakk22lrjuYFAl+BBWBdbVJGMdC2G4HcvbqG4wTTxctP9+r77dYEYAiVQR55xxreSiWJXM4h4ctiQDT6BuoDMp+n1GUHBc4/DXrdYdtq3aKpP9AQM3q03oJ6EZPARHSiwnjCedIPpcSny0NHZAYPG6ZRAASWzmd7Y/OZgZJAVc3R5eKuGPkR67X/c/sder9+H5Fs5Q67hrYUxaDrrTEQP6pgVeT3RMz6jv+iEU3klOlcGTzjcqnohsdaEc/FtwsWCSWUshbjO5U/mvk8QxW4G3+vWej3VeiBNeAN7tb32fJnX4zh+AcGzCvA="