@formio/angular 7.5.0-rc.2 → 7.5.0-rc.3
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/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/05/48/d04de6c9dd6cc970174ec810b8763a7201a44f1f043eaa206a929f03661e08328175ec2130578946c68b6c428925092b68f3810c98e83ddefdd04a1e53ae +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/0c/7a/916bd866cb386cc87b9ea07c40edc23df9d726d1865e6699b42dedfbfb2a8364ced191aa62680a9297d7644cdfa64753b8975cc254c7c581f28bba0acd15 +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/0f/64/5529707a758edfd436e81d4f087fb08604b393418b3e62de8670320e45f6bce9f906d2049b04e253452ed3a9de294a77177d3edda706317d12a4e2e3f178 +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/0f/87/cc75b2e2048387a29af168ce6ef16af778b2493edb5c300be18c00aee265046b76757ef1529035538757e8d67939641c5e6e973f8b16f15454b6388ad458 +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/1d/78/8bb45acaf12d07da78505c3db11a6ddf4fcd67a02759a709602732d23c57539a455e48673c232ea7877cabaae9b5a5f36e5cc3f7d6678408d7e10755efba +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/23/e0/0cef272ca5d493a181999e846b505b18ae907e32510a9ce401d6bc6840178abc845a7bad97e9fb0d316610bb5a50eae99666cb0039456256d58b4036ce49 +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/2e/d1/fd1e76ed0e0ac117aa0f151a37dfa2ee1f0d20c16efd25eb2dda914a0f4851c8c9138c2ab2668875cccbe7d8dc1316fb876ed602997c3d88b38f3d69608e +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/3d/64/86fe297363ae06dc259f28eb85b668db3c3d27ad69c47346c1e59a2d37b5c6f731012a3b9d01cc73ee884db76c073e99db6ee36fb6e1b5794bb0c484961e +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/43/05/c86feb68c6e6f17d2b1e7d4aadfbef2f8554b42c9e0b7516b22a7c34044b513c23987b00507d17cb8f89b9b762b5499483d4ec16708519940e00cee5863a +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/90/dc/6f232859c1661d7bce8d938eb857811a2a242f1af32be5471f4a7afcc79112d8fe2f1cd10733eb6ab2f4b122128c9bcb59ef79f665e8bdc822fb619cf71d +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/9c/21/3b8af7b6ee09c29bf340610026191af56f9ba1cba1f5e4476424775d5e322f84d7e900c4d264d39804cebf3dcb5aaa5eb5e9d8fd143bc3a8aa76c3d5325e +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/a1/c9/d53b052617ead62a7a7ed222aefa04fdf88179f1ff22757a51e02a461f14a960ddb4d4c58410193564bbc0b9b471fdf675e528650bfadffdf1f05a51fb1c +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/af/5c/97d9a08342685ee95844b54aed260370df0de7c2408ec7b14f7da3972c811ee5a4cae7be4f51de07dd039c8639ec4e9008733bcf0b6a438b29a83d7fabe3 +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/b9/6c/40f7b79417755e63c59cb241b5d8937ccb1e98935edaaaff140754d194464cadde591529dea2b658e6ed3683a2a1c6ab2f4b5af0b7442e205ed2a3202d12 +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/ba/5d/d939f6c0890924d0234b6253e4c7baab7e285c4e9e3b838d4f223f5365ce00c421e48383fc21ecdf847e1592936f5be80b0d20ea3db471bfe39e181c091a +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/c4/04/38e045ef1f5a08780250af79817fdce229ac2877ef258d020696429e97ee56400a38a10e754119a5040bd9a61a9e6c9bad2b67e1b2230cc7f6c08cee2012 +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/d8/60/f8b2e8223de247915d7167a52ab1db89c1aa95b1cc2ae546ae1a3ae861f168ca7f2eacd745a5aac3bf7dab1810bab18800713a96bc2cc0d9546a42584838 +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/e2/ab/084476c66de117be0fc8df1ac2ad3610491dece2f450a8d631bbae35ba9336b1fc1b1fee30bc5a224cf2e42ef97651a98787610cc9bb76a8795b01ddf844 +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/e9/ca/53ff813610ae5d57a25518e6546b659a092de2c929fd43130db59358947aa9aa5797289f7ca39fe550d2e41050a69cb26e6b5dd6ebbcae0207ab08474dc8 +1 -0
- package/.angular/cache/17.3.11/ng-packagr/content-v2/sha512/eb/88/6891253bdfd039f6cff6fba9605cdd56af0ac6b6ac89f75b9c50ef9d4efab72e99b7df88a963ec1d616e515bd8492b4a7d08ce1128f6b37348cba49b31d4 +1 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/10/3e/bfb4a4f2af67449cde67fce4c2622d0e0b0882a10117aba630be789d00cb +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/14/ba/05c03e8f139db178da4552cabab3e47e607743b3f8f591b2e88d1a670668 +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/15/39/e3511d5e68c4dcc26982fb854c4f4ae6067ebe79a2fea69c3c3b74b8fb8e +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/22/7c/80262d5400fc47a73d4de35e8d2d1273ac92a2a0510a072834aa8700ea3a +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/30/17/d10c504815c39561191351fac35a1899a5c8518773a8714413d7f4f2cfe7 +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/47/6f/3ccf073a4a3e77309ec535e446b6ae48554dac2d6bdbb71d2e9a5da03e2a +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/50/3f/7fa40d24c1a57e94a3440546ddec4ad5e9ea45401fa3c72e44b4d667897a +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/58/f1/f5e623ce81fd5bbbd6b3f2e68c40525fc9254ea89c755af2fec60d83565b +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/5d/ba/20dc4ab0920555881535690446c05d09d79ad3ec8a1184f80f4f4eb6fb15 +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/60/fc/06c32c2088791e55b2b2fa3bb7f9078a23508cec2ceb5d584aa5101e686e +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/7b/0b/eab56c95f2af77017e2a4ac90bf24eb33f368b47f2d30eb381fd5fb67eca +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/8c/e2/44ef271b53872b9ce3939f6aa2529036add9fd99c43966917a2960f6e16d +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/90/ae/4f675f5fa3ea045bea3beceb382a3c146396eec2b78e4c467881ca9201ea +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/92/48/d893b8061214f8a744f666769b867db45d6de5ec76c9cd2e54acd94b3a53 +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/9a/a4/a78c45687a5e227573c93d84612ebd91e426edce74f47ccf745ee902aa44 +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/b6/f6/8e429f4c067378f16cc9f05894a168026d2e3e80ba7a193bdcaed4e80929 +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/c0/15/2b2d30407871742bd4b6a71865b485a31f03a9ad8e7ef99b1b77433b7396 +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/d7/1d/2fa87e8361aa205f0808ebc18932bcbe909ffc2d642e10744362ae8bdf98 +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/e6/57/792d6a77a40d99eb3a0235f77f3bca76da031a7d43a24236205000b3e246 +2 -0
- package/.angular/cache/17.3.11/ng-packagr/index-v5/fc/48/ce2f43b95216107e0944aa38aeac10ad25105a2a7a7f1f347879611ad96e +2 -0
- package/.angular/cache/17.3.11/ng-packagr/tsbuildinfo/formio-angular-auth.tsbuildinfo +1 -0
- package/.angular/cache/17.3.11/ng-packagr/tsbuildinfo/formio-angular-embed.tsbuildinfo +1 -0
- package/.angular/cache/17.3.11/ng-packagr/tsbuildinfo/formio-angular-grid.tsbuildinfo +1 -0
- package/.angular/cache/17.3.11/ng-packagr/tsbuildinfo/formio-angular-manager.tsbuildinfo +1 -0
- package/.angular/cache/17.3.11/ng-packagr/tsbuildinfo/formio-angular-resource.tsbuildinfo +1 -0
- package/.angular/cache/17.3.11/ng-packagr/tsbuildinfo/formio-angular.tsbuildinfo +1 -0
- package/.dockerignore +5 -0
- package/.editorconfig +13 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.github/ISSUE_TEMPLATE/custom-components-support-request.md +15 -0
- package/.github/ISSUE_TEMPLATE/question.md +8 -0
- package/.github/pull_request_template.md +35 -0
- package/.github/workflows/ci.yml +231 -0
- package/.travis.yml +4 -0
- package/.yo-rc.json +7 -0
- package/CHANGELOG.md +1195 -0
- package/Dockerfile +20 -0
- package/LICENSE +21 -0
- package/README.md +204 -13
- package/angular.json +38 -0
- package/bs-config.json +11 -0
- package/{FormioBaseComponent.d.ts → dist/angular-formio/FormioBaseComponent.d.ts} +1 -1
- package/{FormioBaseComponent.d.ts.map → dist/angular-formio/FormioBaseComponent.d.ts.map} +1 -1
- package/dist/angular-formio/README.md +24 -0
- package/{core.d.ts → dist/angular-formio/core.d.ts} +3 -1
- package/{core.d.ts.map → dist/angular-formio/core.d.ts.map} +1 -1
- package/dist/angular-formio/esm2022/FormioBaseComponent.mjs +587 -0
- package/dist/angular-formio/esm2022/auth/auth.component.mjs +23 -0
- package/dist/angular-formio/esm2022/auth/auth.config.mjs +21 -0
- package/dist/angular-formio/esm2022/auth/auth.module.mjs +47 -0
- package/dist/angular-formio/esm2022/auth/auth.service.mjs +199 -0
- package/dist/angular-formio/esm2022/auth/login/login.component.mjs +27 -0
- package/dist/angular-formio/esm2022/auth/register/register.component.mjs +27 -0
- package/dist/angular-formio/esm2022/auth/resetpass/resetpass.component.mjs +24 -0
- package/dist/angular-formio/esm2022/components/alerts/formio.alerts.component.mjs +46 -0
- package/dist/angular-formio/esm2022/components/alerts/parse-html-content.pipe.mjs +19 -0
- package/dist/angular-formio/esm2022/components/formbuilder/formbuilder.component.mjs +211 -0
- package/dist/angular-formio/esm2022/components/formio/formio.component.mjs +85 -0
- package/dist/angular-formio/esm2022/components/formioreport/formioreport.component.mjs +137 -0
- package/dist/angular-formio/esm2022/components/loader/formio.loader.component.mjs +25 -0
- package/dist/angular-formio/esm2022/core.mjs +19 -0
- package/dist/angular-formio/esm2022/custom-tags.service.mjs +14 -0
- package/dist/angular-formio/esm2022/formio.common.mjs +11 -0
- package/dist/angular-formio/esm2022/formio.config.mjs +29 -0
- package/dist/angular-formio/esm2022/formio.module.mjs +60 -0
- package/dist/angular-formio/esm2022/formio.service.mjs +62 -0
- package/dist/angular-formio/esm2022/formio.utils.mjs +23 -0
- package/{esm2022 → dist/angular-formio/esm2022}/grid/GridBodyComponent.mjs +26 -20
- package/dist/angular-formio/esm2022/grid/GridFooterComponent.mjs +50 -0
- package/dist/angular-formio/esm2022/grid/GridHeaderComponent.mjs +40 -0
- package/dist/angular-formio/esm2022/grid/form/FormGridBody.component.mjs +165 -0
- package/dist/angular-formio/esm2022/grid/form/FormGridFooter.component.mjs +112 -0
- package/dist/angular-formio/esm2022/grid/form/FormGridHeader.component.mjs +54 -0
- package/{esm2022 → dist/angular-formio/esm2022}/grid/form/time-since.pipe.mjs +9 -9
- package/dist/angular-formio/esm2022/grid/grid.component.mjs +321 -0
- package/dist/angular-formio/esm2022/grid/grid.module.mjs +80 -0
- package/dist/angular-formio/esm2022/grid/grid.service.mjs +18 -0
- package/dist/angular-formio/esm2022/grid/submission/SubmissionGridBody.component.mjs +74 -0
- package/dist/angular-formio/esm2022/grid/submission/SubmissionGridFooter.component.mjs +103 -0
- package/dist/angular-formio/esm2022/grid/submission/SubmissionGridHeader.component.mjs +96 -0
- package/dist/angular-formio/esm2022/manager/create/create.component.mjs +62 -0
- package/dist/angular-formio/esm2022/manager/delete/delete.component.mjs +58 -0
- package/dist/angular-formio/esm2022/manager/edit/edit.component.mjs +181 -0
- package/dist/angular-formio/esm2022/manager/form/form.component.mjs +176 -0
- package/dist/angular-formio/esm2022/manager/form-manager.config.mjs +18 -0
- package/dist/angular-formio/esm2022/manager/form-manager.module.mjs +84 -0
- package/{esm2022 → dist/angular-formio/esm2022}/manager/form-manager.service.mjs +6 -6
- package/dist/angular-formio/esm2022/manager/index/index.component.mjs +149 -0
- package/dist/angular-formio/esm2022/manager/submission/delete/delete.component.mjs +48 -0
- package/dist/angular-formio/esm2022/manager/submission/edit/edit.component.mjs +32 -0
- package/dist/angular-formio/esm2022/manager/submission/index/index.component.mjs +32 -0
- package/dist/angular-formio/esm2022/manager/submission/submission/submission.component.mjs +67 -0
- package/dist/angular-formio/esm2022/manager/submission/view/view.component.mjs +24 -0
- package/dist/angular-formio/esm2022/manager/view/view.component.mjs +66 -0
- package/dist/angular-formio/esm2022/resource/create/create.component.mjs +64 -0
- package/dist/angular-formio/esm2022/resource/delete/delete.component.mjs +42 -0
- package/{esm2022 → dist/angular-formio/esm2022}/resource/edit/edit.component.mjs +14 -7
- package/dist/angular-formio/esm2022/resource/index/index.component.mjs +79 -0
- package/dist/angular-formio/esm2022/resource/resource.component.mjs +72 -0
- package/dist/angular-formio/esm2022/resource/resource.config.mjs +13 -0
- package/dist/angular-formio/esm2022/resource/resource.module.mjs +63 -0
- package/dist/angular-formio/esm2022/resource/resource.service.mjs +231 -0
- package/dist/angular-formio/esm2022/resource/resources.service.mjs +25 -0
- package/dist/angular-formio/esm2022/resource/view/view.component.mjs +30 -0
- package/{fesm2022 → dist/angular-formio/fesm2022}/formio-angular-auth.mjs +92 -59
- package/dist/angular-formio/fesm2022/formio-angular-auth.mjs.map +1 -0
- package/dist/angular-formio/fesm2022/formio-angular-grid.mjs +1213 -0
- package/dist/angular-formio/fesm2022/formio-angular-grid.mjs.map +1 -0
- package/dist/angular-formio/fesm2022/formio-angular-manager.mjs +1165 -0
- package/dist/angular-formio/fesm2022/formio-angular-manager.mjs.map +1 -0
- package/dist/angular-formio/fesm2022/formio-angular-resource.mjs +656 -0
- package/dist/angular-formio/fesm2022/formio-angular-resource.mjs.map +1 -0
- package/dist/angular-formio/fesm2022/formio-angular.mjs +1323 -0
- package/dist/angular-formio/fesm2022/formio-angular.mjs.map +1 -0
- package/{formio.common.d.ts → dist/angular-formio/formio.common.d.ts} +1 -2
- package/dist/angular-formio/formio.common.d.ts.map +1 -0
- package/{formio.config.d.ts → dist/angular-formio/formio.config.d.ts} +1 -0
- package/dist/angular-formio/formio.config.d.ts.map +1 -0
- package/{formio.utils.d.ts.map → dist/angular-formio/formio.utils.d.ts.map} +1 -1
- package/{grid → dist/angular-formio/grid}/submission/SubmissionGridHeader.component.d.ts +1 -1
- package/dist/angular-formio/grid/submission/SubmissionGridHeader.component.d.ts.map +1 -0
- package/{manager → dist/angular-formio/manager}/edit/edit.component.d.ts.map +1 -1
- package/{manager → dist/angular-formio/manager}/index/index.component.d.ts.map +1 -1
- package/{resource → dist/angular-formio/resource}/resource.service.d.ts.map +1 -1
- package/package.json +55 -63
- package/projects/angular-formio/README.md +24 -0
- package/projects/angular-formio/auth/ng-package.json +5 -0
- package/projects/angular-formio/auth/src/auth.component.html +11 -0
- package/projects/angular-formio/auth/src/auth.component.ts +5 -0
- package/projects/angular-formio/auth/src/auth.config.ts +72 -0
- package/projects/angular-formio/auth/src/auth.module.ts +33 -0
- package/projects/angular-formio/auth/src/auth.routes.ts +34 -0
- package/projects/angular-formio/auth/src/auth.service.ts +221 -0
- package/projects/angular-formio/auth/src/index.ts +8 -0
- package/projects/angular-formio/auth/src/login/login.component.html +1 -0
- package/projects/angular-formio/auth/src/login/login.component.ts +11 -0
- package/projects/angular-formio/auth/src/public_api.ts +5 -0
- package/projects/angular-formio/auth/src/register/register.component.html +1 -0
- package/projects/angular-formio/auth/src/register/register.component.ts +11 -0
- package/projects/angular-formio/auth/src/resetpass/resetpass.component.html +1 -0
- package/projects/angular-formio/auth/src/resetpass/resetpass.component.ts +8 -0
- package/projects/angular-formio/grid/ng-package.json +5 -0
- package/projects/angular-formio/grid/src/GridBodyComponent.ts +80 -0
- package/projects/angular-formio/grid/src/GridFooterComponent.ts +25 -0
- package/projects/angular-formio/grid/src/GridHeaderComponent.ts +25 -0
- package/projects/angular-formio/grid/src/form/FormGridBody.component.html +22 -0
- package/projects/angular-formio/grid/src/form/FormGridBody.component.scss +4 -0
- package/projects/angular-formio/grid/src/form/FormGridBody.component.ts +46 -0
- package/projects/angular-formio/grid/src/form/FormGridFooter.component.html +21 -0
- package/projects/angular-formio/grid/src/form/FormGridFooter.component.ts +23 -0
- package/projects/angular-formio/grid/src/form/FormGridHeader.component.html +18 -0
- package/projects/angular-formio/grid/src/form/FormGridHeader.component.ts +24 -0
- package/projects/angular-formio/grid/src/form/index.ts +8 -0
- package/projects/angular-formio/grid/src/form/time-since.pipe.ts +31 -0
- package/projects/angular-formio/grid/src/grid.component.html +18 -0
- package/projects/angular-formio/grid/src/grid.component.scss +9 -0
- package/projects/angular-formio/grid/src/grid.component.ts +242 -0
- package/projects/angular-formio/grid/src/grid.footer.scss +14 -0
- package/projects/angular-formio/grid/src/grid.module.ts +49 -0
- package/projects/angular-formio/grid/src/grid.service.ts +16 -0
- package/projects/angular-formio/grid/src/index.ts +12 -0
- package/projects/angular-formio/grid/src/public_api.ts +5 -0
- package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.html +7 -0
- package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.ts +39 -0
- package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.html +18 -0
- package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.ts +20 -0
- package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.html +11 -0
- package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.ts +73 -0
- package/projects/angular-formio/grid/src/submission/index.ts +8 -0
- package/projects/angular-formio/grid/src/types/grid-column.ts +7 -0
- package/projects/angular-formio/grid/src/types/grid-footer-positions.ts +5 -0
- package/projects/angular-formio/grid/src/types/grid-header.ts +14 -0
- package/projects/angular-formio/karma.conf.js +32 -0
- package/projects/angular-formio/manager/ng-package.json +5 -0
- package/projects/angular-formio/manager/src/create/create.component.ts +11 -0
- package/projects/angular-formio/manager/src/delete/delete.component.html +6 -0
- package/projects/angular-formio/manager/src/delete/delete.component.ts +37 -0
- package/projects/angular-formio/manager/src/edit/edit.component.html +19 -0
- package/projects/angular-formio/manager/src/edit/edit.component.ts +111 -0
- package/projects/angular-formio/manager/src/form/form.component.html +32 -0
- package/projects/angular-formio/manager/src/form/form.component.ts +73 -0
- package/projects/angular-formio/manager/src/form-manager.config.ts +31 -0
- package/projects/angular-formio/manager/src/form-manager.module.ts +54 -0
- package/projects/angular-formio/manager/src/form-manager.routes.ts +75 -0
- package/projects/angular-formio/manager/src/form-manager.service.ts +190 -0
- package/projects/angular-formio/manager/src/index/index.component.html +14 -0
- package/projects/angular-formio/manager/src/index/index.component.scss +22 -0
- package/projects/angular-formio/manager/src/index/index.component.ts +98 -0
- package/projects/angular-formio/manager/src/index.ts +16 -0
- package/projects/angular-formio/manager/src/public_api.ts +5 -0
- package/projects/angular-formio/manager/src/submission/delete/delete.component.html +6 -0
- package/projects/angular-formio/manager/src/submission/delete/delete.component.ts +26 -0
- package/projects/angular-formio/manager/src/submission/edit/edit.component.html +7 -0
- package/projects/angular-formio/manager/src/submission/edit/edit.component.ts +18 -0
- package/projects/angular-formio/manager/src/submission/index/index.component.html +1 -0
- package/projects/angular-formio/manager/src/submission/index/index.component.ts +18 -0
- package/projects/angular-formio/manager/src/submission/submission/submission.component.html +8 -0
- package/projects/angular-formio/manager/src/submission/submission/submission.component.ts +24 -0
- package/projects/angular-formio/manager/src/submission/view/view.component.html +7 -0
- package/projects/angular-formio/manager/src/submission/view/view.component.ts +9 -0
- package/projects/angular-formio/manager/src/view/view.component.html +11 -0
- package/projects/angular-formio/manager/src/view/view.component.ts +44 -0
- package/projects/angular-formio/ng-package.json +7 -0
- package/projects/angular-formio/package.json +37 -0
- package/projects/angular-formio/resource/ng-package.json +5 -0
- package/projects/angular-formio/resource/src/create/create.component.html +13 -0
- package/projects/angular-formio/resource/src/create/create.component.scss +3 -0
- package/projects/angular-formio/resource/src/create/create.component.ts +37 -0
- package/projects/angular-formio/resource/src/delete/delete.component.html +5 -0
- package/projects/angular-formio/resource/src/delete/delete.component.ts +24 -0
- package/projects/angular-formio/resource/src/edit/edit.component.html +7 -0
- package/projects/angular-formio/resource/src/edit/edit.component.ts +35 -0
- package/projects/angular-formio/resource/src/index/index.component.html +10 -0
- package/projects/angular-formio/resource/src/index/index.component.ts +64 -0
- package/projects/angular-formio/resource/src/index.js +24 -0
- package/projects/angular-formio/resource/src/index.ts +11 -0
- package/projects/angular-formio/resource/src/public_api.ts +5 -0
- package/projects/angular-formio/resource/src/resource.component.html +7 -0
- package/projects/angular-formio/resource/src/resource.component.ts +48 -0
- package/projects/angular-formio/resource/src/resource.config.ts +17 -0
- package/projects/angular-formio/resource/src/resource.module.ts +43 -0
- package/projects/angular-formio/resource/src/resource.routes.ts +43 -0
- package/projects/angular-formio/resource/src/resource.service.ts +260 -0
- package/projects/angular-formio/resource/src/resources.service.ts +24 -0
- package/projects/angular-formio/resource/src/view/view.component.html +6 -0
- package/projects/angular-formio/resource/src/view/view.component.ts +19 -0
- package/projects/angular-formio/src/FormioBaseComponent.ts +554 -0
- package/projects/angular-formio/src/components/alerts/formio.alerts.component.html +3 -0
- package/projects/angular-formio/src/components/alerts/formio.alerts.component.ts +19 -0
- package/projects/angular-formio/src/components/alerts/formio.alerts.ts +21 -0
- package/projects/angular-formio/src/components/alerts/parse-html-content.pipe.ts +15 -0
- package/projects/angular-formio/src/components/formbuilder/formbuilder.component.html +1 -0
- package/projects/angular-formio/src/components/formbuilder/formbuilder.component.ts +213 -0
- package/projects/angular-formio/src/components/formio/formio.component.html +8 -0
- package/projects/angular-formio/src/components/formio/formio.component.ts +33 -0
- package/projects/angular-formio/src/components/formioreport/formioreport.component.html +8 -0
- package/projects/angular-formio/src/components/formioreport/formioreport.component.ts +95 -0
- package/projects/angular-formio/src/components/loader/formio.loader.component.html +3 -0
- package/projects/angular-formio/src/components/loader/formio.loader.component.scss +26 -0
- package/projects/angular-formio/src/components/loader/formio.loader.component.ts +10 -0
- package/projects/angular-formio/src/core.ts +19 -0
- package/projects/angular-formio/src/custom-tags.service.ts +9 -0
- package/projects/angular-formio/src/formio-promise.service.ts +36 -0
- package/projects/angular-formio/src/formio.common.ts +90 -0
- package/projects/angular-formio/src/formio.config.ts +27 -0
- package/projects/angular-formio/src/formio.module.ts +38 -0
- package/projects/angular-formio/src/formio.service.ts +57 -0
- package/projects/angular-formio/src/formio.utils.ts +25 -0
- package/projects/angular-formio/src/index.ts +3 -0
- package/projects/angular-formio/src/public-api.ts +5 -0
- package/projects/angular-formio/src/test.ts +28 -0
- package/projects/angular-formio/src/types/alerts-position.ts +6 -0
- package/projects/angular-formio/src/types/formio-metadata.ts +10 -0
- package/projects/angular-formio/src/types/formio-submission.ts +20 -0
- package/projects/angular-formio/tsconfig.lib.json +27 -0
- package/projects/angular-formio/tsconfig.lib.prod.json +8 -0
- package/projects/angular-formio/tsconfig.spec.json +17 -0
- package/projects/angular-formio/tslint.json +17 -0
- package/tsconfig.json +40 -0
- package/tslint.json +140 -0
- package/embed/app.service.d.ts +0 -28
- package/embed/app.service.d.ts.map +0 -1
- package/embed/builder.component.d.ts +0 -14
- package/embed/builder.component.d.ts.map +0 -1
- package/embed/embed.module.d.ts +0 -10
- package/embed/embed.module.d.ts.map +0 -1
- package/embed/formio-angular-embed.d.ts.map +0 -1
- package/embed/formio.component.d.ts +0 -17
- package/embed/formio.component.d.ts.map +0 -1
- package/embed/index.d.ts +0 -7
- package/embed/index.d.ts.map +0 -1
- package/esm2022/FormioBaseComponent.mjs +0 -580
- package/esm2022/auth/auth.component.mjs +0 -12
- package/esm2022/auth/auth.config.mjs +0 -21
- package/esm2022/auth/auth.module.mjs +0 -46
- package/esm2022/auth/auth.service.mjs +0 -199
- package/esm2022/auth/login/login.component.mjs +0 -20
- package/esm2022/auth/register/register.component.mjs +0 -20
- package/esm2022/auth/resetpass/resetpass.component.mjs +0 -17
- package/esm2022/components/alerts/formio.alerts.component.mjs +0 -28
- package/esm2022/components/alerts/parse-html-content.pipe.mjs +0 -19
- package/esm2022/components/formbuilder/formbuilder.component.mjs +0 -202
- package/esm2022/components/formio/formio.component.mjs +0 -43
- package/esm2022/components/formioreport/formioreport.component.mjs +0 -89
- package/esm2022/components/loader/formio.loader.component.mjs +0 -15
- package/esm2022/core.mjs +0 -18
- package/esm2022/custom-tags.service.mjs +0 -14
- package/esm2022/embed/app.service.mjs +0 -58
- package/esm2022/embed/builder.component.mjs +0 -36
- package/esm2022/embed/embed.module.mjs +0 -35
- package/esm2022/embed/formio-angular-embed.mjs +0 -5
- package/esm2022/embed/formio.component.mjs +0 -50
- package/esm2022/embed/index.mjs +0 -7
- package/esm2022/formio.common.mjs +0 -11
- package/esm2022/formio.config.mjs +0 -29
- package/esm2022/formio.module.mjs +0 -59
- package/esm2022/formio.service.mjs +0 -62
- package/esm2022/formio.utils.mjs +0 -21
- package/esm2022/grid/GridFooterComponent.mjs +0 -44
- package/esm2022/grid/GridHeaderComponent.mjs +0 -34
- package/esm2022/grid/form/FormGridBody.component.mjs +0 -63
- package/esm2022/grid/form/FormGridFooter.component.mjs +0 -26
- package/esm2022/grid/form/FormGridHeader.component.mjs +0 -27
- package/esm2022/grid/grid.component.mjs +0 -257
- package/esm2022/grid/grid.module.mjs +0 -79
- package/esm2022/grid/grid.service.mjs +0 -18
- package/esm2022/grid/submission/SubmissionGridBody.component.mjs +0 -43
- package/esm2022/grid/submission/SubmissionGridFooter.component.mjs +0 -23
- package/esm2022/grid/submission/SubmissionGridHeader.component.mjs +0 -63
- package/esm2022/manager/create/create.component.mjs +0 -18
- package/esm2022/manager/delete/delete.component.mjs +0 -42
- package/esm2022/manager/edit/edit.component.mjs +0 -125
- package/esm2022/manager/form/form.component.mjs +0 -80
- package/esm2022/manager/form-manager.config.mjs +0 -18
- package/esm2022/manager/form-manager.module.mjs +0 -83
- package/esm2022/manager/index/index.component.mjs +0 -108
- package/esm2022/manager/submission/delete/delete.component.mjs +0 -32
- package/esm2022/manager/submission/edit/edit.component.mjs +0 -25
- package/esm2022/manager/submission/index/index.component.mjs +0 -25
- package/esm2022/manager/submission/submission/submission.component.mjs +0 -29
- package/esm2022/manager/submission/view/view.component.mjs +0 -17
- package/esm2022/manager/view/view.component.mjs +0 -52
- package/esm2022/resource/create/create.component.mjs +0 -43
- package/esm2022/resource/delete/delete.component.mjs +0 -29
- package/esm2022/resource/index/index.component.mjs +0 -69
- package/esm2022/resource/resource.component.mjs +0 -46
- package/esm2022/resource/resource.config.mjs +0 -13
- package/esm2022/resource/resource.module.mjs +0 -62
- package/esm2022/resource/resource.service.mjs +0 -229
- package/esm2022/resource/resources.service.mjs +0 -25
- package/esm2022/resource/view/view.component.mjs +0 -25
- package/fesm2022/formio-angular-auth.mjs.map +0 -1
- package/fesm2022/formio-angular-embed.mjs +0 -176
- package/fesm2022/formio-angular-embed.mjs.map +0 -1
- package/fesm2022/formio-angular-grid.mjs +0 -772
- package/fesm2022/formio-angular-grid.mjs.map +0 -1
- package/fesm2022/formio-angular-manager.mjs +0 -822
- package/fesm2022/formio-angular-manager.mjs.map +0 -1
- package/fesm2022/formio-angular-resource.mjs +0 -571
- package/fesm2022/formio-angular-resource.mjs.map +0 -1
- package/fesm2022/formio-angular.mjs +0 -1187
- package/fesm2022/formio-angular.mjs.map +0 -1
- package/formio.common.d.ts.map +0 -1
- package/formio.config.d.ts.map +0 -1
- package/grid/submission/SubmissionGridHeader.component.d.ts.map +0 -1
- /package/{auth → dist/angular-formio/auth}/auth.component.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.component.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.config.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.config.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.module.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.module.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.routes.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.routes.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.service.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.service.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/formio-angular-auth.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/index.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/index.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/login/login.component.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/login/login.component.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/register/register.component.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/register/register.component.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/resetpass/resetpass.component.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/resetpass/resetpass.component.d.ts.map +0 -0
- /package/{components → dist/angular-formio/components}/alerts/formio.alerts.component.d.ts +0 -0
- /package/{components → dist/angular-formio/components}/alerts/formio.alerts.component.d.ts.map +0 -0
- /package/{components → dist/angular-formio/components}/alerts/formio.alerts.d.ts +0 -0
- /package/{components → dist/angular-formio/components}/alerts/formio.alerts.d.ts.map +0 -0
- /package/{components → dist/angular-formio/components}/alerts/parse-html-content.pipe.d.ts +0 -0
- /package/{components → dist/angular-formio/components}/alerts/parse-html-content.pipe.d.ts.map +0 -0
- /package/{components → dist/angular-formio/components}/formbuilder/formbuilder.component.d.ts +0 -0
- /package/{components → dist/angular-formio/components}/formbuilder/formbuilder.component.d.ts.map +0 -0
- /package/{components → dist/angular-formio/components}/formio/formio.component.d.ts +0 -0
- /package/{components → dist/angular-formio/components}/formio/formio.component.d.ts.map +0 -0
- /package/{components → dist/angular-formio/components}/formioreport/formioreport.component.d.ts +0 -0
- /package/{components → dist/angular-formio/components}/formioreport/formioreport.component.d.ts.map +0 -0
- /package/{components → dist/angular-formio/components}/loader/formio.loader.component.d.ts +0 -0
- /package/{components → dist/angular-formio/components}/loader/formio.loader.component.d.ts.map +0 -0
- /package/{custom-tags.service.d.ts → dist/angular-formio/custom-tags.service.d.ts} +0 -0
- /package/{custom-tags.service.d.ts.map → dist/angular-formio/custom-tags.service.d.ts.map} +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/auth/auth.routes.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/auth/formio-angular-auth.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/auth/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/components/alerts/formio.alerts.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/formio-angular.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/formio-promise.service.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/form/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/formio-angular-grid.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/submission/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/types/grid-column.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/types/grid-footer-positions.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/types/grid-header.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/form-manager.routes.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/formio-angular-manager.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/resource/formio-angular-resource.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/resource/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/resource/resource.routes.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/types/alerts-position.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/types/formio-metadata.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/types/formio-submission.mjs +0 -0
- /package/{formio-angular.d.ts.map → dist/angular-formio/formio-angular.d.ts.map} +0 -0
- /package/{formio-promise.service.d.ts → dist/angular-formio/formio-promise.service.d.ts} +0 -0
- /package/{formio-promise.service.d.ts.map → dist/angular-formio/formio-promise.service.d.ts.map} +0 -0
- /package/{formio.module.d.ts → dist/angular-formio/formio.module.d.ts} +0 -0
- /package/{formio.module.d.ts.map → dist/angular-formio/formio.module.d.ts.map} +0 -0
- /package/{formio.service.d.ts → dist/angular-formio/formio.service.d.ts} +0 -0
- /package/{formio.service.d.ts.map → dist/angular-formio/formio.service.d.ts.map} +0 -0
- /package/{formio.utils.d.ts → dist/angular-formio/formio.utils.d.ts} +0 -0
- /package/{grid → dist/angular-formio/grid}/GridBodyComponent.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/GridBodyComponent.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/GridFooterComponent.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/GridFooterComponent.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/GridHeaderComponent.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/GridHeaderComponent.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/form/FormGridBody.component.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/form/FormGridBody.component.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/form/FormGridFooter.component.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/form/FormGridFooter.component.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/form/FormGridHeader.component.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/form/FormGridHeader.component.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/form/index.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/form/index.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/form/time-since.pipe.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/form/time-since.pipe.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/formio-angular-grid.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/grid.component.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/grid.component.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/grid.module.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/grid.module.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/grid.service.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/grid.service.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/index.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/index.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/submission/SubmissionGridBody.component.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/submission/SubmissionGridBody.component.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/submission/SubmissionGridFooter.component.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/submission/SubmissionGridFooter.component.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/submission/index.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/submission/index.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/types/grid-column.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/types/grid-column.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/types/grid-footer-positions.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/types/grid-footer-positions.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/types/grid-header.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/types/grid-header.d.ts.map +0 -0
- /package/{index.d.ts → dist/angular-formio/index.d.ts} +0 -0
- /package/{index.d.ts.map → dist/angular-formio/index.d.ts.map} +0 -0
- /package/{manager → dist/angular-formio/manager}/create/create.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/create/create.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/delete/delete.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/delete/delete.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/edit/edit.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/form/form.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/form/form.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.config.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.config.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.module.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.module.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.service.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.service.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/formio-angular-manager.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/index/index.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/index.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/index.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/delete/delete.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/delete/delete.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/edit/edit.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/edit/edit.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/index/index.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/index/index.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/submission/submission.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/submission/submission.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/view/view.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/view/view.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/view/view.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/view/view.component.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/create/create.component.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/create/create.component.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/delete/delete.component.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/delete/delete.component.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/edit/edit.component.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/edit/edit.component.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/formio-angular-resource.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/index/index.component.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/index/index.component.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/index.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/index.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.component.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.component.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.config.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.config.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.module.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.module.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.routes.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.routes.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.service.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/resources.service.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/resources.service.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/view/view.component.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/view/view.component.d.ts.map +0 -0
- /package/{types → dist/angular-formio/types}/alerts-position.d.ts +0 -0
- /package/{types → dist/angular-formio/types}/alerts-position.d.ts.map +0 -0
- /package/{types → dist/angular-formio/types}/formio-metadata.d.ts +0 -0
- /package/{types → dist/angular-formio/types}/formio-metadata.d.ts.map +0 -0
- /package/{types → dist/angular-formio/types}/formio-submission.d.ts +0 -0
- /package/{types → dist/angular-formio/types}/formio-submission.d.ts.map +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RouterModule } from '@angular/router';
|
|
2
|
+
import { each } from 'lodash';
|
|
3
|
+
export function extendRouter(Class, config, ClassRoutes) {
|
|
4
|
+
each(Class.decorators, decorator => {
|
|
5
|
+
each(decorator.args, arg => {
|
|
6
|
+
if (arg.declarations) {
|
|
7
|
+
each(config, component => arg.declarations.push(component));
|
|
8
|
+
}
|
|
9
|
+
if (arg.imports) {
|
|
10
|
+
each(arg.imports, (_import, index) => {
|
|
11
|
+
if ((_import.ngModule && (_import.ngModule.name === 'RouterModule')) ||
|
|
12
|
+
(_import.ngModule && (_import.ngModule.name === '_RouterModule')) ||
|
|
13
|
+
(_import.name === 'RouterModule') ||
|
|
14
|
+
(_import.name === '_RouterModule')) {
|
|
15
|
+
arg.imports[index] = RouterModule.forChild(ClassRoutes(config));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ge1xuICAgICAgICBlYWNoKGFyZy5pbXBvcnRzLCAoX2ltcG9ydCwgaW5kZXgpID0+IHtcbiAgICAgICAgICBpZiAoXG4gICAgICAgICAgICAoX2ltcG9ydC5uZ01vZHVsZSAmJiAoX2ltcG9ydC5uZ01vZHVsZS5uYW1lID09PSAnUm91dGVyTW9kdWxlJykpIHx8XG4gICAgICAgICAgICAoX2ltcG9ydC5uZ01vZHVsZSAmJiAoX2ltcG9ydC5uZ01vZHVsZS5uYW1lID09PSAnX1JvdXRlck1vZHVsZScpKSB8fFxuICAgICAgICAgICAgKF9pbXBvcnQubmFtZSA9PT0gJ1JvdXRlck1vZHVsZScpIHx8XG4gICAgICAgICAgICAoX2ltcG9ydC5uYW1lID09PSAnX1JvdXRlck1vZHVsZScpXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICBhcmcuaW1wb3J0c1tpbmRleF0gPSBSb3V0ZXJNb2R1bGUuZm9yQ2hpbGQoQ2xhc3NSb3V0ZXMoY29uZmlnKSk7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfSk7XG4gIHJldHVybiBDbGFzcztcbn1cbiJdfQ==
|
|
@@ -66,24 +66,30 @@ export class GridBodyComponent {
|
|
|
66
66
|
this.service.setRows(this.rows);
|
|
67
67
|
return this.rows;
|
|
68
68
|
}
|
|
69
|
-
static ɵfac =
|
|
70
|
-
static ɵcmp = i0.ɵɵ
|
|
69
|
+
static ɵfac = function GridBodyComponent_Factory(t) { return new (t || GridBodyComponent)(i0.ɵɵdirectiveInject(i1.GridService)); };
|
|
70
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GridBodyComponent, selectors: [["ng-component"]], viewQuery: function GridBodyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
71
|
+
i0.ɵɵviewQuery(TemplateRef, 7);
|
|
72
|
+
} if (rf & 2) {
|
|
73
|
+
let _t;
|
|
74
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);
|
|
75
|
+
} }, inputs: { header: "header", actionAllowed: "actionAllowed" }, outputs: { rowSelect: "rowSelect", rowAction: "rowAction" }, decls: 0, vars: 0, template: function GridBodyComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
71
76
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
77
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GridBodyComponent, [{
|
|
78
|
+
type: Component,
|
|
79
|
+
args: [{
|
|
80
|
+
template: ''
|
|
81
|
+
}]
|
|
82
|
+
}], () => [{ type: i1.GridService }], { header: [{
|
|
83
|
+
type: Input
|
|
84
|
+
}], actionAllowed: [{
|
|
85
|
+
type: Input
|
|
86
|
+
}], rowSelect: [{
|
|
87
|
+
type: Output
|
|
88
|
+
}], rowAction: [{
|
|
89
|
+
type: Output
|
|
90
|
+
}], template: [{
|
|
91
|
+
type: ViewChild,
|
|
92
|
+
args: [TemplateRef, { static: true }]
|
|
93
|
+
}] }); })();
|
|
94
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GridBodyComponent, { className: "GridBodyComponent" }); })();
|
|
95
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR3JpZEJvZHlDb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWZvcm1pby9ncmlkL3NyYy9HcmlkQm9keUNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFB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gdGhpcy5yb3dzO1xuICAgIH1cblxuICAgIHRoaXMuZmlyc3RJdGVtID0gcXVlcnkuc2tpcCArIDE7XG4gICAgdGhpcy5sYXN0SXRlbSA9IHRoaXMuZmlyc3RJdGVtICsgaXRlbXMubGVuZ3RoIC0gMTtcbiAgICBpZiAodGhpcy5sYXN0SXRlbSA9PT0gMCkge1xuICAgICAgdGhpcy5maXJzdEl0ZW0gPSAwO1xuICAgIH1cbiAgICB0aGlzLnRvdGFsID0gaXRlbXMuc2VydmVyQ291bnQ7XG4gICAgdGhpcy5saW1pdCA9IHF1ZXJ5LmxpbWl0O1xuICAgIHRoaXMuc2tpcCA9IE1hdGguZmxvb3IoaXRlbXMuc2tpcCAvIHF1ZXJ5LmxpbWl0KSArIDE7XG4gICAgdGhpcy5sb2FkaW5nID0gZmFsc2U7XG4gICAgZWFjaChpdGVtcywgKGl0ZW06IGFueSkgPT4ge1xuICAgICAgdGhpcy5yb3dzLnB1c2goY2xvbmUoaXRlbSkpO1xuICAgIH0pO1xuICAgIHRoaXMuc2VydmljZS5zZXRSb3dzKHRoaXMucm93cyk7XG5cbiAgICByZXR1cm4gdGhpcy5yb3dzO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { GridFooterPositions } from './types/grid-footer-positions';
|
|
2
|
+
import { Input, Output, ViewChild, TemplateRef, EventEmitter, Component } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class GridFooterComponent {
|
|
5
|
+
header;
|
|
6
|
+
body;
|
|
7
|
+
createText;
|
|
8
|
+
size;
|
|
9
|
+
actionAllowed;
|
|
10
|
+
pageChanged;
|
|
11
|
+
createItem;
|
|
12
|
+
template;
|
|
13
|
+
footerPositions = GridFooterPositions;
|
|
14
|
+
constructor() {
|
|
15
|
+
this.pageChanged = new EventEmitter();
|
|
16
|
+
this.createItem = new EventEmitter();
|
|
17
|
+
}
|
|
18
|
+
static ɵfac = function GridFooterComponent_Factory(t) { return new (t || GridFooterComponent)(); };
|
|
19
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GridFooterComponent, selectors: [["ng-component"]], viewQuery: function GridFooterComponent_Query(rf, ctx) { if (rf & 1) {
|
|
20
|
+
i0.ɵɵviewQuery(TemplateRef, 7);
|
|
21
|
+
} if (rf & 2) {
|
|
22
|
+
let _t;
|
|
23
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);
|
|
24
|
+
} }, inputs: { header: "header", body: "body", createText: "createText", size: "size", actionAllowed: "actionAllowed" }, outputs: { pageChanged: "pageChanged", createItem: "createItem" }, decls: 0, vars: 0, template: function GridFooterComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
25
|
+
}
|
|
26
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GridFooterComponent, [{
|
|
27
|
+
type: Component,
|
|
28
|
+
args: [{
|
|
29
|
+
template: ''
|
|
30
|
+
}]
|
|
31
|
+
}], () => [], { header: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], body: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}], createText: [{
|
|
36
|
+
type: Input
|
|
37
|
+
}], size: [{
|
|
38
|
+
type: Input
|
|
39
|
+
}], actionAllowed: [{
|
|
40
|
+
type: Input
|
|
41
|
+
}], pageChanged: [{
|
|
42
|
+
type: Output
|
|
43
|
+
}], createItem: [{
|
|
44
|
+
type: Output
|
|
45
|
+
}], template: [{
|
|
46
|
+
type: ViewChild,
|
|
47
|
+
args: [TemplateRef, { static: true }]
|
|
48
|
+
}] }); })();
|
|
49
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GridFooterComponent, { className: "GridFooterComponent" }); })();
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR3JpZEZvb3RlckNvbXBvbmVudC5qcyIsInNv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IHB1YmxpYyBmb290ZXJQb3NpdGlvbnMgPSBHcmlkRm9vdGVyUG9zaXRpb25zO1xuXG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHRoaXMucGFnZUNoYW5nZWQgPSBuZXcgRXZlbnRFbWl0dGVyKCk7XG4gICAgdGhpcy5jcmVhdGVJdGVtID0gbmV3IEV2ZW50RW1pdHRlcigpO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Output, EventEmitter, ViewChild, TemplateRef, Input, Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class GridHeaderComponent {
|
|
4
|
+
actionAllowed;
|
|
5
|
+
sort;
|
|
6
|
+
template;
|
|
7
|
+
headers;
|
|
8
|
+
constructor() {
|
|
9
|
+
this.headers = [];
|
|
10
|
+
this.sort = new EventEmitter();
|
|
11
|
+
}
|
|
12
|
+
get numHeaders() {
|
|
13
|
+
return this.headers.length;
|
|
14
|
+
}
|
|
15
|
+
load(formio, query, columns) {
|
|
16
|
+
return Promise.resolve([]);
|
|
17
|
+
}
|
|
18
|
+
static ɵfac = function GridHeaderComponent_Factory(t) { return new (t || GridHeaderComponent)(); };
|
|
19
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GridHeaderComponent, selectors: [["ng-component"]], viewQuery: function GridHeaderComponent_Query(rf, ctx) { if (rf & 1) {
|
|
20
|
+
i0.ɵɵviewQuery(TemplateRef, 7);
|
|
21
|
+
} if (rf & 2) {
|
|
22
|
+
let _t;
|
|
23
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);
|
|
24
|
+
} }, inputs: { actionAllowed: "actionAllowed" }, outputs: { sort: "sort" }, decls: 0, vars: 0, template: function GridHeaderComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
25
|
+
}
|
|
26
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GridHeaderComponent, [{
|
|
27
|
+
type: Component,
|
|
28
|
+
args: [{
|
|
29
|
+
template: ''
|
|
30
|
+
}]
|
|
31
|
+
}], () => [], { actionAllowed: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], sort: [{
|
|
34
|
+
type: Output
|
|
35
|
+
}], template: [{
|
|
36
|
+
type: ViewChild,
|
|
37
|
+
args: [TemplateRef, { static: true }]
|
|
38
|
+
}] }); })();
|
|
39
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GridHeaderComponent, { className: "GridHeaderComponent" }); })();
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR3JpZEhlYWRlckNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItZm9ybWlvL2dyaWQvc3JjL0dyaWRIZWFkZXJDb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBRSxLQUFLLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQU8vRixNQUFNLE9BQU8sbUJBQW1CO0lBQ3JCLGFBQWEsQ0FBTTtJQUNsQixJQUFJLENBQTJCO0lBQ0QsUUFBUSxDQUFtQjtJQUM1RCxPQUFPLENBQW9CO0lBQ2xDO1FBQ0UsSUFBSSxDQUFDLE9BQU8sR0FBRyxFQUFFLENBQUM7UUFDbEIsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLFlBQVksRUFBRSxDQUFDO0lBQ2pDLENBQUM7SUFFRCxJQUFJLFVBQVU7UUFDWixPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDO0lBQzdCLENBQUM7SUFFRCxJQUFJLENBQU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zdHJ1Y3RvcigpIHtcbiAgICB0aGlzLmhlYWRlcnMgPSBbXTtcbiAgICB0aGlzLnNvcnQgPSBuZXcgRXZlbnRFbWl0dGVyKCk7XG4gIH1cblxuICBnZXQgbnVtSGVhZGVycygpIHtcbiAgICByZXR1cm4gdGhpcy5oZWFkZXJzLmxlbmd0aDtcbiAgfVxuXG4gIGxvYWQoZm9ybWlvOiBGb3JtaW9Qcm9taXNlU2VydmljZSwgcXVlcnk/OiBhbnksIGNvbHVtbnM/OiBBcnJheTxhbnk+KTogUHJvbWlzZTxhbnk+IHtcbiAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKFtdKTtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { Component, ViewChildren } from '@angular/core';
|
|
2
|
+
import { GridBodyComponent } from '../GridBodyComponent';
|
|
3
|
+
import { Tooltip } from 'bootstrap';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "@angular/router";
|
|
7
|
+
import * as i3 from "./time-since.pipe";
|
|
8
|
+
const _c0 = ["create"];
|
|
9
|
+
const _c1 = ["view"];
|
|
10
|
+
const _c2 = ["edit"];
|
|
11
|
+
const _c3 = ["permissions"];
|
|
12
|
+
const _c4 = ["delete"];
|
|
13
|
+
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_11_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
15
|
+
i0.ɵɵelementStart(0, "button", 14, 0);
|
|
16
|
+
i0.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_11_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r4); const form_r2 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onRowAction($event, form_r2, "view")); });
|
|
17
|
+
i0.ɵɵelement(2, "span", 15);
|
|
18
|
+
i0.ɵɵelementEnd();
|
|
19
|
+
} }
|
|
20
|
+
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_13_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
22
|
+
i0.ɵɵelementStart(0, "button", 16, 1);
|
|
23
|
+
i0.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_13_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const form_r2 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onRowAction($event, form_r2, "submission")); });
|
|
24
|
+
i0.ɵɵelement(2, "span", 17);
|
|
25
|
+
i0.ɵɵelementEnd();
|
|
26
|
+
} }
|
|
27
|
+
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_15_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
29
|
+
i0.ɵɵelementStart(0, "button", 16, 2);
|
|
30
|
+
i0.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_15_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r6); const form_r2 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onRowAction($event, form_r2, "edit")); });
|
|
31
|
+
i0.ɵɵelement(2, "span", 18);
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
} }
|
|
34
|
+
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_17_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
36
|
+
i0.ɵɵelementStart(0, "button", 19, 3);
|
|
37
|
+
i0.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_17_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r7); const form_r2 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onRowAction($event, form_r2, "delete")); });
|
|
38
|
+
i0.ɵɵelement(2, "span", 20);
|
|
39
|
+
i0.ɵɵelementEnd();
|
|
40
|
+
} }
|
|
41
|
+
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
42
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
43
|
+
i0.ɵɵelementStart(0, "tr")(1, "td")(2, "div", 6)(3, "div", 7)(4, "a", 8);
|
|
44
|
+
i0.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_Template_a_click_4_listener($event) { const form_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onRowSelect($event, form_r2)); });
|
|
45
|
+
i0.ɵɵelementStart(5, "h5");
|
|
46
|
+
i0.ɵɵtext(6);
|
|
47
|
+
i0.ɵɵelementEnd()();
|
|
48
|
+
i0.ɵɵelementStart(7, "div", 9);
|
|
49
|
+
i0.ɵɵtext(8);
|
|
50
|
+
i0.ɵɵpipe(9, "timeSince");
|
|
51
|
+
i0.ɵɵelementEnd()();
|
|
52
|
+
i0.ɵɵelementStart(10, "div", 10);
|
|
53
|
+
i0.ɵɵtemplate(11, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_11_Template, 3, 0, "button", 11);
|
|
54
|
+
i0.ɵɵtext(12, "\u00A0 ");
|
|
55
|
+
i0.ɵɵtemplate(13, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_13_Template, 3, 0, "button", 12);
|
|
56
|
+
i0.ɵɵtext(14, "\u00A0 ");
|
|
57
|
+
i0.ɵɵtemplate(15, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_15_Template, 3, 0, "button", 12);
|
|
58
|
+
i0.ɵɵtext(16, "\u00A0 ");
|
|
59
|
+
i0.ɵɵtemplate(17, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_17_Template, 3, 0, "button", 13);
|
|
60
|
+
i0.ɵɵelementEnd()()()();
|
|
61
|
+
} if (rf & 2) {
|
|
62
|
+
const form_r2 = ctx.$implicit;
|
|
63
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
64
|
+
i0.ɵɵadvance(4);
|
|
65
|
+
i0.ɵɵpropertyInterpolate1("routerLink", "", form_r2._id, "/view");
|
|
66
|
+
i0.ɵɵadvance(2);
|
|
67
|
+
i0.ɵɵtextInterpolate(form_r2.title);
|
|
68
|
+
i0.ɵɵadvance(2);
|
|
69
|
+
i0.ɵɵtextInterpolate1(" Updated ", i0.ɵɵpipeBind1(9, 8, form_r2.modified), " ago ");
|
|
70
|
+
i0.ɵɵadvance(3);
|
|
71
|
+
i0.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formView"));
|
|
72
|
+
i0.ɵɵadvance(2);
|
|
73
|
+
i0.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formSubmission"));
|
|
74
|
+
i0.ɵɵadvance(2);
|
|
75
|
+
i0.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formEdit"));
|
|
76
|
+
i0.ɵɵadvance(2);
|
|
77
|
+
i0.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formDelete"));
|
|
78
|
+
} }
|
|
79
|
+
function FormGridBodyComponent_ng_template_0_tbody_0_Template(rf, ctx) { if (rf & 1) {
|
|
80
|
+
i0.ɵɵelementStart(0, "tbody");
|
|
81
|
+
i0.ɵɵtemplate(1, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_Template, 18, 10, "tr", 5);
|
|
82
|
+
i0.ɵɵelementEnd();
|
|
83
|
+
} if (rf & 2) {
|
|
84
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
85
|
+
i0.ɵɵadvance();
|
|
86
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.rows);
|
|
87
|
+
} }
|
|
88
|
+
function FormGridBodyComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
89
|
+
i0.ɵɵtemplate(0, FormGridBodyComponent_ng_template_0_tbody_0_Template, 2, 1, "tbody", 4);
|
|
90
|
+
} if (rf & 2) {
|
|
91
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
92
|
+
i0.ɵɵproperty("ngIf", ctx_r2.rows);
|
|
93
|
+
} }
|
|
94
|
+
export class FormGridBodyComponent extends GridBodyComponent {
|
|
95
|
+
createBtns;
|
|
96
|
+
viewBtns;
|
|
97
|
+
editBtns;
|
|
98
|
+
permissionsBtns;
|
|
99
|
+
deleteBtns;
|
|
100
|
+
tooltips = [];
|
|
101
|
+
load(formio, query) {
|
|
102
|
+
query = query || {};
|
|
103
|
+
return formio.loadForms({ params: query })
|
|
104
|
+
.then((forms) => this.setRows(query, forms))
|
|
105
|
+
.then(() => this.attachTooltips());
|
|
106
|
+
}
|
|
107
|
+
attachTooltips() {
|
|
108
|
+
this.createBtns.forEach((el) => {
|
|
109
|
+
this.tooltips.push(new Tooltip(el.nativeElement, { title: 'Create' }));
|
|
110
|
+
});
|
|
111
|
+
this.editBtns.forEach((el) => {
|
|
112
|
+
this.tooltips.push(new Tooltip(el.nativeElement, { title: 'Edit' }));
|
|
113
|
+
});
|
|
114
|
+
this.viewBtns.forEach((el) => {
|
|
115
|
+
this.tooltips.push(new Tooltip(el.nativeElement, { title: 'View' }));
|
|
116
|
+
});
|
|
117
|
+
this.permissionsBtns.forEach((el) => {
|
|
118
|
+
this.tooltips.push(new Tooltip(el.nativeElement, { title: 'Permissions' }));
|
|
119
|
+
});
|
|
120
|
+
this.deleteBtns.forEach((el) => {
|
|
121
|
+
this.tooltips.push(new Tooltip(el.nativeElement, { title: 'Delete' }));
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
ngOnDestroy() {
|
|
125
|
+
this.tooltips.forEach((tootip) => tootip.dispose());
|
|
126
|
+
}
|
|
127
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵFormGridBodyComponent_BaseFactory; return function FormGridBodyComponent_Factory(t) { return (ɵFormGridBodyComponent_BaseFactory || (ɵFormGridBodyComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FormGridBodyComponent)))(t || FormGridBodyComponent); }; })();
|
|
128
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormGridBodyComponent, selectors: [["form-grid-body"]], viewQuery: function FormGridBodyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
129
|
+
i0.ɵɵviewQuery(_c0, 5);
|
|
130
|
+
i0.ɵɵviewQuery(_c1, 5);
|
|
131
|
+
i0.ɵɵviewQuery(_c2, 5);
|
|
132
|
+
i0.ɵɵviewQuery(_c3, 5);
|
|
133
|
+
i0.ɵɵviewQuery(_c4, 5);
|
|
134
|
+
} if (rf & 2) {
|
|
135
|
+
let _t;
|
|
136
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.createBtns = _t);
|
|
137
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewBtns = _t);
|
|
138
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.editBtns = _t);
|
|
139
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.permissionsBtns = _t);
|
|
140
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.deleteBtns = _t);
|
|
141
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 0, consts: [["create", ""], ["view", ""], ["edit", ""], ["delete", ""], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "row"], [1, "col-sm-9"], [1, "text-decoration-none", 3, "click", "routerLink"], [1, "form-updated", "small", "text-muted"], [1, "col-sm-3", "d-flex", "justify-content-end", "align-items-center"], ["class", "btn btn-outline-secondary btn-sm form-btn form-btn-use", 3, "click", 4, "ngIf"], ["class", "btn btn-outline-secondary btn-sm form-btn", 3, "click", 4, "ngIf"], ["class", "btn btn-secondary btn-sm form-btn form-btn-delete", "title", "Delete form", 3, "click", 4, "ngIf"], [1, "btn", "btn-outline-secondary", "btn-sm", "form-btn", "form-btn-use", 3, "click"], [1, "fa", "fa-pencil", "bi", "bi-pencil"], [1, "btn", "btn-outline-secondary", "btn-sm", "form-btn", 3, "click"], [1, "fa", "fa-list-alt", "bi", "bi-table"], [1, "fa", "fa-edit", "bi", "bi-pencil-square"], ["title", "Delete form", 1, "btn", "btn-secondary", "btn-sm", "form-btn", "form-btn-delete", 3, "click"], [1, "fa", "fa-trash", "bi", "bi-trash"]], template: function FormGridBodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
142
|
+
i0.ɵɵtemplate(0, FormGridBodyComponent_ng_template_0_Template, 1, 1, "ng-template");
|
|
143
|
+
} }, dependencies: [i1.NgForOf, i1.NgIf, i2.RouterLink, i3.TimeSince], styles: [".form-btn[_ngcontent-%COMP%]{font-size:.75rem;margin:2px 0}"] });
|
|
144
|
+
}
|
|
145
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormGridBodyComponent, [{
|
|
146
|
+
type: Component,
|
|
147
|
+
args: [{ selector: 'form-grid-body', template: "<ng-template>\n <tbody *ngIf=\"rows\">\n <tr *ngFor=\"let form of rows\">\n <td>\n <div class=\"row\">\n <div class=\"col-sm-9\">\n <a routerLink=\"{{form._id}}/view\" (click)=\"onRowSelect($event, form)\" class=\"text-decoration-none\"><h5>{{ form.title }}</h5></a>\n <div class=\"form-updated small text-muted\">\n Updated {{ form.modified | timeSince }} ago\n </div>\n </div>\n <div class=\"col-sm-3 d-flex justify-content-end align-items-center\">\n <button #create *ngIf=\"actionAllowed('formView')\" class=\"btn btn-outline-secondary btn-sm form-btn form-btn-use\" (click)=\"onRowAction($event, form, 'view')\"><span class=\"fa fa-pencil bi bi-pencil\"></span></button> \n <button #view *ngIf=\"actionAllowed('formSubmission')\" class=\"btn btn-outline-secondary btn-sm form-btn\" (click)=\"onRowAction($event, form, 'submission')\"><span class=\"fa fa-list-alt bi bi-table\"></span></button> \n <button #edit *ngIf=\"actionAllowed('formEdit')\" class=\"btn btn-outline-secondary btn-sm form-btn\" (click)=\"onRowAction($event, form, 'edit')\"><span class=\"fa fa-edit bi bi-pencil-square\"></span></button> \n <button #delete *ngIf=\"actionAllowed('formDelete')\" class=\"btn btn-secondary btn-sm form-btn form-btn-delete\" (click)=\"onRowAction($event, form, 'delete')\" title=\"Delete form\"><span class=\"fa fa-trash bi bi-trash\"></span></button>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n</ng-template>\n", styles: [".form-btn{font-size:.75rem;margin:2px 0}\n"] }]
|
|
148
|
+
}], null, { createBtns: [{
|
|
149
|
+
type: ViewChildren,
|
|
150
|
+
args: ['create']
|
|
151
|
+
}], viewBtns: [{
|
|
152
|
+
type: ViewChildren,
|
|
153
|
+
args: ['view']
|
|
154
|
+
}], editBtns: [{
|
|
155
|
+
type: ViewChildren,
|
|
156
|
+
args: ['edit']
|
|
157
|
+
}], permissionsBtns: [{
|
|
158
|
+
type: ViewChildren,
|
|
159
|
+
args: ['permissions']
|
|
160
|
+
}], deleteBtns: [{
|
|
161
|
+
type: ViewChildren,
|
|
162
|
+
args: ['delete']
|
|
163
|
+
}] }); })();
|
|
164
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormGridBodyComponent, { className: "FormGridBodyComponent" }); })();
|
|
165
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRm9ybUdyaWRCb2R5LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItZm9ybWlvL2dyaWQvc3JjL2Zvcm0vRm9ybUdyaWRCb2R5LmNvbXBvbmVudC50cyIsIi4uLy4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import { Component, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { GridFooterComponent } from '../GridFooterComponent';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@angular/forms";
|
|
6
|
+
import * as i3 from "ngx-bootstrap/pagination";
|
|
7
|
+
const _c0 = a0 => ({ label: a0 });
|
|
8
|
+
function FormGridFooterComponent_ng_template_0_thead_0_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
+
i0.ɵɵelementStart(0, "thead", 3);
|
|
10
|
+
i0.ɵɵelementContainer(1, 4);
|
|
11
|
+
i0.ɵɵelementEnd();
|
|
12
|
+
} if (rf & 2) {
|
|
13
|
+
const label_r1 = i0.ɵɵnextContext().label;
|
|
14
|
+
i0.ɵɵnextContext();
|
|
15
|
+
const defaultFooterTemplate_r2 = i0.ɵɵreference(3);
|
|
16
|
+
i0.ɵɵadvance();
|
|
17
|
+
i0.ɵɵproperty("ngTemplateOutlet", defaultFooterTemplate_r2)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, label_r1));
|
|
18
|
+
} }
|
|
19
|
+
function FormGridFooterComponent_ng_template_0_tfoot_1_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
+
i0.ɵɵelementStart(0, "tfoot", 3);
|
|
21
|
+
i0.ɵɵelementContainer(1, 4);
|
|
22
|
+
i0.ɵɵelementEnd();
|
|
23
|
+
} if (rf & 2) {
|
|
24
|
+
const label_r1 = i0.ɵɵnextContext().label;
|
|
25
|
+
i0.ɵɵnextContext();
|
|
26
|
+
const defaultFooterTemplate_r2 = i0.ɵɵreference(3);
|
|
27
|
+
i0.ɵɵadvance();
|
|
28
|
+
i0.ɵɵproperty("ngTemplateOutlet", defaultFooterTemplate_r2)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, label_r1));
|
|
29
|
+
} }
|
|
30
|
+
function FormGridFooterComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
31
|
+
i0.ɵɵtemplate(0, FormGridFooterComponent_ng_template_0_thead_0_Template, 2, 4, "thead", 2)(1, FormGridFooterComponent_ng_template_0_tfoot_1_Template, 2, 4, "tfoot", 2);
|
|
32
|
+
} if (rf & 2) {
|
|
33
|
+
const position_r3 = ctx.position;
|
|
34
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
35
|
+
i0.ɵɵproperty("ngIf", position_r3 === ctx_r3.footerPositions.top);
|
|
36
|
+
i0.ɵɵadvance();
|
|
37
|
+
i0.ɵɵproperty("ngIf", position_r3 === ctx_r3.footerPositions.bottom);
|
|
38
|
+
} }
|
|
39
|
+
function FormGridFooterComponent_ng_template_2_td_1_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
41
|
+
i0.ɵɵelementStart(0, "button", 12);
|
|
42
|
+
i0.ɵɵlistener("click", function FormGridFooterComponent_ng_template_2_td_1_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.createItem.emit("form")); });
|
|
43
|
+
i0.ɵɵelement(1, "em", 13);
|
|
44
|
+
i0.ɵɵtext(2);
|
|
45
|
+
i0.ɵɵelementEnd();
|
|
46
|
+
} if (rf & 2) {
|
|
47
|
+
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
48
|
+
i0.ɵɵadvance(2);
|
|
49
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r3.createText, "");
|
|
50
|
+
} }
|
|
51
|
+
function FormGridFooterComponent_ng_template_2_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
52
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
53
|
+
i0.ɵɵelementStart(0, "td", 6);
|
|
54
|
+
i0.ɵɵtemplate(1, FormGridFooterComponent_ng_template_2_td_1_button_1_Template, 3, 1, "button", 7);
|
|
55
|
+
i0.ɵɵelementStart(2, "span", 8)(3, "span", 9);
|
|
56
|
+
i0.ɵɵtext(4);
|
|
57
|
+
i0.ɵɵelementEnd();
|
|
58
|
+
i0.ɵɵtext(5);
|
|
59
|
+
i0.ɵɵelementEnd();
|
|
60
|
+
i0.ɵɵelementStart(6, "span", 10)(7, "pagination", 11);
|
|
61
|
+
i0.ɵɵtwoWayListener("ngModelChange", function FormGridFooterComponent_ng_template_2_td_1_Template_pagination_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r3 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r3.body.skip, $event) || (ctx_r3.body.skip = $event); return i0.ɵɵresetView($event); });
|
|
62
|
+
i0.ɵɵlistener("pageChanged", function FormGridFooterComponent_ng_template_2_td_1_Template_pagination_pageChanged_7_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.pageChanged.emit($event)); });
|
|
63
|
+
i0.ɵɵelementEnd()()();
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
const label_r7 = i0.ɵɵnextContext().label;
|
|
66
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
67
|
+
i0.ɵɵproperty("colSpan", ctx_r3.header.numHeaders);
|
|
68
|
+
i0.ɵɵadvance();
|
|
69
|
+
i0.ɵɵproperty("ngIf", ctx_r3.actionAllowed("formCreate"));
|
|
70
|
+
i0.ɵɵadvance(3);
|
|
71
|
+
i0.ɵɵtextInterpolate2("", ctx_r3.body.firstItem, " - ", ctx_r3.body.lastItem, "");
|
|
72
|
+
i0.ɵɵadvance();
|
|
73
|
+
i0.ɵɵtextInterpolate1(" / ", ctx_r3.body.total, " total");
|
|
74
|
+
i0.ɵɵadvance();
|
|
75
|
+
i0.ɵɵattribute("aria-label", label_r7);
|
|
76
|
+
i0.ɵɵadvance();
|
|
77
|
+
i0.ɵɵproperty("totalItems", ctx_r3.body.total)("itemsPerPage", ctx_r3.body.limit);
|
|
78
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r3.body.skip);
|
|
79
|
+
i0.ɵɵproperty("maxSize", ctx_r3.size);
|
|
80
|
+
} }
|
|
81
|
+
function FormGridFooterComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
+
i0.ɵɵelementStart(0, "tr");
|
|
83
|
+
i0.ɵɵtemplate(1, FormGridFooterComponent_ng_template_2_td_1_Template, 8, 10, "td", 5);
|
|
84
|
+
i0.ɵɵelementEnd();
|
|
85
|
+
} if (rf & 2) {
|
|
86
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
87
|
+
i0.ɵɵadvance();
|
|
88
|
+
i0.ɵɵproperty("ngIf", ctx_r3.header);
|
|
89
|
+
} }
|
|
90
|
+
export class FormGridFooterComponent extends GridFooterComponent {
|
|
91
|
+
constructor() {
|
|
92
|
+
super();
|
|
93
|
+
}
|
|
94
|
+
ngOnInit() {
|
|
95
|
+
if (!this.createText) {
|
|
96
|
+
this.createText = 'Create Form';
|
|
97
|
+
}
|
|
98
|
+
if (!this.size) {
|
|
99
|
+
this.size = 7;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
static ɵfac = function FormGridFooterComponent_Factory(t) { return new (t || FormGridFooterComponent)(); };
|
|
103
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormGridFooterComponent, selectors: [["ng-component"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 0, consts: [["footer", ""], ["defaultFooterTemplate", ""], ["class", "formio-grid-footer", 4, "ngIf"], [1, "formio-grid-footer"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "colSpan", 4, "ngIf"], [3, "colSpan"], ["class", "btn btn-primary form-btn-use float-start", 3, "click", 4, "ngIf"], [1, "pull-right", "item-counter"], [1, "page-num"], ["role", "navigation"], [1, "justify-content-center", "pagination-sm", 3, "ngModelChange", "pageChanged", "totalItems", "itemsPerPage", "ngModel", "maxSize"], [1, "btn", "btn-primary", "form-btn-use", "float-start", 3, "click"], [1, "fa", "fa-plus", "bi", "bi-plus-lg"]], template: function FormGridFooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
104
|
+
i0.ɵɵtemplate(0, FormGridFooterComponent_ng_template_0_Template, 2, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(2, FormGridFooterComponent_ng_template_2_Template, 2, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
105
|
+
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2.NgControlStatus, i2.NgModel, i3.PaginationComponent], styles: ["tfoot.formio-grid-footer td{padding:.3rem}tfoot.formio-grid-footer .page-num{font-size:1.4em}tfoot.formio-grid-footer ul.pagination{margin-top:5px;margin-bottom:0}\n"], encapsulation: 2 });
|
|
106
|
+
}
|
|
107
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormGridFooterComponent, [{
|
|
108
|
+
type: Component,
|
|
109
|
+
args: [{ encapsulation: ViewEncapsulation.None, template: "<ng-template #footer let-position=\"position\" let-label=\"label\">\n <thead class=\"formio-grid-footer\" *ngIf=\"position === footerPositions.top\">\n <ng-container [ngTemplateOutlet]=\"defaultFooterTemplate\" [ngTemplateOutletContext]=\"{ label: label }\"></ng-container>\n </thead>\n <tfoot class=\"formio-grid-footer\" *ngIf=\"position === footerPositions.bottom\">\n <ng-container [ngTemplateOutlet]=\"defaultFooterTemplate\" [ngTemplateOutletContext]=\"{ label: label }\"></ng-container>\n </tfoot>\n</ng-template>\n\n<ng-template let-label=\"label\" #defaultFooterTemplate>\n <tr>\n <td *ngIf=\"header\" [colSpan]=\"header.numHeaders\">\n <button *ngIf=\"actionAllowed('formCreate')\" class=\"btn btn-primary form-btn-use float-start\" (click)=\"createItem.emit('form')\"><em class=\"fa fa-plus bi bi-plus-lg\"></em> {{ createText }}</button>\n <span class=\"pull-right item-counter\"><span class=\"page-num\">{{ body.firstItem }} - {{ body.lastItem }}</span> / {{ body.total }} total</span>\n <span [attr.aria-label]=\"label\" role=\"navigation\">\n <pagination [totalItems]=\"body.total\" [itemsPerPage]=\"body.limit\" [(ngModel)]=\"body.skip\" (pageChanged)=\"pageChanged.emit($event)\" [maxSize]=\"size\" class=\"justify-content-center pagination-sm\">\n </pagination>\n </span>\n </td>\n </tr>\n</ng-template>\n", styles: ["tfoot.formio-grid-footer td{padding:.3rem}tfoot.formio-grid-footer .page-num{font-size:1.4em}tfoot.formio-grid-footer ul.pagination{margin-top:5px;margin-bottom:0}\n"] }]
|
|
110
|
+
}], () => [], null); })();
|
|
111
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormGridFooterComponent, { className: "FormGridFooterComponent" }); })();
|
|
112
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRm9ybUdyaWRGb290ZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1mb3JtaW8vZ3JpZC9zcmMvZm9ybS9Gb3JtR3JpZEZvb3Rlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWZvcm1pby9ncmlkL3NyYy9mb3JtL0Zvcm1HcmlkRm9vdGVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsaUJBQWlCLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDcEUsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7Ozs7Ozs7SUNBM0QsZ0NBQTJFO0lBQ3pFLDJCQUFxSDtJQUN2SCxpQkFBUTs7Ozs7SUFEUSxjQUEwQztJQUFDLEFBQTNDLDJEQUEwQyxpRUFBNkM7OztJQUV2RyxnQ0FBOEU7SUFDNUUs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mVhdGVJdGVtLmVtaXQoJ2Zvcm0nKVwiPjxlbSBjbGFzcz1cImZhIGZhLXBsdXMgYmkgYmktcGx1cy1sZ1wiPjwvZW0+IHt7IGNyZWF0ZVRleHQgfX08L2J1dHRvbj5cbiAgICAgIDxzcGFuIGNsYXNzPVwicHVsbC1yaWdodCBpdGVtLWNvdW50ZXJcIj48c3BhbiBjbGFzcz1cInBhZ2UtbnVtXCI+e3sgYm9keS5maXJzdEl0ZW0gfX0gLSB7eyBib2R5Lmxhc3RJdGVtIH19PC9zcGFuPiAvIHt7IGJvZHkudG90YWwgfX0gdG90YWw8L3NwYW4+XG4gICAgICA8c3BhbiBbYXR0ci5hcmlhLWxhYmVsXT1cImxhYmVsXCIgcm9sZT1cIm5hdmlnYXRpb25cIj5cbiAgICAgICAgPHBhZ2luYXRpb24gW3RvdGFsSXRlbXNdPVwiYm9keS50b3RhbFwiIFtpdGVtc1BlclBhZ2VdPVwiYm9keS5saW1pdFwiIFsobmdNb2RlbCldPVwiYm9keS5za2lwXCIgKHBhZ2VDaGFuZ2VkKT1cInBhZ2VDaGFuZ2VkLmVtaXQoJGV2ZW50KVwiIFttYXhTaXplXT1cInNpemVcIiBjbGFzcz1cImp1c3RpZnktY29udGVudC1jZW50ZXIgcGFnaW5hdGlvbi1zbVwiPlxuICAgICAgICA8L3BhZ2luYXRpb24+XG4gICAgICA8L3NwYW4+XG4gICAgPC90ZD5cbiAgPC90cj5cbjwvbmctdGVtcGxhdGU+XG4iXX0=
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { GridHeaderComponent } from '../GridHeaderComponent';
|
|
3
|
+
import { SortType } from '../types/grid-header';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
const _c0 = (a0, a1) => ({ "fa-caret-up bi-caret-up": a0, "fa-caret-down bi-caret-down": a1 });
|
|
7
|
+
function FormGridHeaderComponent_ng_template_0_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
+
i0.ɵɵelement(0, "span", 5);
|
|
9
|
+
} if (rf & 2) {
|
|
10
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(1, _c0, ctx_r1.header.sort === "asc", ctx_r1.header.sort === "desc"));
|
|
12
|
+
} }
|
|
13
|
+
function FormGridHeaderComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
15
|
+
i0.ɵɵelementStart(0, "thead")(1, "tr")(2, "th")(3, "div", 0)(4, "div", 1)(5, "a", 2);
|
|
16
|
+
i0.ɵɵlistener("click", function FormGridHeaderComponent_ng_template_0_Template_a_click_5_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.sort.emit(ctx_r1.header)); });
|
|
17
|
+
i0.ɵɵtext(6);
|
|
18
|
+
i0.ɵɵtemplate(7, FormGridHeaderComponent_ng_template_0_span_7_Template, 1, 4, "span", 3);
|
|
19
|
+
i0.ɵɵelementEnd()();
|
|
20
|
+
i0.ɵɵelementStart(8, "div", 4);
|
|
21
|
+
i0.ɵɵtext(9, " Operations ");
|
|
22
|
+
i0.ɵɵelementEnd()()()()();
|
|
23
|
+
} if (rf & 2) {
|
|
24
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25
|
+
i0.ɵɵadvance(6);
|
|
26
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.header.label, "\u00A0");
|
|
27
|
+
i0.ɵɵadvance();
|
|
28
|
+
i0.ɵɵproperty("ngIf", ctx_r1.header.sort);
|
|
29
|
+
} }
|
|
30
|
+
export class FormGridHeaderComponent extends GridHeaderComponent {
|
|
31
|
+
header;
|
|
32
|
+
load(formio) {
|
|
33
|
+
this.header = {
|
|
34
|
+
label: 'Title',
|
|
35
|
+
key: 'title',
|
|
36
|
+
sort: SortType.ASC
|
|
37
|
+
};
|
|
38
|
+
this.headers = [this.header];
|
|
39
|
+
return Promise.resolve(this.headers);
|
|
40
|
+
}
|
|
41
|
+
get numHeaders() {
|
|
42
|
+
return 2;
|
|
43
|
+
}
|
|
44
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵFormGridHeaderComponent_BaseFactory; return function FormGridHeaderComponent_Factory(t) { return (ɵFormGridHeaderComponent_BaseFactory || (ɵFormGridHeaderComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FormGridHeaderComponent)))(t || FormGridHeaderComponent); }; })();
|
|
45
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormGridHeaderComponent, selectors: [["form-grid-header"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 0, consts: [[1, "row"], [1, "col-sm-9"], [2, "cursor", "pointer", 3, "click"], ["class", "fa bi", 3, "ngClass", 4, "ngIf"], [1, "col-sm-3", "d-flex", "justify-content-end"], [1, "fa", "bi", 3, "ngClass"]], template: function FormGridHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
46
|
+
i0.ɵɵtemplate(0, FormGridHeaderComponent_ng_template_0_Template, 10, 2, "ng-template");
|
|
47
|
+
} }, dependencies: [i1.NgClass, i1.NgIf], encapsulation: 2 });
|
|
48
|
+
}
|
|
49
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormGridHeaderComponent, [{
|
|
50
|
+
type: Component,
|
|
51
|
+
args: [{ selector: 'form-grid-header', template: "<ng-template>\n <thead>\n <tr>\n <th>\n <div class=\"row\">\n <div class=\"col-sm-9\">\n <a (click)=\"sort.emit(header)\" style=\"cursor: pointer\">\n {{ header.label }} <span [ngClass]=\"{'fa-caret-up bi-caret-up': (header.sort === 'asc'), 'fa-caret-down bi-caret-down': (header.sort === 'desc')}\" class=\"fa bi\" *ngIf=\"header.sort\"></span>\n </a>\n </div>\n <div class=\"col-sm-3 d-flex justify-content-end\">\n Operations\n </div>\n </div>\n </th>\n </tr>\n </thead>\n</ng-template>\n" }]
|
|
52
|
+
}], null, null); })();
|
|
53
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormGridHeaderComponent, { className: "FormGridHeaderComponent" }); })();
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRm9ybUdyaWRIZWFkZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1mb3JtaW8vZ3JpZC9zcmMvZm9ybS9Gb3JtR3JpZEhlYWRlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWZvcm1pby9ncmlkL3NyYy9mb3JtL0Zvcm1HcmlkSGVhZGVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDeEMsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0sd0JBQXdCLENBQUM7QUFDM0QsT0FBTyxFQUFhLFFBQVEsRUFBQyxNQUFNLHNCQUFzQixDQUFDOzs7OztJQ0twQiwwQkFBeUs7OztJQUFuSyxpSEFBeUg7Ozs7SUFEekosQUFERixBQURGLEFBREYsQUFERixBQURGLDZCQUFPLFNBQ0QsU0FDRSxhQUNlLGFBQ08sV0FDbUM7SUFBcEQsc0xBQVMsK0JBQWlCLEtBQUM7SUFDNUIsWUFBd0I7SUFBQSx3RkFBa0s7SUFFOUwsQUFERSxpQkFBSSxFQUNBO0lBQ04sOEJBQWlEO0lBQy9DLDRCQUNGO0lBSVIsQUFERSxBQURFLEFBREUsQUFERSxpQkFBTSxFQUNGLEVBQ0gsRUFDRixFQUNDOzs7SU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