@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.
Files changed (559) hide show
  1. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/01/e5/e23b89936960de6ad3508f850be720524a6231b49e8520d80bd5f9468e9404dd6ee313e5127d0648608ef8fa2b469c2c0f7c49f89162b05bbcce80461e9c +1 -0
  2. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/01/f5/4259bfb27e15abda81ea61ae4e2d8f29ef518e099f1d7c8693fa453843a874ee8d04e25a99f4061c0400be1a9f3f1a874a330fcf0a5dba082ca951c8707b +1 -0
  3. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/03/23/c769271f9bbd8eda9edbc085d8f53d3bb02909ee0a22a3de1c89b7df544beced4e74167af785a6bf25e0c981807e78868d1032267e98cd714e7779902ff9 +1 -0
  4. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/0c/7a/916bd866cb386cc87b9ea07c40edc23df9d726d1865e6699b42dedfbfb2a8364ced191aa62680a9297d7644cdfa64753b8975cc254c7c581f28bba0acd15 +1 -0
  5. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/15/a9/1d68fcff615e0cffcaad777402e5642b8a3bd360ad0af813af9691e0b7309038151eac43ae8e67d6b3be5a00cfaea2667e654c24ea55ff4cd2f8b58dc2a7 +1 -0
  6. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/1d/f9/f8694213d5dd173183df341996413ab4b230954a5cb5fec27b2fe58be33155dca699aa3562b45b88aed867a901c5a8b5242f02d28d55bee5523532679008 +1 -0
  7. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/21/d0/9bcc3e57b3d1375b9e47de16213e34f68cc10f0eff6bf1776422eeb0888c8deefdedb4d34bbfb5a48a31e3db208d2363f8aa16ee35183a90b382fa888e9f +1 -0
  8. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/22/f0/5cfa42afa778fe6e8c9d64a24c1a0c66e766ea8737f3336df95c535613589b840b5d7d45cfc0548bb91e69d1ec3acc0055e0d56b19fb05d7de846d1b8b43 +1 -0
  9. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/3a/b3/f51b230d4fc92fcc2a671feb65e5d1995435fd44aeede5840708854fc200fc6e885145882b27d2e8967b1dcc1a4558ebd3afee0e3ba1bba76c4e042a509c +1 -0
  10. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/43/05/c86feb68c6e6f17d2b1e7d4aadfbef2f8554b42c9e0b7516b22a7c34044b513c23987b00507d17cb8f89b9b762b5499483d4ec16708519940e00cee5863a +1 -0
  11. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/49/83/fe1894f290d2c7b62071613c17ef550fc151acb486bca8d907dc1da702f3a83f0cc638e33acdccf4a8710f342bb39ca4e591b35f5551706578315a4ec9f1 +1 -0
  12. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/4b/50/b112c9a92c939784f8af5ea5888188aa9dfc5114485463d0dbf84d8e7b48ff7e52f8d012badd74347a83a214c8504cda54769f9f86774919184fed955fea +1 -0
  13. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/52/5a/4fa0f73bf834435defcfd550b63ea9924b0f0af5d8cbfe2c79ee2a3efd8b4c50c47a048c8daf54afceec58ad38159c690afe1224832ecd8e724ff4030068 +1 -0
  14. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/5f/1e/aef8c84037440da9067e57fe4fb8d14c4226a97e0d41a321755d9068d490b7c37504fd2e4345ca98b2c824b940fe036e499998be3343a89e6845767dc806 +1 -0
  15. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/69/49/5bcde08bb3541360e80c857e93c622592b2605f53500ec939f264908603a030c9e3da2f7ec05883f3f8ccb19f158d4e249a665f5d6a46c6c8aae7ecb7ff2 +1 -0
  16. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/78/6b/938be911c6fa1b8ab5c1136954cd375f6d24ca77880eefc4f59bd030cc7c9d462b400d3db051117bcbaa5fb2037c4c08c892c5d3ceb7ac6e3f11e0b3130a +1 -0
  17. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/81/f7/21b01b64900856c9f64f17129a8865cd92a471eb4c6dd452e870d5f3d685b57bc7a48759458d345cb081523d23b4f8ff7f3e6d133fcea11f971be8d7b396 +1 -0
  18. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/8b/1d/9d06e2b1f63c60745b165ba2236f3b2366a6f2c2b5cfd12c73508e54cc5a4b4d5e47015a1a2188c9f3cb7ed82e5cc0d5790bd55fb6883942279d8e69d98a +1 -0
  19. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/94/37/128b088664cddaff6cbdcabc604d8f559d8b8f7c3655c1e42d86e9d91c3e51483fff7e27be62ca9790fc43d271fd4c87d2246c5423f9e681793832bd3b4e +1 -0
  20. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/9c/21/3b8af7b6ee09c29bf340610026191af56f9ba1cba1f5e4476424775d5e322f84d7e900c4d264d39804cebf3dcb5aaa5eb5e9d8fd143bc3a8aa76c3d5325e +1 -0
  21. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/9f/9a/6055949c6d628b4f34b5f43410d5efbbacd956e52240b30278fd4dfe5182a206d91728e0d16b71904e0cf5b40d7944f054d7fa6f45ce38502aa3c654446c +1 -0
  22. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/a2/a1/90177481ee6a42670513d750763246aef60819ab74d0835ca92f243cd8970edc9c6e2d63a576e9edb1f702810a8632512b623550c454d16596aa29f6553a +1 -0
  23. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/ab/fd/668e4582483cadf906c6b8199541af6c4c843761aa3d2372088613a1b17498c302709580ea641920b5c1e67265bf88e6e3901a210be18a8f24bc58743200 +1 -0
  24. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/af/4a/cafdd325d47ab347fd8f7d3828818bd4305919aeaa02a86850a77589b07e81162d9f3d08619d253037c6562d1a1389fcd99713cef96ff394d7ec55134deb +1 -0
  25. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/af/5c/97d9a08342685ee95844b54aed260370df0de7c2408ec7b14f7da3972c811ee5a4cae7be4f51de07dd039c8639ec4e9008733bcf0b6a438b29a83d7fabe3 +1 -0
  26. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/b9/9d/f7b80ff9e7ab8eb61b27b29fa5b2790f18fda8b2d23d4e821ede655c7f981c37d90094cf772ec02b8fc1730b94bd8154534a39191b9a9fc7de88974d57f4 +1 -0
  27. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/ba/5d/d939f6c0890924d0234b6253e4c7baab7e285c4e9e3b838d4f223f5365ce00c421e48383fc21ecdf847e1592936f5be80b0d20ea3db471bfe39e181c091a +1 -0
  28. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/c3/a1/25be872308b2510aa4e49fee9fb3708fe45d0526c4094a8b1af3bf8edd7e3c5cfb58a1c15523673b91a4c02bd4ec7baa1b88ec8ab73c7e3dde53898fe98a +1 -0
  29. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/c7/4b/efaebbbabff0924b290dafa529aee821d250fc178047868b7f63c849de6af1f9557825b665fd50a87cf363e2967a7913e60a9860cac818737c43f088a0b6 +1 -0
  30. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/d3/15/8fda1c88b170d1f252a22dc3be6211581e1b9975058b870c182b3b66ea5b0f3f2edfafb3ef7b10c42cfdf97b8cbbe1aeb57c965e6e6bb2b5076848889691 +1 -0
  31. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/d7/53/c9807659c1f98269ec82d2980bda0b81da57c9dec6efd59cf3e7abdbfa6a3e751ab0eb4d66e6b62d31873b4b74c349c87fa194d0e7b7e114e5bdcc3cdcdb +1 -0
  32. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/e1/3b/a5699b2b00255cbdc58efdda462de0c9fffe6b82cd5482a49f4fd918ecf98ffd08211dbf1d80cb60ac0052b8d9919c6d5d16fa99300dfc3be3c2b85ffbf9 +1 -0
  33. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/e8/bf/a382f2ee2851df30c90d614c8104b97c8352c9d894966fe19f3c5ae632bc3fdf2c4879c1f9ec67fb28afdf19cd1683e9305c193d6e82835b688e3474447e +1 -0
  34. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/e9/87/edf15f2af87d650e35a6dd3675d7e6910c0ee3f095e95542c581d3b89e3cfde325714bf4a93e1c7665bc33adbbfe4cc49c073ac122ee697681d01d041eba +1 -0
  35. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/e9/aa/76646c61fad4972df6b5625be826a0d182cbe21632fdba1458c6e7d87f394dd5c9ccf71389772b2a5edb616e477f74f351d88eab7c39c76afe95bb851e27 +1 -0
  36. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/e9/ca/53ff813610ae5d57a25518e6546b659a092de2c929fd43130db59358947aa9aa5797289f7ca39fe550d2e41050a69cb26e6b5dd6ebbcae0207ab08474dc8 +1 -0
  37. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/f7/c4/20025dfcab6ef6645c04bf03ab9e87e06f5526f8c1428595f87ec9b7c23c8a04fb146e47e176baf3da8a852b7bf277bb1ab27ecb61b699cb216edd3ff8ec +1 -0
  38. package/.angular/cache/15.0.1/ng-packagr/content-v2/sha512/ff/c7/bd261ba278c31a35ab220845891f83c1a18a7cf5f398b7a4332a32e1644dd6c07d5895d3cdfc546b48c66757613d53238d475eb2ce78d9fdf5e917b917f7 +1 -0
  39. package/.angular/cache/15.0.1/ng-packagr/index-v5/06/aa/f9f76fa9af3d6ac714d85ff94f703a46f8d164984ebe228161ea6bab4330 +2 -0
  40. package/.angular/cache/15.0.1/ng-packagr/index-v5/15/37/6487aecd2b887fd9938044ee0b6b002f232abb4c6aec11e76060169b9e17 +2 -0
  41. package/.angular/cache/15.0.1/ng-packagr/index-v5/16/36/7bfa836eaa2a8c347d0c61df497c7a72fdaf1ece0490da0636f036301a1b +2 -0
  42. package/.angular/cache/15.0.1/ng-packagr/index-v5/16/6d/027642a28349d275131e5f0b4ad89dd3195a2f18a3f50faa97040e54a6ed +2 -0
  43. package/.angular/cache/15.0.1/ng-packagr/index-v5/19/b4/673449e1657c54805f54357ac1b0c2052b322e18bceea346d725d761f87a +2 -0
  44. package/.angular/cache/15.0.1/ng-packagr/index-v5/20/1f/18abae6c79ef08c9450a94eb2437726e500da0b14300d33930df97307cb0 +2 -0
  45. package/.angular/cache/15.0.1/ng-packagr/index-v5/2c/fe/611a98b5c956bb3f524e1f272f4b9774f7fc218f52aba3dc2cab06fcf387 +2 -0
  46. package/.angular/cache/15.0.1/ng-packagr/index-v5/3d/b3/64dc80c6357f1a2b2c91aa11aa6ecb61f21e75fa0bbbc24e6c943d6ec9c4 +2 -0
  47. package/.angular/cache/15.0.1/ng-packagr/index-v5/45/ac/c73386e65ccdcdd759a1005f9529b60e5f62b952e99c3ff44fdf91ca3597 +2 -0
  48. package/.angular/cache/15.0.1/ng-packagr/index-v5/4d/17/ade79a816bd9ec1fe3ed0094c6663e36d494fb60dc2fd5b9152ef6a92154 +2 -0
  49. package/.angular/cache/15.0.1/ng-packagr/index-v5/5a/5a/2ea76a4fa29eeba07bf099c32987d2c0e772b5550ae461c48f330004eb13 +2 -0
  50. package/.angular/cache/15.0.1/ng-packagr/index-v5/65/cb/5c5e267d1c02bd4744018bfc1139c92977232bcc803b1c1778fd9c395608 +2 -0
  51. package/.angular/cache/15.0.1/ng-packagr/index-v5/69/a1/d2c99d238cd15fce83d764481d6ecd5aba0f315b2013cc786399af5bba7e +2 -0
  52. package/.angular/cache/15.0.1/ng-packagr/index-v5/6e/0f/2a2f6d0f5e763edefe274f04be01a682b7ff3b273317529d0811e7fff34d +2 -0
  53. package/.angular/cache/15.0.1/ng-packagr/index-v5/70/10/5fc5cf1f12c9d98551a642ed8eaf8360c071c8c03095682ca2adb0bffc0b +2 -0
  54. package/.angular/cache/15.0.1/ng-packagr/index-v5/76/f7/775d6b60ae22b890a075a569cf117568ebe446e138798cbc10dfe25426e1 +2 -0
  55. package/.angular/cache/15.0.1/ng-packagr/index-v5/7c/5a/0a1aff5c26b4da864f046051e8fd2e52689a9b97db1af2b8abed22bef859 +2 -0
  56. package/.angular/cache/15.0.1/ng-packagr/index-v5/81/90/4cdd95a8c37245adad95077bb618adab90df01de114668e4ebf3f2a1e743 +2 -0
  57. package/.angular/cache/15.0.1/ng-packagr/index-v5/88/1f/b7baf347b035cabea06d7352a540cb882747f1a3d5f891a5552cfb0e0766 +2 -0
  58. package/.angular/cache/15.0.1/ng-packagr/index-v5/88/38/558f66bfdbac1cf6bb7af18752df87101e04586813c23311b30277327000 +2 -0
  59. package/.angular/cache/15.0.1/ng-packagr/index-v5/90/12/9dab17b6ac5409fb5088b46f01d7fc9fa2ae6f497b210ad215149856deac +2 -0
  60. package/.angular/cache/15.0.1/ng-packagr/index-v5/9a/be/450f4f44251c1ada84de327410e3cd1122c019774eeeb19a32e25257c00b +2 -0
  61. package/.angular/cache/15.0.1/ng-packagr/index-v5/9d/fc/b6889318df1cc51a1588cacb4017e725777e9c218239d49c9f81eb2fb5a0 +2 -0
  62. package/.angular/cache/15.0.1/ng-packagr/index-v5/ae/7e/c1b7a3d4262ee1e7602bffa167279a4f87c28fb896a6ced429b70103b7df +2 -0
  63. package/.angular/cache/15.0.1/ng-packagr/index-v5/b2/bd/e73968b87cffc870f7d7a1c48f8541b9a267388eb59a8959ebad9229920c +2 -0
  64. package/.angular/cache/15.0.1/ng-packagr/index-v5/b9/cd/83db609579af94239f033ccb4367ed430d5ec50ddd5b5df6f0f175d48ce3 +2 -0
  65. package/.angular/cache/15.0.1/ng-packagr/index-v5/ba/e4/9e5145decd9e9b59e84aacc20459537106be69ebc18986f93b34355078bd +2 -0
  66. package/.angular/cache/15.0.1/ng-packagr/index-v5/bc/3e/9599aa4a23f1e642f1c9e194c6ab52c84468a90b96b7e736f9bd5a607a19 +2 -0
  67. package/.angular/cache/15.0.1/ng-packagr/index-v5/c5/16/22f2736652223dd09835db0221a6fde19987bec58c72db2279eb16cee8e9 +2 -0
  68. package/.angular/cache/15.0.1/ng-packagr/index-v5/c6/36/d327400b7b6399d718fc68d5cac0cbd87552b456c2c2d5ce5b614ee10009 +2 -0
  69. package/.angular/cache/15.0.1/ng-packagr/index-v5/c9/c6/a3ec65df56befe84cb12519323461415d4fd1b6f2bf4827a93f6b1663e7f +2 -0
  70. package/.angular/cache/15.0.1/ng-packagr/index-v5/cc/ed/ffba3de0599f554db4d2b4a12e7099247521660f7cfcd92971593e98eaf1 +2 -0
  71. package/.angular/cache/15.0.1/ng-packagr/index-v5/cf/0c/9b4c301350d8bcec537c0c04a268f1710fea9e9635a6c5015799d7c77c41 +2 -0
  72. package/.angular/cache/15.0.1/ng-packagr/index-v5/d9/35/1df9c5a929d12127cfe114f0ca55ea62916ca47861545762e55bf8c8735d +2 -0
  73. package/.angular/cache/15.0.1/ng-packagr/index-v5/de/45/beac4cd852a628afa272062823137beb64fea6591b775133caf55358d021 +2 -0
  74. package/.angular/cache/15.0.1/ng-packagr/index-v5/df/6d/addfb17e1ad55ce1fbe607edaffd16f53ff1715df0ab656ac01cc8c4887c +2 -0
  75. package/.angular/cache/15.0.1/ng-packagr/index-v5/e1/de/7105702be767c43ff63b8192a07fc2a6685d997867cd0b39c09599acf769 +2 -0
  76. package/.angular/cache/15.0.1/ng-packagr/index-v5/f6/d8/e94a21d22f73e0e1744e3509373c84104e0267b44be10ef1597a9bce2dd0 +2 -0
  77. package/.dccache +1 -0
  78. package/.dockerignore +5 -0
  79. package/.editorconfig +13 -0
  80. package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  81. package/.github/ISSUE_TEMPLATE/custom-components-support-request.md +15 -0
  82. package/.github/ISSUE_TEMPLATE/question.md +8 -0
  83. package/.travis.yml +4 -0
  84. package/.yo-rc.json +7 -0
  85. package/CHANGELOG.md +1045 -0
  86. package/Dockerfile +20 -0
  87. package/LICENSE +21 -0
  88. package/README.md +170 -13
  89. package/angular.json +38 -0
  90. package/bs-config.json +11 -0
  91. package/{FormioBaseComponent.d.ts → dist/angular-formio/FormioBaseComponent.d.ts} +1 -1
  92. package/{FormioBaseComponent.d.ts.map → dist/angular-formio/FormioBaseComponent.d.ts.map} +0 -0
  93. package/dist/angular-formio/README.md +24 -0
  94. package/{auth → dist/angular-formio/auth}/auth.component.d.ts +1 -1
  95. package/{auth → dist/angular-formio/auth}/auth.component.d.ts.map +0 -0
  96. package/{auth → dist/angular-formio/auth}/auth.config.d.ts +0 -0
  97. package/{auth → dist/angular-formio/auth}/auth.config.d.ts.map +0 -0
  98. package/{auth → dist/angular-formio/auth}/auth.module.d.ts +0 -0
  99. package/{auth → dist/angular-formio/auth}/auth.module.d.ts.map +0 -0
  100. package/{auth → dist/angular-formio/auth}/auth.routes.d.ts +0 -0
  101. package/{auth → dist/angular-formio/auth}/auth.routes.d.ts.map +0 -0
  102. package/{auth → dist/angular-formio/auth}/auth.service.d.ts +1 -0
  103. package/{auth → dist/angular-formio/auth}/auth.service.d.ts.map +1 -1
  104. package/{auth → dist/angular-formio/auth}/formio-angular-auth.d.ts.map +0 -0
  105. package/{auth → dist/angular-formio/auth}/index.d.ts +0 -0
  106. package/{auth → dist/angular-formio/auth}/index.d.ts.map +0 -0
  107. package/{auth → dist/angular-formio/auth}/login/login.component.d.ts +1 -1
  108. package/{auth → dist/angular-formio/auth}/login/login.component.d.ts.map +0 -0
  109. package/{auth → dist/angular-formio/auth}/register/register.component.d.ts +1 -1
  110. package/{auth → dist/angular-formio/auth}/register/register.component.d.ts.map +0 -0
  111. package/{auth → dist/angular-formio/auth}/resetpass/resetpass.component.d.ts +1 -1
  112. package/{auth → dist/angular-formio/auth}/resetpass/resetpass.component.d.ts.map +0 -0
  113. package/{components → dist/angular-formio/components}/alerts/formio.alerts.component.d.ts +1 -1
  114. package/{components → dist/angular-formio/components}/alerts/formio.alerts.component.d.ts.map +0 -0
  115. package/{components → dist/angular-formio/components}/alerts/formio.alerts.d.ts +0 -0
  116. package/{components → dist/angular-formio/components}/alerts/formio.alerts.d.ts.map +0 -0
  117. package/{components → dist/angular-formio/components}/alerts/parse-html-content.pipe.d.ts +0 -0
  118. package/{components → dist/angular-formio/components}/alerts/parse-html-content.pipe.d.ts.map +0 -0
  119. package/{components → dist/angular-formio/components}/formbuilder/formbuilder.component.d.ts +1 -1
  120. package/{components → dist/angular-formio/components}/formbuilder/formbuilder.component.d.ts.map +0 -0
  121. package/{components → dist/angular-formio/components}/formio/formio.component.d.ts +1 -1
  122. package/{components → dist/angular-formio/components}/formio/formio.component.d.ts.map +0 -0
  123. package/{components → dist/angular-formio/components}/loader/formio.loader.component.d.ts +1 -1
  124. package/{components → dist/angular-formio/components}/loader/formio.loader.component.d.ts.map +0 -0
  125. package/{core.d.ts → dist/angular-formio/core.d.ts} +0 -0
  126. package/{core.d.ts.map → dist/angular-formio/core.d.ts.map} +0 -0
  127. package/{custom-component → dist/angular-formio/custom-component}/create-custom-component.d.ts +0 -0
  128. package/{custom-component → dist/angular-formio/custom-component}/create-custom-component.d.ts.map +0 -0
  129. package/{custom-component → dist/angular-formio/custom-component}/custom-tags.service.d.ts +0 -0
  130. package/{custom-component → dist/angular-formio/custom-component}/custom-tags.service.d.ts.map +0 -0
  131. package/{custom-component → dist/angular-formio/custom-component}/register-custom-component.d.ts +0 -0
  132. package/{custom-component → dist/angular-formio/custom-component}/register-custom-component.d.ts.map +0 -0
  133. package/{elements.common.d.ts → dist/angular-formio/elements.common.d.ts} +0 -0
  134. package/{elements.common.d.ts.map → dist/angular-formio/elements.common.d.ts.map} +0 -0
  135. package/dist/angular-formio/esm2020/FormioBaseComponent.mjs +533 -0
  136. package/dist/angular-formio/esm2020/auth/auth.component.mjs +25 -0
  137. package/dist/angular-formio/esm2020/auth/auth.config.mjs +15 -0
  138. package/dist/angular-formio/esm2020/auth/auth.module.mjs +47 -0
  139. package/{esm2020 → dist/angular-formio/esm2020}/auth/auth.routes.mjs +0 -0
  140. package/{esm2020 → dist/angular-formio/esm2020}/auth/auth.service.mjs +13 -6
  141. package/{esm2020 → dist/angular-formio/esm2020}/auth/formio-angular-auth.mjs +0 -0
  142. package/{esm2020 → dist/angular-formio/esm2020}/auth/index.mjs +0 -0
  143. package/dist/angular-formio/esm2020/auth/login/login.component.mjs +22 -0
  144. package/dist/angular-formio/esm2020/auth/register/register.component.mjs +22 -0
  145. package/dist/angular-formio/esm2020/auth/resetpass/resetpass.component.mjs +22 -0
  146. package/dist/angular-formio/esm2020/components/alerts/formio.alerts.component.mjs +46 -0
  147. package/{esm2020 → dist/angular-formio/esm2020}/components/alerts/formio.alerts.mjs +0 -0
  148. package/dist/angular-formio/esm2020/components/alerts/parse-html-content.pipe.mjs +19 -0
  149. package/dist/angular-formio/esm2020/components/formbuilder/formbuilder.component.mjs +195 -0
  150. package/dist/angular-formio/esm2020/components/formio/formio.component.mjs +82 -0
  151. package/dist/angular-formio/esm2020/components/loader/formio.loader.component.mjs +23 -0
  152. package/{esm2020 → dist/angular-formio/esm2020}/core.mjs +0 -0
  153. package/{esm2020 → dist/angular-formio/esm2020}/custom-component/create-custom-component.mjs +0 -0
  154. package/dist/angular-formio/esm2020/custom-component/custom-tags.service.mjs +16 -0
  155. package/{esm2020 → dist/angular-formio/esm2020}/custom-component/register-custom-component.mjs +0 -0
  156. package/{esm2020 → dist/angular-formio/esm2020}/elements.common.mjs +0 -0
  157. package/{esm2020 → dist/angular-formio/esm2020}/formio-angular.mjs +0 -0
  158. package/{esm2020 → dist/angular-formio/esm2020}/formio-promise.service.mjs +0 -0
  159. package/{esm2020 → dist/angular-formio/esm2020}/formio.common.mjs +0 -0
  160. package/dist/angular-formio/esm2020/formio.config.mjs +14 -0
  161. package/dist/angular-formio/esm2020/formio.module.mjs +55 -0
  162. package/{esm2020 → dist/angular-formio/esm2020}/formio.service.mjs +0 -0
  163. package/{esm2020 → dist/angular-formio/esm2020}/formio.utils.mjs +0 -0
  164. package/dist/angular-formio/esm2020/grid/GridBodyComponent.mjs +86 -0
  165. package/dist/angular-formio/esm2020/grid/GridFooterComponent.mjs +41 -0
  166. package/dist/angular-formio/esm2020/grid/GridHeaderComponent.mjs +35 -0
  167. package/dist/angular-formio/esm2020/grid/form/FormGridBody.component.mjs +117 -0
  168. package/dist/angular-formio/esm2020/grid/form/FormGridFooter.component.mjs +110 -0
  169. package/dist/angular-formio/esm2020/grid/form/FormGridHeader.component.mjs +52 -0
  170. package/{esm2020 → dist/angular-formio/esm2020}/grid/form/index.mjs +0 -0
  171. package/{esm2020 → dist/angular-formio/esm2020}/grid/form/time-since.pipe.mjs +9 -9
  172. package/{esm2020 → dist/angular-formio/esm2020}/grid/formio-angular-grid.mjs +0 -0
  173. package/dist/angular-formio/esm2020/grid/grid.component.mjs +297 -0
  174. package/dist/angular-formio/esm2020/grid/grid.module.mjs +80 -0
  175. package/dist/angular-formio/esm2020/grid/grid.service.mjs +17 -0
  176. package/{esm2020 → dist/angular-formio/esm2020}/grid/index.mjs +0 -0
  177. package/dist/angular-formio/esm2020/grid/submission/SubmissionGridBody.component.mjs +73 -0
  178. package/dist/angular-formio/esm2020/grid/submission/SubmissionGridFooter.component.mjs +101 -0
  179. package/dist/angular-formio/esm2020/grid/submission/SubmissionGridHeader.component.mjs +93 -0
  180. package/{esm2020 → dist/angular-formio/esm2020}/grid/submission/index.mjs +0 -0
  181. package/{esm2020 → dist/angular-formio/esm2020}/grid/types/grid-column.mjs +0 -0
  182. package/{esm2020 → dist/angular-formio/esm2020}/grid/types/grid-footer-positions.mjs +0 -0
  183. package/{esm2020 → dist/angular-formio/esm2020}/grid/types/grid-header.mjs +0 -0
  184. package/{esm2020 → dist/angular-formio/esm2020}/index.mjs +0 -0
  185. package/dist/angular-formio/esm2020/manager/create/create.component.mjs +59 -0
  186. package/dist/angular-formio/esm2020/manager/delete/delete.component.mjs +52 -0
  187. package/dist/angular-formio/esm2020/manager/edit/edit.component.mjs +161 -0
  188. package/dist/angular-formio/esm2020/manager/form/form.component.mjs +167 -0
  189. package/dist/angular-formio/esm2020/manager/form-manager.config.mjs +15 -0
  190. package/dist/angular-formio/esm2020/manager/form-manager.module.mjs +84 -0
  191. package/{esm2020 → dist/angular-formio/esm2020}/manager/form-manager.routes.mjs +0 -0
  192. package/{esm2020 → dist/angular-formio/esm2020}/manager/form-manager.service.mjs +6 -6
  193. package/{esm2020 → dist/angular-formio/esm2020}/manager/formio-angular-manager.mjs +0 -0
  194. package/dist/angular-formio/esm2020/manager/index/index.component.mjs +126 -0
  195. package/{esm2020 → dist/angular-formio/esm2020}/manager/index.mjs +0 -0
  196. package/dist/angular-formio/esm2020/manager/submission/delete/delete.component.mjs +43 -0
  197. package/dist/angular-formio/esm2020/manager/submission/edit/edit.component.mjs +28 -0
  198. package/dist/angular-formio/esm2020/manager/submission/index/index.component.mjs +28 -0
  199. package/dist/angular-formio/esm2020/manager/submission/submission/submission.component.mjs +64 -0
  200. package/dist/angular-formio/esm2020/manager/submission/view/view.component.mjs +22 -0
  201. package/dist/angular-formio/esm2020/manager/view/view.component.mjs +55 -0
  202. package/dist/angular-formio/esm2020/resource/create/create.component.mjs +57 -0
  203. package/dist/angular-formio/esm2020/resource/delete/delete.component.mjs +38 -0
  204. package/dist/angular-formio/esm2020/resource/edit/edit.component.mjs +42 -0
  205. package/{esm2020 → dist/angular-formio/esm2020}/resource/formio-angular-resource.mjs +0 -0
  206. package/dist/angular-formio/esm2020/resource/index/index.component.mjs +70 -0
  207. package/{esm2020 → dist/angular-formio/esm2020}/resource/index.mjs +0 -0
  208. package/dist/angular-formio/esm2020/resource/resource.component.mjs +72 -0
  209. package/dist/angular-formio/esm2020/resource/resource.config.mjs +15 -0
  210. package/dist/angular-formio/esm2020/resource/resource.module.mjs +63 -0
  211. package/{esm2020 → dist/angular-formio/esm2020}/resource/resource.routes.mjs +0 -0
  212. package/{esm2020 → dist/angular-formio/esm2020}/resource/resource.service.mjs +8 -8
  213. package/dist/angular-formio/esm2020/resource/resources.service.mjs +22 -0
  214. package/dist/angular-formio/esm2020/resource/view/view.component.mjs +27 -0
  215. package/{esm2020 → dist/angular-formio/esm2020}/types/alerts-position.mjs +0 -0
  216. package/{esm2020 → dist/angular-formio/esm2020}/types/formio-metadata.mjs +0 -0
  217. package/{esm2020 → dist/angular-formio/esm2020}/types/formio-submission.mjs +0 -0
  218. package/{fesm2020 → dist/angular-formio/fesm2015}/formio-angular-auth.mjs +101 -34
  219. package/dist/angular-formio/fesm2015/formio-angular-auth.mjs.map +1 -0
  220. package/dist/angular-formio/fesm2015/formio-angular-grid.mjs +1255 -0
  221. package/dist/angular-formio/fesm2015/formio-angular-grid.mjs.map +1 -0
  222. package/dist/angular-formio/fesm2015/formio-angular-manager.mjs +1178 -0
  223. package/dist/angular-formio/fesm2015/formio-angular-manager.mjs.map +1 -0
  224. package/{fesm2015 → dist/angular-formio/fesm2015}/formio-angular-resource.mjs +175 -50
  225. package/dist/angular-formio/fesm2015/formio-angular-resource.mjs.map +1 -0
  226. package/{fesm2015 → dist/angular-formio/fesm2015}/formio-angular.mjs +188 -53
  227. package/dist/angular-formio/fesm2015/formio-angular.mjs.map +1 -0
  228. package/dist/angular-formio/fesm2020/formio-angular-auth.mjs +330 -0
  229. package/dist/angular-formio/fesm2020/formio-angular-auth.mjs.map +1 -0
  230. package/dist/angular-formio/fesm2020/formio-angular-grid.mjs +1108 -0
  231. package/dist/angular-formio/fesm2020/formio-angular-grid.mjs.map +1 -0
  232. package/dist/angular-formio/fesm2020/formio-angular-manager.mjs +1066 -0
  233. package/dist/angular-formio/fesm2020/formio-angular-manager.mjs.map +1 -0
  234. package/dist/angular-formio/fesm2020/formio-angular-resource.mjs +582 -0
  235. package/dist/angular-formio/fesm2020/formio-angular-resource.mjs.map +1 -0
  236. package/dist/angular-formio/fesm2020/formio-angular.mjs +1253 -0
  237. package/dist/angular-formio/fesm2020/formio-angular.mjs.map +1 -0
  238. package/{formio-angular.d.ts.map → dist/angular-formio/formio-angular.d.ts.map} +0 -0
  239. package/{formio-promise.service.d.ts → dist/angular-formio/formio-promise.service.d.ts} +0 -0
  240. package/{formio-promise.service.d.ts.map → dist/angular-formio/formio-promise.service.d.ts.map} +0 -0
  241. package/{formio.common.d.ts → dist/angular-formio/formio.common.d.ts} +0 -0
  242. package/{formio.common.d.ts.map → dist/angular-formio/formio.common.d.ts.map} +0 -0
  243. package/{formio.config.d.ts → dist/angular-formio/formio.config.d.ts} +0 -0
  244. package/{formio.config.d.ts.map → dist/angular-formio/formio.config.d.ts.map} +0 -0
  245. package/{formio.module.d.ts → dist/angular-formio/formio.module.d.ts} +0 -0
  246. package/{formio.module.d.ts.map → dist/angular-formio/formio.module.d.ts.map} +0 -0
  247. package/{formio.service.d.ts → dist/angular-formio/formio.service.d.ts} +0 -0
  248. package/{formio.service.d.ts.map → dist/angular-formio/formio.service.d.ts.map} +0 -0
  249. package/{formio.utils.d.ts → dist/angular-formio/formio.utils.d.ts} +0 -0
  250. package/{formio.utils.d.ts.map → dist/angular-formio/formio.utils.d.ts.map} +0 -0
  251. package/{grid → dist/angular-formio/grid}/GridBodyComponent.d.ts +1 -1
  252. package/{grid → dist/angular-formio/grid}/GridBodyComponent.d.ts.map +0 -0
  253. package/{grid → dist/angular-formio/grid}/GridFooterComponent.d.ts +1 -1
  254. package/{grid → dist/angular-formio/grid}/GridFooterComponent.d.ts.map +0 -0
  255. package/{grid → dist/angular-formio/grid}/GridHeaderComponent.d.ts +1 -1
  256. package/{grid → dist/angular-formio/grid}/GridHeaderComponent.d.ts.map +0 -0
  257. package/{grid → dist/angular-formio/grid}/form/FormGridBody.component.d.ts +1 -1
  258. package/{grid → dist/angular-formio/grid}/form/FormGridBody.component.d.ts.map +0 -0
  259. package/{grid → dist/angular-formio/grid}/form/FormGridFooter.component.d.ts +1 -1
  260. package/{grid → dist/angular-formio/grid}/form/FormGridFooter.component.d.ts.map +0 -0
  261. package/{grid → dist/angular-formio/grid}/form/FormGridHeader.component.d.ts +1 -1
  262. package/{grid → dist/angular-formio/grid}/form/FormGridHeader.component.d.ts.map +0 -0
  263. package/{grid → dist/angular-formio/grid}/form/index.d.ts +0 -0
  264. package/{grid → dist/angular-formio/grid}/form/index.d.ts.map +0 -0
  265. package/{grid → dist/angular-formio/grid}/form/time-since.pipe.d.ts +0 -0
  266. package/{grid → dist/angular-formio/grid}/form/time-since.pipe.d.ts.map +0 -0
  267. package/{grid → dist/angular-formio/grid}/formio-angular-grid.d.ts.map +0 -0
  268. package/{grid → dist/angular-formio/grid}/grid.component.d.ts +1 -1
  269. package/{grid → dist/angular-formio/grid}/grid.component.d.ts.map +0 -0
  270. package/{grid → dist/angular-formio/grid}/grid.module.d.ts +0 -0
  271. package/{grid → dist/angular-formio/grid}/grid.module.d.ts.map +0 -0
  272. package/{grid → dist/angular-formio/grid}/grid.service.d.ts +0 -0
  273. package/{grid → dist/angular-formio/grid}/grid.service.d.ts.map +0 -0
  274. package/{grid → dist/angular-formio/grid}/index.d.ts +0 -0
  275. package/{grid → dist/angular-formio/grid}/index.d.ts.map +0 -0
  276. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridBody.component.d.ts +1 -1
  277. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridBody.component.d.ts.map +0 -0
  278. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridFooter.component.d.ts +1 -1
  279. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridFooter.component.d.ts.map +0 -0
  280. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridHeader.component.d.ts +1 -1
  281. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridHeader.component.d.ts.map +0 -0
  282. package/{grid → dist/angular-formio/grid}/submission/index.d.ts +0 -0
  283. package/{grid → dist/angular-formio/grid}/submission/index.d.ts.map +0 -0
  284. package/{grid → dist/angular-formio/grid}/types/grid-column.d.ts +0 -0
  285. package/{grid → dist/angular-formio/grid}/types/grid-column.d.ts.map +0 -0
  286. package/{grid → dist/angular-formio/grid}/types/grid-footer-positions.d.ts +0 -0
  287. package/{grid → dist/angular-formio/grid}/types/grid-footer-positions.d.ts.map +0 -0
  288. package/{grid → dist/angular-formio/grid}/types/grid-header.d.ts +0 -0
  289. package/{grid → dist/angular-formio/grid}/types/grid-header.d.ts.map +0 -0
  290. package/{index.d.ts → dist/angular-formio/index.d.ts} +0 -0
  291. package/{index.d.ts.map → dist/angular-formio/index.d.ts.map} +0 -0
  292. package/{manager → dist/angular-formio/manager}/create/create.component.d.ts +1 -1
  293. package/{manager → dist/angular-formio/manager}/create/create.component.d.ts.map +0 -0
  294. package/{manager → dist/angular-formio/manager}/delete/delete.component.d.ts +1 -1
  295. package/{manager → dist/angular-formio/manager}/delete/delete.component.d.ts.map +0 -0
  296. package/{manager → dist/angular-formio/manager}/edit/edit.component.d.ts +1 -1
  297. package/{manager → dist/angular-formio/manager}/edit/edit.component.d.ts.map +0 -0
  298. package/{manager → dist/angular-formio/manager}/form/form.component.d.ts +1 -1
  299. package/{manager → dist/angular-formio/manager}/form/form.component.d.ts.map +0 -0
  300. package/{manager → dist/angular-formio/manager}/form-manager.config.d.ts +0 -0
  301. package/{manager → dist/angular-formio/manager}/form-manager.config.d.ts.map +0 -0
  302. package/{manager → dist/angular-formio/manager}/form-manager.module.d.ts +0 -0
  303. package/{manager → dist/angular-formio/manager}/form-manager.module.d.ts.map +0 -0
  304. package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts +0 -0
  305. package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts.map +0 -0
  306. package/{manager → dist/angular-formio/manager}/form-manager.service.d.ts +0 -0
  307. package/{manager → dist/angular-formio/manager}/form-manager.service.d.ts.map +0 -0
  308. package/{manager → dist/angular-formio/manager}/formio-angular-manager.d.ts.map +0 -0
  309. package/{manager → dist/angular-formio/manager}/index/index.component.d.ts +1 -1
  310. package/{manager → dist/angular-formio/manager}/index/index.component.d.ts.map +0 -0
  311. package/{manager → dist/angular-formio/manager}/index.d.ts +0 -0
  312. package/{manager → dist/angular-formio/manager}/index.d.ts.map +0 -0
  313. package/{manager → dist/angular-formio/manager}/submission/delete/delete.component.d.ts +1 -1
  314. package/{manager → dist/angular-formio/manager}/submission/delete/delete.component.d.ts.map +0 -0
  315. package/{manager → dist/angular-formio/manager}/submission/edit/edit.component.d.ts +1 -1
  316. package/{manager → dist/angular-formio/manager}/submission/edit/edit.component.d.ts.map +0 -0
  317. package/{manager → dist/angular-formio/manager}/submission/index/index.component.d.ts +1 -1
  318. package/{manager → dist/angular-formio/manager}/submission/index/index.component.d.ts.map +0 -0
  319. package/{manager → dist/angular-formio/manager}/submission/submission/submission.component.d.ts +1 -1
  320. package/{manager → dist/angular-formio/manager}/submission/submission/submission.component.d.ts.map +0 -0
  321. package/{manager → dist/angular-formio/manager}/submission/view/view.component.d.ts +1 -1
  322. package/{manager → dist/angular-formio/manager}/submission/view/view.component.d.ts.map +0 -0
  323. package/{manager → dist/angular-formio/manager}/view/view.component.d.ts +1 -1
  324. package/{manager → dist/angular-formio/manager}/view/view.component.d.ts.map +0 -0
  325. package/dist/angular-formio/package.json +94 -0
  326. package/{resource → dist/angular-formio/resource}/create/create.component.d.ts +1 -1
  327. package/{resource → dist/angular-formio/resource}/create/create.component.d.ts.map +0 -0
  328. package/{resource → dist/angular-formio/resource}/delete/delete.component.d.ts +1 -1
  329. package/{resource → dist/angular-formio/resource}/delete/delete.component.d.ts.map +0 -0
  330. package/{resource → dist/angular-formio/resource}/edit/edit.component.d.ts +1 -1
  331. package/{resource → dist/angular-formio/resource}/edit/edit.component.d.ts.map +0 -0
  332. package/{resource → dist/angular-formio/resource}/formio-angular-resource.d.ts.map +0 -0
  333. package/{resource → dist/angular-formio/resource}/index/index.component.d.ts +1 -1
  334. package/{resource → dist/angular-formio/resource}/index/index.component.d.ts.map +0 -0
  335. package/{resource → dist/angular-formio/resource}/index.d.ts +0 -0
  336. package/{resource → dist/angular-formio/resource}/index.d.ts.map +0 -0
  337. package/{resource → dist/angular-formio/resource}/resource.component.d.ts +1 -1
  338. package/{resource → dist/angular-formio/resource}/resource.component.d.ts.map +0 -0
  339. package/{resource → dist/angular-formio/resource}/resource.config.d.ts +0 -0
  340. package/{resource → dist/angular-formio/resource}/resource.config.d.ts.map +0 -0
  341. package/{resource → dist/angular-formio/resource}/resource.module.d.ts +0 -0
  342. package/{resource → dist/angular-formio/resource}/resource.module.d.ts.map +0 -0
  343. package/{resource → dist/angular-formio/resource}/resource.routes.d.ts +0 -0
  344. package/{resource → dist/angular-formio/resource}/resource.routes.d.ts.map +0 -0
  345. package/{resource → dist/angular-formio/resource}/resource.service.d.ts +0 -0
  346. package/{resource → dist/angular-formio/resource}/resource.service.d.ts.map +0 -0
  347. package/{resource → dist/angular-formio/resource}/resources.service.d.ts +0 -0
  348. package/{resource → dist/angular-formio/resource}/resources.service.d.ts.map +0 -0
  349. package/{resource → dist/angular-formio/resource}/view/view.component.d.ts +1 -1
  350. package/{resource → dist/angular-formio/resource}/view/view.component.d.ts.map +0 -0
  351. package/{types → dist/angular-formio/types}/alerts-position.d.ts +0 -0
  352. package/{types → dist/angular-formio/types}/alerts-position.d.ts.map +0 -0
  353. package/{types → dist/angular-formio/types}/formio-metadata.d.ts +0 -0
  354. package/{types → dist/angular-formio/types}/formio-metadata.d.ts.map +0 -0
  355. package/{types → dist/angular-formio/types}/formio-submission.d.ts +0 -0
  356. package/{types → dist/angular-formio/types}/formio-submission.d.ts.map +0 -0
  357. package/package.json +56 -72
  358. package/projects/angular-formio/README.md +24 -0
  359. package/projects/angular-formio/auth/ng-package.json +5 -0
  360. package/projects/angular-formio/auth/src/auth.component.html +12 -0
  361. package/projects/angular-formio/auth/src/auth.component.ts +5 -0
  362. package/projects/angular-formio/auth/src/auth.config.ts +72 -0
  363. package/projects/angular-formio/auth/src/auth.module.ts +33 -0
  364. package/projects/angular-formio/auth/src/auth.routes.ts +34 -0
  365. package/projects/angular-formio/auth/src/auth.service.ts +209 -0
  366. package/projects/angular-formio/auth/src/index.ts +8 -0
  367. package/projects/angular-formio/auth/src/login/login.component.html +1 -0
  368. package/projects/angular-formio/auth/src/login/login.component.ts +8 -0
  369. package/projects/angular-formio/auth/src/public_api.ts +5 -0
  370. package/projects/angular-formio/auth/src/register/register.component.html +1 -0
  371. package/projects/angular-formio/auth/src/register/register.component.ts +8 -0
  372. package/projects/angular-formio/auth/src/resetpass/resetpass.component.html +1 -0
  373. package/projects/angular-formio/auth/src/resetpass/resetpass.component.ts +8 -0
  374. package/projects/angular-formio/grid/ng-package.json +5 -0
  375. package/projects/angular-formio/grid/src/GridBodyComponent.ts +80 -0
  376. package/projects/angular-formio/grid/src/GridFooterComponent.ts +25 -0
  377. package/projects/angular-formio/grid/src/GridHeaderComponent.ts +25 -0
  378. package/projects/angular-formio/grid/src/form/FormGridBody.component.html +23 -0
  379. package/projects/angular-formio/grid/src/form/FormGridBody.component.scss +4 -0
  380. package/projects/angular-formio/grid/src/form/FormGridBody.component.ts +15 -0
  381. package/projects/angular-formio/grid/src/form/FormGridFooter.component.html +21 -0
  382. package/projects/angular-formio/grid/src/form/FormGridFooter.component.ts +23 -0
  383. package/projects/angular-formio/grid/src/form/FormGridHeader.component.html +18 -0
  384. package/projects/angular-formio/grid/src/form/FormGridHeader.component.ts +24 -0
  385. package/projects/angular-formio/grid/src/form/index.ts +8 -0
  386. package/projects/angular-formio/grid/src/form/time-since.pipe.ts +31 -0
  387. package/projects/angular-formio/grid/src/grid.component.html +18 -0
  388. package/projects/angular-formio/grid/src/grid.component.scss +9 -0
  389. package/projects/angular-formio/grid/src/grid.component.ts +242 -0
  390. package/projects/angular-formio/grid/src/grid.footer.scss +14 -0
  391. package/projects/angular-formio/grid/src/grid.module.ts +49 -0
  392. package/projects/angular-formio/grid/src/grid.service.ts +16 -0
  393. package/projects/angular-formio/grid/src/index.ts +12 -0
  394. package/projects/angular-formio/grid/src/public_api.ts +5 -0
  395. package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.html +7 -0
  396. package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.ts +39 -0
  397. package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.html +18 -0
  398. package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.ts +20 -0
  399. package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.html +11 -0
  400. package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.ts +72 -0
  401. package/projects/angular-formio/grid/src/submission/index.ts +8 -0
  402. package/projects/angular-formio/grid/src/types/grid-column.ts +7 -0
  403. package/projects/angular-formio/grid/src/types/grid-footer-positions.ts +5 -0
  404. package/projects/angular-formio/grid/src/types/grid-header.ts +14 -0
  405. package/projects/angular-formio/karma.conf.js +32 -0
  406. package/projects/angular-formio/manager/ng-package.json +5 -0
  407. package/projects/angular-formio/manager/src/create/create.component.ts +11 -0
  408. package/projects/angular-formio/manager/src/delete/delete.component.html +6 -0
  409. package/projects/angular-formio/manager/src/delete/delete.component.ts +37 -0
  410. package/projects/angular-formio/manager/src/edit/edit.component.html +19 -0
  411. package/projects/angular-formio/manager/src/edit/edit.component.ts +107 -0
  412. package/projects/angular-formio/manager/src/form/form.component.html +32 -0
  413. package/projects/angular-formio/manager/src/form/form.component.ts +73 -0
  414. package/projects/angular-formio/manager/src/form-manager.config.ts +26 -0
  415. package/projects/angular-formio/manager/src/form-manager.module.ts +54 -0
  416. package/projects/angular-formio/manager/src/form-manager.routes.ts +75 -0
  417. package/projects/angular-formio/manager/src/form-manager.service.ts +195 -0
  418. package/projects/angular-formio/manager/src/index/index.component.html +14 -0
  419. package/projects/angular-formio/manager/src/index/index.component.scss +22 -0
  420. package/projects/angular-formio/manager/src/index/index.component.ts +84 -0
  421. package/projects/angular-formio/manager/src/index.ts +16 -0
  422. package/projects/angular-formio/manager/src/public_api.ts +5 -0
  423. package/projects/angular-formio/manager/src/submission/delete/delete.component.html +6 -0
  424. package/projects/angular-formio/manager/src/submission/delete/delete.component.ts +26 -0
  425. package/projects/angular-formio/manager/src/submission/edit/edit.component.html +7 -0
  426. package/projects/angular-formio/manager/src/submission/edit/edit.component.ts +18 -0
  427. package/projects/angular-formio/manager/src/submission/index/index.component.html +1 -0
  428. package/projects/angular-formio/manager/src/submission/index/index.component.ts +18 -0
  429. package/projects/angular-formio/manager/src/submission/submission/submission.component.html +8 -0
  430. package/projects/angular-formio/manager/src/submission/submission/submission.component.ts +24 -0
  431. package/projects/angular-formio/manager/src/submission/view/view.component.html +7 -0
  432. package/projects/angular-formio/manager/src/submission/view/view.component.ts +9 -0
  433. package/projects/angular-formio/manager/src/view/view.component.html +10 -0
  434. package/projects/angular-formio/manager/src/view/view.component.ts +41 -0
  435. package/projects/angular-formio/ng-package.json +7 -0
  436. package/projects/angular-formio/package.json +39 -0
  437. package/projects/angular-formio/resource/ng-package.json +5 -0
  438. package/projects/angular-formio/resource/src/create/create.component.html +13 -0
  439. package/projects/angular-formio/resource/src/create/create.component.scss +3 -0
  440. package/projects/angular-formio/resource/src/create/create.component.ts +37 -0
  441. package/projects/angular-formio/resource/src/delete/delete.component.html +5 -0
  442. package/projects/angular-formio/resource/src/delete/delete.component.ts +24 -0
  443. package/projects/angular-formio/resource/src/edit/edit.component.html +6 -0
  444. package/projects/angular-formio/resource/src/edit/edit.component.ts +33 -0
  445. package/projects/angular-formio/resource/src/index/index.component.html +10 -0
  446. package/projects/angular-formio/resource/src/index/index.component.ts +66 -0
  447. package/projects/angular-formio/resource/src/index.js +24 -0
  448. package/projects/angular-formio/resource/src/index.ts +11 -0
  449. package/projects/angular-formio/resource/src/public_api.ts +5 -0
  450. package/projects/angular-formio/resource/src/resource.component.html +7 -0
  451. package/projects/angular-formio/resource/src/resource.component.ts +48 -0
  452. package/projects/angular-formio/resource/src/resource.config.ts +17 -0
  453. package/projects/angular-formio/resource/src/resource.module.ts +43 -0
  454. package/projects/angular-formio/resource/src/resource.routes.ts +43 -0
  455. package/projects/angular-formio/resource/src/resource.service.ts +232 -0
  456. package/projects/angular-formio/resource/src/resources.service.ts +24 -0
  457. package/projects/angular-formio/resource/src/view/view.component.html +6 -0
  458. package/projects/angular-formio/resource/src/view/view.component.ts +19 -0
  459. package/projects/angular-formio/src/FormioBaseComponent.ts +525 -0
  460. package/projects/angular-formio/src/components/alerts/formio.alerts.component.html +3 -0
  461. package/projects/angular-formio/src/components/alerts/formio.alerts.component.ts +19 -0
  462. package/projects/angular-formio/src/components/alerts/formio.alerts.ts +21 -0
  463. package/projects/angular-formio/src/components/alerts/parse-html-content.pipe.ts +15 -0
  464. package/projects/angular-formio/src/components/formbuilder/formbuilder.component.html +1 -0
  465. package/projects/angular-formio/src/components/formbuilder/formbuilder.component.ts +213 -0
  466. package/projects/angular-formio/src/components/formio/formio.component.html +8 -0
  467. package/projects/angular-formio/src/components/formio/formio.component.ts +33 -0
  468. package/projects/angular-formio/src/components/loader/formio.loader.component.html +3 -0
  469. package/projects/angular-formio/src/components/loader/formio.loader.component.scss +26 -0
  470. package/projects/angular-formio/src/components/loader/formio.loader.component.ts +10 -0
  471. package/projects/angular-formio/src/core.ts +21 -0
  472. package/projects/angular-formio/src/custom-component/create-custom-component.ts +173 -0
  473. package/projects/angular-formio/src/custom-component/custom-tags.service.ts +10 -0
  474. package/projects/angular-formio/src/custom-component/register-custom-component.ts +41 -0
  475. package/projects/angular-formio/src/elements.common.ts +31 -0
  476. package/projects/angular-formio/src/formio-promise.service.ts +36 -0
  477. package/projects/angular-formio/src/formio.common.ts +81 -0
  478. package/projects/angular-formio/src/formio.config.ts +9 -0
  479. package/projects/angular-formio/src/formio.module.ts +35 -0
  480. package/projects/angular-formio/src/formio.service.ts +57 -0
  481. package/projects/angular-formio/src/formio.utils.ts +23 -0
  482. package/projects/angular-formio/src/index.ts +6 -0
  483. package/projects/angular-formio/src/public-api.ts +5 -0
  484. package/projects/angular-formio/src/test.ts +28 -0
  485. package/projects/angular-formio/src/types/alerts-position.ts +6 -0
  486. package/projects/angular-formio/src/types/formio-metadata.ts +10 -0
  487. package/projects/angular-formio/src/types/formio-submission.ts +20 -0
  488. package/projects/angular-formio/tsconfig.lib.json +27 -0
  489. package/projects/angular-formio/tsconfig.lib.prod.json +8 -0
  490. package/projects/angular-formio/tsconfig.spec.json +17 -0
  491. package/projects/angular-formio/tslint.json +17 -0
  492. package/tsconfig.json +28 -0
  493. package/tslint.json +140 -0
  494. package/esm2020/FormioBaseComponent.mjs +0 -527
  495. package/esm2020/auth/auth.component.mjs +0 -12
  496. package/esm2020/auth/auth.config.mjs +0 -15
  497. package/esm2020/auth/auth.module.mjs +0 -46
  498. package/esm2020/auth/login/login.component.mjs +0 -16
  499. package/esm2020/auth/register/register.component.mjs +0 -16
  500. package/esm2020/auth/resetpass/resetpass.component.mjs +0 -16
  501. package/esm2020/components/alerts/formio.alerts.component.mjs +0 -29
  502. package/esm2020/components/alerts/parse-html-content.pipe.mjs +0 -19
  503. package/esm2020/components/formbuilder/formbuilder.component.mjs +0 -187
  504. package/esm2020/components/formio/formio.component.mjs +0 -40
  505. package/esm2020/components/loader/formio.loader.component.mjs +0 -14
  506. package/esm2020/custom-component/custom-tags.service.mjs +0 -16
  507. package/esm2020/formio.config.mjs +0 -14
  508. package/esm2020/formio.module.mjs +0 -54
  509. package/esm2020/grid/GridBodyComponent.mjs +0 -81
  510. package/esm2020/grid/GridFooterComponent.mjs +0 -36
  511. package/esm2020/grid/GridHeaderComponent.mjs +0 -30
  512. package/esm2020/grid/form/FormGridBody.component.mjs +0 -19
  513. package/esm2020/grid/form/FormGridFooter.component.mjs +0 -26
  514. package/esm2020/grid/form/FormGridHeader.component.mjs +0 -26
  515. package/esm2020/grid/grid.component.mjs +0 -230
  516. package/esm2020/grid/grid.module.mjs +0 -79
  517. package/esm2020/grid/grid.service.mjs +0 -17
  518. package/esm2020/grid/submission/SubmissionGridBody.component.mjs +0 -43
  519. package/esm2020/grid/submission/SubmissionGridFooter.component.mjs +0 -23
  520. package/esm2020/grid/submission/SubmissionGridHeader.component.mjs +0 -61
  521. package/esm2020/manager/create/create.component.mjs +0 -18
  522. package/esm2020/manager/delete/delete.component.mjs +0 -37
  523. package/esm2020/manager/edit/edit.component.mjs +0 -109
  524. package/esm2020/manager/form/form.component.mjs +0 -70
  525. package/esm2020/manager/form-manager.config.mjs +0 -15
  526. package/esm2020/manager/form-manager.module.mjs +0 -83
  527. package/esm2020/manager/index/index.component.mjs +0 -84
  528. package/esm2020/manager/submission/delete/delete.component.mjs +0 -28
  529. package/esm2020/manager/submission/edit/edit.component.mjs +0 -22
  530. package/esm2020/manager/submission/index/index.component.mjs +0 -22
  531. package/esm2020/manager/submission/submission/submission.component.mjs +0 -26
  532. package/esm2020/manager/submission/view/view.component.mjs +0 -16
  533. package/esm2020/manager/view/view.component.mjs +0 -42
  534. package/esm2020/resource/create/create.component.mjs +0 -37
  535. package/esm2020/resource/delete/delete.component.mjs +0 -26
  536. package/esm2020/resource/edit/edit.component.mjs +0 -36
  537. package/esm2020/resource/index/index.component.mjs +0 -61
  538. package/esm2020/resource/resource.component.mjs +0 -46
  539. package/esm2020/resource/resource.config.mjs +0 -15
  540. package/esm2020/resource/resource.module.mjs +0 -62
  541. package/esm2020/resource/resources.service.mjs +0 -22
  542. package/esm2020/resource/view/view.component.mjs +0 -23
  543. package/fesm2015/formio-angular-auth.mjs +0 -290
  544. package/fesm2015/formio-angular-auth.mjs.map +0 -1
  545. package/fesm2015/formio-angular-grid.mjs +0 -677
  546. package/fesm2015/formio-angular-grid.mjs.map +0 -1
  547. package/fesm2015/formio-angular-manager.mjs +0 -733
  548. package/fesm2015/formio-angular-manager.mjs.map +0 -1
  549. package/fesm2015/formio-angular-resource.mjs.map +0 -1
  550. package/fesm2015/formio-angular.mjs.map +0 -1
  551. package/fesm2020/formio-angular-auth.mjs.map +0 -1
  552. package/fesm2020/formio-angular-grid.mjs +0 -676
  553. package/fesm2020/formio-angular-grid.mjs.map +0 -1
  554. package/fesm2020/formio-angular-manager.mjs +0 -733
  555. package/fesm2020/formio-angular-manager.mjs.map +0 -1
  556. package/fesm2020/formio-angular-resource.mjs +0 -503
  557. package/fesm2020/formio-angular-resource.mjs.map +0 -1
  558. package/fesm2020/formio-angular.mjs +0 -1169
  559. package/fesm2020/formio-angular.mjs.map +0 -1
