@kengic/core.react 0.0.2-beta.29 → 0.0.2-beta.31

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.
@@ -65954,26 +65954,26 @@ function doKgSqlClient(e = "") {
65954
65954
  }), t;
65955
65955
  }
65956
65956
  function KgSqlClientResultTab({ executeResult: e, index: t }) {
65957
- var u, p;
65958
- const r = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
65959
- /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "KgSqlClient.ResultTab.tabTitlePrefix" }),
65960
- t + 1
65961
- ] }), [n, a] = reactExports.useState(!1), s = ((u = e == null ? void 0 : e.columns) == null ? void 0 : u.map((C) => ({
65957
+ var s, u, p;
65958
+ const [r, n] = reactExports.useState(!1), a = ((s = e == null ? void 0 : e.columns) == null ? void 0 : s.map((C) => ({
65962
65959
  dataIndex: C.columnLabel,
65963
65960
  render: (w) => w
65964
65961
  }))) ?? [];
65965
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs.TabPane, { tab: r, children: (e == null ? void 0 : e.columns) && ((p = e == null ? void 0 : e.columns) == null ? void 0 : p.length) > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
65966
- ForwardTable,
65967
- {
65968
- className: "kg-flex-table",
65969
- dataSource: (e == null ? void 0 : e.rows) ?? [],
65970
- loading: n,
65971
- columns: s,
65972
- size: "small",
65973
- scroll: { y: "auto" },
65974
- rowKey: (C, w) => w
65975
- }
65976
- ) });
65962
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
65963
+ (e == null ? void 0 : e.columns) && ((u = e == null ? void 0 : e.columns) == null ? void 0 : u.length) > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
65964
+ ForwardTable,
65965
+ {
65966
+ className: "kg-flex-table",
65967
+ dataSource: (e == null ? void 0 : e.rows) ?? [],
65968
+ loading: r,
65969
+ columns: a,
65970
+ size: "small",
65971
+ scroll: { y: "auto" },
65972
+ rowKey: (C, w) => w
65973
+ }
65974
+ ),
65975
+ !((p = e == null ? void 0 : e.columns) != null && p.length) && (e == null ? void 0 : e.message) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: e.message })
65976
+ ] });
65977
65977
  }
65978
65978
  function KgSqlClient() {
65979
65979
  var L;
@@ -66025,10 +66025,20 @@ function KgSqlClient() {
66025
66025
  type: "editable-card",
66026
66026
  hideAdd: !0,
66027
66027
  children: s.map((G, ne) => /* @__PURE__ */ jsxRuntimeExports.jsx(
66028
- KgSqlClientResultTab,
66028
+ Tabs.TabPane,
66029
66029
  {
66030
- executeResult: G,
66031
- index: ne
66030
+ tab: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
66031
+ /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "KgSqlClient.ResultTab.tabTitlePrefix" }),
66032
+ ne + 1
66033
+ ] }),
66034
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
66035
+ KgSqlClientResultTab,
66036
+ {
66037
+ executeResult: G,
66038
+ index: ne
66039
+ },
66040
+ ne
66041
+ )
66032
66042
  }
66033
66043
  ))
66034
66044
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/core.react",
3
- "version": "0.0.2-beta.29",
3
+ "version": "0.0.2-beta.31",
4
4
  "type": "module",
5
5
  "main": "./kengic-core.react.js",
6
6
  "module": "./kengic-core.react.js",