@adaptabletools/adaptable-angular-aggrid 23.0.10 → 23.0.11

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 (3) hide show
  1. package/README.md +33 -0
  2. package/index.css +5 -2
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -8,6 +8,39 @@ AdapTable provides a huge range of Data Grid (and FDC3) features, which extend A
8
8
 
9
9
  For full details on how to install, instantiate and reference AdapTable programmatically at run-time please read the [AdapTable Angular Documentation](https://www.adaptabletools.com/docs/angular-overview).
10
10
 
11
+ ## CommonJS Build Warnings
12
+
13
+ When building an Angular application which uses AdapTable, you may see warnings like:
14
+
15
+ ```
16
+ [WARNING] Module 'react' used by 'node_modules/@adaptabletools/adaptable/...' is not ESM
17
+ CommonJS or AMD dependencies can cause optimization bailouts.
18
+ ```
19
+
20
+ These warnings are emitted by all Angular builders — both the esbuild-based ones (`@angular/build:application`, `@angular-devkit/build-angular:browser-esbuild`) and the older webpack-based one (`@angular-devkit/build-angular:browser`, where the message reads `'...' depends on 'react'` instead).
21
+
22
+ These warnings refer to React ecosystem packages used internally by AdapTable (`react`, `react-dom`, and the transitive dependency `use-sync-external-store`). These packages are published as CommonJS only — no ESM distribution exists — so the warnings cannot be avoided at the package level. They are harmless: the build output is correct, and the "optimization bailout" only means the bundler cannot tree-shake inside those specific modules (which would have no effect on React's monolithic runtime anyway).
23
+
24
+ To silence the warnings, add the packages to the [`allowedCommonJsDependencies`](https://angular.dev/tools/cli/build#configuring-commonjs-dependencies) build option — in `angular.json`, or in `project.json` if you are using an Nx monorepo:
25
+
26
+ ```json
27
+ {
28
+ "targets": {
29
+ "build": {
30
+ "executor": "@angular/build:application",
31
+ "options": {
32
+ "allowedCommonJsDependencies": [
33
+ "react",
34
+ "react-dom",
35
+ "use-sync-external-store"
36
+ ]
37
+ }
38
+ }
39
+ }
40
+ }
41
+ ```
42
+
43
+ Listing a package name also covers its deep imports (e.g. `react/jsx-runtime`, `react-dom/client`, `use-sync-external-store/shim`), so these three entries are sufficient.
11
44
 
12
45
  ## Demos
13
46
 
package/index.css CHANGED
@@ -708,8 +708,8 @@
708
708
  .twa\:max-h-\[min\(calc\(--spacing\(72\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\] {
709
709
  max-height: min(calc(calc(var(--ab-base-space) * 72) - calc(var(--ab-base-space) * 9)), calc(var(--available-height) - calc(var(--ab-base-space) * 9)));
710
710
  }
711
- .twa\:max-h-\[min\(var\(--available-height\)\,80vh\)\] {
712
- max-height: min(var(--available-height), 80vh);
711
+ .twa\:max-h-\[min\(var\(--available-height\,80vh\)\,80vh\)\] {
712
+ max-height: min(var(--available-height,80vh), 80vh);
713
713
  }
714
714
  .twa\:max-h-full {
715
715
  max-height: 100%;
@@ -1020,6 +1020,9 @@
1020
1020
  .twa\:max-w-\[min\(var\(--available-width\)\,80vw\)\] {
1021
1021
  max-width: min(var(--available-width), 80vw);
1022
1022
  }
1023
+ .twa\:max-w-\[min\(var\(--available-width\,80vw\)\,80vw\)\] {
1024
+ max-width: min(var(--available-width,80vw), 80vw);
1025
+ }
1023
1026
  .twa\:max-w-full {
1024
1027
  max-width: 100%;
1025
1028
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-angular-aggrid",
3
- "version": "23.0.10",
3
+ "version": "23.0.11",
4
4
  "description": "Angular version of AdapTable - the powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "license": "contact sales@adaptabletools.com for details",
6
6
  "peerDependencies": {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "tslib": "^2.8.1",
14
- "@adaptabletools/adaptable": "23.0.10"
14
+ "@adaptabletools/adaptable": "23.0.11"
15
15
  },
16
16
  "exports": {
17
17
  "./index.css": "./index.css",