@kengic/vue 0.26.7-beta.28 → 0.26.7-beta.30

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.fe112ae3.mjs").then(({ default: e }) => addIcon$1("ant-design:close-outlined", e));
2699
- import("./fullscreen-exit-outlined-X1iYkFc4.92496b2e.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-exit-outlined", e));
2700
- import("./fullscreen-outlined-DDBrsRcy.3eb2b3cf.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-outlined", e));
2701
- import("./exclamation-circle-outlined-DZrXCnvM.149652bb.mjs").then(({ default: e }) => addIcon$1("ant-design:exclamation-circle-outlined", e));
2698
+ import("./close-outlined-DMcSQWxQ.5ebf9020.mjs").then(({ default: e }) => addIcon$1("ant-design:close-outlined", e));
2699
+ import("./fullscreen-exit-outlined-X1iYkFc4.0225b59b.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-exit-outlined", e));
2700
+ import("./fullscreen-outlined-DDBrsRcy.aabacbaf.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-outlined", e));
2701
+ import("./exclamation-circle-outlined-DZrXCnvM.944e2d32.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
@@ -65133,51 +65133,60 @@ function List$3(e, r) {
65133
65133
  }
65134
65134
  List$3.method = "GET";
65135
65135
  List$3.url = "/workstation/workstation/list";
65136
- function useKgUtil() {
65136
+ function useKg$1() {
65137
65137
  const e = useIntl();
65138
65138
  return {
65139
- confirm(r) {
65140
- var a, o;
65141
- console.log("444");
65142
- const n = Modal.confirm({
65143
- icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$2, { icon: "ant-design:exclamation-circle-outlined" }),
65144
- title: e.formatMessage({ id: "kg.confirm" }),
65145
- content: e.formatMessage({ id: "kg.confirmDelete" }),
65146
- okText: e.formatMessage({ id: "kg.confirm" }),
65147
- okButtonProps: {
65148
- danger: !0,
65149
- ...(a = r.okButtonProps) != null ? a : {}
65150
- },
65151
- cancelButtonProps: {
65152
- class: r.kgHideCancelButton === !0 ? "kg-invisible" : "",
65153
- disabled: !1,
65154
- ...(o = r.cancelButtonProps) != null ? o : {}
65155
- },
65156
- cancelText: e.formatMessage({ id: "kg.cancel" }),
65157
- closable: !1,
65158
- centered: !0,
65159
- autoFocusButton: null,
65160
- keyboard: !1,
65161
- ...r
65162
- });
65163
- return n.showLoading = () => {
65164
- n.update((l) => {
65165
- const u = cloneDeep$1(l);
65166
- return u.okButtonProps.loading = !0, u.cancelButtonProps.disabled = !0, u;
65167
- });
65168
- }, n.hideLoading = () => {
65169
- n.update((l) => {
65170
- const u = cloneDeep$1(l);
65171
- return u.okButtonProps.loading = !1, u.cancelButtonProps.disabled = !1, u;
65172
- });
65173
- }, n;
65139
+ t(r) {
65140
+ return e.formatMessage({ id: r });
65174
65141
  }
65175
65142
  };
65176
65143
  }
65144
+ class KgUtil$1 {
65145
+ static confirm(r) {
65146
+ var a, o;
65147
+ const n = Modal.confirm({
65148
+ animation: !1,
65149
+ autoFocusButton: null,
65150
+ cancelButtonProps: {
65151
+ className: r.kgHideCancelButton === !0 ? "kg-invisible" : "",
65152
+ disabled: !1,
65153
+ ...(a = r.cancelButtonProps) != null ? a : {}
65154
+ },
65155
+ cancelText: r.intl.formatMessage({ id: "kg.cancel" }),
65156
+ centered: !0,
65157
+ closable: !1,
65158
+ content: r.intl.formatMessage({ id: "kg.confirmDelete" }),
65159
+ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$2, { icon: "ant-design:exclamation-circle-outlined" }),
65160
+ keyboard: !1,
65161
+ maskTransitionName: "",
65162
+ okButtonProps: {
65163
+ danger: !0,
65164
+ ...(o = r.okButtonProps) != null ? o : {}
65165
+ },
65166
+ okText: r.intl.formatMessage({ id: "kg.confirm" }),
65167
+ onCancel() {
65168
+ },
65169
+ title: r.intl.formatMessage({ id: "kg.confirm" }),
65170
+ transitionName: "",
65171
+ ...r
65172
+ });
65173
+ return n.showLoading = () => {
65174
+ n.update((l) => {
65175
+ const u = cloneDeep$1(l);
65176
+ return u.okButtonProps.loading = !0, u.cancelButtonProps.disabled = !0, u;
65177
+ });
65178
+ }, n.hideLoading = () => {
65179
+ n.update((l) => {
65180
+ const u = cloneDeep$1(l);
65181
+ return u.okButtonProps.loading = !1, u.cancelButtonProps.disabled = !1, u;
65182
+ });
65183
+ }, n;
65184
+ }
65185
+ }
65177
65186
  function KgWorkStationModal() {
65178
65187
  var ha;
65179
65188
  var e;
65180
- const r = useID(), n = doKgWorkStation(r), a = useReduxDispatch(), o = useIntl(), l = useKgUtil(), u = useReduxSelector(getIsVisible(r)), p = useReduxSelector(getIsOpen(r)), [x, w] = reactExports.useState([]), [N, U] = reactExports.useState([]), [ne, ie] = reactExports.useState([]), ue = useReduxSelector(getWorkStation(r)), se = useReduxSelector(getWorkStationArea(r)), st = (ha = (e = x.find((ga) => ga.devcod === N[0])) == null ? void 0 : e.workstationAreas) != null ? ha : [], ut = {
65189
+ const r = useID(), n = doKgWorkStation(r), a = useIntl(), o = useKg$1(), l = useReduxDispatch(), u = useReduxSelector(getIsVisible(r)), p = useReduxSelector(getIsOpen(r)), [x, w] = reactExports.useState([]), [N, U] = reactExports.useState([]), [ne, ie] = reactExports.useState([]), ue = useReduxSelector(getWorkStation(r)), se = useReduxSelector(getWorkStationArea(r)), st = (ha = (e = x.find((ga) => ga.devcod === N[0])) == null ? void 0 : e.workstationAreas) != null ? ha : [], ut = {
65181
65190
  hideSelectAll: !0,
65182
65191
  onChange(ga) {
65183
65192
  U(ga.length > 1 ? [ga[0]] : ga);
@@ -65211,13 +65220,14 @@ function KgWorkStationModal() {
65211
65220
  function sa() {
65212
65221
  const ga = () => {
65213
65222
  var fa, va;
65214
- a(setWorkStation({ id: r, workStation: (fa = x.find((Ta) => Ta.devcod === N[0])) != null ? fa : null })), a(setWorkStationArea({ id: r, workStationArea: (va = st.find((Ta) => Ta.wrkare === ne[0])) != null ? va : null }));
65223
+ l(setWorkStation({ id: r, workStation: (fa = x.find((Ta) => Ta.devcod === N[0])) != null ? fa : null })), l(setWorkStationArea({ id: r, workStationArea: (va = st.find((Ta) => Ta.wrkare === ne[0])) != null ? va : null }));
65215
65224
  };
65216
- u ? (N[0] !== (ue == null ? void 0 : ue.devcod) || ne[0] !== (se == null ? void 0 : se.wrkare)) && (ga(), console.log("333"), l.confirm({
65217
- content: o.formatMessage({ id: "KgWorkStation.reloadMessage" }),
65225
+ u ? (N[0] !== (ue == null ? void 0 : ue.devcod) || ne[0] !== (se == null ? void 0 : se.wrkare)) && (ga(), KgUtil$1.confirm({
65226
+ content: a.formatMessage({ id: "KgWorkStation.reloadMessage" }),
65227
+ intl: a,
65218
65228
  kgHideCancelButton: !0,
65219
65229
  okButtonProps: { danger: !1 },
65220
- okText: o.formatMessage({ id: "kg.refresh" }),
65230
+ okText: o.t("kg.refresh"),
65221
65231
  onOk: () => {
65222
65232
  window.location.reload();
65223
65233
  }
@@ -68797,7 +68807,7 @@ function fi(e) {
68797
68807
  })
68798
68808
  );
68799
68809
  }
68800
- const version = "0.26.7-beta.28", en$1 = {
68810
+ const version = "0.26.7-beta.30", en$1 = {
68801
68811
  kg: {
68802
68812
  KgAppSelect: {
68803
68813
  businessManager: "Business Manager",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.26.7-beta.28",
3
+ "version": "0.26.7-beta.30",
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.52",
43
+ "@kengic/core.react": "0.0.1-beta.54",
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",