@ostack.tech/ui-kform 1.2.0 → 1.3.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ostack.tech/ui-kform",
3
- "version": "1.2.0",
3
+ "version": "1.3.0-beta.1",
4
4
  "description": "Integration of ostack/UI with ostack/KForm.",
5
5
  "homepage": "https://ui.ostack.tech/",
6
6
  "author": {
@@ -57,7 +57,7 @@
57
57
  "@fortawesome/free-solid-svg-icons": "^6.2.0 || ^7.0.0",
58
58
  "@ostack.tech/kform": "^1.2.0",
59
59
  "@ostack.tech/kform-react": "^1.2.0",
60
- "@ostack.tech/ui": "~1.2.0",
60
+ "@ostack.tech/ui": "~1.3.0-beta.1",
61
61
  "@types/react": "^19.0.0",
62
62
  "@types/react-dom": "^19.0.0",
63
63
  "date-fns": "^4.1.0",
@@ -12,7 +12,11 @@ $annexes-menu-trigger-open-z-index: calc(
12
12
  // Tab issues
13
13
  $annexes-tab-issues-popover-button-icon-border-width: 1px !default;
14
14
  $annexes-tab-issues-popover-button-padding: calc(
15
- ((o-ui.$icon-button-md-min-size - o-ui.$icon-button-md-font-size -
16
- $annexes-tab-issues-popover-button-icon-border-width * 2) /
17
- 2)
15
+ (
16
+ (
17
+ o-ui.$icon-button-md-min-size - o-ui.$icon-button-md-font-size -
18
+ $annexes-tab-issues-popover-button-icon-border-width * 2
19
+ ) /
20
+ 2
21
+ )
18
22
  );
@@ -13,7 +13,7 @@
13
13
  @include o-ui.declare-var(--#{$prefix}form-app-base-sticky-top, $form-app-base-sticky-top);
14
14
 
15
15
  @include o-ui.responsive-values(
16
- --#{$prefix}form-app,
16
+ #{$prefix}form-app-,
17
17
  (
18
18
  min-height: $form-app-default-min-height,
19
19
  )
@@ -0,0 +1,63 @@
1
+ import { type ActionButtonProps } from "@ostack.tech/ui";
2
+ import { type ReactNode } from "react";
3
+ import { type LocalizationObject } from "../../providers/LocalizationProvider";
4
+ /** Properties of the locale action component. */
5
+ export interface ChangeLocaleActionProps<T extends string = string> extends Partial<ActionButtonProps> {
6
+ /**
7
+ * Function used to get the library's localisation object for the provided locale. This must be
8
+ * manually specified in order to support code-splitting of translations.
9
+ */
10
+ getLocalizationObject: (locale: T) => LocalizationObject | Promise<LocalizationObject>;
11
+ /** Available locales. */
12
+ locales?: readonly T[];
13
+ /**
14
+ * Function called when the locale changes. Use this function to interact with the application's
15
+ * own i18n manager.
16
+ */
17
+ onLocaleChange?: (locale: T) => void | PromiseLike<void>;
18
+ /**
19
+ * Labels shown for each locale. These are, by default, automatically generated via
20
+ * [`Intl.DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames).
21
+ *
22
+ * By default, if two locales share the same language (e.g. `en-US` and `en-GB`), the labels will
23
+ * disambiguate them by appending their respective region.
24
+ */
25
+ localeLabels?: Record<T, ReactNode>;
26
+ /**
27
+ * Whether to show the locale action when the form is read-only.
28
+ *
29
+ * @default true
30
+ */
31
+ showWhenReadOnly?: boolean;
32
+ }
33
+ /**
34
+ * [Action](/docs/ostack-ui-layout-actions--docs) used to change the application's locale.
35
+ *
36
+ * Note that `getLocalizationObject` must be specified to manually return `@ostack.tech/ui-kform`'s
37
+ * localisation object for the provided locale. This is **not** automatic so that translations may
38
+ * be code-split when applications are bundled.
39
+ *
40
+ * Example usage:
41
+ *
42
+ * ```tsx
43
+ * import { ChangeLocaleAction } from "@ostack.tech/ui-kform";
44
+ * import { useI18n } from "@example-lib/i18n";
45
+ *
46
+ * const LOCALE_LOADERS = {
47
+ * "en-US": () => import("@ostack.tech/ui-kform/locales/en-US"),
48
+ * "pt-PT": () => import("@ostack.tech/ui-kform/locales/pt-PT"),
49
+ * };
50
+ *
51
+ * function ChangeFormLocale() {
52
+ * const { i18n } = useI18n();
53
+ * return (
54
+ * <ChangeLocaleAction
55
+ * locales={["en-US", "pt-PT"]}
56
+ * getLocalizationObject={async (locale) => (await LOCALE_LOADERS[locale]()).locale}
57
+ * onLocaleChange={(locale) => i18n.setLocale(locale)}
58
+ * />
59
+ * );
60
+ * }
61
+ * ```
62
+ */
63
+ export declare function ChangeLocaleAction<T extends string = string>({ locales: localesProp, onLocaleChange, getLocalizationObject, localeLabels, showWhenReadOnly, label: labelProp, loading, ...otherProps }: ChangeLocaleActionProps<T>): false | import("react").JSX.Element | undefined;
@@ -0,0 +1 @@
1
+ export * from "./ChangeLocaleAction.tsx";
@@ -27,8 +27,8 @@ export interface LoadActionProps<T = unknown> extends Partial<ActionButtonProps>
27
27
  fileSystemId?: string;
28
28
  }
29
29
  /**
30
- * Form action used to load the form from a file. Built on top of the [`Button`
31
- * component](/docs/ostack-ui-forms-button--docs) and `useFormLoader` hook.
30
+ * Form [action](/docs/ostack-ui-layout-actions--docs) used to load the form from a file. Built on
31
+ * top of the `useFormLoader` hook.
32
32
  *
33
33
  * Example usage:
34
34
  *
@@ -21,9 +21,8 @@ export interface PrintActionProps extends Partial<ActionButtonProps> {
21
21
  showWhenReadOnly?: boolean;
22
22
  }
23
23
  /**
24
- * Form action used to print the form application. Built on top of the
25
- * [`Button`](/docs/ostack-ui-forms-button--docs) and
26
- * [`PrinterTrigger`](/docs/ostack-ui-utilities-printer--docs) components.
24
+ * Form [action](/docs/ostack-ui-layout-actions--docs) used to print the form application. Built on
25
+ * top of the [`PrinterTrigger`](/docs/ostack-ui-utilities-printer--docs) component.
27
26
  *
28
27
  * To print a whole form application, requires the `<FormApp>` component to be wrapped within a
29
28
  * `<Printer>`, and for the `<PrinterContent>` to wrap all annexes, pages, and form controls.
@@ -59,12 +59,9 @@ export interface SaveActionProps<T = unknown> extends Partial<ActionButtonProps>
59
59
  saveOptionsProps?: Omit<ActionButtonProps, "label">;
60
60
  }
61
61
  /**
62
- * Form action used to save the form to a file, supporting both overwriting and non-overwriting
63
- * behaviours (i.e. supporting both “save” and “save as”). Built on top of the
64
- * [`ButtonGroup`](/docs/ostack-ui-layout-button-group--docs),
65
- * [`Button`](/docs/ostack-ui-forms-button--docs), and
66
- * [`DropdownMenu`](/docs/ostack-ui-overlay-dropdown-menu--docs) components, as well as the
67
- * `useFormSaver` hook.
62
+ * Form [action](/docs/ostack-ui-layout-actions--docs) used to save the form to a file, supporting
63
+ * both overwriting and non-overwriting behaviours (i.e. supporting both “save” and “save as”).
64
+ * Built on top of the `useFormSaver` hook.
68
65
  *
69
66
  * Example usage:
70
67
  *
@@ -87,10 +87,10 @@ export interface SubmitActionProps<T = unknown, TSubmitResult = unknown> extends
87
87
  confirmWarningsCheckboxProps?: Omit<CheckboxProps, "checked" | "onCheckedChange" | "children">;
88
88
  }
89
89
  /**
90
- * Form action used to submit a form, supporting all submission-related properties available in a
90
+ * Form [action](/docs/ostack-ui-layout-actions--docs) used to submit a form, supporting all
91
+ * submission-related properties available in a
91
92
  * [`FormApp`](/docs/ostack-ui-kform-layout-form-app--docs). Built on top of the
92
- * [Button](/docs/ostack-ui-forms-button--docs) and
93
- * [AlertDialog](/docs/ostack-ui-overlay-alert-dialog--docs) components.
93
+ * [AlertDialog](/docs/ostack-ui-overlay-alert-dialog--docs) component.
94
94
  *
95
95
  * Example usage:
96
96
  *
@@ -22,8 +22,8 @@ export interface ValidateActionProps extends UseFormValidatorOptions, Partial<Ac
22
22
  showWhenReadOnly?: boolean;
23
23
  }
24
24
  /**
25
- * Form action used to validate the form. Built on top of the [`Button`
26
- * component](/docs/ostack-ui-forms-button--docs) and `useFormValidator` hook.
25
+ * Form [action](/docs/ostack-ui-layout-actions--docs) used to validate the form. Built on top of
26
+ * the `useFormValidator` hook.
27
27
  *
28
28
  * If the form contains an `IssuesPanel` component, it is shown as a result of triggering the
29
29
  * action.
package/types/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./components/Annexes";
2
+ export * from "./components/ChangeLocaleAction";
2
3
  export * from "./components/CheckboxControl";
3
4
  export * from "./components/CheckboxGroupControl";
4
5
  export * from "./components/ControlField";
@@ -1,5 +1,6 @@
1
1
  import type { LocalizationObject as UiLocalizationObject } from "@ostack.tech/ui";
2
2
  import type { AnnexesManagerProps } from "../../components/Annexes";
3
+ import type { ChangeLocaleActionProps } from "../../components/ChangeLocaleAction";
3
4
  import type { CheckboxGroupControlProps } from "../../components/CheckboxGroupControl";
4
5
  import type { DateRangeControlProps } from "../../components/DateRangeControl";
5
6
  import type { DebugInfoProps } from "../../components/DebugInfo";
@@ -23,6 +24,7 @@ import type { ValidateActionProps } from "../../components/ValidateAction";
23
24
  export interface LocalizationObject {
24
25
  baseLocale: UiLocalizationObject;
25
26
  AnnexesManager: Pick<AnnexesManagerProps, "aria-label" | "menuButtonText" | "menuButtonLabel" | "addAnnexText" | "addAnnexSuccessMessage" | "removeAnnexButtonLabel" | "removeAnnexKeyboardHint" | "removeAnnexConfirmDialogTitle" | "removeAnnexConfirmDialogMessage" | "removeAnnexConfirmDialogOkText" | "removeAnnexConfirmDialogCancelText">;
27
+ ChangeLocaleAction: Pick<ChangeLocaleActionProps, "label">;
26
28
  CheckboxGroupControl: Pick<CheckboxGroupControlProps, "unknownValueLabel">;
27
29
  DebugInfo?: Pick<DebugInfoProps, "label">;
28
30
  DateRangeControl: Pick<DateRangeControlProps, "issuesPanelStartLabelSuffix" | "issuesPanelEndLabelSuffix">;
@@ -1,10 +1,7 @@
1
1
  import { AbsolutePath } from "@ostack.tech/kform";
2
2
  import { type FileSystemHandle, type WellKnownDirectory } from "browser-fs-access";
3
3
  import type { ReactNode } from "react";
4
- /**
5
- * Options that can be passed to the {@link useFormSaver} hook, or to its resulting `save`/`saveAs`
6
- * functions.
7
- */
4
+ /** Options that can be passed to the {@link useFormSaver} hook, or to its resulting `save` function. */
8
5
  export interface FormSaverOptions<T = unknown> {
9
6
  /**
10
7
  * When set, if modern file system APIs are available and the form has been previously loaded or
@@ -1 +0,0 @@
1
- {"version":3,"file":"en-BHlLXSzh.js","names":[],"sources":["../../src/locales/en.tsx"],"sourcesContent":["import { VisuallyHidden } from \"@ostack.tech/ui\";\nimport { DEV } from \"esm-env\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\n\n/** `en` locale (partial). */\nexport const en: Omit<LocalizationObject, \"languageTag\" | \"baseLocale\"> = {\n AnnexesManager: {\n \"aria-label\": \"Annexes\",\n menuButtonText: \"Annexes\",\n menuButtonLabel: \"Annexes manager\",\n addAnnexText: \"Add annex\",\n removeAnnexButtonLabel: \"Remove annex\",\n removeAnnexKeyboardHint: \"Press “Delete” to remove the annex.\",\n removeAnnexConfirmDialogTitle: \"Remove annex\",\n removeAnnexConfirmDialogMessage: (annexName) => (\n <>Are you sure you want to remove annex {annexName}?</>\n ),\n removeAnnexConfirmDialogOkText: \"Remove\",\n },\n CheckboxGroupControl: {},\n DateRangeControl: {\n issuesPanelStartLabelSuffix: \" (start date)\",\n issuesPanelEndLabelSuffix: \" (end date)\",\n },\n FileControl: {\n clearDescription: \"Press Backspace or Delete to clear.\",\n viewFileButtonLabel: \"View file\",\n downloadFileButtonLabel: \"Download file\",\n fallbackText: (\n <>\n The selected file cannot be viewed in this browser.\n <br />\n Please use the button above to download the file. You can then open it using an external\n application.\n </>\n ),\n },\n FormApp: {\n formTitle: \"Form\",\n issueMessages: {\n \"/**\": {\n valueMissing: \"Field is required.\",\n valueDisallowed: \"Indicated value is not allowed.\",\n rangeUnderflow: \"Value is under the minimum allowed.\",\n rangeOverflow: \"Value exceeds the maximum allowed.\",\n lengthMismatch: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" &&\n typeof restrictions.minLength === \"number\" &&\n restrictions.minLength === restrictions.maxLength\n ? `Value must have ${restrictions.minLength} character${\n restrictions.minLength === 1 ? \"\" : \"s\"\n }.`\n : \"Value has an invalid length.\",\n tooShort: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.minLength === \"number\"\n ? `Value must not have under ${restrictions.minLength} character${\n restrictions.minLength === 1 ? \"\" : \"s\"\n }.`\n : \"Value is too short.\",\n tooLong: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.maxLength === \"number\"\n ? `Value must not have over ${restrictions.maxLength} character${\n restrictions.maxLength === 1 ? \"\" : \"s\"\n }.`\n : \"Value is too long.\",\n sizeMismatch: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.minSize === \"number\" && restrictions.minSize === restrictions.maxSize\n ? `Field must have ${restrictions.minSize} item${\n restrictions.minSize === 1 ? \"\" : \"s\"\n }.`\n : \"Field has an invalid number of items.\",\n tooSmall: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.minLength === \"number\"\n ? `Field must not have under ${restrictions.minLength} item${\n restrictions.minLength === 1 ? \"\" : \"s\"\n }.`\n : \"Field does not have enough items.\",\n tooLarge: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.maxLength === \"number\"\n ? `Field must not have over ${restrictions.maxLength} item${\n restrictions.maxLength === 1 ? \"\" : \"s\"\n }.`\n : \"Number of items of field exceeds allowed limit.\",\n scaleMismatch: (_data, { typeInfo: { restrictions } }) =>\n typeof restrictions.minScale === \"number\" &&\n restrictions.minScale === restrictions.maxScale\n ? `Value must have ${restrictions.minScale} decimal place${\n restrictions.minScale === 1 ? \"\" : \"s\"\n }.`\n : \"Value has invalid number of decimal places.\",\n scaleUnderflow: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.minScale === \"number\"\n ? `Value must not have under ${restrictions.minScale} decimal place${\n restrictions.minScale === 1 ? \"\" : \"s\"\n }.`\n : \"Value has too few decimal places.\",\n scaleOverflow: (_data, { typeInfo: { name, restrictions } }) =>\n name === \"String\" && typeof restrictions.maxScale === \"number\"\n ? `Value must not have over ${restrictions.maxScale} decimal place${\n restrictions.maxScale === 1 ? \"\" : \"s\"\n }.`\n : \"Value has too many decimal places.\",\n patternMismatch: \"Value does not follow required pattern.\",\n emailPatternMismatch: \"Invalid email address.\",\n fileTypeMismatch: (_data, { typeInfo: { restrictions } }) =>\n Array.isArray(restrictions.acceptedFileTypes)\n ? `Only the following file types are allowed: ${restrictions.acceptedFileTypes.join(\", \")}.`\n : \"Indicated file’s type is not allowed.\",\n itemsRepeated: ({ firstIndex, secondIndex }) =>\n firstIndex != null && secondIndex != null\n ? `Items ${+firstIndex + 1} and ${+secondIndex + 1} are repeated.`\n : \"Field contains repeated items.\",\n computedValueMismatch: \"Value differs from the computed value.\",\n validationFailed: (data) =>\n DEV\n ? data.exception\n : \"Something went wrong validating this field. Please try again later.\",\n },\n },\n confirmUnloadMessage:\n \"Are you sure you want to leave the page? Changes you made to the form may not have been \" +\n \"saved.\",\n },\n FormPagesNavigation: {\n \"aria-label\": \"Pages\",\n },\n FormPage: {\n helperButtonLabel: \"Show help\",\n visuallyHiddenCodePrefix: \"Page\",\n },\n IssueMessages: {\n visuallyHiddenErrorCodePrefix: \"Error code,\",\n visuallyHiddenWarningCodePrefix: \"Warning code,\",\n unknownErrorMessage: \"Field with unknown error.\",\n unknownWarningMessage: \"Field with unknown warning.\",\n },\n IssuesPanel: {\n errorsLabel: (errors) =>\n errors === undefined ? \"Errors\" : `${errors}\\u00A0${errors === 1 ? \"Error\" : \"Errors\"}`,\n warningsLabel: (warnings) =>\n warnings === undefined\n ? \"Warnings\"\n : `${warnings}\\u00A0${warnings === 1 ? \"Warning\" : \"Warnings\"}`,\n focusButtonLabel: \"Focus field\",\n previousIssueButtonLabel: \"Previous field with issues\",\n nextIssueButtonLabel: \"Next field with issues\",\n firstIssueButtonLabel: \"First field with issues\",\n lastIssueButtonLabel: \"Last field with issues\",\n paginationLabel: (currentPage, totalPages) =>\n `Field with issues ${currentPage} of ${totalPages}.`,\n noIssuesMessage: \"No issues to report.\",\n resolvedTitle: \"Resolved\",\n resolvedMessage: \"Issues have been resolved. Please advance to the next field with issues.\",\n },\n IssuesPopover: {\n label: \"Show issues\",\n },\n LoadAction: {\n label: \"Load\",\n successMessage: (file) => `File “${file.name}” loaded successfully.`,\n errorMessage: (file) =>\n file\n ? `Unable to load file “${file.name}”. Please confirm that the indicated file is a ` +\n \"valid file of the form.\"\n : \"Unable to load the indicated file. Please confirm that you have the appropriate \" +\n \"permissions to perform the operation.\",\n },\n PrintAction: {\n label: \"Print\",\n },\n RadioGroupControl: {},\n SaveAction: {\n label: \"Save\",\n saveOptionsLabel: \"Save options\",\n saveAsLabel: \"Save as…\",\n successMessage: (fileHandle) => `File “${fileHandle.name}” saved successfully.`,\n errorMessage: (fileHandle) =>\n fileHandle\n ? `Unable to save file “${fileHandle.name}”. Please confirm that you have the ` +\n \"appropriate permissions to perform the operation.\"\n : \"Unable to save the indicated file. Please confirm that you have the appropriate \" +\n \"permissions to perform the operation.\",\n },\n SelectControl: {},\n SelectMultipleControl: {},\n SubmitAction: {\n label: \"Submit\",\n dialogTitle: \"Submit form\",\n dialogDescription: \"Please confirm that you wish to proceed with the form submission.\",\n dialogCancelText: \"Cancel\",\n confirmWarningsCheckboxLabel:\n \"I declare that I have been informed of the warnings generated by the data in this form \" +\n \"and that I wish to proceed without changing said data.\",\n successMessage: \"Form submitted successfully.\",\n errorMessage: \"Something went wrong while submitting the form. Please try again later.\",\n },\n TableControlActionsColumn: {\n label: <VisuallyHidden>Actions</VisuallyHidden>,\n },\n TableControlAddRowTrigger: {\n label: \"Add row\",\n },\n TableControlContent: {\n emptyMessage: \"No rows added.\",\n },\n TableControlIndexColumn: {\n label: <span aria-label=\"Row number\">No.</span>,\n },\n TableControlRemoveRowTrigger: {\n label: \"Remove row\",\n confirmDialogMessage: (index) => `Are you sure you want to remove row no. ${index + 1}?`,\n confirmDialogOkText: \"Remove\",\n },\n UnknownValue: {\n label: \"Unknown value\",\n },\n ValidateAction: {\n label: \"Validate\",\n },\n};\n\nif (DEV) {\n en.DebugInfo = {\n label: \"Debug information\",\n };\n}\n"],"mappings":";;;;;AAMA,IAAa,KAA6D;CACxE,gBAAgB;EACd,cAAc;EACd,gBAAgB;EAChB,iBAAiB;EACjB,cAAc;EACd,wBAAwB;EACxB,yBAAyB;EACzB,+B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