@iobroker/dm-utils 0.6.3 → 0.6.5
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 +2 -2
- package/build/ActionContext.d.ts +1 -1
- package/build/DeviceManagement.d.ts +1 -1
- package/build/types/common.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -271,7 +271,7 @@ The method has the following parameters:
|
|
|
271
271
|
- `options` (object, optional): options to configure the dialog further
|
|
272
272
|
- `indeterminate` (boolean, optional): set to `true` to visualize an unspecified wait time
|
|
273
273
|
- `value` (number, optional): the progress value to show to the user (if set, it must be a value between 0 and 100)
|
|
274
|
-
- `label` (string, optional): label to show to the right of the progress bar; you may show the progress value in a human
|
|
274
|
+
- `label` (string, optional): label to show to the right of the progress bar; you may show the progress value in a human-readable way (e.g. "42%") or show the current step in a multi-step progress (e.g. "Logging in...")
|
|
275
275
|
|
|
276
276
|
This method returns a promise that resolves to a `ProgressDialog` object.
|
|
277
277
|
|
|
@@ -295,7 +295,7 @@ This method returns a promise that resolves to a `ProgressDialog` object.
|
|
|
295
295
|
### **WORK IN PROGRESS**
|
|
296
296
|
-->
|
|
297
297
|
## Changelog
|
|
298
|
-
### 0.6.
|
|
298
|
+
### 0.6.5 (2024-11-18)
|
|
299
299
|
|
|
300
300
|
* (@GermanBluefox) Added configurable buttons for form
|
|
301
301
|
|
package/build/ActionContext.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface ActionContext {
|
|
|
6
6
|
showForm(schema: JsonFormSchema, options?: {
|
|
7
7
|
data?: JsonFormData;
|
|
8
8
|
title?: ioBroker.StringOrTranslated;
|
|
9
|
-
buttons?: ActionButton[];
|
|
9
|
+
buttons?: (ActionButton | 'apply' | 'cancel')[];
|
|
10
10
|
}): Promise<JsonFormData | undefined>;
|
|
11
11
|
openProgress(title: string, options?: {
|
|
12
12
|
indeterminate?: boolean;
|
|
@@ -42,7 +42,7 @@ export declare class MessageContext implements ActionContext {
|
|
|
42
42
|
showForm(schema: JsonFormSchema, options?: {
|
|
43
43
|
data?: JsonFormData;
|
|
44
44
|
title?: ioBroker.StringOrTranslated;
|
|
45
|
-
buttons?: ActionButton[];
|
|
45
|
+
buttons?: (ActionButton | 'apply' | 'cancel')[];
|
|
46
46
|
}): Promise<JsonFormData | undefined>;
|
|
47
47
|
openProgress(title: string, options?: {
|
|
48
48
|
indeterminate?: boolean;
|
package/build/types/common.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ export type ActionButton = {
|
|
|
16
16
|
icon?: string;
|
|
17
17
|
variant?: 'contained' | 'outlined' | 'text';
|
|
18
18
|
style?: Record<string, number | string>;
|
|
19
|
-
color
|
|
20
|
-
}
|
|
19
|
+
color?: 'primary' | 'secondary';
|
|
20
|
+
};
|
|
21
21
|
export type DeviceRefresh = 'device' | 'instance' | false | true;
|
|
22
22
|
export type RefreshResponse = {
|
|
23
23
|
refresh: DeviceRefresh;
|