@ostack.tech/ui-kform 1.2.0-beta.0 → 1.2.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.
Files changed (97) hide show
  1. package/dist/chunks/{en-D4xMcf6Q.js → en-BHlLXSzh.js} +4 -16
  2. package/dist/chunks/en-BHlLXSzh.js.map +1 -0
  3. package/dist/locales/en-GB.js +1 -1
  4. package/dist/locales/en-US.js +1 -1
  5. package/dist/locales/fr-FR.js +5 -17
  6. package/dist/locales/fr-FR.js.map +1 -1
  7. package/dist/locales/pt-PT.js +3 -15
  8. package/dist/locales/pt-PT.js.map +1 -1
  9. package/dist/ostack-ui-kform.js +15299 -4434
  10. package/dist/ostack-ui-kform.js.map +1 -1
  11. package/package.json +16 -14
  12. package/scss/components/Annexes/_Annexes-variables.scss +4 -9
  13. package/scss/components/Annexes/_Annexes.scss +9 -15
  14. package/scss/components/FormApp/_FormApp.scss +1 -4
  15. package/scss/components/FormPages/_FormPages-variables.scss +8 -27
  16. package/scss/components/FormPages/_FormPages.scss +11 -33
  17. package/scss/components/IssuesPanel/_IssuesPanel-variables.scss +3 -8
  18. package/scss/components/IssuesPanel/_IssuesPanel.scss +3 -8
  19. package/types/components/Annexes/Annex.d.ts +26 -37
  20. package/types/components/Annexes/Annexes.d.ts +8 -10
  21. package/types/components/Annexes/AnnexesContext.d.ts +1 -1
  22. package/types/components/Annexes/AnnexesManager.d.ts +8 -12
  23. package/types/components/CheckboxControl/CheckboxControl.d.ts +9 -19
  24. package/types/components/CheckboxGroupControl/CheckboxGroupControl.d.ts +14 -31
  25. package/types/components/CheckboxGroupControl/CheckboxGroupControlItem.d.ts +1 -2
  26. package/types/components/ControlField/ControlField.d.ts +6 -6
  27. package/types/components/DateControl/DateControl.d.ts +13 -18
  28. package/types/components/DateRangeControl/DateRangeControl.d.ts +16 -22
  29. package/types/components/DebugInfo/DebugInfo.d.ts +3 -4
  30. package/types/components/DebugInfo/DebugInfoControlAddonTrigger.d.ts +1 -1
  31. package/types/components/FileControl/FileControl.d.ts +16 -22
  32. package/types/components/FileControl/FileControlDownloadAddon.d.ts +2 -2
  33. package/types/components/FileControl/FileControlViewAddon.d.ts +1 -1
  34. package/types/components/FormApp/FormApp.d.ts +25 -34
  35. package/types/components/FormApp/FormAppContext.d.ts +20 -44
  36. package/types/components/FormApp/FormAppIssueMessages.d.ts +6 -8
  37. package/types/components/FormApp/FormAppStatus.d.ts +1 -1
  38. package/types/components/FormPages/FormPage.d.ts +12 -20
  39. package/types/components/FormPages/FormPages.d.ts +8 -17
  40. package/types/components/FormPages/FormPagesContext.d.ts +1 -1
  41. package/types/components/FormPages/FormPagesNavigation.d.ts +3 -3
  42. package/types/components/FormStepper/FormStep.d.ts +8 -9
  43. package/types/components/FormStepper/FormStepper.d.ts +14 -18
  44. package/types/components/FormStepper/FormStepperContext.d.ts +1 -1
  45. package/types/components/IssueMessage/IssueMessage.d.ts +1 -1
  46. package/types/components/IssueMessages/IssueMessages.d.ts +17 -25
  47. package/types/components/IssuesPanel/IssuesPanel.d.ts +11 -15
  48. package/types/components/IssuesPanel/IssuesPanelControls.d.ts +1 -1
  49. package/types/components/IssuesPopover/IssuesPopover.d.ts +4 -4
  50. package/types/components/LoadAction/LoadAction.d.ts +7 -10
  51. package/types/components/NumericControl/NumericControl.d.ts +15 -21
  52. package/types/components/PathLink/PathLink.d.ts +4 -5
  53. package/types/components/PrintAction/PrintAction.d.ts +7 -11
  54. package/types/components/RadioGroupControl/RadioGroupControl.d.ts +12 -21
  55. package/types/components/RadioGroupControl/RadioGroupControlItem.d.ts +2 -2
  56. package/types/components/ResetOnChange/ResetOnChange.d.ts +6 -14
  57. package/types/components/ResetOnChange/index.d.ts +1 -1
  58. package/types/components/ResetOnChange/useResetOnChange.d.ts +22 -32
  59. package/types/components/SaveAction/SaveAction.d.ts +22 -30
  60. package/types/components/SelectControl/SelectControl.d.ts +11 -21
  61. package/types/components/SelectControl/SelectControlItem.d.ts +2 -2
  62. package/types/components/SelectControl/SelectControlItemGroup.d.ts +2 -3
  63. package/types/components/SelectMultipleControl/SelectMultipleControl.d.ts +17 -35
  64. package/types/components/SelectMultipleControl/SelectMultipleControlItem.d.ts +1 -2
  65. package/types/components/SelectMultipleControl/SelectMultipleControlItemGroup.d.ts +2 -2
  66. package/types/components/SubmitAction/SubmitAction.d.ts +19 -33
  67. package/types/components/TableControl/TableControl.d.ts +27 -41
  68. package/types/components/TableControl/TableControlActionsColumn.d.ts +3 -5
  69. package/types/components/TableControl/TableControlAddRowTrigger.d.ts +7 -13
  70. package/types/components/TableControl/TableControlApi.d.ts +4 -4
  71. package/types/components/TableControl/TableControlColumn.d.ts +5 -8
  72. package/types/components/TableControl/TableControlColumnFns.d.ts +21 -31
  73. package/types/components/TableControl/TableControlColumnGroup.d.ts +3 -6
  74. package/types/components/TableControl/TableControlColumns.d.ts +4 -4
  75. package/types/components/TableControl/TableControlContent.d.ts +1 -1
  76. package/types/components/TableControl/TableControlIndexColumn.d.ts +2 -2
  77. package/types/components/TableControl/TableControlRemoveRowTrigger.d.ts +9 -16
  78. package/types/components/TextControl/TextControl.d.ts +7 -13
  79. package/types/components/UnknownValue/UnknownValue.d.ts +1 -1
  80. package/types/components/ValidateAction/ValidateAction.d.ts +7 -10
  81. package/types/providers/ActivePathProvider/ActivePathProvider.d.ts +4 -7
  82. package/types/providers/LocalizationProvider/LocalizationProvider.d.ts +1 -4
  83. package/types/providers/LocalizationProvider/useLocale.d.ts +1 -4
  84. package/types/providers/PrefixSuffixProvider/PrefixSuffixProvider.d.ts +1 -1
  85. package/types/providers/PrefixSuffixProvider/defaultPrefixSuffix.d.ts +3 -3
  86. package/types/providers/PrefixSuffixProvider/usePrefix.d.ts +1 -4
  87. package/types/utils/mostSpecificPath.d.ts +4 -6
  88. package/types/utils/pathSpecificity.d.ts +7 -8
  89. package/types/utils/selectionTransformations.d.ts +2 -8
  90. package/types/utils/useControlAutofocus.d.ts +6 -8
  91. package/types/utils/useControlIssues.d.ts +4 -4
  92. package/types/utils/useFormLoader.d.ts +24 -31
  93. package/types/utils/useFormSaver.d.ts +29 -34
  94. package/types/utils/useFormValidator.d.ts +13 -20
  95. package/types/utils/useRegisterControl.d.ts +1 -1
  96. package/types/utils/useTemporalStringTransformer.d.ts +4 -10
  97. package/dist/chunks/en-D4xMcf6Q.js.map +0 -1
