sccoreui 6.2.33 → 6.2.35

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.
@@ -155,7 +155,7 @@ function ParentForGrid(props) {
155
155
  if ((props === null || props === void 0 ? void 0 : props.rowModelType) === (constants_1.ROWMODELTYPE === null || constants_1.ROWMODELTYPE === void 0 ? void 0 : constants_1.ROWMODELTYPE.CLIENT_SIDE)) {
156
156
  params === null || params === void 0 ? void 0 : params.api.setGridOption("rowData", []);
157
157
  const result = yield getData(0, 0, currentFeatures);
158
- if (result.rowData || (props === null || props === void 0 ? void 0 : props.pinnedTopRowData)) {
158
+ if (result.rowData) {
159
159
  setGridData(Object.assign(Object.assign({}, gridData), { rowData: result.rowData }));
160
160
  gridRef.current.api.hideOverlay();
161
161
  (_r = params === null || params === void 0 ? void 0 : params.api) === null || _r === void 0 ? void 0 : _r.applyTransaction({ add: result.rowData });
@@ -297,6 +297,11 @@ function ParentForGrid(props) {
297
297
  setIntialColumns(deepCopyOfColumns);
298
298
  }
299
299
  }, [intialColumns]);
300
+ (0, react_1.useEffect)(() => {
301
+ if (props === null || props === void 0 ? void 0 : props.getGridRef) {
302
+ props.getGridRef(gridRef);
303
+ }
304
+ }, [props === null || props === void 0 ? void 0 : props.getGridRef]);
300
305
  const gridStyle = Object.assign({ width: (_c = props === null || props === void 0 ? void 0 : props.style) === null || _c === void 0 ? void 0 : _c.width }, ((totalRecords > 6 || !((_d = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _d === void 0 ? void 0 : _d.isGridAutoHeight)) ? { height: (_e = props === null || props === void 0 ? void 0 : props.style) === null || _e === void 0 ? void 0 : _e.height } : null));
301
306
  // Options that grid should have
302
307
  const gridOptions = Object.assign({ columnDefs: (_f = gridData === null || gridData === void 0 ? void 0 : gridData.columnData) === null || _f === void 0 ? void 0 : _f.map((column) => {
@@ -16,7 +16,8 @@ const FroalaTextEditor = ({ onChange, value, placeholderText, id, className }) =
16
16
  // Callback function to handle content changes
17
17
  const handleModelChange = (content) => {
18
18
  setEditorContent(content);
19
- onChange(content);
19
+ // onChange(content)
20
+ onChange(editorRef.current.editor.el.getInnerHTML());
20
21
  };
21
22
  (0, react_1.useEffect)(() => {
22
23
  setEditorContent(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.2.33",
3
+ "version": "6.2.35",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",