@iobroker/dm-utils 1.0.7 → 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 CHANGED
@@ -301,9 +301,13 @@ This method returns a promise that resolves to a `ProgressDialog` object.
301
301
  ### **WORK IN PROGRESS**
302
302
  -->
303
303
  ## Changelog
304
- ### 1.0.7 (2025-01-24)
304
+ ### 1.0.9 (2025-01-25)
305
305
 
306
- * (@GermanBluefox) Added `headerTextColor` to device info
306
+ * (@GermanBluefox) Added copyToClipboard dialog button
307
+
308
+ ### 1.0.8 (2025-01-24)
309
+
310
+ * (@GermanBluefox) Removed `headerTextColor` to device info
307
311
 
308
312
  ### 1.0.6 (2025-01-14)
309
313
 
@@ -63,6 +63,7 @@ export interface ControlBase {
63
63
  iconOn?: string;
64
64
  min?: number;
65
65
  max?: number;
66
+ step?: number;
66
67
  unit?: string;
67
68
  label?: ioBroker.StringOrTranslated;
68
69
  labelOn?: ioBroker.StringOrTranslated;
@@ -108,8 +109,6 @@ export interface DeviceInfo<T extends ActionType = 'api'> {
108
109
  model?: ioBroker.StringOrTranslated;
109
110
  /** Color or 'primary', 'secondary' for the text in the card header */
110
111
  color?: Color;
111
- /** Color of the text in the card header */
112
- headerTextColor?: Color;
113
112
  /** Background color of card header (you can use primary, secondary or color rgb value or hex) */
114
113
  backgroundColor?: Color;
115
114
  status?: DeviceStatus | DeviceStatus[];
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/dm-utils",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "ioBroker Device Manager utilities for backend",
5
5
  "main": "build/index.js",
6
6
  "publishConfig": {