@@ -17,8 +17,7 @@ export interface CheckboxGroupControlProps<T = unknown, TListable extends Listab
17
17
  */
18
18
  issueMessages?: IssueMessagesByCode;
19
19
  /**
20
- * Label to use in the issues panel when displaying issues associated with
21
- * this field.
20
+ * Label to use in the issues panel when displaying issues associated with this field.
22
21
  *
23
22
  * This label has priority over the field's `Label`.
24
23
  */
@@ -32,21 +31,18 @@ export interface CheckboxGroupControlProps<T = unknown, TListable extends Listab
32
31
  /** Label shown when a value of the control isn't one of the existing options. */
33
32
  unknownValueLabel?: ReactNode;
34
33
  /**
35
- * Whether to prevent the auto-focusing behaviour that causes this control to
36
- * be focused when the form app's `focus` is called with this control's path.
34
+ * Whether to prevent the auto-focusing behaviour that causes this control to be focused when the
35
+ * form app's `focus` is called with this control's path.
37
36
  *
38
- * Preventing this behaviour is useful when multiple controls for the same
39
- * path are rendered at once, and only one of them should be focused.
37
+ * Preventing this behaviour is useful when multiple controls for the same path are rendered at
38
+ * once, and only one of them should be focused.
40
39
  *
41
40
  * @default false
42
41
  */
43
42
  preventAutoFocus?: boolean;
44
43
  /** Checkbox group control children. */
45
44
  children?: ReactNode;
46
- /**
47
- * Whether to show debug information. This property has no effect in
48
- * production builds.
49
- */
45
+ /** Whether to show debug information. This property has no effect in production builds. */
50
46
  debug?: boolean;
51
47
  /** Reference to the control's API. */
52
48
  apiRef?: Ref<ListableInputController<T, TListable, string[], ComponentRef<typeof CheckboxGroup>> | undefined>;
@@ -54,8 +50,7 @@ export interface CheckboxGroupControlProps<T = unknown, TListable extends Listab
54
50
  issueMessagesProps?: Omit<IssueMessagesProps, "path" | "issues" | "messages" | "unwrapped">;
55
51
  }
56
52
  /**
57
- * The checkbox group control component is a KForm form control for values with
58
- * (possibly
53
+ * The checkbox group control component is a KForm form control for values with (possibly
59
54
  * [nullable](https://kform.ostack.tech/api/packages/kform/tech.ostack.kform.schemas/-nullable-schema/index.html))
60
55
  * schemas of type
61
56
  * [`ListSchema`](https://kform.ostack.tech/api/packages/kform/tech.ostack.kform.schemas/-list-schema/index.html)
@@ -66,8 +61,7 @@ export interface CheckboxGroupControlProps<T = unknown, TListable extends Listab
66
61
  *
67
62
  * It composes the following subcomponent:
68
63
  *
69
- * - `CheckboxGroupControlItem`: Component used to define an item of the checkbox
70
- * group control.
64
+ * - `CheckboxGroupControlItem`: Component used to define an item of the checkbox group control.
71
65
  *
72
66
  * The following built-in KForm validations affect this control:
73
67
  *
@@ -79,29 +73,18 @@ export interface CheckboxGroupControlProps<T = unknown, TListable extends Listab
79
73
  * Example usage:
80
74
  *
81
75
  * ```tsx
82
- * import {
83
- * CheckboxGroupControl,
84
- * CheckboxGroupControlItem,
85
- * } from "@ostack.tech/ui-kform";
76
+ * import { CheckboxGroupControl, CheckboxGroupControlItem } from "@ostack.tech/ui-kform";
86
77
  *
87
78
  * function SpokenLanguagesControl() {
88
79
  * return (
89
80
  * <CheckboxGroupControl path="/spokenLanguages">
90
- * <CheckboxGroupControlItem value="en">
91
- * English
92
- * </CheckboxGroupControlItem>
93
- * <CheckboxGroupControlItem value="fr">
94
- * French
95
- * </CheckboxGroupControlItem>
96
- * <CheckboxGroupControlItem value="pt">
97
- * Portuguese
98
- * </CheckboxGroupControlItem>
99
- * <CheckboxGroupControlItem value="es">
100
- * Spanish
101
- * </CheckboxGroupControlItem>
81
+ * <CheckboxGroupControlItem value="en">English</CheckboxGroupControlItem>
82
+ * <CheckboxGroupControlItem value="fr">French</CheckboxGroupControlItem>
83
+ * <CheckboxGroupControlItem value="pt">Portuguese</CheckboxGroupControlItem>
84
+ * <CheckboxGroupControlItem value="es">Spanish</CheckboxGroupControlItem>
102
85
  * </CheckboxGroupControl>
103
86
  * );
104
87
  * }
105
88
  * ```
106
89
  */
