@imperosoft/cris-webui-components 1.1.2 → 1.1.3-beta.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.
- package/dist/index.d.mts +91 -1
- package/dist/index.d.ts +91 -1
- package/dist/index.js +464 -80
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +454 -72
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -262,6 +262,44 @@ interface CrisOfflinePageProps {
|
|
|
262
262
|
}
|
|
263
263
|
declare function CrisOfflinePage({ processorHost: processorHostProp, hasAuthToken, isDevMode, isVC4, isDeployedOnProcessor, wsPort, showDebugInfo, loginRedirectDelay, loginPath, retryCountdown: retryCountdownInit, className, }: CrisOfflinePageProps): react_jsx_runtime.JSX.Element;
|
|
264
264
|
|
|
265
|
+
interface CrisTextInputProps {
|
|
266
|
+
/** Serial join to send text to */
|
|
267
|
+
join: number;
|
|
268
|
+
/** Serial join for feedback (defaults to join) */
|
|
269
|
+
joinFeedback?: number;
|
|
270
|
+
/** Digital join for enable state */
|
|
271
|
+
joinEnable?: number;
|
|
272
|
+
/** Digital join for visibility */
|
|
273
|
+
joinVisible?: number;
|
|
274
|
+
/** Placeholder text */
|
|
275
|
+
placeholder?: string;
|
|
276
|
+
/** Maximum character length */
|
|
277
|
+
maxLength?: number;
|
|
278
|
+
/** Input type (default: "text") */
|
|
279
|
+
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';
|
|
280
|
+
/** Send value on Enter key (default: true) */
|
|
281
|
+
submitOnEnter?: boolean;
|
|
282
|
+
/** Send value on blur/focus loss (default: false) */
|
|
283
|
+
submitOnBlur?: boolean;
|
|
284
|
+
/** Send value on every change (default: false) */
|
|
285
|
+
submitOnChange?: boolean;
|
|
286
|
+
/** Clear input after submit (default: false) */
|
|
287
|
+
clearOnSubmit?: boolean;
|
|
288
|
+
/** Container className */
|
|
289
|
+
className?: string;
|
|
290
|
+
/** Container style */
|
|
291
|
+
style?: CSSProperties;
|
|
292
|
+
/** Input element className */
|
|
293
|
+
inputClassName?: string;
|
|
294
|
+
/** Input element style */
|
|
295
|
+
inputStyle?: CSSProperties;
|
|
296
|
+
/** Class when disabled */
|
|
297
|
+
classDisabled?: string;
|
|
298
|
+
/** Class when focused */
|
|
299
|
+
classFocused?: string;
|
|
300
|
+
}
|
|
301
|
+
declare function CrisTextInput({ join, joinFeedback, joinEnable, joinVisible, placeholder, maxLength, type, submitOnEnter, submitOnBlur, submitOnChange, clearOnSubmit, className, style, inputClassName, inputStyle, classDisabled, classFocused: classFocusedProp, }: CrisTextInputProps): react_jsx_runtime.JSX.Element | null;
|
|
302
|
+
|
|
265
303
|
/** Shape of a single module from the backend */
|
|
266
304
|
interface DebugModule {
|
|
267
305
|
id: string;
|
|
@@ -314,6 +352,58 @@ interface CrisCoDebugProps {
|
|
|
314
352
|
}
|
|
315
353
|
declare function CrisCoDebug({ oid, title, className, style, itemClassName, itemStyle, buttonClassName, buttonActiveClassName, iconEthOn, iconEthOff, iconRs232On, iconRs232Off, }: CrisCoDebugProps): react_jsx_runtime.JSX.Element | null;
|
|
316
354
|
|
|
355
|
+
/** Shape of a list item from the backend */
|
|
356
|
+
interface ListItem {
|
|
357
|
+
id: number;
|
|
358
|
+
lb: string;
|
|
359
|
+
/** Enabled state (default: true) */
|
|
360
|
+
en?: boolean;
|
|
361
|
+
/** Visible in list (default: true) */
|
|
362
|
+
vs?: boolean;
|
|
363
|
+
/** Additional data — available via renderItem */
|
|
364
|
+
[key: string]: unknown;
|
|
365
|
+
}
|
|
366
|
+
/** Shape of the list status from the backend */
|
|
367
|
+
interface ListStatus {
|
|
368
|
+
/** Settings (extensible, passed to renderItem via props) */
|
|
369
|
+
st?: Record<string, unknown>;
|
|
370
|
+
/** Selected item id */
|
|
371
|
+
si?: number;
|
|
372
|
+
/** List items */
|
|
373
|
+
it: ListItem[];
|
|
374
|
+
}
|
|
375
|
+
interface CrisCoListProps {
|
|
376
|
+
/** Custom object ID */
|
|
377
|
+
oid: string;
|
|
378
|
+
/** List title */
|
|
379
|
+
title?: string;
|
|
380
|
+
/** Show item id prefix before label (default: true) */
|
|
381
|
+
showIds?: boolean;
|
|
382
|
+
/** Action name sent on selection (default: "select") */
|
|
383
|
+
selectAction?: string;
|
|
384
|
+
/** Custom item renderer — receives item and selected state */
|
|
385
|
+
renderItem?: (item: ListItem, selected: boolean, settings?: Record<string, unknown>) => ReactNode;
|
|
386
|
+
/** Container className */
|
|
387
|
+
className?: string;
|
|
388
|
+
/** Container style */
|
|
389
|
+
style?: CSSProperties;
|
|
390
|
+
/** Header className */
|
|
391
|
+
headerClassName?: string;
|
|
392
|
+
/** Header style */
|
|
393
|
+
headerStyle?: CSSProperties;
|
|
394
|
+
/** Item className */
|
|
395
|
+
itemClassName?: string;
|
|
396
|
+
/** Item style */
|
|
397
|
+
itemStyle?: CSSProperties;
|
|
398
|
+
/** Item active (selected) className */
|
|
399
|
+
itemActiveClassName?: string;
|
|
400
|
+
/** Item active style */
|
|
401
|
+
itemActiveStyle?: CSSProperties;
|
|
402
|
+
/** Item disabled className */
|
|
403
|
+
itemDisabledClassName?: string;
|
|
404
|
+
}
|
|
405
|
+
declare function CrisCoList({ oid, title, showIds, selectAction, renderItem, className, style, headerClassName, headerStyle, itemClassName, itemStyle, itemActiveClassName, itemActiveStyle, itemDisabledClassName, }: CrisCoListProps): react_jsx_runtime.JSX.Element | null;
|
|
406
|
+
|
|
317
407
|
/** Shape of an input or output item from the backend */
|
|
318
408
|
interface MatrixItem {
|
|
319
409
|
id: number;
|
|
@@ -441,4 +531,4 @@ declare function getIconUrl(name: string): string;
|
|
|
441
531
|
*/
|
|
442
532
|
declare function getIconFilter(active: boolean): string | undefined;
|
|
443
533
|
|
|
444
|
-
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 };
|
|
534
|
+
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, CrisTextInput, type CrisTextInputProps, 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
|
@@ -262,6 +262,44 @@ interface CrisOfflinePageProps {
|
|
|
262
262
|
}
|
|
263
263
|
declare function CrisOfflinePage({ processorHost: processorHostProp, hasAuthToken, isDevMode, isVC4, isDeployedOnProcessor, wsPort, showDebugInfo, loginRedirectDelay, loginPath, retryCountdown: retryCountdownInit, className, }: CrisOfflinePageProps): react_jsx_runtime.JSX.Element;
|
|
264
264
|
|
|
265
|
+
interface CrisTextInputProps {
|
|
266
|
+
/** Serial join to send text to */
|
|
267
|
+
join: number;
|
|
268
|
+
/** Serial join for feedback (defaults to join) */
|
|
269
|
+
joinFeedback?: number;
|
|
270
|
+
/** Digital join for enable state */
|
|
271
|
+
joinEnable?: number;
|
|
272
|
+
/** Digital join for visibility */
|
|
273
|
+
joinVisible?: number;
|
|
274
|
+
/** Placeholder text */
|
|
275
|
+
placeholder?: string;
|
|
276
|
+
/** Maximum character length */
|
|
277
|
+
maxLength?: number;
|
|
278
|
+
/** Input type (default: "text") */
|
|
279
|
+
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';
|
|
280
|
+
/** Send value on Enter key (default: true) */
|
|
281
|
+
submitOnEnter?: boolean;
|
|
282
|
+
/** Send value on blur/focus loss (default: false) */
|
|
283
|
+
submitOnBlur?: boolean;
|
|
284
|
+
/** Send value on every change (default: false) */
|
|
285
|
+
submitOnChange?: boolean;
|
|
286
|
+
/** Clear input after submit (default: false) */
|
|
287
|
+
clearOnSubmit?: boolean;
|
|
288
|
+
/** Container className */
|
|
289
|
+
className?: string;
|
|
290
|
+
/** Container style */
|
|
291
|
+
style?: CSSProperties;
|
|
292
|
+
/** Input element className */
|
|
293
|
+
inputClassName?: string;
|
|
294
|
+
/** Input element style */
|
|
295
|
+
inputStyle?: CSSProperties;
|
|
296
|
+
/** Class when disabled */
|
|
297
|
+
classDisabled?: string;
|
|
298
|
+
/** Class when focused */
|
|
299
|
+
classFocused?: string;
|
|
300
|
+
}
|
|
301
|
+
declare function CrisTextInput({ join, joinFeedback, joinEnable, joinVisible, placeholder, maxLength, type, submitOnEnter, submitOnBlur, submitOnChange, clearOnSubmit, className, style, inputClassName, inputStyle, classDisabled, classFocused: classFocusedProp, }: CrisTextInputProps): react_jsx_runtime.JSX.Element | null;
|
|
302
|
+
|
|
265
303
|
/** Shape of a single module from the backend */
|
|
266
304
|
interface DebugModule {
|
|
267
305
|
id: string;
|
|
@@ -314,6 +352,58 @@ interface CrisCoDebugProps {
|
|
|
314
352
|
}
|
|
315
353
|
declare function CrisCoDebug({ oid, title, className, style, itemClassName, itemStyle, buttonClassName, buttonActiveClassName, iconEthOn, iconEthOff, iconRs232On, iconRs232Off, }: CrisCoDebugProps): react_jsx_runtime.JSX.Element | null;
|
|
316
354
|
|
|
355
|
+
/** Shape of a list item from the backend */
|
|
356
|
+
interface ListItem {
|
|
357
|
+
id: number;
|
|
358
|
+
lb: string;
|
|
359
|
+
/** Enabled state (default: true) */
|
|
360
|
+
en?: boolean;
|
|
361
|
+
/** Visible in list (default: true) */
|
|
362
|
+
vs?: boolean;
|
|
363
|
+
/** Additional data — available via renderItem */
|
|
364
|
+
[key: string]: unknown;
|
|
365
|
+
}
|
|
366
|
+
/** Shape of the list status from the backend */
|
|
367
|
+
interface ListStatus {
|
|
368
|
+
/** Settings (extensible, passed to renderItem via props) */
|
|
369
|
+
st?: Record<string, unknown>;
|
|
370
|
+
/** Selected item id */
|
|
371
|
+
si?: number;
|
|
372
|
+
/** List items */
|
|
373
|
+
it: ListItem[];
|
|
374
|
+
}
|
|
375
|
+
interface CrisCoListProps {
|
|
376
|
+
/** Custom object ID */
|
|
377
|
+
oid: string;
|
|
378
|
+
/** List title */
|
|
379
|
+
title?: string;
|
|
380
|
+
/** Show item id prefix before label (default: true) */
|
|
381
|
+
showIds?: boolean;
|
|
382
|
+
/** Action name sent on selection (default: "select") */
|
|
383
|
+
selectAction?: string;
|
|
384
|
+
/** Custom item renderer — receives item and selected state */
|
|
385
|
+
renderItem?: (item: ListItem, selected: boolean, settings?: Record<string, unknown>) => ReactNode;
|
|
386
|
+
/** Container className */
|
|
387
|
+
className?: string;
|
|
388
|
+
/** Container style */
|
|
389
|
+
style?: CSSProperties;
|
|
390
|
+
/** Header className */
|
|
391
|
+
headerClassName?: string;
|
|
392
|
+
/** Header style */
|
|
393
|
+
headerStyle?: CSSProperties;
|
|
394
|
+
/** Item className */
|
|
395
|
+
itemClassName?: string;
|
|
396
|
+
/** Item style */
|
|
397
|
+
itemStyle?: CSSProperties;
|
|
398
|
+
/** Item active (selected) className */
|
|
399
|
+
itemActiveClassName?: string;
|
|
400
|
+
/** Item active style */
|
|
401
|
+
itemActiveStyle?: CSSProperties;
|
|
402
|
+
/** Item disabled className */
|
|
403
|
+
itemDisabledClassName?: string;
|
|
404
|
+
}
|
|
405
|
+
declare function CrisCoList({ oid, title, showIds, selectAction, renderItem, className, style, headerClassName, headerStyle, itemClassName, itemStyle, itemActiveClassName, itemActiveStyle, itemDisabledClassName, }: CrisCoListProps): react_jsx_runtime.JSX.Element | null;
|
|
406
|
+
|
|
317
407
|
/** Shape of an input or output item from the backend */
|
|
318
408
|
interface MatrixItem {
|
|
319
409
|
id: number;
|
|
@@ -441,4 +531,4 @@ declare function getIconUrl(name: string): string;
|
|
|
441
531
|
*/
|
|
442
532
|
declare function getIconFilter(active: boolean): string | undefined;
|
|
443
533
|
|
|
444
|
-
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 };
|
|
534
|
+
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, CrisTextInput, type CrisTextInputProps, type CrisTextProps, type DebugModule, type IconConfig, type ListItem, type ListStatus, type MatrixItem, type MatrixStatus, type SpinnerSpeed, configureIcons, getIconConfig, getIconFilter, getIconUrl };
|