@formio/angular 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/03/c3/57d706b57a9bb2202b4c3f58dc4c59bd1fae8dc1d330b416b5c069a4217a2457f6c7cfef2f6d0dc5378bb43c95f62533a75cb34d09cfef47dc40e5756725 +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/0c/7a/916bd866cb386cc87b9ea07c40edc23df9d726d1865e6699b42dedfbfb2a8364ced191aa62680a9297d7644cdfa64753b8975cc254c7c581f28bba0acd15 +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/17/1b/bc3996ef483c464312f7c1acf66b2ce37039601d01d5faf114e615de6ae5001d009aa0a1410c1b4682dda0866d78d5f9c709ab4f6c8ba986a7936ab9f6ef +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/1e/04/481e2f3a5c2e9aed176acbf87c09f0320892cb02bbf8a95019c30ea33f77af28e8280057e4720a90506cb25c59ed33c0d60655446b75c3e25dfb4330ed43 +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/28/48/0149b4006ab8d4a2a7b42e75c125f3adab48568f4d85ee48176367ae60965807a3a72f81550645fe5a2ba83c16b33196f85c46107d859175847763b9bba7 +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/42/8d/7954e44606cfeaf1246358216f7f53bdccafbdbf7b99700ea6002d6e0dbe1c33f015d0cf59b833e5b4a36767cd94f29b9d77f86645e872bdc3013b403845 +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/43/05/c86feb68c6e6f17d2b1e7d4aadfbef2f8554b42c9e0b7516b22a7c34044b513c23987b00507d17cb8f89b9b762b5499483d4ec16708519940e00cee5863a +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/4c/77/763f1bb202f7b0d54e7b79b0a23fe956cf0827a5e988bceb7c59621c9ec07c8e7863531e5731dc334e90cf1d735a6e64dafa6d5bae486ab3b7b90dea3fe5 +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/5e/df/0706d1dfb3ed5b0c5a65b7b5e40996105b18800c157e8fb273040145aa011d9e60e28eb2112e2867a70052784727400f86d082d90d2c5841ec3abcbb6840 +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/6f/86/7209df36e306d669d7347d7ddb464798ace457218aa5f3be5b17145cdfd1385bbd48d133381fc31c082b5025575865b351f9bb0265508359fda378962d60 +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/71/55/241de4ea057eae7171b73fac62de144f35df7c4ec9be4fca9b08fa02f24f281e79717c76086a90b578d52963cd7cc78fc391ec813576d667ac3ad043e67d +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/89/26/e1b6ab1ce4c15c9175974d262c9baead1eea23bb80c6da1926a36513e9777f8d1be0948ec0cb33e875e41926682599a92ede1900400004ad1856529822bc +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/9c/21/3b8af7b6ee09c29bf340610026191af56f9ba1cba1f5e4476424775d5e322f84d7e900c4d264d39804cebf3dcb5aaa5eb5e9d8fd143bc3a8aa76c3d5325e +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/9e/bc/eb0b9b19e56d5161114be0b4aa51d5e29527ddd9e8954a9977fdb80b1640d5ee535de8c5c7cc1348f12423d5c9ece8e6525290eed6d4259303c5e0dd9e54 +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/af/5c/97d9a08342685ee95844b54aed260370df0de7c2408ec7b14f7da3972c811ee5a4cae7be4f51de07dd039c8639ec4e9008733bcf0b6a438b29a83d7fabe3 +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/b3/9a/0f0721f954468df14c05be1e1ecf80808948d80accc676b22b2f42594e36fd848d7b6f3a494888778ced38819d64ac01619dadef02f5d064a07e422dc6e3 +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/ba/5d/d939f6c0890924d0234b6253e4c7baab7e285c4e9e3b838d4f223f5365ce00c421e48383fc21ecdf847e1592936f5be80b0d20ea3db471bfe39e181c091a +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/c2/ed/fa9f957c177066eb85345c4a12a5b966d0a8c9b13723ef0b97b9e97fd12d94dce317239ca3b04a085e837ac1254883fe308f6914c845b3ab905aee71104c +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/e5/02/dea9a92e3e7a840bde12d10d7b4d9c19c7be587e568019a9aacd2f3be7a6a968ec214e3c6671def4874ff7e14de90b2b7f4742d40932e5772e85ed9e2e5c +1 -0
- package/.angular/cache/18.1.2/ng-packagr/content-v2/sha512/e9/ca/53ff813610ae5d57a25518e6546b659a092de2c929fd43130db59358947aa9aa5797289f7ca39fe550d2e41050a69cb26e6b5dd6ebbcae0207ab08474dc8 +1 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/25/d3/52d51d20f0068267704af92a4b131f29e9318f247d503eb0ec23c1ed7188 +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/32/2f/d5c320e973844b017f9df834dcf5f8a70b27c1c3b625602647fbe166617c +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/38/53/3bd61bb2f286821c9ec46774147eb97de202bd306657efa7e8fb0a4343e8 +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/4e/53/3b7731ca8fad27e6eaeb4c36c45bd95e9f08ffb7d050da8e33aa0c67f420 +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/4f/b5/b4881a5f5a49b3873273918459bc33f4faa34e974e629f48a07d7a97c39c +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/5b/e4/f6ef130cc3bbbf5aa958ce481e0b714d430a6a04f61381bc829296cde9a5 +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/69/8c/55ebedfbeee3a23e43db1e5576ea5a06710fab809fc667ba3ce8583b8eea +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/8a/38/489a51c20c3a372344dd5510758e23c1caffd6dfe1525c17dc3fbc231b76 +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/8d/5d/26f10d893644ba75ac602bed8276ef0b4e1866d085754e032ee3833e95ab +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/9a/0d/0056d732cfdfa97dfef099aa2189dcac3fae2f7c3c3560cd77a7c9567e74 +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/9c/f5/9c5f48481303af30935226f6337a1e033ad35f0462f95da8a973b69aafb5 +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/a3/17/80d2a0bcaac6af902db5f128a8f8ec58ec220b9d00d6825205749c2f418a +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/aa/80/466e9b161643951f9a077066a20cd2d7ef6903a1fdcaadedcef9c0177747 +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/b7/72/d9f00a872849a611fa73cb9ec575401ee6c838795bb102753b24d7d53ee3 +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/c7/dd/eca0dfb0e1190fa828b47955c8f97ac1e7a5b24871fb9d8342cd7256e5f9 +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/d9/03/3fd9ec2d0c37e7b3824ec5e7936928c4f6debbb6899a120a52cdba472f38 +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/da/4e/570182d1f569903d2554c87334c0f7751dafcb6b683ddfbe4213614fd5be +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/dc/4f/1a8db8af7d1e3f37160992ae5545e63460ab6e54a4d3981f234eb089d435 +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/e8/e9/47b0d4126bcfabc2df9a4c4be0d197a805526dd04e2a48278501d62a85fd +2 -0
- package/.angular/cache/18.1.2/ng-packagr/index-v5/ed/de/db04689deebb1db3d7610a2bbca795b1180084d7985db7a993d4787f6d0e +2 -0
- package/.angular/cache/18.1.2/ng-packagr/tsbuildinfo/formio-angular-auth.tsbuildinfo +1 -0
- package/.angular/cache/18.1.2/ng-packagr/tsbuildinfo/formio-angular-embed.tsbuildinfo +1 -0
- package/.angular/cache/18.1.2/ng-packagr/tsbuildinfo/formio-angular-grid.tsbuildinfo +1 -0
- package/.angular/cache/18.1.2/ng-packagr/tsbuildinfo/formio-angular-manager.tsbuildinfo +1 -0
- package/.angular/cache/18.1.2/ng-packagr/tsbuildinfo/formio-angular-resource.tsbuildinfo +1 -0
- package/.angular/cache/18.1.2/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/.travis.yml +4 -0
- package/.yo-rc.json +7 -0
- package/CHANGELOG.md +1095 -0
- package/Dockerfile +20 -0
- package/LICENSE +21 -0
- package/README.md +182 -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/{components → dist/angular-formio/components}/formbuilder/formbuilder.component.d.ts +1 -1
- package/{components → dist/angular-formio/components}/formbuilder/formbuilder.component.d.ts.map +1 -1
- package/{components → dist/angular-formio/components}/formioreport/formioreport.component.d.ts +1 -0
- package/{components → dist/angular-formio/components}/formioreport/formioreport.component.d.ts.map +1 -1
- 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/embed/app.service.d.ts +28 -0
- package/dist/angular-formio/embed/app.service.d.ts.map +1 -0
- package/dist/angular-formio/embed/builder.component.d.ts +13 -0
- package/dist/angular-formio/embed/builder.component.d.ts.map +1 -0
- package/dist/angular-formio/embed/embed.module.d.ts +10 -0
- package/dist/angular-formio/embed/embed.module.d.ts.map +1 -0
- package/dist/angular-formio/embed/formio-angular-embed.d.ts.map +1 -0
- package/dist/angular-formio/embed/formio.component.d.ts +16 -0
- package/dist/angular-formio/embed/formio.component.d.ts.map +1 -0
- package/dist/angular-formio/embed/index.d.ts +7 -0
- package/dist/angular-formio/embed/index.d.ts.map +1 -0
- 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/embed/app.service.mjs +58 -0
- package/dist/angular-formio/esm2022/embed/builder.component.mjs +45 -0
- package/dist/angular-formio/esm2022/embed/embed.module.mjs +36 -0
- package/dist/angular-formio/esm2022/embed/formio-angular-embed.mjs +5 -0
- package/dist/angular-formio/esm2022/embed/formio.component.mjs +59 -0
- package/dist/angular-formio/esm2022/embed/index.mjs +7 -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 +21 -0
- package/dist/angular-formio/esm2022/grid/GridBodyComponent.mjs +95 -0
- 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/dist/angular-formio/esm2022/grid/form/time-since.pipe.mjs +37 -0
- 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/dist/angular-formio/esm2022/manager/form-manager.service.mjs +185 -0
- package/dist/angular-formio/esm2022/manager/index/index.component.mjs +151 -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/dist/angular-formio/esm2022/resource/edit/edit.component.mjs +49 -0
- 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-embed.mjs +195 -0
- package/dist/angular-formio/fesm2022/formio-angular-embed.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 +1167 -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 +1321 -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} +2 -1
- package/dist/angular-formio/formio.config.d.ts.map +1 -0
- 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}/form-manager.service.d.ts +1 -1
- package/{manager → dist/angular-formio/manager}/form-manager.service.d.ts.map +1 -1
- package/{resource → dist/angular-formio/resource}/resource.service.d.ts.map +1 -1
- package/package.json +54 -57
- 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 +72 -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 +110 -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 +100 -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/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/projects/angular-formio/node_modules/tslib/LICENSE.txt +12 -0
- package/projects/angular-formio/node_modules/tslib/README.md +164 -0
- package/projects/angular-formio/node_modules/tslib/SECURITY.md +41 -0
- package/projects/angular-formio/node_modules/tslib/modules/index.d.ts +35 -0
- package/projects/angular-formio/node_modules/tslib/modules/index.js +64 -0
- package/projects/angular-formio/node_modules/tslib/modules/package.json +3 -0
- package/projects/angular-formio/node_modules/tslib/package.json +47 -0
- package/projects/angular-formio/node_modules/tslib/tslib.d.ts +430 -0
- package/projects/angular-formio/node_modules/tslib/tslib.es6.html +1 -0
- package/projects/angular-formio/node_modules/tslib/tslib.es6.js +321 -0
- package/projects/angular-formio/node_modules/tslib/tslib.es6.mjs +321 -0
- package/projects/angular-formio/node_modules/tslib/tslib.html +1 -0
- package/projects/angular-formio/node_modules/tslib/tslib.js +370 -0
- package/projects/angular-formio/package.json +39 -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 +258 -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 +557 -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 +91 -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 +25 -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 +91 -0
- package/projects/angular-formio/src/formio.config.ts +26 -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 +23 -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 +39 -0
- package/tslint.json +140 -0
- package/esm2022/FormioBaseComponent.mjs +0 -584
- package/esm2022/auth/auth.component.mjs +0 -13
- package/esm2022/auth/auth.config.mjs +0 -22
- package/esm2022/auth/auth.module.mjs +0 -47
- package/esm2022/auth/auth.service.mjs +0 -200
- package/esm2022/auth/login/login.component.mjs +0 -21
- package/esm2022/auth/register/register.component.mjs +0 -21
- package/esm2022/auth/resetpass/resetpass.component.mjs +0 -18
- package/esm2022/components/alerts/formio.alerts.component.mjs +0 -29
- package/esm2022/components/alerts/parse-html-content.pipe.mjs +0 -20
- 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 -86
- package/esm2022/components/loader/formio.loader.component.mjs +0 -16
- package/esm2022/core.mjs +0 -18
- package/esm2022/custom-tags.service.mjs +0 -15
- package/esm2022/formio.common.mjs +0 -11
- package/esm2022/formio.config.mjs +0 -30
- package/esm2022/formio.module.mjs +0 -60
- package/esm2022/formio.service.mjs +0 -62
- package/esm2022/formio.utils.mjs +0 -21
- package/esm2022/grid/GridBodyComponent.mjs +0 -90
- package/esm2022/grid/GridFooterComponent.mjs +0 -45
- package/esm2022/grid/GridHeaderComponent.mjs +0 -35
- package/esm2022/grid/form/FormGridBody.component.mjs +0 -64
- package/esm2022/grid/form/FormGridFooter.component.mjs +0 -27
- package/esm2022/grid/form/FormGridHeader.component.mjs +0 -28
- package/esm2022/grid/form/time-since.pipe.mjs +0 -38
- package/esm2022/grid/grid.component.mjs +0 -258
- package/esm2022/grid/grid.module.mjs +0 -80
- package/esm2022/grid/grid.service.mjs +0 -19
- package/esm2022/grid/submission/SubmissionGridBody.component.mjs +0 -44
- package/esm2022/grid/submission/SubmissionGridFooter.component.mjs +0 -24
- package/esm2022/grid/submission/SubmissionGridHeader.component.mjs +0 -64
- package/esm2022/manager/create/create.component.mjs +0 -19
- package/esm2022/manager/delete/delete.component.mjs +0 -43
- package/esm2022/manager/edit/edit.component.mjs +0 -126
- package/esm2022/manager/form/form.component.mjs +0 -81
- package/esm2022/manager/form-manager.config.mjs +0 -19
- package/esm2022/manager/form-manager.module.mjs +0 -84
- package/esm2022/manager/form-manager.service.mjs +0 -186
- package/esm2022/manager/index/index.component.mjs +0 -109
- package/esm2022/manager/submission/delete/delete.component.mjs +0 -33
- package/esm2022/manager/submission/edit/edit.component.mjs +0 -26
- package/esm2022/manager/submission/index/index.component.mjs +0 -26
- package/esm2022/manager/submission/submission/submission.component.mjs +0 -30
- package/esm2022/manager/submission/view/view.component.mjs +0 -18
- package/esm2022/manager/view/view.component.mjs +0 -53
- package/esm2022/resource/create/create.component.mjs +0 -44
- package/esm2022/resource/delete/delete.component.mjs +0 -30
- package/esm2022/resource/edit/edit.component.mjs +0 -43
- package/esm2022/resource/index/index.component.mjs +0 -70
- package/esm2022/resource/resource.component.mjs +0 -47
- package/esm2022/resource/resource.config.mjs +0 -14
- package/esm2022/resource/resource.module.mjs +0 -63
- package/esm2022/resource/resource.service.mjs +0 -230
- package/esm2022/resource/resources.service.mjs +0 -26
- package/esm2022/resource/view/view.component.mjs +0 -26
- package/fesm2022/formio-angular-auth.mjs.map +0 -1
- package/fesm2022/formio-angular-grid.mjs +0 -771
- 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 -1183
- 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}/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}/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/{formio.utils.d.ts.map → dist/angular-formio/formio.utils.d.ts.map} +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}/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/index.component.d.ts.map +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
|
@@ -1,771 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, TemplateRef, Component, Input, Output, ViewChild, Injectable, Pipe, ViewChildren, ViewEncapsulation, ViewContainerRef, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i2$1 from '@angular/forms';
|
|
6
|
-
import { FormsModule } from '@angular/forms';
|
|
7
|
-
import * as i2 from '@angular/router';
|
|
8
|
-
import { RouterModule } from '@angular/router';
|
|
9
|
-
import * as i1$1 from '@formio/angular';
|
|
10
|
-
import { FormioPromiseService, FormioModule, FormioAlerts } from '@formio/angular';
|
|
11
|
-
import { each, clone, get } from 'lodash';
|
|
12
|
-
import { Components, Utils, Formio } from 'formiojs';
|
|
13
|
-
import { Tooltip } from 'bootstrap';
|
|
14
|
-
import * as i3 from 'ngx-bootstrap/pagination';
|
|
15
|
-
import { PaginationModule } from 'ngx-bootstrap/pagination';
|
|
16
|
-
|
|
17
|
-
var GridFooterPositions;
|
|
18
|
-
(function (GridFooterPositions) {
|
|
19
|
-
GridFooterPositions[GridFooterPositions["bottom"] = 0] = "bottom";
|
|
20
|
-
GridFooterPositions[GridFooterPositions["top"] = 1] = "top";
|
|
21
|
-
GridFooterPositions[GridFooterPositions["both"] = 2] = "both";
|
|
22
|
-
})(GridFooterPositions || (GridFooterPositions = {}));
|
|
23
|
-
|
|
24
|
-
class GridHeaderComponent {
|
|
25
|
-
actionAllowed;
|
|
26
|
-
sort;
|
|
27
|
-
template;
|
|
28
|
-
headers;
|
|
29
|
-
constructor() {
|
|
30
|
-
this.headers = [];
|
|
31
|
-
this.sort = new EventEmitter();
|
|
32
|
-
}
|
|
33
|
-
get numHeaders() {
|
|
34
|
-
return this.headers.length;
|
|
35
|
-
}
|
|
36
|
-
load(formio, query, columns) {
|
|
37
|
-
return Promise.resolve([]);
|
|
38
|
-
}
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
40
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GridHeaderComponent, selector: "ng-component", inputs: { actionAllowed: "actionAllowed" }, outputs: { sort: "sort" }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: '', isInline: true });
|
|
41
|
-
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridHeaderComponent, decorators: [{
|
|
43
|
-
type: Component,
|
|
44
|
-
args: [{
|
|
45
|
-
template: ''
|
|
46
|
-
}]
|
|
47
|
-
}], ctorParameters: function () { return []; }, propDecorators: { actionAllowed: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}], sort: [{
|
|
50
|
-
type: Output
|
|
51
|
-
}], template: [{
|
|
52
|
-
type: ViewChild,
|
|
53
|
-
args: [TemplateRef, { static: true }]
|
|
54
|
-
}] } });
|
|
55
|
-
|
|
56
|
-
var SortType;
|
|
57
|
-
(function (SortType) {
|
|
58
|
-
SortType["ASC"] = "asc";
|
|
59
|
-
SortType["DESC"] = "desc";
|
|
60
|
-
})(SortType || (SortType = {}));
|
|
61
|
-
|
|
62
|
-
class FormGridHeaderComponent extends GridHeaderComponent {
|
|
63
|
-
header;
|
|
64
|
-
load(formio) {
|
|
65
|
-
this.header = {
|
|
66
|
-
label: 'Title',
|
|
67
|
-
key: 'title',
|
|
68
|
-
sort: SortType.ASC
|
|
69
|
-
};
|
|
70
|
-
this.headers = [this.header];
|
|
71
|
-
return Promise.resolve(this.headers);
|
|
72
|
-
}
|
|
73
|
-
get numHeaders() {
|
|
74
|
-
return 2;
|
|
75
|
-
}
|
|
76
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormGridHeaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
77
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormGridHeaderComponent, selector: "form-grid-header", usesInheritance: true, ngImport: i0, 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", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
78
|
-
}
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormGridHeaderComponent, decorators: [{
|
|
80
|
-
type: Component,
|
|
81
|
-
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" }]
|
|
82
|
-
}] });
|
|
83
|
-
|
|
84
|
-
class GridService {
|
|
85
|
-
rows;
|
|
86
|
-
constructor() { }
|
|
87
|
-
setRows(rows) {
|
|
88
|
-
this.rows = rows;
|
|
89
|
-
}
|
|
90
|
-
getFormsPerPage() {
|
|
91
|
-
return this.rows?.length;
|
|
92
|
-
}
|
|
93
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
94
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridService });
|
|
95
|
-
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridService, decorators: [{
|
|
97
|
-
type: Injectable
|
|
98
|
-
}], ctorParameters: function () { return []; } });
|
|
99
|
-
|
|
100
|
-
class GridBodyComponent {
|
|
101
|
-
service;
|
|
102
|
-
header;
|
|
103
|
-
actionAllowed;
|
|
104
|
-
rowSelect;
|
|
105
|
-
rowAction;
|
|
106
|
-
template;
|
|
107
|
-
rows;
|
|
108
|
-
loading;
|
|
109
|
-
firstItem = 0;
|
|
110
|
-
lastItem = 0;
|
|
111
|
-
skip = 0;
|
|
112
|
-
limit = 0;
|
|
113
|
-
total = 0;
|
|
114
|
-
constructor(service) {
|
|
115
|
-
this.service = service;
|
|
116
|
-
this.rowSelect = new EventEmitter();
|
|
117
|
-
this.rowAction = new EventEmitter();
|
|
118
|
-
this.loading = true;
|
|
119
|
-
}
|
|
120
|
-
load(formio, query) {
|
|
121
|
-
return formio.loadForm(query);
|
|
122
|
-
}
|
|
123
|
-
onRowSelect(event, row) {
|
|
124
|
-
event.preventDefault();
|
|
125
|
-
this.rowSelect.emit(row);
|
|
126
|
-
}
|
|
127
|
-
onRowAction(event, row, action) {
|
|
128
|
-
event.preventDefault();
|
|
129
|
-
this.rowAction.emit({ row, action });
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Set the rows for this Grid body.
|
|
133
|
-
*
|
|
134
|
-
* @param query
|
|
135
|
-
* @param items
|
|
136
|
-
* @return any
|
|
137
|
-
*/
|
|
138
|
-
setRows(query, items) {
|
|
139
|
-
this.rows = [];
|
|
140
|
-
if (typeof items !== 'object') {
|
|
141
|
-
this.firstItem = 0;
|
|
142
|
-
this.lastItem = 0;
|
|
143
|
-
this.total = 0;
|
|
144
|
-
this.skip = 0;
|
|
145
|
-
this.loading = false;
|
|
146
|
-
this.service.setRows(this.rows);
|
|
147
|
-
return this.rows;
|
|
148
|
-
}
|
|
149
|
-
this.firstItem = query.skip + 1;
|
|
150
|
-
this.lastItem = this.firstItem + items.length - 1;
|
|
151
|
-
if (this.lastItem === 0) {
|
|
152
|
-
this.firstItem = 0;
|
|
153
|
-
}
|
|
154
|
-
this.total = items.serverCount;
|
|
155
|
-
this.limit = query.limit;
|
|
156
|
-
this.skip = Math.floor(items.skip / query.limit) + 1;
|
|
157
|
-
this.loading = false;
|
|
158
|
-
each(items, (item) => {
|
|
159
|
-
this.rows.push(clone(item));
|
|
160
|
-
});
|
|
161
|
-
this.service.setRows(this.rows);
|
|
162
|
-
return this.rows;
|
|
163
|
-
}
|
|
164
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridBodyComponent, deps: [{ token: GridService }], target: i0.ɵɵFactoryTarget.Component });
|
|
165
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GridBodyComponent, selector: "ng-component", inputs: { header: "header", actionAllowed: "actionAllowed" }, outputs: { rowSelect: "rowSelect", rowAction: "rowAction" }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: '', isInline: true });
|
|
166
|
-
}
|
|
167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridBodyComponent, decorators: [{
|
|
168
|
-
type: Component,
|
|
169
|
-
args: [{
|
|
170
|
-
template: ''
|
|
171
|
-
}]
|
|
172
|
-
}], ctorParameters: function () { return [{ type: GridService }]; }, propDecorators: { header: [{
|
|
173
|
-
type: Input
|
|
174
|
-
}], actionAllowed: [{
|
|
175
|
-
type: Input
|
|
176
|
-
}], rowSelect: [{
|
|
177
|
-
type: Output
|
|
178
|
-
}], rowAction: [{
|
|
179
|
-
type: Output
|
|
180
|
-
}], template: [{
|
|
181
|
-
type: ViewChild,
|
|
182
|
-
args: [TemplateRef, { static: true }]
|
|
183
|
-
}] } });
|
|
184
|
-
|
|
185
|
-
class TimeSince {
|
|
186
|
-
transform(date) {
|
|
187
|
-
const elapsed = (new Date().getTime() - new Date(date).getTime()) / 1000;
|
|
188
|
-
let interval;
|
|
189
|
-
if (interval >= 1) {
|
|
190
|
-
return interval + ' year' + (interval > 1 ? 's' : '');
|
|
191
|
-
}
|
|
192
|
-
interval = Math.floor(elapsed / 2592000);
|
|
193
|
-
if (interval >= 1) {
|
|
194
|
-
return interval + ' month' + (interval > 1 ? 's' : '');
|
|
195
|
-
}
|
|
196
|
-
interval = Math.floor(elapsed / 86400);
|
|
197
|
-
if (interval >= 1) {
|
|
198
|
-
return interval + ' day' + (interval > 1 ? 's' : '');
|
|
199
|
-
}
|
|
200
|
-
interval = Math.floor(elapsed / 3600);
|
|
201
|
-
if (interval >= 1) {
|
|
202
|
-
return interval + ' hour' + (interval > 1 ? 's' : '');
|
|
203
|
-
}
|
|
204
|
-
interval = Math.floor(elapsed / 60);
|
|
205
|
-
if (interval >= 1) {
|
|
206
|
-
return interval + ' minute' + (interval > 1 ? 's' : '');
|
|
207
|
-
}
|
|
208
|
-
return Math.floor(elapsed) + ' second' + (elapsed > 1 ? 's' : '');
|
|
209
|
-
}
|
|
210
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeSince, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
211
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TimeSince, name: "timeSince" });
|
|
212
|
-
}
|
|
213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeSince, decorators: [{
|
|
214
|
-
type: Pipe,
|
|
215
|
-
args: [{
|
|
216
|
-
name: 'timeSince'
|
|
217
|
-
}]
|
|
218
|
-
}] });
|
|
219
|
-
|
|
220
|
-
class FormGridBodyComponent extends GridBodyComponent {
|
|
221
|
-
createBtns;
|
|
222
|
-
viewBtns;
|
|
223
|
-
editBtns;
|
|
224
|
-
permissionsBtns;
|
|
225
|
-
deleteBtns;
|
|
226
|
-
tooltips = [];
|
|
227
|
-
load(formio, query) {
|
|
228
|
-
query = query || {};
|
|
229
|
-
return formio.loadForms({ params: query })
|
|
230
|
-
.then((forms) => this.setRows(query, forms))
|
|
231
|
-
.then(() => this.attachTooltips());
|
|
232
|
-
}
|
|
233
|
-
attachTooltips() {
|
|
234
|
-
this.createBtns.forEach((el) => {
|
|
235
|
-
this.tooltips.push(new Tooltip(el.nativeElement, { title: 'Create' }));
|
|
236
|
-
});
|
|
237
|
-
this.editBtns.forEach((el) => {
|
|
238
|
-
this.tooltips.push(new Tooltip(el.nativeElement, { title: 'Edit' }));
|
|
239
|
-
});
|
|
240
|
-
this.viewBtns.forEach((el) => {
|
|
241
|
-
this.tooltips.push(new Tooltip(el.nativeElement, { title: 'View' }));
|
|
242
|
-
});
|
|
243
|
-
this.permissionsBtns.forEach((el) => {
|
|
244
|
-
this.tooltips.push(new Tooltip(el.nativeElement, { title: 'Permissions' }));
|
|
245
|
-
});
|
|
246
|
-
this.deleteBtns.forEach((el) => {
|
|
247
|
-
this.tooltips.push(new Tooltip(el.nativeElement, { title: 'Delete' }));
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
ngOnDestroy() {
|
|
251
|
-
this.tooltips.forEach((tootip) => tootip.dispose());
|
|
252
|
-
}
|
|
253
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormGridBodyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
254
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormGridBodyComponent, selector: "form-grid-body", viewQueries: [{ propertyName: "createBtns", predicate: ["create"], descendants: true }, { propertyName: "viewBtns", predicate: ["view"], descendants: true }, { propertyName: "editBtns", predicate: ["edit"], descendants: true }, { propertyName: "permissionsBtns", predicate: ["permissions"], descendants: true }, { propertyName: "deleteBtns", predicate: ["delete"], descendants: true }], usesInheritance: true, ngImport: i0, 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"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: TimeSince, name: "timeSince" }] });
|
|
255
|
-
}
|
|
256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormGridBodyComponent, decorators: [{
|
|
257
|
-
type: Component,
|
|
258
|
-
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"] }]
|
|
259
|
-
}], propDecorators: { createBtns: [{
|
|
260
|
-
type: ViewChildren,
|
|
261
|
-
args: ['create']
|
|
262
|
-
}], viewBtns: [{
|
|
263
|
-
type: ViewChildren,
|
|
264
|
-
args: ['view']
|
|
265
|
-
}], editBtns: [{
|
|
266
|
-
type: ViewChildren,
|
|
267
|
-
args: ['edit']
|
|
268
|
-
}], permissionsBtns: [{
|
|
269
|
-
type: ViewChildren,
|
|
270
|
-
args: ['permissions']
|
|
271
|
-
}], deleteBtns: [{
|
|
272
|
-
type: ViewChildren,
|
|
273
|
-
args: ['delete']
|
|
274
|
-
}] } });
|
|
275
|
-
|
|
276
|
-
class GridFooterComponent {
|
|
277
|
-
header;
|
|
278
|
-
body;
|
|
279
|
-
createText;
|
|
280
|
-
size;
|
|
281
|
-
actionAllowed;
|
|
282
|
-
pageChanged;
|
|
283
|
-
createItem;
|
|
284
|
-
template;
|
|
285
|
-
footerPositions = GridFooterPositions;
|
|
286
|
-
constructor() {
|
|
287
|
-
this.pageChanged = new EventEmitter();
|
|
288
|
-
this.createItem = new EventEmitter();
|
|
289
|
-
}
|
|
290
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
291
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GridFooterComponent, selector: "ng-component", inputs: { header: "header", body: "body", createText: "createText", size: "size", actionAllowed: "actionAllowed" }, outputs: { pageChanged: "pageChanged", createItem: "createItem" }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: '', isInline: true });
|
|
292
|
-
}
|
|
293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridFooterComponent, decorators: [{
|
|
294
|
-
type: Component,
|
|
295
|
-
args: [{
|
|
296
|
-
template: ''
|
|
297
|
-
}]
|
|
298
|
-
}], ctorParameters: function () { return []; }, propDecorators: { header: [{
|
|
299
|
-
type: Input
|
|
300
|
-
}], body: [{
|
|
301
|
-
type: Input
|
|
302
|
-
}], createText: [{
|
|
303
|
-
type: Input
|
|
304
|
-
}], size: [{
|
|
305
|
-
type: Input
|
|
306
|
-
}], actionAllowed: [{
|
|
307
|
-
type: Input
|
|
308
|
-
}], pageChanged: [{
|
|
309
|
-
type: Output
|
|
310
|
-
}], createItem: [{
|
|
311
|
-
type: Output
|
|
312
|
-
}], template: [{
|
|
313
|
-
type: ViewChild,
|
|
314
|
-
args: [TemplateRef, { static: true }]
|
|
315
|
-
}] } });
|
|
316
|
-
|
|
317
|
-
class FormGridFooterComponent extends GridFooterComponent {
|
|
318
|
-
constructor() {
|
|
319
|
-
super();
|
|
320
|
-
}
|
|
321
|
-
ngOnInit() {
|
|
322
|
-
if (!this.createText) {
|
|
323
|
-
this.createText = 'Create Form';
|
|
324
|
-
}
|
|
325
|
-
if (!this.size) {
|
|
326
|
-
this.size = 7;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormGridFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
330
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormGridFooterComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, 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=\"float-end 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"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.PaginationComponent, selector: "pagination", inputs: ["align", "maxSize", "boundaryLinks", "directionLinks", "firstText", "previousText", "nextText", "lastText", "rotate", "pageBtnClass", "disabled", "customPageTemplate", "customNextTemplate", "customPreviousTemplate", "customFirstTemplate", "customLastTemplate", "itemsPerPage", "totalItems"], outputs: ["numPages", "pageChanged"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
331
|
-
}
|
|
332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormGridFooterComponent, decorators: [{
|
|
333
|
-
type: Component,
|
|
334
|
-
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=\"float-end 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"] }]
|
|
335
|
-
}], ctorParameters: function () { return []; } });
|
|
336
|
-
|
|
337
|
-
var FormComponents = {
|
|
338
|
-
header: FormGridHeaderComponent,
|
|
339
|
-
body: FormGridBodyComponent,
|
|
340
|
-
footer: FormGridFooterComponent
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
class SubmissionGridHeaderComponent extends GridHeaderComponent {
|
|
344
|
-
// Map structure where the key is the path and the value is the component
|
|
345
|
-
formComponents;
|
|
346
|
-
load(formio, query, columns) {
|
|
347
|
-
query = query || {};
|
|
348
|
-
return formio.loadForm({ params: query }).then((form) => {
|
|
349
|
-
this.headers = [];
|
|
350
|
-
this.formComponents = new Map();
|
|
351
|
-
this.setComponents(form.components);
|
|
352
|
-
columns ? columns.forEach(column => {
|
|
353
|
-
this.setHeader(this.getHeaderForColumn(column, this.formComponents.get(column.path)));
|
|
354
|
-
}) : this.setComponentsHeaders(this.formComponents);
|
|
355
|
-
return this.headers;
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
setHeader(header) {
|
|
359
|
-
this.headers.push(header);
|
|
360
|
-
}
|
|
361
|
-
getHeaderForColumn(column, component, sort) {
|
|
362
|
-
return {
|
|
363
|
-
label: column.label,
|
|
364
|
-
key: column.path,
|
|
365
|
-
sort: sort,
|
|
366
|
-
component: component ? Components.create(component, null, null, true) : undefined,
|
|
367
|
-
renderCell: column ? column.renderCell : undefined
|
|
368
|
-
};
|
|
369
|
-
}
|
|
370
|
-
getHeaderForComponent(component, path, sort) {
|
|
371
|
-
return {
|
|
372
|
-
label: component.label,
|
|
373
|
-
key: path,
|
|
374
|
-
sort: sort,
|
|
375
|
-
component: component ? Components.create(component, null, null, true) : undefined,
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
// Set headers from components in case if columns are not provided
|
|
379
|
-
setComponentsHeaders(components, sort) {
|
|
380
|
-
components.forEach((component, path) => {
|
|
381
|
-
if (component.input &&
|
|
382
|
-
(!component.hasOwnProperty('tableView') || component.tableView)) {
|
|
383
|
-
this.setHeader(this.getHeaderForComponent(component, path, sort));
|
|
384
|
-
}
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
// Map components
|
|
388
|
-
setComponents(components) {
|
|
389
|
-
Utils.eachComponent(components, (component, newPath) => {
|
|
390
|
-
this.formComponents.set(`data.${newPath}`, component);
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubmissionGridHeaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
394
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SubmissionGridHeaderComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-template>\n <thead>\n <tr>\n <th *ngFor=\"let header of headers\">\n <a (click)=\"sort.emit(header)\">\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 </th>\n </tr>\n </thead>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
395
|
-
}
|
|
396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubmissionGridHeaderComponent, decorators: [{
|
|
397
|
-
type: Component,
|
|
398
|
-
args: [{ template: "<ng-template>\n <thead>\n <tr>\n <th *ngFor=\"let header of headers\">\n <a (click)=\"sort.emit(header)\">\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 </th>\n </tr>\n </thead>\n</ng-template>\n" }]
|
|
399
|
-
}] });
|
|
400
|
-
|
|
401
|
-
class SubmissionGridBodyComponent extends GridBodyComponent {
|
|
402
|
-
load(formio, query) {
|
|
403
|
-
query = query || {};
|
|
404
|
-
return formio.loadSubmissions({ params: query })
|
|
405
|
-
.then((submissions) => this.setRows(query, submissions));
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* Render the cell data.
|
|
409
|
-
*
|
|
410
|
-
* @param submission
|
|
411
|
-
* @param header
|
|
412
|
-
* @return any
|
|
413
|
-
*/
|
|
414
|
-
view(submission, header) {
|
|
415
|
-
const cellValue = get(submission, header.key);
|
|
416
|
-
if (header.renderCell) {
|
|
417
|
-
return header.renderCell(cellValue, header.component);
|
|
418
|
-
}
|
|
419
|
-
else {
|
|
420
|
-
if (header.component) {
|
|
421
|
-
if (header.component.getView) {
|
|
422
|
-
return header.component.getView(cellValue);
|
|
423
|
-
}
|
|
424
|
-
return header.component.asString(cellValue);
|
|
425
|
-
}
|
|
426
|
-
else {
|
|
427
|
-
return cellValue.toString();
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubmissionGridBodyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
432
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SubmissionGridBodyComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-template>\n <tbody>\n <tr *ngFor=\"let row of rows\" (click)=\"onRowSelect($event, row)\">\n <td *ngFor=\"let rowHeader of header.headers\" [innerHTML]=\"view(row, rowHeader)\"></td>\n </tr>\n </tbody>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
433
|
-
}
|
|
434
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubmissionGridBodyComponent, decorators: [{
|
|
435
|
-
type: Component,
|
|
436
|
-
args: [{ template: "<ng-template>\n <tbody>\n <tr *ngFor=\"let row of rows\" (click)=\"onRowSelect($event, row)\">\n <td *ngFor=\"let rowHeader of header.headers\" [innerHTML]=\"view(row, rowHeader)\"></td>\n </tr>\n </tbody>\n</ng-template>\n" }]
|
|
437
|
-
}] });
|
|
438
|
-
|
|
439
|
-
class SubmissionGridFooterComponent extends GridFooterComponent {
|
|
440
|
-
constructor() {
|
|
441
|
-
super();
|
|
442
|
-
}
|
|
443
|
-
ngOnInit() {
|
|
444
|
-
if (!this.size) {
|
|
445
|
-
this.size = 7;
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubmissionGridFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
449
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SubmissionGridFooterComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-template #footer let-position=\"position\">\n <thead class=\"formio-grid-footer\" *ngIf=\"position === footerPositions.top\">\n <ng-container [ngTemplateOutlet]=\"defaultFooterTemplate\"></ng-container>\n </thead>\n <tfoot class=\"formio-grid-footer\" *ngIf=\"position === footerPositions.bottom\">\n <ng-container [ngTemplateOutlet]=\"defaultFooterTemplate\"></ng-container>\n </tfoot>\n</ng-template>\n\n<ng-template #defaultFooterTemplate>\n <tr>\n <td *ngIf=\"header\" [colSpan]=\"header.numHeaders\">\n <button *ngIf=\"actionAllowed('submissionCreate') && createText\" class=\"btn btn-primary float-start\" (click)=\"createItem.emit('form')\"><em class=\"fa fa-plus bi bi-plus\"></em> {{ createText }}</button>\n <span class=\"float-end item-counter\"><span class=\"page-num\">{{ body.firstItem }} - {{ body.lastItem }}</span> / {{ body.total }} total</span>\n <pagination [totalItems]=\"body.total\" [itemsPerPage]=\"body.limit\" [(ngModel)]=\"body.skip\" (pageChanged)=\"pageChanged.emit($event)\" [maxSize]=\"size\" class=\"justify-content-center pagination-sm\"></pagination>\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"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.PaginationComponent, selector: "pagination", inputs: ["align", "maxSize", "boundaryLinks", "directionLinks", "firstText", "previousText", "nextText", "lastText", "rotate", "pageBtnClass", "disabled", "customPageTemplate", "customNextTemplate", "customPreviousTemplate", "customFirstTemplate", "customLastTemplate", "itemsPerPage", "totalItems"], outputs: ["numPages", "pageChanged"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
450
|
-
}
|
|
451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubmissionGridFooterComponent, decorators: [{
|
|
452
|
-
type: Component,
|
|
453
|
-
args: [{ encapsulation: ViewEncapsulation.None, template: "<ng-template #footer let-position=\"position\">\n <thead class=\"formio-grid-footer\" *ngIf=\"position === footerPositions.top\">\n <ng-container [ngTemplateOutlet]=\"defaultFooterTemplate\"></ng-container>\n </thead>\n <tfoot class=\"formio-grid-footer\" *ngIf=\"position === footerPositions.bottom\">\n <ng-container [ngTemplateOutlet]=\"defaultFooterTemplate\"></ng-container>\n </tfoot>\n</ng-template>\n\n<ng-template #defaultFooterTemplate>\n <tr>\n <td *ngIf=\"header\" [colSpan]=\"header.numHeaders\">\n <button *ngIf=\"actionAllowed('submissionCreate') && createText\" class=\"btn btn-primary float-start\" (click)=\"createItem.emit('form')\"><em class=\"fa fa-plus bi bi-plus\"></em> {{ createText }}</button>\n <span class=\"float-end item-counter\"><span class=\"page-num\">{{ body.firstItem }} - {{ body.lastItem }}</span> / {{ body.total }} total</span>\n <pagination [totalItems]=\"body.total\" [itemsPerPage]=\"body.limit\" [(ngModel)]=\"body.skip\" (pageChanged)=\"pageChanged.emit($event)\" [maxSize]=\"size\" class=\"justify-content-center pagination-sm\"></pagination>\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"] }]
|
|
454
|
-
}], ctorParameters: function () { return []; } });
|
|
455
|
-
|
|
456
|
-
var SubmissionComponents = {
|
|
457
|
-
header: SubmissionGridHeaderComponent,
|
|
458
|
-
body: SubmissionGridBodyComponent,
|
|
459
|
-
footer: SubmissionGridFooterComponent
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
class FormioGridComponent {
|
|
463
|
-
alerts;
|
|
464
|
-
resolver;
|
|
465
|
-
ref;
|
|
466
|
-
footerPosition = GridFooterPositions.bottom;
|
|
467
|
-
src;
|
|
468
|
-
items;
|
|
469
|
-
onForm;
|
|
470
|
-
query;
|
|
471
|
-
refresh;
|
|
472
|
-
columns;
|
|
473
|
-
gridType;
|
|
474
|
-
size;
|
|
475
|
-
components;
|
|
476
|
-
formio;
|
|
477
|
-
label;
|
|
478
|
-
createText;
|
|
479
|
-
isActionAllowed;
|
|
480
|
-
select;
|
|
481
|
-
rowSelect;
|
|
482
|
-
rowAction;
|
|
483
|
-
createItem;
|
|
484
|
-
error;
|
|
485
|
-
headerElement;
|
|
486
|
-
bodyElement;
|
|
487
|
-
footerElement;
|
|
488
|
-
page = 0;
|
|
489
|
-
isLoading = false;
|
|
490
|
-
initialized = false;
|
|
491
|
-
header;
|
|
492
|
-
body;
|
|
493
|
-
footer;
|
|
494
|
-
footerPositions = GridFooterPositions;
|
|
495
|
-
constructor(alerts, resolver, ref) {
|
|
496
|
-
this.alerts = alerts;
|
|
497
|
-
this.resolver = resolver;
|
|
498
|
-
this.ref = ref;
|
|
499
|
-
this.select = this.rowSelect = new EventEmitter();
|
|
500
|
-
this.rowAction = new EventEmitter();
|
|
501
|
-
this.createItem = new EventEmitter();
|
|
502
|
-
this.error = new EventEmitter();
|
|
503
|
-
this.isLoading = true;
|
|
504
|
-
}
|
|
505
|
-
createComponent(property, component) {
|
|
506
|
-
const factory = this.resolver.resolveComponentFactory(component);
|
|
507
|
-
const componentRef = property.createComponent(factory);
|
|
508
|
-
return componentRef.instance;
|
|
509
|
-
}
|
|
510
|
-
loadGrid(src) {
|
|
511
|
-
// If no source is provided, then skip.
|
|
512
|
-
if (!src && !this.formio) {
|
|
513
|
-
return;
|
|
514
|
-
}
|
|
515
|
-
// Do not double load.
|
|
516
|
-
if (this.formio && this.src && (src === this.src)) {
|
|
517
|
-
return;
|
|
518
|
-
}
|
|
519
|
-
if (src) {
|
|
520
|
-
this.src = src;
|
|
521
|
-
this.formio = new FormioPromiseService(this.src, { formOnly: true });
|
|
522
|
-
}
|
|
523
|
-
// Load the header.
|
|
524
|
-
this.header.load(this.formio, {}, this.columns)
|
|
525
|
-
.then(() => this.setPage(0))
|
|
526
|
-
.catch(error => this.onError(error));
|
|
527
|
-
}
|
|
528
|
-
ngOnInit() {
|
|
529
|
-
// Create our components.
|
|
530
|
-
const comps = this.components || ((this.gridType === 'form') ? FormComponents : SubmissionComponents);
|
|
531
|
-
this.header = this.createComponent(this.headerElement, comps.header);
|
|
532
|
-
this.header.actionAllowed = this.actionAllowed.bind(this);
|
|
533
|
-
this.header.sort.subscribe(header => this.sortColumn(header));
|
|
534
|
-
this.body = this.createComponent(this.bodyElement, comps.body);
|
|
535
|
-
this.body.header = this.header;
|
|
536
|
-
this.body.actionAllowed = this.actionAllowed.bind(this);
|
|
537
|
-
this.body.rowSelect.subscribe(row => this.rowSelect.emit(row));
|
|
538
|
-
this.body.rowAction.subscribe(action => this.rowAction.emit(action));
|
|
539
|
-
this.footer = this.createComponent(this.footerElement, comps.footer);
|
|
540
|
-
this.footer.header = this.header;
|
|
541
|
-
this.footer.body = this.body;
|
|
542
|
-
this.footer.actionAllowed = this.actionAllowed.bind(this);
|
|
543
|
-
this.footer.createText = this.createText;
|
|
544
|
-
this.footer.size = this.size;
|
|
545
|
-
this.footer.pageChanged.subscribe(page => this.pageChanged(page));
|
|
546
|
-
this.footer.createItem.subscribe(item => this.createItem.emit(item));
|
|
547
|
-
}
|
|
548
|
-
ngOnChanges(changes) {
|
|
549
|
-
if (this.initialized) {
|
|
550
|
-
if ((changes.src && changes.src.currentValue) ||
|
|
551
|
-
(changes.formio && changes.formio.currentValue)) {
|
|
552
|
-
this.loadGrid(changes.src.currentValue);
|
|
553
|
-
}
|
|
554
|
-
if (changes.items && changes.items.currentValue) {
|
|
555
|
-
this.refreshGrid();
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
if (this.footer &&
|
|
559
|
-
(changes.createText && changes.createText.currentValue)) {
|
|
560
|
-
this.footer.createText = changes.createText.currentValue;
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
ngAfterViewInit() {
|
|
564
|
-
this.alerts.setAlerts([]);
|
|
565
|
-
this.query = this.query || {};
|
|
566
|
-
if (this.refresh) {
|
|
567
|
-
this.refresh.subscribe((query) => this.refreshGrid(query));
|
|
568
|
-
}
|
|
569
|
-
this.loadGrid(this.src);
|
|
570
|
-
this.initialized = true;
|
|
571
|
-
this.ref.detectChanges();
|
|
572
|
-
}
|
|
573
|
-
actionAllowed(action) {
|
|
574
|
-
if (this.isActionAllowed) {
|
|
575
|
-
return this.isActionAllowed(action);
|
|
576
|
-
}
|
|
577
|
-
else {
|
|
578
|
-
return true;
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
onError(error) {
|
|
582
|
-
this.isLoading = false;
|
|
583
|
-
this.error.emit(error);
|
|
584
|
-
if (typeof error === 'string' || error.message) {
|
|
585
|
-
this.alerts.setAlert({
|
|
586
|
-
type: 'danger',
|
|
587
|
-
message: error.message || error
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
refreshGrid(query) {
|
|
592
|
-
this.alerts.setAlerts([]);
|
|
593
|
-
this.query = query || this.query;
|
|
594
|
-
if (!this.query.hasOwnProperty('limit')) {
|
|
595
|
-
this.query.limit = 10;
|
|
596
|
-
}
|
|
597
|
-
if (!this.query.hasOwnProperty('skip')) {
|
|
598
|
-
this.query.skip = 0;
|
|
599
|
-
}
|
|
600
|
-
this.isLoading = true;
|
|
601
|
-
this.ref.detectChanges();
|
|
602
|
-
Formio.cache = {};
|
|
603
|
-
let loader = null;
|
|
604
|
-
if (this.items) {
|
|
605
|
-
loader = Promise.resolve(this.body.setRows(this.query, this.items));
|
|
606
|
-
}
|
|
607
|
-
else {
|
|
608
|
-
loader = this.body.load(this.formio, this.query);
|
|
609
|
-
}
|
|
610
|
-
return loader.then(info => {
|
|
611
|
-
this.isLoading = false;
|
|
612
|
-
this.initialized = true;
|
|
613
|
-
this.ref.detectChanges();
|
|
614
|
-
}).catch(error => this.onError(error));
|
|
615
|
-
}
|
|
616
|
-
setPage(num = -1) {
|
|
617
|
-
this.page = num !== -1 ? num : this.page;
|
|
618
|
-
if (!this.query.hasOwnProperty('limit')) {
|
|
619
|
-
this.query.limit = 10;
|
|
620
|
-
}
|
|
621
|
-
if (!this.query.hasOwnProperty('skip')) {
|
|
622
|
-
this.query.skip = 0;
|
|
623
|
-
}
|
|
624
|
-
this.query.skip = this.page * this.query.limit;
|
|
625
|
-
this.refreshGrid();
|
|
626
|
-
}
|
|
627
|
-
sortColumn(header) {
|
|
628
|
-
// Reset all other column sorts.
|
|
629
|
-
each(this.header.headers, (col) => {
|
|
630
|
-
if (col.key !== header.key) {
|
|
631
|
-
col.sort = '';
|
|
632
|
-
}
|
|
633
|
-
});
|
|
634
|
-
switch (header.sort) {
|
|
635
|
-
case 'asc':
|
|
636
|
-
header.sort = SortType.DESC;
|
|
637
|
-
this.query.sort = '-' + header.key;
|
|
638
|
-
break;
|
|
639
|
-
case 'desc':
|
|
640
|
-
header.sort = undefined;
|
|
641
|
-
delete this.query.sort;
|
|
642
|
-
break;
|
|
643
|
-
case undefined:
|
|
644
|
-
header.sort = SortType.ASC;
|
|
645
|
-
this.query.sort = header.key;
|
|
646
|
-
break;
|
|
647
|
-
}
|
|
648
|
-
this.refreshGrid();
|
|
649
|
-
}
|
|
650
|
-
pageChanged(page) {
|
|
651
|
-
this.setPage(page.page - 1);
|
|
652
|
-
}
|
|
653
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormioGridComponent, deps: [{ token: i1$1.FormioAlerts }, { token: i0.ComponentFactoryResolver }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
654
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormioGridComponent, selector: "formio-grid", inputs: { footerPosition: "footerPosition", src: "src", items: "items", onForm: "onForm", query: "query", refresh: "refresh", columns: "columns", gridType: "gridType", size: "size", components: "components", formio: "formio", label: "label", createText: "createText", isActionAllowed: "isActionAllowed" }, outputs: { select: "select", rowSelect: "rowSelect", rowAction: "rowAction", createItem: "createItem", error: "error" }, viewQueries: [{ propertyName: "headerElement", first: true, predicate: ["headerTemplate"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "bodyElement", first: true, predicate: ["bodyTemplate"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "footerElement", first: true, predicate: ["footerTemplate"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template #headerTemplate></ng-template>\n<ng-template #bodyTemplate></ng-template>\n<ng-template #footerTemplate></ng-template>\n<div class=\"formio-grid\">\n <formio-alerts [alerts]=\"alerts\"></formio-alerts>\n <table class=\"table table-bordered table-striped table-hover\">\n <ng-container *ngIf=\"initialized && [footerPositions.top, footerPositions.both].indexOf(footerPosition) !== -1\"\n [ngTemplateOutlet]=\"footer.template\" [ngTemplateOutletContext]=\"{ position: footerPositions.top, label: label }\">\n </ng-container>\n <ng-container *ngIf=\"initialized\"\n [ngTemplateOutlet]=\"header.template\"></ng-container>\n <formio-loader [isLoading]=\"isLoading\"></formio-loader>\n <ng-container *ngIf=\"initialized\" [ngTemplateOutlet]=\"body.template\"></ng-container>\n <ng-container *ngIf=\"initialized && [footerPositions.bottom, footerPositions.both].indexOf(footerPosition) !== -1\"\n [ngTemplateOutlet]=\"footer.template\" [ngTemplateOutletContext]=\"{ position: footerPositions.bottom, label: label }\">\n </ng-container>\n </table>\n</div>\n", styles: [".formio-grid{position:relative;width:100%}.grid-refresh{height:400px;width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i1$1.FormioLoaderComponent, selector: "formio-loader", inputs: ["isLoading"] }, { kind: "component", type: i1$1.FormioAlertsComponent, selector: "formio-alerts", inputs: ["alerts"], outputs: ["focusComponent"] }] });
|
|
655
|
-
}
|
|
656
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormioGridComponent, decorators: [{
|
|
657
|
-
type: Component,
|
|
658
|
-
args: [{ selector: 'formio-grid', template: "<ng-template #headerTemplate></ng-template>\n<ng-template #bodyTemplate></ng-template>\n<ng-template #footerTemplate></ng-template>\n<div class=\"formio-grid\">\n <formio-alerts [alerts]=\"alerts\"></formio-alerts>\n <table class=\"table table-bordered table-striped table-hover\">\n <ng-container *ngIf=\"initialized && [footerPositions.top, footerPositions.both].indexOf(footerPosition) !== -1\"\n [ngTemplateOutlet]=\"footer.template\" [ngTemplateOutletContext]=\"{ position: footerPositions.top, label: label }\">\n </ng-container>\n <ng-container *ngIf=\"initialized\"\n [ngTemplateOutlet]=\"header.template\"></ng-container>\n <formio-loader [isLoading]=\"isLoading\"></formio-loader>\n <ng-container *ngIf=\"initialized\" [ngTemplateOutlet]=\"body.template\"></ng-container>\n <ng-container *ngIf=\"initialized && [footerPositions.bottom, footerPositions.both].indexOf(footerPosition) !== -1\"\n [ngTemplateOutlet]=\"footer.template\" [ngTemplateOutletContext]=\"{ position: footerPositions.bottom, label: label }\">\n </ng-container>\n </table>\n</div>\n", styles: [".formio-grid{position:relative;width:100%}.grid-refresh{height:400px;width:100%}\n"] }]
|
|
659
|
-
}], ctorParameters: function () { return [{ type: i1$1.FormioAlerts }, { type: i0.ComponentFactoryResolver }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { footerPosition: [{
|
|
660
|
-
type: Input
|
|
661
|
-
}], src: [{
|
|
662
|
-
type: Input
|
|
663
|
-
}], items: [{
|
|
664
|
-
type: Input
|
|
665
|
-
}], onForm: [{
|
|
666
|
-
type: Input
|
|
667
|
-
}], query: [{
|
|
668
|
-
type: Input
|
|
669
|
-
}], refresh: [{
|
|
670
|
-
type: Input
|
|
671
|
-
}], columns: [{
|
|
672
|
-
type: Input
|
|
673
|
-
}], gridType: [{
|
|
674
|
-
type: Input
|
|
675
|
-
}], size: [{
|
|
676
|
-
type: Input
|
|
677
|
-
}], components: [{
|
|
678
|
-
type: Input
|
|
679
|
-
}], formio: [{
|
|
680
|
-
type: Input
|
|
681
|
-
}], label: [{
|
|
682
|
-
type: Input
|
|
683
|
-
}], createText: [{
|
|
684
|
-
type: Input
|
|
685
|
-
}], isActionAllowed: [{
|
|
686
|
-
type: Input
|
|
687
|
-
}], select: [{
|
|
688
|
-
type: Output
|
|
689
|
-
}], rowSelect: [{
|
|
690
|
-
type: Output
|
|
691
|
-
}], rowAction: [{
|
|
692
|
-
type: Output
|
|
693
|
-
}], createItem: [{
|
|
694
|
-
type: Output
|
|
695
|
-
}], error: [{
|
|
696
|
-
type: Output
|
|
697
|
-
}], headerElement: [{
|
|
698
|
-
type: ViewChild,
|
|
699
|
-
args: ['headerTemplate', { read: ViewContainerRef, static: true }]
|
|
700
|
-
}], bodyElement: [{
|
|
701
|
-
type: ViewChild,
|
|
702
|
-
args: ['bodyTemplate', { read: ViewContainerRef, static: true }]
|
|
703
|
-
}], footerElement: [{
|
|
704
|
-
type: ViewChild,
|
|
705
|
-
args: ['footerTemplate', { read: ViewContainerRef, static: true }]
|
|
706
|
-
}] } });
|
|
707
|
-
|
|
708
|
-
class FormioGrid {
|
|
709
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormioGrid, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
710
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormioGrid, declarations: [FormioGridComponent,
|
|
711
|
-
FormGridHeaderComponent,
|
|
712
|
-
FormGridBodyComponent,
|
|
713
|
-
FormGridFooterComponent,
|
|
714
|
-
SubmissionGridHeaderComponent,
|
|
715
|
-
SubmissionGridBodyComponent,
|
|
716
|
-
SubmissionGridFooterComponent,
|
|
717
|
-
GridHeaderComponent,
|
|
718
|
-
GridBodyComponent,
|
|
719
|
-
GridFooterComponent,
|
|
720
|
-
TimeSince], imports: [CommonModule,
|
|
721
|
-
FormsModule,
|
|
722
|
-
FormioModule,
|
|
723
|
-
RouterModule, i3.PaginationModule], exports: [FormioGridComponent] });
|
|
724
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormioGrid, providers: [
|
|
725
|
-
FormioAlerts,
|
|
726
|
-
GridService
|
|
727
|
-
], imports: [CommonModule,
|
|
728
|
-
FormsModule,
|
|
729
|
-
FormioModule,
|
|
730
|
-
RouterModule,
|
|
731
|
-
PaginationModule.forRoot()] });
|
|
732
|
-
}
|
|
733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormioGrid, decorators: [{
|
|
734
|
-
type: NgModule,
|
|
735
|
-
args: [{
|
|
736
|
-
imports: [
|
|
737
|
-
CommonModule,
|
|
738
|
-
FormsModule,
|
|
739
|
-
FormioModule,
|
|
740
|
-
RouterModule,
|
|
741
|
-
PaginationModule.forRoot()
|
|
742
|
-
],
|
|
743
|
-
declarations: [
|
|
744
|
-
FormioGridComponent,
|
|
745
|
-
FormGridHeaderComponent,
|
|
746
|
-
FormGridBodyComponent,
|
|
747
|
-
FormGridFooterComponent,
|
|
748
|
-
SubmissionGridHeaderComponent,
|
|
749
|
-
SubmissionGridBodyComponent,
|
|
750
|
-
SubmissionGridFooterComponent,
|
|
751
|
-
GridHeaderComponent,
|
|
752
|
-
GridBodyComponent,
|
|
753
|
-
GridFooterComponent,
|
|
754
|
-
TimeSince
|
|
755
|
-
],
|
|
756
|
-
exports: [
|
|
757
|
-
FormioGridComponent
|
|
758
|
-
],
|
|
759
|
-
providers: [
|
|
760
|
-
FormioAlerts,
|
|
761
|
-
GridService
|
|
762
|
-
]
|
|
763
|
-
}]
|
|
764
|
-
}] });
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* Generated bundle index. Do not edit.
|
|
768
|
-
*/
|
|
769
|
-
|
|
770
|
-
export { FormGridBodyComponent, FormGridFooterComponent, FormGridHeaderComponent, FormioGrid, FormioGridComponent, GridBodyComponent, GridFooterComponent, GridHeaderComponent, GridService, SubmissionGridBodyComponent, SubmissionGridFooterComponent, SubmissionGridHeaderComponent };
|
|
771
|
-
//# sourceMappingURL=formio-angular-grid.mjs.map
|