@duetds/cli 4.0.51 → 4.1.1

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 (109) hide show
  1. package/package.json +2 -2
  2. package/templates/angular/13.2.4/src/tests/playwright/playwright.test.ts-snapshots/angular-5-chromium-darwin.png +0 -0
  3. package/templates/angular/14.2.12/src/tests/playwright/playwright.test.ts-snapshots/angular-5-chromium-darwin.png +0 -0
  4. package/templates/angular/15.0.4/src/tests/playwright/playwright.test.ts-snapshots/angular-5-chromium-darwin.png +0 -0
  5. package/templates/angular/16.2.0/package.file +1 -1
  6. package/templates/angular/16.2.0/src/tests/playwright/playwright.test.ts-snapshots/angular-5-chromium-darwin.png +0 -0
  7. package/templates/angular/17.0.0/package.file +2 -2
  8. package/templates/angular/17.0.0/src/app/app.module.ts +10 -1
  9. package/templates/angular/17.0.0/src/app/investment-amount/investment-amount.component.html +2 -0
  10. package/templates/angular/17.0.0/src/app/investment-amount/investment-amount.component.ts +2 -12
  11. package/templates/angular/17.0.0/src/app/investment-origin/investment-origin.component.html +8 -8
  12. package/templates/angular/17.0.0/src/app/investment-origin/investment-origin.component.ts +2 -21
  13. package/templates/angular/17.0.0/src/app/value-accessors.ts +147 -0
  14. package/templates/angular/17.0.0/src/tests/playwright/playwright.test.ts-snapshots/angular-5-chromium-darwin.png +0 -0
  15. package/templates/angular/{12.2.16 → 18.1.0}/.eslintrc.json +3 -2
  16. package/templates/angular/{12.2.16 → 18.1.0}/angular.json +16 -0
  17. package/templates/angular/18.1.0/package.file +59 -0
  18. package/templates/angular/{12.2.16 → 18.1.0}/src/app/app.component.html +1 -1
  19. package/templates/angular/{12.2.16 → 18.1.0}/src/app/app.module.ts +14 -5
  20. package/templates/angular/{12.2.16 → 18.1.0}/src/app/index-page/index-page.component.ts +1 -1
  21. package/templates/angular/{12.2.16 → 18.1.0}/src/app/investment-amount/investment-amount.component.ts +1 -1
  22. package/templates/angular/{12.2.16 → 18.1.0}/src/app/investment-origin/investment-origin.component.html +1 -1
  23. package/templates/angular/{12.2.16 → 18.1.0}/src/app/investment-origin/investment-origin.component.ts +2 -1
  24. package/templates/angular/18.1.0/src/app/value-accessors.ts +147 -0
  25. package/templates/angular/{12.2.16 → 18.1.0}/src/main.ts +6 -0
  26. package/templates/angular/{12.2.16 → 18.1.0}/src/polyfills.ts +1 -1
  27. package/templates/angular/{12.2.16 → 18.1.0}/src/styles.scss +2 -2
  28. package/templates/angular/18.1.0/src/tests/playwright/playwright.test.ts-snapshots/angular-5-chromium-darwin.png +0 -0
  29. package/templates/angular/18.1.0/tsconfig.json +9 -0
  30. package/templates/react/16.14.0/package.file +1 -1
  31. package/templates/react/19rc/LICENSE.md +29 -0
  32. package/templates/react/19rc/README.md +54 -0
  33. package/templates/react/19rc/package-lock.json +10713 -0
  34. package/templates/react/19rc/package.file +39 -0
  35. package/templates/react/19rc/playwright.config.mjs +26 -0
  36. package/templates/react/19rc/public/assets/img/android-chrome-192x192.png +0 -0
  37. package/templates/react/19rc/public/assets/img/apple-touch-icon-180x180.png +0 -0
  38. package/templates/react/19rc/public/assets/img/splash-screen-icon-512x512.png +0 -0
  39. package/templates/react/19rc/public/favicon.ico +0 -0
  40. package/templates/react/19rc/public/index.html +48 -0
  41. package/templates/react/19rc/public/manifest.json +19 -0
  42. package/templates/react/19rc/src/App.js +140 -0
  43. package/templates/react/19rc/src/components/Footer.js +23 -0
  44. package/templates/react/19rc/src/components/Header.js +6 -0
  45. package/templates/react/19rc/src/components/InvestmentAmount.js +129 -0
  46. package/templates/react/19rc/src/components/InvestmentOrigin.js +88 -0
  47. package/templates/react/19rc/src/components/Summary.js +87 -0
  48. package/templates/react/19rc/src/index.js +17 -0
  49. package/templates/react/19rc/src/index.scss +2 -0
  50. package/templates/react/19rc/src/serviceWorker.js +141 -0
  51. package/templates/react/19rc/src/tests/playwright/playwright.test.mjs +54 -0
  52. package/templates/react/19rc/src/tests/playwright/playwright.test.mjs-snapshots/app-1-chromium-darwin.png +0 -0
  53. package/templates/react/19rc/src/tests/playwright/playwright.test.mjs-snapshots/app-2-chromium-darwin.png +0 -0
  54. package/templates/react/19rc/src/tests/playwright/playwright.test.mjs-snapshots/app-3-chromium-darwin.png +0 -0
  55. package/templates/react/19rc/src/tests/playwright/playwright.test.mjs-snapshots/app-4-chromium-darwin.png +0 -0
  56. package/templates/{angular/12.2.16/src/tests/playwright/playwright.test.ts-snapshots/angular-5-chromium-darwin.png → react/19rc/src/tests/playwright/playwright.test.mjs-snapshots/app-5-chromium-darwin.png} +0 -0
  57. package/templates/react/19rc/src/tests/playwright/playwright.test.mjs-snapshots/code-chromium-darwin.json +16 -0
  58. package/templates/angular/12.2.16/package.file +0 -58
  59. package/templates/angular/12.2.16/tsconfig.json +0 -8
  60. package/templates/angular/12.2.16/tslint.json +0 -92
  61. /package/templates/angular/{12.2.16 → 18.1.0}/.browserlistrc +0 -0
  62. /package/templates/angular/{12.2.16 → 18.1.0}/.depcheckrc +0 -0
  63. /package/templates/angular/{12.2.16 → 18.1.0}/.editorconfig +0 -0
  64. /package/templates/angular/{12.2.16 → 18.1.0}/.prettierignore +0 -0
  65. /package/templates/angular/{12.2.16 → 18.1.0}/.prettierrc +0 -0
  66. /package/templates/angular/{12.2.16 → 18.1.0}/LICENSE.md +0 -0
  67. /package/templates/angular/{12.2.16 → 18.1.0}/README.md +0 -0
  68. /package/templates/angular/{12.2.16 → 18.1.0}/config/jest.base.ts +0 -0
  69. /package/templates/angular/{12.2.16 → 18.1.0}/config/jest.setup.ts +0 -0
  70. /package/templates/angular/{12.2.16 → 18.1.0}/playwright.config.ts +0 -0
  71. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/agreement.model.ts +0 -0
  72. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/app-routing.module.ts +0 -0
  73. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/app.component.scss +0 -0
  74. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/app.component.ts +0 -0
  75. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/currency-formatter.service.ts +0 -0
  76. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/footer/footer.component.html +0 -0
  77. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/footer/footer.component.scss +0 -0
  78. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/footer/footer.component.ts +0 -0
  79. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/header/header.component.html +0 -0
  80. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/header/header.component.scss +0 -0
  81. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/header/header.component.ts +0 -0
  82. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/index-page/index-page.component.html +0 -0
  83. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/index-page/index-page.component.scss +0 -0
  84. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/investment-amount/investment-amount.component.html +0 -0
  85. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/investment-amount/investment-amount.component.scss +0 -0
  86. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/investment-origin/investment-origin.component.scss +0 -0
  87. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/summary/summary.component.html +0 -0
  88. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/summary/summary.component.scss +0 -0
  89. /package/templates/angular/{12.2.16 → 18.1.0}/src/app/summary/summary.component.ts +0 -0
  90. /package/templates/angular/{12.2.16 → 18.1.0}/src/assets/.gitkeep +0 -0
  91. /package/templates/angular/{12.2.16 → 18.1.0}/src/assets/img/android-chrome-192x192.png +0 -0
  92. /package/templates/angular/{12.2.16 → 18.1.0}/src/assets/img/apple-touch-icon-180x180.png +0 -0
  93. /package/templates/angular/{12.2.16 → 18.1.0}/src/assets/img/splash-screen-icon-512x512.png +0 -0
  94. /package/templates/angular/{12.2.16 → 18.1.0}/src/environments/environment.prod.ts +0 -0
  95. /package/templates/angular/{12.2.16 → 18.1.0}/src/environments/environment.ts +0 -0
  96. /package/templates/angular/{12.2.16 → 18.1.0}/src/favicon.ico +0 -0
  97. /package/templates/angular/{12.2.16 → 18.1.0}/src/index.html +0 -0
  98. /package/templates/angular/{12.2.16 → 18.1.0}/src/manifest.json +0 -0
  99. /package/templates/angular/{12.2.16 → 18.1.0}/src/tests/app.test.ts +0 -0
  100. /package/templates/angular/{12.2.16 → 18.1.0}/src/tests/playwright/playwright.test.ts +0 -0
  101. /package/templates/angular/{12.2.16 → 18.1.0}/src/tests/playwright/playwright.test.ts-snapshots/angular-1-chromium-darwin.png +0 -0
  102. /package/templates/angular/{12.2.16 → 18.1.0}/src/tests/playwright/playwright.test.ts-snapshots/angular-2-chromium-darwin.png +0 -0
  103. /package/templates/angular/{12.2.16 → 18.1.0}/src/tests/playwright/playwright.test.ts-snapshots/angular-3-chromium-darwin.png +0 -0
  104. /package/templates/angular/{12.2.16 → 18.1.0}/src/tests/playwright/playwright.test.ts-snapshots/angular-4-chromium-darwin.png +0 -0
  105. /package/templates/angular/{12.2.16 → 18.1.0}/src/tests/playwright/playwright.test.ts-snapshots/code-chromium-darwin.json +0 -0
  106. /package/templates/angular/{12.2.16 → 18.1.0}/src/utils/string.utils.ts +0 -0
  107. /package/templates/angular/{12.2.16 → 18.1.0}/tsconfig.app.json +0 -0
  108. /package/templates/angular/{12.2.16 → 18.1.0}/tsconfig.base.json +0 -0
  109. /package/templates/angular/{12.2.16 → 18.1.0}/tsconfig.spec.json +0 -0
