mooho-base-admin-plus 0.1.27 → 0.1.28

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.
@@ -17,22 +17,6 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- function _mergeNamespaces(n2, m2) {
21
- m2.forEach(function(e2) {
22
- e2 && typeof e2 !== "string" && !Array.isArray(e2) && Object.keys(e2).forEach(function(k2) {
23
- if (k2 !== "default" && !(k2 in n2)) {
24
- var d = Object.getOwnPropertyDescriptor(e2, k2);
25
- Object.defineProperty(n2, k2, d.get ? d : {
26
- enumerable: true,
27
- get: function() {
28
- return e2[k2];
29
- }
30
- });
31
- }
32
- });
33
- });
34
- return Object.freeze(Object.defineProperty(n2, Symbol.toStringTag, { value: "Module" }));
35
- }
36
20
  function makeMap(str, expectsLowerCase) {
37
21
  const map2 = /* @__PURE__ */ Object.create(null);
38
22
  const list = str.split(",");
@@ -9978,7 +9962,7 @@ function getAugmentedNamespace(n2) {
9978
9962
  });
9979
9963
  return a;
9980
9964
  }
9981
- var viewuiplus_min$1 = { exports: {} };
9965
+ var viewuiplus_min = { exports: {} };
9982
9966
  var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(vue_runtime_esmBundler);
9983
9967
  (function(module, exports) {
9984
9968
  var X1 = Object.defineProperty, Z1 = Object.defineProperties;
@@ -21259,8 +21243,8 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(vue_runtime_esmBundler)
21259
21243
  }, H1 = De({ version: ic, locale: sc, i18n: rc, install: br, lang: lc }, ec);
21260
21244
  T.Affix = wr, T.Alert = Vr, T.Anchor = Tr, T.AnchorLink = Er, T.Auth = Nr, T.AutoComplete = Ar, T.Avatar = Dn, T.AvatarList = Wr, T.BackTop = jr, T.Badge = os, T.Breadcrumb = cs, T.BreadcrumbItem = ds, T.Button = Ke, T.ButtonGroup = hs, T.Calendar = Qr, T.Captcha = ll, T.Card = ol, T.Carousel = cl, T.CarouselItem = dl, T.Cascader = hl, T.Cell = fl, T.CellGroup = ul, T.Checkbox = mn, T.CheckboxGroup = ws, T.Circle = wi, T.City = yl, T.Col = _t, T.Collapse = Cl, T.ColorPicker = Bl, T.Content = xs, T.Copy = Vs, T.CountDown = _l, T.CountUp = Pl, T.DatePicker = da, T.Description = ha, T.DescriptionList = fa, T.Divider = Fs, T.Drawer = ua, T.Dropdown = Jt, T.DropdownItem = ma, T.DropdownMenu = Xt, T.Ellipsis = pa, T.Email = ga, T.Exception = ya, T.Footer = Rs, T.FooterToolbar = ba, T.Form = Oi, T.FormItem = ki, T.GlobalFooter = Ca, T.Grid = Pa, T.GridItem = za, T.Header = vs, T.Icon = he, T.Input = at, T.InputNumber = qs, T.Layout = Ma, T.List = Aa, T.ListItem = Ra, T.ListItemMeta = Ha, T.LoadingBar = Gs, T.Login = Ya, T.Menu = Xs, T.MenuGroup = Ga, T.MenuItem = Ja, T.Message = Wn, T.Mobile = Xa, T.Modal = it, T.Notice = Qs, T.Notification = oo, T.NotificationItem = fo, T.NotificationTab = uo, T.NumberInfo = mo, T.Numeral = go, T.Option = an, T.OptionGroup = yo, T.Page = bo, T.PageHeader = Co, T.Panel = ko, T.Password = wo, T.Poptip = sr, T.Progress = vi, T.Radio = yi, T.RadioGroup = gi, T.Rate = So, T.Result = xo, T.Row = hn, T.Scroll = Vo, T.ScrollIntoView = lr, T.ScrollTop = ar, T.Select = vt, T.Sider = Io, T.Slider = _o, T.Spin = nt, T.Split = Po, T.Step = $o, T.Steps = Mo, T.Submenu = Oo, T.Submit = Lo, T.Switch = cr, T.TabPane = Ki, T.Table = Yi, T.TablePaste = Ao, T.Tabs = ji, T.Tag = pn, T.TagSelect = Ro, T.TagSelectOption = Ho, T.Time = Ui, T.TimePicker = Ko, T.Timeline = jo, T.TimelineItem = Uo, T.Tooltip = dn, T.Transfer = Yo, T.Tree = gr, T.TreeSelect = Go, T.Trend = tr, T.Upload = Xo, T.UserName = Zo, T.WordCount = Qo, T.default = H1, T.i18n = rc, T.install = br, T.lang = lc, T.locale = sc, T.version = ic, Object.defineProperties(T, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
21261
21245
  });
