@formio/angular 5.2.1-rc.2 → 5.2.1-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/angular-formio/FormioBaseComponent.d.ts → FormioBaseComponent.d.ts} +0 -3
- package/FormioBaseComponent.d.ts.map +1 -0
- package/FormioBaseComponent.ngfactory.d.ts.map +1 -0
- package/README.md +13 -170
- package/auth/auth.component.d.ts +3 -0
- package/{dist/angular-formio/auth → auth}/auth.component.d.ts.map +1 -1
- package/{dist/angular-formio/auth → auth}/auth.config.d.ts +0 -3
- package/auth/auth.config.d.ts.map +1 -0
- package/auth/auth.module.d.ts +6 -0
- package/auth/auth.module.d.ts.map +1 -0
- package/{dist/angular-formio/auth → auth}/auth.routes.d.ts +0 -0
- package/{dist/angular-formio/auth → auth}/auth.routes.d.ts.map +0 -0
- package/{dist/angular-formio/auth → auth}/auth.service.d.ts +0 -3
- package/auth/auth.service.d.ts.map +1 -0
- package/auth/formio-angular-auth.d.ts +5 -0
- package/{dist/angular-formio/auth → auth}/formio-angular-auth.d.ts.map +1 -1
- package/auth/formio-angular-auth.metadata.json +1 -0
- package/{dist/angular-formio/auth → auth}/index.d.ts +0 -0
- package/{dist/angular-formio/auth → auth}/index.d.ts.map +0 -0
- package/auth/login/login.component.d.ts +6 -0
- package/{dist/angular-formio/auth → auth}/login/login.component.d.ts.map +1 -1
- package/{dist/angular-formio/auth → auth}/package.json +1 -0
- package/{dist/angular-formio/auth → auth}/public_api.d.ts +0 -0
- package/{dist/angular-formio/auth → auth}/public_api.d.ts.map +0 -0
- package/auth/register/register.component.d.ts +6 -0
- package/{dist/angular-formio/auth → auth}/register/register.component.d.ts.map +1 -1
- package/auth/resetpass/resetpass.component.d.ts +6 -0
- package/{dist/angular-formio/auth → auth}/resetpass/resetpass.component.d.ts.map +1 -1
- package/bundles/formio-angular-auth.umd.js +312 -0
- package/bundles/formio-angular-auth.umd.js.map +1 -0
- package/bundles/formio-angular-grid.umd.js +1010 -0
- package/bundles/formio-angular-grid.umd.js.map +1 -0
- package/bundles/formio-angular-manager.umd.js +1122 -0
- package/bundles/formio-angular-manager.umd.js.map +1 -0
- package/bundles/formio-angular-resource.umd.js +556 -0
- package/bundles/formio-angular-resource.umd.js.map +1 -0
- package/bundles/formio-angular.umd.js +1497 -0
- package/bundles/formio-angular.umd.js.map +1 -0
- package/components/alerts/formio.alerts.component.d.ts +9 -0
- package/{dist/angular-formio/components → components}/alerts/formio.alerts.component.d.ts.map +1 -1
- package/components/alerts/formio.alerts.component.ngfactory.d.ts.map +1 -0
- package/{dist/angular-formio/components → components}/alerts/formio.alerts.d.ts +0 -0
- package/{dist/angular-formio/components → components}/alerts/formio.alerts.d.ts.map +0 -0
- package/components/alerts/parse-html-content.pipe.d.ts +5 -0
- package/{dist/angular-formio/components → components}/alerts/parse-html-content.pipe.d.ts.map +1 -1
- package/components/alerts/parse-html-content.pipe.ngfactory.d.ts.map +1 -0
- package/{dist/angular-formio/components → components}/formbuilder/formbuilder.component.d.ts +0 -3
- package/components/formbuilder/formbuilder.component.d.ts.map +1 -0
- package/components/formbuilder/formbuilder.component.ngfactory.d.ts.map +1 -0
- package/{dist/angular-formio/components → components}/formio/formio.component.d.ts +0 -3
- package/{dist/angular-formio/components → components}/formio/formio.component.d.ts.map +1 -1
- package/components/formio/formio.component.ngfactory.d.ts.map +1 -0
- package/components/loader/formio.loader.component.d.ts +4 -0
- package/components/loader/formio.loader.component.d.ts.map +1 -0
- package/components/loader/formio.loader.component.ngfactory.d.ts.map +1 -0
- package/components/loader/formio.loader.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/{dist/angular-formio/core.d.ts → core.d.ts} +0 -0
- package/{dist/angular-formio/core.d.ts.map → core.d.ts.map} +0 -0
- package/{dist/angular-formio/custom-component → custom-component}/create-custom-component.d.ts +0 -0
- package/{dist/angular-formio/custom-component → custom-component}/create-custom-component.d.ts.map +0 -0
- package/custom-component/custom-tags.service.d.ts +5 -0
- package/custom-component/custom-tags.service.d.ts.map +1 -0
- package/custom-component/custom-tags.service.ngfactory.d.ts.map +1 -0
- package/{dist/angular-formio/custom-component → custom-component}/register-custom-component.d.ts +0 -0
- package/{dist/angular-formio/custom-component → custom-component}/register-custom-component.d.ts.map +0 -0
- package/{dist/angular-formio/elements.common.d.ts → elements.common.d.ts} +0 -0
- package/{dist/angular-formio/elements.common.d.ts.map → elements.common.d.ts.map} +0 -0
- package/esm2015/FormioBaseComponent.js +456 -0
- package/esm2015/auth/auth.component.js +9 -0
- package/esm2015/auth/auth.config.js +12 -0
- package/esm2015/auth/auth.module.js +34 -0
- package/{dist/angular-formio/esm2015 → esm2015}/auth/auth.routes.js +0 -0
- package/esm2015/auth/auth.service.js +160 -0
- package/{dist/angular-formio/esm2015 → esm2015}/auth/formio-angular-auth.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/auth/index.js +0 -0
- package/esm2015/auth/login/login.component.js +16 -0
- package/{dist/angular-formio/esm2015 → esm2015}/auth/public_api.js +0 -0
- package/esm2015/auth/register/register.component.js +16 -0
- package/esm2015/auth/resetpass/resetpass.component.js +16 -0
- package/esm2015/components/alerts/formio.alerts.component.js +26 -0
- package/{dist/angular-formio/esm2015 → esm2015}/components/alerts/formio.alerts.js +0 -0
- package/esm2015/components/alerts/parse-html-content.pipe.js +15 -0
- package/esm2015/components/formbuilder/formbuilder.component.js +185 -0
- package/esm2015/components/formio/formio.component.js +39 -0
- package/esm2015/components/loader/formio.loader.component.js +14 -0
- package/{dist/angular-formio/esm2015 → esm2015}/core.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/custom-component/create-custom-component.js +0 -0
- package/esm2015/custom-component/custom-tags.service.js +13 -0
- package/{dist/angular-formio/esm2015 → esm2015}/custom-component/register-custom-component.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/elements.common.js +0 -0
- package/esm2015/formio-angular.js +7 -0
- package/{dist/angular-formio/esm2015 → esm2015}/formio-promise.service.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/formio.common.js +0 -0
- package/esm2015/formio.config.js +11 -0
- package/esm2015/formio.module.js +42 -0
- package/{dist/angular-formio/esm2015 → esm2015}/formio.service.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/formio.utils.js +0 -0
- package/esm2015/grid/GridBodyComponent.js +76 -0
- package/esm2015/grid/GridFooterComponent.js +26 -0
- package/esm2015/grid/GridHeaderComponent.js +25 -0
- package/esm2015/grid/form/FormGridBody.component.js +16 -0
- package/esm2015/grid/form/FormGridFooter.component.js +24 -0
- package/esm2015/grid/form/FormGridHeader.component.js +24 -0
- package/{dist/angular-formio/esm2015 → esm2015}/grid/form/index.js +0 -0
- package/esm2015/grid/form/time-since.pipe.js +33 -0
- package/esm2015/grid/formio-angular-grid.js +6 -0
- package/esm2015/grid/grid.component.js +211 -0
- package/esm2015/grid/grid.module.js +61 -0
- package/esm2015/grid/grid.service.js +16 -0
- package/{dist/angular-formio/esm2015 → esm2015}/grid/index.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/grid/public_api.js +0 -0
- package/esm2015/grid/submission/SubmissionGridBody.component.js +40 -0
- package/esm2015/grid/submission/SubmissionGridFooter.component.js +21 -0
- package/esm2015/grid/submission/SubmissionGridHeader.component.js +58 -0
- package/{dist/angular-formio/esm2015 → esm2015}/grid/submission/index.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/grid/types/grid-column.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/grid/types/grid-footer-positions.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/grid/types/grid-header.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/index.js +0 -0
- package/esm2015/manager/create/create.component.js +13 -0
- package/esm2015/manager/delete/delete.component.js +42 -0
- package/esm2015/manager/edit/edit.component.js +109 -0
- package/esm2015/manager/form/form.component.js +73 -0
- package/esm2015/manager/form-manager.config.js +12 -0
- package/esm2015/manager/form-manager.module.js +56 -0
- package/{dist/angular-formio/esm2015 → esm2015}/manager/form-manager.routes.js +0 -0
- package/esm2015/manager/form-manager.service.js +180 -0
- package/{dist/angular-formio/esm2015 → esm2015}/manager/formio-angular-manager.js +0 -0
- package/esm2015/manager/index/index.component.js +86 -0
- package/{dist/angular-formio/esm2015 → esm2015}/manager/index.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/manager/public_api.js +0 -0
- package/esm2015/manager/submission/delete/delete.component.js +32 -0
- package/esm2015/manager/submission/edit/edit.component.js +24 -0
- package/esm2015/manager/submission/index/index.component.js +24 -0
- package/esm2015/manager/submission/submission/submission.component.js +27 -0
- package/esm2015/manager/submission/view/view.component.js +16 -0
- package/esm2015/manager/view/view.component.js +45 -0
- package/{dist/angular-formio/esm2015 → esm2015}/public-api.js +0 -0
- package/esm2015/resource/create/create.component.js +40 -0
- package/esm2015/resource/delete/delete.component.js +29 -0
- package/esm2015/resource/edit/edit.component.js +39 -0
- package/{dist/angular-formio/esm2015 → esm2015}/resource/formio-angular-resource.js +0 -0
- package/esm2015/resource/index/index.component.js +65 -0
- package/{dist/angular-formio/esm2015 → esm2015}/resource/index.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/resource/public_api.js +0 -0
- package/esm2015/resource/resource.component.js +48 -0
- package/esm2015/resource/resource.config.js +12 -0
- package/esm2015/resource/resource.module.js +44 -0
- package/{dist/angular-formio/esm2015 → esm2015}/resource/resource.routes.js +0 -0
- package/esm2015/resource/resource.service.js +187 -0
- package/esm2015/resource/resources.service.js +22 -0
- package/esm2015/resource/view/view.component.js +24 -0
- package/{dist/angular-formio/esm2015 → esm2015}/types/alerts-position.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/types/formio-metadata.js +0 -0
- package/{dist/angular-formio/esm2015 → esm2015}/types/formio-submission.js +0 -0
- package/{dist/angular-formio/fesm2015 → fesm2015}/formio-angular-auth.js +45 -108
- package/fesm2015/formio-angular-auth.js.map +1 -0
- package/fesm2015/formio-angular-grid.js +624 -0
- package/fesm2015/formio-angular-grid.js.map +1 -0
- package/fesm2015/formio-angular-manager.js +750 -0
- package/fesm2015/formio-angular-manager.js.map +1 -0
- package/fesm2015/formio-angular-resource.js +515 -0
- package/fesm2015/formio-angular-resource.js.map +1 -0
- package/fesm2015/formio-angular.js +1073 -0
- package/fesm2015/formio-angular.js.map +1 -0
- package/formio-angular.d.ts +7 -0
- package/formio-angular.d.ts.map +1 -0
- package/formio-angular.metadata.json +1 -0
- package/{dist/angular-formio/formio-promise.service.d.ts → formio-promise.service.d.ts} +0 -0
- package/{dist/angular-formio/formio-promise.service.d.ts.map → formio-promise.service.d.ts.map} +0 -0
- package/{dist/angular-formio/formio.common.d.ts → formio.common.d.ts} +0 -0
- package/{dist/angular-formio/formio.common.d.ts.map → formio.common.d.ts.map} +0 -0
- package/formio.config.d.ts +7 -0
- package/formio.config.d.ts.map +1 -0
- package/formio.config.ngfactory.d.ts.map +1 -0
- package/formio.module.d.ts +3 -0
- package/{dist/angular-formio/formio.module.d.ts.map → formio.module.d.ts.map} +1 -1
- package/formio.module.ngfactory.d.ts.map +1 -0
- package/{dist/angular-formio/formio.service.d.ts → formio.service.d.ts} +0 -0
- package/{dist/angular-formio/formio.service.d.ts.map → formio.service.d.ts.map} +0 -0
- package/{dist/angular-formio/formio.utils.d.ts → formio.utils.d.ts} +0 -0
- package/{dist/angular-formio/formio.utils.d.ts.map → formio.utils.d.ts.map} +0 -0
- package/{dist/angular-formio/grid → grid}/GridBodyComponent.d.ts +0 -3
- package/grid/GridBodyComponent.d.ts.map +1 -0
- package/grid/GridBodyComponent.ngfactory.d.ts.map +1 -0
- package/{dist/angular-formio/grid → grid}/GridFooterComponent.d.ts +0 -3
- package/grid/GridFooterComponent.d.ts.map +1 -0
- package/grid/GridFooterComponent.ngfactory.d.ts.map +1 -0
- package/{dist/angular-formio/grid → grid}/GridHeaderComponent.d.ts +0 -3
- package/grid/GridHeaderComponent.d.ts.map +1 -0
- package/grid/GridHeaderComponent.ngfactory.d.ts.map +1 -0
- package/grid/form/FormGridBody.component.d.ts +6 -0
- package/{dist/angular-formio/grid → grid}/form/FormGridBody.component.d.ts.map +1 -1
- package/grid/form/FormGridBody.component.ngfactory.d.ts.map +1 -0
- package/grid/form/FormGridBody.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/grid/form/FormGridFooter.component.d.ts +7 -0
- package/{dist/angular-formio/grid → grid}/form/FormGridFooter.component.d.ts.map +1 -1
- package/grid/form/FormGridFooter.component.ngfactory.d.ts.map +1 -0
- package/{dist/angular-formio/grid → grid}/form/FormGridHeader.component.d.ts +0 -3
- package/{dist/angular-formio/grid → grid}/form/FormGridHeader.component.d.ts.map +1 -1
- package/grid/form/FormGridHeader.component.ngfactory.d.ts.map +1 -0
- package/{dist/angular-formio/grid → grid}/form/index.d.ts +0 -0
- package/{dist/angular-formio/grid → grid}/form/index.d.ts.map +0 -0
- package/grid/form/time-since.pipe.d.ts +5 -0
- package/{dist/angular-formio/grid → grid}/form/time-since.pipe.d.ts.map +1 -1
- package/grid/form/time-since.pipe.ngfactory.d.ts.map +1 -0
- package/grid/formio-angular-grid.d.ts +6 -0
- package/{dist/angular-formio/grid → grid}/formio-angular-grid.d.ts.map +1 -1
- package/grid/formio-angular-grid.metadata.json +1 -0
- package/{dist/angular-formio/grid → grid}/grid.component.d.ts +0 -3
- package/grid/grid.component.d.ts.map +1 -0
- package/grid/grid.component.ngfactory.d.ts.map +1 -0
- package/grid/grid.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/grid/grid.footer.scss.ngstyle.d.ts.map +1 -0
- package/grid/grid.module.d.ts +3 -0
- package/{dist/angular-formio/grid → grid}/grid.module.d.ts.map +1 -1
- package/grid/grid.module.ngfactory.d.ts.map +1 -0
- package/grid/grid.service.d.ts +7 -0
- package/grid/grid.service.d.ts.map +1 -0
- package/grid/grid.service.ngfactory.d.ts.map +1 -0
- package/{dist/angular-formio/grid → grid}/index.d.ts +0 -0
- package/{dist/angular-formio/grid → grid}/index.d.ts.map +0 -0
- package/{dist/angular-formio/grid → grid}/package.json +1 -0
- package/{dist/angular-formio/grid → grid}/public_api.d.ts +0 -0
- package/{dist/angular-formio/grid → grid}/public_api.d.ts.map +0 -0
- package/{dist/angular-formio/grid → grid}/submission/SubmissionGridBody.component.d.ts +0 -3
- package/{dist/angular-formio/grid → grid}/submission/SubmissionGridBody.component.d.ts.map +1 -1
- package/grid/submission/SubmissionGridBody.component.ngfactory.d.ts.map +1 -0
- package/grid/submission/SubmissionGridFooter.component.d.ts +7 -0
- package/{dist/angular-formio/grid → grid}/submission/SubmissionGridFooter.component.d.ts.map +1 -1
- package/grid/submission/SubmissionGridFooter.component.ngfactory.d.ts.map +1 -0
- package/{dist/angular-formio/grid → grid}/submission/SubmissionGridHeader.component.d.ts +0 -3
- package/grid/submission/SubmissionGridHeader.component.d.ts.map +1 -0
- package/grid/submission/SubmissionGridHeader.component.ngfactory.d.ts.map +1 -0
- package/{dist/angular-formio/grid → grid}/submission/index.d.ts +0 -0
- package/{dist/angular-formio/grid → grid}/submission/index.d.ts.map +0 -0
- package/{dist/angular-formio/grid → grid}/types/grid-column.d.ts +0 -0
- package/{dist/angular-formio/grid → grid}/types/grid-column.d.ts.map +0 -0
- package/{dist/angular-formio/grid → grid}/types/grid-footer-positions.d.ts +0 -0
- package/{dist/angular-formio/grid → grid}/types/grid-footer-positions.d.ts.map +0 -0
- package/{dist/angular-formio/grid → grid}/types/grid-header.d.ts +0 -0
- package/{dist/angular-formio/grid → grid}/types/grid-header.d.ts.map +0 -0
- package/{dist/angular-formio/index.d.ts → index.d.ts} +0 -0
- package/{dist/angular-formio/index.d.ts.map → index.d.ts.map} +0 -0
- package/manager/create/create.component.d.ts +6 -0
- package/{dist/angular-formio/manager → manager}/create/create.component.d.ts.map +1 -1
- package/{dist/angular-formio/manager → manager}/delete/delete.component.d.ts +0 -3
- package/manager/delete/delete.component.d.ts.map +1 -0
- package/{dist/angular-formio/manager → manager}/edit/edit.component.d.ts +0 -3
- package/manager/edit/edit.component.d.ts.map +1 -0
- package/{dist/angular-formio/manager → manager}/form/form.component.d.ts +0 -3
- package/manager/form/form.component.d.ts.map +1 -0
- package/{dist/angular-formio/manager → manager}/form-manager.config.d.ts +0 -3
- package/manager/form-manager.config.d.ts.map +1 -0
- package/manager/form-manager.module.d.ts +6 -0
- package/manager/form-manager.module.d.ts.map +1 -0
- package/{dist/angular-formio/manager → manager}/form-manager.routes.d.ts +0 -0
- package/{dist/angular-formio/manager → manager}/form-manager.routes.d.ts.map +0 -0
- package/{dist/angular-formio/manager → manager}/form-manager.service.d.ts +0 -3
- package/manager/form-manager.service.d.ts.map +1 -0
- package/manager/formio-angular-manager.d.ts +5 -0
- package/{dist/angular-formio/manager → manager}/formio-angular-manager.d.ts.map +1 -1
- package/manager/formio-angular-manager.metadata.json +1 -0
- package/{dist/angular-formio/manager → manager}/index/index.component.d.ts +0 -3
- package/manager/index/index.component.d.ts.map +1 -0
- package/{dist/angular-formio/manager → manager}/index.d.ts +0 -0
- package/{dist/angular-formio/manager → manager}/index.d.ts.map +0 -0
- package/{dist/angular-formio/manager → manager}/package.json +1 -0
- package/{dist/angular-formio/manager → manager}/public_api.d.ts +0 -0
- package/{dist/angular-formio/manager → manager}/public_api.d.ts.map +0 -0
- package/{dist/angular-formio/manager → manager}/submission/delete/delete.component.d.ts +0 -3
- package/{dist/angular-formio/manager → manager}/submission/delete/delete.component.d.ts.map +1 -1
- package/{dist/angular-formio/manager → manager}/submission/edit/edit.component.d.ts +0 -3
- package/{dist/angular-formio/manager → manager}/submission/edit/edit.component.d.ts.map +1 -1
- package/{dist/angular-formio/manager → manager}/submission/index/index.component.d.ts +0 -3
- package/{dist/angular-formio/manager → manager}/submission/index/index.component.d.ts.map +1 -1
- package/{dist/angular-formio/manager → manager}/submission/submission/submission.component.d.ts +0 -3
- package/{dist/angular-formio/manager → manager}/submission/submission/submission.component.d.ts.map +1 -1
- package/manager/submission/view/view.component.d.ts +6 -0
- package/{dist/angular-formio/manager → manager}/submission/view/view.component.d.ts.map +1 -1
- package/{dist/angular-formio/manager → manager}/view/view.component.d.ts +0 -3
- package/manager/view/view.component.d.ts.map +1 -0
- package/package.json +27 -51
- package/{dist/angular-formio/public-api.d.ts → public-api.d.ts} +0 -0
- package/{dist/angular-formio/public-api.d.ts.map → public-api.d.ts.map} +0 -0
- package/{dist/angular-formio/resource → resource}/create/create.component.d.ts +0 -3
- package/resource/create/create.component.d.ts.map +1 -0
- package/{dist/angular-formio/resource → resource}/delete/delete.component.d.ts +0 -3
- package/{dist/angular-formio/resource → resource}/delete/delete.component.d.ts.map +1 -1
- package/{dist/angular-formio/resource → resource}/edit/edit.component.d.ts +0 -3
- package/resource/edit/edit.component.d.ts.map +1 -0
- package/resource/formio-angular-resource.d.ts +5 -0
- package/{dist/angular-formio/resource → resource}/formio-angular-resource.d.ts.map +1 -1
- package/resource/formio-angular-resource.metadata.json +1 -0
- package/{dist/angular-formio/resource → resource}/index/index.component.d.ts +0 -3
- package/resource/index/index.component.d.ts.map +1 -0
- package/{dist/angular-formio/resource → resource}/index.d.ts +0 -0
- package/{dist/angular-formio/resource → resource}/index.d.ts.map +0 -0
- package/{dist/angular-formio/resource → resource}/package.json +1 -0
- package/{dist/angular-formio/resource → resource}/public_api.d.ts +0 -0
- package/{dist/angular-formio/resource → resource}/public_api.d.ts.map +0 -0
- package/{dist/angular-formio/resource → resource}/resource.component.d.ts +0 -3
- package/{dist/angular-formio/resource → resource}/resource.component.d.ts.map +1 -1
- package/{dist/angular-formio/resource → resource}/resource.config.d.ts +0 -3
- package/resource/resource.config.d.ts.map +1 -0
- package/resource/resource.module.d.ts +6 -0
- package/resource/resource.module.d.ts.map +1 -0
- package/{dist/angular-formio/resource → resource}/resource.routes.d.ts +0 -0
- package/{dist/angular-formio/resource → resource}/resource.routes.d.ts.map +0 -0
- package/{dist/angular-formio/resource → resource}/resource.service.d.ts +0 -3
- package/resource/resource.service.d.ts.map +1 -0
- package/{dist/angular-formio/resource → resource}/resources.service.d.ts +0 -3
- package/resource/resources.service.d.ts.map +1 -0
- package/{dist/angular-formio/resource → resource}/view/view.component.d.ts +0 -3
- package/{dist/angular-formio/resource → resource}/view/view.component.d.ts.map +1 -1
- package/{dist/angular-formio/types → types}/alerts-position.d.ts +0 -0
- package/{dist/angular-formio/types → types}/alerts-position.d.ts.map +0 -0
- package/{dist/angular-formio/types → types}/formio-metadata.d.ts +0 -0
- package/{dist/angular-formio/types → types}/formio-metadata.d.ts.map +0 -0
- package/{dist/angular-formio/types → types}/formio-submission.d.ts +0 -0
- package/{dist/angular-formio/types → types}/formio-submission.d.ts.map +0 -0
- package/.dockerignore +0 -5
- package/.editorconfig +0 -13
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
- package/.github/ISSUE_TEMPLATE/custom-components-support-request.md +0 -15
- package/.github/ISSUE_TEMPLATE/question.md +0 -8
- package/.travis.yml +0 -4
- package/.yo-rc.json +0 -7
- package/CHANGELOG.md +0 -1008
- package/Dockerfile +0 -20
- package/LICENSE +0 -21
- package/angular.json +0 -51
- package/bs-config.json +0 -11
- package/dist/angular-formio/FormioBaseComponent.d.ts.map +0 -1
- package/dist/angular-formio/README.md +0 -24
- package/dist/angular-formio/auth/auth.component.d.ts +0 -6
- package/dist/angular-formio/auth/auth.config.d.ts.map +0 -1
- package/dist/angular-formio/auth/auth.module.d.ts +0 -17
- package/dist/angular-formio/auth/auth.module.d.ts.map +0 -1
- package/dist/angular-formio/auth/auth.service.d.ts.map +0 -1
- package/dist/angular-formio/auth/formio-angular-auth.d.ts +0 -6
- package/dist/angular-formio/auth/login/login.component.d.ts +0 -9
- package/dist/angular-formio/auth/register/register.component.d.ts +0 -9
- package/dist/angular-formio/auth/resetpass/resetpass.component.d.ts +0 -9
- package/dist/angular-formio/bundles/formio-angular-auth.umd.js +0 -421
- package/dist/angular-formio/bundles/formio-angular-auth.umd.js.map +0 -1
- package/dist/angular-formio/bundles/formio-angular-grid.umd.js +0 -1725
- package/dist/angular-formio/bundles/formio-angular-grid.umd.js.map +0 -1
- package/dist/angular-formio/bundles/formio-angular-manager.umd.js +0 -1648
- package/dist/angular-formio/bundles/formio-angular-manager.umd.js.map +0 -1
- package/dist/angular-formio/bundles/formio-angular-resource.umd.js +0 -720
- package/dist/angular-formio/bundles/formio-angular-resource.umd.js.map +0 -1
- package/dist/angular-formio/bundles/formio-angular.umd.js +0 -1729
- package/dist/angular-formio/bundles/formio-angular.umd.js.map +0 -1
- package/dist/angular-formio/components/alerts/formio.alerts.component.d.ts +0 -12
- package/dist/angular-formio/components/alerts/parse-html-content.pipe.d.ts +0 -8
- package/dist/angular-formio/components/formbuilder/formbuilder.component.d.ts.map +0 -1
- package/dist/angular-formio/components/loader/formio.loader.component.d.ts +0 -7
- package/dist/angular-formio/components/loader/formio.loader.component.d.ts.map +0 -1
- package/dist/angular-formio/custom-component/custom-tags.service.d.ts +0 -8
- package/dist/angular-formio/custom-component/custom-tags.service.d.ts.map +0 -1
- package/dist/angular-formio/esm2015/FormioBaseComponent.js +0 -497
- package/dist/angular-formio/esm2015/auth/auth.component.js +0 -39
- package/dist/angular-formio/esm2015/auth/auth.config.js +0 -15
- package/dist/angular-formio/esm2015/auth/auth.module.js +0 -49
- package/dist/angular-formio/esm2015/auth/auth.service.js +0 -159
- package/dist/angular-formio/esm2015/auth/login/login.component.js +0 -24
- package/dist/angular-formio/esm2015/auth/register/register.component.js +0 -24
- package/dist/angular-formio/esm2015/auth/resetpass/resetpass.component.js +0 -24
- package/dist/angular-formio/esm2015/components/alerts/formio.alerts.component.js +0 -49
- package/dist/angular-formio/esm2015/components/alerts/parse-html-content.pipe.js +0 -19
- package/dist/angular-formio/esm2015/components/formbuilder/formbuilder.component.js +0 -203
- package/dist/angular-formio/esm2015/components/formio/formio.component.js +0 -87
- package/dist/angular-formio/esm2015/components/loader/formio.loader.component.js +0 -27
- package/dist/angular-formio/esm2015/custom-component/custom-tags.service.js +0 -16
- package/dist/angular-formio/esm2015/formio-angular.js +0 -5
- package/dist/angular-formio/esm2015/formio.config.js +0 -14
- package/dist/angular-formio/esm2015/formio.module.js +0 -61
- package/dist/angular-formio/esm2015/grid/GridBodyComponent.js +0 -86
- package/dist/angular-formio/esm2015/grid/GridFooterComponent.js +0 -41
- package/dist/angular-formio/esm2015/grid/GridHeaderComponent.js +0 -35
- package/dist/angular-formio/esm2015/grid/form/FormGridBody.component.js +0 -130
- package/dist/angular-formio/esm2015/grid/form/FormGridFooter.component.js +0 -118
- package/dist/angular-formio/esm2015/grid/form/FormGridHeader.component.js +0 -65
- package/dist/angular-formio/esm2015/grid/form/time-since.pipe.js +0 -37
- package/dist/angular-formio/esm2015/grid/formio-angular-grid.js +0 -5
- package/dist/angular-formio/esm2015/grid/grid.component.js +0 -302
- package/dist/angular-formio/esm2015/grid/grid.module.js +0 -90
- package/dist/angular-formio/esm2015/grid/grid.service.js +0 -18
- package/dist/angular-formio/esm2015/grid/submission/SubmissionGridBody.component.js +0 -75
- package/dist/angular-formio/esm2015/grid/submission/SubmissionGridFooter.component.js +0 -107
- package/dist/angular-formio/esm2015/grid/submission/SubmissionGridHeader.component.js +0 -99
- package/dist/angular-formio/esm2015/manager/create/create.component.js +0 -68
- package/dist/angular-formio/esm2015/manager/delete/delete.component.js +0 -56
- package/dist/angular-formio/esm2015/manager/edit/edit.component.js +0 -170
- package/dist/angular-formio/esm2015/manager/form/form.component.js +0 -192
- package/dist/angular-formio/esm2015/manager/form-manager.config.js +0 -15
- package/dist/angular-formio/esm2015/manager/form-manager.module.js +0 -86
- package/dist/angular-formio/esm2015/manager/form-manager.service.js +0 -178
- package/dist/angular-formio/esm2015/manager/index/index.component.js +0 -130
- package/dist/angular-formio/esm2015/manager/submission/delete/delete.component.js +0 -47
- package/dist/angular-formio/esm2015/manager/submission/edit/edit.component.js +0 -30
- package/dist/angular-formio/esm2015/manager/submission/index/index.component.js +0 -30
- package/dist/angular-formio/esm2015/manager/submission/submission/submission.component.js +0 -75
- package/dist/angular-formio/esm2015/manager/submission/view/view.component.js +0 -24
- package/dist/angular-formio/esm2015/manager/view/view.component.js +0 -57
- package/dist/angular-formio/esm2015/resource/create/create.component.js +0 -61
- package/dist/angular-formio/esm2015/resource/delete/delete.component.js +0 -42
- package/dist/angular-formio/esm2015/resource/edit/edit.component.js +0 -44
- package/dist/angular-formio/esm2015/resource/index/index.component.js +0 -72
- package/dist/angular-formio/esm2015/resource/resource.component.js +0 -83
- package/dist/angular-formio/esm2015/resource/resource.config.js +0 -15
- package/dist/angular-formio/esm2015/resource/resource.module.js +0 -65
- package/dist/angular-formio/esm2015/resource/resource.service.js +0 -186
- package/dist/angular-formio/esm2015/resource/resources.service.js +0 -22
- package/dist/angular-formio/esm2015/resource/view/view.component.js +0 -29
- package/dist/angular-formio/fesm2015/formio-angular-auth.js.map +0 -1
- package/dist/angular-formio/fesm2015/formio-angular-grid.js +0 -1175
- package/dist/angular-formio/fesm2015/formio-angular-grid.js.map +0 -1
- package/dist/angular-formio/fesm2015/formio-angular-manager.js +0 -1145
- package/dist/angular-formio/fesm2015/formio-angular-manager.js.map +0 -1
- package/dist/angular-formio/fesm2015/formio-angular-resource.js +0 -612
- package/dist/angular-formio/fesm2015/formio-angular-resource.js.map +0 -1
- package/dist/angular-formio/fesm2015/formio-angular.js +0 -1232
- package/dist/angular-formio/fesm2015/formio-angular.js.map +0 -1
- package/dist/angular-formio/formio-angular.d.ts +0 -6
- package/dist/angular-formio/formio-angular.d.ts.map +0 -1
- package/dist/angular-formio/formio.config.d.ts +0 -10
- package/dist/angular-formio/formio.config.d.ts.map +0 -1
- package/dist/angular-formio/formio.module.d.ts +0 -14
- package/dist/angular-formio/grid/GridBodyComponent.d.ts.map +0 -1
- package/dist/angular-formio/grid/GridFooterComponent.d.ts.map +0 -1
- package/dist/angular-formio/grid/GridHeaderComponent.d.ts.map +0 -1
- package/dist/angular-formio/grid/form/FormGridBody.component.d.ts +0 -9
- package/dist/angular-formio/grid/form/FormGridFooter.component.d.ts +0 -10
- package/dist/angular-formio/grid/form/time-since.pipe.d.ts +0 -8
- package/dist/angular-formio/grid/formio-angular-grid.d.ts +0 -6
- package/dist/angular-formio/grid/grid.component.d.ts.map +0 -1
- package/dist/angular-formio/grid/grid.module.d.ts +0 -23
- package/dist/angular-formio/grid/grid.service.d.ts +0 -10
- package/dist/angular-formio/grid/grid.service.d.ts.map +0 -1
- package/dist/angular-formio/grid/submission/SubmissionGridFooter.component.d.ts +0 -10
- package/dist/angular-formio/grid/submission/SubmissionGridHeader.component.d.ts.map +0 -1
- package/dist/angular-formio/manager/create/create.component.d.ts +0 -9
- package/dist/angular-formio/manager/delete/delete.component.d.ts.map +0 -1
- package/dist/angular-formio/manager/edit/edit.component.d.ts.map +0 -1
- package/dist/angular-formio/manager/form/form.component.d.ts.map +0 -1
- package/dist/angular-formio/manager/form-manager.config.d.ts.map +0 -1
- package/dist/angular-formio/manager/form-manager.module.d.ts +0 -28
- package/dist/angular-formio/manager/form-manager.module.d.ts.map +0 -1
- package/dist/angular-formio/manager/form-manager.service.d.ts.map +0 -1
- package/dist/angular-formio/manager/formio-angular-manager.d.ts +0 -6
- package/dist/angular-formio/manager/index/index.component.d.ts.map +0 -1
- package/dist/angular-formio/manager/submission/view/view.component.d.ts +0 -9
- package/dist/angular-formio/manager/view/view.component.d.ts.map +0 -1
- package/dist/angular-formio/package.json +0 -49
- package/dist/angular-formio/resource/create/create.component.d.ts.map +0 -1
- package/dist/angular-formio/resource/edit/edit.component.d.ts.map +0 -1
- package/dist/angular-formio/resource/formio-angular-resource.d.ts +0 -6
- package/dist/angular-formio/resource/index/index.component.d.ts.map +0 -1
- package/dist/angular-formio/resource/resource.config.d.ts.map +0 -1
- package/dist/angular-formio/resource/resource.module.d.ts +0 -20
- package/dist/angular-formio/resource/resource.module.d.ts.map +0 -1
- package/dist/angular-formio/resource/resource.service.d.ts.map +0 -1
- package/dist/angular-formio/resource/resources.service.d.ts.map +0 -1
- package/projects/angular-formio/README.md +0 -24
- package/projects/angular-formio/auth/package.json +0 -10
- package/projects/angular-formio/auth/src/auth.component.html +0 -12
- package/projects/angular-formio/auth/src/auth.component.ts +0 -5
- package/projects/angular-formio/auth/src/auth.config.ts +0 -72
- package/projects/angular-formio/auth/src/auth.module.ts +0 -33
- package/projects/angular-formio/auth/src/auth.routes.ts +0 -34
- package/projects/angular-formio/auth/src/auth.service.ts +0 -201
- package/projects/angular-formio/auth/src/index.ts +0 -8
- package/projects/angular-formio/auth/src/login/login.component.html +0 -1
- package/projects/angular-formio/auth/src/login/login.component.ts +0 -8
- package/projects/angular-formio/auth/src/public_api.ts +0 -5
- package/projects/angular-formio/auth/src/register/register.component.html +0 -1
- package/projects/angular-formio/auth/src/register/register.component.ts +0 -8
- package/projects/angular-formio/auth/src/resetpass/resetpass.component.html +0 -1
- package/projects/angular-formio/auth/src/resetpass/resetpass.component.ts +0 -8
- package/projects/angular-formio/grid/package.json +0 -11
- package/projects/angular-formio/grid/src/GridBodyComponent.ts +0 -80
- package/projects/angular-formio/grid/src/GridFooterComponent.ts +0 -25
- package/projects/angular-formio/grid/src/GridHeaderComponent.ts +0 -25
- package/projects/angular-formio/grid/src/form/FormGridBody.component.html +0 -23
- package/projects/angular-formio/grid/src/form/FormGridBody.component.scss +0 -4
- package/projects/angular-formio/grid/src/form/FormGridBody.component.ts +0 -15
- package/projects/angular-formio/grid/src/form/FormGridFooter.component.html +0 -21
- package/projects/angular-formio/grid/src/form/FormGridFooter.component.ts +0 -23
- package/projects/angular-formio/grid/src/form/FormGridHeader.component.html +0 -18
- package/projects/angular-formio/grid/src/form/FormGridHeader.component.ts +0 -24
- package/projects/angular-formio/grid/src/form/index.ts +0 -8
- package/projects/angular-formio/grid/src/form/time-since.pipe.ts +0 -31
- package/projects/angular-formio/grid/src/grid.component.html +0 -18
- package/projects/angular-formio/grid/src/grid.component.scss +0 -9
- package/projects/angular-formio/grid/src/grid.component.ts +0 -242
- package/projects/angular-formio/grid/src/grid.footer.scss +0 -14
- package/projects/angular-formio/grid/src/grid.module.ts +0 -57
- package/projects/angular-formio/grid/src/grid.service.ts +0 -16
- package/projects/angular-formio/grid/src/index.ts +0 -12
- package/projects/angular-formio/grid/src/public_api.ts +0 -5
- package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.html +0 -7
- package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.ts +0 -39
- package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.html +0 -18
- package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.ts +0 -20
- package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.html +0 -11
- package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.ts +0 -72
- package/projects/angular-formio/grid/src/submission/index.ts +0 -8
- package/projects/angular-formio/grid/src/types/grid-column.ts +0 -7
- package/projects/angular-formio/grid/src/types/grid-footer-positions.ts +0 -5
- package/projects/angular-formio/grid/src/types/grid-header.ts +0 -14
- package/projects/angular-formio/karma.conf.js +0 -32
- package/projects/angular-formio/manager/package.json +0 -15
- package/projects/angular-formio/manager/src/create/create.component.ts +0 -11
- package/projects/angular-formio/manager/src/delete/delete.component.html +0 -6
- package/projects/angular-formio/manager/src/delete/delete.component.ts +0 -37
- package/projects/angular-formio/manager/src/edit/edit.component.html +0 -19
- package/projects/angular-formio/manager/src/edit/edit.component.ts +0 -107
- package/projects/angular-formio/manager/src/form/form.component.html +0 -32
- package/projects/angular-formio/manager/src/form/form.component.ts +0 -73
- package/projects/angular-formio/manager/src/form-manager.config.ts +0 -26
- package/projects/angular-formio/manager/src/form-manager.module.ts +0 -54
- package/projects/angular-formio/manager/src/form-manager.routes.ts +0 -75
- package/projects/angular-formio/manager/src/form-manager.service.ts +0 -195
- package/projects/angular-formio/manager/src/index/index.component.html +0 -14
- package/projects/angular-formio/manager/src/index/index.component.scss +0 -22
- package/projects/angular-formio/manager/src/index/index.component.ts +0 -84
- package/projects/angular-formio/manager/src/index.ts +0 -16
- package/projects/angular-formio/manager/src/public_api.ts +0 -5
- package/projects/angular-formio/manager/src/submission/delete/delete.component.html +0 -6
- package/projects/angular-formio/manager/src/submission/delete/delete.component.ts +0 -26
- package/projects/angular-formio/manager/src/submission/edit/edit.component.html +0 -7
- package/projects/angular-formio/manager/src/submission/edit/edit.component.ts +0 -18
- package/projects/angular-formio/manager/src/submission/index/index.component.html +0 -1
- package/projects/angular-formio/manager/src/submission/index/index.component.ts +0 -18
- package/projects/angular-formio/manager/src/submission/submission/submission.component.html +0 -8
- package/projects/angular-formio/manager/src/submission/submission/submission.component.ts +0 -24
- package/projects/angular-formio/manager/src/submission/view/view.component.html +0 -7
- package/projects/angular-formio/manager/src/submission/view/view.component.ts +0 -9
- package/projects/angular-formio/manager/src/view/view.component.html +0 -10
- package/projects/angular-formio/manager/src/view/view.component.ts +0 -41
- package/projects/angular-formio/ng-package.json +0 -14
- package/projects/angular-formio/package.json +0 -39
- package/projects/angular-formio/resource/package.json +0 -11
- package/projects/angular-formio/resource/src/create/create.component.html +0 -13
- package/projects/angular-formio/resource/src/create/create.component.scss +0 -3
- package/projects/angular-formio/resource/src/create/create.component.ts +0 -37
- package/projects/angular-formio/resource/src/delete/delete.component.html +0 -5
- package/projects/angular-formio/resource/src/delete/delete.component.ts +0 -24
- package/projects/angular-formio/resource/src/edit/edit.component.html +0 -6
- package/projects/angular-formio/resource/src/edit/edit.component.ts +0 -33
- package/projects/angular-formio/resource/src/index/index.component.html +0 -10
- package/projects/angular-formio/resource/src/index/index.component.ts +0 -66
- package/projects/angular-formio/resource/src/index.js +0 -24
- package/projects/angular-formio/resource/src/index.ts +0 -11
- package/projects/angular-formio/resource/src/public_api.ts +0 -5
- package/projects/angular-formio/resource/src/resource.component.html +0 -7
- package/projects/angular-formio/resource/src/resource.component.ts +0 -48
- package/projects/angular-formio/resource/src/resource.config.ts +0 -17
- package/projects/angular-formio/resource/src/resource.module.ts +0 -43
- package/projects/angular-formio/resource/src/resource.routes.ts +0 -43
- package/projects/angular-formio/resource/src/resource.service.ts +0 -232
- package/projects/angular-formio/resource/src/resources.service.ts +0 -24
- package/projects/angular-formio/resource/src/view/view.component.html +0 -6
- package/projects/angular-formio/resource/src/view/view.component.ts +0 -19
- package/projects/angular-formio/src/FormioBaseComponent.ts +0 -507
- package/projects/angular-formio/src/components/alerts/formio.alerts.component.html +0 -3
- package/projects/angular-formio/src/components/alerts/formio.alerts.component.ts +0 -19
- package/projects/angular-formio/src/components/alerts/formio.alerts.ts +0 -21
- package/projects/angular-formio/src/components/alerts/parse-html-content.pipe.ts +0 -15
- package/projects/angular-formio/src/components/formbuilder/formbuilder.component.html +0 -1
- package/projects/angular-formio/src/components/formbuilder/formbuilder.component.ts +0 -216
- package/projects/angular-formio/src/components/formio/formio.component.html +0 -8
- package/projects/angular-formio/src/components/formio/formio.component.ts +0 -33
- package/projects/angular-formio/src/components/loader/formio.loader.component.html +0 -3
- package/projects/angular-formio/src/components/loader/formio.loader.component.scss +0 -26
- package/projects/angular-formio/src/components/loader/formio.loader.component.ts +0 -10
- package/projects/angular-formio/src/core.ts +0 -21
- package/projects/angular-formio/src/custom-component/create-custom-component.ts +0 -173
- package/projects/angular-formio/src/custom-component/custom-tags.service.ts +0 -10
- package/projects/angular-formio/src/custom-component/register-custom-component.ts +0 -41
- package/projects/angular-formio/src/elements.common.ts +0 -31
- package/projects/angular-formio/src/formio-promise.service.ts +0 -36
- package/projects/angular-formio/src/formio.common.ts +0 -81
- package/projects/angular-formio/src/formio.config.ts +0 -9
- package/projects/angular-formio/src/formio.module.ts +0 -39
- package/projects/angular-formio/src/formio.service.ts +0 -57
- package/projects/angular-formio/src/formio.utils.ts +0 -23
- package/projects/angular-formio/src/index.ts +0 -5
- package/projects/angular-formio/src/public-api.ts +0 -5
- package/projects/angular-formio/src/test.ts +0 -26
- package/projects/angular-formio/src/types/alerts-position.ts +0 -6
- package/projects/angular-formio/src/types/formio-metadata.ts +0 -10
- package/projects/angular-formio/src/types/formio-submission.ts +0 -20
- package/projects/angular-formio/tsconfig.lib.json +0 -27
- package/projects/angular-formio/tsconfig.lib.prod.json +0 -8
- package/projects/angular-formio/tsconfig.spec.json +0 -17
- package/projects/angular-formio/tslint.json +0 -17
- package/tsconfig.json +0 -28
- package/tslint.json +0 -140
|
@@ -1,1175 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, TemplateRef, Component, Input, Output, ViewChild, Injectable, Pipe, ViewEncapsulation, ViewContainerRef, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i3 from '@angular/forms';
|
|
6
|
-
import { FormsModule } from '@angular/forms';
|
|
7
|
-
import * as i2 from '@angular/router';
|
|
8
|
-
import { RouterModule } from '@angular/router';
|
|
9
|
-
import * as i1$1 from '@formio/angular';
|
|
10
|
-
import { FormioPromiseService, FormioAlerts, FormioModule } from '@formio/angular';
|
|
11
|
-
import { each, clone, get } from 'lodash';
|
|
12
|
-
import { Components, Utils, Formio } from 'formiojs';
|
|
13
|
-
import * as i2$1 from 'ngx-bootstrap/pagination';
|
|
14
|
-
import { PaginationModule } from 'ngx-bootstrap/pagination';
|
|
15
|
-
|
|
16
|
-
var GridFooterPositions;
|
|
17
|
-
(function (GridFooterPositions) {
|
|
18
|
-
GridFooterPositions[GridFooterPositions["bottom"] = 0] = "bottom";
|
|
19
|
-
GridFooterPositions[GridFooterPositions["top"] = 1] = "top";
|
|
20
|
-
GridFooterPositions[GridFooterPositions["both"] = 2] = "both";
|
|
21
|
-
})(GridFooterPositions || (GridFooterPositions = {}));
|
|
22
|
-
|
|
23
|
-
class GridHeaderComponent {
|
|
24
|
-
constructor() {
|
|
25
|
-
this.headers = [];
|
|
26
|
-
this.sort = new EventEmitter();
|
|
27
|
-
}
|
|
28
|
-
get numHeaders() {
|
|
29
|
-
return this.headers.length;
|
|
30
|
-
}
|
|
31
|
-
load(formio, query, columns) {
|
|
32
|
-
return Promise.resolve([]);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
GridHeaderComponent.ɵfac = function GridHeaderComponent_Factory(t) { return new (t || GridHeaderComponent)(); };
|
|
36
|
-
GridHeaderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GridHeaderComponent, selectors: [["ng-component"]], viewQuery: function GridHeaderComponent_Query(rf, ctx) { if (rf & 1) {
|
|
37
|
-
i0.ɵɵviewQuery(TemplateRef, 7);
|
|
38
|
-
} if (rf & 2) {
|
|
39
|
-
let _t;
|
|
40
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);
|
|
41
|
-
} }, inputs: { actionAllowed: "actionAllowed" }, outputs: { sort: "sort" }, decls: 0, vars: 0, template: function GridHeaderComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
42
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GridHeaderComponent, [{
|
|
43
|
-
type: Component,
|
|
44
|
-
args: [{
|
|
45
|
-
template: ''
|
|
46
|
-
}]
|
|
47
|
-
}], function () { return []; }, { actionAllowed: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}], sort: [{
|
|
50
|
-
type: Output
|
|
51
|
-
}], template: [{
|
|
52
|
-
type: ViewChild,
|
|
53
|
-
args: [TemplateRef, { static: true }]
|
|
54
|
-
}] }); })();
|
|
55
|
-
|
|
56
|
-
var SortType;
|
|
57
|
-
(function (SortType) {
|
|
58
|
-
SortType["ASC"] = "asc";
|
|
59
|
-
SortType["DESC"] = "desc";
|
|
60
|
-
})(SortType || (SortType = {}));
|
|
61
|
-
|
|
62
|
-
const _c0$3 = function (a0, a1) { return { "glyphicon-triangle-top fa-caret-up": a0, "glyphicon-triangle-bottom fa-caret-down": a1 }; };
|
|
63
|
-
function FormGridHeaderComponent_ng_template_0_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
64
|
-
i0.ɵɵelement(0, "span", 5);
|
|
65
|
-
} if (rf & 2) {
|
|
66
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
67
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(1, _c0$3, ctx_r1.header.sort === "asc", ctx_r1.header.sort === "desc"));
|
|
68
|
-
} }
|
|
69
|
-
function FormGridHeaderComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
70
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
71
|
-
i0.ɵɵelementStart(0, "thead");
|
|
72
|
-
i0.ɵɵelementStart(1, "tr");
|
|
73
|
-
i0.ɵɵelementStart(2, "th");
|
|
74
|
-
i0.ɵɵelementStart(3, "div", 0);
|
|
75
|
-
i0.ɵɵelementStart(4, "div", 1);
|
|
76
|
-
i0.ɵɵelementStart(5, "a", 2);
|
|
77
|
-
i0.ɵɵlistener("click", function FormGridHeaderComponent_ng_template_0_Template_a_click_5_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.sort.emit(ctx_r2.header); });
|
|
78
|
-
i0.ɵɵtext(6);
|
|
79
|
-
i0.ɵɵtemplate(7, FormGridHeaderComponent_ng_template_0_span_7_Template, 1, 4, "span", 3);
|
|
80
|
-
i0.ɵɵelementEnd();
|
|
81
|
-
i0.ɵɵelementEnd();
|
|
82
|
-
i0.ɵɵelementStart(8, "div", 4);
|
|
83
|
-
i0.ɵɵtext(9, " Operations ");
|
|
84
|
-
i0.ɵɵelementEnd();
|
|
85
|
-
i0.ɵɵelementEnd();
|
|
86
|
-
i0.ɵɵelementEnd();
|
|
87
|
-
i0.ɵɵelementEnd();
|
|
88
|
-
i0.ɵɵelementEnd();
|
|
89
|
-
} if (rf & 2) {
|
|
90
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
91
|
-
i0.ɵɵadvance(6);
|
|
92
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.header.label, "\u00A0");
|
|
93
|
-
i0.ɵɵadvance(1);
|
|
94
|
-
i0.ɵɵproperty("ngIf", ctx_r0.header.sort);
|
|
95
|
-
} }
|
|
96
|
-
class FormGridHeaderComponent extends GridHeaderComponent {
|
|
97
|
-
load(formio) {
|
|
98
|
-
this.header = {
|
|
99
|
-
label: 'Title',
|
|
100
|
-
key: 'title',
|
|
101
|
-
sort: SortType.ASC
|
|
102
|
-
};
|
|
103
|
-
this.headers = [this.header];
|
|
104
|
-
return Promise.resolve(this.headers);
|
|
105
|
-
}
|
|
106
|
-
get numHeaders() {
|
|
107
|
-
return 2;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
FormGridHeaderComponent.ɵfac = /*@__PURE__*/ function () { let ɵFormGridHeaderComponent_BaseFactory; return function FormGridHeaderComponent_Factory(t) { return (ɵFormGridHeaderComponent_BaseFactory || (ɵFormGridHeaderComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FormGridHeaderComponent)))(t || FormGridHeaderComponent); }; }();
|
|
111
|
-
FormGridHeaderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormGridHeaderComponent, selectors: [["form-grid-header"]], features: [i0.ɵɵ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) { if (rf & 1) {
|
|
112
|
-
i0.ɵɵtemplate(0, FormGridHeaderComponent_ng_template_0_Template, 10, 2, "ng-template");
|
|
113
|
-
} }, directives: [i1.NgIf, i1.NgClass], encapsulation: 2 });
|
|
114
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormGridHeaderComponent, [{
|
|
115
|
-
type: Component,
|
|
116
|
-
args: [{
|
|
117
|
-
selector: 'form-grid-header',
|
|
118
|
-
templateUrl: './FormGridHeader.component.html'
|
|
119
|
-
}]
|
|
120
|
-
}], null, null); })();
|
|
121
|
-
|
|
122
|
-
class GridService {
|
|
123
|
-
constructor() { }
|
|
124
|
-
setRows(rows) {
|
|
125
|
-
this.rows = rows;
|
|
126
|
-
}
|
|
127
|
-
getFormsPerPage() {
|
|
128
|
-
var _a;
|
|
129
|
-
return (_a = this.rows) === null || _a === void 0 ? void 0 : _a.length;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
GridService.ɵfac = function GridService_Factory(t) { return new (t || GridService)(); };
|
|
133
|
-
GridService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: GridService, factory: GridService.ɵfac });
|
|
134
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GridService, [{
|
|
135
|
-
type: Injectable
|
|
136
|
-
}], function () { return []; }, null); })();
|
|
137
|
-
|
|
138
|
-
class GridBodyComponent {
|
|
139
|
-
constructor(service) {
|
|
140
|
-
this.service = service;
|
|
141
|
-
this.firstItem = 0;
|
|
142
|
-
this.lastItem = 0;
|
|
143
|
-
this.skip = 0;
|
|
144
|
-
this.limit = 0;
|
|
145
|
-
this.total = 0;
|
|
146
|
-
this.rowSelect = new EventEmitter();
|
|
147
|
-
this.rowAction = new EventEmitter();
|
|
148
|
-
this.loading = true;
|
|
149
|
-
}
|
|
150
|
-
load(formio, query) {
|
|
151
|
-
return formio.loadForm(query);
|
|
152
|
-
}
|
|
153
|
-
onRowSelect(event, row) {
|
|
154
|
-
event.preventDefault();
|
|
155
|
-
this.rowSelect.emit(row);
|
|
156
|
-
}
|
|
157
|
-
onRowAction(event, row, action) {
|
|
158
|
-
event.preventDefault();
|
|
159
|
-
this.rowAction.emit({ row, action });
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Set the rows for this Grid body.
|
|
163
|
-
*
|
|
164
|
-
* @param query
|
|
165
|
-
* @param items
|
|
166
|
-
* @return any
|
|
167
|
-
*/
|
|
168
|
-
setRows(query, items) {
|
|
169
|
-
this.rows = [];
|
|
170
|
-
if (typeof items !== 'object') {
|
|
171
|
-
this.firstItem = 0;
|
|
172
|
-
this.lastItem = 0;
|
|
173
|
-
this.total = 0;
|
|
174
|
-
this.skip = 0;
|
|
175
|
-
this.loading = false;
|
|
176
|
-
this.service.setRows(this.rows);
|
|
177
|
-
return this.rows;
|
|
178
|
-
}
|
|
179
|
-
this.firstItem = query.skip + 1;
|
|
180
|
-
this.lastItem = this.firstItem + items.length - 1;
|
|
181
|
-
if (this.lastItem === 0) {
|
|
182
|
-
this.firstItem = 0;
|
|
183
|
-
}
|
|
184
|
-
this.total = items.serverCount;
|
|
185
|
-
this.limit = query.limit;
|
|
186
|
-
this.skip = Math.floor(items.skip / query.limit) + 1;
|
|
187
|
-
this.loading = false;
|
|
188
|
-
each(items, (item) => {
|
|
189
|
-
this.rows.push(clone(item));
|
|
190
|
-
});
|
|
191
|
-
this.service.setRows(this.rows);
|
|
192
|
-
return this.rows;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
GridBodyComponent.ɵfac = function GridBodyComponent_Factory(t) { return new (t || GridBodyComponent)(i0.ɵɵdirectiveInject(GridService)); };
|
|
196
|
-
GridBodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GridBodyComponent, selectors: [["ng-component"]], viewQuery: function GridBodyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
197
|
-
i0.ɵɵviewQuery(TemplateRef, 7);
|
|
198
|
-
} if (rf & 2) {
|
|
199
|
-
let _t;
|
|
200
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);
|
|
201
|
-
} }, inputs: { header: "header", actionAllowed: "actionAllowed" }, outputs: { rowSelect: "rowSelect", rowAction: "rowAction" }, decls: 0, vars: 0, template: function GridBodyComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
202
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GridBodyComponent, [{
|
|
203
|
-
type: Component,
|
|
204
|
-
args: [{
|
|
205
|
-
template: ''
|
|
206
|
-
}]
|
|
207
|
-
}], function () { return [{ type: GridService }]; }, { header: [{
|
|
208
|
-
type: Input
|
|
209
|
-
}], actionAllowed: [{
|
|
210
|
-
type: Input
|
|
211
|
-
}], rowSelect: [{
|
|
212
|
-
type: Output
|
|
213
|
-
}], rowAction: [{
|
|
214
|
-
type: Output
|
|
215
|
-
}], template: [{
|
|
216
|
-
type: ViewChild,
|
|
217
|
-
args: [TemplateRef, { static: true }]
|
|
218
|
-
}] }); })();
|
|
219
|
-
|
|
220
|
-
class TimeSince {
|
|
221
|
-
transform(date) {
|
|
222
|
-
const elapsed = (new Date().getTime() - new Date(date).getTime()) / 1000;
|
|
223
|
-
let interval;
|
|
224
|
-
if (interval >= 1) {
|
|
225
|
-
return interval + ' year' + (interval > 1 ? 's' : '');
|
|
226
|
-
}
|
|
227
|
-
interval = Math.floor(elapsed / 2592000);
|
|
228
|
-
if (interval >= 1) {
|
|
229
|
-
return interval + ' month' + (interval > 1 ? 's' : '');
|
|
230
|
-
}
|
|
231
|
-
interval = Math.floor(elapsed / 86400);
|
|
232
|
-
if (interval >= 1) {
|
|
233
|
-
return interval + ' day' + (interval > 1 ? 's' : '');
|
|
234
|
-
}
|
|
235
|
-
interval = Math.floor(elapsed / 3600);
|
|
236
|
-
if (interval >= 1) {
|
|
237
|
-
return interval + ' hour' + (interval > 1 ? 's' : '');
|
|
238
|
-
}
|
|
239
|
-
interval = Math.floor(elapsed / 60);
|
|
240
|
-
if (interval >= 1) {
|
|
241
|
-
return interval + ' minute' + (interval > 1 ? 's' : '');
|
|
242
|
-
}
|
|
243
|
-
return Math.floor(elapsed) + ' second' + (elapsed > 1 ? 's' : '');
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
TimeSince.ɵfac = function TimeSince_Factory(t) { return new (t || TimeSince)(); };
|
|
247
|
-
TimeSince.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "timeSince", type: TimeSince, pure: true });
|
|
248
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimeSince, [{
|
|
249
|
-
type: Pipe,
|
|
250
|
-
args: [{
|
|
251
|
-
name: 'timeSince'
|
|
252
|
-
}]
|
|
253
|
-
}], null, null); })();
|
|
254
|
-
|
|
255
|
-
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_11_Template(rf, ctx) { if (rf & 1) {
|
|
256
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
257
|
-
i0.ɵɵelementStart(0, "button", 10);
|
|
258
|
-
i0.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_11_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r11); const form_r3 = i0.ɵɵnextContext().$implicit; const ctx_r9 = i0.ɵɵnextContext(3); return ctx_r9.onRowAction($event, form_r3, "view"); });
|
|
259
|
-
i0.ɵɵelement(1, "span", 11);
|
|
260
|
-
i0.ɵɵtext(2, " Enter Data");
|
|
261
|
-
i0.ɵɵelementEnd();
|
|
262
|
-
} }
|
|
263
|
-
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_13_Template(rf, ctx) { if (rf & 1) {
|
|
264
|
-
const _r14 = i0.ɵɵgetCurrentView();
|
|
265
|
-
i0.ɵɵelementStart(0, "button", 12);
|
|
266
|
-
i0.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_13_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r14); const form_r3 = i0.ɵɵnextContext().$implicit; const ctx_r12 = i0.ɵɵnextContext(3); return ctx_r12.onRowAction($event, form_r3, "submission"); });
|
|
267
|
-
i0.ɵɵelement(1, "span", 13);
|
|
268
|
-
i0.ɵɵtext(2, " View Data");
|
|
269
|
-
i0.ɵɵelementEnd();
|
|
270
|
-
} }
|
|
271
|
-
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_15_Template(rf, ctx) { if (rf & 1) {
|
|
272
|
-
const _r17 = i0.ɵɵgetCurrentView();
|
|
273
|
-
i0.ɵɵelementStart(0, "button", 12);
|
|
274
|
-
i0.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_15_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r17); const form_r3 = i0.ɵɵnextContext().$implicit; const ctx_r15 = i0.ɵɵnextContext(3); return ctx_r15.onRowAction($event, form_r3, "edit"); });
|
|
275
|
-
i0.ɵɵelement(1, "span", 14);
|
|
276
|
-
i0.ɵɵtext(2, " Edit Form");
|
|
277
|
-
i0.ɵɵelementEnd();
|
|
278
|
-
} }
|
|
279
|
-
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_17_Template(rf, ctx) { if (rf & 1) {
|
|
280
|
-
const _r20 = i0.ɵɵgetCurrentView();
|
|
281
|
-
i0.ɵɵelementStart(0, "button", 12);
|
|
282
|
-
i0.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_17_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r20); const form_r3 = i0.ɵɵnextContext().$implicit; const ctx_r18 = i0.ɵɵnextContext(3); return ctx_r18.onRowAction($event, form_r3, "permissions"); });
|
|
283
|
-
i0.ɵɵelement(1, "span", 15);
|
|
284
|
-
i0.ɵɵtext(2, " Permissions");
|
|
285
|
-
i0.ɵɵelementEnd();
|
|
286
|
-
} }
|
|
287
|
-
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_19_Template(rf, ctx) { if (rf & 1) {
|
|
288
|
-
const _r23 = i0.ɵɵgetCurrentView();
|
|
289
|
-
i0.ɵɵelementStart(0, "button", 16);
|
|
290
|
-
i0.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_19_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r23); const form_r3 = i0.ɵɵnextContext().$implicit; const ctx_r21 = i0.ɵɵnextContext(3); return ctx_r21.onRowAction($event, form_r3, "delete"); });
|
|
291
|
-
i0.ɵɵelement(1, "span", 17);
|
|
292
|
-
i0.ɵɵelementEnd();
|
|
293
|
-
} }
|
|
294
|
-
function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
295
|
-
const _r25 = i0.ɵɵgetCurrentView();
|
|
296
|
-
i0.ɵɵelementStart(0, "tr");
|
|
297
|
-
i0.ɵɵelementStart(1, "td");
|
|
298
|
-
i0.ɵɵelementStart(2, "div", 2);
|
|
299
|
-
i0.ɵɵelementStart(3, "div", 3);
|
|
300
|
-
i0.ɵɵelementStart(4, "a", 4);
|
|
301
|
-
i0.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_Template_a_click_4_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r25); const form_r3 = restoredCtx.$implicit; const ctx_r24 = i0.ɵɵnextContext(3); return ctx_r24.onRowSelect($event, form_r3); });
|
|
302
|
-
i0.ɵɵelementStart(5, "h5");
|
|
303
|
-
i0.ɵɵtext(6);
|
|
304
|
-
i0.ɵɵelementEnd();
|
|
305
|
-
i0.ɵɵelementEnd();
|
|
306
|
-
i0.ɵɵelementStart(7, "div", 5);
|
|
307
|
-
i0.ɵɵtext(8);
|
|
308
|
-
i0.ɵɵpipe(9, "timeSince");
|
|
309
|
-
i0.ɵɵelementEnd();
|
|
310
|
-
i0.ɵɵelementEnd();
|
|
311
|
-
i0.ɵɵelementStart(10, "div", 6);
|
|
312
|
-
i0.ɵɵtemplate(11, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_11_Template, 3, 0, "button", 7);
|
|
313
|
-
i0.ɵɵtext(12, "\u00A0 ");
|
|
314
|
-
i0.ɵɵtemplate(13, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_13_Template, 3, 0, "button", 8);
|
|
315
|
-
i0.ɵɵtext(14, "\u00A0 ");
|
|
316
|
-
i0.ɵɵtemplate(15, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_15_Template, 3, 0, "button", 8);
|
|
317
|
-
i0.ɵɵtext(16, "\u00A0 ");
|
|
318
|
-
i0.ɵɵtemplate(17, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_17_Template, 3, 0, "button", 8);
|
|
319
|
-
i0.ɵɵtext(18, "\u00A0 ");
|
|
320
|
-
i0.ɵɵtemplate(19, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_19_Template, 2, 0, "button", 9);
|
|
321
|
-
i0.ɵɵelementEnd();
|
|
322
|
-
i0.ɵɵelementEnd();
|
|
323
|
-
i0.ɵɵelementEnd();
|
|
324
|
-
i0.ɵɵelementEnd();
|
|
325
|
-
} if (rf & 2) {
|
|
326
|
-
const form_r3 = ctx.$implicit;
|
|
327
|
-
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
328
|
-
i0.ɵɵadvance(4);
|
|
329
|
-
i0.ɵɵpropertyInterpolate1("routerLink", "", form_r3._id, "/view");
|
|
330
|
-
i0.ɵɵadvance(2);
|
|
331
|
-
i0.ɵɵtextInterpolate(form_r3.title);
|
|
332
|
-
i0.ɵɵadvance(2);
|
|
333
|
-
i0.ɵɵtextInterpolate1(" Updated ", i0.ɵɵpipeBind1(9, 8, form_r3.modified), " ago ");
|
|
334
|
-
i0.ɵɵadvance(3);
|
|
335
|
-
i0.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formView"));
|
|
336
|
-
i0.ɵɵadvance(2);
|
|
337
|
-
i0.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formSubmission"));
|
|
338
|
-
i0.ɵɵadvance(2);
|
|
339
|
-
i0.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formEdit"));
|
|
340
|
-
i0.ɵɵadvance(2);
|
|
341
|
-
i0.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formPermission"));
|
|
342
|
-
i0.ɵɵadvance(2);
|
|
343
|
-
i0.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formDelete"));
|
|
344
|
-
} }
|
|
345
|
-
function FormGridBodyComponent_ng_template_0_tbody_0_Template(rf, ctx) { if (rf & 1) {
|
|
346
|
-
i0.ɵɵelementStart(0, "tbody");
|
|
347
|
-
i0.ɵɵtemplate(1, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_Template, 20, 10, "tr", 1);
|
|
348
|
-
i0.ɵɵelementEnd();
|
|
349
|
-
} if (rf & 2) {
|
|
350
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
351
|
-
i0.ɵɵadvance(1);
|
|
352
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.rows);
|
|
353
|
-
} }
|
|
354
|
-
function FormGridBodyComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
355
|
-
i0.ɵɵtemplate(0, FormGridBodyComponent_ng_template_0_tbody_0_Template, 2, 1, "tbody", 0);
|
|
356
|
-
} if (rf & 2) {
|
|
357
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
358
|
-
i0.ɵɵproperty("ngIf", ctx_r0.rows);
|
|
359
|
-
} }
|
|
360
|
-
class FormGridBodyComponent extends GridBodyComponent {
|
|
361
|
-
load(formio, query) {
|
|
362
|
-
query = query || {};
|
|
363
|
-
return formio.loadForms({ params: query }).then((forms) => this.setRows(query, forms));
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
FormGridBodyComponent.ɵfac = /*@__PURE__*/ function () { let ɵFormGridBodyComponent_BaseFactory; return function FormGridBodyComponent_Factory(t) { return (ɵFormGridBodyComponent_BaseFactory || (ɵFormGridBodyComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FormGridBodyComponent)))(t || FormGridBodyComponent); }; }();
|
|
367
|
-
FormGridBodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormGridBodyComponent, selectors: [["form-grid-body"]], features: [i0.ɵɵ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) { if (rf & 1) {
|
|
368
|
-
i0.ɵɵtemplate(0, FormGridBodyComponent_ng_template_0_Template, 1, 1, "ng-template");
|
|
369
|
-
} }, directives: [i1.NgIf, i1.NgForOf, i2.RouterLinkWithHref], pipes: [TimeSince], styles: [".form-btn[_ngcontent-%COMP%]{font-size:.75rem;margin:2px 0}"] });
|
|
370
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormGridBodyComponent, [{
|
|
371
|
-
type: Component,
|
|
372
|
-
args: [{
|
|
373
|
-
selector: 'form-grid-body',
|
|
374
|
-
styleUrls: ['./FormGridBody.component.scss'],
|
|
375
|
-
templateUrl: './FormGridBody.component.html'
|
|
376
|
-
}]
|
|
377
|
-
}], null, null); })();
|
|
378
|
-
|
|
379
|
-
class GridFooterComponent {
|
|
380
|
-
constructor() {
|
|
381
|
-
this.footerPositions = GridFooterPositions;
|
|
382
|
-
this.pageChanged = new EventEmitter();
|
|
383
|
-
this.createItem = new EventEmitter();
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
GridFooterComponent.ɵfac = function GridFooterComponent_Factory(t) { return new (t || GridFooterComponent)(); };
|
|
387
|
-
GridFooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GridFooterComponent, selectors: [["ng-component"]], viewQuery: function GridFooterComponent_Query(rf, ctx) { if (rf & 1) {
|
|
388
|
-
i0.ɵɵviewQuery(TemplateRef, 7);
|
|
389
|
-
} if (rf & 2) {
|
|
390
|
-
let _t;
|
|
391
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);
|
|
392
|
-
} }, 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 });
|
|
393
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GridFooterComponent, [{
|
|
394
|
-
type: Component,
|
|
395
|
-
args: [{
|
|
396
|
-
template: ''
|
|
397
|
-
}]
|
|
398
|
-
}], function () { return []; }, { header: [{
|
|
399
|
-
type: Input
|
|
400
|
-
}], body: [{
|
|
401
|
-
type: Input
|
|
402
|
-
}], createText: [{
|
|
403
|
-
type: Input
|
|
404
|
-
}], size: [{
|
|
405
|
-
type: Input
|
|
406
|
-
}], actionAllowed: [{
|
|
407
|
-
type: Input
|
|
408
|
-
}], pageChanged: [{
|
|
409
|
-
type: Output
|
|
410
|
-
}], createItem: [{
|
|
411
|
-
type: Output
|
|
412
|
-
}], template: [{
|
|
413
|
-
type: ViewChild,
|
|
414
|
-
args: [TemplateRef, { static: true }]
|
|
415
|
-
}] }); })();
|
|
416
|
-
|
|
417
|
-
const _c0$2 = function (a0) { return { label: a0 }; };
|
|
418
|
-
function FormGridFooterComponent_ng_template_0_thead_0_Template(rf, ctx) { if (rf & 1) {
|
|
419
|
-
i0.ɵɵelementStart(0, "thead", 3);
|
|
420
|
-
i0.ɵɵelementContainer(1, 4);
|
|
421
|
-
i0.ɵɵelementEnd();
|
|
422
|
-
} if (rf & 2) {
|
|
423
|
-
const label_r5 = i0.ɵɵnextContext().label;
|
|
424
|
-
i0.ɵɵnextContext();
|
|
425
|
-
const _r2 = i0.ɵɵreference(3);
|
|
426
|
-
i0.ɵɵadvance(1);
|
|
427
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$2, label_r5));
|
|
428
|
-
} }
|
|
429
|
-
function FormGridFooterComponent_ng_template_0_tfoot_1_Template(rf, ctx) { if (rf & 1) {
|
|
430
|
-
i0.ɵɵelementStart(0, "tfoot", 3);
|
|
431
|
-
i0.ɵɵelementContainer(1, 4);
|
|
432
|
-
i0.ɵɵelementEnd();
|
|
433
|
-
} if (rf & 2) {
|
|
434
|
-
const label_r5 = i0.ɵɵnextContext().label;
|
|
435
|
-
i0.ɵɵnextContext();
|
|
436
|
-
const _r2 = i0.ɵɵreference(3);
|
|
437
|
-
i0.ɵɵadvance(1);
|
|
438
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$2, label_r5));
|
|
439
|
-
} }
|
|
440
|
-
function FormGridFooterComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
441
|
-
i0.ɵɵtemplate(0, FormGridFooterComponent_ng_template_0_thead_0_Template, 2, 4, "thead", 2);
|
|
442
|
-
i0.ɵɵtemplate(1, FormGridFooterComponent_ng_template_0_tfoot_1_Template, 2, 4, "tfoot", 2);
|
|
443
|
-
} if (rf & 2) {
|
|
444
|
-
const position_r4 = ctx.position;
|
|
445
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
446
|
-
i0.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.top);
|
|
447
|
-
i0.ɵɵadvance(1);
|
|
448
|
-
i0.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.bottom);
|
|
449
|
-
} }
|
|
450
|
-
function FormGridFooterComponent_ng_template_2_td_1_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
451
|
-
const _r14 = i0.ɵɵgetCurrentView();
|
|
452
|
-
i0.ɵɵelementStart(0, "button", 12);
|
|
453
|
-
i0.ɵɵlistener("click", function FormGridFooterComponent_ng_template_2_td_1_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(3); return ctx_r13.createItem.emit("form"); });
|
|
454
|
-
i0.ɵɵelement(1, "i", 13);
|
|
455
|
-
i0.ɵɵtext(2);
|
|
456
|
-
i0.ɵɵelementEnd();
|
|
457
|
-
} if (rf & 2) {
|
|
458
|
-
const ctx_r12 = i0.ɵɵnextContext(3);
|
|
459
|
-
i0.ɵɵadvance(2);
|
|
460
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r12.createText, "");
|
|
461
|
-
} }
|
|
462
|
-
function FormGridFooterComponent_ng_template_2_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
463
|
-
const _r16 = i0.ɵɵgetCurrentView();
|
|
464
|
-
i0.ɵɵelementStart(0, "td", 6);
|
|
465
|
-
i0.ɵɵtemplate(1, FormGridFooterComponent_ng_template_2_td_1_button_1_Template, 3, 1, "button", 7);
|
|
466
|
-
i0.ɵɵelementStart(2, "span", 8);
|
|
467
|
-
i0.ɵɵelementStart(3, "span", 9);
|
|
468
|
-
i0.ɵɵtext(4);
|
|
469
|
-
i0.ɵɵelementEnd();
|
|
470
|
-
i0.ɵɵtext(5);
|
|
471
|
-
i0.ɵɵelementEnd();
|
|
472
|
-
i0.ɵɵelementStart(6, "span", 10);
|
|
473
|
-
i0.ɵɵelementStart(7, "pagination", 11);
|
|
474
|
-
i0.ɵɵlistener("ngModelChange", function FormGridFooterComponent_ng_template_2_td_1_Template_pagination_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(2); return ctx_r15.body.skip = $event; })("pageChanged", function FormGridFooterComponent_ng_template_2_td_1_Template_pagination_pageChanged_7_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r17 = i0.ɵɵnextContext(2); return ctx_r17.pageChanged.emit($event); });
|
|
475
|
-
i0.ɵɵelementEnd();
|
|
476
|
-
i0.ɵɵelementEnd();
|
|
477
|
-
i0.ɵɵelementEnd();
|
|
478
|
-
} if (rf & 2) {
|
|
479
|
-
const label_r10 = i0.ɵɵnextContext().label;
|
|
480
|
-
const ctx_r11 = i0.ɵɵnextContext();
|
|
481
|
-
i0.ɵɵproperty("colSpan", ctx_r11.header.numHeaders);
|
|
482
|
-
i0.ɵɵadvance(1);
|
|
483
|
-
i0.ɵɵproperty("ngIf", ctx_r11.actionAllowed("formCreate"));
|
|
484
|
-
i0.ɵɵadvance(3);
|
|
485
|
-
i0.ɵɵtextInterpolate2("", ctx_r11.body.firstItem, " - ", ctx_r11.body.lastItem, "");
|
|
486
|
-
i0.ɵɵadvance(1);
|
|
487
|
-
i0.ɵɵtextInterpolate1(" / ", ctx_r11.body.total, " total");
|
|
488
|
-
i0.ɵɵadvance(1);
|
|
489
|
-
i0.ɵɵattribute("aria-label", label_r10);
|
|
490
|
-
i0.ɵɵadvance(1);
|
|
491
|
-
i0.ɵɵproperty("totalItems", ctx_r11.body.total)("itemsPerPage", ctx_r11.body.limit)("ngModel", ctx_r11.body.skip)("maxSize", ctx_r11.size);
|
|
492
|
-
} }
|
|
493
|
-
function FormGridFooterComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
494
|
-
i0.ɵɵelementStart(0, "tr");
|
|
495
|
-
i0.ɵɵtemplate(1, FormGridFooterComponent_ng_template_2_td_1_Template, 8, 10, "td", 5);
|
|
496
|
-
i0.ɵɵelementEnd();
|
|
497
|
-
} if (rf & 2) {
|
|
498
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
499
|
-
i0.ɵɵadvance(1);
|
|
500
|
-
i0.ɵɵproperty("ngIf", ctx_r3.header);
|
|
501
|
-
} }
|
|
502
|
-
class FormGridFooterComponent extends GridFooterComponent {
|
|
503
|
-
constructor() {
|
|
504
|
-
super();
|
|
505
|
-
}
|
|
506
|
-
ngOnInit() {
|
|
507
|
-
if (!this.createText) {
|
|
508
|
-
this.createText = 'Create Form';
|
|
509
|
-
}
|
|
510
|
-
if (!this.size) {
|
|
511
|
-
this.size = 7;
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
FormGridFooterComponent.ɵfac = function FormGridFooterComponent_Factory(t) { return new (t || FormGridFooterComponent)(); };
|
|
516
|
-
FormGridFooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormGridFooterComponent, selectors: [["ng-component"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 0, consts: [["footer", ""], ["defaultFooterTemplate", ""], ["class", "formio-grid-footer", 4, "ngIf"], [1, "formio-grid-footer"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "colSpan", 4, "ngIf"], [3, "colSpan"], ["class", "btn btn-primary form-btn-use 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) { if (rf & 1) {
|
|
517
|
-
i0.ɵɵtemplate(0, FormGridFooterComponent_ng_template_0_Template, 2, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
518
|
-
i0.ɵɵtemplate(2, FormGridFooterComponent_ng_template_2_Template, 2, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
519
|
-
} }, directives: [i1.NgIf, i1.NgTemplateOutlet, i2$1.PaginationComponent, i3.NgControlStatus, i3.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 });
|
|
520
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormGridFooterComponent, [{
|
|
521
|
-
type: Component,
|
|
522
|
-
args: [{
|
|
523
|
-
templateUrl: './FormGridFooter.component.html',
|
|
524
|
-
styleUrls: ['../grid.footer.scss'],
|
|
525
|
-
encapsulation: ViewEncapsulation.None
|
|
526
|
-
}]
|
|
527
|
-
}], function () { return []; }, null); })();
|
|
528
|
-
|
|
529
|
-
var FormComponents = {
|
|
530
|
-
header: FormGridHeaderComponent,
|
|
531
|
-
body: FormGridBodyComponent,
|
|
532
|
-
footer: FormGridFooterComponent
|
|
533
|
-
};
|
|
534
|
-
|
|
535
|
-
const _c0$1 = function (a0, a1) { return { "glyphicon-triangle-top": a0, "glyphicon-triangle-bottom": a1 }; };
|
|
536
|
-
function SubmissionGridHeaderComponent_ng_template_0_th_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
537
|
-
i0.ɵɵelement(0, "span", 3);
|
|
538
|
-
} if (rf & 2) {
|
|
539
|
-
const header_r2 = i0.ɵɵnextContext().$implicit;
|
|
540
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(1, _c0$1, header_r2.sort === "asc", header_r2.sort === "desc"));
|
|
541
|
-
} }
|
|
542
|
-
function SubmissionGridHeaderComponent_ng_template_0_th_2_Template(rf, ctx) { if (rf & 1) {
|
|
543
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
544
|
-
i0.ɵɵelementStart(0, "th");
|
|
545
|
-
i0.ɵɵelementStart(1, "a", 1);
|
|
546
|
-
i0.ɵɵlistener("click", function SubmissionGridHeaderComponent_ng_template_0_th_2_Template_a_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r6); const header_r2 = restoredCtx.$implicit; const ctx_r5 = i0.ɵɵnextContext(2); return ctx_r5.sort.emit(header_r2); });
|
|
547
|
-
i0.ɵɵtext(2);
|
|
548
|
-
i0.ɵɵtemplate(3, SubmissionGridHeaderComponent_ng_template_0_th_2_span_3_Template, 1, 4, "span", 2);
|
|
549
|
-
i0.ɵɵelementEnd();
|
|
550
|
-
i0.ɵɵelementEnd();
|
|
551
|
-
} if (rf & 2) {
|
|
552
|
-
const header_r2 = ctx.$implicit;
|
|
553
|
-
i0.ɵɵadvance(2);
|
|
554
|
-
i0.ɵɵtextInterpolate1(" ", header_r2.label, "\u00A0");
|
|
555
|
-
i0.ɵɵadvance(1);
|
|
556
|
-
i0.ɵɵproperty("ngIf", header_r2.sort);
|
|
557
|
-
} }
|
|
558
|
-
function SubmissionGridHeaderComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
559
|
-
i0.ɵɵelementStart(0, "thead");
|
|
560
|
-
i0.ɵɵelementStart(1, "tr");
|
|
561
|
-
i0.ɵɵtemplate(2, SubmissionGridHeaderComponent_ng_template_0_th_2_Template, 4, 2, "th", 0);
|
|
562
|
-
i0.ɵɵelementEnd();
|
|
563
|
-
i0.ɵɵelementEnd();
|
|
564
|
-
} if (rf & 2) {
|
|
565
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
566
|
-
i0.ɵɵadvance(2);
|
|
567
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.headers);
|
|
568
|
-
} }
|
|
569
|
-
class SubmissionGridHeaderComponent extends GridHeaderComponent {
|
|
570
|
-
load(formio, query, columns) {
|
|
571
|
-
query = query || {};
|
|
572
|
-
return formio.loadForm({ params: query }).then((form) => {
|
|
573
|
-
this.headers = [];
|
|
574
|
-
this.formComponents = new Map();
|
|
575
|
-
this.setComponents(form.components);
|
|
576
|
-
columns ? columns.forEach(column => {
|
|
577
|
-
this.setHeader(this.getHeaderForColumn(column, this.formComponents.get(column.path)));
|
|
578
|
-
}) : this.setComponentsHeaders(this.formComponents);
|
|
579
|
-
return this.headers;
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
setHeader(header) {
|
|
583
|
-
this.headers.push(header);
|
|
584
|
-
}
|
|
585
|
-
getHeaderForColumn(column, component, sort) {
|
|
586
|
-
return {
|
|
587
|
-
label: column.label,
|
|
588
|
-
key: column.path,
|
|
589
|
-
sort: sort,
|
|
590
|
-
component: component ? Components.create(component, null, null, true) : undefined,
|
|
591
|
-
renderCell: column ? column.renderCell : undefined
|
|
592
|
-
};
|
|
593
|
-
}
|
|
594
|
-
getHeaderForComponent(component, path, sort) {
|
|
595
|
-
return {
|
|
596
|
-
label: component.label,
|
|
597
|
-
key: path,
|
|
598
|
-
sort: sort,
|
|
599
|
-
component: component ? Components.create(component, null, null, true) : undefined,
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
// Set headers from components in case if columns are not provided
|
|
603
|
-
setComponentsHeaders(components, sort) {
|
|
604
|
-
components.forEach((component, path) => {
|
|
605
|
-
if (component.input &&
|
|
606
|
-
(!component.hasOwnProperty('tableView') || component.tableView)) {
|
|
607
|
-
this.setHeader(this.getHeaderForComponent(component, path, sort));
|
|
608
|
-
}
|
|
609
|
-
});
|
|
610
|
-
}
|
|
611
|
-
// Map components
|
|
612
|
-
setComponents(components) {
|
|
613
|
-
Utils.eachComponent(components, (component, newPath) => {
|
|
614
|
-
this.formComponents.set(`data.${newPath}`, component);
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
SubmissionGridHeaderComponent.ɵfac = /*@__PURE__*/ function () { let ɵSubmissionGridHeaderComponent_BaseFactory; return function SubmissionGridHeaderComponent_Factory(t) { return (ɵSubmissionGridHeaderComponent_BaseFactory || (ɵSubmissionGridHeaderComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SubmissionGridHeaderComponent)))(t || SubmissionGridHeaderComponent); }; }();
|
|
619
|
-
SubmissionGridHeaderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SubmissionGridHeaderComponent, selectors: [["ng-component"]], features: [i0.ɵɵ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) { if (rf & 1) {
|
|
620
|
-
i0.ɵɵtemplate(0, SubmissionGridHeaderComponent_ng_template_0_Template, 3, 1, "ng-template");
|
|
621
|
-
} }, directives: [i1.NgForOf, i1.NgIf, i1.NgClass], encapsulation: 2 });
|
|
622
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubmissionGridHeaderComponent, [{
|
|
623
|
-
type: Component,
|
|
624
|
-
args: [{
|
|
625
|
-
templateUrl: './SubmissionGridHeader.component.html'
|
|
626
|
-
}]
|
|
627
|
-
}], null, null); })();
|
|
628
|
-
|
|
629
|
-
function SubmissionGridBodyComponent_ng_template_0_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
630
|
-
i0.ɵɵelement(0, "td", 3);
|
|
631
|
-
} if (rf & 2) {
|
|
632
|
-
const rowHeader_r4 = ctx.$implicit;
|
|
633
|
-
const row_r2 = i0.ɵɵnextContext().$implicit;
|
|
634
|
-
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
635
|
-
i0.ɵɵproperty("innerHTML", ctx_r3.view(row_r2, rowHeader_r4), i0.ɵɵsanitizeHtml);
|
|
636
|
-
} }
|
|
637
|
-
function SubmissionGridBodyComponent_ng_template_0_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
638
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
639
|
-
i0.ɵɵelementStart(0, "tr", 1);
|
|
640
|
-
i0.ɵɵlistener("click", function SubmissionGridBodyComponent_ng_template_0_tr_1_Template_tr_click_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r7); const row_r2 = restoredCtx.$implicit; const ctx_r6 = i0.ɵɵnextContext(2); return ctx_r6.onRowSelect($event, row_r2); });
|
|
641
|
-
i0.ɵɵtemplate(1, SubmissionGridBodyComponent_ng_template_0_tr_1_td_1_Template, 1, 1, "td", 2);
|
|
642
|
-
i0.ɵɵelementEnd();
|
|
643
|
-
} if (rf & 2) {
|
|
644
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
645
|
-
i0.ɵɵadvance(1);
|
|
646
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.header.headers);
|
|
647
|
-
} }
|
|
648
|
-
function SubmissionGridBodyComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
649
|
-
i0.ɵɵelementStart(0, "tbody");
|
|
650
|
-
i0.ɵɵtemplate(1, SubmissionGridBodyComponent_ng_template_0_tr_1_Template, 2, 1, "tr", 0);
|
|
651
|
-
i0.ɵɵelementEnd();
|
|
652
|
-
} if (rf & 2) {
|
|
653
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
654
|
-
i0.ɵɵadvance(1);
|
|
655
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.rows);
|
|
656
|
-
} }
|
|
657
|
-
class SubmissionGridBodyComponent extends GridBodyComponent {
|
|
658
|
-
load(formio, query) {
|
|
659
|
-
query = query || {};
|
|
660
|
-
return formio.loadSubmissions({ params: query })
|
|
661
|
-
.then((submissions) => this.setRows(query, submissions));
|
|
662
|
-
}
|
|
663
|
-
/**
|
|
664
|
-
* Render the cell data.
|
|
665
|
-
*
|
|
666
|
-
* @param submission
|
|
667
|
-
* @param header
|
|
668
|
-
* @return any
|
|
669
|
-
*/
|
|
670
|
-
view(submission, header) {
|
|
671
|
-
const cellValue = get(submission, header.key);
|
|
672
|
-
if (header.renderCell) {
|
|
673
|
-
return header.renderCell(cellValue, header.component);
|
|
674
|
-
}
|
|
675
|
-
else {
|
|
676
|
-
if (header.component) {
|
|
677
|
-
if (header.component.getView) {
|
|
678
|
-
return header.component.getView(cellValue);
|
|
679
|
-
}
|
|
680
|
-
return header.component.asString(cellValue);
|
|
681
|
-
}
|
|
682
|
-
else {
|
|
683
|
-
return cellValue.toString();
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
SubmissionGridBodyComponent.ɵfac = /*@__PURE__*/ function () { let ɵSubmissionGridBodyComponent_BaseFactory; return function SubmissionGridBodyComponent_Factory(t) { return (ɵSubmissionGridBodyComponent_BaseFactory || (ɵSubmissionGridBodyComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SubmissionGridBodyComponent)))(t || SubmissionGridBodyComponent); }; }();
|
|
689
|
-
SubmissionGridBodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SubmissionGridBodyComponent, selectors: [["ng-component"]], features: [i0.ɵɵ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) { if (rf & 1) {
|
|
690
|
-
i0.ɵɵtemplate(0, SubmissionGridBodyComponent_ng_template_0_Template, 2, 1, "ng-template");
|
|
691
|
-
} }, directives: [i1.NgForOf], encapsulation: 2 });
|
|
692
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubmissionGridBodyComponent, [{
|
|
693
|
-
type: Component,
|
|
694
|
-
args: [{
|
|
695
|
-
templateUrl: './SubmissionGridBody.component.html'
|
|
696
|
-
}]
|
|
697
|
-
}], null, null); })();
|
|
698
|
-
|
|
699
|
-
function SubmissionGridFooterComponent_ng_template_0_thead_0_Template(rf, ctx) { if (rf & 1) {
|
|
700
|
-
i0.ɵɵelementStart(0, "thead", 3);
|
|
701
|
-
i0.ɵɵelementContainer(1, 4);
|
|
702
|
-
i0.ɵɵelementEnd();
|
|
703
|
-
} if (rf & 2) {
|
|
704
|
-
i0.ɵɵnextContext(2);
|
|
705
|
-
const _r2 = i0.ɵɵreference(3);
|
|
706
|
-
i0.ɵɵadvance(1);
|
|
707
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
708
|
-
} }
|
|
709
|
-
function SubmissionGridFooterComponent_ng_template_0_tfoot_1_Template(rf, ctx) { if (rf & 1) {
|
|
710
|
-
i0.ɵɵelementStart(0, "tfoot", 3);
|
|
711
|
-
i0.ɵɵelementContainer(1, 4);
|
|
712
|
-
i0.ɵɵelementEnd();
|
|
713
|
-
} if (rf & 2) {
|
|
714
|
-
i0.ɵɵnextContext(2);
|
|
715
|
-
const _r2 = i0.ɵɵreference(3);
|
|
716
|
-
i0.ɵɵadvance(1);
|
|
717
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
718
|
-
} }
|
|
719
|
-
function SubmissionGridFooterComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
720
|
-
i0.ɵɵtemplate(0, SubmissionGridFooterComponent_ng_template_0_thead_0_Template, 2, 1, "thead", 2);
|
|
721
|
-
i0.ɵɵtemplate(1, SubmissionGridFooterComponent_ng_template_0_tfoot_1_Template, 2, 1, "tfoot", 2);
|
|
722
|
-
} if (rf & 2) {
|
|
723
|
-
const position_r4 = ctx.position;
|
|
724
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
725
|
-
i0.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.top);
|
|
726
|
-
i0.ɵɵadvance(1);
|
|
727
|
-
i0.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.bottom);
|
|
728
|
-
} }
|
|
729
|
-
function SubmissionGridFooterComponent_ng_template_2_td_1_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
730
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
731
|
-
i0.ɵɵelementStart(0, "button", 11);
|
|
732
|
-
i0.ɵɵlistener("click", function SubmissionGridFooterComponent_ng_template_2_td_1_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(3); return ctx_r9.createItem.emit("form"); });
|
|
733
|
-
i0.ɵɵelement(1, "i", 12);
|
|
734
|
-
i0.ɵɵtext(2);
|
|
735
|
-
i0.ɵɵelementEnd();
|
|
736
|
-
} if (rf & 2) {
|
|
737
|
-
const ctx_r8 = i0.ɵɵnextContext(3);
|
|
738
|
-
i0.ɵɵadvance(2);
|
|
739
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r8.createText, "");
|
|
740
|
-
} }
|
|
741
|
-
function SubmissionGridFooterComponent_ng_template_2_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
742
|
-
const _r12 = i0.ɵɵgetCurrentView();
|
|
743
|
-
i0.ɵɵelementStart(0, "td", 6);
|
|
744
|
-
i0.ɵɵtemplate(1, SubmissionGridFooterComponent_ng_template_2_td_1_button_1_Template, 3, 1, "button", 7);
|
|
745
|
-
i0.ɵɵelementStart(2, "span", 8);
|
|
746
|
-
i0.ɵɵelementStart(3, "span", 9);
|
|
747
|
-
i0.ɵɵtext(4);
|
|
748
|
-
i0.ɵɵelementEnd();
|
|
749
|
-
i0.ɵɵtext(5);
|
|
750
|
-
i0.ɵɵelementEnd();
|
|
751
|
-
i0.ɵɵelementStart(6, "pagination", 10);
|
|
752
|
-
i0.ɵɵlistener("ngModelChange", function SubmissionGridFooterComponent_ng_template_2_td_1_Template_pagination_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(2); return ctx_r11.body.skip = $event; })("pageChanged", function SubmissionGridFooterComponent_ng_template_2_td_1_Template_pagination_pageChanged_6_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r13 = i0.ɵɵnextContext(2); return ctx_r13.pageChanged.emit($event); });
|
|
753
|
-
i0.ɵɵelementEnd();
|
|
754
|
-
i0.ɵɵelementEnd();
|
|
755
|
-
} if (rf & 2) {
|
|
756
|
-
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
757
|
-
i0.ɵɵproperty("colSpan", ctx_r7.header.numHeaders);
|
|
758
|
-
i0.ɵɵadvance(1);
|
|
759
|
-
i0.ɵɵproperty("ngIf", ctx_r7.actionAllowed("submissionCreate") && ctx_r7.createText);
|
|
760
|
-
i0.ɵɵadvance(3);
|
|
761
|
-
i0.ɵɵtextInterpolate2("", ctx_r7.body.firstItem, " - ", ctx_r7.body.lastItem, "");
|
|
762
|
-
i0.ɵɵadvance(1);
|
|
763
|
-
i0.ɵɵtextInterpolate1(" / ", ctx_r7.body.total, " total");
|
|
764
|
-
i0.ɵɵadvance(1);
|
|
765
|
-
i0.ɵɵproperty("totalItems", ctx_r7.body.total)("itemsPerPage", ctx_r7.body.limit)("ngModel", ctx_r7.body.skip)("maxSize", ctx_r7.size);
|
|
766
|
-
} }
|
|
767
|
-
function SubmissionGridFooterComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
768
|
-
i0.ɵɵelementStart(0, "tr");
|
|
769
|
-
i0.ɵɵtemplate(1, SubmissionGridFooterComponent_ng_template_2_td_1_Template, 7, 9, "td", 5);
|
|
770
|
-
i0.ɵɵelementEnd();
|
|
771
|
-
} if (rf & 2) {
|
|
772
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
773
|
-
i0.ɵɵadvance(1);
|
|
774
|
-
i0.ɵɵproperty("ngIf", ctx_r3.header);
|
|
775
|
-
} }
|
|
776
|
-
class SubmissionGridFooterComponent extends GridFooterComponent {
|
|
777
|
-
constructor() {
|
|
778
|
-
super();
|
|
779
|
-
}
|
|
780
|
-
ngOnInit() {
|
|
781
|
-
if (!this.size) {
|
|
782
|
-
this.size = 7;
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
SubmissionGridFooterComponent.ɵfac = function SubmissionGridFooterComponent_Factory(t) { return new (t || SubmissionGridFooterComponent)(); };
|
|
787
|
-
SubmissionGridFooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SubmissionGridFooterComponent, selectors: [["ng-component"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 0, consts: [["footer", ""], ["defaultFooterTemplate", ""], ["class", "formio-grid-footer", 4, "ngIf"], [1, "formio-grid-footer"], [3, "ngTemplateOutlet"], [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) { if (rf & 1) {
|
|
788
|
-
i0.ɵɵtemplate(0, SubmissionGridFooterComponent_ng_template_0_Template, 2, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
789
|
-
i0.ɵɵtemplate(2, SubmissionGridFooterComponent_ng_template_2_Template, 2, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
790
|
-
} }, directives: [i1.NgIf, i1.NgTemplateOutlet, i2$1.PaginationComponent, i3.NgControlStatus, i3.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 });
|
|
791
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubmissionGridFooterComponent, [{
|
|
792
|
-
type: Component,
|
|
793
|
-
args: [{
|
|
794
|
-
templateUrl: './SubmissionGridFooter.component.html',
|
|
795
|
-
styleUrls: ['../grid.footer.scss'],
|
|
796
|
-
encapsulation: ViewEncapsulation.None
|
|
797
|
-
}]
|
|
798
|
-
}], function () { return []; }, null); })();
|
|
799
|
-
|
|
800
|
-
var SubmissionComponents = {
|
|
801
|
-
header: SubmissionGridHeaderComponent,
|
|
802
|
-
body: SubmissionGridBodyComponent,
|
|
803
|
-
footer: SubmissionGridFooterComponent
|
|
804
|
-
};
|
|
805
|
-
|
|
806
|
-
const _c0 = ["headerTemplate"];
|
|
807
|
-
const _c1 = ["bodyTemplate"];
|
|
808
|
-
const _c2 = ["footerTemplate"];
|
|
809
|
-
function FormioGridComponent_ng_template_0_Template(rf, ctx) { }
|
|
810
|
-
function FormioGridComponent_ng_template_2_Template(rf, ctx) { }
|
|
811
|
-
function FormioGridComponent_ng_template_4_Template(rf, ctx) { }
|
|
812
|
-
const _c3 = function (a0, a1) { return { position: a0, label: a1 }; };
|
|
813
|
-
function FormioGridComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
814
|
-
i0.ɵɵelementContainer(0, 9);
|
|
815
|
-
} if (rf & 2) {
|
|
816
|
-
const ctx_r6 = i0.ɵɵnextContext();
|
|
817
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r6.footer.template)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c3, ctx_r6.footerPositions.top, ctx_r6.label));
|
|
818
|
-
} }
|
|
819
|
-
function FormioGridComponent_ng_container_10_Template(rf, ctx) { if (rf & 1) {
|
|
820
|
-
i0.ɵɵelementContainer(0, 10);
|
|
821
|
-
} if (rf & 2) {
|
|
822
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
|
823
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r7.header.template);
|
|
824
|
-
} }
|
|
825
|
-
function FormioGridComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
826
|
-
i0.ɵɵelementContainer(0, 10);
|
|
827
|
-
} if (rf & 2) {
|
|
828
|
-
const ctx_r8 = i0.ɵɵnextContext();
|
|
829
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r8.body.template);
|
|
830
|
-
} }
|
|
831
|
-
function FormioGridComponent_ng_container_13_Template(rf, ctx) { if (rf & 1) {
|
|
832
|
-
i0.ɵɵelementContainer(0, 9);
|
|
833
|
-
} if (rf & 2) {
|
|
834
|
-
const ctx_r9 = i0.ɵɵnextContext();
|
|
835
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r9.footer.template)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c3, ctx_r9.footerPositions.bottom, ctx_r9.label));
|
|
836
|
-
} }
|
|
837
|
-
const _c4 = function (a0, a1) { return [a0, a1]; };
|
|
838
|
-
class FormioGridComponent {
|
|
839
|
-
constructor(alerts, resolver, ref) {
|
|
840
|
-
this.alerts = alerts;
|
|
841
|
-
this.resolver = resolver;
|
|
842
|
-
this.ref = ref;
|
|
843
|
-
this.footerPosition = GridFooterPositions.bottom;
|
|
844
|
-
this.page = 0;
|
|
845
|
-
this.isLoading = false;
|
|
846
|
-
this.initialized = false;
|
|
847
|
-
this.footerPositions = GridFooterPositions;
|
|
848
|
-
this.select = this.rowSelect = new EventEmitter();
|
|
849
|
-
this.rowAction = new EventEmitter();
|
|
850
|
-
this.createItem = new EventEmitter();
|
|
851
|
-
this.error = new EventEmitter();
|
|
852
|
-
this.isLoading = true;
|
|
853
|
-
}
|
|
854
|
-
createComponent(property, component) {
|
|
855
|
-
const factory = this.resolver.resolveComponentFactory(component);
|
|
856
|
-
const componentRef = property.createComponent(factory);
|
|
857
|
-
return componentRef.instance;
|
|
858
|
-
}
|
|
859
|
-
loadGrid(src) {
|
|
860
|
-
// If no source is provided, then skip.
|
|
861
|
-
if (!src && !this.formio) {
|
|
862
|
-
return;
|
|
863
|
-
}
|
|
864
|
-
// Do not double load.
|
|
865
|
-
if (this.formio && this.src && (src === this.src)) {
|
|
866
|
-
return;
|
|
867
|
-
}
|
|
868
|
-
if (src) {
|
|
869
|
-
this.src = src;
|
|
870
|
-
this.formio = new FormioPromiseService(this.src, { formOnly: true });
|
|
871
|
-
}
|
|
872
|
-
// Load the header.
|
|
873
|
-
this.header.load(this.formio, {}, this.columns)
|
|
874
|
-
.then(() => this.setPage(0))
|
|
875
|
-
.catch(error => this.onError(error));
|
|
876
|
-
}
|
|
877
|
-
ngOnInit() {
|
|
878
|
-
// Create our components.
|
|
879
|
-
const comps = this.components || ((this.gridType === 'form') ? FormComponents : SubmissionComponents);
|
|
880
|
-
this.header = this.createComponent(this.headerElement, comps.header);
|
|
881
|
-
this.header.actionAllowed = this.actionAllowed.bind(this);
|
|
882
|
-
this.header.sort.subscribe(header => this.sortColumn(header));
|
|
883
|
-
this.body = this.createComponent(this.bodyElement, comps.body);
|
|
884
|
-
this.body.header = this.header;
|
|
885
|
-
this.body.actionAllowed = this.actionAllowed.bind(this);
|
|
886
|
-
this.body.rowSelect.subscribe(row => this.rowSelect.emit(row));
|
|
887
|
-
this.body.rowAction.subscribe(action => this.rowAction.emit(action));
|
|
888
|
-
this.footer = this.createComponent(this.footerElement, comps.footer);
|
|
889
|
-
this.footer.header = this.header;
|
|
890
|
-
this.footer.body = this.body;
|
|
891
|
-
this.footer.actionAllowed = this.actionAllowed.bind(this);
|
|
892
|
-
this.footer.createText = this.createText;
|
|
893
|
-
this.footer.size = this.size;
|
|
894
|
-
this.footer.pageChanged.subscribe(page => this.pageChanged(page));
|
|
895
|
-
this.footer.createItem.subscribe(item => this.createItem.emit(item));
|
|
896
|
-
}
|
|
897
|
-
ngOnChanges(changes) {
|
|
898
|
-
if (this.initialized) {
|
|
899
|
-
if ((changes.src && changes.src.currentValue) ||
|
|
900
|
-
(changes.formio && changes.formio.currentValue)) {
|
|
901
|
-
this.loadGrid(changes.src.currentValue);
|
|
902
|
-
}
|
|
903
|
-
if (changes.items && changes.items.currentValue) {
|
|
904
|
-
this.refreshGrid();
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
if (this.footer &&
|
|
908
|
-
(changes.createText && changes.createText.currentValue)) {
|
|
909
|
-
this.footer.createText = changes.createText.currentValue;
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
ngAfterViewInit() {
|
|
913
|
-
this.alerts.setAlerts([]);
|
|
914
|
-
this.query = this.query || {};
|
|
915
|
-
if (this.refresh) {
|
|
916
|
-
this.refresh.subscribe((query) => this.refreshGrid(query));
|
|
917
|
-
}
|
|
918
|
-
this.loadGrid(this.src);
|
|
919
|
-
this.initialized = true;
|
|
920
|
-
this.ref.detectChanges();
|
|
921
|
-
}
|
|
922
|
-
actionAllowed(action) {
|
|
923
|
-
if (this.isActionAllowed) {
|
|
924
|
-
return this.isActionAllowed(action);
|
|
925
|
-
}
|
|
926
|
-
else {
|
|
927
|
-
return true;
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
onError(error) {
|
|
931
|
-
this.isLoading = false;
|
|
932
|
-
this.error.emit(error);
|
|
933
|
-
if (typeof error === 'string' || error.message) {
|
|
934
|
-
this.alerts.setAlert({
|
|
935
|
-
type: 'danger',
|
|
936
|
-
message: error.message || error
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
refreshGrid(query) {
|
|
941
|
-
this.alerts.setAlerts([]);
|
|
942
|
-
this.query = query || this.query;
|
|
943
|
-
if (!this.query.hasOwnProperty('limit')) {
|
|
944
|
-
this.query.limit = 10;
|
|
945
|
-
}
|
|
946
|
-
if (!this.query.hasOwnProperty('skip')) {
|
|
947
|
-
this.query.skip = 0;
|
|
948
|
-
}
|
|
949
|
-
this.isLoading = true;
|
|
950
|
-
this.ref.detectChanges();
|
|
951
|
-
Formio.cache = {};
|
|
952
|
-
let loader = null;
|
|
953
|
-
if (this.items) {
|
|
954
|
-
loader = Promise.resolve(this.body.setRows(this.query, this.items));
|
|
955
|
-
}
|
|
956
|
-
else {
|
|
957
|
-
loader = this.body.load(this.formio, this.query);
|
|
958
|
-
}
|
|
959
|
-
return loader.then(info => {
|
|
960
|
-
this.isLoading = false;
|
|
961
|
-
this.initialized = true;
|
|
962
|
-
this.ref.detectChanges();
|
|
963
|
-
}).catch(error => this.onError(error));
|
|
964
|
-
}
|
|
965
|
-
setPage(num = -1) {
|
|
966
|
-
this.page = num !== -1 ? num : this.page;
|
|
967
|
-
if (!this.query.hasOwnProperty('limit')) {
|
|
968
|
-
this.query.limit = 10;
|
|
969
|
-
}
|
|
970
|
-
if (!this.query.hasOwnProperty('skip')) {
|
|
971
|
-
this.query.skip = 0;
|
|
972
|
-
}
|
|
973
|
-
this.query.skip = this.page * this.query.limit;
|
|
974
|
-
this.refreshGrid();
|
|
975
|
-
}
|
|
976
|
-
sortColumn(header) {
|
|
977
|
-
// Reset all other column sorts.
|
|
978
|
-
each(this.header.headers, (col) => {
|
|
979
|
-
if (col.key !== header.key) {
|
|
980
|
-
col.sort = '';
|
|
981
|
-
}
|
|
982
|
-
});
|
|
983
|
-
switch (header.sort) {
|
|
984
|
-
case 'asc':
|
|
985
|
-
header.sort = SortType.DESC;
|
|
986
|
-
this.query.sort = '-' + header.key;
|
|
987
|
-
break;
|
|
988
|
-
case 'desc':
|
|
989
|
-
header.sort = undefined;
|
|
990
|
-
delete this.query.sort;
|
|
991
|
-
break;
|
|
992
|
-
case undefined:
|
|
993
|
-
header.sort = SortType.ASC;
|
|
994
|
-
this.query.sort = header.key;
|
|
995
|
-
break;
|
|
996
|
-
}
|
|
997
|
-
this.refreshGrid();
|
|
998
|
-
}
|
|
999
|
-
pageChanged(page) {
|
|
1000
|
-
this.setPage(page.page - 1);
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
FormioGridComponent.ɵfac = function FormioGridComponent_Factory(t) { return new (t || FormioGridComponent)(i0.ɵɵdirectiveInject(i1$1.FormioAlerts), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
1004
|
-
FormioGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormioGridComponent, selectors: [["formio-grid"]], viewQuery: function FormioGridComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1005
|
-
i0.ɵɵviewQuery(_c0, 7, ViewContainerRef);
|
|
1006
|
-
i0.ɵɵviewQuery(_c1, 7, ViewContainerRef);
|
|
1007
|
-
i0.ɵɵviewQuery(_c2, 7, ViewContainerRef);
|
|
1008
|
-
} if (rf & 2) {
|
|
1009
|
-
let _t;
|
|
1010
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerElement = _t.first);
|
|
1011
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.bodyElement = _t.first);
|
|
1012
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerElement = _t.first);
|
|
1013
|
-
} }, 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.ɵɵ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) { if (rf & 1) {
|
|
1014
|
-
i0.ɵɵtemplate(0, FormioGridComponent_ng_template_0_Template, 0, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
1015
|
-
i0.ɵɵtemplate(2, FormioGridComponent_ng_template_2_Template, 0, 0, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
1016
|
-
i0.ɵɵtemplate(4, FormioGridComponent_ng_template_4_Template, 0, 0, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
1017
|
-
i0.ɵɵelementStart(6, "div", 3);
|
|
1018
|
-
i0.ɵɵelement(7, "formio-alerts", 4);
|
|
1019
|
-
i0.ɵɵelementStart(8, "table", 5);
|
|
1020
|
-
i0.ɵɵtemplate(9, FormioGridComponent_ng_container_9_Template, 1, 5, "ng-container", 6);
|
|
1021
|
-
i0.ɵɵtemplate(10, FormioGridComponent_ng_container_10_Template, 1, 1, "ng-container", 7);
|
|
1022
|
-
i0.ɵɵelement(11, "formio-loader", 8);
|
|
1023
|
-
i0.ɵɵtemplate(12, FormioGridComponent_ng_container_12_Template, 1, 1, "ng-container", 7);
|
|
1024
|
-
i0.ɵɵtemplate(13, FormioGridComponent_ng_container_13_Template, 1, 5, "ng-container", 6);
|
|
1025
|
-
i0.ɵɵelementEnd();
|
|
1026
|
-
i0.ɵɵelementEnd();
|
|
1027
|
-
} if (rf & 2) {
|
|
1028
|
-
i0.ɵɵadvance(7);
|
|
1029
|
-
i0.ɵɵproperty("alerts", ctx.alerts);
|
|
1030
|
-
i0.ɵɵadvance(2);
|
|
1031
|
-
i0.ɵɵproperty("ngIf", ctx.initialized && i0.ɵɵpureFunction2(6, _c4, ctx.footerPositions.top, ctx.footerPositions.both).indexOf(ctx.footerPosition) !== -1);
|
|
1032
|
-
i0.ɵɵadvance(1);
|
|
1033
|
-
i0.ɵɵproperty("ngIf", ctx.initialized);
|
|
1034
|
-
i0.ɵɵadvance(1);
|
|
1035
|
-
i0.ɵɵproperty("isLoading", ctx.isLoading);
|
|
1036
|
-
i0.ɵɵadvance(1);
|
|
1037
|
-
i0.ɵɵproperty("ngIf", ctx.initialized);
|
|
1038
|
-
i0.ɵɵadvance(1);
|
|
1039
|
-
i0.ɵɵproperty("ngIf", ctx.initialized && i0.ɵɵpureFunction2(9, _c4, ctx.footerPositions.bottom, ctx.footerPositions.both).indexOf(ctx.footerPosition) !== -1);
|
|
1040
|
-
} }, directives: [i1$1.FormioAlertsComponent, i1.NgIf, i1$1.FormioLoaderComponent, i1.NgTemplateOutlet], styles: [".formio-grid[_ngcontent-%COMP%]{position:relative;width:100%}.grid-refresh[_ngcontent-%COMP%]{height:400px;width:100%}"] });
|
|
1041
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormioGridComponent, [{
|
|
1042
|
-
type: Component,
|
|
1043
|
-
args: [{
|
|
1044
|
-
selector: 'formio-grid',
|
|
1045
|
-
styleUrls: ['./grid.component.scss'],
|
|
1046
|
-
templateUrl: './grid.component.html'
|
|
1047
|
-
}]
|
|
1048
|
-
}], function () { return [{ type: i1$1.FormioAlerts }, { type: i0.ComponentFactoryResolver }, { type: i0.ChangeDetectorRef }]; }, { footerPosition: [{
|
|
1049
|
-
type: Input
|
|
1050
|
-
}], src: [{
|
|
1051
|
-
type: Input
|
|
1052
|
-
}], items: [{
|
|
1053
|
-
type: Input
|
|
1054
|
-
}], onForm: [{
|
|
1055
|
-
type: Input
|
|
1056
|
-
}], query: [{
|
|
1057
|
-
type: Input
|
|
1058
|
-
}], refresh: [{
|
|
1059
|
-
type: Input
|
|
1060
|
-
}], columns: [{
|
|
1061
|
-
type: Input
|
|
1062
|
-
}], gridType: [{
|
|
1063
|
-
type: Input
|
|
1064
|
-
}], size: [{
|
|
1065
|
-
type: Input
|
|
1066
|
-
}], components: [{
|
|
1067
|
-
type: Input
|
|
1068
|
-
}], formio: [{
|
|
1069
|
-
type: Input
|
|
1070
|
-
}], label: [{
|
|
1071
|
-
type: Input
|
|
1072
|
-
}], createText: [{
|
|
1073
|
-
type: Input
|
|
1074
|
-
}], isActionAllowed: [{
|
|
1075
|
-
type: Input
|
|
1076
|
-
}], select: [{
|
|
1077
|
-
type: Output
|
|
1078
|
-
}], rowSelect: [{
|
|
1079
|
-
type: Output
|
|
1080
|
-
}], rowAction: [{
|
|
1081
|
-
type: Output
|
|
1082
|
-
}], createItem: [{
|
|
1083
|
-
type: Output
|
|
1084
|
-
}], error: [{
|
|
1085
|
-
type: Output
|
|
1086
|
-
}], headerElement: [{
|
|
1087
|
-
type: ViewChild,
|
|
1088
|
-
args: ['headerTemplate', { read: ViewContainerRef, static: true }]
|
|
1089
|
-
}], bodyElement: [{
|
|
1090
|
-
type: ViewChild,
|
|
1091
|
-
args: ['bodyTemplate', { read: ViewContainerRef, static: true }]
|
|
1092
|
-
}], footerElement: [{
|
|
1093
|
-
type: ViewChild,
|
|
1094
|
-
args: ['footerTemplate', { read: ViewContainerRef, static: true }]
|
|
1095
|
-
}] }); })();
|
|
1096
|
-
|
|
1097
|
-
class FormioGrid {
|
|
1098
|
-
}
|
|
1099
|
-
FormioGrid.ɵfac = function FormioGrid_Factory(t) { return new (t || FormioGrid)(); };
|
|
1100
|
-
FormioGrid.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: FormioGrid });
|
|
1101
|
-
FormioGrid.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
1102
|
-
FormioAlerts,
|
|
1103
|
-
GridService
|
|
1104
|
-
], imports: [[
|
|
1105
|
-
CommonModule,
|
|
1106
|
-
FormsModule,
|
|
1107
|
-
FormioModule,
|
|
1108
|
-
RouterModule,
|
|
1109
|
-
PaginationModule.forRoot()
|
|
1110
|
-
]] });
|
|
1111
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormioGrid, [{
|
|
1112
|
-
type: NgModule,
|
|
1113
|
-
args: [{
|
|
1114
|
-
imports: [
|
|
1115
|
-
CommonModule,
|
|
1116
|
-
FormsModule,
|
|
1117
|
-
FormioModule,
|
|
1118
|
-
RouterModule,
|
|
1119
|
-
PaginationModule.forRoot()
|
|
1120
|
-
],
|
|
1121
|
-
declarations: [
|
|
1122
|
-
FormioGridComponent,
|
|
1123
|
-
FormGridHeaderComponent,
|
|
1124
|
-
FormGridBodyComponent,
|
|
1125
|
-
FormGridFooterComponent,
|
|
1126
|
-
SubmissionGridHeaderComponent,
|
|
1127
|
-
SubmissionGridBodyComponent,
|
|
1128
|
-
SubmissionGridFooterComponent,
|
|
1129
|
-
GridHeaderComponent,
|
|
1130
|
-
GridBodyComponent,
|
|
1131
|
-
GridFooterComponent,
|
|
1132
|
-
TimeSince
|
|
1133
|
-
],
|
|
1134
|
-
exports: [
|
|
1135
|
-
FormioGridComponent
|
|
1136
|
-
],
|
|
1137
|
-
entryComponents: [
|
|
1138
|
-
FormGridHeaderComponent,
|
|
1139
|
-
FormGridBodyComponent,
|
|
1140
|
-
FormGridFooterComponent,
|
|
1141
|
-
SubmissionGridHeaderComponent,
|
|
1142
|
-
SubmissionGridBodyComponent,
|
|
1143
|
-
SubmissionGridFooterComponent
|
|
1144
|
-
],
|
|
1145
|
-
providers: [
|
|
1146
|
-
FormioAlerts,
|
|
1147
|
-
GridService
|
|
1148
|
-
]
|
|
1149
|
-
}]
|
|
1150
|
-
}], null, null); })();
|
|
1151
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FormioGrid, { declarations: [FormioGridComponent,
|
|
1152
|
-
FormGridHeaderComponent,
|
|
1153
|
-
FormGridBodyComponent,
|
|
1154
|
-
FormGridFooterComponent,
|
|
1155
|
-
SubmissionGridHeaderComponent,
|
|
1156
|
-
SubmissionGridBodyComponent,
|
|
1157
|
-
SubmissionGridFooterComponent,
|
|
1158
|
-
GridHeaderComponent,
|
|
1159
|
-
GridBodyComponent,
|
|
1160
|
-
GridFooterComponent,
|
|
1161
|
-
TimeSince], imports: [CommonModule,
|
|
1162
|
-
FormsModule,
|
|
1163
|
-
FormioModule,
|
|
1164
|
-
RouterModule, i2$1.PaginationModule], exports: [FormioGridComponent] }); })();
|
|
1165
|
-
|
|
1166
|
-
/*
|
|
1167
|
-
* Public API Surface of angular-formio
|
|
1168
|
-
*/
|
|
1169
|
-
|
|
1170
|
-
/**
|
|
1171
|
-
* Generated bundle index. Do not edit.
|
|
1172
|
-
*/
|
|
1173
|
-
|
|
1174
|
-
export { FormGridBodyComponent, FormGridFooterComponent, FormGridHeaderComponent, FormioGrid, FormioGridComponent, GridBodyComponent, GridFooterComponent, GridHeaderComponent, GridService, SubmissionGridBodyComponent, SubmissionGridFooterComponent, SubmissionGridHeaderComponent };
|
|
1175
|
-
//# sourceMappingURL=formio-angular-grid.js.map
|