builder-settings-types 0.0.459 → 0.0.461

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.
@@ -0,0 +1,19 @@
1
+ import { ExtractSettingValues, SettingsMap, SettingChild, SettingsProps } from '../types';
2
+ import { IChangable, IDrawable } from './drawable';
3
+ import { SettingGroup, SettingGroupProps } from './settings-group/settingsGroup';
4
+ export interface PendingSettingsGroupProps<TSettings extends SettingsMap> extends SettingGroupProps<TSettings> {
5
+ isRootNode?: boolean;
6
+ }
7
+ export declare class PendingSettingsGroup<TSettings extends SettingsMap> extends SettingGroup<TSettings> implements IDrawable, IChangable<ExtractSettingValues<TSettings>> {
8
+ isRootNode: boolean;
9
+ isInitialized: boolean;
10
+ pendingSettingValuesByKey: Record<string, ExtractSettingValues<TSettings>[keyof TSettings]>;
11
+ static readonly IGNORE_KEYS: string[];
12
+ static readonly DEFAULT_KEYS: string[];
13
+ constructor(groupProps: PendingSettingsGroupProps<TSettings>);
14
+ setValue(newValue: ExtractSettingValues<TSettings>): void;
15
+ addSetting<T extends SettingsProps>(key: string, setting: SettingChild<T>): void;
16
+ getValues(): ExtractSettingValues<TSettings>;
17
+ getValues<K extends keyof TSettings>(childKey: K): unknown;
18
+ cleanup(): void;
19
+ }
@@ -1,5 +1,5 @@
1
1
  import { IChangable, IDrawable } from '../drawable';
2
- import { SettingsMap, SettingChild, SettingsProps, ExtractSettingValues, ExtractSettingValuesOptional, SettingChangeCallback, SettingBlurCallback, MobileSettingValues, SettingIteratorCallback } from '../../types/index';
2
+ import { SettingsMap, SettingChild, SettingsProps, ExtractSettingValues, ExtractSettingValuesOptional, SettingChangeCallback, SettingBlurCallback, SerializedSettingValues, MobileSettingValues, SettingIteratorCallback } from '../../types/index';
3
3
  import { ParsedRule } from '../../services/ExcelRulesService';
4
4
  export type ExcelImportConfig = {
5
5
  enabled: boolean;
@@ -66,8 +66,8 @@ export declare class SettingGroup<TSettings extends SettingsMap> implements IDra
66
66
  private dataProps?;
67
67
  private dataPropsPath;
68
68
  private hide;
69
- private isSettingValue;
70
- private suppressOnChange;
69
+ private isValueInProcessing;
70
+ protected suppressOnChange: boolean;
71
71
  protected isRootNode: boolean;
72
72
  private skipHistoryNextChange;
73
73
  $id: string;
@@ -115,7 +115,8 @@ export declare class SettingGroup<TSettings extends SettingsMap> implements IDra
115
115
  }>;
116
116
  getValues(): ExtractSettingValues<TSettings>;
117
117
  getValues<K extends keyof TSettings>(childKey: K): unknown;
118
- private getValuesForJson;
118
+ getValuesForJson(): SerializedSettingValues;
119
+ getValuesForJson<K extends keyof TSettings>(childKey: K): unknown;
119
120
  getDefaultValues(): ExtractSettingValues<TSettings>;
120
121
  getDefaultValues<K extends keyof TSettings>(childKey: K): unknown;
121
122
  disable(): void;