cecomponent 1.0.49 → 1.0.51

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.
@@ -6202,8 +6202,8 @@ function requireLottie() {
6202
6202
  var he = this.props;
6203
6203
  if (A === 1 && k === 0 && M === 0 && D === 0 && P === 0 && H === 1 && O === 0 && z === 0 && Z === 0 && oe === 0 && ue === 1 && xe === 0)
6204
6204
  return he[12] = he[12] * A + he[15] * fe, he[13] = he[13] * H + he[15] * _e, he[14] = he[14] * ue + he[15] * Ee, he[15] *= we, this._identityCalculated = !1, this;
6205
- var Pe = he[0], Ae = he[1], me = he[2], be = he[3], Me = he[4], Re = he[5], Fe = he[6], Be = he[7], Ne = he[8], ke = he[9], Oe = he[10], De = he[11], He = he[12], $e = he[13], ze = he[14], Ge = he[15];
6206
- return he[0] = Pe * A + Ae * P + me * Z + be * fe, he[1] = Pe * k + Ae * H + me * oe + be * _e, he[2] = Pe * M + Ae * O + me * ue + be * Ee, he[3] = Pe * D + Ae * z + me * xe + be * we, he[4] = Me * A + Re * P + Fe * Z + Be * fe, he[5] = Me * k + Re * H + Fe * oe + Be * _e, he[6] = Me * M + Re * O + Fe * ue + Be * Ee, he[7] = Me * D + Re * z + Fe * xe + Be * we, he[8] = Ne * A + ke * P + Oe * Z + De * fe, he[9] = Ne * k + ke * H + Oe * oe + De * _e, he[10] = Ne * M + ke * O + Oe * ue + De * Ee, he[11] = Ne * D + ke * z + Oe * xe + De * we, he[12] = He * A + $e * P + ze * Z + Ge * fe, he[13] = He * k + $e * H + ze * oe + Ge * _e, he[14] = He * M + $e * O + ze * ue + Ge * Ee, he[15] = He * D + $e * z + ze * xe + Ge * we, this._identityCalculated = !1, this;
6205
+ var Pe = he[0], Ae = he[1], me = he[2], be = he[3], Me = he[4], Re = he[5], Fe = he[6], Ne = he[7], Be = he[8], ke = he[9], Oe = he[10], De = he[11], He = he[12], $e = he[13], ze = he[14], Ge = he[15];
6206
+ return he[0] = Pe * A + Ae * P + me * Z + be * fe, he[1] = Pe * k + Ae * H + me * oe + be * _e, he[2] = Pe * M + Ae * O + me * ue + be * Ee, he[3] = Pe * D + Ae * z + me * xe + be * we, he[4] = Me * A + Re * P + Fe * Z + Ne * fe, he[5] = Me * k + Re * H + Fe * oe + Ne * _e, he[6] = Me * M + Re * O + Fe * ue + Ne * Ee, he[7] = Me * D + Re * z + Fe * xe + Ne * we, he[8] = Be * A + ke * P + Oe * Z + De * fe, he[9] = Be * k + ke * H + Oe * oe + De * _e, he[10] = Be * M + ke * O + Oe * ue + De * Ee, he[11] = Be * D + ke * z + Oe * xe + De * we, he[12] = He * A + $e * P + ze * Z + Ge * fe, he[13] = He * k + $e * H + ze * oe + Ge * _e, he[14] = He * M + $e * O + ze * ue + Ge * Ee, he[15] = He * D + $e * z + ze * xe + Ge * we, this._identityCalculated = !1, this;
6207
6207
  }
