@ostack.tech/ui-kform-scaffolder 0.14.2 → 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/ostack-ui-kform-scaffolder.js +876 -1389
- package/dist/ostack-ui-kform-scaffolder.js.map +1 -1
- package/dist/types/SchematicBuilder.d.ts +3 -3
- package/dist/types/SchematicKind.d.ts +3 -3
- package/dist/types/configs/DefaultLocaleConfig.d.ts +1 -1
- package/dist/types/configs/SerializationFormatConfig.d.ts +1 -1
- package/dist/types/configs/UseTableValuesSerializerConfig.d.ts +1 -1
- package/dist/types/index.d.ts +24 -24
- package/dist/types/main.d.ts +1 -0
- package/dist/types/scaffolding/ScaffoldingData.d.ts +2 -2
- package/dist/types/scaffolding/kotlin/KtData.d.ts +2 -2
- package/dist/types/scaffolding/reactApp/ReactAppData.d.ts +2 -2
- package/dist/types/scaffolding/reactApp/util/reactAppLayout.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldActions.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldApi.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldAppComponent.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldAppContext.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldExternalContexts.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldGradleProject.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldGradleWrapper.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldIssueMessages.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldMain.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldPageComponents.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldProjectMisc.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldResponses.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldSerializer.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldStyles.d.ts +2 -2
- package/dist/types/scaffolding/scaffolders/scaffoldViteProject.d.ts +2 -2
- package/dist/webapp/assets/gradle-wrapper-BruD2auj.jar +0 -0
- package/dist/webapp/assets/index-BKUWl2po.css +1 -0
- package/dist/webapp/assets/index-CZhbP43P.js +1526 -0
- package/dist/webapp/index.html +2 -2
- package/package.json +3 -3
- package/dist/webapp/assets/index-BdBaX43T.js +0 -1529
- package/dist/webapp/assets/index-x_B5n20N.css +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SchematicBuilderProps as KFormSchematicBuilderProps } from
|
|
2
|
-
import { SchematicKind } from
|
|
1
|
+
import { type SchematicBuilderProps as KFormSchematicBuilderProps } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import { type SchematicKind } from "./SchematicKind.ts";
|
|
3
3
|
export interface SchematicBuilderProps extends KFormSchematicBuilderProps {
|
|
4
4
|
schematicKinds?: SchematicKind[];
|
|
5
5
|
}
|
|
6
|
-
export declare function SchematicBuilder({ name, schematicKinds, scaffolders, scaffoldingData, configs, version, ...otherProps }: SchematicBuilderProps): import("react
|
|
6
|
+
export declare function SchematicBuilder({ name, schematicKinds, scaffolders, scaffoldingData, configs, version, ...otherProps }: SchematicBuilderProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Schematic, SchematicKind as KFormSchematicKind } from
|
|
2
|
-
import { KtData } from
|
|
3
|
-
import { ReactAppData } from
|
|
1
|
+
import { type Schematic, type SchematicKind as KFormSchematicKind } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { KtData } from "./scaffolding/kotlin/KtData.ts";
|
|
3
|
+
import type { ReactAppData } from "./scaffolding/reactApp/ReactAppData.ts";
|
|
4
4
|
export interface SchematicKind extends KFormSchematicKind {
|
|
5
5
|
defaultValue: string | ((schematic: Schematic, data: KtData) => string);
|
|
6
6
|
propertyAnnotations?: string | string[] | ((schematic: Schematic, data: KtData) => string | string[] | undefined);
|
|
@@ -4,4 +4,4 @@ export interface DefaultLocaleConfigProps {
|
|
|
4
4
|
}
|
|
5
5
|
export declare const DEFAULT_LOCALE = "en-US";
|
|
6
6
|
export declare const LOCALES: string[];
|
|
7
|
-
export declare function DefaultLocaleConfig({ defaultValue, disabled, }: DefaultLocaleConfigProps): import("react
|
|
7
|
+
export declare function DefaultLocaleConfig({ defaultValue, disabled, }: DefaultLocaleConfigProps): import("react").JSX.Element;
|
|
@@ -4,4 +4,4 @@ export interface SerializationFormatConfigProps {
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const DEFAULT_SERIALIZATION_FORMAT = "json";
|
|
7
|
-
export declare function SerializationFormatConfig({ defaultValue, disabled, }: SerializationFormatConfigProps): import("react
|
|
7
|
+
export declare function SerializationFormatConfig({ defaultValue, disabled, }: SerializationFormatConfigProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export interface UseTableValuesSerializerConfigProps {
|
|
2
2
|
disabled?: boolean;
|
|
3
3
|
}
|
|
4
|
-
export declare function UseTableValuesSerializerConfig({ disabled, }: UseTableValuesSerializerConfigProps): import("react
|
|
4
|
+
export declare function UseTableValuesSerializerConfig({ disabled, }: UseTableValuesSerializerConfigProps): import("react").JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
1
|
+
export * from "./SchematicBuilder.tsx";
|
|
2
|
+
export * from "./SchematicKind.ts";
|
|
3
|
+
export * from "./configs/DefaultLocaleConfig.tsx";
|
|
4
|
+
export * from "./configs/SerializationFormatConfig.tsx";
|
|
5
|
+
export * from "./configs/UseTableValuesSerializerConfig.tsx";
|
|
6
|
+
export * from "./scaffolding/ScaffoldingData.ts";
|
|
7
|
+
export * from "./scaffolding/scaffolders/scaffoldActions.ts";
|
|
8
|
+
export * from "./scaffolding/scaffolders/scaffoldApi.ts";
|
|
9
|
+
export * from "./scaffolding/scaffolders/scaffoldAppComponent.ts";
|
|
10
|
+
export * from "./scaffolding/scaffolders/scaffoldAppContext.ts";
|
|
11
|
+
export * from "./scaffolding/scaffolders/scaffoldExternalContexts.ts";
|
|
12
|
+
export * from "./scaffolding/scaffolders/scaffoldGradleProject.ts";
|
|
13
|
+
export * from "./scaffolding/scaffolders/scaffoldGradleWrapper.ts";
|
|
14
|
+
export * from "./scaffolding/scaffolders/scaffoldIssueMessages.ts";
|
|
15
|
+
export * from "./scaffolding/scaffolders/scaffoldMain.ts";
|
|
16
|
+
export * from "./scaffolding/scaffolders/scaffoldPageComponents.ts";
|
|
17
|
+
export * from "./scaffolding/scaffolders/scaffoldProjectMisc.ts";
|
|
18
|
+
export * from "./scaffolding/scaffolders/scaffoldResponses.ts";
|
|
19
|
+
export * from "./scaffolding/scaffolders/scaffoldSerializer.ts";
|
|
20
|
+
export * from "./scaffolding/scaffolders/scaffoldStyles.ts";
|
|
21
|
+
export * from "./scaffolding/scaffolders/scaffoldViteProject.ts";
|
|
22
|
+
export * from "./scaffolding/kotlin/KtData.ts";
|
|
23
|
+
export * from "./scaffolding/reactApp/ReactAppData.ts";
|
|
24
|
+
export * from "./scaffolding/reactApp/util/reactAppLayout.ts";
|
package/dist/types/main.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./main.css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ScaffoldingData as KFormScaffoldingData } from
|
|
2
|
-
import { SerializationFormat } from
|
|
1
|
+
import type { ScaffoldingData as KFormScaffoldingData } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { SerializationFormat } from "../configs/SerializationFormatConfig.tsx";
|
|
3
3
|
/** Data available during scaffolding. */
|
|
4
4
|
export interface ScaffoldingData extends KFormScaffoldingData {
|
|
5
5
|
/** Serialization format to use. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KtData as KFormKtData } from
|
|
2
|
-
import { ScaffoldingData } from
|
|
1
|
+
import type { KtData as KFormKtData } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ScaffoldingData } from "../ScaffoldingData.ts";
|
|
3
3
|
export interface KtData extends KFormKtData, Omit<ScaffoldingData, keyof KFormKtData> {
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TsData } from
|
|
2
|
-
import { ScaffoldingData } from
|
|
1
|
+
import type { TsData } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ScaffoldingData } from "../ScaffoldingData.ts";
|
|
3
3
|
export interface ReactAppData extends TsData, Omit<ScaffoldingData, keyof TsData> {
|
|
4
4
|
kmpModuleName?: string;
|
|
5
5
|
omitLabel?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { ReactAppData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ReactAppData } from "../ReactAppData.ts";
|
|
3
3
|
export interface LayoutAnnex {
|
|
4
4
|
schematic: Schematic;
|
|
5
5
|
data: ReactAppData;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { ReactAppData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ReactAppData } from "../reactApp/ReactAppData.ts";
|
|
3
3
|
export declare function scaffoldActions(schematic: Schematic, data: ReactAppData): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { ReactAppData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ReactAppData } from "../reactApp/ReactAppData.ts";
|
|
3
3
|
export declare const DEFAULT_API_BASE_PATH = "/api/";
|
|
4
4
|
export declare const DEFAULT_REPORT_ERROR_API_ENDPOINT = "report-error";
|
|
5
5
|
export declare const DEFAULT_SUBMIT_API_ENDPOINT = "submit";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { ReactAppData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ReactAppData } from "../reactApp/ReactAppData.ts";
|
|
3
3
|
export declare const DEFAULT_ACTIVE_PATH_SEARCH_PARAM = "page";
|
|
4
4
|
export declare function scaffoldAppComponent(schematic: Schematic, data: ReactAppData): void;
|
|
5
5
|
export declare function scaffoldAppLayout(schematic: Schematic, data: ReactAppData, scaffoldTopBarFn?: (data: ReactAppData, annexesManager?: string) => string): string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { ReactAppData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ReactAppData } from "../reactApp/ReactAppData.ts";
|
|
3
3
|
export declare function scaffoldAppContext(schematic: Schematic, data: ReactAppData): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { KtData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { KtData } from "../kotlin/KtData.ts";
|
|
3
3
|
export declare function scaffoldExternalContexts(schematic: Schematic, data: KtData): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { ScaffoldingData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ScaffoldingData } from "../ScaffoldingData.ts";
|
|
3
3
|
export declare const DEFAULT_JVM_TOOLCHAIN_VERSION = "17";
|
|
4
4
|
export declare const DEFAULT_NODEJS_VERSION = "22.20.0";
|
|
5
5
|
export declare function scaffoldGradleProject(schematic: Schematic, data: ScaffoldingData): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { ScaffoldingData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ScaffoldingData } from "../ScaffoldingData.ts";
|
|
3
3
|
export declare function scaffoldGradleWrapper(_schematic: Schematic, data: ScaffoldingData): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { ReactAppData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ReactAppData } from "../reactApp/ReactAppData.ts";
|
|
3
3
|
export declare function scaffoldIssueMessages(schematic: Schematic, data: ReactAppData): void;
|
|
4
4
|
export declare function shouldScaffoldIssueMessages(data: ReactAppData): boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { ReactAppData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ReactAppData } from "../reactApp/ReactAppData.ts";
|
|
3
3
|
export declare function scaffoldMain(schematic: Schematic, data: ReactAppData): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { ReactAppData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ReactAppData } from "../reactApp/ReactAppData.ts";
|
|
3
3
|
export declare function scaffoldPageComponents(schematic: Schematic, data: ReactAppData): void;
|
|
4
4
|
export declare function scaffoldField(schematic: Schematic, data: ReactAppData): string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { ScaffoldingData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ScaffoldingData } from "../ScaffoldingData.ts";
|
|
3
3
|
export declare function scaffoldProjectMisc(_schematic: Schematic, data: ScaffoldingData): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { KtData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { KtData } from "../kotlin/KtData.ts";
|
|
3
3
|
export declare function scaffoldResponses(schematic: Schematic, data: KtData): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { KtData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { KtData } from "../kotlin/KtData.ts";
|
|
3
3
|
export declare const DEFAULT_INCLUDE_SERIALIZATION_FORMAT_VERSION = true;
|
|
4
4
|
export declare function scaffoldSerializer(schematic: Schematic, data: KtData): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { ReactAppData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ReactAppData } from "../reactApp/ReactAppData.ts";
|
|
3
3
|
export declare function scaffoldStyles(_schematic: Schematic, data: ReactAppData): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Schematic } from
|
|
2
|
-
import { ReactAppData } from
|
|
1
|
+
import { type Schematic } from "@ostack.tech/kform-scaffolder";
|
|
2
|
+
import type { ReactAppData } from "../reactApp/ReactAppData.ts";
|
|
3
3
|
export declare const DEFAULT_VITE_CONFIG_OUT_DIR = "build/dist/";
|
|
4
4
|
export declare const DEFAULT_VITE_CONFIG_PROXY_TARGET = "http://127.0.0.1:8080/";
|
|
5
5
|
export declare function scaffoldViteProject(schematic: Schematic, data: ReactAppData): void;
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--builder-font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--builder-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}.builder-root{max-width:1200px;font-family:var(--builder-font-sans);margin:0 auto;padding:.5rem}.builder-header{z-index:1;flex-wrap:wrap;align-items:baseline;gap:.5rem 1rem;margin-bottom:1rem;display:flex;position:sticky;top:1rem}.builder-header>*{isolation:isolate;display:inline-block;position:relative}.builder-header>*:after{content:"";pointer-events:none;background:color-mix(in srgb, Canvas 70%, transparent);-webkit-backdrop-filter:blur(12px);z-index:-1;border-radius:.5rem;position:absolute;inset:-.35rem}.builder-title{margin:0}.builder-version{opacity:.65}.builder-version:before{content:"v"}.builder-actions{align-self:center;gap:.5rem;margin-left:auto;display:inline-flex}.builder{margin-top:.5rem}.builder .builder{border-left:2px solid #b5b5b580;margin-left:.35rem;padding-left:1rem}.builder-empty{color:gray;border-radius:.5rem;margin:.5rem;padding:.25rem;transition:outline .1s ease-in-out}.builder-empty[data-over]{outline:2px dashed gray}.builder-dragged{min-height:36px;font-family:var(--builder-font-mono);cursor:grabbing;background-color:#b5b5b580;border-radius:.5rem;align-items:center;padding:.25rem 1rem;display:flex}.builder-input{font-size:inherit;min-width:10px;padding:.25rem}.builder-input:not(button){font-family:var(--builder-font-mono)}.builder-package-name{align-items:center;gap:.25rem;display:flex}.builder-package[value=""]:not(:focus),.builder-package[value=""]:not(:focus)~.builder-operator{display:none}.builder-package:is(:not([value=""]),:focus)+.builder-edit-package{display:none}.builder-package-prefix,.builder-operator{opacity:.5}.builder-children{margin:.5rem 0;padding-left:0}.builder-child{touch-action:none;border-radius:.5rem;padding:.25rem 0 .25rem .5rem;list-style-type:none;transition:background-color .2s ease-in-out}.builder-child:is(:hover,:focus-within){background-color:#93939340}.builder-child:is(:hover,:focus-within):has(.builder-child:is(:hover,:focus-within)){background-color:initial}.builder-child-content{align-items:center;gap:.5rem;display:inline-flex}.builder-icon-button,.builder-child-marker{font-size:inherit;background-color:#0000;border:0;justify-content:center;align-items:center;display:inline-flex}.builder-icon-button{cursor:default;border-radius:50%;width:1.5rem;height:1.5rem;transition:opacity .1s ease-in-out}.builder-icon-button.builder-action{width:2rem;height:2rem}.builder-icon-button:hover,.builder-icon-button:focus{background-color:#9f9f9f80}.builder-icon-button:active{background-color:#9f9f9fbf}#builder-config-popover:popover-open{inset:unset;left:max(calc(var(--anchor-left) - var(--width) / 2 + var(--anchor-width) / 2), .5rem);top:calc(var(--anchor-bottom) + .5rem);border-width:1px;border-color:#87878780;border-radius:.5rem;flex-direction:column;gap:1rem;padding:1rem;display:flex;position:absolute;box-shadow:0 0 1rem #3a3a3a40}.builder-config-field{flex-direction:column;gap:.25rem;display:flex}.builder-child-marker{width:1rem;height:auto}.builder-child-droppable{border:0 dashed #0000;margin-left:1rem;list-style-type:none;transition:all .1s ease-in-out}.builder-child-droppable[data-over]{border-color:gray;border-bottom-width:2px;margin-top:.5rem;margin-bottom:.5rem}
|