@imperosoft/cris-webui-components 1.1.2-beta.7 → 1.1.2-beta.8

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.d.mts CHANGED
@@ -316,7 +316,7 @@ declare function CrisCoDebug({ oid, title, className, style, itemClassName, item
316
316
 
317
317
  /** Shape of an input or output item from the backend */
318
318
  interface MatrixItem {
319
- ch: number;
319
+ id: number;
320
320
  lb: string;
321
321
  gp: number;
322
322
  sl: {
package/dist/index.d.ts CHANGED
@@ -316,7 +316,7 @@ declare function CrisCoDebug({ oid, title, className, style, itemClassName, item
316
316
 
317
317
  /** Shape of an input or output item from the backend */
318
318
  interface MatrixItem {
319
- ch: number;
319
+ id: number;
320
320
  lb: string;
321
321
  gp: number;
322
322
  sl: {
package/dist/index.js CHANGED
@@ -1455,8 +1455,8 @@ function MatrixItemRow({
1455
1455
  className: `cris-co-matrix-item-btn ${itemActiveClassName ?? ""}`,
1456
1456
  classActive: itemActiveClassName,
1457
1457
  children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: 6, width: "100%" }, children: [
1458
- showChannels && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "cris-co-matrix-ch", style: { flexShrink: 0, opacity: 0.6 }, children: item.ch }),
1459
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: defaults.itemLabel, children: item.lb || `${type === "input" ? "Input" : "Output"} ${item.ch}` }),
1458
+ showChannels && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "cris-co-matrix-ch", style: { flexShrink: 0, opacity: 0.6 }, children: item.id }),
1459
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: defaults.itemLabel, children: item.lb || `${type === "input" ? "Input" : "Output"} ${item.id}` }),
1460
1460
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: defaults.indicators, children: [
1461
1461
  item.io.vs && (renderIoIndicator ? renderIoIndicator(item.io.on) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DefaultIoIndicator, { on: item.io.on })),
1462
1462
  item.sg.vs && (renderSignalIndicator ? renderSignalIndicator(item.sg.on) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DefaultSignalIndicator, { on: item.sg.on }))
@@ -1502,14 +1502,14 @@ function CrisCoMatrixListsTie({
1502
1502
  const send = (0, import_cris_webui_ch5_core8.useCustomObjectSend)();
1503
1503
  if (!matrix) return null;
1504
1504
  const { ip: inputs, op: outputs } = matrix;
1505
- const handleSelectInput = (ch) => {
1506
- send(oid, { action: "selectInput", ch });
1505
+ const handleSelectInput = (id) => {
1506
+ send(oid, { action: "selectInput", id });
1507
1507
  };
1508
- const handleTie = (ch) => {
1509
- send(oid, { action: "tie", ch });
1508
+ const handleTie = (id) => {
1509
+ send(oid, { action: "tie", id });
1510
1510
  };
1511
- const handleToggleVideoMute = (type, ch) => {
1512
- send(oid, { action: "toggleVideoMute", type, ch });
1511
+ const handleToggleVideoMute = (type, id) => {
1512
+ send(oid, { action: "toggleVideoMute", type, id });
1513
1513
  };
1514
1514
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1515
1515
  "div",
@@ -1537,8 +1537,8 @@ function CrisCoMatrixListsTie({
1537
1537
  item,
1538
1538
  type: "input",
1539
1539
  showChannels,
1540
- onSelect: () => handleSelectInput(item.ch),
1541
- onToggleVideoMute: () => handleToggleVideoMute("input", item.ch),
1540
+ onSelect: () => handleSelectInput(item.id),
1541
+ onToggleVideoMute: () => handleToggleVideoMute("input", item.id),
1542
1542
  itemClassName,
1543
1543
  itemStyle,
1544
1544
  itemActiveClassName,
@@ -1549,7 +1549,7 @@ function CrisCoMatrixListsTie({
1549
1549
  renderIoIndicator,
1550
1550
  renderSignalIndicator
1551
1551
  },
1552
- item.ch
1552
+ item.id
1553
1553
  )) })
1554
1554
  ]
1555
1555
  }
@@ -1574,8 +1574,8 @@ function CrisCoMatrixListsTie({
1574
1574
  item,
1575
1575
  type: "output",
1576
1576
  showChannels,
1577
- onSelect: () => handleTie(item.ch),
1578
- onToggleVideoMute: () => handleToggleVideoMute("output", item.ch),
1577
+ onSelect: () => handleTie(item.id),
1578
+ onToggleVideoMute: () => handleToggleVideoMute("output", item.id),
1579
1579
  itemClassName,
1580
1580
  itemStyle,
1581
1581
  itemActiveClassName,
@@ -1586,7 +1586,7 @@ function CrisCoMatrixListsTie({
1586
1586
  renderIoIndicator,
1587
1587
  renderSignalIndicator
1588
1588
  },
1589
- item.ch
1589
+ item.id
1590
1590
  )) })
1591
1591
  ]
1592
1592
  }