@imperosoft/cris-webui-components 1.1.2-beta.9 → 1.1.3-beta.0
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 +59 -3
- package/dist/index.d.ts +59 -3
- package/dist/index.js +441 -63
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +440 -63
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -314,16 +314,70 @@ interface CrisCoDebugProps {
|
|
|
314
314
|
}
|
|
315
315
|
declare function CrisCoDebug({ oid, title, className, style, itemClassName, itemStyle, buttonClassName, buttonActiveClassName, iconEthOn, iconEthOff, iconRs232On, iconRs232Off, }: CrisCoDebugProps): react_jsx_runtime.JSX.Element | null;
|
|
316
316
|
|
|
317
|
+
/** Shape of a list item from the backend */
|
|
318
|
+
interface ListItem {
|
|
319
|
+
id: number;
|
|
320
|
+
lb: string;
|
|
321
|
+
/** Enabled state (default: true) */
|
|
322
|
+
en?: boolean;
|
|
323
|
+
/** Visible in list (default: true) */
|
|
324
|
+
vs?: boolean;
|
|
325
|
+
/** Additional data — available via renderItem */
|
|
326
|
+
[key: string]: unknown;
|
|
327
|
+
}
|
|
328
|
+
/** Shape of the list status from the backend */
|
|
329
|
+
interface ListStatus {
|
|
330
|
+
/** Settings (extensible, passed to renderItem via props) */
|
|
331
|
+
st?: Record<string, unknown>;
|
|
332
|
+
/** Selected item id */
|
|
333
|
+
si?: number;
|
|
334
|
+
/** List items */
|
|
335
|
+
it: ListItem[];
|
|
336
|
+
}
|
|
337
|
+
interface CrisCoListProps {
|
|
338
|
+
/** Custom object ID */
|
|
339
|
+
oid: string;
|
|
340
|
+
/** List title */
|
|
341
|
+
title?: string;
|
|
342
|
+
/** Show item id prefix before label (default: true) */
|
|
343
|
+
showIds?: boolean;
|
|
344
|
+
/** Action name sent on selection (default: "select") */
|
|
345
|
+
selectAction?: string;
|
|
346
|
+
/** Custom item renderer — receives item and selected state */
|
|
347
|
+
renderItem?: (item: ListItem, selected: boolean, settings?: Record<string, unknown>) => ReactNode;
|
|
348
|
+
/** Container className */
|
|
349
|
+
className?: string;
|
|
350
|
+
/** Container style */
|
|
351
|
+
style?: CSSProperties;
|
|
352
|
+
/** Header className */
|
|
353
|
+
headerClassName?: string;
|
|
354
|
+
/** Header style */
|
|
355
|
+
headerStyle?: CSSProperties;
|
|
356
|
+
/** Item className */
|
|
357
|
+
itemClassName?: string;
|
|
358
|
+
/** Item style */
|
|
359
|
+
itemStyle?: CSSProperties;
|
|
360
|
+
/** Item active (selected) className */
|
|
361
|
+
itemActiveClassName?: string;
|
|
362
|
+
/** Item active style */
|
|
363
|
+
itemActiveStyle?: CSSProperties;
|
|
364
|
+
/** Item disabled className */
|
|
365
|
+
itemDisabledClassName?: string;
|
|
366
|
+
}
|
|
367
|
+
declare function CrisCoList({ oid, title, showIds, selectAction, renderItem, className, style, headerClassName, headerStyle, itemClassName, itemStyle, itemActiveClassName, itemActiveStyle, itemDisabledClassName, }: CrisCoListProps): react_jsx_runtime.JSX.Element | null;
|
|
368
|
+
|
|
317
369
|
/** Shape of an input or output item from the backend */
|
|
318
370
|
interface MatrixItem {
|
|
319
371
|
id: number;
|
|
320
372
|
lb: string;
|
|
321
373
|
gp: number;
|
|
374
|
+
/** Selection state: en=enabled, vs=visible */
|
|
322
375
|
sl: {
|
|
323
|
-
on?: boolean;
|
|
324
376
|
en: boolean;
|
|
325
377
|
vs: boolean;
|
|
326
378
|
};
|
|
379
|
+
/** Tied input id (outputs only) — which input is routed to this output */
|
|
380
|
+
ti?: number;
|
|
327
381
|
io: {
|
|
328
382
|
on: boolean;
|
|
329
383
|
vs: boolean;
|
|
@@ -374,6 +428,8 @@ interface CrisCoMatrixListsTieProps {
|
|
|
374
428
|
itemActiveStyle?: CSSProperties;
|
|
375
429
|
/** Item disabled className */
|
|
376
430
|
itemDisabledClassName?: string;
|
|
431
|
+
/** Video mute button text (default: "Mute") */
|
|
432
|
+
vmText?: string;
|
|
377
433
|
/** Video mute button className */
|
|
378
434
|
vmButtonClassName?: string;
|
|
379
435
|
/** Video mute button active className */
|
|
@@ -385,7 +441,7 @@ interface CrisCoMatrixListsTieProps {
|
|
|
385
441
|
/** Custom render for signal indicator */
|
|
386
442
|
renderSignalIndicator?: (on: boolean) => ReactNode;
|
|
387
443
|
}
|
|
388
|
-
declare function CrisCoMatrixListsTie({ oid, inputTitle, outputTitle, showChannels, className, style, listClassName, listStyle, headerClassName, headerStyle, itemClassName, itemStyle, itemActiveClassName, itemActiveStyle, itemDisabledClassName, vmButtonClassName, vmButtonActiveClassName, renderIoIndicator, renderSignalIndicator, }: CrisCoMatrixListsTieProps): react_jsx_runtime.JSX.Element | null;
|
|
444
|
+
declare function CrisCoMatrixListsTie({ oid, inputTitle, outputTitle, showChannels, className, style, listClassName, listStyle, headerClassName, headerStyle, itemClassName, itemStyle, itemActiveClassName, itemActiveStyle, itemDisabledClassName, vmText, vmButtonClassName, vmButtonActiveClassName, renderIoIndicator, renderSignalIndicator, }: CrisCoMatrixListsTieProps): react_jsx_runtime.JSX.Element | null;
|
|
389
445
|
|
|
390
446
|
/**
|
|
391
447
|
* Icon configuration and utilities for CRIS components
|
|
@@ -437,4 +493,4 @@ declare function getIconUrl(name: string): string;
|
|
|
437
493
|
*/
|
|
438
494
|
declare function getIconFilter(active: boolean): string | undefined;
|
|
439
495
|
|
|
440
|
-
export { CrisButton, type CrisButtonProps, CrisCoDebug, type CrisCoDebugProps, CrisCoMatrixListsTie, type CrisCoMatrixListsTieProps, CrisGauge, type CrisGaugeProps, CrisOfflinePage, type CrisOfflinePageProps, CrisSlider, type CrisSliderProps, CrisSpinner, type CrisSpinnerProps, CrisText, type CrisTextProps, type DebugModule, type IconConfig, type MatrixItem, type MatrixStatus, type SpinnerSpeed, configureIcons, getIconConfig, getIconFilter, getIconUrl };
|
|
496
|
+
export { CrisButton, type CrisButtonProps, CrisCoDebug, type CrisCoDebugProps, CrisCoList, type CrisCoListProps, CrisCoMatrixListsTie, type CrisCoMatrixListsTieProps, CrisGauge, type CrisGaugeProps, CrisOfflinePage, type CrisOfflinePageProps, CrisSlider, type CrisSliderProps, CrisSpinner, type CrisSpinnerProps, CrisText, type CrisTextProps, type DebugModule, type IconConfig, type ListItem, type ListStatus, type MatrixItem, type MatrixStatus, type SpinnerSpeed, configureIcons, getIconConfig, getIconFilter, getIconUrl };
|
package/dist/index.d.ts
CHANGED
|
@@ -314,16 +314,70 @@ interface CrisCoDebugProps {
|
|
|
314
314
|
}
|
|
315
315
|
declare function CrisCoDebug({ oid, title, className, style, itemClassName, itemStyle, buttonClassName, buttonActiveClassName, iconEthOn, iconEthOff, iconRs232On, iconRs232Off, }: CrisCoDebugProps): react_jsx_runtime.JSX.Element | null;
|
|
316
316
|
|
|
317
|
+
/** Shape of a list item from the backend */
|
|
318
|
+
interface ListItem {
|
|
319
|
+
id: number;
|
|
320
|
+
lb: string;
|
|
321
|
+
/** Enabled state (default: true) */
|
|
322
|
+
en?: boolean;
|
|
323
|
+
/** Visible in list (default: true) */
|
|
324
|
+
vs?: boolean;
|
|
325
|
+
/** Additional data — available via renderItem */
|
|
326
|
+
[key: string]: unknown;
|
|
327
|
+
}
|
|
328
|
+
/** Shape of the list status from the backend */
|
|
329
|
+
interface ListStatus {
|
|
330
|
+
/** Settings (extensible, passed to renderItem via props) */
|
|
331
|
+
st?: Record<string, unknown>;
|
|
332
|
+
/** Selected item id */
|
|
333
|
+
si?: number;
|
|
334
|
+
/** List items */
|
|
335
|
+
it: ListItem[];
|
|
336
|
+
}
|
|
337
|
+
interface CrisCoListProps {
|
|
338
|
+
/** Custom object ID */
|
|
339
|
+
oid: string;
|
|
340
|
+
/** List title */
|
|
341
|
+
title?: string;
|
|
342
|
+
/** Show item id prefix before label (default: true) */
|
|
343
|
+
showIds?: boolean;
|
|
344
|
+
/** Action name sent on selection (default: "select") */
|
|
345
|
+
selectAction?: string;
|
|
346
|
+
/** Custom item renderer — receives item and selected state */
|
|
347
|
+
renderItem?: (item: ListItem, selected: boolean, settings?: Record<string, unknown>) => ReactNode;
|
|
348
|
+
/** Container className */
|
|
349
|
+
className?: string;
|
|
350
|
+
/** Container style */
|
|
351
|
+
style?: CSSProperties;
|
|
352
|
+
/** Header className */
|
|
353
|
+
headerClassName?: string;
|
|
354
|
+
/** Header style */
|
|
355
|
+
headerStyle?: CSSProperties;
|
|
356
|
+
/** Item className */
|
|
357
|
+
itemClassName?: string;
|
|
358
|
+
/** Item style */
|
|
359
|
+
itemStyle?: CSSProperties;
|
|
360
|
+
/** Item active (selected) className */
|
|
361
|
+
itemActiveClassName?: string;
|
|
362
|
+
/** Item active style */
|
|
363
|
+
itemActiveStyle?: CSSProperties;
|
|
364
|
+
/** Item disabled className */
|
|
365
|
+
itemDisabledClassName?: string;
|
|
366
|
+
}
|
|
367
|
+
declare function CrisCoList({ oid, title, showIds, selectAction, renderItem, className, style, headerClassName, headerStyle, itemClassName, itemStyle, itemActiveClassName, itemActiveStyle, itemDisabledClassName, }: CrisCoListProps): react_jsx_runtime.JSX.Element | null;
|
|
368
|
+
|
|
317
369
|
/** Shape of an input or output item from the backend */
|
|
318
370
|
interface MatrixItem {
|
|
319
371
|
id: number;
|
|
320
372
|
lb: string;
|
|
321
373
|
gp: number;
|
|
374
|
+
/** Selection state: en=enabled, vs=visible */
|
|
322
375
|
sl: {
|
|
323
|
-
on?: boolean;
|
|
324
376
|
en: boolean;
|
|
325
377
|
vs: boolean;
|
|
326
378
|
};
|
|
379
|
+
/** Tied input id (outputs only) — which input is routed to this output */
|
|
380
|
+
ti?: number;
|
|
327
381
|
io: {
|
|
328
382
|
on: boolean;
|
|
329
383
|
vs: boolean;
|
|
@@ -374,6 +428,8 @@ interface CrisCoMatrixListsTieProps {
|
|
|
374
428
|
itemActiveStyle?: CSSProperties;
|
|
375
429
|
/** Item disabled className */
|
|
376
430
|
itemDisabledClassName?: string;
|
|
431
|
+
/** Video mute button text (default: "Mute") */
|
|
432
|
+
vmText?: string;
|
|
377
433
|
/** Video mute button className */
|
|
378
434
|
vmButtonClassName?: string;
|
|
379
435
|
/** Video mute button active className */
|
|
@@ -385,7 +441,7 @@ interface CrisCoMatrixListsTieProps {
|
|
|
385
441
|
/** Custom render for signal indicator */
|
|
386
442
|
renderSignalIndicator?: (on: boolean) => ReactNode;
|
|
387
443
|
}
|
|
388
|
-
declare function CrisCoMatrixListsTie({ oid, inputTitle, outputTitle, showChannels, className, style, listClassName, listStyle, headerClassName, headerStyle, itemClassName, itemStyle, itemActiveClassName, itemActiveStyle, itemDisabledClassName, vmButtonClassName, vmButtonActiveClassName, renderIoIndicator, renderSignalIndicator, }: CrisCoMatrixListsTieProps): react_jsx_runtime.JSX.Element | null;
|
|
444
|
+
declare function CrisCoMatrixListsTie({ oid, inputTitle, outputTitle, showChannels, className, style, listClassName, listStyle, headerClassName, headerStyle, itemClassName, itemStyle, itemActiveClassName, itemActiveStyle, itemDisabledClassName, vmText, vmButtonClassName, vmButtonActiveClassName, renderIoIndicator, renderSignalIndicator, }: CrisCoMatrixListsTieProps): react_jsx_runtime.JSX.Element | null;
|
|
389
445
|
|
|
390
446
|
/**
|
|
391
447
|
* Icon configuration and utilities for CRIS components
|
|
@@ -437,4 +493,4 @@ declare function getIconUrl(name: string): string;
|
|
|
437
493
|
*/
|
|
438
494
|
declare function getIconFilter(active: boolean): string | undefined;
|
|
439
495
|
|
|
440
|
-
export { CrisButton, type CrisButtonProps, CrisCoDebug, type CrisCoDebugProps, CrisCoMatrixListsTie, type CrisCoMatrixListsTieProps, CrisGauge, type CrisGaugeProps, CrisOfflinePage, type CrisOfflinePageProps, CrisSlider, type CrisSliderProps, CrisSpinner, type CrisSpinnerProps, CrisText, type CrisTextProps, type DebugModule, type IconConfig, type MatrixItem, type MatrixStatus, type SpinnerSpeed, configureIcons, getIconConfig, getIconFilter, getIconUrl };
|
|
496
|
+
export { CrisButton, type CrisButtonProps, CrisCoDebug, type CrisCoDebugProps, CrisCoList, type CrisCoListProps, CrisCoMatrixListsTie, type CrisCoMatrixListsTieProps, CrisGauge, type CrisGaugeProps, CrisOfflinePage, type CrisOfflinePageProps, CrisSlider, type CrisSliderProps, CrisSpinner, type CrisSpinnerProps, CrisText, type CrisTextProps, type DebugModule, type IconConfig, type ListItem, type ListStatus, type MatrixItem, type MatrixStatus, type SpinnerSpeed, configureIcons, getIconConfig, getIconFilter, getIconUrl };
|