babylonjs-node-render-graph-editor 7.39.0 → 7.40.0

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.
@@ -2388,26 +2388,27 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
2388
2388
  max?: number;
2389
2389
  placeholder?: string;
2390
2390
  unit?: React.ReactNode;
2391
- validator?: (value: string) => boolean;
2391
+ validator?: (input: string) => boolean;
2392
+ onValidateChangeFailed?: (invalidInput: string) => void;
2392
2393
  multilines?: boolean;
2393
2394
  throttlePropertyChangedNotification?: boolean;
2394
2395
  throttlePropertyChangedNotificationDelay?: number;
2395
2396
  disabled?: boolean;
2396
2397
  }
2397
- export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
2398
- value: string;
2398
+ interface ITextInputLineComponentState {
2399
+ input: string;
2399
2400
  dragging: boolean;
2400
- }> {
2401
+ inputValid: boolean;
2402
+ }
2403
+ export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
2401
2404
  private _localChange;
2402
2405
  constructor(props: ITextInputLineComponentProps);
2403
2406
  componentWillUnmount(): void;
2404
- shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
2405
- value: string;
2406
- dragging: boolean;
2407
- }): boolean;
2407
+ shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
2408
2408
  raiseOnPropertyChanged(newValue: string, previousValue: string): void;
2409
2409
  getCurrentNumericValue(value: string): number;
2410
- updateValue(value: string, valueToValidate?: string): void;
2410
+ updateInput(input: string): void;
2411
+ updateValue(adjustedInput?: string, updateState?: boolean): void;
2411
2412
  incrementValue(amount: number): void;
2412
2413
  onKeyDown(event: React.KeyboardEvent): void;
2413
2414
  render(): import("react/jsx-runtime").JSX.Element;