@decaf-ts/for-angular 0.1.4 → 0.1.5
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/package.json +16 -89
- package/.editorconfig +0 -31
- package/.gitlab-ci.yml +0 -197
- package/.hintrc +0 -19
- package/.prettierrc +0 -49
- package/.snyk +0 -13
- package/LICENSE.md +0 -260
- package/angular.json +0 -274
- package/bs-config.json +0 -5
- package/cli-module.js.map +0 -1
- package/dist/for-angular/cli/cli-module.d.ts +0 -22
- package/dist/for-angular/cli/cli-module.d.ts.map +0 -1
- package/dist/for-angular/cli/cli-module.js +0 -131
- package/dist/for-angular/cli/cli-module.js.map +0 -1
- package/dist/lib/README.md +0 -117
- package/eslint.config.mjs +0 -101
- package/ionic.config.json +0 -14
- package/jest.config.ts +0 -52
- package/jest.setup.ts +0 -50
- package/karma.conf.js +0 -50
- package/ng-package.json +0 -16
- package/ngsw-config.json +0 -30
- package/playwright.config.ts +0 -80
- package/resources/favicon.png +0 -0
- package/resources/favicon.svg +0 -29
- package/resources/icon-background.png +0 -0
- package/resources/icon-foreground.png +0 -0
- package/resources/icon-only.png +0 -0
- package/resources/icon-only.svg +0 -29
- package/resources/splash-dark.png +0 -0
- package/resources/splash-dark2.png +0 -0
- package/resources/splash.png +0 -0
- package/resources/splash2.png +0 -0
- package/resources/touch-icon.svg +0 -29
- package/schematics/README.md +0 -28
- package/schematics/collection.json +0 -20
- package/schematics/package-lock.json +0 -1501
- package/schematics/package.json +0 -37
- package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.__style__.template +0 -0
- package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.html.template +0 -3
- package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +0 -40
- package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template +0 -37
- package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.module.ts.template +0 -14
- package/schematics/src/component/index.js +0 -146
- package/schematics/src/component/schema.js +0 -2
- package/schematics/src/component/schema.json +0 -101
- package/schematics/src/page/files/__name@dasherize__.page.html.template +0 -15
- package/schematics/src/page/files/__name@dasherize__.page.scss.template +0 -0
- package/schematics/src/page/files/__name@dasherize__.page.ts.template +0 -19
- package/schematics/src/page/index.js +0 -71
- package/schematics/src/page/schema.json +0 -87
- package/schematics/src/schematics/index.js +0 -11
- package/schematics/src/schematics/index_spec.js +0 -13
- package/schematics/src/util/ast-util.js +0 -517
- package/schematics/src/util/change.js +0 -96
- package/schematics/src/util/index.js +0 -14
- package/settings.json +0 -112
- package/tsconfig.app.json +0 -22
- package/tsconfig.cli.json +0 -82
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -22
- package/webpack.config.js +0 -10
- package/workdocs/1-Header.md +0 -5
- package/workdocs/2-Badges.md +0 -30
- package/workdocs/4-Description.md +0 -4
- package/workdocs/5-HowToUse.md +0 -27
- package/workdocs/6-Related.md +0 -7
- package/workdocs/7-Social.md +0 -5
- package/workdocs/99-Footer.md +0 -28
- package/workdocs/Readme.md +0 -12
- package/workdocs/assets/apple-touch-icon.png +0 -0
- package/workdocs/assets/decaf-logo.svg +0 -54
- package/workdocs/assets/favicon.png +0 -0
- package/workdocs/assets/slogans.json +0 -182
- package/workdocs/confluence/.markdown-confluence.template.json +0 -6
- package/workdocs/confluence/Angular Module.md +0 -5
- package/workdocs/drawings/diagram.drawio +0 -24
- package/workdocs/prompts/bulk.md +0 -122
- package/workdocs/prompts/code.md +0 -47
- package/workdocs/prompts/documentation.md +0 -146
- package/workdocs/prompts/uml.md +0 -11
- package/workdocs/readme-md.json +0 -6
- package/workdocs/reports/CHANGELOG.md +0 -12
- package/workdocs/reports/DEPENDENCIES.md +0 -213
- package/workdocs/reports/RELEASE_NOTES.md +0 -24
- package/workdocs/reports/coverage/.gitkeep +0 -0
- package/workdocs/reports/coverage/clover.xml +0 -4110
- package/workdocs/reports/coverage/coverage-final.json +0 -76
- package/workdocs/reports/coverage/lcov-report/base.css +0 -224
- package/workdocs/reports/coverage/lcov-report/block-navigation.js +0 -87
- package/workdocs/reports/coverage/lcov-report/favicon.png +0 -0
- package/workdocs/reports/coverage/lcov-report/index.html +0 -551
- package/workdocs/reports/coverage/lcov-report/prettify.css +0 -1
- package/workdocs/reports/coverage/lcov-report/prettify.js +0 -2
- package/workdocs/reports/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/workdocs/reports/coverage/lcov-report/sorter.js +0 -210
- package/workdocs/reports/coverage/lcov-report/src/app/models/CategoryModel.ts.html +0 -277
- package/workdocs/reports/coverage/lcov-report/src/app/models/DemoModel.ts.html +0 -427
- package/workdocs/reports/coverage/lcov-report/src/app/models/UserModel.ts.html +0 -226
- package/workdocs/reports/coverage/lcov-report/src/app/models/index.html +0 -146
- package/workdocs/reports/coverage/lcov-report/src/cli-module.ts.html +0 -502
- package/workdocs/reports/coverage/lcov-report/src/environments/environment.ts.html +0 -166
- package/workdocs/reports/coverage/lcov-report/src/environments/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/index.html +0 -191
- package/workdocs/reports/coverage/lcov-report/src/karma-test.ts.html +0 -121
- package/workdocs/reports/coverage/lcov-report/src/lib/components/card/card.component.ts.html +0 -625
- package/workdocs/reports/coverage/lcov-report/src/lib/components/card/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/component-renderer/component-renderer.component.ts.html +0 -772
- package/workdocs/reports/coverage/lcov-report/src/lib/components/component-renderer/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-field/crud-field.component.ts.html +0 -2698
- package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-field/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-form/constants.ts.html +0 -133
- package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-form/crud-form.component.ts.html +0 -346
- package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-form/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/empty-state/empty-state.component.ts.html +0 -1264
- package/workdocs/reports/coverage/lcov-report/src/lib/components/empty-state/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/fieldset/fieldset.component.ts.html +0 -2965
- package/workdocs/reports/coverage/lcov-report/src/lib/components/fieldset/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/file-upload/file-upload.component.ts.html +0 -2263
- package/workdocs/reports/coverage/lcov-report/src/lib/components/file-upload/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/filter/filter.component.ts.html +0 -2485
- package/workdocs/reports/coverage/lcov-report/src/lib/components/filter/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/for-angular-components.module.ts.html +0 -259
- package/workdocs/reports/coverage/lcov-report/src/lib/components/icon/icon.component.ts.html +0 -358
- package/workdocs/reports/coverage/lcov-report/src/lib/components/icon/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/index.html +0 -131
- package/workdocs/reports/coverage/lcov-report/src/lib/components/index.ts.html +0 -181
- package/workdocs/reports/coverage/lcov-report/src/lib/components/layout/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/layout/layout.component.ts.html +0 -943
- package/workdocs/reports/coverage/lcov-report/src/lib/components/list/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/list/list.component.ts.html +0 -4261
- package/workdocs/reports/coverage/lcov-report/src/lib/components/list-item/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/list-item/list-item.component.ts.html +0 -1741
- package/workdocs/reports/coverage/lcov-report/src/lib/components/modal/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/modal/modal.component.ts.html +0 -1984
- package/workdocs/reports/coverage/lcov-report/src/lib/components/model-renderer/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/model-renderer/model-renderer.component.ts.html +0 -373
- package/workdocs/reports/coverage/lcov-report/src/lib/components/pagination/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/pagination/pagination.component.ts.html +0 -1165
- package/workdocs/reports/coverage/lcov-report/src/lib/components/searchbar/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/searchbar/searchbar.component.ts.html +0 -1774
- package/workdocs/reports/coverage/lcov-report/src/lib/components/stepped-form/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/stepped-form/stepped-form.component.ts.html +0 -1219
- package/workdocs/reports/coverage/lcov-report/src/lib/components/table/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/lib/components/table/table.component.ts.html +0 -988
- package/workdocs/reports/coverage/lcov-report/src/lib/directives/NgxSvgDirective.ts.html +0 -163
- package/workdocs/reports/coverage/lcov-report/src/lib/directives/collapsable.directive.ts.html +0 -268
- package/workdocs/reports/coverage/lcov-report/src/lib/directives/index.html +0 -131
- package/workdocs/reports/coverage/lcov-report/src/lib/directives/index.ts.html +0 -91
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/DynamicModule.ts.html +0 -133
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/MediaService.ts.html +0 -142
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxBaseComponent.ts.html +0 -2194
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxComponentDirective.ts.html +0 -3430
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxCrudFormField.ts.html +0 -721
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxDecafComponentDirective.ts.html +0 -1864
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxDecafFormFieldDirective.ts.html +0 -952
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxDecafFormService.ts.html +0 -3211
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxEventHandler.ts.html +0 -307
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxFormDirective.ts.html +0 -1366
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxFormFieldDirective.ts.html +0 -1960
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxFormService.ts.html +0 -3004
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxModelPageDirective.ts.html +0 -1672
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxPageDirective.ts.html +0 -748
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxParentComponentDirective.ts.html +0 -775
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxRenderableComponentDirective.ts.html +0 -727
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxRenderingEngine.ts.html +0 -2005
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxRepositoryDirective.ts.html +0 -1561
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/ValidatorFactory.ts.html +0 -817
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/constants.ts.html +0 -1120
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/decorators.ts.html +0 -376
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/helpers.ts.html +0 -676
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/index.html +0 -356
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/index.ts.html +0 -160
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/overrides.ts.html +0 -499
- package/workdocs/reports/coverage/lcov-report/src/lib/for-angular-common.module.ts.html +0 -298
- package/workdocs/reports/coverage/lcov-report/src/lib/helpers/index.html +0 -131
- package/workdocs/reports/coverage/lcov-report/src/lib/helpers/index.ts.html +0 -121
- package/workdocs/reports/coverage/lcov-report/src/lib/helpers/utils.ts.html +0 -1603
- package/workdocs/reports/coverage/lcov-report/src/lib/i18n/FakeLoader.ts.html +0 -157
- package/workdocs/reports/coverage/lcov-report/src/lib/i18n/Loader.ts.html +0 -826
- package/workdocs/reports/coverage/lcov-report/src/lib/i18n/index.html +0 -146
- package/workdocs/reports/coverage/lcov-report/src/lib/i18n/index.ts.html +0 -91
- package/workdocs/reports/coverage/lcov-report/src/lib/index.html +0 -131
- package/workdocs/reports/coverage/lcov-report/src/lib/public-apis.ts.html +0 -157
- package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxFormService.ts.html +0 -3460
- package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxMediaService.ts.html +0 -1420
- package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxRouterService.ts.html +0 -1231
- package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxTranslateService.ts.html +0 -214
- package/workdocs/reports/coverage/lcov-report/src/lib/services/index.html +0 -176
- package/workdocs/reports/coverage/lcov-report/src/lib/services/index.ts.html +0 -91
- package/workdocs/reports/coverage/lcov-report/src/lib/utils/DecafFakerRepository.ts.html +0 -571
- package/workdocs/reports/coverage/lcov-report/src/lib/utils/helpers.ts.html +0 -1663
- package/workdocs/reports/coverage/lcov-report/src/lib/utils/index.html +0 -146
- package/workdocs/reports/coverage/lcov-report/src/lib/utils/index.ts.html +0 -124
- package/workdocs/reports/coverage/lcov-report/src/main.ts.html +0 -100
- package/workdocs/reports/coverage/lcov-report/src/polyfills.ts.html +0 -271
- package/workdocs/reports/coverage/lcov-report/src/stories/Configure.stories.ts.html +0 -1156
- package/workdocs/reports/coverage/lcov-report/src/stories/button.component.ts.html +0 -229
- package/workdocs/reports/coverage/lcov-report/src/stories/button.stories.ts.html +0 -235
- package/workdocs/reports/coverage/lcov-report/src/stories/crud-field.stories.ts.html +0 -325
- package/workdocs/reports/coverage/lcov-report/src/stories/header.stories.ts.html +0 -181
- package/workdocs/reports/coverage/lcov-report/src/stories/index.html +0 -281
- package/workdocs/reports/coverage/lcov-report/src/stories/list.stories.ts.html +0 -289
- package/workdocs/reports/coverage/lcov-report/src/stories/login.page.stories.ts.html +0 -175
- package/workdocs/reports/coverage/lcov-report/src/stories/model-renderer.stories.ts.html +0 -259
- package/workdocs/reports/coverage/lcov-report/src/stories/page.component.ts.html +0 -331
- package/workdocs/reports/coverage/lcov-report/src/stories/page.stories.ts.html +0 -193
- package/workdocs/reports/coverage/lcov-report/src/stories/setup.ts.html +0 -127
- package/workdocs/reports/coverage/lcov-report/src/stories/utils.ts.html +0 -247
- package/workdocs/reports/coverage/lcov-report/src/tests/index.html +0 -116
- package/workdocs/reports/coverage/lcov-report/src/tests/karmaErrorParser.ts.html +0 -190
- package/workdocs/reports/coverage/lcov-report/src/typings.d.ts.html +0 -88
- package/workdocs/reports/coverage/lcov-report/src/zone-flags.ts.html +0 -103
- package/workdocs/reports/coverage/lcov.info +0 -7917
- package/workdocs/reports/data/.gitkeep +0 -1
- package/workdocs/reports/html/.gitkeep +0 -0
- package/workdocs/reports/html/jest-html-reporters-attach/test-report/index.js +0 -3
- package/workdocs/reports/html/jest-html-reporters-attach/test-report/result.js +0 -1
- package/workdocs/reports/html/test-report.html +0 -1
- package/workdocs/reports/images/.gitkeep +0 -1
- package/workdocs/reports/jest.coverage.config.ts +0 -43
- package/workdocs/reports/junit/junit-report.xml +0 -91
- package/workdocs/resources/.gitlock +0 -0
- package/workdocs/resources/diagram-Actor.png +0 -0
- package/workdocs/resources/diagram-banner.png +0 -0
- package/workdocs/resources/diagram.png +0 -0
- package/workdocs/tutorials/Contributing.md +0 -64
- package/workdocs/tutorials/Documentation.md +0 -340
- package/workdocs/tutorials/For Developers.md +0 -337
- package/workdocs/uml/diagram.puml +0 -11
- package/www/1049.10b030f0de36543b.js +0 -1
- package/www/1102.67cedfb3e29f0a05.js +0 -1
- package/www/1107.6454396befef800d.js +0 -1
- package/www/1459.cabc18e941afa5d7.js +0 -1
- package/www/1577.5221deebe3501e43.js +0 -1
- package/www/2075.b6dc4fbb89dd6afc.js +0 -1
- package/www/2348.c4cc27dadbec70ec.js +0 -1
- package/www/2375.318d0b24ab346271.js +0 -1
- package/www/2415.618d6968ffda319c.js +0 -1
- package/www/2460.1d97c6f48b898ee2.js +0 -1
- package/www/2560.2e7000dcf80b6b2c.js +0 -1
- package/www/2585.dffa5649fffafb44.js +0 -1
- package/www/2885.d99b86afd1ff7aa8.js +0 -1
- package/www/3162.bbc401f4a5f82460.js +0 -1
- package/www/323.f64c512be5c8d797.js +0 -1
- package/www/3238.a3e7e8004c6b6667.js +0 -1
- package/www/3506.8c03f5589b33a4a6.js +0 -1
- package/www/3511.56b7e49bb6c2c936.js +0 -1
- package/www/3519.84fbb67dc803f702.js +0 -1
- package/www/3675.7ebfdcf145052232.js +0 -1
- package/www/3814.765c1794e1be63de.js +0 -1
- package/www/3rdpartylicenses.txt +0 -1344
- package/www/4171.a974bdbf9c97e4e1.js +0 -1
- package/www/4183.41ef1def450a2cc0.js +0 -1
- package/www/4406.0b2dd3839b8c1417.js +0 -1
- package/www/441.e1031657c7e5f0ff.js +0 -1
- package/www/4463.6ad7b857e5f34009.js +0 -1
- package/www/4591.42f34534d38b9b31.js +0 -1
- package/www/4699.8df8ea9806163d4c.js +0 -1
- package/www/5100.ed6483c55a157d67.js +0 -1
- package/www/5193.15ea6938534eceb1.js +0 -1
- package/www/5197.6733853529768a45.js +0 -1
- package/www/5222.8439a641c2c4b1c1.js +0 -1
- package/www/5373.d7878f708309f038.js +0 -1
- package/www/5467.53f5cce977c2e28b.js +0 -1
- package/www/5712.b08cf436ee8145ce.js +0 -1
- package/www/5887.3d038f564e925abb.js +0 -1
- package/www/5949.37330f20e95dee79.js +0 -1
- package/www/6024.c10cc3d1b341c748.js +0 -1
- package/www/6433.360fcff952bde822.js +0 -1
- package/www/6499.60169da9869db697.js +0 -1
- package/www/6521.fab1f34bfe6b8200.js +0 -1
- package/www/6631.eaa711da6e0aeed9.js +0 -1
- package/www/6717.b4731255038304cd.js +0 -1
- package/www/6840.7317cd962ab23932.js +0 -1
- package/www/7030.d115d82ca7468a4e.js +0 -1
- package/www/7076.cce20ed5c79ff305.js +0 -1
- package/www/7179.c0545989ce869b3d.js +0 -1
- package/www/7240.69aeb484d78eb24d.js +0 -1
- package/www/7372.94c62459e34f7303.js +0 -1
- package/www/7402.983a5ecff61e9a5d.js +0 -1
- package/www/7428.527ac48035a2f915.js +0 -1
- package/www/7676.d7db23d350e4b096.js +0 -1
- package/www/770.80af87d5eb0075d3.js +0 -1
- package/www/7720.0701576cb9966779.js +0 -1
- package/www/7927.ee869d0dc478250a.js +0 -1
- package/www/8066.894688fbb2e5c832.js +0 -1
- package/www/8193.7f09ecd40b6d42c2.js +0 -1
- package/www/8255.158098a6302c91c2.js +0 -1
- package/www/8314.596c1ccf26b9c93a.js +0 -1
- package/www/8357.c5406b92e6933d7a.js +0 -1
- package/www/8477.a3ccc11c25a642d3.js +0 -1
- package/www/8487.93b6f7465ae1b7ac.js +0 -1
- package/www/8584.b77ad478a5a7ac2a.js +0 -1
- package/www/8805.a87413652185ff8f.js +0 -1
- package/www/8814.b489a78ae8e926c4.js +0 -1
- package/www/8970.234b3db1f97528fe.js +0 -1
- package/www/9013.c2e6ba17a915bdd6.js +0 -1
- package/www/9073.16c4e42482d55a3c.js +0 -1
- package/www/9344.7d2d24b194b794e2.js +0 -1
- package/www/9364.9a028036dd89e3e7.js +0 -1
- package/www/944.7e4317348c48d4f4.js +0 -1
- package/www/964.9a979e1c1aad0f5b.js +0 -1
- package/www/9657.8c3589a0aff521c0.js +0 -1
- package/www/9956.2d00a2153e9a7799.js +0 -1
- package/www/9977.068cd5561462bc99.js +0 -1
- package/www/assets/i18n/en.json +0 -210
- package/www/assets/i18n/ew/en.json +0 -346
- package/www/assets/i18n/pt.json +0 -186
- package/www/assets/icons/icon-128.webp +0 -0
- package/www/assets/icons/icon-192.webp +0 -0
- package/www/assets/icons/icon-256.webp +0 -0
- package/www/assets/icons/icon-48.webp +0 -0
- package/www/assets/icons/icon-512.webp +0 -0
- package/www/assets/icons/icon-72.webp +0 -0
- package/www/assets/icons/icon-96.webp +0 -0
- package/www/assets/images/angular-logo.svg +0 -45
- package/www/assets/images/apple-touch-icon.png +0 -0
- package/www/assets/images/decaf-logo-black.svg +0 -22
- package/www/assets/images/decaf-logo-contrast.svg +0 -54
- package/www/assets/images/decaf-logo-white.svg +0 -22
- package/www/assets/images/decaf-logo.svg +0 -54
- package/www/assets/images/ew/product.txt +0 -1
- package/www/assets/images/favicon-contrast.svg +0 -7
- package/www/assets/images/favicon.png +0 -0
- package/www/assets/images/favicon.svg +0 -29
- package/www/assets/images/icons/document.svg +0 -7
- package/www/assets/images/icons/edit.svg +0 -1
- package/www/assets/images/icons/logout.svg +0 -4
- package/www/assets/images/icons/menu-collapse.svg +0 -5
- package/www/assets/images/icons/menu.svg +0 -3
- package/www/assets/images/icons/moon-stars.svg +0 -5
- package/www/assets/images/icons/trash.svg +0 -1
- package/www/cli-module.ts +0 -139
- package/www/common.e50b5f8708aca9a5.js +0 -1
- package/www/index.html +0 -29
- package/www/main.6144bf417dec1977.js +0 -1
- package/www/polyfills.4c1e087fffe784e8.js +0 -1
- package/www/runtime.d8dcb0932f88fe3c.js +0 -1
- package/www/styles.5a3cd83eba16afc9.css +0 -4
- package/www/tabler-icons.bfabe54eef86ae62.woff +0 -0
- package/www/tabler-icons.d9f65ab9439b4ffc.ttf +0 -0
- package/www/tabler-icons.f17d2c3b34a5deaa.woff2 +0 -0
- /package/{dist/lib/assets → assets}/i18n/en.json +0 -0
- /package/{dist/lib/assets → assets}/i18n/ew/en.json +0 -0
- /package/{dist/lib/assets → assets}/i18n/pt.json +0 -0
- /package/{dist/lib/assets → assets}/icons/icon-128.webp +0 -0
- /package/{dist/lib/assets → assets}/icons/icon-192.webp +0 -0
- /package/{dist/lib/assets → assets}/icons/icon-256.webp +0 -0
- /package/{dist/lib/assets → assets}/icons/icon-48.webp +0 -0
- /package/{dist/lib/assets → assets}/icons/icon-512.webp +0 -0
- /package/{dist/lib/assets → assets}/icons/icon-72.webp +0 -0
- /package/{dist/lib/assets → assets}/icons/icon-96.webp +0 -0
- /package/{dist/lib/assets → assets}/images/angular-logo.svg +0 -0
- /package/{dist/lib/assets → assets}/images/apple-touch-icon.png +0 -0
- /package/{dist/lib/assets → assets}/images/decaf-logo-black.svg +0 -0
- /package/{dist/lib/assets → assets}/images/decaf-logo-contrast.svg +0 -0
- /package/{dist/lib/assets → assets}/images/decaf-logo-white.svg +0 -0
- /package/{dist/lib/assets → assets}/images/decaf-logo.svg +0 -0
- /package/{dist/lib/assets → assets}/images/ew/product.txt +0 -0
- /package/{dist/lib/assets → assets}/images/favicon-contrast.svg +0 -0
- /package/{dist/lib/assets → assets}/images/favicon.png +0 -0
- /package/{dist/lib/assets → assets}/images/favicon.svg +0 -0
- /package/{dist/lib/assets → assets}/images/icons/document.svg +0 -0
- /package/{dist/lib/assets → assets}/images/icons/edit.svg +0 -0
- /package/{dist/lib/assets → assets}/images/icons/logout.svg +0 -0
- /package/{dist/lib/assets → assets}/images/icons/menu-collapse.svg +0 -0
- /package/{dist/lib/assets → assets}/images/icons/menu.svg +0 -0
- /package/{dist/lib/assets → assets}/images/icons/moon-stars.svg +0 -0
- /package/{dist/lib/assets → assets}/images/icons/trash.svg +0 -0
- /package/{dist/lib/fesm2022 → fesm2022}/decaf-ts-for-angular.mjs +0 -0
- /package/{dist/lib/fesm2022 → fesm2022}/decaf-ts-for-angular.mjs.map +0 -0
- /package/{dist/lib/index.d.ts → index.d.ts} +0 -0
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = angular;
|
|
4
|
-
const commander_1 = require("commander");
|
|
5
|
-
const utils_1 = require("@decaf-ts/utils");
|
|
6
|
-
const logging_1 = require("@decaf-ts/logging");
|
|
7
|
-
var Projects;
|
|
8
|
-
(function (Projects) {
|
|
9
|
-
Projects["FOR_ANGULAR"] = "for-angular";
|
|
10
|
-
Projects["FOR_ANGULAR_APP"] = "for-angular-app";
|
|
11
|
-
Projects["LIB"] = "lib";
|
|
12
|
-
Projects["APP"] = "app";
|
|
13
|
-
})(Projects || (Projects = {}));
|
|
14
|
-
;
|
|
15
|
-
var Types;
|
|
16
|
-
(function (Types) {
|
|
17
|
-
Types["PAGE"] = "page";
|
|
18
|
-
Types["SERVICE"] = "service";
|
|
19
|
-
Types["COMPONENT"] = "component";
|
|
20
|
-
Types["DIRECTIVE"] = "directive";
|
|
21
|
-
Types["SCHEMATICS"] = "schematics";
|
|
22
|
-
})(Types || (Types = {}));
|
|
23
|
-
;
|
|
24
|
-
const logger = logging_1.Logging.for("for-angular-cli");
|
|
25
|
-
/**
|
|
26
|
-
* Creates and returns a Command object for the Angular CLI module in decaf-ts.
|
|
27
|
-
* This function sets up a 'generate' command that can create various Angular artifacts.
|
|
28
|
-
*
|
|
29
|
-
* @returns {Command} A Command object configured with the 'generate' subcommand and its action.
|
|
30
|
-
*
|
|
31
|
-
* The command syntax is: generate <type> <name> [project]
|
|
32
|
-
* @param {Types} type - The type of artifact to generate (e.g., service, component, directive, page).
|
|
33
|
-
* @param {string} name - The name of the artifact to be generated.
|
|
34
|
-
* @param {Projects} [project=Projects.FOR_ANGULAR] - The project for which to generate the artifact.
|
|
35
|
-
* Defaults to the main Angular project if not specified.
|
|
36
|
-
*
|
|
37
|
-
* @throws {Error} If an invalid type is provided.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* // Usage in CLI
|
|
41
|
-
* // decaf-ts generate service my-service
|
|
42
|
-
* // decaf-ts generate component my-component for-angular-app
|
|
43
|
-
*/
|
|
44
|
-
function angular() {
|
|
45
|
-
return new commander_1.Command()
|
|
46
|
-
.name('decaf generate')
|
|
47
|
-
.command('generate <type> <name> [project]')
|
|
48
|
-
.description(`decaf-ts Angular CLI module`)
|
|
49
|
-
.action(async (type, name, project = Projects.FOR_ANGULAR) => {
|
|
50
|
-
if (!validateType(type))
|
|
51
|
-
return logger.error(`${type} is not valid. Use service, component or directive.`);
|
|
52
|
-
if (type === Types.SCHEMATICS)
|
|
53
|
-
return await generateSchematics();
|
|
54
|
-
if (type === Types.PAGE) {
|
|
55
|
-
logger.info(`Pages can be only generate for app. Forcing project to: ${Projects.FOR_ANGULAR_APP}`);
|
|
56
|
-
project = Projects.FOR_ANGULAR_APP;
|
|
57
|
-
}
|
|
58
|
-
project = parseProjectName(project);
|
|
59
|
-
if (!validateProject(project))
|
|
60
|
-
project = Projects.FOR_ANGULAR;
|
|
61
|
-
const command = project === Projects.FOR_ANGULAR_APP ?
|
|
62
|
-
'ionic generate' : `ng generate --project=${Projects.FOR_ANGULAR} --path=src/lib/${type}s`;
|
|
63
|
-
try {
|
|
64
|
-
const result = await execute(`${command} ${type} ${name}`);
|
|
65
|
-
logger.info(result);
|
|
66
|
-
}
|
|
67
|
-
catch (error) {
|
|
68
|
-
logger.error(error?.message || error);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
async function generateSchematics() {
|
|
73
|
-
return Promise.all([
|
|
74
|
-
execute(`npm link schematics`),
|
|
75
|
-
execute(`cd schematics`),
|
|
76
|
-
execute(`npm install`),
|
|
77
|
-
execute(`npm run build`),
|
|
78
|
-
execute(`npx schematics .:schematics --name=decaf`)
|
|
79
|
-
])
|
|
80
|
-
.then(res => res)
|
|
81
|
-
.catch(error => error);
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Executes a shell command asynchronously.
|
|
85
|
-
*
|
|
86
|
-
* @param command - The shell command to execute.
|
|
87
|
-
* @returns A Promise that resolves with the command's stdout output as a string if successful,
|
|
88
|
-
* or rejects with an error message if the command fails or produces stderr output.
|
|
89
|
-
*/
|
|
90
|
-
async function execute(command) {
|
|
91
|
-
try {
|
|
92
|
-
return await (0, utils_1.runCommand)(command).promise;
|
|
93
|
-
}
|
|
94
|
-
catch (error) {
|
|
95
|
-
logger.error(error?.message || error);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Parses and normalizes the project name input.
|
|
100
|
-
*
|
|
101
|
-
* @param value - The input project name to be parsed.
|
|
102
|
-
* Can be 'app', 'lib', or any other string value.
|
|
103
|
-
* @returns A normalized string representation of the project name.
|
|
104
|
-
* Returns 'for-angular-app' if input is 'app',
|
|
105
|
-
* 'for-angular' if input is 'lib',
|
|
106
|
-
* or the lowercase version of the input for any other value.
|
|
107
|
-
*/
|
|
108
|
-
function parseProjectName(value) {
|
|
109
|
-
return (value === Projects.APP ?
|
|
110
|
-
Projects.FOR_ANGULAR_APP : value === Projects.LIB ?
|
|
111
|
-
Projects.FOR_ANGULAR : value).toLowerCase();
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Validates if the given type value is a valid enum member of Types.
|
|
115
|
-
*
|
|
116
|
-
* @param value - The type value to validate.
|
|
117
|
-
* @returns A boolean indicating whether the value is a valid Types enum member.
|
|
118
|
-
*/
|
|
119
|
-
function validateType(value) {
|
|
120
|
-
return Object.values(Types).includes(value);
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Validates if the given project value is a valid enum member of Projects.
|
|
124
|
-
*
|
|
125
|
-
* @param value - The project value to validate.
|
|
126
|
-
* @returns A boolean indicating whether the value is a valid Projects enum member.
|
|
127
|
-
*/
|
|
128
|
-
function validateProject(value) {
|
|
129
|
-
return Object.values(Projects).includes(value);
|
|
130
|
-
}
|
|
131
|
-
//# sourceMappingURL=cli-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli-module.js","sourceRoot":"","sources":["../../../src/cli-module.ts"],"names":[],"mappings":"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"}
|
package/dist/lib/README.md
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
# Decaf's Angular Module
|
|
4
|
-
|
|
5
|
-
> Release docs refreshed on 2025-11-26. See [workdocs/reports/RELEASE_NOTES.md](./workdocs/reports/RELEASE_NOTES.md) for ticket summaries.
|
|
6
|
-
|
|
7
|
-

|
|
8
|
-

|
|
9
|
-

|
|
10
|
-
|
|
11
|
-
[](https://github.com/decaf-ts/for-angular/actions/workflows/nodejs-build-prod.yaml)
|
|
12
|
-
[](https://github.com/decaf-ts/for-angular/actions/workflows/codeql-analysis.yml)[](https://github.com/decaf-ts/for-angular/actions/workflows/snyk-analysis.yaml)
|
|
13
|
-
[](https://github.com/decaf-ts/for-angular/actions/workflows/pages.yaml)
|
|
14
|
-
[](https://github.com/decaf-ts/for-angular/actions/workflows/release-on-tag.yaml)
|
|
15
|
-
|
|
16
|
-

|
|
17
|
-

|
|
18
|
-

|
|
19
|
-

|
|
20
|
-
|
|
21
|
-

|
|
22
|
-

|
|
23
|
-

|
|
24
|
-

|
|
25
|
-
|
|
26
|
-
|
|
27
|
-

|
|
28
|
-

|
|
29
|
-

|
|
30
|
-
|
|
31
|
-

|
|
32
|
-

|
|
33
|
-
|
|
34
|
-
Documentation available [here](https://decaf-ts.github.io/for-angular/)
|
|
35
|
-
|
|
36
|
-
Minimal size: unknown kb gzipped
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### Description
|
|
40
|
-
|
|
41
|
-
A very versatile persistence layer. from smart contracts, Digital wallets or just regular database access
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### How to Use
|
|
46
|
-
|
|
47
|
-
- [Initial Setup](./workdocs/tutorials/For%20Developers.md#_initial-setup_)
|
|
48
|
-
- [Installation](./workdocs/tutorials/For%20Developers.md#installation)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
## Coding Principles
|
|
54
|
-
|
|
55
|
-
- group similar functionality in folders (analog to namespaces but without any namespace declaration)
|
|
56
|
-
- one class per file;
|
|
57
|
-
- one interface per file (unless interface is just used as a type);
|
|
58
|
-
- group types as other interfaces in a types.ts file per folder;
|
|
59
|
-
- group constants or enums in a constants.ts file per folder;
|
|
60
|
-
- group decorators in a decorators.ts file per folder;
|
|
61
|
-
- always import from the specific file, never from a folder or index file (exceptions for dependencies on other packages);
|
|
62
|
-
- prefer the usage of established design patters where applicable:
|
|
63
|
-
- Singleton (can be an anti-pattern. use with care);
|
|
64
|
-
- factory;
|
|
65
|
-
- observer;
|
|
66
|
-
- strategy;
|
|
67
|
-
- builder;
|
|
68
|
-
- etc;
|
|
69
|
-
|
|
70
|
-
## Release Documentation Hooks
|
|
71
|
-
Stay aligned with the automated release pipeline by reviewing [Release Notes](./workdocs/reports/RELEASE_NOTES.md) and [Dependencies](./workdocs/reports/DEPENDENCIES.md) after trying these recipes (updated on 2025-11-26).
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
### Related
|
|
75
|
-
|
|
76
|
-
[](https://github.com/decaf-ts/decaf-ts)
|
|
77
|
-
[](https://github.com/decaf-ts/ui-decorators)
|
|
78
|
-
[](https://github.com/decaf-ts/styles)
|
|
79
|
-
[](https://github.com/decaf-ts/decorator-validation)
|
|
80
|
-
[](https://github.com/decaf-ts/db-decorators)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
### Social
|
|
84
|
-
|
|
85
|
-
[](https://www.linkedin.com/in/decaf-ts/)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
#### Languages
|
|
91
|
-
|
|
92
|
-

|
|
93
|
-

|
|
94
|
-

|
|
95
|
-

|
|
96
|
-
|
|
97
|
-
## Getting help
|
|
98
|
-
|
|
99
|
-
If you have bug reports, questions or suggestions please [create a new issue](https://github.com/decaf-ts/ts-workspace/issues/new/choose).
|
|
100
|
-
|
|
101
|
-
## Contributing
|
|
102
|
-
|
|
103
|
-
I am grateful for any contributions made to this project. Please read [this](./workdocs/98-Contributing.md) to get started.
|
|
104
|
-
|
|
105
|
-
## Supporting
|
|
106
|
-
|
|
107
|
-
The first and easiest way you can support it is by [Contributing](./workdocs/98-Contributing.md). Even just finding a typo in the documentation is important.
|
|
108
|
-
|
|
109
|
-
Financial support is always welcome and helps keep both me and the project alive and healthy.
|
|
110
|
-
|
|
111
|
-
So if you can, if this project in any way. either by learning something or simply by helping you save precious time, please consider donating.
|
|
112
|
-
|
|
113
|
-
## License
|
|
114
|
-
|
|
115
|
-
This project is licensed under the Mozilla Public License 2.0 (MPL-2.0). See `./LICENSE.md` for a Fair Usage Addendum that explains when AGPL-3.0 applies (automated AI/Decaf MCP code generation and non-deterministic UI generation).
|
|
116
|
-
|
|
117
|
-
By developers, for developers...
|
package/eslint.config.mjs
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import eslint from '@eslint/js';
|
|
2
|
-
import angular from 'angular-eslint';
|
|
3
|
-
import unusedImports from 'eslint-plugin-unused-imports';
|
|
4
|
-
import tseslint from 'typescript-eslint';
|
|
5
|
-
// import Ajv from 'ajv/dist/ajv.bundle.js';
|
|
6
|
-
|
|
7
|
-
// new Ajv({ missingRefs: 'ignore' });
|
|
8
|
-
export default tseslint.config(
|
|
9
|
-
{
|
|
10
|
-
ignores: [
|
|
11
|
-
'.vscode/*',
|
|
12
|
-
'tests/**',
|
|
13
|
-
'**/*.spec.*',
|
|
14
|
-
'**/cli-module.*',
|
|
15
|
-
'src/tests/**',
|
|
16
|
-
'src/app/**',
|
|
17
|
-
'src/stories/**/*.ts',
|
|
18
|
-
'src/polyfills.ts',
|
|
19
|
-
'src/zone-flags.ts',
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
files: ['**/*.ts'],
|
|
24
|
-
languageOptions: {
|
|
25
|
-
parserOptions: {
|
|
26
|
-
project: './tsconfig.json',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
extends: [
|
|
31
|
-
eslint.configs.recommended,
|
|
32
|
-
...tseslint.configs.recommended,
|
|
33
|
-
...tseslint.configs.stylistic,
|
|
34
|
-
...angular.configs.tsRecommended,
|
|
35
|
-
],
|
|
36
|
-
processor: angular.processInlineTemplates,
|
|
37
|
-
plugins: {
|
|
38
|
-
'unused-imports': unusedImports,
|
|
39
|
-
},
|
|
40
|
-
rules: {
|
|
41
|
-
'prefer-const': 'warn',
|
|
42
|
-
'@typescript-eslint/no-explicit-any': 'warn',
|
|
43
|
-
'no-useless-constructor': 'off',
|
|
44
|
-
'@typescript-eslint/no-useless-constructor': 'warn',
|
|
45
|
-
'@typescript-eslint/no-inferrable-types': 'off',
|
|
46
|
-
'@typescript-eslint/no-empty-function': 'warn',
|
|
47
|
-
|
|
48
|
-
'@angular-eslint/no-empty-lifecycle-method': 'warn',
|
|
49
|
-
'@angular-eslint/prefer-inject': 'warn',
|
|
50
|
-
'@angular-eslint/component-class-suffix': ['error', { suffixes: ['Page', 'Component'] }],
|
|
51
|
-
'@angular-eslint/directive-selector': [
|
|
52
|
-
'error',
|
|
53
|
-
{
|
|
54
|
-
type: 'attribute',
|
|
55
|
-
prefix: ['ngx-decaf', ''],
|
|
56
|
-
style: 'kebab-case',
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
'@angular-eslint/component-selector': [
|
|
60
|
-
'error',
|
|
61
|
-
{
|
|
62
|
-
type: 'element',
|
|
63
|
-
prefix: ['app', 'for-angular', 'decaf', 'ngx-decaf'],
|
|
64
|
-
style: 'kebab-case',
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
|
|
68
|
-
'unused-imports/no-unused-imports': 'warn',
|
|
69
|
-
'unused-imports/no-unused-vars': [
|
|
70
|
-
'warn',
|
|
71
|
-
{
|
|
72
|
-
vars: 'all',
|
|
73
|
-
varsIgnorePattern: '^_',
|
|
74
|
-
args: 'after-used',
|
|
75
|
-
argsIgnorePattern: '^_',
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
|
|
79
|
-
'@typescript-eslint/no-unused-vars': 'warn',
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
// regras para tipos
|
|
84
|
-
{
|
|
85
|
-
files: ['**/*.ts', '**/*.spec.ts'],
|
|
86
|
-
rules: {
|
|
87
|
-
'unused-imports/no-unused-imports': 'off',
|
|
88
|
-
'unused-imports/no-unused-vars': 'off',
|
|
89
|
-
'@typescript-eslint/no-unused-vars': 'off',
|
|
90
|
-
},
|
|
91
|
-
// Só ativa este override se o arquivo estiver na mesma pasta que types.ts
|
|
92
|
-
// ou se o caminho contiver "types"
|
|
93
|
-
ignores: ['!**/types.ts', '!**/types/*'],
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
{
|
|
97
|
-
files: ['**/*.html'],
|
|
98
|
-
extends: [...angular.configs.templateRecommended, ...angular.configs.templateAccessibility],
|
|
99
|
-
rules: {},
|
|
100
|
-
}
|
|
101
|
-
);
|
package/ionic.config.json
DELETED
package/jest.config.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { Config } from 'jest';
|
|
2
|
-
|
|
3
|
-
const config: Config = {
|
|
4
|
-
preset: 'jest-preset-angular',
|
|
5
|
-
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
|
|
6
|
-
testEnvironment: 'jsdom',
|
|
7
|
-
testPathIgnorePatterns: ['/tests/playwright'],
|
|
8
|
-
modulePathIgnorePatterns: ['/dist', 'src/app'],
|
|
9
|
-
|
|
10
|
-
// Transform settings
|
|
11
|
-
transform: {
|
|
12
|
-
'^.+\\.(ts|js|mjs|html|svg)$': [
|
|
13
|
-
'jest-preset-angular',
|
|
14
|
-
{
|
|
15
|
-
tsconfig: '<rootDir>/tsconfig.spec.json',
|
|
16
|
-
stringifyContentPathRegex: '\\.(html|svg)$',
|
|
17
|
-
// isolatedModules: true,
|
|
18
|
-
useESM: true,
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
// Module handling
|
|
24
|
-
moduleNameMapper: {
|
|
25
|
-
'^src/lib/engine/(.*)$': '<rootDir>/src/lib/engine/$1',
|
|
26
|
-
'^src/lib/helpers/(.*)$': '<rootDir>/src/lib/helpers/$1',
|
|
27
|
-
'^src/lib/(.*)$': '<rootDir>/src/lib/$1',
|
|
28
|
-
'^lodash-es$': 'lodash',
|
|
29
|
-
'^ionicons/components/ion-icon.js$': '@ionic/core/components/ion-icon.js'
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
// Critical for Ionic/Stencil modules
|
|
33
|
-
transformIgnorePatterns: [
|
|
34
|
-
'node_modules/(?!.*\\.mjs$|@ionic/core|@stencil|@ionic/angular|ionicons)',
|
|
35
|
-
],
|
|
36
|
-
|
|
37
|
-
// Other settings
|
|
38
|
-
verbose: true,
|
|
39
|
-
collectCoverage: false,
|
|
40
|
-
coverageDirectory: './workdocs/reports/coverage',
|
|
41
|
-
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}', '!src/bin/**/*'],
|
|
42
|
-
reporters: ['default'],
|
|
43
|
-
moduleFileExtensions: ['ts', 'tsx', 'mjs', 'js', 'jsx', 'json', 'node', 'html'],
|
|
44
|
-
resolver: 'jest-preset-angular/build/resolvers/ng-jest-resolver.js',
|
|
45
|
-
snapshotSerializers: [
|
|
46
|
-
'jest-preset-angular/build/serializers/no-ng-attributes',
|
|
47
|
-
'jest-preset-angular/build/serializers/ng-snapshot',
|
|
48
|
-
'jest-preset-angular/build/serializers/html-comment',
|
|
49
|
-
],
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export default config;
|
package/jest.setup.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// import 'jest-preset-angular/setup-jest'; // deprecated
|
|
2
|
-
import { TextDecoder, TextEncoder } from 'util';
|
|
3
|
-
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
|
|
4
|
-
|
|
5
|
-
setupZoneTestEnv();
|
|
6
|
-
|
|
7
|
-
// Jest + Ionic
|
|
8
|
-
Object.defineProperty(window, 'CSS', { value: null });
|
|
9
|
-
|
|
10
|
-
// Mocking window.matchMedia
|
|
11
|
-
Object.defineProperty(window, 'matchMedia', {
|
|
12
|
-
writable: true,
|
|
13
|
-
value: jest.fn().mockImplementation(query => ({
|
|
14
|
-
matches: false,
|
|
15
|
-
media: query,
|
|
16
|
-
onchange: null,
|
|
17
|
-
addListener: jest.fn(), // obsoleto
|
|
18
|
-
removeListener: jest.fn(), // obsoleto
|
|
19
|
-
addEventListener: jest.fn(),
|
|
20
|
-
removeEventListener: jest.fn(),
|
|
21
|
-
dispatchEvent: jest.fn(),
|
|
22
|
-
})),
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
// JSDOM: https://thymikee.github.io/jest-preset-angular/docs/getting-started/installation/#customizing
|
|
26
|
-
Object.defineProperty(document, 'doctype', {
|
|
27
|
-
value: '<!DOCTYPE html>',
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
Object.defineProperty(window, 'getComputedStyle', {
|
|
31
|
-
value: () => ({
|
|
32
|
-
display: 'none',
|
|
33
|
-
appearance: ['-webkit-appearance'],
|
|
34
|
-
}),
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Workaround for JSDOM missing transform property
|
|
39
|
-
*/
|
|
40
|
-
Object.defineProperty(document.body.style, 'transform', {
|
|
41
|
-
value: () => {
|
|
42
|
-
return {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
configurable: true,
|
|
45
|
-
};
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
(global as Record<string, unknown>)['TextEncoder'] = TextEncoder;
|
|
50
|
-
(global as Record<string, unknown>)['TextDecoder'] = TextDecoder;
|
package/karma.conf.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// Karma configuration file, see link for more information
|
|
2
|
-
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
-
|
|
4
|
-
module.exports = function (config) {
|
|
5
|
-
config.set({
|
|
6
|
-
basePath: "",
|
|
7
|
-
frameworks: ["jasmine", "@angular-devkit/build-angular"],
|
|
8
|
-
files: ['src/lib/**/*.spec.ts'],
|
|
9
|
-
plugins: [
|
|
10
|
-
require("karma-jasmine"),
|
|
11
|
-
require("karma-chrome-launcher"),
|
|
12
|
-
require("karma-jasmine-html-reporter"),
|
|
13
|
-
require("karma-coverage"),
|
|
14
|
-
require("@angular-devkit/build-angular/plugins/karma"),
|
|
15
|
-
],
|
|
16
|
-
client: {
|
|
17
|
-
jasmine: {
|
|
18
|
-
// you can add configuration options for Jasmine here
|
|
19
|
-
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
20
|
-
// for example, you can disable the random execution with `random: false`
|
|
21
|
-
// or set a specific seed with `seed: 4321`
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
jasmineHtmlReporter: {
|
|
25
|
-
suppressAll: true, // removes the duplicated traces
|
|
26
|
-
},
|
|
27
|
-
coverageReporter: {
|
|
28
|
-
dir: require("path").join(__dirname, "workdocs", "reports", "coverage"),
|
|
29
|
-
subdir: ".",
|
|
30
|
-
reporters: [
|
|
31
|
-
{ type: 'html' },
|
|
32
|
-
{ type: 'text-summary' },
|
|
33
|
-
{ type: 'lcovonly' }
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
reporters: ["progress", "kjhtml"],
|
|
37
|
-
colors: true,
|
|
38
|
-
logLevel: config.LOG_INFO,
|
|
39
|
-
autoWatch: true,
|
|
40
|
-
browsers: ["ChromeHeadless", "Chrome"],
|
|
41
|
-
customLaunchers: {
|
|
42
|
-
ChromeHeadlessCI: {
|
|
43
|
-
base: "ChromeHeadless",
|
|
44
|
-
flags: ["--no-sandbox"],
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
singleRun: true,
|
|
48
|
-
restartOnFileChange: true,
|
|
49
|
-
});
|
|
50
|
-
};
|
package/ng-package.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
-
"dest": "./dist/lib",
|
|
4
|
-
"lib": {
|
|
5
|
-
"entryFile": "src/lib/public-apis.ts",
|
|
6
|
-
"styleIncludePaths": ["./src/assets"]
|
|
7
|
-
},
|
|
8
|
-
"inlineStyleLanguage": "scss",
|
|
9
|
-
"assets": [
|
|
10
|
-
{
|
|
11
|
-
"glob": "**/*",
|
|
12
|
-
"input": "src/assets",
|
|
13
|
-
"output": "assets"
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
}
|
package/ngsw-config.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
|
|
3
|
-
"index": "/index.html",
|
|
4
|
-
"assetGroups": [
|
|
5
|
-
{
|
|
6
|
-
"name": "app",
|
|
7
|
-
"installMode": "prefetch",
|
|
8
|
-
"resources": {
|
|
9
|
-
"files": [
|
|
10
|
-
"/favicon.ico",
|
|
11
|
-
"/index.html",
|
|
12
|
-
"/manifest.webmanifest",
|
|
13
|
-
"/*.css",
|
|
14
|
-
"/*.js"
|
|
15
|
-
]
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "assets",
|
|
20
|
-
"installMode": "lazy",
|
|
21
|
-
"updateMode": "prefetch",
|
|
22
|
-
"resources": {
|
|
23
|
-
"files": [
|
|
24
|
-
"/assets/**",
|
|
25
|
-
"/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
package/playwright.config.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { defineConfig, devices } from '@playwright/test';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Read environment variables from file.
|
|
5
|
-
* https://github.com/motdotla/dotenv
|
|
6
|
-
*/
|
|
7
|
-
// import dotenv from 'dotenv';
|
|
8
|
-
// import path from 'path';
|
|
9
|
-
// dotenv.config({ path: path.resolve(__dirname, '.env') });
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* See https://playwright.dev/docs/test-configuration.
|
|
13
|
-
*/
|
|
14
|
-
export default defineConfig({
|
|
15
|
-
testDir: './tests/playwright',
|
|
16
|
-
/* Run tests in files in parallel */
|
|
17
|
-
fullyParallel: true,
|
|
18
|
-
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
|
19
|
-
forbidOnly: !!process.env?.['CI'],
|
|
20
|
-
/* Retry on CI only */
|
|
21
|
-
retries: process.env?.['CI'] ? 2 : 0,
|
|
22
|
-
/* Opt out of parallel tests on CI. */
|
|
23
|
-
workers: process.env?.['CI']? 1 : undefined,
|
|
24
|
-
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
|
25
|
-
reporter: 'html',
|
|
26
|
-
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
|
27
|
-
use: {
|
|
28
|
-
/* Base URL to use in actions like `await page.goto('/')`. */
|
|
29
|
-
// baseURL: 'http://localhost:3000',
|
|
30
|
-
|
|
31
|
-
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
|
32
|
-
trace: 'on-first-retry',
|
|
33
|
-
video: 'on',
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
/* Configure projects for major browsers */
|
|
37
|
-
projects: [
|
|
38
|
-
{
|
|
39
|
-
name: 'chromium',
|
|
40
|
-
use: { ...devices['Desktop Chrome'] },
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
// {
|
|
44
|
-
// name: 'firefox',
|
|
45
|
-
// use: { ...devices['Desktop Firefox'] },
|
|
46
|
-
// },
|
|
47
|
-
|
|
48
|
-
// {
|
|
49
|
-
// name: 'webkit',
|
|
50
|
-
// use: { ...devices['Desktop Safari'] },
|
|
51
|
-
// },
|
|
52
|
-
|
|
53
|
-
/* Test against mobile viewports. */
|
|
54
|
-
// {
|
|
55
|
-
// name: 'Mobile Chrome',
|
|
56
|
-
// use: { ...devices['Pixel 5'] },
|
|
57
|
-
// },
|
|
58
|
-
// {
|
|
59
|
-
// name: 'Mobile Safari',
|
|
60
|
-
// use: { ...devices['iPhone 12'] },
|
|
61
|
-
// },
|
|
62
|
-
|
|
63
|
-
/* Test against branded browsers. */
|
|
64
|
-
// {
|
|
65
|
-
// name: 'Microsoft Edge',
|
|
66
|
-
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
|
|
67
|
-
// },
|
|
68
|
-
// {
|
|
69
|
-
// name: 'Google Chrome',
|
|
70
|
-
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
|
|
71
|
-
// },
|
|
72
|
-
],
|
|
73
|
-
|
|
74
|
-
/* Run your local dev server before starting the tests */
|
|
75
|
-
// webServer: {
|
|
76
|
-
// command: 'npm run start',
|
|
77
|
-
// url: 'http://localhost:3000',
|
|
78
|
-
// reuseExistingServer: !process.env.CI,
|
|
79
|
-
// },
|
|
80
|
-
});
|
package/resources/favicon.png
DELETED
|
Binary file
|