21262
- })(viewuiplus_min$1, viewuiplus_min$1.exports);
21263
- var viewuiplus_min = /* @__PURE__ */ getDefaultExportFromCjs(viewuiplus_min$1.exports);
21246
+ })(viewuiplus_min, viewuiplus_min.exports);
21247
+ var ViewUIPlus = /* @__PURE__ */ getDefaultExportFromCjs(viewuiplus_min.exports);
21264
21248
  /*! js-cookie v3.0.1 | MIT */
21265
21249
  function assign$1(target) {
21266
21250
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -23276,12 +23260,12 @@ var lodash$1 = { exports: {} };
23276
23260
  return !!result3;
23277
23261
  }
23278
23262
  function baseSortedIndex(array, value, retHighest) {
23279
- var low2 = 0, high = array == null ? low2 : array.length;
23263
+ var low = 0, high = array == null ? low : array.length;
23280
23264
  if (typeof value == "number" && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
23281
- while (low2 < high) {
23282
- var mid = low2 + high >>> 1, computed2 = array[mid];
23265
+ while (low < high) {
23266
+ var mid = low + high >>> 1, computed2 = array[mid];
23283
23267
  if (computed2 !== null && !isSymbol2(computed2) && (retHighest ? computed2 <= value : computed2 < value)) {
23284
- low2 = mid + 1;
23268
+ low = mid + 1;
23285
23269
  } else {
23286
23270
  high = mid;
23287
23271
  }
@@ -23291,14 +23275,14 @@ var lodash$1 = { exports: {} };
23291
23275
  return baseSortedIndexBy(array, value, identity2, retHighest);
23292
23276
  }
23293
23277
  function baseSortedIndexBy(array, value, iteratee2, retHighest) {
23294
- var low2 = 0, high = array == null ? 0 : array.length;
23278
+ var low = 0, high = array == null ? 0 : array.length;
23295
23279
  if (high === 0) {
23296
23280
  return 0;
23297
23281
  }
23298
23282
  value = iteratee2(value);
23299
23283
  var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol2(value), valIsUndefined = value === undefined$1;
23300
- while (low2 < high) {
23301
- var mid = nativeFloor((low2 + high) / 2), computed2 = iteratee2(array[mid]), othIsDefined = computed2 !== undefined$1, othIsNull = computed2 === null, othIsReflexive = computed2 === computed2, othIsSymbol = isSymbol2(computed2);
23284
+ while (low < high) {
23285
+ var mid = nativeFloor((low + high) / 2), computed2 = iteratee2(array[mid]), othIsDefined = computed2 !== undefined$1, othIsNull = computed2 === null, othIsReflexive = computed2 === computed2, othIsSymbol = isSymbol2(computed2);
23302
23286
  if (valIsNaN) {
23303
23287
  var setLow = retHighest || othIsReflexive;
23304
23288
  } else if (valIsUndefined) {
@@ -23313,7 +23297,7 @@ var lodash$1 = { exports: {} };
23313
23297
  setLow = retHighest ? computed2 <= value : computed2 < value;
23314
23298
  }
23315
23299
  if (setLow) {
23316
- low2 = mid + 1;
23300
+ low = mid + 1;
23317
23301
  } else {
23318
23302
  high = mid;
23319
23303
  }
@@ -26951,10 +26935,6 @@ var main = function(adapter2) {
26951
26935
  };
26952
26936
  return db2.read();
26953
26937
  };
26954
- var low = /* @__PURE__ */ _mergeNamespaces({
26955
- __proto__: null,
26956
- "default": main
26957
- }, [main]);
26958
26938
  var _stringify = function stringify2(obj) {
26959
26939
  return JSON.stringify(obj, null, 2);
26960
26940
  };
@@ -27039,7 +27019,7 @@ var LocalStorage = function(_Base) {
27039
27019
  }(Base);
27040
27020
  var LocalStorage_1 = LocalStorage;
27041
27021
  const adapter = new LocalStorage_1(`admin-plus-${Setting.appID}`);
27042
- const db$1 = low(adapter);
27022
+ const db$1 = main(adapter);
27043
27023
  db$1.defaults({
27044
27024
  sys: {},
27045
27025
  database: {}
@@ -32212,7 +32192,7 @@ function format$3(dirtyDate, dirtyFormatStr, dirtyOptions) {
32212
32192
  function cleanEscapedString(input) {
32213
32193
  return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
32214
32194
  }
32215
- var FileSaver_min$1 = { exports: {} };
32195
+ var FileSaver_min = { exports: {} };
32216
32196
  (function(module, exports) {
32217
32197
  (function(a, b) {
32218
32198
  b();
@@ -32283,12 +32263,8 @@ var FileSaver_min$1 = { exports: {} };
32283
32263
  });
32284
32264
  f.saveAs = g.saveAs = g, module.exports = g;
32285
32265
  });
32286
- })(FileSaver_min$1);
32287
- var FileSaver_min = FileSaver_min$1.exports;
32288
- var saveAs = /* @__PURE__ */ _mergeNamespaces({
32289
- __proto__: null,
32290
- "default": FileSaver_min
32291
- }, [FileSaver_min$1.exports]);
32266
+ })(FileSaver_min);
32267
+ var saveAs = FileSaver_min.exports;
32292
32268
  var modelApi = {
32293
32269
  add(res2, data2) {
32294
32270
  return service({
@@ -33082,7 +33058,7 @@ var __glob_0_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
33082
33058
  __proto__: null,
33083
33059
  "default": i18n$1
33084
33060
  }, Symbol.toStringTag, { value: "Module" }));
33085
- var screenfull = { exports: {} };
33061
+ var screenfull$1 = { exports: {} };
33086
33062
  /*!
33087
33063
  * screenfull
33088
33064
  * v4.2.1 - 2019-07-27
@@ -33245,7 +33221,8 @@ var screenfull = { exports: {} };
33245
33221
  window.screenfull = screenfull2;
33246
33222
  }
33247
33223
  })();
33248
- })(screenfull);
33224
+ })(screenfull$1);
33225
+ var screenfull = screenfull$1.exports;
33249
33226
  var layout$4 = {
33250
33227
  namespaced: true,
33251
33228
  state: __spreadProps(__spreadValues({}, Setting.layout), {
@@ -33288,9 +33265,9 @@ var layout$4 = {
33288
33265
  actions: {
33289
33266
  listenFullscreen({ commit: commit2 }) {
33290
33267
  return new Promise((resolve2) => {
33291
- if (screenfull.exports.enabled) {
33292
- screenfull.exports.on("change", () => {
33293
- if (!screenfull.exports.isFullscreen) {
33268
+ if (screenfull.enabled) {
33269
+ screenfull.on("change", () => {
33270
+ if (!screenfull.isFullscreen) {
33294
33271
  commit2("setFullscreen", false);
33295
33272
  }
33296
33273
  });
@@ -33300,11 +33277,11 @@ var layout$4 = {
33300
33277
  },
33301
33278
  toggleFullscreen({ commit: commit2 }) {
33302
33279
  return new Promise((resolve2) => {
33303
- if (screenfull.exports.isFullscreen) {
33304
- screenfull.exports.exit();
33280
+ if (screenfull.isFullscreen) {
33281
+ screenfull.exit();
33305
33282
  commit2("setFullscreen", false);
33306
33283
  } else {
33307
- screenfull.exports.request();
33284
+ screenfull.request();
33308
33285
  commit2("setFullscreen", true);
33309
33286
  }
33310
33287
  resolve2();
@@ -34392,7 +34369,7 @@ const router = createRouter({
34392
34369
  let inited = false;
34393
34370
  router.beforeEach(async (to, from, next) => {
34394
34371
  if (Setting.showProgressBar) {
34395
- viewuiplus_min$1.exports.LoadingBar.start();
34372
+ ViewUIPlus.LoadingBar.start();
34396
34373
  }
34397
34374
  if (!inited) {
34398
34375
  let dynamicRoutes = await dynamic.init(router);
@@ -34422,7 +34399,7 @@ router.beforeEach(async (to, from, next) => {
34422
34399
  });
34423
34400
  router.afterEach((to) => {
34424
34401
  if (Setting.showProgressBar)
34425
- viewuiplus_min$1.exports.LoadingBar.finish();
34402
+ ViewUIPlus.LoadingBar.finish();
34426
34403
  if (!("meta" in to) || to.meta && !("tabs" in to.meta) || to.meta && to.meta.tabs) {
34427
34404
  store.dispatch("admin/page/open", to);
34428
34405
  }
@@ -57658,7 +57635,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
57658
57635
  ]);
57659
57636
  }
57660
57637
  var FormSetting = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]);
57661
- var vuedraggable_umd$1 = { exports: {} };
57638
+ var vuedraggable_umd = { exports: {} };
57662
57639
  /**!
57663
57640
  * Sortable 1.14.0
57664
57641
  * @author RubaXa <trash@rubaxa.org>
@@ -63963,12 +63940,8 @@ var require$$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
63963
63940
  }
63964
63941
  })["default"];
63965
63942
  });
63966
- })(vuedraggable_umd$1);
63967
- var vuedraggable_umd = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd$1.exports);
63968
- var draggable = /* @__PURE__ */ _mergeNamespaces({
63969
- __proto__: null,
63970
- "default": vuedraggable_umd
63971
- }, [vuedraggable_umd$1.exports]);
63943
+ })(vuedraggable_umd);
63944
+ var draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports);
63972
63945
  var viewFormDraggable_vue_vue_type_style_index_0_lang = "";
63973
63946
  const _sfc_main$o = {
63974
63947
  mixins: [mixin$1, mixinPage],
@@ -65230,7 +65203,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
65230
65203
  }, 512)) : createCommentVNode("", true)
