@iobroker/dm-utils 0.6.6 → 0.6.7
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/README.md +4 -0
- package/build/types/common.d.ts +20 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -295,6 +295,10 @@ This method returns a promise that resolves to a `ProgressDialog` object.
|
|
|
295
295
|
### **WORK IN PROGRESS**
|
|
296
296
|
-->
|
|
297
297
|
## Changelog
|
|
298
|
+
### 0.6.7 (2024-11-20)
|
|
299
|
+
|
|
300
|
+
* (@GermanBluefox) Updated types
|
|
301
|
+
|
|
298
302
|
### 0.6.6 (2024-11-18)
|
|
299
303
|
|
|
300
304
|
* (@GermanBluefox) Added configurable buttons for form
|
package/build/types/common.d.ts
CHANGED
|
@@ -374,6 +374,12 @@ export interface ConfigItemStaticInfo extends Omit<ConfigItem, 'data'> {
|
|
|
374
374
|
styleUnit?: CustomCSSProperties;
|
|
375
375
|
/** Font size */
|
|
376
376
|
size?: number | 'small' | 'normal' | 'large';
|
|
377
|
+
/** Highlight line on mouse over */
|
|
378
|
+
highlight?: boolean;
|
|
379
|
+
/** Show boolean values as checkbox */
|
|
380
|
+
booleanAsCheckbox?: boolean;
|
|
381
|
+
/** Show string values as HTML */
|
|
382
|
+
html?: boolean;
|
|
377
383
|
}
|
|
378
384
|
export interface ConfigItemRoom extends ConfigItem {
|
|
379
385
|
type: 'room';
|
|
@@ -538,9 +544,11 @@ export interface ConfigItemSendTo extends Omit<ConfigItem, 'data'> {
|
|
|
538
544
|
}
|
|
539
545
|
export interface ConfigItemState extends ConfigItem {
|
|
540
546
|
type: 'state';
|
|
541
|
-
/** Describes, which object ID should be taken for the controlling. The ID is without
|
|
547
|
+
/** Describes, which object ID should be taken for the controlling. The ID is without `ADAPTER.I.` prefix */
|
|
542
548
|
oid: string;
|
|
543
|
-
/**
|
|
549
|
+
/** The `oid` is absolute and no need to add `ADAPTER.I` or `system.adapter.ADAPTER.I.` to oid */
|
|
550
|
+
foreign?: boolean;
|
|
551
|
+
/** If true, the state will be taken from `system.adapter.ADAPTER.I` and not from `ADAPTER.I` */
|
|
544
552
|
system?: boolean;
|
|
545
553
|
/** How the value of the state should be shown */
|
|
546
554
|
control?: 'text' | 'html' | 'input' | 'slider' | 'select' | 'button' | 'switch' | 'number';
|
|
@@ -572,6 +580,16 @@ export interface ConfigItemState extends ConfigItem {
|
|
|
572
580
|
variant?: 'contained' | 'outlined' | 'text';
|
|
573
581
|
/** Defines if the control is read-only. Applied only to 'input', 'slider', 'select', 'button', 'switch', 'number' */
|
|
574
582
|
readOnly?: boolean;
|
|
583
|
+
/** Base64 icon */
|
|
584
|
+
labelIcon?: string;
|
|
585
|
+
/** Normally the title and value are shown on the left and right of the line. With this flag, the value will appear just after the label*/
|
|
586
|
+
narrow?: boolean;
|
|
587
|
+
/** Add to label the colon at the end if not exist in label */
|
|
588
|
+
addColon?: boolean;
|
|
589
|
+
/** Value should blink when updated (true or color) */
|
|
590
|
+
blinkOnUpdate?: boolean | string;
|
|
591
|
+
/** Font size */
|
|
592
|
+
size?: number | 'small' | 'normal' | 'large';
|
|
575
593
|
}
|
|
576
594
|
export interface ConfigItemTextSendTo extends Omit<ConfigItem, 'data'> {
|
|
577
595
|
type: 'textSendTo';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/dm-utils",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "ioBroker Device Manager utilities for backend",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@alcalzone/release-script": "^3.8.0",
|
|
29
29
|
"@alcalzone/release-script-plugin-license": "^3.7.0",
|
|
30
30
|
"@iobroker/eslint-config": "^1.0.0",
|
|
31
|
-
"@types/node": "^22.9.
|
|
31
|
+
"@types/node": "^22.9.1",
|
|
32
32
|
"axios": "^1.7.7",
|
|
33
33
|
"typescript": "^5.6.3"
|
|
34
34
|
},
|