@@ -0,0 +1,1066 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Component, ViewChild, EventEmitter, NgModule } from '@angular/core';
3
+ import { Formio } from 'formiojs';
4
+ import _intersection from 'lodash/intersection';
5
+ import * as i3 from '@formio/angular';
6
+ import { FormBuilderComponent, extendRouter, FormioModule } from '@formio/angular';
7
+ import * as i3$1 from '@formio/angular/auth';
8
+ import * as i4 from '@formio/angular/grid';
9
+ import { FormioGridComponent, FormioGrid } from '@formio/angular/grid';
10
+ import _, { debounce } from 'lodash';
11
+ import * as i2 from '@angular/router';
12
+ import { RouterModule } from '@angular/router';
13
+ import * as i6 from '@angular/common';
14
+ import { CommonModule } from '@angular/common';
15
+ import * as i5 from '@angular/forms';
16
+ import { FormsModule } from '@angular/forms';
17
+ import * as i5$1 from 'ngx-bootstrap/modal';
18
+ import { ModalModule } from 'ngx-bootstrap/modal';
19
+ import * as i2$1 from 'ngx-bootstrap/pagination';
20
+ import { PaginationModule } from 'ngx-bootstrap/pagination';
21
+
22
+ class FormManagerConfig {
23
+ constructor() {
24
+ this.tag = '';
25
+ this.includeSearch = false;
26
+ this.saveDraft = false;
27
+ }
28
+ }
29
+ FormManagerConfig.ɵfac = function FormManagerConfig_Factory(t) { return new (t || FormManagerConfig)(); };
30
+ FormManagerConfig.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FormManagerConfig, factory: FormManagerConfig.ɵfac });
31
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormManagerConfig, [{
32
+ type: Injectable
33
+ }], null, null); })();
34
+
35
+ class FormManagerService {
36
+ constructor(appConfig, config, auth) {
37
+ this.appConfig = appConfig;
38
+ this.config = config;
39
+ this.auth = auth;
40
+ this.form = null;
41
+ this.formSrc = '';
42
+ this.perms = { delete: false, edit: false };
43
+ if (this.appConfig && this.appConfig.appUrl) {
44
+ Formio.setBaseUrl(this.appConfig.apiUrl);
45
+ Formio.setProjectUrl(this.appConfig.appUrl);
46
+ }
47
+ else {
48
+ console.error('You must provide an AppConfig within your application!');
49
+ }
50
+ this.allAccessMap = {
51
+ 'update_all': 'formEdit',
52
+ 'delete_all': 'formDelete'
53
+ };
54
+ this.ownAccessMap = {
55
+ 'update_own': 'formEdit',
56
+ 'delete_own': 'formDelete'
57
+ };
58
+ this.actionAllowed = (action) => this.isActionAllowed(action);
59
+ this.reset();
60
+ }
61
+ isActionAllowed(action) {
62
+ return this.access[action];
63
+ }
64
+ setAccess() {
65
+ this.access = {
66
+ formCreate: true,
67
+ formView: true,
68
+ formSubmission: true,
69
+ formEdit: true,
70
+ formPermission: true,
71
+ formDelete: true,
72
+ projectSettings: true,
73
+ userManagement: true
74
+ };
75
+ if (this.auth) {
76
+ this.access = {
77
+ formCreate: false,
78
+ formView: false,
79
+ formSubmission: false,
80
+ formEdit: false,
81
+ formPermission: false,
82
+ formDelete: false,
83
+ projectSettings: false,
84
+ userManagement: false
85
+ };
86
+ this.ready = this.auth.ready.then(() => {
87
+ let administrator = this.auth.roles["administrator"];
88
+ let formbuilder = this.auth.roles["formbuilder"];
89
+ let formadmin = this.auth.roles["formadmin"];
90
+ if (this.auth.user && this.auth.user.roles) {
91
+ this.auth.user.roles.forEach((roleId) => {
92
+ if (administrator._id === roleId) {
93
+ this.access.formCreate = true;
94
+ this.access.formView = true;
95
+ this.access.formSubmission = true;
96
+ this.access.formEdit = true;
97
+ this.access.formPermission = true;
98
+ this.access.formDelete = true;
99
+ this.access.projectSettings = true;
100
+ this.access.userManagement = true;
101
+ }
102
+ else {
103
+ if (formadmin._id === roleId) {
104
+ this.access.formCreate = this.auth.formAccess.create_all.includes(roleId);
105
+ this.access.formEdit = this.auth.formAccess.update_all.includes(roleId);
106
+ this.access.formPermission = this.auth.formAccess.update_all.includes(roleId);
107
+ this.access.formDelete = this.auth.formAccess.delete_all.includes(roleId);
108
+ this.access.formView = this.auth.formAccess.read_all.includes(roleId);
109
+ this.access.formSubmission = this.auth.formAccess.read_all.includes(roleId);
110
+ }
111
+ if (formbuilder._id === roleId) {
112
+ this.access.formCreate = this.auth.formAccess.create_all.includes(roleId);
113
+ this.access.formEdit = this.auth.formAccess.update_all.includes(roleId);
114
+ this.access.formPermission = this.auth.formAccess.update_all.includes(roleId);
115
+ this.access.formDelete = this.auth.formAccess.delete_all.includes(roleId);
116
+ this.access.formView = this.auth.formAccess.read_all.includes(roleId);
117
+ }
118
+ }
119
+ });
120
+ }
121
+ });
122
+ }
123
+ else {
124
+ this.ready = Promise.resolve(false);
125
+ }
126
+ }
127
+ reset(route) {
128
+ if (route) {
129
+ route.params.subscribe(params => {
130
+ if (params.id) {
131
+ this.formio = new Formio(`${this.formio.formsUrl}/${params.id}`);
132
+ }
133
+ else {
134
+ this.reset();
135
+ }
136
+ });
137
+ }
138
+ else {
139
+ this.formio = new Formio(this.appConfig.appUrl);
140
+ this.setAccess();
141
+ }
142
+ }
143
+ hasAccess(roles) {
144
+ if (!this.auth.user) {
145
+ return false;
146
+ }
147
+ return !!_intersection(roles, this.auth.user.roles).length;
148
+ }
149
+ setForm(form) {
150
+ this.form = form;
151
+ this.formSrc = this.appConfig.appUrl + '/' + form.path;
152
+ if (form.access) {
153
+ // Check if they have access here.
154
+ form.access.forEach(access => {
155
+ // Check for all access.
156
+ if (this.allAccessMap[access.type] && !this.access[this.allAccessMap[access.type]]) {
157
+ this.access[this.allAccessMap[access.type]] = this.hasAccess(access.roles);
158
+ }
159
+ // Check for own access.
160
+ if (this.auth && this.auth.user &&
161
+ (form._id === this.auth.user._id) &&
162
+ this.ownAccessMap[access.type] &&
163
+ !this.access[this.ownAccessMap[access.type]]) {
164
+ this.access[this.ownAccessMap[access.type]] = this.hasAccess(access.roles);
165
+ }
166
+ });
167
+ }
168
+ return form;
169
+ }
170
+ loadForm() {
171
+ this.form = null;
172
+ this.formReady = this.formio.loadForm().then(form => this.setForm(form));
173
+ return this.formReady;
174
+ }
175
+ setSubmission(route) {
176
+ return new Promise((resolve) => {
177
+ route.params.subscribe(params => {
178
+ this.formio = new Formio(`${this.formio.submissionsUrl}/${params.id}`);
179
+ resolve(this.formio);
180
+ });
181
+ });
182
+ }
183
+ submissionLoaded(submission) {
184
+ this.auth.ready.then(() => {
185
+ this.formio.userPermissions(this.auth.user, this.form, submission).then((perms) => {
186
+ this.perms.delete = perms.delete;
187
+ this.perms.edit = perms.edit;
188
+ });
189
+ });
190
+ }
191
+ loadForms() {
192
+ return this.formio.loadForms({ params: {
193
+ tags: this.config.tag
194
+ } });
195
+ }
196
+ createForm(form) {
197
+ return this.formio.createform(form);
198
+ }
199
+ }
200
+ FormManagerService.ɵfac = function FormManagerService_Factory(t) { return new (t || FormManagerService)(i0.ɵɵinject(i3.FormioAppConfig), i0.ɵɵinject(FormManagerConfig), i0.ɵɵinject(i3$1.FormioAuthService)); };
201
+ FormManagerService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FormManagerService, factory: FormManagerService.ɵfac });
202
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormManagerService, [{
203
+ type: Injectable
204
+ }], function () { return [{ type: i3.FormioAppConfig }, { type: FormManagerConfig }, { type: i3$1.FormioAuthService }]; }, null); })();
205
+
206
+ function FormManagerIndexComponent_div_0_span_2_Template(rf, ctx) { if (rf & 1) {
207
+ const _r4 = i0.ɵɵgetCurrentView();
208
+ i0.ɵɵelementStart(0, "span", 5);
209
+ i0.ɵɵlistener("click", function FormManagerIndexComponent_div_0_span_2_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.clearSearch()); });
210
+ i0.ɵɵelement(1, "span", 6);
211
+ i0.ɵɵelementEnd();
212
+ } }
213
+ function FormManagerIndexComponent_div_0_Template(rf, ctx) { if (rf & 1) {
214
+ const _r6 = i0.ɵɵgetCurrentView();
215
+ i0.ɵɵelementStart(0, "div", 2)(1, "input", 3);
216
+ i0.ɵɵlistener("keyup", function FormManagerIndexComponent_div_0_Template_input_keyup_1_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.onSearch()); })("ngModelChange", function FormManagerIndexComponent_div_0_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.search = $event); });
217
+ i0.ɵɵelementEnd();
218
+ i0.ɵɵtemplate(2, FormManagerIndexComponent_div_0_span_2_Template, 2, 0, "span", 4);
219
+ i0.ɵɵelementEnd();
220
+ } if (rf & 2) {
221
+ const ctx_r0 = i0.ɵɵnextContext();
222
+ i0.ɵɵadvance(1);
223
+ i0.ɵɵproperty("ngModel", ctx_r0.search);
224
+ i0.ɵɵadvance(1);
225
+ i0.ɵɵproperty("ngIf", ctx_r0.search && ctx_r0.search !== "");
226
+ } }
227
+ function FormManagerIndexComponent_formio_grid_1_Template(rf, ctx) { if (rf & 1) {
228
+ const _r9 = i0.ɵɵgetCurrentView();
229
+ i0.ɵɵelementStart(0, "formio-grid", 7);
230
+ i0.ɵɵlistener("rowAction", function FormManagerIndexComponent_formio_grid_1_Template_formio_grid_rowAction_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.onAction($event)); })("rowSelect", function FormManagerIndexComponent_formio_grid_1_Template_formio_grid_rowSelect_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.onSelect($event)); })("createItem", function FormManagerIndexComponent_formio_grid_1_Template_formio_grid_createItem_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.onCreateItem()); });
231
+ i0.ɵɵelementEnd();
232
+ } if (rf & 2) {
233
+ const ctx_r1 = i0.ɵɵnextContext();
234
+ i0.ɵɵproperty("formio", ctx_r1.service.formio)("gridType", "form")("query", ctx_r1.gridQuery)("isActionAllowed", ctx_r1.service.actionAllowed);
235
+ } }
236
+ class FormManagerIndexComponent {
237
+ constructor(service, route, router, config) {
238
+ this.service = service;
239
+ this.route = route;
240
+ this.router = router;
241
+ this.config = config;
242
+ this.search = '';
243
+ this.gridQuery = { tags: this.config.tag, type: 'form', sort: 'title' };
244
+ this.onSearch = debounce(this.onSearch, 300);
245
+ }
246
+ loadGrid() {
247
+ this.search = localStorage.getItem('searchInput');
248
+ this.gridQuery = JSON.parse(localStorage.getItem('query')) || this.gridQuery;
249
+ const currentPage = +localStorage.getItem('currentPage') || 0;
250
+ this.formGrid
251
+ .refreshGrid(this.gridQuery)
252
+ .then(() => this.formGrid.setPage(currentPage - 1));
253
+ }
254
+ ngOnInit() {
255
+ this.gridQuery = { tags: this.config.tag, type: 'form', sort: 'title' };
256
+ this.service.reset();
257
+ this.service.ready.then(() => {
258
+ this.loadGrid();
259
+ this.formGrid.footer.pageChanged.subscribe(page => {
260
+ localStorage.setItem('currentPage', page.page);
261
+ });
262
+ });
263
+ }
264
+ onSearch(event) {
265
+ const searchInput = this.search;
266
+ if (searchInput.length > 0) {
267
+ this.gridQuery.skip = 0;
268
+ this.gridQuery.title__regex = '/' + searchInput + '/i';
269
+ this.gridQuery.title__regex = '/' + searchInput.trim() + '/i';
270
+ }
271
+ else {
272
+ delete this.gridQuery.title__regex;
273
+ }
274
+ localStorage.setItem('query', JSON.stringify(this.gridQuery));
275
+ localStorage.setItem('searchInput', this.search);
276
+ this.formGrid.pageChanged({ page: 1, itemPerPage: this.gridQuery.limit });
277
+ this.formGrid.refreshGrid(this.gridQuery);
278
+ }
279
+ clearSearch() {
280
+ this.gridQuery = { tags: this.config.tag, type: 'form', sort: 'title' };
281
+ localStorage.removeItem('query');
282
+ localStorage.removeItem('searchInput');
283
+ localStorage.removeItem('currentPage');
284
+ this.search = '';
285
+ this.formGrid.pageChanged({ page: 1 });
286
+ this.formGrid.query = {};
287
+ this.formGrid.refreshGrid({ tags: this.config.tag, type: 'form', sort: 'title' });
288
+ }
289
+ onAction(action) {
290
+ this.service.form = null; // Reset previous form data
291
+ this.router.navigate([action.row._id, action.action], { relativeTo: this.route });
292
+ }
293
+ onSelect(row) {
294
+ this.router.navigate([row._id], { relativeTo: this.route });
295
+ }
296
+ onCreateItem() {
297
+ this.router.navigate(['create'], { relativeTo: this.route });
298
+ }
299
+ }
300
+ FormManagerIndexComponent.ɵfac = function FormManagerIndexComponent_Factory(t) { return new (t || FormManagerIndexComponent)(i0.ɵɵdirectiveInject(FormManagerService), i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(FormManagerConfig)); };
301
+ FormManagerIndexComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormManagerIndexComponent, selectors: [["ng-component"]], viewQuery: function FormManagerIndexComponent_Query(rf, ctx) { if (rf & 1) {
302
+ i0.ɵɵviewQuery(FormioGridComponent, 5);
303
+ } if (rf & 2) {
304
+ let _t;
305
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formGrid = _t.first);
306
+ } }, decls: 2, vars: 2, consts: [["role", "search", "class", "input-group mb-3", 4, "ngIf"], [3, "formio", "gridType", "query", "isActionAllowed", "rowAction", "rowSelect", "createItem", 4, "ngIf"], ["role", "search", 1, "input-group", "mb-3"], ["type", "text", "placeholder", "Search Forms", "aria-label", "Search Forms", "aria-describedby", "button-search", 1, "form-control", 3, "ngModel", "keyup", "ngModelChange"], ["class", "form-clear input-group-addon", 3, "click", 4, "ngIf"], [1, "form-clear", "input-group-addon", 3, "click"], [1, "fa", "fa-times"], [3, "formio", "gridType", "query", "isActionAllowed", "rowAction", "rowSelect", "createItem"]], template: function FormManagerIndexComponent_Template(rf, ctx) { if (rf & 1) {
307
+ i0.ɵɵtemplate(0, FormManagerIndexComponent_div_0_Template, 3, 2, "div", 0);
308
+ i0.ɵɵtemplate(1, FormManagerIndexComponent_formio_grid_1_Template, 1, 4, "formio-grid", 1);
309
+ } if (rf & 2) {
310
+ i0.ɵɵproperty("ngIf", ctx.config.includeSearch);
311
+ i0.ɵɵadvance(1);
312
+ i0.ɵɵproperty("ngIf", ctx.service.ready);
313
+ } }, dependencies: [i6.NgIf, i5.DefaultValueAccessor, i5.NgControlStatus, i5.NgModel, i4.FormioGridComponent], styles: [".form-clear[_ngcontent-%COMP%]{background:#cecece;border-radius:50%;bottom:8px;color:#0000004d;cursor:pointer;display:flex;justify-content:center;align-items:center;padding-bottom:2px;height:24px;position:absolute;right:10px;top:6px;width:24px;z-index:10}.form-clear[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{font-size:16px;font-weight:500}"] });
314
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormManagerIndexComponent, [{
315
+ type: Component,
316
+ args: [{ template: "<div role=\"search\" class=\"input-group mb-3\" *ngIf=\"config.includeSearch\">\n <input type=\"text\" (keyup)=\"onSearch()\" class=\"form-control\" [(ngModel)]=\"search\" placeholder=\"Search Forms\" aria-label=\"Search Forms\" aria-describedby=\"button-search\">\n <span *ngIf=\"search && search !== ''\" class=\"form-clear input-group-addon\" (click)=\"clearSearch()\"><span class=\"fa fa-times\"></span></span>\n</div>\n<formio-grid\n *ngIf=\"service.ready\"\n [formio]=\"service.formio\"\n [gridType]=\"'form'\"\n [query]=\"gridQuery\"\n [isActionAllowed]=\"service.actionAllowed\"\n (rowAction)=\"onAction($event)\"\n (rowSelect)=\"onSelect($event)\"\n (createItem)=\"onCreateItem()\"\n></formio-grid>\n", styles: [".form-clear{background:#cecece;border-radius:50%;bottom:8px;color:#0000004d;cursor:pointer;display:flex;justify-content:center;align-items:center;padding-bottom:2px;height:24px;position:absolute;right:10px;top:6px;width:24px;z-index:10}.form-clear .fa{font-size:16px;font-weight:500}\n"] }]
317
+ }], function () { return [{ type: FormManagerService }, { type: i2.ActivatedRoute }, { type: i2.Router }, { type: FormManagerConfig }]; }, { formGrid: [{
318
+ type: ViewChild,
319
+ args: [FormioGridComponent, { static: false }]
320
+ }] }); })();
321
+
322
+ const _c0$1 = ["title"];
323
+ const _c1 = ["type"];
324
+ function FormManagerEditComponent_div_0_Template(rf, ctx) { if (rf & 1) {
325
+ i0.ɵɵelement(0, "div", 15);
326
+ } }
327
+ function FormManagerEditComponent_form_builder_18_Template(rf, ctx) { if (rf & 1) {
328
+ i0.ɵɵelement(0, "form-builder", 16, 17);
329
+ } if (rf & 2) {
330
+ const ctx_r3 = i0.ɵɵnextContext();
331
+ i0.ɵɵproperty("formbuilder", ctx_r3.config.builder)("form", ctx_r3.form);
332
+ } }
333
+ class FormManagerEditComponent {
334
+ constructor(service, router, route, config, ref, alerts) {
335
+ this.service = service;
336
+ this.router = router;
337
+ this.route = route;
338
+ this.config = config;
339
+ this.ref = ref;
340
+ this.alerts = alerts;
341
+ this.form = { components: [] };
342
+ this.formReady = false;
343
+ this.loading = false;
344
+ this.editMode = false;
345
+ }
346
+ initBuilder(editing) {
347
+ if (editing) {
348
+ this.loading = true;
349
+ this.editMode = true;
350
+ return this.service.formReady.then(() => {
351
+ this.form = this.service.form;
352
+ this.formTitle.nativeElement.value = this.service.form.title;
353
+ this.formType.nativeElement.value = this.service.form.display || 'form';
354
+ this.formReady = true;
355
+ this.loading = false;
356
+ this.ref.detectChanges();
357
+ return true;
358
+ }).catch(err => {
359
+ this.alerts.setAlert({ type: 'danger', message: (err.message || err) });
360
+ this.loading = false;
361
+ this.ref.detectChanges();
362
+ this.formReady = true;
363
+ });
364
+ }
365
+ else {
366
+ this.formReady = true;
367
+ return Promise.resolve(true);
368
+ }
369
+ }
370
+ ngAfterViewInit() {
371
+ this.route.url.subscribe(url => {
372
+ setTimeout(() => this.initBuilder((url[0].path === 'edit')), 0);
373
+ });
374
+ }
375
+ onDisplaySelect(event) {
376
+ this.builder.setDisplay(event.target.value);
377
+ }
378
+ saveForm() {
379
+ this.loading = true;
380
+ this.form = _.cloneDeep(this.builder.formio.schema);
381
+ this.form.title = this.formTitle.nativeElement.value.trim();
382
+ this.form.display = this.formType.nativeElement.value;
383
+ if (this.config.tag) {
384
+ this.form.tags = this.form.tags || [];
385
+ this.form.tags.push(this.config.tag);
386
+ this.form.tags = _.uniq(this.form.tags);
387
+ }
388
+ if (!this.form._id) {
389
+ this.form.name = _.camelCase(this.form.title).toLowerCase();
390
+ this.form.path = this.form.name;
391
+ }
392
+ return this.service.formio.saveForm(this.form).then(form => {
393
+ this.form = this.service.setForm(form);
394
+ this.loading = false;
395
+ return this.form;
396
+ }).catch(err => {
397
+ this.loading = false;
398
+ // Catch if a form is returned as an error. This is a conflict.
399
+ if (err._id && err.type) {
400
+ throw err;
401
+ }
402
+ this.alerts.setAlert({ type: 'danger', message: (err.message || err) });
403
+ });
404
+ }
405
+ onSave() {
406
+ return this.saveForm().then((form) => {
407
+ if (this.editMode) {
408
+ this.router.navigate(['../', 'view'], { relativeTo: this.route });
409
+ }
410
+ else {
411
+ this.router.navigate(['../', form._id, 'view'], { relativeTo: this.route });
412
+ }
413
+ });
414
+ }
415
+ }
416
+ FormManagerEditComponent.ɵfac = function FormManagerEditComponent_Factory(t) { return new (t || FormManagerEditComponent)(i0.ɵɵdirectiveInject(FormManagerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(FormManagerConfig), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i3.FormioAlerts)); };
417
+ FormManagerEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormManagerEditComponent, selectors: [["ng-component"]], viewQuery: function FormManagerEditComponent_Query(rf, ctx) { if (rf & 1) {
418
+ i0.ɵɵviewQuery(FormBuilderComponent, 5);
419
+ i0.ɵɵviewQuery(_c0$1, 5);
420
+ i0.ɵɵviewQuery(_c1, 5);
421
+ } if (rf & 2) {
422
+ let _t;
423
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.builder = _t.first);
424
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formTitle = _t.first);
425
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formType = _t.first);
426
+ } }, 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) {
427
+ i0.ɵɵtemplate(0, FormManagerEditComponent_div_0_Template, 1, 0, "div", 0);
428
+ i0.ɵɵelementStart(1, "div", 1)(2, "div", 2);
429
+ i0.ɵɵelement(3, "input", 3, 4);
430
+ i0.ɵɵelementEnd();
431
+ i0.ɵɵelementStart(5, "div", 5)(6, "select", 6, 7);
432
+ i0.ɵɵlistener("change", function FormManagerEditComponent_Template_select_change_6_listener($event) { return ctx.onDisplaySelect($event); });
433
+ i0.ɵɵelementStart(8, "option", 8);
434
+ i0.ɵɵtext(9, "Form");
435
+ i0.ɵɵelementEnd();
436
+ i0.ɵɵelementStart(10, "option", 9);
437
+ i0.ɵɵtext(11, "Wizard");
438
+ i0.ɵɵelementEnd();
439
+ i0.ɵɵelementStart(12, "option", 10);
440
+ i0.ɵɵtext(13, "PDF");
441
+ i0.ɵɵelementEnd()()();
442
+ i0.ɵɵelementStart(14, "div", 5)(15, "button", 11);
443
+ i0.ɵɵlistener("click", function FormManagerEditComponent_Template_button_click_15_listener() { return ctx.onSave(); });
444
+ i0.ɵɵtext(16, "Save Form");
445
+ i0.ɵɵelementEnd()()();
446
+ i0.ɵɵelement(17, "formio-alerts", 12);
447
+ i0.ɵɵtemplate(18, FormManagerEditComponent_form_builder_18_Template, 2, 2, "form-builder", 13);
448
+ i0.ɵɵelementStart(19, "button", 14);
449
+ i0.ɵɵlistener("click", function FormManagerEditComponent_Template_button_click_19_listener() { return ctx.onSave(); });
450
+ i0.ɵɵtext(20, "Save Form");
451
+ i0.ɵɵelementEnd();
452
+ } if (rf & 2) {
453
+ i0.ɵɵproperty("ngIf", ctx.loading);
454
+ i0.ɵɵadvance(17);
455
+ i0.ɵɵproperty("alerts", ctx.alerts);
456
+ i0.ɵɵadvance(1);
457
+ i0.ɵɵproperty("ngIf", ctx.formReady);
458
+ } }, dependencies: [i6.NgIf, i3.FormBuilderComponent, i3.FormioAlertsComponent, i5.NgSelectOption, i5.ɵNgSelectMultipleOption], encapsulation: 2 });
459
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormManagerEditComponent, [{
460
+ type: Component,
461
+ 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" }]
462
+ }], function () { return [{ type: FormManagerService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: FormManagerConfig }, { type: i0.ChangeDetectorRef }, { type: i3.FormioAlerts }]; }, { builder: [{
463
+ type: ViewChild,
464
+ args: [FormBuilderComponent, { static: false }]
465
+ }], formTitle: [{
466
+ type: ViewChild,
467
+ args: ['title', { static: false }]
468
+ }], formType: [{
469
+ type: ViewChild,
470
+ args: ['type', { static: false }]
471
+ }] }); })();
472
+
473
+ function FormManagerCreateComponent_div_0_Template(rf, ctx) { if (rf & 1) {
474
+ i0.ɵɵelement(0, "div", 15);
475
+ } }
476
+ function FormManagerCreateComponent_form_builder_18_Template(rf, ctx) { if (rf & 1) {
477
+ i0.ɵɵelement(0, "form-builder", 16, 17);
478
+ } if (rf & 2) {
479
+ const ctx_r3 = i0.ɵɵnextContext();
480
+ i0.ɵɵproperty("formbuilder", ctx_r3.config.builder)("form", ctx_r3.form);
481
+ } }
482
+ class FormManagerCreateComponent extends FormManagerEditComponent {
483
+ ngOnInit() {
484
+ this.service.reset();
485
+ }
486
+ }
487
+ FormManagerCreateComponent.ɵfac = /*@__PURE__*/ function () { let ɵFormManagerCreateComponent_BaseFactory; return function FormManagerCreateComponent_Factory(t) { return (ɵFormManagerCreateComponent_BaseFactory || (ɵFormManagerCreateComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FormManagerCreateComponent)))(t || FormManagerCreateComponent); }; }();
488
+ 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) {
489
+ i0.ɵɵtemplate(0, FormManagerCreateComponent_div_0_Template, 1, 0, "div", 0);
490
+ i0.ɵɵelementStart(1, "div", 1)(2, "div", 2);
491
+ i0.ɵɵelement(3, "input", 3, 4);
492
+ i0.ɵɵelementEnd();
493
+ i0.ɵɵelementStart(5, "div", 5)(6, "select", 6, 7);
494
+ i0.ɵɵlistener("change", function FormManagerCreateComponent_Template_select_change_6_listener($event) { return ctx.onDisplaySelect($event); });
495
+ i0.ɵɵelementStart(8, "option", 8);
496
+ i0.ɵɵtext(9, "Form");
497
+ i0.ɵɵelementEnd();
498
+ i0.ɵɵelementStart(10, "option", 9);
499
+ i0.ɵɵtext(11, "Wizard");
500
+ i0.ɵɵelementEnd();
501
+ i0.ɵɵelementStart(12, "option", 10);
502
+ i0.ɵɵtext(13, "PDF");
503
+ i0.ɵɵelementEnd()()();
504
+ i0.ɵɵelementStart(14, "div", 5)(15, "button", 11);
505
+ i0.ɵɵlistener("click", function FormManagerCreateComponent_Template_button_click_15_listener() { return ctx.onSave(); });
506
+ i0.ɵɵtext(16, "Save Form");
507
+ i0.ɵɵelementEnd()()();
508
+ i0.ɵɵelement(17, "formio-alerts", 12);
509
+ i0.ɵɵtemplate(18, FormManagerCreateComponent_form_builder_18_Template, 2, 2, "form-builder", 13);
510
+ i0.ɵɵelementStart(19, "button", 14);
511
+ i0.ɵɵlistener("click", function FormManagerCreateComponent_Template_button_click_19_listener() { return ctx.onSave(); });
512
+ i0.ɵɵtext(20, "Save Form");
513
+ i0.ɵɵelementEnd();
514
+ } if (rf & 2) {
515
+ i0.ɵɵproperty("ngIf", ctx.loading);
516
+ i0.ɵɵadvance(17);
517
+ i0.ɵɵproperty("alerts", ctx.alerts);
518
+ i0.ɵɵadvance(1);
519
+ i0.ɵɵproperty("ngIf", ctx.formReady);
520
+ } }, dependencies: [i6.NgIf, i3.FormBuilderComponent, i3.FormioAlertsComponent, i5.NgSelectOption, i5.ɵNgSelectMultipleOption], encapsulation: 2 });
521
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormManagerCreateComponent, [{
522
+ type: Component,
523
+ 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" }]
524
+ }], null, null); })();
525
+
526
+ function FormManagerFormComponent_button_0_Template(rf, ctx) { if (rf & 1) {
527
+ const _r6 = i0.ɵɵgetCurrentView();
528
+ i0.ɵɵelementStart(0, "button", 12);
529
+ i0.ɵɵlistener("click", function FormManagerFormComponent_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); const _r3 = i0.ɵɵreference(17); return i0.ɵɵresetView(ctx_r5.openEmbed(_r3)); });
530
+ i0.ɵɵelement(1, "em", 13);
531
+ i0.ɵɵtext(2, " Share");
532
+ i0.ɵɵelementEnd();
533
+ } }
534
+ function FormManagerFormComponent_li_13_Template(rf, ctx) { if (rf & 1) {
535
+ i0.ɵɵelementStart(0, "li", 5)(1, "a", 14);
536
+ i0.ɵɵelement(2, "em", 15);
537
+ i0.ɵɵtext(3, " Edit Form");
538
+ i0.ɵɵelementEnd()();
539
+ } }
540
+ function FormManagerFormComponent_li_14_Template(rf, ctx) { if (rf & 1) {
541
+ i0.ɵɵelementStart(0, "li", 5)(1, "a", 16);
542
+ i0.ɵɵelement(2, "span", 17);
543
+ i0.ɵɵelementEnd()();
544
+ } }
545
+ function FormManagerFormComponent_ng_template_16_pre_16_Template(rf, ctx) { if (rf & 1) {
546
+ i0.ɵɵelementStart(0, "pre");
547
+ i0.ɵɵelement(1, "textarea", 31);
548
+ i0.ɵɵelementEnd();
549
+ } if (rf & 2) {
550
+ const ctx_r7 = i0.ɵɵnextContext(2);
551
+ i0.ɵɵadvance(1);
552
+ i0.ɵɵproperty("ngModel", ctx_r7.embedCode);
553
+ } }
554
+ function FormManagerFormComponent_ng_template_16_input_17_Template(rf, ctx) { if (rf & 1) {
555
+ i0.ɵɵelement(0, "input", 32);
556
+ } if (rf & 2) {
557
+ const ctx_r8 = i0.ɵɵnextContext(2);
558
+ i0.ɵɵproperty("ngModel", ctx_r8.shareUrl);
559
+ } }
560
+ const _c0 = function (a0) { return { "active": a0 }; };
561
+ function FormManagerFormComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
562
+ const _r10 = i0.ɵɵgetCurrentView();
563
+ i0.ɵɵelementStart(0, "div", 18)(1, "h4", 19);
564
+ i0.ɵɵtext(2, "Share or Embed this form");
565
+ i0.ɵɵelementEnd();
566
+ i0.ɵɵelementStart(3, "button", 20);
567
+ i0.ɵɵlistener("click", function FormManagerFormComponent_ng_template_16_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.modalRef.hide()); });
568
+ i0.ɵɵelementStart(4, "span", 21);
569
+ i0.ɵɵtext(5, "\u00D7");
570
+ i0.ɵɵelementEnd()()();
571
+ i0.ɵɵelementStart(6, "div", 22)(7, "ul", 23)(8, "li", 2)(9, "a", 24);
572
+ i0.ɵɵlistener("click", function FormManagerFormComponent_ng_template_16_Template_a_click_9_listener() { i0.ɵɵrestoreView(_r10); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.choices("isUrl")); });
573
+ i0.ɵɵelement(10, "em", 25);
574
+ i0.ɵɵtext(11, " URL");
575
+ i0.ɵɵelementEnd()();
576
+ i0.ɵɵelementStart(12, "li", 2)(13, "a", 24);
577
+ i0.ɵɵlistener("click", function FormManagerFormComponent_ng_template_16_Template_a_click_13_listener() { i0.ɵɵrestoreView(_r10); const ctx_r12 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r12.choices("isEmbed")); });
578
+ i0.ɵɵelement(14, "em", 26);
579
+ i0.ɵɵtext(15, " Embed");
580
+ i0.ɵɵelementEnd()()();
581
+ i0.ɵɵtemplate(16, FormManagerFormComponent_ng_template_16_pre_16_Template, 2, 1, "pre", 27);
582
+ i0.ɵɵtemplate(17, FormManagerFormComponent_ng_template_16_input_17_Template, 1, 1, "input", 28);
583
+ i0.ɵɵelementEnd();
584
+ i0.ɵɵelementStart(18, "div", 29)(19, "button", 30);
585
+ i0.ɵɵlistener("click", function FormManagerFormComponent_ng_template_16_Template_button_click_19_listener() { i0.ɵɵrestoreView(_r10); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.modalRef.hide()); });
586
+ i0.ɵɵtext(20, "Close");
587
+ i0.ɵɵelementEnd()();
588
+ } if (rf & 2) {
589
+ const ctx_r4 = i0.ɵɵnextContext();
590
+ i0.ɵɵadvance(9);
591
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0, ctx_r4.choice === "isUrl"));
592
+ i0.ɵɵadvance(4);
593
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0, ctx_r4.choice === "isEmbed"));
594
+ i0.ɵɵadvance(3);
595
+ i0.ɵɵproperty("ngIf", ctx_r4.choice === "isEmbed");
596
+ i0.ɵɵadvance(1);
597
+ i0.ɵɵproperty("ngIf", ctx_r4.choice === "isUrl");
598
+ } }
599
+ class FormManagerFormComponent {
600
+ constructor(service, route, appConfig, options, modalService) {
601
+ this.service = service;
602
+ this.route = route;
603
+ this.appConfig = appConfig;
604
+ this.options = options;
605
+ this.modalService = modalService;
606
+ this.choice = 'isUrl';
607
+ this.goTo = '';
608
+ }
609
+ ngOnInit() {
610
+ this.service.reset(this.route);
611
+ this.service.loadForm().then(form => {
612
+ this.service.formSrc = this.appConfig.appUrl + '/' + form.path;
613
+ this.projectId = form.project;
614
+ this.pathName = form.path;
615
+ this.getShareUrl();
616
+ });
617
+ }
618
+ getShareUrl() {
619
+ const src = this.appConfig.appUrl + '/' + this.pathName;
620
+ this.shareUrl = `${this.options.viewer}/#/?src=${encodeURIComponent(src)}`;
621
+ return this.shareUrl;
622
+ }
623
+ openEmbed(content) {
624
+ let goto = '';
625
+ if (this.goTo) {
626
+ goto += `if (d && d.formSubmission && d.formSubmission._id) { window.location.href = "${this.goTo}";}`;
627
+ }
628
+ let embedCode = '<script type="text/javascript">';
629
+ embedCode += '(function a(d, w, u) {';
630
+ embedCode += 'var h = d.getElementsByTagName("head")[0];';
631
+ embedCode += 'var s = d.createElement("script");';
632
+ embedCode += 's.type = "text/javascript";';
633
+ embedCode += 's.src = "' + this.options.viewer + '/assets/lib/seamless/seamless.parent.min.js";';
634
+ embedCode += 's.onload = function b() {';
635
+ embedCode += 'var f = d.getElementById("formio-form-' + this.service.formio.formId + '");';
636
+ embedCode += 'if (!f || (typeof w.seamless === u)) {';
637
+ embedCode += 'return setTimeout(b, 100);';
638
+ embedCode += '}';
639
+ embedCode += 'w.seamless(f, {fallback:false}).receive(function(d, e) {' + goto + '});';
640
+ embedCode += '};';
641
+ embedCode += 'h.appendChild(s);';
642
+ embedCode += '})(document, window);';
643
+ embedCode += '</script>';
644
+ embedCode += '<iframe id="formio-form-' + this.service.formio.formId + '" ';
645
+ embedCode += 'style="width:100%;border:none;" height="800px" src="' + this.shareUrl + '&iframe=1"></iframe>';
646
+ this.embedCode = embedCode;
647
+ this.modalRef = this.modalService.show(content, { class: 'modal-lg' });
648
+ }
649
+ choices(string) {
650
+ this.choice = string;
651
+ }
652
+ }
653
+ FormManagerFormComponent.ɵfac = function FormManagerFormComponent_Factory(t) { return new (t || FormManagerFormComponent)(i0.ɵɵdirectiveInject(FormManagerService), i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(i3.FormioAppConfig), i0.ɵɵdirectiveInject(FormManagerConfig), i0.ɵɵdirectiveInject(i5$1.BsModalService)); };
654
+ FormManagerFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormManagerFormComponent, selectors: [["ng-component"]], decls: 18, vars: 3, consts: [["class", "pull-right btn btn-outline-primary", 3, "click", 4, "ngIf"], [1, "nav", "nav-tabs", "mb-2"], [1, "nav-item"], ["routerLink", "../", 1, "nav-link"], [1, "fa", "fa-chevron-left", "glyphicon", "glyphicon-chevron-left"], ["routerLinkActive", "active", 1, "nav-item"], ["routerLink", "view", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-pencil", "glyphicon", "glyphicon-pencil"], ["routerLink", "submission", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-list-alt", "glyphicon", "glyphicon-list-alt"], ["class", "nav-item", "routerLinkActive", "active", 4, "ngIf"], ["content", ""], [1, "pull-right", "btn", "btn-outline-primary", 3, "click"], [1, "fa", "fa-share-alt", "glyphicon", "glyphicon-share"], ["routerLink", "edit", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-edit", "glyphicon", "glyphicon-edit"], ["routerLink", "delete", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-trash", "glyphicon", "glyphicon-trash"], [1, "modal-header"], [1, "modal-title"], ["type", "button", "aria-label", "Close", 1, "close", 3, "click"], ["aria-hidden", "true"], [1, "modal-body"], [1, "nav", "nav-tabs", "mr-auto", "mb-2"], [1, "nav-link", 3, "ngClass", "click"], [1, "fa", "fa-link"], [1, "fa", "fa-code"], [4, "ngIf"], ["type", "text", "onclick", "this.focus();this.select()", "readonly", "readonly", "class", "form-control", "placeholder", "https://examples.form.io/example", 3, "ngModel", 4, "ngIf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", 3, "click"], ["onclick", "this.focus();this.select()", "readonly", "readonly", "rows", "8", 2, "width", "100%", 3, "ngModel"], ["type", "text", "onclick", "this.focus();this.select()", "readonly", "readonly", "placeholder", "https://examples.form.io/example", 1, "form-control", 3, "ngModel"]], template: function FormManagerFormComponent_Template(rf, ctx) { if (rf & 1) {
655
+ i0.ɵɵtemplate(0, FormManagerFormComponent_button_0_Template, 3, 0, "button", 0);
656
+ i0.ɵɵelementStart(1, "ul", 1)(2, "li", 2)(3, "a", 3);
657
+ i0.ɵɵelement(4, "em", 4);
658
+ i0.ɵɵelementEnd()();
659
+ i0.ɵɵelementStart(5, "li", 5)(6, "a", 6);
660
+ i0.ɵɵelement(7, "em", 7);
661
+ i0.ɵɵtext(8, " Enter Data");
662
+ i0.ɵɵelementEnd()();
663
+ i0.ɵɵelementStart(9, "li", 5)(10, "a", 8);
664
+ i0.ɵɵelement(11, "em", 9);
665
+ i0.ɵɵtext(12, " View Data");
666
+ i0.ɵɵelementEnd()();
667
+ i0.ɵɵtemplate(13, FormManagerFormComponent_li_13_Template, 4, 0, "li", 10);
668
+ i0.ɵɵtemplate(14, FormManagerFormComponent_li_14_Template, 3, 0, "li", 10);
669
+ i0.ɵɵelementEnd();
670
+ i0.ɵɵelement(15, "router-outlet");
671
+ i0.ɵɵtemplate(16, FormManagerFormComponent_ng_template_16_Template, 21, 8, "ng-template", null, 11, i0.ɵɵtemplateRefExtractor);
672
+ } if (rf & 2) {
673
+ i0.ɵɵproperty("ngIf", ctx.options.viewer);
674
+ i0.ɵɵadvance(13);
675
+ i0.ɵɵproperty("ngIf", ctx.service.actionAllowed("formEdit"));
676
+ i0.ɵɵadvance(1);
677
+ i0.ɵɵproperty("ngIf", ctx.service.actionAllowed("formDelete"));
678
+ } }, dependencies: [i6.NgClass, i6.NgIf, i2.RouterOutlet, i2.RouterLink, i2.RouterLinkActive, i5.DefaultValueAccessor, i5.NgControlStatus, i5.NgModel], encapsulation: 2 });
679
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormManagerFormComponent, [{
680
+ type: Component,
681
+ args: [{ template: "<button *ngIf=\"options.viewer\" class=\"pull-right btn btn-outline-primary\" (click)=\"openEmbed(content)\"><em class=\"fa fa-share-alt glyphicon glyphicon-share\"></em> Share</button>\n<ul class=\"nav nav-tabs mb-2\">\n <li class=\"nav-item\"><a class=\"nav-link\" routerLink=\"../\"><em class=\"fa fa-chevron-left glyphicon glyphicon-chevron-left\"></em></a></li>\n <li class=\"nav-item\" routerLinkActive=\"active\"><a class=\"nav-link\" routerLink=\"view\" routerLinkActive=\"active\"><em class=\"fa fa-pencil glyphicon glyphicon-pencil\"></em> Enter Data</a></li>\n <li class=\"nav-item\" routerLinkActive=\"active\"><a class=\"nav-link\" routerLink=\"submission\" routerLinkActive=\"active\"><em class=\"fa fa-list-alt glyphicon glyphicon-list-alt\"></em> View Data</a></li>\n <li *ngIf=\"service.actionAllowed('formEdit')\" class=\"nav-item\" routerLinkActive=\"active\"><a class=\"nav-link\" routerLink=\"edit\" routerLinkActive=\"active\"><em class=\"fa fa-edit glyphicon glyphicon-edit\"></em> Edit Form</a></li>\n <li *ngIf=\"service.actionAllowed('formDelete')\" class=\"nav-item\" routerLinkActive=\"active\"><a class=\"nav-link\" routerLink=\"delete\" routerLinkActive=\"active\"><span class=\"fa fa-trash glyphicon glyphicon-trash\"></span></a></li>\n</ul>\n<router-outlet></router-outlet>\n<ng-template #content>\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">Share or Embed this form</h4>\n <button type=\"button\" class=\"close\" aria-label=\"Close\" (click)=\"modalRef.hide()\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <ul class=\"nav nav-tabs mr-auto mb-2\">\n <li class=\"nav-item\">\n <a class=\"nav-link\" [ngClass]=\"{'active': choice === 'isUrl'}\" (click)=\"choices('isUrl')\"><em class=\"fa fa-link\"></em> URL</a>\n </li>\n <li class=\"nav-item\">\n <a class=\"nav-link\" [ngClass]=\"{'active': choice === 'isEmbed'}\" (click)=\"choices('isEmbed')\"><em class=\"fa fa-code\"></em> Embed</a>\n </li>\n </ul>\n <pre *ngIf=\"choice === 'isEmbed'\"><textarea onclick=\"this.focus();this.select()\" readonly=\"readonly\" style=\"width:100%;\" rows=\"8\" [ngModel]=\"embedCode\"></textarea></pre>\n <input *ngIf=\"choice === 'isUrl'\" type=\"text\" onclick=\"this.focus();this.select()\" readonly=\"readonly\" class=\"form-control\" [ngModel]=\"shareUrl\" placeholder=\"https://examples.form.io/example\">\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-light\" (click)=\"modalRef.hide()\">Close</button>\n </div>\n</ng-template>\n" }]
682
+ }], function () { return [{ type: FormManagerService }, { type: i2.ActivatedRoute }, { type: i3.FormioAppConfig }, { type: FormManagerConfig }, { type: i5$1.BsModalService }]; }, null); })();
683
+
684
+ function FormManagerViewComponent_formio_0_Template(rf, ctx) { if (rf & 1) {
685
+ const _r2 = i0.ɵɵgetCurrentView();
686
+ i0.ɵɵelementStart(0, "formio", 1);
687
+ i0.ɵɵlistener("submit", function FormManagerViewComponent_formio_0_Template_formio_submit_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSubmit($event)); });
688
+ i0.ɵɵelementEnd();
689
+ } if (rf & 2) {
690
+ const ctx_r0 = i0.ɵɵnextContext();
691
+ i0.ɵɵproperty("renderer", ctx_r0.config.renderer)("renderOptions", ctx_r0.renderOptions)("url", ctx_r0.service.formio.formUrl)("form", ctx_r0.service.form)("submission", ctx_r0.submission)("success", ctx_r0.onSuccess)("error", ctx_r0.onError);
692
+ } }
693
+ class FormManagerViewComponent {
694
+ constructor(service, router, route, config, auth) {
695
+ this.service = service;
696
+ this.router = router;
697
+ this.route = route;
698
+ this.config = config;
699
+ this.auth = auth;
700
+ this.onSuccess = new EventEmitter();
701
+ this.onError = new EventEmitter();
702
+ this.renderOptions = {
703
+ saveDraft: this.config.saveDraft
704
+ };
705
+ this.submission = { data: {} };
706
+ }
707
+ ngOnInit() {
708
+ this.service.formio = new Formio(this.service.formio.formUrl);
709
+ }
710
+ onSubmit(submission) {
711
+ this.submission.data = submission.data;
712
+ this.submission.state = 'complete';
713
+ this.service.formio.saveSubmission(this.submission).then(saved => {
714
+ this.onSuccess.emit();
715
+ this.router.navigate(['../', 'submission', saved._id], { relativeTo: this.route });
716
+ }).catch((err) => this.onError.emit(err));
717
+ }
718
+ }
719
+ FormManagerViewComponent.ɵfac = function FormManagerViewComponent_Factory(t) { return new (t || FormManagerViewComponent)(i0.ɵɵdirectiveInject(FormManagerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(FormManagerConfig), i0.ɵɵdirectiveInject(i3$1.FormioAuthService)); };
720
+ FormManagerViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormManagerViewComponent, selectors: [["ng-component"]], decls: 1, vars: 1, consts: [[3, "renderer", "renderOptions", "url", "form", "submission", "success", "error", "submit", 4, "ngIf"], [3, "renderer", "renderOptions", "url", "form", "submission", "success", "error", "submit"]], template: function FormManagerViewComponent_Template(rf, ctx) { if (rf & 1) {
721
+ i0.ɵɵtemplate(0, FormManagerViewComponent_formio_0_Template, 1, 7, "formio", 0);
722
+ } if (rf & 2) {
723
+ i0.ɵɵproperty("ngIf", ctx.service.form);
724
+ } }, dependencies: [i6.NgIf, i3.FormioComponent], encapsulation: 2 });
725
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormManagerViewComponent, [{
726
+ type: Component,
727
+ args: [{ template: "<formio *ngIf=\"service.form\"\n [renderer]=\"config.renderer\"\n [renderOptions]=\"renderOptions\"\n [url]=\"service.formio.formUrl\"\n [form]=\"service.form\"\n [submission]=\"submission\"\n [success]=\"onSuccess\"\n [error]=\"onError\"\n (submit)=\"onSubmit($event)\"\n></formio>\n" }]
728
+ }], function () { return [{ type: FormManagerService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: FormManagerConfig }, { type: i3$1.FormioAuthService }]; }, null); })();
729
+
730
+ class FormManagerDeleteComponent {
731
+ constructor(managerService, router, route, alerts, gridService) {
732
+ this.managerService = managerService;
733
+ this.router = router;
734
+ this.route = route;
735
+ this.alerts = alerts;
736
+ this.gridService = gridService;
737
+ }
738
+ onDelete() {
739
+ this.managerService.formio.deleteForm().then(() => {
740
+ if (this.gridService) {
741
+ const currentPage = +localStorage.getItem('currentPage') || 0;
742
+ const formsNumberPerPage = this.gridService.getFormsPerPage();
743
+ if (formsNumberPerPage === 1 && currentPage !== 0) {
744
+ localStorage.setItem('currentPage', `${currentPage - 1}`);
745
+ }
746
+ }
747
+ this.router.navigate(['../../'], { relativeTo: this.route });
748
+ }).catch(err => this.alerts.setAlert({ type: 'danger', message: (err.message || err) }));
749
+ }
750
+ onCancel() {
751
+ this.router.navigate(['../', 'view'], { relativeTo: this.route });
752
+ }
753
+ }
754
+ FormManagerDeleteComponent.ɵfac = function FormManagerDeleteComponent_Factory(t) { return new (t || FormManagerDeleteComponent)(i0.ɵɵdirectiveInject(FormManagerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(i3.FormioAlerts), i0.ɵɵdirectiveInject(i4.GridService)); };
755
+ 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) {
756
+ i0.ɵɵelement(0, "formio-alerts", 0);
757
+ i0.ɵɵelementStart(1, "h3");
758
+ i0.ɵɵtext(2, "Are you sure you wish to delete this form?");
759
+ i0.ɵɵelementEnd();
760
+ i0.ɵɵelementStart(3, "div", 1)(4, "button", 2);
761
+ i0.ɵɵlistener("click", function FormManagerDeleteComponent_Template_button_click_4_listener() { return ctx.onDelete(); });
762
+ i0.ɵɵtext(5, "Yes");
763
+ i0.ɵɵelementEnd();
764
+ i0.ɵɵelementStart(6, "button", 3);
765
+ i0.ɵɵlistener("click", function FormManagerDeleteComponent_Template_button_click_6_listener() { return ctx.onCancel(); });
766
+ i0.ɵɵtext(7, "No");
767
+ i0.ɵɵelementEnd()();
768
+ } if (rf & 2) {
769
+ i0.ɵɵproperty("alerts", ctx.alerts);
770
+ } }, dependencies: [i3.FormioAlertsComponent], encapsulation: 2 });
771
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormManagerDeleteComponent, [{
772
+ type: Component,
773
+ 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" }]
774
+ }], function () { return [{ type: FormManagerService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: i3.FormioAlerts }, { type: i4.GridService }]; }, null); })();
775
+
776
+ class SubmissionEditComponent {
777
+ constructor(service, router, route) {
778
+ this.service = service;
779
+ this.router = router;
780
+ this.route = route;
781
+ }
782
+ onSubmit(submission) {
783
+ this.router.navigate(['../../'], { relativeTo: this.route });
784
+ }
785
+ }
786
+ SubmissionEditComponent.ɵfac = function SubmissionEditComponent_Factory(t) { return new (t || SubmissionEditComponent)(i0.ɵɵdirectiveInject(FormManagerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i2.ActivatedRoute)); };
787
+ SubmissionEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SubmissionEditComponent, selectors: [["ng-component"]], decls: 1, vars: 2, consts: [[3, "renderer", "src", "submit", "formLoad", "submissionLoad"]], template: function SubmissionEditComponent_Template(rf, ctx) { if (rf & 1) {
788
+ i0.ɵɵelementStart(0, "formio", 0);
789
+ i0.ɵɵlistener("submit", function SubmissionEditComponent_Template_formio_submit_0_listener($event) { return ctx.onSubmit($event); })("formLoad", function SubmissionEditComponent_Template_formio_formLoad_0_listener($event) { return ctx.service.setForm($event); })("submissionLoad", function SubmissionEditComponent_Template_formio_submissionLoad_0_listener($event) { return ctx.service.submissionLoaded($event); });
790
+ i0.ɵɵelementEnd();
791
+ } if (rf & 2) {
792
+ i0.ɵɵproperty("renderer", ctx.service.config.renderer)("src", ctx.service.formio.submissionUrl);
793
+ } }, dependencies: [i3.FormioComponent], encapsulation: 2 });
794
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubmissionEditComponent, [{
795
+ type: Component,
796
+ args: [{ template: "<formio\n [renderer]=\"service.config.renderer\"\n [src]=\"service.formio.submissionUrl\"\n (submit)=\"onSubmit($event)\"\n (formLoad)=\"service.setForm($event)\"\n (submissionLoad)=\"service.submissionLoaded($event)\"\n></formio>\n" }]
797
+ }], function () { return [{ type: FormManagerService }, { type: i2.Router }, { type: i2.ActivatedRoute }]; }, null); })();
798
+
799
+ class SubmissionDeleteComponent {
800
+ constructor(service, router, route, alerts) {
801
+ this.service = service;
802
+ this.router = router;
803
+ this.route = route;
804
+ this.alerts = alerts;
805
+ }
806
+ onDelete() {
807
+ this.service.formio.deleteSubmission().then(() => {
808
+ this.router.navigate(['../../'], { relativeTo: this.route });
809
+ }).catch(err => this.alerts.setAlert({ type: 'danger', message: (err.message || err) }));
810
+ }
811
+ onCancel() {
812
+ this.router.navigate(['../', 'view'], { relativeTo: this.route });
813
+ }
814
+ }
815
+ SubmissionDeleteComponent.ɵfac = function SubmissionDeleteComponent_Factory(t) { return new (t || SubmissionDeleteComponent)(i0.ɵɵdirectiveInject(FormManagerService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(i3.FormioAlerts)); };
816
+ SubmissionDeleteComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SubmissionDeleteComponent, 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 SubmissionDeleteComponent_Template(rf, ctx) { if (rf & 1) {
817
+ i0.ɵɵelement(0, "formio-alerts", 0);
818
+ i0.ɵɵelementStart(1, "h3");
819
+ i0.ɵɵtext(2, "Are you sure you wish to delete this record?");
820
+ i0.ɵɵelementEnd();
821
+ i0.ɵɵelementStart(3, "div", 1)(4, "button", 2);
822
+ i0.ɵɵlistener("click", function SubmissionDeleteComponent_Template_button_click_4_listener() { return ctx.onDelete(); });
823
+ i0.ɵɵtext(5, "Yes");
824
+ i0.ɵɵelementEnd();
825
+ i0.ɵɵelementStart(6, "button", 3);
826
+ i0.ɵɵlistener("click", function SubmissionDeleteComponent_Template_button_click_6_listener() { return ctx.onCancel(); });
827
+ i0.ɵɵtext(7, "No");
828
+ i0.ɵɵelementEnd()();
829
+ } if (rf & 2) {
830
+ i0.ɵɵproperty("alerts", ctx.alerts);
831
+ } }, dependencies: [i3.FormioAlertsComponent], encapsulation: 2 });
832
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubmissionDeleteComponent, [{
833
+ type: Component,
834
+ args: [{ template: "<formio-alerts [alerts]=\"alerts\"></formio-alerts>\n<h3>Are you sure you wish to delete this record?</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" }]
835
+ }], function () { return [{ type: FormManagerService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: i3.FormioAlerts }]; }, null); })();
836
+
837
+ class SubmissionViewComponent {
838
+ constructor(service) {
839
+ this.service = service;
840
+ }
841
+ }
842
+ SubmissionViewComponent.ɵfac = function SubmissionViewComponent_Factory(t) { return new (t || SubmissionViewComponent)(i0.ɵɵdirectiveInject(FormManagerService)); };
843
+ SubmissionViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SubmissionViewComponent, selectors: [["ng-component"]], decls: 1, vars: 3, consts: [[3, "renderer", "src", "readOnly", "formLoad", "submissionLoad"]], template: function SubmissionViewComponent_Template(rf, ctx) { if (rf & 1) {
844
+ i0.ɵɵelementStart(0, "formio", 0);
845
+ i0.ɵɵlistener("formLoad", function SubmissionViewComponent_Template_formio_formLoad_0_listener($event) { return ctx.service.setForm($event); })("submissionLoad", function SubmissionViewComponent_Template_formio_submissionLoad_0_listener($event) { return ctx.service.submissionLoaded($event); });
846
+ i0.ɵɵelementEnd();
847
+ } if (rf & 2) {
848
+ i0.ɵɵproperty("renderer", ctx.service.config.renderer)("src", ctx.service.formio.submissionUrl)("readOnly", true);
849
+ } }, dependencies: [i3.FormioComponent], encapsulation: 2 });
850
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubmissionViewComponent, [{
851
+ type: Component,
852
+ args: [{ template: "<formio\n [renderer]=\"service.config.renderer\"\n [src]=\"service.formio.submissionUrl\"\n [readOnly]=\"true\"\n (formLoad)=\"service.setForm($event)\"\n (submissionLoad)=\"service.submissionLoaded($event)\"\n></formio>\n" }]
853
+ }], function () { return [{ type: FormManagerService }]; }, null); })();
854
+
855
+ class SubmissionIndexComponent {
856
+ constructor(service, route, router) {
857
+ this.service = service;
858
+ this.route = route;
859
+ this.router = router;
860
+ }
861
+ onSelect(row) {
862
+ this.router.navigate([row._id, 'view'], { relativeTo: this.route });
863
+ }
864
+ }
865
+ SubmissionIndexComponent.ɵfac = function SubmissionIndexComponent_Factory(t) { return new (t || SubmissionIndexComponent)(i0.ɵɵdirectiveInject(FormManagerService), i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(i2.Router)); };
866
+ SubmissionIndexComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SubmissionIndexComponent, selectors: [["ng-component"]], decls: 1, vars: 1, consts: [[3, "formio", "rowSelect"]], template: function SubmissionIndexComponent_Template(rf, ctx) { if (rf & 1) {
867
+ i0.ɵɵelementStart(0, "formio-grid", 0);
868
+ i0.ɵɵlistener("rowSelect", function SubmissionIndexComponent_Template_formio_grid_rowSelect_0_listener($event) { return ctx.onSelect($event); });
869
+ i0.ɵɵelementEnd();
870
+ } if (rf & 2) {
871
+ i0.ɵɵproperty("formio", ctx.service.formio);
872
+ } }, dependencies: [i4.FormioGridComponent], encapsulation: 2 });
873
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubmissionIndexComponent, [{
874
+ type: Component,
875
+ args: [{ template: "<formio-grid [formio]=\"service.formio\" (rowSelect)=\"onSelect($event)\"></formio-grid>\n" }]
876
+ }], function () { return [{ type: FormManagerService }, { type: i2.ActivatedRoute }, { type: i2.Router }]; }, null); })();
877
+
878
+ function SubmissionComponent_a_0_Template(rf, ctx) { if (rf & 1) {
879
+ i0.ɵɵelementStart(0, "a", 9);
880
+ i0.ɵɵelement(1, "img", 10);
881
+ i0.ɵɵelementEnd();
882
+ } if (rf & 2) {
883
+ const ctx_r0 = i0.ɵɵnextContext();
884
+ i0.ɵɵproperty("href", ctx_r0.downloadUrl, i0.ɵɵsanitizeUrl);
885
+ } }
886
+ function SubmissionComponent_li_9_Template(rf, ctx) { if (rf & 1) {
887
+ i0.ɵɵelementStart(0, "li", 5)(1, "a", 11);
888
+ i0.ɵɵelement(2, "em", 12);
889
+ i0.ɵɵtext(3, " Edit");
890
+ i0.ɵɵelementEnd()();
891
+ } }
892
+ function SubmissionComponent_li_10_Template(rf, ctx) { if (rf & 1) {
893
+ i0.ɵɵelementStart(0, "li", 5)(1, "a", 13);
894
+ i0.ɵɵelement(2, "span", 14);
895
+ i0.ɵɵelementEnd()();
896
+ } }
897
+ class SubmissionComponent {
898
+ constructor(service, route) {
899
+ this.service = service;
900
+ this.route = route;
901
+ }
902
+ setDownloadUrl(url) {
903
+ this.downloadUrl = url;
904
+ }
905
+ ngOnInit() {
906
+ this.service.setSubmission(this.route).then((formio) => {
907
+ formio.getDownloadUrl().then((url) => this.setDownloadUrl(url));
908
+ });
909
+ }
910
+ }
911
+ SubmissionComponent.ɵfac = function SubmissionComponent_Factory(t) { return new (t || SubmissionComponent)(i0.ɵɵdirectiveInject(FormManagerService), i0.ɵɵdirectiveInject(i2.ActivatedRoute)); };
912
+ SubmissionComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SubmissionComponent, selectors: [["ng-component"]], decls: 12, vars: 3, consts: [["target", "_blank", "class", "pull-right", 3, "href", 4, "ngIf"], ["aria-label", "Submission", "role", "navigation", 1, "nav", "nav-tabs", 2, "margin-bottom", "10px"], [1, "nav-item"], ["routerLink", "../", 1, "nav-link"], [1, "fa", "fa-chevron-left", "glyphicon", "glyphicon-chevron-left"], ["routerLinkActive", "active", 1, "nav-item"], ["routerLink", "view", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-eye", "glyphicon", "glyphicon-eye"], ["class", "nav-item", "routerLinkActive", "active", 4, "ngIf"], ["target", "_blank", 1, "pull-right", 3, "href"], ["src", "https://pro.formview.io/assets/pdf.png", "alt", "pdfImage", 2, "height", "2em"], ["routerLink", "edit", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-edit", "glyphicon", "glyphicon-edit"], ["routerLink", "delete", "routerLinkActive", "active", 1, "nav-link"], [1, "fa", "fa-trash", "glyphicon", "glyphicon-trash"]], template: function SubmissionComponent_Template(rf, ctx) { if (rf & 1) {
913
+ i0.ɵɵtemplate(0, SubmissionComponent_a_0_Template, 2, 1, "a", 0);
914
+ i0.ɵɵelementStart(1, "ul", 1)(2, "li", 2)(3, "a", 3);
915
+ i0.ɵɵelement(4, "em", 4);
916
+ i0.ɵɵelementEnd()();
917
+ i0.ɵɵelementStart(5, "li", 5)(6, "a", 6);
918
+ i0.ɵɵelement(7, "em", 7);
919
+ i0.ɵɵtext(8, " View");
920
+ i0.ɵɵelementEnd()();
921
+ i0.ɵɵtemplate(9, SubmissionComponent_li_9_Template, 4, 0, "li", 8);
922
+ i0.ɵɵtemplate(10, SubmissionComponent_li_10_Template, 3, 0, "li", 8);
923
+ i0.ɵɵelementEnd();
924
+ i0.ɵɵelement(11, "router-outlet");
925
+ } if (rf & 2) {
926
+ i0.ɵɵproperty("ngIf", ctx.downloadUrl);
927
+ i0.ɵɵadvance(9);
928
+ i0.ɵɵproperty("ngIf", ctx.service.perms.edit);
929
+ i0.ɵɵadvance(1);
930
+ i0.ɵɵproperty("ngIf", ctx.service.perms.delete);
931
+ } }, dependencies: [i6.NgIf, i2.RouterOutlet, i2.RouterLink, i2.RouterLinkActive], encapsulation: 2 });
932
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubmissionComponent, [{
933
+ type: Component,
934
+ args: [{ template: "<a *ngIf=\"downloadUrl\" [href]=\"downloadUrl\" target=\"_blank\" class=\"pull-right\"><img src=\"https://pro.formview.io/assets/pdf.png\" alt=\"pdfImage\" style=\"height: 2em;\" /></a>\n<ul aria-label=\"Submission\" role=\"navigation\" class=\"nav nav-tabs\" style=\"margin-bottom:10px\">\n <li class=\"nav-item\"><a class=\"nav-link\" routerLink=\"../\"><em class=\"fa fa-chevron-left glyphicon glyphicon-chevron-left\"></em></a></li>\n <li class=\"nav-item\" routerLinkActive=\"active\"><a class=\"nav-link\" routerLink=\"view\" routerLinkActive=\"active\"><em class=\"fa fa-eye glyphicon glyphicon-eye\"></em> View</a></li>\n <li class=\"nav-item\" routerLinkActive=\"active\" *ngIf=\"service.perms.edit\"><a class=\"nav-link\" routerLink=\"edit\" routerLinkActive=\"active\"><em class=\"fa fa-edit glyphicon glyphicon-edit\"></em> Edit</a></li>\n <li class=\"nav-item\" routerLinkActive=\"active\" *ngIf=\"service.perms.delete\"><a class=\"nav-link\" routerLink=\"delete\" routerLinkActive=\"active\"><span class=\"fa fa-trash glyphicon glyphicon-trash\"></span></a></li>\n</ul>\n<router-outlet></router-outlet>\n" }]
935
+ }], function () { return [{ type: FormManagerService }, { type: i2.ActivatedRoute }]; }, null); })();
936
+
937
+ function FormManagerRoutes(config) {
938
+ return [
939
+ {
940
+ path: '',
941
+ component: config && config.formIndex ? config.formIndex : FormManagerIndexComponent
942
+ },
943
+ {
944
+ path: 'create',
945
+ component: config && config.formCreate ? config.formCreate : FormManagerCreateComponent
946
+ },
947
+ {
948
+ path: ':id',
949
+ component: config && config.form ? config.form : FormManagerFormComponent,
950
+ children: [
951
+ {
952
+ path: '',
953
+ redirectTo: 'view',
954
+ pathMatch: 'full'
955
+ },
956
+ {
957
+ path: 'view',
958
+ component: config && config.formView ? config.formView : FormManagerViewComponent
959
+ },
960
+ {
961
+ path: 'edit',
962
+ component: config && config.formEdit ? config.formEdit : FormManagerEditComponent
963
+ },
964
+ {
965
+ path: 'delete',
966
+ component: config && config.formDelete ? config.formDelete : FormManagerDeleteComponent
967
+ },
968
+ {
969
+ path: 'submission',
970
+ component: config && config.submissionIndex ? config.submissionIndex : SubmissionIndexComponent
971
+ },
972
+ {
973
+ path: 'submission/:id',
974
+ component: config && config.submission ? config.submission : SubmissionComponent,
975
+ children: [
976
+ {
977
+ path: '',
978
+ redirectTo: 'view',
979
+ pathMatch: 'full'
980
+ },
981
+ {
982
+ path: 'view',
983
+ component: config && config.submissionView ? config.submissionView : SubmissionViewComponent
984
+ },
985
+ {
986
+ path: 'edit',
987
+ component: config && config.submissionEdit ? config.submissionEdit : SubmissionEditComponent
988
+ },
989
+ {
990
+ path: 'delete',
991
+ component: config && config.submissionDelete ? config.submissionDelete : SubmissionDeleteComponent
992
+ }
993
+ ]
994
+ }
995
+ ]
996
+ }
997
+ ];
998
+ }
999
+
1000
+ class FormManagerModule {
1001
+ static forChild(config) {
1002
+ return extendRouter(FormManagerModule, config, FormManagerRoutes);
1003
+ }
1004
+ static forRoot(config) {
1005
+ return extendRouter(FormManagerModule, config, FormManagerRoutes);
1006
+ }
1007
+ }
1008
+ FormManagerModule.ɵfac = function FormManagerModule_Factory(t) { return new (t || FormManagerModule)(); };
1009
+ FormManagerModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: FormManagerModule });
1010
+ FormManagerModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
1011
+ FormioModule,
1012
+ RouterModule,
1013
+ FormsModule,
1014
+ FormioGrid,
1015
+ ModalModule.forRoot(),
1016
+ PaginationModule.forRoot()] });
1017
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormManagerModule, [{
1018
+ type: NgModule,
1019
+ args: [{
1020
+ imports: [
1021
+ CommonModule,
1022
+ FormioModule,
1023
+ RouterModule,
1024
+ FormsModule,
1025
+ FormioGrid,
1026
+ ModalModule.forRoot(),
1027
+ PaginationModule.forRoot()
1028
+ ],
1029
+ declarations: [
1030
+ FormManagerIndexComponent,
1031
+ FormManagerCreateComponent,
1032
+ FormManagerFormComponent,
1033
+ FormManagerViewComponent,
1034
+ FormManagerEditComponent,
1035
+ FormManagerDeleteComponent,
1036
+ SubmissionComponent,
1037
+ SubmissionEditComponent,
1038
+ SubmissionDeleteComponent,
1039
+ SubmissionViewComponent,
1040
+ SubmissionIndexComponent
1041
+ ]
1042
+ }]
1043
+ }], null, null); })();
1044
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FormManagerModule, { declarations: [FormManagerIndexComponent,
1045
+ FormManagerCreateComponent,
1046
+ FormManagerFormComponent,
1047
+ FormManagerViewComponent,
1048
+ FormManagerEditComponent,
1049
+ FormManagerDeleteComponent,
1050
+ SubmissionComponent,
1051
+ SubmissionEditComponent,
1052
+ SubmissionDeleteComponent,
1053
+ SubmissionViewComponent,
1054
+ SubmissionIndexComponent], imports: [CommonModule,
1055
+ FormioModule,
1056
+ RouterModule,
1057
+ FormsModule,
1058
+ FormioGrid, i5$1.ModalModule, i2$1.PaginationModule] }); })();
1059
+
1060
+ /**
1061
+ * Generated bundle index. Do not edit.
1062
+ */
1063
+
1064
+ export { FormManagerConfig, FormManagerCreateComponent, FormManagerDeleteComponent, FormManagerEditComponent, FormManagerFormComponent, FormManagerIndexComponent, FormManagerModule, FormManagerRoutes, FormManagerService, FormManagerViewComponent, SubmissionComponent, SubmissionDeleteComponent, SubmissionEditComponent, SubmissionIndexComponent, SubmissionViewComponent };
1065
+ //# sourceMappingURL=formio-angular-manager.mjs.map
1066
+ //# sourceMappingURL=formio-angular-manager.mjs.map