65231
65204
  ]);
65232
65205
  }
65233
- var FormSettingLayout = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-4d7e7b62"]]);
65206
+ var FormSettingLayout = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-25f245bb"]]);
65234
65207
  const _sfc_main$m = {
65235
65208
  mixins: [mixinPage],
65236
65209
  components: { formSetting: FormSetting, formSettingLayout: FormSettingLayout },
@@ -118049,16 +118022,16 @@ function prepareBoxplotData(rawData, opt) {
118049
118022
  var min3 = ascList[0];
118050
118023
  var max3 = ascList[ascList.length - 1];
118051
118024
  var bound = (boundIQR == null ? 1.5 : boundIQR) * (Q3 - Q1);
118052
- var low2 = useExtreme ? min3 : Math.max(min3, Q1 - bound);
118025
+ var low = useExtreme ? min3 : Math.max(min3, Q1 - bound);
118053
118026
  var high = useExtreme ? max3 : Math.min(max3, Q3 + bound);
118054
118027
  var itemNameFormatter = opt.itemNameFormatter;
118055
118028
  var itemName = isFunction(itemNameFormatter) ? itemNameFormatter({
118056
118029
  value: i2
118057
118030
  }) : isString(itemNameFormatter) ? itemNameFormatter.replace("{value}", i2 + "") : i2 + "";
118058
- boxData.push([itemName, low2, Q1, Q2, Q3, high]);
118031
+ boxData.push([itemName, low, Q1, Q2, Q3, high]);
118059
118032
  for (var j = 0; j < ascList.length; j++) {
118060
118033
  var dataItem = ascList[j];
118061
- if (dataItem < low2 || dataItem > high) {
118034
+ if (dataItem < low || dataItem > high) {
118062
118035
  var outlier = [itemName, dataItem];
118063
118036
  outliers.push(outlier);
118064
118037
  }
@@ -138722,7 +138695,7 @@ const install = function(app) {
138722
138695
  if (install.installed)
138723
138696
  return;
138724
138697
  app.use(plugins$1);
138725
- app.use(viewuiplus_min, {
138698
+ app.use(ViewUIPlus, {
138726
138699
  i18n
138727
138700
  });
138728
138701
  app.mixin(mixinApp);