6208
6208
  function E(A) {
6209
6209
  var k = A.props;
@@ -8700,18 +8700,18 @@ function requireLottie() {
8700
8700
  k = i.length;
8701
8701
  var D, P = -1, H, O, z, Z = d, oe = g, ue = _, xe = -1, fe, _e, Ee, we, he, Pe, Ae, me, be = "", Me = this.defaultPropsArray, Re;
8702
8702
  if (e.j === 2 || e.j === 1) {
8703
- var Fe = 0, Be = 0, Ne = e.j === 2 ? -0.5 : -1, ke = 0, Oe = !0;
8703
+ var Fe = 0, Ne = 0, Be = e.j === 2 ? -0.5 : -1, ke = 0, Oe = !0;
8704
8704
  for (c = 0; c < m; c += 1)
8705
8705
  if (u[c].n) {
8706
- for (Fe && (Fe += Be); ke < c; )
8706
+ for (Fe && (Fe += Ne); ke < c; )
8707
8707
  u[ke].animatorJustifyOffset = Fe, ke += 1;
8708
8708
  Fe = 0, Oe = !0;
8709
8709
  } else {
8710
8710
  for (A = 0; A < k; A += 1)
8711
- I = i[A].a, I.t.propType && (Oe && e.j === 2 && (Be += I.t.v * Ne), j = i[A].s, D = j.getMult(u[c].anIndexes[A], s.a[A].s.totalChars), D.length ? Fe += I.t.v * D[0] * Ne : Fe += I.t.v * D * Ne);
8711
+ I = i[A].a, I.t.propType && (Oe && e.j === 2 && (Ne += I.t.v * Be), j = i[A].s, D = j.getMult(u[c].anIndexes[A], s.a[A].s.totalChars), D.length ? Fe += I.t.v * D[0] * Be : Fe += I.t.v * D * Be);
8712
8712
  Oe = !1;
8713
8713
  }
8714
- for (Fe && (Fe += Be); ke < c; )
8714
+ for (Fe && (Fe += Ne); ke < c; )
8715
8715
  u[ke].animatorJustifyOffset = Fe, ke += 1;
8716
8716
  }
8717
8717
  for (c = 0; c < m; c += 1) {
@@ -12514,69 +12514,6 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
12514
12514
  document.removeEventListener("keydown", t);
12515
12515
  };
12516
12516
  }, [e]);
