@formio/angular 5.2.0-rc.1 → 5.2.1-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (603) hide show
  1. package/.dockerignore +5 -0
  2. package/.editorconfig +13 -0
  3. package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  4. package/.github/ISSUE_TEMPLATE/custom-components-support-request.md +15 -0
  5. package/.github/ISSUE_TEMPLATE/question.md +8 -0
  6. package/.travis.yml +4 -0
  7. package/.yo-rc.json +7 -0
  8. package/CHANGELOG.md +1008 -0
  9. package/Dockerfile +20 -0
  10. package/LICENSE +21 -0
  11. package/README.md +170 -13
  12. package/angular.json +51 -0
  13. package/bs-config.json +11 -0
  14. package/{FormioBaseComponent.d.ts → dist/angular-formio/FormioBaseComponent.d.ts} +4 -1
  15. package/dist/angular-formio/FormioBaseComponent.d.ts.map +1 -0
  16. package/dist/angular-formio/README.md +24 -0
  17. package/dist/angular-formio/auth/auth.component.d.ts +6 -0
  18. package/{auth → dist/angular-formio/auth}/auth.component.d.ts.map +1 -1
  19. package/{auth → dist/angular-formio/auth}/auth.config.d.ts +3 -0
  20. package/dist/angular-formio/auth/auth.config.d.ts.map +1 -0
  21. package/dist/angular-formio/auth/auth.module.d.ts +17 -0
  22. package/dist/angular-formio/auth/auth.module.d.ts.map +1 -0
  23. package/{auth → dist/angular-formio/auth}/auth.routes.d.ts +0 -0
  24. package/{auth → dist/angular-formio/auth}/auth.routes.d.ts.map +0 -0
  25. package/{auth → dist/angular-formio/auth}/auth.service.d.ts +3 -0
  26. package/dist/angular-formio/auth/auth.service.d.ts.map +1 -0
  27. package/dist/angular-formio/auth/formio-angular-auth.d.ts +6 -0
  28. package/{auth → dist/angular-formio/auth}/formio-angular-auth.d.ts.map +1 -1
  29. package/{auth → dist/angular-formio/auth}/index.d.ts +0 -0
  30. package/{auth → dist/angular-formio/auth}/index.d.ts.map +0 -0
  31. package/dist/angular-formio/auth/login/login.component.d.ts +9 -0
  32. package/{auth → dist/angular-formio/auth}/login/login.component.d.ts.map +1 -1
  33. package/{auth → dist/angular-formio/auth}/package.json +0 -1
  34. package/{auth → dist/angular-formio/auth}/public_api.d.ts +0 -0
  35. package/{auth → dist/angular-formio/auth}/public_api.d.ts.map +0 -0
  36. package/dist/angular-formio/auth/register/register.component.d.ts +9 -0
  37. package/{auth → dist/angular-formio/auth}/register/register.component.d.ts.map +1 -1
  38. package/dist/angular-formio/auth/resetpass/resetpass.component.d.ts +9 -0
  39. package/{auth → dist/angular-formio/auth}/resetpass/resetpass.component.d.ts.map +1 -1
  40. package/dist/angular-formio/bundles/formio-angular-auth.umd.js +421 -0
  41. package/dist/angular-formio/bundles/formio-angular-auth.umd.js.map +1 -0
  42. package/dist/angular-formio/bundles/formio-angular-grid.umd.js +1725 -0
  43. package/dist/angular-formio/bundles/formio-angular-grid.umd.js.map +1 -0
  44. package/dist/angular-formio/bundles/formio-angular-manager.umd.js +1648 -0
  45. package/dist/angular-formio/bundles/formio-angular-manager.umd.js.map +1 -0
  46. package/dist/angular-formio/bundles/formio-angular-resource.umd.js +720 -0
  47. package/dist/angular-formio/bundles/formio-angular-resource.umd.js.map +1 -0
  48. package/dist/angular-formio/bundles/formio-angular.umd.js +1729 -0
  49. package/dist/angular-formio/bundles/formio-angular.umd.js.map +1 -0
  50. package/dist/angular-formio/components/alerts/formio.alerts.component.d.ts +12 -0
  51. package/{components → dist/angular-formio/components}/alerts/formio.alerts.component.d.ts.map +1 -1
  52. package/{components → dist/angular-formio/components}/alerts/formio.alerts.d.ts +0 -0
  53. package/{components → dist/angular-formio/components}/alerts/formio.alerts.d.ts.map +0 -0
  54. package/dist/angular-formio/components/alerts/parse-html-content.pipe.d.ts +8 -0
  55. package/{components → dist/angular-formio/components}/alerts/parse-html-content.pipe.d.ts.map +1 -1
  56. package/{components → dist/angular-formio/components}/formbuilder/formbuilder.component.d.ts +3 -0
  57. package/dist/angular-formio/components/formbuilder/formbuilder.component.d.ts.map +1 -0
  58. package/{components → dist/angular-formio/components}/formio/formio.component.d.ts +3 -0
  59. package/{components → dist/angular-formio/components}/formio/formio.component.d.ts.map +1 -1
  60. package/dist/angular-formio/components/loader/formio.loader.component.d.ts +7 -0
  61. package/dist/angular-formio/components/loader/formio.loader.component.d.ts.map +1 -0
  62. package/{core.d.ts → dist/angular-formio/core.d.ts} +0 -0
  63. package/{core.d.ts.map → dist/angular-formio/core.d.ts.map} +0 -0
  64. package/{custom-component → dist/angular-formio/custom-component}/create-custom-component.d.ts +0 -0
  65. package/{custom-component → dist/angular-formio/custom-component}/create-custom-component.d.ts.map +0 -0
  66. package/dist/angular-formio/custom-component/custom-tags.service.d.ts +8 -0
  67. package/dist/angular-formio/custom-component/custom-tags.service.d.ts.map +1 -0
  68. package/{custom-component → dist/angular-formio/custom-component}/register-custom-component.d.ts +0 -0
  69. package/{custom-component → dist/angular-formio/custom-component}/register-custom-component.d.ts.map +0 -0
  70. package/{elements.common.d.ts → dist/angular-formio/elements.common.d.ts} +0 -0
  71. package/{elements.common.d.ts.map → dist/angular-formio/elements.common.d.ts.map} +0 -0
  72. package/dist/angular-formio/esm2015/FormioBaseComponent.js +497 -0
  73. package/dist/angular-formio/esm2015/auth/auth.component.js +39 -0
  74. package/dist/angular-formio/esm2015/auth/auth.config.js +15 -0
  75. package/dist/angular-formio/esm2015/auth/auth.module.js +49 -0
  76. package/{esm2015 → dist/angular-formio/esm2015}/auth/auth.routes.js +0 -0
  77. package/dist/angular-formio/esm2015/auth/auth.service.js +159 -0
  78. package/{esm2015 → dist/angular-formio/esm2015}/auth/formio-angular-auth.js +0 -0
  79. package/{esm2015 → dist/angular-formio/esm2015}/auth/index.js +0 -0
  80. package/dist/angular-formio/esm2015/auth/login/login.component.js +24 -0
  81. package/{esm2015 → dist/angular-formio/esm2015}/auth/public_api.js +0 -0
  82. package/dist/angular-formio/esm2015/auth/register/register.component.js +24 -0
  83. package/dist/angular-formio/esm2015/auth/resetpass/resetpass.component.js +24 -0
  84. package/dist/angular-formio/esm2015/components/alerts/formio.alerts.component.js +49 -0
  85. package/{esm2015 → dist/angular-formio/esm2015}/components/alerts/formio.alerts.js +0 -0
  86. package/dist/angular-formio/esm2015/components/alerts/parse-html-content.pipe.js +19 -0
  87. package/dist/angular-formio/esm2015/components/formbuilder/formbuilder.component.js +203 -0
  88. package/dist/angular-formio/esm2015/components/formio/formio.component.js +87 -0
  89. package/dist/angular-formio/esm2015/components/loader/formio.loader.component.js +27 -0
  90. package/{esm2015 → dist/angular-formio/esm2015}/core.js +0 -0
  91. package/{esm2015 → dist/angular-formio/esm2015}/custom-component/create-custom-component.js +0 -0
  92. package/dist/angular-formio/esm2015/custom-component/custom-tags.service.js +16 -0
  93. package/{esm2015 → dist/angular-formio/esm2015}/custom-component/register-custom-component.js +0 -0
  94. package/{esm2015 → dist/angular-formio/esm2015}/elements.common.js +0 -0
  95. package/dist/angular-formio/esm2015/formio-angular.js +5 -0
  96. package/{esm2015 → dist/angular-formio/esm2015}/formio-promise.service.js +0 -0
  97. package/{esm2015 → dist/angular-formio/esm2015}/formio.common.js +0 -0
  98. package/dist/angular-formio/esm2015/formio.config.js +14 -0
  99. package/dist/angular-formio/esm2015/formio.module.js +61 -0
  100. package/{esm2015 → dist/angular-formio/esm2015}/formio.service.js +0 -0
  101. package/{esm2015 → dist/angular-formio/esm2015}/formio.utils.js +0 -0
  102. package/dist/angular-formio/esm2015/grid/GridBodyComponent.js +86 -0
  103. package/dist/angular-formio/esm2015/grid/GridFooterComponent.js +41 -0
  104. package/dist/angular-formio/esm2015/grid/GridHeaderComponent.js +35 -0
  105. package/dist/angular-formio/esm2015/grid/form/FormGridBody.component.js +130 -0
  106. package/dist/angular-formio/esm2015/grid/form/FormGridFooter.component.js +118 -0
  107. package/dist/angular-formio/esm2015/grid/form/FormGridHeader.component.js +65 -0
  108. package/{esm2015 → dist/angular-formio/esm2015}/grid/form/index.js +0 -0
  109. package/dist/angular-formio/esm2015/grid/form/time-since.pipe.js +37 -0
  110. package/dist/angular-formio/esm2015/grid/formio-angular-grid.js +5 -0
  111. package/dist/angular-formio/esm2015/grid/grid.component.js +302 -0
  112. package/dist/angular-formio/esm2015/grid/grid.module.js +90 -0
  113. package/dist/angular-formio/esm2015/grid/grid.service.js +18 -0
  114. package/{esm2015 → dist/angular-formio/esm2015}/grid/index.js +0 -0
  115. package/{esm2015 → dist/angular-formio/esm2015}/grid/public_api.js +0 -0
  116. package/dist/angular-formio/esm2015/grid/submission/SubmissionGridBody.component.js +75 -0
  117. package/dist/angular-formio/esm2015/grid/submission/SubmissionGridFooter.component.js +107 -0
  118. package/dist/angular-formio/esm2015/grid/submission/SubmissionGridHeader.component.js +99 -0
  119. package/{esm2015 → dist/angular-formio/esm2015}/grid/submission/index.js +0 -0
  120. package/{esm2015 → dist/angular-formio/esm2015}/grid/types/grid-column.js +0 -0
  121. package/{esm2015 → dist/angular-formio/esm2015}/grid/types/grid-footer-positions.js +0 -0
  122. package/{esm2015 → dist/angular-formio/esm2015}/grid/types/grid-header.js +0 -0
  123. package/{esm2015 → dist/angular-formio/esm2015}/index.js +0 -0
  124. package/dist/angular-formio/esm2015/manager/create/create.component.js +68 -0
  125. package/dist/angular-formio/esm2015/manager/delete/delete.component.js +56 -0
  126. package/dist/angular-formio/esm2015/manager/edit/edit.component.js +170 -0
  127. package/dist/angular-formio/esm2015/manager/form/form.component.js +192 -0
  128. package/dist/angular-formio/esm2015/manager/form-manager.config.js +15 -0
  129. package/dist/angular-formio/esm2015/manager/form-manager.module.js +86 -0
  130. package/{esm2015 → dist/angular-formio/esm2015}/manager/form-manager.routes.js +0 -0
  131. package/dist/angular-formio/esm2015/manager/form-manager.service.js +178 -0
  132. package/{esm2015 → dist/angular-formio/esm2015}/manager/formio-angular-manager.js +0 -0
  133. package/dist/angular-formio/esm2015/manager/index/index.component.js +130 -0
  134. package/{esm2015 → dist/angular-formio/esm2015}/manager/index.js +0 -0
  135. package/{esm2015 → dist/angular-formio/esm2015}/manager/public_api.js +0 -0
  136. package/dist/angular-formio/esm2015/manager/submission/delete/delete.component.js +47 -0
  137. package/dist/angular-formio/esm2015/manager/submission/edit/edit.component.js +30 -0
  138. package/dist/angular-formio/esm2015/manager/submission/index/index.component.js +30 -0
  139. package/dist/angular-formio/esm2015/manager/submission/submission/submission.component.js +75 -0
  140. package/dist/angular-formio/esm2015/manager/submission/view/view.component.js +24 -0
  141. package/dist/angular-formio/esm2015/manager/view/view.component.js +57 -0
  142. package/{esm2015 → dist/angular-formio/esm2015}/public-api.js +0 -0
  143. package/dist/angular-formio/esm2015/resource/create/create.component.js +61 -0
  144. package/dist/angular-formio/esm2015/resource/delete/delete.component.js +42 -0
  145. package/dist/angular-formio/esm2015/resource/edit/edit.component.js +44 -0
  146. package/{esm2015 → dist/angular-formio/esm2015}/resource/formio-angular-resource.js +0 -0
  147. package/dist/angular-formio/esm2015/resource/index/index.component.js +72 -0
  148. package/{esm2015 → dist/angular-formio/esm2015}/resource/index.js +0 -0
  149. package/{esm2015 → dist/angular-formio/esm2015}/resource/public_api.js +0 -0
  150. package/dist/angular-formio/esm2015/resource/resource.component.js +83 -0
  151. package/dist/angular-formio/esm2015/resource/resource.config.js +15 -0
  152. package/dist/angular-formio/esm2015/resource/resource.module.js +65 -0
  153. package/{esm2015 → dist/angular-formio/esm2015}/resource/resource.routes.js +0 -0
  154. package/dist/angular-formio/esm2015/resource/resource.service.js +186 -0
  155. package/dist/angular-formio/esm2015/resource/resources.service.js +22 -0
  156. package/dist/angular-formio/esm2015/resource/view/view.component.js +29 -0
  157. package/{esm2015 → dist/angular-formio/esm2015}/types/alerts-position.js +0 -0
  158. package/{esm2015 → dist/angular-formio/esm2015}/types/formio-metadata.js +0 -0
  159. package/{esm2015 → dist/angular-formio/esm2015}/types/formio-submission.js +0 -0
  160. package/{fesm2015 → dist/angular-formio/fesm2015}/formio-angular-auth.js +108 -45
  161. package/dist/angular-formio/fesm2015/formio-angular-auth.js.map +1 -0
  162. package/dist/angular-formio/fesm2015/formio-angular-grid.js +1175 -0
  163. package/dist/angular-formio/fesm2015/formio-angular-grid.js.map +1 -0
  164. package/dist/angular-formio/fesm2015/formio-angular-manager.js +1145 -0
  165. package/dist/angular-formio/fesm2015/formio-angular-manager.js.map +1 -0
  166. package/dist/angular-formio/fesm2015/formio-angular-resource.js +612 -0
  167. package/dist/angular-formio/fesm2015/formio-angular-resource.js.map +1 -0
  168. package/dist/angular-formio/fesm2015/formio-angular.js +1232 -0
  169. package/dist/angular-formio/fesm2015/formio-angular.js.map +1 -0
  170. package/dist/angular-formio/formio-angular.d.ts +6 -0
  171. package/dist/angular-formio/formio-angular.d.ts.map +1 -0
  172. package/{formio-promise.service.d.ts → dist/angular-formio/formio-promise.service.d.ts} +0 -0
  173. package/{formio-promise.service.d.ts.map → dist/angular-formio/formio-promise.service.d.ts.map} +0 -0
  174. package/{formio.common.d.ts → dist/angular-formio/formio.common.d.ts} +0 -0
  175. package/{formio.common.d.ts.map → dist/angular-formio/formio.common.d.ts.map} +0 -0
  176. package/dist/angular-formio/formio.config.d.ts +10 -0
  177. package/dist/angular-formio/formio.config.d.ts.map +1 -0
  178. package/dist/angular-formio/formio.module.d.ts +14 -0
  179. package/{formio.module.d.ts.map → dist/angular-formio/formio.module.d.ts.map} +1 -1
  180. package/{formio.service.d.ts → dist/angular-formio/formio.service.d.ts} +0 -0
  181. package/{formio.service.d.ts.map → dist/angular-formio/formio.service.d.ts.map} +0 -0
  182. package/{formio.utils.d.ts → dist/angular-formio/formio.utils.d.ts} +0 -0
  183. package/{formio.utils.d.ts.map → dist/angular-formio/formio.utils.d.ts.map} +0 -0
  184. package/{grid → dist/angular-formio/grid}/GridBodyComponent.d.ts +3 -0
  185. package/dist/angular-formio/grid/GridBodyComponent.d.ts.map +1 -0
  186. package/{grid → dist/angular-formio/grid}/GridFooterComponent.d.ts +3 -0
  187. package/dist/angular-formio/grid/GridFooterComponent.d.ts.map +1 -0
  188. package/{grid → dist/angular-formio/grid}/GridHeaderComponent.d.ts +3 -0
  189. package/dist/angular-formio/grid/GridHeaderComponent.d.ts.map +1 -0
  190. package/dist/angular-formio/grid/form/FormGridBody.component.d.ts +9 -0
  191. package/{grid → dist/angular-formio/grid}/form/FormGridBody.component.d.ts.map +1 -1
  192. package/dist/angular-formio/grid/form/FormGridFooter.component.d.ts +10 -0
  193. package/{grid → dist/angular-formio/grid}/form/FormGridFooter.component.d.ts.map +1 -1
  194. package/{grid → dist/angular-formio/grid}/form/FormGridHeader.component.d.ts +3 -0
  195. package/{grid → dist/angular-formio/grid}/form/FormGridHeader.component.d.ts.map +1 -1
  196. package/{grid → dist/angular-formio/grid}/form/index.d.ts +0 -0
  197. package/{grid → dist/angular-formio/grid}/form/index.d.ts.map +0 -0
  198. package/dist/angular-formio/grid/form/time-since.pipe.d.ts +8 -0
  199. package/{grid → dist/angular-formio/grid}/form/time-since.pipe.d.ts.map +1 -1
  200. package/dist/angular-formio/grid/formio-angular-grid.d.ts +6 -0
  201. package/{grid → dist/angular-formio/grid}/formio-angular-grid.d.ts.map +1 -1
  202. package/{grid → dist/angular-formio/grid}/grid.component.d.ts +3 -0
  203. package/dist/angular-formio/grid/grid.component.d.ts.map +1 -0
  204. package/dist/angular-formio/grid/grid.module.d.ts +23 -0
  205. package/{grid → dist/angular-formio/grid}/grid.module.d.ts.map +1 -1
  206. package/dist/angular-formio/grid/grid.service.d.ts +10 -0
  207. package/dist/angular-formio/grid/grid.service.d.ts.map +1 -0
  208. package/{grid → dist/angular-formio/grid}/index.d.ts +0 -0
  209. package/{grid → dist/angular-formio/grid}/index.d.ts.map +0 -0
  210. package/{grid → dist/angular-formio/grid}/package.json +0 -1
  211. package/{grid → dist/angular-formio/grid}/public_api.d.ts +0 -0
  212. package/{grid → dist/angular-formio/grid}/public_api.d.ts.map +0 -0
  213. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridBody.component.d.ts +3 -0
  214. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridBody.component.d.ts.map +1 -1
  215. package/dist/angular-formio/grid/submission/SubmissionGridFooter.component.d.ts +10 -0
  216. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridFooter.component.d.ts.map +1 -1
  217. package/{grid → dist/angular-formio/grid}/submission/SubmissionGridHeader.component.d.ts +3 -0
  218. package/dist/angular-formio/grid/submission/SubmissionGridHeader.component.d.ts.map +1 -0
  219. package/{grid → dist/angular-formio/grid}/submission/index.d.ts +0 -0
  220. package/{grid → dist/angular-formio/grid}/submission/index.d.ts.map +0 -0
  221. package/{grid → dist/angular-formio/grid}/types/grid-column.d.ts +0 -0
  222. package/{grid → dist/angular-formio/grid}/types/grid-column.d.ts.map +0 -0
  223. package/{grid → dist/angular-formio/grid}/types/grid-footer-positions.d.ts +0 -0
  224. package/{grid → dist/angular-formio/grid}/types/grid-footer-positions.d.ts.map +0 -0
  225. package/{grid → dist/angular-formio/grid}/types/grid-header.d.ts +0 -0
  226. package/{grid → dist/angular-formio/grid}/types/grid-header.d.ts.map +0 -0
  227. package/{index.d.ts → dist/angular-formio/index.d.ts} +0 -0
  228. package/{index.d.ts.map → dist/angular-formio/index.d.ts.map} +0 -0
  229. package/dist/angular-formio/manager/create/create.component.d.ts +9 -0
  230. package/{manager → dist/angular-formio/manager}/create/create.component.d.ts.map +1 -1
  231. package/{manager → dist/angular-formio/manager}/delete/delete.component.d.ts +3 -0
  232. package/dist/angular-formio/manager/delete/delete.component.d.ts.map +1 -0
  233. package/{manager → dist/angular-formio/manager}/edit/edit.component.d.ts +3 -0
  234. package/dist/angular-formio/manager/edit/edit.component.d.ts.map +1 -0
  235. package/{manager → dist/angular-formio/manager}/form/form.component.d.ts +3 -0
  236. package/dist/angular-formio/manager/form/form.component.d.ts.map +1 -0
  237. package/{manager → dist/angular-formio/manager}/form-manager.config.d.ts +3 -0
  238. package/dist/angular-formio/manager/form-manager.config.d.ts.map +1 -0
  239. package/dist/angular-formio/manager/form-manager.module.d.ts +28 -0
  240. package/dist/angular-formio/manager/form-manager.module.d.ts.map +1 -0
  241. package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts +0 -0
  242. package/{manager → dist/angular-formio/manager}/form-manager.routes.d.ts.map +0 -0
  243. package/{manager → dist/angular-formio/manager}/form-manager.service.d.ts +3 -0
  244. package/dist/angular-formio/manager/form-manager.service.d.ts.map +1 -0
  245. package/dist/angular-formio/manager/formio-angular-manager.d.ts +6 -0
  246. package/{manager → dist/angular-formio/manager}/formio-angular-manager.d.ts.map +1 -1
  247. package/{manager → dist/angular-formio/manager}/index/index.component.d.ts +3 -0
  248. package/dist/angular-formio/manager/index/index.component.d.ts.map +1 -0
  249. package/{manager → dist/angular-formio/manager}/index.d.ts +0 -0
  250. package/{manager → dist/angular-formio/manager}/index.d.ts.map +0 -0
  251. package/{manager → dist/angular-formio/manager}/package.json +0 -1
  252. package/{manager → dist/angular-formio/manager}/public_api.d.ts +0 -0
  253. package/{manager → dist/angular-formio/manager}/public_api.d.ts.map +0 -0
  254. package/{manager → dist/angular-formio/manager}/submission/delete/delete.component.d.ts +3 -0
  255. package/{manager → dist/angular-formio/manager}/submission/delete/delete.component.d.ts.map +1 -1
  256. package/{manager → dist/angular-formio/manager}/submission/edit/edit.component.d.ts +3 -0
  257. package/{manager → dist/angular-formio/manager}/submission/edit/edit.component.d.ts.map +1 -1
  258. package/{manager → dist/angular-formio/manager}/submission/index/index.component.d.ts +3 -0
  259. package/{manager → dist/angular-formio/manager}/submission/index/index.component.d.ts.map +1 -1
  260. package/{manager → dist/angular-formio/manager}/submission/submission/submission.component.d.ts +3 -0
  261. package/{manager → dist/angular-formio/manager}/submission/submission/submission.component.d.ts.map +1 -1
  262. package/dist/angular-formio/manager/submission/view/view.component.d.ts +9 -0
  263. package/{manager → dist/angular-formio/manager}/submission/view/view.component.d.ts.map +1 -1
  264. package/{manager → dist/angular-formio/manager}/view/view.component.d.ts +3 -0
  265. package/dist/angular-formio/manager/view/view.component.d.ts.map +1 -0
  266. package/dist/angular-formio/package.json +49 -0
  267. package/{public-api.d.ts → dist/angular-formio/public-api.d.ts} +0 -0
  268. package/{public-api.d.ts.map → dist/angular-formio/public-api.d.ts.map} +0 -0
  269. package/{resource → dist/angular-formio/resource}/create/create.component.d.ts +3 -0
  270. package/dist/angular-formio/resource/create/create.component.d.ts.map +1 -0
  271. package/{resource → dist/angular-formio/resource}/delete/delete.component.d.ts +3 -0
  272. package/{resource → dist/angular-formio/resource}/delete/delete.component.d.ts.map +1 -1
  273. package/{resource → dist/angular-formio/resource}/edit/edit.component.d.ts +9 -2
  274. package/dist/angular-formio/resource/edit/edit.component.d.ts.map +1 -0
  275. package/dist/angular-formio/resource/formio-angular-resource.d.ts +6 -0
  276. package/{resource → dist/angular-formio/resource}/formio-angular-resource.d.ts.map +1 -1
  277. package/{resource → dist/angular-formio/resource}/index/index.component.d.ts +3 -0
  278. package/dist/angular-formio/resource/index/index.component.d.ts.map +1 -0
  279. package/{resource → dist/angular-formio/resource}/index.d.ts +0 -0
  280. package/{resource → dist/angular-formio/resource}/index.d.ts.map +0 -0
  281. package/{resource → dist/angular-formio/resource}/package.json +0 -1
  282. package/{resource → dist/angular-formio/resource}/public_api.d.ts +0 -0
  283. package/{resource → dist/angular-formio/resource}/public_api.d.ts.map +0 -0
  284. package/{resource → dist/angular-formio/resource}/resource.component.d.ts +3 -0
  285. package/{resource → dist/angular-formio/resource}/resource.component.d.ts.map +1 -1
  286. package/{resource → dist/angular-formio/resource}/resource.config.d.ts +3 -0
  287. package/dist/angular-formio/resource/resource.config.d.ts.map +1 -0
  288. package/dist/angular-formio/resource/resource.module.d.ts +20 -0
  289. package/dist/angular-formio/resource/resource.module.d.ts.map +1 -0
  290. package/{resource → dist/angular-formio/resource}/resource.routes.d.ts +0 -0
  291. package/{resource → dist/angular-formio/resource}/resource.routes.d.ts.map +0 -0
  292. package/{resource → dist/angular-formio/resource}/resource.service.d.ts +3 -0
  293. package/dist/angular-formio/resource/resource.service.d.ts.map +1 -0
  294. package/{resource → dist/angular-formio/resource}/resources.service.d.ts +3 -0
  295. package/dist/angular-formio/resource/resources.service.d.ts.map +1 -0
  296. package/dist/angular-formio/resource/view/view.component.d.ts +16 -0
  297. package/dist/angular-formio/resource/view/view.component.d.ts.map +1 -0
  298. package/{types → dist/angular-formio/types}/alerts-position.d.ts +0 -0
  299. package/{types → dist/angular-formio/types}/alerts-position.d.ts.map +0 -0
  300. package/{types → dist/angular-formio/types}/formio-metadata.d.ts +0 -0
  301. package/{types → dist/angular-formio/types}/formio-metadata.d.ts.map +0 -0
  302. package/{types → dist/angular-formio/types}/formio-submission.d.ts +0 -0
  303. package/{types → dist/angular-formio/types}/formio-submission.d.ts.map +0 -0
  304. package/package.json +52 -28
  305. package/projects/angular-formio/README.md +24 -0
  306. package/projects/angular-formio/auth/package.json +10 -0
  307. package/projects/angular-formio/auth/src/auth.component.html +12 -0
  308. package/projects/angular-formio/auth/src/auth.component.ts +5 -0
  309. package/projects/angular-formio/auth/src/auth.config.ts +72 -0
  310. package/projects/angular-formio/auth/src/auth.module.ts +33 -0
  311. package/projects/angular-formio/auth/src/auth.routes.ts +34 -0
  312. package/projects/angular-formio/auth/src/auth.service.ts +201 -0
  313. package/projects/angular-formio/auth/src/index.ts +8 -0
  314. package/projects/angular-formio/auth/src/login/login.component.html +1 -0
  315. package/projects/angular-formio/auth/src/login/login.component.ts +8 -0
  316. package/projects/angular-formio/auth/src/public_api.ts +5 -0
  317. package/projects/angular-formio/auth/src/register/register.component.html +1 -0
  318. package/projects/angular-formio/auth/src/register/register.component.ts +8 -0
  319. package/projects/angular-formio/auth/src/resetpass/resetpass.component.html +1 -0
  320. package/projects/angular-formio/auth/src/resetpass/resetpass.component.ts +8 -0
  321. package/projects/angular-formio/grid/package.json +11 -0
  322. package/projects/angular-formio/grid/src/GridBodyComponent.ts +80 -0
  323. package/projects/angular-formio/grid/src/GridFooterComponent.ts +25 -0
  324. package/projects/angular-formio/grid/src/GridHeaderComponent.ts +25 -0
  325. package/projects/angular-formio/grid/src/form/FormGridBody.component.html +23 -0
  326. package/projects/angular-formio/grid/src/form/FormGridBody.component.scss +4 -0
  327. package/projects/angular-formio/grid/src/form/FormGridBody.component.ts +15 -0
  328. package/projects/angular-formio/grid/src/form/FormGridFooter.component.html +21 -0
  329. package/projects/angular-formio/grid/src/form/FormGridFooter.component.ts +23 -0
  330. package/projects/angular-formio/grid/src/form/FormGridHeader.component.html +18 -0
  331. package/projects/angular-formio/grid/src/form/FormGridHeader.component.ts +24 -0
  332. package/projects/angular-formio/grid/src/form/index.ts +8 -0
  333. package/projects/angular-formio/grid/src/form/time-since.pipe.ts +31 -0
  334. package/projects/angular-formio/grid/src/grid.component.html +18 -0
  335. package/projects/angular-formio/grid/src/grid.component.scss +9 -0
  336. package/projects/angular-formio/grid/src/grid.component.ts +242 -0
  337. package/projects/angular-formio/grid/src/grid.footer.scss +14 -0
  338. package/projects/angular-formio/grid/src/grid.module.ts +57 -0
  339. package/projects/angular-formio/grid/src/grid.service.ts +16 -0
  340. package/projects/angular-formio/grid/src/index.ts +12 -0
  341. package/projects/angular-formio/grid/src/public_api.ts +5 -0
  342. package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.html +7 -0
  343. package/projects/angular-formio/grid/src/submission/SubmissionGridBody.component.ts +39 -0
  344. package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.html +18 -0
  345. package/projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.ts +20 -0
  346. package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.html +11 -0
  347. package/projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.ts +72 -0
  348. package/projects/angular-formio/grid/src/submission/index.ts +8 -0
  349. package/projects/angular-formio/grid/src/types/grid-column.ts +7 -0
  350. package/projects/angular-formio/grid/src/types/grid-footer-positions.ts +5 -0
  351. package/projects/angular-formio/grid/src/types/grid-header.ts +14 -0
  352. package/projects/angular-formio/karma.conf.js +32 -0
  353. package/projects/angular-formio/manager/package.json +15 -0
  354. package/projects/angular-formio/manager/src/create/create.component.ts +11 -0
  355. package/projects/angular-formio/manager/src/delete/delete.component.html +6 -0
  356. package/projects/angular-formio/manager/src/delete/delete.component.ts +37 -0
  357. package/projects/angular-formio/manager/src/edit/edit.component.html +19 -0
  358. package/projects/angular-formio/manager/src/edit/edit.component.ts +107 -0
  359. package/projects/angular-formio/manager/src/form/form.component.html +32 -0
  360. package/projects/angular-formio/manager/src/form/form.component.ts +73 -0
  361. package/projects/angular-formio/manager/src/form-manager.config.ts +26 -0
  362. package/projects/angular-formio/manager/src/form-manager.module.ts +54 -0
  363. package/projects/angular-formio/manager/src/form-manager.routes.ts +75 -0
  364. package/projects/angular-formio/manager/src/form-manager.service.ts +195 -0
  365. package/projects/angular-formio/manager/src/index/index.component.html +14 -0
  366. package/projects/angular-formio/manager/src/index/index.component.scss +22 -0
  367. package/projects/angular-formio/manager/src/index/index.component.ts +84 -0
  368. package/projects/angular-formio/manager/src/index.ts +16 -0
  369. package/projects/angular-formio/manager/src/public_api.ts +5 -0
  370. package/projects/angular-formio/manager/src/submission/delete/delete.component.html +6 -0
  371. package/projects/angular-formio/manager/src/submission/delete/delete.component.ts +26 -0
  372. package/projects/angular-formio/manager/src/submission/edit/edit.component.html +7 -0
  373. package/projects/angular-formio/manager/src/submission/edit/edit.component.ts +18 -0
  374. package/projects/angular-formio/manager/src/submission/index/index.component.html +1 -0
  375. package/projects/angular-formio/manager/src/submission/index/index.component.ts +18 -0
  376. package/projects/angular-formio/manager/src/submission/submission/submission.component.html +8 -0
  377. package/projects/angular-formio/manager/src/submission/submission/submission.component.ts +24 -0
  378. package/projects/angular-formio/manager/src/submission/view/view.component.html +7 -0
  379. package/projects/angular-formio/manager/src/submission/view/view.component.ts +9 -0
  380. package/projects/angular-formio/manager/src/view/view.component.html +10 -0
  381. package/projects/angular-formio/manager/src/view/view.component.ts +41 -0
  382. package/projects/angular-formio/ng-package.json +14 -0
  383. package/projects/angular-formio/package.json +39 -0
  384. package/projects/angular-formio/resource/package.json +11 -0
  385. package/projects/angular-formio/resource/src/create/create.component.html +13 -0
  386. package/projects/angular-formio/resource/src/create/create.component.scss +3 -0
  387. package/projects/angular-formio/resource/src/create/create.component.ts +37 -0
  388. package/projects/angular-formio/resource/src/delete/delete.component.html +5 -0
  389. package/projects/angular-formio/resource/src/delete/delete.component.ts +24 -0
  390. package/projects/angular-formio/resource/src/edit/edit.component.html +6 -0
  391. package/projects/angular-formio/resource/src/edit/edit.component.ts +33 -0
  392. package/projects/angular-formio/resource/src/index/index.component.html +10 -0
  393. package/projects/angular-formio/resource/src/index/index.component.ts +66 -0
  394. package/projects/angular-formio/resource/src/index.js +24 -0
  395. package/projects/angular-formio/resource/src/index.ts +11 -0
  396. package/projects/angular-formio/resource/src/public_api.ts +5 -0
  397. package/projects/angular-formio/resource/src/resource.component.html +7 -0
  398. package/projects/angular-formio/resource/src/resource.component.ts +48 -0
  399. package/projects/angular-formio/resource/src/resource.config.ts +17 -0
  400. package/projects/angular-formio/resource/src/resource.module.ts +43 -0
  401. package/projects/angular-formio/resource/src/resource.routes.ts +43 -0
  402. package/projects/angular-formio/resource/src/resource.service.ts +232 -0
  403. package/projects/angular-formio/resource/src/resources.service.ts +24 -0
  404. package/projects/angular-formio/resource/src/view/view.component.html +6 -0
  405. package/projects/angular-formio/resource/src/view/view.component.ts +19 -0
  406. package/projects/angular-formio/src/FormioBaseComponent.ts +507 -0
  407. package/projects/angular-formio/src/components/alerts/formio.alerts.component.html +3 -0
  408. package/projects/angular-formio/src/components/alerts/formio.alerts.component.ts +19 -0
  409. package/projects/angular-formio/src/components/alerts/formio.alerts.ts +21 -0
  410. package/projects/angular-formio/src/components/alerts/parse-html-content.pipe.ts +15 -0
  411. package/projects/angular-formio/src/components/formbuilder/formbuilder.component.html +1 -0
  412. package/projects/angular-formio/src/components/formbuilder/formbuilder.component.ts +216 -0
  413. package/projects/angular-formio/src/components/formio/formio.component.html +8 -0
  414. package/projects/angular-formio/src/components/formio/formio.component.ts +33 -0
  415. package/projects/angular-formio/src/components/loader/formio.loader.component.html +3 -0
  416. package/projects/angular-formio/src/components/loader/formio.loader.component.scss +26 -0
  417. package/projects/angular-formio/src/components/loader/formio.loader.component.ts +10 -0
  418. package/projects/angular-formio/src/core.ts +21 -0
  419. package/projects/angular-formio/src/custom-component/create-custom-component.ts +173 -0
  420. package/projects/angular-formio/src/custom-component/custom-tags.service.ts +10 -0
  421. package/projects/angular-formio/src/custom-component/register-custom-component.ts +41 -0
  422. package/projects/angular-formio/src/elements.common.ts +31 -0
  423. package/projects/angular-formio/src/formio-promise.service.ts +36 -0
  424. package/projects/angular-formio/src/formio.common.ts +81 -0
  425. package/projects/angular-formio/src/formio.config.ts +9 -0
  426. package/projects/angular-formio/src/formio.module.ts +39 -0
  427. package/projects/angular-formio/src/formio.service.ts +57 -0
  428. package/projects/angular-formio/src/formio.utils.ts +23 -0
  429. package/projects/angular-formio/src/index.ts +5 -0
  430. package/projects/angular-formio/src/public-api.ts +5 -0
  431. package/projects/angular-formio/src/test.ts +26 -0
  432. package/projects/angular-formio/src/types/alerts-position.ts +6 -0
  433. package/projects/angular-formio/src/types/formio-metadata.ts +10 -0
  434. package/projects/angular-formio/src/types/formio-submission.ts +20 -0
  435. package/projects/angular-formio/tsconfig.lib.json +27 -0
  436. package/projects/angular-formio/tsconfig.lib.prod.json +8 -0
  437. package/projects/angular-formio/tsconfig.spec.json +17 -0
  438. package/projects/angular-formio/tslint.json +17 -0
  439. package/tsconfig.json +28 -0
  440. package/tslint.json +140 -0
  441. package/FormioBaseComponent.d.ts.map +0 -1
  442. package/FormioBaseComponent.ngfactory.d.ts.map +0 -1
  443. package/auth/auth.component.d.ts +0 -3
  444. package/auth/auth.config.d.ts.map +0 -1
  445. package/auth/auth.module.d.ts +0 -6
  446. package/auth/auth.module.d.ts.map +0 -1
  447. package/auth/auth.service.d.ts.map +0 -1
  448. package/auth/formio-angular-auth.d.ts +0 -5
  449. package/auth/formio-angular-auth.metadata.json +0 -1
  450. package/auth/login/login.component.d.ts +0 -6
  451. package/auth/register/register.component.d.ts +0 -6
  452. package/auth/resetpass/resetpass.component.d.ts +0 -6
  453. package/bundles/formio-angular-auth.umd.js +0 -312
  454. package/bundles/formio-angular-auth.umd.js.map +0 -1
  455. package/bundles/formio-angular-grid.umd.js +0 -1004
  456. package/bundles/formio-angular-grid.umd.js.map +0 -1
  457. package/bundles/formio-angular-manager.umd.js +0 -1116
  458. package/bundles/formio-angular-manager.umd.js.map +0 -1
  459. package/bundles/formio-angular-resource.umd.js +0 -548
  460. package/bundles/formio-angular-resource.umd.js.map +0 -1
  461. package/bundles/formio-angular.umd.js +0 -1499
  462. package/bundles/formio-angular.umd.js.map +0 -1
  463. package/components/alerts/formio.alerts.component.d.ts +0 -9
  464. package/components/alerts/formio.alerts.component.ngfactory.d.ts.map +0 -1
  465. package/components/alerts/parse-html-content.pipe.d.ts +0 -5
  466. package/components/alerts/parse-html-content.pipe.ngfactory.d.ts.map +0 -1
  467. package/components/formbuilder/formbuilder.component.d.ts.map +0 -1
  468. package/components/formbuilder/formbuilder.component.ngfactory.d.ts.map +0 -1
  469. package/components/formio/formio.component.ngfactory.d.ts.map +0 -1
  470. package/components/loader/formio.loader.component.d.ts +0 -4
  471. package/components/loader/formio.loader.component.d.ts.map +0 -1
  472. package/components/loader/formio.loader.component.ngfactory.d.ts.map +0 -1
  473. package/components/loader/formio.loader.component.scss.shim.ngstyle.d.ts.map +0 -1
  474. package/custom-component/custom-tags.service.d.ts +0 -5
  475. package/custom-component/custom-tags.service.d.ts.map +0 -1
  476. package/custom-component/custom-tags.service.ngfactory.d.ts.map +0 -1
  477. package/esm2015/FormioBaseComponent.js +0 -456
  478. package/esm2015/auth/auth.component.js +0 -9
  479. package/esm2015/auth/auth.config.js +0 -12
  480. package/esm2015/auth/auth.module.js +0 -34
  481. package/esm2015/auth/auth.service.js +0 -160
  482. package/esm2015/auth/login/login.component.js +0 -16
  483. package/esm2015/auth/register/register.component.js +0 -16
  484. package/esm2015/auth/resetpass/resetpass.component.js +0 -16
  485. package/esm2015/components/alerts/formio.alerts.component.js +0 -26
  486. package/esm2015/components/alerts/parse-html-content.pipe.js +0 -15
  487. package/esm2015/components/formbuilder/formbuilder.component.js +0 -185
  488. package/esm2015/components/formio/formio.component.js +0 -39
  489. package/esm2015/components/loader/formio.loader.component.js +0 -14
  490. package/esm2015/custom-component/custom-tags.service.js +0 -13
  491. package/esm2015/formio-angular.js +0 -7
  492. package/esm2015/formio.config.js +0 -11
  493. package/esm2015/formio.module.js +0 -42
  494. package/esm2015/grid/GridBodyComponent.js +0 -76
  495. package/esm2015/grid/GridFooterComponent.js +0 -26
  496. package/esm2015/grid/GridHeaderComponent.js +0 -25
  497. package/esm2015/grid/form/FormGridBody.component.js +0 -16
  498. package/esm2015/grid/form/FormGridFooter.component.js +0 -24
  499. package/esm2015/grid/form/FormGridHeader.component.js +0 -24
  500. package/esm2015/grid/form/time-since.pipe.js +0 -33
  501. package/esm2015/grid/formio-angular-grid.js +0 -6
  502. package/esm2015/grid/grid.component.js +0 -211
  503. package/esm2015/grid/grid.module.js +0 -61
  504. package/esm2015/grid/grid.service.js +0 -16
  505. package/esm2015/grid/submission/SubmissionGridBody.component.js +0 -40
  506. package/esm2015/grid/submission/SubmissionGridFooter.component.js +0 -21
  507. package/esm2015/grid/submission/SubmissionGridHeader.component.js +0 -58
  508. package/esm2015/manager/create/create.component.js +0 -13
  509. package/esm2015/manager/delete/delete.component.js +0 -42
  510. package/esm2015/manager/edit/edit.component.js +0 -109
  511. package/esm2015/manager/form/form.component.js +0 -73
  512. package/esm2015/manager/form-manager.config.js +0 -12
  513. package/esm2015/manager/form-manager.module.js +0 -56
  514. package/esm2015/manager/form-manager.service.js +0 -180
  515. package/esm2015/manager/index/index.component.js +0 -86
  516. package/esm2015/manager/submission/delete/delete.component.js +0 -32
  517. package/esm2015/manager/submission/edit/edit.component.js +0 -24
  518. package/esm2015/manager/submission/index/index.component.js +0 -24
  519. package/esm2015/manager/submission/submission/submission.component.js +0 -27
  520. package/esm2015/manager/submission/view/view.component.js +0 -16
  521. package/esm2015/manager/view/view.component.js +0 -45
  522. package/esm2015/resource/create/create.component.js +0 -40
  523. package/esm2015/resource/delete/delete.component.js +0 -29
  524. package/esm2015/resource/edit/edit.component.js +0 -34
  525. package/esm2015/resource/index/index.component.js +0 -65
  526. package/esm2015/resource/resource.component.js +0 -48
  527. package/esm2015/resource/resource.config.js +0 -12
  528. package/esm2015/resource/resource.module.js +0 -44
  529. package/esm2015/resource/resource.service.js +0 -187
  530. package/esm2015/resource/resources.service.js +0 -22
  531. package/esm2015/resource/view/view.component.js +0 -19
  532. package/fesm2015/formio-angular-auth.js.map +0 -1
  533. package/fesm2015/formio-angular-grid.js +0 -624
  534. package/fesm2015/formio-angular-grid.js.map +0 -1
  535. package/fesm2015/formio-angular-manager.js +0 -750
  536. package/fesm2015/formio-angular-manager.js.map +0 -1
  537. package/fesm2015/formio-angular-resource.js +0 -507
  538. package/fesm2015/formio-angular-resource.js.map +0 -1
  539. package/fesm2015/formio-angular.js +0 -1073
  540. package/fesm2015/formio-angular.js.map +0 -1
  541. package/formio-angular.d.ts +0 -7
  542. package/formio-angular.d.ts.map +0 -1
  543. package/formio-angular.metadata.json +0 -1
  544. package/formio.config.d.ts +0 -7
  545. package/formio.config.d.ts.map +0 -1
  546. package/formio.config.ngfactory.d.ts.map +0 -1
  547. package/formio.module.d.ts +0 -3
  548. package/formio.module.ngfactory.d.ts.map +0 -1
  549. package/grid/GridBodyComponent.d.ts.map +0 -1
  550. package/grid/GridBodyComponent.ngfactory.d.ts.map +0 -1
  551. package/grid/GridFooterComponent.d.ts.map +0 -1
  552. package/grid/GridFooterComponent.ngfactory.d.ts.map +0 -1
  553. package/grid/GridHeaderComponent.d.ts.map +0 -1
  554. package/grid/GridHeaderComponent.ngfactory.d.ts.map +0 -1
  555. package/grid/form/FormGridBody.component.d.ts +0 -6
  556. package/grid/form/FormGridBody.component.ngfactory.d.ts.map +0 -1
  557. package/grid/form/FormGridBody.component.scss.shim.ngstyle.d.ts.map +0 -1
  558. package/grid/form/FormGridFooter.component.d.ts +0 -7
  559. package/grid/form/FormGridFooter.component.ngfactory.d.ts.map +0 -1
  560. package/grid/form/FormGridHeader.component.ngfactory.d.ts.map +0 -1
  561. package/grid/form/time-since.pipe.d.ts +0 -5
  562. package/grid/form/time-since.pipe.ngfactory.d.ts.map +0 -1
  563. package/grid/formio-angular-grid.d.ts +0 -6
  564. package/grid/formio-angular-grid.metadata.json +0 -1
  565. package/grid/grid.component.d.ts.map +0 -1
  566. package/grid/grid.component.ngfactory.d.ts.map +0 -1
  567. package/grid/grid.component.scss.shim.ngstyle.d.ts.map +0 -1
  568. package/grid/grid.footer.scss.ngstyle.d.ts.map +0 -1
  569. package/grid/grid.module.d.ts +0 -3
  570. package/grid/grid.module.ngfactory.d.ts.map +0 -1
  571. package/grid/grid.service.d.ts +0 -7
  572. package/grid/grid.service.d.ts.map +0 -1
  573. package/grid/grid.service.ngfactory.d.ts.map +0 -1
  574. package/grid/submission/SubmissionGridBody.component.ngfactory.d.ts.map +0 -1
  575. package/grid/submission/SubmissionGridFooter.component.d.ts +0 -7
  576. package/grid/submission/SubmissionGridFooter.component.ngfactory.d.ts.map +0 -1
  577. package/grid/submission/SubmissionGridHeader.component.d.ts.map +0 -1
  578. package/grid/submission/SubmissionGridHeader.component.ngfactory.d.ts.map +0 -1
  579. package/manager/create/create.component.d.ts +0 -6
  580. package/manager/delete/delete.component.d.ts.map +0 -1
  581. package/manager/edit/edit.component.d.ts.map +0 -1
  582. package/manager/form/form.component.d.ts.map +0 -1
  583. package/manager/form-manager.config.d.ts.map +0 -1
  584. package/manager/form-manager.module.d.ts +0 -6
  585. package/manager/form-manager.module.d.ts.map +0 -1
  586. package/manager/form-manager.service.d.ts.map +0 -1
  587. package/manager/formio-angular-manager.d.ts +0 -5
  588. package/manager/formio-angular-manager.metadata.json +0 -1
  589. package/manager/index/index.component.d.ts.map +0 -1
  590. package/manager/submission/view/view.component.d.ts +0 -6
  591. package/manager/view/view.component.d.ts.map +0 -1
  592. package/resource/create/create.component.d.ts.map +0 -1
  593. package/resource/edit/edit.component.d.ts.map +0 -1
  594. package/resource/formio-angular-resource.d.ts +0 -5
  595. package/resource/formio-angular-resource.metadata.json +0 -1
  596. package/resource/index/index.component.d.ts.map +0 -1
  597. package/resource/resource.config.d.ts.map +0 -1
  598. package/resource/resource.module.d.ts +0 -6
  599. package/resource/resource.module.d.ts.map +0 -1
  600. package/resource/resource.service.d.ts.map +0 -1
  601. package/resource/resources.service.d.ts.map +0 -1
  602. package/resource/view/view.component.d.ts +0 -8
  603. package/resource/view/view.component.d.ts.map +0 -1
