@its/core 2.6.0-beta.2 → 2.6.0-beta.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.
Files changed (2) hide show
  1. package/dist/core.es.js +34 -31
  2. package/package.json +1 -1
package/dist/core.es.js CHANGED
@@ -5634,15 +5634,17 @@ function Lke({
5634
5634
  actionLabel: s,
5635
5635
  actionClickCallback: u,
5636
5636
  actionPosition: c = pl.Before,
5637
- noWrap: l
5637
+ disableActionClick: l = !1,
5638
+ noWrap: d
5638
5639
  }) {
5639
- const { t: d } = jt(), h = (p) => !u || !s || c !== p ? null : typeof s == "string" ? /* @__PURE__ */ A(
5640
+ const { t: h } = jt(), p = (y) => !u || !s || c !== y ? null : typeof s == "string" ? /* @__PURE__ */ A(
5640
5641
  Bo,
5641
5642
  {
5642
5643
  id: `${e}-action`,
5643
5644
  onClick: u,
5644
5645
  sx: { marginLeft: "auto", padding: "6px 26px" },
5645
- children: d(s)
5646
+ disabled: l,
5647
+ children: h(s)
5646
5648
  }
5647
5649
  ) : /* @__PURE__ */ A(
5648
5650
  yn,
@@ -5653,7 +5655,7 @@ function Lke({
5653
5655
  children: s
5654
5656
  }
5655
5657
  );
5656
- return /* @__PURE__ */ A($r, { id: e, sx: { padding: i, width: n, height: r, overflow: "hidden", minHeight: "64px" }, children: /* @__PURE__ */ Ae(go, { flexDirection: a, flexWrap: l ? void 0 : "wrap", children: [
5658
+ return /* @__PURE__ */ A($r, { id: e, sx: { padding: i, width: n, height: r, overflow: "hidden", minHeight: "64px" }, children: /* @__PURE__ */ Ae(go, { flexDirection: a, flexWrap: d ? void 0 : "wrap", children: [
5657
5659
  (t || c === pl.Before) && /* @__PURE__ */ Ae(yn, { alignItems: "center", children: [
5658
5660
  t && /* @__PURE__ */ A(
5659
5661
  er,
@@ -5662,13 +5664,13 @@ function Lke({
5662
5664
  sx: { textTransform: "uppercase", fontWeight: 600, mb: "8px" },
5663
5665
  color: "primary",
5664
5666
  noWrap: !0,
5665
- children: d(t)
5667
+ children: h(t)
5666
5668
  }
5667
5669
  ),
5668
- h(pl.Before)
5670
+ p(pl.Before)
5669
5671
  ] }),
5670
5672
  o,
5671
- c === pl.After && /* @__PURE__ */ A(yn, { alignItems: "center", children: h(pl.After) })
5673
+ c === pl.After && /* @__PURE__ */ A(yn, { alignItems: "center", children: p(pl.After) })
5672
5674
  ] }) });
5673
5675
  }
5674
5676
  function nk(e) {
@@ -49514,15 +49516,16 @@ function DRe({
49514
49516
  actions: l,
49515
49517
  reverseInformations: d,
49516
49518
  dividers: h,
49517
- contentWidth: p = "100%"
49519
+ contentWidth: p = "100%",
49520
+ endIcon: y
49518
49521
  }) {
49519
- const { t: y } = jt(), m = () => r && r.length > 0 ? /* @__PURE__ */ A(yn, { width: "100%", paddingInline: "1rem", justifyContent: "space-between", children: r.map(({ primaryText: v, secondaryText: w }, x) => /* @__PURE__ */ Ae(Xm, { children: [
49522
+ const { t: m } = jt(), v = () => r && r.length > 0 ? /* @__PURE__ */ A(yn, { width: "100%", paddingInline: "1rem", justifyContent: "space-between", children: r.map(({ primaryText: w, secondaryText: x }, E) => /* @__PURE__ */ Ae(Xm, { children: [
49520
49523
  /* @__PURE__ */ A(
49521
49524
  oh,
49522
49525
  {
49523
49526
  reverse: d,
49524
- caption: w || "",
49525
- value: v,
49527
+ caption: x || "",
49528
+ value: w,
49526
49529
  captionColor: s?.color,
49527
49530
  valueColor: a?.color,
49528
49531
  width: a?.width,
@@ -49532,8 +49535,8 @@ function DRe({
49532
49535
  fallback: !0
49533
49536
  }
49534
49537
  ),
49535
- h && x < r.length - 1 && /* @__PURE__ */ A(pu, { orientation: "vertical", flexItem: !0 })
49536
- ] }, `${String(x)}`)) }) : /* @__PURE__ */ A(yn, { width: "100%", paddingInline: "1rem", justifyContent: "space-between", children: /* @__PURE__ */ A(
49538
+ h && E < r.length - 1 && /* @__PURE__ */ A(pu, { orientation: "vertical", flexItem: !0 })
49539
+ ] }, `${String(E)}`)) }) : /* @__PURE__ */ A(yn, { width: "100%", paddingInline: "1rem", justifyContent: "space-between", children: /* @__PURE__ */ A(
49537
49540
  oh,
49538
49541
  {
49539
49542
  reverse: d,
@@ -49548,7 +49551,7 @@ function DRe({
49548
49551
  }
49549
49552
  ) });
49550
49553
  return /* @__PURE__ */ A(hZ, { id: e, marginBottom: "1rem", width: p, children: /* @__PURE__ */ Ae(cX, { square: !0, disabled: u, onClick: c, children: [
49551
- /* @__PURE__ */ A(lX, { id: `${e}-header`, children: /* @__PURE__ */ Ae(
49554
+ /* @__PURE__ */ A(lX, { id: `${e}-header`, expandIcon: y, children: /* @__PURE__ */ Ae(
49552
49555
  yn,
49553
49556
  {
49554
49557
  sx: {
@@ -49557,8 +49560,8 @@ function DRe({
49557
49560
  justifyContent: "space-between"
49558
49561
  },
49559
49562
  children: [
49560
- m(),
49561
- /* @__PURE__ */ A(yn, { sx: { gap: "0.5rem" }, onClick: (v) => v.stopPropagation(), children: l })
49563
+ v(),
49564
+ /* @__PURE__ */ A(yn, { sx: { gap: "0.5rem" }, onClick: (w) => w.stopPropagation(), children: l })
49562
49565
  ]
49563
49566
  }
49564
49567
  ) }),
@@ -49579,7 +49582,7 @@ function DRe({
49579
49582
  whiteSpace: "pre-line",
49580
49583
  ...t
49581
49584
  },
49582
- children: n || y("NO_DETAILS")
49585
+ children: n || m("NO_DETAILS")
49583
49586
  }
49584
49587
  )
49585
49588
  }
@@ -57910,36 +57913,36 @@ class wM {
57910
57913
  return this._exporter.shutdown();
57911
57914
  }
57912
57915
  }
57913
- function vDe(e) {
57914
- const t = uW({
57915
- [ZF]: "MES-FE"
57916
- }), n = new Z7e({
57916
+ function vDe(e, t = "MES-FE") {
57917
+ const n = uW({
57918
+ [ZF]: t
57919
+ }), r = new Z7e({
57917
57920
  url: `${e}/v1/traces`
57918
57921
  // URL del collector OpenTelemetry
57919
- }), r = new XCe({
57920
- resource: t,
57922
+ }), i = new XCe({
57923
+ resource: n,
57921
57924
  spanProcessors: [
57922
57925
  new eM(new GCe()),
57923
57926
  // Debug in console
57924
- new eM(n)
57927
+ new eM(r)
57925
57928
  // Invio al collector
57926
57929
  ]
57927
57930
  });
57928
- r.register({
57931
+ i.register({
57929
57932
  // Changing default contextManager to use ZoneContextManager - supports asynchronous operations - optional
57930
57933
  contextManager: new X8e()
57931
- }), r.register();
57932
- const i = new YIe({
57934
+ }), i.register();
57935
+ const o = new YIe({
57933
57936
  url: `${e}/v1/logs`
57934
57937
  // URL del collector OpenTelemetry per i log});
57935
- }), o = new uMe({
57936
- resource: t,
57938
+ }), a = new uMe({
57939
+ resource: n,
57937
57940
  processors: [
57938
57941
  new wM(new cMe()),
57939
- new wM(i)
57942
+ new wM(o)
57940
57943
  ]
57941
57944
  });
57942
- LW.setGlobalLoggerProvider(o), a8e({
57945
+ LW.setGlobalLoggerProvider(a), a8e({
57943
57946
  instrumentations: [
57944
57947
  new K8e()
57945
57948
  // new XMLHttpRequestInstrumentation(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@its/core",
4
- "version": "2.6.0-beta.2",
4
+ "version": "2.6.0-beta.4",
5
5
  "main": "dist/core.cjs.js",
6
6
  "module": "dist/core.es.js",
7
7
  "types": "dist/types/index.d.ts",