@mcurros2/microm 1.1.239-0 → 1.1.240-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.
package/dist/index.d.ts CHANGED
@@ -620,7 +620,7 @@ export interface useTextTransformProps {
620
620
  export function useTextTransform(props: useTextTransformProps): (text: string) => void;
621
621
  type TextAreaFieldAllowedValidators = 'regex' | 'length' | 'field' | 'required';
622
622
  export type TextAreaFieldValidatorConfiguration = Partial<Record<TextAreaFieldAllowedValidators, ValidatorConfigurationParms>>;
623
- export interface TextAreaFieldProps extends TextareaProps, Omit<useTextTransformProps, 'entityForm' | 'column' | 'onBlur' | 'mantineOnBlur'> {
623
+ export interface TextAreaFieldProps extends Omit<TextareaProps, 'autoFocus'>, Omit<useTextTransformProps, 'entityForm' | 'column' | 'onBlur' | 'mantineOnBlur'> {
624
624
  column: EntityColumn<Value>;
625
625
  entityForm: UseEntityFormReturnType;
626
626
  validate?: TextAreaFieldValidatorConfiguration;
@@ -628,10 +628,10 @@ export interface TextAreaFieldProps extends TextareaProps, Omit<useTextTransform
628
628
  validationContainer?: React.ComponentType<{
629
629
  children: ReactNode;
630
630
  }>;
631
- autofocus?: boolean;
631
+ autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
632
632
  }
633
633
  export const TextAreaField: ForwardRefExoticComponent<TextAreaFieldProps & RefAttributes<HTMLTextAreaElement>>;
634
- export interface TextFieldProps extends TextInputProps, Omit<useTextTransformProps, 'entityForm' | 'column'> {
634
+ export interface TextFieldProps extends Omit<TextInputProps, 'autoFocus'>, Omit<useTextTransformProps, 'entityForm' | 'column'> {
635
635
  column: EntityColumn<Value>;
636
636
  entityForm: UseEntityFormReturnType;
637
637
  validate?: ValidatorConfiguration;
@@ -639,7 +639,7 @@ export interface TextFieldProps extends TextInputProps, Omit<useTextTransformPro
639
639
  validationContainer?: React.ComponentType<{
640
640
  children: ReactNode;
641
641
  }>;
642
- autoFocus?: boolean;
642
+ autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
643
643
  autoMaxWidth?: {
644
644
  columnLenghtLessThanOrEqual: number;
645
645
  maxWidth: string;
@@ -843,7 +843,7 @@ export interface CodeBlockProps extends Omit<PrismProps, 'children'> {
843
843
  codeText: string;
844
844
  }
845
845
  export function CodeBlock(props: CodeBlockProps): JSX.Element;
846
- export interface DateInputFieldProps extends DateInputProps {
846
+ export interface DateInputFieldProps extends Omit<DateInputProps, 'autoFocus'> {
847
847
  column: EntityColumn<Value>;
848
848
  entityForm: UseEntityFormReturnType;
849
849
  validate?: ValidatorConfiguration;
@@ -851,11 +851,11 @@ export interface DateInputFieldProps extends DateInputProps {
851
851
  validationContainer?: React.ComponentType<{
852
852
  children: ReactNode;
853
853
  }>;
854
- autoFocus?: boolean;
854
+ autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
855
855
  }
856
856
  export const DateInputFieldDefaultProps: Partial<DateInputFieldProps>;
857
857
  export const DateInputField: ForwardRefExoticComponent<DateInputFieldProps & RefAttributes<HTMLInputElement>>;
858
- export interface NumberFieldProps extends NumberInputProps {
858
+ export interface NumberFieldProps extends Omit<NumberInputProps, 'autoFocus'> {
859
859
  column: EntityColumn<Value>;
860
860
  entityForm: UseEntityFormReturnType;
861
861
  loading?: boolean;
@@ -865,7 +865,7 @@ export interface NumberFieldProps extends NumberInputProps {
865
865
  validationContainer?: React.ComponentType<{
866
866
  children: ReactNode;
867
867
  }>;
868
- autoFocus?: boolean;
868
+ autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
869
869
  }
870
870
  export const NumberField: ForwardRefExoticComponent<NumberFieldProps & RefAttributes<HTMLInputElement>>;
871
871
  export interface UseHierarchyKeysProps {
@@ -892,7 +892,7 @@ export interface UseParentKeysProps {
892
892
  entity: Entity<EntityDefinition>;
893
893
  }
894
894
  export function useParentKeys(props: UseParentKeysProps): ValuesObject;
895
- export interface TimeFieldProps extends Omit<TimeInputProps, 'validate'> {
895
+ export interface TimeFieldProps extends Omit<TimeInputProps, 'validate' | 'autoFocus'> {
896
896
  column: EntityColumn<Value>;
897
897
  entityForm: UseEntityFormReturnType;
898
898
  validate?: ValidatorConfiguration;
@@ -900,7 +900,7 @@ export interface TimeFieldProps extends Omit<TimeInputProps, 'validate'> {
900
900
  validationContainer?: React.ComponentType<{
901
901
  children: ReactNode;
902
902
  }>;
903
- autoFocus?: boolean;
903
+ autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
904
904
  showTimePicker?: boolean;
905
905
  }
906
906
  export const TimeFieldDefaultProps: Partial<TimeFieldProps>;
@@ -2302,7 +2302,7 @@ export function useViewState(search?: string[], limit?: DataViewLimit): {
2302
2302
  export interface LookupProps {
2303
2303
  parentKeys?: ValuesObject;
2304
2304
  column: EntityColumn<Value>;
2305
- autoFocus?: boolean;
2305
+ autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
2306
2306
  entityForm: UseEntityFormReturnType;
2307
2307
  entity: Entity<EntityDefinition>;
2308
2308
  lookupDefName: string;
@@ -2360,7 +2360,7 @@ export interface UseLookupOptions {
2360
2360
  export interface UseLookupReturnType {
2361
2361
  status: OperationStatus<ValuesObject>;
2362
2362
  lookupResult?: LookupResultState;
2363
- lookupInputProps: any;
2363
+ lookupInputProps: ReturnType<UseFormReturnType<ValuesObject>['getInputProps']>;
2364
2364
  onBlur: (bindingColumn: string, force?: boolean, event?: React.FocusEvent | null) => void;
2365
2365
  }
2366
2366
  export const useLookup: ({ entityForm, entity, lookupDefName, column, parentKeys, required, HTMLDescriptionRef, enableAdd, enableEdit, enableDelete, enableView }: UseLookupOptions) => UseLookupReturnType;
@@ -2467,7 +2467,7 @@ export interface WeekPickerFieldProps extends Omit<WeekPickerProps, 'weekStartDa
2467
2467
  }
2468
2468
  export const WeekPickerFieldDefaultProps: Partial<WeekPickerFieldProps>;
2469
2469
  export function WeekPickerField(props: WeekPickerFieldProps): JSX.Element;
2470
- export interface PinFieldProps extends Omit<PinInputProps, 'validate'>, Omit<useTextTransformProps, 'entityForm' | 'column'> {
2470
+ export interface PinFieldProps extends Omit<PinInputProps, 'validate' | 'autoFocus'>, Omit<useTextTransformProps, 'entityForm' | 'column'> {
2471
2471
  column: EntityColumn<Value>;
2472
2472
  entityForm: UseEntityFormReturnType;
2473
2473
  validate?: ValidatorConfiguration;
@@ -2475,7 +2475,7 @@ export interface PinFieldProps extends Omit<PinInputProps, 'validate'>, Omit<use
2475
2475
  validationContainer?: React.ComponentType<{
2476
2476
  children: ReactNode;
2477
2477
  }>;
2478
- autoFocus?: boolean;
2478
+ autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
2479
2479
  size?: MantineSize;
2480
2480
  description?: string;
2481
2481
  label?: string;