@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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1381,6 +1381,7 @@ function DefaultSignalIndicator({ on }) {
|
|
|
1381
1381
|
function MatrixItemRow({
|
|
1382
1382
|
item,
|
|
1383
1383
|
type,
|
|
1384
|
+
active,
|
|
1384
1385
|
showChannels,
|
|
1385
1386
|
onSelect,
|
|
1386
1387
|
onToggleVideoMute,
|
|
@@ -1394,7 +1395,7 @@ function MatrixItemRow({
|
|
|
1394
1395
|
renderIoIndicator,
|
|
1395
1396
|
renderSignalIndicator
|
|
1396
1397
|
}) {
|
|
1397
|
-
const isActive =
|
|
1398
|
+
const isActive = active;
|
|
1398
1399
|
const isEnabled = item.sl.en;
|
|
1399
1400
|
const classes = [
|
|
1400
1401
|
"cris-co-matrix-item",
|
|
@@ -1464,7 +1465,7 @@ function CrisCoMatrixListsTie({
|
|
|
1464
1465
|
const matrix = useCustomObject2(oid);
|
|
1465
1466
|
const send = useCustomObjectSend2();
|
|
1466
1467
|
if (!matrix) return null;
|
|
1467
|
-
const { ip: inputs, op: outputs } = matrix;
|
|
1468
|
+
const { si, ip: inputs, op: outputs } = matrix;
|
|
1468
1469
|
const handleSelectInput = (id) => {
|
|
1469
1470
|
send(oid, { action: "selectInput", id });
|
|
1470
1471
|
};
|
|
@@ -1499,6 +1500,7 @@ function CrisCoMatrixListsTie({
|
|
|
1499
1500
|
{
|
|
1500
1501
|
item,
|
|
1501
1502
|
type: "input",
|
|
1503
|
+
active: si === item.id,
|
|
1502
1504
|
showChannels,
|
|
1503
1505
|
onSelect: () => handleSelectInput(item.id),
|
|
1504
1506
|
onToggleVideoMute: () => handleToggleVideoMute("input", item.id),
|
|
@@ -1536,6 +1538,7 @@ function CrisCoMatrixListsTie({
|
|
|
1536
1538
|
{
|
|
1537
1539
|
item,
|
|
1538
1540
|
type: "output",
|
|
1541
|
+
active: !!item.sl.on,
|
|
1539
1542
|
showChannels,
|
|
1540
1543
|
onSelect: () => handleTie(item.id),
|
|
1541
1544
|
onToggleVideoMute: () => handleToggleVideoMute("output", item.id),
|