chem-generic-ui 2.4.0-beta.1 → 2.4.0-beta.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Chem-Generic-UI Changelog
2
2
 
3
+ ## [Unreleased]
4
+
5
+ ### Features and Enhancements
6
+ - **Template settings** for Designers — enable/disable the common layer-header functions (record time, add reaction, add/remove layer) per template via the gear icon in the grid's Template column; each switch saves immediately and applies to every version of the template. Saved segments honor the settings through the flat `settings` field serialized by the gem. Requires labimotion with the klass `settings` column and its host ELN twin migration `add_settings_to_klasses`. ([#904](https://github.com/LabIMotion/chem-generic-ui/issues/904))
7
+ - Support linking **Cell Line** elements in the **Link Element** field — cell lines can be dragged onto, and searched for in, generic Link Element fields (`CELL_LINE` enabled in the permit-target whitelist). ([#906](https://github.com/LabIMotion/chem-generic-ui/issues/906))
8
+
9
+ ### Bug Fixes
10
+ - Fixed `searchTargets` leaking `generic_grid` into the Link Element drag-and-drop accept list (used a non-existent `PERMIT_TARGET.GRID` key instead of `GENERIC_GRID`). ([#923](https://github.com/LabIMotion/chem-generic-ui/issues/923))
11
+
12
+ ## [2.3.0]
13
+
14
+ ### Breaking Changes
15
+ - The library no longer registers AG Grid modules on import. The host application must call `ModuleRegistry.registerModules([AllCommunityModule])` (from `ag-grid-community`) before rendering any chem-generic-ui component that contains a grid. See the "Host application setup" section in the README.
16
+
3
17
  ## [2.1.0]
4
18
 
5
19
  ### Features and Enhancements
package/README.md CHANGED
@@ -37,6 +37,20 @@ or Yarn:
37
37
  yarn add chem-generic-ui
38
38
  ```
39
39
 
40
+ ## Host application setup
41
+
42
+ ### AG Grid module registration
43
+
44
+ `ag-grid-community` and `ag-grid-react` (`>=33.0.0 <34.0.0`) are peer dependencies — the host application provides them. Since version 2.3.0, chem-generic-ui no longer registers AG Grid modules itself. Register them once in your application entry point, before rendering any chem-generic-ui component that contains a grid:
45
+
46
+ ```js
47
+ import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
48
+
49
+ ModuleRegistry.registerModules([AllCommunityModule]);
50
+ ```
51
+
52
+ Without this, AG Grid throws error #200 ("unable to use … as the module is not registered") when a grid component mounts.
53
+
40
54
  ## Support and Community
41
55
 
42
56
  If you have questions, comments, or suggestions, the best place to share them is in the [Discussions](https://github.com/LabIMotion/chem-generic-ui/discussions) section. We welcome your feedback and participation!