@ostack.tech/ui-kform 0.6.4 → 0.7.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.
@@ -15,7 +15,7 @@ import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
15
15
  */
16
16
  export type FileControlFileInteraction = "view" | "download" | "none";
17
17
  /** Properties of the file control component. */
18
- export interface FileControlProps<T extends KFormFile | null = KFormFile | null> extends Omit<FileInputOptions<T, FileList, ComponentRef<typeof Input>>, "enabled" | "formatFromFileList" | "parseToFileList">, Omit<ComponentPropsWithoutRef<typeof Input>, "type" | "multiple" | "defaultValue" | "value" | "onValueChange" | "status" | "align"> {
18
+ export interface FileControlProps<T extends KFormFile | null = KFormFile | null> extends Omit<FileInputOptions<T, File | null, ComponentRef<typeof Input>>, "enabled" | "formatFromJsFile" | "parseToJsFile">, Omit<ComponentPropsWithoutRef<typeof Input>, "type" | "multiple" | "defaultValue" | "value" | "onValueChange" | "status" | "align"> {
19
19
  /** Path to the value. */
20
20
  path?: string | Path;
21
21
  /**
@@ -48,7 +48,7 @@ export interface FileControlProps<T extends KFormFile | null = KFormFile | null>
48
48
  */
49
49
  preventAutoFocus?: boolean;
50
50
  /** Reference to the control's API. */
51
- apiRef?: Ref<FileInputController<T, FileList, ComponentRef<typeof Input>> | undefined>;
51
+ apiRef?: Ref<FileInputController<T, File | null, ComponentRef<typeof Input>> | undefined>;
52
52
  /**
53
53
  * Type of interaction with the selected file.
54
54
  *
@@ -19,4 +19,4 @@ export interface LoadActionProps<T = unknown> extends Omit<ButtonProps, "childre
19
19
  keybinds?: string | string[] | null;
20
20
  }
21
21
  /** Action used to load a form from a file. */
22
- export declare function LoadAction<T = unknown>({ label, keybinds, loading, enabledWhenLoading, disabled, onClick, decode, path, extensions, mimeTypes, description, startIn, id, setPristineOnLoad, validateOnLoad, successMessage, errorMessage, ...otherProps }: LoadActionProps<T>): import("react/jsx-runtime").JSX.Element;
22
+ export declare function LoadAction<T = unknown>({ label, keybinds, loading, disabled, onClick, decode, path, extensions, mimeTypes, description, startIn, id, setPristineOnLoad, validateOnLoad, successMessage, errorMessage, ...otherProps }: LoadActionProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -38,4 +38,4 @@ export interface PrintActionProps extends Omit<ButtonProps, "children"> {
38
38
  * </Printer>;
39
39
  * ```
40
40
  */
41
- export declare function PrintAction({ label, keybinds, disabled, loading, enabledWhenLoading, onClick, ...otherProps }: PrintActionProps): import("react/jsx-runtime").JSX.Element;
41
+ export declare function PrintAction({ label, keybinds, disabled, loading, onClick, ...otherProps }: PrintActionProps): import("react/jsx-runtime").JSX.Element;
@@ -48,4 +48,4 @@ export interface SaveActionProps<T = unknown> extends Omit<ButtonProps, "childre
48
48
  dropdownMenuProps?: ComponentPropsWithRef<typeof DropdownMenuContent>;
49
49
  }
50
50
  /** Action used to save the form to a file. */
51
- export declare function SaveAction<T = unknown>({ label, keybinds, disableOverwrite, saveOptionsLabel, saveAsLabel, saveAsKeybinds, loading, enabledWhenLoading, disabled, onClick, variant, color, path, encode, fileName, extensions, description, mimeTypes, startIn, excludeAcceptAllOption, id, successMessage, errorMessage, saveOptionsProps, dropdownMenuProps, ...otherProps }: SaveActionProps<T>): import("react/jsx-runtime").JSX.Element;
51
+ export declare function SaveAction<T = unknown>({ label, keybinds, disableOverwrite, saveOptionsLabel, saveAsLabel, saveAsKeybinds, loading, disabled, onClick, variant, color, path, encode, fileName, extensions, description, mimeTypes, startIn, excludeAcceptAllOption, id, successMessage, errorMessage, saveOptionsProps, dropdownMenuProps, ...otherProps }: SaveActionProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -93,4 +93,4 @@ export interface SubmitActionProps<T = unknown, TSubmitResult = unknown> extends
93
93
  confirmWarningsCheckboxProps?: Omit<ComponentPropsWithRef<typeof Checkbox>, "checked" | "onCheckedChange" | "children">;
94
94
  }
95
95
  /** Action used to submit the form. */
96
- export declare function SubmitAction<T = unknown, TSubmitResult = unknown>({ onSubmit, onInvalidSubmit, onSuccessfulSubmit, onFailedSubmit, setTouchedOnSubmit, validateOnSubmit, setPristineOnSuccessfulSubmit, convertExternalIssuesTableRowIndicesToIds, label, keybinds, confirmWarnings, loading, enabledWhenLoading, disabled, onClick, dialogTitle, dialogDescription, dialogBody, confirmWarningsCheckboxLabel, dialogOkText, dialogCancelText, successMessage, errorMessage, dialogContentProps, dialogHeaderProps, dialogTitleProps, dialogBodyProps, dialogDescriptionProps, dialogFooterProps, dialogOkButtonProps, dialogCancelButtonProps, confirmWarningsAlertProps, confirmWarningsCheckboxProps, ...otherProps }: SubmitActionProps<T, TSubmitResult>): import("react/jsx-runtime").JSX.Element;
96
+ export declare function SubmitAction<T = unknown, TSubmitResult = unknown>({ onSubmit, onInvalidSubmit, onSuccessfulSubmit, onFailedSubmit, setTouchedOnSubmit, validateOnSubmit, setPristineOnSuccessfulSubmit, convertExternalIssuesTableRowIndicesToIds, label, keybinds, confirmWarnings, loading, disabled, onClick, dialogTitle, dialogDescription, dialogBody, confirmWarningsCheckboxLabel, dialogOkText, dialogCancelText, successMessage, errorMessage, dialogContentProps, dialogHeaderProps, dialogTitleProps, dialogBodyProps, dialogDescriptionProps, dialogFooterProps, dialogOkButtonProps, dialogCancelButtonProps, confirmWarningsAlertProps, confirmWarningsCheckboxProps, ...otherProps }: SubmitActionProps<T, TSubmitResult>): import("react/jsx-runtime").JSX.Element;
@@ -18,4 +18,4 @@ export interface ValidateActionProps extends Omit<ButtonProps, "children"> {
18
18
  keybinds?: string | string[] | null;
19
19
  }
20
20
  /** Action used to validate the form. */
21
- export declare function ValidateAction({ label, keybinds, loading, enabledWhenLoading, disabled, onClick, ...otherProps }: ValidateActionProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function ValidateAction({ label, keybinds, loading, disabled, onClick, ...otherProps }: ValidateActionProps): import("react/jsx-runtime").JSX.Element;
@@ -16,6 +16,7 @@ export interface UseRegisterControlResult<TElem> {
16
16
  displayDisabled: boolean;
17
17
  displayReadOnly: boolean;
18
18
  displayStatusToDisplay: DisplayStatus | undefined;
19
+ displayValidating: boolean;
19
20
  issuesToDisplay: SealedValidationIssue[];
20
21
  autofocusRef: RefObject<TElem | null>;
21
22
  handleFocus: (event: FocusEvent) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ostack.tech/ui-kform",
3
3
  "description": "Integration of ostack/UI with ostack/KForm.",
4
- "version": "0.6.4",
4
+ "version": "0.7.0",
5
5
  "homepage": "https://ui.ostack.tech/",
6
6
  "author": {
7
7
  "name": "Opensoft",
@@ -50,9 +50,9 @@
50
50
  "@fortawesome/fontawesome-svg-core": "^6.2.0 || ^7.0.0",
51
51
  "@fortawesome/free-regular-svg-icons": "^6.2.0 || ^7.0.0",
52
52
  "@fortawesome/free-solid-svg-icons": "^6.2.0 || ^7.0.0",
53
- "@ostack.tech/kform": "~0.31.0",
54
- "@ostack.tech/kform-react": "~0.31.0",
55
- "@ostack.tech/ui": "~0.6.4",
53
+ "@ostack.tech/kform": "~0.32.0",
54
+ "@ostack.tech/kform-react": "~0.32.0",
55
+ "@ostack.tech/ui": "~0.7.0",
56
56
  "@types/react": "^18.0.0 || ^19.0.0",
57
57
  "@types/react-dom": "^18.0.0 || ^19.0.0",
58
58
  "date-fns": "^4.1.0",