@formio/angular 5.2.1 → 5.2.3-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 (601) hide show
  1. package/{dist/angular-formio/FormioBaseComponent.d.ts → FormioBaseComponent.d.ts} +4 -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 +1507 -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 +466 -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 +1083 -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 -1012
  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
@@ -0,0 +1,1507 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('formiojs'), require('@angular/router'), require('lodash'), require('formiojs/utils/Evaluator'), require('formiojs/utils/utils'), require('@angular/common'), require('@angular/elements')) :
3
+ typeof define === 'function' && define.amd ? define('@formio/angular', ['exports', '@angular/core', 'rxjs', 'formiojs', '@angular/router', 'lodash', 'formiojs/utils/Evaluator', 'formiojs/utils/utils', '@angular/common', '@angular/elements'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.formio = global.formio || {}, global.formio.angular = {}), global.ng.core, global.rxjs, global.formiojs, global.ng.router, global._, global.Evaluator, global.utils, global.ng.common, global.ng.elements));
5
+ })(this, (function (exports, core, rxjs, formiojs, router, lodash, Evaluator, utils, common, elements) { 'use strict';
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var Evaluator__default = /*#__PURE__*/_interopDefaultLegacy(Evaluator);
10
+
11
+ var FormioAppConfig = /** @class */ (function () {
12
+ function FormioAppConfig() {
13
+ this.appUrl = '';
14
+ this.apiUrl = '';
15
+ }
16
+ return FormioAppConfig;
17
+ }());
18
+ FormioAppConfig.decorators = [
19
+ { type: core.Injectable }
20
+ ];
21
+
22
+ var FormioError = /** @class */ (function () {
23
+ function FormioError(message, component, silent) {
24
+ this.message = message;
25
+ this.component = component;
26
+ this.silent = silent;
27
+ }
28
+ return FormioError;
29
+ }());
30
+
31
+ var FormioService = /** @class */ (function () {
32
+ function FormioService(url, options) {
33
+ this.url = url;
34
+ this.options = options;
35
+ this.formio = new formiojs.Formio(this.url, this.options);
36
+ }
37
+ FormioService.prototype.requestWrapper = function (fn) {
38
+ var record;
39
+ var called = false;
40
+ return rxjs.Observable.create(function (observer) {
41
+ try {
42
+ if (!called) {
43
+ called = true;
44
+ fn()
45
+ .then(function (_record) {
46
+ record = _record;
47
+ observer.next(record);
48
+ observer.complete();
49
+ })
50
+ .catch(function (err) { return observer.error(err); });
51
+ }
52
+ else if (record) {
53
+ observer.next(record);
54
+ observer.complete();
55
+ }
56
+ }
57
+ catch (err) {
58
+ observer.error(err);
59
+ }
60
+ });
61
+ };
62
+ FormioService.prototype.saveForm = function (form, options) {
63
+ var _this = this;
64
+ return this.requestWrapper(function () { return _this.formio.saveForm(form, options); });
65
+ };
66
+ FormioService.prototype.loadForm = function (query, options) {
67
+ var _this = this;
68
+ return this.requestWrapper(function () { return _this.formio.loadForm(query, options); });
69
+ };
70
+ FormioService.prototype.loadForms = function (query, options) {
71
+ var _this = this;
72
+ return this.requestWrapper(function () { return _this.formio.loadForms(query, options); });
73
+ };
74
+ FormioService.prototype.loadSubmission = function (query, options) {
75
+ var _this = this;
76
+ return this.requestWrapper(function () { return _this.formio.loadSubmission(query, options); });
77
+ };
78
+ FormioService.prototype.userPermissions = function (user, form, submission) {
79
+ var _this = this;
80
+ return this.requestWrapper(function () { return _this.formio.userPermissions(user, form, submission); });
81
+ };
82
+ FormioService.prototype.deleteSubmission = function (data, options) {
83
+ var _this = this;
84
+ return this.requestWrapper(function () { return _this.formio.deleteSubmission(data, options); });
85
+ };
86
+ FormioService.prototype.saveSubmission = function (submission, options) {
87
+ var _this = this;
88
+ return this.requestWrapper(function () { return _this.formio.saveSubmission(submission, options); });
89
+ };
90
+ FormioService.prototype.loadSubmissions = function (query, options) {
91
+ var _this = this;
92
+ return this.requestWrapper(function () { return _this.formio.loadSubmissions(query, options); });
93
+ };
94
+ return FormioService;
95
+ }());
96
+
97
+ var FormioPromiseService = /** @class */ (function () {
98
+ function FormioPromiseService(url, options) {
99
+ this.url = url;
100
+ this.options = options;
101
+ this.formioService = new FormioService(url, options);
102
+ }
103
+ FormioPromiseService.prototype.saveForm = function (form, options) {
104
+ return this.formioService.saveForm(form, options).toPromise();
105
+ };
106
+ FormioPromiseService.prototype.loadForm = function (query, options) {
107
+ return this.formioService.loadForm(query, options).toPromise();
108
+ };
109
+ FormioPromiseService.prototype.loadSubmission = function (query, options) {
110
+ return this.formioService.loadSubmission(query, options).toPromise();
111
+ };
112
+ FormioPromiseService.prototype.userPermissions = function (user, form, submission) {
113
+ return this.formioService.userPermissions(user, form, submission).toPromise();
114
+ };
115
+ FormioPromiseService.prototype.deleteSubmission = function (data, options) {
116
+ return this.formioService.deleteSubmission(data, options).toPromise();
117
+ };
118
+ FormioPromiseService.prototype.loadForms = function (query, options) {
119
+ return this.formioService.loadForms(query, options).toPromise();
120
+ };
121
+ FormioPromiseService.prototype.saveSubmission = function (submission, options) {
122
+ return this.formioService.saveSubmission(submission, options).toPromise();
123
+ };
124
+ FormioPromiseService.prototype.loadSubmissions = function (query, options) {
125
+ return this.formioService.loadSubmissions(query, options).toPromise();
126
+ };
127
+ return FormioPromiseService;
128
+ }());
129
+
130
+ function extendRouter(Class, config, ClassRoutes) {
131
+ lodash.each(Class.decorators, function (decorator) {
132
+ lodash.each(decorator.args, function (arg) {
133
+ if (arg.declarations) {
134
+ lodash.each(config, function (component) { return arg.declarations.push(component); });
135
+ }
136
+ if (arg.imports) {
137
+ lodash.each(arg.imports, function (_import, index) {
138
+ if ((_import.ngModule && (_import.ngModule.name === 'RouterModule')) ||
139
+ (_import.name === 'RouterModule')) {
140
+ arg.imports[index] = router.RouterModule.forChild(ClassRoutes(config));
141
+ }
142
+ });
143
+ }
144
+ });
145
+ });
146
+ return Class;
147
+ }
148
+
149
+ var FormioAlerts = /** @class */ (function () {
150
+ function FormioAlerts() {
151
+ this.alerts = [];
152
+ }
153
+ FormioAlerts.prototype.setAlert = function (alert) {
154
+ this.alerts = [alert];
155
+ };
156
+ FormioAlerts.prototype.addAlert = function (alert) {
157
+ this.alerts.push(alert);
158
+ };
159
+ FormioAlerts.prototype.setAlerts = function (alerts) {
160
+ this.alerts = alerts;
161
+ };
162
+ return FormioAlerts;
163
+ }());
164
+
165
+ var CustomTagsService = /** @class */ (function () {
166
+ function CustomTagsService() {
167
+ this.tags = [];
168
+ }
169
+ CustomTagsService.prototype.addCustomTag = function (tag) {
170
+ this.tags.push(tag);
171
+ };
172
+ return CustomTagsService;
173
+ }());
174
+ CustomTagsService.decorators = [
175
+ { type: core.Injectable }
176
+ ];
177
+
178
+ var AlertsPosition;
179
+ (function (AlertsPosition) {
180
+ AlertsPosition[AlertsPosition["none"] = 0] = "none";
181
+ AlertsPosition[AlertsPosition["top"] = 1] = "top";
182
+ AlertsPosition[AlertsPosition["bottom"] = 2] = "bottom";
183
+ AlertsPosition[AlertsPosition["both"] = 3] = "both";
184
+ })(AlertsPosition || (AlertsPosition = {}));
185
+
186
+ var FormioBaseComponent = /** @class */ (function () {
187
+ function FormioBaseComponent(ngZone, config, customTags) {
188
+ var _this = this;
189
+ this.ngZone = ngZone;
190
+ this.config = config;
191
+ this.customTags = customTags;
192
+ this.submission = {};
193
+ this.noeval = Evaluator__default["default"].noeval;
194
+ this.readOnly = false;
195
+ this.viewOnly = false;
196
+ this.hooks = {};
197
+ this.watchSubmissionErrors = false;
198
+ this.render = new core.EventEmitter();
199
+ this.customEvent = new core.EventEmitter();
200
+ this.fileUploadingStatus = new core.EventEmitter();
201
+ this.submit = new core.EventEmitter();
202
+ this.prevPage = new core.EventEmitter();
203
+ this.nextPage = new core.EventEmitter();
204
+ this.beforeSubmit = new core.EventEmitter();
205
+ this.rowAdd = new core.EventEmitter();
206
+ this.rowEdit = new core.EventEmitter();
207
+ this.rowDelete = new core.EventEmitter();
208
+ this.rowClick = new core.EventEmitter();
209
+ this.change = new core.EventEmitter();
210
+ this.invalid = new core.EventEmitter();
211
+ this.errorChange = new core.EventEmitter();
212
+ this.formLoad = new core.EventEmitter();
213
+ this.submissionLoad = new core.EventEmitter();
214
+ this.ready = new core.EventEmitter();
215
+ this.AlertsPosition = AlertsPosition;
216
+ this.initialized = false;
217
+ this.alerts = new FormioAlerts();
218
+ this.submitting = false;
219
+ this.submissionSuccess = false;
220
+ this.isLoading = true;
221
+ this.formioReady = new Promise(function (ready) {
222
+ _this.formioReadyResolve = ready;
223
+ });
224
+ }
225
+ FormioBaseComponent.prototype.getRenderer = function () {
226
+ return this.renderer;
227
+ };
228
+ FormioBaseComponent.prototype.getRendererOptions = function () {
229
+ var extraTags = this.customTags ? this.customTags.tags : [];
230
+ return lodash.assign({}, {
231
+ icons: lodash.get(this.config, 'icons', 'fontawesome'),
232
+ noAlerts: lodash.get(this.options, 'noAlerts', true),
233
+ readOnly: this.readOnly,
234
+ viewAsHtml: this.viewOnly,
235
+ i18n: lodash.get(this.options, 'i18n', null),
236
+ fileService: lodash.get(this.options, 'fileService', null),
237
+ hooks: this.hooks,
238
+ sanitizeConfig: {
239
+ addTags: extraTags
240
+ }
241
+ }, this.renderOptions || {});
242
+ };
243
+ FormioBaseComponent.prototype.createRenderer = function () {
244
+ var Renderer = this.getRenderer();
245
+ var form = (new Renderer(this.formioElement ? this.formioElement.nativeElement : null, this.form, this.getRendererOptions()));
246
+ return form.instance;
247
+ };
248
+ FormioBaseComponent.prototype.setForm = function (form) {
249
+ var _this = this;
250
+ this.form = form;
251
+ if (this.formio) {
252
+ this.formio.destroy();
253
+ }
254
+ if (this.form.title) {
255
+ this.label = this.form.title;
256
+ }
257
+ else if (this.form.components && this.form.components[0]) {
258
+ this.label = this.form.components[0].label;
259
+ }
260
+ // Clear out the element to render the new form.
261
+ if (this.formioElement && this.formioElement.nativeElement) {
262
+ this.formioElement.nativeElement.innerHTML = '';
263
+ }
264
+ this.formio = this.createRenderer();
265
+ this.formio.submission = this.submission;
266
+ if (this.renderOptions && this.renderOptions.validateOnInit) {
267
+ this.formio.setValue(this.submission, { validateOnInit: true });
268
+ }
269
+ if (this.url) {
270
+ this.formio.setUrl(this.url, this.formioOptions || {});
271
+ }
272
+ if (this.src) {
273
+ this.formio.setUrl(this.src, this.formioOptions || {});
274
+ }
275
+ this.formio.nosubmit = true;
276
+ this.formio.on('prevPage', function (data) { return _this.ngZone.run(function () { return _this.onPrevPage(data); }); });
277
+ this.formio.on('nextPage', function (data) { return _this.ngZone.run(function () { return _this.onNextPage(data); }); });
278
+ this.formio.on('change', function (value, flags, isModified) { return _this.ngZone.run(function () { return _this.onChange(value, flags, isModified); }); });
279
+ this.formio.on('rowAdd', function () { return _this.ngZone.run(function () { return _this.rowAdd.emit(); }); });
280
+ this.formio.on('rowEdit', function (data, rowIndex, index) { return _this.ngZone.run(function () { return _this.rowEdit.emit(Object.assign(Object.assign({}, data), { rowIndex: rowIndex, index: index })); }); });
281
+ this.formio.on('rowDelete', function (data, rowIndex, index) { return _this.ngZone.run(function () { return _this.rowDelete.emit(Object.assign(Object.assign({}, data), { rowIndex: rowIndex, index: index })); }); });
282
+ this.formio.on('rowClick', function (row, rowIndex, index) { return _this.ngZone.run(function () { return _this.rowDelete.emit(Object.assign(Object.assign({}, row), { rowIndex: rowIndex, index: index })); }); });
283
+ this.formio.on('customEvent', function (event) { return _this.ngZone.run(function () { return _this.customEvent.emit(event); }); });
284
+ ['fileUploadingStart', 'fileUploadingEnd'].forEach(function (eventName, index) {
285
+ var status = !!index ? 'end' : 'start';
286
+ _this.formio.on(eventName, function () { return _this.ngZone.run(function () { return _this.fileUploadingStatus.emit(status); }); });
287
+ });
288
+ this.formio.on('submit', function (submission, saved) { return _this.ngZone.run(function () { return _this.submitForm(submission, saved); }); });
289
+ this.formio.on('error', function (err) { return _this.ngZone.run(function () {
290
+ _this.submissionSuccess = false;
291
+ return _this.onError(err);
292
+ }); });
293
+ this.formio.on('render', function () { return _this.ngZone.run(function () { return _this.render.emit(); }); });
294
+ this.formio.on('formLoad', function (loadedForm) { return _this.ngZone.run(function () { return _this.formLoad.emit(loadedForm); }); });
295
+ return this.formio.ready.then(function () {
296
+ _this.ngZone.run(function () {
297
+ _this.isLoading = false;
298
+ _this.ready.emit(_this);
299
+ _this.formioReadyResolve(_this.formio);
300
+ if (_this.formio.submissionReady) {
301
+ _this.formio.submissionReady.then(function (submission) {
302
+ _this.submissionLoad.emit(submission);
303
+ });
304
+ }
305
+ });
306
+ return _this.formio;
307
+ });
308
+ };
309
+ FormioBaseComponent.prototype.initialize = function () {
310
+ if (this.initialized) {
311
+ return;
312
+ }
313
+ var extraTags = this.customTags ? this.customTags.tags : [];
314
+ var defaultOptions = {
315
+ errors: {
316
+ message: 'Please fix the following errors before submitting.'
317
+ },
318
+ alerts: {
319
+ submitMessage: 'Submission Complete.'
320
+ },
321
+ disableAlerts: false,
322
+ hooks: {
323
+ beforeSubmit: null
324
+ },
325
+ sanitizeConfig: {
326
+ addTags: extraTags
327
+ },
328
+ alertsPosition: AlertsPosition.top,
329
+ };
330
+ this.options = Object.assign(defaultOptions, this.options);
331
+ if (this.options.disableAlerts) {
332
+ this.options.alertsPosition = AlertsPosition.none;
333
+ }
334
+ this.initialized = true;
335
+ };
336
+ FormioBaseComponent.prototype.ngOnInit = function () {
337
+ var _this = this;
338
+ Evaluator__default["default"].noeval = this.noeval;
339
+ this.initialize();
340
+ if (this.language) {
341
+ if (typeof this.language === 'string') {
342
+ this.formio.language = this.language;
343
+ }
344
+ else {
345
+ this.language.subscribe(function (lang) {
346
+ _this.formio.language = lang;
347
+ });
348
+ }
349
+ }
350
+ if (this.refresh) {
351
+ this.refresh.subscribe(function (refresh) { return _this.onRefresh(refresh); });
352
+ }
353
+ if (this.error) {
354
+ this.error.subscribe(function (err) { return _this.onError(err); });
355
+ }
356
+ if (this.success) {
357
+ this.success.subscribe(function (message) {
358
+ _this.alerts.setAlert({
359
+ type: 'success',
360
+ message: message || lodash.get(_this.options, 'alerts.submitMessage')
361
+ });
362
+ });
363
+ }
364
+ if (this.src) {
365
+ if (!this.service) {
366
+ this.service = new FormioService(this.src);
367
+ }
368
+ this.isLoading = true;
369
+ this.service.loadForm({ params: { live: 1 } }).subscribe(function (form) {
370
+ if (form && form.components) {
371
+ _this.ngZone.runOutsideAngular(function () {
372
+ _this.setForm(form);
373
+ });
374
+ }
375
+ // if a submission is also provided.
376
+ if (lodash.isEmpty(_this.submission) &&
377
+ _this.service &&
378
+ _this.service.formio.submissionId) {
379
+ _this.service.loadSubmission().subscribe(function (submission) {
380
+ if (_this.readOnly) {
381
+ _this.formio.options.readOnly = true;
382
+ }
383
+ _this.submission = _this.formio.submission = submission;
384
+ }, function (err) { return _this.onError(err); });
385
+ }
386
+ }, function (err) { return _this.onError(err); });
387
+ }
388
+ if (this.url && !this.service) {
389
+ this.service = new FormioService(this.url);
390
+ }
391
+ };
392
+ FormioBaseComponent.prototype.ngOnDestroy = function () {
393
+ if (this.formio) {
394
+ this.formio.destroy();
395
+ }
396
+ };
397
+ FormioBaseComponent.prototype.onRefresh = function (refresh) {
398
+ var _this = this;
399
+ this.formioReady.then(function () {
400
+ if (refresh.form) {
401
+ _this.formio.setForm(refresh.form).then(function () {
402
+ if (refresh.submission) {
403
+ _this.formio.setSubmission(refresh.submission);
404
+ }
405
+ });
406
+ }
407
+ else if (refresh.submission) {
408
+ _this.formio.setSubmission(refresh.submission);
409
+ }
410
+ else {
411
+ switch (refresh.property) {
412
+ case 'submission':
413
+ _this.formio.submission = refresh.value;
414
+ break;
415
+ case 'form':
416
+ _this.formio.form = refresh.value;
417
+ break;
418
+ }
419
+ }
420
+ });
421
+ };
422
+ FormioBaseComponent.prototype.ngOnChanges = function (changes) {
423
+ var _this = this;
424
+ Evaluator__default["default"].noeval = this.noeval;
425
+ this.initialize();
426
+ if (changes.form && changes.form.currentValue) {
427
+ this.ngZone.runOutsideAngular(function () {
428
+ _this.setForm(changes.form.currentValue);
429
+ });
430
+ }
431
+ this.formioReady.then(function () {
432
+ if (changes.submission && changes.submission.currentValue) {
433
+ _this.formio.setSubmission(changes.submission.currentValue);
434
+ }
435
+ if (changes.hideComponents && changes.hideComponents.currentValue) {
436
+ var hiddenComponents_1 = changes.hideComponents.currentValue;
437
+ _this.formio.options.hide = hiddenComponents_1;
438
+ _this.formio.everyComponent(function (component) {
439
+ component.options.hide = hiddenComponents_1;
440
+ if (hiddenComponents_1.includes(component.component.key)) {
441
+ component.visible = false;
442
+ }
443
+ });
444
+ }
445
+ });
446
+ };
447
+ FormioBaseComponent.prototype.onPrevPage = function (data) {
448
+ this.alerts.setAlerts([]);
449
+ this.prevPage.emit(data);
450
+ };
451
+ FormioBaseComponent.prototype.onNextPage = function (data) {
452
+ this.alerts.setAlerts([]);
453
+ this.nextPage.emit(data);
454
+ };
455
+ FormioBaseComponent.prototype.onSubmit = function (submission, saved, noemit) {
456
+ this.submitting = false;
457
+ this.submissionSuccess = true;
458
+ this.formio.setValue(utils.fastCloneDeep(submission), {
459
+ noValidate: true,
460
+ noCheck: true
461
+ });
462
+ if (saved) {
463
+ this.formio.emit('submitDone', submission);
464
+ }
465
+ if (!noemit) {
466
+ this.submit.emit(submission);
467
+ }
468
+ if (!this.success) {
469
+ this.alerts.setAlert({
470
+ type: 'success',
471
+ message: lodash.get(this.options, 'alerts.submitMessage')
472
+ });
473
+ }
474
+ };
475
+ FormioBaseComponent.prototype.onError = function (err) {
476
+ var _this = this;
477
+ this.alerts.setAlerts([]);
478
+ this.submitting = false;
479
+ this.isLoading = false;
480
+ if (!err) {
481
+ return;
482
+ }
483
+ // Make sure it is an array.
484
+ var errors = Array.isArray(err) ? err : [err];
485
+ // Emit these errors again.
486
+ this.errorChange.emit(errors);
487
+ if (err.silent) {
488
+ return;
489
+ }
490
+ if (this.formio && errors.length) {
491
+ this.formio.emit('submitError', errors);
492
+ }
493
+ // Iterate through each one and set the alerts array.
494
+ errors.forEach(function (error) {
495
+ var _a = error
496
+ ? error.details
497
+ ? {
498
+ message: error.details.map(function (detail) { return detail.message; }),
499
+ paths: error.details.map(function (detail) { return detail.path; }),
500
+ }
501
+ : {
502
+ message: error.message || error.toString(),
503
+ paths: error.path ? [error.path] : [],
504
+ }
505
+ : {
506
+ message: '',
507
+ paths: [],
508
+ }, message = _a.message, paths = _a.paths;
509
+ var shouldErrorDisplay = true;
510
+ if (_this.formio) {
511
+ paths.forEach(function (path, index) {
512
+ var component = _this.formio.getComponent(path);
513
+ if (component) {
514
+ var components = Array.isArray(component) ? component : [component];
515
+ var messageText_1 = Array.isArray(message) ? message[index] : message;
516
+ components.forEach(function (comp) { return comp.setCustomValidity(messageText_1, true); });
517
+ _this.alerts.addAlert({
518
+ type: 'danger',
519
+ message: message[index],
520
+ component: component,
521
+ });
522
+ shouldErrorDisplay = false;
523
+ }
524
+ });
525
+ if (window.VPAT_ENABLED) {
526
+ if (typeof error === 'string' && _this.formio.components) {
527
+ _this.formio.components.forEach(function (comp) {
528
+ if (comp && comp.type !== 'button') {
529
+ comp.setCustomValidity(message, true);
530
+ }
531
+ });
532
+ }
533
+ }
534
+ if (!_this.noAlerts) {
535
+ _this.formio.showErrors();
536
+ }
537
+ }
538
+ if (shouldErrorDisplay) {
539
+ _this.alerts.addAlert({
540
+ type: 'danger',
541
+ message: message,
542
+ component: error.component,
543
+ });
544
+ }
545
+ });
546
+ };
547
+ FormioBaseComponent.prototype.focusOnComponet = function (key) {
548
+ if (this.formio) {
549
+ this.formio.focusOnComponent(key);
550
+ }
551
+ };
552
+ FormioBaseComponent.prototype.submitExecute = function (submission, saved) {
553
+ var _this = this;
554
+ if (saved === void 0) { saved = false; }
555
+ if (this.service && !this.url && !saved) {
556
+ this.service
557
+ .saveSubmission(submission)
558
+ .subscribe(function (sub) { return _this.onSubmit(sub, true); }, function (err) { return _this.onError(err); });
559
+ }
560
+ else {
561
+ this.onSubmit(submission, false);
562
+ }
563
+ };
564
+ FormioBaseComponent.prototype.submitForm = function (submission, saved) {
565
+ var _this = this;
566
+ if (saved === void 0) { saved = false; }
567
+ // Keep double submits from occurring...
568
+ if (this.submitting) {
569
+ return;
570
+ }
571
+ this.formio.setMetadata(submission);
572
+ this.submissionSuccess = false;
573
+ this.submitting = true;
574
+ this.beforeSubmit.emit(submission);
575
+ // if they provide a beforeSubmit hook, then allow them to alter the submission asynchronously
576
+ // or even provide a custom Error method.
577
+ var beforeSubmit = lodash.get(this.options, 'hooks.beforeSubmit');
578
+ if (beforeSubmit) {
579
+ beforeSubmit(submission, function (err, sub) {
580
+ if (err) {
581
+ _this.onError(err);
582
+ return;
583
+ }
584
+ _this.submitExecute(sub, saved);
585
+ });
586
+ }
587
+ else {
588
+ this.submitExecute(submission, saved);
589
+ }
590
+ };
591
+ FormioBaseComponent.prototype.onChange = function (value, flags, isModified) {
592
+ if (this.watchSubmissionErrors && !this.submissionSuccess) {
593
+ var errors = lodash.get(this, 'formio.errors', []);
594
+ var alerts = lodash.get(this, 'alerts.alerts', []);
595
+ var submitted = lodash.get(this, 'formio.submitted', false);
596
+ if (submitted && (errors.length || alerts.length)) {
597
+ this.onError(errors);
598
+ }
599
+ }
600
+ return this.change.emit(Object.assign(Object.assign({}, value), { flags: flags, isModified: isModified }));
601
+ };
602
+ return FormioBaseComponent;
603
+ }());
604
+ FormioBaseComponent.decorators = [
605
+ { type: core.Component, args: [{
606
+ template: ''
607
+ },] }
608
+ ];
609
+ FormioBaseComponent.ctorParameters = function () { return [
610
+ { type: core.NgZone },
611
+ { type: FormioAppConfig, decorators: [{ type: core.Optional }] },
612
+ { type: CustomTagsService, decorators: [{ type: core.Optional }] }
613
+ ]; };
614
+ FormioBaseComponent.propDecorators = {
615
+ form: [{ type: core.Input }],
616
+ submission: [{ type: core.Input }],
617
+ src: [{ type: core.Input }],
618
+ url: [{ type: core.Input }],
619
+ service: [{ type: core.Input }],
620
+ options: [{ type: core.Input }],
621
+ noeval: [{ type: core.Input }],
622
+ formioOptions: [{ type: core.Input }],
623
+ renderOptions: [{ type: core.Input }],
624
+ readOnly: [{ type: core.Input }],
625
+ viewOnly: [{ type: core.Input }],
626
+ hideComponents: [{ type: core.Input }],
627
+ refresh: [{ type: core.Input }],
628
+ error: [{ type: core.Input }],
629
+ success: [{ type: core.Input }],
630
+ language: [{ type: core.Input }],
631
+ hooks: [{ type: core.Input }],
632
+ renderer: [{ type: core.Input }],
633
+ watchSubmissionErrors: [{ type: core.Input }],
634
+ render: [{ type: core.Output }],
635
+ customEvent: [{ type: core.Output }],
636
+ fileUploadingStatus: [{ type: core.Output }],
637
+ submit: [{ type: core.Output }],
638
+ prevPage: [{ type: core.Output }],
639
+ nextPage: [{ type: core.Output }],
640
+ beforeSubmit: [{ type: core.Output }],
641
+ rowAdd: [{ type: core.Output }],
642
+ rowEdit: [{ type: core.Output }],
643
+ rowDelete: [{ type: core.Output }],
644
+ rowClick: [{ type: core.Output }],
645
+ change: [{ type: core.Output }],
646
+ invalid: [{ type: core.Output }],
647
+ errorChange: [{ type: core.Output }],
648
+ formLoad: [{ type: core.Output }],
649
+ submissionLoad: [{ type: core.Output }],
650
+ ready: [{ type: core.Output }],
651
+ formioElement: [{ type: core.ViewChild, args: ['formio', { static: true },] }]
652
+ };
653
+
654
+ /*! *****************************************************************************
655
+ Copyright (c) Microsoft Corporation.
656
+
657
+ Permission to use, copy, modify, and/or distribute this software for any
658
+ purpose with or without fee is hereby granted.
659
+
660
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
661
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
662
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
663
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
664
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
665
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
666
+ PERFORMANCE OF THIS SOFTWARE.
667
+ ***************************************************************************** */
668
+ /* global Reflect, Promise */
669
+ var extendStatics = function (d, b) {
670
+ extendStatics = Object.setPrototypeOf ||
671
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
672
+ function (d, b) { for (var p in b)
673
+ if (Object.prototype.hasOwnProperty.call(b, p))
674
+ d[p] = b[p]; };
675
+ return extendStatics(d, b);
676
+ };
677
+ function __extends(d, b) {
678
+ if (typeof b !== "function" && b !== null)
679
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
680
+ extendStatics(d, b);
681
+ function __() { this.constructor = d; }
682
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
683
+ }
684
+ var __assign = function () {
685
+ __assign = Object.assign || function __assign(t) {
686
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
687
+ s = arguments[i];
688
+ for (var p in s)
689
+ if (Object.prototype.hasOwnProperty.call(s, p))
690
+ t[p] = s[p];
691
+ }
692
+ return t;
693
+ };
694
+ return __assign.apply(this, arguments);
695
+ };
696
+ function __rest(s, e) {
697
+ var t = {};
698
+ for (var p in s)
699
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
700
+ t[p] = s[p];
701
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
702
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
703
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
704
+ t[p[i]] = s[p[i]];
705
+ }
706
+ return t;
707
+ }
708
+ function __decorate(decorators, target, key, desc) {
709
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
710
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
711
+ r = Reflect.decorate(decorators, target, key, desc);
712
+ else
713
+ for (var i = decorators.length - 1; i >= 0; i--)
714
+ if (d = decorators[i])
715
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
716
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
717
+ }
718
+ function __param(paramIndex, decorator) {
719
+ return function (target, key) { decorator(target, key, paramIndex); };
720
+ }
721
+ function __metadata(metadataKey, metadataValue) {
722
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
723
+ return Reflect.metadata(metadataKey, metadataValue);
724
+ }
725
+ function __awaiter(thisArg, _arguments, P, generator) {
726
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
727
+ return new (P || (P = Promise))(function (resolve, reject) {
728
+ function fulfilled(value) { try {
729
+ step(generator.next(value));
730
+ }
731
+ catch (e) {
732
+ reject(e);
733
+ } }
734
+ function rejected(value) { try {
735
+ step(generator["throw"](value));
736
+ }
737
+ catch (e) {
738
+ reject(e);
739
+ } }
740
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
741
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
742
+ });
743
+ }
744
+ function __generator(thisArg, body) {
745
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
746
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
747
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
748
+ function verb(n) { return function (v) { return step([n, v]); }; }
749
+ function step(op) {
750
+ if (f)
751
+ throw new TypeError("Generator is already executing.");
752
+ while (_)
753
+ try {
754
+ 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)
755
+ return t;
756
+ if (y = 0, t)
757
+ op = [op[0] & 2, t.value];
758
+ switch (op[0]) {
759
+ case 0:
760
+ case 1:
761
+ t = op;
762
+ break;
763
+ case 4:
764
+ _.label++;
765
+ return { value: op[1], done: false };
766
+ case 5:
767
+ _.label++;
768
+ y = op[1];
769
+ op = [0];
770
+ continue;
771
+ case 7:
772
+ op = _.ops.pop();
773
+ _.trys.pop();
774
+ continue;
775
+ default:
776
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
777
+ _ = 0;
778
+ continue;
779
+ }
780
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
781
+ _.label = op[1];
782
+ break;
783
+ }
784
+ if (op[0] === 6 && _.label < t[1]) {
785
+ _.label = t[1];
786
+ t = op;
787
+ break;
788
+ }
789
+ if (t && _.label < t[2]) {
790
+ _.label = t[2];
791
+ _.ops.push(op);
792
+ break;
793
+ }
794
+ if (t[2])
795
+ _.ops.pop();
796
+ _.trys.pop();
797
+ continue;
798
+ }
799
+ op = body.call(thisArg, _);
800
+ }
801
+ catch (e) {
802
+ op = [6, e];
803
+ y = 0;
804
+ }
805
+ finally {
806
+ f = t = 0;
807
+ }
808
+ if (op[0] & 5)
809
+ throw op[1];
810
+ return { value: op[0] ? op[1] : void 0, done: true };
811
+ }
812
+ }
813
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
814
+ if (k2 === undefined)
815
+ k2 = k;
816
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
817
+ }) : (function (o, m, k, k2) {
818
+ if (k2 === undefined)
819
+ k2 = k;
820
+ o[k2] = m[k];
821
+ });
822
+ function __exportStar(m, o) {
823
+ for (var p in m)
824
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
825
+ __createBinding(o, m, p);
826
+ }
827
+ function __values(o) {
828
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
829
+ if (m)
830
+ return m.call(o);
831
+ if (o && typeof o.length === "number")
832
+ return {
833
+ next: function () {
834
+ if (o && i >= o.length)
835
+ o = void 0;
836
+ return { value: o && o[i++], done: !o };
837
+ }
838
+ };
839
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
840
+ }
841
+ function __read(o, n) {
842
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
843
+ if (!m)
844
+ return o;
845
+ var i = m.call(o), r, ar = [], e;
846
+ try {
847
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
848
+ ar.push(r.value);
849
+ }
850
+ catch (error) {
851
+ e = { error: error };
852
+ }
853
+ finally {
854
+ try {
855
+ if (r && !r.done && (m = i["return"]))
856
+ m.call(i);
857
+ }
858
+ finally {
859
+ if (e)
860
+ throw e.error;
861
+ }
862
+ }
863
+ return ar;
864
+ }
865
+ /** @deprecated */
866
+ function __spread() {
867
+ for (var ar = [], i = 0; i < arguments.length; i++)
868
+ ar = ar.concat(__read(arguments[i]));
869
+ return ar;
870
+ }
871
+ /** @deprecated */
872
+ function __spreadArrays() {
873
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
874
+ s += arguments[i].length;
875
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
876
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
877
+ r[k] = a[j];
878
+ return r;
879
+ }
880
+ function __spreadArray(to, from, pack) {
881
+ if (pack || arguments.length === 2)
882
+ for (var i = 0, l = from.length, ar; i < l; i++) {
883
+ if (ar || !(i in from)) {
884
+ if (!ar)
885
+ ar = Array.prototype.slice.call(from, 0, i);
886
+ ar[i] = from[i];
887
+ }
888
+ }
889
+ return to.concat(ar || Array.prototype.slice.call(from));
890
+ }
891
+ function __await(v) {
892
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
893
+ }
894
+ function __asyncGenerator(thisArg, _arguments, generator) {
895
+ if (!Symbol.asyncIterator)
896
+ throw new TypeError("Symbol.asyncIterator is not defined.");
897
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
898
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
899
+ function verb(n) { if (g[n])
900
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
901
+ function resume(n, v) { try {
902
+ step(g[n](v));
903
+ }
904
+ catch (e) {
905
+ settle(q[0][3], e);
906
+ } }
907
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
908
+ function fulfill(value) { resume("next", value); }
909
+ function reject(value) { resume("throw", value); }
910
+ function settle(f, v) { if (f(v), q.shift(), q.length)
911
+ resume(q[0][0], q[0][1]); }
912
+ }
913
+ function __asyncDelegator(o) {
914
+ var i, p;
915
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
916
+ 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; }
917
+ }
918
+ function __asyncValues(o) {
919
+ if (!Symbol.asyncIterator)
920
+ throw new TypeError("Symbol.asyncIterator is not defined.");
921
+ var m = o[Symbol.asyncIterator], i;
922
+ 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);
923
+ 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); }); }; }
924
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
925
+ }
926
+ function __makeTemplateObject(cooked, raw) {
927
+ if (Object.defineProperty) {
928
+ Object.defineProperty(cooked, "raw", { value: raw });
929
+ }
930
+ else {
931
+ cooked.raw = raw;
932
+ }
933
+ return cooked;
934
+ }
935
+ ;
936
+ var __setModuleDefault = Object.create ? (function (o, v) {
937
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
938
+ }) : function (o, v) {
939
+ o["default"] = v;
940
+ };
941
+ function __importStar(mod) {
942
+ if (mod && mod.__esModule)
943
+ return mod;
944
+ var result = {};
945
+ if (mod != null)
946
+ for (var k in mod)
947
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
948
+ __createBinding(result, mod, k);
949
+ __setModuleDefault(result, mod);
950
+ return result;
951
+ }
952
+ function __importDefault(mod) {
953
+ return (mod && mod.__esModule) ? mod : { default: mod };
954
+ }
955
+ function __classPrivateFieldGet(receiver, state, kind, f) {
956
+ if (kind === "a" && !f)
957
+ throw new TypeError("Private accessor was defined without a getter");
958
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
959
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
960
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
961
+ }
962
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
963
+ if (kind === "m")
964
+ throw new TypeError("Private method is not writable");
965
+ if (kind === "a" && !f)
966
+ throw new TypeError("Private accessor was defined without a setter");
967
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
968
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
969
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
970
+ }
971
+
972
+ /* tslint:disable */
973
+ /* tslint:enable */
974
+ var FormioComponent = /** @class */ (function (_super) {
975
+ __extends(FormioComponent, _super);
976
+ function FormioComponent(ngZone, config, customTags) {
977
+ var _this = _super.call(this, ngZone, config, customTags) || this;
978
+ _this.ngZone = ngZone;
979
+ _this.config = config;
980
+ _this.customTags = customTags;
981
+ if (_this.config) {
982
+ formiojs.Formio.setBaseUrl(_this.config.apiUrl);
983
+ formiojs.Formio.setProjectUrl(_this.config.appUrl);
984
+ }
985
+ else {
986
+ console.warn('You must provide an AppConfig within your application!');
987
+ }
988
+ return _this;
989
+ }
990
+ FormioComponent.prototype.getRenderer = function () {
991
+ return this.renderer || formiojs.Form;
992
+ };
993
+ return FormioComponent;
994
+ }(FormioBaseComponent));
995
+ FormioComponent.decorators = [
996
+ { type: core.Component, args: [{
997
+ selector: 'formio',
998
+ template: "<div role=\"form\" [attr.aria-label]=\"label\">\n <div *ngIf=\"isLoading\" style=\"position:relative;height:200px\">\n <formio-loader [isLoading]=\"isLoading\"></formio-loader>\n </div>\n <formio-alerts *ngIf=\"this.options.alertsPosition === AlertsPosition.top || this.options.alertsPosition === AlertsPosition.both\" (focusComponent)=\"focusOnComponet($event)\" [alerts]=\"alerts\"></formio-alerts>\n <div #formio></div>\n <formio-alerts *ngIf=\"this.options.alertsPosition === AlertsPosition.bottom || this.options.alertsPosition === AlertsPosition.both\" (focusComponent)=\"focusOnComponet($event)\" [alerts]=\"alerts\"></formio-alerts>\n</div>\n",
999
+ encapsulation: core.ViewEncapsulation.None,
1000
+ styles: ["@charset \"UTF-8\";.choices{position:relative;margin-bottom:24px;font-size:16px}.choices:focus{outline:0}.choices:last-child{margin-bottom:0}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.choices.is-disabled .choices__item{cursor:not-allowed}.choices [hidden]{display:none!important}.choices[data-type*=select-one]{cursor:pointer}.choices[data-type*=select-one] .choices__inner{padding-bottom:7.5px}.choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:10px;border-bottom:1px solid #ddd;background-color:#fff;margin:0}.choices[data-type*=select-one] .choices__button{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:.5}.choices[data-type*=select-one] .choices__button:focus,.choices[data-type*=select-one] .choices__button:hover{opacity:1}.choices[data-type*=select-one] .choices__button:focus{box-shadow:0 0 0 2px #00bcd4}.choices[data-type*=select-one] .choices__item[data-value=\"\"] .choices__button{display:none}.choices[data-type*=select-one]:after{content:\"\";height:0;width:0;border-style:solid;border-color:#333 transparent transparent;border-width:5px;position:absolute;right:11.5px;top:50%;margin-top:-2.5px;pointer-events:none}.choices[data-type*=select-one].is-open:after{border-color:transparent transparent #333;margin-top:-7.5px}.choices[data-type*=select-one][dir=rtl]:after{left:11.5px;right:auto}.choices[data-type*=select-one][dir=rtl] .choices__button{right:auto;left:0;margin-left:25px;margin-right:0}.choices[data-type*=select-multiple] .choices__inner,.choices[data-type*=text] .choices__inner{cursor:text}.choices[data-type*=select-multiple] .choices__button,.choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin:0 -4px 0 8px;padding-left:16px;border-left:1px solid #008fa1;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);background-size:8px;width:8px;line-height:1;opacity:.75;border-radius:0}.choices[data-type*=select-multiple] .choices__button:focus,.choices[data-type*=select-multiple] .choices__button:hover,.choices[data-type*=text] .choices__button:focus,.choices[data-type*=text] .choices__button:hover{opacity:1}.choices__inner{display:inline-block;vertical-align:top;width:100%;background-color:#f9f9f9;padding:7.5px 7.5px 3.75px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;min-height:44px;overflow:hidden}.is-focused .choices__inner,.is-open .choices__inner{border-color:#b7b7b7}.is-open .choices__inner{border-radius:2.5px 2.5px 0 0}.is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px}.choices__list{margin:0;padding-left:0;list-style:none}.choices__list--single{display:inline-block;padding:4px 16px 4px 4px;width:100%}[dir=rtl] .choices__list--single{padding-right:4px;padding-left:16px}.choices__list--single .choices__item{width:100%}.choices__list--multiple{display:inline}.choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#00bcd4;border:1px solid #00a5bb;color:#fff;word-break:break-all;box-sizing:border-box}.choices__list--multiple .choices__item[data-deletable]{padding-right:5px}[dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.choices__list--multiple .choices__item.is-highlighted{background-color:#00a5bb;border:1px solid #008fa1}.is-disabled .choices__list--multiple .choices__item{background-color:#aaa;border:1px solid #919191}.choices__list--dropdown{visibility:hidden;z-index:1;position:absolute;width:100%;background-color:#fff;border:1px solid #ddd;top:100%;margin-top:-1px;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;overflow:hidden;word-break:break-all;will-change:visibility}.choices__list--dropdown.is-active{visibility:visible}.is-open .choices__list--dropdown{border-color:#b7b7b7}.is-flipped .choices__list--dropdown{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:.25rem .25rem 0 0}.choices__list--dropdown .choices__list{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.choices__list--dropdown .choices__item{position:relative;padding:10px;font-size:14px}[dir=rtl] .choices__list--dropdown .choices__item{text-align:right}@media (min-width:640px){.choices__list--dropdown .choices__item--selectable{padding-right:100px}.choices__list--dropdown .choices__item--selectable:after{content:attr(data-select-text);font-size:12px;opacity:0;position:absolute;right:10px;top:50%;transform:translateY(-50%)}[dir=rtl] .choices__list--dropdown .choices__item--selectable{text-align:right;padding-left:100px;padding-right:10px}[dir=rtl] .choices__list--dropdown .choices__item--selectable:after{right:auto;left:10px}}.choices__list--dropdown .choices__item--selectable.is-highlighted{background-color:#f2f2f2}.choices__list--dropdown .choices__item--selectable.is-highlighted:after{opacity:.5}.choices__item{cursor:default}.choices__item--selectable{cursor:pointer}.choices__item--disabled{cursor:not-allowed;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;opacity:.5}.choices__heading{font-weight:600;font-size:12px;padding:10px;border-bottom:1px solid #f7f7f7;color:gray}.choices__button{text-indent:-9999px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.choices__button:focus,.choices__input:focus{outline:0}.choices__input{display:inline-block;vertical-align:baseline;background-color:#f9f9f9;font-size:14px;margin-bottom:5px;border:0;border-radius:0;max-width:100%;padding:4px 0 4px 2px}[dir=rtl] .choices__input{padding-right:2px;padding-left:0}.choices__placeholder{opacity:.5}dialog{position:absolute;left:0;right:0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;height:-moz-fit-content;height:-webkit-fit-content;height:fit-content;margin:auto;border:solid;padding:1em;background:#fff;color:#000;display:block}dialog:not([open]){display:none}dialog+.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.1)}._dialog_overlay{position:fixed;top:0;right:0;bottom:0;left:0}dialog.fixed{position:fixed;top:50%;transform:translateY(-50%)}.formio-loader{position:relative;min-height:60px}.loader-wrapper{z-index:1000;position:absolute;top:0;left:0;bottom:0;right:0;height:120px;background-color:#0000}.loader{position:absolute;left:50%;top:50%;margin-left:-30px;margin-top:-30px;z-index:10000;display:inline-block;border:6px solid #f3f3f3;border-top:6px solid #3498db;border-radius:50%;width:60px;height:60px;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.formio-form{position:relative;min-height:80px}.formio-error-wrapper,.formio-warning-wrapper{padding:1em}.formio-error-wrapper{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.formio-warning-wrapper{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.formio-disabled-input .form-control.flatpickr-input{background-color:#eee}.builder-component.has-error .invalid-feedback,.formio-component.alert-danger .invalid-feedback,.formio-component.has-error .invalid-feedback,.formio-component.has-message .invalid-feedback{display:block;color:inherit;margin-top:4px}.formio-errors .error{color:#dc3545}.formio-errors .warning{color:#856404}.formio-errors .info{color:#004085}.formio-wysiwyg-editor{min-height:200px;background-color:#fff}.has-feedback .form-control{padding-right:10px}.has-feedback .form-control[type=hidden]{padding-right:0}.has-error.bg-danger{padding:4px}.ql-source:after{content:\"[source]\";white-space:nowrap}.quill-source-code{width:100%;margin:0;background:#1d1d1d;box-sizing:border-box;color:#ccc;font-size:15px;outline:0;padding:20px;line-height:24px;font-family:Consolas,Menlo,Monaco,\"Courier New\",monospace;position:absolute;top:0;bottom:0;border:none;display:none}.formio-component-tags tags{background-color:#fff}.field-required:after,.tab-error:after{content:\" *\";color:red}.field-required:after{position:relative;z-index:10}.glyphicon-spin{-webkit-animation:formio-spin 1s infinite linear;animation:formio-spin 1s infinite linear}@-webkit-keyframes formio-spin{0%{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes formio-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.button-icon-right{margin-left:5px}.formio-component-submit .submit-success:after{content:\"\\2713\";position:relative;right:-4px;top:1px;line-height:1}.formio-component-submit .submit-fail:after{content:\"\\2717\";position:relative;right:-4px;top:1px;line-height:1}.formio-component-submit .submit-fail[disabled]{opacity:1}.form-control.flatpickr-input{background-color:#fff}td>.form-group{margin-bottom:0}.signature-pad-body{overflow:hidden;position:relative}.signature-pad-canvas{border-radius:4px;box-shadow:0 0 5px #00000005 inset;border:1px solid #f4f4f4}.btn.signature-pad-refresh{position:absolute;left:0;top:0;z-index:1000;padding:3px;line-height:0}[dir=rtl] .btn.signature-pad-refresh{left:unset;right:0}.formio-component-multiple .choices__input{width:100%}.choices__list--dropdown .choices__item--selectable{padding-right:0}.signature-pad-refresh img{height:1.2em}.signature-pad-footer{text-align:center;color:#c3c3c3}.choices__list--dropdown{z-index:100}.choices__list--multiple .choices__item{border-radius:0;padding:2px 8px;line-height:1em;margin-bottom:6px}.choices__list--single{padding:0}.choices__item.choices__item--selectable{white-space:nowrap;overflow:hidden;padding-right:25px;text-overflow:ellipsis}.choices__input{padding:2px}.choices[dir=rtl]>*{text-align:right}.choices[dir=rtl] .choices__list--multiple .choices__item[data-deletable]{padding-left:5px;float:right}.choices[dir=rtl] .choices__list--multiple .choices__item[data-deletable] .choices__button{float:left;margin:0 8px 0 -4px;padding-left:unset;padding-right:16px;border-left:unset;border-right:1px solid #008fa1;overflow:hidden}.formio-component-file .fileSelector{position:relative;padding:15px;border:2px dashed #ddd;text-align:center}.formio-component-file .fileSelector .loader-wrapper{display:none;width:100%;height:100%;background-color:#0000001a}.formio-component-file .fileSelector .loader-wrapper .loader{height:45px;width:45px;margin-top:-23px;margin-left:-23px}.formio-component-file .fileSelector.fileDragOver{border-color:#127abe}.formio-component-file .fileSelector .fa,.formio-component-file .fileSelector .glyphicon{font-size:20px;margin-right:5px}[dir=rtl] .formio-component-file .fileSelector .fa,[dir=rtl] .formio-component-file .fileSelector .glyphicon{margin-right:unset;margin-left:5px}.formio-component-file .fileSelector .browse{cursor:pointer}@-webkit-keyframes formio-dialog-fadeout{0%{opacity:1}to{opacity:0}}@keyframes formio-dialog-fadeout{0%{opacity:1}to{opacity:0}}@-webkit-keyframes formio-dialog-fadein{0%{opacity:0}to{opacity:1}}@keyframes formio-dialog-fadein{0%{opacity:0}to{opacity:1}}.formio-dialog{box-sizing:border-box;font-size:.8em;color:#666}.formio-dialog.formio-modaledit-dialog{font-size:inherit}.formio-dialog *,.formio-dialog :after,.formio-dialog :before{box-sizing:inherit}.formio-dialog{position:fixed;overflow:auto;-webkit-overflow-scrolling:touch;z-index:10000;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.4);-webkit-animation:formio-dialog-fadein .5s;animation:formio-dialog-fadein .5s}.formio-dialog.formio-dialog-disabled-animation,.formio-dialog.formio-dialog-disabled-animation .formio-dialog-content,.formio-dialog.formio-dialog-disabled-animation .formio-dialog-overlay{-webkit-animation:none!important;animation:none!important}.formio-dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;-webkit-backface-visibility:hidden;-webkit-animation:formio-dialog-fadein .5s;animation:formio-dialog-fadein .5s;margin-right:15px;background:0 0}.formio-dialog-no-overlay{pointer-events:none}.formio-dialog.formio-dialog-closing .formio-dialog-overlay{-webkit-backface-visibility:hidden;-webkit-animation:formio-dialog-fadeout .5s;animation:formio-dialog-fadeout .5s}.formio-dialog-content{background:#fff;-webkit-backface-visibility:hidden;-webkit-animation:formio-dialog-fadein .5s;animation:formio-dialog-fadein .5s;pointer-events:all;overflow:auto}.formio-component-modal-wrapper-select .formio-dialog-content{overflow:visible;overflow:initial}.formio-dialog.formio-dialog-closing .formio-dialog-content{-webkit-backface-visibility:hidden;-webkit-animation:formio-dialog-fadeout .5s;animation:formio-dialog-fadeout .5s}.formio-dialog-close:before{font-family:Helvetica,Arial,sans-serif;content:\"\\d7\";cursor:pointer}body.formio-dialog-open,html.formio-dialog-open{overflow:hidden}.formio-dialog .tab-content{padding-top:12px}.formio-dialog-close{z-index:1000}@-webkit-keyframes formio-dialog-flyin{0%{opacity:0;transform:translateY(-40px)}to{opacity:1;transform:translateY(0)}}@keyframes formio-dialog-flyin{0%{opacity:0;transform:translateY(-40px)}to{opacity:1;transform:translateY(0)}}@-webkit-keyframes formio-dialog-flyout{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-40px)}}@keyframes formio-dialog-flyout{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-40px)}}.formio-dialog.formio-dialog-theme-default{padding-bottom:160px;padding-top:160px}.formio-dialog.formio-dialog-theme-default.formio-dialog-closing .formio-dialog-content{-webkit-animation:formio-dialog-flyout .5s;animation:formio-dialog-flyout .5s}.formio-dialog.formio-dialog-theme-default .formio-dialog-content{-webkit-animation:formio-dialog-flyin .5s;animation:formio-dialog-flyin .5s;background:#f0f0f0;border-radius:5px;font-family:Helvetica,sans-serif;font-size:1.1em;line-height:1.5em;margin:0 auto;max-width:100%;padding:1em;position:relative;width:80%}.formio-dialog.formio-dialog-theme-default .formio-dialog-close{border:none;background:0 0;cursor:pointer;position:absolute;right:0;top:0;z-index:100}.formio-clickable{cursor:pointer}.component-settings .nav>li>a{padding:8px 10px}.formio-dialog.formio-dialog-theme-default .formio-dialog-close:before{display:block;padding:3px;background:0 0;color:#bbb;content:\"\\d7\";font-size:26px;font-weight:400;line-height:26px;text-align:center}.formio-dialog.formio-dialog-theme-default .formio-dialog-close:active:before,.formio-dialog.formio-dialog-theme-default .formio-dialog-close:hover:before{color:#777}.formio-dialog.formio-dialog-theme-default .formio-dialog-message{margin-bottom:.5em}.formio-dialog.formio-dialog-theme-default .formio-dialog-input{margin-bottom:1em}.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=email],.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=password],.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=text],.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=url],.formio-dialog.formio-dialog-theme-default .formio-dialog-input textarea{background:#fff;border:0;border-radius:3px;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0 0 .25em;min-height:2.5em;padding:.25em .67em;width:100%}.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=email]:focus,.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=password]:focus,.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=text]:focus,.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=url]:focus,.formio-dialog.formio-dialog-theme-default .formio-dialog-input textarea:focus{box-shadow:inset 0 0 0 2px #8dbdf1;outline:0}.formio-dialog.formio-dialog-theme-default .formio-dialog-buttons{*zoom:1}.formio-dialog.formio-dialog-theme-default .formio-dialog-buttons:after{content:\"\";display:table;clear:both}.formio-dialog.formio-dialog-theme-default .formio-dialog-button{border:0;border-radius:3px;cursor:pointer;float:right;font-family:inherit;font-size:.8em;letter-spacing:.1em;line-height:1em;margin:0 0 0 .5em;padding:.75em 2em;text-transform:uppercase}.formio-dialog.formio-dialog-theme-default .formio-dialog-button:focus{-webkit-animation:formio-dialog-pulse 1.1s infinite;animation:formio-dialog-pulse 1.1s infinite;outline:0}@media (max-width:568px){.formio-dialog.formio-dialog-theme-default .formio-dialog-button:focus{-webkit-animation:none;animation:none}}.formio-dialog.formio-dialog-theme-default .formio-dialog-button.formio-dialog-button-primary{background:#3288e6;color:#fff}.formio-dialog.formio-dialog-theme-default .formio-dialog-button.formio-dialog-button-secondary{background:#e0e0e0;color:#777}.formio-dialog-content .panel{margin:0}.formio-placeholder{position:absolute;color:#999}.formio-dialog .formio-dialog-close{cursor:pointer}.formio-iframe{border:none;width:100%;height:1000px}.inline-form-button{margin-right:10px}.tooltip{opacity:1}.tooltip[x-placement=right] .tooltip-arrow{border-right:5px solid #000}.tooltip[x-placement=right] .tooltip-inner{margin-left:8px}.control-label--bottom{margin-bottom:0;margin-top:5px}.formio-component-label-hidden{position:relative}.formio-hidden{margin:0}.control-label--hidden{position:absolute;top:6px;right:5px;font-size:1.5em}.formio-component-datetime .control-label--hidden.field-required{right:45px;z-index:3}.formio-component-selectboxes .control-label--hidden.field-required,.formio-component-survey .control-label--hidden.field-required{top:0}.formio-component-resource .control-label--hidden.field-required,.formio-component-select .control-label--hidden.field-required{right:40px;z-index:2}.formio-component-datasource,.formio-component-hidden:not(.formio-component-checkbox){margin-bottom:0}.checkbox-inline label,.radio-inline label{font-weight:400;cursor:pointer}.editgrid-listgroup{margin-bottom:10px}.tree-listgroup{flex-direction:row}.formio-component-submit button[disabled]+.has-error{display:block}.formio-choices.form-group{margin-bottom:0}.formio-choices[data-type=select-multiple] .form-control{height:auto}.form-control.formio-multiple-mask-select{width:15%;z-index:4}.form-control.formio-multiple-mask-input{width:85%}.input-group.formio-multiple-mask-container{width:100%}.formio-component .table{margin-bottom:0}.formio-hide-label-panel-tooltip{margin-top:-10px;margin-left:-10px}.is-disabled .choices__list--multiple .choices__item{padding:5px 10px}.is-disabled .choices__list--multiple .choices__item .choices__button{display:none}.formio-collapse-icon{cursor:pointer;margin-right:4px}[dir=rtl] .formio-collapse-icon{margin-right:unset;margin-left:4px}.formio-component-dateTime .form-control[type=datetime-local]~.input-group-addon,.formio-component-datetime .form-control[type=datetime-local]~.input-group-addon{width:auto}.formio-component-datagrid .formio-datagrid-remove{position:absolute;top:0;right:0;visibility:hidden;opacity:0;transition:opacity .2s linear,visibility 0s .2s}.formio-component-datagrid .datagrid-table>tbody>tr>td:last-child{position:relative}.formio-component-datagrid .datagrid-table>tbody>tr:hover>td:last-child .formio-datagrid-remove{visibility:visible;opacity:1;transition:visibility 0s,opacity .2s linear}.formio-component-modaledit .formio-modaledit-view-container{position:relative;border:1px solid #ddd;min-height:34px;padding:6px 12px;cursor:text}td .formio-component-modaledit .formio-modaledit-view-container{padding:0;border-style:none}.formio-component-modaledit .formio-modaledit-edit{position:absolute;top:0;left:0;visibility:hidden;opacity:0;transition:opacity .2s linear,visibility 0s .2s}.formio-component-modaledit .formio-modaledit-view-container:hover .formio-modaledit-edit{visibility:visible;opacity:1;transition:visibility 0s,opacity .2s linear}.formio-modaledit-dialog .formio-modaledit-close{position:absolute;top:100%;right:0;border-radius:0}.reset-margins a,.reset-margins abbr,.reset-margins acronym,.reset-margins address,.reset-margins applet,.reset-margins article,.reset-margins aside,.reset-margins audio,.reset-margins b,.reset-margins big,.reset-margins blockquote,.reset-margins body,.reset-margins canvas,.reset-margins caption,.reset-margins center,.reset-margins cite,.reset-margins code,.reset-margins dd,.reset-margins del,.reset-margins details,.reset-margins dfn,.reset-margins div,.reset-margins dl,.reset-margins dt,.reset-margins em,.reset-margins embed,.reset-margins fieldset,.reset-margins figcaption,.reset-margins figure,.reset-margins footer,.reset-margins form,.reset-margins h1,.reset-margins h2,.reset-margins h3,.reset-margins h4,.reset-margins h5,.reset-margins h6,.reset-margins header,.reset-margins hgroup,.reset-margins html,.reset-margins i,.reset-margins iframe,.reset-margins img,.reset-margins ins,.reset-margins kbd,.reset-margins label,.reset-margins legend,.reset-margins li,.reset-margins mark,.reset-margins menu,.reset-margins nav,.reset-margins object,.reset-margins ol,.reset-margins output,.reset-margins p,.reset-margins pre,.reset-margins q,.reset-margins ruby,.reset-margins s,.reset-margins samp,.reset-margins section,.reset-margins small,.reset-margins span,.reset-margins strike,.reset-margins strong,.reset-margins sub,.reset-margins summary,.reset-margins sup,.reset-margins table,.reset-margins tbody,.reset-margins td,.reset-margins tfoot,.reset-margins th,.reset-margins thead,.reset-margins time,.reset-margins tr,.reset-margins tt,.reset-margins u,.reset-margins ul,.reset-margins var,.reset-margins video{margin:0}.ck-body .ck.ck-balloon-panel{z-index:101000}.formio-component-select select[disabled=disabled]{-webkit-appearance:none;-moz-appearance:none;text-indent:1px;text-overflow:\"\"}.formio-component-select .choices.is-disabled[data-type*=select-one]:after,.formio-component-select div[disabled=disabled] button{display:none}.datagrid-group-label.collapsed>td{display:none}.datagrid-group-header.clickable{cursor:pointer}.datagrid-group-header.clickable .datagrid-group-label:before{display:inline-block;vertical-align:middle;content:\"\\25be\";margin:0 5px}.datagrid-group-header.clickable.collapsed .datagrid-group-label:before{content:\"\\25b8\"}.formio-component.alert-danger .help-block,.formio-component.alert-warning .help-block{color:inherit}.tree__level_even{background-color:#f6f6f6}.tree__node-content{margin-bottom:10px}.tree__node-children{margin:0}.formio-select-autocomplete-input{opacity:0;position:absolute;z-index:-1}.has-error>.help-block{margin-top:5px;margin-bottom:10px}.no-top-border-table>.table>tbody>tr:first-child>td{border-top:none}.table>tbody>tr>td.cell-align-left{text-align:left}.table>tbody>tr>td.cell-align-center{text-align:center}.table>tbody>tr>td.cell-align-center>div{margin-left:auto;margin-right:auto}.table>tbody>tr>td.cell-align-right{text-align:right}.table>tbody>tr>td.cell-align-right>div{margin-left:auto}.table-responsive[ref=component]{overflow-x:visible}.formio-component-textarea .alert .ck-editor__editable{color:inherit}.formio-component-textarea .ck.ck-editor__editable .image .ck-progress-bar{height:4px}div[data-oembed-url]{width:100%}.checkbox label.label-position-bottom,.checkbox label.label-position-left,.checkbox label.label-position-top,.radio label.label-position-bottom,.radio label.label-position-left,.radio label.label-position-top{padding-left:0}.checkbox label.label-position-bottom span,.checkbox label.label-position-top span,.radio label.label-position-bottom span,.radio label.label-position-top span{display:block}.checkbox label.label-position-bottom input[type=checkbox],.checkbox label.label-position-top input[type=checkbox],.radio label.label-position-bottom input[type=radio],.radio label.label-position-top input[type=radio]{position:relative;margin-left:0}.checkbox label.label-position-top input[type=checkbox],.radio label.label-position-top input[type=radio]{margin-top:4px}.checkbox label.label-position-bottom input[type=checkbox],.radio label.label-position-bottom input[type=radio]{margin-bottom:8px}.checkbox label.label-position-left input[type=checkbox],.radio label.label-position-left input[type=radio]{margin-left:10px}.open-modal-button{width:100%;text-align:left;white-space:normal;height:auto}.formio-component-modal-wrapper-signature .open-modal-button{text-align:center;height:100%;font-size:1.4em;padding:0;margin:0}.formio-component-content .image{display:table;clear:both;text-align:center;margin:1em auto}.formio-component-content .image>img{display:block;margin:0 auto;max-width:100%;min-width:50px}.formio-component-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}.formio-component-content .image.image_resized{max-width:100%;display:block;box-sizing:border-box}.formio-component-content .image.image_resized img{width:100%}.formio-component-content .image.image_resized>figcaption{display:block}.formio-component-content .media{clear:both;margin:1em 0;display:block;min-width:15em}.formio-component-content .image-style-align-center:not(.image_resized),.formio-component-content .image-style-align-left:not(.image_resized),.formio-component-content .image-style-align-right:not(.image_resized),.formio-component-content .image-style-side:not(.image_resized){max-width:50%}.formio-component-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing)}.formio-component-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.formio-component-content .image-style-align-center{margin-left:auto;margin-right:auto}.formio-component-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.formio-component-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:solid 5px #ccc}.formio-component-content[dir=rtl] blockquote{border-left:0;border-right:solid 5px #ccc}.formio-component-content .text-tiny{font-size:.7em}.formio-component-content .text-small{font-size:.85em}.formio-component-content .text-big{font-size:1.4em}.formio-component-content .text-huge{font-size:1.8em}.formio-component-address.formio-component-label-hidden>label.field-required{z-index:1}.formio-component-address.formio-component-label-hidden>label.field-required~.address-autocomplete-container .address-autocomplete-remove-value-icon{right:20px}.address-autocomplete-container{position:relative}.address-autocomplete-container .address-autocomplete-remove-value-icon{cursor:pointer;position:absolute;margin-top:-9px;right:10px;top:50%}.address-autocomplete-container .address-autocomplete-remove-value-icon--hidden{display:none}.autocomplete{background:#fff;font:14px/22px \"-apple-system\",BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;overflow:auto;box-sizing:border-box;border:1px solid rgba(50,50,50,.6);z-index:11000}.autocomplete>div{cursor:pointer;padding:6px 10px}.autocomplete>div.selected,.autocomplete>div:hover:not(.group){background:#1e90ff;color:#fff}.field-wrapper{display:flex}.field-wrapper--reverse{flex-direction:row-reverse}.field-wrapper .field-label--right{text-align:right}.formio-component-modal-wrapper{margin-bottom:10px}.formio-component-modal-wrapper .open-modal-button{height:auto}.formio-component-modal-wrapper .component-rendering-hidden{visibility:hidden}.formio-component-textarea div.formio-editor-read-only-content[ref=input]{white-space:pre-wrap}.formio-editor-read-only-content img{max-width:100%}.formio-editor-read-only-content li[data-list=bullet]{list-style-type:none}.formio-editor-read-only-content li[data-list=bullet] .ql-ui{padding-right:.5rem}.formio-editor-read-only-content li[data-list=bullet] .ql-ui:before{content:\"\\2022\"}.formio-editor-read-only-content li[data-list=ordered]{list-style-type:none;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.formio-editor-read-only-content li[data-list=ordered] .ql-ui{padding-right:.5rem}.formio-editor-read-only-content li[data-list=ordered] .ql-ui:before{content:counter(list-0,decimal) \". \"}.formio-editor-read-only-content figure.table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.formio-editor-read-only-content figure.table table td,.formio-editor-read-only-content figure.table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.formio-component-password .pull-right:not(:last-child),.formio-component-textarea .pull-right:not(:last-child),.formio-component-textfield .pull-right:not(:last-child){padding-left:12px}.formio-form>div>nav>ul.pagination{flex-flow:wrap row}.formio-form>div>nav>ul.pagination .page-link{cursor:pointer}.pac-container{z-index:11000}[ref=buttonMessageContainer].has-error{cursor:pointer}.formio-component-textarea .formio-editor-read-only-content .text-big{font-size:1.4em}.formio-component-textarea .formio-editor-read-only-content .text-huge{font-size:1.8em}.formio-component-textarea .formio-editor-read-only-content .text-small{font-size:.85em}.formio-component-textarea .formio-editor-read-only-content .text-tiny{font-size:.7em}\n"]
1001
+ },] }
1002
+ ];
1003
+ FormioComponent.ctorParameters = function () { return [
1004
+ { type: core.NgZone },
1005
+ { type: FormioAppConfig, decorators: [{ type: core.Optional }] },
1006
+ { type: CustomTagsService, decorators: [{ type: core.Optional }] }
1007
+ ]; };
1008
+
1009
+ /* tslint:disable */
1010
+ /* tslint:enable */
1011
+ var FormBuilderComponent = /** @class */ (function () {
1012
+ function FormBuilderComponent(ngZone, config, customTags) {
1013
+ var _this = this;
1014
+ this.ngZone = ngZone;
1015
+ this.config = config;
1016
+ this.customTags = customTags;
1017
+ this.componentAdding = false;
1018
+ this.noeval = false;
1019
+ if (this.config) {
1020
+ formiojs.Formio.setBaseUrl(this.config.apiUrl);
1021
+ formiojs.Formio.setProjectUrl(this.config.appUrl);
1022
+ }
1023
+ else {
1024
+ console.warn('You must provide an AppConfig within your application!');
1025
+ }
1026
+ this.change = new core.EventEmitter();
1027
+ this.ready = new Promise(function (resolve) {
1028
+ _this.readyResolve = resolve;
1029
+ });
1030
+ }
1031
+ FormBuilderComponent.prototype.ngOnInit = function () {
1032
+ var _this = this;
1033
+ formiojs.Utils.Evaluator.noeval = this.noeval;
1034
+ if (this.refresh) {
1035
+ this.refreshSubscription = this.refresh.subscribe(function () {
1036
+ _this.ngZone.runOutsideAngular(function () {
1037
+ _this.buildForm(_this.form);
1038
+ });
1039
+ });
1040
+ }
1041
+ if (this.rebuild) {
1042
+ this.rebuild.subscribe(function (options) {
1043
+ _this.ngZone.runOutsideAngular(function () {
1044
+ _this.rebuildForm(_this.form, options);
1045
+ });
1046
+ });
1047
+ }
1048
+ };
1049
+ FormBuilderComponent.prototype.setInstance = function (instance) {
1050
+ var _this = this;
1051
+ this.formio = instance;
1052
+ instance.off('addComponent');
1053
+ instance.off('saveComponent');
1054
+ instance.off('updateComponent');
1055
+ instance.off('removeComponent');
1056
+ instance.on('addComponent', function (component, parent, path, index, isNew) {
1057
+ _this.ngZone.run(function () {
1058
+ if (isNew) {
1059
+ _this.componentAdding = true;
1060
+ }
1061
+ else {
1062
+ _this.change.emit({
1063
+ type: 'addComponent',
1064
+ builder: instance,
1065
+ form: instance.schema,
1066
+ component: component,
1067
+ parent: parent,
1068
+ path: path,
1069
+ index: index
1070
+ });
1071
+ _this.componentAdding = false;
1072
+ }
1073
+ });
1074
+ });
1075
+ instance.on('saveComponent', function (component, original, parent, path, index, isNew) {
1076
+ _this.ngZone.run(function () {
1077
+ _this.change.emit({
1078
+ type: _this.componentAdding ? 'addComponent' : 'saveComponent',
1079
+ builder: instance,
1080
+ form: instance.schema,
1081
+ component: component,
1082
+ originalComponent: original,
1083
+ parent: parent,
1084
+ path: path,
1085
+ index: index,
1086
+ isNew: isNew || false
1087
+ });
1088
+ _this.componentAdding = false;
1089
+ });
1090
+ });
1091
+ instance.on('updateComponent', function (component) {
1092
+ _this.ngZone.run(function () {
1093
+ _this.change.emit({
1094
+ type: 'updateComponent',
1095
+ builder: instance,
1096
+ form: instance.schema,
1097
+ component: component
1098
+ });
1099
+ });
1100
+ });
1101
+ instance.on('removeComponent', function (component, parent, path, index) {
1102
+ _this.ngZone.run(function () {
1103
+ _this.change.emit({
1104
+ type: 'deleteComponent',
1105
+ builder: instance,
1106
+ form: instance.schema,
1107
+ component: component,
1108
+ parent: parent,
1109
+ path: path,
1110
+ index: index
1111
+ });
1112
+ });
1113
+ });
1114
+ this.ngZone.run(function () {
1115
+ _this.readyResolve(instance);
1116
+ });
1117
+ return instance;
1118
+ };
1119
+ FormBuilderComponent.prototype.setDisplay = function (display, prevDisplay) {
1120
+ var _this = this;
1121
+ if (display && display !== prevDisplay) {
1122
+ return this.builder.setDisplay(display).then(function (instance) { return _this.setInstance(instance); });
1123
+ }
1124
+ else {
1125
+ return Promise.resolve();
1126
+ }
1127
+ };
1128
+ FormBuilderComponent.prototype.buildForm = function (form, prevForm) {
1129
+ var _this = this;
1130
+ if (!form || !this.builderElement || !this.builderElement.nativeElement) {
1131
+ return;
1132
+ }
1133
+ if (this.builder) {
1134
+ return this.setDisplay(form.display, prevForm === null || prevForm === void 0 ? void 0 : prevForm.display).then(function () {
1135
+ _this.builder.form = form;
1136
+ _this.builder.instance.form = form;
1137
+ return _this.builder.instance;
1138
+ });
1139
+ }
1140
+ return this.rebuildForm(form);
1141
+ };
1142
+ FormBuilderComponent.prototype.rebuildForm = function (form, options) {
1143
+ var _this = this;
1144
+ var Builder = this.formbuilder || formiojs.FormBuilder;
1145
+ var extraTags = this.customTags ? this.customTags.tags : [];
1146
+ this.builder = new Builder(this.builderElement.nativeElement, form, lodash.assign({
1147
+ icons: 'fontawesome',
1148
+ sanitizeConfig: {
1149
+ addTags: extraTags
1150
+ }
1151
+ }, options || this.options || {}));
1152
+ return this.builder.ready.then(function (instance) { return _this.setInstance(instance); });
1153
+ };
1154
+ FormBuilderComponent.prototype.ngOnChanges = function (changes) {
1155
+ var _this = this;
1156
+ formiojs.Utils.Evaluator.noeval = this.noeval;
1157
+ if (changes.form && changes.form.currentValue) {
1158
+ this.ngZone.runOutsideAngular(function () {
1159
+ _this.buildForm(changes.form.currentValue || { components: [] }, changes.form.previousValue);
1160
+ });
1161
+ }
1162
+ };
1163
+ FormBuilderComponent.prototype.ngOnDestroy = function () {
1164
+ if (this.refreshSubscription) {
1165
+ this.refreshSubscription.unsubscribe();
1166
+ }
1167
+ if (this.formio) {
1168
+ this.formio.destroy();
1169
+ }
1170
+ };
1171
+ return FormBuilderComponent;
1172
+ }());
1173
+ FormBuilderComponent.decorators = [
1174
+ { type: core.Component, args: [{
1175
+ selector: 'form-builder',
1176
+ template: "<div #builder></div>\n",
1177
+ encapsulation: core.ViewEncapsulation.None,
1178
+ styles: ["@charset \"UTF-8\";.choices{position:relative;margin-bottom:24px;font-size:16px}.choices:focus{outline:0}.choices:last-child{margin-bottom:0}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.choices.is-disabled .choices__item{cursor:not-allowed}.choices [hidden]{display:none!important}.choices[data-type*=select-one]{cursor:pointer}.choices[data-type*=select-one] .choices__inner{padding-bottom:7.5px}.choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:10px;border-bottom:1px solid #ddd;background-color:#fff;margin:0}.choices[data-type*=select-one] .choices__button{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:.5}.choices[data-type*=select-one] .choices__button:focus,.choices[data-type*=select-one] .choices__button:hover{opacity:1}.choices[data-type*=select-one] .choices__button:focus{box-shadow:0 0 0 2px #00bcd4}.choices[data-type*=select-one] .choices__item[data-value=\"\"] .choices__button{display:none}.choices[data-type*=select-one]:after{content:\"\";height:0;width:0;border-style:solid;border-color:#333 transparent transparent;border-width:5px;position:absolute;right:11.5px;top:50%;margin-top:-2.5px;pointer-events:none}.choices[data-type*=select-one].is-open:after{border-color:transparent transparent #333;margin-top:-7.5px}.choices[data-type*=select-one][dir=rtl]:after{left:11.5px;right:auto}.choices[data-type*=select-one][dir=rtl] .choices__button{right:auto;left:0;margin-left:25px;margin-right:0}.choices[data-type*=select-multiple] .choices__inner,.choices[data-type*=text] .choices__inner{cursor:text}.choices[data-type*=select-multiple] .choices__button,.choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin:0 -4px 0 8px;padding-left:16px;border-left:1px solid #008fa1;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);background-size:8px;width:8px;line-height:1;opacity:.75;border-radius:0}.choices[data-type*=select-multiple] .choices__button:focus,.choices[data-type*=select-multiple] .choices__button:hover,.choices[data-type*=text] .choices__button:focus,.choices[data-type*=text] .choices__button:hover{opacity:1}.choices__inner{display:inline-block;vertical-align:top;width:100%;background-color:#f9f9f9;padding:7.5px 7.5px 3.75px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;min-height:44px;overflow:hidden}.is-focused .choices__inner,.is-open .choices__inner{border-color:#b7b7b7}.is-open .choices__inner{border-radius:2.5px 2.5px 0 0}.is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px}.choices__list{margin:0;padding-left:0;list-style:none}.choices__list--single{display:inline-block;padding:4px 16px 4px 4px;width:100%}[dir=rtl] .choices__list--single{padding-right:4px;padding-left:16px}.choices__list--single .choices__item{width:100%}.choices__list--multiple{display:inline}.choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#00bcd4;border:1px solid #00a5bb;color:#fff;word-break:break-all;box-sizing:border-box}.choices__list--multiple .choices__item[data-deletable]{padding-right:5px}[dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.choices__list--multiple .choices__item.is-highlighted{background-color:#00a5bb;border:1px solid #008fa1}.is-disabled .choices__list--multiple .choices__item{background-color:#aaa;border:1px solid #919191}.choices__list--dropdown{visibility:hidden;z-index:1;position:absolute;width:100%;background-color:#fff;border:1px solid #ddd;top:100%;margin-top:-1px;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;overflow:hidden;word-break:break-all;will-change:visibility}.choices__list--dropdown.is-active{visibility:visible}.is-open .choices__list--dropdown{border-color:#b7b7b7}.is-flipped .choices__list--dropdown{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:.25rem .25rem 0 0}.choices__list--dropdown .choices__list{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.choices__list--dropdown .choices__item{position:relative;padding:10px;font-size:14px}[dir=rtl] .choices__list--dropdown .choices__item{text-align:right}@media (min-width:640px){.choices__list--dropdown .choices__item--selectable{padding-right:100px}.choices__list--dropdown .choices__item--selectable:after{content:attr(data-select-text);font-size:12px;opacity:0;position:absolute;right:10px;top:50%;transform:translateY(-50%)}[dir=rtl] .choices__list--dropdown .choices__item--selectable{text-align:right;padding-left:100px;padding-right:10px}[dir=rtl] .choices__list--dropdown .choices__item--selectable:after{right:auto;left:10px}}.choices__list--dropdown .choices__item--selectable.is-highlighted{background-color:#f2f2f2}.choices__list--dropdown .choices__item--selectable.is-highlighted:after{opacity:.5}.choices__item{cursor:default}.choices__item--selectable{cursor:pointer}.choices__item--disabled{cursor:not-allowed;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;opacity:.5}.choices__heading{font-weight:600;font-size:12px;padding:10px;border-bottom:1px solid #f7f7f7;color:gray}.choices__button{text-indent:-9999px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.choices__button:focus,.choices__input:focus{outline:0}.choices__input{display:inline-block;vertical-align:baseline;background-color:#f9f9f9;font-size:14px;margin-bottom:5px;border:0;border-radius:0;max-width:100%;padding:4px 0 4px 2px}[dir=rtl] .choices__input{padding-right:2px;padding-left:0}.choices__placeholder{opacity:.5}dialog{position:absolute;left:0;right:0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;height:-moz-fit-content;height:-webkit-fit-content;height:fit-content;margin:auto;border:solid;padding:1em;background:#fff;color:#000;display:block}dialog:not([open]){display:none}dialog+.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.1)}._dialog_overlay{position:fixed;top:0;right:0;bottom:0;left:0}dialog.fixed{position:fixed;top:50%;transform:translateY(-50%)}.gu-mirror{position:fixed!important;margin:0!important;z-index:9999!important;opacity:.8;-ms-filter:\"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)\";filter:alpha(opacity=80)}.gu-hide{display:none!important}.gu-unselectable{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.gu-transit{opacity:.2;-ms-filter:\"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)\";filter:alpha(opacity=20)}.formio-loader{position:relative;min-height:60px}.loader-wrapper{z-index:1000;position:absolute;top:0;left:0;bottom:0;right:0;height:120px;background-color:#0000}.loader{position:absolute;left:50%;top:50%;margin-left:-30px;margin-top:-30px;z-index:10000;display:inline-block;border:6px solid #f3f3f3;border-top:6px solid #3498db;border-radius:50%;width:60px;height:60px;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.formio-form{position:relative;min-height:80px}.formio-error-wrapper,.formio-warning-wrapper{padding:1em}.formio-error-wrapper{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.formio-warning-wrapper{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.formio-disabled-input .form-control.flatpickr-input{background-color:#eee}.builder-component.has-error .invalid-feedback,.formio-component.alert-danger .invalid-feedback,.formio-component.has-error .invalid-feedback,.formio-component.has-message .invalid-feedback{display:block;color:inherit;margin-top:4px}.formio-errors .error{color:#dc3545}.formio-errors .warning{color:#856404}.formio-errors .info{color:#004085}.formio-wysiwyg-editor{min-height:200px;background-color:#fff}.has-feedback .form-control{padding-right:10px}.has-feedback .form-control[type=hidden]{padding-right:0}.has-error.bg-danger{padding:4px}.ql-source:after{content:\"[source]\";white-space:nowrap}.quill-source-code{width:100%;margin:0;background:#1d1d1d;box-sizing:border-box;color:#ccc;font-size:15px;outline:0;padding:20px;line-height:24px;font-family:Consolas,Menlo,Monaco,\"Courier New\",monospace;position:absolute;top:0;bottom:0;border:none;display:none}.formio-component-tags tags{background-color:#fff}.field-required:after,.tab-error:after{content:\" *\";color:red}.field-required:after{position:relative;z-index:10}.glyphicon-spin{-webkit-animation:formio-spin 1s infinite linear;animation:formio-spin 1s infinite linear}@-webkit-keyframes formio-spin{0%{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes formio-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.button-icon-right{margin-left:5px}.formio-component-submit .submit-success:after{content:\"\\2713\";position:relative;right:-4px;top:1px;line-height:1}.formio-component-submit .submit-fail:after{content:\"\\2717\";position:relative;right:-4px;top:1px;line-height:1}.formio-component-submit .submit-fail[disabled]{opacity:1}.form-control.flatpickr-input{background-color:#fff}td>.form-group{margin-bottom:0}.signature-pad-body{overflow:hidden;position:relative}.signature-pad-canvas{border-radius:4px;box-shadow:0 0 5px #00000005 inset;border:1px solid #f4f4f4}.btn.signature-pad-refresh{position:absolute;left:0;top:0;z-index:1000;padding:3px;line-height:0}[dir=rtl] .btn.signature-pad-refresh{left:unset;right:0}.formio-component-multiple .choices__input{width:100%}.choices__list--dropdown .choices__item--selectable{padding-right:0}.signature-pad-refresh img{height:1.2em}.signature-pad-footer{text-align:center;color:#c3c3c3}.choices__list--dropdown{z-index:100}.choices__list--multiple .choices__item{border-radius:0;padding:2px 8px;line-height:1em;margin-bottom:6px}.choices__list--single{padding:0}.choices__item.choices__item--selectable{white-space:nowrap;overflow:hidden;padding-right:25px;text-overflow:ellipsis}.choices__input{padding:2px}.choices[dir=rtl]>*{text-align:right}.choices[dir=rtl] .choices__list--multiple .choices__item[data-deletable]{padding-left:5px;float:right}.choices[dir=rtl] .choices__list--multiple .choices__item[data-deletable] .choices__button{float:left;margin:0 8px 0 -4px;padding-left:unset;padding-right:16px;border-left:unset;border-right:1px solid #008fa1;overflow:hidden}.formio-component-file .fileSelector{position:relative;padding:15px;border:2px dashed #ddd;text-align:center}.formio-component-file .fileSelector .loader-wrapper{display:none;width:100%;height:100%;background-color:#0000001a}.formio-component-file .fileSelector .loader-wrapper .loader{height:45px;width:45px;margin-top:-23px;margin-left:-23px}.formio-component-file .fileSelector.fileDragOver{border-color:#127abe}.formio-component-file .fileSelector .fa,.formio-component-file .fileSelector .glyphicon{font-size:20px;margin-right:5px}[dir=rtl] .formio-component-file .fileSelector .fa,[dir=rtl] .formio-component-file .fileSelector .glyphicon{margin-right:unset;margin-left:5px}.formio-component-file .fileSelector .browse{cursor:pointer}@-webkit-keyframes formio-dialog-fadeout{0%{opacity:1}to{opacity:0}}@keyframes formio-dialog-fadeout{0%{opacity:1}to{opacity:0}}@-webkit-keyframes formio-dialog-fadein{0%{opacity:0}to{opacity:1}}@keyframes formio-dialog-fadein{0%{opacity:0}to{opacity:1}}.formio-dialog{box-sizing:border-box;font-size:.8em;color:#666}.formio-dialog.formio-modaledit-dialog{font-size:inherit}.formio-dialog *,.formio-dialog :after,.formio-dialog :before{box-sizing:inherit}.formio-dialog{position:fixed;overflow:auto;-webkit-overflow-scrolling:touch;z-index:10000;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.4);-webkit-animation:formio-dialog-fadein .5s;animation:formio-dialog-fadein .5s}.formio-dialog.formio-dialog-disabled-animation,.formio-dialog.formio-dialog-disabled-animation .formio-dialog-content,.formio-dialog.formio-dialog-disabled-animation .formio-dialog-overlay{-webkit-animation:none!important;animation:none!important}.formio-dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;-webkit-backface-visibility:hidden;-webkit-animation:formio-dialog-fadein .5s;animation:formio-dialog-fadein .5s;margin-right:15px;background:0 0}.formio-dialog-no-overlay{pointer-events:none}.formio-dialog.formio-dialog-closing .formio-dialog-overlay{-webkit-backface-visibility:hidden;-webkit-animation:formio-dialog-fadeout .5s;animation:formio-dialog-fadeout .5s}.formio-dialog-content{background:#fff;-webkit-backface-visibility:hidden;-webkit-animation:formio-dialog-fadein .5s;animation:formio-dialog-fadein .5s;pointer-events:all;overflow:auto}.formio-component-modal-wrapper-select .formio-dialog-content{overflow:visible;overflow:initial}.formio-dialog.formio-dialog-closing .formio-dialog-content{-webkit-backface-visibility:hidden;-webkit-animation:formio-dialog-fadeout .5s;animation:formio-dialog-fadeout .5s}.formio-dialog-close:before{font-family:Helvetica,Arial,sans-serif;content:\"\\d7\";cursor:pointer}body.formio-dialog-open,html.formio-dialog-open{overflow:hidden}.formio-dialog .tab-content{padding-top:12px}.formio-dialog-close{z-index:1000}@-webkit-keyframes formio-dialog-flyin{0%{opacity:0;transform:translateY(-40px)}to{opacity:1;transform:translateY(0)}}@keyframes formio-dialog-flyin{0%{opacity:0;transform:translateY(-40px)}to{opacity:1;transform:translateY(0)}}@-webkit-keyframes formio-dialog-flyout{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-40px)}}@keyframes formio-dialog-flyout{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-40px)}}.formio-dialog.formio-dialog-theme-default{padding-bottom:160px;padding-top:160px}.formio-dialog.formio-dialog-theme-default.formio-dialog-closing .formio-dialog-content{-webkit-animation:formio-dialog-flyout .5s;animation:formio-dialog-flyout .5s}.formio-dialog.formio-dialog-theme-default .formio-dialog-content{-webkit-animation:formio-dialog-flyin .5s;animation:formio-dialog-flyin .5s;background:#f0f0f0;border-radius:5px;font-family:Helvetica,sans-serif;font-size:1.1em;line-height:1.5em;margin:0 auto;max-width:100%;padding:1em;position:relative;width:80%}.formio-dialog.formio-dialog-theme-default .formio-dialog-close{border:none;background:0 0;cursor:pointer;position:absolute;right:0;top:0;z-index:100}.formio-clickable{cursor:pointer}.component-settings .nav>li>a{padding:8px 10px}.formio-dialog.formio-dialog-theme-default .formio-dialog-close:before{display:block;padding:3px;background:0 0;color:#bbb;content:\"\\d7\";font-size:26px;font-weight:400;line-height:26px;text-align:center}.formio-dialog.formio-dialog-theme-default .formio-dialog-close:active:before,.formio-dialog.formio-dialog-theme-default .formio-dialog-close:hover:before{color:#777}.formio-dialog.formio-dialog-theme-default .formio-dialog-message{margin-bottom:.5em}.formio-dialog.formio-dialog-theme-default .formio-dialog-input{margin-bottom:1em}.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=email],.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=password],.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=text],.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=url],.formio-dialog.formio-dialog-theme-default .formio-dialog-input textarea{background:#fff;border:0;border-radius:3px;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0 0 .25em;min-height:2.5em;padding:.25em .67em;width:100%}.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=email]:focus,.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=password]:focus,.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=text]:focus,.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=url]:focus,.formio-dialog.formio-dialog-theme-default .formio-dialog-input textarea:focus{box-shadow:inset 0 0 0 2px #8dbdf1;outline:0}.formio-dialog.formio-dialog-theme-default .formio-dialog-buttons{*zoom:1}.formio-dialog.formio-dialog-theme-default .formio-dialog-buttons:after{content:\"\";display:table;clear:both}.formio-dialog.formio-dialog-theme-default .formio-dialog-button{border:0;border-radius:3px;cursor:pointer;float:right;font-family:inherit;font-size:.8em;letter-spacing:.1em;line-height:1em;margin:0 0 0 .5em;padding:.75em 2em;text-transform:uppercase}.formio-dialog.formio-dialog-theme-default .formio-dialog-button:focus{-webkit-animation:formio-dialog-pulse 1.1s infinite;animation:formio-dialog-pulse 1.1s infinite;outline:0}@media (max-width:568px){.formio-dialog.formio-dialog-theme-default .formio-dialog-button:focus{-webkit-animation:none;animation:none}}.formio-dialog.formio-dialog-theme-default .formio-dialog-button.formio-dialog-button-primary{background:#3288e6;color:#fff}.formio-dialog.formio-dialog-theme-default .formio-dialog-button.formio-dialog-button-secondary{background:#e0e0e0;color:#777}.formio-dialog-content .panel{margin:0}.formio-placeholder{position:absolute;color:#999}.formio-dialog .formio-dialog-close{cursor:pointer}.formio-iframe{border:none;width:100%;height:1000px}.inline-form-button{margin-right:10px}.tooltip{opacity:1}.tooltip[x-placement=right] .tooltip-arrow{border-right:5px solid #000}.tooltip[x-placement=right] .tooltip-inner{margin-left:8px}.control-label--bottom{margin-bottom:0;margin-top:5px}.formio-component-label-hidden{position:relative}.formio-hidden{margin:0}.control-label--hidden{position:absolute;top:6px;right:5px;font-size:1.5em}.formio-component-datetime .control-label--hidden.field-required{right:45px;z-index:3}.formio-component-selectboxes .control-label--hidden.field-required,.formio-component-survey .control-label--hidden.field-required{top:0}.formio-component-resource .control-label--hidden.field-required,.formio-component-select .control-label--hidden.field-required{right:40px;z-index:2}.formio-component-datasource,.formio-component-hidden:not(.formio-component-checkbox){margin-bottom:0}.checkbox-inline label,.radio-inline label{font-weight:400;cursor:pointer}.editgrid-listgroup{margin-bottom:10px}.tree-listgroup{flex-direction:row}.formio-component-submit button[disabled]+.has-error{display:block}.formio-choices.form-group{margin-bottom:0}.formio-choices[data-type=select-multiple] .form-control{height:auto}.form-control.formio-multiple-mask-select{width:15%;z-index:4}.form-control.formio-multiple-mask-input{width:85%}.input-group.formio-multiple-mask-container{width:100%}.formio-component .table{margin-bottom:0}.formio-hide-label-panel-tooltip{margin-top:-10px;margin-left:-10px}.is-disabled .choices__list--multiple .choices__item{padding:5px 10px}.is-disabled .choices__list--multiple .choices__item .choices__button{display:none}.formio-collapse-icon{cursor:pointer;margin-right:4px}[dir=rtl] .formio-collapse-icon{margin-right:unset;margin-left:4px}.formio-component-dateTime .form-control[type=datetime-local]~.input-group-addon,.formio-component-datetime .form-control[type=datetime-local]~.input-group-addon{width:auto}.formio-component-datagrid .formio-datagrid-remove{position:absolute;top:0;right:0;visibility:hidden;opacity:0;transition:opacity .2s linear,visibility 0s .2s}.formio-component-datagrid .datagrid-table>tbody>tr>td:last-child{position:relative}.formio-component-datagrid .datagrid-table>tbody>tr:hover>td:last-child .formio-datagrid-remove{visibility:visible;opacity:1;transition:visibility 0s,opacity .2s linear}.formio-component-modaledit .formio-modaledit-view-container{position:relative;border:1px solid #ddd;min-height:34px;padding:6px 12px;cursor:text}td .formio-component-modaledit .formio-modaledit-view-container{padding:0;border-style:none}.formio-component-modaledit .formio-modaledit-edit{position:absolute;top:0;left:0;visibility:hidden;opacity:0;transition:opacity .2s linear,visibility 0s .2s}.formio-component-modaledit .formio-modaledit-view-container:hover .formio-modaledit-edit{visibility:visible;opacity:1;transition:visibility 0s,opacity .2s linear}.formio-modaledit-dialog .formio-modaledit-close{position:absolute;top:100%;right:0;border-radius:0}.reset-margins a,.reset-margins abbr,.reset-margins acronym,.reset-margins address,.reset-margins applet,.reset-margins article,.reset-margins aside,.reset-margins audio,.reset-margins b,.reset-margins big,.reset-margins blockquote,.reset-margins body,.reset-margins canvas,.reset-margins caption,.reset-margins center,.reset-margins cite,.reset-margins code,.reset-margins dd,.reset-margins del,.reset-margins details,.reset-margins dfn,.reset-margins div,.reset-margins dl,.reset-margins dt,.reset-margins em,.reset-margins embed,.reset-margins fieldset,.reset-margins figcaption,.reset-margins figure,.reset-margins footer,.reset-margins form,.reset-margins h1,.reset-margins h2,.reset-margins h3,.reset-margins h4,.reset-margins h5,.reset-margins h6,.reset-margins header,.reset-margins hgroup,.reset-margins html,.reset-margins i,.reset-margins iframe,.reset-margins img,.reset-margins ins,.reset-margins kbd,.reset-margins label,.reset-margins legend,.reset-margins li,.reset-margins mark,.reset-margins menu,.reset-margins nav,.reset-margins object,.reset-margins ol,.reset-margins output,.reset-margins p,.reset-margins pre,.reset-margins q,.reset-margins ruby,.reset-margins s,.reset-margins samp,.reset-margins section,.reset-margins small,.reset-margins span,.reset-margins strike,.reset-margins strong,.reset-margins sub,.reset-margins summary,.reset-margins sup,.reset-margins table,.reset-margins tbody,.reset-margins td,.reset-margins tfoot,.reset-margins th,.reset-margins thead,.reset-margins time,.reset-margins tr,.reset-margins tt,.reset-margins u,.reset-margins ul,.reset-margins var,.reset-margins video{margin:0}.ck-body .ck.ck-balloon-panel{z-index:101000}.formio-component-select select[disabled=disabled]{-webkit-appearance:none;-moz-appearance:none;text-indent:1px;text-overflow:\"\"}.formio-component-select .choices.is-disabled[data-type*=select-one]:after,.formio-component-select div[disabled=disabled] button{display:none}.datagrid-group-label.collapsed>td{display:none}.datagrid-group-header.clickable{cursor:pointer}.datagrid-group-header.clickable .datagrid-group-label:before{display:inline-block;vertical-align:middle;content:\"\\25be\";margin:0 5px}.datagrid-group-header.clickable.collapsed .datagrid-group-label:before{content:\"\\25b8\"}.formio-component.alert-danger .help-block,.formio-component.alert-warning .help-block{color:inherit}.tree__level_even{background-color:#f6f6f6}.tree__node-content{margin-bottom:10px}.tree__node-children{margin:0}.formio-select-autocomplete-input{opacity:0;position:absolute;z-index:-1}.has-error>.help-block{margin-top:5px;margin-bottom:10px}.no-top-border-table>.table>tbody>tr:first-child>td{border-top:none}.table>tbody>tr>td.cell-align-left{text-align:left}.table>tbody>tr>td.cell-align-center{text-align:center}.table>tbody>tr>td.cell-align-center>div{margin-left:auto;margin-right:auto}.table>tbody>tr>td.cell-align-right{text-align:right}.table>tbody>tr>td.cell-align-right>div{margin-left:auto}.table-responsive[ref=component]{overflow-x:visible}.formio-component-textarea .alert .ck-editor__editable{color:inherit}.formio-component-textarea .ck.ck-editor__editable .image .ck-progress-bar{height:4px}div[data-oembed-url]{width:100%}.checkbox label.label-position-bottom,.checkbox label.label-position-left,.checkbox label.label-position-top,.radio label.label-position-bottom,.radio label.label-position-left,.radio label.label-position-top{padding-left:0}.checkbox label.label-position-bottom span,.checkbox label.label-position-top span,.radio label.label-position-bottom span,.radio label.label-position-top span{display:block}.checkbox label.label-position-bottom input[type=checkbox],.checkbox label.label-position-top input[type=checkbox],.radio label.label-position-bottom input[type=radio],.radio label.label-position-top input[type=radio]{position:relative;margin-left:0}.checkbox label.label-position-top input[type=checkbox],.radio label.label-position-top input[type=radio]{margin-top:4px}.checkbox label.label-position-bottom input[type=checkbox],.radio label.label-position-bottom input[type=radio]{margin-bottom:8px}.checkbox label.label-position-left input[type=checkbox],.radio label.label-position-left input[type=radio]{margin-left:10px}.open-modal-button{width:100%;text-align:left;white-space:normal;height:auto}.formio-component-modal-wrapper-signature .open-modal-button{text-align:center;height:100%;font-size:1.4em;padding:0;margin:0}.formio-component-content .image{display:table;clear:both;text-align:center;margin:1em auto}.formio-component-content .image>img{display:block;margin:0 auto;max-width:100%;min-width:50px}.formio-component-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}.formio-component-content .image.image_resized{max-width:100%;display:block;box-sizing:border-box}.formio-component-content .image.image_resized img{width:100%}.formio-component-content .image.image_resized>figcaption{display:block}.formio-component-content .media{clear:both;margin:1em 0;display:block;min-width:15em}.formio-component-content .image-style-align-center:not(.image_resized),.formio-component-content .image-style-align-left:not(.image_resized),.formio-component-content .image-style-align-right:not(.image_resized),.formio-component-content .image-style-side:not(.image_resized){max-width:50%}.formio-component-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing)}.formio-component-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.formio-component-content .image-style-align-center{margin-left:auto;margin-right:auto}.formio-component-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.formio-component-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:solid 5px #ccc}.formio-component-content[dir=rtl] blockquote{border-left:0;border-right:solid 5px #ccc}.formio-component-content .text-tiny{font-size:.7em}.formio-component-content .text-small{font-size:.85em}.formio-component-content .text-big{font-size:1.4em}.formio-component-content .text-huge{font-size:1.8em}.formio-component-address.formio-component-label-hidden>label.field-required{z-index:1}.formio-component-address.formio-component-label-hidden>label.field-required~.address-autocomplete-container .address-autocomplete-remove-value-icon{right:20px}.address-autocomplete-container{position:relative}.address-autocomplete-container .address-autocomplete-remove-value-icon{cursor:pointer;position:absolute;margin-top:-9px;right:10px;top:50%}.address-autocomplete-container .address-autocomplete-remove-value-icon--hidden{display:none}.autocomplete{background:#fff;font:14px/22px \"-apple-system\",BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;overflow:auto;box-sizing:border-box;border:1px solid rgba(50,50,50,.6);z-index:11000}.autocomplete>div{cursor:pointer;padding:6px 10px}.autocomplete>div.selected,.autocomplete>div:hover:not(.group){background:#1e90ff;color:#fff}.field-wrapper{display:flex}.field-wrapper--reverse{flex-direction:row-reverse}.field-wrapper .field-label--right{text-align:right}.formio-component-modal-wrapper{margin-bottom:10px}.formio-component-modal-wrapper .open-modal-button{height:auto}.formio-component-modal-wrapper .component-rendering-hidden{visibility:hidden}.formio-component-textarea div.formio-editor-read-only-content[ref=input]{white-space:pre-wrap}.formio-editor-read-only-content img{max-width:100%}.formio-editor-read-only-content li[data-list=bullet]{list-style-type:none}.formio-editor-read-only-content li[data-list=bullet] .ql-ui{padding-right:.5rem}.formio-editor-read-only-content li[data-list=bullet] .ql-ui:before{content:\"\\2022\"}.formio-editor-read-only-content li[data-list=ordered]{list-style-type:none;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.formio-editor-read-only-content li[data-list=ordered] .ql-ui{padding-right:.5rem}.formio-editor-read-only-content li[data-list=ordered] .ql-ui:before{content:counter(list-0,decimal) \". \"}.formio-editor-read-only-content figure.table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.formio-editor-read-only-content figure.table table td,.formio-editor-read-only-content figure.table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.formio-component-password .pull-right:not(:last-child),.formio-component-textarea .pull-right:not(:last-child),.formio-component-textfield .pull-right:not(:last-child){padding-left:12px}.formio-form>div>nav>ul.pagination{flex-flow:wrap row}.formio-form>div>nav>ul.pagination .page-link{cursor:pointer}.pac-container{z-index:11000}[ref=buttonMessageContainer].has-error{cursor:pointer}.formio-component-textarea .formio-editor-read-only-content .text-big{font-size:1.4em}.formio-component-textarea .formio-editor-read-only-content .text-huge{font-size:1.8em}.formio-component-textarea .formio-editor-read-only-content .text-small{font-size:.85em}.formio-component-textarea .formio-editor-read-only-content .text-tiny{font-size:.7em}.formbuilder{position:relative}.drag-container{padding:10px;border:dotted 2px #e8e8e8}.drag-container:hover{cursor:move;border:dotted 2px #ccc}.drag-container.formio-builder-form,.drag-container.formio-builder-form:hover,.panel-body>.drag-container.formio-builder-components,.panel-body>.drag-container.formio-builder-components:hover,.tab-pane>.drag-container.formio-builder-components,.tab-pane>.drag-container.formio-builder-components:hover{padding:0 0 1rem;border:none}.component-btn-group{position:absolute;right:0;z-index:1000;margin-top:-2px}.builder-component{position:relative;min-height:15px}.builder-component .formio-component-htmlelement{border:dotted 2px #e8e8e8}.builder-component .formio-component-htmlelement [ref=html]:empty:before{content:\"HTML Content\";color:#aaa}.builder-component:not(:hover) .component-btn-group{display:none}.builder-group-button{background-color:transparent;white-space:normal;text-align:left}.form-builder-group-header{padding:0}.component-btn-group .component-settings-button{float:right;margin:4px 4px 0 0;z-index:1001;box-shadow:0 0 10px 1px #3071a999}.formbuilder .formio-component-content,.formbuilder .formio-component-datasource,.formbuilder .formio-component-form,.formbuilder .formio-component-hidden{border:2px dashed #ddd}.formbuilder .formio-component-datasource,.formbuilder .formio-component-form,.formbuilder .formio-component-hidden{height:3em;text-align:center;color:#aaa;padding-top:.5em}.btn-group-xxs>.btn,.btn-xxs,.component-btn-group .component-settings-button{padding:2px;font-size:10px;line-height:1.2em;border-radius:0;width:18px;height:18px}.formcomponents .formcomponent{text-align:left;padding:5px 5px 5px 8px;margin-top:.2rem;font-size:.8em;line-height:1.2;border-radius:.3em}.form-builder-panel .panel-body{padding:5px}.formio-component-tabs .ui.tabular.menu .item{padding:.8em}.formio-pdf-builder{position:relative}.formio-drop-zone{display:none;position:absolute;z-index:10;background-color:#0d87e9;opacity:.1}.formio-drop-zone.enabled{display:inherit}.component-settings .formio-dialog-content{max-height:100%}.component-btn-group .btn.component-settings-button-paste{display:none}.builder-paste-mode .component-settings-button-paste{display:inherit!important}.wizard-page-label{cursor:pointer;border-radius:0}.panel-body .drag-and-drop-alert{margin-bottom:0}.builder-sidebar_scroll{position:sticky;top:15px}.builder-sidebar_search{margin-bottom:10px;-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.formio-wizard-builder-component-title{color:#6c757d;text-align:center;padding:.5rem}.formio-wizard-position{position:relative}.formio-settings-help{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc;margin-top:10px}.help-block{margin:0}.builder-sidebar .btn{white-space:normal}.component-settings{padding-top:20px!important;padding-bottom:20px!important}.component-edit-container{height:auto;overflow:hidden}.component-edit-content{height:calc(100% - 4em)}.component-edit-tabs.col-sm-6{height:100%;overflow-y:auto}.component-edit-tabs.col-sm-12{height:calc(100% - 4em);overflow-y:auto}.component-edit-tabs.col-sm-12 .editForm{height:calc(100% - 4em);overflow-y:auto}.progress.pdf-progress{height:2rem}.progress.pdf-progress .progress-bar{font-size:1rem;line-height:2rem}.builder-sidebar.disabled .formcomponent{cursor:not-allowed;opacity:.65;box-shadow:none}\n"]
1179
+ },] }
1180
+ ];
1181
+ FormBuilderComponent.ctorParameters = function () { return [
1182
+ { type: core.NgZone },
1183
+ { type: FormioAppConfig, decorators: [{ type: core.Optional }] },
1184
+ { type: CustomTagsService, decorators: [{ type: core.Optional }] }
1185
+ ]; };
1186
+ FormBuilderComponent.propDecorators = {
1187
+ form: [{ type: core.Input }],
1188
+ options: [{ type: core.Input }],
1189
+ formbuilder: [{ type: core.Input }],
1190
+ noeval: [{ type: core.Input }],
1191
+ refresh: [{ type: core.Input }],
1192
+ rebuild: [{ type: core.Input }],
1193
+ change: [{ type: core.Output }],
1194
+ builderElement: [{ type: core.ViewChild, args: ['builder', { static: true },] }]
1195
+ };
1196
+
1197
+ var FormioLoaderComponent = /** @class */ (function () {
1198
+ function FormioLoaderComponent() {
1199
+ }
1200
+ return FormioLoaderComponent;
1201
+ }());
1202
+ FormioLoaderComponent.decorators = [
1203
+ { type: core.Component, args: [{
1204
+ selector: 'formio-loader',
1205
+ template: "<div class=\"formio-loader-wrapper\" *ngIf=\"isLoading\">\n <div class=\"formio-loader\"></div>\n</div>\n",
1206
+ styles: [".formio-loader-wrapper{position:absolute;top:0px;bottom:0px;left:0px;right:0px;z-index:1000}.formio-loader{position:absolute;left:50%;top:50%;margin-left:-30px;margin-top:-30px;z-index:10000;display:inline-block;border:6px solid #f3f3f3;border-top:6px solid #3498db;border-radius:50%;width:60px;height:60px;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"]
1207
+ },] }
1208
+ ];
1209
+ FormioLoaderComponent.propDecorators = {
1210
+ isLoading: [{ type: core.Input }]
1211
+ };
1212
+
1213
+ var FormioAlertsComponent = /** @class */ (function () {
1214
+ function FormioAlertsComponent() {
1215
+ this.focusComponent = new core.EventEmitter();
1216
+ }
1217
+ FormioAlertsComponent.prototype.ngOnInit = function () {
1218
+ if (!this.alerts) {
1219
+ this.alerts = new FormioAlerts();
1220
+ }
1221
+ };
1222
+ FormioAlertsComponent.prototype.getComponent = function (event, alert) {
1223
+ this.focusComponent.emit(alert.component.key);
1224
+ };
1225
+ return FormioAlertsComponent;
1226
+ }());
1227
+ FormioAlertsComponent.decorators = [
1228
+ { type: core.Component, args: [{
1229
+ selector: 'formio-alerts',
1230
+ template: "<div *ngFor=\"let alert of alerts.alerts\" class=\"alert alert-{{ alert.type }}\" role=\"alert\" (click)=\"getComponent($event, alert)\">\n {{alert.message | parseHtmlContent}}\n</div>\n"
1231
+ },] }
1232
+ ];
1233
+ FormioAlertsComponent.propDecorators = {
1234
+ alerts: [{ type: core.Input }],
1235
+ focusComponent: [{ type: core.Output }]
1236
+ };
1237
+
1238
+ var ParseHtmlContentPipe = /** @class */ (function () {
1239
+ function ParseHtmlContentPipe() {
1240
+ }
1241
+ /*
1242
+ Some messages that are come from formiojs have hex codes. So the main aim of this pipe is transform this messages to html.
1243
+ And then render in template.
1244
+ */
1245
+ ParseHtmlContentPipe.prototype.transform = function (content) {
1246
+ var parsedContent = new DOMParser().parseFromString(content, 'text/html').body.childNodes[0];
1247
+ return parsedContent === null || parsedContent === void 0 ? void 0 : parsedContent.textContent;
1248
+ };
1249
+ return ParseHtmlContentPipe;
1250
+ }());
1251
+ ParseHtmlContentPipe.decorators = [
1252
+ { type: core.Pipe, args: [{ name: 'parseHtmlContent', pure: false },] }
1253
+ ];
1254
+
1255
+ var FormioModule = /** @class */ (function () {
1256
+ function FormioModule() {
1257
+ }
1258
+ return FormioModule;
1259
+ }());
1260
+ FormioModule.decorators = [
1261
+ { type: core.NgModule, args: [{
1262
+ declarations: [
1263
+ FormioComponent,
1264
+ FormioBaseComponent,
1265
+ FormBuilderComponent,
1266
+ FormioLoaderComponent,
1267
+ FormioAlertsComponent,
1268
+ ParseHtmlContentPipe
1269
+ ],
1270
+ imports: [
1271
+ common.CommonModule
1272
+ ],
1273
+ exports: [
1274
+ FormioComponent,
1275
+ FormBuilderComponent,
1276
+ FormioLoaderComponent,
1277
+ FormioAlertsComponent
1278
+ ],
1279
+ providers: [
1280
+ FormioAlerts,
1281
+ CustomTagsService
1282
+ ],
1283
+ entryComponents: [
1284
+ FormioComponent,
1285
+ FormBuilderComponent
1286
+ ]
1287
+ },] }
1288
+ ];
1289
+
1290
+ var BaseInputComponent = formiojs.Components.components.input;
1291
+ var TextfieldComponent = formiojs.Components.components.textfield;
1292
+ function createCustomFormioComponent(customComponentOptions) {
1293
+ var _a;
1294
+ return _a = /** @class */ (function (_super) {
1295
+ __extends(CustomComponent, _super);
1296
+ function CustomComponent(component, options, data) {
1297
+ var _this = _super.call(this, component, Object.assign(Object.assign({}, options), { sanitizeConfig: {
1298
+ addTags: [customComponentOptions.selector],
1299
+ } }), data) || this;
1300
+ _this.component = component;
1301
+ _this.id = formiojs.Utils.getRandomComponentId();
1302
+ _this.type = customComponentOptions.type;
1303
+ if (customComponentOptions.extraValidators) {
1304
+ _this.validators = _this.validators.concat(customComponentOptions.extraValidators);
1305
+ }
1306
+ return _this;
1307
+ }
1308
+ CustomComponent.schema = function () {
1309
+ return BaseInputComponent.schema(Object.assign(Object.assign({}, customComponentOptions.schema), { type: customComponentOptions.type }));
1310
+ };
1311
+ Object.defineProperty(CustomComponent.prototype, "defaultSchema", {
1312
+ get: function () {
1313
+ return CustomComponent.schema();
1314
+ },
1315
+ enumerable: false,
1316
+ configurable: true
1317
+ });
1318
+ Object.defineProperty(CustomComponent.prototype, "emptyValue", {
1319
+ get: function () {
1320
+ return customComponentOptions.emptyValue || null;
1321
+ },
1322
+ enumerable: false,
1323
+ configurable: true
1324
+ });
1325
+ Object.defineProperty(CustomComponent, "builderInfo", {
1326
+ get: function () {
1327
+ return {
1328
+ title: customComponentOptions.title,
1329
+ group: customComponentOptions.group,
1330
+ icon: customComponentOptions.icon,
1331
+ weight: customComponentOptions.weight,
1332
+ documentation: customComponentOptions.documentation,
1333
+ schema: CustomComponent.schema(),
1334
+ };
1335
+ },
1336
+ enumerable: false,
1337
+ configurable: true
1338
+ });
1339
+ CustomComponent.prototype.elementInfo = function () {
1340
+ var info = _super.prototype.elementInfo.call(this);
1341
+ info.type = customComponentOptions.selector;
1342
+ info.changeEvent = customComponentOptions.changeEvent || 'valueChange';
1343
+ info.attr = Object.assign(Object.assign({}, info.attr), { class: info.attr.class.replace('form-control', 'form-control-custom-field') // remove the form-control class as the custom angular component may look different
1344
+ });
1345
+ return info;
1346
+ };
1347
+ Object.defineProperty(CustomComponent.prototype, "inputInfo", {
1348
+ get: function () {
1349
+ var info = Object.assign({ id: this.key }, this.elementInfo());
1350
+ return info;
1351
+ },
1352
+ enumerable: false,
1353
+ configurable: true
1354
+ });
1355
+ CustomComponent.prototype.renderElement = function (value, index) {
1356
+ var info = this.inputInfo;
1357
+ return this.renderTemplate(customComponentOptions.template || 'input', {
1358
+ input: info,
1359
+ value: value,
1360
+ index: index
1361
+ });
1362
+ };
1363
+ CustomComponent.prototype.attach = function (element) {
1364
+ var _this = this;
1365
+ var superAttach = _super.prototype.attach.call(this, element);
1366
+ this._customAngularElement = element.querySelector(customComponentOptions.selector);
1367
+ // Bind the custom options and the validations to the Angular component's inputs (flattened)
1368
+ if (this._customAngularElement) {
1369
+ // To make sure we have working input in IE...
1370
+ // IE doesn't render it properly if it's not visible on the screen
1371
+ // due to the whole structure applied via innerHTML to the parent
1372
+ // so we need to use appendChild
1373
+ if (!this._customAngularElement.getAttribute('ng-version')) {
1374
+ this._customAngularElement.removeAttribute('ref');
1375
+ var newCustomElement_1 = document.createElement(customComponentOptions.selector);
1376
+ newCustomElement_1.setAttribute('ref', 'input');
1377
+ Object.keys(this.inputInfo.attr).forEach(function (attr) {
1378
+ newCustomElement_1.setAttribute(attr, _this.inputInfo.attr[attr]);
1379
+ });
1380
+ this._customAngularElement.appendChild(newCustomElement_1);
1381
+ this._customAngularElement = newCustomElement_1;
1382
+ superAttach = _super.prototype.attach.call(this, element);
1383
+ }
1384
+ // Bind customOptions
1385
+ for (var key in this.component.customOptions) {
1386
+ if (this.component.customOptions.hasOwnProperty(key)) {
1387
+ this._customAngularElement[key] = this.component.customOptions[key];
1388
+ }
1389
+ }
1390
+ // Bind validate options
1391
+ for (var key in this.component.validate) {
1392
+ if (this.component.validate.hasOwnProperty(key)) {
1393
+ this._customAngularElement[key] = this.component.validate[key];
1394
+ }
1395
+ }
1396
+ // Bind options explicitly set
1397
+ var fieldOptions = customComponentOptions.fieldOptions;
1398
+ if (lodash.isArray(fieldOptions) && fieldOptions.length > 0) {
1399
+ for (var key in fieldOptions) {
1400
+ if (fieldOptions.hasOwnProperty(key)) {
1401
+ this._customAngularElement[fieldOptions[key]] = this.component[fieldOptions[key]];
1402
+ }
1403
+ }
1404
+ }
1405
+ // Attach event listener for emit event
1406
+ this._customAngularElement.addEventListener('formioEvent', function (event) {
1407
+ _this.emit(event.detail.eventName, Object.assign(Object.assign({}, event.detail.data), { component: _this.component }));
1408
+ });
1409
+ // Ensure we bind the value (if it isn't a multiple-value component with no wrapper)
1410
+ if (!this._customAngularElement.value && !this.component.disableMultiValueWrapper) {
1411
+ this.restoreValue();
1412
+ }
1413
+ }
1414
+ return superAttach;
1415
+ };
1416
+ // Add extra option to support multiple value (e.g. datagrid) with single angular component (disableMultiValueWrapper)
1417
+ CustomComponent.prototype.useWrapper = function () {
1418
+ return this.component.hasOwnProperty('multiple') && this.component.multiple && !this.component.disableMultiValueWrapper;
1419
+ };
1420
+ Object.defineProperty(CustomComponent.prototype, "defaultValue", {
1421
+ get: function () {
1422
+ var defaultValue = this.emptyValue;
1423
+ // handle falsy default value
1424
+ if (!lodash.isNil(this.component.defaultValue)) {
1425
+ defaultValue = this.component.defaultValue;
1426
+ }
1427
+ if (this.component.customDefaultValue && !this.options.preview) {
1428
+ defaultValue = this.evaluate(this.component.customDefaultValue, { value: '' }, 'value');
1429
+ }
1430
+ return lodash.clone(defaultValue);
1431
+ },
1432
+ enumerable: false,
1433
+ configurable: true
1434
+ });
1435
+ return CustomComponent;
1436
+ }(BaseInputComponent)),
1437
+ _a.editForm = customComponentOptions.editForm || TextfieldComponent.editForm,
1438
+ _a;
1439
+ }
1440
+
1441
+ function registerCustomTag(tag, injector) {
1442
+ injector.get(CustomTagsService).addCustomTag(tag);
1443
+ }
1444
+ function registerCustomTags(tags, injector) {
1445
+ tags.forEach(function (tag) { return registerCustomTag(tag, injector); });
1446
+ }
1447
+ function registerCustomFormioComponent(options, angularComponent, injector) {
1448
+ registerCustomTag(options.selector, injector);
1449
+ var complexCustomComponent = elements.createCustomElement(angularComponent, { injector: injector });
1450
+ customElements.define(options.selector, complexCustomComponent);
1451
+ formiojs.Components.setComponent(options.type, createCustomFormioComponent(options));
1452
+ }
1453
+ function registerCustomFormioComponentWithClass(options, angularComponent, formioClass, injector) {
1454
+ registerCustomTag(options.selector, injector);
1455
+ var complexCustomComponent = elements.createCustomElement(angularComponent, { injector: injector });
1456
+ customElements.define(options.selector, complexCustomComponent);
1457
+ formiojs.Components.setComponent(options.type, formioClass);
1458
+ }
1459
+
1460
+ /*
1461
+ * Public API Surface of angular-formio
1462
+ */
1463
+
1464
+ /**
1465
+ * Generated bundle index. Do not edit.
1466
+ */
1467
+
1468
+ Object.defineProperty(exports, 'Components', {
1469
+ enumerable: true,
1470
+ get: function () { return formiojs.Components; }
1471
+ });
1472
+ Object.defineProperty(exports, 'Formio', {
1473
+ enumerable: true,
1474
+ get: function () { return formiojs.Formio; }
1475
+ });
1476
+ Object.defineProperty(exports, 'FormioUtils', {
1477
+ enumerable: true,
1478
+ get: function () { return formiojs.Utils; }
1479
+ });
1480
+ Object.defineProperty(exports, 'Templates', {
1481
+ enumerable: true,
1482
+ get: function () { return formiojs.Templates; }
1483
+ });
1484
+ exports.FormBuilderComponent = FormBuilderComponent;
1485
+ exports.FormioAlerts = FormioAlerts;
1486
+ exports.FormioAlertsComponent = FormioAlertsComponent;
1487
+ exports.FormioAppConfig = FormioAppConfig;
1488
+ exports.FormioBaseComponent = FormioBaseComponent;
1489
+ exports.FormioComponent = FormioComponent;
1490
+ exports.FormioError = FormioError;
1491
+ exports.FormioLoaderComponent = FormioLoaderComponent;
1492
+ exports.FormioModule = FormioModule;
1493
+ exports.FormioPromiseService = FormioPromiseService;
1494
+ exports.FormioService = FormioService;
1495
+ exports.createCustomFormioComponent = createCustomFormioComponent;
1496
+ exports.extendRouter = extendRouter;
1497
+ exports.registerCustomFormioComponent = registerCustomFormioComponent;
1498
+ exports.registerCustomFormioComponentWithClass = registerCustomFormioComponentWithClass;
1499
+ exports.registerCustomTag = registerCustomTag;
1500
+ exports.registerCustomTags = registerCustomTags;
1501
+ exports["ɵa"] = CustomTagsService;
1502
+ exports["ɵb"] = ParseHtmlContentPipe;
1503
+
1504
+ Object.defineProperty(exports, '__esModule', { value: true });
1505
+
1506
+ }));
1507
+ //# sourceMappingURL=formio-angular.umd.js.map