mooho-base-admin-plus 2.4.56 → 2.4.58

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
@@ -88,3 +88,5 @@ 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
90
  mooho-base-admin-plus@2.4.56 - 列表必填项加星号
91
+ mooho-base-admin-plus@2.4.57 - 修复多行文本框筛选的bug
92
+ mooho-base-admin-plus@2.4.58 - 如果表单有值,viewForm中loadView的时候不设置默认值
@@ -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$5 = { exports: {} };
5682
- isPromise$5.exports = isPromise$4;
5683
- isPromise$5.exports.default = isPromise$4;
5684
- function isPromise$4(obj) {
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$3 = isPromise$5.exports;
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$3(r) ? r.then(plant) : plant(r);
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$3(w2) ? w2.then(function() {
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.4
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 === queue2.length) {
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 errorHandlers = useCallbacks();
8216
+ let errorListeners = useCallbacks();
8219
8217
  let ready;
8220
8218
  function triggerError(error2, to, from) {
8221
8219
  markAsReady(error2);
8222
- const list = errorHandlers.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: errorHandlers.add,
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$2(val) {
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$2(res2)) {
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$1 = (arg) => arg && Promise.resolve(arg) === arg;
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$1(params.inputValue)) {
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$1(params.inputValue))) {
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$1(params.inputOptions)) {
12230
+ if (hasToPromiseFn(params.inputOptions) || isPromise$2(params.inputOptions)) {
12233
12231
  showLoading();
12234
12232
  asPromise(params.inputOptions).then((inputOptions) => {
12235
12233
  instance.hideLoading();
@@ -15287,8 +15285,8 @@ 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.4.0
15291
- * (c) 2023 kazuya kawaguchi
15288
+ * shared v9.9.0
15289
+ * (c) 2024 kazuya kawaguchi
15292
15290
  * Released under the MIT License.
15293
15291
  */
15294
15292
  const inBrowser$1 = typeof window !== "undefined";
@@ -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,28 @@ 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
+ const stack = [{ src, des }];
15442
+ while (stack.length) {
15443
+ const { src: src2, des: des2 } = stack.pop();
15444
+ Object.keys(src2).forEach((key) => {
15445
+ if (isNotObjectOrIsArray(src2[key]) || isNotObjectOrIsArray(des2[key])) {
15446
+ des2[key] = src2[key];
15447
+ } else {
15448
+ stack.push({ src: src2[key], des: des2[key] });
15449
+ }
15450
+ });
15451
+ }
15452
+ }
15438
15453
  var shared_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15439
15454
  __proto__: null,
15440
15455
  assign: assign$1,
15441
15456
  createEmitter,
15457
+ deepCopy,
15442
15458
  escapeHtml: escapeHtml$1,
15443
15459
  format: format$3,
15444
15460
  friendlyJSONstringify: friendlyJSONstringify$1,
@@ -15456,7 +15472,7 @@ var shared_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
15456
15472
  isNumber: isNumber$2,
15457
15473
  isObject: isObject$5,
15458
15474
  isPlainObject: isPlainObject$1,
15459
- isPromise,
15475
+ isPromise: isPromise$1,
15460
15476
  isRegExp: isRegExp$2,
15461
15477
  isString: isString$2,
15462
15478
  isSymbol,
@@ -15476,8 +15492,8 @@ var shared_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
15476
15492
  }, Symbol.toStringTag, { value: "Module" }));
15477
15493
  var require$$0 = /* @__PURE__ */ getAugmentedNamespace(shared_esmBrowser);
15478
15494
  /*!
15479
- * core-base v9.4.0
15480
- * (c) 2023 kazuya kawaguchi
15495
+ * core-base v9.9.0
15496
+ * (c) 2024 kazuya kawaguchi
15481
15497
  * Released under the MIT License.
15482
15498
  */
15483
15499
  const inBrowser = typeof window !== "undefined";
@@ -15523,6 +15539,9 @@ const isFunction$1 = (val) => typeof val === "function";
15523
15539
  const isString$1 = (val) => typeof val === "string";
15524
15540
  const isBoolean = (val) => typeof val === "boolean";
15525
15541
  const isObject$4 = (val) => val !== null && typeof val === "object";
15542
+ const isPromise = (val) => {
15543
+ return isObject$4(val) && isFunction$1(val.then) && isFunction$1(val.catch);
15544
+ };
15526
15545
  const objectToString = Object.prototype.toString;
15527
15546
  const toTypeString = (value) => objectToString.call(value);
15528
15547
  const isPlainObject = (val) => {
@@ -16116,7 +16135,7 @@ function createTokenizer(source2, options = {}) {
16116
16135
  function readLinkedRefer(scnr) {
16117
16136
  const fn = (detect2 = false, buf) => {
16118
16137
  const ch = scnr.currentChar();
16119
- if (ch === "{" || ch === "%" || ch === "@" || ch === "|" || !ch) {
16138
+ if (ch === "{" || ch === "%" || ch === "@" || ch === "|" || ch === "(" || ch === ")" || !ch) {
16120
16139
  return buf;
16121
16140
  } else if (ch === CHAR_SP) {
16122
16141
  return buf;
@@ -16124,8 +16143,6 @@ function createTokenizer(source2, options = {}) {
16124
16143
  buf += ch;
16125
16144
  scnr.next();
16126
16145
  return fn(detect2, buf);
16127
- } else if (!isIdentifierStart(ch)) {
16128
- return buf;
16129
16146
  } else {
16130
16147
  buf += ch;
16131
16148
  scnr.next();
@@ -17151,6 +17168,9 @@ function resolveValue(obj, path) {
17151
17168
  if (val === void 0) {
17152
17169
  return null;
17153
17170
  }
17171
+ if (isFunction$1(last)) {
17172
+ return null;
17173
+ }
17154
17174
  last = val;
17155
17175
  i3++;
17156
17176
  }
@@ -17278,6 +17298,55 @@ const warnMessages$1 = {
17278
17298
  function getWarnMessage$1(code2, ...args) {
17279
17299
  return format$1$1(warnMessages$1[code2], ...args);
17280
17300
  }
17301
+ const code$2 = CompileErrorCodes.__EXTEND_POINT__;
17302
+ const inc$2 = incrementer(code$2);
17303
+ const CoreErrorCodes = {
17304
+ INVALID_ARGUMENT: code$2,
17305
+ INVALID_DATE_ARGUMENT: inc$2(),
17306
+ INVALID_ISO_DATE_ARGUMENT: inc$2(),
17307
+ NOT_SUPPORT_NON_STRING_MESSAGE: inc$2(),
17308
+ NOT_SUPPORT_LOCALE_PROMISE_VALUE: inc$2(),
17309
+ NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: inc$2(),
17310
+ NOT_SUPPORT_LOCALE_TYPE: inc$2(),
17311
+ __EXTEND_POINT__: inc$2()
17312
+ };
17313
+ function createCoreError(code2) {
17314
+ return createCompileError(code2, null, { messages: errorMessages$2 });
17315
+ }
17316
+ const errorMessages$2 = {
17317
+ [CoreErrorCodes.INVALID_ARGUMENT]: "Invalid arguments",
17318
+ [CoreErrorCodes.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
17319
+ [CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
17320
+ [CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
17321
+ [CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
17322
+ [CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
17323
+ [CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
17324
+ };
17325
+ function getLocale(context, options) {
17326
+ return options.locale != null ? resolveLocale(options.locale) : resolveLocale(context.locale);
17327
+ }
17328
+ let _resolveLocale;
17329
+ function resolveLocale(locale2) {
17330
+ if (isString$1(locale2)) {
17331
+ return locale2;
17332
+ } else {
17333
+ if (isFunction$1(locale2)) {
17334
+ if (locale2.resolvedOnce && _resolveLocale != null) {
17335
+ return _resolveLocale;
17336
+ } else if (locale2.constructor.name === "Function") {
17337
+ const resolve = locale2();
17338
+ if (isPromise(resolve)) {
17339
+ throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
17340
+ }
17341
+ return _resolveLocale = resolve;
17342
+ } else {
17343
+ throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
17344
+ }
17345
+ } else {
17346
+ throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE);
17347
+ }
17348
+ }
17349
+ }
17281
17350
  function fallbackWithSimple(ctx, fallback, start2) {
17282
17351
  return [.../* @__PURE__ */ new Set([
17283
17352
  start2,
@@ -17341,7 +17410,7 @@ function appendItemToChain(chain, target, blocks) {
17341
17410
  }
17342
17411
  return follow;
17343
17412
  }
17344
- const VERSION$1 = "9.4.0";
17413
+ const VERSION$1 = "9.9.0";
17345
17414
  const NOT_REOSLVED = -1;
17346
17415
  const DEFAULT_LOCALE$1 = "en-US";
17347
17416
  const MISSING_RESOLVE_VALUE = "";
@@ -17385,11 +17454,12 @@ let _cid = 0;
17385
17454
  function createCoreContext(options = {}) {
17386
17455
  const onWarn = isFunction$1(options.onWarn) ? options.onWarn : warn$1;
17387
17456
  const version2 = isString$1(options.version) ? options.version : VERSION$1;
17388
- const locale2 = isString$1(options.locale) ? options.locale : DEFAULT_LOCALE$1;
17389
- const fallbackLocale = isArray$2(options.fallbackLocale) || isPlainObject(options.fallbackLocale) || isString$1(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : locale2;
17390
- const messages = isPlainObject(options.messages) ? options.messages : { [locale2]: {} };
17391
- const datetimeFormats = isPlainObject(options.datetimeFormats) ? options.datetimeFormats : { [locale2]: {} };
17392
- const numberFormats = isPlainObject(options.numberFormats) ? options.numberFormats : { [locale2]: {} };
17457
+ const locale2 = isString$1(options.locale) || isFunction$1(options.locale) ? options.locale : DEFAULT_LOCALE$1;
17458
+ const _locale = isFunction$1(locale2) ? DEFAULT_LOCALE$1 : locale2;
17459
+ const fallbackLocale = isArray$2(options.fallbackLocale) || isPlainObject(options.fallbackLocale) || isString$1(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale;
17460
+ const messages = isPlainObject(options.messages) ? options.messages : { [_locale]: {} };
17461
+ const datetimeFormats = isPlainObject(options.datetimeFormats) ? options.datetimeFormats : { [_locale]: {} };
17462
+ const numberFormats = isPlainObject(options.numberFormats) ? options.numberFormats : { [_locale]: {} };
17393
17463
  const modifiers = assign({}, options.modifiers || {}, getDefaultLinkedModifiers());
17394
17464
  const pluralRules = options.pluralRules || {};
17395
17465
  const missing = isFunction$1(options.missing) ? options.missing : null;
@@ -17525,7 +17595,7 @@ function formatMessagePart(ctx, node) {
17525
17595
  return ctx.interpolate(ctx.named(named.k || named.key));
17526
17596
  case 5:
17527
17597
  const list = node;
17528
- return ctx.interpolate(ctx.list(list.i || list.index));
17598
+ return ctx.interpolate(ctx.list(list.i != null ? list.i : list.index));
17529
17599
  case 6:
17530
17600
  const linked = node;
17531
17601
  const modifier = linked.m || linked.modifier;
@@ -17540,24 +17610,6 @@ function formatMessagePart(ctx, node) {
17540
17610
  throw new Error(`unhandled node type on format message part: ${type}`);
17541
17611
  }
17542
17612
  }
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
17613
  const WARN_MESSAGE = `Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.`;
17562
17614
  function checkHtmlMessage(source2, warnHtmlMessage) {
17563
17615
  if (warnHtmlMessage && detectHtmlTag(source2)) {
@@ -17642,7 +17694,7 @@ function translate$1(context, ...args) {
17642
17694
  const resolvedMessage = !!options.resolvedMessage;
17643
17695
  const defaultMsgOrKey = isString$1(options.default) || isBoolean(options.default) ? !isBoolean(options.default) ? options.default : !messageCompiler ? () => key : key : fallbackFormat ? !messageCompiler ? () => key : key : "";
17644
17696
  const enableDefaultMsg = fallbackFormat || defaultMsgOrKey !== "";
17645
- const locale2 = isString$1(options.locale) ? options.locale : context.locale;
17697
+ const locale2 = getLocale(context, options);
17646
17698
  escapeParameter && escapeParams(options);
17647
17699
  let [formatScope, targetLocale, message] = !resolvedMessage ? resolveMessageFormat(context, key, locale2, fallbackLocale, fallbackWarn, missingWarn) : [
17648
17700
  key,
@@ -17904,11 +17956,10 @@ ${codeFrame}` : message);
17904
17956
  };
17905
17957
  }
17906
17958
  function getSourceForCodeFrame(source2) {
17907
- var _a2;
17908
- if (isString$1(source2))
17909
- ;
17910
- else {
17911
- if ((_a2 = source2.loc) == null ? void 0 : _a2.source) {
17959
+ if (isString$1(source2)) {
17960
+ return source2;
17961
+ } else {
17962
+ if (source2.loc && source2.loc.source) {
17912
17963
  return source2.loc.source;
17913
17964
  }
17914
17965
  }
@@ -17970,7 +18021,7 @@ function datetime(context, ...args) {
17970
18021
  const missingWarn = isBoolean(options.missingWarn) ? options.missingWarn : context.missingWarn;
17971
18022
  const fallbackWarn = isBoolean(options.fallbackWarn) ? options.fallbackWarn : context.fallbackWarn;
17972
18023
  const part = !!options.part;
17973
- const locale2 = isString$1(options.locale) ? options.locale : context.locale;
18024
+ const locale2 = getLocale(context, options);
17974
18025
  const locales = localeFallbacker(
17975
18026
  context,
17976
18027
  fallbackLocale,
@@ -18117,7 +18168,7 @@ function number$1(context, ...args) {
18117
18168
  const missingWarn = isBoolean(options.missingWarn) ? options.missingWarn : context.missingWarn;
18118
18169
  const fallbackWarn = isBoolean(options.fallbackWarn) ? options.fallbackWarn : context.fallbackWarn;
18119
18170
  const part = !!options.part;
18120
- const locale2 = isString$1(options.locale) ? options.locale : context.locale;
18171
+ const locale2 = getLocale(context, options);
18121
18172
  const locales = localeFallbacker(
18122
18173
  context,
18123
18174
  fallbackLocale,
@@ -18261,6 +18312,7 @@ var coreBase_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
18261
18312
  getAdditionalMeta,
18262
18313
  getDevToolsHook,
18263
18314
  getFallbackContext,
18315
+ getLocale,
18264
18316
  getWarnMessage: getWarnMessage$1,
18265
18317
  handleMissing,
18266
18318
  initI18nDevTools,
@@ -18276,6 +18328,7 @@ var coreBase_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
18276
18328
  registerLocaleFallbacker,
18277
18329
  registerMessageCompiler,
18278
18330
  registerMessageResolver,
18331
+ resolveLocale,
18279
18332
  resolveValue,
18280
18333
  resolveWithKeyValue,
18281
18334
  setAdditionalMeta,
@@ -18287,14 +18340,14 @@ var coreBase_esmBrowser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
18287
18340
  }, Symbol.toStringTag, { value: "Module" }));
18288
18341
  var require$$1$1 = /* @__PURE__ */ getAugmentedNamespace(coreBase_esmBrowser);
18289
18342
  /*!
18290
- * vue-i18n v9.4.0
18291
- * (c) 2023 kazuya kawaguchi
18343
+ * vue-i18n v9.9.0
18344
+ * (c) 2024 kazuya kawaguchi
18292
18345
  * Released under the MIT License.
18293
18346
  */
18294
18347
  var shared = require$$0;
18295
18348
  var coreBase = require$$1$1;
18296
18349
  var vue = require$$0$1;
18297
- const VERSION = "9.4.0";
18350
+ const VERSION = "9.9.0";
18298
18351
  const code$1 = coreBase.CoreWarnCodes.__EXTEND_POINT__;
18299
18352
  const inc$1 = shared.incrementer(code$1);
18300
18353
  const I18nWarnCodes = {
@@ -18420,12 +18473,12 @@ function getLocaleMessages(locale2, options) {
18420
18473
  const { locale: locale3, resource } = custom;
18421
18474
  if (locale3) {
18422
18475
  ret[locale3] = ret[locale3] || {};
18423
- deepCopy(resource, ret[locale3]);
18476
+ shared.deepCopy(resource, ret[locale3]);
18424
18477
  } else {
18425
- deepCopy(resource, ret);
18478
+ shared.deepCopy(resource, ret);
18426
18479
  }
18427
18480
  } else {
18428
- shared.isString(custom) && deepCopy(JSON.parse(custom), ret);
18481
+ shared.isString(custom) && shared.deepCopy(JSON.parse(custom), ret);
18429
18482
  }
18430
18483
  });
18431
18484
  }
@@ -18438,21 +18491,6 @@ function getLocaleMessages(locale2, options) {
18438
18491
  }
18439
18492
  return ret;
18440
18493
  }
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
18494
  function getComponentOptions(instance) {
18457
18495
  return instance.type;
18458
18496
  }
@@ -18493,6 +18531,8 @@ function createTextNode$1(key) {
18493
18531
  return vue.createVNode(vue.Text, null, key, 0);
18494
18532
  }
18495
18533
  const DEVTOOLS_META = "__INTLIFY_META__";
18534
+ const NOOP_RETURN_ARRAY = () => [];
18535
+ const NOOP_RETURN_FALSE = () => false;
18496
18536
  let composerID = 0;
18497
18537
  function defineCoreMissingHandler(missing) {
18498
18538
  return (ctx, locale2, key, type) => {
@@ -18507,16 +18547,18 @@ const getMetaInfo = () => {
18507
18547
  function createComposer(options = {}, VueI18nLegacy) {
18508
18548
  const { __root, __injectWithOption } = options;
18509
18549
  const _isGlobal = __root === void 0;
18550
+ const flatJson = options.flatJson;
18551
+ const _ref = shared.inBrowser ? vue.ref : vue.shallowRef;
18510
18552
  let _inheritLocale = shared.isBoolean(options.inheritLocale) ? options.inheritLocale : true;
18511
- const _locale = vue.ref(
18553
+ const _locale = _ref(
18512
18554
  __root && _inheritLocale ? __root.locale.value : shared.isString(options.locale) ? options.locale : coreBase.DEFAULT_LOCALE
18513
18555
  );
18514
- const _fallbackLocale = vue.ref(
18556
+ const _fallbackLocale = _ref(
18515
18557
  __root && _inheritLocale ? __root.fallbackLocale.value : shared.isString(options.fallbackLocale) || shared.isArray(options.fallbackLocale) || shared.isPlainObject(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale.value
18516
18558
  );
18517
- const _messages = vue.ref(getLocaleMessages(_locale.value, options));
18518
- const _datetimeFormats = vue.ref(shared.isPlainObject(options.datetimeFormats) ? options.datetimeFormats : { [_locale.value]: {} });
18519
- const _numberFormats = vue.ref(shared.isPlainObject(options.numberFormats) ? options.numberFormats : { [_locale.value]: {} });
18559
+ const _messages = _ref(getLocaleMessages(_locale.value, options));
18560
+ const _datetimeFormats = _ref(shared.isPlainObject(options.datetimeFormats) ? options.datetimeFormats : { [_locale.value]: {} });
18561
+ const _numberFormats = _ref(shared.isPlainObject(options.numberFormats) ? options.numberFormats : { [_locale.value]: {} });
18520
18562
  let _missingWarn = __root ? __root.missingWarn : shared.isBoolean(options.missingWarn) || shared.isRegExp(options.missingWarn) ? options.missingWarn : true;
18521
18563
  let _fallbackWarn = __root ? __root.fallbackWarn : shared.isBoolean(options.fallbackWarn) || shared.isRegExp(options.fallbackWarn) ? options.fallbackWarn : true;
18522
18564
  let _fallbackRoot = __root ? __root.fallbackRoot : shared.isBoolean(options.fallbackRoot) ? options.fallbackRoot : true;
@@ -18631,7 +18673,7 @@ function createComposer(options = {}, VueI18nLegacy) {
18631
18673
  _context.fallbackContext = void 0;
18632
18674
  }
18633
18675
  }
18634
- if (shared.isNumber(ret) && ret === coreBase.NOT_REOSLVED) {
18676
+ if (warnType !== "translate exists" && shared.isNumber(ret) && ret === coreBase.NOT_REOSLVED || warnType === "translate exists" && !ret) {
18635
18677
  const [key, arg2] = argumentParser();
18636
18678
  if (__root && shared.isString(key) && isResolvedTranslateMessage(warnType, arg2)) {
18637
18679
  if (_fallbackRoot && (coreBase.isTranslateFallbackWarn(_fallbackWarn, key) || coreBase.isTranslateMissingWarn(_missingWarn, key))) {
@@ -18710,7 +18752,7 @@ function createComposer(options = {}, VueI18nLegacy) {
18710
18752
  () => coreBase.parseNumberArgs(...args),
18711
18753
  "number format",
18712
18754
  (root) => root[NumberPartsSymbol](...args),
18713
- () => [],
18755
+ NOOP_RETURN_ARRAY,
18714
18756
  (val) => shared.isString(val) || shared.isArray(val)
18715
18757
  );
18716
18758
  }
@@ -18720,7 +18762,7 @@ function createComposer(options = {}, VueI18nLegacy) {
18720
18762
  () => coreBase.parseDateTimeArgs(...args),
18721
18763
  "datetime format",
18722
18764
  (root) => root[DatetimePartsSymbol](...args),
18723
- () => [],
18765
+ NOOP_RETURN_ARRAY,
18724
18766
  (val) => shared.isString(val) || shared.isArray(val)
18725
18767
  );
18726
18768
  }
@@ -18729,9 +18771,17 @@ function createComposer(options = {}, VueI18nLegacy) {
18729
18771
  _context.pluralRules = _pluralRules;
18730
18772
  }
18731
18773
  function te(key, locale3) {
18732
- const targetLocale = shared.isString(locale3) ? locale3 : _locale.value;
18733
- const message = getLocaleMessage(targetLocale);
18734
- return _context.messageResolver(message, key) !== null;
18774
+ return wrapWithDeps(() => {
18775
+ if (!key) {
18776
+ return false;
18777
+ }
18778
+ const targetLocale = shared.isString(locale3) ? locale3 : _locale.value;
18779
+ const message = getLocaleMessage(targetLocale);
18780
+ const resolved = _context.messageResolver(message, key);
18781
+ return coreBase.isMessageAST(resolved) || coreBase.isMessageFunction(resolved) || shared.isString(resolved);
18782
+ }, () => [key], "translate exists", (root) => {
18783
+ return Reflect.apply(root.te, root, [key, locale3]);
18784
+ }, NOOP_RETURN_FALSE, (val) => shared.isBoolean(val));
18735
18785
  }
18736
18786
  function resolveMessages(key) {
18737
18787
  let messages2 = null;
@@ -18754,12 +18804,28 @@ function createComposer(options = {}, VueI18nLegacy) {
18754
18804
  return _messages.value[locale3] || {};
18755
18805
  }
18756
18806
  function setLocaleMessage(locale3, message) {
18807
+ if (flatJson) {
18808
+ const _message = { [locale3]: message };
18809
+ for (const key in _message) {
18810
+ if (shared.hasOwn(_message, key)) {
18811
+ handleFlatJson(_message[key]);
18812
+ }
18813
+ }
18814
+ message = _message[locale3];
18815
+ }
18757
18816
  _messages.value[locale3] = message;
18758
18817
  _context.messages = _messages.value;
18759
18818
  }
18760
18819
  function mergeLocaleMessage(locale3, message) {
18761
18820
  _messages.value[locale3] = _messages.value[locale3] || {};
18762
- deepCopy(message, _messages.value[locale3]);
18821
+ const _message = { [locale3]: message };
18822
+ for (const key in _message) {
18823
+ if (shared.hasOwn(_message, key)) {
18824
+ handleFlatJson(_message[key]);
18825
+ }
18826
+ }
18827
+ message = _message[locale3];
18828
+ shared.deepCopy(message, _messages.value[locale3]);
18763
18829
  _context.messages = _messages.value;
18764
18830
  }
18765
18831
  function getDateTimeFormat(locale3) {
@@ -38801,6 +38867,9 @@ const _sfc_main$12 = {
38801
38867
  }
38802
38868
  });
38803
38869
  }
38870
+ if (column.dataSource.length > 0 && column.isDefaultFirst) {
38871
+ this.setFilterData(this.data, column, column.dataSource[0].id);
38872
+ }
38804
38873
  }
38805
38874
  });
38806
38875
  },
@@ -38822,6 +38891,7 @@ const _sfc_main$12 = {
38822
38891
  });
38823
38892
  },
38824
38893
  async fillDataSource(data2, column, param) {
38894
+ console.log("0");
38825
38895
  let value;
38826
38896
  if (column.controlType === "TreeSelect" || column.controlType === "MultiTreeSelect") {
38827
38897
  value = this.parseTreeFilterData(data2, column);
@@ -38856,6 +38926,7 @@ const _sfc_main$12 = {
38856
38926
  name: this.parseData(item, column.sourceDisplayCode)
38857
38927
  };
38858
38928
  });
38929
+ console.log("1");
38859
38930
  if (data2) {
38860
38931
  if (this.parseFilterData(data2, column) == null && column.isDefaultFirst && res2.length > 0) {
38861
38932
  this.setData(data2, column.code, this.parseData(res2[0], column.sourceDataCode));
@@ -39408,8 +39479,8 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
39408
39479
  }, 1032, ["model-value", "onUpdate:modelValue", "onOnChange"])) : column.controlType === "TextArea" ? (openBlock(), createBlock(_component_Input, {
39409
39480
  key: 18,
39410
39481
  type: "textarea",
39411
- "model-value": $options.parseFilterData($data.data, column.code),
39412
- "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column.code, $event),
39482
+ "model-value": $options.parseFilterData($data.data, column),
39483
+ "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
39413
39484
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
39414
39485
  rows: column.controlHeight / 20,
39415
39486
  placeholder: column.description
@@ -40712,7 +40783,9 @@ const _sfc_main$$ = {
40712
40783
  this.formView.columns = view.viewColumns;
40713
40784
  this.$emit("on-ready", this.formView);
40714
40785
  this.columns = view.viewColumns;
40715
- this.data = this.getDefaultData();
40786
+ if (!this.data) {
40787
+ this.data = this.getDefaultData();
40788
+ }
40716
40789
  setTimeout(() => {
40717
40790
  this.initTab();
40718
40791
  this.initStaticItem();
@@ -40959,6 +41032,9 @@ const _sfc_main$$ = {
40959
41032
  }
40960
41033
  });
40961
41034
  }
41035
+ if (column.dataSource.length > 0 && column.isDefaultFirst) {
41036
+ this.setData(this.data, column.code, column.dataSource[0].id);
41037
+ }
40962
41038
  }
40963
41039
  });
40964
41040
  },