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

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
@@ -320,7 +320,7 @@ interface MatrixItem {
320
320
  lb: string;
321
321
  gp: number;
322
322
  sl: {
323
- on: boolean;
323
+ on?: boolean;
324
324
  en: boolean;
325
325
  vs: boolean;
326
326
  };
@@ -340,6 +340,8 @@ interface MatrixItem {
340
340
  }
341
341
  /** Shape of the matrix status from the backend */
342
342
  interface MatrixStatus {
343
+ /** Selected input id (exclusive selection) */
344
+ si: number;
343
345
  ip: MatrixItem[];
344
346
  op: MatrixItem[];
345
347
  }
package/dist/index.d.ts CHANGED
@@ -320,7 +320,7 @@ interface MatrixItem {
320
320
  lb: string;
321
321
  gp: number;
322
322
  sl: {
323
- on: boolean;
323
+ on?: boolean;
324
324
  en: boolean;
325
325
  vs: boolean;
326
326
  };
@@ -340,6 +340,8 @@ interface MatrixItem {
340
340
  }
341
341
  /** Shape of the matrix status from the backend */
342
342
  interface MatrixStatus {
343
+ /** Selected input id (exclusive selection) */
344
+ si: number;
343
345
  ip: MatrixItem[];
344
346
  op: MatrixItem[];
345
347
  }
package/dist/index.js CHANGED
@@ -1418,6 +1418,7 @@ function DefaultSignalIndicator({ on }) {
1418
1418
  function MatrixItemRow({
1419
1419
  item,
1420
1420
  type,
1421
+ active,
1421
1422
  showChannels,
1422
1423
  onSelect,
1423
1424
  onToggleVideoMute,
@@ -1431,7 +1432,7 @@ function MatrixItemRow({
1431
1432
  renderIoIndicator,
1432
1433
  renderSignalIndicator
1433
1434
  }) {
1434
- const isActive = item.sl.on;
1435
+ const isActive = active;
1435
1436
  const isEnabled = item.sl.en;
1436
1437
  const classes = [
1437
1438
  "cris-co-matrix-item",
@@ -1501,7 +1502,7 @@ function CrisCoMatrixListsTie({
1501
1502
  const matrix = (0, import_cris_webui_ch5_core8.useCustomObject)(oid);
1502
1503
  const send = (0, import_cris_webui_ch5_core8.useCustomObjectSend)();
1503
1504
  if (!matrix) return null;
1504
- const { ip: inputs, op: outputs } = matrix;
1505
+ const { si, ip: inputs, op: outputs } = matrix;
1505
1506
  const handleSelectInput = (id) => {
1506
1507
  send(oid, { action: "selectInput", id });
1507
1508
  };
@@ -1536,6 +1537,7 @@ function CrisCoMatrixListsTie({
1536
1537
  {
1537
1538
  item,
1538
1539
  type: "input",
1540
+ active: si === item.id,
1539
1541
  showChannels,
1540
1542
  onSelect: () => handleSelectInput(item.id),
1541
1543
  onToggleVideoMute: () => handleToggleVideoMute("input", item.id),
@@ -1573,6 +1575,7 @@ function CrisCoMatrixListsTie({
1573
1575
  {
1574
1576
  item,
1575
1577
  type: "output",
1578
+ active: !!item.sl.on,
1576
1579
  showChannels,
1577
1580
  onSelect: () => handleTie(item.id),
1578
1581
  onToggleVideoMute: () => handleToggleVideoMute("output", item.id),