bi-components-library 1.3.2-next.2 → 1.3.2-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2998,7 +2998,7 @@ const af = ({
2998
2998
  const i = t.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "", s = t.current.querySelectorAll('[data-type="variable"]'), u = t.current.querySelectorAll('[data-type="upload"]');
2999
2999
  let o = !1;
3000
3000
  s.forEach((d) => {
3001
- (d.textContent?.replace(/[\u200B\n]/g, "").trim() || "") && (o = !0);
3001
+ d.textContent?.replace(/[\u200B\n]/g, "").trim() && (o = !0);
3002
3002
  }), u.forEach((d) => {
3003
3003
  d.querySelector(".upload-inner-wrapper.has-file") && (o = !0);
3004
3004
  });
@@ -5502,14 +5502,14 @@ function Tf(e) {
5502
5502
  return typeof window < "u" && typeof window.HTMLElement < "u" ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
5503
5503
  }
5504
5504
  function ot(...e) {
5505
- const t = Object(e[0]), a = ["__proto__", "constructor", "prototype"];
5506
- for (let l = 1; l < e.length; l += 1) {
5507
- const n = e[l];
5508
- if (n != null && !Tf(n)) {
5509
- const r = Object.keys(Object(n)).filter((i) => a.indexOf(i) < 0);
5510
- for (let i = 0, s = r.length; i < s; i += 1) {
5511
- const u = r[i], o = Object.getOwnPropertyDescriptor(n, u);
5512
- o !== void 0 && o.enumerable && (xl(t[u]) && xl(n[u]) ? n[u].__swiper__ ? t[u] = n[u] : ot(t[u], n[u]) : !xl(t[u]) && xl(n[u]) ? (t[u] = {}, n[u].__swiper__ ? t[u] = n[u] : ot(t[u], n[u])) : t[u] = n[u]);
5505
+ const t = Object(e[0]);
5506
+ for (let a = 1; a < e.length; a += 1) {
5507
+ const l = e[a];
5508
+ if (l != null && !Tf(l)) {
5509
+ const n = Object.keys(Object(l)).filter((r) => r !== "__proto__" && r !== "constructor" && r !== "prototype");
5510
+ for (let r = 0, i = n.length; r < i; r += 1) {
5511
+ const s = n[r], u = Object.getOwnPropertyDescriptor(l, s);
5512
+ u !== void 0 && u.enumerable && (xl(t[s]) && xl(l[s]) ? l[s].__swiper__ ? t[s] = l[s] : ot(t[s], l[s]) : !xl(t[s]) && xl(l[s]) ? (t[s] = {}, l[s].__swiper__ ? t[s] = l[s] : ot(t[s], l[s])) : t[s] = l[s]);
5513
5513
  }
5514
5514
  }
5515
5515
  }
@@ -5926,16 +5926,14 @@ function Df() {
5926
5926
  }
5927
5927
  if (a.centerInsufficientSlides) {
5928
5928
  let I = 0;
5929
- f.forEach((R) => {
5930
- I += R + (b || 0);
5931
- }), I -= b;
5932
- const O = (y || 0) + (E || 0);
5933
- if (I + O < m) {
5934
- const R = (m - I - O) / 2;
5935
- d.forEach((P, N) => {
5936
- d[N] = P - R;
5937
- }), h.forEach((P, N) => {
5938
- h[N] = P + R;
5929
+ if (f.forEach((O) => {
5930
+ I += O + (b || 0);
5931
+ }), I -= b, I < m) {
5932
+ const O = (m - I) / 2;
5933
+ d.forEach((R, P) => {
5934
+ d[P] = R - O;
5935
+ }), h.forEach((R, P) => {
5936
+ h[P] = R + O;
5939
5937
  });
5940
5938
  }
5941
5939
  }
@@ -6982,7 +6980,12 @@ function Ai() {
6982
6980
  } = e, i = e.virtual && e.params.virtual.enabled;
6983
6981
  e.allowSlideNext = !0, e.allowSlidePrev = !0, e.updateSize(), e.updateSlides(), e.updateSlidesClasses();
6984
6982
  const s = i && t.loop;
6985
- (t.slidesPerView === "auto" || t.slidesPerView > 1) && e.isEnd && !e.isBeginning && !e.params.centeredSlides && !s ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.params.loop && !i ? e.slideToLoop(e.realIndex, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0), e.autoplay && e.autoplay.running && e.autoplay.paused && (clearTimeout(e.autoplay.resizeTimeout), e.autoplay.resizeTimeout = setTimeout(() => {
6983
+ if ((t.slidesPerView === "auto" || t.slidesPerView > 1) && e.isEnd && !e.isBeginning && !e.params.centeredSlides && !s) {
6984
+ const u = i ? e.virtual.slides : e.slides;
6985
+ e.slideTo(u.length - 1, 0, !1, !0);
6986
+ } else
6987
+ e.params.loop && !i ? e.slideToLoop(e.realIndex, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0);
6988
+ e.autoplay && e.autoplay.running && e.autoplay.paused && (clearTimeout(e.autoplay.resizeTimeout), e.autoplay.resizeTimeout = setTimeout(() => {
6986
6989
  e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.resume();
6987
6990
  }, 500)), e.allowSlidePrev = n, e.allowSlideNext = l, e.params.watchOverflow && r !== e.snapGrid && e.checkOverflow();
6988
6991
  }
@@ -7352,7 +7355,9 @@ let Cr = class Nt {
7352
7355
  const r = this;
7353
7356
  r.__swiper__ = !0, r.support = ru(), r.device = iu({
7354
7357
  userAgent: l.userAgent
7355
- }), r.browser = su(), r.eventsListeners = {}, r.eventsAnyListeners = [], r.modules = [...r.__modules__], l.modules && Array.isArray(l.modules) && r.modules.push(...l.modules);
7358
+ }), r.browser = su(), r.eventsListeners = {}, r.eventsAnyListeners = [], r.modules = [...r.__modules__], l.modules && Array.isArray(l.modules) && l.modules.forEach((u) => {
7359
+ typeof u == "function" && r.modules.indexOf(u) < 0 && r.modules.push(u);
7360
+ });
7356
7361
  const i = {};
7357
7362
  r.modules.forEach((u) => {
7358
7363
  u({
@@ -12512,7 +12517,7 @@ function Im(e, t, a) {
12512
12517
  }
12513
12518
  const Yu = {}.hasOwnProperty;
12514
12519
  function Lm(e, t, a) {
12515
- return typeof t != "string" && (a = t, t = void 0), Om(a)(wm(Sm(a).document().write(_m()(e, t, !0))));
12520
+ return t && typeof t == "object" && (a = t, t = void 0), Om(a)(wm(Sm(a).document().write(_m()(e, t, !0))));
12516
12521
  }
12517
12522
  function Om(e) {
12518
12523
  const t = {
@@ -13704,7 +13709,7 @@ const Zu = (
13704
13709
  * @param {Test} [test]
13705
13710
  * @returns {Check}
13706
13711
  */
13707
- function(e) {
13712
+ (function(e) {
13708
13713
  if (e == null)
13709
13714
  return v0;
13710
13715
  if (typeof e == "function")
@@ -13721,7 +13726,7 @@ const Zu = (
13721
13726
  if (typeof e == "string")
13722
13727
  return m0(e);
13723
13728
  throw new Error("Expected function, string, or object as test");
13724
- }
13729
+ })
13725
13730
  );
13726
13731
  function h0(e) {
13727
13732
  const t = [];
@@ -14617,7 +14622,7 @@ const V0 = (
14617
14622
  * @param {string | symbol} property
14618
14623
  * @returns {(...parameters: Array<unknown>) => unknown}
14619
14624
  */
14620
- function(e) {
14625
+ (function(e) {
14621
14626
  const l = (
14622
14627
  /** @type {Record<string | symbol, Function>} */
14623
14628
  // Prototypes do exist.
@@ -14627,7 +14632,7 @@ const V0 = (
14627
14632
  return n.apply(r, arguments);
14628
14633
  };
14629
14634
  return Object.setPrototypeOf(r, l), r;
14630
- }
14635
+ })
14631
14636
  ), G0 = {}.hasOwnProperty;
14632
14637
  class Mr extends V0 {
14633
14638
  /**
@@ -30047,7 +30052,7 @@ function ET(e, t, a, l) {
30047
30052
  a(null);
30048
30053
  return;
30049
30054
  }
30050
- !!o.closest?.(".variable-info-icon") || a(null);
30055
+ o.closest?.(".variable-info-icon") || a(null);
30051
30056
  }
30052
30057
  };
30053
30058
  return n.addEventListener("mouseover", r, !0), n.addEventListener("mouseout", i, !0), () => {
@@ -30169,10 +30174,10 @@ function xT(e, t) {
30169
30174
  }
30170
30175
  var Dl = { exports: {} }, CT = Dl.exports, Vs;
30171
30176
  function Jo() {
30172
- return Vs || (Vs = 1, function(e, t) {
30177
+ return Vs || (Vs = 1, (function(e, t) {
30173
30178
  (function(a, l) {
30174
30179
  e.exports = l();
30175
- })(CT, function() {
30180
+ })(CT, (function() {
30176
30181
  var a = 1e3, l = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", o = "day", c = "week", d = "month", h = "quarter", f = "year", y = "date", E = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|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(N) {
30177
30182
  var x = ["th", "st", "nd", "rd"], D = N % 100;
30178
30183
  return "[" + N + (x[(D - 20) % 10] || x[D] || x[0]) + "]";
@@ -30217,13 +30222,13 @@ function Jo() {
30217
30222
  O.l = A, O.i = w, O.w = function(N, x) {
30218
30223
  return I(N, { locale: x.$L, utc: x.$u, x: x.$x, $offset: x.$offset });
30219
30224
  };
30220
- var R = function() {
30225
+ var R = (function() {
30221
30226
  function N(D) {
30222
30227
  this.$L = A(D.locale, null, !0), this.parse(D), this.$x = this.$x || D.x || {}, this[k] = !0;
30223
30228
  }
30224
30229
  var x = N.prototype;
30225
30230
  return x.parse = function(D) {
30226
- this.$d = function(U) {
30231
+ this.$d = (function(U) {
30227
30232
  var H = U.date, q = U.utc;
30228
30233
  if (H === null) return /* @__PURE__ */ new Date(NaN);
30229
30234
  if (O.u(H)) return /* @__PURE__ */ new Date();
@@ -30236,7 +30241,7 @@ function Jo() {
30236
30241
  }
30237
30242
  }
30238
30243
  return new Date(H);
30239
- }(D), this.init();
30244
+ })(D), this.init();
30240
30245
  }, x.init = function() {
30241
30246
  var D = this.$d;
30242
30247
  this.$y = D.getFullYear(), this.$M = D.getMonth(), this.$D = D.getDate(), this.$W = D.getDay(), this.$H = D.getHours(), this.$m = D.getMinutes(), this.$s = D.getSeconds(), this.$ms = D.getMilliseconds();
@@ -30323,8 +30328,8 @@ function Jo() {
30323
30328
  var Le = he < 12 ? "AM" : "PM";
30324
30329
  return Be ? Le.toLowerCase() : Le;
30325
30330
  };
30326
- return q.replace(g, function(he, ye) {
30327
- return ye || function(Be) {
30331
+ return q.replace(g, (function(he, ye) {
30332
+ return ye || (function(Be) {
30328
30333
  switch (Be) {
30329
30334
  case "YY":
30330
30335
  return String(U.$y).slice(-2);
@@ -30376,8 +30381,8 @@ function Jo() {
30376
30381
  return _;
30377
30382
  }
30378
30383
  return null;
30379
- }(he) || _.replace(":", "");
30380
- });
30384
+ })(he) || _.replace(":", "");
30385
+ }));
30381
30386
  }, x.utcOffset = function() {
30382
30387
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
30383
30388
  }, x.diff = function(D, U, H) {
@@ -30432,27 +30437,27 @@ function Jo() {
30432
30437
  }, x.toString = function() {
30433
30438
  return this.$d.toUTCString();
30434
30439
  }, N;
30435
- }(), P = R.prototype;
30436
- return I.prototype = P, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", o], ["$M", d], ["$y", f], ["$D", y]].forEach(function(N) {
30440
+ })(), P = R.prototype;
30441
+ return I.prototype = P, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", o], ["$M", d], ["$y", f], ["$D", y]].forEach((function(N) {
30437
30442
  P[N[1]] = function(x) {
30438
30443
  return this.$g(x, N[0], N[1]);
30439
30444
  };
30440
- }), I.extend = function(N, x) {
30445
+ })), I.extend = function(N, x) {
30441
30446
  return N.$i || (N(x, R, I), N.$i = !0), I;
30442
30447
  }, I.locale = A, I.isDayjs = w, I.unix = function(N) {
30443
30448
  return I(1e3 * N);
30444
30449
  }, I.en = S[C], I.Ls = S, I.p = {}, I;
30445
- });
30446
- }(Dl)), Dl.exports;
30450
+ }));
30451
+ })(Dl)), Dl.exports;
30447
30452
  }
