@ostack.tech/ui-kform-scaffolder 1.3.0-beta.0 → 1.3.0-beta.2

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.
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <meta name="color-scheme" content="light dark" />
8
8
  <title>Form Scaffolder—ostack/UI-KForm</title>
9
- <script type="module" crossorigin src="/assets/index-CMlBuSOc.js"></script>
9
+ <script type="module" crossorigin src="/assets/index-DKV_8gck.js"></script>
10
10
  <link rel="stylesheet" crossorigin href="/assets/index-BKUWl2po.css">
11
11
  </head>
12
12
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ostack.tech/ui-kform-scaffolder",
3
- "version": "1.3.0-beta.0",
3
+ "version": "1.3.0-beta.2",
4
4
  "description": "Scaffold a new project using ostack/KForm, UI, and UI-KForm.",
5
5
  "homepage": "https://ui-kform-scaffolder.ostack.tech/",
6
6
  "author": {
@@ -37,7 +37,7 @@
37
37
  "preview": "vite build --mode webapp && vite preview --outDir dist/webapp/"
38
38
  },
39
39
  "peerDependencies": {
40
- "@ostack.tech/kform-scaffolder": "^1.0.0",
40
+ "@ostack.tech/kform-scaffolder": "^1.2.1",
41
41
  "@types/react": "^19.0.0",
42
42
  "change-case": "^5.0.0",
43
43
  "react": "^19.0.0",
@@ -11,6 +11,7 @@ export interface SchematicKind extends KFormSchematicKind {
11
11
  omitFieldLabel?: boolean;
12
12
  scaffoldControl?: (schematic: Schematic, data: ReactAppData) => string;
13
13
  scaffoldField?: (schematic: Schematic, data: ReactAppData) => string;
14
+ usesTranslationFn?: boolean;
14
15
  }
15
16
  export declare const anySchematicKind: SchematicKind;
16
17
  export declare const bigDecimalSchematicKind: SchematicKind;
@@ -0,0 +1,11 @@
1
+ export interface DefaultLocaleConfigProps {
2
+ defaultSupportMultipleLocales?: boolean;
3
+ defaultSourceLocale?: string;
4
+ defaultLocales?: string[];
5
+ disabled?: boolean;
6
+ }
7
+ export declare const DEFAULT_SUPPORT_MULTIPLE_LOCALES = false;
8
+ export declare const DEFAULT_SOURCE_LOCALE = "en-US";
9
+ export declare const DEFAULT_LOCALES: string[];
10
+ export declare const LOCALES: string[];
11
+ export declare function LocaleConfig({ defaultSupportMultipleLocales, defaultSourceLocale, defaultLocales, disabled, }: DefaultLocaleConfigProps): import("react").JSX.Element;
package/types/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from "./SchematicBuilder.tsx";
2
2
  export * from "./SchematicKind.ts";
3
- export * from "./configs/DefaultLocaleConfig.tsx";
3
+ export * from "./configs/LocaleConfig.tsx";
4
4
  export * from "./configs/SerializationFormatConfig.tsx";
5
5
  export * from "./configs/UseReactCompilerConfig.tsx";
6
6
  export * from "./configs/UseTableValuesSerializerConfig.tsx";
@@ -11,6 +11,7 @@ export * from "./scaffolding/scaffolders/scaffoldAppContext.ts";
11
11
  export * from "./scaffolding/scaffolders/scaffoldExternalContexts.ts";
12
12
  export * from "./scaffolding/scaffolders/scaffoldGradleProject.ts";
13
13
  export * from "./scaffolding/scaffolders/scaffoldGradleWrapper.ts";
14
+ export * from "./scaffolding/scaffolders/scaffoldI18n.ts";
14
15
  export * from "./scaffolding/scaffolders/scaffoldIssueMessages.ts";
15
16
  export * from "./scaffolding/scaffolders/scaffoldMain.ts";
16
17
  export * from "./scaffolding/scaffolders/scaffoldPageComponents.ts";
@@ -22,3 +23,4 @@ export * from "./scaffolding/scaffolders/scaffoldViteProject.ts";
22
23
  export * from "./scaffolding/kotlin/KtData.ts";
23
24
  export * from "./scaffolding/reactApp/ReactAppData.ts";
24
25
  export * from "./scaffolding/reactApp/util/reactAppLayout.ts";
26
+ export * from "./util/transify.ts";
@@ -11,8 +11,14 @@ export interface ScaffoldingData extends KFormScaffoldingData {
11
11
  includeSerializationFormatVersion?: boolean;
12
12
  /** XML namespace to use when the serialization format is XML. */
13
13
  xmlNamespace?: string;
14
- /** Application's default locale. */
15
- defaultLocale?: string;
14
+ /** Whether the application supports multiple locales. */
15
+ supportMultipleLocales?: boolean;
16
+ /** Application's source locale. */
17
+ sourceLocale?: string;
18
+ /** Application's locales. */
19
+ locales?: string[];
20
+ /** Search param used to configure the application's locale. */
21
+ localeSearchParam?: string;
16
22
  /** Whether to set up usage of the React Compiler. */
17
23
  useReactCompiler?: boolean;
18
24
  /** Name of the active path search parameter. */
@@ -1,5 +1,3 @@
1
1
  import { type Schematic } from "@ostack.tech/kform-scaffolder";
2
2
  import type { ScaffoldingData } from "../ScaffoldingData.ts";
3
- export declare const DEFAULT_JVM_TOOLCHAIN_VERSION = "21";
4
- export declare const DEFAULT_NODEJS_VERSION = "24.16.0";
5
3
  export declare function scaffoldGradleProject(schematic: Schematic, data: ScaffoldingData): void;
@@ -0,0 +1,4 @@
1
+ import { type Schematic } from "@ostack.tech/kform-scaffolder";
2
+ import type { ReactAppData } from "../reactApp/ReactAppData.ts";
3
+ export declare const DEFAULT_LOCALE_SEARCH_PARAM = "l";
4
+ export declare function scaffoldI18n(_schematic: Schematic, data: ReactAppData): void;
@@ -0,0 +1,2 @@
1
+ import type { ReactAppData } from "../scaffolding/reactApp/ReactAppData.ts";
2
+ export declare function transify(data: ReactAppData, str: string): string;