3h1-ui 2.14.43 → 2.14.45

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.
Files changed (3) hide show
  1. package/es/index.js +1 -296
  2. package/lib/index.js +1 -296
  3. package/package.json +3 -3
package/es/index.js CHANGED
@@ -5,6 +5,7 @@ import { useAttrs as useAttrs$1, useRuleFormItem, useTimeoutFn as useTimeoutFn$2
5
5
  import { zxcvbn } from "@zxcvbn-ts/core";
6
6
  import Iconify from "@purge-icons/generated";
7
7
  import { Tinymce } from "@shy-plugins/tinymce";
8
+ import dayjs from "dayjs";
8
9
  import Sortablejs from "sortablejs";
9
10
  import "xe-utils";
10
11
  import { VxeColgroup, VxeColumn, VxeTable } from "vxe-table";
@@ -7857,302 +7858,6 @@ function useItemLabelWidth(schemaItemRef, propsRef) {
7857
7858
  };
7858
7859
  });
7859
7860
  }
7860
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
7861
- function getDefaultExportFromCjs(x) {
7862
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
7863
- }
7864
- var dayjs_min = { exports: {} };
7865
- (function(module2, exports2) {
7866
- !function(t2, e) {
7867
- module2.exports = e();
7868
- }(commonjsGlobal, function() {
7869
- var t2 = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h2 = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
7870
- var e2 = ["th", "st", "nd", "rd"], n2 = t3 % 100;
7871
- return "[" + t3 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
7872
- } }, m = function(t3, e2, n2) {
7873
- var r2 = String(t3);
7874
- return !r2 || r2.length >= e2 ? t3 : "" + Array(e2 + 1 - r2.length).join(n2) + t3;
7875
- }, v = { s: m, z: function(t3) {
7876
- var e2 = -t3.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
7877
- return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
7878
- }, m: function t3(e2, n2) {
7879
- if (e2.date() < n2.date())
7880
- return -t3(n2, e2);
7881
- var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
7882
- return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
7883
- }, a: function(t3) {
7884
- return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
7885
- }, p: function(t3) {
7886
- return { M: c, y: h2, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
7887
- }, u: function(t3) {
7888
- return void 0 === t3;
7889
- } }, g = "en", D = {};
7890
- D[g] = M;
7891
- var p = "$isDayjsObject", S = function(t3) {
7892
- return t3 instanceof _ || !(!t3 || !t3[p]);
7893
- }, w = function t3(e2, n2, r2) {
7894
- var i2;
7895
- if (!e2)
7896
- return g;
7897
- if ("string" == typeof e2) {
7898
- var s2 = e2.toLowerCase();
7899
- D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
7900
- var u2 = e2.split("-");
7901
- if (!i2 && u2.length > 1)
7902
- return t3(u2[0]);
7903
- } else {
7904
- var a2 = e2.name;
7905
- D[a2] = e2, i2 = a2;
7906
- }
7907
- return !r2 && i2 && (g = i2), i2 || !r2 && g;
7908
- }, O = function(t3, e2) {
7909
- if (S(t3))
7910
- return t3.clone();
7911
- var n2 = "object" == typeof e2 ? e2 : {};
7912
- return n2.date = t3, n2.args = arguments, new _(n2);
7913
- }, b = v;
7914
- b.l = w, b.i = S, b.w = function(t3, e2) {
7915
- return O(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
7916
- };
7917
- var _ = function() {
7918
- function M2(t3) {
7919
- this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
7920
- }
7921
- var m2 = M2.prototype;
7922
- return m2.parse = function(t3) {
7923
- this.$d = function(t4) {
7924
- var e2 = t4.date, n2 = t4.utc;
7925
- if (null === e2)
7926
- return /* @__PURE__ */ new Date(NaN);
7927
- if (b.u(e2))
7928
- return /* @__PURE__ */ new Date();
7929
- if (e2 instanceof Date)
7930
- return new Date(e2);
7931
- if ("string" == typeof e2 && !/Z$/i.test(e2)) {
7932
- var r2 = e2.match($);
7933
- if (r2) {
7934
- var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
7935
- return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
7936
- }
7937
- }
7938
- return new Date(e2);
7939
- }(t3), this.init();
7940
- }, m2.init = function() {
7941
- var t3 = this.$d;
7942
- this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
7943
- }, m2.$utils = function() {
7944
- return b;
7945
- }, m2.isValid = function() {
7946
- return !(this.$d.toString() === l);
7947
- }, m2.isSame = function(t3, e2) {
7948
- var n2 = O(t3);
7949
- return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
7950
- }, m2.isAfter = function(t3, e2) {
7951
- return O(t3) < this.startOf(e2);
7952
- }, m2.isBefore = function(t3, e2) {
7953
- return this.endOf(e2) < O(t3);
7954
- }, m2.$g = function(t3, e2, n2) {
7955
- return b.u(t3) ? this[e2] : this.set(n2, t3);
7956
- }, m2.unix = function() {
7957
- return Math.floor(this.valueOf() / 1e3);
7958
- }, m2.valueOf = function() {
7959
- return this.$d.getTime();
7960
- }, m2.startOf = function(t3, e2) {
7961
- var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t3), l2 = function(t4, e3) {
7962
- var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t4) : new Date(n2.$y, e3, t4), n2);
7963
- return r2 ? i2 : i2.endOf(a);
7964
- }, $2 = function(t4, e3) {
7965
- return b.w(n2.toDate()[t4].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
7966
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
7967
- switch (f2) {
7968
- case h2:
7969
- return r2 ? l2(1, 0) : l2(31, 11);
7970
- case c:
7971
- return r2 ? l2(1, M3) : l2(0, M3 + 1);
7972
- case o:
7973
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
7974
- return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
7975
- case a:
7976
- case d:
7977
- return $2(v2 + "Hours", 0);
7978
- case u:
7979
- return $2(v2 + "Minutes", 1);
7980
- case s:
7981
- return $2(v2 + "Seconds", 2);
7982
- case i:
7983
- return $2(v2 + "Milliseconds", 3);
7984
- default:
7985
- return this.clone();
7986
- }
7987
- }, m2.endOf = function(t3) {
7988
- return this.startOf(t3, false);
7989
- }, m2.$set = function(t3, e2) {
7990
- var n2, o2 = b.p(t3), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h2] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
7991
- if (o2 === c || o2 === h2) {
7992
- var y2 = this.clone().set(d, 1);
7993
- y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
7994
- } else
7995
- l2 && this.$d[l2]($2);
7996
- return this.init(), this;
7997
- }, m2.set = function(t3, e2) {
7998
- return this.clone().$set(t3, e2);
7999
- }, m2.get = function(t3) {
8000
- return this[b.p(t3)]();
8001
- }, m2.add = function(r2, f2) {
8002
- var d2, l2 = this;
8003
- r2 = Number(r2);
8004
- var $2 = b.p(f2), y2 = function(t3) {
8005
- var e2 = O(l2);
8006
- return b.w(e2.date(e2.date() + Math.round(t3 * r2)), l2);
8007
- };
8008
- if ($2 === c)
8009
- return this.set(c, this.$M + r2);
8010
- if ($2 === h2)
8011
- return this.set(h2, this.$y + r2);
8012
- if ($2 === a)
8013
- return y2(1);
8014
- if ($2 === o)
8015
- return y2(7);
8016
- var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
8017
- return b.w(m3, this);
8018
- }, m2.subtract = function(t3, e2) {
8019
- return this.add(-1 * t3, e2);
8020
- }, m2.format = function(t3) {
8021
- var e2 = this, n2 = this.$locale();
8022
- if (!this.isValid())
8023
- return n2.invalidDate || l;
8024
- var r2 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h3 = function(t4, n3, i3, s3) {
8025
- return t4 && (t4[n3] || t4(e2, r2)) || i3[n3].slice(0, s3);
8026
- }, d2 = function(t4) {
8027
- return b.s(s2 % 12 || 12, t4, "0");
8028
- }, $2 = f2 || function(t4, e3, n3) {
8029
- var r3 = t4 < 12 ? "AM" : "PM";
8030
- return n3 ? r3.toLowerCase() : r3;
8031
- };
8032
- return r2.replace(y, function(t4, r3) {
8033
- return r3 || function(t5) {
8034
- switch (t5) {
8035
- case "YY":
8036
- return String(e2.$y).slice(-2);
8037
- case "YYYY":
8038
- return b.s(e2.$y, 4, "0");
8039
- case "M":
8040
- return a2 + 1;
8041
- case "MM":
8042
- return b.s(a2 + 1, 2, "0");
8043
- case "MMM":
8044
- return h3(n2.monthsShort, a2, c2, 3);
8045
- case "MMMM":
8046
- return h3(c2, a2);
8047
- case "D":
8048
- return e2.$D;
8049
- case "DD":
8050
- return b.s(e2.$D, 2, "0");
8051
- case "d":
8052
- return String(e2.$W);
8053
- case "dd":
8054
- return h3(n2.weekdaysMin, e2.$W, o2, 2);
8055
- case "ddd":
8056
- return h3(n2.weekdaysShort, e2.$W, o2, 3);
8057
- case "dddd":
8058
- return o2[e2.$W];
8059
- case "H":
8060
- return String(s2);
8061
- case "HH":
8062
- return b.s(s2, 2, "0");
8063
- case "h":
8064
- return d2(1);
8065
- case "hh":
8066
- return d2(2);
8067
- case "a":
8068
- return $2(s2, u2, true);
8069
- case "A":
8070
- return $2(s2, u2, false);
8071
- case "m":
8072
- return String(u2);
8073
- case "mm":
8074
- return b.s(u2, 2, "0");
8075
- case "s":
8076
- return String(e2.$s);
8077
- case "ss":
8078
- return b.s(e2.$s, 2, "0");
8079
- case "SSS":
8080
- return b.s(e2.$ms, 3, "0");
8081
- case "Z":
8082
- return i2;
8083
- }
8084
- return null;
8085
- }(t4) || i2.replace(":", "");
8086
- });
8087
- }, m2.utcOffset = function() {
8088
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
8089
- }, m2.diff = function(r2, d2, l2) {
8090
- var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
8091
- return b.m(y2, m3);
8092
- };
8093
- switch (M3) {
8094
- case h2:
8095
- $2 = D2() / 12;
8096
- break;
8097
- case c:
8098
- $2 = D2();
8099
- break;
8100
- case f:
8101
- $2 = D2() / 3;
8102
- break;
8103
- case o:
8104
- $2 = (g2 - v2) / 6048e5;
8105
- break;
8106
- case a:
8107
- $2 = (g2 - v2) / 864e5;
8108
- break;
8109
- case u:
8110
- $2 = g2 / n;
8111
- break;
8112
- case s:
8113
- $2 = g2 / e;
8114
- break;
8115
- case i:
8116
- $2 = g2 / t2;
8117
- break;
8118
- default:
8119
- $2 = g2;
8120
- }
8121
- return l2 ? $2 : b.a($2);
8122
- }, m2.daysInMonth = function() {
8123
- return this.endOf(c).$D;
8124
- }, m2.$locale = function() {
8125
- return D[this.$L];
8126
- }, m2.locale = function(t3, e2) {
8127
- if (!t3)
8128
- return this.$L;
8129
- var n2 = this.clone(), r2 = w(t3, e2, true);
8130
- return r2 && (n2.$L = r2), n2;
8131
- }, m2.clone = function() {
8132
- return b.w(this.$d, this);
8133
- }, m2.toDate = function() {
8134
- return new Date(this.valueOf());
8135
- }, m2.toJSON = function() {
8136
- return this.isValid() ? this.toISOString() : null;
8137
- }, m2.toISOString = function() {
8138
- return this.$d.toISOString();
8139
- }, m2.toString = function() {
8140
- return this.$d.toUTCString();
8141
- }, M2;
8142
- }(), k = _.prototype;
8143
- return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h2], ["$D", d]].forEach(function(t3) {
8144
- k[t3[1]] = function(e2) {
8145
- return this.$g(e2, t3[0], t3[1]);
8146
- };
8147
- }), O.extend = function(t3, e2) {
8148
- return t3.$i || (t3(e2, _, O), t3.$i = true), O;
8149
- }, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
8150
- return O(1e3 * t3);
8151
- }, O.en = D[g], O.Ls = D, O.p = {}, O;
8152
- });
8153
- })(dayjs_min);
8154
- var dayjs_minExports = dayjs_min.exports;
8155
- const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
8156
7861
  function _isSlot$3(s) {
8157
7862
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
8158
7863
  }