107
- export declare function CheckboxGroupControl<T = unknown, TListable extends Listable<T> | null = Listable<T> | null>({ path, options, issueMessages, issuesPanelLabel, displayIssues, unknownValueLabel, preventAutoFocus, apiRef, issueMessagesProps, formManager, onInitialized, onFormManagerEvent, onValueChange, onValidationStatusChange, onDisplayStatusChange, onDirtyStatusChange, onTouchedStatusChange, required, minChecked, maxChecked, loading, showSpinner, disabled, readOnly, endAdornment, onFocus, onBlurToOutside, children, debug, ref, ...otherProps }: CheckboxGroupControlProps<T, TListable>): import("react").JSX.Element;
90
+ export declare function CheckboxGroupControl<T = unknown, TListable extends Listable<T> | null = Listable<T> | null>({ path, options: optionsProp, issueMessages, issuesPanelLabel, displayIssues, unknownValueLabel: unknownValueLabelProp, preventAutoFocus, apiRef, issueMessagesProps, formManager, onInitialized, onFormManagerEvent, onValueChange, onValidationStatusChange, onDisplayStatusChange, onDirtyStatusChange, onTouchedStatusChange, required, minChecked, maxChecked, loading, showSpinner, disabled, readOnly, endAdornment, onFocus, onBlurToOutside, children, debug, ref, ...otherProps }: CheckboxGroupControlProps<T, TListable>): import("react").JSX.Element;
@@ -20,7 +20,6 @@ export interface CheckboxGroupControlItemProps<T = unknown> extends Omit<Checkbo
20
20
  * Definition of a checkbox group control item.
21
21
  *
22
22
  * This component doesn't actually render anything by itself; it is used by the
23
- * `CheckboxGroupControl` component to automatically create the `options`
24
- * array.
23
+ * `CheckboxGroupControl` component to automatically create the `options` array.
25
24
  */
26
25
  export declare function CheckboxGroupControlItem(_props: CheckboxGroupControlItemProps): null;
