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