devextreme-internal-tools 19.2.15 → 20.0.0
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/Readme.md +9 -5
- package/bin/DevExtreme.BaseGenerator.deps.json +1135 -0
- package/bin/DevExtreme.BaseGenerator.dll +0 -0
- package/bin/DevExtreme.Declarations.Analyzers.deps.json +188 -0
- package/bin/DevExtreme.Declarations.Analyzers.dll +0 -0
- package/bin/DevExtreme.Declarations.Discoverer +0 -0
- package/bin/DevExtreme.Declarations.Discoverer.deps.json +1152 -295
- package/bin/DevExtreme.Declarations.Discoverer.dll +0 -0
- package/bin/DevExtreme.Declarations.Discoverer.runtimeconfig.json +12 -8
- package/bin/DevExtreme.Declarations.IntegrityValidator +0 -0
- package/bin/DevExtreme.Declarations.IntegrityValidator.deps.json +1169 -280
- package/bin/DevExtreme.Declarations.IntegrityValidator.dll +0 -0
- package/bin/DevExtreme.Declarations.IntegrityValidator.runtimeconfig.json +12 -8
- package/bin/DevExtreme.Declarations.deps.json +469 -139
- package/bin/DevExtreme.Declarations.dll +0 -0
- package/bin/DevExtreme.Descriptions.Injector +0 -0
- package/bin/DevExtreme.Descriptions.Injector.deps.json +293 -0
- package/bin/DevExtreme.Descriptions.Injector.dll +0 -0
- package/bin/DevExtreme.Descriptions.Injector.runtimeconfig.json +13 -0
- package/bin/DevExtreme.Infrastructure.deps.json +275 -110
- package/bin/DevExtreme.Infrastructure.dll +0 -0
- package/bin/DevExtreme.IntegrationDataGenerator +0 -0
- package/bin/DevExtreme.IntegrationDataGenerator.deps.json +1173 -0
- package/bin/DevExtreme.IntegrationDataGenerator.dll +0 -0
- package/bin/DevExtreme.IntegrationDataGenerator.runtimeconfig.json +13 -0
- package/bin/DevExtreme.NgSmdGenerator +0 -0
- package/bin/DevExtreme.NgSmdGenerator.deps.json +1192 -0
- package/bin/DevExtreme.NgSmdGenerator.dll +0 -0
- package/bin/DevExtreme.NgSmdGenerator.runtimeconfig.json +13 -0
- package/bin/DevExtreme.SmdCommon.deps.json +1153 -0
- package/bin/DevExtreme.SmdCommon.dll +0 -0
- package/bin/DevExtreme.StrongMetaDataGenerator +0 -0
- package/bin/DevExtreme.StrongMetaDataGenerator.deps.json +1173 -0
- package/bin/DevExtreme.StrongMetaDataGenerator.dll +0 -0
- package/bin/DevExtreme.StrongMetaDataGenerator.runtimeconfig.json +13 -0
- package/bin/DevExtreme.Topics.ExtraFilesGenerator +0 -0
- package/bin/DevExtreme.Topics.ExtraFilesGenerator.deps.json +1278 -0
- package/bin/DevExtreme.Topics.ExtraFilesGenerator.dll +0 -0
- package/bin/DevExtreme.Topics.ExtraFilesGenerator.runtimeconfig.json +13 -0
- package/bin/DevExtreme.Topics.Generator +0 -0
- package/bin/DevExtreme.Topics.Generator.deps.json +1170 -0
- package/bin/DevExtreme.Topics.Generator.dll +0 -0
- package/bin/DevExtreme.Topics.Generator.runtimeconfig.json +13 -0
- package/bin/DevExtreme.Topics.ModulesGuideValidator +0 -0
- package/bin/DevExtreme.Topics.ModulesGuideValidator.deps.json +293 -0
- package/bin/DevExtreme.Topics.ModulesGuideValidator.dll +0 -0
- package/bin/DevExtreme.Topics.ModulesGuideValidator.runtimeconfig.json +13 -0
- package/bin/DevExtreme.Topics.Validation +0 -0
- package/bin/DevExtreme.Topics.Validation.deps.json +1188 -0
- package/bin/DevExtreme.Topics.Validation.dll +0 -0
- package/bin/DevExtreme.Topics.Validation.runtimeconfig.json +13 -0
- package/bin/DevExtreme.Topics.deps.json +292 -0
- package/bin/DevExtreme.Topics.dll +0 -0
- package/bin/DevExtreme.WebSite.CompactDocsCreator +0 -0
- package/bin/DevExtreme.WebSite.CompactDocsCreator.deps.json +1258 -0
- package/bin/DevExtreme.WebSite.CompactDocsCreator.dll +0 -0
- package/bin/DevExtreme.WebSite.CompactDocsCreator.runtimeconfig.json +13 -0
- package/bin/DevExtreme.WebSite.ContentMapCreator +0 -0
- package/bin/DevExtreme.WebSite.ContentMapCreator.deps.json +1240 -0
- package/bin/DevExtreme.WebSite.ContentMapCreator.dll +0 -0
- package/bin/DevExtreme.WebSite.ContentMapCreator.runtimeconfig.json +13 -0
- package/bin/DevExtreme.WebSite.ContentMaps.deps.json +1224 -0
- package/bin/DevExtreme.WebSite.ContentMaps.dll +0 -0
- package/bin/DevExtreme.WebSite.LinksConverter +0 -0
- package/bin/DevExtreme.WebSite.LinksConverter.deps.json +308 -259
- package/bin/DevExtreme.WebSite.LinksConverter.dll +0 -0
- package/bin/DevExtreme.WebSite.LinksConverter.runtimeconfig.json +12 -8
- package/bin/DevExtreme.WebSite.SyntaxDataGenerator +0 -0
- package/bin/DevExtreme.WebSite.SyntaxDataGenerator.deps.json +1191 -0
- package/bin/DevExtreme.WebSite.SyntaxDataGenerator.dll +0 -0
- package/bin/DevExtreme.WebSite.SyntaxDataGenerator.runtimeconfig.json +13 -0
- package/bin/JetBrains.Annotations.dll +0 -0
- package/bin/Microsoft.CodeAnalysis.CSharp.dll +0 -0
- package/bin/Microsoft.CodeAnalysis.dll +0 -0
- package/bin/Microsoft.Extensions.Configuration.Abstractions.dll +0 -0
- package/bin/Microsoft.Extensions.Configuration.Binder.dll +0 -0
- package/bin/Microsoft.Extensions.Configuration.CommandLine.dll +0 -0
- package/bin/Microsoft.Extensions.Configuration.EnvironmentVariables.dll +0 -0
- package/bin/Microsoft.Extensions.Configuration.FileExtensions.dll +0 -0
- package/bin/Microsoft.Extensions.Configuration.Json.dll +0 -0
- package/bin/Microsoft.Extensions.Configuration.UserSecrets.dll +0 -0
- package/bin/Microsoft.Extensions.Configuration.dll +0 -0
- package/bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- package/bin/Microsoft.Extensions.DependencyInjection.dll +0 -0
- package/bin/Microsoft.Extensions.Diagnostics.Abstractions.dll +0 -0
- package/bin/Microsoft.Extensions.Diagnostics.dll +0 -0
- package/bin/Microsoft.Extensions.FileProviders.Abstractions.dll +0 -0
- package/bin/Microsoft.Extensions.FileProviders.Physical.dll +0 -0
- package/bin/Microsoft.Extensions.FileSystemGlobbing.dll +0 -0
- package/bin/Microsoft.Extensions.Hosting.Abstractions.dll +0 -0
- package/bin/Microsoft.Extensions.Hosting.dll +0 -0
- package/bin/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
- package/bin/Microsoft.Extensions.Logging.Configuration.dll +0 -0
- package/bin/Microsoft.Extensions.Logging.Console.dll +0 -0
- package/bin/Microsoft.Extensions.Logging.Debug.dll +0 -0
- package/bin/Microsoft.Extensions.Logging.EventLog.dll +0 -0
- package/bin/Microsoft.Extensions.Logging.EventSource.dll +0 -0
- package/bin/Microsoft.Extensions.Logging.dll +0 -0
- package/bin/Microsoft.Extensions.Options.ConfigurationExtensions.dll +0 -0
- package/bin/Microsoft.Extensions.Options.DataAnnotations.dll +0 -0
- package/bin/Microsoft.Extensions.Options.dll +0 -0
- package/bin/Microsoft.Extensions.Primitives.dll +0 -0
- package/bin/NLog.Extensions.Logging.dll +0 -0
- package/bin/NLog.dll +0 -0
- package/bin/Newtonsoft.Json.dll +0 -0
- package/bin/Spectre.Console.Cli.dll +0 -0
- package/bin/Spectre.Console.dll +0 -0
- package/bin/System.Diagnostics.DiagnosticSource.dll +0 -0
- package/bin/System.Diagnostics.EventLog.dll +0 -0
- package/bin/System.IO.Abstractions.dll +0 -0
- package/bin/System.IO.Pipelines.dll +0 -0
- package/bin/System.Text.Encodings.Web.dll +0 -0
- package/bin/System.Text.Json.dll +0 -0
- package/bin/TestableIO.System.IO.Abstractions.Wrappers.dll +0 -0
- package/bin/TestableIO.System.IO.Abstractions.dll +0 -0
- package/bin/Testably.Abstractions.FileSystem.Interface.dll +0 -0
- package/bin/TypeGen.Core.dll +0 -0
- package/bin/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/bin/cs/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/bin/de/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/bin/de/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/bin/de/Spectre.Console.Cli.resources.dll +0 -0
- package/bin/es/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/bin/es/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/bin/es/Spectre.Console.Cli.resources.dll +0 -0
- package/bin/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/bin/fr/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/bin/fr/Spectre.Console.Cli.resources.dll +0 -0
- package/bin/it/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/bin/it/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/bin/it/Spectre.Console.Cli.resources.dll +0 -0
- package/bin/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/bin/ja/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/bin/ja/Spectre.Console.Cli.resources.dll +0 -0
- package/bin/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/bin/ko/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/bin/ko/Spectre.Console.Cli.resources.dll +0 -0
- package/bin/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/bin/pl/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/bin/pt/Spectre.Console.Cli.resources.dll +0 -0
- package/bin/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/bin/pt-BR/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/bin/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/bin/ru/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/bin/ru/Spectre.Console.Cli.resources.dll +0 -0
- package/bin/runtimes/browser/lib/net8.0/System.Text.Encodings.Web.dll +0 -0
- package/bin/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll +0 -0
- package/bin/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll +0 -0
- package/bin/sv/Spectre.Console.Cli.resources.dll +0 -0
- package/bin/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/bin/tr/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/bin/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/bin/zh-Hans/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/bin/zh-Hans/Spectre.Console.Cli.resources.dll +0 -0
- package/bin/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/bin/zh-Hant/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/cli.d.ts +2 -0
- package/cli.js +49 -0
- package/cli.js.map +1 -0
- package/index.d.ts +9 -0
- package/index.js +54 -30
- package/index.js.map +1 -0
- package/metadata.d.ts +5 -0
- package/metadata.js +45 -0
- package/metadata.js.map +1 -0
- package/package.json +63 -3
- package/ts/angular-components-generator/common-reexports-generator.d.ts +12 -0
- package/ts/angular-components-generator/common-reexports-generator.js +39 -0
- package/ts/angular-components-generator/common-reexports-generator.js.map +1 -0
- package/ts/angular-components-generator/component-names-generator.d.ts +8 -0
- package/ts/angular-components-generator/component-names-generator.js +35 -0
- package/ts/angular-components-generator/component-names-generator.js.map +1 -0
- package/ts/angular-components-generator/dot-generator.d.ts +11 -0
- package/ts/angular-components-generator/dot-generator.js +144 -0
- package/ts/angular-components-generator/dot-generator.js.map +1 -0
- package/ts/angular-components-generator/facade-generator.d.ts +11 -0
- package/ts/angular-components-generator/facade-generator.js +60 -0
- package/ts/angular-components-generator/facade-generator.js.map +1 -0
- package/ts/angular-components-generator/helpers.d.ts +2 -0
- package/ts/angular-components-generator/helpers.js +11 -0
- package/ts/angular-components-generator/helpers.js.map +1 -0
- package/ts/angular-components-generator/import-helper.d.ts +6 -0
- package/ts/angular-components-generator/import-helper.js +68 -0
- package/ts/angular-components-generator/import-helper.js.map +1 -0
- package/ts/angular-components-generator/metadata-generator.d.ts +45 -0
- package/ts/angular-components-generator/metadata-generator.js +753 -0
- package/ts/angular-components-generator/metadata-generator.js.map +1 -0
- package/ts/angular-components-generator/module-facade-generator.d.ts +5 -0
- package/ts/angular-components-generator/module-facade-generator.js +62 -0
- package/ts/angular-components-generator/module-facade-generator.js.map +1 -0
- package/ts/angular-components-generator/templates/base-nested-component.tst +21 -0
- package/ts/angular-components-generator/templates/component.tst +255 -0
- package/ts/angular-components-generator/templates/nested-component.tst +153 -0
- package/ts/bundler/bundler.d.ts +6 -0
- package/ts/bundler/bundler.js +286 -0
- package/ts/bundler/bundler.js.map +1 -0
- package/ts/collapser/collapser.d.ts +4 -0
- package/ts/collapser/collapser.js +259 -0
- package/ts/collapser/collapser.js.map +1 -0
- package/ts/common/common-resolving.d.ts +11 -0
- package/ts/common/common-resolving.js +62 -0
- package/ts/common/common-resolving.js.map +1 -0
- package/ts/common/id.d.ts +13 -0
- package/ts/common/id.js +153 -0
- package/ts/common/id.js.map +1 -0
- package/ts/common/tags/comparing.d.ts +3 -0
- package/ts/common/tags/comparing.js +16 -0
- package/ts/common/tags/comparing.js.map +1 -0
- package/ts/common/tags/generating.d.ts +4 -0
- package/ts/common/tags/generating.js +99 -0
- package/ts/common/tags/generating.js.map +1 -0
- package/ts/common/tags/merging.d.ts +12 -0
- package/ts/common/tags/merging.js +98 -0
- package/ts/common/tags/merging.js.map +1 -0
- package/ts/common/tags/parameter-field-tag.d.ts +7 -0
- package/ts/common/tags/parameter-field-tag.js +12 -0
- package/ts/common/tags/parameter-field-tag.js.map +1 -0
- package/ts/common/tags.d.ts +12 -0
- package/ts/common/tags.js +129 -0
- package/ts/common/tags.js.map +1 -0
- package/ts/common/ts-type-resolving.d.ts +16 -0
- package/ts/common/ts-type-resolving.js +472 -0
- package/ts/common/ts-type-resolving.js.map +1 -0
- package/ts/common/ts-utils.d.ts +40 -0
- package/ts/common/ts-utils.js +297 -0
- package/ts/common/ts-utils.js.map +1 -0
- package/ts/common/type-resolving.d.ts +42 -0
- package/ts/common/type-resolving.js +307 -0
- package/ts/common/type-resolving.js.map +1 -0
- package/ts/common/utils/array-utils.d.ts +6 -0
- package/ts/common/utils/array-utils.js +51 -0
- package/ts/common/utils/array-utils.js.map +1 -0
- package/ts/common/utils/basic-utils.d.ts +4 -0
- package/ts/common/utils/basic-utils.js +16 -0
- package/ts/common/utils/basic-utils.js.map +1 -0
- package/ts/common/utils/console-utils.d.ts +1 -0
- package/ts/common/utils/console-utils.js +32 -0
- package/ts/common/utils/console-utils.js.map +1 -0
- package/ts/common/utils/fs-utils.d.ts +4 -0
- package/ts/common/utils/fs-utils.js +44 -0
- package/ts/common/utils/fs-utils.js.map +1 -0
- package/ts/common/utils/index.d.ts +6 -0
- package/ts/common/utils/index.js +23 -0
- package/ts/common/utils/index.js.map +1 -0
- package/ts/common/utils/narrowing-utils.d.ts +6 -0
- package/ts/common/utils/narrowing-utils.js +14 -0
- package/ts/common/utils/narrowing-utils.js.map +1 -0
- package/ts/common/utils/path-utils.d.ts +6 -0
- package/ts/common/utils/path-utils.js +28 -0
- package/ts/common/utils/path-utils.js.map +1 -0
- package/ts/component-exports-generator/generator.d.ts +3 -0
- package/ts/component-exports-generator/generator.js +63 -0
- package/ts/component-exports-generator/generator.js.map +1 -0
- package/ts/components-generation/aggregated-reexports-generator.d.ts +9 -0
- package/ts/components-generation/aggregated-reexports-generator.js +40 -0
- package/ts/components-generation/aggregated-reexports-generator.js.map +1 -0
- package/ts/components-generation/common-reexports-generator.d.ts +12 -0
- package/ts/components-generation/common-reexports-generator.js +89 -0
- package/ts/components-generation/common-reexports-generator.js.map +1 -0
- package/ts/components-generation/file-helpers.d.ts +9 -0
- package/ts/components-generation/file-helpers.js +26 -0
- package/ts/components-generation/file-helpers.js.map +1 -0
- package/ts/components-generation/helpers.d.ts +15 -0
- package/ts/components-generation/helpers.js +99 -0
- package/ts/components-generation/helpers.js.map +1 -0
- package/ts/components-generation/index-generator.d.ts +4 -0
- package/ts/components-generation/index-generator.js +12 -0
- package/ts/components-generation/index-generator.js.map +1 -0
- package/ts/components-generation/metadata-augmentation.d.ts +10 -0
- package/ts/components-generation/metadata-augmentation.js +27 -0
- package/ts/components-generation/metadata-augmentation.js.map +1 -0
- package/ts/components-generation/models/declarations/index.d.ts +1 -0
- package/ts/components-generation/models/declarations/index.js +3 -0
- package/ts/components-generation/models/declarations/index.js.map +1 -0
- package/ts/components-generation/models/discoverer/app-config.d.ts +4 -0
- package/ts/components-generation/models/discoverer/app-config.js +3 -0
- package/ts/components-generation/models/discoverer/app-config.js.map +1 -0
- package/ts/components-generation/models/discoverer/index.d.ts +2 -0
- package/ts/components-generation/models/discoverer/index.js +19 -0
- package/ts/components-generation/models/discoverer/index.js.map +1 -0
- package/ts/components-generation/models/discoverer/variables.d.ts +5 -0
- package/ts/components-generation/models/discoverer/variables.js +3 -0
- package/ts/components-generation/models/discoverer/variables.js.map +1 -0
- package/ts/components-generation/models/imd/app-config.d.ts +4 -0
- package/ts/components-generation/models/imd/app-config.js +3 -0
- package/ts/components-generation/models/imd/app-config.js.map +1 -0
- package/ts/components-generation/models/imd/array-descr.d.ts +4 -0
- package/ts/components-generation/models/imd/array-descr.js +3 -0
- package/ts/components-generation/models/imd/array-descr.js.map +1 -0
- package/ts/components-generation/models/imd/complex-prop.d.ts +14 -0
- package/ts/components-generation/models/imd/complex-prop.js +3 -0
- package/ts/components-generation/models/imd/complex-prop.js.map +1 -0
- package/ts/components-generation/models/imd/component-ref.d.ts +5 -0
- package/ts/components-generation/models/imd/component-ref.js +3 -0
- package/ts/components-generation/models/imd/component-ref.js.map +1 -0
- package/ts/components-generation/models/imd/custom-type.d.ts +9 -0
- package/ts/components-generation/models/imd/custom-type.js +3 -0
- package/ts/components-generation/models/imd/custom-type.js.map +1 -0
- package/ts/components-generation/models/imd/field.d.ts +5 -0
- package/ts/components-generation/models/imd/field.js +3 -0
- package/ts/components-generation/models/imd/field.js.map +1 -0
- package/ts/components-generation/models/imd/function-descr.d.ts +6 -0
- package/ts/components-generation/models/imd/function-descr.js +3 -0
- package/ts/components-generation/models/imd/function-descr.js.map +1 -0
- package/ts/components-generation/models/imd/i-member-metadata.d.ts +2 -0
- package/ts/components-generation/models/imd/i-member-metadata.js +3 -0
- package/ts/components-generation/models/imd/i-member-metadata.js.map +1 -0
- package/ts/components-generation/models/imd/index.d.ts +18 -0
- package/ts/components-generation/models/imd/index.js +35 -0
- package/ts/components-generation/models/imd/index.js.map +1 -0
- package/ts/components-generation/models/imd/location.d.ts +4 -0
- package/ts/components-generation/models/imd/location.js +3 -0
- package/ts/components-generation/models/imd/location.js.map +1 -0
- package/ts/components-generation/models/imd/member-metadata.d.ts +7 -0
- package/ts/components-generation/models/imd/member-metadata.js +3 -0
- package/ts/components-generation/models/imd/member-metadata.js.map +1 -0
- package/ts/components-generation/models/imd/meta.d.ts +4 -0
- package/ts/components-generation/models/imd/meta.js +3 -0
- package/ts/components-generation/models/imd/meta.js.map +1 -0
- package/ts/components-generation/models/imd/model.d.ts +11 -0
- package/ts/components-generation/models/imd/model.js +3 -0
- package/ts/components-generation/models/imd/model.js.map +1 -0
- package/ts/components-generation/models/imd/mutation.d.ts +6 -0
- package/ts/components-generation/models/imd/mutation.js +3 -0
- package/ts/components-generation/models/imd/mutation.js.map +1 -0
- package/ts/components-generation/models/imd/object-descr.d.ts +5 -0
- package/ts/components-generation/models/imd/object-descr.js +3 -0
- package/ts/components-generation/models/imd/object-descr.js.map +1 -0
- package/ts/components-generation/models/imd/param.d.ts +5 -0
- package/ts/components-generation/models/imd/param.js +3 -0
- package/ts/components-generation/models/imd/param.js.map +1 -0
- package/ts/components-generation/models/imd/prop.d.ts +9 -0
- package/ts/components-generation/models/imd/prop.js +3 -0
- package/ts/components-generation/models/imd/prop.js.map +1 -0
- package/ts/components-generation/models/imd/type-descr.d.ts +9 -0
- package/ts/components-generation/models/imd/type-descr.js +3 -0
- package/ts/components-generation/models/imd/type-descr.js.map +1 -0
- package/ts/components-generation/models/imd/widget.d.ts +16 -0
- package/ts/components-generation/models/imd/widget.js +3 -0
- package/ts/components-generation/models/imd/widget.js.map +1 -0
- package/ts/components-generation/models/ng/app-config.d.ts +6 -0
- package/ts/components-generation/models/ng/app-config.js +3 -0
- package/ts/components-generation/models/ng/app-config.js.map +1 -0
- package/ts/components-generation/models/ng/base-smd-variables.d.ts +3 -0
- package/ts/components-generation/models/ng/base-smd-variables.js +3 -0
- package/ts/components-generation/models/ng/base-smd-variables.js.map +1 -0
- package/ts/components-generation/models/ng/import.d.ts +5 -0
- package/ts/components-generation/models/ng/import.js +3 -0
- package/ts/components-generation/models/ng/import.js.map +1 -0
- package/ts/components-generation/models/ng/index.d.ts +9 -0
- package/ts/components-generation/models/ng/index.js +26 -0
- package/ts/components-generation/models/ng/index.js.map +1 -0
- package/ts/components-generation/models/ng/location.d.ts +4 -0
- package/ts/components-generation/models/ng/location.js +3 -0
- package/ts/components-generation/models/ng/location.js.map +1 -0
- package/ts/components-generation/models/ng/model.d.ts +12 -0
- package/ts/components-generation/models/ng/model.js +3 -0
- package/ts/components-generation/models/ng/model.js.map +1 -0
- package/ts/components-generation/models/ng/mutation.d.ts +6 -0
- package/ts/components-generation/models/ng/mutation.js +3 -0
- package/ts/components-generation/models/ng/mutation.js.map +1 -0
- package/ts/components-generation/models/ng/option.d.ts +20 -0
- package/ts/components-generation/models/ng/option.js +3 -0
- package/ts/components-generation/models/ng/option.js.map +1 -0
- package/ts/components-generation/models/ng/options-owner.d.ts +15 -0
- package/ts/components-generation/models/ng/options-owner.js +3 -0
- package/ts/components-generation/models/ng/options-owner.js.map +1 -0
- package/ts/components-generation/models/ng/variables.d.ts +3 -0
- package/ts/components-generation/models/ng/variables.js +3 -0
- package/ts/components-generation/models/ng/variables.js.map +1 -0
- package/ts/components-generation/models/smd/app-config.d.ts +6 -0
- package/ts/components-generation/models/smd/app-config.js +3 -0
- package/ts/components-generation/models/smd/app-config.js.map +1 -0
- package/ts/components-generation/models/smd/base-smd-variables.d.ts +3 -0
- package/ts/components-generation/models/smd/base-smd-variables.js +3 -0
- package/ts/components-generation/models/smd/base-smd-variables.js.map +1 -0
- package/ts/components-generation/models/smd/container.d.ts +12 -0
- package/ts/components-generation/models/smd/container.js +3 -0
- package/ts/components-generation/models/smd/container.js.map +1 -0
- package/ts/components-generation/models/smd/enums-rule.d.ts +7 -0
- package/ts/components-generation/models/smd/enums-rule.js +3 -0
- package/ts/components-generation/models/smd/enums-rule.js.map +1 -0
- package/ts/components-generation/models/smd/forwarded-enum.d.ts +4 -0
- package/ts/components-generation/models/smd/forwarded-enum.js +3 -0
- package/ts/components-generation/models/smd/forwarded-enum.js.map +1 -0
- package/ts/components-generation/models/smd/index.d.ts +14 -0
- package/ts/components-generation/models/smd/index.js +31 -0
- package/ts/components-generation/models/smd/index.js.map +1 -0
- package/ts/components-generation/models/smd/location.d.ts +4 -0
- package/ts/components-generation/models/smd/location.js +3 -0
- package/ts/components-generation/models/smd/location.js.map +1 -0
- package/ts/components-generation/models/smd/model.d.ts +13 -0
- package/ts/components-generation/models/smd/model.js +3 -0
- package/ts/components-generation/models/smd/model.js.map +1 -0
- package/ts/components-generation/models/smd/mutation.d.ts +6 -0
- package/ts/components-generation/models/smd/mutation.js +3 -0
- package/ts/components-generation/models/smd/mutation.js.map +1 -0
- package/ts/components-generation/models/smd/option-info.d.ts +13 -0
- package/ts/components-generation/models/smd/option-info.js +3 -0
- package/ts/components-generation/models/smd/option-info.js.map +1 -0
- package/ts/components-generation/models/smd/strong-enum-info.d.ts +7 -0
- package/ts/components-generation/models/smd/strong-enum-info.js +3 -0
- package/ts/components-generation/models/smd/strong-enum-info.js.map +1 -0
- package/ts/components-generation/models/smd/strong-enum-item-info.d.ts +5 -0
- package/ts/components-generation/models/smd/strong-enum-item-info.js +3 -0
- package/ts/components-generation/models/smd/strong-enum-item-info.js.map +1 -0
- package/ts/components-generation/models/smd/type-info.d.ts +8 -0
- package/ts/components-generation/models/smd/type-info.js +3 -0
- package/ts/components-generation/models/smd/type-info.js.map +1 -0
- package/ts/components-generation/models/smd/type-kind.d.ts +4 -0
- package/ts/components-generation/models/smd/type-kind.js +9 -0
- package/ts/components-generation/models/smd/type-kind.js.map +1 -0
- package/ts/components-generation/models/smd/variables.d.ts +15 -0
- package/ts/components-generation/models/smd/variables.js +3 -0
- package/ts/components-generation/models/smd/variables.js.map +1 -0
- package/ts/components-generation/reexports-generator.d.ts +12 -0
- package/ts/components-generation/reexports-generator.js +19 -0
- package/ts/components-generation/reexports-generator.js.map +1 -0
- package/ts/components-generation/template.d.ts +28 -0
- package/ts/components-generation/template.js +53 -0
- package/ts/components-generation/template.js.map +1 -0
- package/ts/components-generation/type-resolving.d.ts +33 -0
- package/ts/components-generation/type-resolving.js +191 -0
- package/ts/components-generation/type-resolving.js.map +1 -0
- package/ts/config/args.d.ts +48 -0
- package/ts/config/args.js +132 -0
- package/ts/config/args.js.map +1 -0
- package/ts/config/index.d.ts +28 -0
- package/ts/config/index.js +109 -0
- package/ts/config/index.js.map +1 -0
- package/ts/config/metadata/data-types.d.ts +145 -0
- package/ts/config/metadata/data-types.js +3 -0
- package/ts/config/metadata/data-types.js.map +1 -0
- package/ts/config/metadata/data-types.slice.d.ts +1 -0
- package/ts/config/metadata/data-types.slice.js +3 -0
- package/ts/config/metadata/data-types.slice.js.map +1 -0
- package/ts/config/metadata/index.d.ts +3 -0
- package/ts/config/metadata/index.js +42 -0
- package/ts/config/metadata/index.js.map +1 -0
- package/ts/config/metadata/mutations.d.ts +46 -0
- package/ts/config/metadata/mutations.js +147 -0
- package/ts/config/metadata/mutations.js.map +1 -0
- package/ts/config/paths.d.ts +6 -0
- package/ts/config/paths.js +18 -0
- package/ts/config/paths.js.map +1 -0
- package/ts/discoverer/data-model.d.ts +105 -0
- package/ts/discoverer/data-model.js +13 -0
- package/ts/discoverer/data-model.js.map +1 -0
- package/ts/discoverer/discovering-error.d.ts +4 -0
- package/ts/discoverer/discovering-error.js +16 -0
- package/ts/discoverer/discovering-error.js.map +1 -0
- package/ts/discoverer/discovering.d.ts +4 -0
- package/ts/discoverer/discovering.js +73 -0
- package/ts/discoverer/discovering.js.map +1 -0
- package/ts/discoverer/parsing/enum-collecting.d.ts +6 -0
- package/ts/discoverer/parsing/enum-collecting.js +74 -0
- package/ts/discoverer/parsing/enum-collecting.js.map +1 -0
- package/ts/discoverer/parsing/file-reader.d.ts +2 -0
- package/ts/discoverer/parsing/file-reader.js +33 -0
- package/ts/discoverer/parsing/file-reader.js.map +1 -0
- package/ts/discoverer/parsing/widget-parsing.d.ts +11 -0
- package/ts/discoverer/parsing/widget-parsing.js +75 -0
- package/ts/discoverer/parsing/widget-parsing.js.map +1 -0
- package/ts/discoverer/parsing.d.ts +26 -0
- package/ts/discoverer/parsing.js +338 -0
- package/ts/discoverer/parsing.js.map +1 -0
- package/ts/discoverer/types.d.ts +20 -0
- package/ts/discoverer/types.js +3 -0
- package/ts/discoverer/types.js.map +1 -0
- package/ts/logging.d.ts +16 -0
- package/ts/logging.js +112 -0
- package/ts/logging.js.map +1 -0
- package/ts/modules-meta-generator/modules-meta-generator.d.ts +3 -0
- package/ts/modules-meta-generator/modules-meta-generator.js +63 -0
- package/ts/modules-meta-generator/modules-meta-generator.js.map +1 -0
- package/ts/program.d.ts +3 -0
- package/ts/program.js +15 -0
- package/ts/program.js.map +1 -0
- package/ts/react-components-generator/component-generator.d.ts +55 -0
- package/ts/react-components-generator/component-generator.js +421 -0
- package/ts/react-components-generator/component-generator.js.map +1 -0
- package/ts/react-components-generator/generator.d.ts +43 -0
- package/ts/react-components-generator/generator.js +245 -0
- package/ts/react-components-generator/generator.js.map +1 -0
- package/ts/tools/common.d.ts +8 -0
- package/ts/tools/common.js +51 -0
- package/ts/tools/common.js.map +1 -0
- package/ts/tools/discover-declarations.d.ts +15 -0
- package/ts/tools/discover-declarations.js +60 -0
- package/ts/tools/discover-declarations.js.map +1 -0
- package/ts/tools/index.d.ts +13 -0
- package/ts/tools/index.js +90 -0
- package/ts/tools/index.js.map +1 -0
- package/ts/tools/make-angular-metadata.d.ts +8 -0
- package/ts/tools/make-angular-metadata.js +16 -0
- package/ts/tools/make-angular-metadata.js.map +1 -0
- package/ts/tools/make-aspnet-metadata.d.ts +20 -0
- package/ts/tools/make-aspnet-metadata.js +16 -0
- package/ts/tools/make-aspnet-metadata.js.map +1 -0
- package/ts/tools/make-integration-metadata.d.ts +8 -0
- package/ts/tools/make-integration-metadata.js +16 -0
- package/ts/tools/make-integration-metadata.js.map +1 -0
- package/ts/vue-components-generator/component-generator.d.ts +47 -0
- package/ts/vue-components-generator/component-generator.js +229 -0
- package/ts/vue-components-generator/component-generator.js.map +1 -0
- package/ts/vue-components-generator/converter.d.ts +22 -0
- package/ts/vue-components-generator/converter.js +98 -0
- package/ts/vue-components-generator/converter.js.map +1 -0
- package/ts/vue-components-generator/generator.d.ts +14 -0
- package/ts/vue-components-generator/generator.js +156 -0
- package/ts/vue-components-generator/generator.js.map +1 -0
- package/bin/DevExtreme.Declarations.Discoverer.pdb +0 -0
- package/bin/DevExtreme.Declarations.Discoverer.runtimeconfig.dev.json +0 -10
- package/bin/DevExtreme.Declarations.IntegrityValidator.pdb +0 -0
- package/bin/DevExtreme.Declarations.IntegrityValidator.runtimeconfig.dev.json +0 -10
- package/bin/DevExtreme.Declarations.pdb +0 -0
- package/bin/DevExtreme.HelpFilesGenerator.DeclarationsProvider.deps.json +0 -273
- package/bin/DevExtreme.HelpFilesGenerator.DeclarationsProvider.dll +0 -0
- package/bin/DevExtreme.HelpFilesGenerator.DeclarationsProvider.pdb +0 -0
- package/bin/DevExtreme.HelpFilesGenerator.deps.json +0 -266
- package/bin/DevExtreme.HelpFilesGenerator.dll +0 -0
- package/bin/DevExtreme.HelpFilesGenerator.pdb +0 -0
- package/bin/DevExtreme.HelpFilesGenerator.runtimeconfig.dev.json +0 -10
- package/bin/DevExtreme.HelpFilesGenerator.runtimeconfig.json +0 -9
- package/bin/DevExtreme.Infrastructure.pdb +0 -0
- package/bin/DevExtreme.Topics.pdb +0 -0
- package/bin/DevExtreme.TypeScriptGenerator.deps.json +0 -305
- package/bin/DevExtreme.TypeScriptGenerator.dll +0 -0
- package/bin/DevExtreme.TypeScriptGenerator.pdb +0 -0
- package/bin/DevExtreme.TypeScriptGenerator.runtimeconfig.dev.json +0 -10
- package/bin/DevExtreme.TypeScriptGenerator.runtimeconfig.json +0 -9
- package/bin/DevExtreme.WebSite.LinksConverter.pdb +0 -0
- package/bin/DevExtreme.WebSite.LinksConverter.runtimeconfig.dev.json +0 -10
- package/bin/PublishToCorp.bat +0 -10
- package/bin/System.IO.FileSystem.AccessControl.dll +0 -0
- package/bin/System.Security.AccessControl.dll +0 -0
- package/bin/System.Security.Principal.Windows.dll +0 -0
- package/bin/runtimes/unix/lib/netcoreapp2.0/System.Security.Principal.Windows.dll +0 -0
- package/bin/runtimes/win/lib/netcoreapp2.0/System.Security.AccessControl.dll +0 -0
- package/bin/runtimes/win/lib/netcoreapp2.0/System.Security.Principal.Windows.dll +0 -0
- package/bin/runtimes/win/lib/netstandard2.0/System.IO.FileSystem.AccessControl.dll +0 -0
- package/scripts/declaration-validator.js +0 -31
- package/scripts/link-updater.js +0 -88
- package/scripts/ts-generator.js +0 -47
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
type IComponent = {
|
|
2
|
+
name: string;
|
|
3
|
+
baseComponentPath: string;
|
|
4
|
+
extensionComponentPath: string;
|
|
5
|
+
dxExportPath: string;
|
|
6
|
+
expectedChildren?: IExpectedChild[];
|
|
7
|
+
isExtension?: boolean;
|
|
8
|
+
subscribableOptions?: ISubscribableOption[];
|
|
9
|
+
independentEvents?: IIndependentEvents[];
|
|
10
|
+
templates?: string[];
|
|
11
|
+
optionsTypeParams?: string[];
|
|
12
|
+
} & {
|
|
13
|
+
nestedComponents?: INestedComponent[];
|
|
14
|
+
configComponentPath?: string;
|
|
15
|
+
containsReexports?: boolean;
|
|
16
|
+
narrowedEvents?: IOption[];
|
|
17
|
+
};
|
|
18
|
+
interface INestedComponent {
|
|
19
|
+
componentName: string;
|
|
20
|
+
optionName: string;
|
|
21
|
+
owners: string[];
|
|
22
|
+
options: IOption[];
|
|
23
|
+
templates?: string[];
|
|
24
|
+
expectedChildren?: IExpectedChild[];
|
|
25
|
+
predefinedProps?: Record<string, string>;
|
|
26
|
+
isCollectionItem?: boolean;
|
|
27
|
+
}
|
|
28
|
+
interface ISubscribableOption {
|
|
29
|
+
name: string;
|
|
30
|
+
type: string;
|
|
31
|
+
isSubscribable?: true;
|
|
32
|
+
}
|
|
33
|
+
interface IIndependentEvents {
|
|
34
|
+
name: string;
|
|
35
|
+
}
|
|
36
|
+
type IOption = {
|
|
37
|
+
name: string;
|
|
38
|
+
isSubscribable?: true;
|
|
39
|
+
isArray?: boolean;
|
|
40
|
+
type?: string;
|
|
41
|
+
} & ({
|
|
42
|
+
type: string;
|
|
43
|
+
nested?: undefined;
|
|
44
|
+
} | {
|
|
45
|
+
type?: string;
|
|
46
|
+
nested: IOption[];
|
|
47
|
+
});
|
|
48
|
+
interface IExpectedChild {
|
|
49
|
+
componentName: string;
|
|
50
|
+
optionName: string;
|
|
51
|
+
isCollectionItem?: boolean;
|
|
52
|
+
}
|
|
53
|
+
declare function generate(component: IComponent, generateReexports?: boolean, customTypeImports?: Record<string, Array<string>>, defaultTypeImports?: Record<string, string>, wildcardTypeImports?: Record<string, string>): string;
|
|
54
|
+
export default generate;
|
|
55
|
+
export type { IComponent, IIndependentEvents, INestedComponent, IOption, ISubscribableOption, };
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const helpers_1 = require("../components-generation/helpers");
|
|
4
|
+
const template_1 = require("../components-generation/template");
|
|
5
|
+
const TYPE_RENDER = '(...params: any) => React.ReactNode';
|
|
6
|
+
const TYPE_COMPONENT = 'React.ComponentType<any>';
|
|
7
|
+
const PORTAL_COMPONENTS = new Set([
|
|
8
|
+
'dxLoadPanel',
|
|
9
|
+
'dxOverlay',
|
|
10
|
+
'dxPopover',
|
|
11
|
+
'dxPopup',
|
|
12
|
+
'dxToast',
|
|
13
|
+
'dxTooltip',
|
|
14
|
+
'dxValidationMessage',
|
|
15
|
+
]);
|
|
16
|
+
const USE_REQUEST_ANIMATION_FRAME = new Set([
|
|
17
|
+
'dxChart',
|
|
18
|
+
'dxDateBox',
|
|
19
|
+
'dxDataGrid',
|
|
20
|
+
'dxFilterBuilder',
|
|
21
|
+
]);
|
|
22
|
+
function getIndent(indent) {
|
|
23
|
+
return Array(indent * 2 + 1).join(' ');
|
|
24
|
+
}
|
|
25
|
+
const renderObjectEntry = (0, template_1.createTemplate)(`
|
|
26
|
+
<#= it.indent #><#= it.key #>: "<#= it.value #>"
|
|
27
|
+
`.trimRight());
|
|
28
|
+
function renderObject(props, baseIndent) {
|
|
29
|
+
let result = '{';
|
|
30
|
+
const indent = baseIndent + 1;
|
|
31
|
+
props.forEach((opt) => {
|
|
32
|
+
result += `\n${getIndent(indent)}${opt.name}?: `;
|
|
33
|
+
if (opt.nested && (0, helpers_1.isNotEmptyArray)(opt.nested)) {
|
|
34
|
+
const type = opt.type ? `${opt.type} | ` : '';
|
|
35
|
+
result += `${type}${renderObject(opt.nested, indent)}`;
|
|
36
|
+
if (opt.isArray) {
|
|
37
|
+
result += '[]';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
result += opt.type;
|
|
42
|
+
}
|
|
43
|
+
result += ';';
|
|
44
|
+
});
|
|
45
|
+
result += `\n${getIndent(baseIndent)}}`;
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
function renderNarrowedEvents(events) {
|
|
49
|
+
let result = '{';
|
|
50
|
+
let indent = 1;
|
|
51
|
+
events.forEach((event) => {
|
|
52
|
+
result += `\n${getIndent(indent)}${event.name}?: ${event.type};`;
|
|
53
|
+
});
|
|
54
|
+
indent -= 1;
|
|
55
|
+
result += `\n${getIndent(indent)}}`;
|
|
56
|
+
return result;
|
|
57
|
+
}
|
|
58
|
+
const renderTemplateOption = (0, template_1.createTemplate)(`
|
|
59
|
+
{
|
|
60
|
+
<#= it.additionalIndent #>tmplOption: "<#= it.actualOptionName #>",
|
|
61
|
+
<#= it.additionalIndent #>render: "<#= it.render #>",
|
|
62
|
+
<#= it.additionalIndent #>component: "<#= it.component #>"
|
|
63
|
+
<#= it.additionalIndent #> }
|
|
64
|
+
`.trim());
|
|
65
|
+
const renderStringEntry = (0, template_1.createTemplate)('"<#= it #>"');
|
|
66
|
+
const renderModule = (0, template_1.createTemplate)('"use client"\n'
|
|
67
|
+
+ '<#= it.renderedImports #>\n'
|
|
68
|
+
+ '<#? it.renderedOptionsInterface #>'
|
|
69
|
+
+ '<#= it.renderedOptionsInterface #>\n\n'
|
|
70
|
+
+ '<#?#>'
|
|
71
|
+
+ '<#= it.renderedComponent #>'
|
|
72
|
+
+ '<#? it.renderedNestedComponents #>'
|
|
73
|
+
+ '<#~ it.renderedNestedComponents :nestedComponent #>\n\n'
|
|
74
|
+
+ '<#= nestedComponent #>'
|
|
75
|
+
+ '<#~#>\n\n'
|
|
76
|
+
+ '<#?#>'
|
|
77
|
+
+ 'export default <#= it.defaultExport #>;\n'
|
|
78
|
+
+ `export {
|
|
79
|
+
<#= it.renderedExports #>
|
|
80
|
+
};
|
|
81
|
+
`
|
|
82
|
+
+ '<#? it.renderedReExports #>'
|
|
83
|
+
+ '<#= it.renderedReExports #>\n\n'
|
|
84
|
+
+ '<#?#>');
|
|
85
|
+
const renderImports = (0, template_1.createTemplate)('<#? it.hasExplicitTypes #>'
|
|
86
|
+
+ 'export { ExplicitTypes } from "<#= it.dxExportPath #>";\n'
|
|
87
|
+
+ '<#?#>'
|
|
88
|
+
+ 'import * as React from "react";\n'
|
|
89
|
+
+ 'import { memo, forwardRef, useImperativeHandle, useRef, useMemo, ForwardedRef, Ref, ReactElement } from "react";\n'
|
|
90
|
+
+ 'import <#= it.widgetName #>, {\n'
|
|
91
|
+
+ ' Properties\n'
|
|
92
|
+
+ '} from "<#= it.dxExportPath #>";\n\n'
|
|
93
|
+
+ '<#? it.htmlOptionsPath === it.baseComponentPath #>'
|
|
94
|
+
+ 'import { <#= it.baseComponentName #> as BaseComponent, IHtmlOptions, ComponentRef<#? it.configComponentPath || it.isExtensionComponent #>, NestedComponentMeta<#?#> } from "<#= it.baseComponentPath #>";\n'
|
|
95
|
+
+ '<#??#>'
|
|
96
|
+
+ 'import { <#= it.baseComponentName #> as BaseComponent } from "<#= it.baseComponentPath #>";\n'
|
|
97
|
+
+ 'import { IHtmlOptions, ComponentRef<#? it.configComponentPath || it.isExtensionComponent #>, NestedComponentMeta<#?#> } from "<#= it.htmlOptionsPath #>";\n'
|
|
98
|
+
+ '<#?#>'
|
|
99
|
+
+ '<#? it.configComponentPath #>'
|
|
100
|
+
+ 'import NestedOption from "<#= it.configComponentPath #>";\n'
|
|
101
|
+
+ '<#?#>'
|
|
102
|
+
+ '<#? it.customTypeImports && Object.keys(it.customTypeImports).length #>\n'
|
|
103
|
+
+ '<#~ Object.keys(it.customTypeImports) : module #>'
|
|
104
|
+
+ 'import type { <#= it.customTypeImports[module].join(", ")#> } from "<#= module #>";\n'
|
|
105
|
+
+ '<#~#>'
|
|
106
|
+
+ '<#?#>'
|
|
107
|
+
+ '<#? it.defaultTypeImports && Object.keys(it.defaultTypeImports).length #>\n'
|
|
108
|
+
+ '<#~ Object.keys(it.defaultTypeImports) : defaultImport #>'
|
|
109
|
+
+ '<#? defaultImport !== it.widgetName #>'
|
|
110
|
+
+ 'import type <#= defaultImport #> from "<#= it.defaultTypeImports[defaultImport] #>";\n'
|
|
111
|
+
+ '<#?#>'
|
|
112
|
+
+ '<#~#>'
|
|
113
|
+
+ '<#?#>'
|
|
114
|
+
+ '<#? it.wildcardTypeImports && Object.keys(it.wildcardTypeImports).length #>\n'
|
|
115
|
+
+ '<#~ Object.keys(it.wildcardTypeImports) : wildcardImportModule #>'
|
|
116
|
+
+ 'import type * as <#= it.wildcardTypeImports[wildcardImportModule] #> from "<#= wildcardImportModule #>";\n'
|
|
117
|
+
+ '<#~#>'
|
|
118
|
+
+ '<#?#>');
|
|
119
|
+
const renderNestedComponent = (0, template_1.createTemplate)('// owners:\n'
|
|
120
|
+
+ '<#~ it.owners : owner #>'
|
|
121
|
+
+ '// <#= owner #>\n'
|
|
122
|
+
+ '<#~#>'
|
|
123
|
+
+ 'type <#= it.propsType #> = React.PropsWithChildren<<#= it.renderedType #>>\n'
|
|
124
|
+
+ `const _component<#= it.componentName #> = (props: <#= it.propsType #>) => {
|
|
125
|
+
return React.createElement(NestedOption<<#= it.propsType #>>, {
|
|
126
|
+
...props,
|
|
127
|
+
elementDescriptor: {
|
|
128
|
+
OptionName: "<#= it.optionName #>",`
|
|
129
|
+
+ `<#? it.isCollectionItem #>${template_1.L3}IsCollectionItem: true,`
|
|
130
|
+
+ '<#?#>'
|
|
131
|
+
+ `<#? it.renderedSubscribableOptions #>${template_1.L3}DefaultsProps: {<#= it.renderedSubscribableOptions.join(',') #>${template_1.L3}},`
|
|
132
|
+
+ '<#?#>'
|
|
133
|
+
+ `<#? it.expectedChildren #>${template_1.L3}ExpectedChildren: {`
|
|
134
|
+
+ `<#~ it.expectedChildren : child #>${template_1.L4}<#= child.componentName #>:`
|
|
135
|
+
+ ' { optionName: "<#= child.optionName #>", isCollectionItem: <#= !!child.isCollectionItem #> },'
|
|
136
|
+
+ `<#~#>\b${template_1.L3}},`
|
|
137
|
+
+ '<#?#>'
|
|
138
|
+
+ `<#? it.renderedTemplateProps #>${template_1.L3}TemplateProps: [<#= it.renderedTemplateProps.join(', ') #>],`
|
|
139
|
+
+ '<#?#>'
|
|
140
|
+
+ `<#? it.predefinedProps #>${template_1.L3}PredefinedProps: {`
|
|
141
|
+
+ `<#~ it.predefinedProps : prop #>${template_1.L4}<#= prop.name #>: "<#= prop.value #>",`
|
|
142
|
+
+ `<#~#>\b${template_1.L3}},`
|
|
143
|
+
+ '<#?#>'
|
|
144
|
+
+ `\n },
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const <#= it.componentName #> = Object.assign<typeof _component<#= it.componentName #>, NestedComponentMeta>(_component<#= it.componentName #>, {
|
|
149
|
+
componentType: "option",
|
|
150
|
+
});`);
|
|
151
|
+
const TYPE_PARAMS = '<#? it.typeParams #>'
|
|
152
|
+
+ '<<#= it.typeParams.join(", ") #>>'
|
|
153
|
+
+ '<#?#>';
|
|
154
|
+
const TYPE_PARAMS_WITH_DEFAULTS = '<#? it.typeParams #>'
|
|
155
|
+
+ '<<#= it.typeParams.map(p => `${p} = any`).join(", ") #>>'
|
|
156
|
+
+ '<#?#>';
|
|
157
|
+
const renderOptionsInterface = (0, template_1.createTemplate)('<#? it.renderedNarrowedEvents #>'
|
|
158
|
+
+ 'type ReplaceFieldTypes<TSource, TReplacement> = {\n'
|
|
159
|
+
+ ' [P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];\n'
|
|
160
|
+
+ '}\n\n'
|
|
161
|
+
+ `type <#= it.optionsName #>NarrowedEvents${TYPE_PARAMS_WITH_DEFAULTS} = <#= it.renderedNarrowedEvents #>\n\n`
|
|
162
|
+
+ '<#?#>'
|
|
163
|
+
+ `type <#= it.optionsName #>${TYPE_PARAMS_WITH_DEFAULTS} = React.PropsWithChildren<<#? it.renderedNarrowedEvents #>ReplaceFieldTypes<<#?#>Properties${TYPE_PARAMS}<#? it.renderedNarrowedEvents #>, <#= it.optionsName #>NarrowedEvents${TYPE_PARAMS}><#?#> & IHtmlOptions`
|
|
164
|
+
+ '<#? it.typeParams || it.templates?.length || it.defaultProps?.length || it.onChangeEvents?.length #>'
|
|
165
|
+
+ ' & {\n'
|
|
166
|
+
+ '<#? it.typeParams #>'
|
|
167
|
+
+ ` dataSource?: Properties${TYPE_PARAMS}["dataSource"];\n`
|
|
168
|
+
+ '<#?#>'
|
|
169
|
+
+ '<#~ it.templates :template #>'
|
|
170
|
+
+ ` <#= template.render #>?: ${TYPE_RENDER};\n`
|
|
171
|
+
+ ` <#= template.component #>?: ${TYPE_COMPONENT};\n`
|
|
172
|
+
+ '<#~#>'
|
|
173
|
+
+ '<#~ it.defaultProps :prop #>'
|
|
174
|
+
+ ' <#= prop.name #>?: <#= prop.type #>;\n'
|
|
175
|
+
+ '<#~#>'
|
|
176
|
+
+ '<#~ it.onChangeEvents :prop #>'
|
|
177
|
+
+ ' <#= prop.name #>?: <#= prop.type #>;\n'
|
|
178
|
+
+ '<#~#>'
|
|
179
|
+
+ '}'
|
|
180
|
+
+ '<#?#>'
|
|
181
|
+
+ '>');
|
|
182
|
+
const renderComponent = (0, template_1.createTemplate)(`interface <#= it.refName #>${TYPE_PARAMS_WITH_DEFAULTS} {
|
|
183
|
+
instance: () => <#= it.widgetName #>${TYPE_PARAMS};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
const <#? it.isExtension #>_component<#= it.componentName #><#??#><#= it.componentName #><#?#> = memo(
|
|
187
|
+
forwardRef(
|
|
188
|
+
${TYPE_PARAMS_WITH_DEFAULTS}(props: React.PropsWithChildren<<#= it.optionsName #>${TYPE_PARAMS}>, ref: ForwardedRef<<#= it.refName #>${TYPE_PARAMS}>) => {
|
|
189
|
+
const baseRef = useRef<ComponentRef>(null);
|
|
190
|
+
|
|
191
|
+
useImperativeHandle(ref, () => (
|
|
192
|
+
{
|
|
193
|
+
instance() {
|
|
194
|
+
return baseRef.current?.getInstance();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
), []);\n`
|
|
198
|
+
+ `<#? it.subscribableOptions #>${template_1.L3}const subscribableOptions = useMemo(() => ([<#= it.subscribableOptions.join(',') #>]), []);`
|
|
199
|
+
+ '<#?#>'
|
|
200
|
+
+ `<#? it.independentEvents #>${template_1.L3}const independentEvents = useMemo(() => ([<#= it.independentEvents.join(',') #>]), []);\n`
|
|
201
|
+
+ '<#?#>'
|
|
202
|
+
+ `<#? it.renderedDefaultProps #>${template_1.L3}const defaults = useMemo(() => ({`
|
|
203
|
+
+ '<#~ it.renderedDefaultProps : defaultProp #>'
|
|
204
|
+
+ '<#= defaultProp #>,'
|
|
205
|
+
+ `<#~#>${template_1.L3}}), []);\n`
|
|
206
|
+
+ '<#?#>'
|
|
207
|
+
+ `<#? it.expectedChildren #>${template_1.L3}const expectedChildren = useMemo(() => ({`
|
|
208
|
+
+ `<#~ it.expectedChildren : child #>${template_1.L4}<#= child.componentName #>:`
|
|
209
|
+
+ ' { optionName: "<#= child.optionName #>", isCollectionItem: <#= !!child.isCollectionItem #> },'
|
|
210
|
+
+ `<#~#>\b${template_1.L3}}), []);\n`
|
|
211
|
+
+ '<#?#>'
|
|
212
|
+
+ `<#? it.renderedTemplateProps #>${template_1.L3}const templateProps = useMemo(() => ([`
|
|
213
|
+
+ `<#~ it.renderedTemplateProps : templateProp #>${template_1.L4}<#= templateProp #>,`
|
|
214
|
+
+ `<#~#>${template_1.L3}]), []);\n`
|
|
215
|
+
+ '<#?#>'
|
|
216
|
+
+ `${template_1.L3}return (
|
|
217
|
+
React.createElement(BaseComponent<React.PropsWithChildren<<#= it.optionsName #>${TYPE_PARAMS}>>, {
|
|
218
|
+
WidgetClass: <#= it.widgetName #>,
|
|
219
|
+
ref: baseRef,`
|
|
220
|
+
+ `<#? it.useRequestAnimationFrameFlag #>${template_1.L5}useRequestAnimationFrameFlag: true,`
|
|
221
|
+
+ '<#?#>'
|
|
222
|
+
+ `<#? it.isPortalComponent #>${template_1.L5}isPortalComponent: true,`
|
|
223
|
+
+ '<#?#>'
|
|
224
|
+
+ `<#? it.subscribableOptions #>${template_1.L5}subscribableOptions,`
|
|
225
|
+
+ '<#?#>'
|
|
226
|
+
+ `<#? it.independentEvents #>${template_1.L5}independentEvents,`
|
|
227
|
+
+ '<#?#>'
|
|
228
|
+
+ `<#? it.renderedDefaultProps #>${template_1.L5}defaults,`
|
|
229
|
+
+ '<#?#>'
|
|
230
|
+
+ `<#? it.expectedChildren #>${template_1.L5}expectedChildren,`
|
|
231
|
+
+ '<#?#>'
|
|
232
|
+
+ `<#? it.renderedTemplateProps #>${template_1.L5}templateProps,`
|
|
233
|
+
+ '<#?#>'
|
|
234
|
+
+ `${template_1.L5}...props,`
|
|
235
|
+
+ `${template_1.L4}})${template_1.L3});${template_1.L2}},${template_1.L1}),${template_1.L0}) as ${TYPE_PARAMS_WITH_DEFAULTS}(props: React.PropsWithChildren<<#= it.optionsName #>${TYPE_PARAMS}> & { ref?: Ref<<#= it.refName #>${TYPE_PARAMS}> }) => ReactElement | null;\n`
|
|
236
|
+
+ `<#? it.isExtension #>
|
|
237
|
+
const <#= it.componentName #> = Object.assign<typeof _component<#= it.componentName #>, NestedComponentMeta>(_component<#= it.componentName #>, {
|
|
238
|
+
componentType: "extension",
|
|
239
|
+
});
|
|
240
|
+
<#?#>`);
|
|
241
|
+
function renderExports(exportsNames) {
|
|
242
|
+
return exportsNames
|
|
243
|
+
.map((exportName) => getIndent(1) + exportName)
|
|
244
|
+
.join(',\n');
|
|
245
|
+
}
|
|
246
|
+
function renderReExports(componentName, exportPath) {
|
|
247
|
+
return (`import type * as ${componentName}Types from '${exportPath}_types';\n` +
|
|
248
|
+
`export { ${componentName}Types };`);
|
|
249
|
+
}
|
|
250
|
+
function formatTemplatePropName(name, suffix) {
|
|
251
|
+
return (0, helpers_1.lowercaseFirst)(name.replace(/template$/i, suffix));
|
|
252
|
+
}
|
|
253
|
+
function createTemplateDto(templates, indent) {
|
|
254
|
+
return templates
|
|
255
|
+
? templates.map((actualOptionName) => ({
|
|
256
|
+
actualOptionName,
|
|
257
|
+
render: formatTemplatePropName(actualOptionName, 'Render'),
|
|
258
|
+
component: formatTemplatePropName(actualOptionName, 'Component'),
|
|
259
|
+
additionalIndent: indent,
|
|
260
|
+
}))
|
|
261
|
+
: undefined;
|
|
262
|
+
}
|
|
263
|
+
function buildPropsTypeName(componentName) {
|
|
264
|
+
return `I${componentName}Props`;
|
|
265
|
+
}
|
|
266
|
+
function generate(component, generateReexports = false, customTypeImports, defaultTypeImports, wildcardTypeImports) {
|
|
267
|
+
var _a, _b, _c, _d, _e, _f;
|
|
268
|
+
const nestedComponents = component.nestedComponents
|
|
269
|
+
? component.nestedComponents
|
|
270
|
+
.sort((0, helpers_1.createKeyComparator)((o) => o.componentName))
|
|
271
|
+
.map((c) => {
|
|
272
|
+
const options = [...c.options];
|
|
273
|
+
const nestedSubscribableOptions = options.filter((o) => o.isSubscribable);
|
|
274
|
+
let renderedSubscribableOptions;
|
|
275
|
+
if ((0, helpers_1.isNotEmptyArray)(nestedSubscribableOptions)) {
|
|
276
|
+
nestedSubscribableOptions.forEach((o) => {
|
|
277
|
+
options.push({
|
|
278
|
+
...o,
|
|
279
|
+
name: `default${(0, helpers_1.uppercaseFirst)(o.name)}`,
|
|
280
|
+
}, {
|
|
281
|
+
name: `on${(0, helpers_1.uppercaseFirst)(o.name)}Change`,
|
|
282
|
+
type: `(value: ${o.type}) => void`,
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
renderedSubscribableOptions = nestedSubscribableOptions.map((o) => renderObjectEntry({
|
|
286
|
+
key: `default${(0, helpers_1.uppercaseFirst)(o.name)}`,
|
|
287
|
+
value: o.name,
|
|
288
|
+
indent: template_1.TAB4,
|
|
289
|
+
}));
|
|
290
|
+
}
|
|
291
|
+
const nestedTemplates = createTemplateDto(c.templates, template_1.TAB2);
|
|
292
|
+
if (nestedTemplates) {
|
|
293
|
+
nestedTemplates.forEach((t) => {
|
|
294
|
+
options.push({
|
|
295
|
+
name: t.render,
|
|
296
|
+
type: TYPE_RENDER,
|
|
297
|
+
}, {
|
|
298
|
+
name: t.component,
|
|
299
|
+
type: TYPE_COMPONENT,
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
let predefinedProps;
|
|
304
|
+
if (c.predefinedProps) {
|
|
305
|
+
predefinedProps = [];
|
|
306
|
+
if (c.predefinedProps) {
|
|
307
|
+
predefinedProps = [];
|
|
308
|
+
Object.entries(c.predefinedProps).forEach((prop) => {
|
|
309
|
+
const [name, value] = prop;
|
|
310
|
+
predefinedProps === null || predefinedProps === void 0 ? void 0 : predefinedProps.push({ name, value });
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
return {
|
|
315
|
+
componentName: c.componentName,
|
|
316
|
+
propsType: buildPropsTypeName(c.componentName),
|
|
317
|
+
optionName: c.optionName,
|
|
318
|
+
ownerName: c.owners,
|
|
319
|
+
renderedType: renderObject(options, 0),
|
|
320
|
+
renderedSubscribableOptions,
|
|
321
|
+
renderedTemplateProps: nestedTemplates && nestedTemplates.map(renderTemplateOption),
|
|
322
|
+
isCollectionItem: c.isCollectionItem,
|
|
323
|
+
predefinedProps,
|
|
324
|
+
expectedChildren: c.expectedChildren,
|
|
325
|
+
owners: c.owners,
|
|
326
|
+
};
|
|
327
|
+
})
|
|
328
|
+
: undefined;
|
|
329
|
+
const optionsName = `I${component.name}Options`;
|
|
330
|
+
const refName = `${component.name}Ref`;
|
|
331
|
+
const exportNames = [component.name, optionsName, refName];
|
|
332
|
+
if (component.nestedComponents &&
|
|
333
|
+
(0, helpers_1.isNotEmptyArray)(component.nestedComponents)) {
|
|
334
|
+
component.nestedComponents.forEach((c) => {
|
|
335
|
+
exportNames.push(c.componentName);
|
|
336
|
+
exportNames.push(buildPropsTypeName(c.componentName));
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
const templates = createTemplateDto(component.templates, template_1.TAB3);
|
|
340
|
+
const firstLevelSubscribableOptions = (_a = component.subscribableOptions) === null || _a === void 0 ? void 0 : _a.filter(({ name }) => !name.includes('.'));
|
|
341
|
+
const defaultProps = firstLevelSubscribableOptions
|
|
342
|
+
? firstLevelSubscribableOptions.map((o) => ({
|
|
343
|
+
name: `default${(0, helpers_1.uppercaseFirst)(o.name)}`,
|
|
344
|
+
type: o.type,
|
|
345
|
+
actualOptionName: o.name,
|
|
346
|
+
}))
|
|
347
|
+
: undefined;
|
|
348
|
+
const onChangeEvents = firstLevelSubscribableOptions
|
|
349
|
+
? firstLevelSubscribableOptions.map((o) => ({
|
|
350
|
+
name: `on${(0, helpers_1.uppercaseFirst)(o.name)}Change`,
|
|
351
|
+
type: `(value: ${o.type}) => void`,
|
|
352
|
+
actualOptionName: o.name,
|
|
353
|
+
}))
|
|
354
|
+
: undefined;
|
|
355
|
+
const widgetName = `dx${(0, helpers_1.uppercaseFirst)(component.name)}`;
|
|
356
|
+
const hasExplicitTypes = !!((_b = component.optionsTypeParams) === null || _b === void 0 ? void 0 : _b.length);
|
|
357
|
+
const typeParams = ((_c = component.optionsTypeParams) === null || _c === void 0 ? void 0 : _c.length)
|
|
358
|
+
? component.optionsTypeParams
|
|
359
|
+
: undefined;
|
|
360
|
+
return renderModule({
|
|
361
|
+
renderedImports: renderImports({
|
|
362
|
+
dxExportPath: component.dxExportPath,
|
|
363
|
+
htmlOptionsPath: component.baseComponentPath,
|
|
364
|
+
isExtensionComponent: component.isExtension,
|
|
365
|
+
baseComponentPath: component.isExtension
|
|
366
|
+
? component.extensionComponentPath
|
|
367
|
+
: component.baseComponentPath,
|
|
368
|
+
baseComponentName: component.isExtension
|
|
369
|
+
? 'ExtensionComponent'
|
|
370
|
+
: 'Component',
|
|
371
|
+
widgetName,
|
|
372
|
+
hasExplicitTypes,
|
|
373
|
+
configComponentPath: (0, helpers_1.isNotEmptyArray)(nestedComponents)
|
|
374
|
+
? component.configComponentPath
|
|
375
|
+
: undefined,
|
|
376
|
+
customTypeImports,
|
|
377
|
+
defaultTypeImports,
|
|
378
|
+
wildcardTypeImports,
|
|
379
|
+
}),
|
|
380
|
+
renderedOptionsInterface: renderOptionsInterface({
|
|
381
|
+
optionsName,
|
|
382
|
+
defaultProps: defaultProps || [],
|
|
383
|
+
onChangeEvents: onChangeEvents || [],
|
|
384
|
+
templates: templates || [],
|
|
385
|
+
typeParams,
|
|
386
|
+
renderedNarrowedEvents: component.narrowedEvents && component.narrowedEvents.length
|
|
387
|
+
? renderNarrowedEvents(component.narrowedEvents)
|
|
388
|
+
: undefined,
|
|
389
|
+
}),
|
|
390
|
+
renderedComponent: renderComponent({
|
|
391
|
+
componentName: component.name,
|
|
392
|
+
widgetName,
|
|
393
|
+
refName,
|
|
394
|
+
optionsName,
|
|
395
|
+
subscribableOptions: (_d = component.subscribableOptions) === null || _d === void 0 ? void 0 : _d.map((o) => renderStringEntry(o.name)),
|
|
396
|
+
independentEvents: (_e = component.independentEvents) === null || _e === void 0 ? void 0 : _e.map((f) => renderStringEntry(f.name)),
|
|
397
|
+
renderedTemplateProps: templates && templates.map(renderTemplateOption),
|
|
398
|
+
renderedDefaultProps: defaultProps &&
|
|
399
|
+
defaultProps.map((o) => renderObjectEntry({
|
|
400
|
+
key: o.name,
|
|
401
|
+
value: o.actualOptionName,
|
|
402
|
+
indent: template_1.TAB4,
|
|
403
|
+
})),
|
|
404
|
+
expectedChildren: component.expectedChildren,
|
|
405
|
+
useRequestAnimationFrameFlag: USE_REQUEST_ANIMATION_FRAME.has(widgetName),
|
|
406
|
+
isPortalComponent: PORTAL_COMPONENTS.has(widgetName),
|
|
407
|
+
typeParams: ((_f = component.optionsTypeParams) === null || _f === void 0 ? void 0 : _f.length)
|
|
408
|
+
? component.optionsTypeParams
|
|
409
|
+
: undefined,
|
|
410
|
+
isExtension: component.isExtension,
|
|
411
|
+
}),
|
|
412
|
+
renderedNestedComponents: nestedComponents && nestedComponents.map(renderNestedComponent),
|
|
413
|
+
defaultExport: component.name,
|
|
414
|
+
renderedExports: renderExports(exportNames),
|
|
415
|
+
renderedReExports: generateReexports && component.containsReexports
|
|
416
|
+
? renderReExports(component.name, component.dxExportPath)
|
|
417
|
+
: undefined,
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
exports.default = generate;
|
|
421
|
+
//# sourceMappingURL=component-generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-generator.js","sourceRoot":"","sources":["../../../ts/react-components-generator/component-generator.ts"],"names":[],"mappings":";;AAAA,8DAK0C;AAC1C,gEAW2C;AA+D3C,MAAM,WAAW,GAAG,qCAAqC,CAAC;AAC1D,MAAM,cAAc,GAA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AAY,CAAC;YACzD,CAAC,CAAC,SAAS;KAChB,CAAC,CAAC;AACL,CAAC;AAED,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { IComponent, IIndependentEvents, INestedComponent, IOption, ISubscribableOption } from './component-generator';
|
|
2
|
+
import type { MetadataAugmentation } from '../components-generation/metadata-augmentation';
|
|
3
|
+
import type { ComplexProp, CustomType, Model, Prop, TypeDescr, Widget } from '../components-generation/models/imd';
|
|
4
|
+
import type { TemplatingOptions } from '../components-generation/template';
|
|
5
|
+
import type { UnifiedExternalConfig } from '../config';
|
|
6
|
+
export type TypeResolver = (typeDescriptor: TypeDescr) => string;
|
|
7
|
+
type TypeGenerationOptions = {
|
|
8
|
+
generateReexports?: boolean;
|
|
9
|
+
generateCustomTypes?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function mapSubscribableOption(prop: Prop, typeResolver?: TypeResolver): ISubscribableOption;
|
|
12
|
+
export declare function mapIndependentEvents(prop: Prop): IIndependentEvents;
|
|
13
|
+
export declare function mapRootComponentOption(prop: Prop, typeResolver: TypeResolver): IOption;
|
|
14
|
+
export declare function mapConfigComponentOption(prop: Prop, typeResolver: TypeResolver): IOption;
|
|
15
|
+
export declare function mapOption(prop: Prop, trimTypeParams: boolean, typeResolver?: TypeResolver): IOption;
|
|
16
|
+
export declare function extractNestedComponents(props: ComplexProp[], rawWidgetName: string, widgetName: string, typeResolver?: TypeResolver): INestedComponent[];
|
|
17
|
+
export declare function collectIndependentEvents(options: Prop[]): Prop[];
|
|
18
|
+
export declare function collectSubscribableRecursively(options: Prop[], prefix?: string): Prop[];
|
|
19
|
+
export declare function collectNestedSubscribable(nestedComponents: INestedComponent[] | null, widgetName: string): ISubscribableOption[];
|
|
20
|
+
export declare function mapWidget(raw: Widget, baseComponent: string, extensionComponent: string, configComponent: string, customTypes: CustomType[], widgetPackage: string, metadataAugmentation: MetadataAugmentation, typeGenerationOptions?: TypeGenerationOptions): {
|
|
21
|
+
fileName: string;
|
|
22
|
+
component: IComponent;
|
|
23
|
+
customTypeImports?: Record<string, Array<string>>;
|
|
24
|
+
defaultTypeImports?: Record<string, string>;
|
|
25
|
+
wildcardTypeImports?: Record<string, string>;
|
|
26
|
+
};
|
|
27
|
+
export declare function generate({ metaData: rawData, components: { baseComponent, extensionComponent, configComponent }, out, widgetsPackage, typeGenerationOptions, templatingOptions, unifiedConfig, }: {
|
|
28
|
+
metaData: Model;
|
|
29
|
+
components: {
|
|
30
|
+
baseComponent: string;
|
|
31
|
+
extensionComponent: string;
|
|
32
|
+
configComponent: string;
|
|
33
|
+
};
|
|
34
|
+
out: {
|
|
35
|
+
componentsDir: string;
|
|
36
|
+
indexFileName: string;
|
|
37
|
+
};
|
|
38
|
+
widgetsPackage: string;
|
|
39
|
+
typeGenerationOptions?: TypeGenerationOptions;
|
|
40
|
+
templatingOptions?: TemplatingOptions;
|
|
41
|
+
unifiedConfig?: UnifiedExternalConfig;
|
|
42
|
+
}): void;
|
|
43
|
+
export {};
|