@powerlines/plugin-alloy 0.18.49 → 0.18.52
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/core/components/index.cjs +7 -0
- package/dist/core/components/index.d.cts +4 -0
- package/dist/core/components/index.d.mts +4 -0
- package/dist/core/components/index.mjs +5 -0
- package/dist/core/components/output.cjs +2 -2
- package/dist/core/components/output.d.cts +23 -0
- package/dist/core/components/output.d.mts +23 -0
- package/dist/core/components/output.mjs +4 -4
- package/dist/core/components/single-line-comment.cjs +22 -0
- package/dist/core/components/single-line-comment.d.cts +22 -0
- package/dist/core/components/single-line-comment.d.mts +22 -0
- package/dist/core/components/single-line-comment.mjs +21 -0
- package/dist/core/components/source-file.cjs +64 -0
- package/dist/core/components/source-file.d.cts +32 -0
- package/dist/core/components/source-file.d.mts +32 -0
- package/dist/core/components/source-file.mjs +62 -0
- package/dist/core/contexts/context.cjs +50 -1
- package/dist/core/contexts/context.d.cts +71 -0
- package/dist/core/contexts/context.d.mts +71 -0
- package/dist/core/contexts/context.mjs +46 -2
- package/dist/core/contexts/index.cjs +17 -0
- package/dist/core/contexts/index.d.cts +3 -0
- package/dist/core/contexts/index.d.mts +3 -0
- package/dist/core/contexts/index.mjs +4 -0
- package/dist/core/contexts/reflection.cjs +68 -0
- package/dist/core/contexts/reflection.d.cts +52 -0
- package/dist/core/contexts/reflection.d.mts +52 -0
- package/dist/core/contexts/reflection.mjs +60 -0
- package/dist/core/index.cjs +25 -0
- package/dist/core/index.d.cts +7 -0
- package/dist/core/index.d.mts +8 -0
- package/dist/core/index.mjs +9 -0
- package/dist/helpers/capnp.cjs +276 -0
- package/dist/helpers/capnp.d.cts +87 -0
- package/dist/helpers/capnp.d.mts +87 -0
- package/dist/helpers/capnp.mjs +259 -0
- package/dist/helpers/create-builtin.cjs +19 -0
- package/dist/helpers/create-builtin.d.cts +15 -0
- package/dist/helpers/create-builtin.d.mts +15 -0
- package/dist/helpers/create-builtin.mjs +18 -0
- package/dist/helpers/index.cjs +24 -0
- package/dist/helpers/index.d.cts +5 -0
- package/dist/helpers/index.d.mts +5 -0
- package/dist/helpers/index.mjs +6 -0
- package/dist/helpers/refkey.cjs +16 -0
- package/dist/helpers/refkey.d.cts +13 -0
- package/dist/helpers/refkey.d.mts +13 -0
- package/dist/helpers/refkey.mjs +15 -0
- package/dist/helpers/typescript.cjs +46 -0
- package/dist/helpers/typescript.d.cts +25 -0
- package/dist/helpers/typescript.d.mts +25 -0
- package/dist/helpers/typescript.mjs +45 -0
- package/dist/index.cjs +2 -2
- package/dist/markdown/components/index.cjs +8 -0
- package/dist/markdown/components/index.d.cts +3 -0
- package/dist/markdown/components/index.d.mts +3 -0
- package/dist/markdown/components/index.mjs +4 -0
- package/dist/markdown/components/markdown-file.cjs +116 -0
- package/dist/markdown/components/markdown-file.d.cts +23 -0
- package/dist/markdown/components/markdown-file.d.mts +23 -0
- package/dist/markdown/components/markdown-file.mjs +114 -0
- package/dist/markdown/components/markdown-table.cjs +101 -0
- package/dist/markdown/components/markdown-table.d.cts +27 -0
- package/dist/markdown/components/markdown-table.d.mts +27 -0
- package/dist/markdown/components/markdown-table.mjs +98 -0
- package/dist/markdown/contexts/index.cjs +6 -0
- package/dist/markdown/contexts/index.d.cts +2 -0
- package/dist/markdown/contexts/index.d.mts +2 -0
- package/dist/markdown/contexts/index.mjs +3 -0
- package/dist/markdown/contexts/markdown-table.cjs +37 -0
- package/dist/markdown/contexts/markdown-table.d.cts +37 -0
- package/dist/markdown/contexts/markdown-table.d.mts +37 -0
- package/dist/markdown/contexts/markdown-table.mjs +33 -0
- package/dist/markdown/index.cjs +15 -0
- package/dist/markdown/index.d.cts +4 -0
- package/dist/markdown/index.d.mts +6 -0
- package/dist/markdown/index.mjs +7 -0
- package/dist/powerlines/src/types/api.d.cts +3 -3
- package/dist/powerlines/src/types/api.d.mts +3 -3
- package/dist/powerlines/src/types/build.d.cts +10 -10
- package/dist/powerlines/src/types/build.d.mts +10 -10
- package/dist/powerlines/src/types/commands.d.cts +1 -1
- package/dist/powerlines/src/types/commands.d.mts +1 -1
- package/dist/powerlines/src/types/config.d.cts +2 -2
- package/dist/powerlines/src/types/config.d.mts +2 -2
- package/dist/powerlines/src/types/context.d.cts +5 -5
- package/dist/powerlines/src/types/context.d.mts +5 -5
- package/dist/powerlines/src/types/hooks.d.cts +1 -1
- package/dist/powerlines/src/types/hooks.d.mts +1 -1
- package/dist/powerlines/src/types/plugin.d.cts +5 -5
- package/dist/powerlines/src/types/plugin.d.mts +5 -5
- package/dist/powerlines/src/types/resolved.d.cts +1 -1
- package/dist/powerlines/src/types/resolved.d.mts +1 -1
- package/dist/powerlines/src/types/unplugin.d.cts +1 -1
- package/dist/powerlines/src/types/unplugin.d.mts +1 -1
- package/dist/types/components.cjs +0 -0
- package/dist/types/components.d.cts +142 -0
- package/dist/types/components.d.mts +142 -0
- package/dist/types/components.mjs +1 -0
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +3 -0
- package/dist/types/index.d.mts +3 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +9 -1
- package/dist/types/plugin.d.mts +9 -1
- package/dist/types/plugin.mjs +1 -0
- package/dist/typescript/components/builtin-file.cjs +62 -0
- package/dist/typescript/components/builtin-file.d.cts +34 -0
- package/dist/typescript/components/builtin-file.d.mts +34 -0
- package/dist/typescript/components/builtin-file.mjs +61 -0
- package/dist/typescript/components/dynamic-import-statement.cjs +25 -0
- package/dist/typescript/components/dynamic-import-statement.d.cts +32 -0
- package/dist/typescript/components/dynamic-import-statement.d.mts +32 -0
- package/dist/typescript/components/dynamic-import-statement.mjs +24 -0
- package/dist/typescript/components/entry-file.cjs +41 -0
- package/dist/typescript/components/entry-file.d.cts +27 -0
- package/dist/typescript/components/entry-file.d.mts +27 -0
- package/dist/typescript/components/entry-file.mjs +39 -0
- package/dist/typescript/components/index.cjs +44 -0
- package/dist/typescript/components/index.d.cts +10 -0
- package/dist/typescript/components/index.d.mts +10 -0
- package/dist/typescript/components/index.mjs +11 -0
- package/dist/typescript/components/record-expression.cjs +12 -0
- package/dist/typescript/components/record-expression.d.cts +12 -0
- package/dist/typescript/components/record-expression.d.mts +12 -0
- package/dist/typescript/components/record-expression.mjs +11 -0
- package/dist/typescript/components/tsdoc-reflection.cjs +177 -0
- package/dist/typescript/components/tsdoc-reflection.d.cts +18 -0
- package/dist/typescript/components/tsdoc-reflection.d.mts +18 -0
- package/dist/typescript/components/tsdoc-reflection.mjs +174 -0
- package/dist/typescript/components/tsdoc.cjs +481 -0
- package/dist/typescript/components/tsdoc.d.cts +163 -0
- package/dist/typescript/components/tsdoc.d.mts +163 -0
- package/dist/typescript/components/tsdoc.mjs +461 -0
- package/dist/typescript/components/typescript-file.cjs +216 -0
- package/dist/typescript/components/typescript-file.d.cts +49 -0
- package/dist/typescript/components/typescript-file.d.mts +49 -0
- package/dist/typescript/components/typescript-file.mjs +213 -0
- package/dist/typescript/components/typescript-interface.cjs +69 -0
- package/dist/typescript/components/typescript-interface.d.cts +25 -0
- package/dist/typescript/components/typescript-interface.d.mts +25 -0
- package/dist/typescript/components/typescript-interface.mjs +67 -0
- package/dist/typescript/components/typescript-object.cjs +125 -0
- package/dist/typescript/components/typescript-object.d.cts +26 -0
- package/dist/typescript/components/typescript-object.d.mts +26 -0
- package/dist/typescript/components/typescript-object.mjs +123 -0
- package/dist/typescript/index.cjs +45 -0
- package/dist/typescript/index.d.cts +11 -0
- package/dist/typescript/index.d.mts +11 -0
- package/dist/typescript/index.mjs +12 -0
- package/package.json +5 -5
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as _alloy_js_core7 from "@alloy-js/core";
|
|
2
|
+
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
5
|
+
interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
|
|
6
|
+
/**
|
|
7
|
+
* The path of the module to import.
|
|
8
|
+
*/
|
|
9
|
+
importPath: string;
|
|
10
|
+
/**
|
|
11
|
+
* The name of the export to import from the module.
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue "default"
|
|
14
|
+
*/
|
|
15
|
+
exportName?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Generates a dynamic import statement for a given module path and export name.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
23
|
+
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @param props - The properties for the dynamic import statement.
|
|
27
|
+
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
|
+
*/
|
|
29
|
+
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core7.Children;
|
|
30
|
+
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
|
+
//#endregion
|
|
32
|
+
export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { code } from "@alloy-js/core";
|
|
3
|
+
import { VarDeclaration } from "@alloy-js/typescript";
|
|
4
|
+
|
|
5
|
+
//#region src/typescript/components/dynamic-import-statement.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Generates a dynamic import statement for a given module path and export name.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
12
|
+
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @param props - The properties for the dynamic import statement.
|
|
16
|
+
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
17
|
+
*/
|
|
18
|
+
function DynamicImportStatement(props) {
|
|
19
|
+
const { importPath, exportName = "default", const: isConst = true, ...rest } = props;
|
|
20
|
+
return createComponent(VarDeclaration, mergeProps({ "const": isConst }, rest, { initializer: code`await import("${importPath}").then(m => m.${exportName});` }));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { DynamicImportStatement };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
3
|
+
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
4
|
+
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
6
|
+
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
7
|
+
let __stryke_path_replace = require("@stryke/path/replace");
|
|
8
|
+
let defu = require("defu");
|
|
9
|
+
defu = require_rolldown_runtime.__toESM(defu);
|
|
10
|
+
let __stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
|
|
11
|
+
|
|
12
|
+
//#region src/typescript/components/entry-file.tsx
|
|
13
|
+
/**
|
|
14
|
+
* A base component representing a Powerlines generated Typescript source file.
|
|
15
|
+
*
|
|
16
|
+
* @param props - The properties for the source file.
|
|
17
|
+
* @returns The rendered source file component.
|
|
18
|
+
*/
|
|
19
|
+
function EntryFile(props) {
|
|
20
|
+
const [{ children, meta, tsx, path, typeDefinition }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
21
|
+
"children",
|
|
22
|
+
"meta",
|
|
23
|
+
"tsx",
|
|
24
|
+
"path",
|
|
25
|
+
"typeDefinition"
|
|
26
|
+
]);
|
|
27
|
+
const context = require_core_contexts_context.usePowerlinesSafe();
|
|
28
|
+
const fullPath = (0, __alloy_js_core.computed)(() => (0, __stryke_path_replace.replacePath)(`${!(0, __stryke_type_checks_is_set.isSet)(tsx) ? path : (0, __stryke_path_replace.replaceExtension)(path)}${(0, __stryke_path_file_path_fns.hasFileExtension)(path) && !(0, __stryke_type_checks_is_set.isSet)(tsx) ? "" : tsx ? ".tsx" : ".ts"}`, context?.entryPath));
|
|
29
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFile, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
30
|
+
get path() {
|
|
31
|
+
return fullPath.value;
|
|
32
|
+
},
|
|
33
|
+
get meta() {
|
|
34
|
+
return (0, defu.default)({ kind: "entry" }, meta ?? {}, { typeDefinition });
|
|
35
|
+
},
|
|
36
|
+
children
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.EntryFile = EntryFile;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ResolvedEntryTypeDefinition } from "../../powerlines/src/types/resolved.cjs";
|
|
2
|
+
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
3
|
+
import * as _alloy_js_core8 from "@alloy-js/core";
|
|
4
|
+
|
|
5
|
+
//#region src/typescript/components/entry-file.d.ts
|
|
6
|
+
type EntryFileProps = TypescriptFileProps & {
|
|
7
|
+
/**
|
|
8
|
+
* Whether the file is a TSX file.
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue false
|
|
11
|
+
*/
|
|
12
|
+
tsx?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Render metadata information about the entrypoint
|
|
15
|
+
*/
|
|
16
|
+
typeDefinition?: ResolvedEntryTypeDefinition;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* A base component representing a Powerlines generated Typescript source file.
|
|
20
|
+
*
|
|
21
|
+
* @param props - The properties for the source file.
|
|
22
|
+
* @returns The rendered source file component.
|
|
23
|
+
*/
|
|
24
|
+
declare function EntryFile(props: EntryFileProps): _alloy_js_core8.Children;
|
|
25
|
+
declare type __ΩEntryFileProps = any[];
|
|
26
|
+
//#endregion
|
|
27
|
+
export { EntryFile, EntryFileProps, __ΩEntryFileProps };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ResolvedEntryTypeDefinition } from "../../powerlines/src/types/resolved.mjs";
|
|
2
|
+
import { TypescriptFileProps } from "./typescript-file.mjs";
|
|
3
|
+
import * as _alloy_js_core8 from "@alloy-js/core";
|
|
4
|
+
|
|
5
|
+
//#region src/typescript/components/entry-file.d.ts
|
|
6
|
+
type EntryFileProps = TypescriptFileProps & {
|
|
7
|
+
/**
|
|
8
|
+
* Whether the file is a TSX file.
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue false
|
|
11
|
+
*/
|
|
12
|
+
tsx?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Render metadata information about the entrypoint
|
|
15
|
+
*/
|
|
16
|
+
typeDefinition?: ResolvedEntryTypeDefinition;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* A base component representing a Powerlines generated Typescript source file.
|
|
20
|
+
*
|
|
21
|
+
* @param props - The properties for the source file.
|
|
22
|
+
* @returns The rendered source file component.
|
|
23
|
+
*/
|
|
24
|
+
declare function EntryFile(props: EntryFileProps): _alloy_js_core8.Children;
|
|
25
|
+
declare type __ΩEntryFileProps = any[];
|
|
26
|
+
//#endregion
|
|
27
|
+
export { EntryFile, EntryFileProps, __ΩEntryFileProps };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
|
|
2
|
+
import { TypescriptFile } from "./typescript-file.mjs";
|
|
3
|
+
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
4
|
+
import { computed, splitProps } from "@alloy-js/core";
|
|
5
|
+
import { hasFileExtension } from "@stryke/path/file-path-fns";
|
|
6
|
+
import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
7
|
+
import defu from "defu";
|
|
8
|
+
import { isSet } from "@stryke/type-checks/is-set";
|
|
9
|
+
|
|
10
|
+
//#region src/typescript/components/entry-file.tsx
|
|
11
|
+
/**
|
|
12
|
+
* A base component representing a Powerlines generated Typescript source file.
|
|
13
|
+
*
|
|
14
|
+
* @param props - The properties for the source file.
|
|
15
|
+
* @returns The rendered source file component.
|
|
16
|
+
*/
|
|
17
|
+
function EntryFile(props) {
|
|
18
|
+
const [{ children, meta, tsx, path, typeDefinition }, rest] = splitProps(props, [
|
|
19
|
+
"children",
|
|
20
|
+
"meta",
|
|
21
|
+
"tsx",
|
|
22
|
+
"path",
|
|
23
|
+
"typeDefinition"
|
|
24
|
+
]);
|
|
25
|
+
const context = usePowerlinesSafe();
|
|
26
|
+
const fullPath = computed(() => replacePath(`${!isSet(tsx) ? path : replaceExtension(path)}${hasFileExtension(path) && !isSet(tsx) ? "" : tsx ? ".tsx" : ".ts"}`, context?.entryPath));
|
|
27
|
+
return createComponent(TypescriptFile, mergeProps(rest, {
|
|
28
|
+
get path() {
|
|
29
|
+
return fullPath.value;
|
|
30
|
+
},
|
|
31
|
+
get meta() {
|
|
32
|
+
return defu({ kind: "entry" }, meta ?? {}, { typeDefinition });
|
|
33
|
+
},
|
|
34
|
+
children
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { EntryFile };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const require_typescript_components_tsdoc = require('./tsdoc.cjs');
|
|
2
|
+
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
3
|
+
const require_typescript_components_builtin_file = require('./builtin-file.cjs');
|
|
4
|
+
const require_typescript_components_dynamic_import_statement = require('./dynamic-import-statement.cjs');
|
|
5
|
+
const require_typescript_components_entry_file = require('./entry-file.cjs');
|
|
6
|
+
const require_typescript_components_record_expression = require('./record-expression.cjs');
|
|
7
|
+
const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
|
|
8
|
+
const require_typescript_components_typescript_interface = require('./typescript-interface.cjs');
|
|
9
|
+
const require_typescript_components_typescript_object = require('./typescript-object.cjs');
|
|
10
|
+
|
|
11
|
+
exports.BuiltinFile = require_typescript_components_builtin_file.BuiltinFile;
|
|
12
|
+
exports.DynamicImportStatement = require_typescript_components_dynamic_import_statement.DynamicImportStatement;
|
|
13
|
+
exports.EntryFile = require_typescript_components_entry_file.EntryFile;
|
|
14
|
+
exports.RecordExpression = require_typescript_components_record_expression.RecordExpression;
|
|
15
|
+
exports.TSDoc = require_typescript_components_tsdoc.TSDoc;
|
|
16
|
+
exports.TSDocAlias = require_typescript_components_tsdoc.TSDocAlias;
|
|
17
|
+
exports.TSDocAttributesTags = require_typescript_components_tsdoc.TSDocAttributesTags;
|
|
18
|
+
exports.TSDocDefaultValue = require_typescript_components_tsdoc.TSDocDefaultValue;
|
|
19
|
+
exports.TSDocDomain = require_typescript_components_tsdoc.TSDocDomain;
|
|
20
|
+
exports.TSDocExample = require_typescript_components_tsdoc.TSDocExample;
|
|
21
|
+
exports.TSDocHidden = require_typescript_components_tsdoc.TSDocHidden;
|
|
22
|
+
exports.TSDocIgnore = require_typescript_components_tsdoc.TSDocIgnore;
|
|
23
|
+
exports.TSDocInternal = require_typescript_components_tsdoc.TSDocInternal;
|
|
24
|
+
exports.TSDocLink = require_typescript_components_tsdoc.TSDocLink;
|
|
25
|
+
exports.TSDocModule = require_typescript_components_tsdoc.TSDocModule;
|
|
26
|
+
exports.TSDocParam = require_typescript_components_tsdoc.TSDocParam;
|
|
27
|
+
exports.TSDocParams = require_typescript_components_tsdoc.TSDocParams;
|
|
28
|
+
exports.TSDocPermission = require_typescript_components_tsdoc.TSDocPermission;
|
|
29
|
+
exports.TSDocReadonly = require_typescript_components_tsdoc.TSDocReadonly;
|
|
30
|
+
exports.TSDocReflectionClass = require_typescript_components_tsdoc_reflection.TSDocReflectionClass;
|
|
31
|
+
exports.TSDocReflectionMethod = require_typescript_components_tsdoc_reflection.TSDocReflectionMethod;
|
|
32
|
+
exports.TSDocReflectionProperty = require_typescript_components_tsdoc_reflection.TSDocReflectionProperty;
|
|
33
|
+
exports.TSDocRemarks = require_typescript_components_tsdoc.TSDocRemarks;
|
|
34
|
+
exports.TSDocReturns = require_typescript_components_tsdoc.TSDocReturns;
|
|
35
|
+
exports.TSDocTag = require_typescript_components_tsdoc.TSDocTag;
|
|
36
|
+
exports.TSDocThrows = require_typescript_components_tsdoc.TSDocThrows;
|
|
37
|
+
exports.TSDocTitle = require_typescript_components_tsdoc.TSDocTitle;
|
|
38
|
+
exports.TypeScriptInterface = require_typescript_components_typescript_interface.TypeScriptInterface;
|
|
39
|
+
exports.TypescriptFile = require_typescript_components_typescript_file.TypescriptFile;
|
|
40
|
+
exports.TypescriptFileHeader = require_typescript_components_typescript_file.TypescriptFileHeader;
|
|
41
|
+
exports.TypescriptFileHeaderImports = require_typescript_components_typescript_file.TypescriptFileHeaderImports;
|
|
42
|
+
exports.TypescriptInterfaceProperty = require_typescript_components_typescript_interface.TypescriptInterfaceProperty;
|
|
43
|
+
exports.TypescriptObject = require_typescript_components_typescript_object.TypescriptObject;
|
|
44
|
+
exports.TypescriptObjectProperty = require_typescript_components_typescript_object.TypescriptObjectProperty;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps } from "./tsdoc.cjs";
|
|
2
|
+
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps } from "./typescript-file.cjs";
|
|
3
|
+
import { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps } from "./builtin-file.cjs";
|
|
4
|
+
import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./dynamic-import-statement.cjs";
|
|
5
|
+
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./entry-file.cjs";
|
|
6
|
+
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./record-expression.cjs";
|
|
7
|
+
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./tsdoc-reflection.cjs";
|
|
8
|
+
import { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps } from "./typescript-interface.cjs";
|
|
9
|
+
import { TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps } from "./typescript-object.cjs";
|
|
10
|
+
export { BuiltinFile, BuiltinFileProps, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩBuiltinFileProps, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps } from "./tsdoc.mjs";
|
|
2
|
+
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps } from "./typescript-file.mjs";
|
|
3
|
+
import { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps } from "./builtin-file.mjs";
|
|
4
|
+
import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./dynamic-import-statement.mjs";
|
|
5
|
+
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./entry-file.mjs";
|
|
6
|
+
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./record-expression.mjs";
|
|
7
|
+
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./tsdoc-reflection.mjs";
|
|
8
|
+
import { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps } from "./typescript-interface.mjs";
|
|
9
|
+
import { TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps } from "./typescript-object.mjs";
|
|
10
|
+
export { BuiltinFile, BuiltinFileProps, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩBuiltinFileProps, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle } from "./tsdoc.mjs";
|
|
2
|
+
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports } from "./typescript-file.mjs";
|
|
3
|
+
import { BuiltinFile } from "./builtin-file.mjs";
|
|
4
|
+
import { DynamicImportStatement } from "./dynamic-import-statement.mjs";
|
|
5
|
+
import { EntryFile } from "./entry-file.mjs";
|
|
6
|
+
import { RecordExpression } from "./record-expression.mjs";
|
|
7
|
+
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./tsdoc-reflection.mjs";
|
|
8
|
+
import { TypeScriptInterface, TypescriptInterfaceProperty } from "./typescript-interface.mjs";
|
|
9
|
+
import { TypescriptObject, TypescriptObjectProperty } from "./typescript-object.mjs";
|
|
10
|
+
|
|
11
|
+
export { BuiltinFile, DynamicImportStatement, EntryFile, RecordExpression, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle, TypeScriptInterface, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptInterfaceProperty, TypescriptObject, TypescriptObjectProperty };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/components/record-expression.tsx
|
|
5
|
+
function RecordExpression({ elementType }) {
|
|
6
|
+
return __alloy_js_core.code`
|
|
7
|
+
Record<string, ${elementType}>
|
|
8
|
+
`;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.RecordExpression = RecordExpression;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Children } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/typescript/components/record-expression.d.ts
|
|
4
|
+
interface RecordExpressionProps {
|
|
5
|
+
elementType: Children;
|
|
6
|
+
}
|
|
7
|
+
declare function RecordExpression({
|
|
8
|
+
elementType
|
|
9
|
+
}: RecordExpressionProps): Children;
|
|
10
|
+
declare type __ΩRecordExpressionProps = any[];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Children } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/typescript/components/record-expression.d.ts
|
|
4
|
+
interface RecordExpressionProps {
|
|
5
|
+
elementType: Children;
|
|
6
|
+
}
|
|
7
|
+
declare function RecordExpression({
|
|
8
|
+
elementType
|
|
9
|
+
}: RecordExpressionProps): Children;
|
|
10
|
+
declare type __ΩRecordExpressionProps = any[];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps };
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
|
|
3
|
+
const require_typescript_components_tsdoc = require('./tsdoc.cjs');
|
|
4
|
+
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
6
|
+
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
7
|
+
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
8
|
+
let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
9
|
+
let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
10
|
+
|
|
11
|
+
//#region src/typescript/components/tsdoc-reflection.tsx
|
|
12
|
+
/**
|
|
13
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
14
|
+
*/
|
|
15
|
+
function TSDocReflectionClass(props) {
|
|
16
|
+
const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
|
|
17
|
+
const reflectionClass = require_core_contexts_reflection.useReflectionClass();
|
|
18
|
+
const title = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getTitle() || (0, __stryke_string_format_title_case.titleCase)(reflectionClass.reflection.getName()));
|
|
19
|
+
const alias = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getAlias());
|
|
20
|
+
const domain = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getDomain());
|
|
21
|
+
const permission = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getPermission());
|
|
22
|
+
const readonly = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isReadonly());
|
|
23
|
+
const internal = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isInternal());
|
|
24
|
+
const ignore = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isIgnored());
|
|
25
|
+
const hidden = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isHidden());
|
|
26
|
+
if (!reflectionClass.reflection.getName()) return null;
|
|
27
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
28
|
+
get heading() {
|
|
29
|
+
return reflectionClass.reflection.getDescription();
|
|
30
|
+
},
|
|
31
|
+
get children() {
|
|
32
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
33
|
+
get when() {
|
|
34
|
+
return (0, __stryke_type_checks_is_set_string.isSetString)(title.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(alias.value) && alias.value.length > 0 || !(0, __stryke_type_checks_is_undefined.isUndefined)(permission.value) && permission.value.length > 0 || (0, __stryke_type_checks_is_set_string.isSetString)(domain.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(readonly.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(internal.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(ignore.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(hidden.value);
|
|
35
|
+
},
|
|
36
|
+
get children() {
|
|
37
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
|
|
38
|
+
get title() {
|
|
39
|
+
return title.value;
|
|
40
|
+
},
|
|
41
|
+
get alias() {
|
|
42
|
+
return alias.value;
|
|
43
|
+
},
|
|
44
|
+
get domain() {
|
|
45
|
+
return domain.value;
|
|
46
|
+
},
|
|
47
|
+
get permission() {
|
|
48
|
+
return permission.value;
|
|
49
|
+
},
|
|
50
|
+
get readonly() {
|
|
51
|
+
return readonly.value;
|
|
52
|
+
},
|
|
53
|
+
get internal() {
|
|
54
|
+
return internal.value;
|
|
55
|
+
},
|
|
56
|
+
get ignore() {
|
|
57
|
+
return ignore.value;
|
|
58
|
+
},
|
|
59
|
+
get hidden() {
|
|
60
|
+
return hidden.value;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
65
|
+
get when() {
|
|
66
|
+
return (0, __alloy_js_core_jsx_runtime.memo)(() => !!Boolean(children))() && (0, __alloy_js_core.childrenArray)(() => children).length > 0;
|
|
67
|
+
},
|
|
68
|
+
get children() {
|
|
69
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.List, { get children() {
|
|
70
|
+
return (0, __alloy_js_core.childrenArray)(() => children);
|
|
71
|
+
} });
|
|
72
|
+
}
|
|
73
|
+
})];
|
|
74
|
+
}
|
|
75
|
+
}));
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
79
|
+
*/
|
|
80
|
+
function TSDocReflectionProperty(props) {
|
|
81
|
+
const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
|
|
82
|
+
const context = require_core_contexts_reflection.useReflectionProperty();
|
|
83
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get heading() {
|
|
84
|
+
return context.getDescription();
|
|
85
|
+
} }, rest, { get children() {
|
|
86
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
|
|
87
|
+
type: context,
|
|
88
|
+
get title() {
|
|
89
|
+
return context.getTitle();
|
|
90
|
+
},
|
|
91
|
+
get alias() {
|
|
92
|
+
return context.getAlias();
|
|
93
|
+
},
|
|
94
|
+
get domain() {
|
|
95
|
+
return context.getDomain();
|
|
96
|
+
},
|
|
97
|
+
get permission() {
|
|
98
|
+
return context.getPermission();
|
|
99
|
+
},
|
|
100
|
+
get readonly() {
|
|
101
|
+
return context.isReadonly();
|
|
102
|
+
},
|
|
103
|
+
get internal() {
|
|
104
|
+
return context.isInternal();
|
|
105
|
+
},
|
|
106
|
+
get ignore() {
|
|
107
|
+
return context.isIgnored();
|
|
108
|
+
},
|
|
109
|
+
get hidden() {
|
|
110
|
+
return context.isHidden();
|
|
111
|
+
},
|
|
112
|
+
get defaultValue() {
|
|
113
|
+
return context.getDefaultValue();
|
|
114
|
+
}
|
|
115
|
+
}), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
116
|
+
get when() {
|
|
117
|
+
return (0, __alloy_js_core_jsx_runtime.memo)(() => !!Boolean(children))() && (0, __alloy_js_core.childrenArray)(() => children).length > 0;
|
|
118
|
+
},
|
|
119
|
+
get children() {
|
|
120
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.List, { get children() {
|
|
121
|
+
return (0, __alloy_js_core.childrenArray)(() => children);
|
|
122
|
+
} });
|
|
123
|
+
}
|
|
124
|
+
})];
|
|
125
|
+
} }));
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
129
|
+
*/
|
|
130
|
+
function TSDocReflectionMethod(props) {
|
|
131
|
+
const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
|
|
132
|
+
const context = require_core_contexts_reflection.useReflectionMethod();
|
|
133
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get heading() {
|
|
134
|
+
return context.getDescription() || ((0, __stryke_type_checks_is_string.isString)(context.getName()) ? __alloy_js_core.code`${String(context.getName())} method definition` : void 0);
|
|
135
|
+
} }, rest, { get children() {
|
|
136
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
|
|
137
|
+
get title() {
|
|
138
|
+
return context.getTitle();
|
|
139
|
+
},
|
|
140
|
+
get alias() {
|
|
141
|
+
return context.getAlias();
|
|
142
|
+
},
|
|
143
|
+
get domain() {
|
|
144
|
+
return context.getDomain();
|
|
145
|
+
},
|
|
146
|
+
get permission() {
|
|
147
|
+
return context.getPermission();
|
|
148
|
+
},
|
|
149
|
+
get readonly() {
|
|
150
|
+
return context.isReadonly();
|
|
151
|
+
},
|
|
152
|
+
get internal() {
|
|
153
|
+
return context.isInternal();
|
|
154
|
+
},
|
|
155
|
+
get ignore() {
|
|
156
|
+
return context.isIgnored();
|
|
157
|
+
},
|
|
158
|
+
get hidden() {
|
|
159
|
+
return context.isHidden();
|
|
160
|
+
}
|
|
161
|
+
}), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
162
|
+
get when() {
|
|
163
|
+
return (0, __alloy_js_core_jsx_runtime.memo)(() => !!Boolean(children))() && (0, __alloy_js_core.childrenArray)(() => children).length > 0;
|
|
164
|
+
},
|
|
165
|
+
get children() {
|
|
166
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.List, { get children() {
|
|
167
|
+
return (0, __alloy_js_core.childrenArray)(() => children);
|
|
168
|
+
} });
|
|
169
|
+
}
|
|
170
|
+
})];
|
|
171
|
+
} }));
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
//#endregion
|
|
175
|
+
exports.TSDocReflectionClass = TSDocReflectionClass;
|
|
176
|
+
exports.TSDocReflectionMethod = TSDocReflectionMethod;
|
|
177
|
+
exports.TSDocReflectionProperty = TSDocReflectionProperty;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TSDocProps } from "./tsdoc.cjs";
|
|
2
|
+
import * as _alloy_js_core9 from "@alloy-js/core";
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/components/tsdoc-reflection.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
7
|
+
*/
|
|
8
|
+
declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core9.Children;
|
|
9
|
+
/**
|
|
10
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
11
|
+
*/
|
|
12
|
+
declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core9.Children;
|
|
13
|
+
/**
|
|
14
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
15
|
+
*/
|
|
16
|
+
declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core9.Children;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TSDocProps } from "./tsdoc.mjs";
|
|
2
|
+
import * as _alloy_js_core10 from "@alloy-js/core";
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/components/tsdoc-reflection.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
7
|
+
*/
|
|
8
|
+
declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core10.Children;
|
|
9
|
+
/**
|
|
10
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
11
|
+
*/
|
|
12
|
+
declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core10.Children;
|
|
13
|
+
/**
|
|
14
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
15
|
+
*/
|
|
16
|
+
declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core10.Children;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
|