@formio/angular 5.2.1-rc.3 → 5.2.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/.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 +1012 -0
- package/Dockerfile +20 -0
- package/LICENSE +21 -0
- package/README.md +170 -13
- package/angular.json +51 -0
- package/bs-config.json +11 -0
- package/{FormioBaseComponent.d.ts → dist/angular-formio/FormioBaseComponent.d.ts} +3 -0
- package/dist/angular-formio/FormioBaseComponent.d.ts.map +1 -0
- package/dist/angular-formio/README.md +24 -0
- package/dist/angular-formio/auth/auth.component.d.ts +6 -0
- package/{auth → dist/angular-formio/auth}/auth.component.d.ts.map +1 -1
- package/{auth → dist/angular-formio/auth}/auth.config.d.ts +3 -0
- package/dist/angular-formio/auth/auth.config.d.ts.map +1 -0
- package/dist/angular-formio/auth/auth.module.d.ts +17 -0
- package/dist/angular-formio/auth/auth.module.d.ts.map +1 -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 +3 -0
- package/dist/angular-formio/auth/auth.service.d.ts.map +1 -0
- package/dist/angular-formio/auth/formio-angular-auth.d.ts +6 -0
- package/{auth → dist/angular-formio/auth}/formio-angular-auth.d.ts.map +1 -1
- package/{auth → dist/angular-formio/auth}/index.d.ts +0 -0
- package/{auth → dist/angular-formio/auth}/index.d.ts.map +0 -0
- package/dist/angular-formio/auth/login/login.component.d.ts +9 -0
- package/{auth → dist/angular-formio/auth}/login/login.component.d.ts.map +1 -1
- package/{auth → dist/angular-formio/auth}/package.json +0 -1
- package/{auth → dist/angular-formio/auth}/public_api.d.ts +0 -0
- package/{auth → dist/angular-formio/auth}/public_api.d.ts.map +0 -0
- package/dist/angular-formio/auth/register/register.component.d.ts +9 -0
- package/{auth → dist/angular-formio/auth}/register/register.component.d.ts.map +1 -1
- package/dist/angular-formio/auth/resetpass/resetpass.component.d.ts +9 -0
- package/{auth → dist/angular-formio/auth}/resetpass/resetpass.component.d.ts.map +1 -1
- package/dist/angular-formio/bundles/formio-angular-auth.umd.js +421 -0
- package/dist/angular-formio/bundles/formio-angular-auth.umd.js.map +1 -0
- package/dist/angular-formio/bundles/formio-angular-grid.umd.js +1725 -0
- package/dist/angular-formio/bundles/formio-angular-grid.umd.js.map +1 -0
- package/dist/angular-formio/bundles/formio-angular-manager.umd.js +1648 -0
- package/dist/angular-formio/bundles/formio-angular-manager.umd.js.map +1 -0
- package/dist/angular-formio/bundles/formio-angular-resource.umd.js +720 -0
- package/dist/angular-formio/bundles/formio-angular-resource.umd.js.map +1 -0
- package/dist/angular-formio/bundles/formio-angular.umd.js +1729 -0
- package/dist/angular-formio/bundles/formio-angular.umd.js.map +1 -0
- package/dist/angular-formio/components/alerts/formio.alerts.component.d.ts +12 -0
- package/{components → dist/angular-formio/components}/alerts/formio.alerts.component.d.ts.map +1 -1
- 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/dist/angular-formio/components/alerts/parse-html-content.pipe.d.ts +8 -0
- package/{components → dist/angular-formio/components}/alerts/parse-html-content.pipe.d.ts.map +1 -1
- package/{components → dist/angular-formio/components}/formbuilder/formbuilder.component.d.ts +3 -0
- package/dist/angular-formio/components/formbuilder/formbuilder.component.d.ts.map +1 -0
- package/{components → dist/angular-formio/components}/formio/formio.component.d.ts +3 -0
- package/{components → dist/angular-formio/components}/formio/formio.component.d.ts.map +1 -1
- package/dist/angular-formio/components/loader/formio.loader.component.d.ts +7 -0
- package/dist/angular-formio/components/loader/formio.loader.component.d.ts.map +1 -0
- package/{core.d.ts → dist/angular-formio/core.d.ts} +0 -0
- package/{core.d.ts.map → dist/angular-formio/core.d.ts.map} +0 -0
- package/{custom-component → dist/angular-formio/custom-component}/create-custom-component.d.ts +0 -0
- package/{custom-component → dist/angular-formio/custom-component}/create-custom-component.d.ts.map +0 -0
- package/dist/angular-formio/custom-component/custom-tags.service.d.ts +8 -0
- package/dist/angular-formio/custom-component/custom-tags.service.d.ts.map +1 -0
- package/{custom-component → dist/angular-formio/custom-component}/register-custom-component.d.ts +0 -0
- package/{custom-component → dist/angular-formio/custom-component}/register-custom-component.d.ts.map +0 -0
- package/{elements.common.d.ts → dist/angular-formio/elements.common.d.ts} +0 -0
- package/{elements.common.d.ts.map → dist/angular-formio/elements.common.d.ts.map} +0 -0
- package/dist/angular-formio/esm2015/FormioBaseComponent.js +497 -0
- package/dist/angular-formio/esm2015/auth/auth.component.js +39 -0
- package/dist/angular-formio/esm2015/auth/auth.config.js +15 -0
- package/dist/angular-formio/esm2015/auth/auth.module.js +49 -0
- package/{esm2015 → dist/angular-formio/esm2015}/auth/auth.routes.js +0 -0
- package/dist/angular-formio/esm2015/auth/auth.service.js +159 -0
- package/{esm2015 → dist/angular-formio/esm2015}/auth/formio-angular-auth.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/auth/index.js +0 -0
- package/dist/angular-formio/esm2015/auth/login/login.component.js +24 -0
- package/{esm2015 → dist/angular-formio/esm2015}/auth/public_api.js +0 -0
- package/dist/angular-formio/esm2015/auth/register/register.component.js +24 -0
- package/dist/angular-formio/esm2015/auth/resetpass/resetpass.component.js +24 -0
- package/dist/angular-formio/esm2015/components/alerts/formio.alerts.component.js +49 -0
- package/{esm2015 → dist/angular-formio/esm2015}/components/alerts/formio.alerts.js +0 -0
- package/dist/angular-formio/esm2015/components/alerts/parse-html-content.pipe.js +19 -0
- package/dist/angular-formio/esm2015/components/formbuilder/formbuilder.component.js +203 -0
- package/dist/angular-formio/esm2015/components/formio/formio.component.js +87 -0
- package/dist/angular-formio/esm2015/components/loader/formio.loader.component.js +27 -0
- package/{esm2015 → dist/angular-formio/esm2015}/core.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/custom-component/create-custom-component.js +0 -0
- package/dist/angular-formio/esm2015/custom-component/custom-tags.service.js +16 -0
- package/{esm2015 → dist/angular-formio/esm2015}/custom-component/register-custom-component.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/elements.common.js +0 -0
- package/dist/angular-formio/esm2015/formio-angular.js +5 -0
- package/{esm2015 → dist/angular-formio/esm2015}/formio-promise.service.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/formio.common.js +0 -0
- package/dist/angular-formio/esm2015/formio.config.js +14 -0
- package/dist/angular-formio/esm2015/formio.module.js +61 -0
- package/{esm2015 → dist/angular-formio/esm2015}/formio.service.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/formio.utils.js +0 -0
- package/dist/angular-formio/esm2015/grid/GridBodyComponent.js +86 -0
- package/dist/angular-formio/esm2015/grid/GridFooterComponent.js +41 -0
- package/dist/angular-formio/esm2015/grid/GridHeaderComponent.js +35 -0
- package/dist/angular-formio/esm2015/grid/form/FormGridBody.component.js +130 -0
- package/dist/angular-formio/esm2015/grid/form/FormGridFooter.component.js +118 -0
- package/dist/angular-formio/esm2015/grid/form/FormGridHeader.component.js +65 -0
- package/{esm2015 → dist/angular-formio/esm2015}/grid/form/index.js +0 -0
- package/dist/angular-formio/esm2015/grid/form/time-since.pipe.js +37 -0
- package/dist/angular-formio/esm2015/grid/formio-angular-grid.js +5 -0
- package/dist/angular-formio/esm2015/grid/grid.component.js +302 -0
- package/dist/angular-formio/esm2015/grid/grid.module.js +90 -0
- package/dist/angular-formio/esm2015/grid/grid.service.js +18 -0
- package/{esm2015 → dist/angular-formio/esm2015}/grid/index.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/grid/public_api.js +0 -0
- package/dist/angular-formio/esm2015/grid/submission/SubmissionGridBody.component.js +75 -0
- package/dist/angular-formio/esm2015/grid/submission/SubmissionGridFooter.component.js +107 -0
- package/dist/angular-formio/esm2015/grid/submission/SubmissionGridHeader.component.js +99 -0
- package/{esm2015 → dist/angular-formio/esm2015}/grid/submission/index.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/grid/types/grid-column.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/grid/types/grid-footer-positions.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/grid/types/grid-header.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/index.js +0 -0
- package/dist/angular-formio/esm2015/manager/create/create.component.js +68 -0
- package/dist/angular-formio/esm2015/manager/delete/delete.component.js +56 -0
- package/dist/angular-formio/esm2015/manager/edit/edit.component.js +170 -0
- package/dist/angular-formio/esm2015/manager/form/form.component.js +192 -0
- package/dist/angular-formio/esm2015/manager/form-manager.config.js +15 -0
- package/dist/angular-formio/esm2015/manager/form-manager.module.js +86 -0
- package/{esm2015 → dist/angular-formio/esm2015}/manager/form-manager.routes.js +0 -0
- package/dist/angular-formio/esm2015/manager/form-manager.service.js +178 -0
- package/{esm2015 → dist/angular-formio/esm2015}/manager/formio-angular-manager.js +0 -0
- package/dist/angular-formio/esm2015/manager/index/index.component.js +130 -0
- package/{esm2015 → dist/angular-formio/esm2015}/manager/index.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/manager/public_api.js +0 -0
- package/dist/angular-formio/esm2015/manager/submission/delete/delete.component.js +47 -0
- package/dist/angular-formio/esm2015/manager/submission/edit/edit.component.js +30 -0
- package/dist/angular-formio/esm2015/manager/submission/index/index.component.js +30 -0
- package/dist/angular-formio/esm2015/manager/submission/submission/submission.component.js +75 -0
- package/dist/angular-formio/esm2015/manager/submission/view/view.component.js +24 -0
- package/dist/angular-formio/esm2015/manager/view/view.component.js +57 -0
- package/{esm2015 → dist/angular-formio/esm2015}/public-api.js +0 -0
- package/dist/angular-formio/esm2015/resource/create/create.component.js +61 -0
- package/dist/angular-formio/esm2015/resource/delete/delete.component.js +42 -0
- package/dist/angular-formio/esm2015/resource/edit/edit.component.js +44 -0
- package/{esm2015 → dist/angular-formio/esm2015}/resource/formio-angular-resource.js +0 -0
- package/dist/angular-formio/esm2015/resource/index/index.component.js +72 -0
- package/{esm2015 → dist/angular-formio/esm2015}/resource/index.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/resource/public_api.js +0 -0
- package/dist/angular-formio/esm2015/resource/resource.component.js +83 -0
- package/dist/angular-formio/esm2015/resource/resource.config.js +15 -0
- package/dist/angular-formio/esm2015/resource/resource.module.js +65 -0
- package/{esm2015 → dist/angular-formio/esm2015}/resource/resource.routes.js +0 -0
- package/dist/angular-formio/esm2015/resource/resource.service.js +186 -0
- package/dist/angular-formio/esm2015/resource/resources.service.js +22 -0
- package/dist/angular-formio/esm2015/resource/view/view.component.js +29 -0
- package/{esm2015 → dist/angular-formio/esm2015}/types/alerts-position.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/types/formio-metadata.js +0 -0
- package/{esm2015 → dist/angular-formio/esm2015}/types/formio-submission.js +0 -0
- package/{fesm2015 → dist/angular-formio/fesm2015}/formio-angular-auth.js +108 -45
- package/dist/angular-formio/fesm2015/formio-angular-auth.js.map +1 -0
- package/dist/angular-formio/fesm2015/formio-angular-grid.js +1175 -0
- package/dist/angular-formio/fesm2015/formio-angular-grid.js.map +1 -0
- package/dist/angular-formio/fesm2015/formio-angular-manager.js +1145 -0
- package/dist/angular-formio/fesm2015/formio-angular-manager.js.map +1 -0
- package/dist/angular-formio/fesm2015/formio-angular-resource.js +612 -0
- package/dist/angular-formio/fesm2015/formio-angular-resource.js.map +1 -0
- package/dist/angular-formio/fesm2015/formio-angular.js +1232 -0
- package/dist/angular-formio/fesm2015/formio-angular.js.map +1 -0
- package/dist/angular-formio/formio-angular.d.ts +6 -0
- package/dist/angular-formio/formio-angular.d.ts.map +1 -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.common.d.ts → dist/angular-formio/formio.common.d.ts} +0 -0
- package/{formio.common.d.ts.map → dist/angular-formio/formio.common.d.ts.map} +0 -0
- package/dist/angular-formio/formio.config.d.ts +10 -0
- package/dist/angular-formio/formio.config.d.ts.map +1 -0
- package/dist/angular-formio/formio.module.d.ts +14 -0
- package/{formio.module.d.ts.map → dist/angular-formio/formio.module.d.ts.map} +1 -1
- 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 +3 -0
- package/dist/angular-formio/grid/GridBodyComponent.d.ts.map +1 -0
- package/{grid → dist/angular-formio/grid}/GridFooterComponent.d.ts +3 -0
- package/dist/angular-formio/grid/GridFooterComponent.d.ts.map +1 -0
- package/{grid → dist/angular-formio/grid}/GridHeaderComponent.d.ts +3 -0
- package/dist/angular-formio/grid/GridHeaderComponent.d.ts.map +1 -0
- package/dist/angular-formio/grid/form/FormGridBody.component.d.ts +9 -0
- package/{grid → dist/angular-formio/grid}/form/FormGridBody.component.d.ts.map +1 -1
- package/dist/angular-formio/grid/form/FormGridFooter.component.d.ts +10 -0
- package/{grid → dist/angular-formio/grid}/form/FormGridFooter.component.d.ts.map +1 -1
- package/{grid → dist/angular-formio/grid}/form/FormGridHeader.component.d.ts +3 -0
- package/{grid → dist/angular-formio/grid}/form/FormGridHeader.component.d.ts.map +1 -1
- 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/dist/angular-formio/grid/form/time-since.pipe.d.ts +8 -0
- package/{grid → dist/angular-formio/grid}/form/time-since.pipe.d.ts.map +1 -1
- package/dist/angular-formio/grid/formio-angular-grid.d.ts +6 -0
- package/{grid → dist/angular-formio/grid}/formio-angular-grid.d.ts.map +1 -1
- package/{grid → dist/angular-formio/grid}/grid.component.d.ts +3 -0
- package/dist/angular-formio/grid/grid.component.d.ts.map +1 -0
- package/dist/angular-formio/grid/grid.module.d.ts +23 -0
- package/{grid → dist/angular-formio/grid}/grid.module.d.ts.map +1 -1
- package/dist/angular-formio/grid/grid.service.d.ts +10 -0
- package/dist/angular-formio/grid/grid.service.d.ts.map +1 -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}/package.json +0 -1
- package/{grid → dist/angular-formio/grid}/public_api.d.ts +0 -0
- package/{grid → dist/angular-formio/grid}/public_api.d.ts.map +0 -0
- package/{grid → dist/angular-formio/grid}/submission/SubmissionGridBody.component.d.ts +3 -0
- package/{grid → dist/angular-formio/grid}/submission/SubmissionGridBody.component.d.ts.map +1 -1
- package/dist/angular-formio/grid/submission/SubmissionGridFooter.component.d.ts +10 -0
- package/{grid → dist/angular-formio/grid}/submission/SubmissionGridFooter.component.d.ts.map +1 -1
- package/{grid → dist/angular-formio/grid}/submission/SubmissionGridHeader.component.d.ts +3 -0
- package/dist/angular-formio/grid/submission/SubmissionGridHeader.component.d.ts.map +1 -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/dist/angular-formio/manager/create/create.component.d.ts +9 -0
- package/{manager → dist/angular-formio/manager}/create/create.component.d.ts.map +1 -1
- package/{manager → dist/angular-formio/manager}/delete/delete.component.d.ts +3 -0
- package/dist/angular-formio/manager/delete/delete.component.d.ts.map +1 -0
- package/{manager → dist/angular-formio/manager}/edit/edit.component.d.ts +3 -0
- package/dist/angular-formio/manager/edit/edit.component.d.ts.map +1 -0
- package/{manager → dist/angular-formio/manager}/form/form.component.d.ts +3 -0
- package/dist/angular-formio/manager/form/form.component.d.ts.map +1 -0
- package/{manager → dist/angular-formio/manager}/form-manager.config.d.ts +3 -0
- package/dist/angular-formio/manager/form-manager.config.d.ts.map +1 -0
- package/dist/angular-formio/manager/form-manager.module.d.ts +28 -0
- package/dist/angular-formio/manager/form-manager.module.d.ts.map +1 -0
- package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts +0 -0
- package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts.map +0 -0
- package/{manager → dist/angular-formio/manager}/form-manager.service.d.ts +3 -0
- package/dist/angular-formio/manager/form-manager.service.d.ts.map +1 -0
- package/dist/angular-formio/manager/formio-angular-manager.d.ts +6 -0
- package/{manager → dist/angular-formio/manager}/formio-angular-manager.d.ts.map +1 -1
- package/{manager → dist/angular-formio/manager}/index/index.component.d.ts +3 -0
- package/dist/angular-formio/manager/index/index.component.d.ts.map +1 -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}/package.json +0 -1
- package/{manager → dist/angular-formio/manager}/public_api.d.ts +0 -0
- package/{manager → dist/angular-formio/manager}/public_api.d.ts.map +0 -0
- package/{manager → dist/angular-formio/manager}/submission/delete/delete.component.d.ts +3 -0
- package/{manager → dist/angular-formio/manager}/submission/delete/delete.component.d.ts.map +1 -1
- package/{manager → dist/angular-formio/manager}/submission/edit/edit.component.d.ts +3 -0
- package/{manager → dist/angular-formio/manager}/submission/edit/edit.component.d.ts.map +1 -1
- package/{manager → dist/angular-formio/manager}/submission/index/index.component.d.ts +3 -0
- package/{manager → dist/angular-formio/manager}/submission/index/index.component.d.ts.map +1 -1
- package/{manager → dist/angular-formio/manager}/submission/submission/submission.component.d.ts +3 -0
- package/{manager → dist/angular-formio/manager}/submission/submission/submission.component.d.ts.map +1 -1
- package/dist/angular-formio/manager/submission/view/view.component.d.ts +9 -0
- package/{manager → dist/angular-formio/manager}/submission/view/view.component.d.ts.map +1 -1
- package/{manager → dist/angular-formio/manager}/view/view.component.d.ts +3 -0
- package/dist/angular-formio/manager/view/view.component.d.ts.map +1 -0
- package/dist/angular-formio/package.json +49 -0
- package/{public-api.d.ts → dist/angular-formio/public-api.d.ts} +0 -0
- package/{public-api.d.ts.map → dist/angular-formio/public-api.d.ts.map} +0 -0
- package/{resource → dist/angular-formio/resource}/create/create.component.d.ts +3 -0
- package/dist/angular-formio/resource/create/create.component.d.ts.map +1 -0
- package/{resource → dist/angular-formio/resource}/delete/delete.component.d.ts +3 -0
- package/{resource → dist/angular-formio/resource}/delete/delete.component.d.ts.map +1 -1
- package/{resource → dist/angular-formio/resource}/edit/edit.component.d.ts +3 -0
- package/dist/angular-formio/resource/edit/edit.component.d.ts.map +1 -0
- package/dist/angular-formio/resource/formio-angular-resource.d.ts +6 -0
- package/{resource → dist/angular-formio/resource}/formio-angular-resource.d.ts.map +1 -1
- package/{resource → dist/angular-formio/resource}/index/index.component.d.ts +3 -0
- package/dist/angular-formio/resource/index/index.component.d.ts.map +1 -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}/package.json +0 -1
- package/{resource → dist/angular-formio/resource}/public_api.d.ts +0 -0
- package/{resource → dist/angular-formio/resource}/public_api.d.ts.map +0 -0
- package/{resource → dist/angular-formio/resource}/resource.component.d.ts +3 -0
- package/{resource → dist/angular-formio/resource}/resource.component.d.ts.map +1 -1
- package/{resource → dist/angular-formio/resource}/resource.config.d.ts +3 -0
- package/dist/angular-formio/resource/resource.config.d.ts.map +1 -0
- package/dist/angular-formio/resource/resource.module.d.ts +20 -0
- package/dist/angular-formio/resource/resource.module.d.ts.map +1 -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 +3 -0
- package/dist/angular-formio/resource/resource.service.d.ts.map +1 -0
- package/{resource → dist/angular-formio/resource}/resources.service.d.ts +3 -0
- package/dist/angular-formio/resource/resources.service.d.ts.map +1 -0
- package/{resource → dist/angular-formio/resource}/view/view.component.d.ts +3 -0
- package/{resource → dist/angular-formio/resource}/view/view.component.d.ts.map +1 -1
- 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
- package/package.json +51 -27
- package/projects/angular-formio/README.md +24 -0
- package/projects/angular-formio/auth/package.json +10 -0
- package/projects/angular-formio/auth/src/auth.component.html +12 -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 +201 -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 +8 -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 +8 -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/package.json +11 -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 +23 -0
- package/projects/angular-formio/grid/src/form/FormGridBody.component.scss +4 -0
- package/projects/angular-formio/grid/src/form/FormGridBody.component.ts +15 -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 +57 -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/package.json +15 -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 +107 -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 +26 -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 +195 -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 +84 -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 +10 -0
- package/projects/angular-formio/manager/src/view/view.component.ts +41 -0
- package/projects/angular-formio/ng-package.json +14 -0
- package/projects/angular-formio/package.json +39 -0
- package/projects/angular-formio/resource/package.json +11 -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 +6 -0
- package/projects/angular-formio/resource/src/edit/edit.component.ts +33 -0
- package/projects/angular-formio/resource/src/index/index.component.html +10 -0
- package/projects/angular-formio/resource/src/index/index.component.ts +66 -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 +232 -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 +507 -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 +216 -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/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 +21 -0
- package/projects/angular-formio/src/custom-component/create-custom-component.ts +173 -0
- package/projects/angular-formio/src/custom-component/custom-tags.service.ts +10 -0
- package/projects/angular-formio/src/custom-component/register-custom-component.ts +41 -0
- package/projects/angular-formio/src/elements.common.ts +31 -0
- package/projects/angular-formio/src/formio-promise.service.ts +36 -0
- package/projects/angular-formio/src/formio.common.ts +81 -0
- package/projects/angular-formio/src/formio.config.ts +9 -0
- package/projects/angular-formio/src/formio.module.ts +39 -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 +5 -0
- package/projects/angular-formio/src/public-api.ts +5 -0
- package/projects/angular-formio/src/test.ts +26 -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 +28 -0
- package/tslint.json +140 -0
- package/FormioBaseComponent.d.ts.map +0 -1
- package/FormioBaseComponent.ngfactory.d.ts.map +0 -1
- package/auth/auth.component.d.ts +0 -3
- package/auth/auth.config.d.ts.map +0 -1
- package/auth/auth.module.d.ts +0 -6
- package/auth/auth.module.d.ts.map +0 -1
- package/auth/auth.service.d.ts.map +0 -1
- package/auth/formio-angular-auth.d.ts +0 -5
- package/auth/formio-angular-auth.metadata.json +0 -1
- package/auth/login/login.component.d.ts +0 -6
- package/auth/register/register.component.d.ts +0 -6
- package/auth/resetpass/resetpass.component.d.ts +0 -6
- package/bundles/formio-angular-auth.umd.js +0 -312
- package/bundles/formio-angular-auth.umd.js.map +0 -1
- package/bundles/formio-angular-grid.umd.js +0 -1010
- package/bundles/formio-angular-grid.umd.js.map +0 -1
- package/bundles/formio-angular-manager.umd.js +0 -1122
- package/bundles/formio-angular-manager.umd.js.map +0 -1
- package/bundles/formio-angular-resource.umd.js +0 -556
- package/bundles/formio-angular-resource.umd.js.map +0 -1
- package/bundles/formio-angular.umd.js +0 -1497
- package/bundles/formio-angular.umd.js.map +0 -1
- package/components/alerts/formio.alerts.component.d.ts +0 -9
- package/components/alerts/formio.alerts.component.ngfactory.d.ts.map +0 -1
- package/components/alerts/parse-html-content.pipe.d.ts +0 -5
- package/components/alerts/parse-html-content.pipe.ngfactory.d.ts.map +0 -1
- package/components/formbuilder/formbuilder.component.d.ts.map +0 -1
- package/components/formbuilder/formbuilder.component.ngfactory.d.ts.map +0 -1
- package/components/formio/formio.component.ngfactory.d.ts.map +0 -1
- package/components/loader/formio.loader.component.d.ts +0 -4
- package/components/loader/formio.loader.component.d.ts.map +0 -1
- package/components/loader/formio.loader.component.ngfactory.d.ts.map +0 -1
- package/components/loader/formio.loader.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/custom-component/custom-tags.service.d.ts +0 -5
- package/custom-component/custom-tags.service.d.ts.map +0 -1
- package/custom-component/custom-tags.service.ngfactory.d.ts.map +0 -1
- package/esm2015/FormioBaseComponent.js +0 -456
- package/esm2015/auth/auth.component.js +0 -9
- package/esm2015/auth/auth.config.js +0 -12
- package/esm2015/auth/auth.module.js +0 -34
- package/esm2015/auth/auth.service.js +0 -160
- package/esm2015/auth/login/login.component.js +0 -16
- package/esm2015/auth/register/register.component.js +0 -16
- package/esm2015/auth/resetpass/resetpass.component.js +0 -16
- package/esm2015/components/alerts/formio.alerts.component.js +0 -26
- package/esm2015/components/alerts/parse-html-content.pipe.js +0 -15
- package/esm2015/components/formbuilder/formbuilder.component.js +0 -185
- package/esm2015/components/formio/formio.component.js +0 -39
- package/esm2015/components/loader/formio.loader.component.js +0 -14
- package/esm2015/custom-component/custom-tags.service.js +0 -13
- package/esm2015/formio-angular.js +0 -7
- package/esm2015/formio.config.js +0 -11
- package/esm2015/formio.module.js +0 -42
- package/esm2015/grid/GridBodyComponent.js +0 -76
- package/esm2015/grid/GridFooterComponent.js +0 -26
- package/esm2015/grid/GridHeaderComponent.js +0 -25
- package/esm2015/grid/form/FormGridBody.component.js +0 -16
- package/esm2015/grid/form/FormGridFooter.component.js +0 -24
- package/esm2015/grid/form/FormGridHeader.component.js +0 -24
- package/esm2015/grid/form/time-since.pipe.js +0 -33
- package/esm2015/grid/formio-angular-grid.js +0 -6
- package/esm2015/grid/grid.component.js +0 -211
- package/esm2015/grid/grid.module.js +0 -61
- package/esm2015/grid/grid.service.js +0 -16
- package/esm2015/grid/submission/SubmissionGridBody.component.js +0 -40
- package/esm2015/grid/submission/SubmissionGridFooter.component.js +0 -21
- package/esm2015/grid/submission/SubmissionGridHeader.component.js +0 -58
- package/esm2015/manager/create/create.component.js +0 -13
- package/esm2015/manager/delete/delete.component.js +0 -42
- package/esm2015/manager/edit/edit.component.js +0 -109
- package/esm2015/manager/form/form.component.js +0 -73
- package/esm2015/manager/form-manager.config.js +0 -12
- package/esm2015/manager/form-manager.module.js +0 -56
- package/esm2015/manager/form-manager.service.js +0 -180
- package/esm2015/manager/index/index.component.js +0 -86
- package/esm2015/manager/submission/delete/delete.component.js +0 -32
- package/esm2015/manager/submission/edit/edit.component.js +0 -24
- package/esm2015/manager/submission/index/index.component.js +0 -24
- package/esm2015/manager/submission/submission/submission.component.js +0 -27
- package/esm2015/manager/submission/view/view.component.js +0 -16
- package/esm2015/manager/view/view.component.js +0 -45
- package/esm2015/resource/create/create.component.js +0 -40
- package/esm2015/resource/delete/delete.component.js +0 -29
- package/esm2015/resource/edit/edit.component.js +0 -39
- package/esm2015/resource/index/index.component.js +0 -65
- package/esm2015/resource/resource.component.js +0 -48
- package/esm2015/resource/resource.config.js +0 -12
- package/esm2015/resource/resource.module.js +0 -44
- package/esm2015/resource/resource.service.js +0 -187
- package/esm2015/resource/resources.service.js +0 -22
- package/esm2015/resource/view/view.component.js +0 -24
- package/fesm2015/formio-angular-auth.js.map +0 -1
- package/fesm2015/formio-angular-grid.js +0 -624
- package/fesm2015/formio-angular-grid.js.map +0 -1
- package/fesm2015/formio-angular-manager.js +0 -750
- package/fesm2015/formio-angular-manager.js.map +0 -1
- package/fesm2015/formio-angular-resource.js +0 -515
- package/fesm2015/formio-angular-resource.js.map +0 -1
- package/fesm2015/formio-angular.js +0 -1073
- package/fesm2015/formio-angular.js.map +0 -1
- package/formio-angular.d.ts +0 -7
- package/formio-angular.d.ts.map +0 -1
- package/formio-angular.metadata.json +0 -1
- package/formio.config.d.ts +0 -7
- package/formio.config.d.ts.map +0 -1
- package/formio.config.ngfactory.d.ts.map +0 -1
- package/formio.module.d.ts +0 -3
- package/formio.module.ngfactory.d.ts.map +0 -1
- package/grid/GridBodyComponent.d.ts.map +0 -1
- package/grid/GridBodyComponent.ngfactory.d.ts.map +0 -1
- package/grid/GridFooterComponent.d.ts.map +0 -1
- package/grid/GridFooterComponent.ngfactory.d.ts.map +0 -1
- package/grid/GridHeaderComponent.d.ts.map +0 -1
- package/grid/GridHeaderComponent.ngfactory.d.ts.map +0 -1
- package/grid/form/FormGridBody.component.d.ts +0 -6
- package/grid/form/FormGridBody.component.ngfactory.d.ts.map +0 -1
- package/grid/form/FormGridBody.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/grid/form/FormGridFooter.component.d.ts +0 -7
- package/grid/form/FormGridFooter.component.ngfactory.d.ts.map +0 -1
- package/grid/form/FormGridHeader.component.ngfactory.d.ts.map +0 -1
- package/grid/form/time-since.pipe.d.ts +0 -5
- package/grid/form/time-since.pipe.ngfactory.d.ts.map +0 -1
- package/grid/formio-angular-grid.d.ts +0 -6
- package/grid/formio-angular-grid.metadata.json +0 -1
- package/grid/grid.component.d.ts.map +0 -1
- package/grid/grid.component.ngfactory.d.ts.map +0 -1
- package/grid/grid.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/grid/grid.footer.scss.ngstyle.d.ts.map +0 -1
- package/grid/grid.module.d.ts +0 -3
- package/grid/grid.module.ngfactory.d.ts.map +0 -1
- package/grid/grid.service.d.ts +0 -7
- package/grid/grid.service.d.ts.map +0 -1
- package/grid/grid.service.ngfactory.d.ts.map +0 -1
- package/grid/submission/SubmissionGridBody.component.ngfactory.d.ts.map +0 -1
- package/grid/submission/SubmissionGridFooter.component.d.ts +0 -7
- package/grid/submission/SubmissionGridFooter.component.ngfactory.d.ts.map +0 -1
- package/grid/submission/SubmissionGridHeader.component.d.ts.map +0 -1
- package/grid/submission/SubmissionGridHeader.component.ngfactory.d.ts.map +0 -1
- package/manager/create/create.component.d.ts +0 -6
- package/manager/delete/delete.component.d.ts.map +0 -1
- package/manager/edit/edit.component.d.ts.map +0 -1
- package/manager/form/form.component.d.ts.map +0 -1
- package/manager/form-manager.config.d.ts.map +0 -1
- package/manager/form-manager.module.d.ts +0 -6
- package/manager/form-manager.module.d.ts.map +0 -1
- package/manager/form-manager.service.d.ts.map +0 -1
- package/manager/formio-angular-manager.d.ts +0 -5
- package/manager/formio-angular-manager.metadata.json +0 -1
- package/manager/index/index.component.d.ts.map +0 -1
- package/manager/submission/view/view.component.d.ts +0 -6
- package/manager/view/view.component.d.ts.map +0 -1
- package/resource/create/create.component.d.ts.map +0 -1
- package/resource/edit/edit.component.d.ts.map +0 -1
- package/resource/formio-angular-resource.d.ts +0 -5
- package/resource/formio-angular-resource.metadata.json +0 -1
- package/resource/index/index.component.d.ts.map +0 -1
- package/resource/resource.config.d.ts.map +0 -1
- package/resource/resource.module.d.ts +0 -6
- package/resource/resource.module.d.ts.map +0 -1
- package/resource/resource.service.d.ts.map +0 -1
- package/resource/resources.service.d.ts.map +0 -1
|
@@ -0,0 +1,1725 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), require('@formio/angular'), require('lodash'), require('formiojs'), require('ngx-bootstrap/pagination')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@formio/angular/grid', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/router', '@formio/angular', 'lodash', 'formiojs', 'ngx-bootstrap/pagination'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.formio = global.formio || {}, global.formio.angular = global.formio.angular || {}, global.formio.angular.grid = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.router, global.formio.angular, global._, global.formiojs, global["ngx-bootstrap/pagination"]));
|
|
5
|
+
})(this, (function (exports, i0, i1, i3, i2, i1$1, lodash, formiojs, i2$1) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
28
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
29
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
30
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
31
|
+
|
|
32
|
+
var GridFooterPositions;
|
|
33
|
+
(function (GridFooterPositions) {
|
|
34
|
+
GridFooterPositions[GridFooterPositions["bottom"] = 0] = "bottom";
|
|
35
|
+
GridFooterPositions[GridFooterPositions["top"] = 1] = "top";
|
|
36
|
+
GridFooterPositions[GridFooterPositions["both"] = 2] = "both";
|
|
37
|
+
})(GridFooterPositions || (GridFooterPositions = {}));
|
|
38
|
+
|
|
39
|
+
/*! *****************************************************************************
|
|
40
|
+
Copyright (c) Microsoft Corporation.
|
|
41
|
+
|
|
42
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
43
|
+
purpose with or without fee is hereby granted.
|
|
44
|
+
|
|
45
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
46
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
47
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
48
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
49
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
50
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
51
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
52
|
+
***************************************************************************** */
|
|
53
|
+
/* global Reflect, Promise */
|
|
54
|
+
var extendStatics = function (d, b) {
|
|
55
|
+
extendStatics = Object.setPrototypeOf ||
|
|
56
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
57
|
+
function (d, b) { for (var p in b)
|
|
58
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
59
|
+
d[p] = b[p]; };
|
|
60
|
+
return extendStatics(d, b);
|
|
61
|
+
};
|
|
62
|
+
function __extends(d, b) {
|
|
63
|
+
if (typeof b !== "function" && b !== null)
|
|
64
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
65
|
+
extendStatics(d, b);
|
|
66
|
+
function __() { this.constructor = d; }
|
|
67
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
68
|
+
}
|
|
69
|
+
var __assign = function () {
|
|
70
|
+
__assign = Object.assign || function __assign(t) {
|
|
71
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
72
|
+
s = arguments[i];
|
|
73
|
+
for (var p in s)
|
|
74
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
75
|
+
t[p] = s[p];
|
|
76
|
+
}
|
|
77
|
+
return t;
|
|
78
|
+
};
|
|
79
|
+
return __assign.apply(this, arguments);
|
|
80
|
+
};
|
|
81
|
+
function __rest(s, e) {
|
|
82
|
+
var t = {};
|
|
83
|
+
for (var p in s)
|
|
84
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
85
|
+
t[p] = s[p];
|
|
86
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
87
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
88
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
89
|
+
t[p[i]] = s[p[i]];
|
|
90
|
+
}
|
|
91
|
+
return t;
|
|
92
|
+
}
|
|
93
|
+
function __decorate(decorators, target, key, desc) {
|
|
94
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
95
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
96
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
97
|
+
else
|
|
98
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
99
|
+
if (d = decorators[i])
|
|
100
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
101
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
102
|
+
}
|
|
103
|
+
function __param(paramIndex, decorator) {
|
|
104
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
105
|
+
}
|
|
106
|
+
function __metadata(metadataKey, metadataValue) {
|
|
107
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
108
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
109
|
+
}
|
|
110
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
111
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
112
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
113
|
+
function fulfilled(value) { try {
|
|
114
|
+
step(generator.next(value));
|
|
115
|
+
}
|
|
116
|
+
catch (e) {
|
|
117
|
+
reject(e);
|
|
118
|
+
} }
|
|
119
|
+
function rejected(value) { try {
|
|
120
|
+
step(generator["throw"](value));
|
|
121
|
+
}
|
|
122
|
+
catch (e) {
|
|
123
|
+
reject(e);
|
|
124
|
+
} }
|
|
125
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
126
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function __generator(thisArg, body) {
|
|
130
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
131
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
132
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
133
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
134
|
+
function step(op) {
|
|
135
|
+
if (f)
|
|
136
|
+
throw new TypeError("Generator is already executing.");
|
|
137
|
+
while (_)
|
|
138
|
+
try {
|
|
139
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
140
|
+
return t;
|
|
141
|
+
if (y = 0, t)
|
|
142
|
+
op = [op[0] & 2, t.value];
|
|
143
|
+
switch (op[0]) {
|
|
144
|
+
case 0:
|
|
145
|
+
case 1:
|
|
146
|
+
t = op;
|
|
147
|
+
break;
|
|
148
|
+
case 4:
|
|
149
|
+
_.label++;
|
|
150
|
+
return { value: op[1], done: false };
|
|
151
|
+
case 5:
|
|
152
|
+
_.label++;
|
|
153
|
+
y = op[1];
|
|
154
|
+
op = [0];
|
|
155
|
+
continue;
|
|
156
|
+
case 7:
|
|
157
|
+
op = _.ops.pop();
|
|
158
|
+
_.trys.pop();
|
|
159
|
+
continue;
|
|
160
|
+
default:
|
|
161
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
162
|
+
_ = 0;
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
166
|
+
_.label = op[1];
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
170
|
+
_.label = t[1];
|
|
171
|
+
t = op;
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
if (t && _.label < t[2]) {
|
|
175
|
+
_.label = t[2];
|
|
176
|
+
_.ops.push(op);
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
if (t[2])
|
|
180
|
+
_.ops.pop();
|
|
181
|
+
_.trys.pop();
|
|
182
|
+
continue;
|
|
183
|
+
}
|
|
184
|
+
op = body.call(thisArg, _);
|
|
185
|
+
}
|
|
186
|
+
catch (e) {
|
|
187
|
+
op = [6, e];
|
|
188
|
+
y = 0;
|
|
189
|
+
}
|
|
190
|
+
finally {
|
|
191
|
+
f = t = 0;
|
|
192
|
+
}
|
|
193
|
+
if (op[0] & 5)
|
|
194
|
+
throw op[1];
|
|
195
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
199
|
+
if (k2 === undefined)
|
|
200
|
+
k2 = k;
|
|
201
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
202
|
+
}) : (function (o, m, k, k2) {
|
|
203
|
+
if (k2 === undefined)
|
|
204
|
+
k2 = k;
|
|
205
|
+
o[k2] = m[k];
|
|
206
|
+
});
|
|
207
|
+
function __exportStar(m, o) {
|
|
208
|
+
for (var p in m)
|
|
209
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
210
|
+
__createBinding(o, m, p);
|
|
211
|
+
}
|
|
212
|
+
function __values(o) {
|
|
213
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
214
|
+
if (m)
|
|
215
|
+
return m.call(o);
|
|
216
|
+
if (o && typeof o.length === "number")
|
|
217
|
+
return {
|
|
218
|
+
next: function () {
|
|
219
|
+
if (o && i >= o.length)
|
|
220
|
+
o = void 0;
|
|
221
|
+
return { value: o && o[i++], done: !o };
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
225
|
+
}
|
|
226
|
+
function __read(o, n) {
|
|
227
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
228
|
+
if (!m)
|
|
229
|
+
return o;
|
|
230
|
+
var i = m.call(o), r, ar = [], e;
|
|
231
|
+
try {
|
|
232
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
233
|
+
ar.push(r.value);
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
e = { error: error };
|
|
237
|
+
}
|
|
238
|
+
finally {
|
|
239
|
+
try {
|
|
240
|
+
if (r && !r.done && (m = i["return"]))
|
|
241
|
+
m.call(i);
|
|
242
|
+
}
|
|
243
|
+
finally {
|
|
244
|
+
if (e)
|
|
245
|
+
throw e.error;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
return ar;
|
|
249
|
+
}
|
|
250
|
+
/** @deprecated */
|
|
251
|
+
function __spread() {
|
|
252
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
253
|
+
ar = ar.concat(__read(arguments[i]));
|
|
254
|
+
return ar;
|
|
255
|
+
}
|
|
256
|
+
/** @deprecated */
|
|
257
|
+
function __spreadArrays() {
|
|
258
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
259
|
+
s += arguments[i].length;
|
|
260
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
261
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
262
|
+
r[k] = a[j];
|
|
263
|
+
return r;
|
|
264
|
+
}
|
|
265
|
+
function __spreadArray(to, from, pack) {
|
|
266
|
+
if (pack || arguments.length === 2)
|
|
267
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
268
|
+
if (ar || !(i in from)) {
|
|
269
|
+
if (!ar)
|
|
270
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
271
|
+
ar[i] = from[i];
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
275
|
+
}
|
|
276
|
+
function __await(v) {
|
|
277
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
278
|
+
}
|
|
279
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
280
|
+
if (!Symbol.asyncIterator)
|
|
281
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
282
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
283
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
284
|
+
function verb(n) { if (g[n])
|
|
285
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
286
|
+
function resume(n, v) { try {
|
|
287
|
+
step(g[n](v));
|
|
288
|
+
}
|
|
289
|
+
catch (e) {
|
|
290
|
+
settle(q[0][3], e);
|
|
291
|
+
} }
|
|
292
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
293
|
+
function fulfill(value) { resume("next", value); }
|
|
294
|
+
function reject(value) { resume("throw", value); }
|
|
295
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
296
|
+
resume(q[0][0], q[0][1]); }
|
|
297
|
+
}
|
|
298
|
+
function __asyncDelegator(o) {
|
|
299
|
+
var i, p;
|
|
300
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
301
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
302
|
+
}
|
|
303
|
+
function __asyncValues(o) {
|
|
304
|
+
if (!Symbol.asyncIterator)
|
|
305
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
306
|
+
var m = o[Symbol.asyncIterator], i;
|
|
307
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
308
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
309
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
310
|
+
}
|
|
311
|
+
function __makeTemplateObject(cooked, raw) {
|
|
312
|
+
if (Object.defineProperty) {
|
|
313
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
314
|
+
}
|
|
315
|
+
else {
|
|
316
|
+
cooked.raw = raw;
|
|
317
|
+
}
|
|
318
|
+
return cooked;
|
|
319
|
+
}
|
|
320
|
+
;
|
|
321
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
322
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
323
|
+
}) : function (o, v) {
|
|
324
|
+
o["default"] = v;
|
|
325
|
+
};
|
|
326
|
+
function __importStar(mod) {
|
|
327
|
+
if (mod && mod.__esModule)
|
|
328
|
+
return mod;
|
|
329
|
+
var result = {};
|
|
330
|
+
if (mod != null)
|
|
331
|
+
for (var k in mod)
|
|
332
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
333
|
+
__createBinding(result, mod, k);
|
|
334
|
+
__setModuleDefault(result, mod);
|
|
335
|
+
return result;
|
|
336
|
+
}
|
|
337
|
+
function __importDefault(mod) {
|
|
338
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
339
|
+
}
|
|
340
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
341
|
+
if (kind === "a" && !f)
|
|
342
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
343
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
344
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
345
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
346
|
+
}
|
|
347
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
348
|
+
if (kind === "m")
|
|
349
|
+
throw new TypeError("Private method is not writable");
|
|
350
|
+
if (kind === "a" && !f)
|
|
351
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
352
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
353
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
354
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
var GridHeaderComponent = /** @class */ (function () {
|
|
358
|
+
function GridHeaderComponent() {
|
|
359
|
+
this.headers = [];
|
|
360
|
+
this.sort = new i0.EventEmitter();
|
|
361
|
+
}
|
|
362
|
+
Object.defineProperty(GridHeaderComponent.prototype, "numHeaders", {
|
|
363
|
+
get: function () {
|
|
364
|
+
return this.headers.length;
|
|
365
|
+
},
|
|
366
|
+
enumerable: false,
|
|
367
|
+
configurable: true
|
|
368
|
+
});
|
|
369
|
+
GridHeaderComponent.prototype.load = function (formio, query, columns) {
|
|
370
|
+
return Promise.resolve([]);
|
|
371
|
+
};
|
|
372
|
+
return GridHeaderComponent;
|
|
373
|
+
}());
|
|
374
|
+
GridHeaderComponent.ɵfac = function GridHeaderComponent_Factory(t) { return new (t || GridHeaderComponent)(); };
|
|
375
|
+
GridHeaderComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: GridHeaderComponent, selectors: [["ng-component"]], viewQuery: function GridHeaderComponent_Query(rf, ctx) {
|
|
376
|
+
if (rf & 1) {
|
|
377
|
+
i0__namespace.ɵɵviewQuery(i0.TemplateRef, 7);
|
|
378
|
+
}
|
|
379
|
+
if (rf & 2) {
|
|
380
|
+
var _t = void 0;
|
|
381
|
+
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.template = _t.first);
|
|
382
|
+
}
|
|
383
|
+
}, inputs: { actionAllowed: "actionAllowed" }, outputs: { sort: "sort" }, decls: 0, vars: 0, template: function GridHeaderComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
384
|
+
(function () {
|
|
385
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(GridHeaderComponent, [{
|
|
386
|
+
type: i0.Component,
|
|
387
|
+
args: [{
|
|
388
|
+
template: ''
|
|
389
|
+
}]
|
|
390
|
+
}], function () { return []; }, { actionAllowed: [{
|
|
391
|
+
type: i0.Input
|
|
392
|
+
}], sort: [{
|
|
393
|
+
type: i0.Output
|
|
394
|
+
}], template: [{
|
|
395
|
+
type: i0.ViewChild,
|
|
396
|
+
args: [i0.TemplateRef, { static: true }]
|
|
397
|
+
}] });
|
|
398
|
+
})();
|
|
399
|
+
|
|
400
|
+
var SortType;
|
|
401
|
+
(function (SortType) {
|
|
402
|
+
SortType["ASC"] = "asc";
|
|
403
|
+
SortType["DESC"] = "desc";
|
|
404
|
+
})(SortType || (SortType = {}));
|
|
405
|
+
|
|
406
|
+
var _c0$3 = function (a0, a1) { return { "glyphicon-triangle-top fa-caret-up": a0, "glyphicon-triangle-bottom fa-caret-down": a1 }; };
|
|
407
|
+
function FormGridHeaderComponent_ng_template_0_span_7_Template(rf, ctx) {
|
|
408
|
+
if (rf & 1) {
|
|
409
|
+
i0__namespace.ɵɵelement(0, "span", 5);
|
|
410
|
+
}
|
|
411
|
+
if (rf & 2) {
|
|
412
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
413
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(1, _c0$3, ctx_r1.header.sort === "asc", ctx_r1.header.sort === "desc"));
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
function FormGridHeaderComponent_ng_template_0_Template(rf, ctx) {
|
|
417
|
+
if (rf & 1) {
|
|
418
|
+
var _r3_1 = i0__namespace.ɵɵgetCurrentView();
|
|
419
|
+
i0__namespace.ɵɵelementStart(0, "thead");
|
|
420
|
+
i0__namespace.ɵɵelementStart(1, "tr");
|
|
421
|
+
i0__namespace.ɵɵelementStart(2, "th");
|
|
422
|
+
i0__namespace.ɵɵelementStart(3, "div", 0);
|
|
423
|
+
i0__namespace.ɵɵelementStart(4, "div", 1);
|
|
424
|
+
i0__namespace.ɵɵelementStart(5, "a", 2);
|
|
425
|
+
i0__namespace.ɵɵlistener("click", function FormGridHeaderComponent_ng_template_0_Template_a_click_5_listener() { i0__namespace.ɵɵrestoreView(_r3_1); var ctx_r2 = i0__namespace.ɵɵnextContext(); return ctx_r2.sort.emit(ctx_r2.header); });
|
|
426
|
+
i0__namespace.ɵɵtext(6);
|
|
427
|
+
i0__namespace.ɵɵtemplate(7, FormGridHeaderComponent_ng_template_0_span_7_Template, 1, 4, "span", 3);
|
|
428
|
+
i0__namespace.ɵɵelementEnd();
|
|
429
|
+
i0__namespace.ɵɵelementEnd();
|
|
430
|
+
i0__namespace.ɵɵelementStart(8, "div", 4);
|
|
431
|
+
i0__namespace.ɵɵtext(9, " Operations ");
|
|
432
|
+
i0__namespace.ɵɵelementEnd();
|
|
433
|
+
i0__namespace.ɵɵelementEnd();
|
|
434
|
+
i0__namespace.ɵɵelementEnd();
|
|
435
|
+
i0__namespace.ɵɵelementEnd();
|
|
436
|
+
i0__namespace.ɵɵelementEnd();
|
|
437
|
+
}
|
|
438
|
+
if (rf & 2) {
|
|
439
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
440
|
+
i0__namespace.ɵɵadvance(6);
|
|
441
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.header.label, "\u00A0");
|
|
442
|
+
i0__namespace.ɵɵadvance(1);
|
|
443
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.header.sort);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
var FormGridHeaderComponent = /** @class */ (function (_super) {
|
|
447
|
+
__extends(FormGridHeaderComponent, _super);
|
|
448
|
+
function FormGridHeaderComponent() {
|
|
449
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
450
|
+
}
|
|
451
|
+
FormGridHeaderComponent.prototype.load = function (formio) {
|
|
452
|
+
this.header = {
|
|
453
|
+
label: 'Title',
|
|
454
|
+
key: 'title',
|
|
455
|
+
sort: SortType.ASC
|
|
456
|
+
};
|
|
457
|
+
this.headers = [this.header];
|
|
458
|
+
return Promise.resolve(this.headers);
|
|
459
|
+
};
|
|
460
|
+
Object.defineProperty(FormGridHeaderComponent.prototype, "numHeaders", {
|
|
461
|
+
get: function () {
|
|
462
|
+
return 2;
|
|
463
|
+
},
|
|
464
|
+
enumerable: false,
|
|
465
|
+
configurable: true
|
|
466
|
+
});
|
|
467
|
+
return FormGridHeaderComponent;
|
|
468
|
+
}(GridHeaderComponent));
|
|
469
|
+
FormGridHeaderComponent.ɵfac = /*@__PURE__*/ function () { var ɵFormGridHeaderComponent_BaseFactory; return function FormGridHeaderComponent_Factory(t) { return (ɵFormGridHeaderComponent_BaseFactory || (ɵFormGridHeaderComponent_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(FormGridHeaderComponent)))(t || FormGridHeaderComponent); }; }();
|
|
470
|
+
FormGridHeaderComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormGridHeaderComponent, selectors: [["form-grid-header"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 0, consts: [[1, "row"], [1, "col-sm-8"], [3, "click"], ["class", "glyphicon fa", 3, "ngClass", 4, "ngIf"], [1, "col-sm-4"], [1, "glyphicon", "fa", 3, "ngClass"]], template: function FormGridHeaderComponent_Template(rf, ctx) {
|
|
471
|
+
if (rf & 1) {
|
|
472
|
+
i0__namespace.ɵɵtemplate(0, FormGridHeaderComponent_ng_template_0_Template, 10, 2, "ng-template");
|
|
473
|
+
}
|
|
474
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgClass], encapsulation: 2 });
|
|
475
|
+
(function () {
|
|
476
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormGridHeaderComponent, [{
|
|
477
|
+
type: i0.Component,
|
|
478
|
+
args: [{
|
|
479
|
+
selector: 'form-grid-header',
|
|
480
|
+
templateUrl: './FormGridHeader.component.html'
|
|
481
|
+
}]
|
|
482
|
+
}], null, null);
|
|
483
|
+
})();
|
|
484
|
+
|
|
485
|
+
var GridService = /** @class */ (function () {
|
|
486
|
+
function GridService() {
|
|
487
|
+
}
|
|
488
|
+
GridService.prototype.setRows = function (rows) {
|
|
489
|
+
this.rows = rows;
|
|
490
|
+
};
|
|
491
|
+
GridService.prototype.getFormsPerPage = function () {
|
|
492
|
+
var _a;
|
|
493
|
+
return (_a = this.rows) === null || _a === void 0 ? void 0 : _a.length;
|
|
494
|
+
};
|
|
495
|
+
return GridService;
|
|
496
|
+
}());
|
|
497
|
+
GridService.ɵfac = function GridService_Factory(t) { return new (t || GridService)(); };
|
|
498
|
+
GridService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: GridService, factory: GridService.ɵfac });
|
|
499
|
+
(function () {
|
|
500
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(GridService, [{
|
|
501
|
+
type: i0.Injectable
|
|
502
|
+
}], function () { return []; }, null);
|
|
503
|
+
})();
|
|
504
|
+
|
|
505
|
+
var GridBodyComponent = /** @class */ (function () {
|
|
506
|
+
function GridBodyComponent(service) {
|
|
507
|
+
this.service = service;
|
|
508
|
+
this.firstItem = 0;
|
|
509
|
+
this.lastItem = 0;
|
|
510
|
+
this.skip = 0;
|
|
511
|
+
this.limit = 0;
|
|
512
|
+
this.total = 0;
|
|
513
|
+
this.rowSelect = new i0.EventEmitter();
|
|
514
|
+
this.rowAction = new i0.EventEmitter();
|
|
515
|
+
this.loading = true;
|
|
516
|
+
}
|
|
517
|
+
GridBodyComponent.prototype.load = function (formio, query) {
|
|
518
|
+
return formio.loadForm(query);
|
|
519
|
+
};
|
|
520
|
+
GridBodyComponent.prototype.onRowSelect = function (event, row) {
|
|
521
|
+
event.preventDefault();
|
|
522
|
+
this.rowSelect.emit(row);
|
|
523
|
+
};
|
|
524
|
+
GridBodyComponent.prototype.onRowAction = function (event, row, action) {
|
|
525
|
+
event.preventDefault();
|
|
526
|
+
this.rowAction.emit({ row: row, action: action });
|
|
527
|
+
};
|
|
528
|
+
/**
|
|
529
|
+
* Set the rows for this Grid body.
|
|
530
|
+
*
|
|
531
|
+
* @param query
|
|
532
|
+
* @param items
|
|
533
|
+
* @return any
|
|
534
|
+
*/
|
|
535
|
+
GridBodyComponent.prototype.setRows = function (query, items) {
|
|
536
|
+
var _this = this;
|
|
537
|
+
this.rows = [];
|
|
538
|
+
if (typeof items !== 'object') {
|
|
539
|
+
this.firstItem = 0;
|
|
540
|
+
this.lastItem = 0;
|
|
541
|
+
this.total = 0;
|
|
542
|
+
this.skip = 0;
|
|
543
|
+
this.loading = false;
|
|
544
|
+
this.service.setRows(this.rows);
|
|
545
|
+
return this.rows;
|
|
546
|
+
}
|
|
547
|
+
this.firstItem = query.skip + 1;
|
|
548
|
+
this.lastItem = this.firstItem + items.length - 1;
|
|
549
|
+
if (this.lastItem === 0) {
|
|
550
|
+
this.firstItem = 0;
|
|
551
|
+
}
|
|
552
|
+
this.total = items.serverCount;
|
|
553
|
+
this.limit = query.limit;
|
|
554
|
+
this.skip = Math.floor(items.skip / query.limit) + 1;
|
|
555
|
+
this.loading = false;
|
|
556
|
+
lodash.each(items, function (item) {
|
|
557
|
+
_this.rows.push(lodash.clone(item));
|
|
558
|
+
});
|
|
559
|
+
this.service.setRows(this.rows);
|
|
560
|
+
return this.rows;
|
|
561
|
+
};
|
|
562
|
+
return GridBodyComponent;
|
|
563
|
+
}());
|
|
564
|
+
GridBodyComponent.ɵfac = function GridBodyComponent_Factory(t) { return new (t || GridBodyComponent)(i0__namespace.ɵɵdirectiveInject(GridService)); };
|
|
565
|
+
GridBodyComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: GridBodyComponent, selectors: [["ng-component"]], viewQuery: function GridBodyComponent_Query(rf, ctx) {
|
|
566
|
+
if (rf & 1) {
|
|
567
|
+
i0__namespace.ɵɵviewQuery(i0.TemplateRef, 7);
|
|
568
|
+
}
|
|
569
|
+
if (rf & 2) {
|
|
570
|
+
var _t = void 0;
|
|
571
|
+
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.template = _t.first);
|
|
572
|
+
}
|
|
573
|
+
}, inputs: { header: "header", actionAllowed: "actionAllowed" }, outputs: { rowSelect: "rowSelect", rowAction: "rowAction" }, decls: 0, vars: 0, template: function GridBodyComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
574
|
+
(function () {
|
|
575
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(GridBodyComponent, [{
|
|
576
|
+
type: i0.Component,
|
|
577
|
+
args: [{
|
|
578
|
+
template: ''
|
|
579
|
+
}]
|
|
580
|
+
}], function () { return [{ type: GridService }]; }, { header: [{
|
|
581
|
+
type: i0.Input
|
|
582
|
+
}], actionAllowed: [{
|
|
583
|
+
type: i0.Input
|
|
584
|
+
}], rowSelect: [{
|
|
585
|
+
type: i0.Output
|
|
586
|
+
}], rowAction: [{
|
|
587
|
+
type: i0.Output
|
|
588
|
+
}], template: [{
|
|
589
|
+
type: i0.ViewChild,
|
|
590
|
+
args: [i0.TemplateRef, { static: true }]
|
|
591
|
+
}] });
|
|
592
|
+
})();
|
|
593
|
+
|
|
594
|
+
var TimeSince = /** @class */ (function () {
|
|
595
|
+
function TimeSince() {
|
|
596
|
+
}
|
|
597
|
+
TimeSince.prototype.transform = function (date) {
|
|
598
|
+
var elapsed = (new Date().getTime() - new Date(date).getTime()) / 1000;
|
|
599
|
+
var interval;
|
|
600
|
+
if (interval >= 1) {
|
|
601
|
+
return interval + ' year' + (interval > 1 ? 's' : '');
|
|
602
|
+
}
|
|
603
|
+
interval = Math.floor(elapsed / 2592000);
|
|
604
|
+
if (interval >= 1) {
|
|
605
|
+
return interval + ' month' + (interval > 1 ? 's' : '');
|
|
606
|
+
}
|
|
607
|
+
interval = Math.floor(elapsed / 86400);
|
|
608
|
+
if (interval >= 1) {
|
|
609
|
+
return interval + ' day' + (interval > 1 ? 's' : '');
|
|
610
|
+
}
|
|
611
|
+
interval = Math.floor(elapsed / 3600);
|
|
612
|
+
if (interval >= 1) {
|
|
613
|
+
return interval + ' hour' + (interval > 1 ? 's' : '');
|
|
614
|
+
}
|
|
615
|
+
interval = Math.floor(elapsed / 60);
|
|
616
|
+
if (interval >= 1) {
|
|
617
|
+
return interval + ' minute' + (interval > 1 ? 's' : '');
|
|
618
|
+
}
|
|
619
|
+
return Math.floor(elapsed) + ' second' + (elapsed > 1 ? 's' : '');
|
|
620
|
+
};
|
|
621
|
+
return TimeSince;
|
|
622
|
+
}());
|
|
623
|
+
TimeSince.ɵfac = function TimeSince_Factory(t) { return new (t || TimeSince)(); };
|
|
624
|
+
TimeSince.ɵpipe = /*@__PURE__*/ i0__namespace.ɵɵdefinePipe({ name: "timeSince", type: TimeSince, pure: true });
|
|
625
|
+
(function () {
|
|
626
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TimeSince, [{
|
|
627
|
+
type: i0.Pipe,
|
|
628
|
+
args: [{
|
|
629
|
+
name: 'timeSince'
|
|
630
|
+
}]
|
|
631
|
+
}], null, null);
|
|
632
|
+
})();
|
|
633
|
+
|
|
634
|
+
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_11_Template(rf, ctx) {
|
|
635
|
+
if (rf & 1) {
|
|
636
|
+
var _r11_1 = i0__namespace.ɵɵgetCurrentView();
|
|
637
|
+
i0__namespace.ɵɵelementStart(0, "button", 10);
|
|
638
|
+
i0__namespace.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_11_Template_button_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r11_1); var form_r3 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r9 = i0__namespace.ɵɵnextContext(3); return ctx_r9.onRowAction($event, form_r3, "view"); });
|
|
639
|
+
i0__namespace.ɵɵelement(1, "span", 11);
|
|
640
|
+
i0__namespace.ɵɵtext(2, " Enter Data");
|
|
641
|
+
i0__namespace.ɵɵelementEnd();
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_13_Template(rf, ctx) {
|
|
645
|
+
if (rf & 1) {
|
|
646
|
+
var _r14_1 = i0__namespace.ɵɵgetCurrentView();
|
|
647
|
+
i0__namespace.ɵɵelementStart(0, "button", 12);
|
|
648
|
+
i0__namespace.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_13_Template_button_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var form_r3 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r12 = i0__namespace.ɵɵnextContext(3); return ctx_r12.onRowAction($event, form_r3, "submission"); });
|
|
649
|
+
i0__namespace.ɵɵelement(1, "span", 13);
|
|
650
|
+
i0__namespace.ɵɵtext(2, " View Data");
|
|
651
|
+
i0__namespace.ɵɵelementEnd();
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_15_Template(rf, ctx) {
|
|
655
|
+
if (rf & 1) {
|
|
656
|
+
var _r17_1 = i0__namespace.ɵɵgetCurrentView();
|
|
657
|
+
i0__namespace.ɵɵelementStart(0, "button", 12);
|
|
658
|
+
i0__namespace.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_15_Template_button_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r17_1); var form_r3 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r15 = i0__namespace.ɵɵnextContext(3); return ctx_r15.onRowAction($event, form_r3, "edit"); });
|
|
659
|
+
i0__namespace.ɵɵelement(1, "span", 14);
|
|
660
|
+
i0__namespace.ɵɵtext(2, " Edit Form");
|
|
661
|
+
i0__namespace.ɵɵelementEnd();
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_17_Template(rf, ctx) {
|
|
665
|
+
if (rf & 1) {
|
|
666
|
+
var _r20_1 = i0__namespace.ɵɵgetCurrentView();
|
|
667
|
+
i0__namespace.ɵɵelementStart(0, "button", 12);
|
|
668
|
+
i0__namespace.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_17_Template_button_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r20_1); var form_r3 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r18 = i0__namespace.ɵɵnextContext(3); return ctx_r18.onRowAction($event, form_r3, "permissions"); });
|
|
669
|
+
i0__namespace.ɵɵelement(1, "span", 15);
|
|
670
|
+
i0__namespace.ɵɵtext(2, " Permissions");
|
|
671
|
+
i0__namespace.ɵɵelementEnd();
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_19_Template(rf, ctx) {
|
|
675
|
+
if (rf & 1) {
|
|
676
|
+
var _r23_1 = i0__namespace.ɵɵgetCurrentView();
|
|
677
|
+
i0__namespace.ɵɵelementStart(0, "button", 16);
|
|
678
|
+
i0__namespace.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_19_Template_button_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r23_1); var form_r3 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r21 = i0__namespace.ɵɵnextContext(3); return ctx_r21.onRowAction($event, form_r3, "delete"); });
|
|
679
|
+
i0__namespace.ɵɵelement(1, "span", 17);
|
|
680
|
+
i0__namespace.ɵɵelementEnd();
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_Template(rf, ctx) {
|
|
684
|
+
if (rf & 1) {
|
|
685
|
+
var _r25_1 = i0__namespace.ɵɵgetCurrentView();
|
|
686
|
+
i0__namespace.ɵɵelementStart(0, "tr");
|
|
687
|
+
i0__namespace.ɵɵelementStart(1, "td");
|
|
688
|
+
i0__namespace.ɵɵelementStart(2, "div", 2);
|
|
689
|
+
i0__namespace.ɵɵelementStart(3, "div", 3);
|
|
690
|
+
i0__namespace.ɵɵelementStart(4, "a", 4);
|
|
691
|
+
i0__namespace.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_Template_a_click_4_listener($event) { var restoredCtx = i0__namespace.ɵɵrestoreView(_r25_1); var form_r3 = restoredCtx.$implicit; var ctx_r24 = i0__namespace.ɵɵnextContext(3); return ctx_r24.onRowSelect($event, form_r3); });
|
|
692
|
+
i0__namespace.ɵɵelementStart(5, "h5");
|
|
693
|
+
i0__namespace.ɵɵtext(6);
|
|
694
|
+
i0__namespace.ɵɵelementEnd();
|
|
695
|
+
i0__namespace.ɵɵelementEnd();
|
|
696
|
+
i0__namespace.ɵɵelementStart(7, "div", 5);
|
|
697
|
+
i0__namespace.ɵɵtext(8);
|
|
698
|
+
i0__namespace.ɵɵpipe(9, "timeSince");
|
|
699
|
+
i0__namespace.ɵɵelementEnd();
|
|
700
|
+
i0__namespace.ɵɵelementEnd();
|
|
701
|
+
i0__namespace.ɵɵelementStart(10, "div", 6);
|
|
702
|
+
i0__namespace.ɵɵtemplate(11, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_11_Template, 3, 0, "button", 7);
|
|
703
|
+
i0__namespace.ɵɵtext(12, "\u00A0 ");
|
|
704
|
+
i0__namespace.ɵɵtemplate(13, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_13_Template, 3, 0, "button", 8);
|
|
705
|
+
i0__namespace.ɵɵtext(14, "\u00A0 ");
|
|
706
|
+
i0__namespace.ɵɵtemplate(15, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_15_Template, 3, 0, "button", 8);
|
|
707
|
+
i0__namespace.ɵɵtext(16, "\u00A0 ");
|
|
708
|
+
i0__namespace.ɵɵtemplate(17, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_17_Template, 3, 0, "button", 8);
|
|
709
|
+
i0__namespace.ɵɵtext(18, "\u00A0 ");
|
|
710
|
+
i0__namespace.ɵɵtemplate(19, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_19_Template, 2, 0, "button", 9);
|
|
711
|
+
i0__namespace.ɵɵelementEnd();
|
|
712
|
+
i0__namespace.ɵɵelementEnd();
|
|
713
|
+
i0__namespace.ɵɵelementEnd();
|
|
714
|
+
i0__namespace.ɵɵelementEnd();
|
|
715
|
+
}
|
|
716
|
+
if (rf & 2) {
|
|
717
|
+
var form_r3 = ctx.$implicit;
|
|
718
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext(3);
|
|
719
|
+
i0__namespace.ɵɵadvance(4);
|
|
720
|
+
i0__namespace.ɵɵpropertyInterpolate1("routerLink", "", form_r3._id, "/view");
|
|
721
|
+
i0__namespace.ɵɵadvance(2);
|
|
722
|
+
i0__namespace.ɵɵtextInterpolate(form_r3.title);
|
|
723
|
+
i0__namespace.ɵɵadvance(2);
|
|
724
|
+
i0__namespace.ɵɵtextInterpolate1(" Updated ", i0__namespace.ɵɵpipeBind1(9, 8, form_r3.modified), " ago ");
|
|
725
|
+
i0__namespace.ɵɵadvance(3);
|
|
726
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formView"));
|
|
727
|
+
i0__namespace.ɵɵadvance(2);
|
|
728
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formSubmission"));
|
|
729
|
+
i0__namespace.ɵɵadvance(2);
|
|
730
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formEdit"));
|
|
731
|
+
i0__namespace.ɵɵadvance(2);
|
|
732
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formPermission"));
|
|
733
|
+
i0__namespace.ɵɵadvance(2);
|
|
734
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formDelete"));
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
function FormGridBodyComponent_ng_template_0_tbody_0_Template(rf, ctx) {
|
|
738
|
+
if (rf & 1) {
|
|
739
|
+
i0__namespace.ɵɵelementStart(0, "tbody");
|
|
740
|
+
i0__namespace.ɵɵtemplate(1, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_Template, 20, 10, "tr", 1);
|
|
741
|
+
i0__namespace.ɵɵelementEnd();
|
|
742
|
+
}
|
|
743
|
+
if (rf & 2) {
|
|
744
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
745
|
+
i0__namespace.ɵɵadvance(1);
|
|
746
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.rows);
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
function FormGridBodyComponent_ng_template_0_Template(rf, ctx) {
|
|
750
|
+
if (rf & 1) {
|
|
751
|
+
i0__namespace.ɵɵtemplate(0, FormGridBodyComponent_ng_template_0_tbody_0_Template, 2, 1, "tbody", 0);
|
|
752
|
+
}
|
|
753
|
+
if (rf & 2) {
|
|
754
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
755
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.rows);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
var FormGridBodyComponent = /** @class */ (function (_super) {
|
|
759
|
+
__extends(FormGridBodyComponent, _super);
|
|
760
|
+
function FormGridBodyComponent() {
|
|
761
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
762
|
+
}
|
|
763
|
+
FormGridBodyComponent.prototype.load = function (formio, query) {
|
|
764
|
+
var _this = this;
|
|
765
|
+
query = query || {};
|
|
766
|
+
return formio.loadForms({ params: query }).then(function (forms) { return _this.setRows(query, forms); });
|
|
767
|
+
};
|
|
768
|
+
return FormGridBodyComponent;
|
|
769
|
+
}(GridBodyComponent));
|
|
770
|
+
FormGridBodyComponent.ɵfac = /*@__PURE__*/ function () { var ɵFormGridBodyComponent_BaseFactory; return function FormGridBodyComponent_Factory(t) { return (ɵFormGridBodyComponent_BaseFactory || (ɵFormGridBodyComponent_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(FormGridBodyComponent)))(t || FormGridBodyComponent); }; }();
|
|
771
|
+
FormGridBodyComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormGridBodyComponent, selectors: [["form-grid-body"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 0, consts: [[4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "row"], [1, "col-sm-8"], [3, "routerLink", "click"], [1, "form-updated", "small", "text-muted"], [1, "col-sm-4"], ["class", "btn btn-outline-secondary btn-sm form-btn form-btn-use", 3, "click", 4, "ngIf"], ["class", "btn btn-outline-secondary btn-sm form-btn", 3, "click", 4, "ngIf"], ["class", "btn btn-danger btn-sm form-btn form-btn-delete", "title", "Delete form", 3, "click", 4, "ngIf"], [1, "btn", "btn-outline-secondary", "btn-sm", "form-btn", "form-btn-use", 3, "click"], [1, "fa", "fa-pencil"], [1, "btn", "btn-outline-secondary", "btn-sm", "form-btn", 3, "click"], [1, "fa", "fa-list-alt"], [1, "fa", "fa-edit"], [1, "fa", "fa-lock"], ["title", "Delete form", 1, "btn", "btn-danger", "btn-sm", "form-btn", "form-btn-delete", 3, "click"], [1, "fa", "fa-trash"]], template: function FormGridBodyComponent_Template(rf, ctx) {
|
|
772
|
+
if (rf & 1) {
|
|
773
|
+
i0__namespace.ɵɵtemplate(0, FormGridBodyComponent_ng_template_0_Template, 1, 1, "ng-template");
|
|
774
|
+
}
|
|
775
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RouterLinkWithHref], pipes: [TimeSince], styles: [".form-btn[_ngcontent-%COMP%]{font-size:.75rem;margin:2px 0}"] });
|
|
776
|
+
(function () {
|
|
777
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormGridBodyComponent, [{
|
|
778
|
+
type: i0.Component,
|
|
779
|
+
args: [{
|
|
780
|
+
selector: 'form-grid-body',
|
|
781
|
+
styleUrls: ['./FormGridBody.component.scss'],
|
|
782
|
+
templateUrl: './FormGridBody.component.html'
|
|
783
|
+
}]
|
|
784
|
+
}], null, null);
|
|
785
|
+
})();
|
|
786
|
+
|
|
787
|
+
var GridFooterComponent = /** @class */ (function () {
|
|
788
|
+
function GridFooterComponent() {
|
|
789
|
+
this.footerPositions = GridFooterPositions;
|
|
790
|
+
this.pageChanged = new i0.EventEmitter();
|
|
791
|
+
this.createItem = new i0.EventEmitter();
|
|
792
|
+
}
|
|
793
|
+
return GridFooterComponent;
|
|
794
|
+
}());
|
|
795
|
+
GridFooterComponent.ɵfac = function GridFooterComponent_Factory(t) { return new (t || GridFooterComponent)(); };
|
|
796
|
+
GridFooterComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: GridFooterComponent, selectors: [["ng-component"]], viewQuery: function GridFooterComponent_Query(rf, ctx) {
|
|
797
|
+
if (rf & 1) {
|
|
798
|
+
i0__namespace.ɵɵviewQuery(i0.TemplateRef, 7);
|
|
799
|
+
}
|
|
800
|
+
if (rf & 2) {
|
|
801
|
+
var _t = void 0;
|
|
802
|
+
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.template = _t.first);
|
|
803
|
+
}
|
|
804
|
+
}, inputs: { header: "header", body: "body", createText: "createText", size: "size", actionAllowed: "actionAllowed" }, outputs: { pageChanged: "pageChanged", createItem: "createItem" }, decls: 0, vars: 0, template: function GridFooterComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
805
|
+
(function () {
|
|
806
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(GridFooterComponent, [{
|
|
807
|
+
type: i0.Component,
|
|
808
|
+
args: [{
|
|
809
|
+
template: ''
|
|
810
|
+
}]
|
|
811
|
+
}], function () { return []; }, { header: [{
|
|
812
|
+
type: i0.Input
|
|
813
|
+
}], body: [{
|
|
814
|
+
type: i0.Input
|
|
815
|
+
}], createText: [{
|
|
816
|
+
type: i0.Input
|
|
817
|
+
}], size: [{
|
|
818
|
+
type: i0.Input
|
|
819
|
+
}], actionAllowed: [{
|
|
820
|
+
type: i0.Input
|
|
821
|
+
}], pageChanged: [{
|
|
822
|
+
type: i0.Output
|
|
823
|
+
}], createItem: [{
|
|
824
|
+
type: i0.Output
|
|
825
|
+
}], template: [{
|
|
826
|
+
type: i0.ViewChild,
|
|
827
|
+
args: [i0.TemplateRef, { static: true }]
|
|
828
|
+
}] });
|
|
829
|
+
})();
|
|
830
|
+
|
|
831
|
+
var _c0$2 = function (a0) { return { label: a0 }; };
|
|
832
|
+
function FormGridFooterComponent_ng_template_0_thead_0_Template(rf, ctx) {
|
|
833
|
+
if (rf & 1) {
|
|
834
|
+
i0__namespace.ɵɵelementStart(0, "thead", 3);
|
|
835
|
+
i0__namespace.ɵɵelementContainer(1, 4);
|
|
836
|
+
i0__namespace.ɵɵelementEnd();
|
|
837
|
+
}
|
|
838
|
+
if (rf & 2) {
|
|
839
|
+
var label_r5 = i0__namespace.ɵɵnextContext().label;
|
|
840
|
+
i0__namespace.ɵɵnextContext();
|
|
841
|
+
var _r2 = i0__namespace.ɵɵreference(3);
|
|
842
|
+
i0__namespace.ɵɵadvance(1);
|
|
843
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$2, label_r5));
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
function FormGridFooterComponent_ng_template_0_tfoot_1_Template(rf, ctx) {
|
|
847
|
+
if (rf & 1) {
|
|
848
|
+
i0__namespace.ɵɵelementStart(0, "tfoot", 3);
|
|
849
|
+
i0__namespace.ɵɵelementContainer(1, 4);
|
|
850
|
+
i0__namespace.ɵɵelementEnd();
|
|
851
|
+
}
|
|
852
|
+
if (rf & 2) {
|
|
853
|
+
var label_r5 = i0__namespace.ɵɵnextContext().label;
|
|
854
|
+
i0__namespace.ɵɵnextContext();
|
|
855
|
+
var _r2 = i0__namespace.ɵɵreference(3);
|
|
856
|
+
i0__namespace.ɵɵadvance(1);
|
|
857
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$2, label_r5));
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
function FormGridFooterComponent_ng_template_0_Template(rf, ctx) {
|
|
861
|
+
if (rf & 1) {
|
|
862
|
+
i0__namespace.ɵɵtemplate(0, FormGridFooterComponent_ng_template_0_thead_0_Template, 2, 4, "thead", 2);
|
|
863
|
+
i0__namespace.ɵɵtemplate(1, FormGridFooterComponent_ng_template_0_tfoot_1_Template, 2, 4, "tfoot", 2);
|
|
864
|
+
}
|
|
865
|
+
if (rf & 2) {
|
|
866
|
+
var position_r4 = ctx.position;
|
|
867
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
868
|
+
i0__namespace.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.top);
|
|
869
|
+
i0__namespace.ɵɵadvance(1);
|
|
870
|
+
i0__namespace.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.bottom);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
function FormGridFooterComponent_ng_template_2_td_1_button_1_Template(rf, ctx) {
|
|
874
|
+
if (rf & 1) {
|
|
875
|
+
var _r14_1 = i0__namespace.ɵɵgetCurrentView();
|
|
876
|
+
i0__namespace.ɵɵelementStart(0, "button", 12);
|
|
877
|
+
i0__namespace.ɵɵlistener("click", function FormGridFooterComponent_ng_template_2_td_1_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(3); return ctx_r13.createItem.emit("form"); });
|
|
878
|
+
i0__namespace.ɵɵelement(1, "i", 13);
|
|
879
|
+
i0__namespace.ɵɵtext(2);
|
|
880
|
+
i0__namespace.ɵɵelementEnd();
|
|
881
|
+
}
|
|
882
|
+
if (rf & 2) {
|
|
883
|
+
var ctx_r12 = i0__namespace.ɵɵnextContext(3);
|
|
884
|
+
i0__namespace.ɵɵadvance(2);
|
|
885
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r12.createText, "");
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
function FormGridFooterComponent_ng_template_2_td_1_Template(rf, ctx) {
|
|
889
|
+
if (rf & 1) {
|
|
890
|
+
var _r16_1 = i0__namespace.ɵɵgetCurrentView();
|
|
891
|
+
i0__namespace.ɵɵelementStart(0, "td", 6);
|
|
892
|
+
i0__namespace.ɵɵtemplate(1, FormGridFooterComponent_ng_template_2_td_1_button_1_Template, 3, 1, "button", 7);
|
|
893
|
+
i0__namespace.ɵɵelementStart(2, "span", 8);
|
|
894
|
+
i0__namespace.ɵɵelementStart(3, "span", 9);
|
|
895
|
+
i0__namespace.ɵɵtext(4);
|
|
896
|
+
i0__namespace.ɵɵelementEnd();
|
|
897
|
+
i0__namespace.ɵɵtext(5);
|
|
898
|
+
i0__namespace.ɵɵelementEnd();
|
|
899
|
+
i0__namespace.ɵɵelementStart(6, "span", 10);
|
|
900
|
+
i0__namespace.ɵɵelementStart(7, "pagination", 11);
|
|
901
|
+
i0__namespace.ɵɵlistener("ngModelChange", function FormGridFooterComponent_ng_template_2_td_1_Template_pagination_ngModelChange_7_listener($event) { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r15 = i0__namespace.ɵɵnextContext(2); return ctx_r15.body.skip = $event; })("pageChanged", function FormGridFooterComponent_ng_template_2_td_1_Template_pagination_pageChanged_7_listener($event) { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r17 = i0__namespace.ɵɵnextContext(2); return ctx_r17.pageChanged.emit($event); });
|
|
902
|
+
i0__namespace.ɵɵelementEnd();
|
|
903
|
+
i0__namespace.ɵɵelementEnd();
|
|
904
|
+
i0__namespace.ɵɵelementEnd();
|
|
905
|
+
}
|
|
906
|
+
if (rf & 2) {
|
|
907
|
+
var label_r10 = i0__namespace.ɵɵnextContext().label;
|
|
908
|
+
var ctx_r11 = i0__namespace.ɵɵnextContext();
|
|
909
|
+
i0__namespace.ɵɵproperty("colSpan", ctx_r11.header.numHeaders);
|
|
910
|
+
i0__namespace.ɵɵadvance(1);
|
|
911
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r11.actionAllowed("formCreate"));
|
|
912
|
+
i0__namespace.ɵɵadvance(3);
|
|
913
|
+
i0__namespace.ɵɵtextInterpolate2("", ctx_r11.body.firstItem, " - ", ctx_r11.body.lastItem, "");
|
|
914
|
+
i0__namespace.ɵɵadvance(1);
|
|
915
|
+
i0__namespace.ɵɵtextInterpolate1(" / ", ctx_r11.body.total, " total");
|
|
916
|
+
i0__namespace.ɵɵadvance(1);
|
|
917
|
+
i0__namespace.ɵɵattribute("aria-label", label_r10);
|
|
918
|
+
i0__namespace.ɵɵadvance(1);
|
|
919
|
+
i0__namespace.ɵɵproperty("totalItems", ctx_r11.body.total)("itemsPerPage", ctx_r11.body.limit)("ngModel", ctx_r11.body.skip)("maxSize", ctx_r11.size);
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
function FormGridFooterComponent_ng_template_2_Template(rf, ctx) {
|
|
923
|
+
if (rf & 1) {
|
|
924
|
+
i0__namespace.ɵɵelementStart(0, "tr");
|
|
925
|
+
i0__namespace.ɵɵtemplate(1, FormGridFooterComponent_ng_template_2_td_1_Template, 8, 10, "td", 5);
|
|
926
|
+
i0__namespace.ɵɵelementEnd();
|
|
927
|
+
}
|
|
928
|
+
if (rf & 2) {
|
|
929
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
930
|
+
i0__namespace.ɵɵadvance(1);
|
|
931
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r3.header);
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
var FormGridFooterComponent = /** @class */ (function (_super) {
|
|
935
|
+
__extends(FormGridFooterComponent, _super);
|
|
936
|
+
function FormGridFooterComponent() {
|
|
937
|
+
return _super.call(this) || this;
|
|
938
|
+
}
|
|
939
|
+
FormGridFooterComponent.prototype.ngOnInit = function () {
|
|
940
|
+
if (!this.createText) {
|
|
941
|
+
this.createText = 'Create Form';
|
|
942
|
+
}
|
|
943
|
+
if (!this.size) {
|
|
944
|
+
this.size = 7;
|
|
945
|
+
}
|
|
946
|
+
};
|
|
947
|
+
return FormGridFooterComponent;
|
|
948
|
+
}(GridFooterComponent));
|
|
949
|
+
FormGridFooterComponent.ɵfac = function FormGridFooterComponent_Factory(t) { return new (t || FormGridFooterComponent)(); };
|
|
950
|
+
FormGridFooterComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormGridFooterComponent, selectors: [["ng-component"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 4, vars: 0, consts: [["footer", ""], ["defaultFooterTemplate", ""], ["class", "formio-grid-footer", 4, "ngIf"], [1, "formio-grid-footer"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "colSpan", 4, "ngIf"], [3, "colSpan"], ["class", "btn btn-primary form-btn-use pull-left float-left", 3, "click", 4, "ngIf"], [1, "pull-right", "float-right", "item-counter"], [1, "page-num"], ["role", "navigation"], [1, "justify-content-center", "pagination-sm", 3, "totalItems", "itemsPerPage", "ngModel", "maxSize", "ngModelChange", "pageChanged"], [1, "btn", "btn-primary", "form-btn-use", "pull-left", "float-left", 3, "click"], [1, "glyphicon", "glyphicon-plus", "fa", "fa-plus"]], template: function FormGridFooterComponent_Template(rf, ctx) {
|
|
951
|
+
if (rf & 1) {
|
|
952
|
+
i0__namespace.ɵɵtemplate(0, FormGridFooterComponent_ng_template_0_Template, 2, 2, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
|
|
953
|
+
i0__namespace.ɵɵtemplate(2, FormGridFooterComponent_ng_template_2_Template, 2, 1, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
|
|
954
|
+
}
|
|
955
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgTemplateOutlet, i2__namespace$1.PaginationComponent, i3__namespace.NgControlStatus, i3__namespace.NgModel], styles: ["tfoot.formio-grid-footer td{padding:.3rem}tfoot.formio-grid-footer .page-num{font-size:1.4em}tfoot.formio-grid-footer ul.pagination{margin-top:5px;margin-bottom:0}\n"], encapsulation: 2 });
|
|
956
|
+
(function () {
|
|
957
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormGridFooterComponent, [{
|
|
958
|
+
type: i0.Component,
|
|
959
|
+
args: [{
|
|
960
|
+
templateUrl: './FormGridFooter.component.html',
|
|
961
|
+
styleUrls: ['../grid.footer.scss'],
|
|
962
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
963
|
+
}]
|
|
964
|
+
}], function () { return []; }, null);
|
|
965
|
+
})();
|
|
966
|
+
|
|
967
|
+
var FormComponents = {
|
|
968
|
+
header: FormGridHeaderComponent,
|
|
969
|
+
body: FormGridBodyComponent,
|
|
970
|
+
footer: FormGridFooterComponent
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
var _c0$1 = function (a0, a1) { return { "glyphicon-triangle-top": a0, "glyphicon-triangle-bottom": a1 }; };
|
|
974
|
+
function SubmissionGridHeaderComponent_ng_template_0_th_2_span_3_Template(rf, ctx) {
|
|
975
|
+
if (rf & 1) {
|
|
976
|
+
i0__namespace.ɵɵelement(0, "span", 3);
|
|
977
|
+
}
|
|
978
|
+
if (rf & 2) {
|
|
979
|
+
var header_r2 = i0__namespace.ɵɵnextContext().$implicit;
|
|
980
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(1, _c0$1, header_r2.sort === "asc", header_r2.sort === "desc"));
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
function SubmissionGridHeaderComponent_ng_template_0_th_2_Template(rf, ctx) {
|
|
984
|
+
if (rf & 1) {
|
|
985
|
+
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
986
|
+
i0__namespace.ɵɵelementStart(0, "th");
|
|
987
|
+
i0__namespace.ɵɵelementStart(1, "a", 1);
|
|
988
|
+
i0__namespace.ɵɵlistener("click", function SubmissionGridHeaderComponent_ng_template_0_th_2_Template_a_click_1_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(_r6_1); var header_r2 = restoredCtx.$implicit; var ctx_r5 = i0__namespace.ɵɵnextContext(2); return ctx_r5.sort.emit(header_r2); });
|
|
989
|
+
i0__namespace.ɵɵtext(2);
|
|
990
|
+
i0__namespace.ɵɵtemplate(3, SubmissionGridHeaderComponent_ng_template_0_th_2_span_3_Template, 1, 4, "span", 2);
|
|
991
|
+
i0__namespace.ɵɵelementEnd();
|
|
992
|
+
i0__namespace.ɵɵelementEnd();
|
|
993
|
+
}
|
|
994
|
+
if (rf & 2) {
|
|
995
|
+
var header_r2 = ctx.$implicit;
|
|
996
|
+
i0__namespace.ɵɵadvance(2);
|
|
997
|
+
i0__namespace.ɵɵtextInterpolate1(" ", header_r2.label, "\u00A0");
|
|
998
|
+
i0__namespace.ɵɵadvance(1);
|
|
999
|
+
i0__namespace.ɵɵproperty("ngIf", header_r2.sort);
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
function SubmissionGridHeaderComponent_ng_template_0_Template(rf, ctx) {
|
|
1003
|
+
if (rf & 1) {
|
|
1004
|
+
i0__namespace.ɵɵelementStart(0, "thead");
|
|
1005
|
+
i0__namespace.ɵɵelementStart(1, "tr");
|
|
1006
|
+
i0__namespace.ɵɵtemplate(2, SubmissionGridHeaderComponent_ng_template_0_th_2_Template, 4, 2, "th", 0);
|
|
1007
|
+
i0__namespace.ɵɵelementEnd();
|
|
1008
|
+
i0__namespace.ɵɵelementEnd();
|
|
1009
|
+
}
|
|
1010
|
+
if (rf & 2) {
|
|
1011
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
1012
|
+
i0__namespace.ɵɵadvance(2);
|
|
1013
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.headers);
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
var SubmissionGridHeaderComponent = /** @class */ (function (_super) {
|
|
1017
|
+
__extends(SubmissionGridHeaderComponent, _super);
|
|
1018
|
+
function SubmissionGridHeaderComponent() {
|
|
1019
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1020
|
+
}
|
|
1021
|
+
SubmissionGridHeaderComponent.prototype.load = function (formio, query, columns) {
|
|
1022
|
+
var _this = this;
|
|
1023
|
+
query = query || {};
|
|
1024
|
+
return formio.loadForm({ params: query }).then(function (form) {
|
|
1025
|
+
_this.headers = [];
|
|
1026
|
+
_this.formComponents = new Map();
|
|
1027
|
+
_this.setComponents(form.components);
|
|
1028
|
+
columns ? columns.forEach(function (column) {
|
|
1029
|
+
_this.setHeader(_this.getHeaderForColumn(column, _this.formComponents.get(column.path)));
|
|
1030
|
+
}) : _this.setComponentsHeaders(_this.formComponents);
|
|
1031
|
+
return _this.headers;
|
|
1032
|
+
});
|
|
1033
|
+
};
|
|
1034
|
+
SubmissionGridHeaderComponent.prototype.setHeader = function (header) {
|
|
1035
|
+
this.headers.push(header);
|
|
1036
|
+
};
|
|
1037
|
+
SubmissionGridHeaderComponent.prototype.getHeaderForColumn = function (column, component, sort) {
|
|
1038
|
+
return {
|
|
1039
|
+
label: column.label,
|
|
1040
|
+
key: column.path,
|
|
1041
|
+
sort: sort,
|
|
1042
|
+
component: component ? formiojs.Components.create(component, null, null, true) : undefined,
|
|
1043
|
+
renderCell: column ? column.renderCell : undefined
|
|
1044
|
+
};
|
|
1045
|
+
};
|
|
1046
|
+
SubmissionGridHeaderComponent.prototype.getHeaderForComponent = function (component, path, sort) {
|
|
1047
|
+
return {
|
|
1048
|
+
label: component.label,
|
|
1049
|
+
key: path,
|
|
1050
|
+
sort: sort,
|
|
1051
|
+
component: component ? formiojs.Components.create(component, null, null, true) : undefined,
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
// Set headers from components in case if columns are not provided
|
|
1055
|
+
SubmissionGridHeaderComponent.prototype.setComponentsHeaders = function (components, sort) {
|
|
1056
|
+
var _this = this;
|
|
1057
|
+
components.forEach(function (component, path) {
|
|
1058
|
+
if (component.input &&
|
|
1059
|
+
(!component.hasOwnProperty('tableView') || component.tableView)) {
|
|
1060
|
+
_this.setHeader(_this.getHeaderForComponent(component, path, sort));
|
|
1061
|
+
}
|
|
1062
|
+
});
|
|
1063
|
+
};
|
|
1064
|
+
// Map components
|
|
1065
|
+
SubmissionGridHeaderComponent.prototype.setComponents = function (components) {
|
|
1066
|
+
var _this = this;
|
|
1067
|
+
formiojs.Utils.eachComponent(components, function (component, newPath) {
|
|
1068
|
+
_this.formComponents.set("data." + newPath, component);
|
|
1069
|
+
});
|
|
1070
|
+
};
|
|
1071
|
+
return SubmissionGridHeaderComponent;
|
|
1072
|
+
}(GridHeaderComponent));
|
|
1073
|
+
SubmissionGridHeaderComponent.ɵfac = /*@__PURE__*/ function () { var ɵSubmissionGridHeaderComponent_BaseFactory; return function SubmissionGridHeaderComponent_Factory(t) { return (ɵSubmissionGridHeaderComponent_BaseFactory || (ɵSubmissionGridHeaderComponent_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(SubmissionGridHeaderComponent)))(t || SubmissionGridHeaderComponent); }; }();
|
|
1074
|
+
SubmissionGridHeaderComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SubmissionGridHeaderComponent, selectors: [["ng-component"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 0, consts: [[4, "ngFor", "ngForOf"], [3, "click"], ["class", "glyphicon", 3, "ngClass", 4, "ngIf"], [1, "glyphicon", 3, "ngClass"]], template: function SubmissionGridHeaderComponent_Template(rf, ctx) {
|
|
1075
|
+
if (rf & 1) {
|
|
1076
|
+
i0__namespace.ɵɵtemplate(0, SubmissionGridHeaderComponent_ng_template_0_Template, 3, 1, "ng-template");
|
|
1077
|
+
}
|
|
1078
|
+
}, directives: [i1__namespace.NgForOf, i1__namespace.NgIf, i1__namespace.NgClass], encapsulation: 2 });
|
|
1079
|
+
(function () {
|
|
1080
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SubmissionGridHeaderComponent, [{
|
|
1081
|
+
type: i0.Component,
|
|
1082
|
+
args: [{
|
|
1083
|
+
templateUrl: './SubmissionGridHeader.component.html'
|
|
1084
|
+
}]
|
|
1085
|
+
}], null, null);
|
|
1086
|
+
})();
|
|
1087
|
+
|
|
1088
|
+
function SubmissionGridBodyComponent_ng_template_0_tr_1_td_1_Template(rf, ctx) {
|
|
1089
|
+
if (rf & 1) {
|
|
1090
|
+
i0__namespace.ɵɵelement(0, "td", 3);
|
|
1091
|
+
}
|
|
1092
|
+
if (rf & 2) {
|
|
1093
|
+
var rowHeader_r4 = ctx.$implicit;
|
|
1094
|
+
var row_r2 = i0__namespace.ɵɵnextContext().$implicit;
|
|
1095
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext(2);
|
|
1096
|
+
i0__namespace.ɵɵproperty("innerHTML", ctx_r3.view(row_r2, rowHeader_r4), i0__namespace.ɵɵsanitizeHtml);
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
function SubmissionGridBodyComponent_ng_template_0_tr_1_Template(rf, ctx) {
|
|
1100
|
+
if (rf & 1) {
|
|
1101
|
+
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
1102
|
+
i0__namespace.ɵɵelementStart(0, "tr", 1);
|
|
1103
|
+
i0__namespace.ɵɵlistener("click", function SubmissionGridBodyComponent_ng_template_0_tr_1_Template_tr_click_0_listener($event) { var restoredCtx = i0__namespace.ɵɵrestoreView(_r7_1); var row_r2 = restoredCtx.$implicit; var ctx_r6 = i0__namespace.ɵɵnextContext(2); return ctx_r6.onRowSelect($event, row_r2); });
|
|
1104
|
+
i0__namespace.ɵɵtemplate(1, SubmissionGridBodyComponent_ng_template_0_tr_1_td_1_Template, 1, 1, "td", 2);
|
|
1105
|
+
i0__namespace.ɵɵelementEnd();
|
|
1106
|
+
}
|
|
1107
|
+
if (rf & 2) {
|
|
1108
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
1109
|
+
i0__namespace.ɵɵadvance(1);
|
|
1110
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.header.headers);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
function SubmissionGridBodyComponent_ng_template_0_Template(rf, ctx) {
|
|
1114
|
+
if (rf & 1) {
|
|
1115
|
+
i0__namespace.ɵɵelementStart(0, "tbody");
|
|
1116
|
+
i0__namespace.ɵɵtemplate(1, SubmissionGridBodyComponent_ng_template_0_tr_1_Template, 2, 1, "tr", 0);
|
|
1117
|
+
i0__namespace.ɵɵelementEnd();
|
|
1118
|
+
}
|
|
1119
|
+
if (rf & 2) {
|
|
1120
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
1121
|
+
i0__namespace.ɵɵadvance(1);
|
|
1122
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.rows);
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
var SubmissionGridBodyComponent = /** @class */ (function (_super) {
|
|
1126
|
+
__extends(SubmissionGridBodyComponent, _super);
|
|
1127
|
+
function SubmissionGridBodyComponent() {
|
|
1128
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1129
|
+
}
|
|
1130
|
+
SubmissionGridBodyComponent.prototype.load = function (formio, query) {
|
|
1131
|
+
var _this = this;
|
|
1132
|
+
query = query || {};
|
|
1133
|
+
return formio.loadSubmissions({ params: query })
|
|
1134
|
+
.then(function (submissions) { return _this.setRows(query, submissions); });
|
|
1135
|
+
};
|
|
1136
|
+
/**
|
|
1137
|
+
* Render the cell data.
|
|
1138
|
+
*
|
|
1139
|
+
* @param submission
|
|
1140
|
+
* @param header
|
|
1141
|
+
* @return any
|
|
1142
|
+
*/
|
|
1143
|
+
SubmissionGridBodyComponent.prototype.view = function (submission, header) {
|
|
1144
|
+
var cellValue = lodash.get(submission, header.key);
|
|
1145
|
+
if (header.renderCell) {
|
|
1146
|
+
return header.renderCell(cellValue, header.component);
|
|
1147
|
+
}
|
|
1148
|
+
else {
|
|
1149
|
+
if (header.component) {
|
|
1150
|
+
if (header.component.getView) {
|
|
1151
|
+
return header.component.getView(cellValue);
|
|
1152
|
+
}
|
|
1153
|
+
return header.component.asString(cellValue);
|
|
1154
|
+
}
|
|
1155
|
+
else {
|
|
1156
|
+
return cellValue.toString();
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
};
|
|
1160
|
+
return SubmissionGridBodyComponent;
|
|
1161
|
+
}(GridBodyComponent));
|
|
1162
|
+
SubmissionGridBodyComponent.ɵfac = /*@__PURE__*/ function () { var ɵSubmissionGridBodyComponent_BaseFactory; return function SubmissionGridBodyComponent_Factory(t) { return (ɵSubmissionGridBodyComponent_BaseFactory || (ɵSubmissionGridBodyComponent_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(SubmissionGridBodyComponent)))(t || SubmissionGridBodyComponent); }; }();
|
|
1163
|
+
SubmissionGridBodyComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SubmissionGridBodyComponent, selectors: [["ng-component"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 0, consts: [[3, "click", 4, "ngFor", "ngForOf"], [3, "click"], [3, "innerHTML", 4, "ngFor", "ngForOf"], [3, "innerHTML"]], template: function SubmissionGridBodyComponent_Template(rf, ctx) {
|
|
1164
|
+
if (rf & 1) {
|
|
1165
|
+
i0__namespace.ɵɵtemplate(0, SubmissionGridBodyComponent_ng_template_0_Template, 2, 1, "ng-template");
|
|
1166
|
+
}
|
|
1167
|
+
}, directives: [i1__namespace.NgForOf], encapsulation: 2 });
|
|
1168
|
+
(function () {
|
|
1169
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SubmissionGridBodyComponent, [{
|
|
1170
|
+
type: i0.Component,
|
|
1171
|
+
args: [{
|
|
1172
|
+
templateUrl: './SubmissionGridBody.component.html'
|
|
1173
|
+
}]
|
|
1174
|
+
}], null, null);
|
|
1175
|
+
})();
|
|
1176
|
+
|
|
1177
|
+
function SubmissionGridFooterComponent_ng_template_0_thead_0_Template(rf, ctx) {
|
|
1178
|
+
if (rf & 1) {
|
|
1179
|
+
i0__namespace.ɵɵelementStart(0, "thead", 3);
|
|
1180
|
+
i0__namespace.ɵɵelementContainer(1, 4);
|
|
1181
|
+
i0__namespace.ɵɵelementEnd();
|
|
1182
|
+
}
|
|
1183
|
+
if (rf & 2) {
|
|
1184
|
+
i0__namespace.ɵɵnextContext(2);
|
|
1185
|
+
var _r2 = i0__namespace.ɵɵreference(3);
|
|
1186
|
+
i0__namespace.ɵɵadvance(1);
|
|
1187
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
function SubmissionGridFooterComponent_ng_template_0_tfoot_1_Template(rf, ctx) {
|
|
1191
|
+
if (rf & 1) {
|
|
1192
|
+
i0__namespace.ɵɵelementStart(0, "tfoot", 3);
|
|
1193
|
+
i0__namespace.ɵɵelementContainer(1, 4);
|
|
1194
|
+
i0__namespace.ɵɵelementEnd();
|
|
1195
|
+
}
|
|
1196
|
+
if (rf & 2) {
|
|
1197
|
+
i0__namespace.ɵɵnextContext(2);
|
|
1198
|
+
var _r2 = i0__namespace.ɵɵreference(3);
|
|
1199
|
+
i0__namespace.ɵɵadvance(1);
|
|
1200
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
function SubmissionGridFooterComponent_ng_template_0_Template(rf, ctx) {
|
|
1204
|
+
if (rf & 1) {
|
|
1205
|
+
i0__namespace.ɵɵtemplate(0, SubmissionGridFooterComponent_ng_template_0_thead_0_Template, 2, 1, "thead", 2);
|
|
1206
|
+
i0__namespace.ɵɵtemplate(1, SubmissionGridFooterComponent_ng_template_0_tfoot_1_Template, 2, 1, "tfoot", 2);
|
|
1207
|
+
}
|
|
1208
|
+
if (rf & 2) {
|
|
1209
|
+
var position_r4 = ctx.position;
|
|
1210
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
1211
|
+
i0__namespace.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.top);
|
|
1212
|
+
i0__namespace.ɵɵadvance(1);
|
|
1213
|
+
i0__namespace.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.bottom);
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
function SubmissionGridFooterComponent_ng_template_2_td_1_button_1_Template(rf, ctx) {
|
|
1217
|
+
if (rf & 1) {
|
|
1218
|
+
var _r10_1 = i0__namespace.ɵɵgetCurrentView();
|
|
1219
|
+
i0__namespace.ɵɵelementStart(0, "button", 11);
|
|
1220
|
+
i0__namespace.ɵɵlistener("click", function SubmissionGridFooterComponent_ng_template_2_td_1_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r9 = i0__namespace.ɵɵnextContext(3); return ctx_r9.createItem.emit("form"); });
|
|
1221
|
+
i0__namespace.ɵɵelement(1, "i", 12);
|
|
1222
|
+
i0__namespace.ɵɵtext(2);
|
|
1223
|
+
i0__namespace.ɵɵelementEnd();
|
|
1224
|
+
}
|
|
1225
|
+
if (rf & 2) {
|
|
1226
|
+
var ctx_r8 = i0__namespace.ɵɵnextContext(3);
|
|
1227
|
+
i0__namespace.ɵɵadvance(2);
|
|
1228
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r8.createText, "");
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
function SubmissionGridFooterComponent_ng_template_2_td_1_Template(rf, ctx) {
|
|
1232
|
+
if (rf & 1) {
|
|
1233
|
+
var _r12_1 = i0__namespace.ɵɵgetCurrentView();
|
|
1234
|
+
i0__namespace.ɵɵelementStart(0, "td", 6);
|
|
1235
|
+
i0__namespace.ɵɵtemplate(1, SubmissionGridFooterComponent_ng_template_2_td_1_button_1_Template, 3, 1, "button", 7);
|
|
1236
|
+
i0__namespace.ɵɵelementStart(2, "span", 8);
|
|
1237
|
+
i0__namespace.ɵɵelementStart(3, "span", 9);
|
|
1238
|
+
i0__namespace.ɵɵtext(4);
|
|
1239
|
+
i0__namespace.ɵɵelementEnd();
|
|
1240
|
+
i0__namespace.ɵɵtext(5);
|
|
1241
|
+
i0__namespace.ɵɵelementEnd();
|
|
1242
|
+
i0__namespace.ɵɵelementStart(6, "pagination", 10);
|
|
1243
|
+
i0__namespace.ɵɵlistener("ngModelChange", function SubmissionGridFooterComponent_ng_template_2_td_1_Template_pagination_ngModelChange_6_listener($event) { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.body.skip = $event; })("pageChanged", function SubmissionGridFooterComponent_ng_template_2_td_1_Template_pagination_pageChanged_6_listener($event) { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r13 = i0__namespace.ɵɵnextContext(2); return ctx_r13.pageChanged.emit($event); });
|
|
1244
|
+
i0__namespace.ɵɵelementEnd();
|
|
1245
|
+
i0__namespace.ɵɵelementEnd();
|
|
1246
|
+
}
|
|
1247
|
+
if (rf & 2) {
|
|
1248
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
1249
|
+
i0__namespace.ɵɵproperty("colSpan", ctx_r7.header.numHeaders);
|
|
1250
|
+
i0__namespace.ɵɵadvance(1);
|
|
1251
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r7.actionAllowed("submissionCreate") && ctx_r7.createText);
|
|
1252
|
+
i0__namespace.ɵɵadvance(3);
|
|
1253
|
+
i0__namespace.ɵɵtextInterpolate2("", ctx_r7.body.firstItem, " - ", ctx_r7.body.lastItem, "");
|
|
1254
|
+
i0__namespace.ɵɵadvance(1);
|
|
1255
|
+
i0__namespace.ɵɵtextInterpolate1(" / ", ctx_r7.body.total, " total");
|
|
1256
|
+
i0__namespace.ɵɵadvance(1);
|
|
1257
|
+
i0__namespace.ɵɵproperty("totalItems", ctx_r7.body.total)("itemsPerPage", ctx_r7.body.limit)("ngModel", ctx_r7.body.skip)("maxSize", ctx_r7.size);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
function SubmissionGridFooterComponent_ng_template_2_Template(rf, ctx) {
|
|
1261
|
+
if (rf & 1) {
|
|
1262
|
+
i0__namespace.ɵɵelementStart(0, "tr");
|
|
1263
|
+
i0__namespace.ɵɵtemplate(1, SubmissionGridFooterComponent_ng_template_2_td_1_Template, 7, 9, "td", 5);
|
|
1264
|
+
i0__namespace.ɵɵelementEnd();
|
|
1265
|
+
}
|
|
1266
|
+
if (rf & 2) {
|
|
1267
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
1268
|
+
i0__namespace.ɵɵadvance(1);
|
|
1269
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r3.header);
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
var SubmissionGridFooterComponent = /** @class */ (function (_super) {
|
|
1273
|
+
__extends(SubmissionGridFooterComponent, _super);
|
|
1274
|
+
function SubmissionGridFooterComponent() {
|
|
1275
|
+
return _super.call(this) || this;
|
|
1276
|
+
}
|
|
1277
|
+
SubmissionGridFooterComponent.prototype.ngOnInit = function () {
|
|
1278
|
+
if (!this.size) {
|
|
1279
|
+
this.size = 7;
|
|
1280
|
+
}
|
|
1281
|
+
};
|
|
1282
|
+
return SubmissionGridFooterComponent;
|
|
1283
|
+
}(GridFooterComponent));
|
|
1284
|
+
SubmissionGridFooterComponent.ɵfac = function SubmissionGridFooterComponent_Factory(t) { return new (t || SubmissionGridFooterComponent)(); };
|
|
1285
|
+
SubmissionGridFooterComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SubmissionGridFooterComponent, selectors: [["ng-component"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 4, vars: 0, consts: [["footer", ""], ["defaultFooterTemplate", ""], ["class", "formio-grid-footer", 4, "ngIf"], [1, "formio-grid-footer"], [3, "ngTemplateOutlet"], [3, "colSpan", 4, "ngIf"], [3, "colSpan"], ["class", "btn btn-primary pull-left float-left", 3, "click", 4, "ngIf"], [1, "pull-right", "float-right", "item-counter"], [1, "page-num"], [1, "justify-content-center", "pagination-sm", 3, "totalItems", "itemsPerPage", "ngModel", "maxSize", "ngModelChange", "pageChanged"], [1, "btn", "btn-primary", "pull-left", "float-left", 3, "click"], [1, "glyphicon", "glyphicon-plus", "fa", "fa-plus"]], template: function SubmissionGridFooterComponent_Template(rf, ctx) {
|
|
1286
|
+
if (rf & 1) {
|
|
1287
|
+
i0__namespace.ɵɵtemplate(0, SubmissionGridFooterComponent_ng_template_0_Template, 2, 2, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
|
|
1288
|
+
i0__namespace.ɵɵtemplate(2, SubmissionGridFooterComponent_ng_template_2_Template, 2, 1, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
|
|
1289
|
+
}
|
|
1290
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgTemplateOutlet, i2__namespace$1.PaginationComponent, i3__namespace.NgControlStatus, i3__namespace.NgModel], styles: ["tfoot.formio-grid-footer td{padding:.3rem}tfoot.formio-grid-footer .page-num{font-size:1.4em}tfoot.formio-grid-footer ul.pagination{margin-top:5px;margin-bottom:0}\n"], encapsulation: 2 });
|
|
1291
|
+
(function () {
|
|
1292
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SubmissionGridFooterComponent, [{
|
|
1293
|
+
type: i0.Component,
|
|
1294
|
+
args: [{
|
|
1295
|
+
templateUrl: './SubmissionGridFooter.component.html',
|
|
1296
|
+
styleUrls: ['../grid.footer.scss'],
|
|
1297
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
1298
|
+
}]
|
|
1299
|
+
}], function () { return []; }, null);
|
|
1300
|
+
})();
|
|
1301
|
+
|
|
1302
|
+
var SubmissionComponents = {
|
|
1303
|
+
header: SubmissionGridHeaderComponent,
|
|
1304
|
+
body: SubmissionGridBodyComponent,
|
|
1305
|
+
footer: SubmissionGridFooterComponent
|
|
1306
|
+
};
|
|
1307
|
+
|
|
1308
|
+
var _c0 = ["headerTemplate"];
|
|
1309
|
+
var _c1 = ["bodyTemplate"];
|
|
1310
|
+
var _c2 = ["footerTemplate"];
|
|
1311
|
+
function FormioGridComponent_ng_template_0_Template(rf, ctx) { }
|
|
1312
|
+
function FormioGridComponent_ng_template_2_Template(rf, ctx) { }
|
|
1313
|
+
function FormioGridComponent_ng_template_4_Template(rf, ctx) { }
|
|
1314
|
+
var _c3 = function (a0, a1) { return { position: a0, label: a1 }; };
|
|
1315
|
+
function FormioGridComponent_ng_container_9_Template(rf, ctx) {
|
|
1316
|
+
if (rf & 1) {
|
|
1317
|
+
i0__namespace.ɵɵelementContainer(0, 9);
|
|
1318
|
+
}
|
|
1319
|
+
if (rf & 2) {
|
|
1320
|
+
var ctx_r6 = i0__namespace.ɵɵnextContext();
|
|
1321
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", ctx_r6.footer.template)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c3, ctx_r6.footerPositions.top, ctx_r6.label));
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
function FormioGridComponent_ng_container_10_Template(rf, ctx) {
|
|
1325
|
+
if (rf & 1) {
|
|
1326
|
+
i0__namespace.ɵɵelementContainer(0, 10);
|
|
1327
|
+
}
|
|
1328
|
+
if (rf & 2) {
|
|
1329
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext();
|
|
1330
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", ctx_r7.header.template);
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
function FormioGridComponent_ng_container_12_Template(rf, ctx) {
|
|
1334
|
+
if (rf & 1) {
|
|
1335
|
+
i0__namespace.ɵɵelementContainer(0, 10);
|
|
1336
|
+
}
|
|
1337
|
+
if (rf & 2) {
|
|
1338
|
+
var ctx_r8 = i0__namespace.ɵɵnextContext();
|
|
1339
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", ctx_r8.body.template);
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
function FormioGridComponent_ng_container_13_Template(rf, ctx) {
|
|
1343
|
+
if (rf & 1) {
|
|
1344
|
+
i0__namespace.ɵɵelementContainer(0, 9);
|
|
1345
|
+
}
|
|
1346
|
+
if (rf & 2) {
|
|
1347
|
+
var ctx_r9 = i0__namespace.ɵɵnextContext();
|
|
1348
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", ctx_r9.footer.template)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c3, ctx_r9.footerPositions.bottom, ctx_r9.label));
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
var _c4 = function (a0, a1) { return [a0, a1]; };
|
|
1352
|
+
var FormioGridComponent = /** @class */ (function () {
|
|
1353
|
+
function FormioGridComponent(alerts, resolver, ref) {
|
|
1354
|
+
this.alerts = alerts;
|
|
1355
|
+
this.resolver = resolver;
|
|
1356
|
+
this.ref = ref;
|
|
1357
|
+
this.footerPosition = GridFooterPositions.bottom;
|
|
1358
|
+
this.page = 0;
|
|
1359
|
+
this.isLoading = false;
|
|
1360
|
+
this.initialized = false;
|
|
1361
|
+
this.footerPositions = GridFooterPositions;
|
|
1362
|
+
this.select = this.rowSelect = new i0.EventEmitter();
|
|
1363
|
+
this.rowAction = new i0.EventEmitter();
|
|
1364
|
+
this.createItem = new i0.EventEmitter();
|
|
1365
|
+
this.error = new i0.EventEmitter();
|
|
1366
|
+
this.isLoading = true;
|
|
1367
|
+
}
|
|
1368
|
+
FormioGridComponent.prototype.createComponent = function (property, component) {
|
|
1369
|
+
var factory = this.resolver.resolveComponentFactory(component);
|
|
1370
|
+
var componentRef = property.createComponent(factory);
|
|
1371
|
+
return componentRef.instance;
|
|
1372
|
+
};
|
|
1373
|
+
FormioGridComponent.prototype.loadGrid = function (src) {
|
|
1374
|
+
var _this = this;
|
|
1375
|
+
// If no source is provided, then skip.
|
|
1376
|
+
if (!src && !this.formio) {
|
|
1377
|
+
return;
|
|
1378
|
+
}
|
|
1379
|
+
// Do not double load.
|
|
1380
|
+
if (this.formio && this.src && (src === this.src)) {
|
|
1381
|
+
return;
|
|
1382
|
+
}
|
|
1383
|
+
if (src) {
|
|
1384
|
+
this.src = src;
|
|
1385
|
+
this.formio = new i1$1.FormioPromiseService(this.src, { formOnly: true });
|
|
1386
|
+
}
|
|
1387
|
+
// Load the header.
|
|
1388
|
+
this.header.load(this.formio, {}, this.columns)
|
|
1389
|
+
.then(function () { return _this.setPage(0); })
|
|
1390
|
+
.catch(function (error) { return _this.onError(error); });
|
|
1391
|
+
};
|
|
1392
|
+
FormioGridComponent.prototype.ngOnInit = function () {
|
|
1393
|
+
var _this = this;
|
|
1394
|
+
// Create our components.
|
|
1395
|
+
var comps = this.components || ((this.gridType === 'form') ? FormComponents : SubmissionComponents);
|
|
1396
|
+
this.header = this.createComponent(this.headerElement, comps.header);
|
|
1397
|
+
this.header.actionAllowed = this.actionAllowed.bind(this);
|
|
1398
|
+
this.header.sort.subscribe(function (header) { return _this.sortColumn(header); });
|
|
1399
|
+
this.body = this.createComponent(this.bodyElement, comps.body);
|
|
1400
|
+
this.body.header = this.header;
|
|
1401
|
+
this.body.actionAllowed = this.actionAllowed.bind(this);
|
|
1402
|
+
this.body.rowSelect.subscribe(function (row) { return _this.rowSelect.emit(row); });
|
|
1403
|
+
this.body.rowAction.subscribe(function (action) { return _this.rowAction.emit(action); });
|
|
1404
|
+
this.footer = this.createComponent(this.footerElement, comps.footer);
|
|
1405
|
+
this.footer.header = this.header;
|
|
1406
|
+
this.footer.body = this.body;
|
|
1407
|
+
this.footer.actionAllowed = this.actionAllowed.bind(this);
|
|
1408
|
+
this.footer.createText = this.createText;
|
|
1409
|
+
this.footer.size = this.size;
|
|
1410
|
+
this.footer.pageChanged.subscribe(function (page) { return _this.pageChanged(page); });
|
|
1411
|
+
this.footer.createItem.subscribe(function (item) { return _this.createItem.emit(item); });
|
|
1412
|
+
};
|
|
1413
|
+
FormioGridComponent.prototype.ngOnChanges = function (changes) {
|
|
1414
|
+
if (this.initialized) {
|
|
1415
|
+
if ((changes.src && changes.src.currentValue) ||
|
|
1416
|
+
(changes.formio && changes.formio.currentValue)) {
|
|
1417
|
+
this.loadGrid(changes.src.currentValue);
|
|
1418
|
+
}
|
|
1419
|
+
if (changes.items && changes.items.currentValue) {
|
|
1420
|
+
this.refreshGrid();
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
if (this.footer &&
|
|
1424
|
+
(changes.createText && changes.createText.currentValue)) {
|
|
1425
|
+
this.footer.createText = changes.createText.currentValue;
|
|
1426
|
+
}
|
|
1427
|
+
};
|
|
1428
|
+
FormioGridComponent.prototype.ngAfterViewInit = function () {
|
|
1429
|
+
var _this = this;
|
|
1430
|
+
this.alerts.setAlerts([]);
|
|
1431
|
+
this.query = this.query || {};
|
|
1432
|
+
if (this.refresh) {
|
|
1433
|
+
this.refresh.subscribe(function (query) { return _this.refreshGrid(query); });
|
|
1434
|
+
}
|
|
1435
|
+
this.loadGrid(this.src);
|
|
1436
|
+
this.initialized = true;
|
|
1437
|
+
this.ref.detectChanges();
|
|
1438
|
+
};
|
|
1439
|
+
FormioGridComponent.prototype.actionAllowed = function (action) {
|
|
1440
|
+
if (this.isActionAllowed) {
|
|
1441
|
+
return this.isActionAllowed(action);
|
|
1442
|
+
}
|
|
1443
|
+
else {
|
|
1444
|
+
return true;
|
|
1445
|
+
}
|
|
1446
|
+
};
|
|
1447
|
+
FormioGridComponent.prototype.onError = function (error) {
|
|
1448
|
+
this.isLoading = false;
|
|
1449
|
+
this.error.emit(error);
|
|
1450
|
+
if (typeof error === 'string' || error.message) {
|
|
1451
|
+
this.alerts.setAlert({
|
|
1452
|
+
type: 'danger',
|
|
1453
|
+
message: error.message || error
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
};
|
|
1457
|
+
FormioGridComponent.prototype.refreshGrid = function (query) {
|
|
1458
|
+
var _this = this;
|
|
1459
|
+
this.alerts.setAlerts([]);
|
|
1460
|
+
this.query = query || this.query;
|
|
1461
|
+
if (!this.query.hasOwnProperty('limit')) {
|
|
1462
|
+
this.query.limit = 10;
|
|
1463
|
+
}
|
|
1464
|
+
if (!this.query.hasOwnProperty('skip')) {
|
|
1465
|
+
this.query.skip = 0;
|
|
1466
|
+
}
|
|
1467
|
+
this.isLoading = true;
|
|
1468
|
+
this.ref.detectChanges();
|
|
1469
|
+
formiojs.Formio.cache = {};
|
|
1470
|
+
var loader = null;
|
|
1471
|
+
if (this.items) {
|
|
1472
|
+
loader = Promise.resolve(this.body.setRows(this.query, this.items));
|
|
1473
|
+
}
|
|
1474
|
+
else {
|
|
1475
|
+
loader = this.body.load(this.formio, this.query);
|
|
1476
|
+
}
|
|
1477
|
+
return loader.then(function (info) {
|
|
1478
|
+
_this.isLoading = false;
|
|
1479
|
+
_this.initialized = true;
|
|
1480
|
+
_this.ref.detectChanges();
|
|
1481
|
+
}).catch(function (error) { return _this.onError(error); });
|
|
1482
|
+
};
|
|
1483
|
+
FormioGridComponent.prototype.setPage = function (num) {
|
|
1484
|
+
if (num === void 0) { num = -1; }
|
|
1485
|
+
this.page = num !== -1 ? num : this.page;
|
|
1486
|
+
if (!this.query.hasOwnProperty('limit')) {
|
|
1487
|
+
this.query.limit = 10;
|
|
1488
|
+
}
|
|
1489
|
+
if (!this.query.hasOwnProperty('skip')) {
|
|
1490
|
+
this.query.skip = 0;
|
|
1491
|
+
}
|
|
1492
|
+
this.query.skip = this.page * this.query.limit;
|
|
1493
|
+
this.refreshGrid();
|
|
1494
|
+
};
|
|
1495
|
+
FormioGridComponent.prototype.sortColumn = function (header) {
|
|
1496
|
+
// Reset all other column sorts.
|
|
1497
|
+
lodash.each(this.header.headers, function (col) {
|
|
1498
|
+
if (col.key !== header.key) {
|
|
1499
|
+
col.sort = '';
|
|
1500
|
+
}
|
|
1501
|
+
});
|
|
1502
|
+
switch (header.sort) {
|
|
1503
|
+
case 'asc':
|
|
1504
|
+
header.sort = SortType.DESC;
|
|
1505
|
+
this.query.sort = '-' + header.key;
|
|
1506
|
+
break;
|
|
1507
|
+
case 'desc':
|
|
1508
|
+
header.sort = undefined;
|
|
1509
|
+
delete this.query.sort;
|
|
1510
|
+
break;
|
|
1511
|
+
case undefined:
|
|
1512
|
+
header.sort = SortType.ASC;
|
|
1513
|
+
this.query.sort = header.key;
|
|
1514
|
+
break;
|
|
1515
|
+
}
|
|
1516
|
+
this.refreshGrid();
|
|
1517
|
+
};
|
|
1518
|
+
FormioGridComponent.prototype.pageChanged = function (page) {
|
|
1519
|
+
this.setPage(page.page - 1);
|
|
1520
|
+
};
|
|
1521
|
+
return FormioGridComponent;
|
|
1522
|
+
}());
|
|
1523
|
+
FormioGridComponent.ɵfac = function FormioGridComponent_Factory(t) { return new (t || FormioGridComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.FormioAlerts), i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
|
|
1524
|
+
FormioGridComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormioGridComponent, selectors: [["formio-grid"]], viewQuery: function FormioGridComponent_Query(rf, ctx) {
|
|
1525
|
+
if (rf & 1) {
|
|
1526
|
+
i0__namespace.ɵɵviewQuery(_c0, 7, i0.ViewContainerRef);
|
|
1527
|
+
i0__namespace.ɵɵviewQuery(_c1, 7, i0.ViewContainerRef);
|
|
1528
|
+
i0__namespace.ɵɵviewQuery(_c2, 7, i0.ViewContainerRef);
|
|
1529
|
+
}
|
|
1530
|
+
if (rf & 2) {
|
|
1531
|
+
var _t = void 0;
|
|
1532
|
+
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.headerElement = _t.first);
|
|
1533
|
+
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.bodyElement = _t.first);
|
|
1534
|
+
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.footerElement = _t.first);
|
|
1535
|
+
}
|
|
1536
|
+
}, 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" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 14, vars: 12, consts: [["headerTemplate", ""], ["bodyTemplate", ""], ["footerTemplate", ""], [1, "formio-grid"], [3, "alerts"], [1, "table", "table-bordered", "table-striped", "table-hover"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], [3, "ngTemplateOutlet", 4, "ngIf"], [3, "isLoading"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "ngTemplateOutlet"]], template: function FormioGridComponent_Template(rf, ctx) {
|
|
1537
|
+
if (rf & 1) {
|
|
1538
|
+
i0__namespace.ɵɵtemplate(0, FormioGridComponent_ng_template_0_Template, 0, 0, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
|
|
1539
|
+
i0__namespace.ɵɵtemplate(2, FormioGridComponent_ng_template_2_Template, 0, 0, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
|
|
1540
|
+
i0__namespace.ɵɵtemplate(4, FormioGridComponent_ng_template_4_Template, 0, 0, "ng-template", null, 2, i0__namespace.ɵɵtemplateRefExtractor);
|
|
1541
|
+
i0__namespace.ɵɵelementStart(6, "div", 3);
|
|
1542
|
+
i0__namespace.ɵɵelement(7, "formio-alerts", 4);
|
|
1543
|
+
i0__namespace.ɵɵelementStart(8, "table", 5);
|
|
1544
|
+
i0__namespace.ɵɵtemplate(9, FormioGridComponent_ng_container_9_Template, 1, 5, "ng-container", 6);
|
|
1545
|
+
i0__namespace.ɵɵtemplate(10, FormioGridComponent_ng_container_10_Template, 1, 1, "ng-container", 7);
|
|
1546
|
+
i0__namespace.ɵɵelement(11, "formio-loader", 8);
|
|
1547
|
+
i0__namespace.ɵɵtemplate(12, FormioGridComponent_ng_container_12_Template, 1, 1, "ng-container", 7);
|
|
1548
|
+
i0__namespace.ɵɵtemplate(13, FormioGridComponent_ng_container_13_Template, 1, 5, "ng-container", 6);
|
|
1549
|
+
i0__namespace.ɵɵelementEnd();
|
|
1550
|
+
i0__namespace.ɵɵelementEnd();
|
|
1551
|
+
}
|
|
1552
|
+
if (rf & 2) {
|
|
1553
|
+
i0__namespace.ɵɵadvance(7);
|
|
1554
|
+
i0__namespace.ɵɵproperty("alerts", ctx.alerts);
|
|
1555
|
+
i0__namespace.ɵɵadvance(2);
|
|
1556
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.initialized && i0__namespace.ɵɵpureFunction2(6, _c4, ctx.footerPositions.top, ctx.footerPositions.both).indexOf(ctx.footerPosition) !== -1);
|
|
1557
|
+
i0__namespace.ɵɵadvance(1);
|
|
1558
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.initialized);
|
|
1559
|
+
i0__namespace.ɵɵadvance(1);
|
|
1560
|
+
i0__namespace.ɵɵproperty("isLoading", ctx.isLoading);
|
|
1561
|
+
i0__namespace.ɵɵadvance(1);
|
|
1562
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.initialized);
|
|
1563
|
+
i0__namespace.ɵɵadvance(1);
|
|
1564
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.initialized && i0__namespace.ɵɵpureFunction2(9, _c4, ctx.footerPositions.bottom, ctx.footerPositions.both).indexOf(ctx.footerPosition) !== -1);
|
|
1565
|
+
}
|
|
1566
|
+
}, directives: [i1__namespace$1.FormioAlertsComponent, i1__namespace.NgIf, i1__namespace$1.FormioLoaderComponent, i1__namespace.NgTemplateOutlet], styles: [".formio-grid[_ngcontent-%COMP%]{position:relative;width:100%}.grid-refresh[_ngcontent-%COMP%]{height:400px;width:100%}"] });
|
|
1567
|
+
(function () {
|
|
1568
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormioGridComponent, [{
|
|
1569
|
+
type: i0.Component,
|
|
1570
|
+
args: [{
|
|
1571
|
+
selector: 'formio-grid',
|
|
1572
|
+
styleUrls: ['./grid.component.scss'],
|
|
1573
|
+
templateUrl: './grid.component.html'
|
|
1574
|
+
}]
|
|
1575
|
+
}], function () { return [{ type: i1__namespace$1.FormioAlerts }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ChangeDetectorRef }]; }, { footerPosition: [{
|
|
1576
|
+
type: i0.Input
|
|
1577
|
+
}], src: [{
|
|
1578
|
+
type: i0.Input
|
|
1579
|
+
}], items: [{
|
|
1580
|
+
type: i0.Input
|
|
1581
|
+
}], onForm: [{
|
|
1582
|
+
type: i0.Input
|
|
1583
|
+
}], query: [{
|
|
1584
|
+
type: i0.Input
|
|
1585
|
+
}], refresh: [{
|
|
1586
|
+
type: i0.Input
|
|
1587
|
+
}], columns: [{
|
|
1588
|
+
type: i0.Input
|
|
1589
|
+
}], gridType: [{
|
|
1590
|
+
type: i0.Input
|
|
1591
|
+
}], size: [{
|
|
1592
|
+
type: i0.Input
|
|
1593
|
+
}], components: [{
|
|
1594
|
+
type: i0.Input
|
|
1595
|
+
}], formio: [{
|
|
1596
|
+
type: i0.Input
|
|
1597
|
+
}], label: [{
|
|
1598
|
+
type: i0.Input
|
|
1599
|
+
}], createText: [{
|
|
1600
|
+
type: i0.Input
|
|
1601
|
+
}], isActionAllowed: [{
|
|
1602
|
+
type: i0.Input
|
|
1603
|
+
}], select: [{
|
|
1604
|
+
type: i0.Output
|
|
1605
|
+
}], rowSelect: [{
|
|
1606
|
+
type: i0.Output
|
|
1607
|
+
}], rowAction: [{
|
|
1608
|
+
type: i0.Output
|
|
1609
|
+
}], createItem: [{
|
|
1610
|
+
type: i0.Output
|
|
1611
|
+
}], error: [{
|
|
1612
|
+
type: i0.Output
|
|
1613
|
+
}], headerElement: [{
|
|
1614
|
+
type: i0.ViewChild,
|
|
1615
|
+
args: ['headerTemplate', { read: i0.ViewContainerRef, static: true }]
|
|
1616
|
+
}], bodyElement: [{
|
|
1617
|
+
type: i0.ViewChild,
|
|
1618
|
+
args: ['bodyTemplate', { read: i0.ViewContainerRef, static: true }]
|
|
1619
|
+
}], footerElement: [{
|
|
1620
|
+
type: i0.ViewChild,
|
|
1621
|
+
args: ['footerTemplate', { read: i0.ViewContainerRef, static: true }]
|
|
1622
|
+
}] });
|
|
1623
|
+
})();
|
|
1624
|
+
|
|
1625
|
+
var FormioGrid = /** @class */ (function () {
|
|
1626
|
+
function FormioGrid() {
|
|
1627
|
+
}
|
|
1628
|
+
return FormioGrid;
|
|
1629
|
+
}());
|
|
1630
|
+
FormioGrid.ɵfac = function FormioGrid_Factory(t) { return new (t || FormioGrid)(); };
|
|
1631
|
+
FormioGrid.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: FormioGrid });
|
|
1632
|
+
FormioGrid.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ providers: [
|
|
1633
|
+
i1$1.FormioAlerts,
|
|
1634
|
+
GridService
|
|
1635
|
+
], imports: [[
|
|
1636
|
+
i1.CommonModule,
|
|
1637
|
+
i3.FormsModule,
|
|
1638
|
+
i1$1.FormioModule,
|
|
1639
|
+
i2.RouterModule,
|
|
1640
|
+
i2$1.PaginationModule.forRoot()
|
|
1641
|
+
]] });
|
|
1642
|
+
(function () {
|
|
1643
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormioGrid, [{
|
|
1644
|
+
type: i0.NgModule,
|
|
1645
|
+
args: [{
|
|
1646
|
+
imports: [
|
|
1647
|
+
i1.CommonModule,
|
|
1648
|
+
i3.FormsModule,
|
|
1649
|
+
i1$1.FormioModule,
|
|
1650
|
+
i2.RouterModule,
|
|
1651
|
+
i2$1.PaginationModule.forRoot()
|
|
1652
|
+
],
|
|
1653
|
+
declarations: [
|
|
1654
|
+
FormioGridComponent,
|
|
1655
|
+
FormGridHeaderComponent,
|
|
1656
|
+
FormGridBodyComponent,
|
|
1657
|
+
FormGridFooterComponent,
|
|
1658
|
+
SubmissionGridHeaderComponent,
|
|
1659
|
+
SubmissionGridBodyComponent,
|
|
1660
|
+
SubmissionGridFooterComponent,
|
|
1661
|
+
GridHeaderComponent,
|
|
1662
|
+
GridBodyComponent,
|
|
1663
|
+
GridFooterComponent,
|
|
1664
|
+
TimeSince
|
|
1665
|
+
],
|
|
1666
|
+
exports: [
|
|
1667
|
+
FormioGridComponent
|
|
1668
|
+
],
|
|
1669
|
+
entryComponents: [
|
|
1670
|
+
FormGridHeaderComponent,
|
|
1671
|
+
FormGridBodyComponent,
|
|
1672
|
+
FormGridFooterComponent,
|
|
1673
|
+
SubmissionGridHeaderComponent,
|
|
1674
|
+
SubmissionGridBodyComponent,
|
|
1675
|
+
SubmissionGridFooterComponent
|
|
1676
|
+
],
|
|
1677
|
+
providers: [
|
|
1678
|
+
i1$1.FormioAlerts,
|
|
1679
|
+
GridService
|
|
1680
|
+
]
|
|
1681
|
+
}]
|
|
1682
|
+
}], null, null);
|
|
1683
|
+
})();
|
|
1684
|
+
(function () {
|
|
1685
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(FormioGrid, { declarations: [FormioGridComponent,
|
|
1686
|
+
FormGridHeaderComponent,
|
|
1687
|
+
FormGridBodyComponent,
|
|
1688
|
+
FormGridFooterComponent,
|
|
1689
|
+
SubmissionGridHeaderComponent,
|
|
1690
|
+
SubmissionGridBodyComponent,
|
|
1691
|
+
SubmissionGridFooterComponent,
|
|
1692
|
+
GridHeaderComponent,
|
|
1693
|
+
GridBodyComponent,
|
|
1694
|
+
GridFooterComponent,
|
|
1695
|
+
TimeSince], imports: [i1.CommonModule,
|
|
1696
|
+
i3.FormsModule,
|
|
1697
|
+
i1$1.FormioModule,
|
|
1698
|
+
i2.RouterModule, i2__namespace$1.PaginationModule], exports: [FormioGridComponent] });
|
|
1699
|
+
})();
|
|
1700
|
+
|
|
1701
|
+
/*
|
|
1702
|
+
* Public API Surface of angular-formio
|
|
1703
|
+
*/
|
|
1704
|
+
|
|
1705
|
+
/**
|
|
1706
|
+
* Generated bundle index. Do not edit.
|
|
1707
|
+
*/
|
|
1708
|
+
|
|
1709
|
+
exports.FormGridBodyComponent = FormGridBodyComponent;
|
|
1710
|
+
exports.FormGridFooterComponent = FormGridFooterComponent;
|
|
1711
|
+
exports.FormGridHeaderComponent = FormGridHeaderComponent;
|
|
1712
|
+
exports.FormioGrid = FormioGrid;
|
|
1713
|
+
exports.FormioGridComponent = FormioGridComponent;
|
|
1714
|
+
exports.GridBodyComponent = GridBodyComponent;
|
|
1715
|
+
exports.GridFooterComponent = GridFooterComponent;
|
|
1716
|
+
exports.GridHeaderComponent = GridHeaderComponent;
|
|
1717
|
+
exports.GridService = GridService;
|
|
1718
|
+
exports.SubmissionGridBodyComponent = SubmissionGridBodyComponent;
|
|
1719
|
+
exports.SubmissionGridFooterComponent = SubmissionGridFooterComponent;
|
|
1720
|
+
exports.SubmissionGridHeaderComponent = SubmissionGridHeaderComponent;
|
|
1721
|
+
|
|
1722
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1723
|
+
|
|
1724
|
+
}));
|
|
1725
|
+
//# sourceMappingURL=formio-angular-grid.umd.js.map
|