package/lib/index.js CHANGED
@@ -7,6 +7,7 @@ const use = require("@shy-plugins/use");
7
7
  const core = require("@zxcvbn-ts/core");
8
8
  const Iconify = require("@purge-icons/generated");
9
9
  const tinymce = require("@shy-plugins/tinymce");
10
+ const dayjs = require("dayjs");
10
11
  const Sortablejs = require("sortablejs");
11
12
  require("xe-utils");
12
13
  const vxeTable = require("vxe-table");
@@ -7859,302 +7860,6 @@ function useItemLabelWidth(schemaItemRef, propsRef) {
7859
7860
  };
7860
7861
  });
7861
7862
  }
7862
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
7863
- function getDefaultExportFromCjs(x) {
7864
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
7865
- }
7866
- var dayjs_min = { exports: {} };
7867
- (function(module2, exports2) {
7868
- !function(t2, e) {
7869
- module2.exports = e();
7870
- }(commonjsGlobal, function() {
7871
- var t2 = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
7872
- var e2 = ["th", "st", "nd", "rd"], n2 = t3 % 100;
7873
- return "[" + t3 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
7874
- } }, m = function(t3, e2, n2) {
7875
- var r2 = String(t3);
7876
- return !r2 || r2.length >= e2 ? t3 : "" + Array(e2 + 1 - r2.length).join(n2) + t3;
7877
- }, v = { s: m, z: function(t3) {
7878
- var e2 = -t3.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
7879
- return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
7880
- }, m: function t3(e2, n2) {
7881
- if (e2.date() < n2.date())
7882
- return -t3(n2, e2);
7883
- var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
7884
- return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
7885
- }, a: function(t3) {
7886
- return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
7887
- }, p: function(t3) {
7888
- return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
7889
- }, u: function(t3) {
7890
- return void 0 === t3;
7891
- } }, g = "en", D = {};
7892
- D[g] = M;
7893
- var p = "$isDayjsObject", S = function(t3) {
7894
- return t3 instanceof _ || !(!t3 || !t3[p]);
7895
- }, w = function t3(e2, n2, r2) {
7896
- var i2;
7897
- if (!e2)
7898
- return g;
7899
- if ("string" == typeof e2) {
7900
- var s2 = e2.toLowerCase();
7901
- D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
7902
- var u2 = e2.split("-");
7903
- if (!i2 && u2.length > 1)
7904
- return t3(u2[0]);
7905
- } else {
7906
- var a2 = e2.name;
7907
- D[a2] = e2, i2 = a2;
7908
- }
7909
- return !r2 && i2 && (g = i2), i2 || !r2 && g;
7910
- }, O = function(t3, e2) {
7911
- if (S(t3))
7912
- return t3.clone();
7913
- var n2 = "object" == typeof e2 ? e2 : {};
7914
- return n2.date = t3, n2.args = arguments, new _(n2);
7915
- }, b = v;
7916
- b.l = w, b.i = S, b.w = function(t3, e2) {
7917
- return O(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
7918
- };
7919
- var _ = function() {
7920
- function M2(t3) {
7921
- this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
7922
- }
7923
- var m2 = M2.prototype;
7924
- return m2.parse = function(t3) {
7925
- this.$d = function(t4) {
7926
- var e2 = t4.date, n2 = t4.utc;
7927
- if (null === e2)
7928
- return /* @__PURE__ */ new Date(NaN);
7929
- if (b.u(e2))
7930
- return /* @__PURE__ */ new Date();
7931
- if (e2 instanceof Date)
7932
- return new Date(e2);
7933
- if ("string" == typeof e2 && !/Z$/i.test(e2)) {
7934
- var r2 = e2.match($);
7935
- if (r2) {
7936
- var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
7937
- return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
7938
- }
7939
- }
7940
- return new Date(e2);
7941
- }(t3), this.init();
7942
- }, m2.init = function() {
7943
- var t3 = this.$d;
7944
- this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
7945
- }, m2.$utils = function() {
7946
- return b;
7947
- }, m2.isValid = function() {
7948
- return !(this.$d.toString() === l);
7949
- }, m2.isSame = function(t3, e2) {
7950
- var n2 = O(t3);
7951
- return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
7952
- }, m2.isAfter = function(t3, e2) {
7953
- return O(t3) < this.startOf(e2);
7954
- }, m2.isBefore = function(t3, e2) {
7955
- return this.endOf(e2) < O(t3);
7956
- }, m2.$g = function(t3, e2, n2) {
7957
- return b.u(t3) ? this[e2] : this.set(n2, t3);
7958
- }, m2.unix = function() {
7959
- return Math.floor(this.valueOf() / 1e3);
7960
- }, m2.valueOf = function() {
7961
- return this.$d.getTime();
7962
- }, m2.startOf = function(t3, e2) {
7963
- var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t3), l2 = function(t4, e3) {
7964
- var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t4) : new Date(n2.$y, e3, t4), n2);
7965
- return r2 ? i2 : i2.endOf(a);
7966
- }, $2 = function(t4, e3) {
7967
- return b.w(n2.toDate()[t4].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
7968
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
7969
- switch (f2) {
7970
- case h:
7971
- return r2 ? l2(1, 0) : l2(31, 11);
7972
- case c:
7973
- return r2 ? l2(1, M3) : l2(0, M3 + 1);
7974
- case o:
7975
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
7976
- return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
7977
- case a:
7978
- case d:
7979
- return $2(v2 + "Hours", 0);
7980
- case u:
7981
- return $2(v2 + "Minutes", 1);
7982
- case s:
7983
- return $2(v2 + "Seconds", 2);
7984
- case i:
7985
- return $2(v2 + "Milliseconds", 3);
7986
- default:
7987
- return this.clone();
7988
- }
7989
- }, m2.endOf = function(t3) {
7990
- return this.startOf(t3, false);
7991
- }, m2.$set = function(t3, e2) {
7992
- var n2, o2 = b.p(t3), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
7993
- if (o2 === c || o2 === h) {
7994
- var y2 = this.clone().set(d, 1);
7995
- y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
7996
- } else
7997
- l2 && this.$d[l2]($2);
7998
- return this.init(), this;
7999
- }, m2.set = function(t3, e2) {
8000
- return this.clone().$set(t3, e2);
8001
- }, m2.get = function(t3) {
8002
- return this[b.p(t3)]();
8003
- }, m2.add = function(r2, f2) {
8004
- var d2, l2 = this;
8005
- r2 = Number(r2);
8006
- var $2 = b.p(f2), y2 = function(t3) {
8007
- var e2 = O(l2);
8008
- return b.w(e2.date(e2.date() + Math.round(t3 * r2)), l2);
8009
- };
8010
- if ($2 === c)
8011
- return this.set(c, this.$M + r2);
8012
- if ($2 === h)
8013
- return this.set(h, this.$y + r2);
8014
- if ($2 === a)
8015
- return y2(1);
8016
- if ($2 === o)
8017
- return y2(7);
8018
- var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
8019
- return b.w(m3, this);
8020
- }, m2.subtract = function(t3, e2) {
8021
- return this.add(-1 * t3, e2);
8022
- }, m2.format = function(t3) {
8023
- var e2 = this, n2 = this.$locale();
8024
- if (!this.isValid())
8025
- return n2.invalidDate || l;
8026
- var r2 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t4, n3, i3, s3) {
8027
- return t4 && (t4[n3] || t4(e2, r2)) || i3[n3].slice(0, s3);
8028
- }, d2 = function(t4) {
8029
- return b.s(s2 % 12 || 12, t4, "0");
8030
- }, $2 = f2 || function(t4, e3, n3) {
8031
- var r3 = t4 < 12 ? "AM" : "PM";
8032
- return n3 ? r3.toLowerCase() : r3;
8033
- };
8034
- return r2.replace(y, function(t4, r3) {
8035
- return r3 || function(t5) {
8036
- switch (t5) {
8037
- case "YY":
8038
- return String(e2.$y).slice(-2);
8039
- case "YYYY":
8040
- return b.s(e2.$y, 4, "0");
8041
- case "M":
8042
- return a2 + 1;
8043
- case "MM":
8044
- return b.s(a2 + 1, 2, "0");
8045
- case "MMM":
8046
- return h2(n2.monthsShort, a2, c2, 3);
8047
- case "MMMM":
8048
- return h2(c2, a2);
8049
- case "D":
8050
- return e2.$D;
8051
- case "DD":
8052
- return b.s(e2.$D, 2, "0");
8053
- case "d":
8054
- return String(e2.$W);
8055
- case "dd":
8056
- return h2(n2.weekdaysMin, e2.$W, o2, 2);
8057
- case "ddd":
8058
- return h2(n2.weekdaysShort, e2.$W, o2, 3);
8059
- case "dddd":
8060
- return o2[e2.$W];
8061
- case "H":
8062
- return String(s2);
8063
- case "HH":
8064
- return b.s(s2, 2, "0");
8065
- case "h":
8066
- return d2(1);
8067
- case "hh":
8068
- return d2(2);
8069
- case "a":
8070
- return $2(s2, u2, true);
8071
- case "A":
8072
- return $2(s2, u2, false);
8073
- case "m":
8074
- return String(u2);
8075
- case "mm":
8076
- return b.s(u2, 2, "0");
8077
- case "s":
8078
- return String(e2.$s);
8079
- case "ss":
8080
- return b.s(e2.$s, 2, "0");
8081
- case "SSS":
8082
- return b.s(e2.$ms, 3, "0");
8083
- case "Z":
8084
- return i2;
8085
- }
8086
- return null;
8087
- }(t4) || i2.replace(":", "");
8088
- });
8089
- }, m2.utcOffset = function() {
8090
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
8091
- }, m2.diff = function(r2, d2, l2) {
8092
- var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
8093
- return b.m(y2, m3);
8094
- };
8095
- switch (M3) {
8096
- case h:
8097
- $2 = D2() / 12;
8098
- break;
8099
- case c:
8100
- $2 = D2();
8101
- break;
8102
- case f:
8103
- $2 = D2() / 3;
8104
- break;
8105
- case o:
8106
- $2 = (g2 - v2) / 6048e5;
8107
- break;
8108
- case a:
8109
- $2 = (g2 - v2) / 864e5;
8110
- break;
8111
- case u:
8112
- $2 = g2 / n;
8113
- break;
8114
- case s:
8115
- $2 = g2 / e;
8116
- break;
8117
- case i:
8118
- $2 = g2 / t2;
8119
- break;
8120
- default:
8121
- $2 = g2;
8122
- }
8123
- return l2 ? $2 : b.a($2);
8124
- }, m2.daysInMonth = function() {
8125
- return this.endOf(c).$D;
8126
- }, m2.$locale = function() {
8127
- return D[this.$L];
8128
- }, m2.locale = function(t3, e2) {
8129
- if (!t3)
8130
- return this.$L;
8131
- var n2 = this.clone(), r2 = w(t3, e2, true);
8132
- return r2 && (n2.$L = r2), n2;
8133
- }, m2.clone = function() {
8134
- return b.w(this.$d, this);
8135
- }, m2.toDate = function() {
8136
- return new Date(this.valueOf());
8137
- }, m2.toJSON = function() {
8138
- return this.isValid() ? this.toISOString() : null;
8139
- }, m2.toISOString = function() {
8140
- return this.$d.toISOString();
8141
- }, m2.toString = function() {
8142
- return this.$d.toUTCString();
8143
- }, M2;
8144
- }(), k = _.prototype;
8145
- return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t3) {
8146
- k[t3[1]] = function(e2) {
8147
- return this.$g(e2, t3[0], t3[1]);
8148
- };
8149
- }), O.extend = function(t3, e2) {
8150
- return t3.$i || (t3(e2, _, O), t3.$i = true), O;
8151
- }, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
8152
- return O(1e3 * t3);
8153
- }, O.en = D[g], O.Ls = D, O.p = {}, O;
8154
- });
8155
- })(dayjs_min);
8156
- var dayjs_minExports = dayjs_min.exports;
8157
- const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
8158
7863
  function _isSlot$3(s) {
8159
7864
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
8160
7865
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.14.43",
3
+ "version": "2.14.45",
4
4
  "description": "",
5
5
  "module": "es/index.js",
6
6
  "main": "lib/index.js",
@@ -29,9 +29,9 @@
29
29
  "vue-json-pretty": "^2.2.3",
30
30
  "vxe-table": "^4.3.6",
31
31
  "xe-utils": "^3.5.7",
32
- "@shy-plugins/use": "1.0.6",
32
+ "@shy-plugins/tinymce": "^1.0.6",
33
33
  "@shy-plugins/utils": "1.1.1",
34
- "@shy-plugins/tinymce": "^1.0.5"
34
+ "@shy-plugins/use": "1.0.6"
35
35
  },
36
36
  "types": "es/ui/index.d.ts",
37
37
  "devDependencies": {