plmt-constructor-sdk 0.17.10 → 0.17.11
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/package.json +1 -1
- package/view-settings-params.d.ts +9 -10
package/package.json
CHANGED
|
@@ -16,10 +16,8 @@ export interface HtmlSettings {
|
|
|
16
16
|
}
|
|
17
17
|
export declare type BadgeVariant = 'primary' | 'success' | 'neutral' | 'warning' | 'danger';
|
|
18
18
|
export declare type BadgeSize = 'x-small' | 'small' | 'medium' | 'large';
|
|
19
|
-
export interface BadgeSettings {
|
|
19
|
+
export interface BadgeSettings extends AffixOptions {
|
|
20
20
|
type: 'badge';
|
|
21
|
-
prefix?: IconSettings;
|
|
22
|
-
suffix?: IconSettings;
|
|
23
21
|
size?: BadgeSize;
|
|
24
22
|
pill?: true;
|
|
25
23
|
variant?: BadgeVariant;
|
|
@@ -27,20 +25,21 @@ export interface BadgeSettings {
|
|
|
27
25
|
content?: Text;
|
|
28
26
|
}
|
|
29
27
|
export declare type AffixContent = IconSettings | BadgeSettings | HtmlSettings;
|
|
30
|
-
export interface
|
|
28
|
+
export interface AffixOptions {
|
|
29
|
+
prefix?: AffixContent;
|
|
30
|
+
suffix?: AffixContent;
|
|
31
|
+
}
|
|
32
|
+
export declare type ViewSettingsOption<T extends any = {}> = {
|
|
31
33
|
label: Text;
|
|
32
34
|
value: string;
|
|
33
|
-
}
|
|
34
|
-
export interface ViewSettingsBaseParams {
|
|
35
|
+
} & T;
|
|
36
|
+
export interface ViewSettingsBaseParams extends AffixOptions {
|
|
35
37
|
key: string;
|
|
36
38
|
label: Text;
|
|
37
39
|
span?: number;
|
|
38
40
|
defaultValue?: string;
|
|
39
41
|
placeholder?: Text;
|
|
40
42
|
tooltip?: TooltipSettings;
|
|
41
|
-
prefix?: AffixContent;
|
|
42
|
-
suffix?: AffixContent;
|
|
43
|
-
options?: ViewSettingsOption[];
|
|
44
43
|
}
|
|
45
44
|
export interface InputParams extends ViewSettingsBaseParams {
|
|
46
45
|
disabled?: true;
|
|
@@ -58,6 +57,6 @@ export interface RadioParams extends ViewSettingsBaseParams {
|
|
|
58
57
|
options: ViewSettingsOption[];
|
|
59
58
|
}
|
|
60
59
|
export interface SelectParams extends ViewSettingsBaseParams {
|
|
61
|
-
options: ViewSettingsOption[];
|
|
60
|
+
options: ViewSettingsOption<AffixOptions>[];
|
|
62
61
|
}
|
|
63
62
|
export declare type ColorPickerParams = ViewSettingsBaseParams;
|