@iobroker/dm-utils 1.0.8 → 1.0.10

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,6 +301,15 @@ This method returns a promise that resolves to a `ProgressDialog` object.
301
301
  ### **WORK IN PROGRESS**
302
302
  -->
303
303
  ## Changelog
304
+ ### 1.0.10 (2025-05-05)
305
+
306
+ * (@GermanBluefox) Added timeout property to actions
307
+ * (@GermanBluefox) Updated packages
308
+
309
+ ### 1.0.9 (2025-01-25)
310
+
311
+ * (@GermanBluefox) Added copyToClipboard dialog button
312
+
304
313
  ### 1.0.8 (2025-01-24)
305
314
 
306
315
  * (@GermanBluefox) Removed `headerTextColor` to device info
@@ -45,6 +45,8 @@ export interface ActionBase<T extends ActionType> {
45
45
  /** Step value for the input (number or slider) */
46
46
  step?: number;
47
47
  };
48
+ /** Timeout in ms for waiting an answer from backend */
49
+ timeout?: number;
48
50
  }
49
51
  export interface ChannelInfo {
50
52
  name: ioBroker.StringOrTranslated;
@@ -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.8",
3
+ "version": "1.0.10",
4
4
  "description": "ioBroker Device Manager utilities for backend",
5
5
  "main": "build/index.js",
6
6
  "publishConfig": {
@@ -27,10 +27,10 @@
27
27
  "devDependencies": {
28
28
  "@alcalzone/release-script": "^3.8.0",
29
29
  "@alcalzone/release-script-plugin-license": "^3.7.0",
30
- "@iobroker/eslint-config": "^1.0.0",
31
- "@types/node": "^22.10.10",
32
- "axios": "^1.7.9",
33
- "typescript": "^5.7.3"
30
+ "@iobroker/eslint-config": "^2.0.1",
31
+ "@types/node": "^22.15.3",
32
+ "axios": "^1.9.0",
33
+ "typescript": "^5.8.3"
34
34
  },
35
35
  "files": [
36
36
  "LICENSE",