bi-components-library 1.3.2-next.3 → 1.3.2-next.5

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]);
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]);
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]);
5513
5513
  }
5514
5514
  }
5515
5515
  }
@@ -5926,14 +5926,16 @@ function Df() {
5926
5926
  }
5927
5927
  if (a.centerInsufficientSlides) {
5928
5928
  let I = 0;
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;
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;
5937
5939
  });
5938
5940
  }
5939
5941
  }
@@ -6980,12 +6982,7 @@ function Ai() {
6980
6982
  } = e, i = e.virtual && e.params.virtual.enabled;
6981
6983
  e.allowSlideNext = !0, e.allowSlidePrev = !0, e.updateSize(), e.updateSlides(), e.updateSlidesClasses();
6982
6984
  const s = i && t.loop;
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(() => {
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(() => {
6989
6986
  e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.resume();
6990
6987
  }, 500)), e.allowSlidePrev = n, e.allowSlideNext = l, e.params.watchOverflow && r !== e.snapGrid && e.checkOverflow();
6991
6988
  }
@@ -7355,9 +7352,7 @@ let Cr = class Nt {
7355
7352
  const r = this;
7356
7353
  r.__swiper__ = !0, r.support = ru(), r.device = iu({
7357
7354
  userAgent: l.userAgent
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
- });
7355
+ }), r.browser = su(), r.eventsListeners = {}, r.eventsAnyListeners = [], r.modules = [...r.__modules__], l.modules && Array.isArray(l.modules) && r.modules.push(...l.modules);
7361
7356
  const i = {};