@@ -8,14 +8,14 @@ export interface ControlFieldProps extends FieldProps {
8
8
  /**
9
9
  * Component used to group controls with a label, helper text, and/or feedback.
10
10
  *
11
- * The component can be conditionally shown via the `shown` property which, by
12
- * default, when changing from `true` to `false` will reset its inner controls.
11
+ * The component can be conditionally shown via the `shown` property which, by default, when
12
+ * changing from `true` to `false` will reset its inner controls.
13
13
  *
14
- * Added labels automatically "point" to the control and are set to "required"
15
- * when requested by the control.
14
+ * Added labels automatically "point" to the control and are set to "required" when requested by the
15
+ * control.
16
16
  *
17
- * Aria descriptions and error messages are set on the control based on the
18
- * provided helper texts or feedbacks.
17
+ * Aria descriptions and error messages are set on the control based on the provided helper texts or
18
+ * feedbacks.
19
19
  *
20
20
  * @deprecated Use the `@ostack.tech/ui` {@link Field} component instead. Set the
21
21
  * `path` on the control directly instead.
@@ -1,10 +1,10 @@
1
1
  import type { Path } from "@ostack.tech/kform";
2
2
  import { type Temporal, type TemporalInputController, type TemporalInputOptions } from "@ostack.tech/kform-react";
3
- import { DateInput, type DateInputProps } from "@ostack.tech/ui";
4
- import { type ComponentRef, type ReactNode, type Ref } from "react";
3
+ import { type DateInputProps } from "@ostack.tech/ui";
4
+ import { type ReactNode, type Ref } from "react";
5
5
  import type { IssueMessagesByCode, IssueMessagesProps } from "../IssueMessages";
6
6
  /** Properties of the date control component. */
7
- export interface DateControlProps<T extends Temporal | null = Temporal | null> extends Omit<TemporalInputOptions<T, string, ComponentRef<typeof DateInput>>, "enabled" | "formatFromString" | "parseToString">, Omit<DateInputProps, "defaultValue" | "value" | "onValueChange" | "status" | "validate" | "validationMode"> {
7
+ export interface DateControlProps<T extends Temporal | null = Temporal | null> extends Omit<TemporalInputOptions<T>, "enabled" | "formatFromString" | "parseToString">, Omit<DateInputProps, "defaultValue" | "value" | "onValueChange" | "status" | "validate" | "validationMode"> {
8
8
  /** Path to the value. */
9
9
  path?: string | Path;
10
10
  /**
@@ -14,8 +14,7 @@ export interface DateControlProps<T extends Temporal | null = Temporal | null> e
14
14
  */
15
15
  issueMessages?: IssueMessagesByCode;
16
16
  /**
17
- * Label to use in the issues panel when displaying issues associated with
18
- * this field.
17
+ * Label to use in the issues panel when displaying issues associated with this field.
19
18
  *
20
19
  * This label has priority over the field's `Label`.
21
20
  */
@@ -27,33 +26,29 @@ export interface DateControlProps<T extends Temporal | null = Temporal | null> e
27
26
  */
28
27
  displayIssues?: boolean;
29
28
  /**
30
- * Whether to prevent the auto-focusing behaviour that causes this control to
31
- * be focused when the form app's `focus` is called with this control's path.
29
+ * Whether to prevent the auto-focusing behaviour that causes this control to be focused when the
30
+ * form app's `focus` is called with this control's path.
32
31
  *
33
- * Preventing this behaviour is useful when multiple controls for the same
34
- * path are rendered at once, and only one of them should be focused.
32
+ * Preventing this behaviour is useful when multiple controls for the same path are rendered at
33
+ * once, and only one of them should be focused.
35
34
  *
36
35
  * @default false
37
36
  */
38
37
  preventAutoFocus?: boolean;
39
- /**
40
- * Whether to show debug information. This property has no effect in
41
- * production builds.
42
- */
38
+ /** Whether to show debug information. This property has no effect in production builds. */
43
39
  debug?: boolean;
44
40
  /** Reference to the control's API. */
45
- apiRef?: Ref<TemporalInputController<T, string, ComponentRef<typeof DateInput>> | undefined>;
41
+ apiRef?: Ref<TemporalInputController<T> | undefined>;
46
42
  /** Properties to pass to the `IssueMessages` component. */
47
43
  issueMessagesProps?: Omit<IssueMessagesProps, "path" | "issues" | "messages" | "unwrapped">;
48
44
  }
49
45
  /**
50
- * The date control component is a KForm form control for values with (typically
51
- * nullable) schemas of type
46
+ * The date control component is a KForm form control for values with (typically nullable) schemas
47
+ * of type
52
48
  * [`LocalDateSchema`](https://kform.ostack.tech/api/packages/kform/tech.ostack.kform.schemas/-local-date-schema/index.html)
53
49
  * or
54
50
  * [`StringSchema`](https://kform.ostack.tech/api/packages/kform/tech.ostack.kform.schemas/-string-schema/index.html).
55
- * It is built on top of the
56
- * [`DateInput`](/docs/ostack-ui-forms-date-input--docs) component.
51
+ * It is built on top of the [`DateInput`](/docs/ostack-ui-forms-date-input--docs) component.
57
52
  *
58
53
  * The following built-in KForm validations affect this control:
59
54
  *
@@ -22,20 +22,19 @@ export interface DateRangeControlProps<TStart extends Temporal | null = Temporal
22
22
  */
23
23
  endIssueMessages?: IssueMessagesByCode;
24
24
  /**
25
- * Label to use in the issues panel when displaying issues associated with
26
- * this field.
25
+ * Label to use in the issues panel when displaying issues associated with this field.
27
26
  *
28
27
  * This label has priority over the field's `Label`.
29
28
  */
30
29
  issuesPanelLabel?: ReactNode;
31
30
  /**
32
- * Label suffix to use in the issues panel when displaying issues associated
33
- * with this field's start date.
31
+ * Label suffix to use in the issues panel when displaying issues associated with this field's
32
+ * start date.
34
33
  */
35
34
  issuesPanelStartLabelSuffix?: ReactNode;
36
35
  /**
37
- * Label suffix to use in the issues panel when displaying issues associated
38
- * with this field's end date.
36
+ * Label suffix to use in the issues panel when displaying issues associated with this field's end
37
+ * date.
39
38
  */
40
39
  issuesPanelEndLabelSuffix?: ReactNode;
41
40
  /**
@@ -45,19 +44,16 @@ export interface DateRangeControlProps<TStart extends Temporal | null = Temporal
45
44
  */
46
45
  displayIssues?: boolean;
47
46
  /**
48
- * Whether to prevent the auto-focusing behaviour that causes this control to
49
- * be focused when the form app's `focus` is called with this control's path.
47
+ * Whether to prevent the auto-focusing behaviour that causes this control to be focused when the
48
+ * form app's `focus` is called with this control's path.
50
49
  *
51
- * Preventing this behaviour is useful when multiple controls for the same
52
- * path are rendered at once, and only one of them should be focused.
50
+ * Preventing this behaviour is useful when multiple controls for the same path are rendered at
51
+ * once, and only one of them should be focused.
53
52
  *
54
53
  * @default false
55
54
  */
56
55
  preventAutoFocus?: boolean;
57
- /**
58
- * Whether to show debug information. This property has no effect in
59
- * production builds.
60
- */
56
+ /** Whether to show debug information. This property has no effect in production builds. */
61
57
  debug?: boolean;
62
58
  /** Reference to the start control's API. */
63
59
  startApiRef?: Ref<TemporalInputController<TStart> | undefined>;
@@ -81,13 +77,13 @@ export interface DateRangeControlProps<TStart extends Temporal | null = Temporal
81
77
  onEndTouchedStatusChange?: TemporalInputOptions<TEnd>["onTouchedStatusChange"];
82
78
  }
83
79
  /**
84
- * The date-range control component is a KForm form control for pairs of values
85
- * (start and end dates) with (typically nullable) schemas of type
80
+ * The date-range control component is a KForm form control for pairs of values (start and end
81
+ * dates) with (typically nullable) schemas of type
86
82
  * [`LocalDateSchema`](https://kform.ostack.tech/api/packages/kform/tech.ostack.kform.schemas/-local-date-schema/index.html)
87
83
  * or
88
84
  * [`StringSchema`](https://kform.ostack.tech/api/packages/kform/tech.ostack.kform.schemas/-string-schema/index.html).
89
- * It is built on top of the
90
- * [`DateRangeInput`](/docs/ostack-ui-forms-date-range-input--docs) component.
85
+ * It is built on top of the [`DateRangeInput`](/docs/ostack-ui-forms-date-range-input--docs)
86
+ * component.
91
87
  *
92
88
  * The following built-in KForm validations affect this control:
93
89
  *
@@ -102,10 +98,8 @@ export interface DateRangeControlProps<TStart extends Temporal | null = Temporal
102
98
  * import { DateRangeControl } from "@ostack.tech/ui-kform";
103
99
  *
104
100
  * function ReservationDatesControl() {
105
- * return (
106
- * <DateRangeControl startPath="/checkInDate" endPath="/checkOutDate" />
107
- * );
101
+ * return <DateRangeControl startPath="/checkInDate" endPath="/checkOutDate" />;
108
102
  * }
109
103
  * ```
110
104
  */
111
- export declare function DateRangeControl<TStart extends Temporal | null = Temporal | null, TEnd extends Temporal | null = TStart>({ startPath, endPath, startIssueMessages, endIssueMessages, issuesPanelLabel, issuesPanelStartLabelSuffix, issuesPanelEndLabelSuffix, displayIssues, preventAutoFocus, startApiRef, endApiRef, issueMessagesProps, required, minDate, maxDate, loading, showSpinners, showStartSpinner, showEndSpinner, disabled, readOnly, startInputProps, endInputProps, onStartInitialized, onStartFormManagerEvent, onStartValueChange, onStartValidationStatusChange, onStartDisplayStatusChange, onStartDirtyStatusChange, onStartTouchedStatusChange, onEndInitialized, onEndFormManagerEvent, onEndValueChange, onEndValidationStatusChange, onEndDisplayStatusChange, onEndDirtyStatusChange, onEndTouchedStatusChange, onValueChange, format: dateFormat, onBlurToOutside, startMiddleAdornment, endAdornment, debug, ...otherProps }: DateRangeControlProps<TStart, TEnd>): import("react").JSX.Element;
105
+ export declare function DateRangeControl<TStart extends Temporal | null = Temporal | null, TEnd extends Temporal | null = TStart>({ startPath, endPath, startIssueMessages, endIssueMessages, issuesPanelLabel, issuesPanelStartLabelSuffix: issuesPanelStartLabelSuffixProp, issuesPanelEndLabelSuffix: issuesPanelEndLabelSuffixProp, displayIssues, preventAutoFocus, startApiRef, endApiRef, issueMessagesProps, required, minDate, maxDate, loading, showSpinners, showStartSpinner, showEndSpinner, disabled, readOnly, startInputProps, endInputProps, onStartInitialized, onStartFormManagerEvent, onStartValueChange, onStartValidationStatusChange, onStartDisplayStatusChange, onStartDirtyStatusChange, onStartTouchedStatusChange, onEndInitialized, onEndFormManagerEvent, onEndValueChange, onEndValidationStatusChange, onEndDisplayStatusChange, onEndDirtyStatusChange, onEndTouchedStatusChange, onValueChange, format: dateFormat, onBlurToOutside, startMiddleAdornment, endAdornment, debug, ...otherProps }: DateRangeControlProps<TStart, TEnd>): import("react").JSX.Element;
@@ -10,9 +10,8 @@ export interface DebugInfoProps<T = unknown, TFormatted extends ReactNode = stri
10
10
  /** Path of the value to debug. */
11
11
  path?: string | Path;
12
12
  /**
13
- * Format function that transforms the form manager value to debug into a
14
- * value to be output. The passed {@link value} is `undefined` when the form
15
- * manager value does not exist.
13
+ * Format function that transforms the form manager value to debug into a value to be output. The
14
+ * passed {@link value} is `undefined` when the form manager value does not exist.
16
15
  *
17
16
  * @param value Form manager value to transform.
18
17
  * @param state Controller's state.
@@ -23,4 +22,4 @@ export interface DebugInfoProps<T = unknown, TFormatted extends ReactNode = stri
23
22
  children?: ReactElement;
24
23
  }
25
24
  /** Debug information. */
26
- export declare function DebugInfo<T = unknown, TFormatted extends ReactNode = string>({ defaultOpen, open, onOpenChange, path, format, children, label, ...otherProps }: DebugInfoProps<T, TFormatted>): import("react").JSX.Element | null;
25
+ export declare function DebugInfo<T = unknown, TFormatted extends ReactNode = string>({ defaultOpen, open, onOpenChange, path, format, children, label: labelProp, ...otherProps }: DebugInfoProps<T, TFormatted>): import("react").JSX.Element | null;
@@ -6,4 +6,4 @@ export interface DebugInfoControlAddonTriggerProps extends Partial<ControlAddonP
6
6
  label?: ReactNode;
7
7
  }
