@decaf-ts/for-angular 0.1.1 → 0.1.4
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/.editorconfig +31 -0
- package/.gitlab-ci.yml +197 -0
- package/.hintrc +19 -0
- package/.prettierrc +49 -0
- package/.snyk +13 -0
- package/LICENSE.md +260 -0
- package/angular.json +274 -0
- package/bs-config.json +5 -0
- package/cli-module.js.map +1 -0
- package/dist/for-angular/cli/cli-module.d.ts +22 -0
- package/dist/for-angular/cli/cli-module.d.ts.map +1 -0
- package/dist/for-angular/cli/cli-module.js +131 -0
- package/dist/for-angular/cli/cli-module.js.map +1 -0
- package/dist/lib/README.md +117 -0
- package/{fesm2022 → dist/lib/fesm2022}/decaf-ts-for-angular.mjs +93 -109
- package/dist/lib/fesm2022/decaf-ts-for-angular.mjs.map +1 -0
- package/{index.d.ts → dist/lib/index.d.ts} +6 -5
- package/eslint.config.mjs +101 -0
- package/ionic.config.json +14 -0
- package/jest.config.ts +52 -0
- package/jest.setup.ts +50 -0
- package/karma.conf.js +50 -0
- package/ng-package.json +16 -0
- package/ngsw-config.json +30 -0
- package/package.json +86 -17
- package/playwright.config.ts +80 -0
- package/resources/favicon.png +0 -0
- package/resources/favicon.svg +29 -0
- 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 +29 -0
- 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 +29 -0
- package/schematics/README.md +28 -0
- package/schematics/collection.json +20 -0
- package/schematics/package-lock.json +1501 -0
- package/schematics/package.json +37 -0
- 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 +3 -0
- package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +40 -0
- package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template +37 -0
- package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.module.ts.template +14 -0
- package/schematics/src/component/index.js +146 -0
- package/schematics/src/component/schema.js +2 -0
- package/schematics/src/component/schema.json +101 -0
- package/schematics/src/page/files/__name@dasherize__.page.html.template +15 -0
- package/schematics/src/page/files/__name@dasherize__.page.scss.template +0 -0
- package/schematics/src/page/files/__name@dasherize__.page.ts.template +19 -0
- package/schematics/src/page/index.js +71 -0
- package/schematics/src/page/schema.json +87 -0
- package/schematics/src/schematics/index.js +11 -0
- package/schematics/src/schematics/index_spec.js +13 -0
- package/schematics/src/util/ast-util.js +517 -0
- package/schematics/src/util/change.js +96 -0
- package/schematics/src/util/index.js +14 -0
- package/settings.json +112 -0
- package/tsconfig.app.json +22 -0
- package/tsconfig.cli.json +82 -0
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +22 -0
- package/webpack.config.js +10 -0
- package/workdocs/1-Header.md +5 -0
- package/workdocs/2-Badges.md +30 -0
- package/workdocs/4-Description.md +4 -0
- package/workdocs/5-HowToUse.md +27 -0
- package/workdocs/6-Related.md +7 -0
- package/workdocs/7-Social.md +5 -0
- package/workdocs/99-Footer.md +28 -0
- package/workdocs/Readme.md +12 -0
- package/workdocs/assets/apple-touch-icon.png +0 -0
- package/workdocs/assets/decaf-logo.svg +54 -0
- package/workdocs/assets/favicon.png +0 -0
- package/workdocs/assets/slogans.json +182 -0
- package/workdocs/confluence/.markdown-confluence.template.json +6 -0
- package/workdocs/confluence/Angular Module.md +5 -0
- package/workdocs/drawings/diagram.drawio +24 -0
- package/workdocs/prompts/bulk.md +122 -0
- package/workdocs/prompts/code.md +47 -0
- package/workdocs/prompts/documentation.md +146 -0
- package/workdocs/prompts/uml.md +11 -0
- package/workdocs/readme-md.json +6 -0
- package/workdocs/reports/CHANGELOG.md +12 -0
- package/workdocs/reports/DEPENDENCIES.md +213 -0
- package/workdocs/reports/RELEASE_NOTES.md +24 -0
- package/workdocs/reports/coverage/.gitkeep +0 -0
- package/workdocs/reports/coverage/clover.xml +4110 -0
- package/workdocs/reports/coverage/coverage-final.json +76 -0
- package/workdocs/reports/coverage/lcov-report/base.css +224 -0
- package/workdocs/reports/coverage/lcov-report/block-navigation.js +87 -0
- package/workdocs/reports/coverage/lcov-report/favicon.png +0 -0
- package/workdocs/reports/coverage/lcov-report/index.html +551 -0
- package/workdocs/reports/coverage/lcov-report/prettify.css +1 -0
- package/workdocs/reports/coverage/lcov-report/prettify.js +2 -0
- package/workdocs/reports/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/workdocs/reports/coverage/lcov-report/sorter.js +210 -0
- package/workdocs/reports/coverage/lcov-report/src/app/models/CategoryModel.ts.html +277 -0
- package/workdocs/reports/coverage/lcov-report/src/app/models/DemoModel.ts.html +427 -0
- package/workdocs/reports/coverage/lcov-report/src/app/models/UserModel.ts.html +226 -0
- package/workdocs/reports/coverage/lcov-report/src/app/models/index.html +146 -0
- package/workdocs/reports/coverage/lcov-report/src/cli-module.ts.html +502 -0
- package/workdocs/reports/coverage/lcov-report/src/environments/environment.ts.html +166 -0
- package/workdocs/reports/coverage/lcov-report/src/environments/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/index.html +191 -0
- package/workdocs/reports/coverage/lcov-report/src/karma-test.ts.html +121 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/card/card.component.ts.html +625 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/card/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/component-renderer/component-renderer.component.ts.html +772 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/component-renderer/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-field/crud-field.component.ts.html +2698 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-field/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-form/constants.ts.html +133 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-form/crud-form.component.ts.html +346 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-form/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/empty-state/empty-state.component.ts.html +1264 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/empty-state/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/fieldset/fieldset.component.ts.html +2965 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/fieldset/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/file-upload/file-upload.component.ts.html +2263 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/file-upload/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/filter/filter.component.ts.html +2485 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/filter/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/for-angular-components.module.ts.html +259 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/icon/icon.component.ts.html +358 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/icon/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/index.html +131 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/index.ts.html +181 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/layout/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/layout/layout.component.ts.html +943 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/list/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/list/list.component.ts.html +4261 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/list-item/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/list-item/list-item.component.ts.html +1741 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/modal/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/modal/modal.component.ts.html +1984 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/model-renderer/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/model-renderer/model-renderer.component.ts.html +373 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/pagination/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/pagination/pagination.component.ts.html +1165 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/searchbar/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/searchbar/searchbar.component.ts.html +1774 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/stepped-form/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/stepped-form/stepped-form.component.ts.html +1219 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/table/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/components/table/table.component.ts.html +988 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/directives/NgxSvgDirective.ts.html +163 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/directives/collapsable.directive.ts.html +268 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/directives/index.html +131 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/directives/index.ts.html +91 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/DynamicModule.ts.html +133 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/MediaService.ts.html +142 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxBaseComponent.ts.html +2194 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxComponentDirective.ts.html +3430 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxCrudFormField.ts.html +721 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxDecafComponentDirective.ts.html +1864 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxDecafFormFieldDirective.ts.html +952 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxDecafFormService.ts.html +3211 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxEventHandler.ts.html +307 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxFormDirective.ts.html +1366 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxFormFieldDirective.ts.html +1960 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxFormService.ts.html +3004 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxModelPageDirective.ts.html +1672 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxPageDirective.ts.html +748 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxParentComponentDirective.ts.html +775 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxRenderableComponentDirective.ts.html +727 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxRenderingEngine.ts.html +2005 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxRepositoryDirective.ts.html +1561 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/ValidatorFactory.ts.html +817 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/constants.ts.html +1120 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/decorators.ts.html +376 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/helpers.ts.html +676 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/index.html +356 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/index.ts.html +160 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/engine/overrides.ts.html +499 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/for-angular-common.module.ts.html +298 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/helpers/index.html +131 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/helpers/index.ts.html +121 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/helpers/utils.ts.html +1603 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/i18n/FakeLoader.ts.html +157 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/i18n/Loader.ts.html +826 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/i18n/index.html +146 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/i18n/index.ts.html +91 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/index.html +131 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/public-apis.ts.html +157 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxFormService.ts.html +3460 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxMediaService.ts.html +1420 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxRouterService.ts.html +1231 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxTranslateService.ts.html +214 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/services/index.html +176 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/services/index.ts.html +91 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/utils/DecafFakerRepository.ts.html +571 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/utils/helpers.ts.html +1663 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/utils/index.html +146 -0
- package/workdocs/reports/coverage/lcov-report/src/lib/utils/index.ts.html +124 -0
- package/workdocs/reports/coverage/lcov-report/src/main.ts.html +100 -0
- package/workdocs/reports/coverage/lcov-report/src/polyfills.ts.html +271 -0
- package/workdocs/reports/coverage/lcov-report/src/stories/Configure.stories.ts.html +1156 -0
- package/workdocs/reports/coverage/lcov-report/src/stories/button.component.ts.html +229 -0
- package/workdocs/reports/coverage/lcov-report/src/stories/button.stories.ts.html +235 -0
- package/workdocs/reports/coverage/lcov-report/src/stories/crud-field.stories.ts.html +325 -0
- package/workdocs/reports/coverage/lcov-report/src/stories/header.stories.ts.html +181 -0
- package/workdocs/reports/coverage/lcov-report/src/stories/index.html +281 -0
- package/workdocs/reports/coverage/lcov-report/src/stories/list.stories.ts.html +289 -0
- package/workdocs/reports/coverage/lcov-report/src/stories/login.page.stories.ts.html +175 -0
- package/workdocs/reports/coverage/lcov-report/src/stories/model-renderer.stories.ts.html +259 -0
- package/workdocs/reports/coverage/lcov-report/src/stories/page.component.ts.html +331 -0
- package/workdocs/reports/coverage/lcov-report/src/stories/page.stories.ts.html +193 -0
- package/workdocs/reports/coverage/lcov-report/src/stories/setup.ts.html +127 -0
- package/workdocs/reports/coverage/lcov-report/src/stories/utils.ts.html +247 -0
- package/workdocs/reports/coverage/lcov-report/src/tests/index.html +116 -0
- package/workdocs/reports/coverage/lcov-report/src/tests/karmaErrorParser.ts.html +190 -0
- package/workdocs/reports/coverage/lcov-report/src/typings.d.ts.html +88 -0
- package/workdocs/reports/coverage/lcov-report/src/zone-flags.ts.html +103 -0
- package/workdocs/reports/coverage/lcov.info +7917 -0
- package/workdocs/reports/data/.gitkeep +1 -0
- package/workdocs/reports/html/.gitkeep +0 -0
- package/workdocs/reports/html/jest-html-reporters-attach/test-report/index.js +3 -0
- package/workdocs/reports/html/jest-html-reporters-attach/test-report/result.js +1 -0
- package/workdocs/reports/html/test-report.html +1 -0
- package/workdocs/reports/images/.gitkeep +1 -0
- package/workdocs/reports/jest.coverage.config.ts +43 -0
- package/workdocs/reports/junit/junit-report.xml +91 -0
- 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 +64 -0
- package/workdocs/tutorials/Documentation.md +340 -0
- package/workdocs/tutorials/For Developers.md +337 -0
- package/workdocs/uml/diagram.puml +11 -0
- package/www/1049.10b030f0de36543b.js +1 -0
- package/www/1102.67cedfb3e29f0a05.js +1 -0
- package/www/1107.6454396befef800d.js +1 -0
- package/www/1459.cabc18e941afa5d7.js +1 -0
- package/www/1577.5221deebe3501e43.js +1 -0
- package/www/2075.b6dc4fbb89dd6afc.js +1 -0
- package/www/2348.c4cc27dadbec70ec.js +1 -0
- package/www/2375.318d0b24ab346271.js +1 -0
- package/www/2415.618d6968ffda319c.js +1 -0
- package/www/2460.1d97c6f48b898ee2.js +1 -0
- package/www/2560.2e7000dcf80b6b2c.js +1 -0
- package/www/2585.dffa5649fffafb44.js +1 -0
- package/www/2885.d99b86afd1ff7aa8.js +1 -0
- package/www/3162.bbc401f4a5f82460.js +1 -0
- package/www/323.f64c512be5c8d797.js +1 -0
- package/www/3238.a3e7e8004c6b6667.js +1 -0
- package/www/3506.8c03f5589b33a4a6.js +1 -0
- package/www/3511.56b7e49bb6c2c936.js +1 -0
- package/www/3519.84fbb67dc803f702.js +1 -0
- package/www/3675.7ebfdcf145052232.js +1 -0
- package/www/3814.765c1794e1be63de.js +1 -0
- package/www/3rdpartylicenses.txt +1344 -0
- package/www/4171.a974bdbf9c97e4e1.js +1 -0
- package/www/4183.41ef1def450a2cc0.js +1 -0
- package/www/4406.0b2dd3839b8c1417.js +1 -0
- package/www/441.e1031657c7e5f0ff.js +1 -0
- package/www/4463.6ad7b857e5f34009.js +1 -0
- package/www/4591.42f34534d38b9b31.js +1 -0
- package/www/4699.8df8ea9806163d4c.js +1 -0
- package/www/5100.ed6483c55a157d67.js +1 -0
- package/www/5193.15ea6938534eceb1.js +1 -0
- package/www/5197.6733853529768a45.js +1 -0
- package/www/5222.8439a641c2c4b1c1.js +1 -0
- package/www/5373.d7878f708309f038.js +1 -0
- package/www/5467.53f5cce977c2e28b.js +1 -0
- package/www/5712.b08cf436ee8145ce.js +1 -0
- package/www/5887.3d038f564e925abb.js +1 -0
- package/www/5949.37330f20e95dee79.js +1 -0
- package/www/6024.c10cc3d1b341c748.js +1 -0
- package/www/6433.360fcff952bde822.js +1 -0
- package/www/6499.60169da9869db697.js +1 -0
- package/www/6521.fab1f34bfe6b8200.js +1 -0
- package/www/6631.eaa711da6e0aeed9.js +1 -0
- package/www/6717.b4731255038304cd.js +1 -0
- package/www/6840.7317cd962ab23932.js +1 -0
- package/www/7030.d115d82ca7468a4e.js +1 -0
- package/www/7076.cce20ed5c79ff305.js +1 -0
- package/www/7179.c0545989ce869b3d.js +1 -0
- package/www/7240.69aeb484d78eb24d.js +1 -0
- package/www/7372.94c62459e34f7303.js +1 -0
- package/www/7402.983a5ecff61e9a5d.js +1 -0
- package/www/7428.527ac48035a2f915.js +1 -0
- package/www/7676.d7db23d350e4b096.js +1 -0
- package/www/770.80af87d5eb0075d3.js +1 -0
- package/www/7720.0701576cb9966779.js +1 -0
- package/www/7927.ee869d0dc478250a.js +1 -0
- package/www/8066.894688fbb2e5c832.js +1 -0
- package/www/8193.7f09ecd40b6d42c2.js +1 -0
- package/www/8255.158098a6302c91c2.js +1 -0
- package/www/8314.596c1ccf26b9c93a.js +1 -0
- package/www/8357.c5406b92e6933d7a.js +1 -0
- package/www/8477.a3ccc11c25a642d3.js +1 -0
- package/www/8487.93b6f7465ae1b7ac.js +1 -0
- package/www/8584.b77ad478a5a7ac2a.js +1 -0
- package/www/8805.a87413652185ff8f.js +1 -0
- package/www/8814.b489a78ae8e926c4.js +1 -0
- package/www/8970.234b3db1f97528fe.js +1 -0
- package/www/9013.c2e6ba17a915bdd6.js +1 -0
- package/www/9073.16c4e42482d55a3c.js +1 -0
- package/www/9344.7d2d24b194b794e2.js +1 -0
- package/www/9364.9a028036dd89e3e7.js +1 -0
- package/www/944.7e4317348c48d4f4.js +1 -0
- package/www/964.9a979e1c1aad0f5b.js +1 -0
- package/www/9657.8c3589a0aff521c0.js +1 -0
- package/www/9956.2d00a2153e9a7799.js +1 -0
- package/www/9977.068cd5561462bc99.js +1 -0
- package/www/assets/i18n/en.json +210 -0
- package/www/assets/i18n/ew/en.json +346 -0
- package/www/assets/i18n/pt.json +186 -0
- 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 +45 -0
- package/www/assets/images/apple-touch-icon.png +0 -0
- package/www/assets/images/decaf-logo-black.svg +22 -0
- package/www/assets/images/decaf-logo-contrast.svg +54 -0
- package/www/assets/images/decaf-logo-white.svg +22 -0
- package/www/assets/images/decaf-logo.svg +54 -0
- package/www/assets/images/ew/product.txt +1 -0
- package/www/assets/images/favicon-contrast.svg +7 -0
- package/www/assets/images/favicon.png +0 -0
- package/www/assets/images/favicon.svg +29 -0
- package/www/assets/images/icons/document.svg +7 -0
- package/www/assets/images/icons/edit.svg +1 -0
- package/www/assets/images/icons/logout.svg +4 -0
- package/www/assets/images/icons/menu-collapse.svg +5 -0
- package/www/assets/images/icons/menu.svg +3 -0
- package/www/assets/images/icons/moon-stars.svg +5 -0
- package/www/assets/images/icons/trash.svg +1 -0
- package/www/cli-module.ts +139 -0
- package/www/common.e50b5f8708aca9a5.js +1 -0
- package/www/index.html +29 -0
- package/www/main.6144bf417dec1977.js +1 -0
- package/www/polyfills.4c1e087fffe784e8.js +1 -0
- package/www/runtime.d8dcb0932f88fe3c.js +1 -0
- package/www/styles.5a3cd83eba16afc9.css +4 -0
- 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/fesm2022/decaf-ts-for-angular.mjs.map +0 -1
- /package/{assets → dist/lib/assets}/i18n/en.json +0 -0
- /package/{assets → dist/lib/assets}/i18n/ew/en.json +0 -0
- /package/{assets → dist/lib/assets}/i18n/pt.json +0 -0
- /package/{assets → dist/lib/assets}/icons/icon-128.webp +0 -0
- /package/{assets → dist/lib/assets}/icons/icon-192.webp +0 -0
- /package/{assets → dist/lib/assets}/icons/icon-256.webp +0 -0
- /package/{assets → dist/lib/assets}/icons/icon-48.webp +0 -0
- /package/{assets → dist/lib/assets}/icons/icon-512.webp +0 -0
- /package/{assets → dist/lib/assets}/icons/icon-72.webp +0 -0
- /package/{assets → dist/lib/assets}/icons/icon-96.webp +0 -0
- /package/{assets → dist/lib/assets}/images/angular-logo.svg +0 -0
- /package/{assets → dist/lib/assets}/images/apple-touch-icon.png +0 -0
- /package/{assets → dist/lib/assets}/images/decaf-logo-black.svg +0 -0
- /package/{assets → dist/lib/assets}/images/decaf-logo-contrast.svg +0 -0
- /package/{assets → dist/lib/assets}/images/decaf-logo-white.svg +0 -0
- /package/{assets → dist/lib/assets}/images/decaf-logo.svg +0 -0
- /package/{assets → dist/lib/assets}/images/ew/product.txt +0 -0
- /package/{assets → dist/lib/assets}/images/favicon-contrast.svg +0 -0
- /package/{assets → dist/lib/assets}/images/favicon.png +0 -0
- /package/{assets → dist/lib/assets}/images/favicon.svg +0 -0
- /package/{assets → dist/lib/assets}/images/icons/document.svg +0 -0
- /package/{assets → dist/lib/assets}/images/icons/edit.svg +0 -0
- /package/{assets → dist/lib/assets}/images/icons/logout.svg +0 -0
- /package/{assets → dist/lib/assets}/images/icons/menu-collapse.svg +0 -0
- /package/{assets → dist/lib/assets}/images/icons/menu.svg +0 -0
- /package/{assets → dist/lib/assets}/images/icons/moon-stars.svg +0 -0
- /package/{assets → dist/lib/assets}/images/icons/trash.svg +0 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for src/lib/components/crud-field</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../../../index.html">All files</a> src/lib/components/crud-field</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">44.62% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>54/121</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">19.23% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>15/78</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">45.45% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>5/11</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">46.36% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>51/110</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line low'></div>
|
|
65
|
+
<div class="pad1">
|
|
66
|
+
<table class="coverage-summary">
|
|
67
|
+
<thead>
|
|
68
|
+
<tr>
|
|
69
|
+
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
|
70
|
+
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
|
71
|
+
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
|
72
|
+
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
73
|
+
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
|
74
|
+
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
75
|
+
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
|
76
|
+
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
77
|
+
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
|
78
|
+
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
79
|
+
</tr>
|
|
80
|
+
</thead>
|
|
81
|
+
<tbody><tr>
|
|
82
|
+
<td class="file low" data-value="crud-field.component.ts"><a href="crud-field.component.ts.html">crud-field.component.ts</a></td>
|
|
83
|
+
<td data-value="44.62" class="pic low">
|
|
84
|
+
<div class="chart"><div class="cover-fill" style="width: 44%"></div><div class="cover-empty" style="width: 56%"></div></div>
|
|
85
|
+
</td>
|
|
86
|
+
<td data-value="44.62" class="pct low">44.62%</td>
|
|
87
|
+
<td data-value="121" class="abs low">54/121</td>
|
|
88
|
+
<td data-value="19.23" class="pct low">19.23%</td>
|
|
89
|
+
<td data-value="78" class="abs low">15/78</td>
|
|
90
|
+
<td data-value="45.45" class="pct low">45.45%</td>
|
|
91
|
+
<td data-value="11" class="abs low">5/11</td>
|
|
92
|
+
<td data-value="46.36" class="pct low">46.36%</td>
|
|
93
|
+
<td data-value="110" class="abs low">51/110</td>
|
|
94
|
+
</tr>
|
|
95
|
+
|
|
96
|
+
</tbody>
|
|
97
|
+
</table>
|
|
98
|
+
</div>
|
|
99
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
100
|
+
</div><!-- /wrapper -->
|
|
101
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
|
+
Code coverage generated by
|
|
103
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
+
at 2026-02-25T10:45:48.506Z
|
|
105
|
+
</div>
|
|
106
|
+
<script src="../../../../prettify.js"></script>
|
|
107
|
+
<script>
|
|
108
|
+
window.onload = function () {
|
|
109
|
+
prettyPrint();
|
|
110
|
+
};
|
|
111
|
+
</script>
|
|
112
|
+
<script src="../../../../sorter.js"></script>
|
|
113
|
+
<script src="../../../../block-navigation.js"></script>
|
|
114
|
+
</body>
|
|
115
|
+
</html>
|
|
116
|
+
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for src/lib/components/crud-form/constants.ts</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../../../index.html">All files</a> / <a href="index.html">src/lib/components/crud-form</a> constants.ts</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">100% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>2/2</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>0/0</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">100% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>0/0</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">100% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>2/2</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
83
|
+
<span class="cline-any cline-neutral"> </span>
|
|
84
|
+
<span class="cline-any cline-yes">2x</span>
|
|
85
|
+
<span class="cline-any cline-neutral"> </span>
|
|
86
|
+
<span class="cline-any cline-neutral"> </span>
|
|
87
|
+
<span class="cline-any cline-neutral"> </span>
|
|
88
|
+
<span class="cline-any cline-yes">2x</span>
|
|
89
|
+
<span class="cline-any cline-neutral"> </span>
|
|
90
|
+
<span class="cline-any cline-neutral"> </span>
|
|
91
|
+
<span class="cline-any cline-neutral"> </span>
|
|
92
|
+
<span class="cline-any cline-neutral"> </span>
|
|
93
|
+
<span class="cline-any cline-neutral"> </span>
|
|
94
|
+
<span class="cline-any cline-neutral"> </span>
|
|
95
|
+
<span class="cline-any cline-neutral"> </span>
|
|
96
|
+
<span class="cline-any cline-neutral"> </span>
|
|
97
|
+
<span class="cline-any cline-neutral"> </span>
|
|
98
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { CrudFormOptions } from './types';
|
|
99
|
+
|
|
100
|
+
export const CssClasses = {
|
|
101
|
+
BUTTONS_CONTAINER: 'buttons-container',
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export const DefaultFormReactiveOptions: CrudFormOptions = {
|
|
105
|
+
buttons: {
|
|
106
|
+
submit: {
|
|
107
|
+
text: 'Submit',
|
|
108
|
+
},
|
|
109
|
+
clear: {
|
|
110
|
+
text: 'Clear',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
</pre></td></tr></table></pre>
|
|
115
|
+
|
|
116
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
117
|
+
</div><!-- /wrapper -->
|
|
118
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
119
|
+
Code coverage generated by
|
|
120
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
121
|
+
at 2025-10-08T15:33:01.484Z
|
|
122
|
+
</div>
|
|
123
|
+
<script src="../../../../prettify.js"></script>
|
|
124
|
+
<script>
|
|
125
|
+
window.onload = function () {
|
|
126
|
+
prettyPrint();
|
|
127
|
+
};
|
|
128
|
+
</script>
|
|
129
|
+
<script src="../../../../sorter.js"></script>
|
|
130
|
+
<script src="../../../../block-navigation.js"></script>
|
|
131
|
+
</body>
|
|
132
|
+
</html>
|
|
133
|
+
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for src/lib/components/crud-form/crud-form.component.ts</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../../../index.html">All files</a> / <a href="index.html">src/lib/components/crud-form</a> crud-form.component.ts</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">81.81% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>18/22</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">66.66% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>4/6</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">66.66% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>2/3</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">80.95% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>17/21</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
|
89
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
|
90
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
|
91
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
|
92
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
|
93
|
+
<a name='L28'></a><a href='#L28'>28</a>
|
|
94
|
+
<a name='L29'></a><a href='#L29'>29</a>
|
|
95
|
+
<a name='L30'></a><a href='#L30'>30</a>
|
|
96
|
+
<a name='L31'></a><a href='#L31'>31</a>
|
|
97
|
+
<a name='L32'></a><a href='#L32'>32</a>
|
|
98
|
+
<a name='L33'></a><a href='#L33'>33</a>
|
|
99
|
+
<a name='L34'></a><a href='#L34'>34</a>
|
|
100
|
+
<a name='L35'></a><a href='#L35'>35</a>
|
|
101
|
+
<a name='L36'></a><a href='#L36'>36</a>
|
|
102
|
+
<a name='L37'></a><a href='#L37'>37</a>
|
|
103
|
+
<a name='L38'></a><a href='#L38'>38</a>
|
|
104
|
+
<a name='L39'></a><a href='#L39'>39</a>
|
|
105
|
+
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
|
+
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
|
+
<a name='L42'></a><a href='#L42'>42</a>
|
|
108
|
+
<a name='L43'></a><a href='#L43'>43</a>
|
|
109
|
+
<a name='L44'></a><a href='#L44'>44</a>
|
|
110
|
+
<a name='L45'></a><a href='#L45'>45</a>
|
|
111
|
+
<a name='L46'></a><a href='#L46'>46</a>
|
|
112
|
+
<a name='L47'></a><a href='#L47'>47</a>
|
|
113
|
+
<a name='L48'></a><a href='#L48'>48</a>
|
|
114
|
+
<a name='L49'></a><a href='#L49'>49</a>
|
|
115
|
+
<a name='L50'></a><a href='#L50'>50</a>
|
|
116
|
+
<a name='L51'></a><a href='#L51'>51</a>
|
|
117
|
+
<a name='L52'></a><a href='#L52'>52</a>
|
|
118
|
+
<a name='L53'></a><a href='#L53'>53</a>
|
|
119
|
+
<a name='L54'></a><a href='#L54'>54</a>
|
|
120
|
+
<a name='L55'></a><a href='#L55'>55</a>
|
|
121
|
+
<a name='L56'></a><a href='#L56'>56</a>
|
|
122
|
+
<a name='L57'></a><a href='#L57'>57</a>
|
|
123
|
+
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
|
+
<a name='L59'></a><a href='#L59'>59</a>
|
|
125
|
+
<a name='L60'></a><a href='#L60'>60</a>
|
|
126
|
+
<a name='L61'></a><a href='#L61'>61</a>
|
|
127
|
+
<a name='L62'></a><a href='#L62'>62</a>
|
|
128
|
+
<a name='L63'></a><a href='#L63'>63</a>
|
|
129
|
+
<a name='L64'></a><a href='#L64'>64</a>
|
|
130
|
+
<a name='L65'></a><a href='#L65'>65</a>
|
|
131
|
+
<a name='L66'></a><a href='#L66'>66</a>
|
|
132
|
+
<a name='L67'></a><a href='#L67'>67</a>
|
|
133
|
+
<a name='L68'></a><a href='#L68'>68</a>
|
|
134
|
+
<a name='L69'></a><a href='#L69'>69</a>
|
|
135
|
+
<a name='L70'></a><a href='#L70'>70</a>
|
|
136
|
+
<a name='L71'></a><a href='#L71'>71</a>
|
|
137
|
+
<a name='L72'></a><a href='#L72'>72</a>
|
|
138
|
+
<a name='L73'></a><a href='#L73'>73</a>
|
|
139
|
+
<a name='L74'></a><a href='#L74'>74</a>
|
|
140
|
+
<a name='L75'></a><a href='#L75'>75</a>
|
|
141
|
+
<a name='L76'></a><a href='#L76'>76</a>
|
|
142
|
+
<a name='L77'></a><a href='#L77'>77</a>
|
|
143
|
+
<a name='L78'></a><a href='#L78'>78</a>
|
|
144
|
+
<a name='L79'></a><a href='#L79'>79</a>
|
|
145
|
+
<a name='L80'></a><a href='#L80'>80</a>
|
|
146
|
+
<a name='L81'></a><a href='#L81'>81</a>
|
|
147
|
+
<a name='L82'></a><a href='#L82'>82</a>
|
|
148
|
+
<a name='L83'></a><a href='#L83'>83</a>
|
|
149
|
+
<a name='L84'></a><a href='#L84'>84</a>
|
|
150
|
+
<a name='L85'></a><a href='#L85'>85</a>
|
|
151
|
+
<a name='L86'></a><a href='#L86'>86</a>
|
|
152
|
+
<a name='L87'></a><a href='#L87'>87</a>
|
|
153
|
+
<a name='L88'></a><a href='#L88'>88</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
154
|
+
<span class="cline-any cline-neutral"> </span>
|
|
155
|
+
<span class="cline-any cline-neutral"> </span>
|
|
156
|
+
<span class="cline-any cline-neutral"> </span>
|
|
157
|
+
<span class="cline-any cline-neutral"> </span>
|
|
158
|
+
<span class="cline-any cline-neutral"> </span>
|
|
159
|
+
<span class="cline-any cline-neutral"> </span>
|
|
160
|
+
<span class="cline-any cline-neutral"> </span>
|
|
161
|
+
<span class="cline-any cline-neutral"> </span>
|
|
162
|
+
<span class="cline-any cline-neutral"> </span>
|
|
163
|
+
<span class="cline-any cline-yes">2x</span>
|
|
164
|
+
<span class="cline-any cline-yes">2x</span>
|
|
165
|
+
<span class="cline-any cline-yes">2x</span>
|
|
166
|
+
<span class="cline-any cline-yes">2x</span>
|
|
167
|
+
<span class="cline-any cline-yes">2x</span>
|
|
168
|
+
<span class="cline-any cline-yes">2x</span>
|
|
169
|
+
<span class="cline-any cline-yes">2x</span>
|
|
170
|
+
<span class="cline-any cline-yes">2x</span>
|
|
171
|
+
<span class="cline-any cline-yes">2x</span>
|
|
172
|
+
<span class="cline-any cline-yes">2x</span>
|
|
173
|
+
<span class="cline-any cline-neutral"> </span>
|
|
174
|
+
<span class="cline-any cline-yes">2x</span>
|
|
175
|
+
<span class="cline-any cline-neutral"> </span>
|
|
176
|
+
<span class="cline-any cline-neutral"> </span>
|
|
177
|
+
<span class="cline-any cline-neutral"> </span>
|
|
178
|
+
<span class="cline-any cline-neutral"> </span>
|
|
179
|
+
<span class="cline-any cline-neutral"> </span>
|
|
180
|
+
<span class="cline-any cline-neutral"> </span>
|
|
181
|
+
<span class="cline-any cline-neutral"> </span>
|
|
182
|
+
<span class="cline-any cline-neutral"> </span>
|
|
183
|
+
<span class="cline-any cline-neutral"> </span>
|
|
184
|
+
<span class="cline-any cline-neutral"> </span>
|
|
185
|
+
<span class="cline-any cline-yes">2x</span>
|
|
186
|
+
<span class="cline-any cline-neutral"> </span>
|
|
187
|
+
<span class="cline-any cline-yes">1x</span>
|
|
188
|
+
<span class="cline-any cline-neutral"> </span>
|
|
189
|
+
<span class="cline-any cline-neutral"> </span>
|
|
190
|
+
<span class="cline-any cline-yes">1x</span>
|
|
191
|
+
<span class="cline-any cline-neutral"> </span>
|
|
192
|
+
<span class="cline-any cline-neutral"> </span>
|
|
193
|
+
<span class="cline-any cline-neutral"> </span>
|
|
194
|
+
<span class="cline-any cline-neutral"> </span>
|
|
195
|
+
<span class="cline-any cline-neutral"> </span>
|
|
196
|
+
<span class="cline-any cline-neutral"> </span>
|
|
197
|
+
<span class="cline-any cline-neutral"> </span>
|
|
198
|
+
<span class="cline-any cline-neutral"> </span>
|
|
199
|
+
<span class="cline-any cline-neutral"> </span>
|
|
200
|
+
<span class="cline-any cline-neutral"> </span>
|
|
201
|
+
<span class="cline-any cline-neutral"> </span>
|
|
202
|
+
<span class="cline-any cline-neutral"> </span>
|
|
203
|
+
<span class="cline-any cline-neutral"> </span>
|
|
204
|
+
<span class="cline-any cline-yes">2x</span>
|
|
205
|
+
<span class="cline-any cline-neutral"> </span>
|
|
206
|
+
<span class="cline-any cline-neutral"> </span>
|
|
207
|
+
<span class="cline-any cline-neutral"> </span>
|
|
208
|
+
<span class="cline-any cline-neutral"> </span>
|
|
209
|
+
<span class="cline-any cline-neutral"> </span>
|
|
210
|
+
<span class="cline-any cline-yes">2x</span>
|
|
211
|
+
<span class="cline-any cline-no"> </span>
|
|
212
|
+
<span class="cline-any cline-no"> </span>
|
|
213
|
+
<span class="cline-any cline-no"> </span>
|
|
214
|
+
<span class="cline-any cline-neutral"> </span>
|
|
215
|
+
<span class="cline-any cline-neutral"> </span>
|
|
216
|
+
<span class="cline-any cline-neutral"> </span>
|
|
217
|
+
<span class="cline-any cline-yes">2x</span>
|
|
218
|
+
<span class="cline-any cline-neutral"> </span>
|
|
219
|
+
<span class="cline-any cline-neutral"> </span>
|
|
220
|
+
<span class="cline-any cline-neutral"> </span>
|
|
221
|
+
<span class="cline-any cline-neutral"> </span>
|
|
222
|
+
<span class="cline-any cline-neutral"> </span>
|
|
223
|
+
<span class="cline-any cline-neutral"> </span>
|
|
224
|
+
<span class="cline-any cline-neutral"> </span>
|
|
225
|
+
<span class="cline-any cline-neutral"> </span>
|
|
226
|
+
<span class="cline-any cline-neutral"> </span>
|
|
227
|
+
<span class="cline-any cline-neutral"> </span>
|
|
228
|
+
<span class="cline-any cline-neutral"> </span>
|
|
229
|
+
<span class="cline-any cline-neutral"> </span>
|
|
230
|
+
<span class="cline-any cline-neutral"> </span>
|
|
231
|
+
<span class="cline-any cline-no"> </span>
|
|
232
|
+
<span class="cline-any cline-neutral"> </span>
|
|
233
|
+
<span class="cline-any cline-neutral"> </span>
|
|
234
|
+
<span class="cline-any cline-neutral"> </span>
|
|
235
|
+
<span class="cline-any cline-neutral"> </span>
|
|
236
|
+
<span class="cline-any cline-neutral"> </span>
|
|
237
|
+
<span class="cline-any cline-neutral"> </span>
|
|
238
|
+
<span class="cline-any cline-neutral"> </span>
|
|
239
|
+
<span class="cline-any cline-neutral"> </span>
|
|
240
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">/**
|
|
241
|
+
* @module module:lib/components/crud-form/crud-form.component
|
|
242
|
+
* @description CRUD form component module.
|
|
243
|
+
* @summary Provides `CrudFormComponent` — a wrapper that composes dynamic form
|
|
244
|
+
* fields and layout to produce create/read/update/delete forms with validation
|
|
245
|
+
* and submission handling.
|
|
246
|
+
*
|
|
247
|
+
* @link {@link CrudFormComponent}
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
251
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
252
|
+
import { IonButton, IonIcon } from '@ionic/angular/standalone';
|
|
253
|
+
import { TranslatePipe } from '@ngx-translate/core';
|
|
254
|
+
import { OperationKeys } from '@decaf-ts/db-decorators';
|
|
255
|
+
import { ComponentEventNames } from '@decaf-ts/ui-decorators';
|
|
256
|
+
import { Dynamic } from '../../engine/decorators';
|
|
257
|
+
import { DefaultFormReactiveOptions } from '../../engine/constants';
|
|
258
|
+
import { NgxFormDirective } from '../../engine/NgxFormDirective';
|
|
259
|
+
import { LayoutComponent } from '../layout/layout.component';
|
|
260
|
+
|
|
261
|
+
import { getModelAndRepository } from '../../engine/helpers';
|
|
262
|
+
|
|
263
|
+
@Dynamic()
|
|
264
|
+
@Component({
|
|
265
|
+
standalone: true,
|
|
266
|
+
selector: 'ngx-decaf-crud-form',
|
|
267
|
+
templateUrl: './crud-form.component.html',
|
|
268
|
+
styleUrls: ['./crud-form.component.scss'],
|
|
269
|
+
imports: [TranslatePipe, ReactiveFormsModule, LayoutComponent, IonButton, IonIcon],
|
|
270
|
+
host: { '[attr.id]': 'uid' },
|
|
271
|
+
})
|
|
272
|
+
export class CrudFormComponent extends NgxFormDirective implements OnInit {
|
|
273
|
+
@Input()
|
|
274
|
+
showCancelButton = true;
|
|
275
|
+
|
|
276
|
+
constructor() {
|
|
277
|
+
super('CrudFormComponent');
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* @description Component initialization lifecycle method.
|
|
282
|
+
* @summary Initializes the component by setting up the logger, configuring form state
|
|
283
|
+
* based on the operation type, and merging configuration options. For READ and DELETE
|
|
284
|
+
* operations, the formGroup is set to undefined since these operations don't require
|
|
285
|
+
* form input. Configuration options are merged with default settings.
|
|
286
|
+
*
|
|
287
|
+
* @returns {Promise<void>}
|
|
288
|
+
* @memberOf CrudFormComponent
|
|
289
|
+
*/
|
|
290
|
+
async ngOnInit(): Promise<void> {
|
|
291
|
+
this.options = Object.assign(
|
|
292
|
+
{},
|
|
293
|
+
DefaultFormReactiveOptions,
|
|
294
|
+
{ buttons: { submit: { text: this.operation.toLowerCase() } } },
|
|
295
|
+
this.options || {},
|
|
296
|
+
);
|
|
297
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (!this.pk && this.modelName) {
|
|
298
|
+
const repo = <span class="cstat-no" title="statement not covered" >getModelAndRepository(this.modelName);</span>
|
|
299
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (repo) {</span>
|
|
300
|
+
<span class="cstat-no" title="statement not covered" > this.pk = repo.pk;</span>
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
await super.initialize();
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @description Handles delete operations by emitting delete events.
|
|
309
|
+
* @summary Processes delete requests by emitting a submit event with the
|
|
310
|
+
* record's unique identifier as data. This allows parent components to
|
|
311
|
+
* handle the actual deletion logic while maintaining separation of concerns.
|
|
312
|
+
* The event includes the uid and standard component identification.
|
|
313
|
+
*
|
|
314
|
+
* @returns {void}
|
|
315
|
+
* @memberOf CrudFormComponent
|
|
316
|
+
*/
|
|
317
|
+
<span class="fstat-no" title="function not covered" > handleDelete(</span>): void {
|
|
318
|
+
<span class="cstat-no" title="statement not covered" > super.submitEventEmit(</span>
|
|
319
|
+
this.model,
|
|
320
|
+
'CrudFormComponent',
|
|
321
|
+
ComponentEventNames.Submit,
|
|
322
|
+
this.handlers,
|
|
323
|
+
OperationKeys.DELETE,
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
</pre></td></tr></table></pre>
|
|
328
|
+
|
|
329
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
330
|
+
</div><!-- /wrapper -->
|
|
331
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
332
|
+
Code coverage generated by
|
|
333
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
334
|
+
at 2026-02-25T10:45:48.506Z
|
|
335
|
+
</div>
|
|
336
|
+
<script src="../../../../prettify.js"></script>
|
|
337
|
+
<script>
|
|
338
|
+
window.onload = function () {
|
|
339
|
+
prettyPrint();
|
|
340
|
+
};
|
|
341
|
+
</script>
|
|
342
|
+
<script src="../../../../sorter.js"></script>
|
|
343
|
+
<script src="../../../../block-navigation.js"></script>
|
|
344
|
+
</body>
|
|
345
|
+
</html>
|
|
346
|
+
|