@@ -1,5 +1,6 @@
1
1
  import { enableProdMode } from "@angular/core"
2
2
  import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"
3
+ import { applyPolyfills, defineCustomElements } from '@duetds/components/lib/loader'
3
4
 
4
5
  import { AppModule } from "./app/app.module"
5
6
  import { environment } from "./environments/environment"
@@ -8,6 +9,11 @@ if (environment.production) {
8
9
  enableProdMode()
9
10
  }
10
11
 
12
+ // Register Duet’s custom elements
13
+ applyPolyfills().then(() => {
14
+ defineCustomElements(window)
15
+ })
16
+
11
17
  platformBrowserDynamic()
12
18
  .bootstrapModule(AppModule)
13
19
  .catch(err => console.error(err))
@@ -55,7 +55,7 @@
55
55
  /***************************************************************************************************
56
56
  * Zone JS is required by default for Angular itself.
57
57
  */
58
- import "zone.js/dist/zone" // Included with Angular CLI.
58
+ import "zone.js" // Included with Angular CLI.
59
59
 
60
60
  /***************************************************************************************************
61
61
  * APPLICATION IMPORTS
@@ -1,3 +1,3 @@
1
1
  /* You can add global styles to this file, and also import other style files */
2
- @import "~@duetds/css/lib/duet.min";
3
- @import "~@duetds/tokens/lib/tokens.scss";
2
+ @import "@duetds/css/lib/duet.min";
3
+ @import "@duetds/tokens/lib/tokens.scss";
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/app",
5
+ "types": []
6
+ },
7
+ "files": ["src/main.ts", "src/polyfills.ts"],
8
+ "include": ["src/**/*.d.ts", "src/**/*.ts"]
9
+ }
@@ -18,7 +18,7 @@
18
18
  "@duetds/tokens": "latest",
