@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.
- package/dist/kengic-vue.js +53 -52
- package/package.json +2 -2
- /package/dist/{close-outlined-DMcSQWxQ.44bc015c.mjs → close-outlined-DMcSQWxQ.08e95bbb.mjs} +0 -0
- /package/dist/{exclamation-circle-outlined-DZrXCnvM.85c6dfef.mjs → exclamation-circle-outlined-DZrXCnvM.502709e1.mjs} +0 -0
- /package/dist/{fullscreen-exit-outlined-X1iYkFc4.4b710fc4.mjs → fullscreen-exit-outlined-X1iYkFc4.2f8fdab4.mjs} +0 -0
- /package/dist/{fullscreen-outlined-DDBrsRcy.d63ad670.mjs → fullscreen-outlined-DDBrsRcy.6f28fef2.mjs} +0 -0
package/dist/kengic-vue.js
CHANGED
@@ -2695,10 +2695,10 @@ reactExports.forwardRef((e, r) => IconComponent({
|
|
2695
2695
|
...e,
|
2696
2696
|
_ref: r
|
2697
2697
|
}));
|
2698
|
-
import("./close-outlined-DMcSQWxQ.
|
2699
|
-
import("./fullscreen-exit-outlined-X1iYkFc4.
|
2700
|
-
import("./fullscreen-outlined-DDBrsRcy.
|
2701
|
-
import("./exclamation-circle-outlined-DZrXCnvM.
|
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:
|
65142
|
-
content:
|
65143
|
-
okText:
|
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:
|
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
|
65174
|
+
var ua;
|
65175
65175
|
var e;
|
65176
|
-
const r = useID(), n = doKgWorkStation(r), a = useReduxDispatch(), o = useReduxSelector(getIsVisible(r)),
|
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(
|
65179
|
-
|
65178
|
+
onChange(ga) {
|
65179
|
+
N(ga.length > 1 ? [ga[0]] : ga);
|
65180
65180
|
},
|
65181
|
-
selectedRowKeys:
|
65182
|
-
},
|
65181
|
+
selectedRowKeys: w
|
65182
|
+
}, ut = {
|
65183
65183
|
hideSelectAll: !0,
|
65184
|
-
onChange(
|
65185
|
-
|
65184
|
+
onChange(ga) {
|
65185
|
+
ne(ga.length > 1 ? [ga[0]] : ga);
|
65186
65186
|
},
|
65187
|
-
selectedRowKeys:
|
65188
|
-
},
|
65187
|
+
selectedRowKeys: U
|
65188
|
+
}, ta = [
|
65189
65189
|
{
|
65190
65190
|
dataIndex: "devcodDsc",
|
65191
|
-
render: (
|
65191
|
+
render: (ga) => ga,
|
65192
65192
|
title: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "KgWorkStation.workStation" })
|
65193
65193
|
}
|
65194
|
-
],
|
65194
|
+
], ea = [
|
65195
65195
|
{
|
65196
65196
|
dataIndex: "wrkareDsc",
|
65197
|
-
render: (
|
65197
|
+
render: (ga) => ga,
|
65198
65198
|
title: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "KgWorkStation.workStationArea" })
|
65199
65199
|
}
|
65200
65200
|
];
|
65201
65201
|
reactExports.useEffect(() => {
|
65202
|
-
|
65203
|
-
}, [
|
65204
|
-
function
|
65202
|
+
u && sa();
|
65203
|
+
}, [u]);
|
65204
|
+
function oa() {
|
65205
65205
|
n.closeModal();
|
65206
65206
|
}
|
65207
|
-
function
|
65208
|
-
const
|
65209
|
-
var
|
65210
|
-
a(setWorkStation({ id: r, workStation: (
|
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
|
-
|
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
|
-
|
65219
|
+
window.location.reload();
|
65219
65220
|
}
|
65220
|
-
}))
|
65221
|
+
})) : (ga(), emit$2({ event: "onOk", id: r, parameter: {} })), n.closeModal();
|
65221
65222
|
}
|
65222
|
-
async function
|
65223
|
-
var
|
65224
|
-
var
|
65225
|
-
const
|
65226
|
-
|
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:
|
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:
|
65238
|
-
onOk:
|
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:
|
65245
|
-
columns:
|
65245
|
+
dataSource: p,
|
65246
|
+
columns: ta,
|
65246
65247
|
size: "small",
|
65247
65248
|
pagination: !1,
|
65248
|
-
rowSelection:
|
65249
|
-
rowKey: (
|
65250
|
-
onRow: (
|
65249
|
+
rowSelection: st,
|
65250
|
+
rowKey: (ga) => ga.devcod,
|
65251
|
+
onRow: (ga) => ({
|
65251
65252
|
onClick() {
|
65252
|
-
|
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:
|
65262
|
-
columns:
|
65262
|
+
dataSource: se,
|
65263
|
+
columns: ea,
|
65263
65264
|
size: "small",
|
65264
65265
|
pagination: !1,
|
65265
|
-
rowSelection:
|
65266
|
-
rowKey: (
|
65267
|
-
onRow: (
|
65266
|
+
rowSelection: ut,
|
65267
|
+
rowKey: (ga) => ga.wrkare,
|
65268
|
+
onRow: (ga) => ({
|
65268
65269
|
onClick() {
|
65269
|
-
|
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.
|
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.
|
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.
|
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",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|