@formio/angular 5.2.1-rc.1 → 5.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (601) hide show
  1. package/{dist/angular-formio/FormioBaseComponent.d.ts → FormioBaseComponent.d.ts} +0 -3
  2. package/FormioBaseComponent.d.ts.map +1 -0
  3. package/FormioBaseComponent.ngfactory.d.ts.map +1 -0
  4. package/README.md +13 -170
  5. package/auth/auth.component.d.ts +3 -0
  6. package/{dist/angular-formio/auth → auth}/auth.component.d.ts.map +1 -1
  7. package/{dist/angular-formio/auth → auth}/auth.config.d.ts +0 -3
  8. package/auth/auth.config.d.ts.map +1 -0
  9. package/auth/auth.module.d.ts +6 -0
  10. package/auth/auth.module.d.ts.map +1 -0
  11. package/{dist/angular-formio/auth → auth}/auth.routes.d.ts +0 -0
  12. package/{dist/angular-formio/auth → auth}/auth.routes.d.ts.map +0 -0
  13. package/{dist/angular-formio/auth → auth}/auth.service.d.ts +0 -3
  14. package/auth/auth.service.d.ts.map +1 -0
  15. package/auth/formio-angular-auth.d.ts +5 -0
  16. package/{dist/angular-formio/auth → auth}/formio-angular-auth.d.ts.map +1 -1
  17. package/auth/formio-angular-auth.metadata.json +1 -0
  18. package/{dist/angular-formio/auth → auth}/index.d.ts +0 -0
  19. package/{dist/angular-formio/auth → auth}/index.d.ts.map +0 -0
  20. package/auth/login/login.component.d.ts +6 -0
  21. package/{dist/angular-formio/auth → auth}/login/login.component.d.ts.map +1 -1
  22. package/{dist/angular-formio/auth → auth}/package.json +1 -0
  23. package/{dist/angular-formio/auth → auth}/public_api.d.ts +0 -0
  24. package/{dist/angular-formio/auth → auth}/public_api.d.ts.map +0 -0
  25. package/auth/register/register.component.d.ts +6 -0
  26. package/{dist/angular-formio/auth → auth}/register/register.component.d.ts.map +1 -1
  27. package/auth/resetpass/resetpass.component.d.ts +6 -0
  28. package/{dist/angular-formio/auth → auth}/resetpass/resetpass.component.d.ts.map +1 -1
  29. package/bundles/formio-angular-auth.umd.js +312 -0
  30. package/bundles/formio-angular-auth.umd.js.map +1 -0
  31. package/bundles/formio-angular-grid.umd.js +1010 -0
  32. package/bundles/formio-angular-grid.umd.js.map +1 -0
  33. package/bundles/formio-angular-manager.umd.js +1122 -0
  34. package/bundles/formio-angular-manager.umd.js.map +1 -0
  35. package/bundles/formio-angular-resource.umd.js +556 -0
  36. package/bundles/formio-angular-resource.umd.js.map +1 -0
  37. package/bundles/formio-angular.umd.js +1497 -0
  38. package/bundles/formio-angular.umd.js.map +1 -0
  39. package/components/alerts/formio.alerts.component.d.ts +9 -0
  40. package/{dist/angular-formio/components → components}/alerts/formio.alerts.component.d.ts.map +1 -1
  41. package/components/alerts/formio.alerts.component.ngfactory.d.ts.map +1 -0
  42. package/{dist/angular-formio/components → components}/alerts/formio.alerts.d.ts +0 -0
  43. package/{dist/angular-formio/components → components}/alerts/formio.alerts.d.ts.map +0 -0
  44. package/components/alerts/parse-html-content.pipe.d.ts +5 -0
  45. package/{dist/angular-formio/components → components}/alerts/parse-html-content.pipe.d.ts.map +1 -1
  46. package/components/alerts/parse-html-content.pipe.ngfactory.d.ts.map +1 -0
  47. package/{dist/angular-formio/components → components}/formbuilder/formbuilder.component.d.ts +0 -3
  48. package/components/formbuilder/formbuilder.component.d.ts.map +1 -0
  49. package/components/formbuilder/formbuilder.component.ngfactory.d.ts.map +1 -0
  50. package/{dist/angular-formio/components → components}/formio/formio.component.d.ts +0 -3
  51. package/{dist/angular-formio/components → components}/formio/formio.component.d.ts.map +1 -1
  52. package/components/formio/formio.component.ngfactory.d.ts.map +1 -0
  53. package/components/loader/formio.loader.component.d.ts +4 -0
  54. package/components/loader/formio.loader.component.d.ts.map +1 -0
  55. package/components/loader/formio.loader.component.ngfactory.d.ts.map +1 -0
  56. package/components/loader/formio.loader.component.scss.shim.ngstyle.d.ts.map +1 -0
  57. package/{dist/angular-formio/core.d.ts → core.d.ts} +0 -0
  58. package/{dist/angular-formio/core.d.ts.map → core.d.ts.map} +0 -0
  59. package/{dist/angular-formio/custom-component → custom-component}/create-custom-component.d.ts +0 -0
  60. package/{dist/angular-formio/custom-component → custom-component}/create-custom-component.d.ts.map +0 -0
  61. package/custom-component/custom-tags.service.d.ts +5 -0
  62. package/custom-component/custom-tags.service.d.ts.map +1 -0
  63. package/custom-component/custom-tags.service.ngfactory.d.ts.map +1 -0
  64. package/{dist/angular-formio/custom-component → custom-component}/register-custom-component.d.ts +0 -0
  65. package/{dist/angular-formio/custom-component → custom-component}/register-custom-component.d.ts.map +0 -0
  66. package/{dist/angular-formio/elements.common.d.ts → elements.common.d.ts} +0 -0
  67. package/{dist/angular-formio/elements.common.d.ts.map → elements.common.d.ts.map} +0 -0
  68. package/esm2015/FormioBaseComponent.js +456 -0
  69. package/esm2015/auth/auth.component.js +9 -0
  70. package/esm2015/auth/auth.config.js +12 -0
  71. package/esm2015/auth/auth.module.js +34 -0
  72. package/{dist/angular-formio/esm2015 → esm2015}/auth/auth.routes.js +0 -0
  73. package/esm2015/auth/auth.service.js +160 -0
  74. package/{dist/angular-formio/esm2015 → esm2015}/auth/formio-angular-auth.js +0 -0
  75. package/{dist/angular-formio/esm2015 → esm2015}/auth/index.js +0 -0
  76. package/esm2015/auth/login/login.component.js +16 -0
  77. package/{dist/angular-formio/esm2015 → esm2015}/auth/public_api.js +0 -0
  78. package/esm2015/auth/register/register.component.js +16 -0
  79. package/esm2015/auth/resetpass/resetpass.component.js +16 -0
  80. package/esm2015/components/alerts/formio.alerts.component.js +26 -0
  81. package/{dist/angular-formio/esm2015 → esm2015}/components/alerts/formio.alerts.js +0 -0
  82. package/esm2015/components/alerts/parse-html-content.pipe.js +15 -0
  83. package/esm2015/components/formbuilder/formbuilder.component.js +185 -0
  84. package/esm2015/components/formio/formio.component.js +39 -0
  85. package/esm2015/components/loader/formio.loader.component.js +14 -0
  86. package/{dist/angular-formio/esm2015 → esm2015}/core.js +0 -0
  87. package/{dist/angular-formio/esm2015 → esm2015}/custom-component/create-custom-component.js +0 -0
  88. package/esm2015/custom-component/custom-tags.service.js +13 -0
  89. package/{dist/angular-formio/esm2015 → esm2015}/custom-component/register-custom-component.js +0 -0
  90. package/{dist/angular-formio/esm2015 → esm2015}/elements.common.js +0 -0
  91. package/esm2015/formio-angular.js +7 -0
  92. package/{dist/angular-formio/esm2015 → esm2015}/formio-promise.service.js +0 -0
  93. package/{dist/angular-formio/esm2015 → esm2015}/formio.common.js +0 -0
  94. package/esm2015/formio.config.js +11 -0
  95. package/esm2015/formio.module.js +42 -0
  96. package/{dist/angular-formio/esm2015 → esm2015}/formio.service.js +0 -0
  97. package/{dist/angular-formio/esm2015 → esm2015}/formio.utils.js +0 -0
  98. package/esm2015/grid/GridBodyComponent.js +76 -0
  99. package/esm2015/grid/GridFooterComponent.js +26 -0
  100. package/esm2015/grid/GridHeaderComponent.js +25 -0
  101. package/esm2015/grid/form/FormGridBody.component.js +16 -0
  102. package/esm2015/grid/form/FormGridFooter.component.js +24 -0
  103. package/esm2015/grid/form/FormGridHeader.component.js +24 -0
  104. package/{dist/angular-formio/esm2015 → esm2015}/grid/form/index.js +0 -0
  105. package/esm2015/grid/form/time-since.pipe.js +33 -0
  106. package/esm2015/grid/formio-angular-grid.js +6 -0
  107. package/esm2015/grid/grid.component.js +211 -0
  108. package/esm2015/grid/grid.module.js +61 -0
  109. package/esm2015/grid/grid.service.js +16 -0
  110. package/{dist/angular-formio/esm2015 → esm2015}/grid/index.js +0 -0
  111. package/{dist/angular-formio/esm2015 → esm2015}/grid/public_api.js +0 -0
  112. package/esm2015/grid/submission/SubmissionGridBody.component.js +40 -0
  113. package/esm2015/grid/submission/SubmissionGridFooter.component.js +21 -0
  114. package/esm2015/grid/submission/SubmissionGridHeader.component.js +58 -0
  115. package/{dist/angular-formio/esm2015 → esm2015}/grid/submission/index.js +0 -0
  116. package/{dist/angular-formio/esm2015 → esm2015}/grid/types/grid-column.js +0 -0
  117. package/{dist/angular-formio/esm2015 → esm2015}/grid/types/grid-footer-positions.js +0 -0
  118. package/{dist/angular-formio/esm2015 → esm2015}/grid/types/grid-header.js +0 -0
  119. package/{dist/angular-formio/esm2015 → esm2015}/index.js +0 -0
  120. package/esm2015/manager/create/create.component.js +13 -0
  121. package/esm2015/manager/delete/delete.component.js +42 -0
  122. package/esm2015/manager/edit/edit.component.js +109 -0
  123. package/esm2015/manager/form/form.component.js +73 -0
  124. package/esm2015/manager/form-manager.config.js +12 -0
  125. package/esm2015/manager/form-manager.module.js +56 -0
  126. package/{dist/angular-formio/esm2015 → esm2015}/manager/form-manager.routes.js +0 -0
  127. package/esm2015/manager/form-manager.service.js +180 -0
  128. package/{dist/angular-formio/esm2015 → esm2015}/manager/formio-angular-manager.js +0 -0
  129. package/esm2015/manager/index/index.component.js +86 -0
  130. package/{dist/angular-formio/esm2015 → esm2015}/manager/index.js +0 -0
  131. package/{dist/angular-formio/esm2015 → esm2015}/manager/public_api.js +0 -0
  132. package/esm2015/manager/submission/delete/delete.component.js +32 -0
  133. package/esm2015/manager/submission/edit/edit.component.js +24 -0
  134. package/esm2015/manager/submission/index/index.component.js +24 -0
  135. package/esm2015/manager/submission/submission/submission.component.js +27 -0
  136. package/esm2015/manager/submission/view/view.component.js +16 -0
  137. package/esm2015/manager/view/view.component.js +45 -0
  138. package/{dist/angular-formio/esm2015 → esm2015}/public-api.js +0 -0
  139. package/esm2015/resource/create/create.component.js +40 -0
  140. package/esm2015/resource/delete/delete.component.js +29 -0
  141. package/esm2015/resource/edit/edit.component.js +39 -0
  142. package/{dist/angular-formio/esm2015 → esm2015}/resource/formio-angular-resource.js +0 -0
  143. package/esm2015/resource/index/index.component.js +65 -0
  144. package/{dist/angular-formio/esm2015 → esm2015}/resource/index.js +0 -0
  145. package/{dist/angular-formio/esm2015 → esm2015}/resource/public_api.js +0 -0
  146. package/esm2015/resource/resource.component.js +48 -0
  147. package/esm2015/resource/resource.config.js +12 -0
  148. package/esm2015/resource/resource.module.js +44 -0
  149. package/{dist/angular-formio/esm2015 → esm2015}/resource/resource.routes.js +0 -0
  150. package/esm2015/resource/resource.service.js +187 -0
  151. package/esm2015/resource/resources.service.js +22 -0
  152. package/esm2015/resource/view/view.component.js +24 -0
  153. package/{dist/angular-formio/esm2015 → esm2015}/types/alerts-position.js +0 -0
  154. package/{dist/angular-formio/esm2015 → esm2015}/types/formio-metadata.js +0 -0
  155. package/{dist/angular-formio/esm2015 → esm2015}/types/formio-submission.js +0 -0
  156. package/{dist/angular-formio/fesm2015 → fesm2015}/formio-angular-auth.js +45 -108
  157. package/fesm2015/formio-angular-auth.js.map +1 -0
  158. package/fesm2015/formio-angular-grid.js +624 -0
  159. package/fesm2015/formio-angular-grid.js.map +1 -0
  160. package/fesm2015/formio-angular-manager.js +750 -0
  161. package/fesm2015/formio-angular-manager.js.map +1 -0
  162. package/fesm2015/formio-angular-resource.js +515 -0
  163. package/fesm2015/formio-angular-resource.js.map +1 -0
  164. package/fesm2015/formio-angular.js +1073 -0
  165. package/fesm2015/formio-angular.js.map +1 -0
  166. package/formio-angular.d.ts +7 -0
  167. package/formio-angular.d.ts.map +1 -0
  168. package/formio-angular.metadata.json +1 -0
  169. package/{dist/angular-formio/formio-promise.service.d.ts → formio-promise.service.d.ts} +0 -0
  170. package/{dist/angular-formio/formio-promise.service.d.ts.map → formio-promise.service.d.ts.map} +0 -0
  171. package/{dist/angular-formio/formio.common.d.ts → formio.common.d.ts} +0 -0
  172. package/{dist/angular-formio/formio.common.d.ts.map → formio.common.d.ts.map} +0 -0
  173. package/formio.config.d.ts +7 -0
  174. package/formio.config.d.ts.map +1 -0
  175. package/formio.config.ngfactory.d.ts.map +1 -0
  176. package/formio.module.d.ts +3 -0
  177. package/{dist/angular-formio/formio.module.d.ts.map → formio.module.d.ts.map} +1 -1
  178. package/formio.module.ngfactory.d.ts.map +1 -0
  179. package/{dist/angular-formio/formio.service.d.ts → formio.service.d.ts} +0 -0
  180. package/{dist/angular-formio/formio.service.d.ts.map → formio.service.d.ts.map} +0 -0
  181. package/{dist/angular-formio/formio.utils.d.ts → formio.utils.d.ts} +0 -0
  182. package/{dist/angular-formio/formio.utils.d.ts.map → formio.utils.d.ts.map} +0 -0
  183. package/{dist/angular-formio/grid → grid}/GridBodyComponent.d.ts +0 -3
  184. package/grid/GridBodyComponent.d.ts.map +1 -0
  185. package/grid/GridBodyComponent.ngfactory.d.ts.map +1 -0
  186. package/{dist/angular-formio/grid → grid}/GridFooterComponent.d.ts +0 -3
  187. package/grid/GridFooterComponent.d.ts.map +1 -0
  188. package/grid/GridFooterComponent.ngfactory.d.ts.map +1 -0
  189. package/{dist/angular-formio/grid → grid}/GridHeaderComponent.d.ts +0 -3
  190. package/grid/GridHeaderComponent.d.ts.map +1 -0
  191. package/grid/GridHeaderComponent.ngfactory.d.ts.map +1 -0
  192. package/grid/form/FormGridBody.component.d.ts +6 -0
  193. package/{dist/angular-formio/grid → grid}/form/FormGridBody.component.d.ts.map +1 -1
  194. package/grid/form/FormGridBody.component.ngfactory.d.ts.map +1 -0
  195. package/grid/form/FormGridBody.component.scss.shim.ngstyle.d.ts.map +1 -0
  196. package/grid/form/FormGridFooter.component.d.ts +7 -0
  197. package/{dist/angular-formio/grid → grid}/form/FormGridFooter.component.d.ts.map +1 -1
  198. package/grid/form/FormGridFooter.component.ngfactory.d.ts.map +1 -0
  199. package/{dist/angular-formio/grid → grid}/form/FormGridHeader.component.d.ts +0 -3
  200. package/{dist/angular-formio/grid → grid}/form/FormGridHeader.component.d.ts.map +1 -1
  201. package/grid/form/FormGridHeader.component.ngfactory.d.ts.map +1 -0
  202. package/{dist/angular-formio/grid → grid}/form/index.d.ts +0 -0
  203. package/{dist/angular-formio/grid → grid}/form/index.d.ts.map +0 -0
  204. package/grid/form/time-since.pipe.d.ts +5 -0
  205. package/{dist/angular-formio/grid → grid}/form/time-since.pipe.d.ts.map +1 -1
  206. package/grid/form/time-since.pipe.ngfactory.d.ts.map +1 -0
  207. package/grid/formio-angular-grid.d.ts +6 -0
  208. package/{dist/angular-formio/grid → grid}/formio-angular-grid.d.ts.map +1 -1
  209. package/grid/formio-angular-grid.metadata.json +1 -0
  210. package/{dist/angular-formio/grid → grid}/grid.component.d.ts +0 -3
  211. package/grid/grid.component.d.ts.map +1 -0
  212. package/grid/grid.component.ngfactory.d.ts.map +1 -0
  213. package/grid/grid.component.scss.shim.ngstyle.d.ts.map +1 -0
  214. package/grid/grid.footer.scss.ngstyle.d.ts.map +1 -0
  215. package/grid/grid.module.d.ts +3 -0
  216. package/{dist/angular-formio/grid → grid}/grid.module.d.ts.map +1 -1
  217. package/grid/grid.module.ngfactory.d.ts.map +1 -0
  218. package/grid/grid.service.d.ts +7 -0
  219. package/grid/grid.service.d.ts.map +1 -0
  220. package/grid/grid.service.ngfactory.d.ts.map +1 -0
  221. package/{dist/angular-formio/grid → grid}/index.d.ts +0 -0
  222. package/{dist/angular-formio/grid → grid}/index.d.ts.map +0 -0
  223. package/{dist/angular-formio/grid → grid}/package.json +1 -0
  224. package/{dist/angular-formio/grid → grid}/public_api.d.ts +0 -0
  225. package/{dist/angular-formio/grid → grid}/public_api.d.ts.map +0 -0
  226. package/{dist/angular-formio/grid → grid}/submission/SubmissionGridBody.component.d.ts +0 -3
  227. package/{dist/angular-formio/grid → grid}/submission/SubmissionGridBody.component.d.ts.map +1 -1
  228. package/grid/submission/SubmissionGridBody.component.ngfactory.d.ts.map +1 -0
  229. package/grid/submission/SubmissionGridFooter.component.d.ts +7 -0
  230. package/{dist/angular-formio/grid → grid}/submission/SubmissionGridFooter.component.d.ts.map +1 -1
  231. package/grid/submission/SubmissionGridFooter.component.ngfactory.d.ts.map +1 -0
  232. package/{dist/angular-formio/grid → grid}/submission/SubmissionGridHeader.component.d.ts +0 -3
  233. package/grid/submission/SubmissionGridHeader.component.d.ts.map +1 -0
  234. package/grid/submission/SubmissionGridHeader.component.ngfactory.d.ts.map +1 -0
  235. package/{dist/angular-formio/grid → grid}/submission/index.d.ts +0 -0
  236. package/{dist/angular-formio/grid → grid}/submission/index.d.ts.map +0 -0
  237. package/{dist/angular-formio/grid → grid}/types/grid-column.d.ts +0 -0
  238. package/{dist/angular-formio/grid → grid}/types/grid-column.d.ts.map +0 -0
  239. package/{dist/angular-formio/grid → grid}/types/grid-footer-positions.d.ts +0 -0
  240. package/{dist/angular-formio/grid → grid}/types/grid-footer-positions.d.ts.map +0 -0
  241. package/{dist/angular-formio/grid → grid}/types/grid-header.d.ts +0 -0
  242. package/{dist/angular-formio/grid → grid}/types/grid-header.d.ts.map +0 -0
  243. package/{dist/angular-formio/index.d.ts → index.d.ts} +0 -0
  244. package/{dist/angular-formio/index.d.ts.map → index.d.ts.map} +0 -0
  245. package/manager/create/create.component.d.ts +6 -0
  246. package/{dist/angular-formio/manager → manager}/create/create.component.d.ts.map +1 -1
  247. package/{dist/angular-formio/manager → manager}/delete/delete.component.d.ts +0 -3
  248. package/manager/delete/delete.component.d.ts.map +1 -0
  249. package/{dist/angular-formio/manager → manager}/edit/edit.component.d.ts +0 -3
  250. package/manager/edit/edit.component.d.ts.map +1 -0
  251. package/{dist/angular-formio/manager → manager}/form/form.component.d.ts +0 -3
  252. package/manager/form/form.component.d.ts.map +1 -0
  253. package/{dist/angular-formio/manager → manager}/form-manager.config.d.ts +0 -3
  254. package/manager/form-manager.config.d.ts.map +1 -0
  255. package/manager/form-manager.module.d.ts +6 -0
  256. package/manager/form-manager.module.d.ts.map +1 -0
  257. package/{dist/angular-formio/manager → manager}/form-manager.routes.d.ts +0 -0
  258. package/{dist/angular-formio/manager → manager}/form-manager.routes.d.ts.map +0 -0
  259. package/{dist/angular-formio/manager → manager}/form-manager.service.d.ts +0 -3
  260. package/manager/form-manager.service.d.ts.map +1 -0
  261. package/manager/formio-angular-manager.d.ts +5 -0
  262. package/{dist/angular-formio/manager → manager}/formio-angular-manager.d.ts.map +1 -1
  263. package/manager/formio-angular-manager.metadata.json +1 -0
  264. package/{dist/angular-formio/manager → manager}/index/index.component.d.ts +0 -3
  265. package/manager/index/index.component.d.ts.map +1 -0
  266. package/{dist/angular-formio/manager → manager}/index.d.ts +0 -0
  267. package/{dist/angular-formio/manager → manager}/index.d.ts.map +0 -0
  268. package/{dist/angular-formio/manager → manager}/package.json +1 -0
  269. package/{dist/angular-formio/manager → manager}/public_api.d.ts +0 -0
  270. package/{dist/angular-formio/manager → manager}/public_api.d.ts.map +0 -0
  271. package/{dist/angular-formio/manager → manager}/submission/delete/delete.component.d.ts +0 -3
  272. package/{dist/angular-formio/manager → manager}/submission/delete/delete.component.d.ts.map +1 -1
  273. package/{dist/angular-formio/manager → manager}/submission/edit/edit.component.d.ts +0 -3
  274. package/{dist/angular-formio/manager → manager}/submission/edit/edit.component.d.ts.map +1 -1
  275. package/{dist/angular-formio/manager → manager}/submission/index/index.component.d.ts +0 -3
  276. package/{dist/angular-formio/manager → manager}/submission/index/index.component.d.ts.map +1 -1
  277. package/{dist/angular-formio/manager → manager}/submission/submission/submission.component.d.ts +0 -3
  278. package/{dist/angular-formio/manager → manager}/submission/submission/submission.component.d.ts.map +1 -1
  279. package/manager/submission/view/view.component.d.ts +6 -0
  280. package/{dist/angular-formio/manager → manager}/submission/view/view.component.d.ts.map +1 -1
  281. package/{dist/angular-formio/manager → manager}/view/view.component.d.ts +0 -3
  282. package/manager/view/view.component.d.ts.map +1 -0
  283. package/package.json +27 -51
  284. package/{dist/angular-formio/public-api.d.ts → public-api.d.ts} +0 -0
  285. package/{dist/angular-formio/public-api.d.ts.map → public-api.d.ts.map} +0 -0
  286. package/{dist/angular-formio/resource → resource}/create/create.component.d.ts +0 -3
  287. package/resource/create/create.component.d.ts.map +1 -0
  288. package/{dist/angular-formio/resource → resource}/delete/delete.component.d.ts +0 -3
  289. package/{dist/angular-formio/resource → resource}/delete/delete.component.d.ts.map +1 -1
  290. package/{dist/angular-formio/resource → resource}/edit/edit.component.d.ts +0 -3
  291. package/resource/edit/edit.component.d.ts.map +1 -0
  292. package/resource/formio-angular-resource.d.ts +5 -0
  293. package/{dist/angular-formio/resource → resource}/formio-angular-resource.d.ts.map +1 -1
  294. package/resource/formio-angular-resource.metadata.json +1 -0
  295. package/{dist/angular-formio/resource → resource}/index/index.component.d.ts +0 -3
  296. package/resource/index/index.component.d.ts.map +1 -0
  297. package/{dist/angular-formio/resource → resource}/index.d.ts +0 -0
  298. package/{dist/angular-formio/resource → resource}/index.d.ts.map +0 -0
  299. package/{dist/angular-formio/resource → resource}/package.json +1 -0
  300. package/{dist/angular-formio/resource → resource}/public_api.d.ts +0 -0
  301. package/{dist/angular-formio/resource → resource}/public_api.d.ts.map +0 -0
  302. package/{dist/angular-formio/resource → resource}/resource.component.d.ts +0 -3
  303. package/{dist/angular-formio/resource → resource}/resource.component.d.ts.map +1 -1
  304. package/{dist/angular-formio/resource → resource}/resource.config.d.ts +0 -3
  305. package/resource/resource.config.d.ts.map +1 -0
  306. package/resource/resource.module.d.ts +6 -0
  307. package/resource/resource.module.d.ts.map +1 -0
  308. package/{dist/angular-formio/resource → resource}/resource.routes.d.ts +0 -0
  309. package/{dist/angular-formio/resource → resource}/resource.routes.d.ts.map +0 -0
  310. package/{dist/angular-formio/resource → resource}/resource.service.d.ts +0 -3
  311. package/resource/resource.service.d.ts.map +1 -0
  312. package/{dist/angular-formio/resource → resource}/resources.service.d.ts +0 -3
  313. package/resource/resources.service.d.ts.map +1 -0
  314. package/{dist/angular-formio/resource → resource}/view/view.component.d.ts +0 -3
  315. package/{dist/angular-formio/resource → resource}/view/view.component.d.ts.map +1 -1
  316. package/{dist/angular-formio/types → types}/alerts-position.d.ts +0 -0
  317. package/{dist/angular-formio/types → types}/alerts-position.d.ts.map +0 -0
  318. package/{dist/angular-formio/types → types}/formio-metadata.d.ts +0 -0
  319. package/{dist/angular-formio/types → types}/formio-metadata.d.ts.map +0 -0
  320. package/{dist/angular-formio/types → types}/formio-submission.d.ts +0 -0
  321. package/{dist/angular-formio/types → types}/formio-submission.d.ts.map +0 -0
  322. package/.dockerignore +0 -5
  323. package/.editorconfig +0 -13
  324. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
  325. package/.github/ISSUE_TEMPLATE/custom-components-support-request.md +0 -15
  326. package/.github/ISSUE_TEMPLATE/question.md +0 -8
  327. package/.travis.yml +0 -4
  328. package/.yo-rc.json +0 -7
  329. package/CHANGELOG.md +0 -1004
  330. package/Dockerfile +0 -20
  331. package/LICENSE +0 -21
  332. package/angular.json +0 -51
  333. package/bs-config.json +0 -11
  334. package/dist/angular-formio/FormioBaseComponent.d.ts.map +0 -1
  335. package/dist/angular-formio/README.md +0 -24
  336. package/dist/angular-formio/auth/auth.component.d.ts +0 -6
  337. package/dist/angular-formio/auth/auth.config.d.ts.map +0 -1
  338. package/dist/angular-formio/auth/auth.module.d.ts +0 -17
  339. package/dist/angular-formio/auth/auth.module.d.ts.map +0 -1
  340. package/dist/angular-formio/auth/auth.service.d.ts.map +0 -1
  341. package/dist/angular-formio/auth/formio-angular-auth.d.ts +0 -6
  342. package/dist/angular-formio/auth/login/login.component.d.ts +0 -9
  343. package/dist/angular-formio/auth/register/register.component.d.ts +0 -9
  344. package/dist/angular-formio/auth/resetpass/resetpass.component.d.ts +0 -9
  345. package/dist/angular-formio/bundles/formio-angular-auth.umd.js +0 -421
  346. package/dist/angular-formio/bundles/formio-angular-auth.umd.js.map +0 -1
  347. package/dist/angular-formio/bundles/formio-angular-grid.umd.js +0 -1725
  348. package/dist/angular-formio/bundles/formio-angular-grid.umd.js.map +0 -1
  349. package/dist/angular-formio/bundles/formio-angular-manager.umd.js +0 -1648
  350. package/dist/angular-formio/bundles/formio-angular-manager.umd.js.map +0 -1
  351. package/dist/angular-formio/bundles/formio-angular-resource.umd.js +0 -720
  352. package/dist/angular-formio/bundles/formio-angular-resource.umd.js.map +0 -1
  353. package/dist/angular-formio/bundles/formio-angular.umd.js +0 -1729
  354. package/dist/angular-formio/bundles/formio-angular.umd.js.map +0 -1
  355. package/dist/angular-formio/components/alerts/formio.alerts.component.d.ts +0 -12
  356. package/dist/angular-formio/components/alerts/parse-html-content.pipe.d.ts +0 -8
  357. package/dist/angular-formio/components/formbuilder/formbuilder.component.d.ts.map +0 -1
  358. package/dist/angular-formio/components/loader/formio.loader.component.d.ts +0 -7
  359. package/dist/angular-formio/components/loader/formio.loader.component.d.ts.map +0 -1
  360. package/dist/angular-formio/custom-component/custom-tags.service.d.ts +0 -8
  361. package/dist/angular-formio/custom-component/custom-tags.service.d.ts.map +0 -1
  362. package/dist/angular-formio/esm2015/FormioBaseComponent.js +0 -497
  363. package/dist/angular-formio/esm2015/auth/auth.component.js +0 -39
  364. package/dist/angular-formio/esm2015/auth/auth.config.js +0 -15
  365. package/dist/angular-formio/esm2015/auth/auth.module.js +0 -49
  366. package/dist/angular-formio/esm2015/auth/auth.service.js +0 -159
  367. package/dist/angular-formio/esm2015/auth/login/login.component.js +0 -24
  368. package/dist/angular-formio/esm2015/auth/register/register.component.js +0 -24
  369. package/dist/angular-formio/esm2015/auth/resetpass/resetpass.component.js +0 -24
  370. package/dist/angular-formio/esm2015/components/alerts/formio.alerts.component.js +0 -49
  371. package/dist/angular-formio/esm2015/components/alerts/parse-html-content.pipe.js +0 -19
  372. package/dist/angular-formio/esm2015/components/formbuilder/formbuilder.component.js +0 -203
  373. package/dist/angular-formio/esm2015/components/formio/formio.component.js +0 -87
  374. package/dist/angular-formio/esm2015/components/loader/formio.loader.component.js +0 -27
  375. package/dist/angular-formio/esm2015/custom-component/custom-tags.service.js +0 -16
  376. package/dist/angular-formio/esm2015/formio-angular.js +0 -5
  377. package/dist/angular-formio/esm2015/formio.config.js +0 -14
  378. package/dist/angular-formio/esm2015/formio.module.js +0 -61
  379. package/dist/angular-formio/esm2015/grid/GridBodyComponent.js +0 -86
  380. package/dist/angular-formio/esm2015/grid/GridFooterComponent.js +0 -41
  381. package/dist/angular-formio/esm2015/grid/GridHeaderComponent.js +0 -35
  382. package/dist/angular-formio/esm2015/grid/form/FormGridBody.component.js +0 -130
  383. package/dist/angular-formio/esm2015/grid/form/FormGridFooter.component.js +0 -118
  384. package/dist/angular-formio/esm2015/grid/form/FormGridHeader.component.js +0 -65
  385. package/dist/angular-formio/esm2015/grid/form/time-since.pipe.js +0 -37
  386. package/dist/angular-formio/esm2015/grid/formio-angular-grid.js +0 -5
  387. package/dist/angular-formio/esm2015/grid/grid.component.js +0 -302
  388. package/dist/angular-formio/esm2015/grid/grid.module.js +0 -90
  389. package/dist/angular-formio/esm2015/grid/grid.service.js +0 -18
  390. package/dist/angular-formio/esm2015/grid/submission/SubmissionGridBody.component.js +0 -75
  391. package/dist/angular-formio/esm2015/grid/submission/SubmissionGridFooter.component.js +0 -107
  392. package/dist/angular-formio/esm2015/grid/submission/SubmissionGridHeader.component.js +0 -99
  393. package/dist/angular-formio/esm2015/manager/create/create.component.js +0 -68
  394. package/dist/angular-formio/esm2015/manager/delete/delete.component.js +0 -56
  395. package/dist/angular-formio/esm2015/manager/edit/edit.component.js +0 -170
  396. package/dist/angular-formio/esm2015/manager/form/form.component.js +0 -192
  397. package/dist/angular-formio/esm2015/manager/form-manager.config.js +0 -15
  398. package/dist/angular-formio/esm2015/manager/form-manager.module.js +0 -86
  399. package/dist/angular-formio/esm2015/manager/form-manager.service.js +0 -178
  400. package/dist/angular-formio/esm2015/manager/index/index.component.js +0 -130
  401. package/dist/angular-formio/esm2015/manager/submission/delete/delete.component.js +0 -47
  402. package/dist/angular-formio/esm2015/manager/submission/edit/edit.component.js +0 -30
  403. package/dist/angular-formio/esm2015/manager/submission/index/index.component.js +0 -30
  404. package/dist/angular-formio/esm2015/manager/submission/submission/submission.component.js +0 -75
  405. package/dist/angular-formio/esm2015/manager/submission/view/view.component.js +0 -24
  406. package/dist/angular-formio/esm2015/manager/view/view.component.js +0 -57
  407. package/dist/angular-formio/esm2015/resource/create/create.component.js +0 -61
  408. package/dist/angular-formio/esm2015/resource/delete/delete.component.js +0 -42
  409. package/dist/angular-formio/esm2015/resource/edit/edit.component.js +0 -44
  410. package/dist/angular-formio/esm2015/resource/index/index.component.js +0 -72
  411. package/dist/angular-formio/esm2015/resource/resource.component.js +0 -83
  412. package/dist/angular-formio/esm2015/resource/resource.config.js +0 -15
  413. package/dist/angular-formio/esm2015/resource/resource.module.js +0 -65
  414. package/dist/angular-formio/esm2015/resource/resource.service.js +0 -186
  415. package/dist/angular-formio/esm2015/resource/resources.service.js +0 -22
  416. package/dist/angular-formio/esm2015/resource/view/view.component.js +0 -29
  417. package/dist/angular-formio/fesm2015/formio-angular-auth.js.map +0 -1
  418. package/dist/angular-formio/fesm2015/formio-angular-grid.js +0 -1175
  419. package/dist/angular-formio/fesm2015/formio-angular-grid.js.map +0 -1
  420. package/dist/angular-formio/fesm2015/formio-angular-manager.js +0 -1145
  421. package/dist/angular-formio/fesm2015/formio-angular-manager.js.map +0 -1
  422. package/dist/angular-formio/fesm2015/formio-angular-resource.js +0 -612
  423. package/dist/angular-formio/fesm2015/formio-angular-resource.js.map +0 -1
  424. package/dist/angular-formio/fesm2015/formio-angular.js +0 -1232
  425. package/dist/angular-formio/fesm2015/formio-angular.js.map +0 -1
  426. package/dist/angular-formio/formio-angular.d.ts +0 -6
  427. package/dist/angular-formio/formio-angular.d.ts.map +0 -1
  428. package/dist/angular-formio/formio.config.d.ts +0 -10
  429. package/dist/angular-formio/formio.config.d.ts.map +0 -1
  430. package/dist/angular-formio/formio.module.d.ts +0 -14
  431. package/dist/angular-formio/grid/GridBodyComponent.d.ts.map +0 -1
  432. package/dist/angular-formio/grid/GridFooterComponent.d.ts.map +0 -1
  433. package/dist/angular-formio/grid/GridHeaderComponent.d.ts.map +0 -1
  434. package/dist/angular-formio/grid/form/FormGridBody.component.d.ts +0 -9
  435. package/dist/angular-formio/grid/form/FormGridFooter.component.d.ts +0 -10
  436. package/dist/angular-formio/grid/form/time-since.pipe.d.ts +0 -8
  437. package/dist/angular-formio/grid/formio-angular-grid.d.ts +0 -6
  438. package/dist/angular-formio/grid/grid.component.d.ts.map +0 -1
  439. package/dist/angular-formio/grid/grid.module.d.ts +0 -23
  440. package/dist/angular-formio/grid/grid.service.d.ts +0 -10
  441. package/dist/angular-formio/grid/grid.service.d.ts.map +0 -1
  442. package/dist/angular-formio/grid/submission/SubmissionGridFooter.component.d.ts +0 -10
  443. package/dist/angular-formio/grid/submission/SubmissionGridHeader.component.d.ts.map +0 -1
  444. package/dist/angular-formio/manager/create/create.component.d.ts +0 -9
  445. package/dist/angular-formio/manager/delete/delete.component.d.ts.map +0 -1
  446. package/dist/angular-formio/manager/edit/edit.component.d.ts.map +0 -1
  447. package/dist/angular-formio/manager/form/form.component.d.ts.map +0 -1
  448. package/dist/angular-formio/manager/form-manager.config.d.ts.map +0 -1
  449. package/dist/angular-formio/manager/form-manager.module.d.ts +0 -28
  450. package/dist/angular-formio/manager/form-manager.module.d.ts.map +0 -1
  451. package/dist/angular-formio/manager/form-manager.service.d.ts.map +0 -1
  452. package/dist/angular-formio/manager/formio-angular-manager.d.ts +0 -6
  453. package/dist/angular-formio/manager/index/index.component.d.ts.map +0 -1
  454. package/dist/angular-formio/manager/submission/view/view.component.d.ts +0 -9
  455. package/dist/angular-formio/manager/view/view.component.d.ts.map +0 -1
  456. package/dist/angular-formio/package.json +0 -49
  457. package/dist/angular-formio/resource/create/create.component.d.ts.map +0 -1
  458. package/dist/angular-formio/resource/edit/edit.component.d.ts.map +0 -1
  459. package/dist/angular-formio/resource/formio-angular-resource.d.ts +0 -6
  460. package/dist/angular-formio/resource/index/index.component.d.ts.map +0 -1
  461. package/dist/angular-formio/resource/resource.config.d.ts.map +0 -1
  462. package/dist/angular-formio/resource/resource.module.d.ts +0 -20
  463. package/dist/angular-formio/resource/resource.module.d.ts.map +0 -1
  464. package/dist/angular-formio/resource/resource.service.d.ts.map +0 -1
  465. package/dist/angular-formio/resource/resources.service.d.ts.map +0 -1
  466. package/projects/angular-formio/README.md +0 -24
  467. package/projects/angular-formio/auth/package.json +0 -10
  468. package/projects/angular-formio/auth/src/auth.component.html +0 -12
  469. package/projects/angular-formio/auth/src/auth.component.ts +0 -5
  470. package/projects/angular-formio/auth/src/auth.config.ts +0 -72
  471. package/projects/angular-formio/auth/src/auth.module.ts +0 -33
  472. package/projects/angular-formio/auth/src/auth.routes.ts +0 -34
  473. package/projects/angular-formio/auth/src/auth.service.ts +0 -201
  474. package/projects/angular-formio/auth/src/index.ts +0 -8
  475. package/projects/angular-formio/auth/src/login/login.component.html +0 -1
  476. package/projects/angular-formio/auth/src/login/login.component.ts +0 -8
  477. package/projects/angular-formio/auth/src/public_api.ts +0 -5
  478. package/projects/angular-formio/auth/src/register/register.component.html +0 -1
  479. package/projects/angular-formio/auth/src/register/register.component.ts +0 -8
  480. package/projects/angular-formio/auth/src/resetpass/resetpass.component.html +0 -1
  481. package/projects/angular-formio/auth/src/resetpass/resetpass.component.ts +0 -8
  482. package/projects/angular-formio/grid/package.json +0 -11
  483. package/projects/angular-formio/grid/src/GridBodyComponent.ts +0 -80
  484. package/projects/angular-formio/grid/src/GridFooterComponent.ts +0 -25
  485. package/projects/angular-formio/grid/src/GridHeaderComponent.ts +0 -25
  486. package/projects/angular-formio/grid/src/form/FormGridBody.component.html +0 -23
  487. package/projects/angular-formio/grid/src/form/FormGridBody.component.scss +0 -4
  488. package/projects/angular-formio/grid/src/form/FormGridBody.component.ts +0 -15
  489. package/projects/angular-formio/grid/src/form/FormGridFooter.component.html +0 -21
  490. package/projects/angular-formio/grid/src/form/FormGridFooter.component.ts +0 -23
  491. package/projects/angular-formio/grid/src/form/FormGridHeader.component.html +0 -18
  492. package/projects/angular-formio/grid/src/form/FormGridHeader.component.ts +0 -24
  493. package/projects/angular-formio/grid/src/form/index.ts +0 -8
  494. package/projects/angular-formio/grid/src/form/time-since.pipe.ts +0 -31
  495. package/projects/angular-formio/grid/src/grid.component.html +0 -18
  496. package/projects/angular-formio/grid/src/grid.component.scss +0 -9
  497. package/projects/angular-formio/grid/src/grid.component.ts +0 -242
  498. package/projects/angular-formio/grid/src/grid.footer.scss +0 -14
  499. package/projects/angular-formio/grid/src/grid.module.ts +0 -57
  500. package/projects/angular-formio/grid/src/grid.service.ts +0 -16
  501. package/projects/angular-formio/grid/src/index.ts +0 -12
  502. package/projects/angular-formio/grid/src/public_api.ts +0 -5
  503. package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.html +0 -7
  504. package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.ts +0 -39
  505. package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.html +0 -18
  506. package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.ts +0 -20
  507. package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.html +0 -11
  508. package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.ts +0 -72
  509. package/projects/angular-formio/grid/src/submission/index.ts +0 -8
  510. package/projects/angular-formio/grid/src/types/grid-column.ts +0 -7
  511. package/projects/angular-formio/grid/src/types/grid-footer-positions.ts +0 -5
  512. package/projects/angular-formio/grid/src/types/grid-header.ts +0 -14
  513. package/projects/angular-formio/karma.conf.js +0 -32
  514. package/projects/angular-formio/manager/package.json +0 -15
  515. package/projects/angular-formio/manager/src/create/create.component.ts +0 -11
  516. package/projects/angular-formio/manager/src/delete/delete.component.html +0 -6
  517. package/projects/angular-formio/manager/src/delete/delete.component.ts +0 -37
  518. package/projects/angular-formio/manager/src/edit/edit.component.html +0 -19
  519. package/projects/angular-formio/manager/src/edit/edit.component.ts +0 -107
  520. package/projects/angular-formio/manager/src/form/form.component.html +0 -32
  521. package/projects/angular-formio/manager/src/form/form.component.ts +0 -73
  522. package/projects/angular-formio/manager/src/form-manager.config.ts +0 -26
  523. package/projects/angular-formio/manager/src/form-manager.module.ts +0 -54
  524. package/projects/angular-formio/manager/src/form-manager.routes.ts +0 -75
  525. package/projects/angular-formio/manager/src/form-manager.service.ts +0 -195
  526. package/projects/angular-formio/manager/src/index/index.component.html +0 -14
  527. package/projects/angular-formio/manager/src/index/index.component.scss +0 -22
  528. package/projects/angular-formio/manager/src/index/index.component.ts +0 -84
  529. package/projects/angular-formio/manager/src/index.ts +0 -16
  530. package/projects/angular-formio/manager/src/public_api.ts +0 -5
  531. package/projects/angular-formio/manager/src/submission/delete/delete.component.html +0 -6
  532. package/projects/angular-formio/manager/src/submission/delete/delete.component.ts +0 -26
  533. package/projects/angular-formio/manager/src/submission/edit/edit.component.html +0 -7
  534. package/projects/angular-formio/manager/src/submission/edit/edit.component.ts +0 -18
  535. package/projects/angular-formio/manager/src/submission/index/index.component.html +0 -1
  536. package/projects/angular-formio/manager/src/submission/index/index.component.ts +0 -18
  537. package/projects/angular-formio/manager/src/submission/submission/submission.component.html +0 -8
  538. package/projects/angular-formio/manager/src/submission/submission/submission.component.ts +0 -24
  539. package/projects/angular-formio/manager/src/submission/view/view.component.html +0 -7
  540. package/projects/angular-formio/manager/src/submission/view/view.component.ts +0 -9
  541. package/projects/angular-formio/manager/src/view/view.component.html +0 -10
  542. package/projects/angular-formio/manager/src/view/view.component.ts +0 -41
  543. package/projects/angular-formio/ng-package.json +0 -14
  544. package/projects/angular-formio/package.json +0 -39
  545. package/projects/angular-formio/resource/package.json +0 -11
  546. package/projects/angular-formio/resource/src/create/create.component.html +0 -13
  547. package/projects/angular-formio/resource/src/create/create.component.scss +0 -3
  548. package/projects/angular-formio/resource/src/create/create.component.ts +0 -37
  549. package/projects/angular-formio/resource/src/delete/delete.component.html +0 -5
  550. package/projects/angular-formio/resource/src/delete/delete.component.ts +0 -24
  551. package/projects/angular-formio/resource/src/edit/edit.component.html +0 -6
  552. package/projects/angular-formio/resource/src/edit/edit.component.ts +0 -33
  553. package/projects/angular-formio/resource/src/index/index.component.html +0 -10
  554. package/projects/angular-formio/resource/src/index/index.component.ts +0 -66
  555. package/projects/angular-formio/resource/src/index.js +0 -24
  556. package/projects/angular-formio/resource/src/index.ts +0 -11
  557. package/projects/angular-formio/resource/src/public_api.ts +0 -5
  558. package/projects/angular-formio/resource/src/resource.component.html +0 -7
  559. package/projects/angular-formio/resource/src/resource.component.ts +0 -48
  560. package/projects/angular-formio/resource/src/resource.config.ts +0 -17
  561. package/projects/angular-formio/resource/src/resource.module.ts +0 -43
  562. package/projects/angular-formio/resource/src/resource.routes.ts +0 -43
  563. package/projects/angular-formio/resource/src/resource.service.ts +0 -232
  564. package/projects/angular-formio/resource/src/resources.service.ts +0 -24
  565. package/projects/angular-formio/resource/src/view/view.component.html +0 -6
  566. package/projects/angular-formio/resource/src/view/view.component.ts +0 -19
  567. package/projects/angular-formio/src/FormioBaseComponent.ts +0 -507
  568. package/projects/angular-formio/src/components/alerts/formio.alerts.component.html +0 -3
  569. package/projects/angular-formio/src/components/alerts/formio.alerts.component.ts +0 -19
  570. package/projects/angular-formio/src/components/alerts/formio.alerts.ts +0 -21
  571. package/projects/angular-formio/src/components/alerts/parse-html-content.pipe.ts +0 -15
  572. package/projects/angular-formio/src/components/formbuilder/formbuilder.component.html +0 -1
  573. package/projects/angular-formio/src/components/formbuilder/formbuilder.component.ts +0 -216
  574. package/projects/angular-formio/src/components/formio/formio.component.html +0 -8
  575. package/projects/angular-formio/src/components/formio/formio.component.ts +0 -33
  576. package/projects/angular-formio/src/components/loader/formio.loader.component.html +0 -3
  577. package/projects/angular-formio/src/components/loader/formio.loader.component.scss +0 -26
  578. package/projects/angular-formio/src/components/loader/formio.loader.component.ts +0 -10
  579. package/projects/angular-formio/src/core.ts +0 -21
  580. package/projects/angular-formio/src/custom-component/create-custom-component.ts +0 -173
  581. package/projects/angular-formio/src/custom-component/custom-tags.service.ts +0 -10
  582. package/projects/angular-formio/src/custom-component/register-custom-component.ts +0 -41
  583. package/projects/angular-formio/src/elements.common.ts +0 -31
  584. package/projects/angular-formio/src/formio-promise.service.ts +0 -36
  585. package/projects/angular-formio/src/formio.common.ts +0 -81
  586. package/projects/angular-formio/src/formio.config.ts +0 -9
  587. package/projects/angular-formio/src/formio.module.ts +0 -39
  588. package/projects/angular-formio/src/formio.service.ts +0 -57
  589. package/projects/angular-formio/src/formio.utils.ts +0 -23
  590. package/projects/angular-formio/src/index.ts +0 -5
  591. package/projects/angular-formio/src/public-api.ts +0 -5
  592. package/projects/angular-formio/src/test.ts +0 -26
  593. package/projects/angular-formio/src/types/alerts-position.ts +0 -6
  594. package/projects/angular-formio/src/types/formio-metadata.ts +0 -10
  595. package/projects/angular-formio/src/types/formio-submission.ts +0 -20
  596. package/projects/angular-formio/tsconfig.lib.json +0 -27
  597. package/projects/angular-formio/tsconfig.lib.prod.json +0 -8
  598. package/projects/angular-formio/tsconfig.spec.json +0 -17
  599. package/projects/angular-formio/tslint.json +0 -17
  600. package/tsconfig.json +0 -28
  601. package/tslint.json +0 -140