7362
7357
  r.modules.forEach((u) => {
7363
7358
  u({
@@ -12517,7 +12512,7 @@ function Im(e, t, a) {
12517
12512
  }
12518
12513
  const Yu = {}.hasOwnProperty;
12519
12514
  function Lm(e, t, a) {
12520
- return t && typeof t == "object" && (a = t, t = void 0), Om(a)(wm(Sm(a).document().write(_m()(e, t, !0))));
12515
+ return typeof t != "string" && (a = t, t = void 0), Om(a)(wm(Sm(a).document().write(_m()(e, t, !0))));
12521
12516
  }
12522
12517
  function Om(e) {
12523
12518
  const t = {
@@ -13709,7 +13704,7 @@ const Zu = (
13709
13704
  * @param {Test} [test]
13710
13705
  * @returns {Check}
13711
13706
  */
13712
- (function(e) {
13707
+ function(e) {
13713
13708
  if (e == null)
13714
13709
  return v0;
13715
13710
  if (typeof e == "function")
@@ -13726,7 +13721,7 @@ const Zu = (
13726
13721
  if (typeof e == "string")
13727
13722
  return m0(e);
13728
13723
  throw new Error("Expected function, string, or object as test");
13729
- })
13724
+ }
13730
13725
  );
13731
13726
  function h0(e) {
13732
13727
  const t = [];
@@ -14622,7 +14617,7 @@ const V0 = (
14622
14617
  * @param {string | symbol} property
14623
14618
  * @returns {(...parameters: Array<unknown>) => unknown}
14624
14619
  */
14625
- (function(e) {
14620
+ function(e) {
14626
14621
  const l = (
14627
14622
  /** @type {Record<string | symbol, Function>} */
14628
14623
  // Prototypes do exist.
@@ -14632,7 +14627,7 @@ const V0 = (
14632
14627
  return n.apply(r, arguments);
14633
14628
  };
14634
14629
  return Object.setPrototypeOf(r, l), r;
14635
- })
14630
+ }
14636
14631
  ), G0 = {}.hasOwnProperty;
14637
14632
  class Mr extends V0 {
14638
14633
  /**
@@ -30052,7 +30047,7 @@ function ET(e, t, a, l) {
30052
30047
  a(null);
30053
30048
  return;
30054
30049
  }
30055
- o.closest?.(".variable-info-icon") || a(null);
30050
+ !!o.closest?.(".variable-info-icon") || a(null);
30056
30051
  }
30057
30052
  };
30058
30053
  return n.addEventListener("mouseover", r, !0), n.addEventListener("mouseout", i, !0), () => {
@@ -30174,10 +30169,10 @@ function xT(e, t) {
30174
30169
  }
30175
30170
  var Dl = { exports: {} }, CT = Dl.exports, Vs;
30176
30171
  function Jo() {
30177
- return Vs || (Vs = 1, (function(e, t) {
30172
+ return Vs || (Vs = 1, function(e, t) {
30178
30173
  (function(a, l) {
30179
30174
  e.exports = l();
30180
- })(CT, (function() {
30175
+ })(CT, function() {
30181
30176
  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) {
30182
30177
  var x = ["th", "st", "nd", "rd"], D = N % 100;
30183
30178
  return "[" + N + (x[(D - 20) % 10] || x[D] || x[0]) + "]";
@@ -30222,13 +30217,13 @@ function Jo() {
30222
30217
  O.l = A, O.i = w, O.w = function(N, x) {
30223
30218
  return I(N, { locale: x.$L, utc: x.$u, x: x.$x, $offset: x.$offset });
30224
30219
  };
30225
- var R = (function() {
30220
+ var R = function() {
30226
30221
  function N(D) {
30227
30222
  this.$L = A(D.locale, null, !0), this.parse(D), this.$x = this.$x || D.x || {}, this[k] = !0;
30228
30223
  }
30229
30224
  var x = N.prototype;
30230
30225
  return x.parse = function(D) {
30231
- this.$d = (function(U) {
30226
+ this.$d = function(U) {
30232
30227
  var H = U.date, q = U.utc;
30233
30228
  if (H === null) return /* @__PURE__ */ new Date(NaN);
30234
30229
  if (O.u(H)) return /* @__PURE__ */ new Date();
@@ -30241,7 +30236,7 @@ function Jo() {
30241
30236
  }
30242
30237
  }
30243
30238
  return new Date(H);
30244
- })(D), this.init();
30239
+ }(D), this.init();
30245
30240
  }, x.init = function() {
30246
30241
  var D = this.$d;
30247
30242
  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();
@@ -30328,8 +30323,8 @@ function Jo() {
30328
30323
  var Le = he < 12 ? "AM" : "PM";
30329
30324
  return Be ? Le.toLowerCase() : Le;
30330
30325
  };
30331
- return q.replace(g, (function(he, ye) {
30332
- return ye || (function(Be) {
30326
+ return q.replace(g, function(he, ye) {
30327
+ return ye || function(Be) {
30333
30328
  switch (Be) {
30334
30329
  case "YY":
30335
30330
  return String(U.$y).slice(-2);
@@ -30381,8 +30376,8 @@ function Jo() {
30381
30376
  return _;
30382
30377
  }
30383
30378
  return null;
30384
- })(he) || _.replace(":", "");
30385
- }));
30379
+ }(he) || _.replace(":", "");
30380
+ });
30386
30381
  }, x.utcOffset = function() {
30387
30382
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
30388
30383
  }, x.diff = function(D, U, H) {
@@ -30437,27 +30432,27 @@ function Jo() {
30437
30432
  }, x.toString = function() {
30438
30433
  return this.$d.toUTCString();
30439
30434
  }, 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) {
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) {
30442
30437
  P[N[1]] = function(x) {
30443
30438
  return this.$g(x, N[0], N[1]);
30444
30439
  };
30445
- })), I.extend = function(N, x) {
30440
+ }), I.extend = function(N, x) {
30446
30441
  return N.$i || (N(x, R, I), N.$i = !0), I;
30447
30442
  }, I.locale = A, I.isDayjs = w, I.unix = function(N) {
30448
30443
  return I(1e3 * N);
30449
30444
  }, I.en = S[C], I.Ls = S, I.p = {}, I;
30450
- }));
30451
- })(Dl)), Dl.exports;
30445
+ });
30446
+ }(Dl)), Dl.exports;
30452
30447
  }
30453
30448
  var AT = Jo();
30454
30449
  const Pl = /* @__PURE__ */ Sr(AT);
30455
30450
  var Ml = { exports: {} }, ST = Ml.exports, Gs;
