devextreme-schematics 1.7.1 → 1.8.0-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +7 -7
- package/src/add-app-template/schema.json +2 -2
- package/src/add-layout/files/devextreme.json +30 -1
- package/src/add-layout/files/src/app/__name__.component.scss +0 -2
- package/src/add-layout/files/src/app/__name__.component.ts +4 -2
- package/src/add-layout/files/src/app/layouts/side-nav-inner-toolbar/side-nav-inner-toolbar.component.html +1 -1
- package/src/add-layout/files/src/app/layouts/side-nav-inner-toolbar/side-nav-inner-toolbar.component.scss +0 -6
- package/src/add-layout/files/src/app/layouts/side-nav-inner-toolbar/side-nav-inner-toolbar.component.ts +14 -6
- package/src/add-layout/files/src/app/layouts/side-nav-outer-toolbar/side-nav-outer-toolbar.component.html +1 -1
- package/src/add-layout/files/src/app/layouts/side-nav-outer-toolbar/side-nav-outer-toolbar.component.scss +1 -1
- package/src/add-layout/files/src/app/layouts/side-nav-outer-toolbar/side-nav-outer-toolbar.component.ts +13 -6
- package/src/add-layout/files/src/app/layouts/single-card/single-card.component.scss +2 -4
- package/src/add-layout/files/src/app/layouts/single-card/single-card.component.ts +2 -1
- package/src/add-layout/files/src/app/not-authorized-container.ts +2 -1
- package/src/add-layout/files/src/app/shared/components/change-password-form/change-password-form.component.ts +2 -1
- package/src/add-layout/files/src/app/shared/components/create-account-form/create-account-form.component.scss +3 -5
- package/src/add-layout/files/src/app/shared/components/create-account-form/create-account-form.component.ts +2 -1
- package/src/add-layout/files/src/app/shared/components/footer/footer.component.scss +7 -4
- package/src/add-layout/files/src/app/shared/components/footer/footer.component.ts +2 -1
- package/src/add-layout/files/src/app/shared/components/header/header.component.html +9 -10
- package/src/add-layout/files/src/app/shared/components/header/header.component.scss +4 -7
- package/src/add-layout/files/src/app/shared/components/header/header.component.ts +5 -2
- package/src/add-layout/files/src/app/shared/components/login-form/login-form.component.scss +1 -4
- package/src/add-layout/files/src/app/shared/components/login-form/login-form.component.ts +2 -1
- package/src/add-layout/files/src/app/shared/components/reset-password-form/reset-password-form.component.scss +1 -3
- package/src/add-layout/files/src/app/shared/components/reset-password-form/reset-password-form.component.ts +2 -1
- package/src/add-layout/files/src/app/shared/components/side-navigation-menu/side-navigation-menu.component.scss +13 -39
- package/src/add-layout/files/src/app/shared/components/side-navigation-menu/side-navigation-menu.component.ts +2 -1
- package/src/add-layout/files/src/app/shared/components/theme-switcher/theme-switcher.component.ts +33 -0
- package/src/add-layout/files/src/app/shared/components/user-panel/user-panel.component.html +13 -18
- package/src/add-layout/files/src/app/shared/components/user-panel/user-panel.component.scss +38 -54
- package/src/add-layout/files/src/app/shared/components/user-panel/user-panel.component.ts +5 -8
- package/src/add-layout/files/src/app/shared/services/index.ts +1 -0
- package/src/add-layout/files/src/app/shared/services/theme.service.ts +49 -0
- package/src/add-layout/files/src/app/unauthenticated-content.ts +2 -1
- package/src/add-layout/files/src/dx-styles.scss +76 -52
- package/src/add-layout/files/src/themes/metadata.additional.dark.json +11 -0
- package/src/add-layout/files/src/themes/metadata.additional.json +1 -1
- package/src/add-layout/files/src/themes/metadata.base.dark.json +8 -0
- package/src/add-layout/files/src/themes/metadata.base.json +1 -1
- package/src/add-layout/files/src/variables.scss +37 -0
- package/src/add-layout/index.js +3 -0
- package/src/add-layout/index.js.map +1 -1
- package/src/add-layout/index.ts +3 -0
- package/src/add-layout/index_spec.js +12 -9
- package/src/add-layout/index_spec.js.map +1 -1
- package/src/add-layout/index_spec.ts +14 -9
- package/src/add-layout/schema.json +1 -1
- package/src/add-sample-views/files/pages/home/home.component.html +182 -34
- package/src/add-sample-views/files/pages/home/home.component.scss +19 -16
- package/src/add-sample-views/files/pages/home/home.component.ts +2 -1
- package/src/add-sample-views/files/pages/profile/profile.component.html +1 -1
- package/src/add-sample-views/files/pages/profile/profile.component.ts +2 -1
- package/src/add-sample-views/files/pages/tasks/tasks.component.html +3 -2
- package/src/add-sample-views/files/pages/tasks/tasks.component.scss +3 -0
- package/src/add-sample-views/files/pages/tasks/tasks.component.ts +3 -1
- package/src/add-sample-views/index_spec.js +2 -1
- package/src/add-sample-views/index_spec.js.map +1 -1
- package/src/add-sample-views/index_spec.ts +2 -1
- package/src/add-view/index.js +38 -11
- package/src/add-view/index.js.map +1 -1
- package/src/add-view/index.ts +41 -14
- package/src/add-view/index_spec.js +7 -4
- package/src/add-view/index_spec.js.map +1 -1
- package/src/add-view/index_spec.ts +7 -4
- package/src/install/index_spec.js +3 -2
- package/src/install/index_spec.js.map +1 -1
- package/src/install/index_spec.ts +3 -2
- package/src/install/schema.json +1 -1
- package/src/utility/latest-versions.js +2 -2
- package/src/utility/latest-versions.js.map +1 -1
- package/src/utility/latest-versions.ts +2 -2
package/src/add-view/index.js
CHANGED
@@ -94,20 +94,45 @@ function getModuleName(addRoute, moduleName) {
|
|
94
94
|
}
|
95
95
|
return moduleName;
|
96
96
|
}
|
97
|
-
function
|
97
|
+
function overwriteModuleContent(options, path, content) {
|
98
98
|
return (host) => __awaiter(this, void 0, void 0, function* () {
|
99
|
-
const
|
100
|
-
const path = `${(0, core_1.dirname)(options.name)}/${name}`;
|
101
|
-
const title = (0, string_1.humanize)(name);
|
102
|
-
const componentPath = `/${yield (0, project_1.getApplicationPath)(host, options.project)}${path}/${name}.component.html`;
|
99
|
+
const componentPath = `/${yield (0, project_1.getApplicationPath)(host, options.project)}${path}`;
|
103
100
|
if (host.exists(componentPath)) {
|
104
|
-
host.overwrite(componentPath,
|
101
|
+
host.overwrite(componentPath, content);
|
102
|
+
}
|
103
|
+
return host;
|
104
|
+
});
|
105
|
+
}
|
106
|
+
function addContentToView(options) {
|
107
|
+
const name = core_1.strings.dasherize((0, core_1.basename)((0, core_1.normalize)(options.name)));
|
108
|
+
const path = `${(0, core_1.dirname)(options.name)}/${name}`;
|
109
|
+
const title = (0, string_1.humanize)(name);
|
110
|
+
const componentPath = `${path}/${name}.component.html`;
|
111
|
+
const content = `<h2>${title}</h2>
|
105
112
|
<div class="content-block">
|
106
113
|
<div class="dx-card responsive-paddings">Put your content here</div>
|
107
114
|
</div>
|
108
|
-
|
109
|
-
|
110
|
-
|
115
|
+
`;
|
116
|
+
return overwriteModuleContent(options, componentPath, content);
|
117
|
+
}
|
118
|
+
function addContentToTS(options) {
|
119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
120
|
+
const name = core_1.strings.dasherize((0, core_1.basename)((0, core_1.normalize)(options.name)));
|
121
|
+
const path = `${(0, core_1.dirname)(options.name)}/${name}`;
|
122
|
+
const componentPath = `${path}/${name}.component.ts`;
|
123
|
+
const content = `import { Component } from '@angular/core';
|
124
|
+
|
125
|
+
@Component({
|
126
|
+
selector: 'app-new-page',
|
127
|
+
templateUrl: './new-page.component.html',
|
128
|
+
styleUrl: './new-page.component.css',
|
129
|
+
standalone: false
|
130
|
+
})
|
131
|
+
export class NewPageComponent {
|
132
|
+
|
133
|
+
}
|
134
|
+
`;
|
135
|
+
return overwriteModuleContent(options, componentPath, content);
|
111
136
|
});
|
112
137
|
}
|
113
138
|
function default_1(options) {
|
@@ -122,9 +147,11 @@ function default_1(options) {
|
|
122
147
|
module,
|
123
148
|
skipTests: options.skipTests,
|
124
149
|
inlineStyle: options.inlineStyle,
|
125
|
-
prefix: options.prefix
|
150
|
+
prefix: options.prefix,
|
151
|
+
standalone: false
|
126
152
|
}),
|
127
|
-
addContentToView({ name, project })
|
153
|
+
addContentToView({ name, project }),
|
154
|
+
addContentToTS({ name, project })
|
128
155
|
];
|
129
156
|
if (addRoute) {
|
130
157
|
rules.push(addViewToRouting({ name, project, module }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAMoC;AAEpC,yEAEiD;AAEjD,8CAE2B;AAE3B,gDAI4B;AAE5B,8CAAkD;AAElD,+CAA6E;AAE7E,gDAG4B;AAC5B,8CAA6C;AAE7C,SAAe,aAAa,CAAC,IAAU,EAAE,WAAmB,EAAE,UAAkB;;QAC9E,MAAM,QAAQ,GAAG,MAAM,IAAA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122
|
|
123
|
-
function
|
123
|
+
function overwriteModuleContent(options: any, path: string, content: string) {
|
124
124
|
return async (host: Tree) => {
|
125
|
-
const
|
126
|
-
const path = `${dirname(options.name)}/${name}`;
|
127
|
-
const title = humanize(name);
|
128
|
-
const componentPath = `/${await getApplicationPath(host, options.project)}${path}/${name}.component.html`;
|
125
|
+
const componentPath = `/${await getApplicationPath(host, options.project)}${path}`;
|
129
126
|
if (host.exists(componentPath)) {
|
130
|
-
host.overwrite(
|
131
|
-
componentPath,
|
132
|
-
`<h2 class="content-block">${title}</h2>
|
133
|
-
<div class="content-block">
|
134
|
-
<div class="dx-card responsive-paddings">Put your content here</div>
|
135
|
-
</div>
|
136
|
-
`);
|
127
|
+
host.overwrite(componentPath, content);
|
137
128
|
}
|
138
129
|
return host;
|
139
130
|
};
|
140
131
|
}
|
141
132
|
|
133
|
+
function addContentToView(options: any) {
|
134
|
+
const name = strings.dasherize(basename(normalize(options.name)));
|
135
|
+
const path = `${dirname(options.name)}/${name}`;
|
136
|
+
const title = humanize(name);
|
137
|
+
const componentPath = `${path}/${name}.component.html`;
|
138
|
+
const content = `<h2>${title}</h2>
|
139
|
+
<div class="content-block">
|
140
|
+
<div class="dx-card responsive-paddings">Put your content here</div>
|
141
|
+
</div>
|
142
|
+
`;
|
143
|
+
|
144
|
+
return overwriteModuleContent(options, componentPath, content);
|
145
|
+
}
|
146
|
+
|
147
|
+
async function addContentToTS(options: any) {
|
148
|
+
const name = strings.dasherize(basename(normalize(options.name)));
|
149
|
+
const path = `${dirname(options.name)}/${name}`;
|
150
|
+
const componentPath = `${path}/${name}.component.ts`;
|
151
|
+
const content = `import { Component } from '@angular/core';
|
152
|
+
|
153
|
+
@Component({
|
154
|
+
selector: 'app-new-page',
|
155
|
+
templateUrl: './new-page.component.html',
|
156
|
+
styleUrl: './new-page.component.css',
|
157
|
+
standalone: false
|
158
|
+
})
|
159
|
+
export class NewPageComponent {
|
160
|
+
|
161
|
+
}
|
162
|
+
`;
|
163
|
+
|
164
|
+
return overwriteModuleContent(options, componentPath, content);
|
165
|
+
}
|
166
|
+
|
142
167
|
export default function(options: any): Rule {
|
143
168
|
return async (host: Tree) => {
|
144
169
|
const addRoute = options.addRoute;
|
@@ -152,9 +177,11 @@ export default function(options: any): Rule {
|
|
152
177
|
module,
|
153
178
|
skipTests: options.skipTests,
|
154
179
|
inlineStyle: options.inlineStyle,
|
155
|
-
prefix: options.prefix
|
180
|
+
prefix: options.prefix,
|
181
|
+
standalone: false
|
156
182
|
}),
|
157
|
-
addContentToView({ name, project }) as any
|
183
|
+
addContentToView({ name, project }) as any,
|
184
|
+
addContentToTS({ name, project }) as any
|
158
185
|
];
|
159
186
|
|
160
187
|
if (addRoute) {
|
@@ -21,7 +21,8 @@ describe('view', () => {
|
|
21
21
|
routing: true,
|
22
22
|
style: 'css',
|
23
23
|
skipTests: false,
|
24
|
-
skipPackageJson: false
|
24
|
+
skipPackageJson: false,
|
25
|
+
standalone: false
|
25
26
|
};
|
26
27
|
const workspaceOptions = {
|
27
28
|
name: 'workspace',
|
@@ -51,8 +52,10 @@ describe('view', () => {
|
|
51
52
|
tree = yield runner.runSchematic('add-view', componentOptions, appTree);
|
52
53
|
expect(tree.files).toContain('/src/app/pages/test/test.component.ts');
|
53
54
|
expect(tree.files).toContain('/src/app/pages/test/test.component.html');
|
54
|
-
const
|
55
|
-
|
55
|
+
const contentHTML = tree.readContent('/src/app/pages/test/test.component.html');
|
56
|
+
const contentTS = tree.readContent('/src/app/pages/test/test.component.ts');
|
57
|
+
expect(contentHTML).toMatch(/<h2>Test<\/h2>/);
|
58
|
+
expect(contentTS).toContain('standalone: false');
|
56
59
|
}));
|
57
60
|
it('should add view to default routing module', () => __awaiter(void 0, void 0, void 0, function* () {
|
58
61
|
const options = Object.assign(Object.assign({}, componentOptions), { addRoute: true });
|
@@ -127,7 +130,7 @@ describe('view', () => {
|
|
127
130
|
}
|
128
131
|
];`);
|
129
132
|
const pageContent = tree.readContent('/src/app/pages/some-test/some-test.component.html');
|
130
|
-
expect(pageContent).toMatch(/<h2
|
133
|
+
expect(pageContent).toMatch(/<h2>Some Test<\/h2>/);
|
131
134
|
}));
|
132
135
|
it('should create new view with path', () => __awaiter(void 0, void 0, void 0, function* () {
|
133
136
|
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,gEAAuF;AAEvF,6BAA6B;AAE7B,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;IACpB,MAAM,UAAU,GAAQ;QACtB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,KAAK;QAChB,eAAe,EAAE,KAAK;
|
1
|
+
{"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,gEAAuF;AAEvF,6BAA6B;AAE7B,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;IACpB,MAAM,UAAU,GAAQ;QACtB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,KAAK;QAChB,eAAe,EAAE,KAAK;QACtB,UAAU,EAAE,KAAK;KAClB,CAAC;IAEF,MAAM,gBAAgB,GAAqB;QACzC,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,OAAO;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 'css',
|
15
15
|
skipTests: false,
|
16
|
-
skipPackageJson: false
|
16
|
+
skipPackageJson: false,
|
17
|
+
standalone: false
|
17
18
|
};
|
18
19
|
|
19
20
|
const workspaceOptions: WorkspaceOptions = {
|
@@ -50,9 +51,11 @@ describe('view', () => {
|
|
50
51
|
expect(tree.files).toContain('/src/app/pages/test/test.component.ts');
|
51
52
|
expect(tree.files).toContain('/src/app/pages/test/test.component.html');
|
52
53
|
|
53
|
-
const
|
54
|
+
const contentHTML = tree.readContent('/src/app/pages/test/test.component.html');
|
55
|
+
const contentTS = tree.readContent('/src/app/pages/test/test.component.ts');
|
54
56
|
|
55
|
-
expect(
|
57
|
+
expect(contentHTML).toMatch(/<h2>Test<\/h2>/);
|
58
|
+
expect(contentTS).toContain('standalone: false');
|
56
59
|
});
|
57
60
|
|
58
61
|
it('should add view to default routing module', async () => {
|
@@ -140,7 +143,7 @@ describe('view', () => {
|
|
140
143
|
}
|
141
144
|
];`);
|
142
145
|
const pageContent = tree.readContent('/src/app/pages/some-test/some-test.component.html');
|
143
|
-
expect(pageContent).toMatch(/<h2
|
146
|
+
expect(pageContent).toMatch(/<h2>Some Test<\/h2>/);
|
144
147
|
});
|
145
148
|
|
146
149
|
it('should create new view with path', async () => {
|
@@ -27,7 +27,7 @@ describe('install', () => {
|
|
27
27
|
};
|
28
28
|
const workspaceOptions = {
|
29
29
|
name: 'workspace',
|
30
|
-
version: '
|
30
|
+
version: '17.0.0'
|
31
31
|
};
|
32
32
|
const angularSchematicsCollection = require.resolve('../../node_modules/@schematics/angular/collection.json');
|
33
33
|
const schematicRunner = new testing_1.SchematicTestRunner('@schematics/angular', angularSchematicsCollection);
|
@@ -80,7 +80,8 @@ describe('install', () => {
|
|
80
80
|
routing: true,
|
81
81
|
style: 'css',
|
82
82
|
skipTests: false,
|
83
|
-
skipPackageJson: false
|
83
|
+
skipPackageJson: false,
|
84
|
+
standalone: false
|
84
85
|
};
|
85
86
|
appTree = yield schematicRunner.runSchematic('application', secondAppOptions, appTree);
|
86
87
|
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,gEAAuF;AAEvF,6BAA6B;AAC7B,gEAA4D;AAE5D,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,8CAA8C;IAC9C,MAAM,UAAU,GAAQ;QACtB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,KAAK;QAChB,eAAe,EAAE,KAAK;KACvB,CAAC;IAEF,MAAM,gBAAgB,GAAqB;QACzC,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,QAAQ;KAClB,CAAC;IAEF,MAAM,2BAA2B,GAAG,OAAO,CAAC,OAAO,CAAC,wDAAwD,CAAC,CAAC;IAC9G,MAAM,eAAe,GAAG,IAAI,6BAAmB,CAAC,qBAAqB,EAAE,2BAA2B,CAAC,CAAC;IACpG,IAAI,OAAqB,CAAC;IAE1B,UAAU,CAAC,GAAS,EAAE;QACpB,OAAO,GAAG,MAAM,eAAe,CAAC,YAAY,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;QAC5E,OAAO,GAAG,MAAM,eAAe,CAAC,YAAY,CAAC,aAAa,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAS,EAAE;QAC1D,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,IAAI,GAAG,MAAM,MAAM,CA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,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC;QAEhG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAC;QAExE,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACzG,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
@@ -20,7 +20,7 @@ describe('install', () => {
|
|
20
20
|
|
21
21
|
const workspaceOptions: WorkspaceOptions = {
|
22
22
|
name: 'workspace',
|
23
|
-
version: '
|
23
|
+
version: '17.0.0'
|
24
24
|
};
|
25
25
|
|
26
26
|
const angularSchematicsCollection = require.resolve('../../node_modules/@schematics/angular/collection.json');
|
@@ -86,7 +86,8 @@ describe('install', () => {
|
|
86
86
|
routing: true,
|
87
87
|
style: 'css',
|
88
88
|
skipTests: false,
|
89
|
-
skipPackageJson: false
|
89
|
+
skipPackageJson: false,
|
90
|
+
standalone: false
|
90
91
|
};
|
91
92
|
|
92
93
|
appTree = await schematicRunner.runSchematic('application', secondAppOptions, appTree);
|
package/src/install/schema.json
CHANGED
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.latestVersions = void 0;
|
4
4
|
// TODO: implement
|
5
5
|
exports.latestVersions = {
|
6
|
-
'devextreme': '24.
|
7
|
-
'devextreme-angular': '24.
|
6
|
+
'devextreme': '24.2.2-beta',
|
7
|
+
'devextreme-angular': '24.2.2-beta',
|
8
8
|
'devextreme-cli': 'latest'
|
9
9
|
};
|
10
10
|
//# sourceMappingURL=latest-versions.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"latest-versions.js","sourceRoot":"","sources":["latest-versions.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AACL,QAAA,cAAc,GAAG;IAC5B,YAAY,EAAE,
|
1
|
+
{"version":3,"file":"latest-versions.js","sourceRoot":"","sources":["latest-versions.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AACL,QAAA,cAAc,GAAG;IAC5B,YAAY,EAAE,aAAa;IAC3B,oBAAoB,EAAE,aAAa;IACnC,gBAAgB,EAAE,QAAQ;CAC3B,CAAC"}
|