@formio/angular 6.0.0-rc.8 → 6.0.1

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