@kengic/core.react 0.0.1-beta.74 → 0.0.1-beta.75

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.
@@ -24243,14 +24243,14 @@ const KgSlice = createSlice({
24243
24243
  * @param action
24244
24244
  */
24245
24245
  setOption(e, t) {
24246
- console.log("111", t.payload), e.option = t.payload ?? {};
24246
+ console.log("111", e, t.payload), e.option = t.payload ?? {};
24247
24247
  }
24248
24248
  }
24249
24249
  }), { setOption } = KgSlice.actions;
24250
24250
  function getOption(e) {
24251
- return console.log("222", e.option), e.option;
24251
+ return console.log("222", e, e.option), e.option;
24252
24252
  }
24253
- const kgStore = configureStore({
24253
+ const getOption2 = (e) => (console.log("222:B", e, e.option), e.option), kgStore = configureStore({
24254
24254
  middleware: (e) => e({
24255
24255
  serializableCheck: {
24256
24256
  ignoredActionPaths: ["payload.fn"],
@@ -67889,30 +67889,30 @@ function KgWorkStationModal() {
67889
67889
  ) });
67890
67890
  }
67891
67891
  function KgWorkStation() {
67892
- var G;
67893
- const e = useKgSelector(getOption), t = ((G = e == null ? void 0 : e.KgWorkStation) == null ? void 0 : G.isOn) !== !1;
67894
- if (console.log("333", t), !t)
67892
+ var ne;
67893
+ const e = useKgSelector(getOption), t = useKgSelector(getOption2);
67894
+ if (console.log("333", e), console.log("333:B", t), !(((ne = e == null ? void 0 : e.KgWorkStation) == null ? void 0 : ne.isOn) !== !1))
67895
67895
  return null;
67896
- const r = useID(), n = useKg(), a = doKgWorkStation(r), s = useKgWorkStationSelector(getIsVisible(r)), u = useKgWorkStationSelector(getWorkStation()), p = useKgWorkStationSelector(getWorkStationArea()), C = (() => {
67897
- let ne = "text";
67898
- return s || (ne += " kgcrant-kg-invisible"), ne;
67899
- })(), w = (() => {
67900
- if (!u)
67901
- return n.t("KgWorkStation.selectWorkStation");
67902
- let ne = ((u == null ? void 0 : u.devcodDsc) || (u == null ? void 0 : u.devcod)) ?? "";
67903
- return p && (ne += " / " + (p.wrkareDsc ?? p.wrkare ?? "")), ne;
67896
+ const n = useID(), a = useKg(), s = doKgWorkStation(n), u = useKgWorkStationSelector(getIsVisible(n)), p = useKgWorkStationSelector(getWorkStation()), C = useKgWorkStationSelector(getWorkStationArea()), w = (() => {
67897
+ let oe = "text";
67898
+ return u || (oe += " kgcrant-kg-invisible"), oe;
67899
+ })(), D = (() => {
67900
+ if (!p)
67901
+ return a.t("KgWorkStation.selectWorkStation");
67902
+ let oe = ((p == null ? void 0 : p.devcodDsc) || (p == null ? void 0 : p.devcod)) ?? "";
67903
+ return C && (oe += " / " + (C.wrkareDsc ?? C.wrkare ?? "")), oe;
67904
67904
  })();
67905
- function D() {
67906
- a.openModal();
67905
+ function G() {
67906
+ s.openModal();
67907
67907
  }
67908
67908
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
67909
67909
  /* @__PURE__ */ jsxRuntimeExports.jsx(
67910
67910
  Tooltip,
67911
67911
  {
67912
- className: C,
67912
+ className: w,
67913
67913
  placement: "bottomRight",
67914
67914
  title: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "KgWorkStation.workStationAndWorkStationArea" }),
67915
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { onClick: D, children: w })
67915
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { onClick: G, children: D })
67916
67916
  }
67917
67917
  ),
67918
67918
  /* @__PURE__ */ jsxRuntimeExports.jsx(KgWorkStationModal, {})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/core.react",
3
- "version": "0.0.1-beta.74",
3
+ "version": "0.0.1-beta.75",
4
4
  "type": "module",
5
5
  "main": "./kengic-core.react.js",
6
6
  "module": "./kengic-core.react.js",
@@ -16,6 +16,7 @@ export type IKgState = {
16
16
  };
17
17
  export declare const setOption: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<IKgOption | null | undefined, "Kg/setOption">;
18
18
  export declare function getOption(state: IKgState): IKgOption;
19
+ export declare const getOption2: (state: IKgState) => IKgOption;
19
20
  export declare const kgStore: import("@reduxjs/toolkit").EnhancedStore<IKgState, import("@reduxjs/toolkit").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("@reduxjs/toolkit").StoreEnhancer<{
20
21
  dispatch: import("@reduxjs/toolkit").ThunkDispatch<IKgState, undefined, import("@reduxjs/toolkit").UnknownAction>;
21
22
  }>, import("@reduxjs/toolkit").StoreEnhancer]>>;