30456
30451
  function wT() {
30457
- return Gs || (Gs = 1, (function(e, t) {
30452
+ return Gs || (Gs = 1, function(e, t) {
30458
30453
  (function(a, l) {
30459
30454
  e.exports = l(Jo());
30460
- })(ST, (function(a) {
30455
+ })(ST, function(a) {
30461
30456
  function l(i) {
30462
30457
  return i && typeof i == "object" && "default" in i ? i : { default: i };
30463
30458
  }
@@ -30468,16 +30463,10 @@ function wT() {
30468
30463
  return u < 600 ? "凌晨" : u < 900 ? "早上" : u < 1100 ? "上午" : u < 1300 ? "中午" : u < 1800 ? "下午" : "晚上";
30469
30464
  } };
30470
30465
  return n.default.locale(r, null, !0), r;
30471
- }));
30472
- })(Ml)), Ml.exports;
30466
+ });
30467
+ }(Ml)), Ml.exports;
30473
30468
  }
30474
30469
  wT();
30475
- var _T = {
30476
- yearFormat: "YYYY",
30477
- dayFormat: "D",
30478
- cellMeridiemFormat: "A",
30479
- monthBeforeYear: !0
30480
- };
30481
30470
  function ul(e) {
30482
30471
  "@babel/helpers - typeof";
30483
30472
  return ul = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -30486,6 +30475,28 @@ function ul(e) {
30486
30475
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
30487
30476
  }, ul(e);
30488
30477
  }
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
+ }
30489
30500
  function Ys(e, t) {
30490
30501
  var a = Object.keys(e);
30491
30502
  if (Object.getOwnPropertySymbols) {
@@ -30500,31 +30511,19 @@ function Ws(e) {
30500
30511
  for (var t = 1; t < arguments.length; t++) {
30501
30512
  var a = arguments[t] != null ? arguments[t] : {};
30502
30513
  t % 2 ? Ys(Object(a), !0).forEach(function(l) {
30503
- kT(e, l, a[l]);
30514
+ NT(e, l, a[l]);
30504
30515
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Ys(Object(a)).forEach(function(l) {
30505
30516
  Object.defineProperty(e, l, Object.getOwnPropertyDescriptor(a, l));
30506
30517
  });
30507
30518
  }
30508
30519
  return e;
30509
30520
  }
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), {}, {
30521
+ var IT = {
30522
+ yearFormat: "YYYY",
30523
+ dayFormat: "D",
30524
+ cellMeridiemFormat: "A",
30525
+ monthBeforeYear: !0
30526
+ }, LT = Ws(Ws({}, IT), {}, {
30528
30527
  locale: "zh_CN",
30529
30528
  today: "今天",
30530
30529
  now: "此刻",
@@ -30556,7 +30555,7 @@ const OT = {
30556
30555
  placeholder: "请选择时间",
30557
30556
  rangePlaceholder: ["开始时间", "结束时间"]
30558
30557
  }, Zo = {
30559
- lang: {
30558
+ lang: Object.assign({
30560
30559
  placeholder: "请选择日期",
30561
30560
  yearPlaceholder: "请选择年份",
30562
30561
  quarterPlaceholder: "请选择季度",
@@ -30566,12 +30565,9 @@ const OT = {
30566
30565
  rangeYearPlaceholder: ["开始年份", "结束年份"],
30567
30566
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
30568
30567
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
30569
- rangeWeekPlaceholder: ["开始周", "结束周"],
30570
- ...LT
30571
- },
30572
- timePickerLocale: {
30573
- ...OT
30574
- }
30568
+ rangeWeekPlaceholder: ["开始周", "结束周"]
30569
+ }, LT),
30570
+ timePickerLocale: Object.assign({}, OT)
30575
30571
  };
30576
30572
  Zo.lang.ok = "确定";
30577
30573
  Pl.locale("zh-cn");
@@ -31552,7 +31548,7 @@ const { RangePicker: DT } = Wc, PT = ({ host: e, onChange: t }) => {
31552
31548
  overlayClassName: "rte-agent-dropdown",
31553
31549
  children: /* @__PURE__ */ fe("div", { className: "rte-agent-badge", style: { cursor: i.length > 0 ? "pointer" : "default" }, children: [
31554
31550
  /* @__PURE__ */ G("i", { className: "iconfont icon-zhinengti", style: { fontSize: "16px" } }),
31555
- /* @__PURE__ */ G("span", { className: "rte-agent-text", children: "智能体呀啦嗦" })
31551
+ /* @__PURE__ */ G("span", { className: "rte-agent-text", children: "智能体" })
31556
31552
  ] })
31557
31553
  }
31558
31554
  ) }),