@formio/angular 7.0.0 → 7.5.0-dev.1060.b272e25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +5 -0
- package/.editorconfig +13 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.github/ISSUE_TEMPLATE/custom-components-support-request.md +15 -0
- package/.github/ISSUE_TEMPLATE/question.md +8 -0
- package/.github/pull_request_template.md +35 -0
- package/.github/workflows/ci.yml +171 -0
- package/.travis.yml +4 -0
- package/.yo-rc.json +7 -0
- package/CHANGELOG.md +1154 -0
- package/Dockerfile +20 -0
- package/LICENSE +21 -0
- package/README.md +204 -13
- package/angular.json +38 -0
- package/bs-config.json +11 -0
- package/{FormioBaseComponent.d.ts.map → dist/angular-formio/FormioBaseComponent.d.ts.map} +1 -1
- package/dist/angular-formio/README.md +24 -0
- package/{components → dist/angular-formio/components}/formbuilder/formbuilder.component.d.ts +1 -1
- package/{components → dist/angular-formio/components}/formbuilder/formbuilder.component.d.ts.map +1 -1
- package/{components → dist/angular-formio/components}/formioreport/formioreport.component.d.ts.map +1 -1
- package/{core.d.ts → dist/angular-formio/core.d.ts} +1 -1
- package/{core.d.ts.map → dist/angular-formio/core.d.ts.map} +1 -1
- package/dist/angular-formio/embed/app.service.d.ts +28 -0
- package/dist/angular-formio/embed/app.service.d.ts.map +1 -0
- package/dist/angular-formio/embed/builder.component.d.ts +14 -0
- package/dist/angular-formio/embed/builder.component.d.ts.map +1 -0
- package/dist/angular-formio/embed/embed.module.d.ts +10 -0
- package/dist/angular-formio/embed/embed.module.d.ts.map +1 -0
- package/dist/angular-formio/embed/formio-angular-embed.d.ts.map +1 -0
- package/dist/angular-formio/embed/formio.component.d.ts +17 -0
- package/dist/angular-formio/embed/formio.component.d.ts.map +1 -0
- package/dist/angular-formio/embed/index.d.ts +7 -0
- package/dist/angular-formio/embed/index.d.ts.map +1 -0
- package/dist/angular-formio/esm2022/FormioBaseComponent.mjs +580 -0
- package/{esm2022 → dist/angular-formio/esm2022}/auth/auth.service.mjs +2 -2
- package/dist/angular-formio/esm2022/components/formbuilder/formbuilder.component.mjs +202 -0
- package/dist/angular-formio/esm2022/components/formio/formio.component.mjs +43 -0
- package/dist/angular-formio/esm2022/components/formioreport/formioreport.component.mjs +89 -0
- package/{esm2022 → dist/angular-formio/esm2022}/core.mjs +2 -2
- package/dist/angular-formio/esm2022/embed/app.service.mjs +58 -0
- package/dist/angular-formio/esm2022/embed/builder.component.mjs +36 -0
- package/dist/angular-formio/esm2022/embed/embed.module.mjs +35 -0
- package/dist/angular-formio/esm2022/embed/formio-angular-embed.mjs +5 -0
- package/dist/angular-formio/esm2022/embed/formio.component.mjs +50 -0
- package/dist/angular-formio/esm2022/embed/index.mjs +7 -0
- package/dist/angular-formio/esm2022/formio.common.mjs +11 -0
- package/{esm2022 → dist/angular-formio/esm2022}/formio.config.mjs +2 -2
- package/dist/angular-formio/esm2022/formio.service.mjs +62 -0
- package/dist/angular-formio/esm2022/grid/grid.component.mjs +257 -0
- package/{esm2022 → dist/angular-formio/esm2022}/grid/submission/SubmissionGridHeader.component.mjs +2 -2
- package/{esm2022 → dist/angular-formio/esm2022}/manager/form-manager.service.mjs +2 -2
- package/{esm2022 → dist/angular-formio/esm2022}/manager/view/view.component.mjs +2 -2
- package/{esm2022 → dist/angular-formio/esm2022}/resource/edit/edit.component.mjs +2 -2
- package/{esm2022 → dist/angular-formio/esm2022}/resource/resource.service.mjs +2 -2
- package/{esm2022 → dist/angular-formio/esm2022}/resource/view/view.component.mjs +2 -2
- package/{fesm2022 → dist/angular-formio/fesm2022}/formio-angular-auth.mjs +1 -1
- package/dist/angular-formio/fesm2022/formio-angular-auth.mjs.map +1 -0
- package/dist/angular-formio/fesm2022/formio-angular-embed.mjs +176 -0
- package/dist/angular-formio/fesm2022/formio-angular-embed.mjs.map +1 -0
- package/{fesm2022 → dist/angular-formio/fesm2022}/formio-angular-grid.mjs +2 -1
- package/dist/angular-formio/fesm2022/formio-angular-grid.mjs.map +1 -0
- package/{fesm2022 → dist/angular-formio/fesm2022}/formio-angular-manager.mjs +1 -1
- package/dist/angular-formio/fesm2022/formio-angular-manager.mjs.map +1 -0
- package/{fesm2022 → dist/angular-formio/fesm2022}/formio-angular-resource.mjs +1 -1
- package/dist/angular-formio/fesm2022/formio-angular-resource.mjs.map +1 -0
- package/dist/angular-formio/fesm2022/formio-angular.mjs +1187 -0
- package/dist/angular-formio/fesm2022/formio-angular.mjs.map +1 -0
- package/{formio.common.d.ts → dist/angular-formio/formio.common.d.ts} +2 -2
- package/dist/angular-formio/formio.common.d.ts.map +1 -0
- package/{formio.config.d.ts → dist/angular-formio/formio.config.d.ts} +1 -1
- package/{formio.config.d.ts.map → dist/angular-formio/formio.config.d.ts.map} +1 -1
- package/{grid → dist/angular-formio/grid}/submission/SubmissionGridHeader.component.d.ts +1 -1
- package/{grid → dist/angular-formio/grid}/submission/SubmissionGridHeader.component.d.ts.map +1 -1
- package/{manager → dist/angular-formio/manager}/form-manager.service.d.ts +1 -1
- package/{manager → dist/angular-formio/manager}/form-manager.service.d.ts.map +1 -1
- package/package.json +54 -57
- package/projects/angular-formio/README.md +24 -0
- package/projects/angular-formio/auth/ng-package.json +5 -0
- package/projects/angular-formio/auth/src/auth.component.html +11 -0
- package/projects/angular-formio/auth/src/auth.component.ts +5 -0
- package/projects/angular-formio/auth/src/auth.config.ts +72 -0
- package/projects/angular-formio/auth/src/auth.module.ts +33 -0
- package/projects/angular-formio/auth/src/auth.routes.ts +34 -0
- package/projects/angular-formio/auth/src/auth.service.ts +221 -0
- package/projects/angular-formio/auth/src/index.ts +8 -0
- package/projects/angular-formio/auth/src/login/login.component.html +1 -0
- package/projects/angular-formio/auth/src/login/login.component.ts +11 -0
- package/projects/angular-formio/auth/src/public_api.ts +5 -0
- package/projects/angular-formio/auth/src/register/register.component.html +1 -0
- package/projects/angular-formio/auth/src/register/register.component.ts +11 -0
- package/projects/angular-formio/auth/src/resetpass/resetpass.component.html +1 -0
- package/projects/angular-formio/auth/src/resetpass/resetpass.component.ts +8 -0
- package/projects/angular-formio/embed/ng-package.json +5 -0
- package/projects/angular-formio/embed/src/app.service.ts +59 -0
- package/projects/angular-formio/embed/src/builder.component.ts +19 -0
- package/projects/angular-formio/embed/src/embed.module.ts +23 -0
- package/projects/angular-formio/embed/src/formio.component.ts +27 -0
- package/projects/angular-formio/embed/src/index.ts +6 -0
- package/projects/angular-formio/grid/ng-package.json +5 -0
- package/projects/angular-formio/grid/src/GridBodyComponent.ts +80 -0
- package/projects/angular-formio/grid/src/GridFooterComponent.ts +25 -0
- package/projects/angular-formio/grid/src/GridHeaderComponent.ts +25 -0
- package/projects/angular-formio/grid/src/form/FormGridBody.component.html +22 -0
- package/projects/angular-formio/grid/src/form/FormGridBody.component.scss +4 -0
- package/projects/angular-formio/grid/src/form/FormGridBody.component.ts +46 -0
- package/projects/angular-formio/grid/src/form/FormGridFooter.component.html +21 -0
- package/projects/angular-formio/grid/src/form/FormGridFooter.component.ts +23 -0
- package/projects/angular-formio/grid/src/form/FormGridHeader.component.html +18 -0
- package/projects/angular-formio/grid/src/form/FormGridHeader.component.ts +24 -0
- package/projects/angular-formio/grid/src/form/index.ts +8 -0
- package/projects/angular-formio/grid/src/form/time-since.pipe.ts +31 -0
- package/projects/angular-formio/grid/src/grid.component.html +18 -0
- package/projects/angular-formio/grid/src/grid.component.scss +9 -0
- package/projects/angular-formio/grid/src/grid.component.ts +242 -0
- package/projects/angular-formio/grid/src/grid.footer.scss +14 -0
- package/projects/angular-formio/grid/src/grid.module.ts +49 -0
- package/projects/angular-formio/grid/src/grid.service.ts +16 -0
- package/projects/angular-formio/grid/src/index.ts +12 -0
- package/projects/angular-formio/grid/src/public_api.ts +5 -0
- package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.html +7 -0
- package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.ts +39 -0
- package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.html +18 -0
- package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.ts +20 -0
- package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.html +11 -0
- package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.ts +72 -0
- package/projects/angular-formio/grid/src/submission/index.ts +8 -0
- package/projects/angular-formio/grid/src/types/grid-column.ts +7 -0
- package/projects/angular-formio/grid/src/types/grid-footer-positions.ts +5 -0
- package/projects/angular-formio/grid/src/types/grid-header.ts +14 -0
- package/projects/angular-formio/karma.conf.js +32 -0
- package/projects/angular-formio/manager/ng-package.json +5 -0
- package/projects/angular-formio/manager/src/create/create.component.ts +11 -0
- package/projects/angular-formio/manager/src/delete/delete.component.html +6 -0
- package/projects/angular-formio/manager/src/delete/delete.component.ts +37 -0
- package/projects/angular-formio/manager/src/edit/edit.component.html +19 -0
- package/projects/angular-formio/manager/src/edit/edit.component.ts +110 -0
- package/projects/angular-formio/manager/src/form/form.component.html +32 -0
- package/projects/angular-formio/manager/src/form/form.component.ts +73 -0
- package/projects/angular-formio/manager/src/form-manager.config.ts +31 -0
- package/projects/angular-formio/manager/src/form-manager.module.ts +54 -0
- package/projects/angular-formio/manager/src/form-manager.routes.ts +75 -0
- package/projects/angular-formio/manager/src/form-manager.service.ts +190 -0
- package/projects/angular-formio/manager/src/index/index.component.html +14 -0
- package/projects/angular-formio/manager/src/index/index.component.scss +22 -0
- package/projects/angular-formio/manager/src/index/index.component.ts +100 -0
- package/projects/angular-formio/manager/src/index.ts +16 -0
- package/projects/angular-formio/manager/src/public_api.ts +5 -0
- package/projects/angular-formio/manager/src/submission/delete/delete.component.html +6 -0
- package/projects/angular-formio/manager/src/submission/delete/delete.component.ts +26 -0
- package/projects/angular-formio/manager/src/submission/edit/edit.component.html +7 -0
- package/projects/angular-formio/manager/src/submission/edit/edit.component.ts +18 -0
- package/projects/angular-formio/manager/src/submission/index/index.component.html +1 -0
- package/projects/angular-formio/manager/src/submission/index/index.component.ts +18 -0
- package/projects/angular-formio/manager/src/submission/submission/submission.component.html +8 -0
- package/projects/angular-formio/manager/src/submission/submission/submission.component.ts +24 -0
- package/projects/angular-formio/manager/src/submission/view/view.component.html +7 -0
- package/projects/angular-formio/manager/src/submission/view/view.component.ts +9 -0
- package/projects/angular-formio/manager/src/view/view.component.html +11 -0
- package/projects/angular-formio/manager/src/view/view.component.ts +44 -0
- package/projects/angular-formio/ng-package.json +7 -0
- package/projects/angular-formio/package.json +37 -0
- package/projects/angular-formio/resource/ng-package.json +5 -0
- package/projects/angular-formio/resource/src/create/create.component.html +13 -0
- package/projects/angular-formio/resource/src/create/create.component.scss +3 -0
- package/projects/angular-formio/resource/src/create/create.component.ts +37 -0
- package/projects/angular-formio/resource/src/delete/delete.component.html +5 -0
- package/projects/angular-formio/resource/src/delete/delete.component.ts +24 -0
- package/projects/angular-formio/resource/src/edit/edit.component.html +7 -0
- package/projects/angular-formio/resource/src/edit/edit.component.ts +35 -0
- package/projects/angular-formio/resource/src/index/index.component.html +10 -0
- package/projects/angular-formio/resource/src/index/index.component.ts +64 -0
- package/projects/angular-formio/resource/src/index.js +24 -0
- package/projects/angular-formio/resource/src/index.ts +11 -0
- package/projects/angular-formio/resource/src/public_api.ts +5 -0
- package/projects/angular-formio/resource/src/resource.component.html +7 -0
- package/projects/angular-formio/resource/src/resource.component.ts +48 -0
- package/projects/angular-formio/resource/src/resource.config.ts +17 -0
- package/projects/angular-formio/resource/src/resource.module.ts +43 -0
- package/projects/angular-formio/resource/src/resource.routes.ts +43 -0
- package/projects/angular-formio/resource/src/resource.service.ts +258 -0
- package/projects/angular-formio/resource/src/resources.service.ts +24 -0
- package/projects/angular-formio/resource/src/view/view.component.html +6 -0
- package/projects/angular-formio/resource/src/view/view.component.ts +19 -0
- package/projects/angular-formio/src/FormioBaseComponent.ts +554 -0
- package/projects/angular-formio/src/components/alerts/formio.alerts.component.html +3 -0
- package/projects/angular-formio/src/components/alerts/formio.alerts.component.ts +19 -0
- package/projects/angular-formio/src/components/alerts/formio.alerts.ts +21 -0
- package/projects/angular-formio/src/components/alerts/parse-html-content.pipe.ts +15 -0
- package/projects/angular-formio/src/components/formbuilder/formbuilder.component.html +1 -0
- package/projects/angular-formio/src/components/formbuilder/formbuilder.component.ts +213 -0
- package/projects/angular-formio/src/components/formio/formio.component.html +8 -0
- package/projects/angular-formio/src/components/formio/formio.component.ts +33 -0
- package/projects/angular-formio/src/components/formioreport/formioreport.component.html +8 -0
- package/projects/angular-formio/src/components/formioreport/formioreport.component.ts +95 -0
- package/projects/angular-formio/src/components/loader/formio.loader.component.html +3 -0
- package/projects/angular-formio/src/components/loader/formio.loader.component.scss +26 -0
- package/projects/angular-formio/src/components/loader/formio.loader.component.ts +10 -0
- package/projects/angular-formio/src/core.ts +25 -0
- package/projects/angular-formio/src/custom-tags.service.ts +9 -0
- package/projects/angular-formio/src/formio-promise.service.ts +36 -0
- package/projects/angular-formio/src/formio.common.ts +91 -0
- package/projects/angular-formio/src/formio.config.ts +26 -0
- package/projects/angular-formio/src/formio.module.ts +38 -0
- package/projects/angular-formio/src/formio.service.ts +57 -0
- package/projects/angular-formio/src/formio.utils.ts +23 -0
- package/projects/angular-formio/src/index.ts +3 -0
- package/projects/angular-formio/src/public-api.ts +5 -0
- package/projects/angular-formio/src/test.ts +28 -0
- package/projects/angular-formio/src/types/alerts-position.ts +6 -0
- package/projects/angular-formio/src/types/formio-metadata.ts +10 -0
- package/projects/angular-formio/src/types/formio-submission.ts +20 -0
- package/projects/angular-formio/tsconfig.lib.json +27 -0
- package/projects/angular-formio/tsconfig.lib.prod.json +8 -0
- package/projects/angular-formio/tsconfig.spec.json +17 -0
- package/projects/angular-formio/tslint.json +17 -0
- package/tsconfig.json +39 -0
- package/tslint.json +140 -0
- package/esm2022/FormioBaseComponent.mjs +0 -583
- package/esm2022/components/formbuilder/formbuilder.component.mjs +0 -202
- package/esm2022/components/formio/formio.component.mjs +0 -43
- package/esm2022/components/formioreport/formioreport.component.mjs +0 -86
- package/esm2022/formio.common.mjs +0 -11
- package/esm2022/formio.service.mjs +0 -62
- package/esm2022/grid/grid.component.mjs +0 -257
- package/fesm2022/formio-angular-auth.mjs.map +0 -1
- package/fesm2022/formio-angular-grid.mjs.map +0 -1
- package/fesm2022/formio-angular-manager.mjs.map +0 -1
- package/fesm2022/formio-angular-resource.mjs.map +0 -1
- package/fesm2022/formio-angular.mjs +0 -1186
- package/fesm2022/formio-angular.mjs.map +0 -1
- package/formio.common.d.ts.map +0 -1
- /package/{FormioBaseComponent.d.ts → dist/angular-formio/FormioBaseComponent.d.ts} +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.component.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.component.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.config.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.config.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.module.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.module.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.routes.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.routes.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.service.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/auth.service.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/formio-angular-auth.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/index.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/index.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/login/login.component.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/login/login.component.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/register/register.component.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/register/register.component.d.ts.map +0 -0
- /package/{auth → dist/angular-formio/auth}/resetpass/resetpass.component.d.ts +0 -0
- /package/{auth → dist/angular-formio/auth}/resetpass/resetpass.component.d.ts.map +0 -0
- /package/{components → dist/angular-formio/components}/alerts/formio.alerts.component.d.ts +0 -0
- /package/{components → dist/angular-formio/components}/alerts/formio.alerts.component.d.ts.map +0 -0
- /package/{components → dist/angular-formio/components}/alerts/formio.alerts.d.ts +0 -0
- /package/{components → dist/angular-formio/components}/alerts/formio.alerts.d.ts.map +0 -0
- /package/{components → dist/angular-formio/components}/alerts/parse-html-content.pipe.d.ts +0 -0
- /package/{components → dist/angular-formio/components}/alerts/parse-html-content.pipe.d.ts.map +0 -0
- /package/{components → dist/angular-formio/components}/formio/formio.component.d.ts +0 -0
- /package/{components → dist/angular-formio/components}/formio/formio.component.d.ts.map +0 -0
- /package/{components → dist/angular-formio/components}/formioreport/formioreport.component.d.ts +0 -0
- /package/{components → dist/angular-formio/components}/loader/formio.loader.component.d.ts +0 -0
- /package/{components → dist/angular-formio/components}/loader/formio.loader.component.d.ts.map +0 -0
- /package/{custom-tags.service.d.ts → dist/angular-formio/custom-tags.service.d.ts} +0 -0
- /package/{custom-tags.service.d.ts.map → dist/angular-formio/custom-tags.service.d.ts.map} +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/auth/auth.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/auth/auth.config.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/auth/auth.module.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/auth/auth.routes.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/auth/formio-angular-auth.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/auth/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/auth/login/login.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/auth/register/register.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/auth/resetpass/resetpass.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/components/alerts/formio.alerts.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/components/alerts/formio.alerts.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/components/alerts/parse-html-content.pipe.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/components/loader/formio.loader.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/custom-tags.service.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/formio-angular.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/formio-promise.service.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/formio.module.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/formio.utils.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/GridBodyComponent.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/GridFooterComponent.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/GridHeaderComponent.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/form/FormGridBody.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/form/FormGridFooter.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/form/FormGridHeader.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/form/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/form/time-since.pipe.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/formio-angular-grid.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/grid.module.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/grid.service.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/submission/SubmissionGridBody.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/submission/SubmissionGridFooter.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/submission/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/types/grid-column.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/types/grid-footer-positions.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/grid/types/grid-header.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/create/create.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/delete/delete.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/edit/edit.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/form/form.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/form-manager.config.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/form-manager.module.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/form-manager.routes.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/formio-angular-manager.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/index/index.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/submission/delete/delete.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/submission/edit/edit.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/submission/index/index.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/submission/submission/submission.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/manager/submission/view/view.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/resource/create/create.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/resource/delete/delete.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/resource/formio-angular-resource.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/resource/index/index.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/resource/index.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/resource/resource.component.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/resource/resource.config.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/resource/resource.module.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/resource/resource.routes.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/resource/resources.service.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/types/alerts-position.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/types/formio-metadata.mjs +0 -0
- /package/{esm2022 → dist/angular-formio/esm2022}/types/formio-submission.mjs +0 -0
- /package/{formio-angular.d.ts.map → dist/angular-formio/formio-angular.d.ts.map} +0 -0
- /package/{formio-promise.service.d.ts → dist/angular-formio/formio-promise.service.d.ts} +0 -0
- /package/{formio-promise.service.d.ts.map → dist/angular-formio/formio-promise.service.d.ts.map} +0 -0
- /package/{formio.module.d.ts → dist/angular-formio/formio.module.d.ts} +0 -0
- /package/{formio.module.d.ts.map → dist/angular-formio/formio.module.d.ts.map} +0 -0
- /package/{formio.service.d.ts → dist/angular-formio/formio.service.d.ts} +0 -0
- /package/{formio.service.d.ts.map → dist/angular-formio/formio.service.d.ts.map} +0 -0
- /package/{formio.utils.d.ts → dist/angular-formio/formio.utils.d.ts} +0 -0
- /package/{formio.utils.d.ts.map → dist/angular-formio/formio.utils.d.ts.map} +0 -0
- /package/{grid → dist/angular-formio/grid}/GridBodyComponent.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/GridBodyComponent.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/GridFooterComponent.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/GridFooterComponent.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/GridHeaderComponent.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/GridHeaderComponent.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/form/FormGridBody.component.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/form/FormGridBody.component.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/form/FormGridFooter.component.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/form/FormGridFooter.component.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/form/FormGridHeader.component.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/form/FormGridHeader.component.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/form/index.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/form/index.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/form/time-since.pipe.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/form/time-since.pipe.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/formio-angular-grid.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/grid.component.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/grid.component.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/grid.module.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/grid.module.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/grid.service.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/grid.service.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/index.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/index.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/submission/SubmissionGridBody.component.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/submission/SubmissionGridBody.component.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/submission/SubmissionGridFooter.component.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/submission/SubmissionGridFooter.component.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/submission/index.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/submission/index.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/types/grid-column.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/types/grid-column.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/types/grid-footer-positions.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/types/grid-footer-positions.d.ts.map +0 -0
- /package/{grid → dist/angular-formio/grid}/types/grid-header.d.ts +0 -0
- /package/{grid → dist/angular-formio/grid}/types/grid-header.d.ts.map +0 -0
- /package/{index.d.ts → dist/angular-formio/index.d.ts} +0 -0
- /package/{index.d.ts.map → dist/angular-formio/index.d.ts.map} +0 -0
- /package/{manager → dist/angular-formio/manager}/create/create.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/create/create.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/delete/delete.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/delete/delete.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/edit/edit.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/edit/edit.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/form/form.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/form/form.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.config.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.config.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.module.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.module.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/formio-angular-manager.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/index/index.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/index/index.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/index.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/index.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/delete/delete.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/delete/delete.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/edit/edit.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/edit/edit.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/index/index.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/index/index.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/submission/submission.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/submission/submission.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/view/view.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/submission/view/view.component.d.ts.map +0 -0
- /package/{manager → dist/angular-formio/manager}/view/view.component.d.ts +0 -0
- /package/{manager → dist/angular-formio/manager}/view/view.component.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/create/create.component.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/create/create.component.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/delete/delete.component.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/delete/delete.component.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/edit/edit.component.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/edit/edit.component.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/formio-angular-resource.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/index/index.component.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/index/index.component.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/index.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/index.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.component.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.component.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.config.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.config.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.module.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.module.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.routes.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.routes.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.service.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/resource.service.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/resources.service.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/resources.service.d.ts.map +0 -0
- /package/{resource → dist/angular-formio/resource}/view/view.component.d.ts +0 -0
- /package/{resource → dist/angular-formio/resource}/view/view.component.d.ts.map +0 -0
- /package/{types → dist/angular-formio/types}/alerts-position.d.ts +0 -0
- /package/{types → dist/angular-formio/types}/alerts-position.d.ts.map +0 -0
- /package/{types → dist/angular-formio/types}/formio-metadata.d.ts +0 -0
- /package/{types → dist/angular-formio/types}/formio-metadata.d.ts.map +0 -0
- /package/{types → dist/angular-formio/types}/formio-submission.d.ts +0 -0
- /package/{types → dist/angular-formio/types}/formio-submission.d.ts.map +0 -0
package/.dockerignore
ADDED
package/.editorconfig
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: "[BUG] "
|
|
5
|
+
labels: bug
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Environment
|
|
11
|
+
Please provide as many details as you can:
|
|
12
|
+
|
|
13
|
+
- Hosting type
|
|
14
|
+
- [x] Form.io
|
|
15
|
+
- [ ] Local deployment
|
|
16
|
+
- Version:
|
|
17
|
+
- Formio.js version:
|
|
18
|
+
- Frontend framework:
|
|
19
|
+
- Browser:
|
|
20
|
+
- Browser version:
|
|
21
|
+
|
|
22
|
+
## Steps to Reproduce
|
|
23
|
+
1.
|
|
24
|
+
2.
|
|
25
|
+
3.
|
|
26
|
+
|
|
27
|
+
## Expected behavior
|
|
28
|
+
|
|
29
|
+
## Observed behavior
|
|
30
|
+
|
|
31
|
+
## Example
|
|
32
|
+
If possible, please provide a screenshot, live example (via [JSFiddle](https://jsfiddle.net/) or similar), and/or example code to help demonstrate the issue.
|
|
33
|
+
|
|
34
|
+
For code or form JSON, please enclose in a code block:
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
// your code here
|
|
38
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Custom Components Support Request
|
|
3
|
+
about: Questions about Custom Components
|
|
4
|
+
title: "[Custom Components] "
|
|
5
|
+
labels: 'question, scope: community, scope: custom components'
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<!--
|
|
11
|
+
Thank you for reaching us regarding to Custom Components.
|
|
12
|
+
Please note that Angular wrapper for Custom Components is community build which also means you may get help from the community.
|
|
13
|
+
|
|
14
|
+
Before submitting your request, please read our Wiki page: https://github.com/formio/angular-formio/wiki/Custom-Components-with-Angular-Elements
|
|
15
|
+
-->
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
## Link to Jira Ticket
|
|
2
|
+
|
|
3
|
+
https://formio.atlassian.net/browse/FIO-XXXX
|
|
4
|
+
|
|
5
|
+
## Description
|
|
6
|
+
|
|
7
|
+
**What changed?**
|
|
8
|
+
|
|
9
|
+
*Use this section to provide a summary description of the changes you've made*
|
|
10
|
+
|
|
11
|
+
**Why have you chosen this solution?**
|
|
12
|
+
|
|
13
|
+
*Use this section to justify your choices*
|
|
14
|
+
|
|
15
|
+
## Breaking Changes / Backwards Compatibility
|
|
16
|
+
|
|
17
|
+
*Use this section to describe any potentially breaking changes this PR introduces or any effects this PR might have on backwards compatibility*
|
|
18
|
+
|
|
19
|
+
## Dependencies
|
|
20
|
+
|
|
21
|
+
*Use this section to list any dependent changes/PRs in other Form.io modules*
|
|
22
|
+
|
|
23
|
+
## How has this PR been tested?
|
|
24
|
+
|
|
25
|
+
*Use this section to describe how you tested your changes; if you haven't included automated tests, justify your reasoning*
|
|
26
|
+
|
|
27
|
+
## Checklist:
|
|
28
|
+
|
|
29
|
+
- [ ] I have completed the above PR template
|
|
30
|
+
- [ ] I have commented my code, particularly in hard-to-understand areas
|
|
31
|
+
- [ ] I have made corresponding changes to the documentation (if applicable)
|
|
32
|
+
- [ ] My changes generate no new warnings
|
|
33
|
+
- [ ] My changes include tests that prove my fix is effective (or that my feature works as intended)
|
|
34
|
+
- [ ] New and existing unit/integration tests pass locally with my changes
|
|
35
|
+
- [ ] Any dependent changes have corresponding PRs that are listed above
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
name: Build, Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, synchronize]
|
|
6
|
+
|
|
7
|
+
env:
|
|
8
|
+
NODE_VERSION: 20.x
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
#####################################################################
|
|
12
|
+
## Setup
|
|
13
|
+
#####################################################################
|
|
14
|
+
setup:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- run: echo "Triggered by ${{ github.event_name }} event."
|
|
18
|
+
|
|
19
|
+
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
|
|
20
|
+
uses: actions/checkout@v3
|
|
21
|
+
|
|
22
|
+
- name: Set up Node.js ${{ env.NODE_VERSION }}
|
|
23
|
+
uses: actions/setup-node@v3
|
|
24
|
+
with:
|
|
25
|
+
node-version: ${{ env.NODE_VERSION }}
|
|
26
|
+
cache: 'npm'
|
|
27
|
+
|
|
28
|
+
- name: Cache node modules
|
|
29
|
+
uses: actions/cache@v3
|
|
30
|
+
with:
|
|
31
|
+
path: node_modules
|
|
32
|
+
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
|
33
|
+
restore-keys: |
|
|
34
|
+
${{ runner.os }}-node-
|
|
35
|
+
|
|
36
|
+
- name: Installing dependencies
|
|
37
|
+
if: steps.cache.outputs.cache-hit != 'true'
|
|
38
|
+
uses: borales/actions-yarn@v4
|
|
39
|
+
with:
|
|
40
|
+
cmd: install --frozen-lockfile
|
|
41
|
+
|
|
42
|
+
# - name: Lint
|
|
43
|
+
# uses: borales/actions-yarn@v4
|
|
44
|
+
# with:
|
|
45
|
+
# cmd: lint
|
|
46
|
+
|
|
47
|
+
#####################################################################
|
|
48
|
+
## Build
|
|
49
|
+
#####################################################################
|
|
50
|
+
build:
|
|
51
|
+
needs: setup
|
|
52
|
+
runs-on: ubuntu-latest
|
|
53
|
+
steps:
|
|
54
|
+
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
|
|
55
|
+
uses: actions/checkout@v3
|
|
56
|
+
|
|
57
|
+
- name: Restore node modules from cache
|
|
58
|
+
uses: actions/cache@v3
|
|
59
|
+
with:
|
|
60
|
+
path: node_modules
|
|
61
|
+
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
|
62
|
+
restore-keys: |
|
|
63
|
+
${{ runner.os }}-node-
|
|
64
|
+
|
|
65
|
+
- name: Build
|
|
66
|
+
uses: borales/actions-yarn@v4
|
|
67
|
+
with:
|
|
68
|
+
cmd: build:prod
|
|
69
|
+
|
|
70
|
+
- name: Show build directory contents
|
|
71
|
+
run: |
|
|
72
|
+
ls -R ./dist/angular-formio
|
|
73
|
+
|
|
74
|
+
- name: Cache build directory
|
|
75
|
+
uses: actions/cache@v3
|
|
76
|
+
with:
|
|
77
|
+
path: dist
|
|
78
|
+
key: ${{ runner.os }}-dist-${{ hashFiles('dist.tgz') }}
|
|
79
|
+
restore-keys: |
|
|
80
|
+
${{ runner.os }}-dist-
|
|
81
|
+
|
|
82
|
+
#####################################################################
|
|
83
|
+
## Test (Trys to launch a chrome browser, will need additional work)
|
|
84
|
+
#####################################################################
|
|
85
|
+
# test:
|
|
86
|
+
# needs: setup
|
|
87
|
+
# runs-on: ubuntu-latest
|
|
88
|
+
# steps:
|
|
89
|
+
# - name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
|
|
90
|
+
# uses: actions/checkout@v3
|
|
91
|
+
|
|
92
|
+
# - name: Restore node modules from cache
|
|
93
|
+
# uses: actions/cache@v3
|
|
94
|
+
# with:
|
|
95
|
+
# path: node_modules
|
|
96
|
+
# key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
|
97
|
+
# restore-keys: |
|
|
98
|
+
# ${{ runner.os }}-node-
|
|
99
|
+
|
|
100
|
+
# - name: Test
|
|
101
|
+
# uses: borales/actions-yarn@v4
|
|
102
|
+
# with:
|
|
103
|
+
# cmd: test
|
|
104
|
+
|
|
105
|
+
#####################################################################
|
|
106
|
+
## Publish
|
|
107
|
+
#####################################################################
|
|
108
|
+
publish:
|
|
109
|
+
needs: [setup, build]
|
|
110
|
+
if: ${{ github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'synchronize') }}
|
|
111
|
+
runs-on: ubuntu-latest
|
|
112
|
+
steps:
|
|
113
|
+
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
|
|
114
|
+
uses: actions/checkout@v3
|
|
115
|
+
|
|
116
|
+
- name: Set up Node.js ${{ env.NODE_VERSION }}
|
|
117
|
+
uses: actions/setup-node@v3
|
|
118
|
+
with:
|
|
119
|
+
node-version: ${{ env.NODE_VERSION }}
|
|
120
|
+
cache: 'npm'
|
|
121
|
+
registry-url: 'https://registry.npmjs.org/'
|
|
122
|
+
|
|
123
|
+
- name: Prepare version for publish
|
|
124
|
+
id: prep
|
|
125
|
+
run: |
|
|
126
|
+
# Extract the pull request number and the short SHA of the commit
|
|
127
|
+
PR_NUMBER=$(echo ${{ github.event.number }})
|
|
128
|
+
COMMIT_SHORT_SHA=$(echo "${{ github.event.pull_request.head.sha }}" | cut -c1-7)
|
|
129
|
+
|
|
130
|
+
# Extract the current version from package.json
|
|
131
|
+
CURRENT_VERSION=$(node -p "require('./package.json').version")
|
|
132
|
+
|
|
133
|
+
# Get base SemVer to us for new dev version
|
|
134
|
+
BASE_VERSION=$(echo "$CURRENT_VERSION" | cut -d'-' -f1)
|
|
135
|
+
|
|
136
|
+
# Construct the new version string
|
|
137
|
+
NEW_VERSION="${BASE_VERSION}-dev.${PR_NUMBER}.${COMMIT_SHORT_SHA}"
|
|
138
|
+
|
|
139
|
+
# Output the new version for use in subsequent GitHub Actions steps
|
|
140
|
+
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
|
|
141
|
+
|
|
142
|
+
- name: Echo version to Publish
|
|
143
|
+
run: |
|
|
144
|
+
echo "Version to publish: $NEW_VERSION"
|
|
145
|
+
|
|
146
|
+
# Restore Build cache
|
|
147
|
+
- name: Restore build cache
|
|
148
|
+
uses: actions/cache@v3
|
|
149
|
+
with:
|
|
150
|
+
path: dist
|
|
151
|
+
key: ${{ runner.os }}-dist-${{ hashFiles('dist.tgz') }}
|
|
152
|
+
restore-keys: |
|
|
153
|
+
${{ runner.os }}-dist-
|
|
154
|
+
|
|
155
|
+
- name: Switch to dist directory
|
|
156
|
+
run: cd ./dist/angular-formio
|
|
157
|
+
|
|
158
|
+
- name: Configure Git user
|
|
159
|
+
run: |
|
|
160
|
+
git config --global user.email "pkgbot@form.io"
|
|
161
|
+
git config --global user.name "pkgbot"
|
|
162
|
+
|
|
163
|
+
- name: Add npm token to .npmrc
|
|
164
|
+
run: |
|
|
165
|
+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
|
|
166
|
+
|
|
167
|
+
- name: Publish to npm
|
|
168
|
+
run: |
|
|
169
|
+
npm version $NEW_VERSION --no-git-tag-version
|
|
170
|
+
npm publish --tag=dev
|
|
171
|
+
|
package/.travis.yml
ADDED