ag-grid-community 33.0.2 → 33.0.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.
@@ -17881,8 +17881,8 @@ class BaseGridSerializingSession {
17881
17881
  return processedValue;
17882
17882
  }
17883
17883
  shouldRenderGroupSummaryCell(node, column, currentColumnIndex) {
17884
- const isGroupNode = node && node.group;
17885
- // only on group rows
17884
+ // only on group rows when grouping, and not for tree data group nodes
17885
+ const isGroupNode = node.group && !this.gos.get('treeData');
17886
17886
  if (!isGroupNode) {
17887
17887
  return false;
17888
17888
  }
@@ -25865,6 +25865,9 @@ class RowContainerEventsFeature extends beanStub_1.BeanStub {
25865
25865
  }
25866
25866
  const { cellCtrl, rowCtrl } = this.getControlsForEventTarget(mouseEvent.target);
25867
25867
  if (eventName === 'contextmenu') {
25868
+ if (cellCtrl?.column) {
25869
+ cellCtrl.dispatchCellContextMenuEvent(mouseEvent);
25870
+ }
25868
25871
  this.beans.contextMenuSvc?.handleContextMenuMouseEvent(mouseEvent, undefined, rowCtrl, cellCtrl);
25869
25872
  }
25870
25873
  else {
@@ -34067,6 +34070,9 @@ class TouchService extends beanStub_1.BeanStub {
34067
34070
  }
34068
34071
  const listener = (mouseListener, touch, touchEvent) => {
34069
34072
  const { rowCtrl, cellCtrl } = ctrl.getControlsForEventTarget(touchEvent?.target ?? null);
34073
+ if (cellCtrl?.column) {
34074
+ cellCtrl.dispatchCellContextMenuEvent(touchEvent ?? null);
34075
+ }
34070
34076
  this.beans.contextMenuSvc?.handleContextMenuMouseEvent(undefined, touchEvent, rowCtrl, cellCtrl);
34071
34077
  };
34072
34078
  this.mockContextMenu(ctrl, ctrl.element, listener);
@@ -47318,7 +47324,7 @@ exports.coreDefaults = {
47318
47324
  ref: 'textColor',
47319
47325
  },
47320
47326
  headerCellHoverBackgroundColor: 'transparent',
47321
- headerCellMovingBackgroundColor: { ref: 'backgroundColor' },
47327
+ headerCellMovingBackgroundColor: { ref: 'headerCellHoverBackgroundColor' },
47322
47328
  headerCellBackgroundTransitionDuration: '0.2s',
47323
47329
  cellTextColor: {
47324
47330
  ref: 'textColor',
@@ -48528,7 +48534,7 @@ exports.shadowValueToCss = shadowValueToCss;
48528
48534
  exports.borderStyleValueToCss = literalToCSS;
48529
48535
  const fontFamilyValueToCss = (value) => {
48530
48536
  if (typeof value === 'string')
48531
- return quoteUnsafeChars(value);
48537
+ return value;
48532
48538
  if (value && 'googleFont' in value)
48533
48539
  return (0, exports.fontFamilyValueToCss)(value.googleFont);
48534
48540
  if (value && 'ref' in value)
@@ -48547,9 +48553,10 @@ const fontFamilyValueToCss = (value) => {
48547
48553
  };
48548
48554
  exports.fontFamilyValueToCss = fontFamilyValueToCss;
48549
48555
  const quoteUnsafeChars = (font) =>
48550
- // don't quote safe identifier names, so that people can specify fonts
48551
- // like sans-serif which are keywords not strings
48552
- /^[\w-]+$/.test(font) ? font : JSON.stringify(font);
48556
+ // don't quote var() expressions or quote safe identifier names, so that
48557
+ // people can specify fonts like sans-serif which are keywords not strings,
48558
+ // or var(--my-var)
48559
+ /^[\w-]+$|\w\(/.test(font) ? font : JSON.stringify(font);
48553
48560
  exports.fontWeightValueToCss = literalToCSS;
48554
48561
  const imageValueToCss = (value) => {
48555
48562
  if (typeof value === 'string')
@@ -54696,7 +54703,7 @@ exports.VanillaFrameworkOverrides = VanillaFrameworkOverrides;
54696
54703
  Object.defineProperty(exports, "__esModule", ({ value: true }));
54697
54704
  exports.VERSION = void 0;
54698
54705
  // DO NOT UPDATE MANUALLY: Generated from script during build time
54699
- exports.VERSION = '33.0.2';
54706
+ exports.VERSION = '33.0.3';
54700
54707
 
54701
54708
 
54702
54709
  /***/ }),