@ostack.tech/ui-kform 0.15.0 → 0.15.1
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/chunks/en-CaLvO1z0.js +133 -0
- package/dist/chunks/en-CaLvO1z0.js.map +1 -0
- package/dist/locales/en-GB.js +10 -8
- package/dist/locales/en-GB.js.map +1 -1
- package/dist/locales/en-US.js +10 -8
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/fr-FR.js +133 -145
- package/dist/locales/fr-FR.js.map +1 -1
- package/dist/locales/pt-PT.js +133 -145
- package/dist/locales/pt-PT.js.map +1 -1
- package/dist/ostack-ui-kform.js +5559 -7867
- package/dist/ostack-ui-kform.js.map +1 -1
- package/dist/types/components/Annexes/Annex.d.ts +5 -5
- package/dist/types/components/Annexes/AnnexRegistrar.d.ts +1 -1
- package/dist/types/components/Annexes/AnnexTab.d.ts +2 -2
- package/dist/types/components/Annexes/Annexes.d.ts +4 -4
- package/dist/types/components/Annexes/AnnexesContext.d.ts +5 -5
- package/dist/types/components/Annexes/AnnexesManager.d.ts +3 -3
- package/dist/types/components/Annexes/AnnexesMenu.d.ts +4 -4
- package/dist/types/components/Annexes/AnnexesTabList.d.ts +3 -3
- package/dist/types/components/Annexes/RepetitiveAnnexRegistrar.d.ts +2 -2
- package/dist/types/components/Annexes/index.d.ts +5 -5
- package/dist/types/components/CheckboxControl/CheckboxControl.d.ts +6 -6
- package/dist/types/components/CheckboxControl/index.d.ts +1 -1
- package/dist/types/components/CheckboxGroupControl/CheckboxGroupControl.d.ts +6 -6
- package/dist/types/components/CheckboxGroupControl/index.d.ts +1 -1
- package/dist/types/components/ControlField/ControlField.d.ts +4 -4
- package/dist/types/components/ControlField/ControlFieldContext.d.ts +4 -4
- package/dist/types/components/ControlField/index.d.ts +2 -2
- package/dist/types/components/DateControl/DateControl.d.ts +6 -6
- package/dist/types/components/DateControl/index.d.ts +1 -1
- package/dist/types/components/DateRangeControl/DateRangeControl.d.ts +6 -6
- package/dist/types/components/DateRangeControl/index.d.ts +1 -1
- package/dist/types/components/FileControl/FileControl.d.ts +6 -6
- package/dist/types/components/FileControl/index.d.ts +1 -1
- package/dist/types/components/FormApp/FormApp.d.ts +9 -9
- package/dist/types/components/FormApp/FormAppContext.d.ts +7 -7
- package/dist/types/components/FormApp/FormAppElement.d.ts +3 -3
- package/dist/types/components/FormApp/FormAppIssueMessages.d.ts +3 -3
- package/dist/types/components/FormApp/FormAppStatus.d.ts +2 -2
- package/dist/types/components/FormApp/index.d.ts +4 -4
- package/dist/types/components/FormPages/FormPage.d.ts +6 -6
- package/dist/types/components/FormPages/FormPageHeader.d.ts +3 -3
- package/dist/types/components/FormPages/FormPageRegistrar.d.ts +1 -1
- package/dist/types/components/FormPages/FormPageSidebarItem.d.ts +2 -2
- package/dist/types/components/FormPages/FormPages.d.ts +3 -3
- package/dist/types/components/FormPages/FormPagesContext.d.ts +5 -5
- package/dist/types/components/FormPages/FormPagesNavigation.d.ts +4 -4
- package/dist/types/components/FormPages/FormPagesSelect.d.ts +2 -2
- package/dist/types/components/FormPages/FormPagesSelectOption.d.ts +2 -2
- package/dist/types/components/FormPages/FormPagesSidebar.d.ts +2 -2
- package/dist/types/components/FormPages/index.d.ts +4 -4
- package/dist/types/components/FormStepper/FormStep.d.ts +6 -6
- package/dist/types/components/FormStepper/FormStepButton.d.ts +2 -2
- package/dist/types/components/FormStepper/FormStepList.d.ts +3 -3
- package/dist/types/components/FormStepper/FormStepRegistrar.d.ts +1 -1
- package/dist/types/components/FormStepper/FormStepper.d.ts +4 -4
- package/dist/types/components/FormStepper/FormStepperContext.d.ts +5 -5
- package/dist/types/components/FormStepper/FormStepperFinishTrigger.d.ts +1 -1
- package/dist/types/components/FormStepper/FormStepperNextTrigger.d.ts +1 -1
- package/dist/types/components/FormStepper/FormStepperPreviousTrigger.d.ts +1 -1
- package/dist/types/components/FormStepper/FormStepperState.d.ts +1 -1
- package/dist/types/components/FormStepper/index.d.ts +7 -7
- package/dist/types/components/IssueMessage/IssueMessage.d.ts +4 -4
- package/dist/types/components/IssueMessage/index.d.ts +1 -1
- package/dist/types/components/IssueMessages/IssueMessages.d.ts +4 -4
- package/dist/types/components/IssueMessages/index.d.ts +1 -1
- package/dist/types/components/IssuesAlert/IssuesAlert.d.ts +4 -4
- package/dist/types/components/IssuesAlert/index.d.ts +1 -1
- package/dist/types/components/IssuesPanel/IssuesPanel.d.ts +4 -4
- package/dist/types/components/IssuesPanel/IssuesPanelControls.d.ts +5 -5
- package/dist/types/components/IssuesPanel/IssuesPanelMessagesCard.d.ts +6 -6
- package/dist/types/components/IssuesPanel/IssuesPanelSummaryCard.d.ts +5 -5
- package/dist/types/components/IssuesPanel/index.d.ts +1 -1
- package/dist/types/components/IssuesPopover/IssuesPopover.d.ts +4 -4
- package/dist/types/components/IssuesPopover/index.d.ts +1 -1
- package/dist/types/components/LoadAction/LoadAction.d.ts +4 -4
- package/dist/types/components/LoadAction/index.d.ts +1 -1
- package/dist/types/components/NumericControl/NumericControl.d.ts +6 -6
- package/dist/types/components/NumericControl/index.d.ts +1 -1
- package/dist/types/components/PathLink/PathLink.d.ts +2 -2
- package/dist/types/components/PathLink/index.d.ts +1 -1
- package/dist/types/components/PrintAction/PrintAction.d.ts +3 -3
- package/dist/types/components/PrintAction/index.d.ts +1 -1
- package/dist/types/components/RadioGroupControl/RadioGroupControl.d.ts +6 -6
- package/dist/types/components/RadioGroupControl/index.d.ts +1 -1
- package/dist/types/components/SaveAction/SaveAction.d.ts +4 -4
- package/dist/types/components/SaveAction/index.d.ts +1 -1
- package/dist/types/components/SelectControl/SelectControl.d.ts +7 -7
- package/dist/types/components/SelectControl/index.d.ts +1 -1
- package/dist/types/components/SelectMultipleControl/SelectMultipleControl.d.ts +7 -7
- package/dist/types/components/SelectMultipleControl/index.d.ts +1 -1
- package/dist/types/components/SubmitAction/SubmitAction.d.ts +5 -5
- package/dist/types/components/SubmitAction/index.d.ts +1 -1
- package/dist/types/components/TableControl/TableControl.d.ts +8 -8
- package/dist/types/components/TableControl/TableControlAddRowTrigger.d.ts +3 -3
- package/dist/types/components/TableControl/TableControlApi.d.ts +4 -4
- package/dist/types/components/TableControl/TableControlCell.d.ts +3 -3
- package/dist/types/components/TableControl/TableControlColumn.d.ts +4 -4
- package/dist/types/components/TableControl/TableControlContent.d.ts +3 -3
- package/dist/types/components/TableControl/TableControlContext.d.ts +7 -7
- package/dist/types/components/TableControl/TableControlPagination.d.ts +1 -1
- package/dist/types/components/TableControl/TableControlRemoveRowTrigger.d.ts +3 -3
- package/dist/types/components/TableControl/TableControlRow.d.ts +3 -3
- package/dist/types/components/TableControl/TableControlRowsPerPage.d.ts +1 -1
- package/dist/types/components/TableControl/index.d.ts +8 -8
- package/dist/types/components/TextControl/TextControl.d.ts +6 -6
- package/dist/types/components/TextControl/index.d.ts +1 -1
- package/dist/types/components/TopBar/TopBar.d.ts +2 -2
- package/dist/types/components/TopBar/TopBarActions.d.ts +3 -3
- package/dist/types/components/TopBar/TopBarContext.d.ts +1 -1
- package/dist/types/components/TopBar/index.d.ts +3 -3
- package/dist/types/components/UnknownValue/UnknownValue.d.ts +2 -2
- package/dist/types/components/UnknownValue/index.d.ts +1 -1
- package/dist/types/components/ValidateAction/ValidateAction.d.ts +3 -3
- package/dist/types/components/ValidateAction/index.d.ts +1 -1
- package/dist/types/index.d.ts +39 -39
- package/dist/types/locales/en-GB.d.ts +1 -1
- package/dist/types/locales/en-US.d.ts +1 -1
- package/dist/types/locales/en.d.ts +1 -1
- package/dist/types/locales/fr-FR.d.ts +1 -1
- package/dist/types/locales/index.d.ts +4 -4
- package/dist/types/locales/pt-PT.d.ts +1 -1
- package/dist/types/providers/ActivePathProvider/ActivePathContext.d.ts +2 -2
- package/dist/types/providers/ActivePathProvider/ActivePathProvider.d.ts +3 -3
- package/dist/types/providers/ActivePathProvider/index.d.ts +2 -2
- package/dist/types/providers/LocalizationProvider/LocalizationContext.d.ts +2 -2
- package/dist/types/providers/LocalizationProvider/LocalizationObject.d.ts +20 -20
- package/dist/types/providers/LocalizationProvider/LocalizationProvider.d.ts +3 -3
- package/dist/types/providers/LocalizationProvider/index.d.ts +4 -4
- package/dist/types/providers/LocalizationProvider/useLocale.d.ts +1 -1
- package/dist/types/providers/PrefixSuffixProvider/PrefixSuffixContext.d.ts +1 -1
- package/dist/types/providers/PrefixSuffixProvider/PrefixSuffixProvider.d.ts +2 -2
- package/dist/types/providers/PrefixSuffixProvider/defaultPrefixSuffix.d.ts +1 -1
- package/dist/types/providers/PrefixSuffixProvider/index.d.ts +4 -4
- package/dist/types/providers/PrefixSuffixProvider/usePrefix.d.ts +1 -1
- package/dist/types/utils/dateRestrictions.d.ts +2 -2
- package/dist/types/utils/displayStatusConversions.d.ts +2 -2
- package/dist/types/utils/mostSpecificPath.d.ts +1 -1
- package/dist/types/utils/options.d.ts +2 -2
- package/dist/types/utils/pathSpecificity.d.ts +1 -1
- package/dist/types/utils/selectionTransformations.d.ts +4 -4
- package/dist/types/utils/useControlAutofocus.d.ts +2 -2
- package/dist/types/utils/useControlIssues.d.ts +3 -3
- package/dist/types/utils/useFormLoader.d.ts +3 -3
- package/dist/types/utils/useFormSaver.d.ts +3 -3
- package/dist/types/utils/useRegisterControl.d.ts +3 -3
- package/dist/types/utils/useReportValidationFailures.d.ts +1 -1
- package/dist/types/utils/useResetOnChange.d.ts +3 -3
- package/dist/types/utils/useTemporalStringTransformer.d.ts +3 -3
- package/package.json +5 -5
- package/dist/chunks/en-Cb79GQnj.js +0 -145
- package/dist/chunks/en-Cb79GQnj.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
/** Properties of the form pages sidebar component. */
|
|
3
3
|
export interface FormPagesSidebarProps extends ComponentPropsWithoutRef<"div"> {
|
|
4
4
|
}
|
|
5
5
|
/** Sidebar component allowing the navigation between form pages. */
|
|
6
|
-
export declare const FormPagesSidebar: import(
|
|
6
|
+
export declare const FormPagesSidebar: import("react").ForwardRefExoticComponent<FormPagesSidebarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export { FormPageRegistrar } from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from "./FormPage.tsx";
|
|
2
|
+
export { FormPageRegistrar } from "./FormPageRegistrar.tsx";
|
|
3
|
+
export * from "./FormPages.tsx";
|
|
4
|
+
export * from "./FormPagesNavigation.tsx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ErrorBoundary, StepContent } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from
|
|
3
|
-
import { IssueMessagesByCode } from
|
|
4
|
-
import { FormStepObject } from
|
|
1
|
+
import { ErrorBoundary, StepContent } from "@ostack.tech/ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
|
|
3
|
+
import type { IssueMessagesByCode } from "../IssueMessages";
|
|
4
|
+
import type { FormStepObject } from "./FormStepper.tsx";
|
|
5
5
|
/** Properties of the form step component. */
|
|
6
6
|
export interface FormStepProps extends FormStepObject, Omit<ComponentPropsWithoutRef<typeof StepContent>, "index" | "title"> {
|
|
7
7
|
/** Sets the step as disabled. */
|
|
@@ -40,6 +40,6 @@ export interface FormStepProps extends FormStepObject, Omit<ComponentPropsWithou
|
|
|
40
40
|
errorBoundaryProps?: ComponentPropsWithRef<typeof ErrorBoundary>;
|
|
41
41
|
}
|
|
42
42
|
/** Single form step. */
|
|
43
|
-
export declare const FormStep: import(
|
|
43
|
+
export declare const FormStep: import("react").ForwardRefExoticComponent<FormStepProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
44
|
/** @deprecated Use `FormStep` instead. */
|
|
45
|
-
export declare const FormStepContent: import(
|
|
45
|
+
export declare const FormStepContent: import("react").ForwardRefExoticComponent<FormStepProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AbsolutePath } from
|
|
1
|
+
import type { AbsolutePath } from "@ostack.tech/kform";
|
|
2
2
|
/** Properties of the form step button component. */
|
|
3
3
|
export interface FormStepButtonProps {
|
|
4
4
|
path: AbsolutePath;
|
|
5
5
|
index: number;
|
|
6
6
|
}
|
|
7
7
|
/** Form step button. */
|
|
8
|
-
export declare function FormStepButton({ path, index }: FormStepButtonProps): import("react
|
|
8
|
+
export declare function FormStepButton({ path, index }: FormStepButtonProps): import("react").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StepList } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { StepList } from "@ostack.tech/ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
/** Properties of the form steps sidebar component. */
|
|
4
4
|
export interface FormStepListProps extends ComponentPropsWithoutRef<typeof StepList> {
|
|
5
5
|
}
|
|
6
6
|
/** Component displaying all form steps in a list. */
|
|
7
|
-
export declare const FormStepList: import(
|
|
7
|
+
export declare const FormStepList: import("react").ForwardRefExoticComponent<FormStepListProps & import("react").RefAttributes<HTMLOListElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResolvedFormStepObject } from
|
|
1
|
+
import { type ResolvedFormStepObject } from "./FormStepperContext.ts";
|
|
2
2
|
/** Properties of the `FormStepRegistrar` component. */
|
|
3
3
|
export interface FormStepRegistrarProps extends ResolvedFormStepObject {
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AbsolutePath, Path, SealedLocatedValidationIssue } from
|
|
2
|
-
import { Stepper } from
|
|
3
|
-
import { ComponentPropsWithoutRef, ReactNode } from
|
|
1
|
+
import { type AbsolutePath, Path, type SealedLocatedValidationIssue } from "@ostack.tech/kform";
|
|
2
|
+
import { Stepper } from "@ostack.tech/ui";
|
|
3
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
4
4
|
/** Properties of the form stepper component. */
|
|
5
5
|
export interface FormStepperProps extends Omit<ComponentPropsWithoutRef<typeof Stepper>, "defaultActiveStep" | "activeStep" | "onActiveStepChange"> {
|
|
6
6
|
/** Base path for all declared form steps. */
|
|
@@ -68,4 +68,4 @@ export interface FormStepObject<T = any> {
|
|
|
68
68
|
issuesPanelLabel?: ReactNode | ((value: T) => ReactNode);
|
|
69
69
|
}
|
|
70
70
|
/** Root component used to render form steps. */
|
|
71
|
-
export declare const FormStepper: import(
|
|
71
|
+
export declare const FormStepper: import("react").ForwardRefExoticComponent<FormStepperProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AbsolutePath, DisplayStatus, FormManager } from
|
|
2
|
-
import { ReactNode } from
|
|
3
|
-
import { FormStepObject, FormStepperProps } from
|
|
1
|
+
import { type AbsolutePath, type DisplayStatus, type FormManager } from "@ostack.tech/kform";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import type { FormStepObject, FormStepperProps } from "./FormStepper.tsx";
|
|
4
4
|
/** Value of the form stepper context. */
|
|
5
5
|
export type FormStepperContextValue = FormStepperStore;
|
|
6
6
|
/** Resolved form step object. */
|
|
@@ -36,7 +36,7 @@ export interface FormStepperActions {
|
|
|
36
36
|
/** Form stepper store. */
|
|
37
37
|
export type FormStepperStore = ReturnType<typeof useCreateFormStepperContext>;
|
|
38
38
|
/** Form stepper context. */
|
|
39
|
-
export declare const FormStepperContext: import(
|
|
39
|
+
export declare const FormStepperContext: import("react").Context<(Omit<import("zustand").StoreApi<FormStepperState>, "subscribe"> & {
|
|
40
40
|
subscribe: {
|
|
41
41
|
(listener: (selectedState: FormStepperState, previousSelectedState: FormStepperState) => void): () => void;
|
|
42
42
|
<U>(selector: (state: FormStepperState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -52,7 +52,7 @@ export interface UseCreateFormStepperContextOptions extends Pick<FormStepperProp
|
|
|
52
52
|
resolvedSteps: ResolvedFormStepObject[];
|
|
53
53
|
}
|
|
54
54
|
/** Hook used to create the form stepper context. */
|
|
55
|
-
export declare function useCreateFormStepperContext({ formManager, basePath, resolvedSteps, defaultActiveStep, activeStep, onActiveStepChange, onStepValidation, skipStepValidationOnForwardNavigation, allowForwardNavigationOnError, preventFocusOnError, }: UseCreateFormStepperContextOptions): Omit<import(
|
|
55
|
+
export declare function useCreateFormStepperContext({ formManager, basePath, resolvedSteps, defaultActiveStep, activeStep, onActiveStepChange, onStepValidation, skipStepValidationOnForwardNavigation, allowForwardNavigationOnError, preventFocusOnError, }: UseCreateFormStepperContextOptions): Omit<import("zustand").StoreApi<FormStepperState>, "subscribe"> & {
|
|
56
56
|
subscribe: {
|
|
57
57
|
(listener: (selectedState: FormStepperState, previousSelectedState: FormStepperState) => void): () => void;
|
|
58
58
|
<U>(selector: (state: FormStepperState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Trigger used to conclude the form stepper. */
|
|
2
|
-
export declare const FormStepperFinishTrigger: import(
|
|
2
|
+
export declare const FormStepperFinishTrigger: import("react").ForwardRefExoticComponent<import("@ostack.tech/ui").StepperFinishTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Trigger used to go to the next step of the form stepper. */
|
|
2
|
-
export declare const FormStepperNextTrigger: import(
|
|
2
|
+
export declare const FormStepperNextTrigger: import("react").ForwardRefExoticComponent<import("@ostack.tech/ui").StepperNextTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Trigger used to go to the previous step of the form stepper. */
|
|
2
|
-
export declare const FormStepperPreviousTrigger: import(
|
|
2
|
+
export declare const FormStepperPreviousTrigger: import("react").ForwardRefExoticComponent<import("@ostack.tech/ui").StepperPreviousTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export { FormStepRegistrar } from
|
|
1
|
+
export * from "./FormStep.tsx";
|
|
2
|
+
export * from "./FormStepList.tsx";
|
|
3
|
+
export * from "./FormStepper.tsx";
|
|
4
|
+
export * from "./FormStepperFinishTrigger.tsx";
|
|
5
|
+
export * from "./FormStepperNextTrigger.tsx";
|
|
6
|
+
export * from "./FormStepperPreviousTrigger.tsx";
|
|
7
|
+
export { FormStepRegistrar } from "./FormStepRegistrar.tsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AbsolutePath, Schema, SealedValidationIssue } from
|
|
2
|
-
import { ComponentPropsWithRef } from
|
|
3
|
-
import { IssueMessagesProps } from
|
|
1
|
+
import type { AbsolutePath, Schema, SealedValidationIssue } from "@ostack.tech/kform";
|
|
2
|
+
import type { ComponentPropsWithRef } from "react";
|
|
3
|
+
import type { IssueMessagesProps } from "../IssueMessages";
|
|
4
4
|
/** Default data key where to check for an issue message. */
|
|
5
5
|
export declare const DEFAULT_ISSUE_MESSAGE_DATA_KEY = "message";
|
|
6
6
|
/** Properties of the issue message component. */
|
|
@@ -13,4 +13,4 @@ export interface IssueMessageProps extends Pick<IssueMessagesProps, "visuallyHid
|
|
|
13
13
|
issueCodeProps?: ComponentPropsWithRef<"span">;
|
|
14
14
|
}
|
|
15
15
|
/** Single issue message within the issue messages or issues panel components. */
|
|
16
|
-
export declare function IssueMessage({ path, issue, schema, displayIssueCode, messageDataKey, visuallyHiddenErrorCodePrefix, visuallyHiddenWarningCodePrefix, unknownErrorMessage, unknownWarningMessage, issueCodeProps, }: IssueMessageProps): import("react
|
|
16
|
+
export declare function IssueMessage({ path, issue, schema, displayIssueCode, messageDataKey, visuallyHiddenErrorCodePrefix, visuallyHiddenWarningCodePrefix, unknownErrorMessage, unknownWarningMessage, issueCodeProps, }: IssueMessageProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./IssueMessage.tsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AbsolutePath, Path, Schema, SealedValidationIssue, ValidationIssueData } from
|
|
2
|
-
import { FeedbackList } from
|
|
3
|
-
import { ComponentPropsWithoutRef, ReactNode } from
|
|
1
|
+
import type { AbsolutePath, Path, Schema, SealedValidationIssue, ValidationIssueData } from "@ostack.tech/kform";
|
|
2
|
+
import { FeedbackList } from "@ostack.tech/ui";
|
|
3
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
4
4
|
/** Value of an issue message. */
|
|
5
5
|
export type IssueMessageValue = ReactNode | ((issueData: ValidationIssueData, schema: Schema, path: AbsolutePath) => ReactNode);
|
|
6
6
|
/** Mapping of issue message codes to their respective message. */
|
|
@@ -79,4 +79,4 @@ export interface IssueMessagesProps extends ComponentPropsWithoutRef<typeof Feed
|
|
|
79
79
|
* If `path` contains an issue without an associated issue message, a generic
|
|
80
80
|
* message is displayed together with a console warning.
|
|
81
81
|
*/
|
|
82
|
-
export declare const IssueMessages: import(
|
|
82
|
+
export declare const IssueMessages: import("react").ForwardRefExoticComponent<IssueMessagesProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./IssueMessages.tsx";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Alert } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
3
|
-
import { IssueMessages } from
|
|
1
|
+
import { Alert } from "@ostack.tech/ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
|
+
import { IssueMessages } from "../IssueMessages";
|
|
4
4
|
/** Properties of the issues alert component. */
|
|
5
5
|
export interface IssuesAlertProps extends Omit<ComponentPropsWithoutRef<typeof Alert>, "open" | "defaultOpen" | "severity" | "children">, Pick<ComponentPropsWithoutRef<typeof IssueMessages>, "path" | "issues" | "messages" | "displayIssueCodes" | "messagesDataKey" | "visuallyHiddenErrorCodePrefix" | "visuallyHiddenWarningCodePrefix" | "unknownErrorMessage" | "unknownWarningMessage"> {
|
|
6
6
|
}
|
|
7
7
|
/** Component used to display an issue alert. */
|
|
8
|
-
export declare const IssuesAlert: import(
|
|
8
|
+
export declare const IssuesAlert: import("react").ForwardRefExoticComponent<IssuesAlertProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./IssuesAlert.tsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IssuesTrackerOptions } from
|
|
2
|
-
import { Card, CardBody, CardHeader, CardTitle, CloseButton, Icon, IconButton, Spinner } from
|
|
3
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from
|
|
1
|
+
import { type IssuesTrackerOptions } from "@ostack.tech/kform-react";
|
|
2
|
+
import { type Card, type CardBody, type CardHeader, type CardTitle, type CloseButton, type Icon, type IconButton, type Spinner } from "@ostack.tech/ui";
|
|
3
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactNode } from "react";
|
|
4
4
|
/** Default “focus” keybinds. */
|
|
5
5
|
export declare const DEFAULT_FOCUS_KEYBINDS = "Alt+Shift+F";
|
|
6
6
|
/** Default “previous issue” keybinds. */
|
|
@@ -123,4 +123,4 @@ export interface IssuesPanelProps extends Pick<IssuesTrackerOptions, "issuesOrde
|
|
|
123
123
|
closeButtonProps?: ComponentPropsWithRef<typeof CloseButton>;
|
|
124
124
|
}
|
|
125
125
|
/** Component used to navigate through the issues of the form. */
|
|
126
|
-
export declare const IssuesPanel: import(
|
|
126
|
+
export declare const IssuesPanel: import("react").ForwardRefExoticComponent<IssuesPanelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AbsolutePath } from
|
|
2
|
-
import { Controller } from
|
|
3
|
-
import { IconButtonColor } from
|
|
4
|
-
import { IssuesPanelProps } from
|
|
1
|
+
import type { AbsolutePath } from "@ostack.tech/kform";
|
|
2
|
+
import type { Controller } from "@ostack.tech/kform-react";
|
|
3
|
+
import { type IconButtonColor } from "@ostack.tech/ui";
|
|
4
|
+
import type { IssuesPanelProps } from "./IssuesPanel.tsx";
|
|
5
5
|
/** Properties of the issues panel controls component. */
|
|
6
6
|
export interface IssuesPanelControlsProps extends Pick<IssuesPanelProps, "focusButtonLabel" | "focusKeybinds" | "previousIssueButtonLabel" | "previousIssueKeybinds" | "nextIssueButtonLabel" | "nextIssueKeybinds" | "firstIssueButtonLabel" | "firstIssueKeybinds" | "lastIssueButtonLabel" | "lastIssueKeybinds" | "paginationLabel" | "validatingSpinnerProps" | "paginationProps" | "focusButtonProps" | "previousIssueButtonProps" | "nextIssueButtonProps" | "firstIssueButtonProps" | "lastIssueButtonProps" | "closeButtonProps"> {
|
|
7
7
|
currentPagePath: AbsolutePath | null;
|
|
@@ -16,4 +16,4 @@ export interface IssuesPanelControlsProps extends Pick<IssuesPanelProps, "focusB
|
|
|
16
16
|
closePanel: () => void;
|
|
17
17
|
}
|
|
18
18
|
/** Controls of the issues panel. */
|
|
19
|
-
export declare function IssuesPanelControls({ currentPagePath, nPages, currentPageIndex, currentPageController, goToPreviousPage, goToNextPage, goToFirstPage, goToLastPage, buttonsColor, closePanel, focusButtonLabel, focusKeybinds, previousIssueButtonLabel, previousIssueKeybinds, nextIssueButtonLabel, nextIssueKeybinds, firstIssueButtonLabel, firstIssueKeybinds, lastIssueButtonLabel, lastIssueKeybinds, paginationLabel, validatingSpinnerProps, paginationProps, focusButtonProps, previousIssueButtonProps, nextIssueButtonProps, firstIssueButtonProps, lastIssueButtonProps, closeButtonProps, }: IssuesPanelControlsProps): import("react
|
|
19
|
+
export declare function IssuesPanelControls({ currentPagePath, nPages, currentPageIndex, currentPageController, goToPreviousPage, goToNextPage, goToFirstPage, goToLastPage, buttonsColor, closePanel, focusButtonLabel, focusKeybinds, previousIssueButtonLabel, previousIssueKeybinds, nextIssueButtonLabel, nextIssueKeybinds, firstIssueButtonLabel, firstIssueKeybinds, lastIssueButtonLabel, lastIssueKeybinds, paginationLabel, validatingSpinnerProps, paginationProps, focusButtonProps, previousIssueButtonProps, nextIssueButtonProps, firstIssueButtonProps, lastIssueButtonProps, closeButtonProps, }: IssuesPanelControlsProps): import("react").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AbsolutePath } from
|
|
2
|
-
import { Controller, IssuesTrackerResult } from
|
|
3
|
-
import { Card, IconButtonColor } from
|
|
4
|
-
import { ComponentPropsWithoutRef, ReactNode } from
|
|
5
|
-
import { IssuesPanelProps } from
|
|
1
|
+
import type { AbsolutePath } from "@ostack.tech/kform";
|
|
2
|
+
import { type Controller, type IssuesTrackerResult } from "@ostack.tech/kform-react";
|
|
3
|
+
import { Card, type IconButtonColor } from "@ostack.tech/ui";
|
|
4
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
5
|
+
import type { IssuesPanelProps } from "./IssuesPanel.tsx";
|
|
6
6
|
export interface IssuesPanelMessagesCardProps extends ComponentPropsWithoutRef<typeof Card>, Pick<IssuesPanelProps, "displayIssueCodes" | "unknownErrorMessage" | "unknownWarningMessage" | "errorsLabel" | "warningsLabel" | "noIssuesMessage" | "resolvedTitle" | "resolvedMessage" | "headerProps" | "bodyProps" | "loadingSpinnerProps" | "titleProps" | "iconProps"> {
|
|
7
7
|
currentPagePath: AbsolutePath | null;
|
|
8
8
|
currentPageController: Controller;
|
|
@@ -10,4 +10,4 @@ export interface IssuesPanelMessagesCardProps extends ComponentPropsWithoutRef<t
|
|
|
10
10
|
currentPageIndex: number;
|
|
11
11
|
renderControls: (buttonsColor?: IconButtonColor) => ReactNode;
|
|
12
12
|
}
|
|
13
|
-
export declare const IssuesPanelMessagesCard: import(
|
|
13
|
+
export declare const IssuesPanelMessagesCard: import("react").ForwardRefExoticComponent<IssuesPanelMessagesCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IssuesTrackerResult } from
|
|
2
|
-
import { Card, IconButtonColor } from
|
|
3
|
-
import { ComponentPropsWithoutRef, ReactNode } from
|
|
4
|
-
import { IssuesPanelProps } from
|
|
1
|
+
import type { IssuesTrackerResult } from "@ostack.tech/kform-react";
|
|
2
|
+
import { Card, type IconButtonColor } from "@ostack.tech/ui";
|
|
3
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
4
|
+
import type { IssuesPanelProps } from "./IssuesPanel.tsx";
|
|
5
5
|
export interface IssuesPanelSummaryCardProps extends ComponentPropsWithoutRef<typeof Card>, Pick<IssuesPanelProps, "errorsLabel" | "warningsLabel" | "noIssuesMessage" | "headerProps" | "loadingSpinnerProps" | "titleProps" | "iconProps"> {
|
|
6
6
|
issuesTrackerResult: IssuesTrackerResult;
|
|
7
7
|
renderControls: (buttonsColor?: IconButtonColor) => ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const IssuesPanelSummaryCard: import(
|
|
9
|
+
export declare const IssuesPanelSummaryCard: import("react").ForwardRefExoticComponent<IssuesPanelSummaryCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./IssuesPanel.tsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Path } from
|
|
2
|
-
import { FeedbackPopover } from
|
|
3
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { type Path } from "@ostack.tech/kform";
|
|
2
|
+
import { FeedbackPopover } from "@ostack.tech/ui";
|
|
3
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
4
4
|
/** Properties of the issues popover component. */
|
|
5
5
|
export interface IssuesPopoverProps extends ComponentPropsWithoutRef<typeof FeedbackPopover> {
|
|
6
6
|
path?: string | Path;
|
|
@@ -12,4 +12,4 @@ export interface IssuesPopoverProps extends ComponentPropsWithoutRef<typeof Feed
|
|
|
12
12
|
relevantPaths?: (string | Path)[];
|
|
13
13
|
}
|
|
14
14
|
/** Component used to display issues within a popover. */
|
|
15
|
-
export declare const IssuesPopover: import(
|
|
15
|
+
export declare const IssuesPopover: import("react").ForwardRefExoticComponent<IssuesPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./IssuesPopover.tsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonProps } from
|
|
2
|
-
import { ReactNode } from
|
|
3
|
-
import { FormLoaderOptions } from
|
|
1
|
+
import { type ButtonProps } from "@ostack.tech/ui";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import { type FormLoaderOptions } from "../../utils/useFormLoader.tsx";
|
|
4
4
|
/** Default “load” keybinds. */
|
|
5
5
|
export declare const DEFAULT_LOAD_KEYBINDS = "$mod+O";
|
|
6
6
|
/** Properties of the load action. */
|
|
@@ -22,4 +22,4 @@ export interface LoadActionProps<T = unknown> extends Omit<ButtonProps, "childre
|
|
|
22
22
|
keybinds?: string | string[] | null;
|
|
23
23
|
}
|
|
24
24
|
/** Action used to load a form from a file. */
|
|
25
|
-
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
|
|
25
|
+
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.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./LoadAction.tsx";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Path } from
|
|
2
|
-
import { Numeric, NumericInputController, NumericInputOptions } from
|
|
3
|
-
import { NumericInput } from
|
|
4
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, ReactNode, Ref } from
|
|
5
|
-
import { IssueMessages, IssueMessagesByCode } from
|
|
1
|
+
import type { Path } from "@ostack.tech/kform";
|
|
2
|
+
import { type Numeric, type NumericInputController, type NumericInputOptions } from "@ostack.tech/kform-react";
|
|
3
|
+
import { NumericInput } from "@ostack.tech/ui";
|
|
4
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ComponentRef, type ReactNode, type Ref } from "react";
|
|
5
|
+
import type { IssueMessages, IssueMessagesByCode } from "../IssueMessages";
|
|
6
6
|
/** Properties of the numeric control component. */
|
|
7
7
|
export interface NumericControlProps<T extends Numeric | null = Numeric | null> extends Omit<NumericInputOptions<T, string, ComponentRef<typeof NumericInput>>, "enabled" | "formatFromString" | "parseToString">, Omit<ComponentPropsWithoutRef<typeof NumericInput>, "defaultValue" | "value" | "onValueChange" | "valueIsUnformattedString" | "status" | "validate" | "validationMode"> {
|
|
8
8
|
/** Path to the value. */
|
|
@@ -42,4 +42,4 @@ export interface NumericControlProps<T extends Numeric | null = Numeric | null>
|
|
|
42
42
|
issueMessagesProps?: Omit<ComponentPropsWithRef<typeof IssueMessages>, "path" | "issues" | "messages" | "unwrapped">;
|
|
43
43
|
}
|
|
44
44
|
/** Numeric control component supporting (possibly nullable) numeric schemas. */
|
|
45
|
-
export declare const NumericControl: import(
|
|
45
|
+
export declare const NumericControl: import("react").ForwardRefExoticComponent<NumericControlProps<Numeric | null> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./NumericControl.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Path } from
|
|
2
|
-
import { LinkAs, LinkOwnProps, PolymorphicComponent, PolymorphicProps } from
|
|
1
|
+
import type { Path } from "@ostack.tech/kform";
|
|
2
|
+
import { type LinkAs, type LinkOwnProps, type PolymorphicComponent, type PolymorphicProps } from "@ostack.tech/ui";
|
|
3
3
|
/** Elements a path link can be rendered as. */
|
|
4
4
|
export type PathLinkAs = LinkAs;
|
|
5
5
|
/** Properties of the path link component. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./PathLink.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ButtonProps } from
|
|
2
|
-
import { ReactNode } from
|
|
1
|
+
import { type ButtonProps } from "@ostack.tech/ui";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
3
|
/** Default “print” keybinds. */
|
|
4
4
|
export declare const DEFAULT_PRINT_KEYBINDS = "$mod+P";
|
|
5
5
|
/** Properties of the print action. */
|
|
@@ -41,4 +41,4 @@ export interface PrintActionProps extends Omit<ButtonProps, "children"> {
|
|
|
41
41
|
* </Printer>;
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
export declare function PrintAction({ label, keybinds, disabled, loading, onClick, ...otherProps }: PrintActionProps): import("react
|
|
44
|
+
export declare function PrintAction({ label, keybinds, disabled, loading, onClick, ...otherProps }: PrintActionProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./PrintAction.tsx";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Path } from
|
|
2
|
-
import { InputController, InputOptions } from
|
|
3
|
-
import { Radio, RadioGroup } from
|
|
4
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, Key, ReactNode, Ref } from
|
|
5
|
-
import { IssueMessages, IssueMessagesByCode } from
|
|
1
|
+
import type { Path } from "@ostack.tech/kform";
|
|
2
|
+
import { type InputController, type InputOptions } from "@ostack.tech/kform-react";
|
|
3
|
+
import { Radio, RadioGroup } from "@ostack.tech/ui";
|
|
4
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ComponentRef, type Key, type ReactNode, type Ref } from "react";
|
|
5
|
+
import type { IssueMessages, IssueMessagesByCode } from "../IssueMessages";
|
|
6
6
|
/** Radio in object notation. */
|
|
7
7
|
export type RadioObject<T = unknown> = Omit<ComponentPropsWithRef<typeof Radio>, "value" | "children"> & {
|
|
8
8
|
/** Option value. */
|
|
@@ -55,4 +55,4 @@ export interface RadioGroupControlProps<T = unknown> extends Omit<InputOptions<T
|
|
|
55
55
|
issueMessagesProps?: Omit<ComponentPropsWithRef<typeof IssueMessages>, "path" | "issues" | "messages" | "unwrapped">;
|
|
56
56
|
}
|
|
57
57
|
/** Radio group control component supporting schemas of any type. */
|
|
58
|
-
export declare const RadioGroupControl: import(
|
|
58
|
+
export declare const RadioGroupControl: import("react").ForwardRefExoticComponent<RadioGroupControlProps<unknown> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./RadioGroupControl.tsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonProps, DropdownMenuContent, IconButton } from
|
|
2
|
-
import { ComponentPropsWithRef, ReactNode } from
|
|
3
|
-
import { FormSaverOptions } from
|
|
1
|
+
import { type ButtonProps, DropdownMenuContent, IconButton } from "@ostack.tech/ui";
|
|
2
|
+
import type { ComponentPropsWithRef, ReactNode } from "react";
|
|
3
|
+
import { type FormSaverOptions } from "../../utils/useFormSaver.tsx";
|
|
4
4
|
/** Default “save” keybinds. */
|
|
5
5
|
export declare const DEFAULT_SAVE_KEYBINDS = "$mod+S";
|
|
6
6
|
/** Default “save as” keybinds. */
|
|
@@ -54,4 +54,4 @@ export interface SaveActionProps<T = unknown> extends Omit<ButtonProps, "childre
|
|
|
54
54
|
dropdownMenuProps?: ComponentPropsWithRef<typeof DropdownMenuContent>;
|
|
55
55
|
}
|
|
56
56
|
/** Action used to save the form to a file. */
|
|
57
|
-
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
|
|
57
|
+
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.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./SaveAction.tsx";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Path } from
|
|
2
|
-
import { InputController, InputOptions } from
|
|
3
|
-
import { Select } from
|
|
4
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, ReactNode, Ref } from
|
|
5
|
-
import { OptionObject, OptionsGroupObject } from
|
|
6
|
-
import { IssueMessages, IssueMessagesByCode } from
|
|
1
|
+
import type { Path } from "@ostack.tech/kform";
|
|
2
|
+
import { type InputController, type InputOptions } from "@ostack.tech/kform-react";
|
|
3
|
+
import { Select } from "@ostack.tech/ui";
|
|
4
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ComponentRef, type ReactNode, type Ref } from "react";
|
|
5
|
+
import type { OptionObject, OptionsGroupObject } from "../../utils/options.ts";
|
|
6
|
+
import type { IssueMessages, IssueMessagesByCode } from "../IssueMessages";
|
|
7
7
|
/** Properties of the select control component. */
|
|
8
8
|
export interface SelectControlProps<T = unknown> extends Omit<InputOptions<T, T, ComponentRef<typeof Select>>, "enabled" | "format" | "parse">, Omit<ComponentPropsWithoutRef<typeof Select>, "multiple" | "defaultValue" | "value" | "onValueChange" | "children" | "status" | "validate" | "validationMode"> {
|
|
9
9
|
/** Path to the value. */
|
|
@@ -47,4 +47,4 @@ export interface SelectControlProps<T = unknown> extends Omit<InputOptions<T, T,
|
|
|
47
47
|
issueMessagesProps?: Omit<ComponentPropsWithRef<typeof IssueMessages>, "path" | "issues" | "messages" | "unwrapped">;
|
|
48
48
|
}
|
|
49
49
|
/** Select control component supporting schemas of any type. */
|
|
50
|
-
export declare const SelectControl: import(
|
|
50
|
+
export declare const SelectControl: import("react").ForwardRefExoticComponent<SelectControlProps<unknown> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./SelectControl.tsx";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Path } from
|
|
2
|
-
import { Listable, ListableInputController, ListableInputOptions } from
|
|
3
|
-
import { Select } from
|
|
4
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, ReactNode, Ref } from
|
|
5
|
-
import { OptionObject, OptionsGroupObject } from
|
|
6
|
-
import { IssueMessages, IssueMessagesByCode } from
|
|
1
|
+
import type { Path } from "@ostack.tech/kform";
|
|
2
|
+
import { type Listable, type ListableInputController, type ListableInputOptions } from "@ostack.tech/kform-react";
|
|
3
|
+
import { Select } from "@ostack.tech/ui";
|
|
4
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ComponentRef, type ReactNode, type Ref } from "react";
|
|
5
|
+
import type { OptionObject, OptionsGroupObject } from "../../utils/options.ts";
|
|
6
|
+
import type { IssueMessages, IssueMessagesByCode } from "../IssueMessages";
|
|
7
7
|
/** Properties of the select multiple control component. */
|
|
8
8
|
export interface SelectMultipleControlProps<T = unknown, TListable extends Listable<T> | null = Listable<T> | null> extends Omit<ListableInputOptions<T, TListable, T[] | null, ComponentRef<typeof Select>>, "enabled" | "formatFromArray" | "parseToArray">, Omit<ComponentPropsWithoutRef<typeof Select>, "multiple" | "defaultValue" | "value" | "onValueChange" | "children" | "status" | "validate" | "validationMode"> {
|
|
9
9
|
/** Path to the value. */
|
|
@@ -54,4 +54,4 @@ export interface SelectMultipleControlProps<T = unknown, TListable extends Lista
|
|
|
54
54
|
* the control contains no elements. Note, however, that the form may still hold
|
|
55
55
|
* an empty listable as value if set programmatically.
|
|
56
56
|
*/
|
|
57
|
-
export declare const SelectMultipleControl: import(
|
|
57
|
+
export declare const SelectMultipleControl: import("react").ForwardRefExoticComponent<SelectMultipleControlProps<unknown, Listable<unknown> | null> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./SelectMultipleControl.tsx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LocatedValidationWarning } from
|
|
2
|
-
import { SubmitOptions } from
|
|
3
|
-
import { Alert, AlertDialogBody, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, Button, ButtonProps, Checkbox } from
|
|
4
|
-
import { ComponentPropsWithRef, ReactNode } from
|
|
1
|
+
import { type LocatedValidationWarning } from "@ostack.tech/kform";
|
|
2
|
+
import { type SubmitOptions } from "@ostack.tech/kform-react";
|
|
3
|
+
import { Alert, AlertDialogBody, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, Button, type ButtonProps, Checkbox } from "@ostack.tech/ui";
|
|
4
|
+
import { type ComponentPropsWithRef, type ReactNode } from "react";
|
|
5
5
|
/** Default “submit” keybinds. */
|
|
6
6
|
export declare const DEFAULT_SUBMIT_KEYBINDS = "$mod+Enter";
|
|
7
7
|
/** Properties of the submit action. */
|
|
@@ -96,4 +96,4 @@ export interface SubmitActionProps<T = unknown, TSubmitResult = unknown> extends
|
|
|
96
96
|
confirmWarningsCheckboxProps?: Omit<ComponentPropsWithRef<typeof Checkbox>, "checked" | "onCheckedChange" | "children">;
|
|
97
97
|
}
|
|
98
98
|
/** Action used to submit the form. */
|
|
99
|
-
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
|
|
99
|
+
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.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./SubmitAction.tsx";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Path, Table } from
|
|
2
|
-
import { ControllerOptions } from
|
|
3
|
-
import { DataTable } from
|
|
4
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode, Ref } from
|
|
5
|
-
import { IssueMessages, IssueMessagesByCode } from
|
|
6
|
-
import { TableControlApi } from
|
|
7
|
-
import { TableControlColumn, TableControlColumns } from
|
|
1
|
+
import { type Path, type Table } from "@ostack.tech/kform";
|
|
2
|
+
import { type ControllerOptions } from "@ostack.tech/kform-react";
|
|
3
|
+
import { DataTable } from "@ostack.tech/ui";
|
|
4
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactNode, type Ref } from "react";
|
|
5
|
+
import type { IssueMessages, IssueMessagesByCode } from "../IssueMessages";
|
|
6
|
+
import type { TableControlApi } from "./TableControlApi.ts";
|
|
7
|
+
import type { TableControlColumn, TableControlColumns } from "./TableControlColumn.tsx";
|
|
8
8
|
/** Properties of the table control component. */
|
|
9
9
|
export interface TableControlProps<T = unknown, TTable extends Table<T> | null = Table<T> | null> extends Omit<ComponentPropsWithoutRef<typeof DataTable>, "columns" | "rows" | "onVisibleRowsChange" | "onProcessedRowsChange" | "getRows" | "rowKey" | "loading" | "defaultFilter" | "filter" | "onFilterChange" | "defaultSortBy" | "sortBy" | "defaultSortDirection" | "sortDirection" | "onSort" | "showSelectionColumn" | "selectionMode" | "defaultSelectedRows" | "selectedRows" | "onSelectedRowsChange" | "selectAllChecked" | "onSelectAll" | "showAllRowsWhilePrinting" | "apiRef">, Omit<ControllerOptions<TTable>, "enabled"> {
|
|
10
10
|
/** Control's path. */
|
|
@@ -55,7 +55,7 @@ export interface TableControlProps<T = unknown, TTable extends Table<T> | null =
|
|
|
55
55
|
issueMessagesProps?: Omit<ComponentPropsWithRef<typeof IssueMessages>, "path" | "issues" | "messages" | "unwrapped">;
|
|
56
56
|
}
|
|
57
57
|
/** Table control component supporting (possibly nullable) collection schemas. */
|
|
58
|
-
export declare const TableControl: import(
|
|
58
|
+
export declare const TableControl: import("react").ForwardRefExoticComponent<TableControlProps<unknown, Table<unknown> | null> & import("react").RefAttributes<HTMLTableElement>>;
|
|
59
59
|
/** Properties of the table control cell renderer. */
|
|
60
60
|
export interface TableControlCellRendererProps<T = unknown> {
|
|
61
61
|
render: NonNullable<TableControlColumn<T>["render"]>;
|