builder-settings-types 0.0.464 → 0.0.465
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/dist/base/pendingSettingsGroup.d.ts +2 -0
- package/dist/base/settings-group/settingsGroup.d.ts +2 -0
- package/dist/builder-settings-types.cjs.js +186 -171
- package/dist/builder-settings-types.es.js +5308 -5122
- package/dist/components/popup/popup.d.ts +1 -1
- package/dist/components/select/select.d.ts +4 -6
- package/dist/groups/blurSettingsSet.d.ts +16 -0
- package/dist/groups/effectSettingsSet.d.ts +1 -0
- package/dist/groups/shadowSettingsSet.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/settings/color-settings/colorSettings.d.ts +8 -0
- package/dist/settings/gradient-settings/GradientSetting.d.ts +5 -0
- package/dist/settings/multi-settings/multiSettings.d.ts +2 -0
- package/dist/settings/number-settings/numberSettings.d.ts +10 -0
- package/package.json +1 -1
|
@@ -28,6 +28,8 @@ export declare class MultiSettings<K extends string = MultiPresetDefaultKey> ext
|
|
|
28
28
|
private parseMainInput;
|
|
29
29
|
private handleExpandedInputChange;
|
|
30
30
|
private handleMainInputChange;
|
|
31
|
+
private getSegmentIndexAtCursor;
|
|
32
|
+
private handleMainInputKeyDown;
|
|
31
33
|
private toggleCollapse;
|
|
32
34
|
private createInputWithIcon;
|
|
33
35
|
draw(): HTMLElement;
|
|
@@ -4,6 +4,7 @@ export interface NumberSettingsProps extends SettingProps<number> {
|
|
|
4
4
|
minValue?: number;
|
|
5
5
|
maxValue?: number;
|
|
6
6
|
step?: number;
|
|
7
|
+
decimals?: number;
|
|
7
8
|
className?: string;
|
|
8
9
|
inputClassName?: string;
|
|
9
10
|
wrapperClassName?: string;
|
|
@@ -21,6 +22,15 @@ export declare class NumberSetting extends Setting<number, NumberSettingsProps>
|
|
|
21
22
|
draw(): HTMLElement;
|
|
22
23
|
setValue(value: number | undefined): void;
|
|
23
24
|
private validateValue;
|
|
25
|
+
/** Returns the number of decimal places implied by the step value. */
|
|
26
|
+
private getDecimalPlaces;
|
|
27
|
+
/**
|
|
28
|
+
* Formats a number for display, padding decimals to match the step precision.
|
|
29
|
+
* e.g. step=0.5 → formatValue(300) === "300.0"
|
|
30
|
+
* step=0.01 → formatValue(300) === "300.00"
|
|
31
|
+
* step=1 → formatValue(300) === "300"
|
|
32
|
+
*/
|
|
33
|
+
private formatValue;
|
|
24
34
|
getMobileValue(): number | undefined;
|
|
25
35
|
setMobileValue(value: number | undefined): void;
|
|
26
36
|
private validateProps;
|
package/package.json
CHANGED