12517
- }, CEPagination = ({
12518
- currentPage: e,
12519
- totalPages: t,
12520
- onPageChange: r
12521
- }) => {
12522
- const i = () => {
12523
- const l = [];
12524
- if (t <= 8)
12525
- for (let f = 0; f < t; f++)
12526
- l.push(f);
12527
- else if (e < 7) {
12528
- for (let f = 0; f < 8; f++)
12529
- l.push(f);
12530
- l.push("..."), l.push(t - 1);
12531
- } else if (e >= t - 8 + 1) {
12532
- l.push(0), l.push("...");
12533
- for (let f = t - 8; f < t; f++)
12534
- l.push(f);
12535
- } else {
12536
- l.push(0), l.push("...");
12537
- for (let f = e - 3; f <= e + 3; f++)
12538
- l.push(f);
12539
- l.push("..."), l.push(t - 1);
12540
- }
12541
- return l;
12542
- }, s = (o) => {
12543
- typeof o == "number" && r(o);
12544
- }, n = () => {
12545
- e > 0 && r(e - 1);
12546
- }, a = () => {
12547
- e < t - 1 && r(e + 1);
12548
- };
12549
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "pagination", children: [
12550
- /* @__PURE__ */ jsxRuntimeExports.jsx(
12551
- "button",
12552
- {
12553
- onClick: n,
12554
- disabled: e === 0,
12555
- className: "pagination-button",
12556
- children: "Previous"
12557
- }
12558
- ),
12559
- i().map(
12560
- (o, l) => typeof o == "number" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
12561
- "button",
12562
- {
12563
- onClick: () => s(o),
12564
- className: `pagination-button page-number ${e === o ? "active" : ""}`,
12565
- children: o + 1
12566
- },
12567
- l
12568
- ) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "pagination-ellipsis", children: o }, l)
12569
- ),
12570
- /* @__PURE__ */ jsxRuntimeExports.jsx(
12571
- "button",
12572
- {
12573
- onClick: a,
12574
- disabled: e === t - 1,
12575
- className: "pagination-button",
12576
- children: "Next"
12577
- }
12578
- )
12579
- ] });
12580
12517
  }, CETruncatedTextWithTooltip = ({ text: e }) => {
12581
12518
  const [t, r] = useState(!1), [i, s] = useState({ top: 0, left: 0 }), n = useRef(null), [a, o] = useState(!1);
12582
12519
  useEffect(() => {
@@ -14304,11 +14241,11 @@ var CRC32 = /* @__PURE__ */ function() {
14304
14241
  var B = V & 7, U = V >>> 3;
14305
14242
  return N <<= B, F[U] |= N & 255, N >>>= 8, F[U + 1] = N, V + 8;
14306
14243
  }
14307
- function Be(F, V, N) {
14244
+ function Ne(F, V, N) {
14308
14245
  var B = V & 7, U = V >>> 3;
14309
14246
  return N <<= B, F[U] |= N & 255, N >>>= 8, F[U + 1] = N & 255, F[U + 2] = N >>> 8, V + 16;
14310
14247
  }
14311
- function Ne(F, V) {
14248
+ function Be(F, V) {
14312
14249
  var N = F.length, B = 2 * N > V ? 2 * N : V + 5, U = 0;
14313
14250
  if (N >= V) return F;
14314
14251
  if (has_buf) {
@@ -14396,9 +14333,9 @@ var CRC32 = /* @__PURE__ */ function() {
14396
14333
  if (Te > 2) {
14397
14334
  pe = U[Te], pe <= 22 ? te = Fe(Q, te, fe[pe + 1] >> 1) - 1 : (Fe(Q, te, 3), te += 5, Fe(Q, te, fe[pe - 23] >> 5), te += 3);
14398
14335
  var K = pe < 8 ? 0 : pe - 4 >> 2;
14399
- K > 0 && (Be(Q, te, Te - Z[pe]), te += K), pe = V[re - ye], te = Fe(Q, te, fe[pe] >> 3), te -= 3;
14336
+ K > 0 && (Ne(Q, te, Te - Z[pe]), te += K), pe = V[re - ye], te = Fe(Q, te, fe[pe] >> 3), te -= 3;
14400
14337
  var ne = pe < 4 ? 0 : pe - 2 >> 1;
14401
- ne > 0 && (Be(Q, te, re - ye - oe[pe]), te += ne);
14338
+ ne > 0 && (Ne(Q, te, re - ye - oe[pe]), te += ne);
14402
14339
  for (var le = 0; le < Te; ++le)
14403
14340
  ce[ge] = re & 32767, ge = (ge << 5 ^ se[re]) & 32767, ++re;
14404
14341
  de -= Te - 1;
@@ -14467,12 +14404,12 @@ var CRC32 = /* @__PURE__ */ function() {
14467
14404
  N & 7 && (N += 8 - (N & 7));
14468
14405
  var te = F[N >>> 3] | F[(N >>> 3) + 1] << 8;
14469
14406
  if (N += 32, te > 0)
14470
- for (!V && ee < G + te && (U = Ne(U, G + te), ee = U.length); te-- > 0; )
14407
+ for (!V && ee < G + te && (U = Be(U, G + te), ee = U.length); te-- > 0; )
14471
14408
  U[G++] = F[N >>> 3], N += 8;
14472
14409
  continue;
14473
14410
  }
14474
14411
  for (; ; ) {
14475
- !V && ee < G + 32767 && (U = Ne(U, G + 32767), ee = U.length);
14412
+ !V && ee < G + 32767 && (U = Be(U, G + 32767), ee = U.length);
14476
14413
  var re = be(F, N, se), ce = B >>> 1 == 1 ? De[re] : Ye[re];
14477
14414
  if (N += ce & 15, ce >>>= 4, (ce >>> 8 & 255) === 0) U[G++] = ce;
14478
14415
  else {
@@ -14483,7 +14420,7 @@ var CRC32 = /* @__PURE__ */ function() {
14483
14420
  var ge = G + Z[ce];
14484
14421
  de > 0 && (ge += be(F, N, de), N += de), re = be(F, N, Q), ce = B >>> 1 == 1 ? He[re] : je[re], N += ce & 15, ce >>>= 4;
14485
14422
  var pe = ce < 4 ? 0 : ce - 2 >> 1, ye = oe[ce];
14486
- for (pe > 0 && (ye += be(F, N, pe), N += pe), !V && ee < ge && (U = Ne(U, ge + 100), ee = U.length); G < ge; )
14423
+ for (pe > 0 && (ye += be(F, N, pe), N += pe), !V && ee < ge && (U = Be(U, ge + 100), ee = U.length); G < ge; )
14487
14424
  U[G] = U[G - ye], ++G;
14488
14425
  }
14489
14426
  }
@@ -28242,7 +28179,99 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
28242
28179
  }
28243
28180
  ),
28244
28181
  e && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: e })
28245
- ] }), CEDataGridDynamicTable = ({
28182
+ ] }), PaginationControls = ({ currentPage: e, totalPages: t, setCurrentPage: r }) => {
28183
+ const n = Math.floor(e / 5) * 5, a = Math.min(n + 5, t), o = () => {
28184
+ r(Math.max(0, n - 1));
28185
+ }, l = () => {
28186
+ r(Math.min(t - 1, a));
28187
+ }, f = [];
28188
+ for (let c = n; c < a; c++)
28189
+ f.push(
28190
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
28191
+ "button",
28192
+ {
28193
+ className: `pagination-page${e === c ? " active" : ""}`,
28194
+ onClick: () => r(c),
28195
+ disabled: e === c,
28196
+ children: c + 1
28197
+ },
28198
+ c
28199
+ )
28200
+ );
28201
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "pagination-controls", children: [
28202
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
28203
+ "button",
28204
+ {
28205
+ className: "pagination-button",
28206
+ onClick: () => r(0),
28207
+ disabled: e === 0,
28208
+ children: "First"
28209
+ }
28210
+ ),
28211
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
28212
+ "button",
28213
+ {
28214
+ className: "pagination-button",
28215
+ onClick: () => r(e - 1),
28216
+ disabled: e === 0,
28217
+ children: "Previous"
28218
+ }
28219
+ ),
28220
+ n > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "pagination-ellipsis", onClick: o, children: "..." }),
28221
+ f,
28222
+ a < t && /* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "pagination-ellipsis", onClick: l, children: "..." }),
28223
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
28224
+ "button",
28225
+ {
28226
+ className: "pagination-button",
28227
+ onClick: () => r(e + 1),
28228
+ disabled: e === t - 1,
28229
+ children: "Next"
28230
+ }
28231
+ ),
28232
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
28233
+ "button",
28234
+ {
28235
+ className: "pagination-button",
28236
+ onClick: () => r(t - 1),
28237
+ disabled: e === t - 1,
28238
+ children: "Last"
28239
+ }
28240
+ )
28241
+ ] });
28242
+ }, RowsPerPageSelector = ({ rowsPerPage: e, setRowsPerPage: t, setCurrentPage: r }) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "rows-per-page-container", children: [
28243
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Show" }),
28244
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
28245
+ "select",
28246
+ {
28247
+ id: "rows-per-page-select",
28248
+ value: e,
28249
+ onChange: (i) => {
28250
+ t(Number(i.target.value)), r(0);
28251
+ },
28252
+ "aria-label": "Rows per page",
28253
+ style: { margin: "0 4px" },
28254
+ children: [
28255
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 5, children: "5" }),
28256
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 10, children: "10" }),
28257
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 20, children: "20" }),
28258
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 50, children: "50" }),
28259
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 100, children: "100" })
28260
+ ]
28261
+ }
28262
+ ),
28263
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "entries" })
28264
+ ] }), EntriesInfo = ({ dataLength: e, currentPage: t, rowsPerPage: r }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "entries-info", children: e > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
28265
+ "Showing ",
28266
+ e === 0 ? 0 : t * r + 1,
28267
+ " to",
28268
+ " ",
28269
+ Math.min((t + 1) * r, e),
28270
+ " of ",
28271
+ e,
28272
+ " ",
28273
+ "entries"
28274
+ ] }) }), CEDataGridDynamicTable = ({
28246
28275
  //jsonUrl,
28247
28276
  title: e,
28248
28277
  jsonData: t,
@@ -28286,7 +28315,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
28286
28315
  }) => {
28287
28316
  const [M, D] = useState(
28288
28317
  {}
28289
- ), [P, H] = useState(!1), [O, z] = useState([]), [Z, oe] = useState([]), [ue, xe] = useState(!1), [fe, _e] = useState(/* @__PURE__ */ new Set()), [Ee, we] = useState(null), [he, Pe] = useState(!1), [Ae, me] = useState(""), [be, Me] = useState("contains"), [Re, Fe] = useState(""), [Be, Ne] = useState(0), [ke, Oe] = useState(
28318
+ ), [P, H] = useState(!1), [O, z] = useState([]), [Z, oe] = useState([]), [ue, xe] = useState(!1), [fe, _e] = useState(/* @__PURE__ */ new Set()), [Ee, we] = useState(null), [he, Pe] = useState(!1), [Ae, me] = useState(""), [be, Me] = useState("contains"), [Re, Fe] = useState(""), [Ne, Be] = useState(0), [ke, Oe] = useState(
28290
28319
  T ?? 10
28291
28320
  ), [De, He] = useState(/* @__PURE__ */ new Set()), [$e, ze] = useState(""), [Ge, Ye] = useState(!1), [je, Xe] = useState(/* @__PURE__ */ new Set()), Ke = useRef(null), it = useRef(null), et = useRef(null), [qe, st] = useState(/* @__PURE__ */ new Set()), [Ue, nt] = useState([]), [lt, ft] = useState(!1), [Ve, tt] = useState(null), [Je, at] = useState(!1), ht = () => at(!0), ct = () => at(!1), [ut, We] = useState(!0);
