devextreme-cli 1.8.0 → 1.9.1-1.11.0-alpha.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.
Files changed (56) hide show
  1. package/package.json +6 -5
  2. package/src/applications/application.angular.js +32 -7
  3. package/src/applications/application.react.js +31 -24
  4. package/src/applications/application.vue.js +23 -6
  5. package/src/templates/react/application/public/favicon.ico +0 -0
  6. package/src/templates/react/application/public/logo192.png +0 -0
  7. package/src/templates/react/application/public/logo512.png +0 -0
  8. package/src/templates/react/application/public/manifest.json +25 -0
  9. package/src/templates/react/application/public/robots.txt +3 -0
  10. package/src/templates/react/application/src/App.tsx +0 -1
  11. package/src/templates/react/application/src/components/change-password-form/ChangePasswordForm.tsx +2 -2
  12. package/src/templates/react/application/src/components/create-account-form/CreateAccountForm.scss +4 -5
  13. package/src/templates/react/application/src/components/create-account-form/CreateAccountForm.tsx +5 -7
  14. package/src/templates/react/application/src/components/footer/Footer.tsx +0 -1
  15. package/src/templates/react/application/src/components/header/Header.scss +1 -1
  16. package/src/templates/react/application/src/components/header/Header.tsx +0 -1
  17. package/src/templates/react/application/src/components/login-form/LoginForm.scss +2 -8
  18. package/src/templates/react/application/src/components/login-form/LoginForm.tsx +12 -14
  19. package/src/templates/react/application/src/components/reset-password-form/ResetPasswordForm.scss +3 -4
  20. package/src/templates/react/application/src/components/reset-password-form/ResetPasswordForm.tsx +5 -7
  21. package/src/templates/react/application/src/components/side-navigation-menu/SideNavigationMenu.scss +3 -3
  22. package/src/templates/react/application/src/components/side-navigation-menu/SideNavigationMenu.tsx +2 -2
  23. package/src/templates/react/application/src/components/theme-switcher/ThemeSwitcher.tsx +2 -2
  24. package/src/templates/react/application/src/components/user-panel/UserPanel.tsx +1 -1
  25. package/src/templates/react/application/src/dx-styles.scss +6 -3
  26. package/src/templates/react/application/src/index.css +12 -0
  27. package/src/templates/react/application/src/layouts/side-nav-inner-toolbar/side-nav-inner-toolbar.tsx +11 -5
  28. package/src/templates/react/application/src/layouts/side-nav-outer-toolbar/side-nav-outer-toolbar.tsx +11 -5
  29. package/src/templates/react/application/src/layouts/single-card/single-card.scss +10 -7
  30. package/src/templates/react/application/src/layouts/single-card/single-card.tsx +0 -1
  31. package/src/templates/react/application/src/theme.tsx +1 -1
  32. package/src/templates/react/application/src/types.tsx +1 -2
  33. package/src/templates/react/application/src/utils/media-query.tsx +3 -1
  34. package/src/templates/react/application/src/utils/patches.scss +4 -4
  35. package/src/templates/react/application/src/variables.scss +32 -16
  36. package/src/templates/react/sample-pages/home/home.scss +0 -2
  37. package/src/templates/react/sample-pages/home/home.tsx +1 -1
  38. package/src/templates/react/sample-pages/tasks/tasks.tsx +4 -4
  39. package/src/templates/vue-v3/application/src/App.vue +1 -0
  40. package/src/templates/vue-v3/application/src/components/header-toolbar.vue +1 -1
  41. package/src/templates/vue-v3/application/src/components/side-nav-menu.vue +2 -2
  42. package/src/templates/vue-v3/application/src/dx-styles.scss +3 -3
  43. package/src/templates/vue-v3/application/src/layouts/single-card.vue +10 -5
  44. package/src/templates/vue-v3/application/src/variables.scss +30 -14
  45. package/src/templates/vue-v3/application/src/views/create-account-form.vue +21 -24
  46. package/src/templates/vue-v3/application/src/views/login-form.vue +18 -25
  47. package/src/templates/vue-v3/application/src/views/reset-password-form.vue +6 -9
  48. package/src/templates/vue-v3/sample-pages/tasks-page.vue +1 -1
  49. package/src/utility/extract-deps-version-tag.js +13 -0
  50. package/src/utility/latest-versions.js +4 -3
  51. package/src/utility/prompts/transpiler.js +17 -0
  52. package/src/utility/typescript-extension.js +1 -1
  53. package/src/templates/react/application/src/App.test.tsx +0 -12
  54. package/src/templates/react/application/src/matchMediaMock.tsx +0 -14
  55. package/src/templates/react/application/src/polyfills.tsx +0 -2
  56. package/src/utility/extract-tooling-version.js +0 -13
