sccoreui 5.6.14 → 5.6.16
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.
|
@@ -12,11 +12,13 @@ const range_selection_1 = require("@ag-grid-enterprise/range-selection");
|
|
|
12
12
|
const react_2 = require("react");
|
|
13
13
|
core_1.ModuleRegistry.registerModules([client_side_row_model_1.ClientSideRowModelModule, range_selection_1.RangeSelectionModule]);
|
|
14
14
|
core_2.LicenseManager.setLicenseKey("Using_this_{AG_Grid}_Enterprise_key_{AG-056800}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Sellers_Commerce_LLC}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{SellersCommerce}_only_for_{2}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_working_on_{SellersCommerce}_need_to_be_licensed___{SellersCommerce}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{14_April_2025}____[v3]_[01]_MTc0NDU4NTIwMDAwMA==895f2234e1659afcfba586110daf0549");
|
|
15
|
-
const AgGrid = ({ gridData, myRowData }) => {
|
|
15
|
+
const AgGrid = ({ gridData, myRowData, propsFromChild }) => {
|
|
16
16
|
const [rowData, setRowData] = (0, react_2.useState)(gridData.rowData);
|
|
17
17
|
const [columnDefs] = (0, react_2.useState)(gridData.columnData);
|
|
18
18
|
console.log(gridData.rowData, 'row data in ag grid');
|
|
19
19
|
console.log(myRowData, 'my row data in grid');
|
|
20
|
+
console.log(propsFromChild, 'props in grid');
|
|
21
|
+
console.log(propsFromChild.rowData, 'row data from props in grid');
|
|
20
22
|
const defaultColDef = (0, react_2.useMemo)(() => {
|
|
21
23
|
return {
|
|
22
24
|
flex: 1,
|
|
@@ -10,9 +10,10 @@ function ParentForGrid(props) {
|
|
|
10
10
|
columnData: props === null || props === void 0 ? void 0 : props.columnData,
|
|
11
11
|
});
|
|
12
12
|
const [myRowData] = (0, react_1.useState)(props.rowData);
|
|
13
|
-
console.log(props,
|
|
13
|
+
console.log(props, "props from product");
|
|
14
|
+
console.log(props.rowData, 'row data from props in paretn');
|
|
14
15
|
console.log(gridData.rowData, 'row data in parent');
|
|
15
16
|
console.log(myRowData, 'my row data in parent ');
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(AgGrid_1.default, { gridData: gridData, myRowData: myRowData }), (0, jsx_runtime_1.jsx)("div", { children: props === null || props === void 0 ? void 0 : props.message })] }));
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(AgGrid_1.default, { gridData: gridData, myRowData: myRowData, propsFromChild: props }), (0, jsx_runtime_1.jsx)("div", { children: props === null || props === void 0 ? void 0 : props.message })] }));
|
|
17
18
|
}
|
|
18
19
|
exports.default = ParentForGrid;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "ag-grid-community/styles/ag-grid.css";
|
|
2
2
|
import "ag-grid-community/styles/ag-theme-quartz.css";
|
|
3
|
-
declare const AgGrid: ({ gridData, myRowData }: {
|
|
3
|
+
declare const AgGrid: ({ gridData, myRowData, propsFromChild }: {
|
|
4
4
|
gridData: any;
|
|
5
5
|
myRowData: any;
|
|
6
|
+
propsFromChild: any;
|
|
6
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default AgGrid;
|