28292
28321
  useEffect(() => {
@@ -28372,9 +28401,9 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
28372
28401
  const ne = O.findIndex((ve) => ve === K), le = K.id ?? `__row_${ne}`;
28373
28402
  return ((ae = pt[le]) == null ? void 0 : ae.columnId) || "";
28374
28403
  }, rt = useMemo(() => {
28375
- const K = Be * ke, ne = K + ke;
28404
+ const K = Ne * ke, ne = K + ke;
28376
28405
  return O.slice(K, ne);
28377
- }, [O, Be, ke]), F = (K) => {
28406
+ }, [O, Ne, ke]), F = (K) => {
28378
28407
  const ne = new Set(je);
28379
28408
  ne.has(K) ? ne.size > 1 && ne.delete(K) : ne.add(K), Xe(ne);
28380
28409
  }, V = (K, ne = null) => {
@@ -28935,33 +28964,30 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
28935
28964
  }
28936
28965
  ) }),
28937
28966
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "pagination-container", children: [
28938
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "rows-per-page-container", children: [
28939
- /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: "rows-per-page-select", children: "Rows per page:" }),
28940
- /* @__PURE__ */ jsxRuntimeExports.jsxs(
28941
- "select",
28967
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "40px" }, children: [
28968
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
28969
+ EntriesInfo,
28942
28970
  {
28943
- id: "rows-per-page-select",
28944
- value: ke,
28945
- onChange: (K) => {
28946
- Oe(Number(K.target.value)), Ne(0);
28947
- },
28948
- "aria-label": "Rows per page",
28949
- children: [
28950
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 5, children: "5" }),
28951
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 10, children: "10" }),
28952
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 20, children: "20" }),
28953
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 50, children: "50" }),
28954
- /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: 100, children: "100" })
28955
- ]
28971
+ dataLength: O.length,
28972
+ currentPage: Ne,
28973
+ rowsPerPage: ke
28974
+ }
28975
+ ),
28976
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
28977
+ RowsPerPageSelector,
28978
+ {
28979
+ rowsPerPage: ke,
28980
+ setRowsPerPage: Oe,
28981
+ setCurrentPage: Be
28956
28982
  }
