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.
- package/dist/ag-grid-community.js +8 -7
- package/dist/ag-grid-community.min.js +2 -2
- package/dist/ag-grid-community.min.noStyle.js +2 -2
- package/dist/ag-grid-community.noStyle.js +8 -7
- package/dist/package/main.cjs.js +8 -7
- package/dist/package/main.cjs.min.js +2 -2
- package/dist/package/main.esm.min.mjs +2 -2
- package/dist/package/main.esm.mjs +8 -7
- package/dist/package/package.json +2 -2
- package/dist/package.json +2 -2
- package/dist/types/package.json +2 -2
- package/dist/types/src/agStack/theming/inject.d.ts +3 -2
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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.
|
|
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 = (
|
|
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
|
-
|
|
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.
|
|
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 =
|
|
23737
|
-
const newInjection = {
|
|
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].
|
|
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
|
}
|