ag-grid-community 35.2.0 → 35.2.1

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.
@@ -2393,7 +2393,7 @@ function _findEnterpriseCoreModule(modules) {
2393
2393
  }
2394
2394
 
2395
2395
  // packages/ag-grid-community/src/version.ts
2396
- var VERSION = "35.2.0";
2396
+ var VERSION = "35.2.1";
2397
2397
 
2398
2398
  // packages/ag-grid-community/src/validation/logging.ts
2399
2399
  var MAX_URL_LENGTH = 2e3;
@@ -23712,19 +23712,20 @@ var shared_default = ':where([class^=ag-]),:where([class^=ag-]):after,:where([cl
23712
23712
  // packages/ag-grid-community/src/agStack/theming/inject.ts
23713
23713
  var IS_SSR = typeof window !== "object" || !window?.document?.fonts?.forEach;
23714
23714
  var FORCE_LEGACY_THEMES = false;
23715
- var _injectGlobalCSS = (css, styleContainer, debugId, layer, priority, nonce, isParams = false) => {
23715
+ var _injectGlobalCSS = (rawCss, styleContainer, debugId, layer, priority, nonce, isParams = false) => {
23716
23716
  if (IS_SSR || FORCE_LEGACY_THEMES) {
23717
23717
  return;
23718
23718
  }
23719
+ let injectedCss = rawCss;
23719
23720
  if (layer) {
23720
- css = `@layer ${CSS.escape(layer).replaceAll("\\.", ".")} { ${css} }`;
23721
+ injectedCss = `@layer ${CSS.escape(layer).replaceAll("\\.", ".")} { ${rawCss} }`;
23721
23722
  }
23722
23723
  let injections = injectionState.map.get(styleContainer);
23723
23724
  if (!injections) {
23724
23725
  injections = [];
23725
23726
  injectionState.map.set(styleContainer, injections);
23726
23727
  }
23727
- if (injections.some((i) => i.css === css)) {
23728
+ if (injections.some((i) => i.injectedCss === injectedCss)) {
23728
23729
  return;
23729
23730
  }
23730
23731
  const el = document.createElement("style");
@@ -23733,8 +23734,8 @@ var _injectGlobalCSS = (css, styleContainer, debugId, layer, priority, nonce, is
23733
23734
  }
23734
23735
  el.dataset.agCss = debugId;
23735
23736
  el.dataset.agCssVersion = VERSION;
23736
- el.textContent = css;
23737
- const newInjection = { css, el, priority, isParams };
23737
+ el.textContent = injectedCss;
23738
+ const newInjection = { rawCss, injectedCss, el, priority, isParams };
23738
23739
  let insertAfter;
23739
23740
  for (const injection of injections) {
23740
23741
  if (injection.priority > priority) {
@@ -23801,7 +23802,7 @@ var removeStaleParamsCss = (styleContainer, deleteAll = false) => {
23801
23802
  }
23802
23803
  const injections = injectionState.map.get(styleContainer) ?? [];
23803
23804
  for (let i = injections.length - 1; i >= 0; i--) {
23804
- if (deleteAll || injections[i].isParams && !neededCss.has(injections[i].css)) {
23805
+ if (deleteAll || injections[i].isParams && !neededCss.has(injections[i].rawCss)) {
23805
23806
  injections[i].el.remove();
23806
23807
  injections.splice(i, 1);
23807
23808
  }