@kengic/vue 0.28.1-beta.1 → 0.28.1-beta.3
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/dist/kengic-vue.js +14 -13
- package/dist/src/component/KgVarConfig/components/KgVarConfigModal.d.ts +2 -2
- package/dist/src/config/config.hooks.d.ts +8 -3
- package/dist/src/config/config.store.d.ts +1 -1
- package/dist/src/config/index.d.ts +0 -4
- package/dist/src/i18n/i18n.setup.d.ts +5 -1
- package/package.json +2 -2
- /package/dist/{close-outlined-DMcSQWxQ.537d8ddf.mjs → close-outlined-DMcSQWxQ.9ca932eb.mjs} +0 -0
- /package/dist/{exclamation-circle-outlined-DZrXCnvM.a3e96b6e.mjs → exclamation-circle-outlined-DZrXCnvM.217ef68f.mjs} +0 -0
- /package/dist/{fullscreen-exit-outlined-X1iYkFc4.37edd487.mjs → fullscreen-exit-outlined-X1iYkFc4.1e8e8688.mjs} +0 -0
- /package/dist/{fullscreen-outlined-DDBrsRcy.db231def.mjs → fullscreen-outlined-DDBrsRcy.b539229d.mjs} +0 -0
- /package/dist/{search-outlined-Od1M_oxf.1b143df4.mjs → search-outlined-Od1M_oxf.fd26a590.mjs} +0 -0
- /package/dist/{three-dots-loading-bIlrTJYR.bd624bcf.mjs → three-dots-loading-bIlrTJYR.4bf0b865.mjs} +0 -0
package/dist/kengic-vue.js
CHANGED
|
@@ -2695,12 +2695,12 @@ reactExports.forwardRef((e, G) => IconComponent({
|
|
|
2695
2695
|
...e,
|
|
2696
2696
|
_ref: G
|
|
2697
2697
|
}));
|
|
2698
|
-
import("./close-outlined-DMcSQWxQ.
|
|
2699
|
-
import("./fullscreen-exit-outlined-X1iYkFc4.
|
|
2700
|
-
import("./fullscreen-outlined-DDBrsRcy.
|
|
2701
|
-
import("./exclamation-circle-outlined-DZrXCnvM.
|
|
2702
|
-
import("./search-outlined-Od1M_oxf.
|
|
2703
|
-
import("./three-dots-loading-bIlrTJYR.
|
|
2698
|
+
import("./close-outlined-DMcSQWxQ.9ca932eb.mjs").then(({ default: e }) => addIcon$1("ant-design:close-outlined", e));
|
|
2699
|
+
import("./fullscreen-exit-outlined-X1iYkFc4.1e8e8688.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-exit-outlined", e));
|
|
2700
|
+
import("./fullscreen-outlined-DDBrsRcy.b539229d.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-outlined", e));
|
|
2701
|
+
import("./exclamation-circle-outlined-DZrXCnvM.217ef68f.mjs").then(({ default: e }) => addIcon$1("ant-design:exclamation-circle-outlined", e));
|
|
2702
|
+
import("./search-outlined-Od1M_oxf.fd26a590.mjs").then(({ default: e }) => addIcon$1("ant-design:search-outlined", e));
|
|
2703
|
+
import("./three-dots-loading-bIlrTJYR.4bf0b865.mjs").then(({ default: e }) => addIcon$1("eos-icons:three-dots-loading", e));
|
|
2704
2704
|
var jsxRuntime = { exports: {} }, reactJsxRuntime_production_min = {};
|
|
2705
2705
|
/**
|
|
2706
2706
|
* @license React
|
|
@@ -66395,7 +66395,7 @@ class KgUtil$1 {
|
|
|
66395
66395
|
function KgWorkStationModal() {
|
|
66396
66396
|
var Ba, Ga, Va;
|
|
66397
66397
|
var e;
|
|
66398
|
-
const G = useID(), U = doKgWorkStation(G), te = useIntl(), ne = useKg$1(), oe = useDispatch(), ie = useSelector(isVisibleSelector(G)), ue = useSelector(isOpenSelector(G)), [st, ea] = reactExports.useState([]), [ta, na] = reactExports.useState(!1), [oa, la] = reactExports.useState([]), [da, ca] = reactExports.useState([]), [fa, pa] = reactExports.useState(""), [ga, ha] = reactExports.useState(""), Ea = useSelector(workStationSelector()), ba = useSelector(workStationAreaSelector()), Sa = (Ba = (e = st.find((za) => za.devcod === oa[0])) == null ? void 0 : e.
|
|
66398
|
+
const G = useID(), U = doKgWorkStation(G), te = useIntl(), ne = useKg$1(), oe = useDispatch(), ie = useSelector(isVisibleSelector(G)), ue = useSelector(isOpenSelector(G)), [st, ea] = reactExports.useState([]), [ta, na] = reactExports.useState(!1), [oa, la] = reactExports.useState([]), [da, ca] = reactExports.useState([]), [fa, pa] = reactExports.useState(""), [ga, ha] = reactExports.useState(""), Ea = useSelector(workStationSelector()), ba = useSelector(workStationAreaSelector()), Sa = (Ba = (e = st.find((za) => za.devcod === oa[0])) == null ? void 0 : e.workstationAndAreaRelationshipDTOList) != null ? Ba : [], Ta = (Ga = st.filter((za) => {
|
|
66399
66399
|
var Ya, La, Qa, pi;
|
|
66400
66400
|
return fa ? ((La = (Ya = za.devcod) == null ? void 0 : Ya.toLowerCase()) == null ? void 0 : La.includes(fa.toLowerCase())) || ((pi = (Qa = za.devcodDsc) == null ? void 0 : Qa.toLowerCase()) == null ? void 0 : pi.includes(fa.toLowerCase())) : za;
|
|
66401
66401
|
})) != null ? Ga : [], Na = (Va = Sa.filter((za) => {
|
|
@@ -66485,7 +66485,7 @@ function KgWorkStationModal() {
|
|
|
66485
66485
|
try {
|
|
66486
66486
|
na(!0);
|
|
66487
66487
|
const Qa = (La = (za = await List$3({ params: { pageNo: 1, pageSize: 999 } })) == null ? void 0 : za.records) != null ? La : [];
|
|
66488
|
-
Qa.find((pi) => pi.devcod === (Ea == null ? void 0 : Ea.devcod)) ? (la([Ea == null ? void 0 : Ea.devcod]), (Ya = Ea == null ? void 0 : Ea.
|
|
66488
|
+
Qa.find((pi) => pi.devcod === (Ea == null ? void 0 : Ea.devcod)) ? (la([Ea == null ? void 0 : Ea.devcod]), (Ya = Ea == null ? void 0 : Ea.workstationAndAreaRelationshipDTOList) != null && Ya.find((pi) => pi.wrkare === (ba == null ? void 0 : ba.wrkare)) ? ca([ba == null ? void 0 : ba.wrkare]) : ca([])) : (la([]), ca([])), ea(Qa);
|
|
66489
66489
|
} finally {
|
|
66490
66490
|
na(!1);
|
|
66491
66491
|
}
|
|
@@ -70091,7 +70091,7 @@ function fi(e) {
|
|
|
70091
70091
|
})
|
|
70092
70092
|
);
|
|
70093
70093
|
}
|
|
70094
|
-
const version = "0.28.1-beta.
|
|
70094
|
+
const version = "0.28.1-beta.3", en$1 = {
|
|
70095
70095
|
kg: {
|
|
70096
70096
|
KgAppSelect: {
|
|
70097
70097
|
businessManager: "Business Manager",
|
|
@@ -72014,8 +72014,8 @@ const localeSetting = {
|
|
|
72014
72014
|
availableLocales: localeList.map((e) => e.event)
|
|
72015
72015
|
};
|
|
72016
72016
|
function setupKgLocale(e) {
|
|
72017
|
-
const { defaultLocale: G = "zh_CN", availableLocales: U } = e != null ? e : {};
|
|
72018
|
-
localeSetting.locale = G, U && U.length > 0 && (localeSetting.availableLocales = U, localeList = localeList.filter((
|
|
72017
|
+
const { defaultLocale: G = "zh_CN", availableLocales: U, I18N: te } = e != null ? e : {};
|
|
72018
|
+
localeSetting.locale = G, U && U.length > 0 && (localeSetting.availableLocales = U, localeList = localeList.filter((ne) => U.includes(ne.event))), te && useKg().store.setI18N(te);
|
|
72019
72019
|
}
|
|
72020
72020
|
const I18N = {
|
|
72021
72021
|
en: en$1,
|
|
@@ -75896,7 +75896,7 @@ const useKgStore = defineStore("Kg", {
|
|
|
75896
75896
|
ne.codval && te.set(ne.codval, ne);
|
|
75897
75897
|
},
|
|
75898
75898
|
setI18N(e) {
|
|
75899
|
-
this.I18N = e;
|
|
75899
|
+
e && (this.I18N = e);
|
|
75900
75900
|
},
|
|
75901
75901
|
setI18n(e) {
|
|
75902
75902
|
this.i18n = e;
|
|
@@ -75938,6 +75938,7 @@ const useKgStore = defineStore("Kg", {
|
|
|
75938
75938
|
function useKg() {
|
|
75939
75939
|
const e = useKgStore(pinia);
|
|
75940
75940
|
return {
|
|
75941
|
+
I18N$$: computed(() => e.getI18N),
|
|
75941
75942
|
getDescription(G) {
|
|
75942
75943
|
return e.getDescription(G);
|
|
75943
75944
|
},
|
|
@@ -76002,7 +76003,7 @@ async function setup(e) {
|
|
|
76002
76003
|
if (ai(`${version}`), !e.pFunction)
|
|
76003
76004
|
throw Ne("setup() | \u7F3A\u5C11\u5FC5\u8981\u7684\u521D\u59CB\u5316\u53C2\u6570.", { options: e }), new Error("[@kengic/vue] \u521D\u59CB\u5316\u5931\u8D25, \u7F3A\u5C11\u5FC5\u8981\u7684\u53C2\u6570.");
|
|
76004
76005
|
const G = useKg();
|
|
76005
|
-
G.store.
|
|
76006
|
+
G.store.setI18n(e.i18n), G.store.setOption((U = e.option) != null ? U : {}), G.store.setP(e.pFunction), G.store.setRouter(e.router), G.store.setUsePermissionStore(e.usePermissionStore), G.store.setUseUserStore(e.useUserStore), G.store.setT(e.i18n), initKgCoreReact({
|
|
76006
76007
|
ref: ref$1,
|
|
76007
76008
|
option: {
|
|
76008
76009
|
KgWorkStation: (te = e.option) == null ? void 0 : te.KgStation
|
|
@@ -5,11 +5,11 @@ export declare const KG_VAR_CONFIG_MODAL__CONTEXT: {
|
|
|
5
5
|
*/
|
|
6
6
|
DEFAULT: string;
|
|
7
7
|
/**
|
|
8
|
-
* 从查询条件组件中, 点击配置按钮打开,
|
|
8
|
+
* 从查询条件组件中, 点击配置按钮打开, 只显示查询条件配置.
|
|
9
9
|
*/
|
|
10
10
|
SEARCH: string;
|
|
11
11
|
/**
|
|
12
|
-
* 从表格中, 点击视图配置菜单打开,
|
|
12
|
+
* 从表格中, 点击视图配置菜单打开, 只显示表格配置.
|
|
13
13
|
*/
|
|
14
14
|
TABLE: string;
|
|
15
15
|
};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
+
import { Router } from 'vue-router';
|
|
2
3
|
import { Description } from '../api/WMS/models';
|
|
3
4
|
import { LocaleType } from '../project/types/config';
|
|
4
|
-
import { IKgStore, P, T } from './config.store';
|
|
5
|
+
import { IKgOption, IKgStore, P, T } from './config.store';
|
|
5
6
|
export interface IUseKg {
|
|
7
|
+
/**
|
|
8
|
+
* 语言数据.
|
|
9
|
+
*/
|
|
10
|
+
I18N$$: ComputedRef<Record<string, any>>;
|
|
6
11
|
/**
|
|
7
12
|
* 获取当前语言下的某个描述.
|
|
8
13
|
*
|
|
@@ -18,13 +23,13 @@ export interface IUseKg {
|
|
|
18
23
|
/**
|
|
19
24
|
* 组件库的配置参数.
|
|
20
25
|
*/
|
|
21
|
-
option: ComputedRef<
|
|
26
|
+
option: ComputedRef<IKgOption>;
|
|
22
27
|
/** 检查权限. */
|
|
23
28
|
p: P;
|
|
24
29
|
/**
|
|
25
30
|
* 路由对象.
|
|
26
31
|
*/
|
|
27
|
-
router: ComputedRef<
|
|
32
|
+
router: ComputedRef<Router | null>;
|
|
28
33
|
store: IKgStore;
|
|
29
34
|
/** 翻译. */
|
|
30
35
|
t: T;
|
|
@@ -299,7 +299,7 @@ export interface IUseKgStoreActions {
|
|
|
299
299
|
codeName: string | null | undefined;
|
|
300
300
|
descriptions: Array<DescriptionDTO>;
|
|
301
301
|
}): void;
|
|
302
|
-
setI18N(I18N
|
|
302
|
+
setI18N(I18N?: Record<string, any>): void;
|
|
303
303
|
setI18n(i18n: any): void;
|
|
304
304
|
setOption(option: IKgOption): void;
|
|
305
305
|
setP(fn: P): void;
|
|
@@ -13,7 +13,11 @@ export declare let localeList: DropMenu[];
|
|
|
13
13
|
export declare const localeSetting: LocaleSetting;
|
|
14
14
|
export declare type IKgLocaleOptions = {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* 语言数据.
|
|
17
|
+
*/
|
|
18
|
+
I18N?: Record<string, any>;
|
|
19
|
+
/**
|
|
20
|
+
* <p>可选择的语言. 默认可选所有语言.</p>
|
|
17
21
|
*/
|
|
18
22
|
availableLocales?: Array<LocaleType>;
|
|
19
23
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/vue",
|
|
3
|
-
"version": "0.28.1-beta.
|
|
3
|
+
"version": "0.28.1-beta.3",
|
|
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",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@iconify-icons/ph": "1.2.5",
|
|
40
40
|
"@iconify/vue": "4.1.2",
|
|
41
41
|
"@kengic/core.core": "0.0.1-beta.22",
|
|
42
|
-
"@kengic/core.react": "0.0.2-beta.
|
|
42
|
+
"@kengic/core.react": "0.0.2-beta.6",
|
|
43
43
|
"@kengic/pont": "1.2.17-beta.5",
|
|
44
44
|
"@rys-fe/vite-plugin-theme": "0.8.6",
|
|
45
45
|
"@thymine/xunee": "0.4.9-beta.8",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{search-outlined-Od1M_oxf.1b143df4.mjs → search-outlined-Od1M_oxf.fd26a590.mjs}
RENAMED
|
File without changes
|
/package/dist/{three-dots-loading-bIlrTJYR.bd624bcf.mjs → three-dots-loading-bIlrTJYR.4bf0b865.mjs}
RENAMED
|
File without changes
|