30448
30453
  var AT = Jo();
30449
30454
  const Pl = /* @__PURE__ */ Sr(AT);
30450
30455
  var Ml = { exports: {} }, ST = Ml.exports, Gs;
30451
30456
  function wT() {
30452
- return Gs || (Gs = 1, function(e, t) {
30457
+ return Gs || (Gs = 1, (function(e, t) {
30453
30458
  (function(a, l) {
30454
30459
  e.exports = l(Jo());
30455
- })(ST, function(a) {
30460
+ })(ST, (function(a) {
30456
30461
  function l(i) {
30457
30462
  return i && typeof i == "object" && "default" in i ? i : { default: i };
30458
30463
  }
@@ -30463,10 +30468,16 @@ function wT() {
30463
30468
  return u < 600 ? "凌晨" : u < 900 ? "早上" : u < 1100 ? "上午" : u < 1300 ? "中午" : u < 1800 ? "下午" : "晚上";
30464
30469
  } };
30465
30470
  return n.default.locale(r, null, !0), r;
30466
- });
30467
- }(Ml)), Ml.exports;
30471
+ }));
30472
+ })(Ml)), Ml.exports;
30468
30473
  }
30469
30474
  wT();
30475
+ var _T = {
30476
+ yearFormat: "YYYY",
30477
+ dayFormat: "D",
30478
+ cellMeridiemFormat: "A",
30479
+ monthBeforeYear: !0
30480
+ };
30470
30481
  function ul(e) {
30471
30482
  "@babel/helpers - typeof";
30472
30483
  return ul = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -30475,28 +30486,6 @@ function ul(e) {
30475
30486
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
30476
30487
  }, ul(e);
30477
30488
  }