19
19
  "react": "16.14.0",
20
20
  "react-dom": "16.14.0",
21
- "react-scripts": "3.4.4",
21
+ "react-scripts": "5.0.0",
22
22
  "sass": "1.49.9"
23
23
  },
24
24
  "eslintConfig": {
@@ -0,0 +1,29 @@
1
+ # License
2
+
3
+ ## Authorization to access
4
+
5
+ Subject to these terms of use, LocalTapiola Services Ltd, on behalf of itself and the companies belonging to the same financial conglomerate (hereafter, individually and collectively, “LocalTapiola”) hereby grants you a limited, non-exclusive, revocable license to access and use the Duet Design System (the “Package”) solely for the purpose of performing your duties for and on behalf of LocalTapiola (the “Purpose”).
6
+
7
+ Except for the Purpose, you may not access or use the Package or reproduce, retransmit, disseminate, sell, publish, broadcast or use any of the information, content or materials available through it for any reason.
8
+
9
+ By accessing and using this Package, you agree to be bound by these terms of use.
10
+
11
+ ## Copyright
12
+
13
+ LocalTapiola reserves all copyrights, trademarks and other intellectual property rights in and to the Package and all content on the Package, as well as to any information or materials derived from them. All content and material available through the Package are the copyrighted property of LocalTapiola.
14
+
15
+ ## Trademarks
16
+
17
+ “Duet Design System” is a registered trademark of LocalTapiola. All other marks, whether registered or not, that are associated with any LocalTapiola or Turva product or service are trademarks or service marks of LocalTapiola Services Ltd. All non-LocalTapiola names or marks, if any, appearing in the Package are the property of their respective owners.
18
+
19
+ ## Disclaimer
20
+
21
+ The use of the Package is at the sole responsibility of the user. The Package is provided “as is” and “as available” without express or implied warranty or condition of any kind. LocalTapiola may at any time make changes to the Package or any of its features or functionalities. LocalTapiola also reserves the right to modify or discontinue, temporarily or permanently, functions and features of the Package, with or without notice, all without liability to you, except where prohibited by law, for any interruption, modification, or discontinuation of the Package or any of its features or functionalities.
22
+
23
+ ## Limitation of liability
24
+
25
+ To the fullest extent permitted by law, LocalTapiola accepts no liability to user or any third party for any damages, including without limitation, indirect or consequential damages or any damages whatsoever arising from use or loss of use of the Package or its content.
26
+
27
+ ## Governing law
28
+
29
+ These Terms and your use of the Package shall be governed by and construed in accordance with the substantive laws of Finland.
@@ -0,0 +1,54 @@
1
+ # Duet React Example
2
+
3
+ An example app built with [@duetds/react](https://www.npmjs.com/package/@duetds/react), demonstrating basic form handling.
4
+
5
+ ## Features
6
+
7
+ - Comes with [Duet Web Components](https://www.duetds.com/components/).
8
+ - Supports [Duet Design Tokens](https://www.duetds.com/tokens/) in SCSS without additional configuration.
9
+ - Comes with automated build and deploy steps for prototyping.
10
+ - Additionally comes with [Duet Fonts](https://www.duetds.com/typography/) and [Duet CSS Framework](https://www.duetds.com/css-framework/) preconfigured.
11
+
12
+ ## Available Scripts
13
+
14
+ In the project directory, you can run:
15
+
16
+ ### `npm start`
17
+
18
+ Runs the app in the development mode.<br />
19
+ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
20
+
21
+ The page will reload if you make edits.<br />
22
+ You will also see any lint errors in the console.
23
+
24
+ ### `npm run build`
25
+
26
+ Builds the app for production to the `build` folder.<br />
27
+ It correctly bundles React in production mode and optimizes the build for the best performance.
28
+
29
+ The build is minified and the filenames include the hashes.<br />
30
+ Your app is ready to be deployed!
31
+
32
+ See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
33
+
34
+ ### `npm run eject`
35
+
36
+ **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
37
+
38
+ If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
39
+
40
+ Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
41
+
42
+ You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
43
+
44
+ ## Learn More
45
+
46
+ You can learn more in the [Create React App documentation](https://create-react-app.dev/docs/getting-started/).
47
+
48
+ To learn React, check out the [React documentation](https://reactjs.org/).
49
+
50
+ For more Duet usage instructions, please see [Duet Design System documentation](https://www.duetds.com).
51
+
52
+ ## Copyright
53
+
54
+ Copyright © 2020 LocalTapiola Services Ltd. For license, please see LICENSE.md.