@@ -1,1004 +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, core, common, forms, router, angular, lodash, formiojs, pagination) { 'use strict';
6
-
7
- var GridFooterPositions;
8
- (function (GridFooterPositions) {
9
- GridFooterPositions[GridFooterPositions["bottom"] = 0] = "bottom";
10
- GridFooterPositions[GridFooterPositions["top"] = 1] = "top";
11
- GridFooterPositions[GridFooterPositions["both"] = 2] = "both";
12
- })(GridFooterPositions || (GridFooterPositions = {}));
13
-
14
- /*! *****************************************************************************
15
- Copyright (c) Microsoft Corporation.
16
-
17
- Permission to use, copy, modify, and/or distribute this software for any
18
- purpose with or without fee is hereby granted.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
- PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */
28
- /* global Reflect, Promise */
29
- var extendStatics = function (d, b) {
30
- extendStatics = Object.setPrototypeOf ||
31
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
32
- function (d, b) { for (var p in b)
33
- if (Object.prototype.hasOwnProperty.call(b, p))
34
- d[p] = b[p]; };
35
- return extendStatics(d, b);
36
- };
37
- function __extends(d, b) {
38
- if (typeof b !== "function" && b !== null)
39
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
40
- extendStatics(d, b);
41
- function __() { this.constructor = d; }
42
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
- }
44
- var __assign = function () {
45
- __assign = Object.assign || function __assign(t) {
46
- for (var s, i = 1, n = arguments.length; i < n; i++) {
47
- s = arguments[i];
48
- for (var p in s)
49
- if (Object.prototype.hasOwnProperty.call(s, p))
50
- t[p] = s[p];
51
- }
52
- return t;
53
- };
54
- return __assign.apply(this, arguments);
55
- };
56
- function __rest(s, e) {
57
- var t = {};
58
- for (var p in s)
59
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
60
- t[p] = s[p];
61
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
62
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
63
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
64
- t[p[i]] = s[p[i]];
65
- }
66
- return t;
67
- }
68
- function __decorate(decorators, target, key, desc) {
69
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
70
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
71
- r = Reflect.decorate(decorators, target, key, desc);
72
- else
73
- for (var i = decorators.length - 1; i >= 0; i--)
74
- if (d = decorators[i])
75
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
76
- return c > 3 && r && Object.defineProperty(target, key, r), r;
77
- }
78
- function __param(paramIndex, decorator) {
79
- return function (target, key) { decorator(target, key, paramIndex); };
80
- }
81
- function __metadata(metadataKey, metadataValue) {
82
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
83
- return Reflect.metadata(metadataKey, metadataValue);
84
- }
85
- function __awaiter(thisArg, _arguments, P, generator) {
86
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
87
- return new (P || (P = Promise))(function (resolve, reject) {
88
- function fulfilled(value) { try {
89
- step(generator.next(value));
90
- }
91
- catch (e) {
92
- reject(e);
93
- } }
94
- function rejected(value) { try {
95
- step(generator["throw"](value));
96
- }
97
- catch (e) {
98
- reject(e);
99
- } }
100
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
101
- step((generator = generator.apply(thisArg, _arguments || [])).next());
102
- });
103
- }
104
- function __generator(thisArg, body) {
105
- var _ = { label: 0, sent: function () { if (t[0] & 1)
106
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
107
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
108
- function verb(n) { return function (v) { return step([n, v]); }; }
109
- function step(op) {
110
- if (f)
111
- throw new TypeError("Generator is already executing.");
112
- while (_)
113
- try {
114
- 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)
115
- return t;
116
- if (y = 0, t)
117
- op = [op[0] & 2, t.value];
118
- switch (op[0]) {
119
- case 0:
120
- case 1:
121
- t = op;
122
- break;
123
- case 4:
124
- _.label++;
125
- return { value: op[1], done: false };
126
- case 5:
127
- _.label++;
128
- y = op[1];
129
- op = [0];
130
- continue;
131
- case 7:
132
- op = _.ops.pop();
133
- _.trys.pop();
134
- continue;
135
- default:
136
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
137
- _ = 0;
138
- continue;
139
- }
140
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
141
- _.label = op[1];
142
- break;
143
- }
144
- if (op[0] === 6 && _.label < t[1]) {
145
- _.label = t[1];
146
- t = op;
147
- break;
148
- }
149
- if (t && _.label < t[2]) {
150
- _.label = t[2];
151
- _.ops.push(op);
152
- break;
153
- }
154
- if (t[2])
155
- _.ops.pop();
156
- _.trys.pop();
157
- continue;
158
- }
159
- op = body.call(thisArg, _);
160
- }
161
- catch (e) {
162
- op = [6, e];
163
- y = 0;
164
- }
165
- finally {
166
- f = t = 0;
167
- }
168
- if (op[0] & 5)
169
- throw op[1];
170
- return { value: op[0] ? op[1] : void 0, done: true };
171
- }
172
- }
173
- var __createBinding = Object.create ? (function (o, m, k, k2) {
174
- if (k2 === undefined)
175
- k2 = k;
176
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
177
- }) : (function (o, m, k, k2) {
178
- if (k2 === undefined)
179
- k2 = k;
180
- o[k2] = m[k];
181
- });
182
- function __exportStar(m, o) {
183
- for (var p in m)
184
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
185
- __createBinding(o, m, p);
186
- }
187
- function __values(o) {
188
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
189
- if (m)
190
- return m.call(o);
191
- if (o && typeof o.length === "number")
192
- return {
193
- next: function () {
194
- if (o && i >= o.length)
195
- o = void 0;
196
- return { value: o && o[i++], done: !o };
197
- }
198
- };
199
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
200
- }
201
- function __read(o, n) {
202
- var m = typeof Symbol === "function" && o[Symbol.iterator];
203
- if (!m)
204
- return o;
205
- var i = m.call(o), r, ar = [], e;
206
- try {
207
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
208
- ar.push(r.value);
209
- }
210
- catch (error) {
211
- e = { error: error };
212
- }
213
- finally {
214
- try {
215
- if (r && !r.done && (m = i["return"]))
216
- m.call(i);
217
- }
218
- finally {
219
- if (e)
220
- throw e.error;
221
- }
222
- }
223
- return ar;
224
- }
225
- /** @deprecated */
226
- function __spread() {
227
- for (var ar = [], i = 0; i < arguments.length; i++)
228
- ar = ar.concat(__read(arguments[i]));
229
- return ar;
230
- }
231
- /** @deprecated */
232
- function __spreadArrays() {
233
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
234
- s += arguments[i].length;
235
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
236
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
237
- r[k] = a[j];
238
- return r;
239
- }
240
- function __spreadArray(to, from) {
241
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
242
- to[j] = from[i];
243
- return to;
244
- }
245
- function __await(v) {
246
- return this instanceof __await ? (this.v = v, this) : new __await(v);
247
- }
248
- function __asyncGenerator(thisArg, _arguments, generator) {
249
- if (!Symbol.asyncIterator)
250
- throw new TypeError("Symbol.asyncIterator is not defined.");
251
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
252
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
253
- function verb(n) { if (g[n])
254
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
255
- function resume(n, v) { try {
256
- step(g[n](v));
257
- }
258
- catch (e) {
259
- settle(q[0][3], e);
260
- } }
261
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
262
- function fulfill(value) { resume("next", value); }
263
- function reject(value) { resume("throw", value); }
264
- function settle(f, v) { if (f(v), q.shift(), q.length)
265
- resume(q[0][0], q[0][1]); }
266
- }
267
- function __asyncDelegator(o) {
268
- var i, p;
269
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
270
- 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; }
271
- }
272
- function __asyncValues(o) {
273
- if (!Symbol.asyncIterator)
274
- throw new TypeError("Symbol.asyncIterator is not defined.");
275
- var m = o[Symbol.asyncIterator], i;
276
- 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);
277
- 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); }); }; }
278
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
279
- }
280
- function __makeTemplateObject(cooked, raw) {
281
- if (Object.defineProperty) {
282
- Object.defineProperty(cooked, "raw", { value: raw });
283
- }
284
- else {
285
- cooked.raw = raw;
286
- }
287
- return cooked;
288
- }
289
- ;
290
- var __setModuleDefault = Object.create ? (function (o, v) {
291
- Object.defineProperty(o, "default", { enumerable: true, value: v });
292
- }) : function (o, v) {
293
- o["default"] = v;
294
- };
295
- function __importStar(mod) {
296
- if (mod && mod.__esModule)
297
- return mod;
298
- var result = {};
299
- if (mod != null)
300
- for (var k in mod)
301
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
302
- __createBinding(result, mod, k);
303
- __setModuleDefault(result, mod);
304
- return result;
305
- }
306
- function __importDefault(mod) {
307
- return (mod && mod.__esModule) ? mod : { default: mod };
308
- }
309
- function __classPrivateFieldGet(receiver, state, kind, f) {
310
- if (kind === "a" && !f)
311
- throw new TypeError("Private accessor was defined without a getter");
312
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
313
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
314
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
315
- }
316
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
317
- if (kind === "m")
318
- throw new TypeError("Private method is not writable");
319
- if (kind === "a" && !f)
320
- throw new TypeError("Private accessor was defined without a setter");
321
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
322
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
323
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
324
- }
325
-
326
- var GridHeaderComponent = /** @class */ (function () {
327
- function GridHeaderComponent() {
328
- this.headers = [];
329
- this.sort = new core.EventEmitter();
330
- }
331
- Object.defineProperty(GridHeaderComponent.prototype, "numHeaders", {
332
- get: function () {
333
- return this.headers.length;
334
- },
335
- enumerable: false,
336
- configurable: true
337
- });
338
- GridHeaderComponent.prototype.load = function (formio, query, columns) {
339
- return Promise.resolve([]);
340
- };
341
- return GridHeaderComponent;
342
- }());
343
- GridHeaderComponent.decorators = [
344
- { type: core.Component, args: [{
345
- template: ''
346
- },] }
347
- ];
348
- GridHeaderComponent.ctorParameters = function () { return []; };
349
- GridHeaderComponent.propDecorators = {
350
- actionAllowed: [{ type: core.Input }],
351
- sort: [{ type: core.Output }],
352
- template: [{ type: core.ViewChild, args: [core.TemplateRef, { static: true },] }]
353
- };
354
-
355
- var SortType;
356
- (function (SortType) {
357
- SortType["ASC"] = "asc";
358
- SortType["DESC"] = "desc";
359
- })(SortType || (SortType = {}));
360
-
361
- var FormGridHeaderComponent = /** @class */ (function (_super) {
362
- __extends(FormGridHeaderComponent, _super);
363
- function FormGridHeaderComponent() {
364
- return _super !== null && _super.apply(this, arguments) || this;
365
- }
366
- FormGridHeaderComponent.prototype.load = function (formio) {
367
- this.header = {
368
- label: 'Title',
369
- key: 'title',
370
- sort: SortType.ASC
371
- };
372
- this.headers = [this.header];
373
- return Promise.resolve(this.headers);
374
- };
375
- Object.defineProperty(FormGridHeaderComponent.prototype, "numHeaders", {
376
- get: function () {
377
- return 2;
378
- },
379
- enumerable: false,
380
- configurable: true
381
- });
382
- return FormGridHeaderComponent;
383
- }(GridHeaderComponent));
384
- FormGridHeaderComponent.decorators = [
385
- { type: core.Component, args: [{
386
- selector: 'form-grid-header',
387
- template: "<ng-template>\n <thead>\n <tr>\n <th>\n <div class=\"row\">\n <div class=\"col-sm-8\">\n <a (click)=\"sort.emit(header)\">\n {{ header.label }}&nbsp;<span [ngClass]=\"{'glyphicon-triangle-top fa-caret-up': (header.sort === 'asc'), 'glyphicon-triangle-bottom fa-caret-down': (header.sort === 'desc')}\" class=\"glyphicon fa\" *ngIf=\"header.sort\"></span>\n </a>\n </div>\n <div class=\"col-sm-4\">\n Operations\n </div>\n </div>\n </th>\n </tr>\n </thead>\n</ng-template>\n"
388
- },] }
389
- ];
390
-
391
- var GridService = /** @class */ (function () {
392
- function GridService() {
393
- }
394
- GridService.prototype.setRows = function (rows) {
395
- this.rows = rows;
396
- };
397
- GridService.prototype.getFormsPerPage = function () {
398
- var _a;
399
- return (_a = this.rows) === null || _a === void 0 ? void 0 : _a.length;
400
- };
401
- return GridService;
402
- }());
403
- GridService.decorators = [
404
- { type: core.Injectable }
405
- ];
406
- GridService.ctorParameters = function () { return []; };
407
-
408
- var GridBodyComponent = /** @class */ (function () {
409
- function GridBodyComponent(service) {
410
- this.service = service;
411
- this.firstItem = 0;
412
- this.lastItem = 0;
413
- this.skip = 0;
414
- this.limit = 0;
415
- this.total = 0;
416
- this.rowSelect = new core.EventEmitter();
417
- this.rowAction = new core.EventEmitter();
418
- this.loading = true;
419
- }
420
- GridBodyComponent.prototype.load = function (formio, query) {
421
- return formio.loadForm(query);
422
- };
423
- GridBodyComponent.prototype.onRowSelect = function (event, row) {
424
- event.preventDefault();
425
- this.rowSelect.emit(row);
426
- };
427
- GridBodyComponent.prototype.onRowAction = function (event, row, action) {
428
- event.preventDefault();
429
- this.rowAction.emit({ row: row, action: action });
430
- };
431
- /**
432
- * Set the rows for this Grid body.
433
- *
434
- * @param query
435
- * @param items
436
- * @return any
437
- */
438
- GridBodyComponent.prototype.setRows = function (query, items) {
439
- var _this = this;
440
- this.rows = [];
441
- if (typeof items !== 'object') {
442
- this.firstItem = 0;
443
- this.lastItem = 0;
444
- this.total = 0;
445
- this.skip = 0;
446
- this.loading = false;
447
- this.service.setRows(this.rows);
448
- return this.rows;
449
- }
450
- this.firstItem = query.skip + 1;
451
- this.lastItem = this.firstItem + items.length - 1;
452
- if (this.lastItem === 0) {
453
- this.firstItem = 0;
454
- }
455
- this.total = items.serverCount;
456
- this.limit = query.limit;
457
- this.skip = Math.floor(items.skip / query.limit) + 1;
458
- this.loading = false;
459
- lodash.each(items, function (item) {
460
- _this.rows.push(lodash.clone(item));
461
- });
462
- this.service.setRows(this.rows);
463
- return this.rows;
464
- };
465
- return GridBodyComponent;
466
- }());
467
- GridBodyComponent.decorators = [
468
- { type: core.Component, args: [{
469
- template: ''
470
- },] }
471
- ];
472
- GridBodyComponent.ctorParameters = function () { return [
473
- { type: GridService }
474
- ]; };
475
- GridBodyComponent.propDecorators = {
476
- header: [{ type: core.Input }],
477
- actionAllowed: [{ type: core.Input }],
478
- rowSelect: [{ type: core.Output }],
479
- rowAction: [{ type: core.Output }],
480
- template: [{ type: core.ViewChild, args: [core.TemplateRef, { static: true },] }]
481
- };
482
-
483
- var FormGridBodyComponent = /** @class */ (function (_super) {
484
- __extends(FormGridBodyComponent, _super);
485
- function FormGridBodyComponent() {
486
- return _super !== null && _super.apply(this, arguments) || this;
487
- }
488
- FormGridBodyComponent.prototype.load = function (formio, query) {
489
- var _this = this;
490
- query = query || {};
491
- return formio.loadForms({ params: query }).then(function (forms) { return _this.setRows(query, forms); });
492
- };
493
- return FormGridBodyComponent;
494
- }(GridBodyComponent));
495
- FormGridBodyComponent.decorators = [
496
- { type: core.Component, args: [{
497
- selector: 'form-grid-body',
498
- template: "<ng-template>\n <tbody *ngIf=\"rows\">\n <tr *ngFor=\"let form of rows\">\n <td>\n <div class=\"row\">\n <div class=\"col-sm-8\">\n <a routerLink=\"{{form._id}}/view\" (click)=\"onRowSelect($event, form)\"><h5>{{ form.title }}</h5></a>\n <div class=\"form-updated small text-muted\">\n Updated {{ form.modified | timeSince }} ago\n </div>\n </div>\n <div class=\"col-sm-4\">\n <button *ngIf=\"actionAllowed('formView')\" class=\"btn btn-outline-secondary btn-sm form-btn form-btn-use\" (click)=\"onRowAction($event, form, 'view')\"><span class=\"fa fa-pencil\"></span> Enter Data</button>&nbsp;\n <button *ngIf=\"actionAllowed('formSubmission')\" class=\"btn btn-outline-secondary btn-sm form-btn\" (click)=\"onRowAction($event, form, 'submission')\"><span class=\"fa fa-list-alt\"></span> View Data</button>&nbsp;\n <button *ngIf=\"actionAllowed('formEdit')\" class=\"btn btn-outline-secondary btn-sm form-btn\" (click)=\"onRowAction($event, form, 'edit')\"><span class=\"fa fa-edit\"></span> Edit Form</button>&nbsp;\n <button *ngIf=\"actionAllowed('formPermission')\" class=\"btn btn-outline-secondary btn-sm form-btn\" (click)=\"onRowAction($event, form, 'permissions')\"><span class=\"fa fa-lock\"></span> Permissions</button>&nbsp;\n <button *ngIf=\"actionAllowed('formDelete')\" class=\"btn btn-danger btn-sm form-btn form-btn-delete\" (click)=\"onRowAction($event, form, 'delete')\" title=\"Delete form\"><span class=\"fa fa-trash\"></span></button>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n</ng-template>\n",
499
- styles: [".form-btn{font-size:.75rem;margin:2px 0}"]
500
- },] }
501
- ];
502
-
503
- var GridFooterComponent = /** @class */ (function () {
504
- function GridFooterComponent() {
505
- this.footerPositions = GridFooterPositions;
506
- this.pageChanged = new core.EventEmitter();
507
- this.createItem = new core.EventEmitter();
508
- }
509
- return GridFooterComponent;
510
- }());
511
- GridFooterComponent.decorators = [
512
- { type: core.Component, args: [{
513
- template: ''
514
- },] }
515
- ];
516
- GridFooterComponent.ctorParameters = function () { return []; };
517
- GridFooterComponent.propDecorators = {
518
- header: [{ type: core.Input }],
519
- body: [{ type: core.Input }],
520
- createText: [{ type: core.Input }],
521
- size: [{ type: core.Input }],
522
- actionAllowed: [{ type: core.Input }],
523
- pageChanged: [{ type: core.Output }],
524
- createItem: [{ type: core.Output }],
525
- template: [{ type: core.ViewChild, args: [core.TemplateRef, { static: true },] }]
526
- };
527
-
528
- var FormGridFooterComponent = /** @class */ (function (_super) {
529
- __extends(FormGridFooterComponent, _super);
530
- function FormGridFooterComponent() {
531
- return _super.call(this) || this;
532
- }
533
- FormGridFooterComponent.prototype.ngOnInit = function () {
534
- if (!this.createText) {
535
- this.createText = 'Create Form';
536
- }
537
- if (!this.size) {
538
- this.size = 7;
539
- }
540
- };
541
- return FormGridFooterComponent;
542
- }(GridFooterComponent));
543
- FormGridFooterComponent.decorators = [
544
- { type: core.Component, args: [{
545
- template: "<ng-template #footer let-position=\"position\" let-label=\"label\">\n <thead class=\"formio-grid-footer\" *ngIf=\"position === footerPositions.top\">\n <ng-container [ngTemplateOutlet]=\"defaultFooterTemplate\" [ngTemplateOutletContext]=\"{ label: label }\"></ng-container>\n </thead>\n <tfoot class=\"formio-grid-footer\" *ngIf=\"position === footerPositions.bottom\">\n <ng-container [ngTemplateOutlet]=\"defaultFooterTemplate\" [ngTemplateOutletContext]=\"{ label: label }\"></ng-container>\n </tfoot>\n</ng-template>\n\n<ng-template let-label=\"label\" #defaultFooterTemplate>\n <tr>\n <td *ngIf=\"header\" [colSpan]=\"header.numHeaders\">\n <button *ngIf=\"actionAllowed('formCreate')\" class=\"btn btn-primary form-btn-use pull-left float-left\" (click)=\"createItem.emit('form')\"><i class=\"glyphicon glyphicon-plus fa fa-plus\"></i> {{ createText }}</button>\n <span class=\"pull-right float-right item-counter\"><span class=\"page-num\">{{ body.firstItem }} - {{ body.lastItem }}</span> / {{ body.total }} total</span>\n <span [attr.aria-label]=\"label\" role=\"navigation\">\n <pagination [totalItems]=\"body.total\" [itemsPerPage]=\"body.limit\" [(ngModel)]=\"body.skip\" (pageChanged)=\"pageChanged.emit($event)\" [maxSize]=\"size\" class=\"justify-content-center pagination-sm\">\n </pagination>\n </span>\n </td>\n </tr>\n</ng-template>\n",
546
- encapsulation: core.ViewEncapsulation.None,
547
- 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}"]
548
- },] }
549
- ];
550
- FormGridFooterComponent.ctorParameters = function () { return []; };
551
-
552
- var FormComponents = {
553
- header: FormGridHeaderComponent,
554
- body: FormGridBodyComponent,
555
- footer: FormGridFooterComponent
556
- };
557
-
558
- var SubmissionGridHeaderComponent = /** @class */ (function (_super) {
559
- __extends(SubmissionGridHeaderComponent, _super);
560
- function SubmissionGridHeaderComponent() {
561
- return _super !== null && _super.apply(this, arguments) || this;
562
- }
563
- SubmissionGridHeaderComponent.prototype.load = function (formio, query, columns) {
564
- var _this = this;
565
- query = query || {};
566
- return formio.loadForm({ params: query }).then(function (form) {
567
- _this.headers = [];
568
- _this.formComponents = new Map();
569
- _this.setComponents(form.components);
570
- columns ? columns.forEach(function (column) {
571
- _this.setHeader(_this.getHeaderForColumn(column, _this.formComponents.get(column.path)));
572
- }) : _this.setComponentsHeaders(_this.formComponents);
573
- return _this.headers;
574
- });
575
- };
576
- SubmissionGridHeaderComponent.prototype.setHeader = function (header) {
577
- this.headers.push(header);
578
- };
579
- SubmissionGridHeaderComponent.prototype.getHeaderForColumn = function (column, component, sort) {
580
- return {
581
- label: column.label,
582
- key: column.path,
583
- sort: sort,
584
- component: component ? formiojs.Components.create(component, null, null, true) : undefined,
585
- renderCell: column ? column.renderCell : undefined
586
- };
587
- };
588
- SubmissionGridHeaderComponent.prototype.getHeaderForComponent = function (component, path, sort) {
589
- return {
590
- label: component.label,
591
- key: path,
592
- sort: sort,
593
- component: component ? formiojs.Components.create(component, null, null, true) : undefined,
594
- };
595
- };
596
- // Set headers from components in case if columns are not provided
597
- SubmissionGridHeaderComponent.prototype.setComponentsHeaders = function (components, sort) {
598
- var _this = this;
599
- components.forEach(function (component, path) {
600
- if (component.input &&
601
- (!component.hasOwnProperty('tableView') || component.tableView)) {
602
- _this.setHeader(_this.getHeaderForComponent(component, path, sort));
603
- }
604
- });
605
- };
606
- // Map components
607
- SubmissionGridHeaderComponent.prototype.setComponents = function (components) {
608
- var _this = this;
609
- formiojs.Utils.eachComponent(components, function (component, newPath) {
610
- _this.formComponents.set("data." + newPath, component);
611
- });
612
- };
613
- return SubmissionGridHeaderComponent;
614
- }(GridHeaderComponent));
615
- SubmissionGridHeaderComponent.decorators = [
616
- { type: core.Component, args: [{
617
- template: "<ng-template>\n <thead>\n <tr>\n <th *ngFor=\"let header of headers\">\n <a (click)=\"sort.emit(header)\">\n {{ header.label }}&nbsp;<span [ngClass]=\"{'glyphicon-triangle-top': (header.sort === 'asc'), 'glyphicon-triangle-bottom': (header.sort === 'desc')}\" class=\"glyphicon\" *ngIf=\"header.sort\"></span>\n </a>\n </th>\n </tr>\n </thead>\n</ng-template>\n"
618
- },] }
619
- ];
620
-
621
- var SubmissionGridBodyComponent = /** @class */ (function (_super) {
622
- __extends(SubmissionGridBodyComponent, _super);
623
- function SubmissionGridBodyComponent() {
624
- return _super !== null && _super.apply(this, arguments) || this;
625
- }
626
- SubmissionGridBodyComponent.prototype.load = function (formio, query) {
627
- var _this = this;
628
- query = query || {};
629
- return formio.loadSubmissions({ params: query })
630
- .then(function (submissions) { return _this.setRows(query, submissions); });
631
- };
632
- /**
633
- * Render the cell data.
634
- *
635
- * @param submission
636
- * @param header
637
- * @return any
638
- */
639
- SubmissionGridBodyComponent.prototype.view = function (submission, header) {
640
- var cellValue = lodash.get(submission, header.key);
641
- if (header.renderCell) {
642
- return header.renderCell(cellValue, header.component);
643
- }
644
- else {
645
- if (header.component) {
646
- if (header.component.getView) {
647
- return header.component.getView(cellValue);
648
- }
649
- return header.component.asString(cellValue);
650
- }
651
- else {
652
- return cellValue.toString();
653
- }
654
- }
655
- };
656
- return SubmissionGridBodyComponent;
657
- }(GridBodyComponent));
658
- SubmissionGridBodyComponent.decorators = [
659
- { type: core.Component, args: [{
660
- template: "<ng-template>\n <tbody>\n <tr *ngFor=\"let row of rows\" (click)=\"onRowSelect($event, row)\">\n <td *ngFor=\"let rowHeader of header.headers\" [innerHTML]=\"view(row, rowHeader)\"></td>\n </tr>\n </tbody>\n</ng-template>\n"
661
- },] }
662
- ];
663
-
664
- var SubmissionGridFooterComponent = /** @class */ (function (_super) {
665
- __extends(SubmissionGridFooterComponent, _super);
666
- function SubmissionGridFooterComponent() {
667
- return _super.call(this) || this;
668
- }
669
- SubmissionGridFooterComponent.prototype.ngOnInit = function () {
670
- if (!this.size) {
671
- this.size = 7;
672
- }
673
- };
674
- return SubmissionGridFooterComponent;
675
- }(GridFooterComponent));
676
- SubmissionGridFooterComponent.decorators = [
677
- { type: core.Component, args: [{
678
- template: "<ng-template #footer let-position=\"position\">\n <thead class=\"formio-grid-footer\" *ngIf=\"position === footerPositions.top\">\n <ng-container [ngTemplateOutlet]=\"defaultFooterTemplate\"></ng-container>\n </thead>\n <tfoot class=\"formio-grid-footer\" *ngIf=\"position === footerPositions.bottom\">\n <ng-container [ngTemplateOutlet]=\"defaultFooterTemplate\"></ng-container>\n </tfoot>\n</ng-template>\n\n<ng-template #defaultFooterTemplate>\n <tr>\n <td *ngIf=\"header\" [colSpan]=\"header.numHeaders\">\n <button *ngIf=\"actionAllowed('submissionCreate') && createText\" class=\"btn btn-primary pull-left float-left\" (click)=\"createItem.emit('form')\"><i class=\"glyphicon glyphicon-plus fa fa-plus\"></i> {{ createText }}</button>\n <span class=\"pull-right float-right item-counter\"><span class=\"page-num\">{{ body.firstItem }} - {{ body.lastItem }}</span> / {{ body.total }} total</span>\n <pagination [totalItems]=\"body.total\" [itemsPerPage]=\"body.limit\" [(ngModel)]=\"body.skip\" (pageChanged)=\"pageChanged.emit($event)\" [maxSize]=\"size\" class=\"justify-content-center pagination-sm\"></pagination>\n </td>\n </tr>\n</ng-template>\n",
679
- encapsulation: core.ViewEncapsulation.None,
680
- 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}"]
681
- },] }
682
- ];
683
- SubmissionGridFooterComponent.ctorParameters = function () { return []; };
684
-
685
- var SubmissionComponents = {
686
- header: SubmissionGridHeaderComponent,
687
- body: SubmissionGridBodyComponent,
688
- footer: SubmissionGridFooterComponent
689
- };
690
-
691
- var FormioGridComponent = /** @class */ (function () {
692
- function FormioGridComponent(alerts, resolver, ref) {
693
- this.alerts = alerts;
694
- this.resolver = resolver;
695
- this.ref = ref;
696
- this.footerPosition = GridFooterPositions.bottom;
697
- this.page = 0;
698
- this.isLoading = false;
699
- this.initialized = false;
700
- this.footerPositions = GridFooterPositions;
701
- this.select = this.rowSelect = new core.EventEmitter();
702
- this.rowAction = new core.EventEmitter();
703
- this.createItem = new core.EventEmitter();
704
- this.error = new core.EventEmitter();
705
- this.isLoading = true;
706
- }
707
- FormioGridComponent.prototype.createComponent = function (property, component) {
708
- var factory = this.resolver.resolveComponentFactory(component);
709
- var componentRef = property.createComponent(factory);
710
- return componentRef.instance;
711
- };
712
- FormioGridComponent.prototype.loadGrid = function (src) {
713
- var _this = this;
714
- // If no source is provided, then skip.
715
- if (!src && !this.formio) {
716
- return;
717
- }
718
- // Do not double load.
719
- if (this.formio && this.src && (src === this.src)) {
720
- return;
721
- }
722
- if (src) {
723
- this.src = src;
724
- this.formio = new angular.FormioPromiseService(this.src, { formOnly: true });
725
- }
726
- // Load the header.
727
- this.header.load(this.formio, {}, this.columns)
728
- .then(function () { return _this.setPage(0); })
729
- .catch(function (error) { return _this.onError(error); });
730
- };
731
- FormioGridComponent.prototype.ngOnInit = function () {
732
- var _this = this;
733
- // Create our components.
734
- var comps = this.components || ((this.gridType === 'form') ? FormComponents : SubmissionComponents);
735
- this.header = this.createComponent(this.headerElement, comps.header);
736
- this.header.actionAllowed = this.actionAllowed.bind(this);
737
- this.header.sort.subscribe(function (header) { return _this.sortColumn(header); });
738
- this.body = this.createComponent(this.bodyElement, comps.body);
739
- this.body.header = this.header;
740
- this.body.actionAllowed = this.actionAllowed.bind(this);
741
- this.body.rowSelect.subscribe(function (row) { return _this.rowSelect.emit(row); });
742
- this.body.rowAction.subscribe(function (action) { return _this.rowAction.emit(action); });
743
- this.footer = this.createComponent(this.footerElement, comps.footer);
744
- this.footer.header = this.header;
745
- this.footer.body = this.body;
746
- this.footer.actionAllowed = this.actionAllowed.bind(this);
747
- this.footer.createText = this.createText;
748
- this.footer.size = this.size;
749
- this.footer.pageChanged.subscribe(function (page) { return _this.pageChanged(page); });
750
- this.footer.createItem.subscribe(function (item) { return _this.createItem.emit(item); });
751
- };
752
- FormioGridComponent.prototype.ngOnChanges = function (changes) {
753
- if (this.initialized) {
754
- if ((changes.src && changes.src.currentValue) ||
755
- (changes.formio && changes.formio.currentValue)) {
756
- this.loadGrid(changes.src.currentValue);
757
- }
758
- if (changes.items && changes.items.currentValue) {
759
- this.refreshGrid();
760
- }
761
- }
762
- if (this.footer &&
763
- (changes.createText && changes.createText.currentValue)) {
764
- this.footer.createText = changes.createText.currentValue;
765
- }
766
- };
767
- FormioGridComponent.prototype.ngAfterViewInit = function () {
768
- var _this = this;
769
- this.alerts.setAlerts([]);
770
- this.query = this.query || {};
771
- if (this.refresh) {
772
- this.refresh.subscribe(function (query) { return _this.refreshGrid(query); });
773
- }
774
- this.loadGrid(this.src);
775
- this.initialized = true;
776
- this.ref.detectChanges();
777
- };
778
- FormioGridComponent.prototype.actionAllowed = function (action) {
779
- if (this.isActionAllowed) {
780
- return this.isActionAllowed(action);
781
- }
782
- else {
783
- return true;
784
- }
785
- };
786
- FormioGridComponent.prototype.onError = function (error) {
787
- this.isLoading = false;
788
- this.error.emit(error);
789
- if (typeof error === 'string' || error.message) {
790
- this.alerts.setAlert({
791
- type: 'danger',
792
- message: error.message || error
793
- });
794
- }
795
- };
796
- FormioGridComponent.prototype.refreshGrid = function (query) {
797
- var _this = this;
798
- this.alerts.setAlerts([]);
799
- this.query = query || this.query;
800
- if (!this.query.hasOwnProperty('limit')) {
801
- this.query.limit = 10;
802
- }
803
- if (!this.query.hasOwnProperty('skip')) {
804
- this.query.skip = 0;
805
- }
806
- this.isLoading = true;
807
- this.ref.detectChanges();
808
- formiojs.Formio.cache = {};
809
- var loader = null;
810
- if (this.items) {
811
- loader = Promise.resolve(this.body.setRows(this.query, this.items));
812
- }
813
- else {
814
- loader = this.body.load(this.formio, this.query);
815
- }
816
- return loader.then(function (info) {
817
- _this.isLoading = false;
818
- _this.initialized = true;
819
- _this.ref.detectChanges();
820
- }).catch(function (error) { return _this.onError(error); });
821
- };
822
- FormioGridComponent.prototype.setPage = function (num) {
823
- if (num === void 0) { num = -1; }
824
- this.page = num !== -1 ? num : this.page;
825
- if (!this.query.hasOwnProperty('limit')) {
826
- this.query.limit = 10;
827
- }
828
- if (!this.query.hasOwnProperty('skip')) {
829
- this.query.skip = 0;
830
- }
831
- this.query.skip = this.page * this.query.limit;
832
- this.refreshGrid();
833
- };
834
- FormioGridComponent.prototype.sortColumn = function (header) {
835
- // Reset all other column sorts.
836
- lodash.each(this.header.headers, function (col) {
837
- if (col.key !== header.key) {
838
- col.sort = '';
839
- }
840
- });
841
- switch (header.sort) {
842
- case 'asc':
843
- header.sort = SortType.DESC;
844
- this.query.sort = '-' + header.key;
845
- break;
846
- case 'desc':
847
- header.sort = undefined;
848
- delete this.query.sort;
849
- break;
850
- case undefined:
851
- header.sort = SortType.ASC;
852
- this.query.sort = header.key;
853
- break;
854
- }
855
- this.refreshGrid();
856
- };
857
- FormioGridComponent.prototype.pageChanged = function (page) {
858
- this.setPage(page.page - 1);
859
- };
860
- return FormioGridComponent;
861
- }());
862
- FormioGridComponent.decorators = [
863
- { type: core.Component, args: [{
864
- selector: 'formio-grid',
865
- template: "<ng-template #headerTemplate></ng-template>\n<ng-template #bodyTemplate></ng-template>\n<ng-template #footerTemplate></ng-template>\n<div class=\"formio-grid\">\n <formio-alerts [alerts]=\"alerts\"></formio-alerts>\n <table class=\"table table-bordered table-striped table-hover\">\n <ng-container *ngIf=\"initialized && [footerPositions.top, footerPositions.both].indexOf(footerPosition) !== -1\"\n [ngTemplateOutlet]=\"footer.template\" [ngTemplateOutletContext]=\"{ position: footerPositions.top, label: label }\">\n </ng-container>\n <ng-container *ngIf=\"initialized\"\n [ngTemplateOutlet]=\"header.template\"></ng-container>\n <formio-loader [isLoading]=\"isLoading\"></formio-loader>\n <ng-container *ngIf=\"initialized\" [ngTemplateOutlet]=\"body.template\"></ng-container>\n <ng-container *ngIf=\"initialized && [footerPositions.bottom, footerPositions.both].indexOf(footerPosition) !== -1\"\n [ngTemplateOutlet]=\"footer.template\" [ngTemplateOutletContext]=\"{ position: footerPositions.bottom, label: label }\">\n </ng-container>\n </table>\n</div>\n",
866
- styles: [".formio-grid{position:relative;width:100%}.grid-refresh{height:400px;width:100%}"]
867
- },] }
868
- ];
869
- FormioGridComponent.ctorParameters = function () { return [
870
- { type: angular.FormioAlerts },
871
- { type: core.ComponentFactoryResolver },
872
- { type: core.ChangeDetectorRef }
873
- ]; };
874
- FormioGridComponent.propDecorators = {
875
- footerPosition: [{ type: core.Input }],
876
- src: [{ type: core.Input }],
877
- items: [{ type: core.Input }],
878
- onForm: [{ type: core.Input }],
879
- query: [{ type: core.Input }],
880
- refresh: [{ type: core.Input }],
881
- columns: [{ type: core.Input }],
882
- gridType: [{ type: core.Input }],
883
- size: [{ type: core.Input }],
884
- components: [{ type: core.Input }],
885
- formio: [{ type: core.Input }],
886
- label: [{ type: core.Input }],
887
- createText: [{ type: core.Input }],
888
- isActionAllowed: [{ type: core.Input }],
889
- select: [{ type: core.Output }],
890
- rowSelect: [{ type: core.Output }],
891
- rowAction: [{ type: core.Output }],
892
- createItem: [{ type: core.Output }],
893
- error: [{ type: core.Output }],
894
- headerElement: [{ type: core.ViewChild, args: ['headerTemplate', { read: core.ViewContainerRef, static: true },] }],
895
- bodyElement: [{ type: core.ViewChild, args: ['bodyTemplate', { read: core.ViewContainerRef, static: true },] }],
896
- footerElement: [{ type: core.ViewChild, args: ['footerTemplate', { read: core.ViewContainerRef, static: true },] }]
897
- };
898
-
899
- var TimeSince = /** @class */ (function () {
900
- function TimeSince() {
901
- }
902
- TimeSince.prototype.transform = function (date) {
903
- var elapsed = (new Date().getTime() - new Date(date).getTime()) / 1000;
904
- var interval;
905
- if (interval >= 1) {
906
- return interval + ' year' + (interval > 1 ? 's' : '');
907
- }
908
- interval = Math.floor(elapsed / 2592000);
909
- if (interval >= 1) {
910
- return interval + ' month' + (interval > 1 ? 's' : '');
911
- }
912
- interval = Math.floor(elapsed / 86400);
913
- if (interval >= 1) {
914
- return interval + ' day' + (interval > 1 ? 's' : '');
915
- }
916
- interval = Math.floor(elapsed / 3600);
917
- if (interval >= 1) {
918
- return interval + ' hour' + (interval > 1 ? 's' : '');
919
- }
920
- interval = Math.floor(elapsed / 60);
921
- if (interval >= 1) {
922
- return interval + ' minute' + (interval > 1 ? 's' : '');
923
- }
924
- return Math.floor(elapsed) + ' second' + (elapsed > 1 ? 's' : '');
925
- };
926
- return TimeSince;
927
- }());
928
- TimeSince.decorators = [
929
- { type: core.Pipe, args: [{
930
- name: 'timeSince'
931
- },] }
932
- ];
933
-
934
- var FormioGrid = /** @class */ (function () {
935
- function FormioGrid() {
936
- }
937
- return FormioGrid;
938
- }());
939
- FormioGrid.decorators = [
940
- { type: core.NgModule, args: [{
941
- imports: [
942
- common.CommonModule,
943
- forms.FormsModule,
944
- angular.FormioModule,
945
- router.RouterModule,
946
- pagination.PaginationModule.forRoot()
947
- ],
948
- declarations: [
949
- FormioGridComponent,
950
- FormGridHeaderComponent,
951
- FormGridBodyComponent,
952
- FormGridFooterComponent,
953
- SubmissionGridHeaderComponent,
954
- SubmissionGridBodyComponent,
955
- SubmissionGridFooterComponent,
956
- GridHeaderComponent,
957
- GridBodyComponent,
958
- GridFooterComponent,
959
- TimeSince
960
- ],
961
- exports: [
962
- FormioGridComponent
963
- ],
964
- entryComponents: [
965
- FormGridHeaderComponent,
966
- FormGridBodyComponent,
967
- FormGridFooterComponent,
968
- SubmissionGridHeaderComponent,
969
- SubmissionGridBodyComponent,
970
- SubmissionGridFooterComponent
971
- ],
972
- providers: [
973
- angular.FormioAlerts,
974
- GridService
975
- ]
976
- },] }
977
- ];
978
-
979
- /*
980
- * Public API Surface of angular-formio
981
- */
982
-
983
- /**
984
- * Generated bundle index. Do not edit.
985
- */
986
-
987
- exports.FormGridBodyComponent = FormGridBodyComponent;
988
- exports.FormGridFooterComponent = FormGridFooterComponent;
989
- exports.FormGridHeaderComponent = FormGridHeaderComponent;
990
- exports.FormioGrid = FormioGrid;
991
- exports.FormioGridComponent = FormioGridComponent;
992
- exports.GridBodyComponent = GridBodyComponent;
993
- exports.GridFooterComponent = GridFooterComponent;
994
- exports.GridHeaderComponent = GridHeaderComponent;
995
- exports.GridService = GridService;
996
- exports.SubmissionGridBodyComponent = SubmissionGridBodyComponent;
997
- exports.SubmissionGridFooterComponent = SubmissionGridFooterComponent;
998
- exports.SubmissionGridHeaderComponent = SubmissionGridHeaderComponent;
999
- exports.ɵa = TimeSince;
1000
-
1001
- Object.defineProperty(exports, '__esModule', { value: true });
1002
-
1003
- })));
1004
- //# sourceMappingURL=formio-angular-grid.umd.js.map