mooho-base-admin-plus 2.4.55 → 2.4.57
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/history.md
CHANGED
|
@@ -87,3 +87,5 @@ mooho-base-admin-plus@2.4.52 - 导出可选其他视图
|
|
|
87
87
|
mooho-base-admin-plus@2.4.53 - Todo页传id自动弹出窗口
|
|
88
88
|
mooho-base-admin-plus@2.4.54 - 修复上一版本bug
|
|
89
89
|
mooho-base-admin-plus@2.4.55 - 改变task-form组件位置,使其允许被项目引用
|
|
90
|
+
mooho-base-admin-plus@2.4.56 - 列表必填项加星号
|
|
91
|
+
mooho-base-admin-plus@2.4.57 - 修复多行文本框筛选的bug
|
|
@@ -5678,14 +5678,14 @@ cookies$2.getAll = function() {
|
|
|
5678
5678
|
cookies$2.remove = function(name = "default") {
|
|
5679
5679
|
return api.remove(`admin-plus-${Setting.appID}-${name}`);
|
|
5680
5680
|
};
|
|
5681
|
-
var isPromise$
|
|
5682
|
-
isPromise$
|
|
5683
|
-
isPromise$
|
|
5684
|
-
function isPromise$
|
|
5681
|
+
var isPromise$6 = { exports: {} };
|
|
5682
|
+
isPromise$6.exports = isPromise$5;
|
|
5683
|
+
isPromise$6.exports.default = isPromise$5;
|
|
5684
|
+
function isPromise$5(obj) {
|
|
5685
5685
|
return !!obj && (typeof obj === "object" || typeof obj === "function") && typeof obj.then === "function";
|
|
5686
5686
|
}
|
|
5687
5687
|
var lodash = lodash$1.exports;
|
|
5688
|
-
var isPromise$
|
|
5688
|
+
var isPromise$4 = isPromise$6.exports;
|
|
5689
5689
|
var main = function(adapter2) {
|
|
5690
5690
|
if (typeof adapter2 !== "object") {
|
|
5691
5691
|
throw new Error("An adapter must be provided, see https://github.com/typicode/lowdb/#usage");
|
|
@@ -5703,11 +5703,11 @@ var main = function(adapter2) {
|
|
|
5703
5703
|
db2._ = _;
|
|
5704
5704
|
db2.read = function() {
|
|
5705
5705
|
var r = adapter2.read();
|
|
5706
|
-
return isPromise$
|
|
5706
|
+
return isPromise$4(r) ? r.then(plant) : plant(r);
|
|
5707
5707
|
};
|
|
5708
5708
|
db2.write = function(returnValue) {
|
|
5709
5709
|
var w2 = adapter2.write(db2.getState());
|
|
5710
|
-
return isPromise$
|
|
5710
|
+
return isPromise$4(w2) ? w2.then(function() {
|
|
5711
5711
|
return returnValue;
|
|
5712
5712
|
}) : returnValue;
|
|
5713
5713
|
};
|
|
@@ -5960,7 +5960,7 @@ function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
|
|
|
5960
5960
|
}
|
|
5961
5961
|
}
|
|
5962
5962
|
/*!
|
|
5963
|
-
* vue-router v4.2.
|
|
5963
|
+
* vue-router v4.2.5
|
|
5964
5964
|
* (c) 2023 Eduardo San Martin Morote
|
|
5965
5965
|
* @license MIT
|
|
5966
5966
|
*/
|
|
@@ -6350,12 +6350,10 @@ function createMemoryHistory(base2 = "") {
|
|
|
6350
6350
|
base2 = normalizeBase(base2);
|
|
6351
6351
|
function setLocation(location2) {
|
|
6352
6352
|
position2++;
|
|
6353
|
-
if (position2
|
|
6354
|
-
queue2.push(location2);
|
|
6355
|
-
} else {
|
|
6353
|
+
if (position2 !== queue2.length) {
|
|
6356
6354
|
queue2.splice(position2);
|
|
6357
|
-
queue2.push(location2);
|
|
6358
6355
|
}
|
|
6356
|
+
queue2.push(location2);
|
|
6359
6357
|
}
|
|
6360
6358
|
function triggerListeners(to, from, { direction, delta }) {
|
|
6361
6359
|
const info = {
|
|
@@ -7662,7 +7660,7 @@ function addDevtools$1(app, router2, matcher) {
|
|
|
7662
7660
|
if (!activeRoutesPayload)
|
|
7663
7661
|
return;
|
|
7664
7662
|
const payload = activeRoutesPayload;
|
|
7665
|
-
let routes = matcher.getRoutes().filter((route) => !route.parent);
|
|
7663
|
+
let routes = matcher.getRoutes().filter((route) => !route.parent || !route.parent.record.components);
|
|
7666
7664
|
routes.forEach(resetMatchStateOnRouteRecord);
|
|
7667
7665
|
if (payload.filter) {
|
|
7668
7666
|
routes = routes.filter((route) => isRouteMatching(route, payload.filter.toLowerCase()));
|
|
@@ -8215,11 +8213,11 @@ ${JSON.stringify(newTargetLocation, null, 2)}
|
|
|
8215
8213
|
});
|
|
8216
8214
|
}
|
|
8217
8215
|
let readyHandlers = useCallbacks();
|
|
8218
|
-
let
|
|
8216
|
+
let errorListeners = useCallbacks();
|
|
8219
8217
|
let ready;
|
|
8220
8218
|
function triggerError(error2, to, from) {
|
|
8221
8219
|
markAsReady(error2);
|
|
8222
|
-
const list =
|
|
8220
|
+
const list = errorListeners.list();
|
|
8223
8221
|
if (list.length) {
|
|
8224
8222
|
list.forEach((handler) => handler(error2, to, from));
|
|
8225
8223
|
} else {
|
|
@@ -8273,7 +8271,7 @@ ${JSON.stringify(newTargetLocation, null, 2)}
|
|
|
8273
8271
|
beforeEach: beforeGuards.add,
|
|
8274
8272
|
beforeResolve: beforeResolveGuards.add,
|
|
8275
8273
|
afterEach: afterGuards.add,
|
|
8276
|
-
onError:
|
|
8274
|
+
onError: errorListeners.add,
|
|
8277
8275
|
isReady,
|
|
8278
8276
|
install(app) {
|
|
8279
8277
|
const router3 = this;
|
|
@@ -8360,7 +8358,7 @@ function forEachValue(obj, fn) {
|
|
|
8360
8358
|
function isObject$7(obj) {
|
|
8361
8359
|
return obj !== null && typeof obj === "object";
|
|
8362
8360
|
}
|
|
8363
|
-
function isPromise$
|
|
8361
|
+
function isPromise$3(val) {
|
|
8364
8362
|
return val && typeof val.then === "function";
|
|
8365
8363
|
}
|
|
8366
8364
|
function assert$1(condition, msg) {
|
|
@@ -8560,7 +8558,7 @@ function registerAction$1(store2, type, handler, local) {
|
|
|
8560
8558
|
rootGetters: store2.getters,
|
|
8561
8559
|
rootState: store2.state
|
|
8562
8560
|
}, payload);
|
|
8563
|
-
if (!isPromise$
|
|
8561
|
+
if (!isPromise$3(res2)) {
|
|
8564
8562
|
res2 = Promise.resolve(res2);
|
|
8565
8563
|
}
|
|
8566
8564
|
if (store2._devtoolHook) {
|
|
@@ -10515,7 +10513,7 @@ const warnAboutDepreation = (deprecatedParam, useInstead) => {
|
|
|
10515
10513
|
const callIfFunction = (arg) => typeof arg === "function" ? arg() : arg;
|
|
10516
10514
|
const hasToPromiseFn = (arg) => arg && typeof arg.toPromise === "function";
|
|
10517
10515
|
const asPromise = (arg) => hasToPromiseFn(arg) ? arg.toPromise() : Promise.resolve(arg);
|
|
10518
|
-
const isPromise$
|
|
10516
|
+
const isPromise$2 = (arg) => arg && Promise.resolve(arg) === arg;
|
|
10519
10517
|
const DismissReason = Object.freeze({
|
|
10520
10518
|
cancel: "cancel",
|
|
10521
10519
|
backdrop: "backdrop",
|
|
@@ -11185,7 +11183,7 @@ const renderInputType = {};
|
|
|
11185
11183
|
renderInputType.text = renderInputType.email = renderInputType.password = renderInputType.number = renderInputType.tel = renderInputType.url = (input, params) => {
|
|
11186
11184
|
if (typeof params.inputValue === "string" || typeof params.inputValue === "number") {
|
|
11187
11185
|
input.value = params.inputValue;
|
|
11188
|
-
} else if (!isPromise$
|
|
11186
|
+
} else if (!isPromise$2(params.inputValue)) {
|
|
11189
11187
|
warn$3(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof params.inputValue}"`);
|
|
11190
11188
|
}
|
|
11191
11189
|
setInputPlaceholder(input, params);
|
|
@@ -12203,7 +12201,7 @@ const addClasses = (container, popup, params) => {
|
|
|
12203
12201
|
const handleInputOptionsAndValue = (instance, params) => {
|
|
12204
12202
|
if (params.input === "select" || params.input === "radio") {
|
|
12205
12203
|
handleInputOptions(instance, params);
|
|
12206
|
-
} else if (["text", "email", "number", "tel", "textarea"].includes(params.input) && (hasToPromiseFn(params.inputValue) || isPromise$
|
|
12204
|
+
} else if (["text", "email", "number", "tel", "textarea"].includes(params.input) && (hasToPromiseFn(params.inputValue) || isPromise$2(params.inputValue))) {
|
|
12207
12205
|
handleInputValue(instance, params);
|
|
12208
12206
|
}
|
|
12209
12207
|
};
|
|
@@ -12229,7 +12227,7 @@ const getFileValue = (input) => input.files.length ? input.getAttribute("multipl
|
|
|
12229
12227
|
const handleInputOptions = (instance, params) => {
|
|
12230
12228
|
const content = getContent();
|
|
12231
12229
|
const processInputOptions = (inputOptions) => populateInputOptions[params.input](content, formatInputOptions(inputOptions), params);
|
|
12232
|
-
if (hasToPromiseFn(params.inputOptions) || isPromise$
|
|
12230
|
+
if (hasToPromiseFn(params.inputOptions) || isPromise$2(params.inputOptions)) {
|
|
12233
12231
|
showLoading();
|
|
12234
12232
|
asPromise(params.inputOptions).then((inputOptions) => {
|
|
12235
12233
|
instance.hideLoading();
|
|
@@ -15287,7 +15285,7 @@ var __glob_5_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
15287
15285
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15288
15286
|
var vueI18n = {};
|
|
15289
15287
|
/*!
|
|
15290
|
-
* shared v9.
|
|
15288
|
+
* shared v9.8.0
|
|
15291
15289
|
* (c) 2023 kazuya kawaguchi
|
|
15292
15290
|
* Released under the MIT License.
|
|
15293
15291
|
*/
|
|
@@ -15344,7 +15342,7 @@ const isString$2 = (val) => typeof val === "string";
|
|
|
15344
15342
|
const isBoolean$1 = (val) => typeof val === "boolean";
|
|
15345
15343
|
const isSymbol = (val) => typeof val === "symbol";
|
|
15346
15344
|
const isObject$5 = (val) => val !== null && typeof val === "object";
|
|
15347
|
-
const isPromise = (val) => {
|
|
15345
|
+
const isPromise$1 = (val) => {
|
|
15348
15346
|
return isObject$5(val) && isFunction$2(val.then) && isFunction$2(val.catch);
|
|
15349
15347
|
};
|
|
15350
15348
|
const objectToString$1 = Object.prototype.toString;
|
|
@@ -15435,10 +15433,26 @@ function createEmitter() {
|
|
|
15435
15433
|
};
|
|
15436
15434
|
return emitter;
|
|
15437
15435
|
}
|
|
15436
|
+
const isNotObjectOrIsArray = (val) => !isObject$5(val) || isArray$3(val);
|
|
15437
|
+
function deepCopy(src, des) {
|
|
15438
|
+
if (isNotObjectOrIsArray(src) || isNotObjectOrIsArray(des)) {
|
|
15439
|
+
throw new Error("Invalid value");
|
|
15440
|
+
}
|
|
15441
|
+
for (const key in src) {
|
|
15442
|
+
if (hasOwn$1(src, key)) {
|
|
15443
|
+
if (isNotObjectOrIsArray(src[key]) || isNotObjectOrIsArray(des[key])) {
|
|
15444
|
+
des[key] = src[key];
|
|
15445
|
+
} else {
|
|
15446
|
+
deepCopy(src[key], des[key]);
|
|
15447
|
+
}
|
|
15448
|
+
}
|
|
15449
|
+
}
|
|
15450
|
+
}
|
|
15438
15451
|
var shared_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15439
15452
|
__proto__: null,
|
|
15440
15453
|
assign: assign$1,
|
|
15441
15454
|
createEmitter,
|
|
15455
|
+
deepCopy,
|
|
15442
15456
|
escapeHtml: escapeHtml$1,
|
|
15443
15457
|
format: format$3,
|
|
15444
15458
|
friendlyJSONstringify: friendlyJSONstringify$1,
|
|
@@ -15456,7 +15470,7 @@ var shared_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
15456
15470
|
isNumber: isNumber$2,
|
|
15457
15471
|
isObject: isObject$5,
|
|
15458
15472
|
isPlainObject: isPlainObject$1,
|
|
15459
|
-
isPromise,
|
|
15473
|
+
isPromise: isPromise$1,
|
|
15460
15474
|
isRegExp: isRegExp$2,
|
|
15461
15475
|
isString: isString$2,
|
|
15462
15476
|
isSymbol,
|
|
@@ -15476,7 +15490,7 @@ var shared_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
15476
15490
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15477
15491
|
var require$$0 = /* @__PURE__ */ getAugmentedNamespace(shared_esmBrowser);
|
|
15478
15492
|
/*!
|
|
15479
|
-
* core-base v9.
|
|
15493
|
+
* core-base v9.8.0
|
|
15480
15494
|
* (c) 2023 kazuya kawaguchi
|
|
15481
15495
|
* Released under the MIT License.
|
|
15482
15496
|
*/
|
|
@@ -15523,6 +15537,9 @@ const isFunction$1 = (val) => typeof val === "function";
|
|
|
15523
15537
|
const isString$1 = (val) => typeof val === "string";
|
|
15524
15538
|
const isBoolean = (val) => typeof val === "boolean";
|
|
15525
15539
|
const isObject$4 = (val) => val !== null && typeof val === "object";
|
|
15540
|
+
const isPromise = (val) => {
|
|
15541
|
+
return isObject$4(val) && isFunction$1(val.then) && isFunction$1(val.catch);
|
|
15542
|
+
};
|
|
15526
15543
|
const objectToString = Object.prototype.toString;
|
|
15527
15544
|
const toTypeString = (value) => objectToString.call(value);
|
|
15528
15545
|
const isPlainObject = (val) => {
|
|
@@ -16116,7 +16133,7 @@ function createTokenizer(source2, options = {}) {
|
|
|
16116
16133
|
function readLinkedRefer(scnr) {
|
|
16117
16134
|
const fn = (detect2 = false, buf) => {
|
|
16118
16135
|
const ch = scnr.currentChar();
|
|
16119
|
-
if (ch === "{" || ch === "%" || ch === "@" || ch === "|" || !ch) {
|
|
16136
|
+
if (ch === "{" || ch === "%" || ch === "@" || ch === "|" || ch === "(" || ch === ")" || !ch) {
|
|
16120
16137
|
return buf;
|
|
16121
16138
|
} else if (ch === CHAR_SP) {
|
|
16122
16139
|
return buf;
|
|
@@ -16124,8 +16141,6 @@ function createTokenizer(source2, options = {}) {
|
|
|
16124
16141
|
buf += ch;
|
|
16125
16142
|
scnr.next();
|
|
16126
16143
|
return fn(detect2, buf);
|
|
16127
|
-
} else if (!isIdentifierStart(ch)) {
|
|
16128
|
-
return buf;
|
|
16129
16144
|
} else {
|
|
16130
16145
|
buf += ch;
|
|
16131
16146
|
scnr.next();
|
|
@@ -17151,6 +17166,9 @@ function resolveValue(obj, path) {
|
|
|
17151
17166
|
if (val === void 0) {
|
|
17152
17167
|
return null;
|
|
17153
17168
|
}
|
|
17169
|
+
if (isFunction$1(last)) {
|
|
17170
|
+
return null;
|
|
17171
|
+
}
|
|
17154
17172
|
last = val;
|
|
17155
17173
|
i3++;
|
|
17156
17174
|
}
|
|
@@ -17278,6 +17296,55 @@ const warnMessages$1 = {
|
|
|
17278
17296
|
function getWarnMessage$1(code2, ...args) {
|
|
17279
17297
|
return format$1$1(warnMessages$1[code2], ...args);
|
|
17280
17298
|
}
|
|
17299
|
+
const code$2 = CompileErrorCodes.__EXTEND_POINT__;
|
|
17300
|
+
const inc$2 = incrementer(code$2);
|
|
17301
|
+
const CoreErrorCodes = {
|
|
17302
|
+
INVALID_ARGUMENT: code$2,
|
|
17303
|
+
INVALID_DATE_ARGUMENT: inc$2(),
|
|
17304
|
+
INVALID_ISO_DATE_ARGUMENT: inc$2(),
|
|
17305
|
+
NOT_SUPPORT_NON_STRING_MESSAGE: inc$2(),
|
|
17306
|
+
NOT_SUPPORT_LOCALE_PROMISE_VALUE: inc$2(),
|
|
17307
|
+
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: inc$2(),
|
|
17308
|
+
NOT_SUPPORT_LOCALE_TYPE: inc$2(),
|
|
17309
|
+
__EXTEND_POINT__: inc$2()
|
|
17310
|
+
};
|
|
17311
|
+
function createCoreError(code2) {
|
|
17312
|
+
return createCompileError(code2, null, { messages: errorMessages$2 });
|
|
17313
|
+
}
|
|
17314
|
+
const errorMessages$2 = {
|
|
17315
|
+
[CoreErrorCodes.INVALID_ARGUMENT]: "Invalid arguments",
|
|
17316
|
+
[CoreErrorCodes.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
17317
|
+
[CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
17318
|
+
[CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
17319
|
+
[CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
17320
|
+
[CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
17321
|
+
[CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
17322
|
+
};
|
|
17323
|
+
function getLocale(context, options) {
|
|
17324
|
+
return options.locale != null ? resolveLocale(options.locale) : resolveLocale(context.locale);
|
|
17325
|
+
}
|
|
17326
|
+
let _resolveLocale;
|
|
17327
|
+
function resolveLocale(locale2) {
|
|
17328
|
+
if (isString$1(locale2)) {
|
|
17329
|
+
return locale2;
|
|
17330
|
+
} else {
|
|
17331
|
+
if (isFunction$1(locale2)) {
|
|
17332
|
+
if (locale2.resolvedOnce && _resolveLocale != null) {
|
|
17333
|
+
return _resolveLocale;
|
|
17334
|
+
} else if (locale2.constructor.name === "Function") {
|
|
17335
|
+
const resolve = locale2();
|
|
17336
|
+
if (isPromise(resolve)) {
|
|
17337
|
+
throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
17338
|
+
}
|
|
17339
|
+
return _resolveLocale = resolve;
|
|
17340
|
+
} else {
|
|
17341
|
+
throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
17342
|
+
}
|
|
17343
|
+
} else {
|
|
17344
|
+
throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE);
|
|
17345
|
+
}
|
|
17346
|
+
}
|
|
17347
|
+
}
|
|
17281
17348
|
function fallbackWithSimple(ctx, fallback, start2) {
|
|
17282
17349
|
return [.../* @__PURE__ */ new Set([
|
|
17283
17350
|
start2,
|
|
@@ -17341,7 +17408,7 @@ function appendItemToChain(chain, target, blocks) {
|
|
|
17341
17408
|
}
|
|
17342
17409
|
return follow;
|
|
17343
17410
|
}
|
|
17344
|
-
const VERSION$1 = "9.
|
|
17411
|
+
const VERSION$1 = "9.8.0";
|
|
17345
17412
|
const NOT_REOSLVED = -1;
|
|
17346
17413
|
const DEFAULT_LOCALE$1 = "en-US";
|
|
17347
17414
|
const MISSING_RESOLVE_VALUE = "";
|
|
@@ -17385,11 +17452,12 @@ let _cid = 0;
|
|
|
17385
17452
|
function createCoreContext(options = {}) {
|
|
17386
17453
|
const onWarn = isFunction$1(options.onWarn) ? options.onWarn : warn$1;
|
|
17387
17454
|
const version2 = isString$1(options.version) ? options.version : VERSION$1;
|
|
17388
|
-
const locale2 = isString$1(options.locale) ? options.locale : DEFAULT_LOCALE$1;
|
|
17389
|
-
const
|
|
17390
|
-
const
|
|
17391
|
-
const
|
|
17392
|
-
const
|
|
17455
|
+
const locale2 = isString$1(options.locale) || isFunction$1(options.locale) ? options.locale : DEFAULT_LOCALE$1;
|
|
17456
|
+
const _locale = isFunction$1(locale2) ? DEFAULT_LOCALE$1 : locale2;
|
|
17457
|
+
const fallbackLocale = isArray$2(options.fallbackLocale) || isPlainObject(options.fallbackLocale) || isString$1(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale;
|
|
17458
|
+
const messages = isPlainObject(options.messages) ? options.messages : { [_locale]: {} };
|
|
17459
|
+
const datetimeFormats = isPlainObject(options.datetimeFormats) ? options.datetimeFormats : { [_locale]: {} };
|
|
17460
|
+
const numberFormats = isPlainObject(options.numberFormats) ? options.numberFormats : { [_locale]: {} };
|
|
17393
17461
|
const modifiers = assign({}, options.modifiers || {}, getDefaultLinkedModifiers());
|
|
17394
17462
|
const pluralRules = options.pluralRules || {};
|
|
17395
17463
|
const missing = isFunction$1(options.missing) ? options.missing : null;
|
|
@@ -17525,7 +17593,7 @@ function formatMessagePart(ctx, node) {
|
|
|
17525
17593
|
return ctx.interpolate(ctx.named(named.k || named.key));
|
|
17526
17594
|
case 5:
|
|
17527
17595
|
const list = node;
|
|
17528
|
-
return ctx.interpolate(ctx.list(list.i
|
|
17596
|
+
return ctx.interpolate(ctx.list(list.i != null ? list.i : list.index));
|
|
17529
17597
|
case 6:
|
|
17530
17598
|
const linked = node;
|
|
17531
17599
|
const modifier = linked.m || linked.modifier;
|
|
@@ -17540,24 +17608,6 @@ function formatMessagePart(ctx, node) {
|
|
|
17540
17608
|
throw new Error(`unhandled node type on format message part: ${type}`);
|
|
17541
17609
|
}
|
|
17542
17610
|
}
|
|
17543
|
-
const code$2 = CompileErrorCodes.__EXTEND_POINT__;
|
|
17544
|
-
const inc$2 = incrementer(code$2);
|
|
17545
|
-
const CoreErrorCodes = {
|
|
17546
|
-
INVALID_ARGUMENT: code$2,
|
|
17547
|
-
INVALID_DATE_ARGUMENT: inc$2(),
|
|
17548
|
-
INVALID_ISO_DATE_ARGUMENT: inc$2(),
|
|
17549
|
-
NOT_SUPPORT_NON_STRING_MESSAGE: inc$2(),
|
|
17550
|
-
__EXTEND_POINT__: inc$2()
|
|
17551
|
-
};
|
|
17552
|
-
function createCoreError(code2) {
|
|
17553
|
-
return createCompileError(code2, null, { messages: errorMessages$2 });
|
|
17554
|
-
}
|
|
17555
|
-
const errorMessages$2 = {
|
|
17556
|
-
[CoreErrorCodes.INVALID_ARGUMENT]: "Invalid arguments",
|
|
17557
|
-
[CoreErrorCodes.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
17558
|
-
[CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
17559
|
-
[CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message"
|
|
17560
|
-
};
|
|
17561
17611
|
const WARN_MESSAGE = `Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.`;
|
|
17562
17612
|
function checkHtmlMessage(source2, warnHtmlMessage) {
|
|
17563
17613
|
if (warnHtmlMessage && detectHtmlTag(source2)) {
|
|
@@ -17642,7 +17692,7 @@ function translate$1(context, ...args) {
|
|
|
17642
17692
|
const resolvedMessage = !!options.resolvedMessage;
|
|
17643
17693
|
const defaultMsgOrKey = isString$1(options.default) || isBoolean(options.default) ? !isBoolean(options.default) ? options.default : !messageCompiler ? () => key : key : fallbackFormat ? !messageCompiler ? () => key : key : "";
|
|
17644
17694
|
const enableDefaultMsg = fallbackFormat || defaultMsgOrKey !== "";
|
|
17645
|
-
const locale2 =
|
|
17695
|
+
const locale2 = getLocale(context, options);
|
|
17646
17696
|
escapeParameter && escapeParams(options);
|
|
17647
17697
|
let [formatScope, targetLocale, message] = !resolvedMessage ? resolveMessageFormat(context, key, locale2, fallbackLocale, fallbackWarn, missingWarn) : [
|
|
17648
17698
|
key,
|
|
@@ -17904,11 +17954,10 @@ ${codeFrame}` : message);
|
|
|
17904
17954
|
};
|
|
17905
17955
|
}
|
|
17906
17956
|
function getSourceForCodeFrame(source2) {
|
|
17907
|
-
|
|
17908
|
-
|
|
17909
|
-
|
|
17910
|
-
|
|
17911
|
-
if ((_a2 = source2.loc) == null ? void 0 : _a2.source) {
|
|
17957
|
+
if (isString$1(source2)) {
|
|
17958
|
+
return source2;
|
|
17959
|
+
} else {
|
|
17960
|
+
if (source2.loc && source2.loc.source) {
|
|
17912
17961
|
return source2.loc.source;
|
|
17913
17962
|
}
|
|
17914
17963
|
}
|
|
@@ -17970,7 +18019,7 @@ function datetime(context, ...args) {
|
|
|
17970
18019
|
const missingWarn = isBoolean(options.missingWarn) ? options.missingWarn : context.missingWarn;
|
|
17971
18020
|
const fallbackWarn = isBoolean(options.fallbackWarn) ? options.fallbackWarn : context.fallbackWarn;
|
|
17972
18021
|
const part = !!options.part;
|
|
17973
|
-
const locale2 =
|
|
18022
|
+
const locale2 = getLocale(context, options);
|
|
17974
18023
|
const locales = localeFallbacker(
|
|
17975
18024
|
context,
|
|
17976
18025
|
fallbackLocale,
|
|
@@ -18117,7 +18166,7 @@ function number$1(context, ...args) {
|
|
|
18117
18166
|
const missingWarn = isBoolean(options.missingWarn) ? options.missingWarn : context.missingWarn;
|
|
18118
18167
|
const fallbackWarn = isBoolean(options.fallbackWarn) ? options.fallbackWarn : context.fallbackWarn;
|
|
18119
18168
|
const part = !!options.part;
|
|
18120
|
-
const locale2 =
|
|
18169
|
+
const locale2 = getLocale(context, options);
|
|
18121
18170
|
const locales = localeFallbacker(
|
|
18122
18171
|
context,
|
|
18123
18172
|
fallbackLocale,
|
|
@@ -18261,6 +18310,7 @@ var coreBase_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
18261
18310
|
getAdditionalMeta,
|
|
18262
18311
|
getDevToolsHook,
|
|
18263
18312
|
getFallbackContext,
|
|
18313
|
+
getLocale,
|
|
18264
18314
|
getWarnMessage: getWarnMessage$1,
|
|
18265
18315
|
handleMissing,
|
|
18266
18316
|
initI18nDevTools,
|
|
@@ -18276,6 +18326,7 @@ var coreBase_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
18276
18326
|
registerLocaleFallbacker,
|
|
18277
18327
|
registerMessageCompiler,
|
|
18278
18328
|
registerMessageResolver,
|
|
18329
|
+
resolveLocale,
|
|
18279
18330
|
resolveValue,
|
|
18280
18331
|
resolveWithKeyValue,
|
|
18281
18332
|
setAdditionalMeta,
|
|
@@ -18287,14 +18338,14 @@ var coreBase_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
18287
18338
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18288
18339
|
var require$$1$1 = /* @__PURE__ */ getAugmentedNamespace(coreBase_esmBrowser);
|
|
18289
18340
|
/*!
|
|
18290
|
-
* vue-i18n v9.
|
|
18341
|
+
* vue-i18n v9.8.0
|
|
18291
18342
|
* (c) 2023 kazuya kawaguchi
|
|
18292
18343
|
* Released under the MIT License.
|
|
18293
18344
|
*/
|
|
18294
18345
|
var shared = require$$0;
|
|
18295
18346
|
var coreBase = require$$1$1;
|
|
18296
18347
|
var vue = require$$0$1;
|
|
18297
|
-
const VERSION = "9.
|
|
18348
|
+
const VERSION = "9.8.0";
|
|
18298
18349
|
const code$1 = coreBase.CoreWarnCodes.__EXTEND_POINT__;
|
|
18299
18350
|
const inc$1 = shared.incrementer(code$1);
|
|
18300
18351
|
const I18nWarnCodes = {
|
|
@@ -18420,12 +18471,12 @@ function getLocaleMessages(locale2, options) {
|
|
|
18420
18471
|
const { locale: locale3, resource } = custom;
|
|
18421
18472
|
if (locale3) {
|
|
18422
18473
|
ret[locale3] = ret[locale3] || {};
|
|
18423
|
-
deepCopy(resource, ret[locale3]);
|
|
18474
|
+
shared.deepCopy(resource, ret[locale3]);
|
|
18424
18475
|
} else {
|
|
18425
|
-
deepCopy(resource, ret);
|
|
18476
|
+
shared.deepCopy(resource, ret);
|
|
18426
18477
|
}
|
|
18427
18478
|
} else {
|
|
18428
|
-
shared.isString(custom) && deepCopy(JSON.parse(custom), ret);
|
|
18479
|
+
shared.isString(custom) && shared.deepCopy(JSON.parse(custom), ret);
|
|
18429
18480
|
}
|
|
18430
18481
|
});
|
|
18431
18482
|
}
|
|
@@ -18438,21 +18489,6 @@ function getLocaleMessages(locale2, options) {
|
|
|
18438
18489
|
}
|
|
18439
18490
|
return ret;
|
|
18440
18491
|
}
|
|
18441
|
-
const isNotObjectOrIsArray = (val) => !shared.isObject(val) || shared.isArray(val);
|
|
18442
|
-
function deepCopy(src, des) {
|
|
18443
|
-
if (isNotObjectOrIsArray(src) || isNotObjectOrIsArray(des)) {
|
|
18444
|
-
throw createI18nError(I18nErrorCodes.INVALID_VALUE);
|
|
18445
|
-
}
|
|
18446
|
-
for (const key in src) {
|
|
18447
|
-
if (shared.hasOwn(src, key)) {
|
|
18448
|
-
if (isNotObjectOrIsArray(src[key]) || isNotObjectOrIsArray(des[key])) {
|
|
18449
|
-
des[key] = src[key];
|
|
18450
|
-
} else {
|
|
18451
|
-
deepCopy(src[key], des[key]);
|
|
18452
|
-
}
|
|
18453
|
-
}
|
|
18454
|
-
}
|
|
18455
|
-
}
|
|
18456
18492
|
function getComponentOptions(instance) {
|
|
18457
18493
|
return instance.type;
|
|
18458
18494
|
}
|
|
@@ -18493,6 +18529,8 @@ function createTextNode$1(key) {
|
|
|
18493
18529
|
return vue.createVNode(vue.Text, null, key, 0);
|
|
18494
18530
|
}
|
|
18495
18531
|
const DEVTOOLS_META = "__INTLIFY_META__";
|
|
18532
|
+
const NOOP_RETURN_ARRAY = () => [];
|
|
18533
|
+
const NOOP_RETURN_FALSE = () => false;
|
|
18496
18534
|
let composerID = 0;
|
|
18497
18535
|
function defineCoreMissingHandler(missing) {
|
|
18498
18536
|
return (ctx, locale2, key, type) => {
|
|
@@ -18507,6 +18545,7 @@ const getMetaInfo = () => {
|
|
|
18507
18545
|
function createComposer(options = {}, VueI18nLegacy) {
|
|
18508
18546
|
const { __root, __injectWithOption } = options;
|
|
18509
18547
|
const _isGlobal = __root === void 0;
|
|
18548
|
+
const flatJson = options.flatJson;
|
|
18510
18549
|
let _inheritLocale = shared.isBoolean(options.inheritLocale) ? options.inheritLocale : true;
|
|
18511
18550
|
const _locale = vue.ref(
|
|
18512
18551
|
__root && _inheritLocale ? __root.locale.value : shared.isString(options.locale) ? options.locale : coreBase.DEFAULT_LOCALE
|
|
@@ -18631,7 +18670,7 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
18631
18670
|
_context.fallbackContext = void 0;
|
|
18632
18671
|
}
|
|
18633
18672
|
}
|
|
18634
|
-
if (shared.isNumber(ret) && ret === coreBase.NOT_REOSLVED) {
|
|
18673
|
+
if (warnType !== "translate exists" && shared.isNumber(ret) && ret === coreBase.NOT_REOSLVED || warnType === "translate exists" && !ret) {
|
|
18635
18674
|
const [key, arg2] = argumentParser();
|
|
18636
18675
|
if (__root && shared.isString(key) && isResolvedTranslateMessage(warnType, arg2)) {
|
|
18637
18676
|
if (_fallbackRoot && (coreBase.isTranslateFallbackWarn(_fallbackWarn, key) || coreBase.isTranslateMissingWarn(_missingWarn, key))) {
|
|
@@ -18710,7 +18749,7 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
18710
18749
|
() => coreBase.parseNumberArgs(...args),
|
|
18711
18750
|
"number format",
|
|
18712
18751
|
(root) => root[NumberPartsSymbol](...args),
|
|
18713
|
-
|
|
18752
|
+
NOOP_RETURN_ARRAY,
|
|
18714
18753
|
(val) => shared.isString(val) || shared.isArray(val)
|
|
18715
18754
|
);
|
|
18716
18755
|
}
|
|
@@ -18720,7 +18759,7 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
18720
18759
|
() => coreBase.parseDateTimeArgs(...args),
|
|
18721
18760
|
"datetime format",
|
|
18722
18761
|
(root) => root[DatetimePartsSymbol](...args),
|
|
18723
|
-
|
|
18762
|
+
NOOP_RETURN_ARRAY,
|
|
18724
18763
|
(val) => shared.isString(val) || shared.isArray(val)
|
|
18725
18764
|
);
|
|
18726
18765
|
}
|
|
@@ -18729,9 +18768,17 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
18729
18768
|
_context.pluralRules = _pluralRules;
|
|
18730
18769
|
}
|
|
18731
18770
|
function te(key, locale3) {
|
|
18732
|
-
|
|
18733
|
-
|
|
18734
|
-
|
|
18771
|
+
return wrapWithDeps(() => {
|
|
18772
|
+
if (!key) {
|
|
18773
|
+
return false;
|
|
18774
|
+
}
|
|
18775
|
+
const targetLocale = shared.isString(locale3) ? locale3 : _locale.value;
|
|
18776
|
+
const message = getLocaleMessage(targetLocale);
|
|
18777
|
+
const resolved = _context.messageResolver(message, key);
|
|
18778
|
+
return coreBase.isMessageAST(resolved) || coreBase.isMessageFunction(resolved) || shared.isString(resolved);
|
|
18779
|
+
}, () => [key], "translate exists", (root) => {
|
|
18780
|
+
return Reflect.apply(root.te, root, [key, locale3]);
|
|
18781
|
+
}, NOOP_RETURN_FALSE, (val) => shared.isBoolean(val));
|
|
18735
18782
|
}
|
|
18736
18783
|
function resolveMessages(key) {
|
|
18737
18784
|
let messages2 = null;
|
|
@@ -18754,12 +18801,28 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
18754
18801
|
return _messages.value[locale3] || {};
|
|
18755
18802
|
}
|
|
18756
18803
|
function setLocaleMessage(locale3, message) {
|
|
18804
|
+
if (flatJson) {
|
|
18805
|
+
const _message = { [locale3]: message };
|
|
18806
|
+
for (const key in _message) {
|
|
18807
|
+
if (shared.hasOwn(_message, key)) {
|
|
18808
|
+
handleFlatJson(_message[key]);
|
|
18809
|
+
}
|
|
18810
|
+
}
|
|
18811
|
+
message = _message[locale3];
|
|
18812
|
+
}
|
|
18757
18813
|
_messages.value[locale3] = message;
|
|
18758
18814
|
_context.messages = _messages.value;
|
|
18759
18815
|
}
|
|
18760
18816
|
function mergeLocaleMessage(locale3, message) {
|
|
18761
18817
|
_messages.value[locale3] = _messages.value[locale3] || {};
|
|
18762
|
-
|
|
18818
|
+
const _message = { [locale3]: message };
|
|
18819
|
+
for (const key in _message) {
|
|
18820
|
+
if (shared.hasOwn(_message, key)) {
|
|
18821
|
+
handleFlatJson(_message[key]);
|
|
18822
|
+
}
|
|
18823
|
+
}
|
|
18824
|
+
message = _message[locale3];
|
|
18825
|
+
shared.deepCopy(message, _messages.value[locale3]);
|
|
18763
18826
|
_context.messages = _messages.value;
|
|
18764
18827
|
}
|
|
18765
18828
|
function getDateTimeFormat(locale3) {
|
|
@@ -39408,8 +39471,8 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39408
39471
|
}, 1032, ["model-value", "onUpdate:modelValue", "onOnChange"])) : column.controlType === "TextArea" ? (openBlock(), createBlock(_component_Input, {
|
|
39409
39472
|
key: 18,
|
|
39410
39473
|
type: "textarea",
|
|
39411
|
-
"model-value": $options.parseFilterData($data.data, column
|
|
39412
|
-
"onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column
|
|
39474
|
+
"model-value": $options.parseFilterData($data.data, column),
|
|
39475
|
+
"onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
|
|
39413
39476
|
style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
|
|
39414
39477
|
rows: column.controlHeight / 20,
|
|
39415
39478
|
placeholder: column.description
|
|
@@ -42208,7 +42271,7 @@ const _sfc_main$_ = {
|
|
|
42208
42271
|
return getColumns(view, item);
|
|
42209
42272
|
});
|
|
42210
42273
|
this.columns.forEach((column) => {
|
|
42211
|
-
column.name = this.getNameI18n(column);
|
|
42274
|
+
column.name = this.getNameI18n(column) + (column.isRequired ? ' <font color="red">*</font>' : "");
|
|
42212
42275
|
column.fixed = column.isFixed ? "left" : null;
|
|
42213
42276
|
});
|
|
42214
42277
|
if (this.tableView.snEnable) {
|
|
@@ -127662,7 +127725,6 @@ const created = async (app, routes, files2, componentFiles2) => {
|
|
|
127662
127725
|
});
|
|
127663
127726
|
}
|
|
127664
127727
|
Object.keys(components).forEach((key) => {
|
|
127665
|
-
console.log("key", key);
|
|
127666
127728
|
app.component(key, components[key]);
|
|
127667
127729
|
});
|
|
127668
127730
|
Object.keys(files2).forEach((key) => {
|