8
8
  /** Debug info trigger as a control addon. */
9
- export declare function DebugInfoControlAddonTrigger({ label, ...otherProps }: DebugInfoControlAddonTriggerProps): import("react").JSX.Element;
9
+ export declare function DebugInfoControlAddonTrigger({ label: labelProp, ...otherProps }: DebugInfoControlAddonTriggerProps): import("react").JSX.Element;
@@ -1,21 +1,20 @@
1
1
  import type { File as KFormFile, Path } from "@ostack.tech/kform";
2
2
  import { type FileInputController, type FileInputOptions } from "@ostack.tech/kform-react";
3
- import { Input, type InputProps } from "@ostack.tech/ui";
4
- import { type ComponentRef, type ReactNode, type Ref } from "react";
3
+ import { type InputProps } from "@ostack.tech/ui";
4
+ import { type ReactNode, type Ref } from "react";
5
5
  import type { IssueMessagesByCode, IssueMessagesProps } from "../IssueMessages";
6
6
  /**
7
7
  * File control's interaction with the selected file:
8
8
  *
9
- * - `view`: A button is added which opens a dialog to view and optionally
10
- * download the file. A fallback alert is displayed when the file cannot be
11
- * viewed.
12
- * - `download`: A button is added to download the file. Useful if you know that
13
- * the accepted file types aren't viewable in the browser.
9
+ * - `view`: A button is added which opens a dialog to view and optionally download the file. A
10
+ * fallback alert is displayed when the file cannot be viewed.
11
+ * - `download`: A button is added to download the file. Useful if you know that the accepted file
12
+ * types aren't viewable in the browser.
14
13
  * - `none`: No interaction with the selected file is added.
15
14
  */
