@sme.up/ketchup2 2.0.0-SNAPSHOT-20250829130014 → 2.0.0-SNAPSHOT-20250829162053

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.
@@ -1364,7 +1364,7 @@ const Ko = (t) => {
1364
1364
  }, zn = (t) => {
1365
1365
  const e = `${Mt.assets}/${t}`.replace(/\/+/g, "/");
1366
1366
  return e.endsWith(".svg") ? e : e + ".svg";
1367
- }, le = mt.memo(
1367
+ }, ie = mt.memo(
1368
1368
  ({
1369
1369
  icon: t,
1370
1370
  width: e,
@@ -1560,7 +1560,7 @@ const Lt = {
1560
1560
  onMouseEnter: () => o(!0),
1561
1561
  onMouseLeave: () => o(!1),
1562
1562
  children: /* @__PURE__ */ p.jsx(
1563
- le,
1563
+ ie,
1564
1564
  {
1565
1565
  icon: "info_outline",
1566
1566
  tabIndex: 0,
@@ -1671,9 +1671,9 @@ const Lt = {
1671
1671
  disabled: o,
1672
1672
  "aria-busy": f,
1673
1673
  title: h || b,
1674
- children: f ? /* @__PURE__ */ p.jsx(le, { icon: "spinner", state: Or(i), spin: !0 }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
1674
+ children: f ? /* @__PURE__ */ p.jsx(ie, { icon: "spinner", state: Or(i), spin: !0 }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
1675
1675
  n && c && /* @__PURE__ */ p.jsx(
1676
- le,
1676
+ ie,
1677
1677
  {
1678
1678
  icon: n,
1679
1679
  placeholderIcon: s,
@@ -2000,7 +2000,7 @@ const sn = (t) => {
2000
2000
  M && (Q.container += ` ${M}`);
2001
2001
  }
2002
2002
  const K = E ? { "--smp-textField-width-base": E, ...U } : U, ae = /* @__PURE__ */ p.jsxs("div", { className: Q.container, ref: g, style: K, children: [
2003
- s && /* @__PURE__ */ p.jsx(le, { icon: s, disabled: e }),
2003
+ s && /* @__PURE__ */ p.jsx(ie, { icon: s, disabled: e }),
2004
2004
  /* @__PURE__ */ p.jsx(
2005
2005
  "input",
2006
2006
  {
@@ -2029,7 +2029,7 @@ const sn = (t) => {
2029
2029
  }
2030
2030
  ),
2031
2031
  y && /* @__PURE__ */ p.jsx(
2032
- le,
2032
+ ie,
2033
2033
  {
2034
2034
  icon: "clear",
2035
2035
  onClick: Y,
@@ -2038,7 +2038,7 @@ const sn = (t) => {
2038
2038
  }
2039
2039
  ),
2040
2040
  i && /* @__PURE__ */ p.jsx(
2041
- le,
2041
+ ie,
2042
2042
  {
2043
2043
  icon: i,
2044
2044
  disabled: e,
@@ -2267,7 +2267,7 @@ const os = 10, Zt = ({
2267
2267
  },
2268
2268
  children: [
2269
2269
  rt(V.obj?.k, V.decode, r),
2270
- N && /* @__PURE__ */ p.jsx(le, { icon: "check", width: 16 })
2270
+ N && /* @__PURE__ */ p.jsx(ie, { icon: "check", width: 16 })
2271
2271
  ]
2272
2272
  },
2273
2273
  V.obj?.k
@@ -2340,7 +2340,7 @@ const os = 10, Zt = ({
2340
2340
  className: `${g.nodeContent} ${y ? g.clickable : g.notClickable}`,
2341
2341
  children: [
2342
2342
  /* @__PURE__ */ p.jsxs("div", { className: g.iconTextContainer, children: [
2343
- /* @__PURE__ */ p.jsx(le, { icon: v.icon ?? "" }),
2343
+ /* @__PURE__ */ p.jsx(ie, { icon: v.icon ?? "" }),
2344
2344
  /* @__PURE__ */ p.jsx("span", { className: g.nodeText, children: /* @__PURE__ */ p.jsx(
2345
2345
  Oe,
2346
2346
  {
@@ -2349,7 +2349,7 @@ const os = 10, Zt = ({
2349
2349
  }
2350
2350
  ) })
2351
2351
  ] }),
2352
- v.isLoading ? /* @__PURE__ */ p.jsx(le, { icon: "spinner", spin: !0 }) : (T || Bt(v)) && /* @__PURE__ */ p.jsx(le, { icon: "chevron-right" })
2352
+ v.isLoading ? /* @__PURE__ */ p.jsx(ie, { icon: "spinner", spin: !0 }) : T || Bt(v) ? /* @__PURE__ */ p.jsx(ie, { icon: "chevron-right" }) : /* @__PURE__ */ p.jsx(ie, { icon: "" })
2353
2353
  ]
2354
2354
  }
2355
2355
  ),
@@ -2408,6 +2408,7 @@ const os = 10, Zt = ({
2408
2408
  return !a || !a?.children?.length ? null : /* @__PURE__ */ p.jsx(
2409
2409
  "div",
2410
2410
  {
2411
+ style: e ? { position: "absolute", opacity: 0 } : void 0,
2411
2412
  ref: e,
2412
2413
  "aria-label": "Toolbar",
2413
2414
  "data-component": "toolbar",
@@ -2507,7 +2508,7 @@ const os = 10, Zt = ({
2507
2508
  },
2508
2509
  children: [
2509
2510
  k.icon && /* @__PURE__ */ p.jsx(
2510
- le,
2511
+ ie,
2511
2512
  {
2512
2513
  icon: k.icon,
2513
2514
  placeholderIcon: k.placeholderIcon
@@ -2526,7 +2527,7 @@ const os = 10, Zt = ({
2526
2527
  ref: l === C ? v : void 0,
2527
2528
  "smp-id": "tab-toolbar-button",
2528
2529
  children: /* @__PURE__ */ p.jsx(
2529
- le,
2530
+ ie,
2530
2531
  {
2531
2532
  icon: "more_vert",
2532
2533
  isInteractable: !0,
@@ -4522,10 +4523,10 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
4522
4523
  "--smp-chips-backgroundColor-base": o
4523
4524
  },
4524
4525
  children: [
4525
- a && /* @__PURE__ */ p.jsx(le, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
4526
+ a && /* @__PURE__ */ p.jsx(ie, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
4526
4527
  /* @__PURE__ */ p.jsx(Oe, { variant: "label", bindValue: b, color: s }),
4527
4528
  e && /* @__PURE__ */ p.jsx(
4528
- le,
4529
+ ie,
4529
4530
  {
4530
4531
  icon: "close",
4531
4532
  isInteractable: !0,
@@ -4537,7 +4538,7 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
4537
4538
  },
4538
4539
  `chip-${h}`
4539
4540
  ), v = a && h < t.length - 1 ? /* @__PURE__ */ p.jsx(
4540
- le,
4541
+ ie,
4541
4542
  {
4542
4543
  icon: "chevron-right",
4543
4544
  color: s
@@ -5857,12 +5858,12 @@ const Ce = {
5857
5858
  }
5858
5859
  );
5859
5860
  }, y = () => /* @__PURE__ */ p.jsx("span", { className: x.toggle, children: w && /* @__PURE__ */ p.jsx(
5860
- le,
5861
+ ie,
5861
5862
  {
5862
5863
  icon: f ? "arrow_drop_right" : "arrow_drop_down",
5863
5864
  width: 16
5864
5865
  }
5865
- ) }), D = (C, E) => /* @__PURE__ */ p.jsx("span", { className: x.toggle, children: /* @__PURE__ */ p.jsx(le, { icon: C, placeholderIcon: E, width: 16 }) }), O = () => /* @__PURE__ */ p.jsx(
5866
+ ) }), D = (C, E) => /* @__PURE__ */ p.jsx("span", { className: x.toggle, children: /* @__PURE__ */ p.jsx(ie, { icon: C, placeholderIcon: E, width: 16 }) }), O = () => /* @__PURE__ */ p.jsx(
5866
5867
  "span",
5867
5868
  {
5868
5869
  className: x.indent,
@@ -6139,7 +6140,7 @@ const Ce = {
6139
6140
  b?.(E(O, n.k));
6140
6141
  }
6141
6142
  };
6142
- return /* @__PURE__ */ p.jsx(le, { ...N });
6143
+ return /* @__PURE__ */ p.jsx(ie, { ...N });
6143
6144
  }
6144
6145
  case te.INPUT_NUMBER: {
6145
6146
  const N = {
@@ -6354,13 +6355,13 @@ const Ce = {
6354
6355
  }) => {
6355
6356
  const T = "N/A", y = e?.columns || [], D = e?.rows || [], O = D.length > 0, F = "--smp-dashList-color", W = "smp-layout", k = "descr", C = "icon", E = "um", A = "value", I = a || "1em", V = "18px", U = "--smp-dashList-columns", X = "--smp-dashList-fontSize", N = {
6356
6357
  dash: (z = "1") => {
6357
- const ee = m(z), B = ee, J = S(ee, k), ce = S(ee, C), he = S(ee, E), ie = S(ee, A);
6358
+ const ee = m(z), B = ee, J = S(ee, k), ce = S(ee, C), he = S(ee, E), le = S(ee, A);
6358
6359
  return {
6359
6360
  container: B,
6360
6361
  descr: J,
6361
6362
  icon: ce,
6362
6363
  um: he,
6363
- value: ie
6364
+ value: le
6364
6365
  };
6365
6366
  },
6366
6367
  dashList: `smp-dash-list ${de(o) ? "smp-dash-list-fill-space" : ""}
@@ -6379,8 +6380,8 @@ const Ce = {
6379
6380
  (we) => parseInt(we || "0")
6380
6381
  ), J = "0,0" + (B ? "." + "0".repeat(B) : ""), ce = j(z, J, "it");
6381
6382
  if (!ee) return ce;
6382
- const [he, ie] = ce.split(",");
6383
- return he + (ie ? `,${ie}` : "");
6383
+ const [he, le] = ce.split(",");
6384
+ return he + (le ? `,${le}` : "");
6384
6385
  }, P = (z) => z.includes(";") ? z.split(";") : [z], G = (z) => {
6385
6386
  const ee = (J) => {
6386
6387
  if (J)
@@ -6405,7 +6406,7 @@ const Ce = {
6405
6406
  className: ee,
6406
6407
  descr: (B) => /* @__PURE__ */ p.jsx("div", { className: ee.descr, children: B }, `${z}-${k}`),
6407
6408
  icon: (B) => /* @__PURE__ */ p.jsx("div", { className: ee.icon, children: /* @__PURE__ */ p.jsx(
6408
- le,
6409
+ ie,
6409
6410
  {
6410
6411
  color: d,
6411
6412
  height: V,
@@ -6421,16 +6422,16 @@ const Ce = {
6421
6422
  [L(k)]: R(s),
6422
6423
  [L(E)]: R(h),
6423
6424
  [L(A)]: R(v)
6424
- }, ie = [], we = $(ce);
6425
+ }, le = [], we = $(ce);
6425
6426
  switch (_) {
6426
6427
  case "2":
6427
- B && ie.push(K.icon(B)), ie.push(K.descr(ee)), ie.push(
6428
+ B && le.push(K.icon(B)), le.push(K.descr(ee)), le.push(
6428
6429
  K.value(J ? we + " " + J : we)
6429
6430
  );
6430
6431
  break;
6431
6432
  default:
6432
6433
  case "1":
6433
- ie.push(K.descr(ee)), ie.push(
6434
+ le.push(K.descr(ee)), le.push(
6434
6435
  K.value(J ? we + " " + J : we)
6435
6436
  );
6436
6437
  }
@@ -6443,7 +6444,7 @@ const Ce = {
6443
6444
  tabIndex: 0,
6444
6445
  onClick: () => q(z),
6445
6446
  onKeyDown: (Tt) => Y(Tt, z),
6446
- children: ie
6447
+ children: le
6447
6448
  },
6448
6449
  z.rowId
6449
6450
  );
@@ -6828,7 +6829,7 @@ const Mo = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ p.jsx("tfoot", {
6828
6829
  },
6829
6830
  children: [
6830
6831
  /* @__PURE__ */ p.jsx(
6831
- le,
6832
+ ie,
6832
6833
  {
6833
6834
  icon: o ? "arrow_drop_down" : "arrow_drop_right",
6834
6835
  width: 16
@@ -7226,7 +7227,7 @@ const Ye = {
7226
7227
  onDragOver: o,
7227
7228
  onDrop: s,
7228
7229
  children: [
7229
- /* @__PURE__ */ p.jsx(le, { icon: "groups" }),
7230
+ /* @__PURE__ */ p.jsx(ie, { icon: "groups" }),
7230
7231
  /* @__PURE__ */ p.jsx(
7231
7232
  rr,
7232
7233
  {
@@ -7391,7 +7392,7 @@ const Ye = {
7391
7392
  /* @__PURE__ */ p.jsx(Oe, { variant: "title", bindValue: j.title }),
7392
7393
  /* @__PURE__ */ p.jsxs("div", { children: [
7393
7394
  f === j.name ? /* @__PURE__ */ p.jsx(
7394
- le,
7395
+ ie,
7395
7396
  {
7396
7397
  icon: g === "asc" ? "arrow-up" : "arrow-down",
7397
7398
  isInteractable: !0
@@ -7402,7 +7403,7 @@ const Ye = {
7402
7403
  {
7403
7404
  className: `${U(j.name) ? Ie["smp-headerCell-iconNotification"] : ""}`,
7404
7405
  children: /* @__PURE__ */ p.jsx(
7405
- le,
7406
+ ie,
7406
7407
  {
7407
7408
  icon: "filter_list",
7408
7409
  onClick: (m) => {
@@ -7537,27 +7538,27 @@ const Ye = {
7537
7538
  }, Q = (B) => {
7538
7539
  B.preventDefault();
7539
7540
  const J = B.dataTransfer.getData("text/plain");
7540
- if (!J || h.some((ie) => ie.column === J))
7541
+ if (!J || h.some((le) => le.column === J))
7541
7542
  return;
7542
7543
  const he = [...h, { column: J, visible: !0 }];
7543
7544
  b(he);
7544
7545
  }, K = (B) => {
7545
7546
  B.preventDefault();
7546
7547
  }, ae = (B, J) => {
7547
- const ce = B.clientX, he = E[J], ie = (Tt) => {
7548
+ const ce = B.clientX, he = E[J], le = (Tt) => {
7548
7549
  const yn = Tt.clientX - ce, vn = Math.max(50, he + yn);
7549
7550
  A((xn) => ({
7550
7551
  ...xn,
7551
7552
  [J]: vn
7552
7553
  }));
7553
7554
  }, we = () => {
7554
- window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", we);
7555
+ window.removeEventListener("mousemove", le), window.removeEventListener("mouseup", we);
7555
7556
  };
7556
- window.addEventListener("mousemove", ie), window.addEventListener("mouseup", we);
7557
+ window.addEventListener("mousemove", le), window.addEventListener("mouseup", we);
7557
7558
  }, M = (B) => {
7558
7559
  y((J) => {
7559
7560
  const ce = new Set(J);
7560
- return B.every((ie) => ce.has(ie)) ? B.forEach((ie) => ce.delete(ie)) : B.forEach((ie) => ce.add(ie)), ce;
7561
+ return B.every((le) => ce.has(le)) ? B.forEach((le) => ce.delete(le)) : B.forEach((le) => ce.add(le)), ce;
7561
7562
  });
7562
7563
  }, z = () => {
7563
7564
  const B = f.rows.map((J, ce) => ce);
@@ -7614,8 +7615,8 @@ const Ye = {
7614
7615
  offsetTop: ce,
7615
7616
  level: B.level,
7616
7617
  onClick: () => {
7617
- const ie = B.id;
7618
- ie && v((we) => wo(we, ie));
7618
+ const le = B.id;
7619
+ le && v((we) => wo(we, le));
7619
7620
  },
7620
7621
  isExpanded: B.isExpanded
7621
7622
  },
@@ -7752,7 +7753,7 @@ const Ye = {
7752
7753
  children: /* @__PURE__ */ p.jsxs("div", { className: x.container, children: [
7753
7754
  /* @__PURE__ */ p.jsxs("div", { className: x.containerHeader, children: [
7754
7755
  e && /* @__PURE__ */ p.jsx("div", { className: x.containerLogo, children: /* @__PURE__ */ p.jsx(
7755
- le,
7756
+ ie,
7756
7757
  {
7757
7758
  icon: e,
7758
7759
  title: "drawer_logo",
@@ -7761,7 +7762,7 @@ const Ye = {
7761
7762
  }
7762
7763
  ) }),
7763
7764
  /* @__PURE__ */ p.jsx("div", { className: x.containerIcon, children: /* @__PURE__ */ p.jsx(
7764
- le,
7765
+ ie,
7765
7766
  {
7766
7767
  icon: de(n) ? "menu_close" : "close",
7767
7768
  title: "drawer_icon",
@@ -8094,7 +8095,7 @@ export {
8094
8095
  Zo as Drawer,
8095
8096
  ea as Field,
8096
8097
  Xr as INPUT_PANEL_COMMAND_SUBMIT_EVENT_NAME,
8097
- le as Icon,
8098
+ ie as Icon,
8098
8099
  ta as InputPanel,
8099
8100
  io as Password,
8100
8101
  is as TabBar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sme.up/ketchup2",
3
- "version": "2.0.0-SNAPSHOT-20250829130014",
3
+ "version": "2.0.0-SNAPSHOT-20250829162053",
4
4
  "description": "Sme.UP web components library",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Smeup LAB <info@smeup.com> (https://www.smeup.com/)",