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

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.
@@ -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.2694961e.mjs").then(({ default: e }) => addIcon$1("ant-design:close-outlined", e));
2699
+ import("./fullscreen-exit-outlined-X1iYkFc4.439e67d3.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-exit-outlined", e));
2700
+ import("./fullscreen-outlined-DDBrsRcy.068a3994.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-outlined", e));
2701
+ import("./exclamation-circle-outlined-DZrXCnvM.030511a3.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,55 @@ 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
+ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$2, { icon: "ant-design:exclamation-circle-outlined" }),
65149
+ title: r.intl.formatMessage({ id: "kg.confirm" }),
65150
+ content: r.intl.formatMessage({ id: "kg.confirmDelete" }),
65151
+ okText: r.intl.formatMessage({ id: "kg.confirm" }),
65152
+ okButtonProps: {
65153
+ danger: !0,
65154
+ ...(a = r.okButtonProps) != null ? a : {}
65155
+ },
65156
+ cancelButtonProps: {
65157
+ class: r.kgHideCancelButton === !0 ? "kg-invisible" : "",
65158
+ disabled: !1,
65159
+ ...(o = r.cancelButtonProps) != null ? o : {}
65160
+ },
65161
+ cancelText: r.intl.formatMessage({ id: "kg.cancel" }),
65162
+ closable: !1,
65163
+ centered: !0,
65164
+ autoFocusButton: null,
65165
+ keyboard: !1,
65166
+ ...r
65167
+ });
65168
+ return n.showLoading = () => {
65169
+ n.update((l) => {
65170
+ const u = cloneDeep$1(l);
65171
+ return u.okButtonProps.loading = !0, u.cancelButtonProps.disabled = !0, u;
65172
+ });
65173
+ }, n.hideLoading = () => {
65174
+ n.update((l) => {
65175
+ const u = cloneDeep$1(l);
65176
+ return u.okButtonProps.loading = !1, u.cancelButtonProps.disabled = !1, u;
65177
+ });
65178
+ }, n;
65179
+ }
65180
+ }
65177
65181
  function KgWorkStationModal() {
65178
65182
  var ha;
65179
65183
  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 = {
65184
+ 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
65185
  hideSelectAll: !0,
65182
65186
  onChange(ga) {
65183
65187
  U(ga.length > 1 ? [ga[0]] : ga);
@@ -65211,13 +65215,14 @@ function KgWorkStationModal() {
65211
65215
  function sa() {
65212
65216
  const ga = () => {
65213
65217
  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 }));
65218
+ 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
65219
  };
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" }),
65220
+ u ? (N[0] !== (ue == null ? void 0 : ue.devcod) || ne[0] !== (se == null ? void 0 : se.wrkare)) && (ga(), KgUtil$1.confirm({
65221
+ content: a.formatMessage({ id: "KgWorkStation.reloadMessage" }),
65222
+ intl: a,
65218
65223
  kgHideCancelButton: !0,
65219
65224
  okButtonProps: { danger: !1 },
65220
- okText: o.formatMessage({ id: "kg.refresh" }),
65225
+ okText: o.t("kg.refresh"),
65221
65226
  onOk: () => {
65222
65227
  window.location.reload();
65223
65228
  }
@@ -68797,7 +68802,7 @@ function fi(e) {
68797
68802
  })
68798
68803
  );
68799
68804
  }
68800
- const version = "0.26.7-beta.28", en$1 = {
68805
+ const version = "0.26.7-beta.29", en$1 = {
68801
68806
  kg: {
68802
68807
  KgAppSelect: {
68803
68808
  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.29",
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.53",
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",