@kengic/core.react 0.0.2-beta.32 → 0.0.2-beta.33
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/kengic-core.react.js +66 -27
- package/package.json +1 -1
- package/src/api/WMS/models.d.ts +6 -0
- package/src/i18n/cs_CZ.d.ts +1 -0
- package/src/i18n/en.d.ts +1 -0
- package/src/i18n/es_ES.d.ts +1 -0
- package/src/i18n/fr_FR.d.ts +1 -0
- package/src/i18n/km_KH.d.ts +1 -0
- package/src/i18n/ko_KR.d.ts +1 -0
- package/src/i18n/vi_VN.d.ts +1 -0
- package/src/i18n/zh_CN.d.ts +1 -0
package/kengic-core.react.js
CHANGED
|
@@ -65680,7 +65680,8 @@ const cs_CZ = {
|
|
|
65680
65680
|
"kg.confirm": "确认",
|
|
65681
65681
|
"kg.confirmDelete": "确认删除 ?",
|
|
65682
65682
|
"kg.execute": "执行",
|
|
65683
|
-
"kg.refresh": "刷新"
|
|
65683
|
+
"kg.refresh": "刷新",
|
|
65684
|
+
"kg.KgTable.totalText": "第 {from} - {to} 条, 共 {total} 条"
|
|
65684
65685
|
}, en = {
|
|
65685
65686
|
"KgSqlClient.ResultTab.tabTitlePrefix": "Result ",
|
|
65686
65687
|
"KgWorkStation.modalTitle": "Select Work Station",
|
|
@@ -65693,7 +65694,8 @@ const cs_CZ = {
|
|
|
65693
65694
|
"kg.confirm": "Confirm",
|
|
65694
65695
|
"kg.confirmDelete": "Confirm delete ?",
|
|
65695
65696
|
"kg.execute": "Execute",
|
|
65696
|
-
"kg.refresh": "Refresh"
|
|
65697
|
+
"kg.refresh": "Refresh",
|
|
65698
|
+
"kg.KgTable.totalText": "{from} - {to} of {total} items"
|
|
65697
65699
|
}, es_ES = {
|
|
65698
65700
|
"KgSqlClient.ResultTab.tabTitlePrefix": "结果 ",
|
|
65699
65701
|
"KgWorkStation.modalTitle": "选择工作站",
|
|
@@ -65706,7 +65708,8 @@ const cs_CZ = {
|
|
|
65706
65708
|
"kg.confirm": "确认",
|
|
65707
65709
|
"kg.confirmDelete": "确认删除 ?",
|
|
65708
65710
|
"kg.execute": "执行",
|
|
65709
|
-
"kg.refresh": "刷新"
|
|
65711
|
+
"kg.refresh": "刷新",
|
|
65712
|
+
"kg.KgTable.totalText": "第 {from} - {to} 条, 共 {total} 条"
|
|
65710
65713
|
}, fr_FR = {
|
|
65711
65714
|
"KgSqlClient.ResultTab.tabTitlePrefix": "结果 ",
|
|
65712
65715
|
"KgWorkStation.modalTitle": "选择工作站",
|
|
@@ -65719,7 +65722,8 @@ const cs_CZ = {
|
|
|
65719
65722
|
"kg.confirm": "确认",
|
|
65720
65723
|
"kg.confirmDelete": "确认删除 ?",
|
|
65721
65724
|
"kg.execute": "执行",
|
|
65722
|
-
"kg.refresh": "刷新"
|
|
65725
|
+
"kg.refresh": "刷新",
|
|
65726
|
+
"kg.KgTable.totalText": "第 {from} - {to} 条, 共 {total} 条"
|
|
65723
65727
|
}, km_KH = {
|
|
65724
65728
|
"KgSqlClient.ResultTab.tabTitlePrefix": "结果 ",
|
|
65725
65729
|
"KgWorkStation.modalTitle": "选择工作站",
|
|
@@ -65732,7 +65736,8 @@ const cs_CZ = {
|
|
|
65732
65736
|
"kg.confirm": "确认",
|
|
65733
65737
|
"kg.confirmDelete": "确认删除 ?",
|
|
65734
65738
|
"kg.execute": "执行",
|
|
65735
|
-
"kg.refresh": "刷新"
|
|
65739
|
+
"kg.refresh": "刷新",
|
|
65740
|
+
"kg.KgTable.totalText": "第 {from} - {to} 条, 共 {total} 条"
|
|
65736
65741
|
}, ko_KR = {
|
|
65737
65742
|
"KgSqlClient.ResultTab.tabTitlePrefix": "结果 ",
|
|
65738
65743
|
"KgWorkStation.modalTitle": "选择工作站",
|
|
@@ -65745,7 +65750,8 @@ const cs_CZ = {
|
|
|
65745
65750
|
"kg.confirm": "确认",
|
|
65746
65751
|
"kg.confirmDelete": "确认删除 ?",
|
|
65747
65752
|
"kg.execute": "执行",
|
|
65748
|
-
"kg.refresh": "刷新"
|
|
65753
|
+
"kg.refresh": "刷新",
|
|
65754
|
+
"kg.KgTable.totalText": "第 {from} - {to} 条, 共 {total} 条"
|
|
65749
65755
|
}, vi_VN = {
|
|
65750
65756
|
"KgSqlClient.ResultTab.tabTitlePrefix": "结果 ",
|
|
65751
65757
|
"KgWorkStation.modalTitle": "选择工作站",
|
|
@@ -65758,7 +65764,8 @@ const cs_CZ = {
|
|
|
65758
65764
|
"kg.confirm": "确认",
|
|
65759
65765
|
"kg.confirmDelete": "确认删除 ?",
|
|
65760
65766
|
"kg.execute": "执行",
|
|
65761
|
-
"kg.refresh": "刷新"
|
|
65767
|
+
"kg.refresh": "刷新",
|
|
65768
|
+
"kg.KgTable.totalText": "第 {from} - {to} 条, 共 {total} 条"
|
|
65762
65769
|
}, zh_CN = {
|
|
65763
65770
|
"KgSqlClient.ResultTab.tabTitlePrefix": "结果 ",
|
|
65764
65771
|
"KgWorkStation.modalTitle": "选择工作站",
|
|
@@ -65771,7 +65778,8 @@ const cs_CZ = {
|
|
|
65771
65778
|
"kg.confirm": "确认",
|
|
65772
65779
|
"kg.confirmDelete": "确认删除 ?",
|
|
65773
65780
|
"kg.execute": "执行",
|
|
65774
|
-
"kg.refresh": "刷新"
|
|
65781
|
+
"kg.refresh": "刷新",
|
|
65782
|
+
"kg.KgTable.totalText": "第 {from} - {to} 条, 共 {total} 条"
|
|
65775
65783
|
}, I18N = { en, es_ES, fr_FR, km_KH, ko_KR, vi_VN, zh_CN, cs_CZ }, KgIdContext = reactExports.createContext("");
|
|
65776
65784
|
function KgProvider({ children: e, id: t }) {
|
|
65777
65785
|
var s;
|
|
@@ -65954,29 +65962,60 @@ function doKgSqlClient(e = "") {
|
|
|
65954
65962
|
}), t;
|
|
65955
65963
|
}
|
|
65956
65964
|
function KgSqlClientResultTab({ executeResult: e, index: t }) {
|
|
65957
|
-
var
|
|
65958
|
-
const [r, n] = reactExports.useState(!1), a = ((
|
|
65959
|
-
dataIndex:
|
|
65965
|
+
var u, p, C;
|
|
65966
|
+
const [r, n] = reactExports.useState(!1), a = ((u = e == null ? void 0 : e.columns) == null ? void 0 : u.map((w) => ({
|
|
65967
|
+
dataIndex: w.columnLabel,
|
|
65960
65968
|
title: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
65961
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children:
|
|
65962
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children:
|
|
65969
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: w.columnLabel }),
|
|
65970
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: w.columnDesc })
|
|
65963
65971
|
] }),
|
|
65964
|
-
render: (
|
|
65972
|
+
render: (L) => L
|
|
65965
65973
|
}))) ?? [];
|
|
65974
|
+
function s(w, L) {
|
|
65975
|
+
L !== e.pageSize ? (e.pageIndex = 1, e.pageSize = L) : e.pageIndex = w;
|
|
65976
|
+
}
|
|
65966
65977
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
65967
|
-
(e == null ? void 0 : e.columns) && ((
|
|
65968
|
-
|
|
65969
|
-
|
|
65970
|
-
|
|
65971
|
-
|
|
65972
|
-
|
|
65973
|
-
|
|
65974
|
-
|
|
65975
|
-
|
|
65976
|
-
|
|
65977
|
-
|
|
65978
|
-
|
|
65979
|
-
|
|
65978
|
+
(e == null ? void 0 : e.columns) && ((p = e == null ? void 0 : e.columns) == null ? void 0 : p.length) > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
65979
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
65980
|
+
ForwardTable,
|
|
65981
|
+
{
|
|
65982
|
+
className: "kg-flex-table",
|
|
65983
|
+
dataSource: (e == null ? void 0 : e.rows) ?? [],
|
|
65984
|
+
loading: r,
|
|
65985
|
+
columns: a,
|
|
65986
|
+
size: "small",
|
|
65987
|
+
pagination: !1,
|
|
65988
|
+
scroll: { y: "auto" },
|
|
65989
|
+
rowKey: (w, L) => L
|
|
65990
|
+
}
|
|
65991
|
+
),
|
|
65992
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
65993
|
+
Pagination,
|
|
65994
|
+
{
|
|
65995
|
+
size: "default",
|
|
65996
|
+
current: e.pageIndex ?? 1,
|
|
65997
|
+
pageSize: e.pageSize ?? 50,
|
|
65998
|
+
total: e.rowsTotal ?? 0,
|
|
65999
|
+
showSizeChanger: !0,
|
|
66000
|
+
showQuickJumper: !1,
|
|
66001
|
+
hideOnSinglePage: !1,
|
|
66002
|
+
locale: { page: "" },
|
|
66003
|
+
showTotal: (w, L) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
66004
|
+
MemoizedFormattedMessage,
|
|
66005
|
+
{
|
|
66006
|
+
id: "kg.execute",
|
|
66007
|
+
values: {
|
|
66008
|
+
from: L[0],
|
|
66009
|
+
to: L[1],
|
|
66010
|
+
total: w
|
|
66011
|
+
}
|
|
66012
|
+
}
|
|
66013
|
+
),
|
|
66014
|
+
onChange: (w, L) => s(w, L)
|
|
66015
|
+
}
|
|
66016
|
+
)
|
|
66017
|
+
] }),
|
|
66018
|
+
!((C = e == null ? void 0 : e.columns) != null && C.length) && (e == null ? void 0 : e.message) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: e.message })
|
|
65980
66019
|
] });
|
|
65981
66020
|
}
|
|
65982
66021
|
function KgSqlClient() {
|
package/package.json
CHANGED
package/src/api/WMS/models.d.ts
CHANGED
|
@@ -28,8 +28,14 @@ export declare class ExecuteResultDTO {
|
|
|
28
28
|
columns?: Array<ExecuteResultColumn> | null;
|
|
29
29
|
/** 执行结果消息. */
|
|
30
30
|
message?: string | null;
|
|
31
|
+
/** 当前页码. */
|
|
32
|
+
pageIndex?: number | null;
|
|
33
|
+
/** 每页大小. */
|
|
34
|
+
pageSize?: number | null;
|
|
31
35
|
/** 查询结果的行. */
|
|
32
36
|
rows?: Array<object> | null;
|
|
37
|
+
/** 受影响的行数. */
|
|
38
|
+
rowsTotal?: number | null;
|
|
33
39
|
/** 该结果对应的语句. */
|
|
34
40
|
sql?: string | null;
|
|
35
41
|
/** 是否执行成功. */
|
package/src/i18n/cs_CZ.d.ts
CHANGED
package/src/i18n/en.d.ts
CHANGED
package/src/i18n/es_ES.d.ts
CHANGED
package/src/i18n/fr_FR.d.ts
CHANGED
package/src/i18n/km_KH.d.ts
CHANGED
package/src/i18n/ko_KR.d.ts
CHANGED
package/src/i18n/vi_VN.d.ts
CHANGED