28957
28983
  )
28958
28984
  ] }),
28959
28985
  /* @__PURE__ */ jsxRuntimeExports.jsx(
28960
- CEPagination,
28986
+ PaginationControls,
28961
28987
  {
28962
- currentPage: Be,
28988
+ currentPage: Ne,
28963
28989
  totalPages: Math.ceil(O.length / ke),
28964
- onPageChange: (K) => Ne(K)
28990
+ setCurrentPage: Be
28965
28991
  }
28966
28992
  )
28967
28993
  ] }),
@@ -29039,7 +29065,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
29039
29065
  utils.book_append_sheet(ae, le, "Data"), writeFileSync(ae, "data-grid-export.xls");
29040
29066
  }, Te = () => {
29041
29067
  X ? (We(!0), Promise.resolve(X()).finally(() => We(!1))) : (We(!0), setTimeout(() => {
29042
- z(t), oe(t), Ne(0), ze(""), Fe(""), me(""), tt(null), We(!1);
29068
+ z(t), oe(t), Be(0), ze(""), Fe(""), me(""), tt(null), We(!1);
29043
29069
  }, 300));
29044
29070
  };
29045
29071
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
@@ -30124,6 +30150,69 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
30124
30150
  l.title
30125
30151
  );
30126
30152
  }) }) });
