@its/core 2.6.2-alpha.0 → 2.6.2-alpha.1

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 +54 -37
  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) {
@@ -44921,6 +44923,7 @@ function _Pe(e) {
44921
44923
  eh,
44922
44924
  {
44923
44925
  id: `date-picker-${t}`,
44926
+ label: o || t,
44924
44927
  name: t,
44925
44928
  value: r
44926
44929
  },
@@ -44931,6 +44934,7 @@ function _Pe(e) {
44931
44934
  eh,
44932
44935
  {
44933
44936
  id: `datetime-picker-${t}`,
44937
+ label: o || t,
44934
44938
  name: t,
44935
44939
  value: r,
44936
44940
  inputType: "dateTime"
@@ -48463,7 +48467,13 @@ function i5e(e, t) {
48463
48467
  });
48464
48468
  }), r;
48465
48469
  }
48466
- function ORe({ blob: e, ruleSet: t, dataSource: n, callBacksSet: r = {}, extraInterpolateCallBacksSet: i = null }) {
48470
+ function ORe({
48471
+ blob: e,
48472
+ ruleSet: t,
48473
+ dataSource: n,
48474
+ callBacksSet: r = {},
48475
+ extraInterpolateCallBacksSet: i = null
48476
+ }) {
48467
48477
  const o = Hh(), [a, s] = Ye(null), [u, c] = Ye();
48468
48478
  Xe(() => () => {
48469
48479
  a && URL.revokeObjectURL(a), s(null);
@@ -48477,19 +48487,25 @@ function ORe({ blob: e, ruleSet: t, dataSource: n, callBacksSet: r = {}, extraIn
48477
48487
  );
48478
48488
  return Xe(() => {
48479
48489
  if (!e) {
48480
- a && URL.revokeObjectURL(a), s(null);
48490
+ s(null);
48481
48491
  return;
48482
48492
  }
48483
- const d = new Uint8Array(e), h = new Blob([d], {
48484
- type: "image/svg+xml"
48485
- }), p = URL.createObjectURL(h);
48486
- a && URL.revokeObjectURL(a), s(p);
48493
+ const d = new Uint8Array(e), h = new Blob([d], { type: "image/svg+xml" }), p = new FileReader();
48494
+ p.onload = () => {
48495
+ const y = p.result;
48496
+ s(y);
48497
+ }, p.onerror = () => {
48498
+ console.error("Failed to read SVG blob");
48499
+ }, p.readAsDataURL(h);
48487
48500
  }, [e]), /* @__PURE__ */ A(qr, { children: a && u && /* @__PURE__ */ A(
48488
48501
  R3,
48489
48502
  {
48490
48503
  width: 100,
48491
48504
  src: a,
48492
48505
  evalScripts: "always",
48506
+ onError: (d) => {
48507
+ console.error("ReactSVG Error:", d);
48508
+ },
48493
48509
  beforeInjection: (d) => {
48494
48510
  l(d), i && i(d);
48495
48511
  }
@@ -49512,15 +49528,16 @@ function DRe({
49512
49528
  actions: l,
49513
49529
  reverseInformations: d,
49514
49530
  dividers: h,
49515
- contentWidth: p = "100%"
49531
+ contentWidth: p = "100%",
49532
+ endIcon: y
49516
49533
  }) {
49517
- 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: [
49534
+ 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: [
49518
49535
  /* @__PURE__ */ A(
49519
49536
  oh,
49520
49537
  {
49521
49538
  reverse: d,
49522
- caption: w || "",
49523
- value: v,
49539
+ caption: x || "",
49540
+ value: w,
49524
49541
  captionColor: s?.color,
49525
49542
  valueColor: a?.color,
49526
49543
  width: a?.width,
@@ -49530,8 +49547,8 @@ function DRe({
49530
49547
  fallback: !0
49531
49548
  }
49532
49549
  ),
49533
- h && x < r.length - 1 && /* @__PURE__ */ A(pu, { orientation: "vertical", flexItem: !0 })
49534
- ] }, `${String(x)}`)) }) : /* @__PURE__ */ A(yn, { width: "100%", paddingInline: "1rem", justifyContent: "space-between", children: /* @__PURE__ */ A(
49550
+ h && E < r.length - 1 && /* @__PURE__ */ A(pu, { orientation: "vertical", flexItem: !0 })
49551
+ ] }, `${String(E)}`)) }) : /* @__PURE__ */ A(yn, { width: "100%", paddingInline: "1rem", justifyContent: "space-between", children: /* @__PURE__ */ A(
49535
49552
  oh,
49536
49553
  {
49537
49554
  reverse: d,
@@ -49546,7 +49563,7 @@ function DRe({
49546
49563
  }
49547
49564
  ) });
49548
49565
  return /* @__PURE__ */ A(hZ, { id: e, marginBottom: "1rem", width: p, children: /* @__PURE__ */ Ae(cX, { square: !0, disabled: u, onClick: c, children: [
49549
- /* @__PURE__ */ A(lX, { id: `${e}-header`, children: /* @__PURE__ */ Ae(
49566
+ /* @__PURE__ */ A(lX, { id: `${e}-header`, expandIcon: y, children: /* @__PURE__ */ Ae(
49550
49567
  yn,
49551
49568
  {
49552
49569
  sx: {
@@ -49555,8 +49572,8 @@ function DRe({
49555
49572
  justifyContent: "space-between"
49556
49573
  },
49557
49574
  children: [
49558
- m(),
49559
- /* @__PURE__ */ A(yn, { sx: { gap: "0.5rem" }, onClick: (v) => v.stopPropagation(), children: l })
49575
+ v(),
49576
+ /* @__PURE__ */ A(yn, { sx: { gap: "0.5rem" }, onClick: (w) => w.stopPropagation(), children: l })
49560
49577
  ]
49561
49578
  }
49562
49579
  ) }),
@@ -49577,7 +49594,7 @@ function DRe({
49577
49594
  whiteSpace: "pre-line",
49578
49595
  ...t
49579
49596
  },
49580
- children: n || y("NO_DETAILS")
49597
+ children: n || m("NO_DETAILS")
49581
49598
  }
49582
49599
  )
49583
49600
  }
@@ -57908,36 +57925,36 @@ class wM {
57908
57925
  return this._exporter.shutdown();
57909
57926
  }
57910
57927
  }
57911
- function vDe(e) {
57912
- const t = uW({
57913
- [ZF]: "MES-FE"
57914
- }), n = new Z7e({
57928
+ function vDe(e, t = "MES-FE") {
57929
+ const n = uW({
57930
+ [ZF]: t
57931
+ }), r = new Z7e({
57915
57932
  url: `${e}/v1/traces`
57916
57933
  // URL del collector OpenTelemetry
57917
- }), r = new XCe({
57918
- resource: t,
57934
+ }), i = new XCe({
57935
+ resource: n,
57919
57936
  spanProcessors: [
57920
57937
  new eM(new GCe()),
57921
57938
  // Debug in console
57922
- new eM(n)
57939
+ new eM(r)
57923
57940
  // Invio al collector
57924
57941
  ]
57925
57942
  });
57926
- r.register({
57943
+ i.register({
57927
57944
  // Changing default contextManager to use ZoneContextManager - supports asynchronous operations - optional
57928
57945
  contextManager: new X8e()
57929
- }), r.register();
57930
- const i = new YIe({
57946
+ }), i.register();
57947
+ const o = new YIe({
57931
57948
  url: `${e}/v1/logs`
57932
57949
  // URL del collector OpenTelemetry per i log});
57933
- }), o = new uMe({
57934
- resource: t,
57950
+ }), a = new uMe({
57951
+ resource: n,
57935
57952
  processors: [
57936
57953
  new wM(new cMe()),
57937
- new wM(i)
57954
+ new wM(o)
57938
57955
  ]
57939
57956
  });
57940
- LW.setGlobalLoggerProvider(o), a8e({
57957
+ LW.setGlobalLoggerProvider(a), a8e({
57941
57958
  instrumentations: [
57942
57959
  new K8e()
57943
57960
  // 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.2-alpha.0",
4
+ "version": "2.6.2-alpha.1",
5
5
  "main": "dist/core.cjs.js",
6
6
  "module": "dist/core.es.js",
7
7
  "types": "dist/types/index.d.ts",