@kengic/vue 0.26.7-beta.25 → 0.26.7-beta.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -2695,10 +2695,10 @@ reactExports.forwardRef((e, r) => IconComponent({
2695
2695
  ...e,
2696
2696
  _ref: r
2697
2697
  }));
2698
- import("./close-outlined-DMcSQWxQ.44bc015c.mjs").then(({ default: e }) => addIcon$1("ant-design:close-outlined", e));
2699
- import("./fullscreen-exit-outlined-X1iYkFc4.4b710fc4.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-exit-outlined", e));
2700
- import("./fullscreen-outlined-DDBrsRcy.d63ad670.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-outlined", e));
2701
- import("./exclamation-circle-outlined-DZrXCnvM.85c6dfef.mjs").then(({ default: e }) => addIcon$1("ant-design:exclamation-circle-outlined", e));
2698
+ import("./close-outlined-DMcSQWxQ.08e95bbb.mjs").then(({ default: e }) => addIcon$1("ant-design:close-outlined", e));
2699
+ import("./fullscreen-exit-outlined-X1iYkFc4.2f8fdab4.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-exit-outlined", e));
2700
+ import("./fullscreen-outlined-DDBrsRcy.6f28fef2.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-outlined", e));
2701
+ import("./exclamation-circle-outlined-DZrXCnvM.502709e1.mjs").then(({ default: e }) => addIcon$1("ant-design:exclamation-circle-outlined", e));
2702
2702
  var jsxRuntime = { exports: {} }, reactJsxRuntime_production_min = {};
