@kengic/core.react 0.0.1-beta.73 → 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.
package/kengic-core.react.js
CHANGED
|
@@ -24243,14 +24243,14 @@ const KgSlice = createSlice({
|
|
|
24243
24243
|
* @param action
|
|
24244
24244
|
*/
|
|
24245
24245
|
setOption(e, t) {
|
|
24246
|
-
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 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"],
|
|
@@ -67720,9 +67720,8 @@ class KgUtil {
|
|
|
67720
67720
|
),
|
|
67721
67721
|
keyboard: !1,
|
|
67722
67722
|
maskTransitionName: "",
|
|
67723
|
-
// @ts-ignore
|
|
67724
|
-
autoInsertSpace: !1,
|
|
67725
67723
|
okButtonProps: {
|
|
67724
|
+
// TODO LT 此处的 autoInsertSpace 未生效, 是否是 antd 的 bug ?
|
|
67726
67725
|
autoInsertSpace: !1,
|
|
67727
67726
|
danger: !0,
|
|
67728
67727
|
...t.okButtonProps ?? {}
|
|
@@ -67890,30 +67889,30 @@ function KgWorkStationModal() {
|
|
|
67890
67889
|
) });
|
|
67891
67890
|
}
|
|
67892
67891
|
function KgWorkStation() {
|
|
67893
|
-
var
|
|
67894
|
-
const e = useKgSelector(getOption);
|
|
67895
|
-
if (!(((
|
|
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))
|
|
67896
67895
|
return null;
|
|
67897
|
-
const
|
|
67898
|
-
let
|
|
67899
|
-
return
|
|
67900
|
-
})(),
|
|
67901
|
-
if (!
|
|
67902
|
-
return
|
|
67903
|
-
let
|
|
67904
|
-
return
|
|
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;
|
|
67905
67904
|
})();
|
|
67906
|
-
function
|
|
67907
|
-
|
|
67905
|
+
function G() {
|
|
67906
|
+
s.openModal();
|
|
67908
67907
|
}
|
|
67909
67908
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
67910
67909
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67911
67910
|
Tooltip,
|
|
67912
67911
|
{
|
|
67913
|
-
className:
|
|
67912
|
+
className: w,
|
|
67914
67913
|
placement: "bottomRight",
|
|
67915
67914
|
title: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "KgWorkStation.workStationAndWorkStationArea" }),
|
|
67916
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { onClick:
|
|
67915
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { onClick: G, children: D })
|
|
67917
67916
|
}
|
|
67918
67917
|
),
|
|
67919
67918
|
/* @__PURE__ */ jsxRuntimeExports.jsx(KgWorkStationModal, {})
|
|
@@ -67944,7 +67943,7 @@ function initWebComponents() {
|
|
|
67944
67943
|
}
|
|
67945
67944
|
function initKgCoreReact(e) {
|
|
67946
67945
|
const { ref: t, option: r } = e ?? {};
|
|
67947
|
-
setRef(t), kgStore.dispatch(setOption(r)), initWebComponents();
|
|
67946
|
+
setRef(t), console.log("000", r), kgStore.dispatch(setOption(r)), initWebComponents();
|
|
67948
67947
|
}
|
|
67949
67948
|
export {
|
|
67950
67949
|
doKgWorkStation,
|
package/package.json
CHANGED
|
@@ -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]>>;
|