@iobroker/dm-utils 1.0.8 → 1.0.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/README.md +4 -0
- package/build/types/common.d.ts +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -301,6 +301,10 @@ This method returns a promise that resolves to a `ProgressDialog` object.
|
|
|
301
301
|
### **WORK IN PROGRESS**
|
|
302
302
|
-->
|
|
303
303
|
## Changelog
|
|
304
|
+
### 1.0.9 (2025-01-25)
|
|
305
|
+
|
|
306
|
+
* (@GermanBluefox) Added copyToClipboard dialog button
|
|
307
|
+
|
|
304
308
|
### 1.0.8 (2025-01-24)
|
|
305
309
|
|
|
306
310
|
* (@GermanBluefox) Removed `headerTextColor` to device info
|
package/build/types/common.d.ts
CHANGED
|
@@ -9,13 +9,16 @@ export type DeviceStatus = 'connected' | 'disconnected' | {
|
|
|
9
9
|
};
|
|
10
10
|
export type ActionButton = {
|
|
11
11
|
label: ioBroker.StringOrTranslated;
|
|
12
|
-
type: 'apply' | 'cancel';
|
|
12
|
+
type: 'apply' | 'cancel' | 'copyToClipboard';
|
|
13
13
|
noTranslation?: boolean;
|
|
14
14
|
/** base64 or icon name */
|
|
15
15
|
icon?: ConfigIconType;
|
|
16
16
|
variant?: 'contained' | 'outlined' | 'text';
|
|
17
17
|
style?: Record<string, number | string>;
|
|
18
|
+
/** Name of the attribute in data that should be copied to clipboard */
|
|
18
19
|
color?: 'primary' | 'secondary';
|
|
20
|
+
/** Name of the attribute in data that should be copied to clipboard */
|
|
21
|
+
copyToClipboardAttr?: string;
|
|
19
22
|
};
|
|
20
23
|
export type DeviceRefresh = 'device' | 'instance' | false | true;
|
|
21
24
|
export type RefreshResponse = {
|
|
@@ -854,6 +857,8 @@ export type BackEndCommandJsonFormOptions = {
|
|
|
854
857
|
title?: ioBroker.StringOrTranslated;
|
|
855
858
|
buttons?: (ActionButton | 'apply' | 'cancel' | 'close')[];
|
|
856
859
|
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
860
|
+
/** Minimal width of the dialog */
|
|
861
|
+
minWidth?: number;
|
|
857
862
|
noTranslation?: boolean;
|
|
858
863
|
};
|
|
859
864
|
export type JsonFormSchema = ConfigItemPanel | ConfigItemTabs;
|