devextreme-internal-tools 16.0.0-beta.8 → 16.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/bin/DevExtreme.Declarations.Discoverer.dll +0 -0
- package/bin/DevExtreme.Declarations.Discoverer.exe +0 -0
- package/bin/DevExtreme.Declarations.IntegrityValidator.dll +0 -0
- package/bin/DevExtreme.Declarations.IntegrityValidator.exe +0 -0
- package/bin/DevExtreme.Declarations.dll +0 -0
- package/bin/DevExtreme.Descriptions.Injector.dll +0 -0
- package/bin/DevExtreme.Descriptions.Injector.exe +0 -0
- package/bin/DevExtreme.Infrastructure.dll +0 -0
- package/bin/DevExtreme.IntegrationDataGenerator.dll +0 -0
- package/bin/DevExtreme.IntegrationDataGenerator.exe +0 -0
- package/bin/DevExtreme.NgSmdGenerator.dll +0 -0
- package/bin/DevExtreme.NgSmdGenerator.exe +0 -0
- package/bin/DevExtreme.SmdCommon.dll +0 -0
- package/bin/DevExtreme.StrongMetaDataGenerator.dll +0 -0
- package/bin/DevExtreme.StrongMetaDataGenerator.exe +0 -0
- package/bin/DevExtreme.Topics.ExtraFilesGenerator.dll +0 -0
- package/bin/DevExtreme.Topics.ExtraFilesGenerator.exe +0 -0
- package/bin/DevExtreme.Topics.Generator.dll +0 -0
- package/bin/DevExtreme.Topics.Generator.exe +0 -0
- package/bin/DevExtreme.Topics.ModulesGuideValidator.dll +0 -0
- package/bin/DevExtreme.Topics.ModulesGuideValidator.exe +0 -0
- package/bin/DevExtreme.Topics.Validation.dll +0 -0
- package/bin/DevExtreme.Topics.Validation.exe +0 -0
- package/bin/DevExtreme.Topics.dll +0 -0
- package/bin/DevExtreme.WebSite.CompactDocsCreator.dll +0 -0
- package/bin/DevExtreme.WebSite.CompactDocsCreator.exe +0 -0
- package/bin/DevExtreme.WebSite.ContentMapCreator.dll +0 -0
- package/bin/DevExtreme.WebSite.ContentMapCreator.exe +0 -0
- package/bin/DevExtreme.WebSite.ContentMaps.dll +0 -0
- package/bin/DevExtreme.WebSite.LinksConverter.dll +0 -0
- package/bin/DevExtreme.WebSite.LinksConverter.exe +0 -0
- package/bin/DevExtreme.WebSite.SyntaxDataGenerator.dll +0 -0
- package/bin/DevExtreme.WebSite.SyntaxDataGenerator.exe +0 -0
- package/integration-data-model.d.ts +1 -0
- package/package.json +1 -1
- package/ts/angular-components-generator/common-reexports-generator.d.ts +10 -2
- package/ts/angular-components-generator/common-reexports-generator.js +26 -26
- package/ts/angular-components-generator/common-reexports-generator.js.map +1 -1
- package/ts/angular-components-generator/facade-generator.d.ts +8 -1
- package/ts/angular-components-generator/facade-generator.js +12 -5
- package/ts/angular-components-generator/facade-generator.js.map +1 -1
- package/ts/angular-components-generator/metadata-generator.d.ts +4 -4
- package/ts/angular-components-generator/metadata-generator.js +213 -73
- package/ts/angular-components-generator/metadata-generator.js.map +1 -1
- package/ts/angular-components-generator/templates/base-nested-component.tst +2 -1
- package/ts/angular-components-generator/templates/component.tst +3 -3
- package/ts/angular-components-generator/templates/nested-component.tst +2 -2
- package/ts/common/ts-type-resolving.js +14 -3
- package/ts/common/ts-type-resolving.js.map +1 -1
- package/ts/components-generation/aggregated-reexports-generator.d.ts +9 -0
- package/ts/components-generation/aggregated-reexports-generator.js +43 -0
- package/ts/components-generation/aggregated-reexports-generator.js.map +1 -0
- package/ts/components-generation/common-reexports-generator.d.ts +9 -3
- package/ts/components-generation/common-reexports-generator.js +52 -19
- package/ts/components-generation/common-reexports-generator.js.map +1 -1
- package/ts/components-generation/file-helpers.d.ts +9 -0
- package/ts/components-generation/file-helpers.js +27 -0
- package/ts/components-generation/file-helpers.js.map +1 -0
- package/ts/{react-components-generator → components-generation}/helpers.d.ts +2 -0
- package/ts/{react-components-generator → components-generation}/helpers.js +17 -1
- package/ts/components-generation/helpers.js.map +1 -0
- package/ts/{react-components-generator → components-generation}/import-overrides.json +11 -3
- package/ts/components-generation/index-generator.d.ts +4 -0
- package/ts/components-generation/index-generator.js +9 -0
- package/ts/components-generation/index-generator.js.map +1 -0
- package/ts/components-generation/reexports-generator.d.ts +5 -3
- package/ts/components-generation/reexports-generator.js +1 -1
- package/ts/components-generation/reexports-generator.js.map +1 -1
- package/ts/components-generation/template.d.ts +4 -0
- package/ts/components-generation/template.js.map +1 -1
- package/ts/components-generation/type-resolving.d.ts +39 -0
- package/ts/components-generation/type-resolving.js +192 -0
- package/ts/components-generation/type-resolving.js.map +1 -0
- package/ts/discoverer/parsing.js +1 -12
- package/ts/discoverer/parsing.js.map +1 -1
- package/ts/react-components-generator/component-generator.js +1 -1
- package/ts/react-components-generator/component-generator.js.map +1 -1
- package/ts/react-components-generator/converter.js +1 -1
- package/ts/react-components-generator/converter.js.map +1 -1
- package/ts/react-components-generator/generator.d.ts +3 -20
- package/ts/react-components-generator/generator.js +24 -160
- package/ts/react-components-generator/generator.js.map +1 -1
- package/ts/vue-components-generator/component-generator.d.ts +6 -1
- package/ts/vue-components-generator/component-generator.js +60 -12
- package/ts/vue-components-generator/component-generator.js.map +1 -1
- package/ts/vue-components-generator/converter.d.ts +19 -1
- package/ts/vue-components-generator/converter.js +74 -17
- package/ts/vue-components-generator/converter.js.map +1 -1
- package/ts/vue-components-generator/generator.d.ts +2 -1
- package/ts/vue-components-generator/generator.js +56 -22
- package/ts/vue-components-generator/generator.js.map +1 -1
- package/ts/react-components-generator/helpers.js.map +0 -1
- package/ts/react-components-generator/index-generator.d.ts +0 -3
- package/ts/react-components-generator/index-generator.js +0 -22
- package/ts/react-components-generator/index-generator.js.map +0 -1
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/package.json
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
+
import { IModel } from '../../integration-data-model';
|
2
|
+
import { TemplatingOptions } from '../components-generation/template';
|
3
|
+
interface Config {
|
4
|
+
metadata: IModel;
|
5
|
+
outputPath: string;
|
6
|
+
widgetsPackage: string;
|
7
|
+
templatingOptions: TemplatingOptions;
|
8
|
+
}
|
1
9
|
export declare class CommonReexportsGenerator {
|
2
|
-
generate(
|
3
|
-
private generateReexports;
|
10
|
+
static generate({ metadata, widgetsPackage, outputPath, templatingOptions, }: Config): void;
|
4
11
|
}
|
12
|
+
export {};
|
@@ -3,40 +3,40 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommonReexportsGenerator = void 0;
|
4
4
|
var fs_1 = require("fs");
|
5
5
|
var path_1 = require("path");
|
6
|
-
var
|
7
|
-
var
|
6
|
+
var common_reexports_generator_1 = require("../components-generation/common-reexports-generator");
|
7
|
+
var logging_1 = require("../logging");
|
8
|
+
var file_helpers_1 = require("../components-generation/file-helpers");
|
8
9
|
var CommonReexportsGenerator = (function () {
|
9
10
|
function CommonReexportsGenerator() {
|
10
11
|
}
|
11
|
-
CommonReexportsGenerator.
|
12
|
-
var
|
13
|
-
|
14
|
-
|
15
|
-
var widgetsPackage = (_a = config.widgetsPackage) !== null && _a !== void 0 ? _a : 'devextreme';
|
16
|
-
if (!metadata.CommonReexports) {
|
12
|
+
CommonReexportsGenerator.generate = function (_a) {
|
13
|
+
var metadata = _a.metadata, _b = _a.widgetsPackage, widgetsPackage = _b === void 0 ? 'devextreme' : _b, outputPath = _a.outputPath, _c = _a.templatingOptions, templatingOptions = _c === void 0 ? { quotes: 'single', excplicitIndexInImports: false } : _c;
|
14
|
+
if (!metadata) {
|
15
|
+
(0, logging_1.log)('Metadata is undefined', { lvl: 'error' });
|
17
16
|
return;
|
18
17
|
}
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
(0, fs_1.mkdirSync)(commonPath);
|
18
|
+
if (!metadata.commonReexports) {
|
19
|
+
(0, logging_1.log)('commonReexports not found', { lvl: 'error' });
|
20
|
+
return;
|
23
21
|
}
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
}
|
33
|
-
|
22
|
+
(0, common_reexports_generator_1.generateCommonReexports)({
|
23
|
+
commonReexports: metadata.commonReexports,
|
24
|
+
widgetsPackage: widgetsPackage,
|
25
|
+
templatingOptions: templatingOptions,
|
26
|
+
writeFile: function (path, content) {
|
27
|
+
var dirPath = (0, path_1.join)(outputPath, path);
|
28
|
+
var indexFilePath = (0, path_1.join)(dirPath, 'index.ts');
|
29
|
+
var packageFilePath = (0, path_1.join)(dirPath, 'ng-package.json');
|
30
|
+
(0, fs_1.mkdirSync)(dirPath, { recursive: true });
|
31
|
+
(0, file_helpers_1.writeFileSafe)(indexFilePath, content);
|
32
|
+
(0, file_helpers_1.writeFileSafe)(packageFilePath, JSON.stringify({
|
33
|
+
lib: {
|
34
|
+
entryFile: 'index.ts',
|
35
|
+
},
|
36
|
+
}, null, ' '));
|
37
|
+
},
|
34
38
|
});
|
35
39
|
};
|
36
|
-
CommonReexportsGenerator.prototype.generateReexports = function (module, reexports) {
|
37
|
-
var result = render({ module: module, reexports: reexports });
|
38
|
-
return result;
|
39
|
-
};
|
40
40
|
return CommonReexportsGenerator;
|
41
41
|
}());
|
42
42
|
exports.CommonReexportsGenerator = CommonReexportsGenerator;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common-reexports-generator.js","sourceRoot":"","sources":["../../../ts/angular-components-generator/common-reexports-generator.ts"],"names":[],"mappings":";;;AAAA,yBAEY;
|
1
|
+
{"version":3,"file":"common-reexports-generator.js","sourceRoot":"","sources":["../../../ts/angular-components-generator/common-reexports-generator.ts"],"names":[],"mappings":";;;AAAA,yBAEY;AAEZ,6BAEc;AAEd,kGAE6D;AAE7D,sCAAiC;AACjC,sEAAsE;AAUtE;IAAA;IAqCA,C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C;AArCY,4DAAwB"}
|
@@ -1,4 +1,11 @@
|
|
1
|
+
import { TemplatingOptions } from '../components-generation/template';
|
2
|
+
interface Config {
|
3
|
+
facades: string;
|
4
|
+
commonImports: string[];
|
5
|
+
templatingOptions?: TemplatingOptions;
|
6
|
+
}
|
1
7
|
export declare class FacadeGenerator {
|
2
8
|
private encoding;
|
3
|
-
generate(
|
9
|
+
generate({ facades, commonImports, templatingOptions, }: Config): void;
|
4
10
|
}
|
11
|
+
export {};
|
@@ -6,19 +6,25 @@ var path = require("path");
|
|
6
6
|
var inflector = require("inflector-js");
|
7
7
|
var logger_1 = require("./logger");
|
8
8
|
var reexports_generator_1 = require("../components-generation/reexports-generator");
|
9
|
+
var common_reexports_generator_1 = require("../components-generation/common-reexports-generator");
|
10
|
+
var defaultTemplatingOptions = {
|
11
|
+
quotes: 'single',
|
12
|
+
excplicitIndexInImports: false,
|
13
|
+
};
|
9
14
|
var FacadeGenerator = (function () {
|
10
15
|
function FacadeGenerator() {
|
11
16
|
this.encoding = 'utf8';
|
12
17
|
}
|
13
|
-
FacadeGenerator.prototype.generate = function (
|
18
|
+
FacadeGenerator.prototype.generate = function (_a) {
|
14
19
|
var _this = this;
|
15
|
-
|
20
|
+
var facades = _a.facades, commonImports = _a.commonImports, _b = _a.templatingOptions, templatingOptions = _b === void 0 ? defaultTemplatingOptions : _b;
|
21
|
+
Object.keys(facades).forEach(function (facadeFilePath) {
|
16
22
|
(0, logger_1.default)("Generate facade: ".concat(facadeFilePath));
|
17
|
-
var facadeConfig =
|
23
|
+
var facadeConfig = facades[facadeFilePath];
|
18
24
|
var resultContent = '';
|
19
25
|
resultContent += 'export * from \'devextreme-angular/core\';\n';
|
20
26
|
resultContent += 'export * from \'./ui/all\';\n';
|
21
|
-
|
27
|
+
commonImports.forEach(function (i) {
|
22
28
|
resultContent += "import '".concat(i, "';\n");
|
23
29
|
});
|
24
30
|
var reexports = fs.readdirSync(facadeConfig.sourceDirectories[0])
|
@@ -33,7 +39,8 @@ var FacadeGenerator = (function () {
|
|
33
39
|
path: "devextreme-angular/ui/".concat(name),
|
34
40
|
};
|
35
41
|
});
|
36
|
-
resultContent += (0, reexports_generator_1.default)(reexports, {
|
42
|
+
resultContent += (0, reexports_generator_1.default)(reexports, { templatingOptions: templatingOptions });
|
43
|
+
resultContent += (0, common_reexports_generator_1.generateRootCommonReexport)(templatingOptions);
|
37
44
|
(0, logger_1.default)("Write result to ".concat(facadeFilePath));
|
38
45
|
fs.writeFileSync(facadeFilePath, resultContent, { encoding: _this.encoding });
|
39
46
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"facade-generator.js","sourceRoot":"","sources":["../../../ts/angular-components-generator/facade-generator.ts"],"names":[],"mappings":";;;AAAA,uBAAyB;AACzB,2BAA6B;AAC7B,wCAA0C;AAC1C,mCAA8B;AAE9B,oFAA6E;
|
1
|
+
{"version":3,"file":"facade-generator.js","sourceRoot":"","sources":["../../../ts/angular-components-generator/facade-generator.ts"],"names":[],"mappings":";;;AAAA,uBAAyB;AACzB,2BAA6B;AAC7B,wCAA0C;AAC1C,mCAA8B;AAE9B,oFAA6E;AAC7E,kGAAiG;AASjG,IAAM,wBAAwB,GAAsB;IAClD,MAAM,EAAE,QAAQ;IAChB,uBAAuB,EAAE,KAAK;CAC/B,CAAC;AAEF;IAAA;QACU,aAAQ,GAAmB,MAAM,CAAC;IAyC5C,CAAC;IAvCC,kCAAQ,GAAR,UAAS,EAIA;QAJT,iBAsCC;YArCC,OAAO,aAAA,EACP,aAAa,mBAAA,EACb,yBAA4C,EAA5C,iBAAiB,mBAAG,wBAAwB,KAAA;QAE5C,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,UAAC,cAAc;YAC1C,IAAA,gBAAM,EAAC,2BAAoB,cAAc,CAAE,CAAC,CAAC;YAC7C,IAAM,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;YAC7C,IAAI,aAAa,GAAG,EAAE,CAAC;YA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C,CAAC,CAAC;IACL,CAAC;IACH,sBAAC;AAAD,CAAC,AA1CD,IA0CC;AA1CY,0CAAe;AA4C5B,SAAS,UAAU,CAAC,IAAY;IAC9B,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACvB,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KACjC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,EAArB,CAAqB,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpE,CAAC"}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { Metadata } from './metadata-model';
|
2
|
+
import { IModel } from '../../integration-data-model';
|
2
3
|
interface Config {
|
3
4
|
sourceMetadataFilePath: string;
|
4
|
-
|
5
|
+
imdMetadataFilePath: string;
|
5
6
|
outputFolderPath: string;
|
6
7
|
nestedPathPart: string;
|
7
8
|
basePathPart: string;
|
@@ -10,7 +11,7 @@ interface Config {
|
|
10
11
|
generateReexports: boolean;
|
11
12
|
}
|
12
13
|
export interface IObjectStore {
|
13
|
-
read(name: string): Metadata;
|
14
|
+
read(name: string): Metadata | IModel;
|
14
15
|
write(name: string, data: Record<string, any>): void;
|
15
16
|
}
|
16
17
|
export declare class FSObjectStore implements IObjectStore {
|
@@ -34,9 +35,8 @@ export declare class ComponentMetadataGenerator {
|
|
34
35
|
private generateComplexOptionByType;
|
35
36
|
private generateComplexOption;
|
36
37
|
private getBaseComponentPath;
|
37
|
-
private getNewNestedClassname;
|
38
38
|
private mergeNestedComponents;
|
39
|
-
private
|
39
|
+
private generateIMDComponentNestedOptions;
|
40
40
|
private prepareCommonNestedOptionsMetadata;
|
41
41
|
private writeNestedOptionsMetadata;
|
42
42
|
}
|