@kengic/core.react 0.0.1-beta.80 → 0.0.1-beta.81
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
|
@@ -66905,20 +66905,34 @@ function createDispatchHook(e = ReactReduxContext) {
|
|
|
66905
66905
|
}
|
|
66906
66906
|
var useDispatch = /* @__PURE__ */ createDispatchHook();
|
|
66907
66907
|
initializeUseSelector(withSelectorExports.useSyncExternalStoreWithSelector);
|
|
66908
|
-
|
|
66909
|
-
const
|
|
66910
|
-
|
|
66911
|
-
|
|
66912
|
-
|
|
66913
|
-
|
|
66914
|
-
|
|
66908
|
+
function useKg() {
|
|
66909
|
+
const e = useIntl();
|
|
66910
|
+
return {
|
|
66911
|
+
/**
|
|
66912
|
+
* 翻译.
|
|
66913
|
+
*
|
|
66914
|
+
* @param id 被翻译的数据.
|
|
66915
|
+
* @return 翻译后的数据.
|
|
66916
|
+
*/
|
|
66917
|
+
t(t) {
|
|
66918
|
+
return e.formatMessage({ id: t });
|
|
66915
66919
|
}
|
|
66916
|
-
}
|
|
66917
|
-
|
|
66918
|
-
|
|
66919
|
-
|
|
66920
|
-
|
|
66921
|
-
}
|
|
66920
|
+
};
|
|
66921
|
+
}
|
|
66922
|
+
let ref = (e) => ({ value: null });
|
|
66923
|
+
function setRef(e) {
|
|
66924
|
+
ref = e;
|
|
66925
|
+
}
|
|
66926
|
+
const eventListenerListRecordRecord = {};
|
|
66927
|
+
function emit(e) {
|
|
66928
|
+
const { event: t, id: r = "", parameter: n } = e ?? {};
|
|
66929
|
+
return ci({
|
|
66930
|
+
event: t,
|
|
66931
|
+
eventListenerListRecordRecord,
|
|
66932
|
+
id: r,
|
|
66933
|
+
parameter: n
|
|
66934
|
+
});
|
|
66935
|
+
}
|
|
66922
66936
|
var assign = make_assign(), create$1 = make_create(), trim$1 = make_trim(), Global$5 = typeof window < "u" ? window : commonjsGlobal, util$6 = {
|
|
66923
66937
|
assign,
|
|
66924
66938
|
create: create$1,
|
|
@@ -67463,17 +67477,7 @@ function json2Plugin() {
|
|
|
67463
67477
|
return requireJson2(), {};
|
|
67464
67478
|
}
|
|
67465
67479
|
var engine = storeEngine, storages = all, plugins = [json2], store_legacy = engine.createStore(storages, plugins);
|
|
67466
|
-
const storejs = /* @__PURE__ */ getDefaultExportFromCjs(store_legacy),
|
|
67467
|
-
function emit(e) {
|
|
67468
|
-
const { event: t, id: r = "", parameter: n } = e ?? {};
|
|
67469
|
-
return ci({
|
|
67470
|
-
event: t,
|
|
67471
|
-
eventListenerListRecordRecord,
|
|
67472
|
-
id: r,
|
|
67473
|
-
parameter: n
|
|
67474
|
-
});
|
|
67475
|
-
}
|
|
67476
|
-
const LOCAL_STORAGE_KEY__WORK_STATION = "KgWorkStation.workStation", LOCAL_STORAGE_KEY__WORK_STATION_AREA = "KgWorkStation.workStationArea";
|
|
67480
|
+
const storejs = /* @__PURE__ */ getDefaultExportFromCjs(store_legacy), LOCAL_STORAGE_KEY__WORK_STATION = "KgWorkStation.workStation", LOCAL_STORAGE_KEY__WORK_STATION_AREA = "KgWorkStation.workStationArea";
|
|
67477
67481
|
console.log("BBB KgWorkStationSlice");
|
|
67478
67482
|
const KgWorkStationSlice = createSlice({
|
|
67479
67483
|
initialState: {
|
|
@@ -67595,24 +67599,6 @@ function workStationAreaSelector(e = "") {
|
|
|
67595
67599
|
return r || (r = storejs.get(LOCAL_STORAGE_KEY__WORK_STATION_AREA, null)), r;
|
|
67596
67600
|
};
|
|
67597
67601
|
}
|
|
67598
|
-
function useKg() {
|
|
67599
|
-
const e = useIntl();
|
|
67600
|
-
return {
|
|
67601
|
-
/**
|
|
67602
|
-
* 翻译.
|
|
67603
|
-
*
|
|
67604
|
-
* @param id 被翻译的数据.
|
|
67605
|
-
* @return 翻译后的数据.
|
|
67606
|
-
*/
|
|
67607
|
-
t(t) {
|
|
67608
|
-
return e.formatMessage({ id: t });
|
|
67609
|
-
}
|
|
67610
|
-
};
|
|
67611
|
-
}
|
|
67612
|
-
let ref = (e) => ({ value: null });
|
|
67613
|
-
function setRef(e) {
|
|
67614
|
-
ref = e;
|
|
67615
|
-
}
|
|
67616
67602
|
function doKgWorkStation(e = "") {
|
|
67617
67603
|
let t = {
|
|
67618
67604
|
closeModal() {
|
|
@@ -67913,6 +67899,20 @@ function KgWorkStation() {
|
|
|
67913
67899
|
/* @__PURE__ */ jsxRuntimeExports.jsx(KgWorkStationModal, {})
|
|
67914
67900
|
] });
|
|
67915
67901
|
}
|
|
67902
|
+
console.log("AAA", KgSlice, KgWorkStationSlice);
|
|
67903
|
+
const store = configureStore({
|
|
67904
|
+
middleware: (e) => e({
|
|
67905
|
+
serializableCheck: {
|
|
67906
|
+
ignoredActionPaths: ["payload.fn"],
|
|
67907
|
+
ignoredActions: [],
|
|
67908
|
+
ignoredPaths: []
|
|
67909
|
+
}
|
|
67910
|
+
}),
|
|
67911
|
+
reducer: {
|
|
67912
|
+
Kg: KgSlice.reducer,
|
|
67913
|
+
KgWorkStation: KgWorkStationSlice.reducer
|
|
67914
|
+
}
|
|
67915
|
+
});
|
|
67916
67916
|
class KgWorkStationElement extends HTMLElement {
|
|
67917
67917
|
constructor() {
|
|
67918
67918
|
super();
|
|
@@ -67942,7 +67942,6 @@ function initKgCoreReact(e) {
|
|
|
67942
67942
|
} })), initWebComponents();
|
|
67943
67943
|
}
|
|
67944
67944
|
export {
|
|
67945
|
-
doKgWorkStation,
|
|
67946
67945
|
initKgCoreReact,
|
|
67947
67946
|
setHttpClient
|
|
67948
67947
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { WorkstationAreaDTO, WorkstationDTO } from '../../api/WMS/models.ts';
|
|
3
|
-
import { IState } from '../../index.store.ts';
|
|
3
|
+
import { type IState } from '../../index.store.ts';
|
|
4
4
|
import { KgWorkStationProps } from './index.vm';
|
|
5
5
|
export type IKgWorkStationState = Record<string, {
|
|
6
6
|
/**
|
package/src/component/index.d.ts
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import './asset/index.css';
|
|
2
2
|
import './iconify.init';
|
|
3
|
-
import { IKgOption } from './component';
|
|
4
|
-
export { doKgWorkStation, type IDoKgWorkStation } from './component';
|
|
3
|
+
import { IKgOption } from './component/Kg';
|
|
5
4
|
export { setHttpClient } from './service';
|
|
6
5
|
export interface IKgCoreReactOptions {
|
|
7
6
|
/**
|
package/src/index.store.d.ts
CHANGED