2703
2703
  /**
2704
2704
  * @license React
@@ -65138,9 +65138,9 @@ class KgUtil$1 {
65138
65138
  var a, o;
65139
65139
  const n = Modal.confirm({
65140
65140
  icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$2, { icon: "ant-design:exclamation-circle-outlined" }),
65141
- title: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "kg.confirm" }),
65142
- content: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "kg.confirmDelete" }),
65143
- okText: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "kg.confirm" }),
65141
+ title: r.intl.formatMessage({ id: "kg.confirm" }),
65142
+ content: r.intl.formatMessage({ id: "kg.confirmDelete" }),
65143
+ okText: r.intl.formatMessage({ id: "kg.confirm" }),
65144
65144
  okButtonProps: {
65145
65145
  danger: !0,
65146
65146
  ...(a = r.okButtonProps) != null ? a : {}
@@ -65150,7 +65150,7 @@ class KgUtil$1 {
65150
65150
  disabled: !1,
65151
65151
  ...(o = r.cancelButtonProps) != null ? o : {}
65152
65152
  },
65153
- cancelText: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "kg.cancel" }),
65153
+ cancelText: r.intl.formatMessage({ id: "kg.cancel" }),
65154
65154
  closable: !1,
65155
65155
  centered: !0,
65156
65156
  autoFocusButton: null,
@@ -65171,61 +65171,62 @@ class KgUtil$1 {
65171
65171
  }
65172
65172
  }
65173
65173
  function KgWorkStationModal() {
65174
- var sa;
65174
+ var ua;
65175
65175
  var e;
65176
- const r = useID(), n = doKgWorkStation(r), a = useReduxDispatch(), o = useReduxSelector(getIsVisible(r)), l = useReduxSelector(getIsOpen(r)), [u, p] = reactExports.useState([]), [x, w] = reactExports.useState([]), [N, U] = reactExports.useState([]), ne = useReduxSelector(getWorkStation(r)), ie = useReduxSelector(getWorkStationArea(r)), ue = (sa = (e = u.find((ua) => ua.devcod === x[0])) == null ? void 0 : e.workstationAreas) != null ? sa : [], se = {
65176
+ const r = useID(), n = doKgWorkStation(r), a = useReduxDispatch(), o = useIntl(), l = useReduxSelector(getIsVisible(r)), u = useReduxSelector(getIsOpen(r)), [p, x] = reactExports.useState([]), [w, N] = reactExports.useState([]), [U, ne] = reactExports.useState([]), ie = useReduxSelector(getWorkStation(r)), ue = useReduxSelector(getWorkStationArea(r)), se = (ua = (e = p.find((ga) => ga.devcod === w[0])) == null ? void 0 : e.workstationAreas) != null ? ua : [], st = {
65177
65177
  hideSelectAll: !0,
65178
- onChange(ua) {
65179
- w(ua.length > 1 ? [ua[0]] : ua);
65178
+ onChange(ga) {
65179
+ N(ga.length > 1 ? [ga[0]] : ga);
65180
65180
  },
65181
- selectedRowKeys: x
65182
- }, st = {
65181
+ selectedRowKeys: w
65182
+ }, ut = {
65183
65183
  hideSelectAll: !0,
65184
- onChange(ua) {
65185
- U(ua.length > 1 ? [ua[0]] : ua);
65184
+ onChange(ga) {
65185
+ ne(ga.length > 1 ? [ga[0]] : ga);
65186
65186
  },
65187
- selectedRowKeys: N
65188
- }, ut = [
65187
+ selectedRowKeys: U
65188
+ }, ta = [
65189
65189
  {
65190
65190
  dataIndex: "devcodDsc",
65191
- render: (ua) => ua,
65191
+ render: (ga) => ga,
65192
65192
  title: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "KgWorkStation.workStation" })
65193
65193
  }
65194
- ], ta = [
65194
+ ], ea = [
65195
65195
  {
65196
65196
  dataIndex: "wrkareDsc",
65197
- render: (ua) => ua,
65197
+ render: (ga) => ga,
65198
65198
  title: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "KgWorkStation.workStationArea" })
65199
65199
  }
65200
65200
  ];
65201
65201
  reactExports.useEffect(() => {
65202
- l && aa();
65203
- }, [l]);
65204
- function ea() {
65202
+ u && sa();
65203
+ }, [u]);
65204
+ function oa() {
65205
65205
  n.closeModal();
65206
65206
  }
65207
- function oa() {
65208
- const ua = () => {
65209
- var ga, ha;
65210
- a(setWorkStation({ id: r, workStation: (ga = u.find((fa) => fa.devcod === x[0])) != null ? ga : null })), a(setWorkStationArea({ id: r, workStationArea: (ha = ue.find((fa) => fa.wrkare === N[0])) != null ? ha : null }));
65207
+ function aa() {
65208
+ const ga = () => {
65209
+ var ha, fa;
65210
+ a(setWorkStation({ id: r, workStation: (ha = p.find((va) => va.devcod === w[0])) != null ? ha : null })), a(setWorkStationArea({ id: r, workStationArea: (fa = se.find((va) => va.wrkare === U[0])) != null ? fa : null }));
65211
65211
  };
65212
- console.log("0001"), o ? (console.log("0003"), (x[0] !== (ne == null ? void 0 : ne.devcod) || N[0] !== (ie == null ? void 0 : ie.wrkare)) && (console.log("0004"), ua(), KgUtil$1.confirm({
65212
+ l ? (w[0] !== (ie == null ? void 0 : ie.devcod) || U[0] !== (ue == null ? void 0 : ue.wrkare)) && (ga(), KgUtil$1.confirm({
65213
65213
  content: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "KgWorkStation.reloadMessage" }),
65214
+ intl: o,
65214
65215
  kgHideCancelButton: !0,
65215
65216
  okButtonProps: { danger: !1 },
65216
65217
  okText: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "kg.refresh" }),
65217
65218
  onOk: () => {
65218
- console.log("0005"), window.location.reload();
65219
+ window.location.reload();
65219
65220
  }
65220
- }))) : (console.log("0002"), ua(), emit$2({ event: "onOk", id: r, parameter: {} })), n.closeModal();
65221
+ })) : (ga(), emit$2({ event: "onOk", id: r, parameter: {} })), n.closeModal();
65221
65222
  }
65222
- async function aa() {
65223
- var fa;
65224
- var ua, ga;
65225
- const ha = (fa = (ua = await List$3({ params: { pageNo: 1, pageSize: 999 } })) == null ? void 0 : ua.records) != null ? fa : [];
65226
- ha.find((va) => va.devcod === (ne == null ? void 0 : ne.devcod)) ? (w([ne == null ? void 0 : ne.devcod]), (ga = ne == null ? void 0 : ne.workstationAreas) != null && ga.find((va) => va.wrkare === (ie == null ? void 0 : ie.wrkare)) ? U([ie == null ? void 0 : ie.wrkare]) : U([])) : (w([]), U([])), p(ha);
65223
+ async function sa() {
65224
+ var va;
65225
+ var ga, ha;
65226
+ const fa = (va = (ga = await List$3({ params: { pageNo: 1, pageSize: 999 } })) == null ? void 0 : ga.records) != null ? va : [];
65227
+ fa.find(($a) => $a.devcod === (ie == null ? void 0 : ie.devcod)) ? (N([ie == null ? void 0 : ie.devcod]), (ha = ie == null ? void 0 : ie.workstationAreas) != null && ha.find(($a) => $a.wrkare === (ue == null ? void 0 : ue.wrkare)) ? ne([ue == null ? void 0 : ue.wrkare]) : ne([])) : (N([]), ne([])), x(fa);
65227
65228
  }
65228
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: l && /* @__PURE__ */ jsxRuntimeExports.jsx(
65229
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: u && /* @__PURE__ */ jsxRuntimeExports.jsx(
65229
65230
  KgModal$2,
65230
65231
  {
65231
65232
  open: !0,
@@ -65234,22 +65235,22 @@ function KgWorkStationModal() {
65234
65235
  confirmLoading: !1,
65235
65236
  wrapClassName: "kgcrant-kg-work-station-modal",
65236
65237
  zIndex: 2e3,
65237
- onCancel: ea,
65238
- onOk: oa,
65238
+ onCancel: oa,
65239
+ onOk: aa,
65239
65240
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex" }, children: [
65240
65241
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { flex: "1", borderRight: "1px solid #f0f0f0" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
65241
65242
  ForwardTable,
65242
65243
  {
65243
65244
  className: "kg-flex-table",
65244
- dataSource: u,
65245
- columns: ut,
65245
+ dataSource: p,
65246
+ columns: ta,
65246
65247
  size: "small",
65247
65248
  pagination: !1,
65248
- rowSelection: se,
65249
- rowKey: (ua) => ua.devcod,
65250
- onRow: (ua) => ({
65249
+ rowSelection: st,
65250
+ rowKey: (ga) => ga.devcod,
65251
+ onRow: (ga) => ({
65251
65252
  onClick() {
65252
- x.includes(ua.devcod) ? w([]) : w([ua.devcod]);
65253
+ w.includes(ga.devcod) ? N([]) : N([ga.devcod]);
65253
65254
  }
65254
65255
  })
65255
65256
  }
@@ -65258,15 +65259,15 @@ function KgWorkStationModal() {
65258
65259
  ForwardTable,
65259
65260
  {
65260
65261
  className: "kg-flex-table",
65261
- dataSource: ue,
65262
- columns: ta,
65262
+ dataSource: se,
65263
+ columns: ea,
65263
65264
  size: "small",
65264
65265
  pagination: !1,
65265
- rowSelection: st,
65266
- rowKey: (ua) => ua.wrkare,
65267
- onRow: (ua) => ({
65266
+ rowSelection: ut,
65267
+ rowKey: (ga) => ga.wrkare,
65268
+ onRow: (ga) => ({
65268
65269
  onClick() {
65269
- N.includes(ua.wrkare) ? U([]) : U([ua.wrkare]);
65270
+ U.includes(ga.wrkare) ? ne([]) : ne([ga.wrkare]);
65270
65271
  }
65271
65272
  })
65272
65273
  }
@@ -68793,7 +68794,7 @@ function fi(e) {
68793
68794
  })
68794
68795
  );
68795
68796
  }
68796
- const version = "0.26.7-beta.25", en$1 = {
68797
+ const version = "0.26.7-beta.26", en$1 = {
68797
68798
  kg: {
68798
68799
  KgAppSelect: {
68799
68800
  businessManager: "Business Manager",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.26.7-beta.25",
3
+ "version": "0.26.7-beta.26",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
@@ -40,7 +40,7 @@
40
40
  "@iconify-icons/ph": "1.2.5",
41
41
  "@iconify/vue": "4.1.2",
42
42
  "@kengic/core.core": "0.0.1-beta.19",
43
- "@kengic/core.react": "0.0.1-beta.49",
43
+ "@kengic/core.react": "0.0.1-beta.50",
44
44
  "@kengic/pont": "1.2.17-beta.1",
45
45
  "@rys-fe/vite-plugin-theme": "0.8.6",
46
46
  "@thymine/xunee": "0.4.9-beta.8",