@apexcura/ui-components 0.0.11-Beta227 → 0.0.11-Beta229
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/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -633,6 +633,7 @@ var ModelBody = (props) => {
|
|
|
633
633
|
|
|
634
634
|
// src/Components/Model.tsx
|
|
635
635
|
var ModelElement = (props) => {
|
|
636
|
+
console.log("props in model", props);
|
|
636
637
|
return /* @__PURE__ */ import_react20.default.createElement(
|
|
637
638
|
import_antd13.Modal,
|
|
638
639
|
{
|
|
@@ -667,7 +668,6 @@ var TableElement = (props) => {
|
|
|
667
668
|
const { thead, tbody } = props;
|
|
668
669
|
const [selectedRecord, setSelectedRecord] = (0, import_react21.useState)({});
|
|
669
670
|
const [model, setModel] = (0, import_react21.useState)(false);
|
|
670
|
-
console.log(selectedRecord);
|
|
671
671
|
let columns = [];
|
|
672
672
|
if (thead) {
|
|
673
673
|
columns = [
|
|
@@ -712,7 +712,7 @@ var TableElement = (props) => {
|
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
|
-
), model && /* @__PURE__ */ import_react21.default.createElement(ModelElement, { ...props }));
|
|
715
|
+
), model && /* @__PURE__ */ import_react21.default.createElement(ModelElement, { ...selectedRecord, ...props, model, onCancel: () => setModel(false) }));
|
|
716
716
|
};
|
|
717
717
|
|
|
718
718
|
// src/Components/DatePicker.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -582,6 +582,7 @@ var ModelBody = (props) => {
|
|
|
582
582
|
|
|
583
583
|
// src/Components/Model.tsx
|
|
584
584
|
var ModelElement = (props) => {
|
|
585
|
+
console.log("props in model", props);
|
|
585
586
|
return /* @__PURE__ */ React19.createElement(
|
|
586
587
|
Modal,
|
|
587
588
|
{
|
|
@@ -616,7 +617,6 @@ var TableElement = (props) => {
|
|
|
616
617
|
const { thead, tbody } = props;
|
|
617
618
|
const [selectedRecord, setSelectedRecord] = useState5({});
|
|
618
619
|
const [model, setModel] = useState5(false);
|
|
619
|
-
console.log(selectedRecord);
|
|
620
620
|
let columns = [];
|
|
621
621
|
if (thead) {
|
|
622
622
|
columns = [
|
|
@@ -661,7 +661,7 @@ var TableElement = (props) => {
|
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
|
-
), model && /* @__PURE__ */ React20.createElement(ModelElement, { ...props }));
|
|
664
|
+
), model && /* @__PURE__ */ React20.createElement(ModelElement, { ...selectedRecord, ...props, model, onCancel: () => setModel(false) }));
|
|
665
665
|
};
|
|
666
666
|
|
|
667
667
|
// src/Components/DatePicker.tsx
|