@kengic/vue 0.27.2-beta.2 → 0.27.2-beta.4
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/index.css +1 -1
- package/dist/kengic-vue.js +398 -322
- package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +1 -1
- package/dist/src/api/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +1 -1
- package/dist/src/api/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +1 -1
- package/dist/src/api/WMS/models.d.ts +14 -0
- package/dist/src/component/KgButton/KgButton.hooks.d.ts +5 -1
- package/dist/src/component/KgForm/KgForm.hooks.d.ts +5 -1
- package/dist/src/component/KgSearch/KgSearch.hooks.d.ts +5 -1
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +5 -1
- package/dist/src/component/KgTable/KgTable.hooks.d.ts +5 -1
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +5 -1
- package/dist/src/util/event.util.d.ts +15 -0
- package/dist/src/util/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/kengic-vue.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
var NR = Object.defineProperty;
|
2
2
|
var AR = (e, G, U) => G in e ? NR(e, G, { enumerable: !0, configurable: !0, writable: !0, value: U }) : e[G] = U;
|
3
3
|
var Ja = (e, G, U) => (AR(e, typeof G != "symbol" ? G + "" : G, U), U);
|
4
|
-
import { h as h$3, nextTick, createVNode, defineComponent, effectScope, ref as ref$1, markRaw, toRaw, getCurrentInstance, inject, watch, unref, reactive, isRef, isReactive, toRef, computed, onUnmounted, toRefs, Fragment, createTextVNode, isVNode as isVNode$1,
|
5
|
-
import { Spin as Spin$1, Modal as Modal$2,
|
4
|
+
import { h as h$3, nextTick, createVNode, defineComponent, effectScope, ref as ref$1, markRaw, toRaw, getCurrentInstance, inject, watch, unref, reactive, isRef, isReactive, toRef, computed, onUnmounted, toRefs, onBeforeUnmount, onMounted, getCurrentScope as getCurrentScope$1, onScopeDispose, Fragment, createTextVNode, isVNode as isVNode$1, provide, readonly, watchEffect, onActivated, shallowRef, onBeforeUpdate, defineAsyncComponent, warn as warn$2, onBeforeMount, Text, mergeProps as mergeProps$1, onDeactivated } from "vue";
|
5
|
+
import { Spin as Spin$1, Modal as Modal$2, notification, Select as Select$2, Tooltip as Tooltip$3, SelectOption, Menu as Menu$2, Button as Button$2, Image as Image$1, Form as Form$1, Dropdown as Dropdown$4, Progress as Progress$1, Checkbox as Checkbox$3, Divider as Divider$1, Row, Col, DatePicker, Input as Input$4, InputNumber, Radio as Radio$2, Switch, Textarea, Tag, Table as Table$2, Pagination as Pagination$2, TableSummary, Tabs as Tabs$2, Transfer, TabPane as TabPane$2, Upload, ConfigProvider as ConfigProvider$1, TreeSelect, Steps } from "ant-design-vue";
|
6
6
|
const index$f = "";
|
7
7
|
var iM = Object.defineProperty, lM = (e, G, U) => G in e ? iM(e, G, { enumerable: !0, configurable: !0, writable: !0, value: U }) : e[G] = U, D_ = (e, G, U) => lM(e, typeof G != "symbol" ? G + "" : G, U);
|
8
8
|
function _mergeNamespaces(e, G) {
|
@@ -70091,7 +70091,7 @@ function fi(e) {
|
|
70091
70091
|
})
|
70092
70092
|
);
|
70093
70093
|
}
|
70094
|
-
const version = "0.27.2-beta.
|
70094
|
+
const version = "0.27.2-beta.4", en$1 = {
|
70095
70095
|
kg: {
|
70096
70096
|
KgAppSelect: {
|
70097
70097
|
businessManager: "Business Manager",
|
@@ -76063,6 +76063,247 @@ const KG__DYNAMIC_PARAM = {
|
|
76063
76063
|
];
|
76064
76064
|
var KG__SPAN = /* @__PURE__ */ ((e) => (e[e._1 = 1] = "_1", e[e._2 = 2] = "_2", e[e._3 = 3] = "_3", e[e._4 = 4] = "_4", e[e._5 = 5] = "_5", e[e._6 = 6] = "_6", e[e._7 = 7] = "_7", e[e._8 = 8] = "_8", e[e._9 = 9] = "_9", e[e._10 = 10] = "_10", e[e._11 = 11] = "_11", e[e._12 = 12] = "_12", e[e._13 = 13] = "_13", e[e._14 = 14] = "_14", e[e._15 = 15] = "_15", e[e._16 = 16] = "_16", e[e._17 = 17] = "_17", e[e._18 = 18] = "_18", e[e._19 = 19] = "_19", e[e._20 = 20] = "_20", e[e._21 = 21] = "_21", e[e._22 = 22] = "_22", e[e._23 = 23] = "_23", e[e._24 = 24] = "_24", e))(KG__SPAN || {}), KG__VAR_BUTTON__EXPORT_EXCEL_SUFFIX = /* @__PURE__ */ ((e) => (e.XLS = "XLS", e.XLSX = "XLSX", e))(KG__VAR_BUTTON__EXPORT_EXCEL_SUFFIX || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {}), KG_DYNAMIC_QUERY_OPERATOR = /* @__PURE__ */ ((e) => (e.EQ = "EQ", e.NE = "NE", e.GT = "GT", e.LT = "LT", e.GTE = "GTE", e.LTE = "LTE", e.START_WITH = "START", e.END_WITH = "END", e.CONTAIN = "CONTAIN", e.IN = "IN", e.BETWEEN = "BETWEEN", e))(KG_DYNAMIC_QUERY_OPERATOR || {}), KG_HTTP_HEADERS = /* @__PURE__ */ ((e) => (e.KG_PAGE_INDEX = "Kg-Page-Index", e.KG_PAGE_SISE = "Kg-Page-Size", e.KG_FORM_ID = "Kg-Form-Id", e.KG_BUTTON_VAR_NAME = "Kg-Button-Var-Name", e.KG_IS_DYNAMIC_QUERY = "Kg-Is-Dynamic-Query", e.KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql", e.KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql", e.KG_QUERY_OFFSET_SQL = "Kg-Query-Offset-Sql", e.KG_QUERY_SQL = "Kg-Query-Sql", e.KG_QUERY_OPERATOR = "Kg-Query-Operator", e.KG_WAREHOUSE = "Kg-Warehouse", e.KG_WORK_STATION = "Kg-Work-Station", e.KG_WORK_STATION_AREA = "Kg-Work-Area", e))(KG_HTTP_HEADERS || {});
|
76065
76065
|
const __KG__RESPONSE__ = "__KG__RESPONSE__", KG_TMP_MENU_ID__DATA_MANAGER = "KG_TMP_MENU_ID__DATA_MANAGER", KG_TMP_MENU_ID__BUSINESS_MANAGER = "KG_TMP_MENU_ID__BUSINESS_MANAGER", KG_TMP_MENU_ID__WCS = "KG_TMP_MENU_ID__WCS", KG_TMP_MENU_ID__SYS = "KG_TMP_MENU_ID__SYS", KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA", KG__DI__ID = Symbol("KG__DI__ID"), KG__DI__FORM_ID = Symbol("KG__DI__FORM_ID"), KG__DI__VAR_CONFIG_LOOKUP__HOST_FORM_ID = Symbol("KG__DI__VAR_CONFIG_LOOKUP__HOST_FORM_ID"), KG__DI__KG_FORM_ITEM__VAR_NAME = Symbol("KG__DI__KG_FORM_ITEM__VAR_NAME"), KG__DI__VAR_CONFIG_LOOKUP__LOOKUP_ID = Symbol("KG__DI__VAR_CONFIG_LOOKUP__LOOKUP_ID");
|
76066
|
+
var _a;
|
76067
|
+
const isClient = typeof window < "u", isString$2 = (e) => typeof e == "string", noop$1 = () => {
|
76068
|
+
};
|
76069
|
+
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
76070
|
+
function createFilterWrapper(e, G) {
|
76071
|
+
function U(...te) {
|
76072
|
+
e(() => G.apply(this, te), { fn: G, thisArg: this, args: te });
|
76073
|
+
}
|
76074
|
+
return U;
|
76075
|
+
}
|
76076
|
+
function debounceFilter(e, G = {}) {
|
76077
|
+
let U, te;
|
76078
|
+
return (oe) => {
|
76079
|
+
const ie = unref(e), ue = unref(G.maxWait);
|
76080
|
+
if (U && clearTimeout(U), ie <= 0 || ue !== void 0 && ue <= 0)
|
76081
|
+
return te && (clearTimeout(te), te = null), oe();
|
76082
|
+
ue && !te && (te = setTimeout(() => {
|
76083
|
+
U && clearTimeout(U), te = null, oe();
|
76084
|
+
}, ue)), U = setTimeout(() => {
|
76085
|
+
te && clearTimeout(te), te = null, oe();
|
76086
|
+
}, ie);
|
76087
|
+
};
|
76088
|
+
}
|
76089
|
+
function throttleFilter(e, G = !0, U = !0) {
|
76090
|
+
let te = 0, ne, oe = !0;
|
76091
|
+
const ie = () => {
|
76092
|
+
ne && (clearTimeout(ne), ne = void 0);
|
76093
|
+
};
|
76094
|
+
return (st) => {
|
76095
|
+
const ea = unref(e), ta = Date.now() - te;
|
76096
|
+
if (ie(), ea <= 0)
|
76097
|
+
return te = Date.now(), st();
|
76098
|
+
ta > ea && (U || !oe) ? (te = Date.now(), st()) : G && (ne = setTimeout(() => {
|
76099
|
+
te = Date.now(), oe = !0, ie(), st();
|
76100
|
+
}, ea)), !U && !ne && (ne = setTimeout(() => oe = !0, ea)), oe = !1;
|
76101
|
+
};
|
76102
|
+
}
|
76103
|
+
function tryOnScopeDispose(e) {
|
76104
|
+
return getCurrentScope$1() ? (onScopeDispose(e), !0) : !1;
|
76105
|
+
}
|
76106
|
+
function useDebounceFn(e, G = 200, U = {}) {
|
76107
|
+
return createFilterWrapper(debounceFilter(G, U), e);
|
76108
|
+
}
|
76109
|
+
function useThrottleFn(e, G = 200, U = !0, te = !0) {
|
76110
|
+
return createFilterWrapper(throttleFilter(G, U, te), e);
|
76111
|
+
}
|
76112
|
+
function tryOnBeforeUnmount(e) {
|
76113
|
+
getCurrentInstance() && onBeforeUnmount(e);
|
76114
|
+
}
|
76115
|
+
function tryOnMounted(e, G = !0) {
|
76116
|
+
getCurrentInstance() ? onMounted(e) : G ? e() : nextTick(e);
|
76117
|
+
}
|
76118
|
+
function tryOnUnmounted(e) {
|
76119
|
+
getCurrentInstance() && onUnmounted(e);
|
76120
|
+
}
|
76121
|
+
function useIntervalFn(e, G = 1e3, U = {}) {
|
76122
|
+
const {
|
76123
|
+
immediate: te = !0,
|
76124
|
+
immediateCallback: ne = !1
|
76125
|
+
} = U;
|
76126
|
+
let oe = null;
|
76127
|
+
const ie = ref$1(!1);
|
76128
|
+
function ue() {
|
76129
|
+
oe && (clearInterval(oe), oe = null);
|
76130
|
+
}
|
76131
|
+
function st() {
|
76132
|
+
ie.value = !1, ue();
|
76133
|
+
}
|
76134
|
+
function ea() {
|
76135
|
+
unref(G) <= 0 || (ie.value = !0, ne && e(), ue(), oe = setInterval(e, unref(G)));
|
76136
|
+
}
|
76137
|
+
if (te && isClient && ea(), isRef(G)) {
|
76138
|
+
const ta = watch(G, () => {
|
76139
|
+
ie.value && isClient && ea();
|
76140
|
+
});
|
76141
|
+
tryOnScopeDispose(ta);
|
76142
|
+
}
|
76143
|
+
return tryOnScopeDispose(st), {
|
76144
|
+
isActive: ie,
|
76145
|
+
pause: st,
|
76146
|
+
resume: ea
|
76147
|
+
};
|
76148
|
+
}
|
76149
|
+
function unrefElement(e) {
|
76150
|
+
var G;
|
76151
|
+
const U = unref(e);
|
76152
|
+
return (G = U == null ? void 0 : U.$el) != null ? G : U;
|
76153
|
+
}
|
76154
|
+
const defaultWindow = isClient ? window : void 0;
|
76155
|
+
isClient && window.document;
|
76156
|
+
isClient && window.navigator;
|
76157
|
+
isClient && window.location;
|
76158
|
+
function useEventListener$1(...e) {
|
76159
|
+
let G, U, te, ne;
|
76160
|
+
if (isString$2(e[0]) ? ([U, te, ne] = e, G = defaultWindow) : [G, U, te, ne] = e, !G)
|
76161
|
+
return noop$1;
|
76162
|
+
let oe = noop$1;
|
76163
|
+
const ie = watch(() => unrefElement(G), (st) => {
|
76164
|
+
oe(), st && (st.addEventListener(U, te, ne), oe = () => {
|
76165
|
+
st.removeEventListener(U, te, ne), oe = noop$1;
|
76166
|
+
});
|
76167
|
+
}, { immediate: !0, flush: "post" }), ue = () => {
|
76168
|
+
ie(), oe();
|
76169
|
+
};
|
76170
|
+
return tryOnScopeDispose(ue), ue;
|
76171
|
+
}
|
76172
|
+
const _global = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, globalKey = "__vueuse_ssr_handlers__";
|
76173
|
+
_global[globalKey] = _global[globalKey] || {};
|
76174
|
+
_global[globalKey];
|
76175
|
+
const DefaultMagicKeysAliasMap = {
|
76176
|
+
ctrl: "control",
|
76177
|
+
command: "meta",
|
76178
|
+
cmd: "meta",
|
76179
|
+
option: "alt",
|
76180
|
+
up: "arrowup",
|
76181
|
+
down: "arrowdown",
|
76182
|
+
left: "arrowleft",
|
76183
|
+
right: "arrowright"
|
76184
|
+
};
|
76185
|
+
function useMagicKeys(e = {}) {
|
76186
|
+
const {
|
76187
|
+
reactive: G = !1,
|
76188
|
+
target: U = defaultWindow,
|
76189
|
+
aliasMap: te = DefaultMagicKeysAliasMap,
|
76190
|
+
passive: ne = !0,
|
76191
|
+
onEventFired: oe = noop$1
|
76192
|
+
} = e, ie = reactive(/* @__PURE__ */ new Set()), ue = { toJSON() {
|
76193
|
+
return {};
|
76194
|
+
}, current: ie }, st = G ? reactive(ue) : ue, ea = /* @__PURE__ */ new Set(), ta = /* @__PURE__ */ new Set();
|
76195
|
+
function aa(ca, fa) {
|
76196
|
+
ca in st && (G ? st[ca] = fa : st[ca].value = fa);
|
76197
|
+
}
|
76198
|
+
function oa() {
|
76199
|
+
for (const ca of ta)
|
76200
|
+
aa(ca, !1);
|
76201
|
+
}
|
76202
|
+
function la(ca, fa) {
|
76203
|
+
var pa, ga;
|
76204
|
+
const ha = (pa = ca.key) == null ? void 0 : pa.toLowerCase(), Ea = (ga = ca.code) == null ? void 0 : ga.toLowerCase(), ya = [Ea, ha].filter(Boolean);
|
76205
|
+
Ea && (fa ? ie.add(ca.code) : ie.delete(ca.code));
|
76206
|
+
for (const Sa of ya)
|
76207
|
+
ta.add(Sa), aa(Sa, fa);
|
76208
|
+
ha === "meta" && !fa ? (ea.forEach((Sa) => {
|
76209
|
+
ie.delete(Sa), aa(Sa, !1);
|
76210
|
+
}), ea.clear()) : typeof ca.getModifierState == "function" && ca.getModifierState("Meta") && fa && [...ie, ...ya].forEach((Sa) => ea.add(Sa));
|
76211
|
+
}
|
76212
|
+
U && (useEventListener$1(U, "keydown", (ca) => (la(ca, !0), oe(ca)), { passive: ne }), useEventListener$1(U, "keyup", (ca) => (la(ca, !1), oe(ca)), { passive: ne }), useEventListener$1("blur", oa, { passive: !0 }), useEventListener$1("focus", oa, { passive: !0 }));
|
76213
|
+
const da = new Proxy(st, {
|
76214
|
+
get(ca, fa, pa) {
|
76215
|
+
if (typeof fa != "string")
|
76216
|
+
return Reflect.get(ca, fa, pa);
|
76217
|
+
if (fa = fa.toLowerCase(), fa in te && (fa = te[fa]), !(fa in st))
|
76218
|
+
if (/[+_-]/.test(fa)) {
|
76219
|
+
const ha = fa.split(/[+_-]/g).map((Ea) => Ea.trim());
|
76220
|
+
st[fa] = computed(() => ha.every((Ea) => unref(da[Ea])));
|
76221
|
+
} else
|
76222
|
+
st[fa] = ref$1(!1);
|
76223
|
+
const ga = Reflect.get(ca, fa, pa);
|
76224
|
+
return G ? unref(ga) : ga;
|
76225
|
+
}
|
76226
|
+
});
|
76227
|
+
return da;
|
76228
|
+
}
|
76229
|
+
var SwipeDirection;
|
76230
|
+
(function(e) {
|
76231
|
+
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
76232
|
+
})(SwipeDirection || (SwipeDirection = {}));
|
76233
|
+
function resolveNestedOptions(e) {
|
76234
|
+
return e === !0 ? {} : e;
|
76235
|
+
}
|
76236
|
+
function useWebSocket(e, G = {}) {
|
76237
|
+
const {
|
76238
|
+
onConnected: U,
|
76239
|
+
onDisconnected: te,
|
76240
|
+
onError: ne,
|
76241
|
+
onMessage: oe,
|
76242
|
+
immediate: ie = !0,
|
76243
|
+
autoClose: ue = !0,
|
76244
|
+
protocols: st = []
|
76245
|
+
} = G, ea = ref$1(null), ta = ref$1("CONNECTING"), aa = ref$1();
|
76246
|
+
let oa, la, da = !1, ca = 0, fa = [];
|
76247
|
+
const pa = (Sa = 1e3, Ta) => {
|
76248
|
+
!aa.value || (da = !0, oa == null || oa(), aa.value.close(Sa, Ta));
|
76249
|
+
}, ga = () => {
|
76250
|
+
if (fa.length && aa.value && ta.value === "OPEN") {
|
76251
|
+
for (const Sa of fa)
|
76252
|
+
aa.value.send(Sa);
|
76253
|
+
fa = [];
|
76254
|
+
}
|
76255
|
+
}, ha = (Sa, Ta = !0) => !aa.value || ta.value !== "OPEN" ? (Ta && fa.push(Sa), !1) : (ga(), aa.value.send(Sa), !0), Ea = () => {
|
76256
|
+
const Sa = new WebSocket(e, st);
|
76257
|
+
aa.value = Sa, ta.value = "CONNECTING", da = !1, Sa.onopen = () => {
|
76258
|
+
ta.value = "OPEN", U == null || U(Sa), la == null || la(), ga();
|
76259
|
+
}, Sa.onclose = (Ta) => {
|
76260
|
+
if (ta.value = "CLOSED", aa.value = void 0, te == null || te(Sa, Ta), !da && G.autoReconnect) {
|
76261
|
+
const {
|
76262
|
+
retries: Na = -1,
|
76263
|
+
delay: Aa = 1e3,
|
76264
|
+
onFailed: wa
|
76265
|
+
} = resolveNestedOptions(G.autoReconnect);
|
76266
|
+
ca += 1, typeof Na == "number" && (Na < 0 || ca < Na) || typeof Na == "function" && Na() ? setTimeout(Ea, Aa) : wa == null || wa();
|
76267
|
+
}
|
76268
|
+
}, Sa.onerror = (Ta) => {
|
76269
|
+
ne == null || ne(Sa, Ta);
|
76270
|
+
}, Sa.onmessage = (Ta) => {
|
76271
|
+
ea.value = Ta.data, oe == null || oe(Sa, Ta);
|
76272
|
+
};
|
76273
|
+
};
|
76274
|
+
if (G.heartbeat) {
|
76275
|
+
const {
|
76276
|
+
message: Sa = "ping",
|
76277
|
+
interval: Ta = 1e3
|
76278
|
+
} = resolveNestedOptions(G.heartbeat), { pause: Na, resume: Aa } = useIntervalFn(() => ha(Sa, !1), Ta, { immediate: !1 });
|
76279
|
+
oa = Na, la = Aa;
|
76280
|
+
}
|
76281
|
+
return ie && Ea(), ue && (useEventListener$1(window, "beforeunload", () => pa()), tryOnScopeDispose(pa)), {
|
76282
|
+
data: ea,
|
76283
|
+
status: ta,
|
76284
|
+
close: pa,
|
76285
|
+
send: ha,
|
76286
|
+
open: () => {
|
76287
|
+
pa(), ca = 0, Ea();
|
76288
|
+
},
|
76289
|
+
ws: aa
|
76290
|
+
};
|
76291
|
+
}
|
76292
|
+
function useWindowSize(e = {}) {
|
76293
|
+
const {
|
76294
|
+
window: G = defaultWindow,
|
76295
|
+
initialWidth: U = 1 / 0,
|
76296
|
+
initialHeight: te = 1 / 0,
|
76297
|
+
listenOrientation: ne = !0
|
76298
|
+
} = e, oe = ref$1(U), ie = ref$1(te), ue = () => {
|
76299
|
+
G && (oe.value = G.innerWidth, ie.value = G.innerHeight);
|
76300
|
+
};
|
76301
|
+
return ue(), tryOnMounted(ue), useEventListener$1("resize", ue, { passive: !0 }), ne && useEventListener$1("orientationchange", ue, { passive: !0 }), { width: oe, height: ie };
|
76302
|
+
}
|
76303
|
+
function kgOnEventFactory(e) {
|
76304
|
+
const G = si(e);
|
76305
|
+
return (U, te) => (tryOnBeforeUnmount(() => ee({ ...e, listener: U })), G(U, te));
|
76306
|
+
}
|
76066
76307
|
var dayjs_min = { exports: {} };
|
76067
76308
|
(function(e, G) {
|
76068
76309
|
(function(U, te) {
|
@@ -76697,8 +76938,8 @@ class _KgUtil {
|
|
76697
76938
|
if (isObjectLike(U) && "errorFields" in U && "outOfDate" in U && "values" in U) {
|
76698
76939
|
if (te) {
|
76699
76940
|
const ne = useKg(), oe = G ? useKgVar(G) : null;
|
76700
|
-
|
76701
|
-
|
76941
|
+
notification.error({
|
76942
|
+
message: () => {
|
76702
76943
|
var ie, ue;
|
76703
76944
|
return createVNode(Fragment, null, [createVNode("span", null, [ne.t("kg.formValidationFail"), createTextVNode(":")]), createVNode("div", {
|
76704
76945
|
style: {
|
@@ -77999,7 +78240,7 @@ const useKgAppSelectStore = defineStore("KgAppSelect", {
|
|
77999
78240
|
this.currentApp = e;
|
78000
78241
|
let U = _KgUtil.getAppIndexPath(e);
|
78001
78242
|
if ((!U || !_KgUtil.isPathAuthenticated(U)) && (ii("KgAppSelect | gotoApp() | \u6A21\u5757\u9996\u9875\u6CA1\u6709\u8BBF\u95EE\u6743\u9650.", { app: e, path: U }), U = (ne = _KgUtil.getFirstLeafMenu(e)) == null ? void 0 : ne.path), !U || !_KgUtil.isPathAuthenticated(U)) {
|
78002
|
-
ii("KgAppSelect | gotoApp() | \u8BE5\u6A21\u5757\u4E0B\u6CA1\u6709\u53EF\u8BBF\u95EE\u7684\u83DC\u5355.", { app: e, path: U }),
|
78243
|
+
ii("KgAppSelect | gotoApp() | \u8BE5\u6A21\u5757\u4E0B\u6CA1\u6709\u53EF\u8BBF\u95EE\u7684\u83DC\u5355.", { app: e, path: U }), notification.error({ message: "\u8BE5\u6A21\u5757\u4E0B\u6CA1\u6709\u53EF\u8BBF\u95EE\u7684\u83DC\u5355." });
|
78003
78244
|
return;
|
78004
78245
|
}
|
78005
78246
|
const { path: te } = unref(G.router.value.currentRoute);
|
@@ -78044,12 +78285,12 @@ function useKgAppSelect() {
|
|
78044
78285
|
const e = useKgAppSelectStore(pinia);
|
78045
78286
|
return {
|
78046
78287
|
store: e,
|
78047
|
-
onGotoApp:
|
78288
|
+
onGotoApp: kgOnEventFactory({
|
78048
78289
|
eventListeners: eventListeners$8,
|
78049
78290
|
event: "onGotoApp",
|
78050
78291
|
id: ""
|
78051
78292
|
}),
|
78052
|
-
onGotoPath:
|
78293
|
+
onGotoPath: kgOnEventFactory({
|
78053
78294
|
eventListeners: eventListeners$8,
|
78054
78295
|
event: "onGotoPath",
|
78055
78296
|
id: ""
|
@@ -86327,52 +86568,52 @@ const screenful = screenfull, getProps$O = () => ({
|
|
86327
86568
|
function useKgCanvas(e) {
|
86328
86569
|
const G = useKgCanvasStore(pinia);
|
86329
86570
|
return {
|
86330
|
-
onClick:
|
86571
|
+
onClick: kgOnEventFactory({
|
86331
86572
|
eventListeners: eventListeners$7,
|
86332
86573
|
event: "onClick",
|
86333
86574
|
id: e
|
86334
86575
|
}),
|
86335
|
-
onContextMenuClose:
|
86576
|
+
onContextMenuClose: kgOnEventFactory({
|
86336
86577
|
eventListeners: eventListeners$7,
|
86337
86578
|
event: "onContextMenuClose",
|
86338
86579
|
id: e
|
86339
86580
|
}),
|
86340
|
-
onContextMenuOpen:
|
86581
|
+
onContextMenuOpen: kgOnEventFactory({
|
86341
86582
|
eventListeners: eventListeners$7,
|
86342
86583
|
event: "onContextMenuOpen",
|
86343
86584
|
id: e
|
86344
86585
|
}),
|
86345
|
-
onInit:
|
86586
|
+
onInit: kgOnEventFactory({
|
86346
86587
|
eventListeners: eventListeners$7,
|
86347
86588
|
event: "onInit",
|
86348
86589
|
id: e
|
86349
86590
|
}),
|
86350
|
-
onMouseEnter:
|
86591
|
+
onMouseEnter: kgOnEventFactory({
|
86351
86592
|
eventListeners: eventListeners$7,
|
86352
86593
|
event: "onMouseEnter",
|
86353
86594
|
id: e
|
86354
86595
|
}),
|
86355
|
-
onMouseLeave:
|
86596
|
+
onMouseLeave: kgOnEventFactory({
|
86356
86597
|
eventListeners: eventListeners$7,
|
86357
86598
|
event: "onMouseLeave",
|
86358
86599
|
id: e
|
86359
86600
|
}),
|
86360
|
-
onMouseMove:
|
86601
|
+
onMouseMove: kgOnEventFactory({
|
86361
86602
|
eventListeners: eventListeners$7,
|
86362
86603
|
event: "onMouseMove",
|
86363
86604
|
id: e
|
86364
86605
|
}),
|
86365
|
-
onReload:
|
86606
|
+
onReload: kgOnEventFactory({
|
86366
86607
|
eventListeners: eventListeners$7,
|
86367
86608
|
event: "onReload",
|
86368
86609
|
id: e
|
86369
86610
|
}),
|
86370
|
-
onResize:
|
86611
|
+
onResize: kgOnEventFactory({
|
86371
86612
|
eventListeners: eventListeners$7,
|
86372
86613
|
event: "onResize",
|
86373
86614
|
id: e
|
86374
86615
|
}),
|
86375
|
-
onRightClick:
|
86616
|
+
onRightClick: kgOnEventFactory({
|
86376
86617
|
eventListeners: eventListeners$7,
|
86377
86618
|
event: "onRightClick",
|
86378
86619
|
id: e
|
@@ -86603,240 +86844,6 @@ function useRefs() {
|
|
86603
86844
|
e.value[U] = te;
|
86604
86845
|
}];
|
86605
86846
|
}
|
86606
|
-
var _a;
|
86607
|
-
const isClient = typeof window < "u", isString$2 = (e) => typeof e == "string", noop$1 = () => {
|
86608
|
-
};
|
86609
|
-
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
86610
|
-
function createFilterWrapper(e, G) {
|
86611
|
-
function U(...te) {
|
86612
|
-
e(() => G.apply(this, te), { fn: G, thisArg: this, args: te });
|
86613
|
-
}
|
86614
|
-
return U;
|
86615
|
-
}
|
86616
|
-
function debounceFilter(e, G = {}) {
|
86617
|
-
let U, te;
|
86618
|
-
return (oe) => {
|
86619
|
-
const ie = unref(e), ue = unref(G.maxWait);
|
86620
|
-
if (U && clearTimeout(U), ie <= 0 || ue !== void 0 && ue <= 0)
|
86621
|
-
return te && (clearTimeout(te), te = null), oe();
|
86622
|
-
ue && !te && (te = setTimeout(() => {
|
86623
|
-
U && clearTimeout(U), te = null, oe();
|
86624
|
-
}, ue)), U = setTimeout(() => {
|
86625
|
-
te && clearTimeout(te), te = null, oe();
|
86626
|
-
}, ie);
|
86627
|
-
};
|
86628
|
-
}
|
86629
|
-
function throttleFilter(e, G = !0, U = !0) {
|
86630
|
-
let te = 0, ne, oe = !0;
|
86631
|
-
const ie = () => {
|
86632
|
-
ne && (clearTimeout(ne), ne = void 0);
|
86633
|
-
};
|
86634
|
-
return (st) => {
|
86635
|
-
const ea = unref(e), ta = Date.now() - te;
|
86636
|
-
if (ie(), ea <= 0)
|
86637
|
-
return te = Date.now(), st();
|
86638
|
-
ta > ea && (U || !oe) ? (te = Date.now(), st()) : G && (ne = setTimeout(() => {
|
86639
|
-
te = Date.now(), oe = !0, ie(), st();
|
86640
|
-
}, ea)), !U && !ne && (ne = setTimeout(() => oe = !0, ea)), oe = !1;
|
86641
|
-
};
|
86642
|
-
}
|
86643
|
-
function tryOnScopeDispose(e) {
|
86644
|
-
return getCurrentScope$1() ? (onScopeDispose(e), !0) : !1;
|
86645
|
-
}
|
86646
|
-
function useDebounceFn(e, G = 200, U = {}) {
|
86647
|
-
return createFilterWrapper(debounceFilter(G, U), e);
|
86648
|
-
}
|
86649
|
-
function useThrottleFn(e, G = 200, U = !0, te = !0) {
|
86650
|
-
return createFilterWrapper(throttleFilter(G, U, te), e);
|
86651
|
-
}
|
86652
|
-
function tryOnMounted(e, G = !0) {
|
86653
|
-
getCurrentInstance() ? onMounted(e) : G ? e() : nextTick(e);
|
86654
|
-
}
|
86655
|
-
function tryOnUnmounted(e) {
|
86656
|
-
getCurrentInstance() && onUnmounted(e);
|
86657
|
-
}
|
86658
|
-
function useIntervalFn(e, G = 1e3, U = {}) {
|
86659
|
-
const {
|
86660
|
-
immediate: te = !0,
|
86661
|
-
immediateCallback: ne = !1
|
86662
|
-
} = U;
|
86663
|
-
let oe = null;
|
86664
|
-
const ie = ref$1(!1);
|
86665
|
-
function ue() {
|
86666
|
-
oe && (clearInterval(oe), oe = null);
|
86667
|
-
}
|
86668
|
-
function st() {
|
86669
|
-
ie.value = !1, ue();
|
86670
|
-
}
|
86671
|
-
function ea() {
|
86672
|
-
unref(G) <= 0 || (ie.value = !0, ne && e(), ue(), oe = setInterval(e, unref(G)));
|
86673
|
-
}
|
86674
|
-
if (te && isClient && ea(), isRef(G)) {
|
86675
|
-
const ta = watch(G, () => {
|
86676
|
-
ie.value && isClient && ea();
|
86677
|
-
});
|
86678
|
-
tryOnScopeDispose(ta);
|
86679
|
-
}
|
86680
|
-
return tryOnScopeDispose(st), {
|
86681
|
-
isActive: ie,
|
86682
|
-
pause: st,
|
86683
|
-
resume: ea
|
86684
|
-
};
|
86685
|
-
}
|
86686
|
-
function unrefElement(e) {
|
86687
|
-
var G;
|
86688
|
-
const U = unref(e);
|
86689
|
-
return (G = U == null ? void 0 : U.$el) != null ? G : U;
|
86690
|
-
}
|
86691
|
-
const defaultWindow = isClient ? window : void 0;
|
86692
|
-
isClient && window.document;
|
86693
|
-
isClient && window.navigator;
|
86694
|
-
isClient && window.location;
|
86695
|
-
function useEventListener$1(...e) {
|
86696
|
-
let G, U, te, ne;
|
86697
|
-
if (isString$2(e[0]) ? ([U, te, ne] = e, G = defaultWindow) : [G, U, te, ne] = e, !G)
|
86698
|
-
return noop$1;
|
86699
|
-
let oe = noop$1;
|
86700
|
-
const ie = watch(() => unrefElement(G), (st) => {
|
86701
|
-
oe(), st && (st.addEventListener(U, te, ne), oe = () => {
|
86702
|
-
st.removeEventListener(U, te, ne), oe = noop$1;
|
86703
|
-
});
|
86704
|
-
}, { immediate: !0, flush: "post" }), ue = () => {
|
86705
|
-
ie(), oe();
|
86706
|
-
};
|
86707
|
-
return tryOnScopeDispose(ue), ue;
|
86708
|
-
}
|
86709
|
-
const _global = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, globalKey = "__vueuse_ssr_handlers__";
|
86710
|
-
_global[globalKey] = _global[globalKey] || {};
|
86711
|
-
_global[globalKey];
|
86712
|
-
const DefaultMagicKeysAliasMap = {
|
86713
|
-
ctrl: "control",
|
86714
|
-
command: "meta",
|
86715
|
-
cmd: "meta",
|
86716
|
-
option: "alt",
|
86717
|
-
up: "arrowup",
|
86718
|
-
down: "arrowdown",
|
86719
|
-
left: "arrowleft",
|
86720
|
-
right: "arrowright"
|
86721
|
-
};
|
86722
|
-
function useMagicKeys(e = {}) {
|
86723
|
-
const {
|
86724
|
-
reactive: G = !1,
|
86725
|
-
target: U = defaultWindow,
|
86726
|
-
aliasMap: te = DefaultMagicKeysAliasMap,
|
86727
|
-
passive: ne = !0,
|
86728
|
-
onEventFired: oe = noop$1
|
86729
|
-
} = e, ie = reactive(/* @__PURE__ */ new Set()), ue = { toJSON() {
|
86730
|
-
return {};
|
86731
|
-
}, current: ie }, st = G ? reactive(ue) : ue, ea = /* @__PURE__ */ new Set(), ta = /* @__PURE__ */ new Set();
|
86732
|
-
function aa(ca, fa) {
|
86733
|
-
ca in st && (G ? st[ca] = fa : st[ca].value = fa);
|
86734
|
-
}
|
86735
|
-
function oa() {
|
86736
|
-
for (const ca of ta)
|
86737
|
-
aa(ca, !1);
|
86738
|
-
}
|
86739
|
-
function la(ca, fa) {
|
86740
|
-
var pa, ga;
|
86741
|
-
const ha = (pa = ca.key) == null ? void 0 : pa.toLowerCase(), Ea = (ga = ca.code) == null ? void 0 : ga.toLowerCase(), ya = [Ea, ha].filter(Boolean);
|
86742
|
-
Ea && (fa ? ie.add(ca.code) : ie.delete(ca.code));
|
86743
|
-
for (const Sa of ya)
|
86744
|
-
ta.add(Sa), aa(Sa, fa);
|
86745
|
-
ha === "meta" && !fa ? (ea.forEach((Sa) => {
|
86746
|
-
ie.delete(Sa), aa(Sa, !1);
|
86747
|
-
}), ea.clear()) : typeof ca.getModifierState == "function" && ca.getModifierState("Meta") && fa && [...ie, ...ya].forEach((Sa) => ea.add(Sa));
|
86748
|
-
}
|
86749
|
-
U && (useEventListener$1(U, "keydown", (ca) => (la(ca, !0), oe(ca)), { passive: ne }), useEventListener$1(U, "keyup", (ca) => (la(ca, !1), oe(ca)), { passive: ne }), useEventListener$1("blur", oa, { passive: !0 }), useEventListener$1("focus", oa, { passive: !0 }));
|
86750
|
-
const da = new Proxy(st, {
|
86751
|
-
get(ca, fa, pa) {
|
86752
|
-
if (typeof fa != "string")
|
86753
|
-
return Reflect.get(ca, fa, pa);
|
86754
|
-
if (fa = fa.toLowerCase(), fa in te && (fa = te[fa]), !(fa in st))
|
86755
|
-
if (/[+_-]/.test(fa)) {
|
86756
|
-
const ha = fa.split(/[+_-]/g).map((Ea) => Ea.trim());
|
86757
|
-
st[fa] = computed(() => ha.every((Ea) => unref(da[Ea])));
|
86758
|
-
} else
|
86759
|
-
st[fa] = ref$1(!1);
|
86760
|
-
const ga = Reflect.get(ca, fa, pa);
|
86761
|
-
return G ? unref(ga) : ga;
|
86762
|
-
}
|
86763
|
-
});
|
86764
|
-
return da;
|
86765
|
-
}
|
86766
|
-
var SwipeDirection;
|
86767
|
-
(function(e) {
|
86768
|
-
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
86769
|
-
})(SwipeDirection || (SwipeDirection = {}));
|
86770
|
-
function resolveNestedOptions(e) {
|
86771
|
-
return e === !0 ? {} : e;
|
86772
|
-
}
|
86773
|
-
function useWebSocket(e, G = {}) {
|
86774
|
-
const {
|
86775
|
-
onConnected: U,
|
86776
|
-
onDisconnected: te,
|
86777
|
-
onError: ne,
|
86778
|
-
onMessage: oe,
|
86779
|
-
immediate: ie = !0,
|
86780
|
-
autoClose: ue = !0,
|
86781
|
-
protocols: st = []
|
86782
|
-
} = G, ea = ref$1(null), ta = ref$1("CONNECTING"), aa = ref$1();
|
86783
|
-
let oa, la, da = !1, ca = 0, fa = [];
|
86784
|
-
const pa = (Sa = 1e3, Ta) => {
|
86785
|
-
!aa.value || (da = !0, oa == null || oa(), aa.value.close(Sa, Ta));
|
86786
|
-
}, ga = () => {
|
86787
|
-
if (fa.length && aa.value && ta.value === "OPEN") {
|
86788
|
-
for (const Sa of fa)
|
86789
|
-
aa.value.send(Sa);
|
86790
|
-
fa = [];
|
86791
|
-
}
|
86792
|
-
}, ha = (Sa, Ta = !0) => !aa.value || ta.value !== "OPEN" ? (Ta && fa.push(Sa), !1) : (ga(), aa.value.send(Sa), !0), Ea = () => {
|
86793
|
-
const Sa = new WebSocket(e, st);
|
86794
|
-
aa.value = Sa, ta.value = "CONNECTING", da = !1, Sa.onopen = () => {
|
86795
|
-
ta.value = "OPEN", U == null || U(Sa), la == null || la(), ga();
|
86796
|
-
}, Sa.onclose = (Ta) => {
|
86797
|
-
if (ta.value = "CLOSED", aa.value = void 0, te == null || te(Sa, Ta), !da && G.autoReconnect) {
|
86798
|
-
const {
|
86799
|
-
retries: Na = -1,
|
86800
|
-
delay: Aa = 1e3,
|
86801
|
-
onFailed: wa
|
86802
|
-
} = resolveNestedOptions(G.autoReconnect);
|
86803
|
-
ca += 1, typeof Na == "number" && (Na < 0 || ca < Na) || typeof Na == "function" && Na() ? setTimeout(Ea, Aa) : wa == null || wa();
|
86804
|
-
}
|
86805
|
-
}, Sa.onerror = (Ta) => {
|
86806
|
-
ne == null || ne(Sa, Ta);
|
86807
|
-
}, Sa.onmessage = (Ta) => {
|
86808
|
-
ea.value = Ta.data, oe == null || oe(Sa, Ta);
|
86809
|
-
};
|
86810
|
-
};
|
86811
|
-
if (G.heartbeat) {
|
86812
|
-
const {
|
86813
|
-
message: Sa = "ping",
|
86814
|
-
interval: Ta = 1e3
|
86815
|
-
} = resolveNestedOptions(G.heartbeat), { pause: Na, resume: Aa } = useIntervalFn(() => ha(Sa, !1), Ta, { immediate: !1 });
|
86816
|
-
oa = Na, la = Aa;
|
86817
|
-
}
|
86818
|
-
return ie && Ea(), ue && (useEventListener$1(window, "beforeunload", () => pa()), tryOnScopeDispose(pa)), {
|
86819
|
-
data: ea,
|
86820
|
-
status: ta,
|
86821
|
-
close: pa,
|
86822
|
-
send: ha,
|
86823
|
-
open: () => {
|
86824
|
-
pa(), ca = 0, Ea();
|
86825
|
-
},
|
86826
|
-
ws: aa
|
86827
|
-
};
|
86828
|
-
}
|
86829
|
-
function useWindowSize(e = {}) {
|
86830
|
-
const {
|
86831
|
-
window: G = defaultWindow,
|
86832
|
-
initialWidth: U = 1 / 0,
|
86833
|
-
initialHeight: te = 1 / 0,
|
86834
|
-
listenOrientation: ne = !0
|
86835
|
-
} = e, oe = ref$1(U), ie = ref$1(te), ue = () => {
|
86836
|
-
G && (oe.value = G.innerWidth, ie.value = G.innerHeight);
|
86837
|
-
};
|
86838
|
-
return ue(), tryOnMounted(ue), useEventListener$1("resize", ue, { passive: !0 }), ne && useEventListener$1("orientationchange", ue, { passive: !0 }), { width: oe, height: ie };
|
86839
|
-
}
|
86840
86847
|
const toString = Object.prototype.toString;
|
86841
86848
|
function is(e, G) {
|
86842
86849
|
return toString.call(e) === `[object ${G}]`;
|
@@ -94434,31 +94441,32 @@ function useKgForm(e) {
|
|
94434
94441
|
return U.Select$requestDatas(G.formID, te);
|
94435
94442
|
}
|
94436
94443
|
},
|
94444
|
+
eventListeners: eventListeners$6,
|
94437
94445
|
formID: G.formID,
|
94438
|
-
onBlur:
|
94439
|
-
onChange:
|
94440
|
-
onLookupBeforeOk:
|
94446
|
+
onBlur: kgOnEventFactory({ event: "onBlur", eventListeners: eventListeners$6, id: G.formID }),
|
94447
|
+
onChange: kgOnEventFactory({ event: "onChange", eventListeners: eventListeners$6, id: G.formID }),
|
94448
|
+
onLookupBeforeOk: kgOnEventFactory({
|
94441
94449
|
event: "onLookupBeforeOk",
|
94442
94450
|
eventListeners: eventListeners$6,
|
94443
94451
|
id: G.formID
|
94444
94452
|
}),
|
94445
|
-
onLookupBeforeOpen:
|
94453
|
+
onLookupBeforeOpen: kgOnEventFactory({
|
94446
94454
|
event: "onLookupBeforeOpen",
|
94447
94455
|
eventListeners: eventListeners$6,
|
94448
94456
|
id: G.formID
|
94449
94457
|
}),
|
94450
|
-
onLookupOk:
|
94451
|
-
onSelectBeforeRequest:
|
94458
|
+
onLookupOk: kgOnEventFactory({ event: "onLookupOk", eventListeners: eventListeners$6, id: G.formID }),
|
94459
|
+
onSelectBeforeRequest: kgOnEventFactory({
|
94452
94460
|
event: "onSelectBeforeRequest",
|
94453
94461
|
eventListeners: eventListeners$6,
|
94454
94462
|
id: G.formID
|
94455
94463
|
}),
|
94456
|
-
onSelectBeforeSetDatas:
|
94464
|
+
onSelectBeforeSetDatas: kgOnEventFactory({
|
94457
94465
|
event: "onSelectBeforeSetDatas",
|
94458
94466
|
eventListeners: eventListeners$6,
|
94459
94467
|
id: G.formID
|
94460
94468
|
}),
|
94461
|
-
onSelectChange:
|
94469
|
+
onSelectChange: kgOnEventFactory({ event: "onSelectChange", eventListeners: eventListeners$6, id: G.formID }),
|
94462
94470
|
store: U
|
94463
94471
|
};
|
94464
94472
|
}
|
@@ -94911,7 +94919,9 @@ const getProps$z = () => ({
|
|
94911
94919
|
return;
|
94912
94920
|
const Ji = ($i = ne.varButtonCreate.value) == null ? void 0 : $i.cmd;
|
94913
94921
|
if (!Ji)
|
94914
|
-
throw
|
94922
|
+
throw notification.error({
|
94923
|
+
message: te.t("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")
|
94924
|
+
}), new Error("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
94915
94925
|
Bi.value.selectedRows = (mi = ne.kgTable.selectedRows.value) != null ? mi : [];
|
94916
94926
|
const Si = (Ua = (Xa = ne.varButtonCreate.value) == null ? void 0 : Xa.cmd_method) != null ? Ua : "POST", Ki = await httpClient().request({
|
94917
94927
|
url: Ji,
|
@@ -94923,7 +94933,9 @@ const getProps$z = () => ({
|
|
94923
94933
|
[KG_HTTP_HEADERS.KG_FORM_ID]: ne.formID
|
94924
94934
|
}
|
94925
94935
|
});
|
94926
|
-
((Gi = ne.varButtonCreate.value) == null ? void 0 : Gi.show_success_message_flg) !== 0 &&
|
94936
|
+
((Gi = ne.varButtonCreate.value) == null ? void 0 : Gi.show_success_message_flg) !== 0 && notification.success({
|
94937
|
+
message: fa.value + te.t("kg.succeed")
|
94938
|
+
}), ne.kgButton.setCurrentButton(null), ((Zi = ne.varButtonCreate.value) == null ? void 0 : Zi.reload_all_after_done_flg) !== 0 && ne.kgSearch.search({
|
94927
94939
|
isSearchFirstPage: !0
|
94928
94940
|
}), await emit$5({
|
94929
94941
|
id: ne.formID,
|
@@ -94976,7 +94988,9 @@ const getProps$z = () => ({
|
|
94976
94988
|
return;
|
94977
94989
|
const Ji = ($i = ne.varButtonUpdate.value) == null ? void 0 : $i.cmd;
|
94978
94990
|
if (!Ji)
|
94979
|
-
throw
|
94991
|
+
throw notification.error({
|
94992
|
+
message: te.t("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")
|
94993
|
+
}), new Error("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
94980
94994
|
Bi.value.selectedRows = (mi = ne.kgTable.selectedRows.value) != null ? mi : [];
|
94981
94995
|
const Si = (Ua = (Xa = ne.varButtonUpdate.value) == null ? void 0 : Xa.cmd_method) != null ? Ua : "POST", Ki = await httpClient().request({
|
94982
94996
|
url: Ji,
|
@@ -94988,7 +95002,9 @@ const getProps$z = () => ({
|
|
94988
95002
|
[KG_HTTP_HEADERS.KG_FORM_ID]: ne.formID
|
94989
95003
|
}
|
94990
95004
|
});
|
94991
|
-
((Gi = ne.varButtonUpdate.value) == null ? void 0 : Gi.show_success_message_flg) !== 0 &&
|
95005
|
+
((Gi = ne.varButtonUpdate.value) == null ? void 0 : Gi.show_success_message_flg) !== 0 && notification.success({
|
95006
|
+
message: te.t("kg.updateSuccess")
|
95007
|
+
}), ne.kgButton.setCurrentButton(null), ((Zi = ne.varButtonUpdate.value) == null ? void 0 : Zi.reload_all_after_done_flg) !== 0 && ne.kgSearch.search({
|
94992
95008
|
isPreserveSelectedRows: !0
|
94993
95009
|
}), await emit$5({
|
94994
95010
|
id: ne.formID,
|
@@ -95039,7 +95055,9 @@ const getProps$z = () => ({
|
|
95039
95055
|
return;
|
95040
95056
|
const Ki = (Xa = ne.varButtonCopy.value) == null ? void 0 : Xa.cmd;
|
95041
95057
|
if (!Ki)
|
95042
|
-
throw
|
95058
|
+
throw notification.error({
|
95059
|
+
message: te.t("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")
|
95060
|
+
}), new Error("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
95043
95061
|
Ji.value.selectedRows = (Ua = ne.kgTable.selectedRows.value) != null ? Ua : [];
|
95044
95062
|
const cs = (Ni = (_i = ne.varButtonCopy.value) == null ? void 0 : _i.cmd_method) != null ? Ni : "POST", Rs = await httpClient().request({
|
95045
95063
|
url: Ki,
|
@@ -95051,7 +95069,9 @@ const getProps$z = () => ({
|
|
95051
95069
|
[KG_HTTP_HEADERS.KG_FORM_ID]: ne.formID
|
95052
95070
|
}
|
95053
95071
|
});
|
95054
|
-
((os = ne.varButtonCopy.value) == null ? void 0 : os.show_success_message_flg) !== 0 &&
|
95072
|
+
((os = ne.varButtonCopy.value) == null ? void 0 : os.show_success_message_flg) !== 0 && notification.success({
|
95073
|
+
message: te.t("kg.copySuccess")
|
95074
|
+
}), ne.kgButton.setCurrentButton(null), ((Bi = ne.varButtonCopy.value) == null ? void 0 : Bi.reload_all_after_done_flg) !== 0 && ne.kgSearch.search({
|
95055
95075
|
isSearchFirstPage: !0
|
95056
95076
|
}), await emit$5({
|
95057
95077
|
id: ne.formID,
|
@@ -95104,7 +95124,9 @@ const getProps$z = () => ({
|
|
95104
95124
|
return;
|
95105
95125
|
const cs = (_i = ne.varButtonDelete.value) == null ? void 0 : _i.cmd;
|
95106
95126
|
if (!cs)
|
95107
|
-
throw
|
95127
|
+
throw notification.error({
|
95128
|
+
message: te.t("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")
|
95129
|
+
}), new Error("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
95108
95130
|
const Rs = (Gi = (Ni = ne.varButtonDelete.value) == null ? void 0 : Ni.cmd_method) != null ? Gi : "POST", Ps = await httpClient().request({
|
95109
95131
|
url: cs,
|
95110
95132
|
method: Rs,
|
@@ -95117,7 +95139,9 @@ const getProps$z = () => ({
|
|
95117
95139
|
}, {
|
95118
95140
|
joinParamsToUrl: !0
|
95119
95141
|
});
|
95120
|
-
((Bi = ne.varButtonDelete.value) == null ? void 0 : Bi.show_success_message_flg) !== 0 &&
|
95142
|
+
((Bi = ne.varButtonDelete.value) == null ? void 0 : Bi.show_success_message_flg) !== 0 && notification.success({
|
95143
|
+
message: te.t("kg.deleteSuccess")
|
95144
|
+
}), ne.kgButton.setCurrentButton(null), ((rs = ne.varButtonDelete.value) == null ? void 0 : rs.reload_all_after_done_flg) !== 0 && ne.kgSearch.search({
|
95121
95145
|
isSearchFirstPage: !0
|
95122
95146
|
}), await emit$5({
|
95123
95147
|
id: ne.formID,
|
@@ -95168,7 +95192,9 @@ const getProps$z = () => ({
|
|
95168
95192
|
return;
|
95169
95193
|
const Gi = Xa == null ? void 0 : Xa.cmd;
|
95170
95194
|
if (!Gi)
|
95171
|
-
throw
|
95195
|
+
throw notification.error({
|
95196
|
+
message: te.t("\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")
|
95197
|
+
}), new Error("\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
95172
95198
|
_i.value.selectedRows = (bi = ne.kgTable.selectedRows.value) != null ? bi : [];
|
95173
95199
|
const Zi = ($i = Xa == null ? void 0 : Xa.cmd_method) != null ? $i : "POST", os = await httpClient().request({
|
95174
95200
|
url: Gi,
|
@@ -95180,7 +95206,9 @@ const getProps$z = () => ({
|
|
95180
95206
|
[KG_HTTP_HEADERS.KG_FORM_ID]: ne.formID
|
95181
95207
|
}
|
95182
95208
|
});
|
95183
|
-
(Xa == null ? void 0 : Xa.show_success_message_flg) !== 0 &&
|
95209
|
+
(Xa == null ? void 0 : Xa.show_success_message_flg) !== 0 && notification.success({
|
95210
|
+
message: te.t("kg.executeSuccess")
|
95211
|
+
}), ne.kgButton.setCurrentButton(null), (Xa == null ? void 0 : Xa.reload_all_after_done_flg) !== 0 && ne.kgSearch.search({
|
95184
95212
|
isSearchFirstPage: !0
|
95185
95213
|
}), await emit$5({
|
95186
95214
|
id: ne.formID,
|
@@ -96636,11 +96664,18 @@ class WorkstationDTO {
|
|
96636
96664
|
Ja(this, "devcod");
|
96637
96665
|
Ja(this, "devcodDsc");
|
96638
96666
|
Ja(this, "hmewrkare");
|
96667
|
+
Ja(this, "hmewrkareDsc");
|
96639
96668
|
Ja(this, "id");
|
96640
96669
|
Ja(this, "insDt");
|
96641
96670
|
Ja(this, "insUsrId");
|
96671
|
+
Ja(this, "lblPrtadr");
|
96672
|
+
Ja(this, "lblPrtadrDsc");
|
96673
|
+
Ja(this, "mobPrtadr");
|
96674
|
+
Ja(this, "mobPrtadrDsc");
|
96642
96675
|
Ja(this, "modUsrId");
|
96643
96676
|
Ja(this, "moddte");
|
96677
|
+
Ja(this, "papPrtadr");
|
96678
|
+
Ja(this, "papPrtadrDsc");
|
96644
96679
|
Ja(this, "whId");
|
96645
96680
|
Ja(this, "workstationAreas");
|
96646
96681
|
keys(G != null ? G : {}).forEach((U) => {
|
@@ -96648,11 +96683,18 @@ class WorkstationDTO {
|
|
96648
96683
|
case "devcod":
|
96649
96684
|
case "devcodDsc":
|
96650
96685
|
case "hmewrkare":
|
96686
|
+
case "hmewrkareDsc":
|
96651
96687
|
case "id":
|
96652
96688
|
case "insDt":
|
96653
96689
|
case "insUsrId":
|
96690
|
+
case "lblPrtadr":
|
96691
|
+
case "lblPrtadrDsc":
|
96692
|
+
case "mobPrtadr":
|
96693
|
+
case "mobPrtadrDsc":
|
96654
96694
|
case "modUsrId":
|
96655
96695
|
case "moddte":
|
96696
|
+
case "papPrtadr":
|
96697
|
+
case "papPrtadrDsc":
|
96656
96698
|
case "whId":
|
96657
96699
|
case "workstationAreas":
|
96658
96700
|
Reflect.set(this, U, Reflect.get(G != null ? G : {}, U));
|
@@ -97226,7 +97268,9 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
97226
97268
|
var st, ea, ta, aa, oa, la, da;
|
97227
97269
|
const ue = oe.currentVarGridMaster.value;
|
97228
97270
|
return ie.kgSubmit.formModel.value.grd_var_nam = `${(st = ue == null ? void 0 : ue.grd_var_nam) != null ? st : ""}_COPY`, ie.kgSubmit.formModel.value.grd_var_nam_dsc = `${(ta = (ea = ue == null ? void 0 : ue.grd_var_nam_dsc) != null ? ea : ue == null ? void 0 : ue.grd_var_nam) != null ? ta : ""}_COPY`, ie.kgSubmit.formModel.value.frm_id = (aa = ue == null ? void 0 : ue.frm_id) != null ? aa : "", ie.kgSubmit.formModel.value.usr_id = (oa = ue == null ? void 0 : ue.usr_id) != null ? oa : "", ie.kgSubmit.formModel.value.grp_nam = (la = ue == null ? void 0 : ue.grp_nam) != null ? la : "", ie.kgSubmit.formModel.value.varGridDetails = (da = ue == null ? void 0 : ue.varGridDetails) != null ? da : [], _KgUtil.hideLoading(), !1;
|
97229
|
-
}), ie.kgSubmit.onOk(async () => (
|
97271
|
+
}), ie.kgSubmit.onOk(async () => (notification.success({
|
97272
|
+
message: ne.t("kg.KgTable.save-var-grid-master-as-success-message")
|
97273
|
+
}), oe.requestAll({
|
97230
97274
|
isForceRequest: !0
|
97231
97275
|
}), !1)), ie.kgSubmit.onClose(async () => (U("kgClose"), !1)), ie.kgButton.setCurrentButton({
|
97232
97276
|
type: KG__VAR_BUTTON__TYPE.COPY
|
@@ -97293,7 +97337,9 @@ const getProps$y = () => ({
|
|
97293
97337
|
data: new UpdateVarGridMasterQuery({
|
97294
97338
|
...ne.currentVarGridMaster.value
|
97295
97339
|
})
|
97296
|
-
}), _KgUtil.hideLoading(),
|
97340
|
+
}), _KgUtil.hideLoading(), notification.success({
|
97341
|
+
message: te.t("kg.KgTable.saveVarGridMasterSuccessMessage")
|
97342
|
+
});
|
97297
97343
|
}
|
97298
97344
|
async function fa() {
|
97299
97345
|
ta.value.visible = !0;
|
@@ -98876,9 +98922,13 @@ const KgTable$1 = "", getProps$t = () => ({
|
|
98876
98922
|
successMessageMode: "none"
|
98877
98923
|
});
|
98878
98924
|
if (!Ds.data)
|
98879
|
-
throw
|
98925
|
+
throw notification.error({
|
98926
|
+
message: ne.t("kg.KgTable.request-fail-no-data")
|
98927
|
+
}), new Error(ne.t("kg.KgTable.request-fail-no-data"));
|
98880
98928
|
if (![0, 200].includes((Bi = Ds.data.code) != null ? Bi : -1) || !Ds.data.success)
|
98881
|
-
throw
|
98929
|
+
throw notification.error({
|
98930
|
+
message: Ds.data.message || ne.t("kg.KgTable.request-fail-error")
|
98931
|
+
}), new Error(Ds.data.message || ne.t("kg.KgTable.request-fail-error"));
|
98882
98932
|
Si.value = Ds.data.result, ii(`${oe.formID} | KgTable | request().requestDatas() | \u67E5\u8BE2\u6210\u529F.`, {
|
98883
98933
|
params: cs,
|
98884
98934
|
response: Si.value
|
@@ -99307,6 +99357,7 @@ function useKgTable(e) {
|
|
99307
99357
|
const G = useKgVar(e), U = useKgTableStore(pinia);
|
99308
99358
|
return {
|
99309
99359
|
datas: computed(() => U.getDatas(G.formID)),
|
99360
|
+
eventListeners: eventListeners$4,
|
99310
99361
|
formID: G.formID,
|
99311
99362
|
id: computed(() => {
|
99312
99363
|
var te, ne;
|
@@ -99340,36 +99391,36 @@ function useKgTable(e) {
|
|
99340
99391
|
var te;
|
99341
99392
|
return ((te = G.varGridConfig.value) == null ? void 0 : te.prf_frm_id) || G.formID;
|
99342
99393
|
}),
|
99343
|
-
onAfterRequest:
|
99344
|
-
onAfterSearch:
|
99345
|
-
onBeforeParseRequestParameter:
|
99394
|
+
onAfterRequest: kgOnEventFactory({ event: "onAfterRequest", eventListeners: eventListeners$4, id: G.formID }),
|
99395
|
+
onAfterSearch: kgOnEventFactory({ event: "onAfterRequest", eventListeners: eventListeners$4, id: G.formID }),
|
99396
|
+
onBeforeParseRequestParameter: kgOnEventFactory({
|
99346
99397
|
event: "onBeforeParseRequestParameter",
|
99347
99398
|
eventListeners: eventListeners$4,
|
99348
99399
|
id: G.formID
|
99349
99400
|
}),
|
99350
|
-
onBeforeRequest:
|
99401
|
+
onBeforeRequest: kgOnEventFactory({
|
99351
99402
|
event: "onBeforeRequest",
|
99352
99403
|
eventListeners: eventListeners$4,
|
99353
99404
|
id: G.formID
|
99354
99405
|
}),
|
99355
|
-
onBeforeRetrieve:
|
99406
|
+
onBeforeRetrieve: kgOnEventFactory({
|
99356
99407
|
event: "onBeforeRequest",
|
99357
99408
|
eventListeners: eventListeners$4,
|
99358
99409
|
id: G.formID
|
99359
99410
|
}),
|
99360
|
-
onBeforeSearch:
|
99411
|
+
onBeforeSearch: kgOnEventFactory({
|
99361
99412
|
event: "onBeforeRequest",
|
99362
99413
|
eventListeners: eventListeners$4,
|
99363
99414
|
id: G.formID
|
99364
99415
|
}),
|
99365
|
-
onBeforeSetDatas:
|
99416
|
+
onBeforeSetDatas: kgOnEventFactory({
|
99366
99417
|
event: "onBeforeSetDatas",
|
99367
99418
|
eventListeners: eventListeners$4,
|
99368
99419
|
id: G.formID
|
99369
99420
|
}),
|
99370
|
-
onReady:
|
99371
|
-
onRetrieve:
|
99372
|
-
onRowDoubleClick:
|
99421
|
+
onReady: kgOnEventFactory({ event: "onReady", eventListeners: eventListeners$4, id: G.formID }),
|
99422
|
+
onRetrieve: kgOnEventFactory({ event: "onAfterRequest", eventListeners: eventListeners$4, id: G.formID }),
|
99423
|
+
onRowDoubleClick: kgOnEventFactory({
|
99373
99424
|
event: "onRowDoubleClick",
|
99374
99425
|
eventListeners: eventListeners$4,
|
99375
99426
|
id: G.formID
|
@@ -99915,6 +99966,7 @@ function useKgSubmit(e) {
|
|
99915
99966
|
var te;
|
99916
99967
|
return G.kgButton.currentButton.value ? U.getVarSubmitDetails(G.formID, { buttonVarName: (te = G.kgButton.currentButton.value) == null ? void 0 : te.var_nam, isVisible: 1 }) : null;
|
99917
99968
|
}),
|
99969
|
+
eventListeners: eventListeners$5,
|
99918
99970
|
formID: G.formID,
|
99919
99971
|
formModel: computed(() => {
|
99920
99972
|
var te;
|
@@ -99930,28 +99982,28 @@ function useKgSubmit(e) {
|
|
99930
99982
|
var te;
|
99931
99983
|
return (te = U.getFormModel(G.formID)) != null ? te : {};
|
99932
99984
|
}),
|
99933
|
-
onAfterValidate:
|
99985
|
+
onAfterValidate: kgOnEventFactory({
|
99934
99986
|
id: G.formID,
|
99935
99987
|
eventListeners: eventListeners$5,
|
99936
99988
|
event: "onAfterValidate"
|
99937
99989
|
}),
|
99938
|
-
onBeforeCancel:
|
99990
|
+
onBeforeCancel: kgOnEventFactory({
|
99939
99991
|
id: G.formID,
|
99940
99992
|
eventListeners: eventListeners$5,
|
99941
99993
|
event: "onBeforeCancel"
|
99942
99994
|
}),
|
99943
|
-
onBeforeOk:
|
99944
|
-
onBeforeOpen:
|
99945
|
-
onBeforeRequest:
|
99995
|
+
onBeforeOk: kgOnEventFactory({ id: G.formID, eventListeners: eventListeners$5, event: "onBeforeOk" }),
|
99996
|
+
onBeforeOpen: kgOnEventFactory({ id: G.formID, eventListeners: eventListeners$5, event: "onBeforeOpen" }),
|
99997
|
+
onBeforeRequest: kgOnEventFactory({
|
99946
99998
|
id: G.formID,
|
99947
99999
|
eventListeners: eventListeners$5,
|
99948
100000
|
event: "onBeforeRequest"
|
99949
100001
|
}),
|
99950
|
-
onCancel:
|
99951
|
-
onClose:
|
99952
|
-
onError:
|
99953
|
-
onOk:
|
99954
|
-
onOpen:
|
100002
|
+
onCancel: kgOnEventFactory({ id: G.formID, eventListeners: eventListeners$5, event: "onCancel" }),
|
100003
|
+
onClose: kgOnEventFactory({ id: G.formID, eventListeners: eventListeners$5, event: "onClose" }),
|
100004
|
+
onError: kgOnEventFactory({ id: G.formID, eventListeners: eventListeners$5, event: "onError" }),
|
100005
|
+
onOk: kgOnEventFactory({ id: G.formID, eventListeners: eventListeners$5, event: "onOk" }),
|
100006
|
+
onOpen: kgOnEventFactory({ id: G.formID, eventListeners: eventListeners$5, event: "onOpen" }),
|
99955
100007
|
patchVarSubmitDetail: (te) => U.patchVarSubmitDetail(G.formID, te),
|
99956
100008
|
rules: U.getFormRules(G.formID),
|
99957
100009
|
searchVarSubmitConfig: computed(() => {
|
@@ -105276,6 +105328,7 @@ function useKgVar(e, G, U = 0) {
|
|
105276
105328
|
currentVarGridMasteID: computed(() => ie.getCurrentVarGridMasterID(oe)),
|
105277
105329
|
currentVarGridMaster: computed(() => ie.getCurrentVarGridMaster(oe)),
|
105278
105330
|
currentVarProfileMasterID: computed(() => ie.getCurrentVarProfileMasterID(oe)),
|
105331
|
+
eventListeners: eventListeners$3,
|
105279
105332
|
formID: oe,
|
105280
105333
|
getVarConfigControl: (ca) => ie.getVarConfigControl(oe, ca),
|
105281
105334
|
getVarConfigPossibility: (ca) => ie.getVarConfigPossibility(oe, { varName: ca.varName }),
|
@@ -105300,17 +105353,17 @@ function useKgVar(e, G, U = 0) {
|
|
105300
105353
|
kgTable: null,
|
105301
105354
|
kgVarConfig: null,
|
105302
105355
|
level: computed(() => ie.getLevel(oe)),
|
105303
|
-
onRetrieve:
|
105356
|
+
onRetrieve: kgOnEventFactory({
|
105304
105357
|
eventListeners: eventListeners$3,
|
105305
105358
|
event: "onRequest",
|
105306
105359
|
id: oe
|
105307
105360
|
}),
|
105308
|
-
onSetup:
|
105361
|
+
onSetup: kgOnEventFactory({
|
105309
105362
|
eventListeners: eventListeners$3,
|
105310
105363
|
event: "onSetup",
|
105311
105364
|
id: oe
|
105312
105365
|
}),
|
105313
|
-
onUnmounted:
|
105366
|
+
onUnmounted: kgOnEventFactory({
|
105314
105367
|
eventListeners: eventListeners$3,
|
105315
105368
|
event: "onUnmounted",
|
105316
105369
|
id: oe
|
@@ -105393,7 +105446,9 @@ const KgVar = defineComponent({
|
|
105393
105446
|
formID: te.formID
|
105394
105447
|
}
|
105395
105448
|
});
|
105396
|
-
const ne = computed(() => te.store.getVarProfileConfig(te.formID)), oe = computed(() => te.store.getVarGridConfig(te.formID)), ie = computed(() => !te.isRequested.value || te.kgButton.isCurrentButtonClickIntercepted.value ? !1 : !!te.kgButton.currentButton.value && !!te.kgSubmit.currentVarSubmitConfig.value ? !0 : (!!te.kgButton.currentButton.value && !te.kgSubmit.currentVarSubmitConfig.value && (te.kgButton.setCurrentButton(null),
|
105449
|
+
const ne = computed(() => te.store.getVarProfileConfig(te.formID)), oe = computed(() => te.store.getVarGridConfig(te.formID)), ie = computed(() => !te.isRequested.value || te.kgButton.isCurrentButtonClickIntercepted.value ? !1 : !!te.kgButton.currentButton.value && !!te.kgSubmit.currentVarSubmitConfig.value ? !0 : (!!te.kgButton.currentButton.value && !te.kgSubmit.currentVarSubmitConfig.value && (te.kgButton.setCurrentButton(null), notification.error({
|
105450
|
+
message: U.t("kg.KgButton.noVarSubmitConfig")
|
105451
|
+
})), !1)), ue = computed(() => {
|
105397
105452
|
var la;
|
105398
105453
|
return !(!te.isRequested.value || ((la = ne.value) == null ? void 0 : la.available_flg) === 0);
|
105399
105454
|
}), st = computed(() => {
|
@@ -105570,7 +105625,9 @@ const getProps$c = () => ({
|
|
105570
105625
|
}), !te.kgSubmit.getVarSubmitConfig({
|
105571
105626
|
buttonVarName: e.kgVarName
|
105572
105627
|
})) {
|
105573
|
-
|
105628
|
+
notification.error({
|
105629
|
+
message: U.t("kg.KgButton.noVarSubmitConfig")
|
105630
|
+
});
|
105574
105631
|
return;
|
105575
105632
|
}
|
105576
105633
|
te.kgButton.setCurrentButton({
|
@@ -105645,7 +105702,9 @@ const getProps$c = () => ({
|
|
105645
105702
|
}), !te.kgSubmit.getVarSubmitConfig({
|
105646
105703
|
buttonVarName: e.kgVarName
|
105647
105704
|
})) {
|
105648
|
-
|
105705
|
+
notification.error({
|
105706
|
+
message: U.t("kg.KgButton.noVarSubmitConfig")
|
105707
|
+
});
|
105649
105708
|
return;
|
105650
105709
|
}
|
105651
105710
|
te.kgButton.setCurrentButton({
|
@@ -105749,7 +105808,9 @@ const getProps$c = () => ({
|
|
105749
105808
|
}), !U.kgSubmit.getVarSubmitConfig({
|
105750
105809
|
buttonVarName: e.kgVarName
|
105751
105810
|
})) {
|
105752
|
-
|
105811
|
+
notification.error({
|
105812
|
+
message: G.t("kg.KgButton.noVarSubmitConfig")
|
105813
|
+
});
|
105753
105814
|
return;
|
105754
105815
|
}
|
105755
105816
|
U.kgButton.setCurrentButton({
|
@@ -105853,8 +105914,8 @@ const getProps$c = () => ({
|
|
105853
105914
|
});
|
105854
105915
|
if (ga instanceof Blob && ga.type === "application/json") {
|
105855
105916
|
const Ea = await ga.text();
|
105856
|
-
|
105857
|
-
|
105917
|
+
notification.error({
|
105918
|
+
message: (da = JSON.parse(Ea).message) != null ? da : ""
|
105858
105919
|
});
|
105859
105920
|
return;
|
105860
105921
|
}
|
@@ -105966,7 +106027,9 @@ const getProps$c = () => ({
|
|
105966
106027
|
}
|
105967
106028
|
}))
|
105968
106029
|
return !1;
|
105969
|
-
((da = e.kgButton) == null ? void 0 : da.show_success_message_flg) !== 0 &&
|
106030
|
+
((da = e.kgButton) == null ? void 0 : da.show_success_message_flg) !== 0 && notification.success({
|
106031
|
+
message: U.t("kg.importSuccess")
|
106032
|
+
}), ((ca = ne.value) == null ? void 0 : ca.reload_all_after_done_flg) !== 0 && te.kgSearch.search({
|
105970
106033
|
isSearchFirstPage: !0
|
105971
106034
|
});
|
105972
106035
|
} catch (fa) {
|
@@ -106155,7 +106218,9 @@ const getProps$c = () => ({
|
|
106155
106218
|
}
|
106156
106219
|
const ea = (oa = e.kgButton) == null ? void 0 : oa.cmd;
|
106157
106220
|
if (!ea) {
|
106158
|
-
|
106221
|
+
notification.error({
|
106222
|
+
message: U.t("kg.KgButton.noApiUrl")
|
106223
|
+
});
|
106159
106224
|
return;
|
106160
106225
|
}
|
106161
106226
|
te.kgButton.setIsClickIntercepted({
|
@@ -106199,10 +106264,14 @@ const getProps$c = () => ({
|
|
106199
106264
|
}
|
106200
106265
|
}))
|
106201
106266
|
return;
|
106202
|
-
((Sa = e.kgButton) == null ? void 0 : Sa.reload_all_after_done_flg) === 1 ? (((Ta = e.kgButton) == null ? void 0 : Ta.show_success_message_flg) !== 0 &&
|
106267
|
+
((Sa = e.kgButton) == null ? void 0 : Sa.reload_all_after_done_flg) === 1 ? (((Ta = e.kgButton) == null ? void 0 : Ta.show_success_message_flg) !== 0 && notification.success({
|
106268
|
+
message: U.t("kg.executeSuccess")
|
106269
|
+
}), te.kgSearch.search({
|
106203
106270
|
isPreserveSelectedRows: ((Na = e.kgButton) == null ? void 0 : Na.re_select_after_reload_flg) !== 0,
|
106204
106271
|
isSearchFirstPage: ((Aa = e.kgButton) == null ? void 0 : Aa.re_select_after_reload_flg) === 0
|
106205
|
-
})) : ((wa = e.kgButton) == null ? void 0 : wa.show_success_message_flg) !== 0 &&
|
106272
|
+
})) : ((wa = e.kgButton) == null ? void 0 : wa.show_success_message_flg) !== 0 && notification.success({
|
106273
|
+
message: U.t("kg.executeSuccess")
|
106274
|
+
});
|
106206
106275
|
} catch (Ra) {
|
106207
106276
|
console.error(Ra);
|
106208
106277
|
} finally {
|
@@ -106350,7 +106419,9 @@ const getProps$c = () => ({
|
|
106350
106419
|
}), !te.kgSubmit.getVarSubmitConfig({
|
106351
106420
|
buttonVarName: e.kgVarName
|
106352
106421
|
})) {
|
106353
|
-
|
106422
|
+
notification.error({
|
106423
|
+
message: U.t("kg.KgButton.noVarSubmitConfig")
|
106424
|
+
});
|
106354
106425
|
return;
|
106355
106426
|
}
|
106356
106427
|
te.kgButton.setCurrentButton({
|
@@ -106822,6 +106893,7 @@ function useKgButton(e) {
|
|
106822
106893
|
U.click(G.formID, te.type, te.varName);
|
106823
106894
|
},
|
106824
106895
|
currentButton: computed(() => U.getCurrentButton(G.formID)),
|
106896
|
+
eventListeners: eventListeners$2,
|
106825
106897
|
formID: G.formID,
|
106826
106898
|
getButtonDescription(te) {
|
106827
106899
|
return U.getButtonDescription(G.formID, te);
|
@@ -106837,24 +106909,24 @@ function useKgButton(e) {
|
|
106837
106909
|
return U.isClickIntercepted(G.formID, { varName: (te = U.getCurrentButton(G.formID)) == null ? void 0 : te.var_nam });
|
106838
106910
|
}),
|
106839
106911
|
isCurrentButtonRequesting: computed(() => U.isCurrentButtonRequesting(G.formID)),
|
106840
|
-
onAfterRequest:
|
106912
|
+
onAfterRequest: kgOnEventFactory({
|
106841
106913
|
id: G.formID,
|
106842
106914
|
eventListeners: eventListeners$2,
|
106843
106915
|
event: "onAfterRequest"
|
106844
106916
|
}),
|
106845
|
-
onBeforeRequest:
|
106917
|
+
onBeforeRequest: kgOnEventFactory({
|
106846
106918
|
id: G.formID,
|
106847
106919
|
eventListeners: eventListeners$2,
|
106848
106920
|
event: "onBeforeRequest"
|
106849
106921
|
}),
|
106850
|
-
onClick:
|
106851
|
-
onImportOk:
|
106852
|
-
onSubmitCancel:
|
106922
|
+
onClick: kgOnEventFactory({ id: G.formID, eventListeners: eventListeners$2, event: "onClick" }),
|
106923
|
+
onImportOk: kgOnEventFactory({ id: G.formID, eventListeners: eventListeners$2, event: "onImportOk" }),
|
106924
|
+
onSubmitCancel: kgOnEventFactory({
|
106853
106925
|
id: G.formID,
|
106854
106926
|
eventListeners: eventListeners$2,
|
106855
106927
|
event: "onSubmitCancel"
|
106856
106928
|
}),
|
106857
|
-
onSubmitSave:
|
106929
|
+
onSubmitSave: kgOnEventFactory({ id: G.formID, eventListeners: eventListeners$2, event: "onSubmitSave" }),
|
106858
106930
|
searchButton: computed(() => U.getSearchButton(G.formID)),
|
106859
106931
|
setCurrentButton(te) {
|
106860
106932
|
return U.setCurrentButton(G.formID, te);
|
@@ -107446,21 +107518,22 @@ function useKgSearch(e) {
|
|
107446
107518
|
),
|
107447
107519
|
currentVarProfileMaster: computed(() => U.getCurrentVarProfileMaster(G.formID)),
|
107448
107520
|
dynamicQueryOperatorModel: computed(() => U.getDynamicQueryOperatorModel(G.formID)),
|
107521
|
+
eventListeners: eventListeners$1,
|
107449
107522
|
formID: G.formID,
|
107450
107523
|
formModel: computed(() => U.getFormModel(G.formID)),
|
107451
107524
|
isReady: te,
|
107452
107525
|
model: computed(() => U.getFormModel(G.formID)),
|
107453
|
-
onReady:
|
107526
|
+
onReady: kgOnEventFactory({
|
107454
107527
|
eventListeners: eventListeners$1,
|
107455
107528
|
event: "onReady",
|
107456
107529
|
id: G.formID
|
107457
107530
|
}),
|
107458
|
-
onReset:
|
107531
|
+
onReset: kgOnEventFactory({
|
107459
107532
|
eventListeners: eventListeners$1,
|
107460
107533
|
event: "onReset",
|
107461
107534
|
id: G.formID
|
107462
107535
|
}),
|
107463
|
-
onSearch:
|
107536
|
+
onSearch: kgOnEventFactory({
|
107464
107537
|
eventListeners: eventListeners$1,
|
107465
107538
|
event: "onSearch",
|
107466
107539
|
id: G.formID
|
@@ -108055,10 +108128,10 @@ function useKgWarehouse() {
|
|
108055
108128
|
if (!G.getWarehouse)
|
108056
108129
|
return null;
|
108057
108130
|
const te = (oe = G.getWarehouse) == null ? void 0 : oe.whId, ne = (st = (ue = (ie = e.store).getUseUserStore) == null ? void 0 : ue.call(ie, pinia)) == null ? void 0 : st.getUserWarehouses;
|
108058
|
-
return ii(`
|
108131
|
+
return ii(`useKgWarehouse() | warehouse | \u5F53\u524D\u4ED3\u5E93: ${te}`), ii("useKgWarehouse() | warehouse | \u7528\u6237\u6240\u6709\u4ED3\u5E93:", { userWarehouses: ne }), ne !== void 0 && !(ne != null && ne.find((ea) => ea.wh_id === te)) ? (ii("useKgWarehouse() | warehouse | \u9700\u8981\u91CD\u65B0\u9009\u62E9\u4ED3\u5E93."), null) : G.getWarehouse;
|
108059
108132
|
});
|
108060
108133
|
return {
|
108061
|
-
onMounted:
|
108134
|
+
onMounted: kgOnEventFactory({
|
108062
108135
|
eventListeners,
|
108063
108136
|
event: "onMounted",
|
108064
108137
|
id: ""
|
@@ -110485,7 +110558,9 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
110485
110558
|
})));
|
110486
110559
|
}), ya.varSubmitDetails = ya.varSubmitDetails.filter((Ta) => !!Ta.button_var_name), await Create({
|
110487
110560
|
data: ya
|
110488
|
-
}),
|
110561
|
+
}), notification.success({
|
110562
|
+
message: U.t("\u521B\u5EFA\u6210\u529F.")
|
110563
|
+
}), G("update:kgVisible", !1), G("kgOk"), te.initCreateVarDdaQuery();
|
110489
110564
|
} catch {
|
110490
110565
|
}
|
110491
110566
|
}
|
@@ -110616,8 +110691,8 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
110616
110691
|
const oa = (ta = (ea = (st = ue.data) == null ? void 0 : st.map((la) => la.frm_id)) == null ? void 0 : ea.join(",")) != null ? ta : "";
|
110617
110692
|
if (oe instanceof Blob && oe.type === "application/json") {
|
110618
110693
|
const la = await oe.text();
|
110619
|
-
return
|
110620
|
-
|
110694
|
+
return notification.error({
|
110695
|
+
message: (aa = JSON.parse(la).message) != null ? aa : ""
|
110621
110696
|
}), !0;
|
110622
110697
|
}
|
110623
110698
|
return h$1.downloadFile(oe, `${oa}.sql`, "text/plain"), !0;
|
@@ -110961,6 +111036,7 @@ export {
|
|
110961
111036
|
isUnDef,
|
110962
111037
|
isUrl,
|
110963
111038
|
keys,
|
111039
|
+
kgOnEventFactory,
|
110964
111040
|
kgSetupHttpClient,
|
110965
111041
|
lighten,
|
110966
111042
|
listToTree,
|