@formio/angular 5.4.0-rc.2 → 5.5.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/01/e5/e23b89936960de6ad3508f850be720524a6231b49e8520d80bd5f9468e9404dd6ee313e5127d0648608ef8fa2b469c2c0f7c49f89162b05bbcce80461e9c +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/01/f5/4259bfb27e15abda81ea61ae4e2d8f29ef518e099f1d7c8693fa453843a874ee8d04e25a99f4061c0400be1a9f3f1a874a330fcf0a5dba082ca951c8707b +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/03/23/c769271f9bbd8eda9edbc085d8f53d3bb02909ee0a22a3de1c89b7df544beced4e74167af785a6bf25e0c981807e78868d1032267e98cd714e7779902ff9 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/0c/7a/916bd866cb386cc87b9ea07c40edc23df9d726d1865e6699b42dedfbfb2a8364ced191aa62680a9297d7644cdfa64753b8975cc254c7c581f28bba0acd15 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/15/a9/1d68fcff615e0cffcaad777402e5642b8a3bd360ad0af813af9691e0b7309038151eac43ae8e67d6b3be5a00cfaea2667e654c24ea55ff4cd2f8b58dc2a7 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/1d/f9/f8694213d5dd173183df341996413ab4b230954a5cb5fec27b2fe58be33155dca699aa3562b45b88aed867a901c5a8b5242f02d28d55bee5523532679008 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/21/d0/9bcc3e57b3d1375b9e47de16213e34f68cc10f0eff6bf1776422eeb0888c8deefdedb4d34bbfb5a48a31e3db208d2363f8aa16ee35183a90b382fa888e9f +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/22/f0/5cfa42afa778fe6e8c9d64a24c1a0c66e766ea8737f3336df95c535613589b840b5d7d45cfc0548bb91e69d1ec3acc0055e0d56b19fb05d7de846d1b8b43 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/3a/b3/f51b230d4fc92fcc2a671feb65e5d1995435fd44aeede5840708854fc200fc6e885145882b27d2e8967b1dcc1a4558ebd3afee0e3ba1bba76c4e042a509c +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/43/05/c86feb68c6e6f17d2b1e7d4aadfbef2f8554b42c9e0b7516b22a7c34044b513c23987b00507d17cb8f89b9b762b5499483d4ec16708519940e00cee5863a +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/49/83/fe1894f290d2c7b62071613c17ef550fc151acb486bca8d907dc1da702f3a83f0cc638e33acdccf4a8710f342bb39ca4e591b35f5551706578315a4ec9f1 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/4b/50/b112c9a92c939784f8af5ea5888188aa9dfc5114485463d0dbf84d8e7b48ff7e52f8d012badd74347a83a214c8504cda54769f9f86774919184fed955fea +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/52/5a/4fa0f73bf834435defcfd550b63ea9924b0f0af5d8cbfe2c79ee2a3efd8b4c50c47a048c8daf54afceec58ad38159c690afe1224832ecd8e724ff4030068 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/5f/1e/aef8c84037440da9067e57fe4fb8d14c4226a97e0d41a321755d9068d490b7c37504fd2e4345ca98b2c824b940fe036e499998be3343a89e6845767dc806 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/69/49/5bcde08bb3541360e80c857e93c622592b2605f53500ec939f264908603a030c9e3da2f7ec05883f3f8ccb19f158d4e249a665f5d6a46c6c8aae7ecb7ff2 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/78/6b/938be911c6fa1b8ab5c1136954cd375f6d24ca77880eefc4f59bd030cc7c9d462b400d3db051117bcbaa5fb2037c4c08c892c5d3ceb7ac6e3f11e0b3130a +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/81/f7/21b01b64900856c9f64f17129a8865cd92a471eb4c6dd452e870d5f3d685b57bc7a48759458d345cb081523d23b4f8ff7f3e6d133fcea11f971be8d7b396 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/8b/1d/9d06e2b1f63c60745b165ba2236f3b2366a6f2c2b5cfd12c73508e54cc5a4b4d5e47015a1a2188c9f3cb7ed82e5cc0d5790bd55fb6883942279d8e69d98a +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/94/37/128b088664cddaff6cbdcabc604d8f559d8b8f7c3655c1e42d86e9d91c3e51483fff7e27be62ca9790fc43d271fd4c87d2246c5423f9e681793832bd3b4e +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/9c/21/3b8af7b6ee09c29bf340610026191af56f9ba1cba1f5e4476424775d5e322f84d7e900c4d264d39804cebf3dcb5aaa5eb5e9d8fd143bc3a8aa76c3d5325e +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/9f/9a/6055949c6d628b4f34b5f43410d5efbbacd956e52240b30278fd4dfe5182a206d91728e0d16b71904e0cf5b40d7944f054d7fa6f45ce38502aa3c654446c +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/a2/a1/90177481ee6a42670513d750763246aef60819ab74d0835ca92f243cd8970edc9c6e2d63a576e9edb1f702810a8632512b623550c454d16596aa29f6553a +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/ab/fd/668e4582483cadf906c6b8199541af6c4c843761aa3d2372088613a1b17498c302709580ea641920b5c1e67265bf88e6e3901a210be18a8f24bc58743200 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/af/4a/cafdd325d47ab347fd8f7d3828818bd4305919aeaa02a86850a77589b07e81162d9f3d08619d253037c6562d1a1389fcd99713cef96ff394d7ec55134deb +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/af/5c/97d9a08342685ee95844b54aed260370df0de7c2408ec7b14f7da3972c811ee5a4cae7be4f51de07dd039c8639ec4e9008733bcf0b6a438b29a83d7fabe3 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/b9/9d/f7b80ff9e7ab8eb61b27b29fa5b2790f18fda8b2d23d4e821ede655c7f981c37d90094cf772ec02b8fc1730b94bd8154534a39191b9a9fc7de88974d57f4 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/ba/5d/d939f6c0890924d0234b6253e4c7baab7e285c4e9e3b838d4f223f5365ce00c421e48383fc21ecdf847e1592936f5be80b0d20ea3db471bfe39e181c091a +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/c3/a1/25be872308b2510aa4e49fee9fb3708fe45d0526c4094a8b1af3bf8edd7e3c5cfb58a1c15523673b91a4c02bd4ec7baa1b88ec8ab73c7e3dde53898fe98a +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/c7/4b/efaebbbabff0924b290dafa529aee821d250fc178047868b7f63c849de6af1f9557825b665fd50a87cf363e2967a7913e60a9860cac818737c43f088a0b6 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/d3/15/8fda1c88b170d1f252a22dc3be6211581e1b9975058b870c182b3b66ea5b0f3f2edfafb3ef7b10c42cfdf97b8cbbe1aeb57c965e6e6bb2b5076848889691 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/d7/53/c9807659c1f98269ec82d2980bda0b81da57c9dec6efd59cf3e7abdbfa6a3e751ab0eb4d66e6b62d31873b4b74c349c87fa194d0e7b7e114e5bdcc3cdcdb +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/e1/3b/a5699b2b00255cbdc58efdda462de0c9fffe6b82cd5482a49f4fd918ecf98ffd08211dbf1d80cb60ac0052b8d9919c6d5d16fa99300dfc3be3c2b85ffbf9 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/e8/bf/a382f2ee2851df30c90d614c8104b97c8352c9d894966fe19f3c5ae632bc3fdf2c4879c1f9ec67fb28afdf19cd1683e9305c193d6e82835b688e3474447e +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/e9/87/edf15f2af87d650e35a6dd3675d7e6910c0ee3f095e95542c581d3b89e3cfde325714bf4a93e1c7665bc33adbbfe4cc49c073ac122ee697681d01d041eba +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/e9/aa/76646c61fad4972df6b5625be826a0d182cbe21632fdba1458c6e7d87f394dd5c9ccf71389772b2a5edb616e477f74f351d88eab7c39c76afe95bb851e27 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/e9/ca/53ff813610ae5d57a25518e6546b659a092de2c929fd43130db59358947aa9aa5797289f7ca39fe550d2e41050a69cb26e6b5dd6ebbcae0207ab08474dc8 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/f7/c4/20025dfcab6ef6645c04bf03ab9e87e06f5526f8c1428595f87ec9b7c23c8a04fb146e47e176baf3da8a852b7bf277bb1ab27ecb61b699cb216edd3ff8ec +1 -0
- package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/ff/c7/bd261ba278c31a35ab220845891f83c1a18a7cf5f398b7a4332a32e1644dd6c07d5895d3cdfc546b48c66757613d53238d475eb2ce78d9fdf5e917b917f7 +1 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/06/aa/f9f76fa9af3d6ac714d85ff94f703a46f8d164984ebe228161ea6bab4330 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/15/37/6487aecd2b887fd9938044ee0b6b002f232abb4c6aec11e76060169b9e17 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/16/36/7bfa836eaa2a8c347d0c61df497c7a72fdaf1ece0490da0636f036301a1b +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/16/6d/027642a28349d275131e5f0b4ad89dd3195a2f18a3f50faa97040e54a6ed +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/19/b4/673449e1657c54805f54357ac1b0c2052b322e18bceea346d725d761f87a +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/20/1f/18abae6c79ef08c9450a94eb2437726e500da0b14300d33930df97307cb0 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/2c/fe/611a98b5c956bb3f524e1f272f4b9774f7fc218f52aba3dc2cab06fcf387 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/3d/b3/64dc80c6357f1a2b2c91aa11aa6ecb61f21e75fa0bbbc24e6c943d6ec9c4 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/45/ac/c73386e65ccdcdd759a1005f9529b60e5f62b952e99c3ff44fdf91ca3597 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/4d/17/ade79a816bd9ec1fe3ed0094c6663e36d494fb60dc2fd5b9152ef6a92154 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/5a/5a/2ea76a4fa29eeba07bf099c32987d2c0e772b5550ae461c48f330004eb13 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/65/cb/5c5e267d1c02bd4744018bfc1139c92977232bcc803b1c1778fd9c395608 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/69/a1/d2c99d238cd15fce83d764481d6ecd5aba0f315b2013cc786399af5bba7e +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/6e/0f/2a2f6d0f5e763edefe274f04be01a682b7ff3b273317529d0811e7fff34d +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/70/10/5fc5cf1f12c9d98551a642ed8eaf8360c071c8c03095682ca2adb0bffc0b +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/76/f7/775d6b60ae22b890a075a569cf117568ebe446e138798cbc10dfe25426e1 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/7c/5a/0a1aff5c26b4da864f046051e8fd2e52689a9b97db1af2b8abed22bef859 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/81/90/4cdd95a8c37245adad95077bb618adab90df01de114668e4ebf3f2a1e743 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/88/1f/b7baf347b035cabea06d7352a540cb882747f1a3d5f891a5552cfb0e0766 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/88/38/558f66bfdbac1cf6bb7af18752df87101e04586813c23311b30277327000 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/90/12/9dab17b6ac5409fb5088b46f01d7fc9fa2ae6f497b210ad215149856deac +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/9a/be/450f4f44251c1ada84de327410e3cd1122c019774eeeb19a32e25257c00b +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/9d/fc/b6889318df1cc51a1588cacb4017e725777e9c218239d49c9f81eb2fb5a0 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/ae/7e/c1b7a3d4262ee1e7602bffa167279a4f87c28fb896a6ced429b70103b7df +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/b2/bd/e73968b87cffc870f7d7a1c48f8541b9a267388eb59a8959ebad9229920c +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/b9/cd/83db609579af94239f033ccb4367ed430d5ec50ddd5b5df6f0f175d48ce3 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/ba/e4/9e5145decd9e9b59e84aacc20459537106be69ebc18986f93b34355078bd +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/bc/3e/9599aa4a23f1e642f1c9e194c6ab52c84468a90b96b7e736f9bd5a607a19 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/c5/16/22f2736652223dd09835db0221a6fde19987bec58c72db2279eb16cee8e9 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/c6/36/d327400b7b6399d718fc68d5cac0cbd87552b456c2c2d5ce5b614ee10009 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/c9/c6/a3ec65df56befe84cb12519323461415d4fd1b6f2bf4827a93f6b1663e7f +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/cc/ed/ffba3de0599f554db4d2b4a12e7099247521660f7cfcd92971593e98eaf1 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/cf/0c/9b4c301350d8bcec537c0c04a268f1710fea9e9635a6c5015799d7c77c41 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/d9/35/1df9c5a929d12127cfe114f0ca55ea62916ca47861545762e55bf8c8735d +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/de/45/beac4cd852a628afa272062823137beb64fea6591b775133caf55358d021 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/df/6d/addfb17e1ad55ce1fbe607edaffd16f53ff1715df0ab656ac01cc8c4887c +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/e1/de/7105702be767c43ff63b8192a07fc2a6685d997867cd0b39c09599acf769 +2 -0
- package/.angular/cache/15.0.1/ng-packagr/index-v5/f6/d8/e94a21d22f73e0e1744e3509373c84104e0267b44be10ef1597a9bce2dd0 +2 -0
- package/.dccache +1 -0
- package/.dockerignore +5 -0
- package/.editorconfig +13 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.github/ISSUE_TEMPLATE/custom-components-support-request.md +15 -0
- package/.github/ISSUE_TEMPLATE/question.md +8 -0
- package/.travis.yml +4 -0
- package/.yo-rc.json +7 -0
- package/CHANGELOG.md +1045 -0
- package/Dockerfile +20 -0
- package/LICENSE +21 -0
- package/README.md +170 -13
- package/angular.json +38 -0
- package/bs-config.json +11 -0
- package/{FormioBaseComponent.d.ts → dist/angular-formio/FormioBaseComponent.d.ts} +1 -1
- package/{FormioBaseComponent.d.ts.map → dist/angular-formio/FormioBaseComponent.d.ts.map} +0 -0
- package/dist/angular-formio/README.md +24 -0
- package/{auth → dist/angular-formio/auth}/auth.component.d.ts +1 -1
- 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 +1 -0
- package/{auth → dist/angular-formio/auth}/auth.service.d.ts.map +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/{components → dist/angular-formio/components}/alerts/formio.alerts.component.d.ts.map +0 -0
- package/{components → dist/angular-formio/components}/alerts/formio.alerts.d.ts +0 -0
- package/{components → dist/angular-formio/components}/alerts/formio.alerts.d.ts.map +0 -0
- package/{components → dist/angular-formio/components}/alerts/parse-html-content.pipe.d.ts +0 -0
- package/{components → dist/angular-formio/components}/alerts/parse-html-content.pipe.d.ts.map +0 -0
- package/{components → dist/angular-formio/components}/formbuilder/formbuilder.component.d.ts +1 -1
- package/{components → dist/angular-formio/components}/formbuilder/formbuilder.component.d.ts.map +0 -0
- package/{components → dist/angular-formio/components}/formio/formio.component.d.ts +1 -1
- package/{components → dist/angular-formio/components}/formio/formio.component.d.ts.map +0 -0
- package/{components → dist/angular-formio/components}/loader/formio.loader.component.d.ts +1 -1
- package/{components → dist/angular-formio/components}/loader/formio.loader.component.d.ts.map +0 -0
- package/{core.d.ts → dist/angular-formio/core.d.ts} +0 -0
- package/{core.d.ts.map → dist/angular-formio/core.d.ts.map} +0 -0
- package/{custom-component → dist/angular-formio/custom-component}/create-custom-component.d.ts +0 -0
- package/{custom-component → dist/angular-formio/custom-component}/create-custom-component.d.ts.map +0 -0
- package/{custom-component → dist/angular-formio/custom-component}/custom-tags.service.d.ts +0 -0
- package/{custom-component → dist/angular-formio/custom-component}/custom-tags.service.d.ts.map +0 -0
- package/{custom-component → dist/angular-formio/custom-component}/register-custom-component.d.ts +0 -0
- package/{custom-component → dist/angular-formio/custom-component}/register-custom-component.d.ts.map +0 -0
- package/{elements.common.d.ts → dist/angular-formio/elements.common.d.ts} +0 -0
- package/{elements.common.d.ts.map → dist/angular-formio/elements.common.d.ts.map} +0 -0
- package/dist/angular-formio/esm2020/FormioBaseComponent.mjs +533 -0
- package/dist/angular-formio/esm2020/auth/auth.component.mjs +25 -0
- package/dist/angular-formio/esm2020/auth/auth.config.mjs +15 -0
- package/dist/angular-formio/esm2020/auth/auth.module.mjs +47 -0
- package/{esm2020 → dist/angular-formio/esm2020}/auth/auth.routes.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/auth/auth.service.mjs +13 -6
- package/{esm2020 → dist/angular-formio/esm2020}/auth/formio-angular-auth.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/auth/index.mjs +0 -0
- package/dist/angular-formio/esm2020/auth/login/login.component.mjs +22 -0
- package/dist/angular-formio/esm2020/auth/register/register.component.mjs +22 -0
- package/dist/angular-formio/esm2020/auth/resetpass/resetpass.component.mjs +22 -0
- package/dist/angular-formio/esm2020/components/alerts/formio.alerts.component.mjs +46 -0
- package/{esm2020 → dist/angular-formio/esm2020}/components/alerts/formio.alerts.mjs +0 -0
- package/dist/angular-formio/esm2020/components/alerts/parse-html-content.pipe.mjs +19 -0
- package/dist/angular-formio/esm2020/components/formbuilder/formbuilder.component.mjs +195 -0
- package/dist/angular-formio/esm2020/components/formio/formio.component.mjs +82 -0
- package/dist/angular-formio/esm2020/components/loader/formio.loader.component.mjs +23 -0
- package/{esm2020 → dist/angular-formio/esm2020}/core.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/custom-component/create-custom-component.mjs +0 -0
- package/dist/angular-formio/esm2020/custom-component/custom-tags.service.mjs +16 -0
- package/{esm2020 → dist/angular-formio/esm2020}/custom-component/register-custom-component.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/elements.common.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/formio-angular.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/formio-promise.service.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/formio.common.mjs +0 -0
- package/dist/angular-formio/esm2020/formio.config.mjs +14 -0
- package/dist/angular-formio/esm2020/formio.module.mjs +55 -0
- package/{esm2020 → dist/angular-formio/esm2020}/formio.service.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/formio.utils.mjs +0 -0
- package/dist/angular-formio/esm2020/grid/GridBodyComponent.mjs +86 -0
- package/dist/angular-formio/esm2020/grid/GridFooterComponent.mjs +41 -0
- package/dist/angular-formio/esm2020/grid/GridHeaderComponent.mjs +35 -0
- package/dist/angular-formio/esm2020/grid/form/FormGridBody.component.mjs +117 -0
- package/dist/angular-formio/esm2020/grid/form/FormGridFooter.component.mjs +110 -0
- package/dist/angular-formio/esm2020/grid/form/FormGridHeader.component.mjs +52 -0
- package/{esm2020 → dist/angular-formio/esm2020}/grid/form/index.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/grid/form/time-since.pipe.mjs +9 -9
- package/{esm2020 → dist/angular-formio/esm2020}/grid/formio-angular-grid.mjs +0 -0
- package/dist/angular-formio/esm2020/grid/grid.component.mjs +297 -0
- package/dist/angular-formio/esm2020/grid/grid.module.mjs +80 -0
- package/dist/angular-formio/esm2020/grid/grid.service.mjs +17 -0
- package/{esm2020 → dist/angular-formio/esm2020}/grid/index.mjs +0 -0
- package/dist/angular-formio/esm2020/grid/submission/SubmissionGridBody.component.mjs +73 -0
- package/dist/angular-formio/esm2020/grid/submission/SubmissionGridFooter.component.mjs +101 -0
- package/dist/angular-formio/esm2020/grid/submission/SubmissionGridHeader.component.mjs +93 -0
- package/{esm2020 → dist/angular-formio/esm2020}/grid/submission/index.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/grid/types/grid-column.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/grid/types/grid-footer-positions.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/grid/types/grid-header.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/index.mjs +0 -0
- package/dist/angular-formio/esm2020/manager/create/create.component.mjs +59 -0
- package/dist/angular-formio/esm2020/manager/delete/delete.component.mjs +52 -0
- package/dist/angular-formio/esm2020/manager/edit/edit.component.mjs +161 -0
- package/dist/angular-formio/esm2020/manager/form/form.component.mjs +167 -0
- package/dist/angular-formio/esm2020/manager/form-manager.config.mjs +15 -0
- package/dist/angular-formio/esm2020/manager/form-manager.module.mjs +84 -0
- package/{esm2020 → dist/angular-formio/esm2020}/manager/form-manager.routes.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/manager/form-manager.service.mjs +6 -6
- package/{esm2020 → dist/angular-formio/esm2020}/manager/formio-angular-manager.mjs +0 -0
- package/dist/angular-formio/esm2020/manager/index/index.component.mjs +126 -0
- package/{esm2020 → dist/angular-formio/esm2020}/manager/index.mjs +0 -0
- package/dist/angular-formio/esm2020/manager/submission/delete/delete.component.mjs +43 -0
- package/dist/angular-formio/esm2020/manager/submission/edit/edit.component.mjs +28 -0
- package/dist/angular-formio/esm2020/manager/submission/index/index.component.mjs +28 -0
- package/dist/angular-formio/esm2020/manager/submission/submission/submission.component.mjs +64 -0
- package/dist/angular-formio/esm2020/manager/submission/view/view.component.mjs +22 -0
- package/dist/angular-formio/esm2020/manager/view/view.component.mjs +55 -0
- package/dist/angular-formio/esm2020/resource/create/create.component.mjs +57 -0
- package/dist/angular-formio/esm2020/resource/delete/delete.component.mjs +38 -0
- package/dist/angular-formio/esm2020/resource/edit/edit.component.mjs +42 -0
- package/{esm2020 → dist/angular-formio/esm2020}/resource/formio-angular-resource.mjs +0 -0
- package/dist/angular-formio/esm2020/resource/index/index.component.mjs +70 -0
- package/{esm2020 → dist/angular-formio/esm2020}/resource/index.mjs +0 -0
- package/dist/angular-formio/esm2020/resource/resource.component.mjs +72 -0
- package/dist/angular-formio/esm2020/resource/resource.config.mjs +15 -0
- package/dist/angular-formio/esm2020/resource/resource.module.mjs +63 -0
- package/{esm2020 → dist/angular-formio/esm2020}/resource/resource.routes.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/resource/resource.service.mjs +8 -8
- package/dist/angular-formio/esm2020/resource/resources.service.mjs +22 -0
- package/dist/angular-formio/esm2020/resource/view/view.component.mjs +27 -0
- package/{esm2020 → dist/angular-formio/esm2020}/types/alerts-position.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/types/formio-metadata.mjs +0 -0
- package/{esm2020 → dist/angular-formio/esm2020}/types/formio-submission.mjs +0 -0
- package/{fesm2020 → dist/angular-formio/fesm2015}/formio-angular-auth.mjs +101 -34
- package/dist/angular-formio/fesm2015/formio-angular-auth.mjs.map +1 -0
- package/dist/angular-formio/fesm2015/formio-angular-grid.mjs +1255 -0
- package/dist/angular-formio/fesm2015/formio-angular-grid.mjs.map +1 -0
- package/dist/angular-formio/fesm2015/formio-angular-manager.mjs +1178 -0
- package/dist/angular-formio/fesm2015/formio-angular-manager.mjs.map +1 -0
- package/{fesm2015 → dist/angular-formio/fesm2015}/formio-angular-resource.mjs +175 -50
- package/dist/angular-formio/fesm2015/formio-angular-resource.mjs.map +1 -0
- package/{fesm2015 → dist/angular-formio/fesm2015}/formio-angular.mjs +188 -53
- package/dist/angular-formio/fesm2015/formio-angular.mjs.map +1 -0
- package/dist/angular-formio/fesm2020/formio-angular-auth.mjs +330 -0
- package/dist/angular-formio/fesm2020/formio-angular-auth.mjs.map +1 -0
- package/dist/angular-formio/fesm2020/formio-angular-grid.mjs +1108 -0
- package/dist/angular-formio/fesm2020/formio-angular-grid.mjs.map +1 -0
- package/dist/angular-formio/fesm2020/formio-angular-manager.mjs +1066 -0
- package/dist/angular-formio/fesm2020/formio-angular-manager.mjs.map +1 -0
- package/dist/angular-formio/fesm2020/formio-angular-resource.mjs +582 -0
- package/dist/angular-formio/fesm2020/formio-angular-resource.mjs.map +1 -0
- package/dist/angular-formio/fesm2020/formio-angular.mjs +1253 -0
- package/dist/angular-formio/fesm2020/formio-angular.mjs.map +1 -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.common.d.ts → dist/angular-formio/formio.common.d.ts} +0 -0
- package/{formio.common.d.ts.map → dist/angular-formio/formio.common.d.ts.map} +0 -0
- package/{formio.config.d.ts → dist/angular-formio/formio.config.d.ts} +0 -0
- package/{formio.config.d.ts.map → dist/angular-formio/formio.config.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 +1 -1
- package/{grid → dist/angular-formio/grid}/GridBodyComponent.d.ts.map +0 -0
- package/{grid → dist/angular-formio/grid}/GridFooterComponent.d.ts +1 -1
- package/{grid → dist/angular-formio/grid}/GridFooterComponent.d.ts.map +0 -0
- package/{grid → dist/angular-formio/grid}/GridHeaderComponent.d.ts +1 -1
- package/{grid → dist/angular-formio/grid}/GridHeaderComponent.d.ts.map +0 -0
- package/{grid → dist/angular-formio/grid}/form/FormGridBody.component.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/{grid → dist/angular-formio/grid}/submission/SubmissionGridFooter.component.d.ts.map +0 -0
- 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 +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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/{manager → dist/angular-formio/manager}/form/form.component.d.ts.map +0 -0
- package/{manager → dist/angular-formio/manager}/form-manager.config.d.ts +0 -0
- package/{manager → dist/angular-formio/manager}/form-manager.config.d.ts.map +0 -0
- package/{manager → dist/angular-formio/manager}/form-manager.module.d.ts +0 -0
- package/{manager → dist/angular-formio/manager}/form-manager.module.d.ts.map +0 -0
- package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts +0 -0
- package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts.map +0 -0
- package/{manager → dist/angular-formio/manager}/form-manager.service.d.ts +0 -0
- package/{manager → dist/angular-formio/manager}/form-manager.service.d.ts.map +0 -0
- package/{manager → dist/angular-formio/manager}/formio-angular-manager.d.ts.map +0 -0
- package/{manager → dist/angular-formio/manager}/index/index.component.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/{manager → dist/angular-formio/manager}/view/view.component.d.ts.map +0 -0
- package/dist/angular-formio/package.json +94 -0
- package/{resource → dist/angular-formio/resource}/create/create.component.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/package.json +56 -72
- 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 +12 -0
- package/projects/angular-formio/auth/src/auth.component.ts +5 -0
- package/projects/angular-formio/auth/src/auth.config.ts +72 -0
- package/projects/angular-formio/auth/src/auth.module.ts +33 -0
- package/projects/angular-formio/auth/src/auth.routes.ts +34 -0
- package/projects/angular-formio/auth/src/auth.service.ts +209 -0
- package/projects/angular-formio/auth/src/index.ts +8 -0
- package/projects/angular-formio/auth/src/login/login.component.html +1 -0
- package/projects/angular-formio/auth/src/login/login.component.ts +8 -0
- package/projects/angular-formio/auth/src/public_api.ts +5 -0
- package/projects/angular-formio/auth/src/register/register.component.html +1 -0
- package/projects/angular-formio/auth/src/register/register.component.ts +8 -0
- package/projects/angular-formio/auth/src/resetpass/resetpass.component.html +1 -0
- package/projects/angular-formio/auth/src/resetpass/resetpass.component.ts +8 -0
- package/projects/angular-formio/grid/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 +23 -0
- package/projects/angular-formio/grid/src/form/FormGridBody.component.scss +4 -0
- package/projects/angular-formio/grid/src/form/FormGridBody.component.ts +15 -0
- package/projects/angular-formio/grid/src/form/FormGridFooter.component.html +21 -0
- package/projects/angular-formio/grid/src/form/FormGridFooter.component.ts +23 -0
- package/projects/angular-formio/grid/src/form/FormGridHeader.component.html +18 -0
- package/projects/angular-formio/grid/src/form/FormGridHeader.component.ts +24 -0
- package/projects/angular-formio/grid/src/form/index.ts +8 -0
- package/projects/angular-formio/grid/src/form/time-since.pipe.ts +31 -0
- package/projects/angular-formio/grid/src/grid.component.html +18 -0
- package/projects/angular-formio/grid/src/grid.component.scss +9 -0
- package/projects/angular-formio/grid/src/grid.component.ts +242 -0
- package/projects/angular-formio/grid/src/grid.footer.scss +14 -0
- package/projects/angular-formio/grid/src/grid.module.ts +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 +107 -0
- package/projects/angular-formio/manager/src/form/form.component.html +32 -0
- package/projects/angular-formio/manager/src/form/form.component.ts +73 -0
- package/projects/angular-formio/manager/src/form-manager.config.ts +26 -0
- package/projects/angular-formio/manager/src/form-manager.module.ts +54 -0
- package/projects/angular-formio/manager/src/form-manager.routes.ts +75 -0
- package/projects/angular-formio/manager/src/form-manager.service.ts +195 -0
- package/projects/angular-formio/manager/src/index/index.component.html +14 -0
- package/projects/angular-formio/manager/src/index/index.component.scss +22 -0
- package/projects/angular-formio/manager/src/index/index.component.ts +84 -0
- package/projects/angular-formio/manager/src/index.ts +16 -0
- package/projects/angular-formio/manager/src/public_api.ts +5 -0
- package/projects/angular-formio/manager/src/submission/delete/delete.component.html +6 -0
- package/projects/angular-formio/manager/src/submission/delete/delete.component.ts +26 -0
- package/projects/angular-formio/manager/src/submission/edit/edit.component.html +7 -0
- package/projects/angular-formio/manager/src/submission/edit/edit.component.ts +18 -0
- package/projects/angular-formio/manager/src/submission/index/index.component.html +1 -0
- package/projects/angular-formio/manager/src/submission/index/index.component.ts +18 -0
- package/projects/angular-formio/manager/src/submission/submission/submission.component.html +8 -0
- package/projects/angular-formio/manager/src/submission/submission/submission.component.ts +24 -0
- package/projects/angular-formio/manager/src/submission/view/view.component.html +7 -0
- package/projects/angular-formio/manager/src/submission/view/view.component.ts +9 -0
- package/projects/angular-formio/manager/src/view/view.component.html +10 -0
- package/projects/angular-formio/manager/src/view/view.component.ts +41 -0
- package/projects/angular-formio/ng-package.json +7 -0
- package/projects/angular-formio/package.json +39 -0
- package/projects/angular-formio/resource/ng-package.json +5 -0
- package/projects/angular-formio/resource/src/create/create.component.html +13 -0
- package/projects/angular-formio/resource/src/create/create.component.scss +3 -0
- package/projects/angular-formio/resource/src/create/create.component.ts +37 -0
- package/projects/angular-formio/resource/src/delete/delete.component.html +5 -0
- package/projects/angular-formio/resource/src/delete/delete.component.ts +24 -0
- package/projects/angular-formio/resource/src/edit/edit.component.html +6 -0
- package/projects/angular-formio/resource/src/edit/edit.component.ts +33 -0
- package/projects/angular-formio/resource/src/index/index.component.html +10 -0
- package/projects/angular-formio/resource/src/index/index.component.ts +66 -0
- package/projects/angular-formio/resource/src/index.js +24 -0
- package/projects/angular-formio/resource/src/index.ts +11 -0
- package/projects/angular-formio/resource/src/public_api.ts +5 -0
- package/projects/angular-formio/resource/src/resource.component.html +7 -0
- package/projects/angular-formio/resource/src/resource.component.ts +48 -0
- package/projects/angular-formio/resource/src/resource.config.ts +17 -0
- package/projects/angular-formio/resource/src/resource.module.ts +43 -0
- package/projects/angular-formio/resource/src/resource.routes.ts +43 -0
- package/projects/angular-formio/resource/src/resource.service.ts +232 -0
- package/projects/angular-formio/resource/src/resources.service.ts +24 -0
- package/projects/angular-formio/resource/src/view/view.component.html +6 -0
- package/projects/angular-formio/resource/src/view/view.component.ts +19 -0
- package/projects/angular-formio/src/FormioBaseComponent.ts +525 -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/loader/formio.loader.component.html +3 -0
- package/projects/angular-formio/src/components/loader/formio.loader.component.scss +26 -0
- package/projects/angular-formio/src/components/loader/formio.loader.component.ts +10 -0
- package/projects/angular-formio/src/core.ts +21 -0
- package/projects/angular-formio/src/custom-component/create-custom-component.ts +173 -0
- package/projects/angular-formio/src/custom-component/custom-tags.service.ts +10 -0
- package/projects/angular-formio/src/custom-component/register-custom-component.ts +41 -0
- package/projects/angular-formio/src/elements.common.ts +31 -0
- package/projects/angular-formio/src/formio-promise.service.ts +36 -0
- package/projects/angular-formio/src/formio.common.ts +81 -0
- package/projects/angular-formio/src/formio.config.ts +9 -0
- package/projects/angular-formio/src/formio.module.ts +35 -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 +6 -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 +28 -0
- package/tslint.json +140 -0
- package/esm2020/FormioBaseComponent.mjs +0 -527
- package/esm2020/auth/auth.component.mjs +0 -12
- package/esm2020/auth/auth.config.mjs +0 -15
- package/esm2020/auth/auth.module.mjs +0 -46
- package/esm2020/auth/login/login.component.mjs +0 -16
- package/esm2020/auth/register/register.component.mjs +0 -16
- package/esm2020/auth/resetpass/resetpass.component.mjs +0 -16
- package/esm2020/components/alerts/formio.alerts.component.mjs +0 -29
- package/esm2020/components/alerts/parse-html-content.pipe.mjs +0 -19
- package/esm2020/components/formbuilder/formbuilder.component.mjs +0 -187
- package/esm2020/components/formio/formio.component.mjs +0 -40
- package/esm2020/components/loader/formio.loader.component.mjs +0 -14
- package/esm2020/custom-component/custom-tags.service.mjs +0 -16
- package/esm2020/formio.config.mjs +0 -14
- package/esm2020/formio.module.mjs +0 -54
- package/esm2020/grid/GridBodyComponent.mjs +0 -81
- package/esm2020/grid/GridFooterComponent.mjs +0 -36
- package/esm2020/grid/GridHeaderComponent.mjs +0 -30
- package/esm2020/grid/form/FormGridBody.component.mjs +0 -19
- package/esm2020/grid/form/FormGridFooter.component.mjs +0 -26
- package/esm2020/grid/form/FormGridHeader.component.mjs +0 -26
- package/esm2020/grid/grid.component.mjs +0 -230
- package/esm2020/grid/grid.module.mjs +0 -79
- package/esm2020/grid/grid.service.mjs +0 -17
- package/esm2020/grid/submission/SubmissionGridBody.component.mjs +0 -43
- package/esm2020/grid/submission/SubmissionGridFooter.component.mjs +0 -23
- package/esm2020/grid/submission/SubmissionGridHeader.component.mjs +0 -61
- package/esm2020/manager/create/create.component.mjs +0 -18
- package/esm2020/manager/delete/delete.component.mjs +0 -37
- package/esm2020/manager/edit/edit.component.mjs +0 -109
- package/esm2020/manager/form/form.component.mjs +0 -70
- package/esm2020/manager/form-manager.config.mjs +0 -15
- package/esm2020/manager/form-manager.module.mjs +0 -83
- package/esm2020/manager/index/index.component.mjs +0 -84
- package/esm2020/manager/submission/delete/delete.component.mjs +0 -28
- package/esm2020/manager/submission/edit/edit.component.mjs +0 -22
- package/esm2020/manager/submission/index/index.component.mjs +0 -22
- package/esm2020/manager/submission/submission/submission.component.mjs +0 -26
- package/esm2020/manager/submission/view/view.component.mjs +0 -16
- package/esm2020/manager/view/view.component.mjs +0 -42
- package/esm2020/resource/create/create.component.mjs +0 -37
- package/esm2020/resource/delete/delete.component.mjs +0 -26
- package/esm2020/resource/edit/edit.component.mjs +0 -36
- package/esm2020/resource/index/index.component.mjs +0 -61
- package/esm2020/resource/resource.component.mjs +0 -46
- package/esm2020/resource/resource.config.mjs +0 -15
- package/esm2020/resource/resource.module.mjs +0 -62
- package/esm2020/resource/resources.service.mjs +0 -22
- package/esm2020/resource/view/view.component.mjs +0 -23
- package/fesm2015/formio-angular-auth.mjs +0 -290
- package/fesm2015/formio-angular-auth.mjs.map +0 -1
- package/fesm2015/formio-angular-grid.mjs +0 -677
- package/fesm2015/formio-angular-grid.mjs.map +0 -1
- package/fesm2015/formio-angular-manager.mjs +0 -733
- package/fesm2015/formio-angular-manager.mjs.map +0 -1
- package/fesm2015/formio-angular-resource.mjs.map +0 -1
- package/fesm2015/formio-angular.mjs.map +0 -1
- package/fesm2020/formio-angular-auth.mjs.map +0 -1
- package/fesm2020/formio-angular-grid.mjs +0 -676
- package/fesm2020/formio-angular-grid.mjs.map +0 -1
- package/fesm2020/formio-angular-manager.mjs +0 -733
- package/fesm2020/formio-angular-manager.mjs.map +0 -1
- package/fesm2020/formio-angular-resource.mjs +0 -503
- package/fesm2020/formio-angular-resource.mjs.map +0 -1
- package/fesm2020/formio-angular.mjs +0 -1169
- package/fesm2020/formio-angular.mjs.map +0 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Component, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { GridFooterComponent } from '../GridFooterComponent';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@angular/forms";
|
|
6
|
+
import * as i3 from "ngx-bootstrap/pagination";
|
|
7
|
+
function SubmissionGridFooterComponent_ng_template_0_thead_0_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
+
i0.ɵɵelementStart(0, "thead", 3);
|
|
9
|
+
i0.ɵɵelementContainer(1, 4);
|
|
10
|
+
i0.ɵɵelementEnd();
|
|
11
|
+
} if (rf & 2) {
|
|
12
|
+
i0.ɵɵnextContext(2);
|
|
13
|
+
const _r2 = i0.ɵɵreference(3);
|
|
14
|
+
i0.ɵɵadvance(1);
|
|
15
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
16
|
+
} }
|
|
17
|
+
function SubmissionGridFooterComponent_ng_template_0_tfoot_1_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
+
i0.ɵɵelementStart(0, "tfoot", 3);
|
|
19
|
+
i0.ɵɵelementContainer(1, 4);
|
|
20
|
+
i0.ɵɵelementEnd();
|
|
21
|
+
} if (rf & 2) {
|
|
22
|
+
i0.ɵɵnextContext(2);
|
|
23
|
+
const _r2 = i0.ɵɵreference(3);
|
|
24
|
+
i0.ɵɵadvance(1);
|
|
25
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
26
|
+
} }
|
|
27
|
+
function SubmissionGridFooterComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
+
i0.ɵɵtemplate(0, SubmissionGridFooterComponent_ng_template_0_thead_0_Template, 2, 1, "thead", 2);
|
|
29
|
+
i0.ɵɵtemplate(1, SubmissionGridFooterComponent_ng_template_0_tfoot_1_Template, 2, 1, "tfoot", 2);
|
|
30
|
+
} if (rf & 2) {
|
|
31
|
+
const position_r4 = ctx.position;
|
|
32
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
33
|
+
i0.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.top);
|
|
34
|
+
i0.ɵɵadvance(1);
|
|
35
|
+
i0.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.bottom);
|
|
36
|
+
} }
|
|
37
|
+
function SubmissionGridFooterComponent_ng_template_2_td_1_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
38
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
39
|
+
i0.ɵɵelementStart(0, "button", 11);
|
|
40
|
+
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 i0.ɵɵresetView(ctx_r9.createItem.emit("form")); });
|
|
41
|
+
i0.ɵɵelement(1, "em", 12);
|
|
42
|
+
i0.ɵɵtext(2);
|
|
43
|
+
i0.ɵɵelementEnd();
|
|
44
|
+
} if (rf & 2) {
|
|
45
|
+
const ctx_r8 = i0.ɵɵnextContext(3);
|
|
46
|
+
i0.ɵɵadvance(2);
|
|
47
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r8.createText, "");
|
|
48
|
+
} }
|
|
49
|
+
function SubmissionGridFooterComponent_ng_template_2_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
50
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
51
|
+
i0.ɵɵelementStart(0, "td", 6);
|
|
52
|
+
i0.ɵɵtemplate(1, SubmissionGridFooterComponent_ng_template_2_td_1_button_1_Template, 3, 1, "button", 7);
|
|
53
|
+
i0.ɵɵelementStart(2, "span", 8)(3, "span", 9);
|
|
54
|
+
i0.ɵɵtext(4);
|
|
55
|
+
i0.ɵɵelementEnd();
|
|
56
|
+
i0.ɵɵtext(5);
|
|
57
|
+
i0.ɵɵelementEnd();
|
|
58
|
+
i0.ɵɵelementStart(6, "pagination", 10);
|
|
59
|
+
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 i0.ɵɵresetView(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 i0.ɵɵresetView(ctx_r13.pageChanged.emit($event)); });
|
|
60
|
+
i0.ɵɵelementEnd()();
|
|
61
|
+
} if (rf & 2) {
|
|
62
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
63
|
+
i0.ɵɵproperty("colSpan", ctx_r7.header.numHeaders);
|
|
64
|
+
i0.ɵɵadvance(1);
|
|
65
|
+
i0.ɵɵproperty("ngIf", ctx_r7.actionAllowed("submissionCreate") && ctx_r7.createText);
|
|
66
|
+
i0.ɵɵadvance(3);
|
|
67
|
+
i0.ɵɵtextInterpolate2("", ctx_r7.body.firstItem, " - ", ctx_r7.body.lastItem, "");
|
|
68
|
+
i0.ɵɵadvance(1);
|
|
69
|
+
i0.ɵɵtextInterpolate1(" / ", ctx_r7.body.total, " total");
|
|
70
|
+
i0.ɵɵadvance(1);
|
|
71
|
+
i0.ɵɵproperty("totalItems", ctx_r7.body.total)("itemsPerPage", ctx_r7.body.limit)("ngModel", ctx_r7.body.skip)("maxSize", ctx_r7.size);
|
|
72
|
+
} }
|
|
73
|
+
function SubmissionGridFooterComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
74
|
+
i0.ɵɵelementStart(0, "tr");
|
|
75
|
+
i0.ɵɵtemplate(1, SubmissionGridFooterComponent_ng_template_2_td_1_Template, 7, 9, "td", 5);
|
|
76
|
+
i0.ɵɵelementEnd();
|
|
77
|
+
} if (rf & 2) {
|
|
78
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
79
|
+
i0.ɵɵadvance(1);
|
|
80
|
+
i0.ɵɵproperty("ngIf", ctx_r3.header);
|
|
81
|
+
} }
|
|
82
|
+
export class SubmissionGridFooterComponent extends GridFooterComponent {
|
|
83
|
+
constructor() {
|
|
84
|
+
super();
|
|
85
|
+
}
|
|
86
|
+
ngOnInit() {
|
|
87
|
+
if (!this.size) {
|
|
88
|
+
this.size = 7;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
SubmissionGridFooterComponent.ɵfac = function SubmissionGridFooterComponent_Factory(t) { return new (t || SubmissionGridFooterComponent)(); };
|
|
93
|
+
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) {
|
|
94
|
+
i0.ɵɵtemplate(0, SubmissionGridFooterComponent_ng_template_0_Template, 2, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
95
|
+
i0.ɵɵtemplate(2, SubmissionGridFooterComponent_ng_template_2_Template, 2, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
96
|
+
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2.NgControlStatus, i2.NgModel, i3.PaginationComponent], styles: ["tfoot.formio-grid-footer td{padding:.3rem}tfoot.formio-grid-footer .page-num{font-size:1.4em}tfoot.formio-grid-footer ul.pagination{margin-top:5px;margin-bottom:0}\n"], encapsulation: 2 });
|
|
97
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubmissionGridFooterComponent, [{
|
|
98
|
+
type: Component,
|
|
99
|
+
args: [{ encapsulation: ViewEncapsulation.None, template: "<ng-template #footer let-position=\"position\">\n <thead class=\"formio-grid-footer\" *ngIf=\"position === footerPositions.top\">\n <ng-container [ngTemplateOutlet]=\"defaultFooterTemplate\"></ng-container>\n </thead>\n <tfoot class=\"formio-grid-footer\" *ngIf=\"position === footerPositions.bottom\">\n <ng-container [ngTemplateOutlet]=\"defaultFooterTemplate\"></ng-container>\n </tfoot>\n</ng-template>\n\n<ng-template #defaultFooterTemplate>\n <tr>\n <td *ngIf=\"header\" [colSpan]=\"header.numHeaders\">\n <button *ngIf=\"actionAllowed('submissionCreate') && createText\" class=\"btn btn-primary pull-left float-left\" (click)=\"createItem.emit('form')\"><em class=\"glyphicon glyphicon-plus fa fa-plus\"></em> {{ createText }}</button>\n <span class=\"pull-right float-right item-counter\"><span class=\"page-num\">{{ body.firstItem }} - {{ body.lastItem }}</span> / {{ body.total }} total</span>\n <pagination [totalItems]=\"body.total\" [itemsPerPage]=\"body.limit\" [(ngModel)]=\"body.skip\" (pageChanged)=\"pageChanged.emit($event)\" [maxSize]=\"size\" class=\"justify-content-center pagination-sm\"></pagination>\n </td>\n </tr>\n</ng-template>\n", styles: ["tfoot.formio-grid-footer td{padding:.3rem}tfoot.formio-grid-footer .page-num{font-size:1.4em}tfoot.formio-grid-footer ul.pagination{margin-top:5px;margin-bottom:0}\n"] }]
|
|
100
|
+
}], function () { return []; }, null); })();
|
|
101
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3VibWlzc2lvbkdyaWRGb290ZXIuY29tcG9uZW50Lmpz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0ZScpICYmIGNyZWF0ZVRleHRcIiBjbGFzcz1cImJ0biBidG4tcHJpbWFyeSBwdWxsLWxlZnQgZmxvYXQtbGVmdFwiIChjbGljayk9XCJjcmVhdGVJdGVtLmVtaXQoJ2Zvcm0nKVwiPjxlbSBjbGFzcz1cImdseXBoaWNvbiBnbHlwaGljb24tcGx1cyBmYSBmYS1wbHVzXCI+PC9lbT4ge3sgY3JlYXRlVGV4dCB9fTwvYnV0dG9uPlxuICAgICAgPHNwYW4gY2xhc3M9XCJwdWxsLXJpZ2h0IGZsb2F0LXJpZ2h0IGl0ZW0tY291bnRlclwiPjxzcGFuIGNsYXNzPVwicGFnZS1udW1cIj57eyBib2R5LmZpcnN0SXRlbSB9fSAtIHt7IGJvZHkubGFzdEl0ZW0gfX08L3NwYW4+IC8ge3sgYm9keS50b3RhbCB9fSB0b3RhbDwvc3Bhbj5cbiAgICAgIDxwYWdpbmF0aW9uIFt0b3RhbEl0ZW1zXT1cImJvZHkudG90YWxcIiBbaXRlbXNQZXJQYWdlXT1cImJvZHkubGltaXRcIiBbKG5nTW9kZWwpXT1cImJvZHkuc2tpcFwiIChwYWdlQ2hhbmdlZCk9XCJwYWdlQ2hhbmdlZC5lbWl0KCRldmVudClcIiBbbWF4U2l6ZV09XCJzaXplXCIgY2xhc3M9XCJqdXN0aWZ5LWNvbnRlbnQtY2VudGVyIHBhZ2luYXRpb24tc21cIj48L3BhZ2luYXRpb24+XG4gICAgPC90ZD5cbiAgPC90cj5cbjwvbmctdGVtcGxhdGU+XG4iXX0=
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { Utils, Components } from 'formiojs';
|
|
3
|
+
import { GridHeaderComponent } from '../GridHeaderComponent';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
const _c0 = function (a0, a1) { return { "glyphicon-triangle-top": a0, "glyphicon-triangle-bottom": a1 }; };
|
|
7
|
+
function SubmissionGridHeaderComponent_ng_template_0_th_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
+
i0.ɵɵelement(0, "span", 3);
|
|
9
|
+
} if (rf & 2) {
|
|
10
|
+
const header_r2 = i0.ɵɵnextContext().$implicit;
|
|
11
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(1, _c0, header_r2.sort === "asc", header_r2.sort === "desc"));
|
|
12
|
+
} }
|
|
13
|
+
function SubmissionGridHeaderComponent_ng_template_0_th_2_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
15
|
+
i0.ɵɵelementStart(0, "th")(1, "a", 1);
|
|
16
|
+
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 i0.ɵɵresetView(ctx_r5.sort.emit(header_r2)); });
|
|
17
|
+
i0.ɵɵtext(2);
|
|
18
|
+
i0.ɵɵtemplate(3, SubmissionGridHeaderComponent_ng_template_0_th_2_span_3_Template, 1, 4, "span", 2);
|
|
19
|
+
i0.ɵɵelementEnd()();
|
|
20
|
+
} if (rf & 2) {
|
|
21
|
+
const header_r2 = ctx.$implicit;
|
|
22
|
+
i0.ɵɵadvance(2);
|
|
23
|
+
i0.ɵɵtextInterpolate1(" ", header_r2.label, "\u00A0");
|
|
24
|
+
i0.ɵɵadvance(1);
|
|
25
|
+
i0.ɵɵproperty("ngIf", header_r2.sort);
|
|
26
|
+
} }
|
|
27
|
+
function SubmissionGridHeaderComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
+
i0.ɵɵelementStart(0, "thead")(1, "tr");
|
|
29
|
+
i0.ɵɵtemplate(2, SubmissionGridHeaderComponent_ng_template_0_th_2_Template, 4, 2, "th", 0);
|
|
30
|
+
i0.ɵɵelementEnd()();
|
|
31
|
+
} if (rf & 2) {
|
|
32
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
33
|
+
i0.ɵɵadvance(2);
|
|
34
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.headers);
|
|
35
|
+
} }
|
|
36
|
+
export class SubmissionGridHeaderComponent extends GridHeaderComponent {
|
|
37
|
+
load(formio, query, columns) {
|
|
38
|
+
query = query || {};
|
|
39
|
+
return formio.loadForm({ params: query }).then((form) => {
|
|
40
|
+
this.headers = [];
|
|
41
|
+
this.formComponents = new Map();
|
|
42
|
+
this.setComponents(form.components);
|
|
43
|
+
columns ? columns.forEach(column => {
|
|
44
|
+
this.setHeader(this.getHeaderForColumn(column, this.formComponents.get(column.path)));
|
|
45
|
+
}) : this.setComponentsHeaders(this.formComponents);
|
|
46
|
+
return this.headers;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
setHeader(header) {
|
|
50
|
+
this.headers.push(header);
|
|
51
|
+
}
|
|
52
|
+
getHeaderForColumn(column, component, sort) {
|
|
53
|
+
return {
|
|
54
|
+
label: column.label,
|
|
55
|
+
key: column.path,
|
|
56
|
+
sort: sort,
|
|
57
|
+
component: component ? Components.create(component, null, null, true) : undefined,
|
|
58
|
+
renderCell: column ? column.renderCell : undefined
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
getHeaderForComponent(component, path, sort) {
|
|
62
|
+
return {
|
|
63
|
+
label: component.label,
|
|
64
|
+
key: path,
|
|
65
|
+
sort: sort,
|
|
66
|
+
component: component ? Components.create(component, null, null, true) : undefined,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
// Set headers from components in case if columns are not provided
|
|
70
|
+
setComponentsHeaders(components, sort) {
|
|
71
|
+
components.forEach((component, path) => {
|
|
72
|
+
if (component.input &&
|
|
73
|
+
(!component.hasOwnProperty('tableView') || component.tableView)) {
|
|
74
|
+
this.setHeader(this.getHeaderForComponent(component, path, sort));
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
// Map components
|
|
79
|
+
setComponents(components) {
|
|
80
|
+
Utils.eachComponent(components, (component, newPath) => {
|
|
81
|
+
this.formComponents.set(`data.${newPath}`, component);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
SubmissionGridHeaderComponent.ɵfac = /*@__PURE__*/ function () { let ɵSubmissionGridHeaderComponent_BaseFactory; return function SubmissionGridHeaderComponent_Factory(t) { return (ɵSubmissionGridHeaderComponent_BaseFactory || (ɵSubmissionGridHeaderComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SubmissionGridHeaderComponent)))(t || SubmissionGridHeaderComponent); }; }();
|
|
86
|
+
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) {
|
|
87
|
+
i0.ɵɵtemplate(0, SubmissionGridHeaderComponent_ng_template_0_Template, 3, 1, "ng-template");
|
|
88
|
+
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf], encapsulation: 2 });
|
|
89
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubmissionGridHeaderComponent, [{
|
|
90
|
+
type: Component,
|
|
91
|
+
args: [{ template: "<ng-template>\n <thead>\n <tr>\n <th *ngFor=\"let header of headers\">\n <a (click)=\"sort.emit(header)\">\n {{ header.label }} <span [ngClass]=\"{'glyphicon-triangle-top': (header.sort === 'asc'), 'glyphicon-triangle-bottom': (header.sort === 'desc')}\" class=\"glyphicon\" *ngIf=\"header.sort\"></span>\n </a>\n </th>\n </tr>\n </thead>\n</ng-template>\n" }]
|
|
92
|
+
}], null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J0ID09PSAnYXNjJyksICdnbHlwaGljb24tdHJpYW5nbGUtYm90dG9tJzogKGhlYWRlci5zb3J0ID09PSAnZGVzYycpfVwiIGNsYXNzPVwiZ2x5cGhpY29uXCIgKm5nSWY9XCJoZWFkZXIuc29ydFwiPjwvc3Bhbj5cbiAgICAgICAgPC9hPlxuICAgICAgPC90aD5cbiAgICA8L3RyPlxuICA8L3RoZWFkPlxuPC9uZy10ZW1wbGF0ZT5cbiJdfQ==
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { FormManagerEditComponent } from '../edit/edit.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@formio/angular";
|
|
6
|
+
import * as i3 from "@angular/forms";
|
|
7
|
+
function FormManagerCreateComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
+
i0.ɵɵelement(0, "div", 15);
|
|
9
|
+
} }
|
|
10
|
+
function FormManagerCreateComponent_form_builder_18_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
+
i0.ɵɵelement(0, "form-builder", 16, 17);
|
|
12
|
+
} if (rf & 2) {
|
|
13
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
14
|
+
i0.ɵɵproperty("formbuilder", ctx_r3.config.builder)("form", ctx_r3.form);
|
|
15
|
+
} }
|
|
16
|
+
export class FormManagerCreateComponent extends FormManagerEditComponent {
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
this.service.reset();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
FormManagerCreateComponent.ɵfac = /*@__PURE__*/ function () { let ɵFormManagerCreateComponent_BaseFactory; return function FormManagerCreateComponent_Factory(t) { return (ɵFormManagerCreateComponent_BaseFactory || (ɵFormManagerCreateComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FormManagerCreateComponent)))(t || FormManagerCreateComponent); }; }();
|
|
22
|
+
FormManagerCreateComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormManagerCreateComponent, selectors: [["ng-component"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 21, vars: 3, consts: [["class", "loader", 4, "ngIf"], [1, "form-group", "row"], [1, "col-sm-8"], ["type", "text", "id", "formTitle", "placeholder", "Enter a Title", 1, "form-control"], ["title", ""], [1, "col-sm-2"], ["id", "formSelect", 1, "form-control", 3, "change"], ["type", ""], ["value", "form"], ["value", "wizard"], ["value", "pdf"], [1, "btn", "btn-primary", "btn-block", 3, "click"], [3, "alerts"], [3, "formbuilder", "form", 4, "ngIf"], [1, "btn", "btn-primary", 2, "margin-top", "10px", 3, "click"], [1, "loader"], [3, "formbuilder", "form"], ["builder", ""]], template: function FormManagerCreateComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
+
i0.ɵɵtemplate(0, FormManagerCreateComponent_div_0_Template, 1, 0, "div", 0);
|
|
24
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2);
|
|
25
|
+
i0.ɵɵelement(3, "input", 3, 4);
|
|
26
|
+
i0.ɵɵelementEnd();
|
|
27
|
+
i0.ɵɵelementStart(5, "div", 5)(6, "select", 6, 7);
|
|
28
|
+
i0.ɵɵlistener("change", function FormManagerCreateComponent_Template_select_change_6_listener($event) { return ctx.onDisplaySelect($event); });
|
|
29
|
+
i0.ɵɵelementStart(8, "option", 8);
|
|
30
|
+
i0.ɵɵtext(9, "Form");
|
|
31
|
+
i0.ɵɵelementEnd();
|
|
32
|
+
i0.ɵɵelementStart(10, "option", 9);
|
|
33
|
+
i0.ɵɵtext(11, "Wizard");
|
|
34
|
+
i0.ɵɵelementEnd();
|
|
35
|
+
i0.ɵɵelementStart(12, "option", 10);
|
|
36
|
+
i0.ɵɵtext(13, "PDF");
|
|
37
|
+
i0.ɵɵelementEnd()()();
|
|
38
|
+
i0.ɵɵelementStart(14, "div", 5)(15, "button", 11);
|
|
39
|
+
i0.ɵɵlistener("click", function FormManagerCreateComponent_Template_button_click_15_listener() { return ctx.onSave(); });
|
|
40
|
+
i0.ɵɵtext(16, "Save Form");
|
|
41
|
+
i0.ɵɵelementEnd()()();
|
|
42
|
+
i0.ɵɵelement(17, "formio-alerts", 12);
|
|
43
|
+
i0.ɵɵtemplate(18, FormManagerCreateComponent_form_builder_18_Template, 2, 2, "form-builder", 13);
|
|
44
|
+
i0.ɵɵelementStart(19, "button", 14);
|
|
45
|
+
i0.ɵɵlistener("click", function FormManagerCreateComponent_Template_button_click_19_listener() { return ctx.onSave(); });
|
|
46
|
+
i0.ɵɵtext(20, "Save Form");
|
|
47
|
+
i0.ɵɵelementEnd();
|
|
48
|
+
} if (rf & 2) {
|
|
49
|
+
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
50
|
+
i0.ɵɵadvance(17);
|
|
51
|
+
i0.ɵɵproperty("alerts", ctx.alerts);
|
|
52
|
+
i0.ɵɵadvance(1);
|
|
53
|
+
i0.ɵɵproperty("ngIf", ctx.formReady);
|
|
54
|
+
} }, dependencies: [i1.NgIf, i2.FormBuilderComponent, i2.FormioAlertsComponent, i3.NgSelectOption, i3.ɵNgSelectMultipleOption], encapsulation: 2 });
|
|
55
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormManagerCreateComponent, [{
|
|
56
|
+
type: Component,
|
|
57
|
+
args: [{ template: "<div class=\"loader\" *ngIf=\"loading\"></div>\n<div class=\"form-group row\">\n <div class=\"col-sm-8\">\n <input type=\"text\" class=\"form-control\" id=\"formTitle\" placeholder=\"Enter a Title\" #title>\n </div>\n <div class=\"col-sm-2\">\n <select class=\"form-control\" id=\"formSelect\" (change)=\"onDisplaySelect($event)\" #type>\n <option value=\"form\">Form</option>\n <option value=\"wizard\">Wizard</option>\n <option value=\"pdf\">PDF</option>\n </select>\n </div>\n <div class=\"col-sm-2\">\n <button class=\"btn btn-primary btn-block\" (click)=\"onSave()\">Save Form</button>\n </div>\n</div>\n<formio-alerts [alerts]=\"alerts\"></formio-alerts>\n<form-builder *ngIf=\"formReady\" [formbuilder]=\"config.builder\" [form]=\"form\" #builder></form-builder>\n<button class=\"btn btn-primary\" style=\"margin-top: 10px;\" (click)=\"onSave()\">Save Form</button>\n" }]
|
|
58
|
+
}], null, null); })();
|
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItZm9ybWlvL21hbmFnZXIvc3JjL2NyZWF0ZS9jcmVhdGUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1mb3JtaW8vbWFuYWdlci9zcmMvZWRpdC9lZGl0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sd0JBQXdCLENBQUM7Ozs7OztJQ0RsRSwwQkFBMEM7OztJQWlCMUMsdUNBQXFHOzs7SUFBckUsbURBQThCLHFCQUFBOztBRFg5RCxNQUFNLE9BQU8sMEJBQTJCLFNBQVEsd0JBQXdCO0lBQ3RFLFFBQVE7UUFDTixJQUFJLENBQUMsT0FBTyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQ3ZCLENBQUM7OzBSQUhVLDBCQUEwQixTQUExQiwwQkFBMEI7NkVBQTFCLDBCQUEwQjtRQ052QywyRUFBMEM7UUFDMUMsOEJBQTRCLGFBQUE7UUFFeEIsOEJBQTBGO1FBQzVGLGlCQUFNO1FBQ04sOEJBQXNCLG1CQUFBO1FBQ3lCLCtHQUFVLDJC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NrKT1cIm9uU2F2ZSgpXCI+U2F2ZSBGb3JtPC9idXR0b24+XG4iXX0=
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../form-manager.service";
|
|
4
|
+
import * as i2 from "@angular/router";
|
|
5
|
+
import * as i3 from "@formio/angular";
|
|
6
|
+
import * as i4 from "@formio/angular/grid";
|
|
7
|
+
export class FormManagerDeleteComponent {
|
|
8
|
+
constructor(managerService, router, route, alerts, gridService) {
|
|
9
|
+
this.managerService = managerService;
|
|
10
|
+
this.router = router;
|
|
11
|
+
this.route = route;
|
|
12
|
+
this.alerts = alerts;
|
|
13
|
+
this.gridService = gridService;
|
|
14
|
+
}
|
|
15
|
+
onDelete() {
|
|
16
|
+
this.managerService.formio.deleteForm().then(() => {
|
|
17
|
+
if (this.gridService) {
|
|
18
|
+
const currentPage = +localStorage.getItem('currentPage') || 0;
|
|
19
|
+
const formsNumberPerPage = this.gridService.getFormsPerPage();
|
|
20
|
+
if (formsNumberPerPage === 1 && currentPage !== 0) {
|
|
21
|
+
localStorage.setItem('currentPage', `${currentPage - 1}`);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
this.router.navigate(['../../'], { relativeTo: this.route });
|
|
25
|
+
}).catch(err => this.alerts.setAlert({ type: 'danger', message: (err.message || err) }));
|
|
26
|
+
}
|
|
27
|
+
onCancel() {
|
|
28
|
+
this.router.navigate(['../', 'view'], { relativeTo: this.route });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
FormManagerDeleteComponent.ɵfac = function FormManagerDeleteComponent_Factory(t) { return new (t || FormManagerDeleteComponent)(i0.ɵɵdirectiveInject(i1.FormManagerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(i3.FormioAlerts), i0.ɵɵdirectiveInject(i4.GridService)); };
|
|
32
|
+
FormManagerDeleteComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormManagerDeleteComponent, selectors: [["ng-component"]], decls: 8, vars: 1, consts: [[3, "alerts"], [1, "btn-toolbar"], ["type", "button", 1, "btn", "btn-danger", 2, "margin-right", "10px", 3, "click"], ["type", "button", 1, "btn", "btn-default", 3, "click"]], template: function FormManagerDeleteComponent_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
+
i0.ɵɵelement(0, "formio-alerts", 0);
|
|
34
|
+
i0.ɵɵelementStart(1, "h3");
|
|
35
|
+
i0.ɵɵtext(2, "Are you sure you wish to delete this form?");
|
|
36
|
+
i0.ɵɵelementEnd();
|
|
37
|
+
i0.ɵɵelementStart(3, "div", 1)(4, "button", 2);
|
|
38
|
+
i0.ɵɵlistener("click", function FormManagerDeleteComponent_Template_button_click_4_listener() { return ctx.onDelete(); });
|
|
39
|
+
i0.ɵɵtext(5, "Yes");
|
|
40
|
+
i0.ɵɵelementEnd();
|
|
41
|
+
i0.ɵɵelementStart(6, "button", 3);
|
|
42
|
+
i0.ɵɵlistener("click", function FormManagerDeleteComponent_Template_button_click_6_listener() { return ctx.onCancel(); });
|
|
43
|
+
i0.ɵɵtext(7, "No");
|
|
44
|
+
i0.ɵɵelementEnd()();
|
|
45
|
+
} if (rf & 2) {
|
|
46
|
+
i0.ɵɵproperty("alerts", ctx.alerts);
|
|
47
|
+
} }, dependencies: [i3.FormioAlertsComponent], encapsulation: 2 });
|
|
48
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormManagerDeleteComponent, [{
|
|
49
|
+
type: Component,
|
|
50
|
+
args: [{ template: "<formio-alerts [alerts]=\"alerts\"></formio-alerts>\n<h3>Are you sure you wish to delete this form?</h3>\n<div class=\"btn-toolbar\">\n <button type=\"button\" (click)=\"onDelete()\" class=\"btn btn-danger\" style=\"margin-right: 10px;\">Yes</button>\n <button type=\"button\" (click)=\"onCancel()\" class=\"btn btn-default\">No</button>\n</div>\n" }]
|
|
51
|
+
}], function () { return [{ type: i1.FormManagerService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: i3.FormioAlerts }, { type: i4.GridService }]; }, null); })();
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItZm9ybWlvL21hbmFnZXIvc3JjL2RlbGV0ZS9kZWxldGUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1mb3JtaW8vbWFuYWdlci9zcmMvZGVsZXRlL2RlbGV0ZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7Ozs7QUFTMUMsTUFBTSxPQUFPLDBCQUEwQjtJQUNyQyxZQUNTLGNBQWtDLEVBQ2xDLE1BQWMsRUFDZCxLQUFxQixFQUNyQixNQUFvQixFQUNwQixXQUF5QjtRQUp6QixtQkFBYyxHQUFkLGNBQWMsQ0FBb0I7UUFDbEMsV0FBTSxHQUFOLE1BQU0sQ0FBUTtRQUNkLFVBQUssR0FBTCxLQUFLLENBQWdCO1FBQ3JCLFdBQU0sR0FBTixNQUFNLENBQWM7UUFDcEIsZ0JBQVcsR0FBWCxXQUFXLENBQWM7SUFDL0IsQ0FBQztJQUVKLFFBQVE7UUFDTixJQUFJLENBQUMsY0FBYyxDQUFDLE1BQU0sQ0FBQyxVQUFVLEVBQUUsQ0FBQyxJQUFJLENBQUMsR0FBRyxFQUFFO1lBQ2hELElBQUksSUFBSSxDQUFDLFdBQVcsRUFBRTtnQkFDcEIsTUFBTSxXQUFXLEdBQUcsQ0FBQyxZQUFZLENBQUMsT0F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1yaWdodDogMTBweDtcIj5ZZXM8L2J1dHRvbj5cbiAgPGJ1dHRvbiB0eXBlPVwiYnV0dG9uXCIgKGNsaWNrKT1cIm9uQ2FuY2VsKClcIiBjbGFzcz1cImJ0biBidG4tZGVmYXVsdFwiPk5vPC9idXR0b24+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { Component, ViewChild } from '@angular/core';
|
|
2
|
+
import { FormBuilderComponent } from '@formio/angular';
|
|
3
|
+
import _ from 'lodash';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../form-manager.service";
|
|
6
|
+
import * as i2 from "@angular/router";
|
|
7
|
+
import * as i3 from "../form-manager.config";
|
|
8
|
+
import * as i4 from "@formio/angular";
|
|
9
|
+
import * as i5 from "@angular/common";
|
|
10
|
+
import * as i6 from "@angular/forms";
|
|
11
|
+
const _c0 = ["title"];
|
|
12
|
+
const _c1 = ["type"];
|
|
13
|
+
function FormManagerEditComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
+
i0.ɵɵelement(0, "div", 15);
|
|
15
|
+
} }
|
|
16
|
+
function FormManagerEditComponent_form_builder_18_Template(rf, ctx) { if (rf & 1) {
|
|
17
|
+
i0.ɵɵelement(0, "form-builder", 16, 17);
|
|
18
|
+
} if (rf & 2) {
|
|
19
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
20
|
+
i0.ɵɵproperty("formbuilder", ctx_r3.config.builder)("form", ctx_r3.form);
|
|
21
|
+
} }
|
|
22
|
+
export class FormManagerEditComponent {
|
|
23
|
+
constructor(service, router, route, config, ref, alerts) {
|
|
24
|
+
this.service = service;
|
|
25
|
+
this.router = router;
|
|
26
|
+
this.route = route;
|
|
27
|
+
this.config = config;
|
|
28
|
+
this.ref = ref;
|
|
29
|
+
this.alerts = alerts;
|
|
30
|
+
this.form = { components: [] };
|
|
31
|
+
this.formReady = false;
|
|
32
|
+
this.loading = false;
|
|
33
|
+
this.editMode = false;
|
|
34
|
+
}
|
|
35
|
+
initBuilder(editing) {
|
|
36
|
+
if (editing) {
|
|
37
|
+
this.loading = true;
|
|
38
|
+
this.editMode = true;
|
|
39
|
+
return this.service.formReady.then(() => {
|
|
40
|
+
this.form = this.service.form;
|
|
41
|
+
this.formTitle.nativeElement.value = this.service.form.title;
|
|
42
|
+
this.formType.nativeElement.value = this.service.form.display || 'form';
|
|
43
|
+
this.formReady = true;
|
|
44
|
+
this.loading = false;
|
|
45
|
+
this.ref.detectChanges();
|
|
46
|
+
return true;
|
|
47
|
+
}).catch(err => {
|
|
48
|
+
this.alerts.setAlert({ type: 'danger', message: (err.message || err) });
|
|
49
|
+
this.loading = false;
|
|
50
|
+
this.ref.detectChanges();
|
|
51
|
+
this.formReady = true;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
this.formReady = true;
|
|
56
|
+
return Promise.resolve(true);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
ngAfterViewInit() {
|
|
60
|
+
this.route.url.subscribe(url => {
|
|
61
|
+
setTimeout(() => this.initBuilder((url[0].path === 'edit')), 0);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
onDisplaySelect(event) {
|
|
65
|
+
this.builder.setDisplay(event.target.value);
|
|
66
|
+
}
|
|
67
|
+
saveForm() {
|
|
68
|
+
this.loading = true;
|
|
69
|
+
this.form = _.cloneDeep(this.builder.formio.schema);
|
|
70
|
+
this.form.title = this.formTitle.nativeElement.value.trim();
|
|
71
|
+
this.form.display = this.formType.nativeElement.value;
|
|
72
|
+
if (this.config.tag) {
|
|
73
|
+
this.form.tags = this.form.tags || [];
|
|
74
|
+
this.form.tags.push(this.config.tag);
|
|
75
|
+
this.form.tags = _.uniq(this.form.tags);
|
|
76
|
+
}
|
|
77
|
+
if (!this.form._id) {
|
|
78
|
+
this.form.name = _.camelCase(this.form.title).toLowerCase();
|
|
79
|
+
this.form.path = this.form.name;
|
|
80
|
+
}
|
|
81
|
+
return this.service.formio.saveForm(this.form).then(form => {
|
|
82
|
+
this.form = this.service.setForm(form);
|
|
83
|
+
this.loading = false;
|
|
84
|
+
return this.form;
|
|
85
|
+
}).catch(err => {
|
|
86
|
+
this.loading = false;
|
|
87
|
+
// Catch if a form is returned as an error. This is a conflict.
|
|
88
|
+
if (err._id && err.type) {
|
|
89
|
+
throw err;
|
|
90
|
+
}
|
|
91
|
+
this.alerts.setAlert({ type: 'danger', message: (err.message || err) });
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
onSave() {
|
|
95
|
+
return this.saveForm().then((form) => {
|
|
96
|
+
if (this.editMode) {
|
|
97
|
+
this.router.navigate(['../', 'view'], { relativeTo: this.route });
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
this.router.navigate(['../', form._id, 'view'], { relativeTo: this.route });
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
FormManagerEditComponent.ɵfac = function FormManagerEditComponent_Factory(t) { return new (t || FormManagerEditComponent)(i0.ɵɵdirectiveInject(i1.FormManagerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(i3.FormManagerConfig), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i4.FormioAlerts)); };
|
|
106
|
+
FormManagerEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormManagerEditComponent, selectors: [["ng-component"]], viewQuery: function FormManagerEditComponent_Query(rf, ctx) { if (rf & 1) {
|
|
107
|
+
i0.ɵɵviewQuery(FormBuilderComponent, 5);
|
|
108
|
+
i0.ɵɵviewQuery(_c0, 5);
|
|
109
|
+
i0.ɵɵviewQuery(_c1, 5);
|
|
110
|
+
} if (rf & 2) {
|
|
111
|
+
let _t;
|
|
112
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.builder = _t.first);
|
|
113
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formTitle = _t.first);
|
|
114
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formType = _t.first);
|
|
115
|
+
} }, decls: 21, vars: 3, consts: [["class", "loader", 4, "ngIf"], [1, "form-group", "row"], [1, "col-sm-8"], ["type", "text", "id", "formTitle", "placeholder", "Enter a Title", 1, "form-control"], ["title", ""], [1, "col-sm-2"], ["id", "formSelect", 1, "form-control", 3, "change"], ["type", ""], ["value", "form"], ["value", "wizard"], ["value", "pdf"], [1, "btn", "btn-primary", "btn-block", 3, "click"], [3, "alerts"], [3, "formbuilder", "form", 4, "ngIf"], [1, "btn", "btn-primary", 2, "margin-top", "10px", 3, "click"], [1, "loader"], [3, "formbuilder", "form"], ["builder", ""]], template: function FormManagerEditComponent_Template(rf, ctx) { if (rf & 1) {
|
|
116
|
+
i0.ɵɵtemplate(0, FormManagerEditComponent_div_0_Template, 1, 0, "div", 0);
|
|
117
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2);
|
|
118
|
+
i0.ɵɵelement(3, "input", 3, 4);
|
|
119
|
+
i0.ɵɵelementEnd();
|
|
120
|
+
i0.ɵɵelementStart(5, "div", 5)(6, "select", 6, 7);
|
|
121
|
+
i0.ɵɵlistener("change", function FormManagerEditComponent_Template_select_change_6_listener($event) { return ctx.onDisplaySelect($event); });
|
|
122
|
+
i0.ɵɵelementStart(8, "option", 8);
|
|
123
|
+
i0.ɵɵtext(9, "Form");
|
|
124
|
+
i0.ɵɵelementEnd();
|
|
125
|
+
i0.ɵɵelementStart(10, "option", 9);
|
|
126
|
+
i0.ɵɵtext(11, "Wizard");
|
|
127
|
+
i0.ɵɵelementEnd();
|
|
128
|
+
i0.ɵɵelementStart(12, "option", 10);
|
|
129
|
+
i0.ɵɵtext(13, "PDF");
|
|
130
|
+
i0.ɵɵelementEnd()()();
|
|
131
|
+
i0.ɵɵelementStart(14, "div", 5)(15, "button", 11);
|
|
132
|
+
i0.ɵɵlistener("click", function FormManagerEditComponent_Template_button_click_15_listener() { return ctx.onSave(); });
|
|
133
|
+
i0.ɵɵtext(16, "Save Form");
|
|
134
|
+
i0.ɵɵelementEnd()()();
|
|
135
|
+
i0.ɵɵelement(17, "formio-alerts", 12);
|
|
136
|
+
i0.ɵɵtemplate(18, FormManagerEditComponent_form_builder_18_Template, 2, 2, "form-builder", 13);
|
|
137
|
+
i0.ɵɵelementStart(19, "button", 14);
|
|
138
|
+
i0.ɵɵlistener("click", function FormManagerEditComponent_Template_button_click_19_listener() { return ctx.onSave(); });
|
|
139
|
+
i0.ɵɵtext(20, "Save Form");
|
|
140
|
+
i0.ɵɵelementEnd();
|
|
141
|
+
} if (rf & 2) {
|
|
142
|
+
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
143
|
+
i0.ɵɵadvance(17);
|
|
144
|
+
i0.ɵɵproperty("alerts", ctx.alerts);
|
|
145
|
+
i0.ɵɵadvance(1);
|
|
146
|
+
i0.ɵɵproperty("ngIf", ctx.formReady);
|
|
147
|
+
} }, dependencies: [i5.NgIf, i4.FormBuilderComponent, i4.FormioAlertsComponent, i6.NgSelectOption, i6.ɵNgSelectMultipleOption], encapsulation: 2 });
|
|
148
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormManagerEditComponent, [{
|
|
149
|
+
type: Component,
|
|
150
|
+
args: [{ template: "<div class=\"loader\" *ngIf=\"loading\"></div>\n<div class=\"form-group row\">\n <div class=\"col-sm-8\">\n <input type=\"text\" class=\"form-control\" id=\"formTitle\" placeholder=\"Enter a Title\" #title>\n </div>\n <div class=\"col-sm-2\">\n <select class=\"form-control\" id=\"formSelect\" (change)=\"onDisplaySelect($event)\" #type>\n <option value=\"form\">Form</option>\n <option value=\"wizard\">Wizard</option>\n <option value=\"pdf\">PDF</option>\n </select>\n </div>\n <div class=\"col-sm-2\">\n <button class=\"btn btn-primary btn-block\" (click)=\"onSave()\">Save Form</button>\n </div>\n</div>\n<formio-alerts [alerts]=\"alerts\"></formio-alerts>\n<form-builder *ngIf=\"formReady\" [formbuilder]=\"config.builder\" [form]=\"form\" #builder></form-builder>\n<button class=\"btn btn-primary\" style=\"margin-top: 10px;\" (click)=\"onSave()\">Save Form</button>\n" }]
|
|
151
|
+
}], function () { return [{ type: i1.FormManagerService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: i3.FormManagerConfig }, { type: i0.ChangeDetectorRef }, { type: i4.FormioAlerts }]; }, { builder: [{
|
|
152
|
+
type: ViewChild,
|
|
153
|
+
args: [FormBuilderComponent, { static: false }]
|
|
154
|
+
}], formTitle: [{
|
|
155
|
+
type: ViewChild,
|
|
156
|
+
args: ['title', { static: false }]
|
|
157
|
+
}], formType: [{
|
|
158
|
+
type: ViewChild,
|
|
159
|
+
args: ['type', { static: false }]
|
|
160
|
+
}] }); })();
|
|
161
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWZvcm1pby9tYW5hZ2VyL3NyYy9lZGl0L2VkaXQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1mb3JtaW8vbWFuYWdlci9zcmMvZWRpdC9lZGl0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUFnRCxNQUFNLGVBQWUsQ0FBQztBQUtuRyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUN2RCxPQUFPLENBQUMsTUFBTSxRQUFRLENBQUM7Ozs7Ozs7Ozs7O0lDTnZCLDBCQUEw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