@@ -1,1725 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), require('@formio/angular'), require('lodash'), require('formiojs'), require('ngx-bootstrap/pagination')) :
3
- typeof define === 'function' && define.amd ? define('@formio/angular/grid', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/router', '@formio/angular', 'lodash', 'formiojs', 'ngx-bootstrap/pagination'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.formio = global.formio || {}, global.formio.angular = global.formio.angular || {}, global.formio.angular.grid = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.router, global.formio.angular, global._, global.formiojs, global["ngx-bootstrap/pagination"]));
5
- })(this, (function (exports, i0, i1, i3, i2, i1$1, lodash, formiojs, i2$1) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
28
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
30
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
31
-
32
- var GridFooterPositions;
33
- (function (GridFooterPositions) {
34
- GridFooterPositions[GridFooterPositions["bottom"] = 0] = "bottom";
35
- GridFooterPositions[GridFooterPositions["top"] = 1] = "top";
36
- GridFooterPositions[GridFooterPositions["both"] = 2] = "both";
37
- })(GridFooterPositions || (GridFooterPositions = {}));
38
-
39
- /*! *****************************************************************************
40
- Copyright (c) Microsoft Corporation.
41
-
42
- Permission to use, copy, modify, and/or distribute this software for any
43
- purpose with or without fee is hereby granted.
44
-
45
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
46
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
47
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
48
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
49
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
50
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
51
- PERFORMANCE OF THIS SOFTWARE.
52
- ***************************************************************************** */
53
- /* global Reflect, Promise */
54
- var extendStatics = function (d, b) {
55
- extendStatics = Object.setPrototypeOf ||
56
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
57
- function (d, b) { for (var p in b)
58
- if (Object.prototype.hasOwnProperty.call(b, p))
59
- d[p] = b[p]; };
60
- return extendStatics(d, b);
61
- };
62
- function __extends(d, b) {
63
- if (typeof b !== "function" && b !== null)
64
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
65
- extendStatics(d, b);
66
- function __() { this.constructor = d; }
67
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
68
- }
69
- var __assign = function () {
70
- __assign = Object.assign || function __assign(t) {
71
- for (var s, i = 1, n = arguments.length; i < n; i++) {
72
- s = arguments[i];
73
- for (var p in s)
74
- if (Object.prototype.hasOwnProperty.call(s, p))
75
- t[p] = s[p];
76
- }
77
- return t;
78
- };
79
- return __assign.apply(this, arguments);
80
- };
81
- function __rest(s, e) {
82
- var t = {};
83
- for (var p in s)
84
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
85
- t[p] = s[p];
86
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
87
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
88
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
89
- t[p[i]] = s[p[i]];
90
- }
91
- return t;
92
- }
93
- function __decorate(decorators, target, key, desc) {
94
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
95
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
96
- r = Reflect.decorate(decorators, target, key, desc);
97
- else
98
- for (var i = decorators.length - 1; i >= 0; i--)
99
- if (d = decorators[i])
100
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
101
- return c > 3 && r && Object.defineProperty(target, key, r), r;
102
- }
103
- function __param(paramIndex, decorator) {
104
- return function (target, key) { decorator(target, key, paramIndex); };
105
- }
106
- function __metadata(metadataKey, metadataValue) {
107
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
108
- return Reflect.metadata(metadataKey, metadataValue);
109
- }
110
- function __awaiter(thisArg, _arguments, P, generator) {
111
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
112
- return new (P || (P = Promise))(function (resolve, reject) {
113
- function fulfilled(value) { try {
114
- step(generator.next(value));
115
- }
116
- catch (e) {
117
- reject(e);
118
- } }
119
- function rejected(value) { try {
120
- step(generator["throw"](value));
121
- }
122
- catch (e) {
123
- reject(e);
124
- } }
125
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
126
- step((generator = generator.apply(thisArg, _arguments || [])).next());
127
- });
128
- }
129
- function __generator(thisArg, body) {
130
- var _ = { label: 0, sent: function () { if (t[0] & 1)
131
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
132
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
133
- function verb(n) { return function (v) { return step([n, v]); }; }
134
- function step(op) {
135
- if (f)
136
- throw new TypeError("Generator is already executing.");
137
- while (_)
138
- try {
139
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
140
- return t;
141
- if (y = 0, t)
142
- op = [op[0] & 2, t.value];
143
- switch (op[0]) {
144
- case 0:
145
- case 1:
146
- t = op;
147
- break;
148
- case 4:
149
- _.label++;
150
- return { value: op[1], done: false };
151
- case 5:
152
- _.label++;
153
- y = op[1];
154
- op = [0];
155
- continue;
156
- case 7:
157
- op = _.ops.pop();
158
- _.trys.pop();
159
- continue;
160
- default:
161
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
162
- _ = 0;
163
- continue;
164
- }
165
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
166
- _.label = op[1];
167
- break;
168
- }
169
- if (op[0] === 6 && _.label < t[1]) {
170
- _.label = t[1];
171
- t = op;
172
- break;
173
- }
174
- if (t && _.label < t[2]) {
175
- _.label = t[2];
176
- _.ops.push(op);
177
- break;
178
- }
179
- if (t[2])
180
- _.ops.pop();
181
- _.trys.pop();
182
- continue;
183
- }
184
- op = body.call(thisArg, _);
185
- }
186
- catch (e) {
187
- op = [6, e];
188
- y = 0;
189
- }
190
- finally {
191
- f = t = 0;
192
- }
193
- if (op[0] & 5)
194
- throw op[1];
195
- return { value: op[0] ? op[1] : void 0, done: true };
196
- }
197
- }
198
- var __createBinding = Object.create ? (function (o, m, k, k2) {
199
- if (k2 === undefined)
200
- k2 = k;
201
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
202
- }) : (function (o, m, k, k2) {
203
- if (k2 === undefined)
204
- k2 = k;
205
- o[k2] = m[k];
206
- });
207
- function __exportStar(m, o) {
208
- for (var p in m)
209
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
210
- __createBinding(o, m, p);
211
- }
212
- function __values(o) {
213
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
214
- if (m)
215
- return m.call(o);
216
- if (o && typeof o.length === "number")
217
- return {
218
- next: function () {
219
- if (o && i >= o.length)
220
- o = void 0;
221
- return { value: o && o[i++], done: !o };
222
- }
223
- };
224
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
225
- }
226
- function __read(o, n) {
227
- var m = typeof Symbol === "function" && o[Symbol.iterator];
228
- if (!m)
229
- return o;
230
- var i = m.call(o), r, ar = [], e;
231
- try {
232
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
233
- ar.push(r.value);
234
- }
235
- catch (error) {
236
- e = { error: error };
237
- }
238
- finally {
239
- try {
240
- if (r && !r.done && (m = i["return"]))
241
- m.call(i);
242
- }
243
- finally {
244
- if (e)
245
- throw e.error;
246
- }
247
- }
248
- return ar;
249
- }
250
- /** @deprecated */
251
- function __spread() {
252
- for (var ar = [], i = 0; i < arguments.length; i++)
253
- ar = ar.concat(__read(arguments[i]));
254
- return ar;
255
- }
256
- /** @deprecated */
257
- function __spreadArrays() {
258
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
259
- s += arguments[i].length;
260
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
261
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
262
- r[k] = a[j];
263
- return r;
264
- }
265
- function __spreadArray(to, from, pack) {
266
- if (pack || arguments.length === 2)
267
- for (var i = 0, l = from.length, ar; i < l; i++) {
268
- if (ar || !(i in from)) {
269
- if (!ar)
270
- ar = Array.prototype.slice.call(from, 0, i);
271
- ar[i] = from[i];
272
- }
273
- }
274
- return to.concat(ar || Array.prototype.slice.call(from));
275
- }
276
- function __await(v) {
277
- return this instanceof __await ? (this.v = v, this) : new __await(v);
278
- }
279
- function __asyncGenerator(thisArg, _arguments, generator) {
280
- if (!Symbol.asyncIterator)
281
- throw new TypeError("Symbol.asyncIterator is not defined.");
282
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
283
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
284
- function verb(n) { if (g[n])
285
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
286
- function resume(n, v) { try {
287
- step(g[n](v));
288
- }
289
- catch (e) {
290
- settle(q[0][3], e);
291
- } }
292
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
293
- function fulfill(value) { resume("next", value); }
294
- function reject(value) { resume("throw", value); }
295
- function settle(f, v) { if (f(v), q.shift(), q.length)
296
- resume(q[0][0], q[0][1]); }
297
- }
298
- function __asyncDelegator(o) {
299
- var i, p;
300
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
301
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
302
- }
303
- function __asyncValues(o) {
304
- if (!Symbol.asyncIterator)
305
- throw new TypeError("Symbol.asyncIterator is not defined.");
306
- var m = o[Symbol.asyncIterator], i;
307
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
308
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
309
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
310
- }
311
- function __makeTemplateObject(cooked, raw) {
312
- if (Object.defineProperty) {
313
- Object.defineProperty(cooked, "raw", { value: raw });
314
- }
315
- else {
316
- cooked.raw = raw;
317
- }
318
- return cooked;
319
- }
320
- ;
321
- var __setModuleDefault = Object.create ? (function (o, v) {
322
- Object.defineProperty(o, "default", { enumerable: true, value: v });
323
- }) : function (o, v) {
324
- o["default"] = v;
325
- };
326
- function __importStar(mod) {
327
- if (mod && mod.__esModule)
328
- return mod;
329
- var result = {};
330
- if (mod != null)
331
- for (var k in mod)
332
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
333
- __createBinding(result, mod, k);
334
- __setModuleDefault(result, mod);
335
- return result;
336
- }
337
- function __importDefault(mod) {
338
- return (mod && mod.__esModule) ? mod : { default: mod };
339
- }
340
- function __classPrivateFieldGet(receiver, state, kind, f) {
341
- if (kind === "a" && !f)
342
- throw new TypeError("Private accessor was defined without a getter");
343
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
344
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
345
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
346
- }
347
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
348
- if (kind === "m")
349
- throw new TypeError("Private method is not writable");
350
- if (kind === "a" && !f)
351
- throw new TypeError("Private accessor was defined without a setter");
352
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
353
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
354
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
355
- }
356
-
357
- var GridHeaderComponent = /** @class */ (function () {
358
- function GridHeaderComponent() {
359
- this.headers = [];
360
- this.sort = new i0.EventEmitter();
361
- }
362
- Object.defineProperty(GridHeaderComponent.prototype, "numHeaders", {
363
- get: function () {
364
- return this.headers.length;
365
- },
366
- enumerable: false,
367
- configurable: true
368
- });
369
- GridHeaderComponent.prototype.load = function (formio, query, columns) {
370
- return Promise.resolve([]);
371
- };
372
- return GridHeaderComponent;
373
- }());
374
- GridHeaderComponent.ɵfac = function GridHeaderComponent_Factory(t) { return new (t || GridHeaderComponent)(); };
375
- GridHeaderComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: GridHeaderComponent, selectors: [["ng-component"]], viewQuery: function GridHeaderComponent_Query(rf, ctx) {
376
- if (rf & 1) {
377
- i0__namespace.ɵɵviewQuery(i0.TemplateRef, 7);
378
- }
379
- if (rf & 2) {
380
- var _t = void 0;
381
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.template = _t.first);
382
- }
383
- }, inputs: { actionAllowed: "actionAllowed" }, outputs: { sort: "sort" }, decls: 0, vars: 0, template: function GridHeaderComponent_Template(rf, ctx) { }, encapsulation: 2 });
384
- (function () {
385
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(GridHeaderComponent, [{
386
- type: i0.Component,
387
- args: [{
388
- template: ''
389
- }]
390
- }], function () { return []; }, { actionAllowed: [{
391
- type: i0.Input
392
- }], sort: [{
393
- type: i0.Output
394
- }], template: [{
395
- type: i0.ViewChild,
396
- args: [i0.TemplateRef, { static: true }]
397
- }] });
398
- })();
399
-
400
- var SortType;
401
- (function (SortType) {
402
- SortType["ASC"] = "asc";
403
- SortType["DESC"] = "desc";
404
- })(SortType || (SortType = {}));
405
-
406
- var _c0$3 = function (a0, a1) { return { "glyphicon-triangle-top fa-caret-up": a0, "glyphicon-triangle-bottom fa-caret-down": a1 }; };
407
- function FormGridHeaderComponent_ng_template_0_span_7_Template(rf, ctx) {
408
- if (rf & 1) {
409
- i0__namespace.ɵɵelement(0, "span", 5);
410
- }
411
- if (rf & 2) {
412
- var ctx_r1 = i0__namespace.ɵɵnextContext(2);
413
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(1, _c0$3, ctx_r1.header.sort === "asc", ctx_r1.header.sort === "desc"));
414
- }
415
- }
416
- function FormGridHeaderComponent_ng_template_0_Template(rf, ctx) {
417
- if (rf & 1) {
418
- var _r3_1 = i0__namespace.ɵɵgetCurrentView();
419
- i0__namespace.ɵɵelementStart(0, "thead");
420
- i0__namespace.ɵɵelementStart(1, "tr");
421
- i0__namespace.ɵɵelementStart(2, "th");
422
- i0__namespace.ɵɵelementStart(3, "div", 0);
423
- i0__namespace.ɵɵelementStart(4, "div", 1);
424
- i0__namespace.ɵɵelementStart(5, "a", 2);
425
- i0__namespace.ɵɵlistener("click", function FormGridHeaderComponent_ng_template_0_Template_a_click_5_listener() { i0__namespace.ɵɵrestoreView(_r3_1); var ctx_r2 = i0__namespace.ɵɵnextContext(); return ctx_r2.sort.emit(ctx_r2.header); });
426
- i0__namespace.ɵɵtext(6);
427
- i0__namespace.ɵɵtemplate(7, FormGridHeaderComponent_ng_template_0_span_7_Template, 1, 4, "span", 3);
428
- i0__namespace.ɵɵelementEnd();
429
- i0__namespace.ɵɵelementEnd();
430
- i0__namespace.ɵɵelementStart(8, "div", 4);
431
- i0__namespace.ɵɵtext(9, " Operations ");
432
- i0__namespace.ɵɵelementEnd();
433
- i0__namespace.ɵɵelementEnd();
434
- i0__namespace.ɵɵelementEnd();
435
- i0__namespace.ɵɵelementEnd();
436
- i0__namespace.ɵɵelementEnd();
437
- }
438
- if (rf & 2) {
439
- var ctx_r0 = i0__namespace.ɵɵnextContext();
440
- i0__namespace.ɵɵadvance(6);
441
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.header.label, "\u00A0");
442
- i0__namespace.ɵɵadvance(1);
443
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.header.sort);
444
- }
445
- }
446
- var FormGridHeaderComponent = /** @class */ (function (_super) {
447
- __extends(FormGridHeaderComponent, _super);
448
- function FormGridHeaderComponent() {
449
- return _super !== null && _super.apply(this, arguments) || this;
450
- }
451
- FormGridHeaderComponent.prototype.load = function (formio) {
452
- this.header = {
453
- label: 'Title',
454
- key: 'title',
455
- sort: SortType.ASC
456
- };
457
- this.headers = [this.header];
458
- return Promise.resolve(this.headers);
459
- };
460
- Object.defineProperty(FormGridHeaderComponent.prototype, "numHeaders", {
461
- get: function () {
462
- return 2;
463
- },
464
- enumerable: false,
465
- configurable: true
466
- });
467
- return FormGridHeaderComponent;
468
- }(GridHeaderComponent));
469
- FormGridHeaderComponent.ɵfac = /*@__PURE__*/ function () { var ɵFormGridHeaderComponent_BaseFactory; return function FormGridHeaderComponent_Factory(t) { return (ɵFormGridHeaderComponent_BaseFactory || (ɵFormGridHeaderComponent_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(FormGridHeaderComponent)))(t || FormGridHeaderComponent); }; }();
470
- FormGridHeaderComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormGridHeaderComponent, selectors: [["form-grid-header"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 0, consts: [[1, "row"], [1, "col-sm-8"], [3, "click"], ["class", "glyphicon fa", 3, "ngClass", 4, "ngIf"], [1, "col-sm-4"], [1, "glyphicon", "fa", 3, "ngClass"]], template: function FormGridHeaderComponent_Template(rf, ctx) {
471
- if (rf & 1) {
472
- i0__namespace.ɵɵtemplate(0, FormGridHeaderComponent_ng_template_0_Template, 10, 2, "ng-template");
473
- }
474
- }, directives: [i1__namespace.NgIf, i1__namespace.NgClass], encapsulation: 2 });
475
- (function () {
476
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormGridHeaderComponent, [{
477
- type: i0.Component,
478
- args: [{
479
- selector: 'form-grid-header',
480
- templateUrl: './FormGridHeader.component.html'
481
- }]
482
- }], null, null);
483
- })();
484
-
485
- var GridService = /** @class */ (function () {
486
- function GridService() {
487
- }
488
- GridService.prototype.setRows = function (rows) {
489
- this.rows = rows;
490
- };
491
- GridService.prototype.getFormsPerPage = function () {
492
- var _a;
493
- return (_a = this.rows) === null || _a === void 0 ? void 0 : _a.length;
494
- };
495
- return GridService;
496
- }());
497
- GridService.ɵfac = function GridService_Factory(t) { return new (t || GridService)(); };
498
- GridService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: GridService, factory: GridService.ɵfac });
499
- (function () {
500
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(GridService, [{
501
- type: i0.Injectable
502
- }], function () { return []; }, null);
503
- })();
504
-
505
- var GridBodyComponent = /** @class */ (function () {
506
- function GridBodyComponent(service) {
507
- this.service = service;
508
- this.firstItem = 0;
509
- this.lastItem = 0;
510
- this.skip = 0;
511
- this.limit = 0;
512
- this.total = 0;
513
- this.rowSelect = new i0.EventEmitter();
514
- this.rowAction = new i0.EventEmitter();
515
- this.loading = true;
516
- }
517
- GridBodyComponent.prototype.load = function (formio, query) {
518
- return formio.loadForm(query);
519
- };
520
- GridBodyComponent.prototype.onRowSelect = function (event, row) {
521
- event.preventDefault();
522
- this.rowSelect.emit(row);
523
- };
524
- GridBodyComponent.prototype.onRowAction = function (event, row, action) {
525
- event.preventDefault();
526
- this.rowAction.emit({ row: row, action: action });
527
- };
528
- /**
529
- * Set the rows for this Grid body.
530
- *
531
- * @param query
532
- * @param items
533
- * @return any
534
- */
535
- GridBodyComponent.prototype.setRows = function (query, items) {
536
- var _this = this;
537
- this.rows = [];
538
- if (typeof items !== 'object') {
539
- this.firstItem = 0;
540
- this.lastItem = 0;
541
- this.total = 0;
542
- this.skip = 0;
543
- this.loading = false;
544
- this.service.setRows(this.rows);
545
- return this.rows;
546
- }
547
- this.firstItem = query.skip + 1;
548
- this.lastItem = this.firstItem + items.length - 1;
549
- if (this.lastItem === 0) {
550
- this.firstItem = 0;
551
- }
552
- this.total = items.serverCount;
553
- this.limit = query.limit;
554
- this.skip = Math.floor(items.skip / query.limit) + 1;
555
- this.loading = false;
556
- lodash.each(items, function (item) {
557
- _this.rows.push(lodash.clone(item));
558
- });
559
- this.service.setRows(this.rows);
560
- return this.rows;
561
- };
562
- return GridBodyComponent;
563
- }());
564
- GridBodyComponent.ɵfac = function GridBodyComponent_Factory(t) { return new (t || GridBodyComponent)(i0__namespace.ɵɵdirectiveInject(GridService)); };
565
- GridBodyComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: GridBodyComponent, selectors: [["ng-component"]], viewQuery: function GridBodyComponent_Query(rf, ctx) {
566
- if (rf & 1) {
567
- i0__namespace.ɵɵviewQuery(i0.TemplateRef, 7);
568
- }
569
- if (rf & 2) {
570
- var _t = void 0;
571
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.template = _t.first);
572
- }
573
- }, inputs: { header: "header", actionAllowed: "actionAllowed" }, outputs: { rowSelect: "rowSelect", rowAction: "rowAction" }, decls: 0, vars: 0, template: function GridBodyComponent_Template(rf, ctx) { }, encapsulation: 2 });
574
- (function () {
575
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(GridBodyComponent, [{
576
- type: i0.Component,
577
- args: [{
578
- template: ''
579
- }]
580
- }], function () { return [{ type: GridService }]; }, { header: [{
581
- type: i0.Input
582
- }], actionAllowed: [{
583
- type: i0.Input
584
- }], rowSelect: [{
585
- type: i0.Output
586
- }], rowAction: [{
587
- type: i0.Output
588
- }], template: [{
589
- type: i0.ViewChild,
590
- args: [i0.TemplateRef, { static: true }]
591
- }] });
592
- })();
593
-
594
- var TimeSince = /** @class */ (function () {
595
- function TimeSince() {
596
- }
597
- TimeSince.prototype.transform = function (date) {
598
- var elapsed = (new Date().getTime() - new Date(date).getTime()) / 1000;
599
- var interval;
600
- if (interval >= 1) {
601
- return interval + ' year' + (interval > 1 ? 's' : '');
602
- }
603
- interval = Math.floor(elapsed / 2592000);
604
- if (interval >= 1) {
605
- return interval + ' month' + (interval > 1 ? 's' : '');
606
- }
607
- interval = Math.floor(elapsed / 86400);
608
- if (interval >= 1) {
609
- return interval + ' day' + (interval > 1 ? 's' : '');
610
- }
611
- interval = Math.floor(elapsed / 3600);
612
- if (interval >= 1) {
613
- return interval + ' hour' + (interval > 1 ? 's' : '');
614
- }
615
- interval = Math.floor(elapsed / 60);
616
- if (interval >= 1) {
617
- return interval + ' minute' + (interval > 1 ? 's' : '');
618
- }
619
- return Math.floor(elapsed) + ' second' + (elapsed > 1 ? 's' : '');
620
- };
621
- return TimeSince;
622
- }());
623
- TimeSince.ɵfac = function TimeSince_Factory(t) { return new (t || TimeSince)(); };
624
- TimeSince.ɵpipe = /*@__PURE__*/ i0__namespace.ɵɵdefinePipe({ name: "timeSince", type: TimeSince, pure: true });
625
- (function () {
626
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TimeSince, [{
627
- type: i0.Pipe,
628
- args: [{
629
- name: 'timeSince'
630
- }]
631
- }], null, null);
632
- })();
633
-
634
- function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_11_Template(rf, ctx) {
635
- if (rf & 1) {
636
- var _r11_1 = i0__namespace.ɵɵgetCurrentView();
637
- i0__namespace.ɵɵelementStart(0, "button", 10);
638
- i0__namespace.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_11_Template_button_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r11_1); var form_r3 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r9 = i0__namespace.ɵɵnextContext(3); return ctx_r9.onRowAction($event, form_r3, "view"); });
639
- i0__namespace.ɵɵelement(1, "span", 11);
640
- i0__namespace.ɵɵtext(2, " Enter Data");
641
- i0__namespace.ɵɵelementEnd();
642
- }
643
- }
644
- function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_13_Template(rf, ctx) {
645
- if (rf & 1) {
646
- var _r14_1 = i0__namespace.ɵɵgetCurrentView();
647
- i0__namespace.ɵɵelementStart(0, "button", 12);
648
- i0__namespace.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_13_Template_button_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var form_r3 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r12 = i0__namespace.ɵɵnextContext(3); return ctx_r12.onRowAction($event, form_r3, "submission"); });
649
- i0__namespace.ɵɵelement(1, "span", 13);
650
- i0__namespace.ɵɵtext(2, " View Data");
651
- i0__namespace.ɵɵelementEnd();
652
- }
653
- }
654
- function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_15_Template(rf, ctx) {
655
- if (rf & 1) {
656
- var _r17_1 = i0__namespace.ɵɵgetCurrentView();
657
- i0__namespace.ɵɵelementStart(0, "button", 12);
658
- i0__namespace.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_15_Template_button_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r17_1); var form_r3 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r15 = i0__namespace.ɵɵnextContext(3); return ctx_r15.onRowAction($event, form_r3, "edit"); });
659
- i0__namespace.ɵɵelement(1, "span", 14);
660
- i0__namespace.ɵɵtext(2, " Edit Form");
661
- i0__namespace.ɵɵelementEnd();
662
- }
663
- }
664
- function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_17_Template(rf, ctx) {
665
- if (rf & 1) {
666
- var _r20_1 = i0__namespace.ɵɵgetCurrentView();
667
- i0__namespace.ɵɵelementStart(0, "button", 12);
668
- i0__namespace.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_17_Template_button_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r20_1); var form_r3 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r18 = i0__namespace.ɵɵnextContext(3); return ctx_r18.onRowAction($event, form_r3, "permissions"); });
669
- i0__namespace.ɵɵelement(1, "span", 15);
670
- i0__namespace.ɵɵtext(2, " Permissions");
671
- i0__namespace.ɵɵelementEnd();
672
- }
673
- }
674
- function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_19_Template(rf, ctx) {
675
- if (rf & 1) {
676
- var _r23_1 = i0__namespace.ɵɵgetCurrentView();
677
- i0__namespace.ɵɵelementStart(0, "button", 16);
678
- i0__namespace.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_19_Template_button_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r23_1); var form_r3 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r21 = i0__namespace.ɵɵnextContext(3); return ctx_r21.onRowAction($event, form_r3, "delete"); });
679
- i0__namespace.ɵɵelement(1, "span", 17);
680
- i0__namespace.ɵɵelementEnd();
681
- }
682
- }
683
- function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_Template(rf, ctx) {
684
- if (rf & 1) {
685
- var _r25_1 = i0__namespace.ɵɵgetCurrentView();
686
- i0__namespace.ɵɵelementStart(0, "tr");
687
- i0__namespace.ɵɵelementStart(1, "td");
688
- i0__namespace.ɵɵelementStart(2, "div", 2);
689
- i0__namespace.ɵɵelementStart(3, "div", 3);
690
- i0__namespace.ɵɵelementStart(4, "a", 4);
691
- i0__namespace.ɵɵlistener("click", function FormGridBodyComponent_ng_template_0_tbody_0_tr_1_Template_a_click_4_listener($event) { var restoredCtx = i0__namespace.ɵɵrestoreView(_r25_1); var form_r3 = restoredCtx.$implicit; var ctx_r24 = i0__namespace.ɵɵnextContext(3); return ctx_r24.onRowSelect($event, form_r3); });
692
- i0__namespace.ɵɵelementStart(5, "h5");
693
- i0__namespace.ɵɵtext(6);
694
- i0__namespace.ɵɵelementEnd();
695
- i0__namespace.ɵɵelementEnd();
696
- i0__namespace.ɵɵelementStart(7, "div", 5);
697
- i0__namespace.ɵɵtext(8);
698
- i0__namespace.ɵɵpipe(9, "timeSince");
699
- i0__namespace.ɵɵelementEnd();
700
- i0__namespace.ɵɵelementEnd();
701
- i0__namespace.ɵɵelementStart(10, "div", 6);
702
- i0__namespace.ɵɵtemplate(11, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_11_Template, 3, 0, "button", 7);
703
- i0__namespace.ɵɵtext(12, "\u00A0 ");
704
- i0__namespace.ɵɵtemplate(13, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_13_Template, 3, 0, "button", 8);
705
- i0__namespace.ɵɵtext(14, "\u00A0 ");
706
- i0__namespace.ɵɵtemplate(15, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_15_Template, 3, 0, "button", 8);
707
- i0__namespace.ɵɵtext(16, "\u00A0 ");
708
- i0__namespace.ɵɵtemplate(17, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_17_Template, 3, 0, "button", 8);
709
- i0__namespace.ɵɵtext(18, "\u00A0 ");
710
- i0__namespace.ɵɵtemplate(19, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_button_19_Template, 2, 0, "button", 9);
711
- i0__namespace.ɵɵelementEnd();
712
- i0__namespace.ɵɵelementEnd();
713
- i0__namespace.ɵɵelementEnd();
714
- i0__namespace.ɵɵelementEnd();
715
- }
716
- if (rf & 2) {
717
- var form_r3 = ctx.$implicit;
718
- var ctx_r2 = i0__namespace.ɵɵnextContext(3);
719
- i0__namespace.ɵɵadvance(4);
720
- i0__namespace.ɵɵpropertyInterpolate1("routerLink", "", form_r3._id, "/view");
721
- i0__namespace.ɵɵadvance(2);
722
- i0__namespace.ɵɵtextInterpolate(form_r3.title);
723
- i0__namespace.ɵɵadvance(2);
724
- i0__namespace.ɵɵtextInterpolate1(" Updated ", i0__namespace.ɵɵpipeBind1(9, 8, form_r3.modified), " ago ");
725
- i0__namespace.ɵɵadvance(3);
726
- i0__namespace.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formView"));
727
- i0__namespace.ɵɵadvance(2);
728
- i0__namespace.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formSubmission"));
729
- i0__namespace.ɵɵadvance(2);
730
- i0__namespace.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formEdit"));
731
- i0__namespace.ɵɵadvance(2);
732
- i0__namespace.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formPermission"));
733
- i0__namespace.ɵɵadvance(2);
734
- i0__namespace.ɵɵproperty("ngIf", ctx_r2.actionAllowed("formDelete"));
735
- }
736
- }
737
- function FormGridBodyComponent_ng_template_0_tbody_0_Template(rf, ctx) {
738
- if (rf & 1) {
739
- i0__namespace.ɵɵelementStart(0, "tbody");
740
- i0__namespace.ɵɵtemplate(1, FormGridBodyComponent_ng_template_0_tbody_0_tr_1_Template, 20, 10, "tr", 1);
741
- i0__namespace.ɵɵelementEnd();
742
- }
743
- if (rf & 2) {
744
- var ctx_r1 = i0__namespace.ɵɵnextContext(2);
745
- i0__namespace.ɵɵadvance(1);
746
- i0__namespace.ɵɵproperty("ngForOf", ctx_r1.rows);
747
- }
748
- }
749
- function FormGridBodyComponent_ng_template_0_Template(rf, ctx) {
750
- if (rf & 1) {
751
- i0__namespace.ɵɵtemplate(0, FormGridBodyComponent_ng_template_0_tbody_0_Template, 2, 1, "tbody", 0);
752
- }
753
- if (rf & 2) {
754
- var ctx_r0 = i0__namespace.ɵɵnextContext();
755
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.rows);
756
- }
757
- }
758
- var FormGridBodyComponent = /** @class */ (function (_super) {
759
- __extends(FormGridBodyComponent, _super);
760
- function FormGridBodyComponent() {
761
- return _super !== null && _super.apply(this, arguments) || this;
762
- }
763
- FormGridBodyComponent.prototype.load = function (formio, query) {
764
- var _this = this;
765
- query = query || {};
766
- return formio.loadForms({ params: query }).then(function (forms) { return _this.setRows(query, forms); });
767
- };
768
- return FormGridBodyComponent;
769
- }(GridBodyComponent));
770
- FormGridBodyComponent.ɵfac = /*@__PURE__*/ function () { var ɵFormGridBodyComponent_BaseFactory; return function FormGridBodyComponent_Factory(t) { return (ɵFormGridBodyComponent_BaseFactory || (ɵFormGridBodyComponent_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(FormGridBodyComponent)))(t || FormGridBodyComponent); }; }();
771
- FormGridBodyComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormGridBodyComponent, selectors: [["form-grid-body"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 0, consts: [[4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "row"], [1, "col-sm-8"], [3, "routerLink", "click"], [1, "form-updated", "small", "text-muted"], [1, "col-sm-4"], ["class", "btn btn-outline-secondary btn-sm form-btn form-btn-use", 3, "click", 4, "ngIf"], ["class", "btn btn-outline-secondary btn-sm form-btn", 3, "click", 4, "ngIf"], ["class", "btn btn-danger btn-sm form-btn form-btn-delete", "title", "Delete form", 3, "click", 4, "ngIf"], [1, "btn", "btn-outline-secondary", "btn-sm", "form-btn", "form-btn-use", 3, "click"], [1, "fa", "fa-pencil"], [1, "btn", "btn-outline-secondary", "btn-sm", "form-btn", 3, "click"], [1, "fa", "fa-list-alt"], [1, "fa", "fa-edit"], [1, "fa", "fa-lock"], ["title", "Delete form", 1, "btn", "btn-danger", "btn-sm", "form-btn", "form-btn-delete", 3, "click"], [1, "fa", "fa-trash"]], template: function FormGridBodyComponent_Template(rf, ctx) {
772
- if (rf & 1) {
773
- i0__namespace.ɵɵtemplate(0, FormGridBodyComponent_ng_template_0_Template, 1, 1, "ng-template");
774
- }
775
- }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RouterLinkWithHref], pipes: [TimeSince], styles: [".form-btn[_ngcontent-%COMP%]{font-size:.75rem;margin:2px 0}"] });
776
- (function () {
777
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormGridBodyComponent, [{
778
- type: i0.Component,
779
- args: [{
780
- selector: 'form-grid-body',
781
- styleUrls: ['./FormGridBody.component.scss'],
782
- templateUrl: './FormGridBody.component.html'
783
- }]
784
- }], null, null);
785
- })();
786
-
787
- var GridFooterComponent = /** @class */ (function () {
788
- function GridFooterComponent() {
789
- this.footerPositions = GridFooterPositions;
790
- this.pageChanged = new i0.EventEmitter();
791
- this.createItem = new i0.EventEmitter();
792
- }
793
- return GridFooterComponent;
794
- }());
795
- GridFooterComponent.ɵfac = function GridFooterComponent_Factory(t) { return new (t || GridFooterComponent)(); };
796
- GridFooterComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: GridFooterComponent, selectors: [["ng-component"]], viewQuery: function GridFooterComponent_Query(rf, ctx) {
797
- if (rf & 1) {
798
- i0__namespace.ɵɵviewQuery(i0.TemplateRef, 7);
799
- }
800
- if (rf & 2) {
801
- var _t = void 0;
802
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.template = _t.first);
803
- }
804
- }, 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 });
805
- (function () {
806
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(GridFooterComponent, [{
807
- type: i0.Component,
808
- args: [{
809
- template: ''
810
- }]
811
- }], function () { return []; }, { header: [{
812
- type: i0.Input
813
- }], body: [{
814
- type: i0.Input
815
- }], createText: [{
816
- type: i0.Input
817
- }], size: [{
818
- type: i0.Input
819
- }], actionAllowed: [{
820
- type: i0.Input
821
- }], pageChanged: [{
822
- type: i0.Output
823
- }], createItem: [{
824
- type: i0.Output
825
- }], template: [{
826
- type: i0.ViewChild,
827
- args: [i0.TemplateRef, { static: true }]
828
- }] });
829
- })();
830
-
831
- var _c0$2 = function (a0) { return { label: a0 }; };
832
- function FormGridFooterComponent_ng_template_0_thead_0_Template(rf, ctx) {
833
- if (rf & 1) {
834
- i0__namespace.ɵɵelementStart(0, "thead", 3);
835
- i0__namespace.ɵɵelementContainer(1, 4);
836
- i0__namespace.ɵɵelementEnd();
837
- }
838
- if (rf & 2) {
839
- var label_r5 = i0__namespace.ɵɵnextContext().label;
840
- i0__namespace.ɵɵnextContext();
841
- var _r2 = i0__namespace.ɵɵreference(3);
842
- i0__namespace.ɵɵadvance(1);
843
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$2, label_r5));
844
- }
845
- }
846
- function FormGridFooterComponent_ng_template_0_tfoot_1_Template(rf, ctx) {
847
- if (rf & 1) {
848
- i0__namespace.ɵɵelementStart(0, "tfoot", 3);
849
- i0__namespace.ɵɵelementContainer(1, 4);
850
- i0__namespace.ɵɵelementEnd();
851
- }
852
- if (rf & 2) {
853
- var label_r5 = i0__namespace.ɵɵnextContext().label;
854
- i0__namespace.ɵɵnextContext();
855
- var _r2 = i0__namespace.ɵɵreference(3);
856
- i0__namespace.ɵɵadvance(1);
857
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$2, label_r5));
858
- }
859
- }
860
- function FormGridFooterComponent_ng_template_0_Template(rf, ctx) {
861
- if (rf & 1) {
862
- i0__namespace.ɵɵtemplate(0, FormGridFooterComponent_ng_template_0_thead_0_Template, 2, 4, "thead", 2);
863
- i0__namespace.ɵɵtemplate(1, FormGridFooterComponent_ng_template_0_tfoot_1_Template, 2, 4, "tfoot", 2);
864
- }
865
- if (rf & 2) {
866
- var position_r4 = ctx.position;
867
- var ctx_r1 = i0__namespace.ɵɵnextContext();
868
- i0__namespace.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.top);
869
- i0__namespace.ɵɵadvance(1);
870
- i0__namespace.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.bottom);
871
- }
872
- }
873
- function FormGridFooterComponent_ng_template_2_td_1_button_1_Template(rf, ctx) {
874
- if (rf & 1) {
875
- var _r14_1 = i0__namespace.ɵɵgetCurrentView();
876
- i0__namespace.ɵɵelementStart(0, "button", 12);
877
- i0__namespace.ɵɵlistener("click", function FormGridFooterComponent_ng_template_2_td_1_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(3); return ctx_r13.createItem.emit("form"); });
878
- i0__namespace.ɵɵelement(1, "i", 13);
879
- i0__namespace.ɵɵtext(2);
880
- i0__namespace.ɵɵelementEnd();
881
- }
882
- if (rf & 2) {
883
- var ctx_r12 = i0__namespace.ɵɵnextContext(3);
884
- i0__namespace.ɵɵadvance(2);
885
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r12.createText, "");
886
- }
887
- }
888
- function FormGridFooterComponent_ng_template_2_td_1_Template(rf, ctx) {
889
- if (rf & 1) {
890
- var _r16_1 = i0__namespace.ɵɵgetCurrentView();
891
- i0__namespace.ɵɵelementStart(0, "td", 6);
892
- i0__namespace.ɵɵtemplate(1, FormGridFooterComponent_ng_template_2_td_1_button_1_Template, 3, 1, "button", 7);
893
- i0__namespace.ɵɵelementStart(2, "span", 8);
894
- i0__namespace.ɵɵelementStart(3, "span", 9);
895
- i0__namespace.ɵɵtext(4);
896
- i0__namespace.ɵɵelementEnd();
897
- i0__namespace.ɵɵtext(5);
898
- i0__namespace.ɵɵelementEnd();
899
- i0__namespace.ɵɵelementStart(6, "span", 10);
900
- i0__namespace.ɵɵelementStart(7, "pagination", 11);
901
- i0__namespace.ɵɵlistener("ngModelChange", function FormGridFooterComponent_ng_template_2_td_1_Template_pagination_ngModelChange_7_listener($event) { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r15 = i0__namespace.ɵɵnextContext(2); return ctx_r15.body.skip = $event; })("pageChanged", function FormGridFooterComponent_ng_template_2_td_1_Template_pagination_pageChanged_7_listener($event) { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r17 = i0__namespace.ɵɵnextContext(2); return ctx_r17.pageChanged.emit($event); });
902
- i0__namespace.ɵɵelementEnd();
903
- i0__namespace.ɵɵelementEnd();
904
- i0__namespace.ɵɵelementEnd();
905
- }
906
- if (rf & 2) {
907
- var label_r10 = i0__namespace.ɵɵnextContext().label;
908
- var ctx_r11 = i0__namespace.ɵɵnextContext();
909
- i0__namespace.ɵɵproperty("colSpan", ctx_r11.header.numHeaders);
910
- i0__namespace.ɵɵadvance(1);
911
- i0__namespace.ɵɵproperty("ngIf", ctx_r11.actionAllowed("formCreate"));
912
- i0__namespace.ɵɵadvance(3);
913
- i0__namespace.ɵɵtextInterpolate2("", ctx_r11.body.firstItem, " - ", ctx_r11.body.lastItem, "");
914
- i0__namespace.ɵɵadvance(1);
915
- i0__namespace.ɵɵtextInterpolate1(" / ", ctx_r11.body.total, " total");
916
- i0__namespace.ɵɵadvance(1);
917
- i0__namespace.ɵɵattribute("aria-label", label_r10);
918
- i0__namespace.ɵɵadvance(1);
919
- i0__namespace.ɵɵproperty("totalItems", ctx_r11.body.total)("itemsPerPage", ctx_r11.body.limit)("ngModel", ctx_r11.body.skip)("maxSize", ctx_r11.size);
920
- }
921
- }
922
- function FormGridFooterComponent_ng_template_2_Template(rf, ctx) {
923
- if (rf & 1) {
924
- i0__namespace.ɵɵelementStart(0, "tr");
925
- i0__namespace.ɵɵtemplate(1, FormGridFooterComponent_ng_template_2_td_1_Template, 8, 10, "td", 5);
926
- i0__namespace.ɵɵelementEnd();
927
- }
928
- if (rf & 2) {
929
- var ctx_r3 = i0__namespace.ɵɵnextContext();
930
- i0__namespace.ɵɵadvance(1);
931
- i0__namespace.ɵɵproperty("ngIf", ctx_r3.header);
932
- }
933
- }
934
- var FormGridFooterComponent = /** @class */ (function (_super) {
935
- __extends(FormGridFooterComponent, _super);
936
- function FormGridFooterComponent() {
937
- return _super.call(this) || this;
938
- }
939
- FormGridFooterComponent.prototype.ngOnInit = function () {
940
- if (!this.createText) {
941
- this.createText = 'Create Form';
942
- }
943
- if (!this.size) {
944
- this.size = 7;
945
- }
946
- };
947
- return FormGridFooterComponent;
948
- }(GridFooterComponent));
949
- FormGridFooterComponent.ɵfac = function FormGridFooterComponent_Factory(t) { return new (t || FormGridFooterComponent)(); };
950
- FormGridFooterComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormGridFooterComponent, selectors: [["ng-component"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 4, vars: 0, consts: [["footer", ""], ["defaultFooterTemplate", ""], ["class", "formio-grid-footer", 4, "ngIf"], [1, "formio-grid-footer"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "colSpan", 4, "ngIf"], [3, "colSpan"], ["class", "btn btn-primary form-btn-use pull-left float-left", 3, "click", 4, "ngIf"], [1, "pull-right", "float-right", "item-counter"], [1, "page-num"], ["role", "navigation"], [1, "justify-content-center", "pagination-sm", 3, "totalItems", "itemsPerPage", "ngModel", "maxSize", "ngModelChange", "pageChanged"], [1, "btn", "btn-primary", "form-btn-use", "pull-left", "float-left", 3, "click"], [1, "glyphicon", "glyphicon-plus", "fa", "fa-plus"]], template: function FormGridFooterComponent_Template(rf, ctx) {
951
- if (rf & 1) {
952
- i0__namespace.ɵɵtemplate(0, FormGridFooterComponent_ng_template_0_Template, 2, 2, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
953
- i0__namespace.ɵɵtemplate(2, FormGridFooterComponent_ng_template_2_Template, 2, 1, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
954
- }
955
- }, directives: [i1__namespace.NgIf, i1__namespace.NgTemplateOutlet, i2__namespace$1.PaginationComponent, i3__namespace.NgControlStatus, i3__namespace.NgModel], 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 });
956
- (function () {
957
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormGridFooterComponent, [{
958
- type: i0.Component,
959
- args: [{
960
- templateUrl: './FormGridFooter.component.html',
961
- styleUrls: ['../grid.footer.scss'],
962
- encapsulation: i0.ViewEncapsulation.None
963
- }]
964
- }], function () { return []; }, null);
965
- })();
966
-
967
- var FormComponents = {
968
- header: FormGridHeaderComponent,
969
- body: FormGridBodyComponent,
970
- footer: FormGridFooterComponent
971
- };
972
-
973
- var _c0$1 = function (a0, a1) { return { "glyphicon-triangle-top": a0, "glyphicon-triangle-bottom": a1 }; };
974
- function SubmissionGridHeaderComponent_ng_template_0_th_2_span_3_Template(rf, ctx) {
975
- if (rf & 1) {
976
- i0__namespace.ɵɵelement(0, "span", 3);
977
- }
978
- if (rf & 2) {
979
- var header_r2 = i0__namespace.ɵɵnextContext().$implicit;
980
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(1, _c0$1, header_r2.sort === "asc", header_r2.sort === "desc"));
981
- }
982
- }
983
- function SubmissionGridHeaderComponent_ng_template_0_th_2_Template(rf, ctx) {
984
- if (rf & 1) {
985
- var _r6_1 = i0__namespace.ɵɵgetCurrentView();
986
- i0__namespace.ɵɵelementStart(0, "th");
987
- i0__namespace.ɵɵelementStart(1, "a", 1);
988
- i0__namespace.ɵɵlistener("click", function SubmissionGridHeaderComponent_ng_template_0_th_2_Template_a_click_1_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(_r6_1); var header_r2 = restoredCtx.$implicit; var ctx_r5 = i0__namespace.ɵɵnextContext(2); return ctx_r5.sort.emit(header_r2); });
989
- i0__namespace.ɵɵtext(2);
990
- i0__namespace.ɵɵtemplate(3, SubmissionGridHeaderComponent_ng_template_0_th_2_span_3_Template, 1, 4, "span", 2);
991
- i0__namespace.ɵɵelementEnd();
992
- i0__namespace.ɵɵelementEnd();
993
- }
994
- if (rf & 2) {
995
- var header_r2 = ctx.$implicit;
996
- i0__namespace.ɵɵadvance(2);
997
- i0__namespace.ɵɵtextInterpolate1(" ", header_r2.label, "\u00A0");
998
- i0__namespace.ɵɵadvance(1);
999
- i0__namespace.ɵɵproperty("ngIf", header_r2.sort);
1000
- }
1001
- }
1002
- function SubmissionGridHeaderComponent_ng_template_0_Template(rf, ctx) {
1003
- if (rf & 1) {
1004
- i0__namespace.ɵɵelementStart(0, "thead");
1005
- i0__namespace.ɵɵelementStart(1, "tr");
1006
- i0__namespace.ɵɵtemplate(2, SubmissionGridHeaderComponent_ng_template_0_th_2_Template, 4, 2, "th", 0);
1007
- i0__namespace.ɵɵelementEnd();
1008
- i0__namespace.ɵɵelementEnd();
1009
- }
1010
- if (rf & 2) {
1011
- var ctx_r0 = i0__namespace.ɵɵnextContext();
1012
- i0__namespace.ɵɵadvance(2);
1013
- i0__namespace.ɵɵproperty("ngForOf", ctx_r0.headers);
1014
- }
1015
- }
1016
- var SubmissionGridHeaderComponent = /** @class */ (function (_super) {
1017
- __extends(SubmissionGridHeaderComponent, _super);
1018
- function SubmissionGridHeaderComponent() {
1019
- return _super !== null && _super.apply(this, arguments) || this;
1020
- }
1021
- SubmissionGridHeaderComponent.prototype.load = function (formio, query, columns) {
1022
- var _this = this;
1023
- query = query || {};
1024
- return formio.loadForm({ params: query }).then(function (form) {
1025
- _this.headers = [];
1026
- _this.formComponents = new Map();
1027
- _this.setComponents(form.components);
1028
- columns ? columns.forEach(function (column) {
1029
- _this.setHeader(_this.getHeaderForColumn(column, _this.formComponents.get(column.path)));
1030
- }) : _this.setComponentsHeaders(_this.formComponents);
1031
- return _this.headers;
1032
- });
1033
- };
1034
- SubmissionGridHeaderComponent.prototype.setHeader = function (header) {
1035
- this.headers.push(header);
1036
- };
1037
- SubmissionGridHeaderComponent.prototype.getHeaderForColumn = function (column, component, sort) {
1038
- return {
1039
- label: column.label,
1040
- key: column.path,
1041
- sort: sort,
1042
- component: component ? formiojs.Components.create(component, null, null, true) : undefined,
1043
- renderCell: column ? column.renderCell : undefined
1044
- };
1045
- };
1046
- SubmissionGridHeaderComponent.prototype.getHeaderForComponent = function (component, path, sort) {
1047
- return {
1048
- label: component.label,
1049
- key: path,
1050
- sort: sort,
1051
- component: component ? formiojs.Components.create(component, null, null, true) : undefined,
1052
- };
1053
- };
1054
- // Set headers from components in case if columns are not provided
1055
- SubmissionGridHeaderComponent.prototype.setComponentsHeaders = function (components, sort) {
1056
- var _this = this;
1057
- components.forEach(function (component, path) {
1058
- if (component.input &&
1059
- (!component.hasOwnProperty('tableView') || component.tableView)) {
1060
- _this.setHeader(_this.getHeaderForComponent(component, path, sort));
1061
- }
1062
- });
1063
- };
1064
- // Map components
1065
- SubmissionGridHeaderComponent.prototype.setComponents = function (components) {
1066
- var _this = this;
1067
- formiojs.Utils.eachComponent(components, function (component, newPath) {
1068
- _this.formComponents.set("data." + newPath, component);
1069
- });
1070
- };
1071
- return SubmissionGridHeaderComponent;
1072
- }(GridHeaderComponent));
1073
- SubmissionGridHeaderComponent.ɵfac = /*@__PURE__*/ function () { var ɵSubmissionGridHeaderComponent_BaseFactory; return function SubmissionGridHeaderComponent_Factory(t) { return (ɵSubmissionGridHeaderComponent_BaseFactory || (ɵSubmissionGridHeaderComponent_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(SubmissionGridHeaderComponent)))(t || SubmissionGridHeaderComponent); }; }();
1074
- SubmissionGridHeaderComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SubmissionGridHeaderComponent, selectors: [["ng-component"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 0, consts: [[4, "ngFor", "ngForOf"], [3, "click"], ["class", "glyphicon", 3, "ngClass", 4, "ngIf"], [1, "glyphicon", 3, "ngClass"]], template: function SubmissionGridHeaderComponent_Template(rf, ctx) {
1075
- if (rf & 1) {
1076
- i0__namespace.ɵɵtemplate(0, SubmissionGridHeaderComponent_ng_template_0_Template, 3, 1, "ng-template");
1077
- }
1078
- }, directives: [i1__namespace.NgForOf, i1__namespace.NgIf, i1__namespace.NgClass], encapsulation: 2 });
1079
- (function () {
1080
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SubmissionGridHeaderComponent, [{
1081
- type: i0.Component,
1082
- args: [{
1083
- templateUrl: './SubmissionGridHeader.component.html'
1084
- }]
1085
- }], null, null);
1086
- })();
1087
-
1088
- function SubmissionGridBodyComponent_ng_template_0_tr_1_td_1_Template(rf, ctx) {
1089
- if (rf & 1) {
1090
- i0__namespace.ɵɵelement(0, "td", 3);
1091
- }
1092
- if (rf & 2) {
1093
- var rowHeader_r4 = ctx.$implicit;
1094
- var row_r2 = i0__namespace.ɵɵnextContext().$implicit;
1095
- var ctx_r3 = i0__namespace.ɵɵnextContext(2);
1096
- i0__namespace.ɵɵproperty("innerHTML", ctx_r3.view(row_r2, rowHeader_r4), i0__namespace.ɵɵsanitizeHtml);
1097
- }
1098
- }
1099
- function SubmissionGridBodyComponent_ng_template_0_tr_1_Template(rf, ctx) {
1100
- if (rf & 1) {
1101
- var _r7_1 = i0__namespace.ɵɵgetCurrentView();
1102
- i0__namespace.ɵɵelementStart(0, "tr", 1);
1103
- i0__namespace.ɵɵlistener("click", function SubmissionGridBodyComponent_ng_template_0_tr_1_Template_tr_click_0_listener($event) { var restoredCtx = i0__namespace.ɵɵrestoreView(_r7_1); var row_r2 = restoredCtx.$implicit; var ctx_r6 = i0__namespace.ɵɵnextContext(2); return ctx_r6.onRowSelect($event, row_r2); });
1104
- i0__namespace.ɵɵtemplate(1, SubmissionGridBodyComponent_ng_template_0_tr_1_td_1_Template, 1, 1, "td", 2);
1105
- i0__namespace.ɵɵelementEnd();
1106
- }
1107
- if (rf & 2) {
1108
- var ctx_r1 = i0__namespace.ɵɵnextContext(2);
1109
- i0__namespace.ɵɵadvance(1);
1110
- i0__namespace.ɵɵproperty("ngForOf", ctx_r1.header.headers);
1111
- }
1112
- }
1113
- function SubmissionGridBodyComponent_ng_template_0_Template(rf, ctx) {
1114
- if (rf & 1) {
1115
- i0__namespace.ɵɵelementStart(0, "tbody");
1116
- i0__namespace.ɵɵtemplate(1, SubmissionGridBodyComponent_ng_template_0_tr_1_Template, 2, 1, "tr", 0);
1117
- i0__namespace.ɵɵelementEnd();
1118
- }
1119
- if (rf & 2) {
1120
- var ctx_r0 = i0__namespace.ɵɵnextContext();
1121
- i0__namespace.ɵɵadvance(1);
1122
- i0__namespace.ɵɵproperty("ngForOf", ctx_r0.rows);
1123
- }
1124
- }
1125
- var SubmissionGridBodyComponent = /** @class */ (function (_super) {
1126
- __extends(SubmissionGridBodyComponent, _super);
1127
- function SubmissionGridBodyComponent() {
1128
- return _super !== null && _super.apply(this, arguments) || this;
1129
- }
1130
- SubmissionGridBodyComponent.prototype.load = function (formio, query) {
1131
- var _this = this;
1132
- query = query || {};
1133
- return formio.loadSubmissions({ params: query })
1134
- .then(function (submissions) { return _this.setRows(query, submissions); });
1135
- };
1136
- /**
1137
- * Render the cell data.
1138
- *
1139
- * @param submission
1140
- * @param header
1141
- * @return any
1142
- */
1143
- SubmissionGridBodyComponent.prototype.view = function (submission, header) {
1144
- var cellValue = lodash.get(submission, header.key);
1145
- if (header.renderCell) {
1146
- return header.renderCell(cellValue, header.component);
1147
- }
1148
- else {
1149
- if (header.component) {
1150
- if (header.component.getView) {
1151
- return header.component.getView(cellValue);
1152
- }
1153
- return header.component.asString(cellValue);
1154
- }
1155
- else {
1156
- return cellValue.toString();
1157
- }
1158
- }
1159
- };
1160
- return SubmissionGridBodyComponent;
1161
- }(GridBodyComponent));
1162
- SubmissionGridBodyComponent.ɵfac = /*@__PURE__*/ function () { var ɵSubmissionGridBodyComponent_BaseFactory; return function SubmissionGridBodyComponent_Factory(t) { return (ɵSubmissionGridBodyComponent_BaseFactory || (ɵSubmissionGridBodyComponent_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(SubmissionGridBodyComponent)))(t || SubmissionGridBodyComponent); }; }();
1163
- SubmissionGridBodyComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SubmissionGridBodyComponent, selectors: [["ng-component"]], features: [i0__namespace.ɵɵ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) {
1164
- if (rf & 1) {
1165
- i0__namespace.ɵɵtemplate(0, SubmissionGridBodyComponent_ng_template_0_Template, 2, 1, "ng-template");
1166
- }
1167
- }, directives: [i1__namespace.NgForOf], encapsulation: 2 });
1168
- (function () {
1169
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SubmissionGridBodyComponent, [{
1170
- type: i0.Component,
1171
- args: [{
1172
- templateUrl: './SubmissionGridBody.component.html'
1173
- }]
1174
- }], null, null);
1175
- })();
1176
-
1177
- function SubmissionGridFooterComponent_ng_template_0_thead_0_Template(rf, ctx) {
1178
- if (rf & 1) {
1179
- i0__namespace.ɵɵelementStart(0, "thead", 3);
1180
- i0__namespace.ɵɵelementContainer(1, 4);
1181
- i0__namespace.ɵɵelementEnd();
1182
- }
1183
- if (rf & 2) {
1184
- i0__namespace.ɵɵnextContext(2);
1185
- var _r2 = i0__namespace.ɵɵreference(3);
1186
- i0__namespace.ɵɵadvance(1);
1187
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2);
1188
- }
1189
- }
1190
- function SubmissionGridFooterComponent_ng_template_0_tfoot_1_Template(rf, ctx) {
1191
- if (rf & 1) {
1192
- i0__namespace.ɵɵelementStart(0, "tfoot", 3);
1193
- i0__namespace.ɵɵelementContainer(1, 4);
1194
- i0__namespace.ɵɵelementEnd();
1195
- }
1196
- if (rf & 2) {
1197
- i0__namespace.ɵɵnextContext(2);
1198
- var _r2 = i0__namespace.ɵɵreference(3);
1199
- i0__namespace.ɵɵadvance(1);
1200
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2);
1201
- }
1202
- }
1203
- function SubmissionGridFooterComponent_ng_template_0_Template(rf, ctx) {
1204
- if (rf & 1) {
1205
- i0__namespace.ɵɵtemplate(0, SubmissionGridFooterComponent_ng_template_0_thead_0_Template, 2, 1, "thead", 2);
1206
- i0__namespace.ɵɵtemplate(1, SubmissionGridFooterComponent_ng_template_0_tfoot_1_Template, 2, 1, "tfoot", 2);
1207
- }
1208
- if (rf & 2) {
1209
- var position_r4 = ctx.position;
1210
- var ctx_r1 = i0__namespace.ɵɵnextContext();
1211
- i0__namespace.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.top);
1212
- i0__namespace.ɵɵadvance(1);
1213
- i0__namespace.ɵɵproperty("ngIf", position_r4 === ctx_r1.footerPositions.bottom);
1214
- }
1215
- }
1216
- function SubmissionGridFooterComponent_ng_template_2_td_1_button_1_Template(rf, ctx) {
1217
- if (rf & 1) {
1218
- var _r10_1 = i0__namespace.ɵɵgetCurrentView();
1219
- i0__namespace.ɵɵelementStart(0, "button", 11);
1220
- i0__namespace.ɵɵlistener("click", function SubmissionGridFooterComponent_ng_template_2_td_1_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r9 = i0__namespace.ɵɵnextContext(3); return ctx_r9.createItem.emit("form"); });
1221
- i0__namespace.ɵɵelement(1, "i", 12);
1222
- i0__namespace.ɵɵtext(2);
1223
- i0__namespace.ɵɵelementEnd();
1224
- }
1225
- if (rf & 2) {
1226
- var ctx_r8 = i0__namespace.ɵɵnextContext(3);
1227
- i0__namespace.ɵɵadvance(2);
1228
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r8.createText, "");
1229
- }
1230
- }
1231
- function SubmissionGridFooterComponent_ng_template_2_td_1_Template(rf, ctx) {
1232
- if (rf & 1) {
1233
- var _r12_1 = i0__namespace.ɵɵgetCurrentView();
1234
- i0__namespace.ɵɵelementStart(0, "td", 6);
1235
- i0__namespace.ɵɵtemplate(1, SubmissionGridFooterComponent_ng_template_2_td_1_button_1_Template, 3, 1, "button", 7);
1236
- i0__namespace.ɵɵelementStart(2, "span", 8);
1237
- i0__namespace.ɵɵelementStart(3, "span", 9);
1238
- i0__namespace.ɵɵtext(4);
1239
- i0__namespace.ɵɵelementEnd();
1240
- i0__namespace.ɵɵtext(5);
1241
- i0__namespace.ɵɵelementEnd();
1242
- i0__namespace.ɵɵelementStart(6, "pagination", 10);
1243
- i0__namespace.ɵɵlistener("ngModelChange", function SubmissionGridFooterComponent_ng_template_2_td_1_Template_pagination_ngModelChange_6_listener($event) { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.body.skip = $event; })("pageChanged", function SubmissionGridFooterComponent_ng_template_2_td_1_Template_pagination_pageChanged_6_listener($event) { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r13 = i0__namespace.ɵɵnextContext(2); return ctx_r13.pageChanged.emit($event); });
1244
- i0__namespace.ɵɵelementEnd();
1245
- i0__namespace.ɵɵelementEnd();
1246
- }
1247
- if (rf & 2) {
1248
- var ctx_r7 = i0__namespace.ɵɵnextContext(2);
1249
- i0__namespace.ɵɵproperty("colSpan", ctx_r7.header.numHeaders);
1250
- i0__namespace.ɵɵadvance(1);
1251
- i0__namespace.ɵɵproperty("ngIf", ctx_r7.actionAllowed("submissionCreate") && ctx_r7.createText);
1252
- i0__namespace.ɵɵadvance(3);
1253
- i0__namespace.ɵɵtextInterpolate2("", ctx_r7.body.firstItem, " - ", ctx_r7.body.lastItem, "");
1254
- i0__namespace.ɵɵadvance(1);
1255
- i0__namespace.ɵɵtextInterpolate1(" / ", ctx_r7.body.total, " total");
1256
- i0__namespace.ɵɵadvance(1);
1257
- i0__namespace.ɵɵproperty("totalItems", ctx_r7.body.total)("itemsPerPage", ctx_r7.body.limit)("ngModel", ctx_r7.body.skip)("maxSize", ctx_r7.size);
1258
- }
1259
- }
1260
- function SubmissionGridFooterComponent_ng_template_2_Template(rf, ctx) {
1261
- if (rf & 1) {
1262
- i0__namespace.ɵɵelementStart(0, "tr");
1263
- i0__namespace.ɵɵtemplate(1, SubmissionGridFooterComponent_ng_template_2_td_1_Template, 7, 9, "td", 5);
1264
- i0__namespace.ɵɵelementEnd();
1265
- }
1266
- if (rf & 2) {
1267
- var ctx_r3 = i0__namespace.ɵɵnextContext();
1268
- i0__namespace.ɵɵadvance(1);
1269
- i0__namespace.ɵɵproperty("ngIf", ctx_r3.header);
1270
- }
1271
- }
1272
- var SubmissionGridFooterComponent = /** @class */ (function (_super) {
1273
- __extends(SubmissionGridFooterComponent, _super);
1274
- function SubmissionGridFooterComponent() {
1275
- return _super.call(this) || this;
1276
- }
1277
- SubmissionGridFooterComponent.prototype.ngOnInit = function () {
1278
- if (!this.size) {
1279
- this.size = 7;
1280
- }
1281
- };
1282
- return SubmissionGridFooterComponent;
1283
- }(GridFooterComponent));
1284
- SubmissionGridFooterComponent.ɵfac = function SubmissionGridFooterComponent_Factory(t) { return new (t || SubmissionGridFooterComponent)(); };
1285
- SubmissionGridFooterComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SubmissionGridFooterComponent, selectors: [["ng-component"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 4, vars: 0, consts: [["footer", ""], ["defaultFooterTemplate", ""], ["class", "formio-grid-footer", 4, "ngIf"], [1, "formio-grid-footer"], [3, "ngTemplateOutlet"], [3, "colSpan", 4, "ngIf"], [3, "colSpan"], ["class", "btn btn-primary pull-left float-left", 3, "click", 4, "ngIf"], [1, "pull-right", "float-right", "item-counter"], [1, "page-num"], [1, "justify-content-center", "pagination-sm", 3, "totalItems", "itemsPerPage", "ngModel", "maxSize", "ngModelChange", "pageChanged"], [1, "btn", "btn-primary", "pull-left", "float-left", 3, "click"], [1, "glyphicon", "glyphicon-plus", "fa", "fa-plus"]], template: function SubmissionGridFooterComponent_Template(rf, ctx) {
1286
- if (rf & 1) {
1287
- i0__namespace.ɵɵtemplate(0, SubmissionGridFooterComponent_ng_template_0_Template, 2, 2, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
1288
- i0__namespace.ɵɵtemplate(2, SubmissionGridFooterComponent_ng_template_2_Template, 2, 1, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
1289
- }
1290
- }, directives: [i1__namespace.NgIf, i1__namespace.NgTemplateOutlet, i2__namespace$1.PaginationComponent, i3__namespace.NgControlStatus, i3__namespace.NgModel], 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 });
1291
- (function () {
1292
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SubmissionGridFooterComponent, [{
1293
- type: i0.Component,
1294
- args: [{
1295
- templateUrl: './SubmissionGridFooter.component.html',
1296
- styleUrls: ['../grid.footer.scss'],
1297
- encapsulation: i0.ViewEncapsulation.None
1298
- }]
1299
- }], function () { return []; }, null);
1300
- })();
1301
-
1302
- var SubmissionComponents = {
1303
- header: SubmissionGridHeaderComponent,
1304
- body: SubmissionGridBodyComponent,
1305
- footer: SubmissionGridFooterComponent
1306
- };
1307
-
1308
- var _c0 = ["headerTemplate"];
1309
- var _c1 = ["bodyTemplate"];
1310
- var _c2 = ["footerTemplate"];
1311
- function FormioGridComponent_ng_template_0_Template(rf, ctx) { }
1312
- function FormioGridComponent_ng_template_2_Template(rf, ctx) { }
1313
- function FormioGridComponent_ng_template_4_Template(rf, ctx) { }
1314
- var _c3 = function (a0, a1) { return { position: a0, label: a1 }; };
1315
- function FormioGridComponent_ng_container_9_Template(rf, ctx) {
1316
- if (rf & 1) {
1317
- i0__namespace.ɵɵelementContainer(0, 9);
1318
- }
1319
- if (rf & 2) {
1320
- var ctx_r6 = i0__namespace.ɵɵnextContext();
1321
- i0__namespace.ɵɵproperty("ngTemplateOutlet", ctx_r6.footer.template)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c3, ctx_r6.footerPositions.top, ctx_r6.label));
1322
- }
1323
- }
1324
- function FormioGridComponent_ng_container_10_Template(rf, ctx) {
1325
- if (rf & 1) {
1326
- i0__namespace.ɵɵelementContainer(0, 10);
1327
- }
1328
- if (rf & 2) {
1329
- var ctx_r7 = i0__namespace.ɵɵnextContext();
1330
- i0__namespace.ɵɵproperty("ngTemplateOutlet", ctx_r7.header.template);
1331
- }
1332
- }
1333
- function FormioGridComponent_ng_container_12_Template(rf, ctx) {
1334
- if (rf & 1) {
1335
- i0__namespace.ɵɵelementContainer(0, 10);
1336
- }
1337
- if (rf & 2) {
1338
- var ctx_r8 = i0__namespace.ɵɵnextContext();
1339
- i0__namespace.ɵɵproperty("ngTemplateOutlet", ctx_r8.body.template);
1340
- }
1341
- }
1342
- function FormioGridComponent_ng_container_13_Template(rf, ctx) {
1343
- if (rf & 1) {
1344
- i0__namespace.ɵɵelementContainer(0, 9);
1345
- }
1346
- if (rf & 2) {
1347
- var ctx_r9 = i0__namespace.ɵɵnextContext();
1348
- i0__namespace.ɵɵproperty("ngTemplateOutlet", ctx_r9.footer.template)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c3, ctx_r9.footerPositions.bottom, ctx_r9.label));
1349
- }
1350
- }
1351
- var _c4 = function (a0, a1) { return [a0, a1]; };
1352
- var FormioGridComponent = /** @class */ (function () {
1353
- function FormioGridComponent(alerts, resolver, ref) {
1354
- this.alerts = alerts;
1355
- this.resolver = resolver;
1356
- this.ref = ref;
1357
- this.footerPosition = GridFooterPositions.bottom;
1358
- this.page = 0;
1359
- this.isLoading = false;
1360
- this.initialized = false;
1361
- this.footerPositions = GridFooterPositions;
1362
- this.select = this.rowSelect = new i0.EventEmitter();
1363
- this.rowAction = new i0.EventEmitter();
1364
- this.createItem = new i0.EventEmitter();
1365
- this.error = new i0.EventEmitter();
1366
- this.isLoading = true;
1367
- }
1368
- FormioGridComponent.prototype.createComponent = function (property, component) {
1369
- var factory = this.resolver.resolveComponentFactory(component);
1370
- var componentRef = property.createComponent(factory);
1371
- return componentRef.instance;
1372
- };
1373
- FormioGridComponent.prototype.loadGrid = function (src) {
1374
- var _this = this;
1375
- // If no source is provided, then skip.
1376
- if (!src && !this.formio) {
1377
- return;
1378
- }
1379
- // Do not double load.
1380
- if (this.formio && this.src && (src === this.src)) {
1381
- return;
1382
- }
1383
- if (src) {
1384
- this.src = src;
1385
- this.formio = new i1$1.FormioPromiseService(this.src, { formOnly: true });
1386
- }
1387
- // Load the header.
1388
- this.header.load(this.formio, {}, this.columns)
1389
- .then(function () { return _this.setPage(0); })
1390
- .catch(function (error) { return _this.onError(error); });
1391
- };
1392
- FormioGridComponent.prototype.ngOnInit = function () {
1393
- var _this = this;
1394
- // Create our components.
1395
- var comps = this.components || ((this.gridType === 'form') ? FormComponents : SubmissionComponents);
1396
- this.header = this.createComponent(this.headerElement, comps.header);
1397
- this.header.actionAllowed = this.actionAllowed.bind(this);
1398
- this.header.sort.subscribe(function (header) { return _this.sortColumn(header); });
1399
- this.body = this.createComponent(this.bodyElement, comps.body);
1400
- this.body.header = this.header;
1401
- this.body.actionAllowed = this.actionAllowed.bind(this);
1402
- this.body.rowSelect.subscribe(function (row) { return _this.rowSelect.emit(row); });
1403
- this.body.rowAction.subscribe(function (action) { return _this.rowAction.emit(action); });
1404
- this.footer = this.createComponent(this.footerElement, comps.footer);
1405
- this.footer.header = this.header;
1406
- this.footer.body = this.body;
1407
- this.footer.actionAllowed = this.actionAllowed.bind(this);
1408
- this.footer.createText = this.createText;
1409
- this.footer.size = this.size;
1410
- this.footer.pageChanged.subscribe(function (page) { return _this.pageChanged(page); });
1411
- this.footer.createItem.subscribe(function (item) { return _this.createItem.emit(item); });
1412
- };
1413
- FormioGridComponent.prototype.ngOnChanges = function (changes) {
1414
- if (this.initialized) {
1415
- if ((changes.src && changes.src.currentValue) ||
1416
- (changes.formio && changes.formio.currentValue)) {
1417
- this.loadGrid(changes.src.currentValue);
1418
- }
1419
- if (changes.items && changes.items.currentValue) {
1420
- this.refreshGrid();
1421
- }
1422
- }
1423
- if (this.footer &&
1424
- (changes.createText && changes.createText.currentValue)) {
1425
- this.footer.createText = changes.createText.currentValue;
1426
- }
1427
- };
1428
- FormioGridComponent.prototype.ngAfterViewInit = function () {
1429
- var _this = this;
1430
- this.alerts.setAlerts([]);
1431
- this.query = this.query || {};
1432
- if (this.refresh) {
1433
- this.refresh.subscribe(function (query) { return _this.refreshGrid(query); });
1434
- }
1435
- this.loadGrid(this.src);
1436
- this.initialized = true;
1437
- this.ref.detectChanges();
1438
- };
1439
- FormioGridComponent.prototype.actionAllowed = function (action) {
1440
- if (this.isActionAllowed) {
1441
- return this.isActionAllowed(action);
1442
- }
1443
- else {
1444
- return true;
1445
- }
1446
- };
1447
- FormioGridComponent.prototype.onError = function (error) {
1448
- this.isLoading = false;
1449
- this.error.emit(error);
1450
- if (typeof error === 'string' || error.message) {
1451
- this.alerts.setAlert({
1452
- type: 'danger',
1453
- message: error.message || error
1454
- });
1455
- }
1456
- };
1457
- FormioGridComponent.prototype.refreshGrid = function (query) {
1458
- var _this = this;
1459
- this.alerts.setAlerts([]);
1460
- this.query = query || this.query;
1461
- if (!this.query.hasOwnProperty('limit')) {
1462
- this.query.limit = 10;
1463
- }
1464
- if (!this.query.hasOwnProperty('skip')) {
1465
- this.query.skip = 0;
1466
- }
1467
- this.isLoading = true;
1468
- this.ref.detectChanges();
1469
- formiojs.Formio.cache = {};
1470
- var loader = null;
1471
- if (this.items) {
1472
- loader = Promise.resolve(this.body.setRows(this.query, this.items));
1473
- }
1474
- else {
1475
- loader = this.body.load(this.formio, this.query);
1476
- }
1477
- return loader.then(function (info) {
1478
- _this.isLoading = false;
1479
- _this.initialized = true;
1480
- _this.ref.detectChanges();
1481
- }).catch(function (error) { return _this.onError(error); });
1482
- };
1483
- FormioGridComponent.prototype.setPage = function (num) {
1484
- if (num === void 0) { num = -1; }
1485
- this.page = num !== -1 ? num : this.page;
1486
- if (!this.query.hasOwnProperty('limit')) {
1487
- this.query.limit = 10;
1488
- }
1489
- if (!this.query.hasOwnProperty('skip')) {
1490
- this.query.skip = 0;
1491
- }
1492
- this.query.skip = this.page * this.query.limit;
1493
- this.refreshGrid();
1494
- };
1495
- FormioGridComponent.prototype.sortColumn = function (header) {
1496
- // Reset all other column sorts.
1497
- lodash.each(this.header.headers, function (col) {
1498
- if (col.key !== header.key) {
1499
- col.sort = '';
1500
- }
1501
- });
1502
- switch (header.sort) {
1503
- case 'asc':
1504
- header.sort = SortType.DESC;
1505
- this.query.sort = '-' + header.key;
1506
- break;
1507
- case 'desc':
1508
- header.sort = undefined;
1509
- delete this.query.sort;
1510
- break;
1511
- case undefined:
1512
- header.sort = SortType.ASC;
1513
- this.query.sort = header.key;
1514
- break;
1515
- }
1516
- this.refreshGrid();
1517
- };
1518
- FormioGridComponent.prototype.pageChanged = function (page) {
1519
- this.setPage(page.page - 1);
1520
- };
1521
- return FormioGridComponent;
1522
- }());
1523
- FormioGridComponent.ɵfac = function FormioGridComponent_Factory(t) { return new (t || FormioGridComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.FormioAlerts), i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
1524
- FormioGridComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormioGridComponent, selectors: [["formio-grid"]], viewQuery: function FormioGridComponent_Query(rf, ctx) {
1525
- if (rf & 1) {
1526
- i0__namespace.ɵɵviewQuery(_c0, 7, i0.ViewContainerRef);
1527
- i0__namespace.ɵɵviewQuery(_c1, 7, i0.ViewContainerRef);
1528
- i0__namespace.ɵɵviewQuery(_c2, 7, i0.ViewContainerRef);
1529
- }
1530
- if (rf & 2) {
1531
- var _t = void 0;
1532
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.headerElement = _t.first);
1533
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.bodyElement = _t.first);
1534
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.footerElement = _t.first);
1535
- }
1536
- }, 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__namespace.ɵɵ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) {
1537
- if (rf & 1) {
1538
- i0__namespace.ɵɵtemplate(0, FormioGridComponent_ng_template_0_Template, 0, 0, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
1539
- i0__namespace.ɵɵtemplate(2, FormioGridComponent_ng_template_2_Template, 0, 0, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
1540
- i0__namespace.ɵɵtemplate(4, FormioGridComponent_ng_template_4_Template, 0, 0, "ng-template", null, 2, i0__namespace.ɵɵtemplateRefExtractor);
1541
- i0__namespace.ɵɵelementStart(6, "div", 3);
1542
- i0__namespace.ɵɵelement(7, "formio-alerts", 4);
1543
- i0__namespace.ɵɵelementStart(8, "table", 5);
1544
- i0__namespace.ɵɵtemplate(9, FormioGridComponent_ng_container_9_Template, 1, 5, "ng-container", 6);
1545
- i0__namespace.ɵɵtemplate(10, FormioGridComponent_ng_container_10_Template, 1, 1, "ng-container", 7);
1546
- i0__namespace.ɵɵelement(11, "formio-loader", 8);
1547
- i0__namespace.ɵɵtemplate(12, FormioGridComponent_ng_container_12_Template, 1, 1, "ng-container", 7);
1548
- i0__namespace.ɵɵtemplate(13, FormioGridComponent_ng_container_13_Template, 1, 5, "ng-container", 6);
1549
- i0__namespace.ɵɵelementEnd();
1550
- i0__namespace.ɵɵelementEnd();
1551
- }
1552
- if (rf & 2) {
1553
- i0__namespace.ɵɵadvance(7);
1554
- i0__namespace.ɵɵproperty("alerts", ctx.alerts);
1555
- i0__namespace.ɵɵadvance(2);
1556
- i0__namespace.ɵɵproperty("ngIf", ctx.initialized && i0__namespace.ɵɵpureFunction2(6, _c4, ctx.footerPositions.top, ctx.footerPositions.both).indexOf(ctx.footerPosition) !== -1);
1557
- i0__namespace.ɵɵadvance(1);
1558
- i0__namespace.ɵɵproperty("ngIf", ctx.initialized);
1559
- i0__namespace.ɵɵadvance(1);
1560
- i0__namespace.ɵɵproperty("isLoading", ctx.isLoading);
1561
- i0__namespace.ɵɵadvance(1);
1562
- i0__namespace.ɵɵproperty("ngIf", ctx.initialized);
1563
- i0__namespace.ɵɵadvance(1);
1564
- i0__namespace.ɵɵproperty("ngIf", ctx.initialized && i0__namespace.ɵɵpureFunction2(9, _c4, ctx.footerPositions.bottom, ctx.footerPositions.both).indexOf(ctx.footerPosition) !== -1);
1565
- }
1566
- }, directives: [i1__namespace$1.FormioAlertsComponent, i1__namespace.NgIf, i1__namespace$1.FormioLoaderComponent, i1__namespace.NgTemplateOutlet], styles: [".formio-grid[_ngcontent-%COMP%]{position:relative;width:100%}.grid-refresh[_ngcontent-%COMP%]{height:400px;width:100%}"] });
1567
- (function () {
1568
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormioGridComponent, [{
1569
- type: i0.Component,
1570
- args: [{
1571
- selector: 'formio-grid',
1572
- styleUrls: ['./grid.component.scss'],
1573
- templateUrl: './grid.component.html'
1574
- }]
1575
- }], function () { return [{ type: i1__namespace$1.FormioAlerts }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ChangeDetectorRef }]; }, { footerPosition: [{
1576
- type: i0.Input
1577
- }], src: [{
1578
- type: i0.Input
1579
- }], items: [{
1580
- type: i0.Input
1581
- }], onForm: [{
1582
- type: i0.Input
1583
- }], query: [{
1584
- type: i0.Input
1585
- }], refresh: [{
1586
- type: i0.Input
1587
- }], columns: [{
1588
- type: i0.Input
1589
- }], gridType: [{
1590
- type: i0.Input
1591
- }], size: [{
1592
- type: i0.Input
1593
- }], components: [{
1594
- type: i0.Input
1595
- }], formio: [{
1596
- type: i0.Input
1597
- }], label: [{
1598
- type: i0.Input
1599
- }], createText: [{
1600
- type: i0.Input
1601
- }], isActionAllowed: [{
1602
- type: i0.Input
1603
- }], select: [{
1604
- type: i0.Output
1605
- }], rowSelect: [{
1606
- type: i0.Output
1607
- }], rowAction: [{
1608
- type: i0.Output
1609
- }], createItem: [{
1610
- type: i0.Output
1611
- }], error: [{
1612
- type: i0.Output
1613
- }], headerElement: [{
1614
- type: i0.ViewChild,
1615
- args: ['headerTemplate', { read: i0.ViewContainerRef, static: true }]
1616
- }], bodyElement: [{
1617
- type: i0.ViewChild,
1618
- args: ['bodyTemplate', { read: i0.ViewContainerRef, static: true }]
1619
- }], footerElement: [{
1620
- type: i0.ViewChild,
1621
- args: ['footerTemplate', { read: i0.ViewContainerRef, static: true }]
1622
- }] });
1623
- })();
1624
-
1625
- var FormioGrid = /** @class */ (function () {
1626
- function FormioGrid() {
1627
- }
1628
- return FormioGrid;
1629
- }());
1630
- FormioGrid.ɵfac = function FormioGrid_Factory(t) { return new (t || FormioGrid)(); };
1631
- FormioGrid.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: FormioGrid });
1632
- FormioGrid.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ providers: [
1633
- i1$1.FormioAlerts,
1634
- GridService
1635
- ], imports: [[
1636
- i1.CommonModule,
1637
- i3.FormsModule,
1638
- i1$1.FormioModule,
1639
- i2.RouterModule,
1640
- i2$1.PaginationModule.forRoot()
1641
- ]] });
1642
- (function () {
1643
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FormioGrid, [{
1644
- type: i0.NgModule,
1645
- args: [{
1646
- imports: [
1647
- i1.CommonModule,
1648
- i3.FormsModule,
1649
- i1$1.FormioModule,
1650
- i2.RouterModule,
1651
- i2$1.PaginationModule.forRoot()
1652
- ],
1653
- declarations: [
1654
- FormioGridComponent,
1655
- FormGridHeaderComponent,
1656
- FormGridBodyComponent,
1657
- FormGridFooterComponent,
1658
- SubmissionGridHeaderComponent,
1659
- SubmissionGridBodyComponent,
1660
- SubmissionGridFooterComponent,
1661
- GridHeaderComponent,
1662
- GridBodyComponent,
1663
- GridFooterComponent,
1664
- TimeSince
1665
- ],
1666
- exports: [
1667
- FormioGridComponent
1668
- ],
1669
- entryComponents: [
1670
- FormGridHeaderComponent,
1671
- FormGridBodyComponent,
1672
- FormGridFooterComponent,
1673
- SubmissionGridHeaderComponent,
1674
- SubmissionGridBodyComponent,
1675
- SubmissionGridFooterComponent
1676
- ],
1677
- providers: [
1678
- i1$1.FormioAlerts,
1679
- GridService
1680
- ]
1681
- }]
1682
- }], null, null);
1683
- })();
1684
- (function () {
1685
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(FormioGrid, { declarations: [FormioGridComponent,
1686
- FormGridHeaderComponent,
1687
- FormGridBodyComponent,
1688
- FormGridFooterComponent,
1689
- SubmissionGridHeaderComponent,
1690
- SubmissionGridBodyComponent,
1691
- SubmissionGridFooterComponent,
1692
- GridHeaderComponent,
1693
- GridBodyComponent,
1694
- GridFooterComponent,
1695
- TimeSince], imports: [i1.CommonModule,
1696
- i3.FormsModule,
1697
- i1$1.FormioModule,
1698
- i2.RouterModule, i2__namespace$1.PaginationModule], exports: [FormioGridComponent] });
1699
- })();
1700
-
1701
- /*
1702
- * Public API Surface of angular-formio
1703
- */
1704
-
1705
- /**
1706
- * Generated bundle index. Do not edit.
1707
- */
1708
-
1709
- exports.FormGridBodyComponent = FormGridBodyComponent;
1710
- exports.FormGridFooterComponent = FormGridFooterComponent;
1711
- exports.FormGridHeaderComponent = FormGridHeaderComponent;
1712
- exports.FormioGrid = FormioGrid;
1713
- exports.FormioGridComponent = FormioGridComponent;
1714
- exports.GridBodyComponent = GridBodyComponent;
1715
- exports.GridFooterComponent = GridFooterComponent;
1716
- exports.GridHeaderComponent = GridHeaderComponent;
1717
- exports.GridService = GridService;
1718
- exports.SubmissionGridBodyComponent = SubmissionGridBodyComponent;
1719
- exports.SubmissionGridFooterComponent = SubmissionGridFooterComponent;
1720
- exports.SubmissionGridHeaderComponent = SubmissionGridHeaderComponent;
1721
-
1722
- Object.defineProperty(exports, '__esModule', { value: true });
1723
-
1724
- }));
1725
- //# sourceMappingURL=formio-angular-grid.umd.js.map