@@ -80,7 +80,7 @@
80
80
  </template>
81
81
 
82
82
  <script>
83
- import "devextreme/data/odata/store";
83
+ import "devextreme-vue/common/data";
84
84
  import DxDataGrid, {
85
85
  DxColumn,
86
86
  DxFilterRow,
@@ -0,0 +1,13 @@
1
+ const depsVersionTagOptionName = 'deps-version-tag';
2
+
3
+ const extractDepsVersionTag = (commandOptions) => {
4
+ if(commandOptions && commandOptions[depsVersionTagOptionName]) {
5
+ return commandOptions[depsVersionTagOptionName];
6
+ }
7
+ return '';
8
+ };
9
+
10
+ module.exports = {
11
+ depsVersionTagOptionName,
12
+ extractDepsVersionTag,
13
+ };
@@ -1,8 +1,9 @@
1
1
  const packageJson = require('../../package.json');
2
2
  module.exports = {
3
- 'devextreme': '24.2.3',
4
- 'devextreme-react': '24.2.3',
5
- 'devextreme-vue': '24.2.3',
3
+ 'devextreme': '25.1.1-alpha',
4
+ 'devextreme-react': '25.1.1-alpha',
5
+ 'devextreme-vue': '25.1.1-alpha',
6
+ 'create-vite': '6.3.1',
6
7
  'devextreme-cli': packageJson.version,
7
8
  'devextreme-schematics': 'latest'
8
9
  };
@@ -0,0 +1,17 @@
1
+ const prompts = require('./prompts');
2
+
3
+ const choices = [
4
+ { value: 'babel', title: 'Babel' },
5
+ { value: 'swc', title: 'SWC' }
6
+ ];
7
+
8
+ const question = {
9
+ message: 'Specify desired transpiler type:',
10
+ choices: choices
11
+ };
12
+
13
+ const getTranspilerTypeInfo = async(defaultValue) => {
14
+ return await prompts(question, choices, defaultValue);
15
+ };
16
+
17
+ module.exports = getTranspilerTypeInfo;
@@ -5,7 +5,7 @@ const isTypeScript = (templateType) => templateType === 'typescript';
5
5
 
6
6
  const setFileExtension = (filePath, isTypeScript) => {
7
7
  const { dir, name } = path.parse(filePath);
8
- const ext = '.' + (isTypeScript ? 'tsx' : 'js');
8
+ const ext = '.' + (isTypeScript ? 'tsx' : 'jsx');
9
9
 
10
10
  return path.join(dir, name + ext);
11
11
  };
@@ -1,12 +0,0 @@
1
- import './matchMediaMock';
2
- import { render, screen } from '@testing-library/react';
3
- import App from './App';
4
- import { act } from 'react-dom/test-utils';
5
-
6
- describe("App", () => {
7
- test('renders learn react link', async () => {
8
- await act( async () => { render(<App/>) });
9
- const linkElement = screen.getByText(/create react app/i);
10
- expect(linkElement).toBeInTheDocument();
11
- });
12
- })
@@ -1,14 +0,0 @@
1
- Object.defineProperty(window, 'matchMedia', {
2
- writable: true,
3
- value: jest.fn().mockImplementation(query => ({
4
- matches: false,
5
- media: query,
6
- onchange: null,
7
- addListener: jest.fn(), // deprecated
8
- removeListener: jest.fn(), // deprecated
9
- addEventListener: jest.fn(),
10
- removeEventListener: jest.fn(),
11
- dispatchEvent: jest.fn(),
12
- })),
13
- });
14
- export {};
@@ -1,2 +0,0 @@
1
- import 'react-app-polyfill/ie11';
2
- import 'react-app-polyfill/stable';
@@ -1,13 +0,0 @@
1
- const toolingVersionOptionName = 'tooling-version';
2
-
3
- const extractToolingVersion = (commandOptions) => {
4
- if(commandOptions && commandOptions[toolingVersionOptionName]) {
5
- return `@${commandOptions[toolingVersionOptionName]}`;
6
- }
7
- return '';
8
- };
9
-
10
- module.exports = {
11
- toolingVersionOptionName,
12
- extractToolingVersion,
13
- };