30478
- function _T(e, t) {
30479
- if (ul(e) != "object" || !e) return e;
30480
- var a = e[Symbol.toPrimitive];
30481
- if (a !== void 0) {
30482
- var l = a.call(e, t);
30483
- if (ul(l) != "object") return l;
30484
- throw new TypeError("@@toPrimitive must return a primitive value.");
30485
- }
30486
- return (t === "string" ? String : Number)(e);
30487
- }
30488
- function kT(e) {
30489
- var t = _T(e, "string");
30490
- return ul(t) == "symbol" ? t : t + "";
30491
- }
30492
- function NT(e, t, a) {
30493
- return (t = kT(t)) in e ? Object.defineProperty(e, t, {
30494
- value: a,
30495
- enumerable: !0,
30496
- configurable: !0,
30497
- writable: !0
30498
- }) : e[t] = a, e;
30499
- }
30500
30489
  function Ys(e, t) {
30501
30490
  var a = Object.keys(e);
30502
30491
  if (Object.getOwnPropertySymbols) {
@@ -30511,19 +30500,31 @@ function Ws(e) {
30511
30500
  for (var t = 1; t < arguments.length; t++) {
30512
30501
  var a = arguments[t] != null ? arguments[t] : {};
30513
30502
  t % 2 ? Ys(Object(a), !0).forEach(function(l) {
30514
- NT(e, l, a[l]);
30503
+ kT(e, l, a[l]);
30515
30504
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Ys(Object(a)).forEach(function(l) {
30516
30505
  Object.defineProperty(e, l, Object.getOwnPropertyDescriptor(a, l));
30517
30506
  });
30518
30507
  }
30519
30508
  return e;
30520
30509
  }
30521
- var IT = {
30522
- yearFormat: "YYYY",
30523
- dayFormat: "D",
30524
- cellMeridiemFormat: "A",
30525
- monthBeforeYear: !0
30526
- }, LT = Ws(Ws({}, IT), {}, {
30510
+ function kT(e, t, a) {
30511
+ return t = NT(t), t in e ? Object.defineProperty(e, t, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = a, e;
30512
+ }
30513
+ function NT(e) {
30514
+ var t = IT(e, "string");
30515
+ return ul(t) == "symbol" ? t : String(t);
30516
+ }
30517
+ function IT(e, t) {
30518
+ if (ul(e) != "object" || !e) return e;
30519
+ var a = e[Symbol.toPrimitive];
30520
+ if (a !== void 0) {
30521
+ var l = a.call(e, t);
30522
+ if (ul(l) != "object") return l;
30523
+ throw new TypeError("@@toPrimitive must return a primitive value.");
30524
+ }
30525
+ return (t === "string" ? String : Number)(e);
30526
+ }
30527
+ var LT = Ws(Ws({}, _T), {}, {
30527
30528
  locale: "zh_CN",
30528
30529
  today: "今天",
30529
30530
  now: "此刻",
@@ -30555,7 +30556,7 @@ const OT = {
30555
30556
  placeholder: "请选择时间",
30556
30557
  rangePlaceholder: ["开始时间", "结束时间"]
30557
30558
  }, Zo = {
30558
- lang: Object.assign({
30559
+ lang: {
30559
30560
  placeholder: "请选择日期",
30560
30561
  yearPlaceholder: "请选择年份",
30561
30562
  quarterPlaceholder: "请选择季度",
@@ -30565,9 +30566,12 @@ const OT = {
30565
30566
  rangeYearPlaceholder: ["开始年份", "结束年份"],
30566
30567
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
30567
30568
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
30568
- rangeWeekPlaceholder: ["开始周", "结束周"]
30569
- }, LT),
30570
- timePickerLocale: Object.assign({}, OT)
30569
+ rangeWeekPlaceholder: ["开始周", "结束周"],
30570
+ ...LT
30571
+ },
30572
+ timePickerLocale: {
30573
+ ...OT
30574
+ }
30571
30575
  };
30572
30576
  Zo.lang.ok = "确定";
30573
30577
  Pl.locale("zh-cn");
@@ -31548,7 +31552,7 @@ const { RangePicker: DT } = Wc, PT = ({ host: e, onChange: t }) => {
31548
31552
  overlayClassName: "rte-agent-dropdown",
31549
31553
  children: /* @__PURE__ */ fe("div", { className: "rte-agent-badge", style: { cursor: i.length > 0 ? "pointer" : "default" }, children: [
31550
31554
  /* @__PURE__ */ G("i", { className: "iconfont icon-zhinengti", style: { fontSize: "16px" } }),
31551
- /* @__PURE__ */ G("span", { className: "rte-agent-text", children: "智能体asfsafsafsafasf" })
31555
+ /* @__PURE__ */ G("span", { className: "rte-agent-text", children: "智能体呀啦嗦jhjkhkhkhhjk" })
31552
31556
  ] })
31553
31557
  }
31554
31558
  ) }),