16
15
  export type FileControlFileInteraction = "view" | "download" | "none";
17
16
  /** Properties of the file control component. */
18
- export interface FileControlProps<T extends KFormFile | null = KFormFile | null> extends Omit<FileInputOptions<T, File | null, ComponentRef<typeof Input>>, "enabled" | "formatFromJsFile" | "parseToJsFile">, Omit<InputProps, "type" | "multiple" | "defaultValue" | "value" | "onValueChange" | "status" | "align" | "validate" | "validationMode"> {
17
+ export interface FileControlProps<T extends KFormFile | null = KFormFile | null> extends Omit<FileInputOptions<T>, "enabled" | "formatFromJsFile" | "parseToJsFile">, Omit<InputProps, "type" | "multiple" | "defaultValue" | "value" | "onValueChange" | "status" | "align" | "validate" | "validationMode"> {
19
18
  /** Path to the value. */
20
19
  path?: string | Path;
21
20
  /**
@@ -25,8 +24,7 @@ export interface FileControlProps<T extends KFormFile | null = KFormFile | null>
25
24
  */
26
25
  issueMessages?: IssueMessagesByCode;
27
26
  /**
28
- * Label to use in the issues panel when displaying issues associated with
29
- * this field.
27
+ * Label to use in the issues panel when displaying issues associated with this field.
30
28
  *
31
29
  * This label has priority over the field's `Label`.
32
30
  */
@@ -38,22 +36,19 @@ export interface FileControlProps<T extends KFormFile | null = KFormFile | null>
38
36
  */
39
37
  displayIssues?: boolean;
40
38
  /**
41
- * Whether to prevent the auto-focusing behaviour that causes this control to
42
- * be focused when the form app's `focus` is called with this control's path.
39
+ * Whether to prevent the auto-focusing behaviour that causes this control to be focused when the
40
+ * form app's `focus` is called with this control's path.
43
41
  *
44
- * Preventing this behaviour is useful when multiple controls for the same
45
- * path are rendered at once, and only one of them should be focused.
42
+ * Preventing this behaviour is useful when multiple controls for the same path are rendered at
43
+ * once, and only one of them should be focused.
46
44
  *
47
45
  * @default false
48
46
  */
49
47
  preventAutoFocus?: boolean;
50
- /**
51
- * Whether to show debug information. This property has no effect in
52
- * production builds.
53
- */
48
+ /** Whether to show debug information. This property has no effect in production builds. */
54
49
  debug?: boolean;
55
50
  /** Reference to the control's API. */
56
- apiRef?: Ref<FileInputController<T, File | null, ComponentRef<typeof Input>> | undefined>;
51
+ apiRef?: Ref<FileInputController<T> | undefined>;
57
52
  /**
58
53
  * Type of interaction with the selected file.
59
54
  *
@@ -74,8 +69,7 @@ export interface FileControlProps<T extends KFormFile | null = KFormFile | null>
74
69
  * [nullable](https://kform.ostack.tech/api/packages/kform/tech.ostack.kform.schemas/-nullable-schema/index.html))
75
70
  * schemas of type
76
71
  * [`FileSchema`](https://kform.ostack.tech/api/packages/kform/tech.ostack.kform.schemas/-file-schema/index.html).
77
- * It is built on top of the [`Input`](/docs/ostack-ui-forms-input--docs)
78
- * component.
72
+ * It is built on top of the [`Input`](/docs/ostack-ui-forms-input--docs) component.
79
73
  *
80
74
  * The following built-in KForm validations affect this control:
81
75
  *
@@ -94,4 +88,4 @@ export interface FileControlProps<T extends KFormFile | null = KFormFile | null>
94
88
  * }
95
89
  * ```
96
90
  */
97
- export declare function FileControl<T extends KFormFile | null = KFormFile | null>({ path, issueMessages, issuesPanelLabel, displayIssues, preventAutoFocus, apiRef, issueMessagesProps, fileInteraction, viewFileButtonLabel, downloadFileButtonLabel, fallbackText, formManager, onInitialized, onFormManagerEvent, onValueChange, onValidationStatusChange, onDisplayStatusChange, onDirtyStatusChange, onTouchedStatusChange, required, accept, loading, showSpinner, disabled, readOnly, showClearButton, clearDescription, endAdornment, onChange, onKeyDown, onFocus, onBlurToOutside, debug, clearButtonProps, ref, ...otherProps }: FileControlProps<T>): import("react").JSX.Element;
91
+ export declare function FileControl<T extends KFormFile | null = KFormFile | null>({ path, issueMessages, issuesPanelLabel, displayIssues, preventAutoFocus, apiRef, issueMessagesProps, fileInteraction, viewFileButtonLabel: viewFileButtonLabelProp, downloadFileButtonLabel: downloadFileButtonLabelProp, fallbackText: fallbackTextProp, formManager, onInitialized, onFormManagerEvent, onValueChange, onValidationStatusChange, onDisplayStatusChange, onDirtyStatusChange, onTouchedStatusChange, required, accept, loading, showSpinner, disabled, readOnly, showClearButton: showClearButtonProp, clearDescription: clearDescriptionProp, endAdornment, onChange, onKeyDown, onFocus, onBlurToOutside, debug, clearButtonProps, ref, ...otherProps }: FileControlProps<T>): import("react").JSX.Element;
@@ -1,8 +1,8 @@
1
- import { type ReactNode } from "react";
1
+ import type { ReactNode } from "react";
2
2
  /** Properties of the file control download addon. */
3
3
  export interface FileControlDownloadAddonProps {
4
4
  file: File;
5
5
  label: ReactNode;
6
6
  }
7
7
  /** Control addon used to download a file. */
8
- export declare function FileControlDownloadAddon({ file, label, }: FileControlDownloadAddonProps): import("react").JSX.Element;
8
+ export declare function FileControlDownloadAddon({ file, label }: FileControlDownloadAddonProps): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from "react";
1
+ import type { ReactNode } from "react";
2
2
  /** Properties of the file control view addon. */
3
3
  export interface FileControlViewAddonProps {
4
4
  file: File;
@@ -14,8 +14,8 @@ export interface FormAppProps<T = any> extends Pick<RootProps, "enableErrorRepor
14
14
  /** Title of the form. */
15
15
  formTitle?: string;
16
16
  /**
17
- * Label to use in the issues panel when displaying issues associated with the
18
- * form app. Defaults to the `formTitle`.
17
+ * Label to use in the issues panel when displaying issues associated with the form app. Defaults
18
+ * to the `formTitle`.
19
19
  */
20
20
  issuesPanelLabel?: ReactNode;
21
21
  /** Whether to disable the whole form. */
@@ -23,8 +23,8 @@ export interface FormAppProps<T = any> extends Pick<RootProps, "enableErrorRepor
23
23
  /** Whether to set the whole form as read-only. */
24
24
  readOnly?: boolean;
25
25
  /**
26
- * Custom suffix to add to the ostack/UI's prefix when prefixing all component
27
- * classes, styles, etc.
26
+ * Custom suffix to add to the ostack/UI's prefix when prefixing all component classes, styles,
27
+ * etc.
28
28
  *
29
29
  * This prefix-suffix should match the `$prefix-suffix` SCSS variable.
30
30
  */
@@ -40,17 +40,15 @@ export interface FormAppProps<T = any> extends Pick<RootProps, "enableErrorRepor
40
40
  */
41
41
  onLocaleChange?: (locale: LocalizationObject) => void;
42
42
  /**
43
- * Mapping of issue messages from the path of the field with issues to the
44
- * issue messages of said field (which are themselves grouped by their code).
43
+ * Mapping of issue messages from the path of the field with issues to the issue messages of said
44
+ * field (which are themselves grouped by their code).
45
45
  *
46
- * Provided paths may contain wildcards, which will have a lower priority when
47
- * matched against.
46
+ * Provided paths may contain wildcards, which will have a lower priority when matched against.
48
47
  *
49
48
  * These messages are used by the `IssueMessages` component.
50
49
  *
51
- * > **Note:** Changes to `issueMessages` are handled correctly, but are not
52
- * > efficient. Please make sure that the identity of the provided value doesn't
53
- * > change at every render.
50
+ * > **Note:** Changes to `issueMessages` are handled correctly, but are not efficient. Please make
51
+ * > sure that the identity of the provided value doesn't change at every render.
54
52
  *
55
53
  * Example value:
56
54
  *
@@ -70,25 +68,22 @@ export interface FormAppProps<T = any> extends Pick<RootProps, "enableErrorRepor
70
68
  /**
71
69
  * Mode of displaying issues:
72
70
  *
73
- * - `inline` mode dispays issue messages near the component containing the
74
- * issues. In this mode the bottom issues panel only functions as an aid for
75
- * navigating issues.
71
+ * - `inline` mode dispays issue messages near the component containing the issues. In this mode the
72
+ * bottom issues panel only functions as an aid for navigating issues.
76
73
  * - `panel` mode displays issue messages within the bottom issues panel.
77
74
  *
78
75
  * @default "inline"
79
76
  */
80
77
  issuesDisplayMode?: IssuesDisplayMode;
81
78
  /**
82
- * Global setting which specifies whether issue codes should be added to each
83
- * issue message.
79
+ * Global setting which specifies whether issue codes should be added to each issue message.
84
80
  *
85
81
  * @default false
86
82
  */
87
83
  displayIssueCodes?: boolean;
88
84
  /**
89
- * Name of the key in the data object of validation issues that possibly
90
- * contains the issue message to display. This message is only used if no
91
- * matching message is otherwise found.
85
+ * Name of the key in the data object of validation issues that possibly contains the issue
86
+ * message to display. This message is only used if no matching message is otherwise found.
92
87
  *
93
88
  * @default "message"
94
89
  */
@@ -101,8 +96,8 @@ export interface FormAppProps<T = any> extends Pick<RootProps, "enableErrorRepor
101
96
  * Callback called whenever the active path changes.
102
97
  *
103
98
  * @param activePath New active path.
104
- * @param options Navigation options to use when controlling the active path
105
- * via the browser's URL.
99
+ * @param options Navigation options to use when controlling the active path via the browser's
100
+ * URL.
106
101
  */
107
102
  onActivePathChange?: (activePath: AbsolutePath, options: OnActivePathChangeNavigationOptions) => void;
108
103
  /**
@@ -117,10 +112,7 @@ export interface FormAppProps<T = any> extends Pick<RootProps, "enableErrorRepor
117
112
  * @default "100dvh"
118
113
  */
119
114
  minHeight?: Responsive<number | string>;
120
- /**
121
- * Show debug information for all form controls. This property has no effect
122
- * in production builds.
123
- */
115
+ /** Show debug information for all form controls. This property has no effect in production builds. */
124
116
  debug?: boolean;
125
117
  /** Reference to the form app's API. */
126
118
  apiRef?: Ref<FormAppApi<T> | undefined>;
@@ -137,8 +129,8 @@ export type FormAppApi<T = any> = Controller<T> & {
137
129
  * Starts issues navigation (when an `IssuesPanel` component exists within).
138
130
  *
139
131
  * @param options Options used when starting issues navigation.
140
- * @returns Promise which returns with whether issues navigation was started
141
- * (whether an `IssuesPanel` component exists within).
132
+ * @returns Promise which returns with whether issues navigation was started (whether an
133
+ * `IssuesPanel` component exists within).
142
134
  */
143
135
  startIssuesNavigation: (options: {
144
136
  validate?: boolean;
@@ -146,13 +138,12 @@ export type FormAppApi<T = any> = Controller<T> & {
146
138
  }) => PromiseLike<void>;
147
139
  };
148
140
  /**
149
- * Root component of a form application. Built on top of the
150
- * ostack/KForm-React's `useForm` hook.
141
+ * Root component of a form application. Built on top of the ostack/KForm-React's `useForm` hook.
151
142
  *
152
- * The `FormApp` component automatically renders the ostack/UI's `Root`
153
- * component when not rendered within one, in which case all `Root` component
154
- * properties are supported. The ostack/UI's `locale` is automatically provided
155
- * to the ostack/UI `Root` component from the provided `FormApp` `locale`.
143
+ * The `FormApp` component automatically renders the ostack/UI's `Root` component when not rendered
144
+ * within one, in which case all `Root` component properties are supported. The ostack/UI's `locale`
145
+ * is automatically provided to the ostack/UI `Root` component from the provided `FormApp`
146
+ * `locale`.
156
147
  *
157
148
  * Example usage:
158
149
  *
@@ -181,4 +172,4 @@ export type FormAppApi<T = any> = Controller<T> & {
181
172
  * }
182
173
  * ```
183
174
  */
184
- export declare function FormApp<T = any>({ enableErrorReporting, reportError, errorReportingUrl, errorReportingMethod, encodeErrorReport, encodedErrorReportMimeType, errorReportingOptions, baseDocumentTitle, documentTitleBaseSeparator, documentTitleBreadcrumbsSeparator, portalsContainer, tooltipsDelayDuration, tooltipsSkipDelayDuration, disableTooltipsHoverableContent, toastsLabel, toastsDuration, toastsSwipeDirection, toastsSwipeThreshold, toastViewportPosition, toastViewportHotkey, toastViewportLabel, toastViewportProps, errorBoundaryProps, schema, initialValue, formTitle, issuesPanelLabel, disabled, readOnly, prefix: newPrefix, prefixSuffix, defaultLocale, locale: controlledLocale, onLocaleChange, issueMessages, issuesDisplayMode, displayIssueCodes, issueMessagesDataKey, defaultActivePath, activePath, onActivePathChange, onPathFocus, minHeight, debug, apiRef, externalContexts, validationMode, confirmUnloadWhenDirty, confirmUnloadMessage, onSubmit, onInvalidSubmit, onSuccessfulSubmit, onFailedSubmit, validateOnSubmit, setTouchedOnSubmit, setPristineOnSuccessfulSubmit, convertExternalIssuesTableRowIndicesToIds, onReset, onInitialized, onUninitialized, onFormManagerEvent, onValueChange, onValidationStatusChange, onDisplayStatusChange, onDirtyStatusChange, onTouchedStatusChange, ...otherProps }: FormAppProps<T>): import("react").JSX.Element;
175
+ export declare function FormApp<T = any>({ enableErrorReporting, reportError, errorReportingUrl, errorReportingMethod, encodeErrorReport, encodedErrorReportMimeType, errorReportingOptions, baseDocumentTitle, documentTitleBaseSeparator, documentTitleBreadcrumbsSeparator, portalsContainer, tooltipsDelayDuration, tooltipsSkipDelayDuration, disableTooltipsHoverableContent, toastsLabel, toastsDuration, toastsSwipeDirection, toastsSwipeThreshold, toastViewportPosition, toastViewportHotkey, toastViewportLabel, toastViewportProps, errorBoundaryProps, schema, initialValue, formTitle: formTitleProp, issuesPanelLabel: issuesPanelLabelProp, disabled, readOnly, prefix: newPrefix, prefixSuffix, defaultLocale, locale: controlledLocale, onLocaleChange, issueMessages, issuesDisplayMode, displayIssueCodes, issueMessagesDataKey, defaultActivePath, activePath, onActivePathChange, onPathFocus, minHeight, debug, apiRef, externalContexts, validationMode, confirmUnloadWhenDirty, confirmUnloadMessage: confirmUnloadMessageProp, onSubmit, onInvalidSubmit, onSuccessfulSubmit, onFailedSubmit, validateOnSubmit, setTouchedOnSubmit, setPristineOnSuccessfulSubmit, convertExternalIssuesTableRowIndicesToIds, onReset, onInitialized, onUninitialized, onFormManagerEvent, onValueChange, onValidationStatusChange, onDisplayStatusChange, onDirtyStatusChange, onTouchedStatusChange, ...otherProps }: FormAppProps<T>): import("react").JSX.Element;