30153
+ }, CEPagination = ({
30154
+ currentPage: e,
30155
+ totalPages: t,
30156
+ onPageChange: r
30157
+ }) => {
30158
+ const i = () => {
30159
+ const l = [];
30160
+ if (t <= 8)
30161
+ for (let f = 0; f < t; f++)
30162
+ l.push(f);
30163
+ else if (e < 7) {
30164
+ for (let f = 0; f < 8; f++)
30165
+ l.push(f);
30166
+ l.push("..."), l.push(t - 1);
30167
+ } else if (e >= t - 8 + 1) {
30168
+ l.push(0), l.push("...");
30169
+ for (let f = t - 8; f < t; f++)
30170
+ l.push(f);
30171
+ } else {
30172
+ l.push(0), l.push("...");
30173
+ for (let f = e - 3; f <= e + 3; f++)
30174
+ l.push(f);
30175
+ l.push("..."), l.push(t - 1);
30176
+ }
30177
+ return l;
30178
+ }, s = (o) => {
30179
+ typeof o == "number" && r(o);
30180
+ }, n = () => {
30181
+ e > 0 && r(e - 1);
30182
+ }, a = () => {
30183
+ e < t - 1 && r(e + 1);
30184
+ };
30185
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "pagination", children: [
30186
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
30187
+ "button",
30188
+ {
30189
+ onClick: n,
30190
+ disabled: e === 0,
30191
+ className: "pagination-button",
30192
+ children: "Previous"
30193
+ }
30194
+ ),
30195
+ i().map(
30196
+ (o, l) => typeof o == "number" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
30197
+ "button",
30198
+ {
30199
+ onClick: () => s(o),
30200
+ className: `pagination-button page-number ${e === o ? "active" : ""}`,
30201
+ children: o + 1
30202
+ },
30203
+ l
30204
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "pagination-ellipsis", children: o }, l)
30205
+ ),
30206
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
30207
+ "button",
30208
+ {
30209
+ onClick: a,
30210
+ disabled: e === t - 1,
30211
+ className: "pagination-button",
30212
+ children: "Next"
30213
+ }
30214
+ )
30215
+ ] });
30127
30216
  }, CERadioButtonGroup = ({
30128
30217
  options: e,
30129
30218
  name: t,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cecomponent",
3
3
  "description": "A React component library for building modern UIs for Cleanearth",
4
- "version": "1.0.49",
4
+ "version": "1.0.51",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/index.d.ts",