@powerlines/plugin-alloy 0.26.236 → 0.26.238
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 +1 -9
- package/dist/core/components/index.d.cts +1 -5
- package/dist/core/components/index.d.mts +1 -5
- package/dist/core/components/index.mjs +1 -5
- package/dist/core/components/infrastructure-file.cjs +6 -3
- package/dist/core/components/infrastructure-file.d.cts +1 -1
- package/dist/core/components/infrastructure-file.d.cts.map +1 -1
- package/dist/core/components/infrastructure-file.d.mts +1 -1
- package/dist/core/components/infrastructure-file.mjs +5 -2
- package/dist/core/contexts/index.cjs +1 -11
- package/dist/core/contexts/index.d.cts +1 -3
- package/dist/core/contexts/index.d.mts +1 -3
- package/dist/core/contexts/index.mjs +1 -3
- package/dist/core/index.cjs +2 -23
- package/dist/core/index.d.cts +2 -10
- package/dist/core/index.d.mts +2 -10
- package/dist/core/index.mjs +2 -10
- package/dist/helpers/capnp.cjs +2 -2
- package/dist/helpers/capnp.mjs +2 -2
- package/dist/index.cjs +10 -2
- package/dist/index.d.cts +10 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +10 -4
- package/dist/index.mjs +10 -2
- package/dist/render.cjs +67 -48
- package/dist/render.d.cts +33 -2
- package/dist/render.d.cts.map +1 -1
- package/dist/render.d.mts +33 -2
- package/dist/render.mjs +68 -49
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.mts +2 -3
- package/dist/types/plugin.d.cts +7 -4
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +7 -4
- package/dist/typescript/components/builtin-file.cjs +6 -6
- package/dist/typescript/components/builtin-file.d.cts +2 -2
- package/dist/typescript/components/builtin-file.d.cts.map +1 -1
- package/dist/typescript/components/builtin-file.d.mts +2 -2
- package/dist/typescript/components/builtin-file.mjs +2 -2
- package/dist/typescript/components/entry-file.cjs +2 -2
- package/dist/typescript/components/entry-file.d.cts +1 -1
- package/dist/typescript/components/entry-file.d.cts.map +1 -1
- package/dist/typescript/components/entry-file.d.mts +1 -1
- package/dist/typescript/components/entry-file.mjs +1 -1
- package/dist/typescript/components/index.cjs +1 -56
- package/dist/typescript/components/index.d.cts +1 -12
- package/dist/typescript/components/index.d.mts +1 -12
- package/dist/typescript/components/index.mjs +1 -12
- package/dist/typescript/index.cjs +1 -64
- package/dist/typescript/index.d.cts +1 -17
- package/dist/typescript/index.d.mts +1 -17
- package/dist/typescript/index.mjs +1 -17
- package/package.json +18 -639
- package/dist/core/components/output.cjs +0 -40
- package/dist/core/components/output.d.cts +0 -22
- package/dist/core/components/output.d.cts.map +0 -1
- package/dist/core/components/output.d.mts +0 -22
- package/dist/core/components/output.d.mts.map +0 -1
- package/dist/core/components/output.mjs +0 -40
- package/dist/core/components/output.mjs.map +0 -1
- package/dist/core/components/single-line-comment.cjs +0 -22
- package/dist/core/components/single-line-comment.d.cts +0 -19
- package/dist/core/components/single-line-comment.d.cts.map +0 -1
- package/dist/core/components/single-line-comment.d.mts +0 -19
- package/dist/core/components/single-line-comment.d.mts.map +0 -1
- package/dist/core/components/single-line-comment.mjs +0 -22
- package/dist/core/components/single-line-comment.mjs.map +0 -1
- package/dist/core/components/source-file.cjs +0 -64
- package/dist/core/components/source-file.d.cts +0 -30
- package/dist/core/components/source-file.d.cts.map +0 -1
- package/dist/core/components/source-file.d.mts +0 -30
- package/dist/core/components/source-file.d.mts.map +0 -1
- package/dist/core/components/source-file.mjs +0 -62
- package/dist/core/components/source-file.mjs.map +0 -1
- package/dist/core/components/spacing.cjs +0 -19
- package/dist/core/components/spacing.d.cts +0 -19
- package/dist/core/components/spacing.d.cts.map +0 -1
- package/dist/core/components/spacing.d.mts +0 -19
- package/dist/core/components/spacing.d.mts.map +0 -1
- package/dist/core/components/spacing.mjs +0 -19
- package/dist/core/components/spacing.mjs.map +0 -1
- package/dist/core/contexts/meta.cjs +0 -40
- package/dist/core/contexts/meta.d.cts +0 -46
- package/dist/core/contexts/meta.d.cts.map +0 -1
- package/dist/core/contexts/meta.d.mts +0 -46
- package/dist/core/contexts/meta.d.mts.map +0 -1
- package/dist/core/contexts/meta.mjs +0 -37
- package/dist/core/contexts/meta.mjs.map +0 -1
- package/dist/core/contexts/schema.cjs +0 -38
- package/dist/core/contexts/schema.d.cts +0 -26
- package/dist/core/contexts/schema.d.cts.map +0 -1
- package/dist/core/contexts/schema.d.mts +0 -26
- package/dist/core/contexts/schema.d.mts.map +0 -1
- package/dist/core/contexts/schema.mjs +0 -35
- package/dist/core/contexts/schema.mjs.map +0 -1
- package/dist/core/helpers/code.cjs +0 -33
- package/dist/core/helpers/code.d.cts +0 -28
- package/dist/core/helpers/code.d.cts.map +0 -1
- package/dist/core/helpers/code.d.mts +0 -28
- package/dist/core/helpers/code.d.mts.map +0 -1
- package/dist/core/helpers/code.mjs +0 -33
- package/dist/core/helpers/code.mjs.map +0 -1
- package/dist/core/helpers/index.cjs +0 -4
- package/dist/core/helpers/index.d.cts +0 -2
- package/dist/core/helpers/index.d.mts +0 -2
- package/dist/core/helpers/index.mjs +0 -3
- package/dist/hcl/components/block-declaration.cjs +0 -33
- package/dist/hcl/components/block-declaration.d.cts +0 -19
- package/dist/hcl/components/block-declaration.d.cts.map +0 -1
- package/dist/hcl/components/block-declaration.d.mts +0 -19
- package/dist/hcl/components/block-declaration.d.mts.map +0 -1
- package/dist/hcl/components/block-declaration.mjs +0 -33
- package/dist/hcl/components/block-declaration.mjs.map +0 -1
- package/dist/hcl/components/hcl-file.cjs +0 -82
- package/dist/hcl/components/hcl-file.d.cts +0 -25
- package/dist/hcl/components/hcl-file.d.cts.map +0 -1
- package/dist/hcl/components/hcl-file.d.mts +0 -25
- package/dist/hcl/components/hcl-file.d.mts.map +0 -1
- package/dist/hcl/components/hcl-file.mjs +0 -81
- package/dist/hcl/components/hcl-file.mjs.map +0 -1
- package/dist/hcl/components/index.cjs +0 -11
- package/dist/hcl/components/index.d.cts +0 -5
- package/dist/hcl/components/index.d.mts +0 -5
- package/dist/hcl/components/index.mjs +0 -6
- package/dist/hcl/components/packer-file.cjs +0 -28
- package/dist/hcl/components/packer-file.d.cts +0 -16
- package/dist/hcl/components/packer-file.d.cts.map +0 -1
- package/dist/hcl/components/packer-file.d.mts +0 -16
- package/dist/hcl/components/packer-file.d.mts.map +0 -1
- package/dist/hcl/components/packer-file.mjs +0 -28
- package/dist/hcl/components/packer-file.mjs.map +0 -1
- package/dist/hcl/components/terraform-file.cjs +0 -29
- package/dist/hcl/components/terraform-file.d.cts +0 -17
- package/dist/hcl/components/terraform-file.d.cts.map +0 -1
- package/dist/hcl/components/terraform-file.d.mts +0 -17
- package/dist/hcl/components/terraform-file.d.mts.map +0 -1
- package/dist/hcl/components/terraform-file.mjs +0 -29
- package/dist/hcl/components/terraform-file.mjs.map +0 -1
- package/dist/hcl/index.cjs +0 -12
- package/dist/hcl/index.d.cts +0 -6
- package/dist/hcl/index.d.mts +0 -6
- package/dist/hcl/index.mjs +0 -7
- package/dist/markdown/components/alert.cjs +0 -74
- package/dist/markdown/components/alert.d.cts +0 -52
- package/dist/markdown/components/alert.d.cts.map +0 -1
- package/dist/markdown/components/alert.d.mts +0 -52
- package/dist/markdown/components/alert.d.mts.map +0 -1
- package/dist/markdown/components/alert.mjs +0 -69
- package/dist/markdown/components/alert.mjs.map +0 -1
- package/dist/markdown/components/front-matter.cjs +0 -30
- package/dist/markdown/components/front-matter.d.cts +0 -13
- package/dist/markdown/components/front-matter.d.cts.map +0 -1
- package/dist/markdown/components/front-matter.d.mts +0 -13
- package/dist/markdown/components/front-matter.d.mts.map +0 -1
- package/dist/markdown/components/front-matter.mjs +0 -30
- package/dist/markdown/components/front-matter.mjs.map +0 -1
- package/dist/markdown/components/heading.cjs +0 -23
- package/dist/markdown/components/heading.d.cts +0 -17
- package/dist/markdown/components/heading.d.cts.map +0 -1
- package/dist/markdown/components/heading.d.mts +0 -17
- package/dist/markdown/components/heading.d.mts.map +0 -1
- package/dist/markdown/components/heading.mjs +0 -23
- package/dist/markdown/components/heading.mjs.map +0 -1
- package/dist/markdown/components/index.cjs +0 -20
- package/dist/markdown/components/index.d.cts +0 -6
- package/dist/markdown/components/index.d.mts +0 -6
- package/dist/markdown/components/index.mjs +0 -7
- package/dist/markdown/components/markdown-file.cjs +0 -146
- package/dist/markdown/components/markdown-file.d.cts +0 -25
- package/dist/markdown/components/markdown-file.d.cts.map +0 -1
- package/dist/markdown/components/markdown-file.d.mts +0 -25
- package/dist/markdown/components/markdown-file.d.mts.map +0 -1
- package/dist/markdown/components/markdown-file.mjs +0 -145
- package/dist/markdown/components/markdown-file.mjs.map +0 -1
- package/dist/markdown/components/markdown-table.cjs +0 -106
- package/dist/markdown/components/markdown-table.d.cts +0 -37
- package/dist/markdown/components/markdown-table.d.cts.map +0 -1
- package/dist/markdown/components/markdown-table.d.mts +0 -37
- package/dist/markdown/components/markdown-table.d.mts.map +0 -1
- package/dist/markdown/components/markdown-table.mjs +0 -104
- package/dist/markdown/components/markdown-table.mjs.map +0 -1
- package/dist/markdown/contexts/index.cjs +0 -7
- package/dist/markdown/contexts/index.d.cts +0 -2
- package/dist/markdown/contexts/index.d.mts +0 -2
- package/dist/markdown/contexts/index.mjs +0 -3
- package/dist/markdown/contexts/markdown-table.cjs +0 -37
- package/dist/markdown/contexts/markdown-table.d.cts +0 -35
- package/dist/markdown/contexts/markdown-table.d.cts.map +0 -1
- package/dist/markdown/contexts/markdown-table.d.mts +0 -35
- package/dist/markdown/contexts/markdown-table.d.mts.map +0 -1
- package/dist/markdown/contexts/markdown-table.mjs +0 -34
- package/dist/markdown/contexts/markdown-table.mjs.map +0 -1
- package/dist/markdown/index.cjs +0 -27
- package/dist/markdown/index.d.cts +0 -9
- package/dist/markdown/index.d.mts +0 -9
- package/dist/markdown/index.mjs +0 -10
- package/dist/types/components.cjs +0 -9
- package/dist/types/components.d.cts +0 -137
- package/dist/types/components.d.cts.map +0 -1
- package/dist/types/components.d.mts +0 -137
- package/dist/types/components.d.mts.map +0 -1
- package/dist/types/components.mjs +0 -10
- package/dist/types/components.mjs.map +0 -1
- package/dist/typescript/components/class-declaration.cjs +0 -305
- package/dist/typescript/components/class-declaration.d.cts +0 -139
- package/dist/typescript/components/class-declaration.d.cts.map +0 -1
- package/dist/typescript/components/class-declaration.d.mts +0 -139
- package/dist/typescript/components/class-declaration.d.mts.map +0 -1
- package/dist/typescript/components/class-declaration.mjs +0 -300
- package/dist/typescript/components/class-declaration.mjs.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.cjs +0 -25
- package/dist/typescript/components/dynamic-import-statement.d.cts +0 -30
- package/dist/typescript/components/dynamic-import-statement.d.cts.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.d.mts +0 -30
- package/dist/typescript/components/dynamic-import-statement.d.mts.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.mjs +0 -25
- package/dist/typescript/components/dynamic-import-statement.mjs.map +0 -1
- package/dist/typescript/components/interface-declaration.cjs +0 -257
- package/dist/typescript/components/interface-declaration.d.cts +0 -78
- package/dist/typescript/components/interface-declaration.d.cts.map +0 -1
- package/dist/typescript/components/interface-declaration.d.mts +0 -78
- package/dist/typescript/components/interface-declaration.d.mts.map +0 -1
- package/dist/typescript/components/interface-declaration.mjs +0 -254
- package/dist/typescript/components/interface-declaration.mjs.map +0 -1
- package/dist/typescript/components/object-declaration.cjs +0 -131
- package/dist/typescript/components/object-declaration.d.cts +0 -24
- package/dist/typescript/components/object-declaration.d.cts.map +0 -1
- package/dist/typescript/components/object-declaration.d.mts +0 -24
- package/dist/typescript/components/object-declaration.d.mts.map +0 -1
- package/dist/typescript/components/object-declaration.mjs +0 -130
- package/dist/typescript/components/object-declaration.mjs.map +0 -1
- package/dist/typescript/components/property-name.cjs +0 -31
- package/dist/typescript/components/property-name.d.cts +0 -21
- package/dist/typescript/components/property-name.d.cts.map +0 -1
- package/dist/typescript/components/property-name.d.mts +0 -21
- package/dist/typescript/components/property-name.d.mts.map +0 -1
- package/dist/typescript/components/property-name.mjs +0 -31
- package/dist/typescript/components/property-name.mjs.map +0 -1
- package/dist/typescript/components/record-expression.cjs +0 -12
- package/dist/typescript/components/record-expression.d.cts +0 -9
- package/dist/typescript/components/record-expression.d.cts.map +0 -1
- package/dist/typescript/components/record-expression.d.mts +0 -9
- package/dist/typescript/components/record-expression.d.mts.map +0 -1
- package/dist/typescript/components/record-expression.mjs +0 -12
- package/dist/typescript/components/record-expression.mjs.map +0 -1
- package/dist/typescript/components/tsdoc-schema.cjs +0 -166
- package/dist/typescript/components/tsdoc-schema.d.cts +0 -21
- package/dist/typescript/components/tsdoc-schema.d.cts.map +0 -1
- package/dist/typescript/components/tsdoc-schema.d.mts +0 -21
- package/dist/typescript/components/tsdoc-schema.d.mts.map +0 -1
- package/dist/typescript/components/tsdoc-schema.mjs +0 -165
- package/dist/typescript/components/tsdoc-schema.mjs.map +0 -1
- package/dist/typescript/components/tsdoc.cjs +0 -486
- package/dist/typescript/components/tsdoc.d.cts +0 -163
- package/dist/typescript/components/tsdoc.d.cts.map +0 -1
- package/dist/typescript/components/tsdoc.d.mts +0 -163
- package/dist/typescript/components/tsdoc.d.mts.map +0 -1
- package/dist/typescript/components/tsdoc.mjs +0 -465
- package/dist/typescript/components/tsdoc.mjs.map +0 -1
- package/dist/typescript/components/type-declaration.cjs +0 -38
- package/dist/typescript/components/type-declaration.d.cts +0 -15
- package/dist/typescript/components/type-declaration.d.cts.map +0 -1
- package/dist/typescript/components/type-declaration.d.mts +0 -15
- package/dist/typescript/components/type-declaration.d.mts.map +0 -1
- package/dist/typescript/components/type-declaration.mjs +0 -38
- package/dist/typescript/components/type-declaration.mjs.map +0 -1
- package/dist/typescript/components/type-parameters.cjs +0 -82
- package/dist/typescript/components/type-parameters.d.cts +0 -22
- package/dist/typescript/components/type-parameters.d.cts.map +0 -1
- package/dist/typescript/components/type-parameters.d.mts +0 -22
- package/dist/typescript/components/type-parameters.d.mts.map +0 -1
- package/dist/typescript/components/type-parameters.mjs +0 -82
- package/dist/typescript/components/type-parameters.mjs.map +0 -1
- package/dist/typescript/components/typescript-file.cjs +0 -231
- package/dist/typescript/components/typescript-file.d.cts +0 -46
- package/dist/typescript/components/typescript-file.d.cts.map +0 -1
- package/dist/typescript/components/typescript-file.d.mts +0 -46
- package/dist/typescript/components/typescript-file.d.mts.map +0 -1
- package/dist/typescript/components/typescript-file.mjs +0 -229
- package/dist/typescript/components/typescript-file.mjs.map +0 -1
- package/dist/typescript/contexts/index.cjs +0 -4
- package/dist/typescript/contexts/index.d.cts +0 -2
- package/dist/typescript/contexts/index.d.mts +0 -2
- package/dist/typescript/contexts/index.mjs +0 -3
- package/dist/typescript/contexts/lexical-scope.cjs +0 -25
- package/dist/typescript/contexts/lexical-scope.d.cts +0 -12
- package/dist/typescript/contexts/lexical-scope.d.cts.map +0 -1
- package/dist/typescript/contexts/lexical-scope.d.mts +0 -12
- package/dist/typescript/contexts/lexical-scope.d.mts.map +0 -1
- package/dist/typescript/contexts/lexical-scope.mjs +0 -25
- package/dist/typescript/contexts/lexical-scope.mjs.map +0 -1
- package/dist/typescript/contexts/member-scope.cjs +0 -23
- package/dist/typescript/contexts/member-scope.d.cts +0 -18
- package/dist/typescript/contexts/member-scope.d.cts.map +0 -1
- package/dist/typescript/contexts/member-scope.d.mts +0 -18
- package/dist/typescript/contexts/member-scope.d.mts.map +0 -1
- package/dist/typescript/contexts/member-scope.mjs +0 -23
- package/dist/typescript/contexts/member-scope.mjs.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.cjs +0 -25
- package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -13
- package/dist/typescript/helpers/get-call-signature-props.d.cts.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -13
- package/dist/typescript/helpers/get-call-signature-props.d.mts.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.mjs +0 -25
- package/dist/typescript/helpers/get-call-signature-props.mjs.map +0 -1
- package/dist/typescript/helpers/index.cjs +0 -6
- package/dist/typescript/helpers/index.d.cts +0 -3
- package/dist/typescript/helpers/index.d.mts +0 -3
- package/dist/typescript/helpers/index.mjs +0 -4
- package/dist/typescript/helpers/utilities.cjs +0 -15
- package/dist/typescript/helpers/utilities.d.cts +0 -11
- package/dist/typescript/helpers/utilities.d.cts.map +0 -1
- package/dist/typescript/helpers/utilities.d.mts +0 -11
- package/dist/typescript/helpers/utilities.d.mts.map +0 -1
- package/dist/typescript/helpers/utilities.mjs +0 -14
- package/dist/typescript/helpers/utilities.mjs.map +0 -1
- package/dist/yaml/components/index.cjs +0 -5
- package/dist/yaml/components/index.d.cts +0 -2
- package/dist/yaml/components/index.d.mts +0 -2
- package/dist/yaml/components/index.mjs +0 -3
- package/dist/yaml/components/yaml-file.cjs +0 -148
- package/dist/yaml/components/yaml-file.d.cts +0 -31
- package/dist/yaml/components/yaml-file.d.cts.map +0 -1
- package/dist/yaml/components/yaml-file.d.mts +0 -31
- package/dist/yaml/components/yaml-file.d.mts.map +0 -1
- package/dist/yaml/components/yaml-file.mjs +0 -147
- package/dist/yaml/components/yaml-file.mjs.map +0 -1
- package/dist/yaml/index.cjs +0 -6
- package/dist/yaml/index.d.cts +0 -3
- package/dist/yaml/index.d.mts +0 -3
- package/dist/yaml/index.mjs +0 -4
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { isValidJSIdentifier } from "../helpers/utilities.mjs";
|
|
2
|
-
import { memo } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { MemberDeclarationContext, memo as memo$1, useContext } from "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region src/typescript/components/property-name.tsx
|
|
6
|
-
/**
|
|
7
|
-
* A TypeScript property name for an interface, class, or object member.
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* If the name is not a valid JavaScript identifier, it will be quoted. If a `name` prop is provided, it will be used as the property name. Otherwise, the name will be taken from the {@link (MemberDeclarationContext:variable)}.
|
|
11
|
-
*/
|
|
12
|
-
function PropertyName(props) {
|
|
13
|
-
if (props.name) return memo$1(() => {
|
|
14
|
-
if (props.private) return `#${props.name}`;
|
|
15
|
-
return quoteIfNeeded(props.name);
|
|
16
|
-
});
|
|
17
|
-
else {
|
|
18
|
-
const declSymbol = useContext(MemberDeclarationContext);
|
|
19
|
-
if (!declSymbol) return "(no member declaration context)";
|
|
20
|
-
if (declSymbol.isPrivateMemberSymbol) return ["#", memo(() => declSymbol.name)];
|
|
21
|
-
else return [memo(() => quoteIfNeeded(declSymbol.name))];
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function quoteIfNeeded(name) {
|
|
25
|
-
if (isValidJSIdentifier(name)) return name;
|
|
26
|
-
else return `"${name.replace(/"/g, "\\\"")}"`;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export { PropertyName };
|
|
31
|
-
//# sourceMappingURL=property-name.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"property-name.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
//#region src/typescript/components/record-expression.d.ts
|
|
3
|
-
interface RecordExpressionProps {
|
|
4
|
-
elementType: Children;
|
|
5
|
-
}
|
|
6
|
-
declare function RecordExpression({ elementType }: RecordExpressionProps): Children;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { RecordExpression, RecordExpressionProps };
|
|
9
|
-
//# sourceMappingURL=record-expression.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record-expression.d.cts","names":[],"sources":["../../../src/typescript/components/record-expression.tsx"],"mappings":";;UAoBiB;EACf,aAAa;;iBAGC,mBAAmB,eAAe,wBAAqB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
//#region src/typescript/components/record-expression.d.ts
|
|
3
|
-
interface RecordExpressionProps {
|
|
4
|
-
elementType: Children;
|
|
5
|
-
}
|
|
6
|
-
declare function RecordExpression({ elementType }: RecordExpressionProps): Children;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { RecordExpression, RecordExpressionProps };
|
|
9
|
-
//# sourceMappingURL=record-expression.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record-expression.d.mts","names":[],"sources":["../../../src/typescript/components/record-expression.tsx"],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { code } from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/typescript/components/record-expression.tsx
|
|
4
|
-
function RecordExpression({ elementType }) {
|
|
5
|
-
return code`
|
|
6
|
-
Record<string, ${elementType}>
|
|
7
|
-
`;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { RecordExpression };
|
|
12
|
-
//# sourceMappingURL=record-expression.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record-expression.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_core_components_spacing = require('../../core/components/spacing.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 _powerlines_schema = require("@powerlines/schema");
|
|
8
|
-
let _stryke_type_checks = require("@stryke/type-checks");
|
|
9
|
-
let _stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
10
|
-
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
11
|
-
|
|
12
|
-
//#region src/typescript/components/tsdoc-schema.tsx
|
|
13
|
-
/**
|
|
14
|
-
* Generates a TSDoc documentation block for the given reflection class. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about properties or methods of a class.
|
|
15
|
-
*/
|
|
16
|
-
function TSDocObjectSchema(props) {
|
|
17
|
-
const [{ children, heading, schema }, rest] = (0, _alloy_js_core.splitProps)(props, [
|
|
18
|
-
"heading",
|
|
19
|
-
"children",
|
|
20
|
-
"schema"
|
|
21
|
-
]);
|
|
22
|
-
if (!(0, _stryke_type_checks.isSetObject)(schema)) return null;
|
|
23
|
-
const title = (0, _alloy_js_core.computed)(() => schema?.title || (0, _stryke_string_format_title_case.titleCase)(schema?.name));
|
|
24
|
-
const computedHeading = (0, _alloy_js_core.computed)(() => heading || schema?.description || title.value);
|
|
25
|
-
const alias = (0, _alloy_js_core.computed)(() => schema?.alias);
|
|
26
|
-
const tags = (0, _alloy_js_core.computed)(() => schema?.tags);
|
|
27
|
-
const readOnly = (0, _alloy_js_core.computed)(() => schema?.readOnly);
|
|
28
|
-
const internal = (0, _alloy_js_core.computed)(() => schema?.internal);
|
|
29
|
-
const runtime = (0, _alloy_js_core.computed)(() => schema?.runtime);
|
|
30
|
-
const ignore = (0, _alloy_js_core.computed)(() => schema?.ignore);
|
|
31
|
-
const hidden = (0, _alloy_js_core.computed)(() => schema?.hidden);
|
|
32
|
-
if (!computedHeading.value || (0, _stryke_type_checks_is_set_string.isSetString)(computedHeading.value) && computedHeading.value.trim() === "") return null;
|
|
33
|
-
const hasAttributes = (0, _alloy_js_core.computed)(() => (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)(tags.value) && tags.value.length > 0 || !(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)(runtime.value) || !(0, _stryke_type_checks_is_undefined.isUndefined)(ignore.value) || !(0, _stryke_type_checks_is_undefined.isUndefined)(hidden.value));
|
|
34
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
35
|
-
get heading() {
|
|
36
|
-
return (0, _alloy_js_core_jsx_runtime.memo)(() => !!(0, _stryke_type_checks_is_set_string.isSetString)(computedHeading.value))() ? computedHeading.value.trim() : computedHeading.value;
|
|
37
|
-
},
|
|
38
|
-
get children() {
|
|
39
|
-
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
40
|
-
get when() {
|
|
41
|
-
return hasAttributes.value;
|
|
42
|
-
},
|
|
43
|
-
get children() {
|
|
44
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
|
|
45
|
-
get type() {
|
|
46
|
-
return (0, _powerlines_schema.getPrimarySchemaType)(schema);
|
|
47
|
-
},
|
|
48
|
-
get title() {
|
|
49
|
-
return title.value;
|
|
50
|
-
},
|
|
51
|
-
get alias() {
|
|
52
|
-
return alias.value;
|
|
53
|
-
},
|
|
54
|
-
get tags() {
|
|
55
|
-
return tags.value;
|
|
56
|
-
},
|
|
57
|
-
get readOnly() {
|
|
58
|
-
return Boolean(readOnly.value);
|
|
59
|
-
},
|
|
60
|
-
get internal() {
|
|
61
|
-
return Boolean(internal.value);
|
|
62
|
-
},
|
|
63
|
-
get runtime() {
|
|
64
|
-
return Boolean(runtime.value);
|
|
65
|
-
},
|
|
66
|
-
get ignore() {
|
|
67
|
-
return Boolean(ignore.value);
|
|
68
|
-
},
|
|
69
|
-
get hidden() {
|
|
70
|
-
return Boolean(hidden.value);
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
75
|
-
get when() {
|
|
76
|
-
return (0, _alloy_js_core_jsx_runtime.memo)(() => !!!(0, _stryke_type_checks_is_undefined.isUndefined)(children))() && (0, _alloy_js_core.childrenArray)(() => children).filter(Boolean).length > 0;
|
|
77
|
-
},
|
|
78
|
-
get children() {
|
|
79
|
-
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
80
|
-
get when() {
|
|
81
|
-
return hasAttributes.value;
|
|
82
|
-
},
|
|
83
|
-
get children() {
|
|
84
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_components_spacing.Spacing, {});
|
|
85
|
-
}
|
|
86
|
-
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.List, { get children() {
|
|
87
|
-
return (0, _alloy_js_core.childrenArray)(() => children);
|
|
88
|
-
} })];
|
|
89
|
-
}
|
|
90
|
-
})];
|
|
91
|
-
}
|
|
92
|
-
}));
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.
|
|
96
|
-
*/
|
|
97
|
-
function TSDocSchemaProperty(props) {
|
|
98
|
-
const [{ children, schema, defaultValue }, rest] = (0, _alloy_js_core.splitProps)(props, [
|
|
99
|
-
"children",
|
|
100
|
-
"schema",
|
|
101
|
-
"defaultValue"
|
|
102
|
-
]);
|
|
103
|
-
if (!(0, _stryke_type_checks.isSetObject)(schema)) return null;
|
|
104
|
-
const hasAttributes = (0, _alloy_js_core.computed)(() => (0, _stryke_type_checks_is_set_string.isSetString)(schema?.title) || !(0, _stryke_type_checks_is_undefined.isUndefined)(schema?.alias) && schema?.alias.length > 0 || !(0, _stryke_type_checks_is_undefined.isUndefined)(schema?.tags) && schema?.tags.length > 0 || !(0, _stryke_type_checks_is_undefined.isUndefined)(schema?.readOnly) || !(0, _stryke_type_checks_is_undefined.isUndefined)(schema?.internal) || !(0, _stryke_type_checks_is_undefined.isUndefined)(schema?.runtime) || !(0, _stryke_type_checks_is_undefined.isUndefined)(schema?.ignore) || !(0, _stryke_type_checks_is_undefined.isUndefined)(schema?.hidden) || !(0, _stryke_type_checks_is_undefined.isUndefined)(defaultValue));
|
|
105
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, _alloy_js_core_jsx_runtime.mergeProps)({ get heading() {
|
|
106
|
-
return schema?.description;
|
|
107
|
-
} }, rest, { get children() {
|
|
108
|
-
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
109
|
-
get when() {
|
|
110
|
-
return hasAttributes.value;
|
|
111
|
-
},
|
|
112
|
-
get children() {
|
|
113
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
|
|
114
|
-
get type() {
|
|
115
|
-
return (0, _powerlines_schema.getPrimarySchemaType)(schema);
|
|
116
|
-
},
|
|
117
|
-
get title() {
|
|
118
|
-
return schema?.title;
|
|
119
|
-
},
|
|
120
|
-
get alias() {
|
|
121
|
-
return schema?.alias;
|
|
122
|
-
},
|
|
123
|
-
get tags() {
|
|
124
|
-
return schema?.tags;
|
|
125
|
-
},
|
|
126
|
-
get readOnly() {
|
|
127
|
-
return schema?.readOnly;
|
|
128
|
-
},
|
|
129
|
-
get internal() {
|
|
130
|
-
return schema?.internal;
|
|
131
|
-
},
|
|
132
|
-
get runtime() {
|
|
133
|
-
return schema?.runtime;
|
|
134
|
-
},
|
|
135
|
-
get ignore() {
|
|
136
|
-
return schema?.ignore;
|
|
137
|
-
},
|
|
138
|
-
get hidden() {
|
|
139
|
-
return schema?.hidden;
|
|
140
|
-
},
|
|
141
|
-
"default": defaultValue
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
145
|
-
get when() {
|
|
146
|
-
return (0, _alloy_js_core_jsx_runtime.memo)(() => !!!(0, _stryke_type_checks_is_undefined.isUndefined)(children))() && (0, _alloy_js_core.childrenArray)(() => children).filter(Boolean).length > 0;
|
|
147
|
-
},
|
|
148
|
-
get children() {
|
|
149
|
-
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
150
|
-
get when() {
|
|
151
|
-
return hasAttributes.value;
|
|
152
|
-
},
|
|
153
|
-
get children() {
|
|
154
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_components_spacing.Spacing, {});
|
|
155
|
-
}
|
|
156
|
-
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.List, { get children() {
|
|
157
|
-
return (0, _alloy_js_core.childrenArray)(() => children);
|
|
158
|
-
} })];
|
|
159
|
-
}
|
|
160
|
-
})];
|
|
161
|
-
} }));
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
//#endregion
|
|
165
|
-
exports.TSDocObjectSchema = TSDocObjectSchema;
|
|
166
|
-
exports.TSDocSchemaProperty = TSDocSchemaProperty;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TSDocProps } from "./tsdoc.cjs";
|
|
2
|
-
import { JsonSchema } from "@powerlines/schema";
|
|
3
|
-
//#region src/typescript/components/tsdoc-schema.d.ts
|
|
4
|
-
interface TSDocObjectSchemaProps extends TSDocProps {
|
|
5
|
-
schema: JsonSchema;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Generates a TSDoc documentation block for the given reflection class. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about properties or methods of a class.
|
|
9
|
-
*/
|
|
10
|
-
declare function TSDocObjectSchema(props: TSDocObjectSchemaProps): import("@alloy-js/core").Children;
|
|
11
|
-
interface TSDocSchemaPropertyProps extends TSDocProps {
|
|
12
|
-
schema: JsonSchema;
|
|
13
|
-
defaultValue?: unknown;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.
|
|
17
|
-
*/
|
|
18
|
-
declare function TSDocSchemaProperty(props: TSDocSchemaPropertyProps): import("@alloy-js/core").Children;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { TSDocObjectSchema, TSDocObjectSchemaProps, TSDocSchemaProperty, TSDocSchemaPropertyProps };
|
|
21
|
-
//# sourceMappingURL=tsdoc-schema.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tsdoc-schema.d.cts","names":[],"sources":["../../../src/typescript/components/tsdoc-schema.tsx"],"mappings":";;;UAiCiB,+BAA+B;EAC9C,QAAQ;;;;;iBAMM,kBAAkB,OAAO,kDAAsB;UA8E9C,iCAAiC;EAChD,QAAQ;EACR;;;;;iBAMc,oBAAoB,OAAO,oDAAwB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TSDocProps } from "./tsdoc.mjs";
|
|
2
|
-
import { JsonSchema } from "@powerlines/schema";
|
|
3
|
-
//#region src/typescript/components/tsdoc-schema.d.ts
|
|
4
|
-
interface TSDocObjectSchemaProps extends TSDocProps {
|
|
5
|
-
schema: JsonSchema;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Generates a TSDoc documentation block for the given reflection class. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about properties or methods of a class.
|
|
9
|
-
*/
|
|
10
|
-
declare function TSDocObjectSchema(props: TSDocObjectSchemaProps): import("@alloy-js/core").Children;
|
|
11
|
-
interface TSDocSchemaPropertyProps extends TSDocProps {
|
|
12
|
-
schema: JsonSchema;
|
|
13
|
-
defaultValue?: unknown;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.
|
|
17
|
-
*/
|
|
18
|
-
declare function TSDocSchemaProperty(props: TSDocSchemaPropertyProps): import("@alloy-js/core").Children;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { TSDocObjectSchema, TSDocObjectSchemaProps, TSDocSchemaProperty, TSDocSchemaPropertyProps };
|
|
21
|
-
//# sourceMappingURL=tsdoc-schema.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tsdoc-schema.d.mts","names":[],"sources":["../../../src/typescript/components/tsdoc-schema.tsx"],"mappings":""}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { Spacing } from "../../core/components/spacing.mjs";
|
|
2
|
-
import { TSDoc, TSDocAttributesTags } from "./tsdoc.mjs";
|
|
3
|
-
import { createComponent, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
4
|
-
import { List, Show, childrenArray, computed, splitProps } from "@alloy-js/core";
|
|
5
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
6
|
-
import { getPrimarySchemaType } from "@powerlines/schema";
|
|
7
|
-
import { isSetObject } from "@stryke/type-checks";
|
|
8
|
-
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
9
|
-
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
10
|
-
|
|
11
|
-
//#region src/typescript/components/tsdoc-schema.tsx
|
|
12
|
-
/**
|
|
13
|
-
* Generates a TSDoc documentation block for the given reflection class. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about properties or methods of a class.
|
|
14
|
-
*/
|
|
15
|
-
function TSDocObjectSchema(props) {
|
|
16
|
-
const [{ children, heading, schema }, rest] = splitProps(props, [
|
|
17
|
-
"heading",
|
|
18
|
-
"children",
|
|
19
|
-
"schema"
|
|
20
|
-
]);
|
|
21
|
-
if (!isSetObject(schema)) return null;
|
|
22
|
-
const title = computed(() => schema?.title || titleCase(schema?.name));
|
|
23
|
-
const computedHeading = computed(() => heading || schema?.description || title.value);
|
|
24
|
-
const alias = computed(() => schema?.alias);
|
|
25
|
-
const tags = computed(() => schema?.tags);
|
|
26
|
-
const readOnly = computed(() => schema?.readOnly);
|
|
27
|
-
const internal = computed(() => schema?.internal);
|
|
28
|
-
const runtime = computed(() => schema?.runtime);
|
|
29
|
-
const ignore = computed(() => schema?.ignore);
|
|
30
|
-
const hidden = computed(() => schema?.hidden);
|
|
31
|
-
if (!computedHeading.value || isSetString(computedHeading.value) && computedHeading.value.trim() === "") return null;
|
|
32
|
-
const hasAttributes = computed(() => isSetString(title.value) || !isUndefined(alias.value) && alias.value.length > 0 || !isUndefined(tags.value) && tags.value.length > 0 || !isUndefined(readOnly.value) || !isUndefined(internal.value) || !isUndefined(runtime.value) || !isUndefined(ignore.value) || !isUndefined(hidden.value));
|
|
33
|
-
return createComponent(TSDoc, mergeProps(rest, {
|
|
34
|
-
get heading() {
|
|
35
|
-
return memo(() => !!isSetString(computedHeading.value))() ? computedHeading.value.trim() : computedHeading.value;
|
|
36
|
-
},
|
|
37
|
-
get children() {
|
|
38
|
-
return [createComponent(Show, {
|
|
39
|
-
get when() {
|
|
40
|
-
return hasAttributes.value;
|
|
41
|
-
},
|
|
42
|
-
get children() {
|
|
43
|
-
return createComponent(TSDocAttributesTags, {
|
|
44
|
-
get type() {
|
|
45
|
-
return getPrimarySchemaType(schema);
|
|
46
|
-
},
|
|
47
|
-
get title() {
|
|
48
|
-
return title.value;
|
|
49
|
-
},
|
|
50
|
-
get alias() {
|
|
51
|
-
return alias.value;
|
|
52
|
-
},
|
|
53
|
-
get tags() {
|
|
54
|
-
return tags.value;
|
|
55
|
-
},
|
|
56
|
-
get readOnly() {
|
|
57
|
-
return Boolean(readOnly.value);
|
|
58
|
-
},
|
|
59
|
-
get internal() {
|
|
60
|
-
return Boolean(internal.value);
|
|
61
|
-
},
|
|
62
|
-
get runtime() {
|
|
63
|
-
return Boolean(runtime.value);
|
|
64
|
-
},
|
|
65
|
-
get ignore() {
|
|
66
|
-
return Boolean(ignore.value);
|
|
67
|
-
},
|
|
68
|
-
get hidden() {
|
|
69
|
-
return Boolean(hidden.value);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}), createComponent(Show, {
|
|
74
|
-
get when() {
|
|
75
|
-
return memo(() => !!!isUndefined(children))() && childrenArray(() => children).filter(Boolean).length > 0;
|
|
76
|
-
},
|
|
77
|
-
get children() {
|
|
78
|
-
return [createComponent(Show, {
|
|
79
|
-
get when() {
|
|
80
|
-
return hasAttributes.value;
|
|
81
|
-
},
|
|
82
|
-
get children() {
|
|
83
|
-
return createComponent(Spacing, {});
|
|
84
|
-
}
|
|
85
|
-
}), createComponent(List, { get children() {
|
|
86
|
-
return childrenArray(() => children);
|
|
87
|
-
} })];
|
|
88
|
-
}
|
|
89
|
-
})];
|
|
90
|
-
}
|
|
91
|
-
}));
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.
|
|
95
|
-
*/
|
|
96
|
-
function TSDocSchemaProperty(props) {
|
|
97
|
-
const [{ children, schema, defaultValue }, rest] = splitProps(props, [
|
|
98
|
-
"children",
|
|
99
|
-
"schema",
|
|
100
|
-
"defaultValue"
|
|
101
|
-
]);
|
|
102
|
-
if (!isSetObject(schema)) return null;
|
|
103
|
-
const hasAttributes = computed(() => isSetString(schema?.title) || !isUndefined(schema?.alias) && schema?.alias.length > 0 || !isUndefined(schema?.tags) && schema?.tags.length > 0 || !isUndefined(schema?.readOnly) || !isUndefined(schema?.internal) || !isUndefined(schema?.runtime) || !isUndefined(schema?.ignore) || !isUndefined(schema?.hidden) || !isUndefined(defaultValue));
|
|
104
|
-
return createComponent(TSDoc, mergeProps({ get heading() {
|
|
105
|
-
return schema?.description;
|
|
106
|
-
} }, rest, { get children() {
|
|
107
|
-
return [createComponent(Show, {
|
|
108
|
-
get when() {
|
|
109
|
-
return hasAttributes.value;
|
|
110
|
-
},
|
|
111
|
-
get children() {
|
|
112
|
-
return createComponent(TSDocAttributesTags, {
|
|
113
|
-
get type() {
|
|
114
|
-
return getPrimarySchemaType(schema);
|
|
115
|
-
},
|
|
116
|
-
get title() {
|
|
117
|
-
return schema?.title;
|
|
118
|
-
},
|
|
119
|
-
get alias() {
|
|
120
|
-
return schema?.alias;
|
|
121
|
-
},
|
|
122
|
-
get tags() {
|
|
123
|
-
return schema?.tags;
|
|
124
|
-
},
|
|
125
|
-
get readOnly() {
|
|
126
|
-
return schema?.readOnly;
|
|
127
|
-
},
|
|
128
|
-
get internal() {
|
|
129
|
-
return schema?.internal;
|
|
130
|
-
},
|
|
131
|
-
get runtime() {
|
|
132
|
-
return schema?.runtime;
|
|
133
|
-
},
|
|
134
|
-
get ignore() {
|
|
135
|
-
return schema?.ignore;
|
|
136
|
-
},
|
|
137
|
-
get hidden() {
|
|
138
|
-
return schema?.hidden;
|
|
139
|
-
},
|
|
140
|
-
"default": defaultValue
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
}), createComponent(Show, {
|
|
144
|
-
get when() {
|
|
145
|
-
return memo(() => !!!isUndefined(children))() && childrenArray(() => children).filter(Boolean).length > 0;
|
|
146
|
-
},
|
|
147
|
-
get children() {
|
|
148
|
-
return [createComponent(Show, {
|
|
149
|
-
get when() {
|
|
150
|
-
return hasAttributes.value;
|
|
151
|
-
},
|
|
152
|
-
get children() {
|
|
153
|
-
return createComponent(Spacing, {});
|
|
154
|
-
}
|
|
155
|
-
}), createComponent(List, { get children() {
|
|
156
|
-
return childrenArray(() => children);
|
|
157
|
-
} })];
|
|
158
|
-
}
|
|
159
|
-
})];
|
|
160
|
-
} }));
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
//#endregion
|
|
164
|
-
export { TSDocObjectSchema, TSDocSchemaProperty };
|
|
165
|
-
//# sourceMappingURL=tsdoc-schema.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tsdoc-schema.mjs","names":[],"sources":[],"mappings":""}
|