@tsed/tailwind-formio 2.3.2 → 3.0.0-alpha.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 (467) hide show
  1. package/build/config.1e3fca3e.json +1 -0
  2. package/build/css/app.a4ea028b.css +3 -0
  3. package/build/js/app.5db1c92a.js +2 -0
  4. package/build/js/app.5db1c92a.js.map +1 -0
  5. package/build/js/chunk-vendors.6cab5322.js +8 -0
  6. package/build/js/chunk-vendors.6cab5322.js.map +1 -0
  7. package/build/tailwind.html +3 -0
  8. package/dist/ejs.d.js +2 -0
  9. package/dist/ejs.d.js.map +1 -0
  10. package/dist/index.d.ts +222 -222
  11. package/dist/index.js +6 -2018
  12. package/dist/index.js.map +1 -1
  13. package/dist/tailwind/colors.d.ts +328 -0
  14. package/dist/tailwind/colors.js +15 -0
  15. package/dist/tailwind/colors.js.map +1 -0
  16. package/dist/tailwind/preset.d.ts +158 -0
  17. package/dist/tailwind/preset.js +173 -0
  18. package/dist/tailwind/preset.js.map +1 -0
  19. package/dist/templates/index.d.ts +219 -219
  20. package/dist/templates/index.js +8 -0
  21. package/dist/templates/index.js.map +1 -0
  22. package/dist/templates/tailwind/address/index.d.ts +4 -5
  23. package/dist/templates/tailwind/address/index.js +55 -0
  24. package/dist/templates/tailwind/address/index.js.map +1 -0
  25. package/dist/templates/tailwind/alert/index.d.ts +4 -5
  26. package/dist/templates/tailwind/alert/index.js +22 -0
  27. package/dist/templates/tailwind/alert/index.js.map +1 -0
  28. package/dist/templates/tailwind/builder/index.d.ts +4 -5
  29. package/dist/templates/tailwind/builder/index.js +17 -0
  30. package/dist/templates/tailwind/builder/index.js.map +1 -0
  31. package/dist/templates/tailwind/builderComponent/index.d.ts +4 -5
  32. package/dist/templates/tailwind/builderComponent/index.js +70 -0
  33. package/dist/templates/tailwind/builderComponent/index.js.map +1 -0
  34. package/dist/templates/tailwind/builderComponents/index.d.ts +4 -5
  35. package/dist/templates/tailwind/builderComponents/index.js +12 -0
  36. package/dist/templates/tailwind/builderComponents/index.js.map +1 -0
  37. package/dist/templates/tailwind/builderEditForm/index.d.ts +4 -5
  38. package/dist/templates/tailwind/builderEditForm/index.js +73 -0
  39. package/dist/templates/tailwind/builderEditForm/index.js.map +1 -0
  40. package/dist/templates/tailwind/builderPlaceholder/index.d.ts +4 -5
  41. package/dist/templates/tailwind/builderPlaceholder/index.js +18 -0
  42. package/dist/templates/tailwind/builderPlaceholder/index.js.map +1 -0
  43. package/dist/templates/tailwind/builderSidebar/index.d.ts +4 -5
  44. package/dist/templates/tailwind/builderSidebar/index.js +19 -0
  45. package/dist/templates/tailwind/builderSidebar/index.js.map +1 -0
  46. package/dist/templates/tailwind/builderSidebarGroup/index.d.ts +4 -5
  47. package/dist/templates/tailwind/builderSidebarGroup/index.js +58 -0
  48. package/dist/templates/tailwind/builderSidebarGroup/index.js.map +1 -0
  49. package/dist/templates/tailwind/builderWizard/index.d.ts +4 -5
  50. package/dist/templates/tailwind/builderWizard/index.js +33 -0
  51. package/dist/templates/tailwind/builderWizard/index.js.map +1 -0
  52. package/dist/templates/tailwind/button/index.d.ts +5 -7
  53. package/dist/templates/tailwind/button/index.js +36 -0
  54. package/dist/templates/tailwind/button/index.js.map +1 -0
  55. package/dist/templates/tailwind/checkbox/index.d.ts +5 -7
  56. package/dist/templates/tailwind/checkbox/index.js +42 -0
  57. package/dist/templates/tailwind/checkbox/index.js.map +1 -0
  58. package/dist/templates/tailwind/columns/index.d.ts +4 -5
  59. package/dist/templates/tailwind/columns/index.js +21 -0
  60. package/dist/templates/tailwind/columns/index.js.map +1 -0
  61. package/dist/templates/tailwind/component/index.d.ts +4 -5
  62. package/dist/templates/tailwind/component/index.js +15 -0
  63. package/dist/templates/tailwind/component/index.js.map +1 -0
  64. package/dist/templates/tailwind/componentModal/index.d.ts +4 -5
  65. package/dist/templates/tailwind/componentModal/index.js +35 -0
  66. package/dist/templates/tailwind/componentModal/index.js.map +1 -0
  67. package/dist/templates/tailwind/components/index.d.ts +4 -5
  68. package/dist/templates/tailwind/components/index.js +10 -0
  69. package/dist/templates/tailwind/components/index.js.map +1 -0
  70. package/dist/templates/tailwind/container/index.d.ts +4 -5
  71. package/dist/templates/tailwind/container/index.js +12 -0
  72. package/dist/templates/tailwind/container/index.js.map +1 -0
  73. package/dist/templates/tailwind/cssClasses.d.ts +7 -7
  74. package/dist/templates/tailwind/cssClasses.js +10 -0
  75. package/dist/templates/tailwind/cssClasses.js.map +1 -0
  76. package/dist/templates/tailwind/datagrid/index.d.ts +5 -7
  77. package/dist/templates/tailwind/datagrid/index.js +132 -0
  78. package/dist/templates/tailwind/datagrid/index.js.map +1 -0
  79. package/dist/templates/tailwind/day/index.d.ts +4 -5
  80. package/dist/templates/tailwind/day/index.js +53 -0
  81. package/dist/templates/tailwind/day/index.js.map +1 -0
  82. package/dist/templates/tailwind/dialog/index.d.ts +4 -5
  83. package/dist/templates/tailwind/dialog/index.js +16 -0
  84. package/dist/templates/tailwind/dialog/index.js.map +1 -0
  85. package/dist/templates/tailwind/editgrid/index.d.ts +5 -7
  86. package/dist/templates/tailwind/editgrid/index.js +92 -0
  87. package/dist/templates/tailwind/editgrid/index.js.map +1 -0
  88. package/dist/templates/tailwind/editgridTable/index.d.ts +5 -7
  89. package/dist/templates/tailwind/editgridTable/index.js +121 -0
  90. package/dist/templates/tailwind/editgridTable/index.js.map +1 -0
  91. package/dist/templates/tailwind/errorsList/index.d.ts +4 -5
  92. package/dist/templates/tailwind/errorsList/index.js +30 -0
  93. package/dist/templates/tailwind/errorsList/index.js.map +1 -0
  94. package/dist/templates/tailwind/field/index.d.ts +5 -7
  95. package/dist/templates/tailwind/field/index.js +55 -0
  96. package/dist/templates/tailwind/field/index.js.map +1 -0
  97. package/dist/templates/tailwind/fieldset/index.d.ts +4 -5
  98. package/dist/templates/tailwind/fieldset/index.js +25 -0
  99. package/dist/templates/tailwind/fieldset/index.js.map +1 -0
  100. package/dist/templates/tailwind/file/index.d.ts +4 -5
  101. package/dist/templates/tailwind/file/index.js +158 -0
  102. package/dist/templates/tailwind/file/index.js.map +1 -0
  103. package/dist/templates/tailwind/html/index.d.ts +4 -5
  104. package/dist/templates/tailwind/html/index.js +16 -0
  105. package/dist/templates/tailwind/html/index.js.map +1 -0
  106. package/dist/templates/tailwind/icon/index.d.ts +4 -5
  107. package/dist/templates/tailwind/icon/index.js +10 -0
  108. package/dist/templates/tailwind/icon/index.js.map +1 -0
  109. package/dist/templates/tailwind/iconClass.d.ts +3 -3
  110. package/dist/templates/tailwind/iconClass.js +57 -0
  111. package/dist/templates/tailwind/iconClass.js.map +1 -0
  112. package/dist/templates/tailwind/index.d.ts +217 -217
  113. package/dist/templates/tailwind/index.js +145 -0
  114. package/dist/templates/tailwind/index.js.map +1 -0
  115. package/dist/templates/tailwind/input/index.d.ts +5 -7
  116. package/dist/templates/tailwind/input/index.js +78 -0
  117. package/dist/templates/tailwind/input/index.js.map +1 -0
  118. package/dist/templates/tailwind/label/index.d.ts +4 -5
  119. package/dist/templates/tailwind/label/index.js +23 -0
  120. package/dist/templates/tailwind/label/index.js.map +1 -0
  121. package/dist/templates/tailwind/loader/index.d.ts +4 -5
  122. package/dist/templates/tailwind/loader/index.js +14 -0
  123. package/dist/templates/tailwind/loader/index.js.map +1 -0
  124. package/dist/templates/tailwind/loading/index.d.ts +4 -5
  125. package/dist/templates/tailwind/loading/index.js +10 -0
  126. package/dist/templates/tailwind/loading/index.js.map +1 -0
  127. package/dist/templates/tailwind/map/index.d.ts +4 -5
  128. package/dist/templates/tailwind/map/index.js +10 -0
  129. package/dist/templates/tailwind/map/index.js.map +1 -0
  130. package/dist/templates/tailwind/message/index.d.ts +4 -5
  131. package/dist/templates/tailwind/message/index.js +10 -0
  132. package/dist/templates/tailwind/message/index.js.map +1 -0
  133. package/dist/templates/tailwind/modalPreview/index.d.ts +4 -5
  134. package/dist/templates/tailwind/modalPreview/index.js +24 -0
  135. package/dist/templates/tailwind/modalPreview/index.js.map +1 -0
  136. package/dist/templates/tailwind/modaldialog/index.d.ts +4 -5
  137. package/dist/templates/tailwind/modaldialog/index.js +22 -0
  138. package/dist/templates/tailwind/modaldialog/index.js.map +1 -0
  139. package/dist/templates/tailwind/modaledit/index.d.ts +4 -5
  140. package/dist/templates/tailwind/modaledit/index.js +19 -0
  141. package/dist/templates/tailwind/modaledit/index.js.map +1 -0
  142. package/dist/templates/tailwind/multiValueRow/index.d.ts +4 -5
  143. package/dist/templates/tailwind/multiValueRow/index.js +21 -0
  144. package/dist/templates/tailwind/multiValueRow/index.js.map +1 -0
  145. package/dist/templates/tailwind/multiValueTable/index.d.ts +4 -5
  146. package/dist/templates/tailwind/multiValueTable/index.js +21 -0
  147. package/dist/templates/tailwind/multiValueTable/index.js.map +1 -0
  148. package/dist/templates/tailwind/multipleMasksInput/index.d.ts +4 -5
  149. package/dist/templates/tailwind/multipleMasksInput/index.js +34 -0
  150. package/dist/templates/tailwind/multipleMasksInput/index.js.map +1 -0
  151. package/dist/templates/tailwind/panel/index.d.ts +4 -5
  152. package/dist/templates/tailwind/panel/index.js +39 -0
  153. package/dist/templates/tailwind/panel/index.js.map +1 -0
  154. package/dist/templates/tailwind/pdf/index.d.ts +4 -5
  155. package/dist/templates/tailwind/pdf/index.js +19 -0
  156. package/dist/templates/tailwind/pdf/index.js.map +1 -0
  157. package/dist/templates/tailwind/pdfBuilder/index.d.ts +4 -5
  158. package/dist/templates/tailwind/pdfBuilder/index.js +18 -0
  159. package/dist/templates/tailwind/pdfBuilder/index.js.map +1 -0
  160. package/dist/templates/tailwind/pdfBuilderUpload/index.d.ts +4 -5
  161. package/dist/templates/tailwind/pdfBuilderUpload/index.js +25 -0
  162. package/dist/templates/tailwind/pdfBuilderUpload/index.js.map +1 -0
  163. package/dist/templates/tailwind/radio/index.d.ts +5 -7
  164. package/dist/templates/tailwind/radio/index.js +66 -0
  165. package/dist/templates/tailwind/radio/index.js.map +1 -0
  166. package/dist/templates/tailwind/resourceAdd/index.d.ts +4 -5
  167. package/dist/templates/tailwind/resourceAdd/index.js +26 -0
  168. package/dist/templates/tailwind/resourceAdd/index.js.map +1 -0
  169. package/dist/templates/tailwind/select/index.d.ts +5 -7
  170. package/dist/templates/tailwind/select/index.js +40 -0
  171. package/dist/templates/tailwind/select/index.js.map +1 -0
  172. package/dist/templates/tailwind/selectOption/index.d.ts +5 -7
  173. package/dist/templates/tailwind/selectOption/index.js +25 -0
  174. package/dist/templates/tailwind/selectOption/index.js.map +1 -0
  175. package/dist/templates/tailwind/signature/index.d.ts +5 -7
  176. package/dist/templates/tailwind/signature/index.js +37 -0
  177. package/dist/templates/tailwind/signature/index.js.map +1 -0
  178. package/dist/templates/tailwind/survey/index.d.ts +5 -7
  179. package/dist/templates/tailwind/survey/index.js +71 -0
  180. package/dist/templates/tailwind/survey/index.js.map +1 -0
  181. package/dist/templates/tailwind/tab/index.d.ts +5 -7
  182. package/dist/templates/tailwind/tab/index.js +60 -0
  183. package/dist/templates/tailwind/tab/index.js.map +1 -0
  184. package/dist/templates/tailwind/table/index.d.ts +4 -5
  185. package/dist/templates/tailwind/table/index.js +41 -0
  186. package/dist/templates/tailwind/table/index.js.map +1 -0
  187. package/dist/templates/tailwind/tableComponents/index.d.ts +4 -5
  188. package/dist/templates/tailwind/tableComponents/index.js +16 -0
  189. package/dist/templates/tailwind/tableComponents/index.js.map +1 -0
  190. package/dist/templates/tailwind/tree/index.d.ts +4 -5
  191. package/dist/templates/tailwind/tree/index.js +29 -0
  192. package/dist/templates/tailwind/tree/index.js.map +1 -0
  193. package/dist/templates/tailwind/tree/partials/index.d.ts +9 -11
  194. package/dist/templates/tailwind/tree/partials/index.js +53 -0
  195. package/dist/templates/tailwind/tree/partials/index.js.map +1 -0
  196. package/dist/templates/tailwind/webform/index.d.ts +5 -7
  197. package/dist/templates/tailwind/webform/index.js +15 -0
  198. package/dist/templates/tailwind/webform/index.js.map +1 -0
  199. package/dist/templates/tailwind/well/index.d.ts +4 -5
  200. package/dist/templates/tailwind/well/index.js +14 -0
  201. package/dist/templates/tailwind/well/index.js.map +1 -0
  202. package/dist/templates/tailwind/wizard/index.d.ts +5 -7
  203. package/dist/templates/tailwind/wizard/index.js +44 -0
  204. package/dist/templates/tailwind/wizard/index.js.map +1 -0
  205. package/dist/templates/tailwind/wizardHeader/index.d.ts +4 -5
  206. package/dist/templates/tailwind/wizardHeader/index.js +25 -0
  207. package/dist/templates/tailwind/wizardHeader/index.js.map +1 -0
  208. package/dist/templates/tailwind/wizardHeaderClassic/index.d.ts +4 -5
  209. package/dist/templates/tailwind/wizardHeaderClassic/index.js +27 -0
  210. package/dist/templates/tailwind/wizardHeaderClassic/index.js.map +1 -0
  211. package/dist/templates/tailwind/wizardHeaderVertical/index.d.ts +4 -5
  212. package/dist/templates/tailwind/wizardHeaderVertical/index.js +25 -0
  213. package/dist/templates/tailwind/wizardHeaderVertical/index.js.map +1 -0
  214. package/dist/templates/tailwind/wizardNav/index.d.ts +4 -5
  215. package/dist/templates/tailwind/wizardNav/index.js +39 -0
  216. package/dist/templates/tailwind/wizardNav/index.js.map +1 -0
  217. package/package.json +34 -17
  218. package/readme.md +9 -125
  219. package/src/tailwind/colors.ts +20 -0
  220. package/src/tailwind/preset.ts +163 -0
  221. package/src/templates/stories/alert.stories.jsx +1 -1
  222. package/src/templates/stories/badge.stories.jsx +1 -1
  223. package/src/templates/stories/breadcrumbs.stories.jsx +5 -1
  224. package/src/templates/stories/pagination.stories.jsx +6 -1
  225. package/src/templates/tailwind/address/index.ts +1 -1
  226. package/src/templates/tailwind/alert/index.ts +3 -0
  227. package/src/templates/tailwind/builder/index.ts +1 -1
  228. package/src/templates/tailwind/builderComponent/index.ts +1 -1
  229. package/src/templates/tailwind/builderComponents/index.ts +1 -1
  230. package/src/templates/tailwind/builderEditForm/form.ejs +4 -2
  231. package/src/templates/tailwind/builderEditForm/index.ts +1 -1
  232. package/src/templates/tailwind/builderPlaceholder/index.ts +1 -1
  233. package/src/templates/tailwind/builderSidebar/index.ts +1 -1
  234. package/src/templates/tailwind/builderSidebarGroup/form.ejs +1 -1
  235. package/src/templates/tailwind/builderSidebarGroup/index.ts +1 -1
  236. package/src/templates/tailwind/builderWizard/index.ts +1 -1
  237. package/src/templates/tailwind/button/button.stories.jsx +2 -2
  238. package/src/templates/tailwind/button/index.ts +2 -2
  239. package/src/templates/tailwind/checkbox/index.ts +2 -2
  240. package/src/templates/tailwind/columns/index.ts +1 -1
  241. package/src/templates/tailwind/component/index.ts +1 -1
  242. package/src/templates/tailwind/componentModal/index.ts +1 -1
  243. package/src/templates/tailwind/components/index.ts +1 -1
  244. package/src/templates/tailwind/container/index.ts +1 -1
  245. package/src/templates/tailwind/datagrid/index.ts +2 -2
  246. package/src/templates/tailwind/day/index.ts +1 -1
  247. package/src/templates/tailwind/dialog/index.ts +1 -1
  248. package/src/templates/tailwind/editgrid/index.ts +2 -2
  249. package/src/templates/tailwind/editgridTable/index.ts +2 -2
  250. package/src/templates/tailwind/errorsList/index.ts +1 -1
  251. package/src/templates/tailwind/field/index.ts +2 -2
  252. package/src/templates/tailwind/fieldset/index.ts +1 -1
  253. package/src/templates/tailwind/file/index.ts +1 -1
  254. package/src/templates/tailwind/html/index.ts +1 -1
  255. package/src/templates/tailwind/icon/index.ts +1 -1
  256. package/src/templates/tailwind/index.ts +0 -1
  257. package/src/templates/tailwind/input/index.ts +2 -2
  258. package/src/templates/tailwind/label/index.ts +1 -1
  259. package/src/templates/tailwind/loader/index.ts +1 -1
  260. package/src/templates/tailwind/loading/index.ts +1 -1
  261. package/src/templates/tailwind/map/index.ts +1 -1
  262. package/src/templates/tailwind/message/index.ts +1 -1
  263. package/src/templates/tailwind/modalPreview/index.ts +1 -1
  264. package/src/templates/tailwind/modaldialog/index.ts +1 -1
  265. package/src/templates/tailwind/modaledit/index.ts +1 -1
  266. package/src/templates/tailwind/multiValueRow/index.ts +1 -1
  267. package/src/templates/tailwind/multiValueTable/index.ts +1 -1
  268. package/src/templates/tailwind/multipleMasksInput/index.ts +1 -1
  269. package/src/templates/tailwind/panel/index.ts +1 -1
  270. package/src/templates/tailwind/pdf/index.ts +1 -1
  271. package/src/templates/tailwind/pdfBuilder/index.ts +1 -1
  272. package/src/templates/tailwind/pdfBuilderUpload/index.ts +1 -1
  273. package/src/templates/tailwind/radio/index.ts +2 -2
  274. package/src/templates/tailwind/resourceAdd/index.ts +1 -1
  275. package/src/templates/tailwind/select/index.ts +2 -2
  276. package/src/templates/tailwind/selectOption/index.ts +2 -2
  277. package/src/templates/tailwind/signature/index.ts +2 -2
  278. package/src/templates/tailwind/survey/index.ts +2 -2
  279. package/src/templates/tailwind/tab/index.ts +2 -2
  280. package/src/templates/tailwind/table/index.ts +1 -1
  281. package/src/templates/tailwind/tableComponents/index.ts +1 -1
  282. package/src/templates/tailwind/tree/index.ts +1 -1
  283. package/src/templates/tailwind/tree/partials/index.ts +2 -2
  284. package/src/templates/tailwind/webform/index.ts +2 -2
  285. package/src/templates/tailwind/well/index.ts +1 -1
  286. package/src/templates/tailwind/wizard/index.ts +2 -2
  287. package/src/templates/tailwind/wizardHeader/index.ts +1 -1
  288. package/src/templates/tailwind/wizardHeaderClassic/index.ts +1 -1
  289. package/src/templates/tailwind/wizardHeaderVertical/index.ts +1 -1
  290. package/src/templates/tailwind/wizardNav/index.ts +1 -1
  291. package/styles/modal.css +1 -0
  292. package/tsconfig.app.json +11 -0
  293. package/tsconfig.json +7 -5
  294. package/tsconfig.node.json +9 -4
  295. package/vite.config.mts +86 -0
  296. package/.eslintignore +0 -14
  297. package/.eslintrc.js +0 -7
  298. package/dist/index.modern.js +0 -2021
  299. package/dist/index.modern.js.map +0 -1
  300. package/dist/templates/stories/alert.stories.d.ts +0 -17
  301. package/dist/templates/stories/badge.stories.d.ts +0 -17
  302. package/dist/templates/stories/breadcrumbs.stories.d.ts +0 -37
  303. package/dist/templates/stories/builder.stories.d.ts +0 -3057
  304. package/dist/templates/stories/pagination.stories.d.ts +0 -17
  305. package/dist/templates/stories/progress.stories.d.ts +0 -22
  306. package/dist/templates/stories/wizard.stories.d.ts +0 -3057
  307. package/dist/templates/tailwind/address/form.ejs.d.ts +0 -1
  308. package/dist/templates/tailwind/address/html.ejs.d.ts +0 -1
  309. package/dist/templates/tailwind/alert/form.ejs.d.ts +0 -1
  310. package/dist/templates/tailwind/builder/form.ejs.d.ts +0 -1
  311. package/dist/templates/tailwind/builderComponent/form.ejs.d.ts +0 -1
  312. package/dist/templates/tailwind/builderComponents/form.ejs.d.ts +0 -1
  313. package/dist/templates/tailwind/builderEditForm/form.ejs.d.ts +0 -1
  314. package/dist/templates/tailwind/builderPlaceholder/form.ejs.d.ts +0 -1
  315. package/dist/templates/tailwind/builderSidebar/form.ejs.d.ts +0 -1
  316. package/dist/templates/tailwind/builderSidebarGroup/form.ejs.d.ts +0 -1
  317. package/dist/templates/tailwind/builderWizard/form.ejs.d.ts +0 -1
  318. package/dist/templates/tailwind/button/button.stories.d.ts +0 -22
  319. package/dist/templates/tailwind/button/form.ejs.d.ts +0 -1
  320. package/dist/templates/tailwind/button/html.ejs.d.ts +0 -1
  321. package/dist/templates/tailwind/checkbox/form.ejs.d.ts +0 -1
  322. package/dist/templates/tailwind/checkbox/html.ejs.d.ts +0 -1
  323. package/dist/templates/tailwind/columns/form.ejs.d.ts +0 -1
  324. package/dist/templates/tailwind/component/form.ejs.d.ts +0 -1
  325. package/dist/templates/tailwind/componentModal/form.ejs.d.ts +0 -1
  326. package/dist/templates/tailwind/components/form.ejs.d.ts +0 -1
  327. package/dist/templates/tailwind/container/form.ejs.d.ts +0 -1
  328. package/dist/templates/tailwind/datagrid/form.ejs.d.ts +0 -1
  329. package/dist/templates/tailwind/datagrid/html.ejs.d.ts +0 -1
  330. package/dist/templates/tailwind/day/form.ejs.d.ts +0 -1
  331. package/dist/templates/tailwind/dialog/form.ejs.d.ts +0 -1
  332. package/dist/templates/tailwind/editgrid/form.ejs.d.ts +0 -1
  333. package/dist/templates/tailwind/editgrid/html.ejs.d.ts +0 -1
  334. package/dist/templates/tailwind/editgridTable/form.ejs.d.ts +0 -1
  335. package/dist/templates/tailwind/editgridTable/html.ejs.d.ts +0 -1
  336. package/dist/templates/tailwind/errorsList/form.ejs.d.ts +0 -1
  337. package/dist/templates/tailwind/field/align.ejs.d.ts +0 -1
  338. package/dist/templates/tailwind/field/form.ejs.d.ts +0 -1
  339. package/dist/templates/tailwind/fieldset/form.ejs.d.ts +0 -1
  340. package/dist/templates/tailwind/file/form.ejs.d.ts +0 -1
  341. package/dist/templates/tailwind/html/form.ejs.d.ts +0 -1
  342. package/dist/templates/tailwind/icon/form.ejs.d.ts +0 -1
  343. package/dist/templates/tailwind/input/form.ejs.d.ts +0 -1
  344. package/dist/templates/tailwind/input/html.ejs.d.ts +0 -1
  345. package/dist/templates/tailwind/label/form.ejs.d.ts +0 -1
  346. package/dist/templates/tailwind/loader/form.ejs.d.ts +0 -1
  347. package/dist/templates/tailwind/loading/form.ejs.d.ts +0 -1
  348. package/dist/templates/tailwind/map/form.ejs.d.ts +0 -1
  349. package/dist/templates/tailwind/message/form.ejs.d.ts +0 -1
  350. package/dist/templates/tailwind/modalPreview/form.ejs.d.ts +0 -1
  351. package/dist/templates/tailwind/modaldialog/form.ejs.d.ts +0 -1
  352. package/dist/templates/tailwind/modaledit/form.ejs.d.ts +0 -1
  353. package/dist/templates/tailwind/multiValueRow/form.ejs.d.ts +0 -1
  354. package/dist/templates/tailwind/multiValueTable/form.ejs.d.ts +0 -1
  355. package/dist/templates/tailwind/multipleMasksInput/form.ejs.d.ts +0 -1
  356. package/dist/templates/tailwind/panel/form.ejs.d.ts +0 -1
  357. package/dist/templates/tailwind/pdf/form.ejs.d.ts +0 -1
  358. package/dist/templates/tailwind/pdfBuilder/form.ejs.d.ts +0 -1
  359. package/dist/templates/tailwind/pdfBuilderUpload/form.ejs.d.ts +0 -1
  360. package/dist/templates/tailwind/radio/form.ejs.d.ts +0 -1
  361. package/dist/templates/tailwind/radio/html.ejs.d.ts +0 -1
  362. package/dist/templates/tailwind/resourceAdd/form.ejs.d.ts +0 -1
  363. package/dist/templates/tailwind/select/form.ejs.d.ts +0 -1
  364. package/dist/templates/tailwind/select/html.ejs.d.ts +0 -1
  365. package/dist/templates/tailwind/selectOption/form.ejs.d.ts +0 -1
  366. package/dist/templates/tailwind/selectOption/html.ejs.d.ts +0 -1
  367. package/dist/templates/tailwind/signature/form.ejs.d.ts +0 -1
  368. package/dist/templates/tailwind/signature/html.ejs.d.ts +0 -1
  369. package/dist/templates/tailwind/survey/form.ejs.d.ts +0 -1
  370. package/dist/templates/tailwind/survey/html.ejs.d.ts +0 -1
  371. package/dist/templates/tailwind/tab/flat.ejs.d.ts +0 -1
  372. package/dist/templates/tailwind/tab/form.ejs.d.ts +0 -1
  373. package/dist/templates/tailwind/table/form.ejs.d.ts +0 -1
  374. package/dist/templates/tailwind/tableComponents/form.ejs.d.ts +0 -1
  375. package/dist/templates/tailwind/tree/form.ejs.d.ts +0 -1
  376. package/dist/templates/tailwind/tree/partials/edit.ejs.d.ts +0 -1
  377. package/dist/templates/tailwind/tree/partials/view.ejs.d.ts +0 -1
  378. package/dist/templates/tailwind/webform/builder.ejs.d.ts +0 -1
  379. package/dist/templates/tailwind/webform/form.ejs.d.ts +0 -1
  380. package/dist/templates/tailwind/well/form.ejs.d.ts +0 -1
  381. package/dist/templates/tailwind/wizard/builder.ejs.d.ts +0 -1
  382. package/dist/templates/tailwind/wizard/form.ejs.d.ts +0 -1
  383. package/dist/templates/tailwind/wizardHeader/form.ejs.d.ts +0 -1
  384. package/dist/templates/tailwind/wizardHeaderClassic/form.ejs.d.ts +0 -1
  385. package/dist/templates/tailwind/wizardHeaderVertical/form.ejs.d.ts +0 -1
  386. package/dist/templates/tailwind/wizardNav/form.ejs.d.ts +0 -1
  387. package/gulpfile.js +0 -25
  388. package/src/templates/tailwind/address/form.ejs.js +0 -58
  389. package/src/templates/tailwind/address/html.ejs.js +0 -13
  390. package/src/templates/tailwind/alert/form.ejs.js +0 -24
  391. package/src/templates/tailwind/alert/index.js +0 -3
  392. package/src/templates/tailwind/builder/form.ejs.js +0 -9
  393. package/src/templates/tailwind/builderComponent/form.ejs.js +0 -24
  394. package/src/templates/tailwind/builderComponents/form.ejs.js +0 -11
  395. package/src/templates/tailwind/builderEditForm/form.ejs.js +0 -50
  396. package/src/templates/tailwind/builderPlaceholder/form.ejs.js +0 -9
  397. package/src/templates/tailwind/builderSidebar/form.ejs.js +0 -16
  398. package/src/templates/tailwind/builderSidebarGroup/form.ejs.js +0 -60
  399. package/src/templates/tailwind/builderWizard/form.ejs.js +0 -30
  400. package/src/templates/tailwind/button/form.ejs.js +0 -52
  401. package/src/templates/tailwind/button/html.ejs.js +0 -5
  402. package/src/templates/tailwind/checkbox/form.ejs.js +0 -50
  403. package/src/templates/tailwind/checkbox/html.ejs.js +0 -22
  404. package/src/templates/tailwind/columns/form.ejs.js +0 -30
  405. package/src/templates/tailwind/component/form.ejs.js +0 -22
  406. package/src/templates/tailwind/componentModal/form.ejs.js +0 -44
  407. package/src/templates/tailwind/components/form.ejs.js +0 -7
  408. package/src/templates/tailwind/container/form.ejs.js +0 -9
  409. package/src/templates/tailwind/datagrid/form.ejs.js +0 -144
  410. package/src/templates/tailwind/datagrid/html.ejs.js +0 -46
  411. package/src/templates/tailwind/day/form.ejs.js +0 -98
  412. package/src/templates/tailwind/dialog/form.ejs.js +0 -5
  413. package/src/templates/tailwind/editgrid/form.ejs.js +0 -62
  414. package/src/templates/tailwind/editgrid/html.ejs.js +0 -52
  415. package/src/templates/tailwind/editgridTable/form.ejs.js +0 -66
  416. package/src/templates/tailwind/editgridTable/html.ejs.js +0 -56
  417. package/src/templates/tailwind/errorsList/form.ejs.js +0 -22
  418. package/src/templates/tailwind/field/align.ejs.js +0 -38
  419. package/src/templates/tailwind/field/form.ejs.js +0 -36
  420. package/src/templates/tailwind/fieldset/form.ejs.js +0 -30
  421. package/src/templates/tailwind/file/form.ejs.js +0 -224
  422. package/src/templates/tailwind/html/form.ejs.js +0 -25
  423. package/src/templates/tailwind/icon/form.ejs.js +0 -13
  424. package/src/templates/tailwind/input/form.ejs.js +0 -108
  425. package/src/templates/tailwind/input/html.ejs.js +0 -13
  426. package/src/templates/tailwind/label/form.ejs.js +0 -32
  427. package/src/templates/tailwind/loader/form.ejs.js +0 -5
  428. package/src/templates/tailwind/loading/form.ejs.js +0 -7
  429. package/src/templates/tailwind/map/form.ejs.js +0 -7
  430. package/src/templates/tailwind/message/form.ejs.js +0 -13
  431. package/src/templates/tailwind/modalPreview/form.ejs.js +0 -21
  432. package/src/templates/tailwind/modaldialog/form.ejs.js +0 -7
  433. package/src/templates/tailwind/modaledit/form.ejs.js +0 -9
  434. package/src/templates/tailwind/multiValueRow/form.ejs.js +0 -14
  435. package/src/templates/tailwind/multiValueTable/form.ejs.js +0 -16
  436. package/src/templates/tailwind/multipleMasksInput/form.ejs.js +0 -30
  437. package/src/templates/tailwind/panel/form.ejs.js +0 -58
  438. package/src/templates/tailwind/pdf/form.ejs.js +0 -13
  439. package/src/templates/tailwind/pdfBuilder/form.ejs.js +0 -9
  440. package/src/templates/tailwind/pdfBuilderUpload/form.ejs.js +0 -13
  441. package/src/templates/tailwind/radio/form.ejs.js +0 -84
  442. package/src/templates/tailwind/radio/html.ejs.js +0 -10
  443. package/src/templates/tailwind/resourceAdd/form.ejs.js +0 -11
  444. package/src/templates/tailwind/select/form.ejs.js +0 -46
  445. package/src/templates/tailwind/select/html.ejs.js +0 -13
  446. package/src/templates/tailwind/selectOption/form.ejs.js +0 -20
  447. package/src/templates/tailwind/selectOption/html.ejs.js +0 -11
  448. package/src/templates/tailwind/signature/form.ejs.js +0 -30
  449. package/src/templates/tailwind/signature/html.ejs.js +0 -5
  450. package/src/templates/tailwind/survey/form.ejs.js +0 -52
  451. package/src/templates/tailwind/survey/html.ejs.js +0 -22
  452. package/src/templates/tailwind/tab/flat.ejs.js +0 -16
  453. package/src/templates/tailwind/tab/form.ejs.js +0 -38
  454. package/src/templates/tailwind/table/form.ejs.js +0 -48
  455. package/src/templates/tailwind/tableComponents/form.ejs.js +0 -12
  456. package/src/templates/tailwind/tree/form.ejs.js +0 -32
  457. package/src/templates/tailwind/tree/partials/edit.ejs.js +0 -16
  458. package/src/templates/tailwind/tree/partials/view.ejs.js +0 -34
  459. package/src/templates/tailwind/webform/builder.ejs.js +0 -7
  460. package/src/templates/tailwind/webform/form.ejs.js +0 -9
  461. package/src/templates/tailwind/well/form.ejs.js +0 -9
  462. package/src/templates/tailwind/wizard/builder.ejs.js +0 -7
  463. package/src/templates/tailwind/wizard/form.ejs.js +0 -42
  464. package/src/templates/tailwind/wizardHeader/form.ejs.js +0 -32
  465. package/src/templates/tailwind/wizardHeaderClassic/form.ejs.js +0 -26
  466. package/src/templates/tailwind/wizardHeaderVertical/form.ejs.js +0 -28
  467. package/src/templates/tailwind/wizardNav/form.ejs.js +0 -64
package/dist/index.js CHANGED
@@ -1,2021 +1,9 @@
1
- function _extends() {
2
- _extends = Object.assign ? Object.assign.bind() : function (target) {
3
- for (var i = 1; i < arguments.length; i++) {
4
- var source = arguments[i];
5
- for (var key in source) {
6
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7
- target[key] = source[key];
8
- }
9
- }
10
- }
11
- return target;
12
- };
13
- return _extends.apply(this, arguments);
14
- }
15
-
16
- function form$Y (ctx) {
17
- var __t,
18
- __p = '';
19
- if (ctx.mode.autocomplete) {
20
- __p += '\n <div class="address-autocomplete-container">\n <input\n ref="' + ((__t = ctx.ref.searchInput) == null ? '' : __t) + '"\n ';
21
- for (var attr in ctx.inputAttributes) {
22
- __p += '\n ' + ((__t = attr) == null ? '' : __t) + '="' + ((__t = ctx.inputAttributes[attr]) == null ? '' : __t) + '"\n ';
23
- }
24
- __p += '\n value="' + ((__t = ctx.displayValue) == null ? '' : __t) + '"\n autocomplete="off"\n aria-label="' + ((__t = ctx.t('autocomplete')) == null ? '' : __t) + '"\n >\n ';
25
- if (!ctx.component.disableClearIcon) {
26
- __p += '\n <i\n class="address-autocomplete-remove-value-icon fa fa-times"\n tabindex="' + ((__t = ctx.inputAttributes.tabindex) == null ? '' : __t) + '"\n ref="' + ((__t = ctx.ref.removeValueIcon) == null ? '' : __t) + '"\n ></i>\n ';
27
- }
28
- __p += '\n </div>\n';
29
- }
30
- __p += '\n';
31
- if (ctx.self.manualModeEnabled) {
32
- __p += '\n <div class="form-check checkbox">\n <label class="form-check-label">\n <input\n ref="' + ((__t = ctx.ref.modeSwitcher) == null ? '' : __t) + '"\n type="checkbox"\n class="form-check-input"\n tabindex="' + ((__t = ctx.inputAttributes.tabindex) == null ? '' : __t) + '"\n ';
33
- if (ctx.mode.manual) {
34
- __p += 'checked=true';
35
- }
36
- __p += '\n ';
37
- if (ctx.disabled) {
38
- __p += 'disabled=true';
39
- }
40
- __p += '\n >\n <span>' + ((__t = ctx.component.switchToManualModeLabel) == null ? '' : __t) + '</span>\n </label>\n </div>\n';
41
- }
42
- __p += '\n';
43
- if (ctx.self.manualMode) {
44
- __p += '\n <div ref="' + ((__t = ctx.nestedKey) == null ? '' : __t) + '">\n ' + ((__t = ctx.children) == null ? '' : __t) + '\n </div>\n';
45
- }
46
- __p += '\n';
47
- return __p;
48
- }
49
-
50
- var address = {
51
- form: form$Y
52
- };
53
-
54
- function form$X (ctx) {
55
- var __t,
56
- __p = '';
57
- __p += '<div\n ';
58
- for (var attr in ctx.attrs) {
59
- __p += '\n ' + ((__t = attr) == null ? '' : __t) + '="' + ((__t = ctx.attrs[attr]) == null ? '' : __t) + '"\n ';
60
- }
61
- __p += '\n>\n ' + ((__t = ctx.message) == null ? '' : __t) + '\n ';
62
- if (ctx.options.vpat) {
63
- __p += '\n <span class="sr-only" id="hotkey-i-' + ((__t = ctx.form._id) == null ? '' : __t) + '">' + ((__t = ctx.t('errorListHotkey')) == null ? '' : __t) + '</span>\n ';
64
- }
65
- __p += '\n</div>\n';
66
- return __p;
67
- }
68
-
69
- var alert = {
70
- form: form$X
71
- };
72
-
73
- function form$W (ctx) {
74
- var __t,
75
- __p = '';
76
- __p += '<div class="formio builder grid grid-cols-12 gap-4 formbuilder">\n <div class="col-span-12 xs:col-span-4 sm:col-span-3 md:col-span-2 formcomponents">\n ' + ((__t = ctx.sidebar) == null ? '' : __t) + '\n </div>\n <div class="col-span-12 xs:col-span-8 sm:col-span-9 md:col-span-10 formarea" ref="form">\n ' + ((__t = ctx.form) == null ? '' : __t) + '\n </div>\n</div>\n';
77
- return __p;
78
- }
79
-
80
- var builder$2 = {
81
- form: form$W
82
- };
83
-
84
- function form$V (ctx) {
85
- var __t,
86
- __p = '';
87
- __p += '<div class="builder-component" ref="dragComponent">\n ';
88
- if (!ctx.disableBuilderActions) {
89
- __p += '\n <div class="component-btn-group" data-noattach="true">\n <button\n role="button"\n aria-label="Remove button. Click to remove component from the form"\n tabindex="-1"\n class="btn btn-xxs btn-danger component-settings-button component-settings-button-remove"\n ref="removeComponent"\n >\n <i class="' + ((__t = ctx.iconClass('remove')) == null ? '' : __t) + '"></i>\n </button>\n <button\n role="button"\n aria-label="Copy button. Click to copy component"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-copy"\n ref="copyComponent"\n >\n <i class="' + ((__t = ctx.iconClass('copy')) == null ? '' : __t) + '"></i>\n </button>\n <button\n role="button"\n aria-label="Paste below button. Click to paste component below the current component"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-paste"\n ref="pasteComponent"\n >\n <i class="' + ((__t = ctx.iconClass('save')) == null ? '' : __t) + '"></i>\n </button>\n <button\n role="button"\n aria-label="Edit json button. Click to edit json of the current component"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json"\n ref="editJson"\n >\n <i class="' + ((__t = ctx.iconClass('wrench')) == null ? '' : __t) + '"></i>\n </button>\n <button\n role="button"\n aria-label="Move button"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-move"\n ref="moveComponent"\n >\n <i class="' + ((__t = ctx.iconClass('move')) == null ? '' : __t) + '"></i>\n </button>\n <button\n role="button"\n aria-label="Edit button. Click to open component settings modal window"\n tabindex="-1"\n class="btn btn-xxs btn-secondary component-settings-button component-settings-button-edit"\n ref="editComponent"\n >\n <i class="' + ((__t = ctx.iconClass('cog')) == null ? '' : __t) + '"></i>\n </button>\n </div>\n ';
90
- }
91
- __p += '\n ' + ((__t = ctx.html) == null ? '' : __t) + '\n</div>\n';
92
- return __p;
93
- }
94
-
95
- var builderComponent = {
96
- form: form$V
97
- };
98
-
99
- function form$U (ctx) {
100
- var __t,
101
- __p = '';
102
- __p += '<div class="builder-components drag-container formio-builder-' + ((__t = ctx.type) == null ? '' : __t) + '" ref="' + ((__t = ctx.key) == null ? '' : __t) + '-container">\n ' + ((__t = ctx.html) == null ? '' : __t) + '\n</div>\n';
103
- return __p;
104
- }
105
-
106
- var builderComponents = {
107
- form: form$U
108
- };
109
-
110
- function form$T (ctx) {
111
- var __t,
112
- __p = '';
113
- __p += '<div class="flex flex-col w-full h-full">\n <div>\n <div class="grid grid-cols-12 gap-4">\n <div class="col-span-6">\n <div class="text-md px-3 py-3">\n ' + ((__t = ctx.t(ctx.componentInfo.title, {
114
- _userInput: true
115
- })) == null ? '' : __t) + '\n ' + ((__t = ctx.t('Component')) == null ? '' : __t) + '\n </div>\n </div>\n ';
116
- if (ctx.helplinks) {
117
- __p += '\n <div class="col-span-6 flex justify-end items-center pr-15">\n <a class="reset-link inline-flex items-center text-secondary text-decoration-none hover:text-primary"\n href="' + ((__t = ctx.t(ctx.helplinks + ctx.componentInfo.documentation)) == null ? '' : __t) + '" target="_blank">\n <i class="' + ((__t = ctx.iconClass('new-window')) == null ? '' : __t) + ' mr-1"></i> ' + ((__t = ctx.t('Help')) == null ? '' : __t) + '\n </a>\n </div>\n ';
118
- }
119
- __p += '\n </div>\n </div>\n <div class="overflow-auto flex-1 p-3 pt-0" style="max-height: calc(90vh - 95px)">\n <div class="grid grid-cols-12 gap-4">\n <div class="';
120
- if (ctx.preview) {
121
- __p += 'col-span-12 sm:col-span-6';
122
- } else {
123
- __p += 'col-span-12';
124
- }
125
- __p += '">\n <div ref="editForm">\n ' + ((__t = ctx.editForm) == null ? '' : __t) + '\n </div>\n </div>\n ';
126
- if (ctx.preview) {
127
- __p += '\n <div class="col-span-12 sm:col-span-6">\n <div class="card panel preview-panel">\n <div class="card-header">\n <div class="text-sm">' + ((__t = ctx.t('Preview')) == null ? '' : __t) + '</div>\n </div>\n <div class="card-body">\n <div class="component-preview" ref="preview">\n ' + ((__t = ctx.preview) == null ? '' : __t) + '\n </div>\n </div>\n </div>\n ';
128
- if (ctx.componentInfo.help) {
129
- __p += '\n <div class="card card-body bg-light formio-settings-help">\n ' + ((__t = ctx.t(ctx.componentInfo.help)) == null ? '' : __t) + '\n </div>\n ';
130
- }
131
- __p += '\n </div>\n ';
132
- }
133
- __p += '\n </div>\n </div>\n <div class="bg-white p-2 flex justify-center">\n <button class="btn btn-primary mx-2" ref="saveButton">\n ' + ((__t = ctx.t('Save')) == null ? '' : __t) + '\n </button>\n <button class="btn btn-dark mx-2" ref="cancelButton">\n ' + ((__t = ctx.t('Cancel')) == null ? '' : __t) + '\n </button>\n <button class="btn btn-danger mx-2" ref="removeButton">\n <i class="' + ((__t = ctx.iconClass('remove')) == null ? '' : __t) + ' sm:mr-2"></i>\n <span class="hidden sm:inline">' + ((__t = ctx.t('Remove')) == null ? '' : __t) + '</span>\n </button>\n </div>\n</div>\n\n\n';
134
- return __p;
135
- }
136
-
137
- var builderEditForm = {
138
- form: form$T
139
- };
140
-
141
- function form$S (ctx) {
142
- var __t,
143
- __p = '';
144
- __p += '<div\n class="drag-and-drop-alert alert alert-info no-drag"\n style="text-align:center;"\n role="alert"\n data-noattach="true"\n data-position="' + ((__t = ctx.position) == null ? '' : __t) + '"\n>\n ' + ((__t = ctx.t('Drag and Drop a form component')) == null ? '' : __t) + '\n</div>\n';
145
- return __p;
146
- }
147
-
148
- var builderPlaceholder = {
149
- form: form$S
150
- };
151
-
152
- function form$R (ctx) {
153
- var __t,
154
- __p = '';
155
- __p += '<div id="' + ((__t = ctx.groupId) == null ? '' : __t) + '" class="accordion builder-sidebar' + ((__t = ctx.scrollEnabled ? ' builder-sidebar_scroll' : '') == null ? '' : __t) + '" ref="sidebar">\n <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="Search field(s)" />\n <div ref="sidebar-groups">\n ';
156
- ctx.groups.forEach(function (group) {
157
- __p += '\n ' + ((__t = group) == null ? '' : __t) + '\n ';
158
- });
159
- __p += '\n </div>\n</div>\n';
160
- return __p;
161
- }
162
-
163
- var builderSidebar = {
164
- form: form$R
165
- };
166
-
167
- function form$Q (ctx) {
168
- var __t,
169
- __p = '';
170
- __p += '<div class="card form-builder-panel" ref="group-panel-' + ((__t = ctx.groupKey) == null ? '' : __t) + '">\n <div class="card-header form-builder-group-header" id="heading-' + ((__t = ctx.groupKey) == null ? '' : __t) + '">\n <h5 class="mb-0 mt-0">\n <button\n class="btn btn-block builder-group-button"\n type="button"\n data-toggle="collapse"\n data-target="#group-' + ((__t = ctx.groupKey) == null ? '' : __t) + '"\n data-parent="#' + ((__t = ctx.groupId) == null ? '' : __t) + '"\n aria-expanded="' + ((__t = ctx.group.default) == null ? '' : __t) + '"\n aria-controls="group-' + ((__t = ctx.groupKey) == null ? '' : __t) + '"\n ref="sidebar-anchor"\n >\n ' + ((__t = ctx.t(ctx.group.title)) == null ? '' : __t) + '\n </button>\n </h5>\n </div>\n <div\n id="group-' + ((__t = ctx.groupKey) == null ? '' : __t) + '"\n class="collapse ' + ((__t = ctx.group.default ? ' show' : '') == null ? '' : __t) + '"\n data-parent="#' + ((__t = ctx.groupId) == null ? '' : __t) + '"\n data-default="' + ((__t = ctx.group.default) == null ? '' : __t) + '"\n aria-labelledby="heading-' + ((__t = ctx.groupKey) == null ? '' : __t) + '"\n ref="sidebar-group"\n >\n <div id="group-container-' + ((__t = ctx.groupKey) == null ? '' : __t) + '" class="card-body no-drop p-2" ref="sidebar-container">\n ';
171
- if (ctx.group.componentOrder.length || ctx.subgroups.length) {
172
- __p += '\n ';
173
- !ctx.group.componentOrder || ctx.group.componentOrder.forEach(function (componentKey) {
174
- __p += '\n <span\n data-group="' + ((__t = ctx.groupKey) == null ? '' : __t) + '"\n data-key="' + ((__t = ctx.group.components[componentKey].key) == null ? '' : __t) + '"\n data-type="' + ((__t = ctx.group.components[componentKey].schema.type) == null ? '' : __t) + '"\n class="btn btn-primary btn-sm btn-block formcomponent drag-copy"\n >\n ';
175
- if (ctx.group.components[componentKey].icon) {
176
- __p += '\n <i class="' + ((__t = ctx.iconClass(ctx.group.components[componentKey].icon)) == null ? '' : __t) + '" style="margin-right: 5px;"></i>\n ';
177
- }
178
- __p += '\n ' + ((__t = ctx.t(ctx.group.components[componentKey].title, {
179
- _userInput: true
180
- })) == null ? '' : __t) + '\n </span>\n ';
181
- });
182
- __p += '\n ' + ((__t = ctx.subgroups.join('')) == null ? '' : __t) + '\n ';
183
- } else {
184
- __p += '\n <div>' + ((__t = ctx.t('No Matches Found')) == null ? '' : __t) + '</div>\n ';
185
- }
186
- __p += '\n </div>\n </div>\n</div>\n';
187
- return __p;
188
- }
189
-
190
- var builderSidebarGroup = {
191
- form: form$Q
192
- };
193
-
194
- function form$P (ctx) {
195
- var __t,
196
- __p = '';
197
- __p += '<div class="formio builder grid grid-cols-12 gap-4 formbuilder">\n <div class="col-span-12 xs:col-span-4 sm:col-span-3 md:col-span-2 formcomponents">\n ' + ((__t = ctx.sidebar) == null ? '' : __t) + '\n </div>\n <div class="col-span-12 xs:col-span-8 sm:col-span-9 md:col-span-10 formarea">\n <ol class="breadcrumb bg-gray-200">\n ';
198
- ctx.pages.forEach(function (page, pageIndex) {
199
- __p += '\n <li class="text-gray-500">\n <span title="' + ((__t = page.title) == null ? '' : __t) + '" class="mr-2 badge ';
200
- if (pageIndex === ctx.self.page) {
201
- __p += 'bg-primary';
202
- } else {
203
- __p += 'bg-light';
204
- }
205
- __p += ' wizard-page-label" ref="gotoPage">' + ((__t = page.title) == null ? '' : __t) + '</span>\n </li>\n ';
206
- });
207
- __p += '\n <li class="text-gray-500 pl-2">\n <span title="' + ((__t = ctx.t('Create Page')) == null ? '' : __t) + '" class="mr-2 badge bg-secondary wizard-page-label" ref="addPage">\n <i class="' + ((__t = ctx.iconClass('plus')) == null ? '' : __t) + ' mr-1"></i> ' + ((__t = ctx.t('Page')) == null ? '' : __t) + '\n </span>\n </li>\n </ol>\n <div ref="form">\n ' + ((__t = ctx.form) == null ? '' : __t) + '\n </div>\n </div>\n</div>\n';
208
- return __p;
209
- }
210
-
211
- var builderWizard = {
212
- form: form$P
213
- };
214
-
215
- function form$O (ctx) {
216
- var __t,
217
- __p = '';
218
- __p += '<' + ((__t = ctx.input.type) == null ? '' : __t) + '\n ref="button"\n ';
219
- for (var attr in ctx.input.attr) {
220
- __p += '\n ' + ((__t = attr) == null ? '' : __t) + '="' + ((__t = ctx.input.attr[attr]) == null ? '' : __t) + '"\n ';
221
- }
222
- __p += '\n ';
223
- if (ctx.component.description) {
224
- __p += '\n aria-describedby="d-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '"\n ';
225
- }
226
- __p += '\n>\n';
227
- if (ctx.component.leftIcon) {
228
- __p += '<span class="' + ((__t = ctx.component.leftIcon) == null ? '' : __t) + '"></span>&nbsp;';
229
- }
230
- __p += '\n';
231
- if (ctx.input.content) {
232
- __p += '<span>' + ((__t = ctx.input.content) == null ? '' : __t) + '</span> ';
233
- }
234
- __p += '\n';
235
- if (ctx.component.tooltip) {
236
- __p += '\n <i ref="tooltip" class="' + ((__t = ctx.iconClass('question-sign')) == null ? '' : __t) + ' text-muted" data-tooltip="' + ((__t = ctx.component.tooltip) == null ? '' : __t) + '"></i>\n';
237
- }
238
- __p += '\n';
239
- if (ctx.component.rightIcon) {
240
- __p += '&nbsp;<span class="' + ((__t = ctx.component.rightIcon) == null ? '' : __t) + '"></span>';
241
- }
242
- __p += '\n</' + ((__t = ctx.input.type) == null ? '' : __t) + '>\n<div ref="buttonMessageContainer">\n <span class="help-block" ref="buttonMessage"></span>\n</div>\n';
243
- return __p;
244
- }
245
-
246
- function html$b (ctx) {
247
- var __p = '';
248
- __p += '\n';
249
- return __p;
250
- }
251
-
252
- var button = {
253
- form: form$O,
254
- html: html$b
255
- };
256
-
257
- function form$N (ctx) {
258
- var __t,
259
- __p = '';
260
- __p += '<div class="form-check checkbox">\n <label class="' + ((__t = ctx.input.labelClass) == null ? '' : __t) + ' form-check-label">\n <' + ((__t = ctx.input.type) == null ? '' : __t) + '\n ref="input"\n ';
261
- for (var attr in ctx.input.attr) {
262
- __p += '\n ' + ((__t = attr) == null ? '' : __t) + '="' + ((__t = ctx.input.attr[attr]) == null ? '' : __t) + '"\n ';
263
- }
264
- __p += '\n ';
265
- if (ctx.checked) {
266
- __p += 'checked=true';
267
- }
268
- __p += '\n aria-required="' + ((__t = ctx.component.validate.required) == null ? '' : __t) + '"\n ';
269
- if (ctx.component.description) {
270
- __p += '\n aria-describedby="d-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '"\n ';
271
- }
272
- __p += '\n >\n ';
273
- if (!ctx.self.labelIsHidden()) {
274
- __p += '<span>' + ((__t = ctx.input.label) == null ? '' : __t) + '</span>';
275
- }
276
- __p += '\n ';
277
- if (ctx.component.tooltip) {
278
- __p += '\n <i ref="tooltip" tabindex="0" class="' + ((__t = ctx.iconClass('question-sign')) == null ? '' : __t) + ' text-muted" data-tooltip="' + ((__t = ctx.component.tooltip) == null ? '' : __t) + '"></i>\n ';
279
- }
280
- __p += '\n ' + ((__t = ctx.input.content) == null ? '' : __t) + '\n </' + ((__t = ctx.input.type) == null ? '' : __t) + '>\n </label>\n</div>\n';
281
- return __p;
282
- }
283
-
284
- function html$a (ctx) {
285
- var __t,
286
- __p = '';
287
- __p += '<label class="' + ((__t = ctx.input.labelClass) == null ? '' : __t) + '">\n ' + ((__t = ctx.input.content) == null ? '' : __t) + '\n ';
288
- if (!ctx.self.labelIsHidden()) {
289
- __p += '<span>' + ((__t = ctx.input.label) == null ? '' : __t) + '</span>';
290
- }
291
- __p += '\n</label>\n<div ref="value">';
292
- if (ctx.checked) {
293
- __p += 'True';
294
- } else {
295
- __p += 'False';
296
- }
297
- __p += '</div>\n';
298
- return __p;
299
- }
300
-
301
- var checkbox = {
302
- form: form$N,
303
- html: html$a
304
- };
305
-
306
- function form$M (ctx) {
307
- var __t,
308
- __p = '';
309
- ctx.component.columns.forEach(function (column, index) {
310
- __p += '\n<div class="\n col-' + ((__t = column.size) == null ? '' : __t) + '-' + ((__t = column.currentWidth || column.width) == null ? '' : __t) + '\n col-' + ((__t = column.size) == null ? '' : __t) + '-offset-' + ((__t = column.offset) == null ? '' : __t) + '\n col-' + ((__t = column.size) == null ? '' : __t) + '-push-' + ((__t = column.push) == null ? '' : __t) + '\n col-' + ((__t = column.size) == null ? '' : __t) + '-pull-' + ((__t = column.pull) == null ? '' : __t) + '\n " ref="' + ((__t = ctx.columnKey) == null ? '' : __t) + '">\n ' + ((__t = ctx.columnComponents[index]) == null ? '' : __t) + '\n</div>\n';
311
- });
312
- __p += '\n';
313
- return __p;
314
- }
315
-
316
- var columns = {
317
- form: form$M
318
- };
319
-
320
- function form$L (ctx) {
321
- var __t,
322
- __p = '';
323
- __p += '<div id="' + ((__t = ctx.id) == null ? '' : __t) + '" class="' + ((__t = ctx.classes) == null ? '' : __t) + '"';
324
- if (ctx.styles) {
325
- __p += ' styles="' + ((__t = ctx.styles) == null ? '' : __t) + '"';
326
- }
327
- __p += ' ref="component">\n ';
328
- if (ctx.visible) {
329
- __p += '\n ' + ((__t = ctx.children) == null ? '' : __t) + '\n <div ref="messageContainer" class="formio-errors invalid-feedback"></div>\n ';
330
- }
331
- __p += '\n</div>\n';
332
- return __p;
333
- }
334
-
335
- var component = {
336
- form: form$L
337
- };
338
-
339
- function form$K (ctx) {
340
- var __t,
341
- __p = '';
342
- __p += '<div class="formio-component-modal-wrapper formio-component-modal-wrapper-' + ((__t = ctx.component.type) == null ? '' : __t) + '" ref="componentModalWrapper">\n <div ref="openModalWrapper"></div>\n <div class="formio-dialog formio-dialog-theme-default component-rendering-hidden" ref="modalWrapper">\n <div class="formio-dialog-overlay" ref="modalOverlay"></div>\n <div class="formio-dialog-content" aria-labelledby="ml-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '" ';
343
- if (!ctx.self.isIE()) {
344
- __p += ' role="dialog" ';
345
- }
346
- __p += ' ref="modalContents">\n <label class="sr-only" id="ml-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '">' + ((__t = ctx.t(ctx.component.label)) == null ? '' : __t) + '' + ((__t = ctx.self.isIE() ? ', dialog' : '') == null ? '' : __t) + '</label>\n ';
347
- if (ctx.options.vpat) {
348
- __p += '\n <button class="formio-dialog-close float-right" title="Close" aria-label="Close button. Click to get back to the form" ref="modalCloseButton"></button>\n ';
349
- } else {
350
- __p += '\n <button class="formio-dialog-close float-right btn btn-secondary btn-sm" aria-label="Close button. Click to get back to the form" ref="modalClose"></button>\n ';
351
- }
352
- __p += '\n <div ref="modalContents">\n ';
353
- if (ctx.visible) {
354
- __p += '\n ' + ((__t = ctx.children) == null ? '' : __t) + '\n ';
355
- }
356
- __p += '\n <div class="formio-dialog-buttons">\n ';
357
- if (ctx.options.vpat) {
358
- __p += '\n <button class="btn btn-secondary formio-dialog-button" aria-label="Cancel button. Click to cancel the changes and get back to the form." ref="modalClose">' + ((__t = ctx.t('Cancel')) == null ? '' : __t) + '</button>\n ';
359
- }
360
- __p += '\n <button class="btn btn-success formio-dialog-button" ref="modalSave" aria-label="Save button. Click to save the changes and get back to the form.">' + ((__t = ctx.t('Save')) == null ? '' : __t) + '</button>\n </div>\n </div>\n </div>\n <span class="sr-only" ref="modalLiveRegion" aria-live="assertive"></span>\n </div>\n</div>\n';
361
- return __p;
362
- }
363
-
364
- var componentModal = {
365
- form: form$K
366
- };
367
-
368
- function form$J (ctx) {
369
- var __t,
370
- __p = '';
371
- __p += ((__t = ctx.children.join('')) == null ? '' : __t) + '\n';
372
- return __p;
373
- }
374
-
375
- var components = {
376
- form: form$J
377
- };
378
-
379
- function form$I (ctx) {
380
- var __t,
381
- __p = '';
382
- __p += '<div ref="' + ((__t = ctx.nestedKey) == null ? '' : __t) + '">\n ' + ((__t = ctx.children) == null ? '' : __t) + '\n</div>\n';
383
- return __p;
384
- }
385
-
386
- var container = {
387
- form: form$I
388
- };
389
-
390
- var cssClasses = {
391
- "border-default": "",
392
- "formio-tab-panel-active": "active",
393
- "formio-tab-link-active": "active",
394
- "formio-tab-link-container-active": "active"
395
- };
396
-
397
- function form$H (ctx) {
398
- var __t,
399
- __p = '';
400
- __p += '<table class="table datagrid-table table-bordered\n ' + ((__t = ctx.component.striped ? 'table-striped' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.hover ? 'table-hover' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.condensed ? 'table-sm' : '') == null ? '' : __t) + '\n " ';
401
- if (ctx.component.layoutFixed) {
402
- __p += 'style="table-layout: fixed;"';
403
- }
404
- __p += '>\n ';
405
- if (ctx.hasHeader) {
406
- __p += '\n <thead>\n <tr>\n ';
407
- if (ctx.component.reorder) {
408
- __p += '<th></th>';
409
- }
410
- __p += '\n ';
411
- ctx.columns.forEach(function (col) {
412
- __p += '\n <th class="' + ((__t = col.validate && col.validate.required ? 'field-required' : '') == null ? '' : __t) + '">\n ' + ((__t = col.hideLabel ? '' : ctx.t(col.label || col.title, {
413
- _userInput: true
414
- })) == null ? '' : __t) + '\n ';
415
- if (col.tooltip) {
416
- __p += ' <i ref="tooltip" tabindex="0" data-title="' + ((__t = col.tooltip) == null ? '' : __t) + '" class="' + ((__t = ctx.iconClass('question-sign')) == null ? '' : __t) + ' text-muted" data-tooltip="' + ((__t = col.tooltip) == null ? '' : __t) + '"></i>';
417
- }
418
- __p += '\n </th>\n ';
419
- });
420
- __p += '\n ';
421
- if (ctx.hasExtraColumn) {
422
- __p += '\n <th>\n <span class="sr-only">' + ((__t = ctx.t('Add/Remove')) == null ? '' : __t) + '</span>\n ';
423
- if (!ctx.builder && ctx.hasAddButton && ctx.hasTopSubmit) {
424
- __p += '\n <button class="btn btn-primary formio-button-add-row" ref="' + ((__t = ctx.datagridKey) == null ? '' : __t) + '-addRow" tabindex="' + ((__t = ctx.tabIndex) == null ? '' : __t) + '">\n <i class="' + ((__t = ctx.iconClass('plus')) == null ? '' : __t) + '"></i>' + ((__t = ctx.t(ctx.component.addAnother || 'Add Another', {
425
- _userInput: true
426
- })) == null ? '' : __t) + '\n </button>\n ';
427
- }
428
- __p += '\n </th>\n ';
429
- }
430
- __p += '\n </tr>\n </thead>\n ';
431
- }
432
- __p += '\n <tbody ref="' + ((__t = ctx.datagridKey) == null ? '' : __t) + '-tbody" data-key="' + ((__t = ctx.datagridKey) == null ? '' : __t) + '">\n ';
433
- ctx.rows.forEach(function (row, index) {
434
- __p += '\n ';
435
- if (ctx.hasGroups && ctx.groups[index]) {
436
- __p += '\n <tr ref="' + ((__t = ctx.datagridKey) == null ? '' : __t) + '-group-header" class="datagrid-group-header' + ((__t = ctx.hasToggle ? ' clickable' : '') == null ? '' : __t) + '">\n <td\n ref="' + ((__t = ctx.datagridKey) == null ? '' : __t) + '-group-label"\n colspan="' + ((__t = ctx.numColumns) == null ? '' : __t) + '"\n class="datagrid-group-label">' + ((__t = ctx.groups[index].label) == null ? '' : __t) + '</td>\n </tr>\n ';
437
- }
438
- __p += '\n <tr ref="' + ((__t = ctx.datagridKey) == null ? '' : __t) + '-row">\n ';
439
- if (ctx.component.reorder) {
440
- __p += '\n <td class="align-middle">\n <button type="button" class="formio-drag-button btn btn-sm btn-light ' + ((__t = ctx.iconClass('bars')) == null ? '' : __t) + '" data-key="' + ((__t = ctx.datagridKey) == null ? '' : __t) + '"></button>\n </td>\n ';
441
- }
442
- __p += '\n ';
443
- ctx.columns.forEach(function (col) {
444
- __p += '\n <td ref="' + ((__t = ctx.datagridKey) == null ? '' : __t) + '" ';
445
- if (col.key && col.overlay && col.overlay.width) {
446
- __p += ' style="width: ' + ((__t = col.overlay.width + 'px') == null ? '' : __t) + '"';
447
- }
448
- __p += ' >\n ' + ((__t = row[col.key]) == null ? '' : __t) + '\n </td>\n ';
449
- });
450
- __p += '\n ';
451
- if (ctx.hasExtraColumn) {
452
- __p += '\n ';
453
- if (ctx.hasRemoveButtons) {
454
- __p += '\n <td class="align-middle">\n <button type="button" class="btn btn-light btn-sm formio-button-remove-row" ref="' + ((__t = ctx.datagridKey) == null ? '' : __t) + '-removeRow" tabindex="' + ((__t = ctx.tabIndex) == null ? '' : __t) + '" aria-label="' + ((__t = ctx.t('remove')) == null ? '' : __t) + '">\n <i class="' + ((__t = ctx.iconClass('remove-circle')) == null ? '' : __t) + '"></i>\n </button>\n </td>\n ';
455
- }
456
- __p += '\n ';
457
- if (ctx.canAddColumn) {
458
- __p += '\n <td ref="' + ((__t = ctx.key) == null ? '' : __t) + '-container">\n ' + ((__t = ctx.placeholder) == null ? '' : __t) + '\n </td>\n ';
459
- }
460
- __p += '\n ';
461
- }
462
- __p += '\n </tr>\n ';
463
- });
464
- __p += '\n </tbody>\n ';
465
- if (!ctx.builder && ctx.hasAddButton && ctx.hasBottomSubmit) {
466
- __p += '\n <tfoot>\n <tr>\n <td colspan="' + ((__t = ctx.component.layoutFixed ? ctx.numColumns : ctx.numColumns + 1) == null ? '' : __t) + '">\n <button class="btn btn-primary formio-button-add-row" ref="' + ((__t = ctx.datagridKey) == null ? '' : __t) + '-addRow" tabindex="' + ((__t = ctx.tabIndex) == null ? '' : __t) + '">\n <i class="' + ((__t = ctx.iconClass('plus')) == null ? '' : __t) + ' mr-1"></i> ' + ((__t = ctx.t(ctx.component.addAnother || 'Add Another', {
467
- _userInput: true
468
- })) == null ? '' : __t) + '\n </button>\n </td>\n </tr>\n </tfoot>\n ';
469
- }
470
- __p += '\n</table>\n';
471
- return __p;
472
- }
473
-
474
- function html$9 (ctx) {
475
- var __t,
476
- __p = '';
477
- __p += '<table class="table datagrid-table table-bordered\n ' + ((__t = ctx.component.striped ? 'table-striped' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.hover ? 'table-hover' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.condensed ? 'table-sm' : '') == null ? '' : __t) + '\n ">\n ';
478
- if (ctx.hasHeader) {
479
- __p += '\n <thead>\n <tr>\n ';
480
- ctx.columns.forEach(function (col) {
481
- __p += '\n <th class="' + ((__t = col.validate && col.validate.required ? 'field-required' : '') == null ? '' : __t) + '">\n ' + ((__t = col.hideLabel ? '' : ctx.t(col.label || col.title, {
482
- _userInput: true
483
- })) == null ? '' : __t) + '\n ';
484
- if (col.tooltip) {
485
- __p += ' <i ref="tooltip" tabindex="0" data-title="' + ((__t = col.tooltip) == null ? '' : __t) + '" class="' + ((__t = ctx.iconClass('question-sign')) == null ? '' : __t) + ' text-muted" data-tooltip="' + ((__t = col.tooltip) == null ? '' : __t) + '"></i>';
486
- }
487
- __p += '\n </th>\n ';
488
- });
489
- __p += '\n </tr>\n </thead>\n ';
490
- }
491
- __p += '\n <tbody>\n ';
492
- ctx.rows.forEach(function (row) {
493
- __p += '\n <tr>\n ';
494
- ctx.columns.forEach(function (col) {
495
- __p += '\n <td ref="' + ((__t = ctx.datagridKey) == null ? '' : __t) + '">\n ' + ((__t = row[col.key]) == null ? '' : __t) + '\n </td>\n ';
496
- });
497
- __p += '\n </tr>\n ';
498
- });
499
- __p += '\n </tbody>\n</table>\n';
500
- return __p;
501
- }
502
-
503
- var datagrid = {
504
- form: form$H,
505
- html: html$9
506
- };
507
-
508
- function form$G (ctx) {
509
- var __t,
510
- __p = '';
511
- __p += '<div class="grid grid-cols-12 gap-4"\n ';
512
- if (ctx.component.hideLabel) {
513
- __p += '\n aria-label="' + ((__t = ctx.component.label) == null ? '' : __t) + '"\n ';
514
- } else {
515
- __p += '\n aria-labelledby="l-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '"\n ';
516
- }
517
- __p += '\n ';
518
- if (ctx.component.description) {
519
- __p += '\n aria-describedby="d-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '"\n ';
520
- }
521
- __p += '\n >\n ';
522
- if (ctx.dayFirst && ctx.showDay) {
523
- __p += '\n <div class="col-span-3">\n ';
524
- if (!ctx.component.hideInputLabels) {
525
- __p += '\n <label for="' + ((__t = ctx.component.key) == null ? '' : __t) + '-day" class="';
526
- if (ctx.component.fields.day.required) {
527
- __p += 'field-required';
528
- }
529
- __p += '">' + ((__t = ctx.t('Day')) == null ? '' : __t) + '</label>\n ';
530
- }
531
- __p += '\n <div>' + ((__t = ctx.day) == null ? '' : __t) + '</div>\n </div>\n ';
532
- }
533
- __p += '\n ';
534
- if (ctx.showMonth) {
535
- __p += '\n <div class="col-span-4">\n ';
536
- if (!ctx.component.hideInputLabels) {
537
- __p += '\n <label for="' + ((__t = ctx.component.key) == null ? '' : __t) + '-month" class="';
538
- if (ctx.component.fields.month.required) {
539
- __p += 'field-required';
540
- }
541
- __p += '">' + ((__t = ctx.t('Month')) == null ? '' : __t) + '</label>\n ';
542
- }
543
- __p += '\n <div>' + ((__t = ctx.month) == null ? '' : __t) + '</div>\n </div>\n ';
544
- }
545
- __p += '\n ';
546
- if (!ctx.dayFirst && ctx.showDay) {
547
- __p += '\n <div class="col-span-3">\n ';
548
- if (!ctx.component.hideInputLabels) {
549
- __p += '\n <label for="' + ((__t = ctx.component.key) == null ? '' : __t) + '-day" class="';
550
- if (ctx.component.fields.day.required) {
551
- __p += 'field-required';
552
- }
553
- __p += '">' + ((__t = ctx.t('Day')) == null ? '' : __t) + '</label>\n ';
554
- }
555
- __p += '\n <div>' + ((__t = ctx.day) == null ? '' : __t) + '</div>\n </div>\n ';
556
- }
557
- __p += '\n ';
558
- if (ctx.showYear) {
559
- __p += '\n <div class="col-span-5">\n ';
560
- if (!ctx.component.hideInputLabels) {
561
- __p += '\n <label for="' + ((__t = ctx.component.key) == null ? '' : __t) + '-year" class="';
562
- if (ctx.component.fields.year.required) {
563
- __p += 'field-required';
564
- }
565
- __p += '">' + ((__t = ctx.t('Year')) == null ? '' : __t) + '</label>\n ';
566
- }
567
- __p += '\n <div>' + ((__t = ctx.year) == null ? '' : __t) + '</div>\n </div>\n ';
568
- }
569
- __p += '\n</div>\n<input name="ctx.data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n';
570
- return __p;
571
- }
572
-
573
- var day = {
574
- form: form$G
575
- };
576
-
577
- function form$F (ctx) {
578
- var __p = '';
579
- __p += '<div class="formio-dialog formio-dialog-theme-default component-settings">\n <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n <div class="formio-dialog-content" ref="dialogContents" role="dialog">\n <div ref="dialogContents"></div>\n <button class="formio-dialog-close float-right btn btn-secondary btn-sm" aria-label="Close modal window." ref="dialogClose"></button>\n </div>\n</div>\n';
580
- return __p;
581
- }
582
-
583
- var dialog = {
584
- form: form$F
585
- };
586
-
587
- function form$E (ctx) {
588
- var __t,
589
- __p = '';
590
- __p += '<ul class="editgrid-listgroup list-group\n ' + ((__t = ctx.component.striped ? 'table-striped' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.bordered ? 'table-bordered' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.hover ? 'table-hover' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.condensed ? 'table-sm' : '') == null ? '' : __t) + '\n ">\n ';
591
- if (ctx.header) {
592
- __p += '\n <li class="list-group-item list-group-header">\n ' + ((__t = ctx.header) == null ? '' : __t) + '\n </li>\n ';
593
- }
594
- __p += '\n ';
595
- ctx.rows.forEach(function (row, rowIndex) {
596
- __p += '\n <li class="list-group-item" ref="' + ((__t = ctx.ref.row) == null ? '' : __t) + '">\n ' + ((__t = row) == null ? '' : __t) + '\n ';
597
- if (ctx.openRows[rowIndex] && !ctx.readOnly) {
598
- __p += '\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="' + ((__t = ctx.ref.saveRow) == null ? '' : __t) + '">' + ((__t = ctx.t(ctx.component.saveRow || 'Save', {
599
- _userInput: true
600
- })) == null ? '' : __t) + '</button>\n ';
601
- if (ctx.component.removeRow) {
602
- __p += '\n <button class="btn btn-danger" ref="' + ((__t = ctx.ref.cancelRow) == null ? '' : __t) + '">' + ((__t = ctx.t(ctx.component.removeRow || 'Cancel', {
603
- _userInput: true
604
- })) == null ? '' : __t) + '</button>\n ';
605
- }
606
- __p += '\n </div>\n ';
607
- }
608
- __p += '\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n ' + ((__t = ctx.errors[rowIndex]) == null ? '' : __t) + '\n </div>\n </div>\n </li>\n ';
609
- });
610
- __p += '\n ';
611
- if (ctx.footer) {
612
- __p += '\n <li class="list-group-item list-group-footer">\n ' + ((__t = ctx.footer) == null ? '' : __t) + '\n </li>\n ';
613
- }
614
- __p += '\n</ul>\n';
615
- if (!ctx.readOnly && ctx.hasAddButton) {
616
- __p += '\n<button class="btn btn-primary" ref="' + ((__t = ctx.ref.addRow) == null ? '' : __t) + '">\n <i class="' + ((__t = ctx.iconClass('plus')) == null ? '' : __t) + '"></i> ' + ((__t = ctx.t(ctx.component.addAnother || 'Add Another', {
617
- _userInput: true
618
- })) == null ? '' : __t) + '\n</button>\n';
619
- }
620
- __p += '\n';
621
- return __p;
622
- }
623
-
624
- function html$8 (ctx) {
625
- var __t,
626
- __p = '';
627
- __p += '<ul class="editgrid-listgroup list-group\n ' + ((__t = ctx.component.striped ? 'table-striped' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.bordered ? 'table-bordered' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.hover ? 'table-hover' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.condensed ? 'table-sm' : '') == null ? '' : __t) + '\n ">\n ';
628
- if (ctx.header) {
629
- __p += '\n <li class="list-group-item list-group-header">\n ' + ((__t = ctx.header) == null ? '' : __t) + '\n </li>\n ';
630
- }
631
- __p += '\n ';
632
- ctx.rows.forEach(function (row, rowIndex) {
633
- __p += '\n <li class="list-group-item" ref="' + ((__t = ctx.ref.row) == null ? '' : __t) + '">\n ' + ((__t = row) == null ? '' : __t) + '\n ';
634
- if (ctx.openRows[rowIndex] && !ctx.readOnly) {
635
- __p += '\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="' + ((__t = ctx.ref.saveRow) == null ? '' : __t) + '">' + ((__t = ctx.t(ctx.component.saveRow || 'Save', {
636
- _userInput: true
637
- })) == null ? '' : __t) + '</button>\n ';
638
- if (ctx.component.removeRow) {
639
- __p += '\n <button class="btn btn-danger" ref="' + ((__t = ctx.ref.cancelRow) == null ? '' : __t) + '">' + ((__t = ctx.t(ctx.component.removeRow || 'Cancel', {
640
- _userInput: true
641
- })) == null ? '' : __t) + '</button>\n ';
642
- }
643
- __p += '\n </div>\n ';
644
- }
645
- __p += '\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n ' + ((__t = ctx.errors[rowIndex]) == null ? '' : __t) + '\n </div>\n </div>\n </li>\n ';
646
- });
647
- __p += '\n ';
648
- if (ctx.footer) {
649
- __p += '\n <li class="list-group-item list-group-footer">\n ' + ((__t = ctx.footer) == null ? '' : __t) + '\n </li>\n ';
650
- }
651
- __p += '\n</ul>\n';
652
- return __p;
653
- }
654
-
655
- var editgrid = {
656
- form: form$E,
657
- html: html$8
658
- };
659
-
660
- function form$D (ctx) {
661
- var __t,
662
- __p = '';
663
- __p += '<div class="editgrid-table-container">\n <div class="table-responsive">\n <table class="table\n ' + ((__t = ctx.component.striped ? 'table-striped' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.bordered ? 'table-bordered' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.hover ? 'table-hover' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.condensed ? 'table-sm' : '') == null ? '' : __t) + '\n ">\n ';
664
- if (ctx.header) {
665
- __p += '\n <thead class="editgrid-table-head">\n ' + ((__t = ctx.header) == null ? '' : __t) + '\n </thead>\n ';
666
- }
667
- __p += '\n <tbody class="editgrid-table-body">\n ';
668
- ctx.rows.forEach(function (row, rowIndex) {
669
- __p += '\n <tr ref="' + ((__t = ctx.ref.row) == null ? '' : __t) + '">\n ' + ((__t = row) == null ? '' : __t) + '\n ';
670
- if (ctx.openRows[rowIndex] && !ctx.readOnly) {
671
- __p += '\n <td class="editgrid-table-column">\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="' + ((__t = ctx.ref.saveRow) == null ? '' : __t) + '">' + ((__t = ctx.t(ctx.component.saveRow || 'Save', {
672
- _userInput: true
673
- })) == null ? '' : __t) + '</button>\n ';
674
- if (ctx.component.removeRow) {
675
- __p += '\n <button class="btn btn-danger" ref="' + ((__t = ctx.ref.cancelRow) == null ? '' : __t) + '">' + ((__t = ctx.t(ctx.component.removeRow || 'Cancel', {
676
- _userInput: true
677
- })) == null ? '' : __t) + '</button>\n ';
678
- }
679
- __p += '\n </div>\n </td>\n ';
680
- }
681
- __p += '\n ';
682
- if (ctx.errors[rowIndex]) {
683
- __p += '\n <td class="editgrid-table-column">\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n ' + ((__t = ctx.errors[rowIndex]) == null ? '' : __t) + '\n </div>\n </div>\n </td>\n ';
684
- }
685
- __p += '\n </tr>\n ';
686
- });
687
- __p += '\n </tbody>\n ';
688
- if (ctx.footer) {
689
- __p += '\n <tfoot>\n <tr>\n ' + ((__t = ctx.footer) == null ? '' : __t) + '\n </tr>\n <tfoot>\n ';
690
- }
691
- __p += '\n </table>\n </div>\n</div>\n';
692
- if (!ctx.readOnly && ctx.hasAddButton) {
693
- __p += '\n<button class="btn btn-primary" ref="' + ((__t = ctx.ref.addRow) == null ? '' : __t) + '">\n <i class="' + ((__t = ctx.iconClass('plus')) == null ? '' : __t) + '"></i>\n ' + ((__t = ctx.t(ctx.component.addAnother || 'Add Another', {
694
- _userInput: true
695
- })) == null ? '' : __t) + '\n</button>\n';
696
- }
697
- __p += '\n';
698
- return __p;
699
- }
700
-
701
- function html$7 (ctx) {
702
- var __t,
703
- __p = '';
704
- __p += '<div class="editgrid-table-container">\n <div class="table-responsive">\n <table class="table\n ' + ((__t = ctx.component.striped ? 'table-striped' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.bordered ? 'table-bordered' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.hover ? 'table-hover' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.condensed ? 'table-sm' : '') == null ? '' : __t) + '\n ">\n ';
705
- if (ctx.header) {
706
- __p += '\n <thead class="editgrid-table-head">\n ' + ((__t = ctx.header) == null ? '' : __t) + '\n </thead>\n ';
707
- }
708
- __p += '\n <tbody class="editgrid-table-body">\n ';
709
- ctx.rows.forEach(function (row, rowIndex) {
710
- __p += '\n <tr ref="' + ((__t = ctx.ref.row) == null ? '' : __t) + '">\n ' + ((__t = row) == null ? '' : __t) + '\n ';
711
- if (ctx.openRows[rowIndex] && !ctx.readOnly) {
712
- __p += '\n <td class="editgrid-table-column">\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="' + ((__t = ctx.ref.saveRow) == null ? '' : __t) + '">' + ((__t = ctx.t(ctx.component.saveRow || 'Save', {
713
- _userInput: true
714
- })) == null ? '' : __t) + '</button>\n ';
715
- if (ctx.component.removeRow) {
716
- __p += '\n <button class="btn btn-danger" ref="' + ((__t = ctx.ref.cancelRow) == null ? '' : __t) + '">' + ((__t = ctx.t(ctx.component.removeRow || 'Cancel', {
717
- _userInput: true
718
- })) == null ? '' : __t) + '</button>\n ';
719
- }
720
- __p += '\n </div>\n </td>\n ';
721
- }
722
- __p += '\n ';
723
- if (ctx.errors[rowIndex]) {
724
- __p += '\n <td class="editgrid-table-column">\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n ' + ((__t = ctx.errors[rowIndex]) == null ? '' : __t) + '\n </div>\n </div>\n </td>\n ';
725
- }
726
- __p += '\n </tr>\n ';
727
- });
728
- __p += '\n </tbody>\n ';
729
- if (ctx.footer) {
730
- __p += '\n <tfoot>\n <tr>\n ' + ((__t = ctx.footer) == null ? '' : __t) + '\n </tr>\n <tfoot>\n ';
731
- }
732
- __p += '\n </table>\n </div>\n</div>\n';
733
- return __p;
734
- }
735
-
736
- var editgridTable = {
737
- form: form$D,
738
- html: html$7
739
- };
740
-
741
- function form$C (ctx) {
742
- var __t,
743
- __p = '';
744
- __p += '<p>' + ((__t = ctx.t('error')) == null ? '' : __t) + '\n ';
745
- if (ctx.options.vpat) {
746
- __p += '\n <span ref="errorTooltip" class="' + ((__t = ctx.iconClass('question-sign')) == null ? '' : __t) + '" tabindex="0"></span>\n ';
747
- }
748
- __p += '\n</p>\n<ul>\n ';
749
- ctx.errors.forEach(function (err) {
750
- __p += '\n <li>\n <span\n data-component-key = "' + ((__t = err.keyOrPath) == null ? '' : __t) + '"\n ref = "errorRef"\n tabIndex = "0"\n role="link"\n >\n ' + ((__t = err.message) == null ? '' : __t) + '\n </span>\n </li>\n ';
751
- });
752
- __p += '\n</ul>\n';
753
- return __p;
754
- }
755
-
756
- var errorsList = {
757
- form: form$C
758
- };
759
-
760
- function align (ctx) {
761
- var __t,
762
- __p = '';
763
- __p += '<div class="field-wrapper\n ' + ((__t = ctx.isRightPosition ? 'field-wrapper--reverse' : '') == null ? '' : __t) + '">\n ';
764
- if (!ctx.label.hidden) {
765
- __p += '\n <div class="field-label\n ' + ((__t = ctx.isRightAlign ? 'field-label--right' : '') == null ? '' : __t) + '"\n style="' + ((__t = ctx.labelStyles) == null ? '' : __t) + '">\n ' + ((__t = ctx.labelMarkup) == null ? '' : __t) + '\n </div>\n ';
766
- }
767
- __p += '\n\n ';
768
- if (ctx.label.hidden && ctx.label.className && ctx.component.validate.required) {
769
- __p += '\n <div class="field-label\n ' + ((__t = ctx.isRightAlign ? 'field-label--right' : '') == null ? '' : __t) + '"\n style="' + ((__t = ctx.labelStyles) == null ? '' : __t) + '">\n <label class="' + ((__t = ctx.label.className) == null ? '' : __t) + '"></label>\n </div>\n ';
770
- }
771
- __p += '\n\n <div class="field-content" style="' + ((__t = ctx.contentStyles) == null ? '' : __t) + '">\n ' + ((__t = ctx.element) == null ? '' : __t) + '\n </div>\n</div>\n\n';
772
- if (ctx.component.description) {
773
- __p += '\n <div class="form-text text-muted">' + ((__t = ctx.t(ctx.component.description, {
774
- _userInput: true
775
- })) == null ? '' : __t) + '</div>\n';
776
- }
777
- __p += '\n';
778
- return __p;
779
- }
780
-
781
- function form$B (ctx) {
782
- var __t,
783
- __p = '';
784
- if (!ctx.label.hidden && ctx.label.labelPosition !== 'bottom') {
785
- __p += '\n ' + ((__t = ctx.labelMarkup) == null ? '' : __t) + '\n';
786
- }
787
- __p += '\n\n';
788
- if (ctx.label.hidden && ctx.label.className && ctx.component.validate.required) {
789
- __p += '\n <label class="' + ((__t = ctx.label.className) == null ? '' : __t) + '"></label>\n';
790
- }
791
- __p += '\n\n' + ((__t = ctx.element) == null ? '' : __t) + '\n\n';
792
- if (!ctx.label.hidden && ctx.label.labelPosition === 'bottom') {
793
- __p += '\n ' + ((__t = ctx.labelMarkup) == null ? '' : __t) + '\n';
794
- }
795
- __p += '\n';
796
- if (ctx.component.description) {
797
- __p += '\n <div id="d-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '" class="form-text text-muted">' + ((__t = ctx.t(ctx.component.description, {
798
- _userInput: true
799
- })) == null ? '' : __t) + '</div>\n';
800
- }
801
- __p += '\n';
802
- return __p;
803
- }
804
-
805
- var field = {
806
- form: form$B,
807
- align
808
- };
809
-
810
- function form$A (ctx) {
811
- var __t,
812
- __p = '';
813
- __p += '<fieldset>\n ';
814
- if (ctx.component.legend) {
815
- __p += '\n <legend ref="header" class="' + ((__t = ctx.component.collapsible ? 'formio-clickable' : '') == null ? '' : __t) + '">\n ' + ((__t = ctx.t(ctx.component.legend, {
816
- _userInput: true
817
- })) == null ? '' : __t) + '\n ';
818
- if (ctx.component.tooltip) {
819
- __p += '\n <i ref="tooltip" tabindex="0" class="' + ((__t = ctx.iconClass('question-sign')) == null ? '' : __t) + ' text-muted" data-tooltip="' + ((__t = ctx.component.tooltip) == null ? '' : __t) + '"></i>\n ';
820
- }
821
- __p += '\n </legend>\n ';
822
- }
823
- __p += '\n ';
824
- if (!ctx.collapsed) {
825
- __p += '\n <div class="fieldset-body" ref="' + ((__t = ctx.nestedKey) == null ? '' : __t) + '">\n ' + ((__t = ctx.children) == null ? '' : __t) + '\n </div>\n ';
826
- }
827
- __p += '\n</fieldset>\n\n';
828
- return __p;
829
- }
830
-
831
- var fieldset = {
832
- form: form$A
833
- };
834
-
835
- function form$z (ctx) {
836
- var __t,
837
- __p = '';
838
- if (ctx.options.vpat) {
839
- __p += '\n <span tabindex="-1" class="sr-only" id="invisible-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '"></span>\n';
840
- }
841
- __p += '\n';
842
- if (!ctx.self.imageUpload) {
843
- __p += '\n ';
844
- if (ctx.options.vpat) {
845
- __p += '\n <div>' + ((__t = !ctx.component.filePattern || ctx.component.filePattern === '*' ? 'Any file types are allowed' : ctx.t('Allowed file types: ') + ctx.component.filePattern) == null ? '' : __t) + '</div>\n ';
846
- }
847
- __p += '\n <ul class="list-group list-group-striped">\n <li class="list-group-item list-group-header hidden-xs hidden-sm">\n <div class="grid grid-cols-12 gap-4">\n ';
848
- if (!ctx.disabled) {
849
- __p += '\n <div class="md:col-span-1"></div>\n ';
850
- }
851
- __p += '\n <div class="md:col-span-';
852
- if (ctx.self.hasTypes) {
853
- __p += '7';
854
- } else {
855
- __p += '9';
856
- }
857
- __p += '"><strong>' + ((__t = ctx.t('File Name')) == null ? '' : __t) + '</strong></div>\n <div class="md:col-span-2"><strong>' + ((__t = ctx.t('Size')) == null ? '' : __t) + '</strong></div>\n ';
858
- if (ctx.self.hasTypes) {
859
- __p += '\n <div class="md:col-span-2"><strong>' + ((__t = ctx.t('Type')) == null ? '' : __t) + '</strong></div>\n ';
860
- }
861
- __p += '\n </div>\n </li>\n ';
862
- ctx.files.forEach(function (file) {
863
- __p += '\n <li class="list-group-item">\n <div class="grid grid-cols-12 gap-4">\n ';
864
- if (!ctx.disabled) {
865
- __p += '\n <div class="md:col-span-1"><i tabindex="0" class="' + ((__t = ctx.iconClass('remove')) == null ? '' : __t) + '" ref="removeLink"></i></div>\n ';
866
- }
867
- __p += '\n <div class="md:col-span-';
868
- if (ctx.self.hasTypes) {
869
- __p += '7';
870
- } else {
871
- __p += '9';
872
- }
873
- __p += '">\n ';
874
- if (ctx.component.uploadOnly) {
875
- __p += '\n ' + ((__t = file.originalName || file.name) == null ? '' : __t) + '\n ';
876
- } else {
877
- __p += '\n <a href="' + ((__t = file.url || '#') == null ? '' : __t) + '" target="_blank" ref="fileLink">\n <span class="sr-only">' + ((__t = ctx.t('Press to open ')) == null ? '' : __t) + '</span>' + ((__t = file.originalName || file.name) == null ? '' : __t) + '\n </a>\n ';
878
- }
879
- __p += '\n </div>\n <div class="md:col-span-2">' + ((__t = ctx.fileSize(file.size)) == null ? '' : __t) + '</div>\n ';
880
- if (ctx.self.hasTypes && !ctx.disabled) {
881
- __p += '\n <div class="md:col-span-2">\n <select class="file-type" ref="fileType">\n ';
882
- ctx.component.fileTypes.map(function (type) {
883
- __p += '\n <option class="test" value="' + ((__t = type.value) == null ? '' : __t) + '" ';
884
- if (type.label === file.fileType) {
885
- __p += 'selected="selected"';
886
- }
887
- __p += '>' + ((__t = ctx.t(type.label)) == null ? '' : __t) + '</option>\n ';
888
- });
889
- __p += '\n </select>\n </div>\n ';
890
- }
891
- __p += '\n ';
892
- if (ctx.self.hasTypes && ctx.disabled) {
893
- __p += '\n <div class="md:col-span-2">' + ((__t = file.fileType) == null ? '' : __t) + '</div>\n ';
894
- }
895
- __p += '\n </div>\n </li>\n ';
896
- });
897
- __p += '\n </ul>\n';
898
- } else {
899
- __p += '\n <div>\n ';
900
- ctx.files.forEach(function (file) {
901
- __p += '\n <div>\n <span>\n <img ref="fileImage" src="" alt="' + ((__t = file.originalName || file.name) == null ? '' : __t) + '" style="width:' + ((__t = ctx.component.imageSize) == null ? '' : __t) + 'px">\n ';
902
- if (!ctx.disabled) {
903
- __p += '\n <i tabindex="0" class="' + ((__t = ctx.iconClass('remove')) == null ? '' : __t) + '" ref="removeLink"></i>\n ';
904
- }
905
- __p += '\n </span>\n </div>\n ';
906
- });
907
- __p += '\n </div>\n';
908
- }
909
- __p += '\n';
910
- if (!ctx.disabled && (ctx.component.multiple || !ctx.files.length)) {
911
- __p += '\n ';
912
- if (ctx.self.useWebViewCamera) {
913
- __p += '\n <div class="fileSelector">\n <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> ' + ((__t = ctx.t('Gallery')) == null ? '' : __t) + '</button>\n <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> ' + ((__t = ctx.t('Camera')) == null ? '' : __t) + '</button>\n </div>\n ';
914
- } else if (!ctx.self.cameraMode) {
915
- __p += '\n <div class="fileSelector" ref="fileDrop" ' + ((__t = ctx.fileDropHidden ? 'hidden' : '') == null ? '' : __t) + '>\n <i class="' + ((__t = ctx.iconClass('cloud-upload')) == null ? '' : __t) + '"></i> ' + ((__t = ctx.t('Drop files to attach,')) == null ? '' : __t) + '\n ';
916
- if (ctx.self.imageUpload && ctx.component.webcam) {
917
- __p += '\n <a href="#" ref="toggleCameraMode"><i class="' + ((__t = ctx.iconClass('camera')) == null ? '' : __t) + '"></i> ' + ((__t = ctx.t('use camera')) == null ? '' : __t) + '</a>\n ';
918
- }
919
- __p += '\n ' + ((__t = ctx.t('or')) == null ? '' : __t) + '\n <a href="#" ref="fileBrowse" class="browse">\n ' + ((__t = ctx.t('browse')) == null ? '' : __t) + '\n <span class="sr-only">\n ' + ((__t = ctx.t('Browse to attach file for ' + ctx.component.label + '. ' + (ctx.component.description ? ctx.component.description + '. ' : '') + (!ctx.component.filePattern || ctx.component.filePattern === '*' ? 'Any file types are allowed' : ctx.t('Allowed file types: ') + ctx.component.filePattern))) == null ? '' : __t) + '\n </span>\n </a>\n <div ref="fileProcessingLoader" class="loader-wrapper">\n <div class="loader text-center"></div>\n </div>\n </div>\n ';
920
- } else {
921
- __p += '\n <div class="video-container">\n <video class="video" autoplay="true" ref="videoPlayer" tabindex="-1"></video>\n </div>\n <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> ' + ((__t = ctx.t('Take Picture')) == null ? '' : __t) + '</button>\n <button class="btn btn-primary" ref="toggleCameraMode">' + ((__t = ctx.t('Switch to file upload')) == null ? '' : __t) + '</button>\n ';
922
- }
923
- __p += '\n';
924
- }
925
- __p += '\n';
926
- ctx.statuses.forEach(function (status) {
927
- __p += '\n <div class="file ' + ((__t = ctx.statuses.status === 'error' ? ' has-error' : '') == null ? '' : __t) + '">\n <div class="grid grid-cols-12 gap-4">\n <div class="fileName col-form-label sm:col-span-10">' + ((__t = status.originalName) == null ? '' : __t) + '\n <i class="' + ((__t = ctx.iconClass('remove')) == null ? '' : __t) + '" ref="fileStatusRemove">\n <span class="sr-only">' + ((__t = ctx.t('Remove button. Press to remove ' + status.originalName || status.name + '.')) == null ? '' : __t) + '</span>\n <span class="sr-only">' + ((__t = status.message ? status.message.replace(';', '.') : '') == null ? '' : __t) + '</span>\n </i>\n </div>\n <div class="fileSize col-form-label sm:col-span-2 text-right">' + ((__t = ctx.fileSize(status.size)) == null ? '' : __t) + '</div>\n </div>\n <div class="grid grid-cols-12 gap-4">\n <div class="sm:col-span-12">\n ';
928
- if (status.status === 'progress') {
929
- __p += '\n <div class="progress">\n <div class="progress-bar" role="progressbar" aria-valuenow="' + ((__t = status.progress) == null ? '' : __t) + '" aria-valuemin="0" aria-valuemax="100" style="width: ' + ((__t = status.progress) == null ? '' : __t) + '%">\n <span class="sr-only">' + ((__t = status.progress) == null ? '' : __t) + '% ' + ((__t = ctx.t('Complete')) == null ? '' : __t) + '</span>\n </div>\n </div>\n ';
930
- } else if (status.status === 'error') {
931
- __p += '\n <div class="alert alert-danger bg-' + ((__t = status.status) == null ? '' : __t) + '">' + ((__t = ctx.t(status.message)) == null ? '' : __t) + '</div>\n ';
932
- } else {
933
- __p += '\n <div class="bg-' + ((__t = status.status) == null ? '' : __t) + '">' + ((__t = ctx.t(status.message)) == null ? '' : __t) + '</div>\n ';
934
- }
935
- __p += '\n </div>\n </div>\n </div>\n';
936
- });
937
- __p += '\n';
938
- if (!ctx.component.storage || ctx.support.hasWarning) {
939
- __p += '\n <div class="alert alert-warning">\n ';
940
- if (!ctx.component.storage) {
941
- __p += '\n <p>' + ((__t = ctx.t('No storage has been set for this field. File uploads are disabled until storage is set up.')) == null ? '' : __t) + '</p>\n ';
942
- }
943
- __p += '\n ';
944
- if (!ctx.support.filereader) {
945
- __p += '\n <p>' + ((__t = ctx.t('File API & FileReader API not supported.')) == null ? '' : __t) + '</p>\n ';
946
- }
947
- __p += '\n ';
948
- if (!ctx.support.formdata) {
949
- __p += '\n <p>' + ((__t = ctx.t("XHR2's FormData is not supported.")) == null ? '' : __t) + '</p>\n ';
950
- }
951
- __p += '\n ';
952
- if (!ctx.support.progress) {
953
- __p += '\n <p>' + ((__t = ctx.t("XHR2's upload progress isn't supported.")) == null ? '' : __t) + '</p>\n ';
954
- }
955
- __p += '\n </div>\n';
956
- }
957
- __p += '\n';
958
- return __p;
959
- }
960
-
961
- var file = {
962
- form: form$z
963
- };
964
-
965
- function form$y (ctx) {
966
- var __t,
967
- __p = '';
968
- __p += '<' + ((__t = ctx.tag) == null ? '' : __t) + ' class="' + ((__t = ctx.component.className) == null ? '' : __t) + '" ref="html"\n ';
969
- ctx.attrs.forEach(function (attr) {
970
- __p += '\n ' + ((__t = attr.attr) == null ? '' : __t) + '="' + ((__t = attr.value) == null ? '' : __t) + '"\n ';
971
- });
972
- __p += '\n>' + ((__t = ctx.t(ctx.content)) == null ? '' : __t);
973
- if (!ctx.singleTags || ctx.singleTags.indexOf(ctx.tag) === -1) {
974
- __p += '</' + ((__t = ctx.tag) == null ? '' : __t) + '>';
975
- }
976
- __p += '\n';
977
- return __p;
978
- }
979
-
980
- var html$6 = {
981
- form: form$y
982
- };
983
-
984
- function form$x (ctx) {
985
- var __t,
986
- __p = '';
987
- __p += '<i ref="' + ((__t = ctx.ref) == null ? '' : __t) + '" class="' + ((__t = ctx.className) == null ? '' : __t) + '" style="' + ((__t = ctx.styles) == null ? '' : __t) + '">' + ((__t = ctx.content) == null ? '' : __t) + '</i>\n';
988
- return __p;
989
- }
990
-
991
- var icon = {
992
- form: form$x
993
- };
994
-
995
- const ICONS = {
996
- remove: "bxs-trash",
997
- "question-sign": "bx-question-mark inline-block border-1 bg-gray-400 border-solid border-gray-400 text-white text-xxs rounded-full mx-2 mt-px",
998
- "new-window": "bx-windows",
999
- "minus-square-o": "bxs-minus-square",
1000
- cog: "bx-cog",
1001
- move: "bx-move",
1002
- wrench: "bx-wrench",
1003
- save: "bx-save",
1004
- copy: "bx-copy",
1005
- calendar: "bx-calendar",
1006
- file: "bx-file",
1007
- wpforms: "bxs-spreadsheet",
1008
- "files-o": "bx-copy-alt",
1009
- refresh: "bx-refresh",
1010
- indent: "bx-right-indent",
1011
- tasks: "bx-list-ul",
1012
- th: "bx-table",
1013
- "th-list": "bxs-spreadsheet",
1014
- "folder-open": "bx-folder-open",
1015
- "folder-o": "bx-folder-open",
1016
- "user-secret": "bxs-user-badge",
1017
- table: "bx-table",
1018
- pencil: "bx-pencil",
1019
- code: "bx-code",
1020
- terminal: "bx-terminal",
1021
- home: "bx-home",
1022
- html5: "bxl-html5",
1023
- list: "bx-list-ul",
1024
- usd: "bx-dollar",
1025
- hashtag: "bx-hash",
1026
- tags: "bx-purchase-tag",
1027
- at: "bx-at",
1028
- font: "bx-font",
1029
- asterisk: "bx-show",
1030
- plus: "bx-plus",
1031
- "plus-square": "bx-plus-circle",
1032
- "plus-square-o": "bxs-plus-square",
1033
- "dot-circle-o": "bx-radio-circle-marked",
1034
- "phone-square": "bx-phone",
1035
- "clock-o": "bx-time-five",
1036
- link: "bx-link",
1037
- columns: "bx-columns",
1038
- "th-large": "bx-category",
1039
- "list-alt": "bx-credit-card-front",
1040
- "square-o": "bx-caret-down-square",
1041
- cubes: "bxs-cube",
1042
- stop: "bx-stop",
1043
- "check-square": "bx-checkbox-checked",
1044
- "remove-circle": "bx-x",
1045
- bars: "bx-menu"
1046
- };
1047
- var iconClass = ((iconset, name, spinning) => {
1048
- if (iconset === "bx") {
1049
- if (ICONS[name]) {
1050
- name = ICONS[name];
1051
- } else {
1052
- name = iconset + "-" + name;
1053
- }
1054
- }
1055
- if (spinning) {
1056
- if (name === "bx-radio-circle") {
1057
- return iconset + " " + name + " bx-burst";
1058
- }
1059
- return iconset + " " + name + " bx-spin";
1060
- }
1061
- return iconset + " " + name;
1062
- });
1063
-
1064
- function form$w (ctx) {
1065
- var __t,
1066
- __p = '';
1067
- if (ctx.prefix || ctx.suffix) {
1068
- __p += '\n<div class="input-group">\n ';
1069
- }
1070
- __p += '\n ';
1071
- if (ctx.prefix) {
1072
- __p += '\n <div class="input-group-prepend" ref="prefix">\n <span class="input-group-text">\n ';
1073
- if (ctx.prefix instanceof HTMLElement) {
1074
- __p += '\n ' + ((__t = ctx.t(ctx.prefix.outerHTML, {
1075
- _userInput: true
1076
- })) == null ? '' : __t) + '\n ';
1077
- } else {
1078
- __p += '\n ' + ((__t = ctx.t(ctx.prefix, {
1079
- _userInput: true
1080
- })) == null ? '' : __t) + '\n ';
1081
- }
1082
- __p += '\n </span>\n </div>\n ';
1083
- }
1084
- __p += '\n ';
1085
- if (!ctx.component.editor && !ctx.component.wysiwyg) {
1086
- __p += '\n <' + ((__t = ctx.input.type) == null ? '' : __t) + '\n ref="' + ((__t = ctx.input.ref ? ctx.input.ref : 'input') == null ? '' : __t) + '"\n ';
1087
- for (var attr in ctx.input.attr) {
1088
- __p += '\n ' + ((__t = attr) == null ? '' : __t) + '="' + ((__t = ctx.input.attr[attr]) == null ? '' : __t) + '"\n ';
1089
- }
1090
- __p += '\n id="' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '"\n aria-labelledby="l-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + ' ';
1091
- if (ctx.component.description) {
1092
- __p += 'd-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t);
1093
- }
1094
- __p += '"\n aria-required="' + ((__t = ctx.input.ref === 'input' || !ctx.input.ref ? ctx.component.validate.required : ctx.component.fields && ctx.component.fields[ctx.input.ref] && ctx.component.fields[ctx.input.ref].required || false) == null ? '' : __t) + '"\n >' + ((__t = ctx.input.content) == null ? '' : __t) + '</' + ((__t = ctx.input.type) == null ? '' : __t) + '>\n ';
1095
- if (ctx.hasValueMaskInput) {
1096
- __p += '\n <input ref="valueMaskInput" />\n ';
1097
- }
1098
- __p += '\n';
1099
- }
1100
- __p += '\n';
1101
- if (ctx.component.editor || ctx.component.wysiwyg) {
1102
- __p += '\n <div ref="input"></div>\n';
1103
- }
1104
- __p += '\n';
1105
- if (ctx.component.type === 'datetime') {
1106
- __p += '\n<span aria-live="assertive" id="' + ((__t = ctx.instance.id) == null ? '' : __t) + '-liveRegion" class="sr-only" ref="liveRegion"></span>\n';
1107
- }
1108
- __p += '\n';
1109
- if (ctx.suffix) {
1110
- __p += '\n <div class="input-group-append" ref="suffix">\n <span class="input-group-text">\n ';
1111
- if (ctx.suffix instanceof HTMLElement) {
1112
- __p += '\n ' + ((__t = ctx.t(ctx.suffix.outerHTML, {
1113
- _userInput: true
1114
- })) == null ? '' : __t) + '\n ';
1115
- } else {
1116
- __p += '\n ' + ((__t = ctx.t(ctx.suffix, {
1117
- _userInput: true
1118
- })) == null ? '' : __t) + '\n ';
1119
- }
1120
- __p += '\n </span>\n </div>\n';
1121
- }
1122
- __p += '\n';
1123
- if (ctx.prefix || ctx.suffix) {
1124
- __p += '\n </div>\n';
1125
- }
1126
- __p += '\n';
1127
- if (ctx.component.showCharCount || ctx.component.showWordCount) {
1128
- __p += '\n<div class="form-text ' + ((__t = ctx.component.description ? 'pull-right' : 'text-right') == null ? '' : __t) + '">\n ';
1129
- if (ctx.component.showCharCount) {
1130
- __p += '\n <span class="text-muted" ref="charcount" aria-live="polite"></span>\n ';
1131
- }
1132
- __p += '\n ';
1133
- if (ctx.component.showWordCount) {
1134
- __p += '\n <span class="text-muted" ref="wordcount" aria-live="polite"></span>\n ';
1135
- }
1136
- __p += '\n</div>\n';
1137
- }
1138
- __p += '\n';
1139
- return __p;
1140
- }
1141
-
1142
- function html$5 (ctx) {
1143
- var __t,
1144
- __p = '';
1145
- __p += '<div ref="value">';
1146
- if (ctx.value) {
1147
- __p += (__t = ctx.value) == null ? '' : __t;
1148
- } else {
1149
- __p += '-';
1150
- }
1151
- __p += '</div>\n';
1152
- return __p;
1153
- }
1154
-
1155
- var input = {
1156
- form: form$w,
1157
- html: html$5
1158
- };
1159
-
1160
- function form$v (ctx) {
1161
- var __t,
1162
- __p = '';
1163
- __p += '<label\n ref="label"\n class="col-form-label ' + ((__t = ctx.label.className) == null ? '' : __t) + '"\n for="' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '"\n id="l-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '"\n>\n ' + ((__t = ctx.t(ctx.component.label, {
1164
- _userInput: true
1165
- })) == null ? '' : __t) + '\n ';
1166
- if (ctx.component.type === 'number' || ctx.component.type === 'phoneNumber' || ctx.component.type === 'currency') {
1167
- __p += '\n <span class=\'sr-only\'>, ' + ((__t = ctx.t('numeric only')) == null ? '' : __t) + ',</span>\n ';
1168
- }
1169
- __p += '\n ';
1170
- if (ctx.component.tooltip) {
1171
- __p += '\n <i ref="tooltip" tabindex="0" class="' + ((__t = ctx.iconClass('question-sign')) == null ? '' : __t) + ' text-muted" data-tooltip="' + ((__t = ctx.component.tooltip) == null ? '' : __t) + '"></i>\n ';
1172
- }
1173
- __p += '\n</label>\n';
1174
- return __p;
1175
- }
1176
-
1177
- var label = {
1178
- form: form$v
1179
- };
1180
-
1181
- function form$u (ctx) {
1182
- var __p = '';
1183
- __p += '<div class="formio-loader">\n <div class="loader-wrapper">\n <div class="loader text-center"></div>\n </div> \n</div>\n';
1184
- return __p;
1185
- }
1186
-
1187
- var loader = {
1188
- form: form$u
1189
- };
1190
-
1191
- function form$t (ctx) {
1192
- var __t,
1193
- __p = '';
1194
- __p += ((__t = ctx.t('Loading')) == null ? '' : __t) + '...\n';
1195
- return __p;
1196
- }
1197
-
1198
- var loading = {
1199
- form: form$t
1200
- };
1201
-
1202
- function form$s (ctx) {
1203
- var __t,
1204
- __p = '';
1205
- __p += '<div id="' + ((__t = ctx.mapId) == null ? '' : __t) + '" style="min-height: 300px; height: calc(100vh - 600px);" ref="gmapElement"></div>\n';
1206
- return __p;
1207
- }
1208
-
1209
- var map = {
1210
- form: form$s
1211
- };
1212
-
1213
- function form$r (ctx) {
1214
- var __t,
1215
- __p = '';
1216
- __p += '<div id="e-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.key) == null ? '' : __t) + '" class="form-text ' + ((__t = ctx.level || 'error') == null ? '' : __t) + '">' + ((__t = ctx.message) == null ? '' : __t) + '</div>\n';
1217
- return __p;
1218
- }
1219
-
1220
- var message = {
1221
- form: form$r
1222
- };
1223
-
1224
- function form$q (ctx) {
1225
- var __t,
1226
- __p = '';
1227
- __p += '<div class="formio-dialog formio-dialog-theme-default formio-modaledit-dialog">\n <div ref="overlay" class="formio-dialog-overlay"></div>\n <div ref="content" class="formio-modaledit-content">\n <button\n ref="close"\n type="button"\n role="button"\n class="btn btn-primary btn-xs formio-modaledit-close">\n ' + ((__t = ctx.t('Close')) == null ? '' : __t) + '\n </button>\n <div ref="inner" class="reset-margins"></div>\n </div>\n</div>\n';
1228
- return __p;
1229
- }
1230
-
1231
- var modaldialog = {
1232
- form: form$q
1233
- };
1234
-
1235
- function form$p (ctx) {
1236
- var __t,
1237
- __p = '';
1238
- __p += '<div ref="container" class="formio-modaledit-view-container">\n <button\n ref="edit"\n type="button"\n role="button"\n class="btn btn-xxs btn-warning formio-modaledit-edit">\n <i class="' + ((__t = ctx.iconClass('edit')) == null ? '' : __t) + '"></i>\n </button>\n <div ref="input" class="modaledit-view-inner reset-margins">' + ((__t = ctx.content) == null ? '' : __t) + '</div>\n</div>\n';
1239
- return __p;
1240
- }
1241
-
1242
- var modaledit = {
1243
- form: form$p
1244
- };
1245
-
1246
- function form$o (ctx) {
1247
- var __t,
1248
- __p = '';
1249
- __p += '<label id="l-' + ((__t = ctx.component.key) == null ? '' : __t) + '" class="control-label ' + ((__t = ctx.label.className) == null ? '' : __t) + '">\n ' + ((__t = ctx.t(ctx.component.label, {
1250
- _userInput: true
1251
- })) == null ? '' : __t) + '<span ref="modalLabelValue" class="sr-only">. ' + ((__t = ctx.component.type === 'signature' ? ctx.self.getValueAsString(ctx.previewText) : ctx.previewText) == null ? '' : __t) + '</span>\n</label><br>\n<span class="sr-only" ref="modalPreviewLiveRegion" aria-live="assertive"></span>\n<button\n lang="en"\n class="btn btn-light btn-md open-modal-button form-control ' + ((__t = ctx.openModalBtnClasses || '') == null ? '' : __t) + '"\n ref="openModal"\n aria-labelledby="l-' + ((__t = ctx.component.key) == null ? '' : __t) + '"\n>\n ' + ((__t = ctx.previewText) == null ? '' : __t) + '\n</button>\n<div class="formio-errors invalid-feedback">\n ' + ((__t = ctx.messages) == null ? '' : __t) + '\n</div>\n';
1252
- return __p;
1253
- }
1254
-
1255
- var modalPreview = {
1256
- form: form$o
1257
- };
1258
-
1259
- function form$n (ctx) {
1260
- var __t,
1261
- __p = '';
1262
- __p += '<div\n class="input-group formio-multiple-mask-container"\n ref="' + ((__t = ctx.input.ref ? ctx.input.ref : 'input') == null ? '' : __t) + '"\n>\n <select\n class="form-control formio-multiple-mask-select"\n id="' + ((__t = ctx.key) == null ? '' : __t) + '-mask"\n ref="select"\n ';
1263
- if (ctx.input.attr.disabled) {
1264
- __p += 'disabled';
1265
- }
1266
- __p += '>\n ';
1267
- ctx.selectOptions.forEach(function (option) {
1268
- __p += '\n <option value="' + ((__t = option.value) == null ? '' : __t) + '">' + ((__t = option.label) == null ? '' : __t) + '</option>\n ';
1269
- });
1270
- __p += '\n </select>\n <input\n ref="mask"\n ';
1271
- for (var attr in ctx.input.attr) {
1272
- __p += '\n ' + ((__t = attr) == null ? '' : __t) + '="' + ((__t = ctx.input.attr[attr]) == null ? '' : __t) + '"\n ';
1273
- }
1274
- __p += '\n >\n</div>\n';
1275
- return __p;
1276
- }
1277
-
1278
- var multipleMasksInput = {
1279
- form: form$n
1280
- };
1281
-
1282
- function form$m (ctx) {
1283
- var __t,
1284
- __p = '';
1285
- __p += '<tr ref="row">\n <td>\n ' + ((__t = ctx.element) == null ? '' : __t) + '\n </td>\n ';
1286
- if (!ctx.disabled) {
1287
- __p += '\n <td>\n <button type="button" class="btn btn-secondary" ref="removeRow">\n <i class="' + ((__t = ctx.iconClass('remove-circle')) == null ? '' : __t) + '"></i>\n </button>\n </td>\n ';
1288
- }
1289
- __p += '\n</tr>\n';
1290
- return __p;
1291
- }
1292
-
1293
- var multiValueRow = {
1294
- form: form$m
1295
- };
1296
-
1297
- function form$l (ctx) {
1298
- var __t,
1299
- __p = '';
1300
- __p += '<table class="table table-bordered">\n <tbody>\n ' + ((__t = ctx.rows) == null ? '' : __t) + '\n ';
1301
- if (!ctx.disabled) {
1302
- __p += '\n <tr>\n <td colspan="2">\n <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="' + ((__t = ctx.iconClass('plus')) == null ? '' : __t) + '"></i> ' + ((__t = ctx.t(ctx.addAnother, {
1303
- _userInput: true
1304
- })) == null ? '' : __t) + '</button>\n </td>\n </tr>\n ';
1305
- }
1306
- __p += '\n </tbody>\n</table>\n';
1307
- return __p;
1308
- }
1309
-
1310
- var multiValueTable = {
1311
- form: form$l
1312
- };
1313
-
1314
- function form$k (ctx) {
1315
- var __t,
1316
- __p = '';
1317
- __p += '<div class="mb-2 card border">\n ';
1318
- if (!ctx.component.hideLabel || ctx.builder || ctx.component.collapsible || ctx.component.tooltip) {
1319
- __p += '\n <div class="card-header ' + ((__t = ctx.transform('class', 'bg-' + ctx.component.theme)) == null ? '' : __t) + '"\n ';
1320
- if (ctx.component.collapsible) {
1321
- __p += '\n tabindex="0"\n ';
1322
- }
1323
- __p += '\n role="button"\n aria-expanded="' + ((__t = ctx.component.collapsible ? !ctx.collapsed : true) == null ? '' : __t) + '"\n aria-controls="' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '"\n ref="header"\n >\n <span class="mb-0 card-title ';
1324
- if (ctx.component.theme && ctx.component.theme !== 'default') {
1325
- __p += 'text-light';
1326
- }
1327
- __p += '">\n ';
1328
- if (ctx.component.collapsible) {
1329
- __p += '\n <i class="formio-collapse-icon ' + ((__t = ctx.iconClass(ctx.collapsed ? 'plus-square-o' : 'minus-square-o')) == null ? '' : __t) + ' text-muted" data-title="Collapse Panel"></i>\n ';
1330
- }
1331
- __p += '\n ';
1332
- if (!ctx.component.hideLabel || ctx.builder) {
1333
- __p += '\n ' + ((__t = ctx.t(ctx.component.title, {
1334
- _userInput: true
1335
- })) == null ? '' : __t) + '\n ';
1336
- }
1337
- __p += '\n ';
1338
- if (ctx.component.tooltip) {
1339
- __p += '\n <i ref="tooltip" tabindex="0" class="' + ((__t = ctx.iconClass('question-sign')) == null ? '' : __t) + ' text-muted" data-tooltip="' + ((__t = ctx.component.tooltip) == null ? '' : __t) + '"></i>\n ';
1340
- }
1341
- __p += '\n </span>\n </div>\n ';
1342
- }
1343
- __p += '\n ';
1344
- if (!ctx.collapsed || ctx.builder) {
1345
- __p += '\n <div class="card-body" ref="' + ((__t = ctx.nestedKey) == null ? '' : __t) + '" id="' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '">\n ' + ((__t = ctx.children) == null ? '' : __t) + '\n </div>\n ';
1346
- }
1347
- __p += '\n</div>\n';
1348
- return __p;
1349
- }
1350
-
1351
- var panel = {
1352
- form: form$k
1353
- };
1354
-
1355
- function form$j (ctx) {
1356
- var __t,
1357
- __p = '';
1358
- __p += '<div class="' + ((__t = ctx.classes) == null ? '' : __t) + '" ref="webform">\n <button data-noattach="true" ref="zoomIn" style="position:absolute;right:10px;top:10px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n <i class="' + ((__t = ctx.iconClass('zoom-in')) == null ? '' : __t) + '"></i>\n </button>\n <button data-noattach="true" ref="zoomOut" style="position:absolute;right:10px;top:60px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n <i class="' + ((__t = ctx.iconClass('zoom-out')) == null ? '' : __t) + '"></i>\n </button>\n <div data-noattach="true" ref="iframeContainer"></div>\n ' + ((__t = ctx.submitButton) == null ? '' : __t) + '\n</div>\n';
1359
- return __p;
1360
- }
1361
-
1362
- var pdf = {
1363
- form: form$j
1364
- };
1365
-
1366
- function form$i (ctx) {
1367
- var __t,
1368
- __p = '';
1369
- __p += '<div class="formio builder grid grid-cols-12 gap-4 formbuilder">\n <div class="col-span-12 xs:col-span-4 sm:col-span-3 md:col-span-2 formcomponents">\n ' + ((__t = ctx.sidebar) == null ? '' : __t) + '\n </div>\n <div class="col-span-12 xs:col-span-8 sm:col-span-9 md:col-span-10 formarea" ref="form">\n <div class="formio-drop-zone" ref="iframeDropzone"></div>\n ' + ((__t = ctx.form) == null ? '' : __t) + '\n </div>\n</div>\n';
1370
- return __p;
1371
- }
1372
-
1373
- var pdfBuilder = {
1374
- form: form$i
1375
- };
1376
-
1377
- function form$h (ctx) {
1378
- var __t,
1379
- __p = '';
1380
- __p += '<div class="pdf-upload formio-component-file">\n <h3 class="label">' + ((__t = ctx.t('Upload a PDF File')) == null ? '' : __t) + '</h3>\n <input type="file" style="opacity: 0; position: absolute;" tabindex="-1" accept=".pdf" ref="hiddenFileInputElement">\n <div class="fileSelector" ref="fileDrop">\n <span ref="dragDropText">\n <i class="' + ((__t = ctx.iconClass('cloud-upload')) == null ? '' : __t) + '"></i>' + ((__t = ctx.t('Drop pdf to start, or')) == null ? '' : __t) + ' <a href="#" ref="fileBrowse" class="browse">' + ((__t = ctx.t('browse')) == null ? '' : __t) + '</a>\n </span>\n <div class="progress pdf-progress" ref="uploadProgressWrapper" style="display:none;">\n <div class="progress-bar" ref="uploadProgress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>\n </div>\n </div>\n <div class="alert alert-danger" ref="uploadError">\n\n </div>\n</div>\n\n';
1381
- return __p;
1382
- }
1383
-
1384
- var pdfBuilderUpload = {
1385
- form: form$h
1386
- };
1387
-
1388
- function form$g (ctx) {
1389
- var __t,
1390
- __p = '';
1391
- __p += '<div\n class="form-radio radio"\n ref="radioGroup"\n role="' + ((__t = ctx.component.type === 'selectboxes' ? 'group' : 'radiogroup') == null ? '' : __t) + '"\n aria-required="' + ((__t = ctx.input.component.validate.required) == null ? '' : __t) + '"\n aria-labelledby="l-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '"\n ';
1392
- if (ctx.component.description) {
1393
- __p += '\n aria-describedby="d-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '"\n ';
1394
- }
1395
- __p += '\n>\n ';
1396
- ctx.values.forEach(function (item) {
1397
- __p += '\n <div class="' + ((__t = ctx.input.attr.type) == null ? '' : __t) + ' ' + ((__t = ctx.component.optionsLabelPosition && ctx.component.optionsLabelPosition !== 'right' ? 'pl-0' : '') == null ? '' : __t) + ' form-check' + ((__t = ctx.inline ? '-inline' : '') == null ? '' : __t) + '" ref="wrapper">\n <label class="form-check-label label-position-' + ((__t = ctx.component.optionsLabelPosition) == null ? '' : __t) + '" for="' + ((__t = ctx.instance.root && ctx.instance.root.id) == null ? '' : __t) + '-' + ((__t = ctx.id) == null ? '' : __t) + '-' + ((__t = ctx.row) == null ? '' : __t) + '-' + ((__t = item.value) == null ? '' : __t) + '">\n ';
1398
- if (ctx.component.optionsLabelPosition === 'left' || ctx.component.optionsLabelPosition === 'top') {
1399
- __p += '\n <span>' + ((__t = ctx.t(item.label, {
1400
- _userInput: true
1401
- })) == null ? '' : __t) + '</span>\n ';
1402
- }
1403
- __p += '\n <' + ((__t = ctx.input.type) == null ? '' : __t) + '\n ref="input"\n ';
1404
- for (var attr in ctx.input.attr) {
1405
- __p += '\n ' + ((__t = attr) == null ? '' : __t) + '="' + ((__t = ctx.input.attr[attr]) == null ? '' : __t) + '"\n ';
1406
- }
1407
- __p += '\n value="' + ((__t = item.value) == null ? '' : __t) + '"\n ';
1408
- if (ctx.value && (ctx.value === item.value || typeof ctx.value === 'object' && ctx.value.hasOwnProperty(item.value) && ctx.value[item.value])) {
1409
- __p += '\n checked=true\n ';
1410
- }
1411
- __p += '\n ';
1412
- if (item.disabled) {
1413
- __p += '\n disabled=true\n ';
1414
- }
1415
- __p += '\n id="' + ((__t = ctx.instance.root && ctx.instance.root.id) == null ? '' : __t) + '-' + ((__t = ctx.id) == null ? '' : __t) + '-' + ((__t = ctx.row) == null ? '' : __t) + '-' + ((__t = item.value) == null ? '' : __t) + '"\n role="' + ((__t = ctx.component.type === 'selectboxes' ? 'checkbox' : 'radio') == null ? '' : __t) + '"\n >\n ';
1416
- if (!ctx.component.optionsLabelPosition || ctx.component.optionsLabelPosition === 'right' || ctx.component.optionsLabelPosition === 'bottom') {
1417
- __p += '\n <span>' + ((__t = ctx.t(item.label, {
1418
- _userInput: true
1419
- })) == null ? '' : __t) + '</span>\n ';
1420
- }
1421
- __p += '\n </label>\n </div>\n ';
1422
- });
1423
- __p += '\n</div>\n';
1424
- return __p;
1425
- }
1426
-
1427
- function html$4 (ctx) {
1428
- var __t,
1429
- __p = '';
1430
- __p += '<div ref="value">\n ';
1431
- var filtered = ctx.values.filter(function (item) {
1432
- return ctx.value === item.value || typeof ctx.value === 'object' && ctx.value.hasOwnProperty(item.value) && ctx.value[item.value];
1433
- }).map(function (item) {
1434
- return ctx.t(item.label, {
1435
- _userInput: true
1436
- });
1437
- }).join(', ');
1438
- __p += '\n ' + ((__t = filtered) == null ? '' : __t) + '\n</div>\n';
1439
- return __p;
1440
- }
1441
-
1442
- var radio = {
1443
- form: form$g,
1444
- html: html$4
1445
- };
1446
-
1447
- function form$f (ctx) {
1448
- var __t,
1449
- __p = '';
1450
- __p += '<table class="table table-bordered">\n <tbody>\n <tr>\n <td>\n ' + ((__t = ctx.element) == null ? '' : __t) + '\n </td>\n </tr>\n <tr>\n <td colspan="2">\n <button class="btn btn-primary formio-button-add-resource" ref="addResource">\n <i class="' + ((__t = ctx.iconClass('plus')) == null ? '' : __t) + ' mr-1"></i>\n ' + ((__t = ctx.t(ctx.component.addResourceLabel || 'Add Resource', {
1451
- _userInput: true
1452
- })) == null ? '' : __t) + '\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n';
1453
- return __p;
1454
- }
1455
-
1456
- var resourceAdd = {
1457
- form: form$f
1458
- };
1459
-
1460
- function form$e (ctx) {
1461
- var __t,
1462
- __p = '';
1463
- __p += '<select\n ref="' + ((__t = ctx.input.ref ? ctx.input.ref : 'selectContainer') == null ? '' : __t) + '"\n ' + ((__t = ctx.input.multiple ? 'multiple' : '') == null ? '' : __t) + '\n ';
1464
- for (var attr in ctx.input.attr) {
1465
- __p += '\n ' + ((__t = attr) == null ? '' : __t) + '="' + ((__t = ctx.input.attr[attr]) == null ? '' : __t) + '"\n ';
1466
- }
1467
- __p += '\n ';
1468
- if (!ctx.input.attr.id) {
1469
- __p += '\n id="' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '"\n ';
1470
- }
1471
- __p += '\n ';
1472
- if (ctx.component.description) {
1473
- __p += '\n aria-describedby="d-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '"\n ';
1474
- }
1475
- __p += '\n aria-required="' + ((__t = ctx.input.ref === 'selectContainer' || !ctx.input.ref ? ctx.input.component.validate.required : ctx.component.fields[ctx.input.ref].required) == null ? '' : __t) + '"\n>' + ((__t = ctx.selectOptions) == null ? '' : __t) + '</select>\n<input type="text"\n class="formio-select-autocomplete-input"\n ref="autocompleteInput"\n ';
1476
- if (ctx.input.attr.autocomplete) {
1477
- __p += '\n autocomplete="' + ((__t = ctx.input.attr.autocomplete) == null ? '' : __t) + '"\n ';
1478
- }
1479
- __p += '\n tabindex="-1"\n aria-label="' + ((__t = ctx.t('autocomplete')) == null ? '' : __t) + '"\n/>\n';
1480
- return __p;
1481
- }
1482
-
1483
- function html$3 (ctx) {
1484
- var __t,
1485
- __p = '';
1486
- __p += '<div ref="value">';
1487
- if (ctx.value) {
1488
- __p += (__t = ctx.self.itemValueForHTMLMode(ctx.value)) == null ? '' : __t;
1489
- } else {
1490
- __p += '-';
1491
- }
1492
- __p += '</div>\n';
1493
- return __p;
1494
- }
1495
-
1496
- var select = {
1497
- form: form$e,
1498
- html: html$3
1499
- };
1500
-
1501
- function form$d (ctx) {
1502
- var __t,
1503
- __p = '';
1504
- __p += '<option ' + ((__t = ctx.selected ? 'selected="selected"' : '') == null ? '' : __t) + '\n value=\'' + ((__t = ctx.useId ? ctx.id : ctx.option.value) == null ? '' : __t) + '\'\n ';
1505
- for (var attr in ctx.attrs) {
1506
- __p += '\n ' + ((__t = attr) == null ? '' : __t) + '="' + ((__t = ctx.attrs[attr]) == null ? '' : __t) + '"\n ';
1507
- }
1508
- __p += '\n >\n ' + ((__t = ctx.t(ctx.option.label, {
1509
- _userInput: true
1510
- })) == null ? '' : __t) + '\n</option>\n';
1511
- return __p;
1512
- }
1513
-
1514
- function html$2 (ctx) {
1515
- var __t,
1516
- __p = '';
1517
- if (ctx.selected) {
1518
- __p += (__t = ctx.t(ctx.option.label, {
1519
- _userInput: true
1520
- })) == null ? '' : __t;
1521
- }
1522
- __p += '\n';
1523
- return __p;
1524
- }
1525
-
1526
- var selectOption = {
1527
- form: form$d,
1528
- html: html$2
1529
- };
1530
-
1531
- function form$c (ctx) {
1532
- var __t,
1533
- __p = '';
1534
- __p += ((__t = ctx.element) == null ? '' : __t) + '\n<div\n class="signature-pad-body"\n style="width: ' + ((__t = ctx.component.width) == null ? '' : __t) + ';height: ' + ((__t = ctx.component.height) == null ? '' : __t) + ';padding:0;margin:0;"\n tabindex="' + ((__t = ctx.component.tabindex || 0) == null ? '' : __t) + '"\n ref="padBody"\n>\n <button class="btn btn-sm btn-light signature-pad-refresh" ref="refresh">\n <i class="' + ((__t = ctx.iconClass('refresh')) == null ? '' : __t) + '"></i>\n </button>\n <canvas class="signature-pad-canvas" style="display: none;" height="' + ((__t = ctx.component.height) == null ? '' : __t) + '" ref="canvas"></canvas>\n ';
1535
- if (ctx.required) {
1536
- __p += '\n <span class="form-control-feedback field-required-inline text-danger">\n <i class="' + ((__t = ctx.iconClass('asterisk')) == null ? '' : __t) + '"></i>\n </span>\n ';
1537
- }
1538
- __p += '\n <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n';
1539
- if (ctx.component.footer) {
1540
- __p += '\n <div class="signature-pad-footer">\n ' + ((__t = ctx.t(ctx.component.footer, {
1541
- _userInput: true
1542
- })) == null ? '' : __t) + '\n </div>\n';
1543
- }
1544
- __p += '\n';
1545
- return __p;
1546
- }
1547
-
1548
- function html$1 (ctx) {
1549
- var __p = '';
1550
- __p += '<img style="width: 100%;" ref="signatureImage">\n';
1551
- return __p;
1552
- }
1553
-
1554
- var signature = {
1555
- form: form$c,
1556
- html: html$1
1557
- };
1558
-
1559
- function form$b (ctx) {
1560
- var __t,
1561
- __p = '';
1562
- __p += '<table class="table table-striped table-bordered" aria-labelledby="l-' + ((__t = ctx.instance.id) == null ? '' : __t) + '-' + ((__t = ctx.component.key) == null ? '' : __t) + '">\n <thead>\n <tr>\n <th></th>\n ';
1563
- ctx.component.values.forEach(function (value) {
1564
- __p += '\n <th style="text-align: center;">\n ' + ((__t = ctx.t(value.label, {
1565
- _userInput: true
1566
- })) == null ? '' : __t) + '\n ';
1567
- if (value.tooltip) {
1568
- __p += '\n <i ref="tooltip" class="' + ((__t = ctx.iconClass('question-sign')) == null ? '' : __t) + ' text-muted" data-tooltip="' + ((__t = value.tooltip) == null ? '' : __t) + '"></i>\n ';
1569
- }
1570
- __p += '\n </th>\n ';
1571
- });
1572
- __p += '\n </tr>\n </thead>\n <tbody>\n ';
1573
- ctx.component.questions.forEach(function (question) {
1574
- __p += '\n <tr>\n <td>\n ' + ((__t = ctx.t(question.label)) == null ? '' : __t) + '\n ';
1575
- if (question.tooltip) {
1576
- __p += '\n <i ref="tooltip" class="' + ((__t = ctx.iconClass('question-sign')) == null ? '' : __t) + ' text-muted" data-tooltip="' + ((__t = question.tooltip) == null ? '' : __t) + '"></i>\n ';
1577
- }
1578
- __p += '\n </td>\n ';
1579
- ctx.component.values.forEach(function (value) {
1580
- __p += '\n <td style="text-align: center;">\n <input type="radio" name="' + ((__t = ctx.self.getInputName(question)) == null ? '' : __t) + '" value="' + ((__t = value.value) == null ? '' : __t) + '" id="' + ((__t = ctx.key) == null ? '' : __t) + '-' + ((__t = question.value) == null ? '' : __t) + '-' + ((__t = value.value) == null ? '' : __t) + '" ref="input">\n </td>\n ';
1581
- });
1582
- __p += '\n </tr>\n ';
1583
- });
1584
- __p += '\n </tbody>\n</table>\n';
1585
- return __p;
1586
- }
1587
-
1588
- function html (ctx) {
1589
- var __t,
1590
- __p = '';
1591
- __p += '<table class="table table-striped table-bordered">\n <tbody>\n ';
1592
- ctx.component.questions.forEach(function (question) {
1593
- __p += '\n <tr>\n <th>' + ((__t = ctx.t(question.label)) == null ? '' : __t) + '</th>\n <td>\n ';
1594
- ctx.component.values.forEach(function (item) {
1595
- __p += '\n ';
1596
- if (ctx.value && ctx.value.hasOwnProperty(question.value) && ctx.value[question.value] === item.value) {
1597
- __p += '\n ' + ((__t = ctx.t(item.label)) == null ? '' : __t) + '\n ';
1598
- }
1599
- __p += '\n ';
1600
- });
1601
- __p += '\n </td>\n </tr>\n ';
1602
- });
1603
- __p += '\n </tbody>\n</table>\n';
1604
- return __p;
1605
- }
1606
-
1607
- var survey = {
1608
- form: form$b,
1609
- html
1610
- };
1611
-
1612
- function flat (ctx) {
1613
- var __t,
1614
- __p = '';
1615
- ctx.component.components.forEach(function (tab, index) {
1616
- __p += '\n <div class="mb-2 card border">\n <div class="card-header bg-default">\n <h4 class="mb-0 card-title">' + ((__t = ctx.t(tab.label, {
1617
- _userInput: true
1618
- })) == null ? '' : __t) + '</h4>\n </div>\n <div\n class="card-body"\n ref="' + ((__t = ctx.tabKey) == null ? '' : __t) + '"\n >\n ' + ((__t = ctx.tabComponents[index]) == null ? '' : __t) + '\n </div>\n </div>\n';
1619
- });
1620
- __p += '\n';
1621
- return __p;
1622
- }
1623
-
1624
- function form$a (ctx) {
1625
- var __t,
1626
- __p = '';
1627
- __p += '<div class="card card-tabs { ctx.component.verticalLayout ? \' card-vertical\' : \'\'}}">\n <div class="card-header card-header-tabs">\n <ul class="nav nav-tabs ' + ((__t = ctx.component.verticalLayout ? ' nav-tabs-vertical' : '') == null ? '' : __t) + '" role="tablist">\n ';
1628
- ctx.component.components.forEach(function (tab, index) {
1629
- __p += '\n <li class="nav-item ' + ((__t = ctx.currentTab === index ? ' active' : '') == null ? '' : __t) + '" role="tab" ref="' + ((__t = ctx.tabLikey) == null ? '' : __t) + '">\n <a\n class="nav-link' + ((__t = ctx.currentTab === index ? ' active' : '') == null ? '' : __t) + '' + ((__t = ctx.component.verticalLayout ? ' nav-link-vertical' : '') == null ? '' : __t) + '"\n href="#' + ((__t = tab.key) == null ? '' : __t) + '"\n ref="' + ((__t = ctx.tabLinkKey) == null ? '' : __t) + '"\n >\n ' + ((__t = ctx.t(tab.label, {
1630
- _userInput: true
1631
- })) == null ? '' : __t) + '\n </a>\n <div class="nav-border"></div>\n </li>\n ';
1632
- });
1633
- __p += '\n </ul>\n </div>\n ';
1634
- ctx.component.components.forEach(function (tab, index) {
1635
- __p += '\n <div\n role="tabpanel"\n class="card-body tab-pane' + ((__t = ctx.currentTab === index ? ' active' : '') == null ? '' : __t) + '"\n style="display: ' + ((__t = ctx.currentTab === index ? 'block' : 'none') == null ? '' : __t) + '"\n ref="' + ((__t = ctx.tabKey) == null ? '' : __t) + '"\n >\n ' + ((__t = ctx.tabComponents[index]) == null ? '' : __t) + '\n </div>\n ';
1636
- });
1637
- __p += '\n</div>\n';
1638
- return __p;
1639
- }
1640
-
1641
- var tab = {
1642
- flat,
1643
- form: form$a
1644
- };
1645
-
1646
- function form$9 (ctx) {
1647
- var __t,
1648
- __p = '';
1649
- __p += '<table class="table\n ' + ((__t = ctx.component.striped ? 'table-striped' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.bordered ? 'table-bordered' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.hover ? 'table-hover' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.component.condensed ? 'table-sm' : '') == null ? '' : __t) + '\n ">\n <caption class="sr-only">' + ((__t = ctx.t(ctx.component.label)) == null ? '' : __t) + '</caption>\n ';
1650
- if (ctx.component.header && ctx.component.header.length > 0) {
1651
- __p += '\n <thead>\n <tr>\n ';
1652
- ctx.component.header.forEach(function (header) {
1653
- __p += '\n <th>' + ((__t = ctx.t(header)) == null ? '' : __t) + '</th>\n ';
1654
- });
1655
- __p += '\n </tr>\n </thead>\n ';
1656
- }
1657
- __p += '\n <tbody>\n ';
1658
- ctx.tableComponents.forEach(function (row, rowIndex) {
1659
- __p += '\n <tr ref="row-' + ((__t = ctx.id) == null ? '' : __t) + '">\n ';
1660
- row.forEach(function (column, colIndex) {
1661
- __p += '\n <td ref="' + ((__t = ctx.tableKey) == null ? '' : __t) + '-' + ((__t = rowIndex) == null ? '' : __t) + '"';
1662
- if (ctx.cellClassName) {
1663
- __p += ' class="' + ((__t = ctx.cellClassName) == null ? '' : __t) + '"';
1664
- }
1665
- __p += '>' + ((__t = column) == null ? '' : __t) + '</td>\n ';
1666
- });
1667
- __p += '\n </tr>\n ';
1668
- });
1669
- __p += '\n </tbody>\n</table>\n';
1670
- return __p;
1671
- }
1672
-
1673
- var table = {
1674
- form: form$9
1675
- };
1676
-
1677
- function form$8 (ctx) {
1678
- var __t,
1679
- __p = '';
1680
- ctx.children.forEach(function (component) {
1681
- __p += '\n <td class="editgrid-table-column">\n ' + ((__t = component) == null ? '' : __t) + '\n </td>\n';
1682
- });
1683
- __p += '\n';
1684
- return __p;
1685
- }
1686
-
1687
- var tableComponents = {
1688
- form: form$8
1689
- };
1690
-
1691
- function form$7 (ctx) {
1692
- var __t,
1693
- __p = '';
1694
- if (ctx.node.isRoot) {
1695
- __p += '\n <div ref="root" class="list-group-item">\n';
1696
- } else {
1697
- __p += '\n <li ref="node" class="list-group-item sm:col-span-12 tree__level tree__level_' + ((__t = ctx.odd ? 'odd' : 'even') == null ? '' : __t) + '">\n';
1698
- }
1699
- __p += '\n ';
1700
- if (ctx.content) {
1701
- __p += '\n <div ref="content" class="tree__node-content">\n ' + ((__t = ctx.content) == null ? '' : __t) + '\n </div>\n ';
1702
- }
1703
- __p += '\n ';
1704
- if (ctx.childNodes && ctx.childNodes.length) {
1705
- __p += '\n <ul ref="childNodes" class="tree__node-children list-group grid grid-cols-12 gap-4">\n ' + ((__t = ctx.childNodes.join('')) == null ? '' : __t) + '\n </ul>\n ';
1706
- }
1707
- __p += '\n';
1708
- if (ctx.node.isRoot) {
1709
- __p += '\n </div>\n';
1710
- } else {
1711
- __p += '\n </li>\n';
1712
- }
1713
- __p += '\n';
1714
- return __p;
1715
- }
1716
-
1717
- var tree = {
1718
- form: form$7
1719
- };
1720
-
1721
- function edit (ctx) {
1722
- var __t,
1723
- __p = '';
1724
- __p += '<div class="node-edit">\n <div ref="nodeEdit">' + ((__t = ctx.children) == null ? '' : __t) + '</div>\n ';
1725
- if (!ctx.readOnly) {
1726
- __p += '\n <div class="node-actions">\n <button ref="saveNode" class="btn btn-primary saveNode">' + ((__t = ctx.t('Save')) == null ? '' : __t) + '</button>\n <button ref="cancelNode" class="btn btn-danger cancelNode">' + ((__t = ctx.t('Cancel')) == null ? '' : __t) + '</button>\n </div>\n ';
1727
- }
1728
- __p += '\n</div>\n';
1729
- return __p;
1730
- }
1731
-
1732
- function view (ctx) {
1733
- var __t,
1734
- __p = '';
1735
- __p += '<div class="grid grid-cols-12 gap-4">\n ';
1736
- ctx.values.forEach(function (value) {
1737
- __p += '\n <div class="sm:col-span-2">\n ' + ((__t = value) == null ? '' : __t) + '\n </div>\n ';
1738
- });
1739
- __p += '\n <div class="sm:col-span-3">\n <div class="btn-group pull-right">\n ';
1740
- if (ctx.node.hasChildren) {
1741
- __p += '\n <button ref="toggleNode" class="btn btn-default btn-sm toggleNode">' + ((__t = ctx.t(ctx.node.collapsed ? 'Expand' : 'Collapse')) == null ? '' : __t) + '</button>\n ';
1742
- }
1743
- __p += '\n ';
1744
- if (!ctx.readOnly) {
1745
- __p += '\n <button ref="addChild" class="btn btn-default btn-sm addChild">' + ((__t = ctx.t('Add')) == null ? '' : __t) + '</button>\n <button ref="editNode" class="btn btn-default btn-sm editNode">' + ((__t = ctx.t('Edit')) == null ? '' : __t) + '</button>\n <button ref="removeNode" class="btn btn-danger btn-sm removeNode">' + ((__t = ctx.t('Delete')) == null ? '' : __t) + '</button>\n ';
1746
- if (ctx.node.revertAvailable) {
1747
- __p += '\n <button ref="revertNode" class="btn btn-danger btn-sm revertNode">' + ((__t = ctx.t('Revert')) == null ? '' : __t) + '</button>\n ';
1748
- }
1749
- __p += '\n ';
1750
- }
1751
- __p += '\n </div>\n </div>\n</div>\n';
1752
- return __p;
1753
- }
1754
-
1755
- var treePartials = {
1756
- treeView: {
1757
- form: view
1758
- },
1759
- treeEdit: {
1760
- form: edit
1761
- }
1762
- };
1763
-
1764
- function builder$1 (ctx) {
1765
- var __t,
1766
- __p = '';
1767
- __p += '<div class="text-muted text-center p-2">' + ((__t = ctx.t(ctx.component.title, {
1768
- _userInput: true
1769
- })) == null ? '' : __t) + '</div>\n';
1770
- return __p;
1771
- }
1772
-
1773
- function form$6 (ctx) {
1774
- var __t,
1775
- __p = '';
1776
- __p += '<div class="' + ((__t = ctx.classes) == null ? '' : __t) + '" ref="webform" novalidate>' + ((__t = ctx.children) == null ? '' : __t) + '</div>\n';
1777
- return __p;
1778
- }
1779
-
1780
- var webform = {
1781
- form: form$6,
1782
- builder: builder$1
1783
- };
1784
-
1785
- function form$5 (ctx) {
1786
- var __t,
1787
- __p = '';
1788
- __p += '<div class="border-1 border-solid border-gray-300 bg-gray-200 shadow-inner p-5 rounded">\n <div ref="' + ((__t = ctx.nestedKey) == null ? '' : __t) + '">\n ' + ((__t = ctx.children) == null ? '' : __t) + '\n </div>\n</div>\n';
1789
- return __p;
1790
- }
1791
-
1792
- var well = {
1793
- form: form$5
1794
- };
1795
-
1796
- function builder (ctx) {
1797
- var __t,
1798
- __p = '';
1799
- __p += '<div class="text-muted text-center p-2">' + ((__t = ctx.t(ctx.component.title, {
1800
- _userInput: true
1801
- })) == null ? '' : __t) + '</div>\n';
1802
- return __p;
1803
- }
1804
-
1805
- function form$4 (ctx) {
1806
- var __t,
1807
- __p = '';
1808
- __p += '<div class="' + ((__t = ctx.className) == null ? '' : __t) + '">\n <div style="position: relative;">\n ';
1809
- if (ctx.wizardHeaderType === 'wizardHeaderVertical') {
1810
- __p += '\n <div class="row">\n ';
1811
- if (ctx.wizardHeaderLocation !== 'right') {
1812
- __p += '\n <div class="col-sm-2">\n ' + ((__t = ctx.wizardHeader) == null ? '' : __t) + '\n </div>\n ';
1813
- }
1814
- __p += '\n <div class="wizard-page col-sm-10" ref="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '">\n ' + ((__t = ctx.components) == null ? '' : __t) + '\n </div>\n ';
1815
- if (ctx.wizardHeaderLocation === 'right') {
1816
- __p += '\n <div class="col-sm-2">\n ' + ((__t = ctx.wizardHeader) == null ? '' : __t) + '\n </div>\n ';
1817
- }
1818
- __p += '\n </div>\n <div class="col-sm-offset-2 col-sm-10 ' + ((__t = ctx.wizardHeaderLocation === 'right' ? 'col-sm-offset-0 col-md-offset-0' : '') == null ? '' : __t) + '">\n ' + ((__t = ctx.wizardNav) == null ? '' : __t) + '\n </div>\n ';
1819
- } else {
1820
- __p += '\n ' + ((__t = ctx.wizardHeader) == null ? '' : __t) + '\n <div class="wizard-page" ref="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '">\n ' + ((__t = ctx.components) == null ? '' : __t) + '\n </div>\n ' + ((__t = ctx.wizardNav) == null ? '' : __t) + '\n ';
1821
- }
1822
- __p += '\n </div>\n</div>\n';
1823
- return __p;
1824
- }
1825
-
1826
- var wizard = {
1827
- form: form$4,
1828
- builder
1829
- };
1830
-
1831
- function form$3 (ctx) {
1832
- var __t,
1833
- __p = '';
1834
- __p += '<nav aria-label="Wizard navigation" id="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-header" ref="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-header">\n <ul class="pagination" role="tablist">\n ';
1835
- ctx.panels.forEach(function (panel, index) {
1836
- __p += '\n <li class="page-item' + ((__t = ctx.currentPage === index ? ' active' : '') == null ? '' : __t) + '" style="cursor: pointer;">\n <button tabindex="0" data-index="' + ((__t = index) == null ? '' : __t) + '" role="tab" class="page-link" ref="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-link">\n ' + ((__t = ctx.t(panel.title, {
1837
- _userInput: true
1838
- })) == null ? '' : __t) + '\n ';
1839
- if (panel.tooltip && ctx.currentPage === index) {
1840
- __p += '\n <i ref="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-tooltip" class="' + ((__t = ctx.iconClass('question-sign')) == null ? '' : __t) + ' text-muted" data-tooltip="' + ((__t = panel.tooltip) == null ? '' : __t) + '"></i>\n ';
1841
- }
1842
- __p += '\n </button>\n </li>\n ';
1843
- });
1844
- __p += '\n </ul>\n</nav>\n';
1845
- return __p;
1846
- }
1847
-
1848
- var wizardHeader = {
1849
- form: form$3
1850
- };
1851
-
1852
- function form$2 (ctx) {
1853
- var __t,
1854
- __p = '';
1855
- __p += '<nav aria-label="navigation" id="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-header">\n <div class="classic-pagination row justify-content-center" style="border-bottom:0;">\n ';
1856
- ctx.panels.forEach(function (panel, index) {
1857
- __p += '\n <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n ' + ((__t = ctx.currentPage < index ? ' disabled' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.currentPage === index ? ' active' : '') == null ? '' : __t) + '\n ' + ((__t = ctx.currentPage > index ? ' complete' : '') == null ? '' : __t) + '">\n <div class="text-center classic-pagination-title">' + ((__t = ctx.t(panel.title, {
1858
- _userInput: true
1859
- })) == null ? '' : __t) + '</div>\n ';
1860
- if (ctx.panels.length > 1) {
1861
- __p += '\n <div class="progress"><div class="progress-bar"></div></div>\n ';
1862
- }
1863
- __p += ' \n <span ref="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-link" class="classic-pagination-dot"></span>\n </div>\n ';
1864
- });
1865
- __p += '\n </div>\n</nav>\n';
1866
- return __p;
1867
- }
1868
-
1869
- var wizardHeaderClassic = {
1870
- form: form$2
1871
- };
1872
-
1873
- function form$1 (ctx) {
1874
- var __t,
1875
- __p = '';
1876
- __p += '<nav aria-label="navigation" id="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-header">\n <ul class="pagination flex-column">\n ';
1877
- ctx.panels.forEach(function (panel, index) {
1878
- __p += '\n <li class="col-xs-12 page-item' + ((__t = ctx.currentPage === index ? ' active' : '') == null ? '' : __t) + '" style="cursor: pointer;">\n <span class="page-link" ref="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-link" style="margin-left: 0px;">\n ' + ((__t = ctx.t(panel.title, {
1879
- _userInput: true
1880
- })) == null ? '' : __t) + '\n ';
1881
- if (panel.tooltip && ctx.currentPage === index) {
1882
- __p += '\n <i ref="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-tooltip" class="' + ((__t = ctx.iconClass('question-sign')) == null ? '' : __t) + ' text-muted" data-tooltip="' + ((__t = panel.tooltip) == null ? '' : __t) + '"></i>\n ';
1883
- }
1884
- __p += '\n </span>\n </li>\n ';
1885
- });
1886
- __p += '\n </ul>\n</nav>\n';
1887
- return __p;
1888
- }
1889
-
1890
- var wizardHeaderVertical = {
1891
- form: form$1
1892
- };
1893
-
1894
- function form (ctx) {
1895
- var __t,
1896
- __p = '';
1897
- __p += '<ul class="formio-wizard-nav-container list-inline" id="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-nav">\n ';
1898
- ctx.buttonOrder.forEach(function (button) {
1899
- __p += '\n ';
1900
- if (button === 'cancel' && ctx.buttons.cancel) {
1901
- __p += '\n <li>\n <button class="btn btn-secondary btn-wizard-nav-cancel" ref="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-cancel" aria-label="' + ((__t = ctx.t('cancelButtonAriaLabel')) == null ? '' : __t) + '">' + ((__t = ctx.t('cancel')) == null ? '' : __t) + '</button>\n </li>\n ';
1902
- }
1903
- __p += '\n ';
1904
- if (button === 'previous' && ctx.buttons.previous) {
1905
- __p += '\n <li>\n <button class="btn btn-primary btn-wizard-nav-previous" ref="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-previous" aria-label="' + ((__t = ctx.t('previousButtonAriaLabel')) == null ? '' : __t) + '">' + ((__t = ctx.t('previous')) == null ? '' : __t) + '</button>\n </li>\n ';
1906
- }
1907
- __p += '\n ';
1908
- if (button === 'next' && ctx.buttons.next) {
1909
- __p += '\n <li>\n <button class="btn btn-primary btn-wizard-nav-next" ref="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-next" aria-label="' + ((__t = ctx.t('nextButtonAriaLabel')) == null ? '' : __t) + '">' + ((__t = ctx.t('next')) == null ? '' : __t) + '</button>\n </li>\n ';
1910
- }
1911
- __p += '\n ';
1912
- if (button === 'submit' && ctx.buttons.submit) {
1913
- __p += '\n <li>\n ';
1914
- if (ctx.disableWizardSubmit) {
1915
- __p += '\n <button disabled class="btn btn-primary btn-wizard-nav-submit" ref="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-submit" aria-label="' + ((__t = ctx.t('submitButtonAriaLabel')) == null ? '' : __t) + '">' + ((__t = ctx.t('submit')) == null ? '' : __t) + '</button>\n ';
1916
- } else {
1917
- __p += '\n <button class="btn btn-primary btn-wizard-nav-submit" ref="' + ((__t = ctx.wizardKey) == null ? '' : __t) + '-submit" aria-label="' + ((__t = ctx.t('submitButtonAriaLabel')) == null ? '' : __t) + '">' + ((__t = ctx.t('submit')) == null ? '' : __t) + '</button>\n ';
1918
- }
1919
- __p += '\n </li>\n ';
1920
- }
1921
- __p += '\n ';
1922
- });
1923
- __p += '\n</ul>\n';
1924
- return __p;
1925
- }
1926
-
1927
- var wizardNav = {
1928
- form
1929
- };
1930
-
1931
- var tailwind = _extends({
1932
- ICONS,
1933
- transform(type, text) {
1934
- if (!text) {
1935
- return text;
1936
- }
1937
- switch (type) {
1938
- case "class":
1939
- // eslint-disable-next-line no-prototype-builtins
1940
- return this.cssClasses.hasOwnProperty(text.toString()) ? this.cssClasses[text.toString()] : text;
1941
- }
1942
- return text;
1943
- },
1944
- defaultIconset: "bx",
1945
- iconClass,
1946
- cssClasses,
1947
- address,
1948
- builder: builder$2,
1949
- builderComponent,
1950
- builderComponents,
1951
- builderEditForm,
1952
- builderPlaceholder,
1953
- builderSidebar,
1954
- builderSidebarGroup,
1955
- builderWizard,
1956
- button,
1957
- checkbox,
1958
- columns,
1959
- component,
1960
- componentModal,
1961
- components,
1962
- tableComponents,
1963
- container,
1964
- datagrid,
1965
- day,
1966
- dialog,
1967
- editgrid,
1968
- editgridTable,
1969
- field,
1970
- fieldset,
1971
- file,
1972
- html: html$6,
1973
- icon,
1974
- input,
1975
- label,
1976
- loader,
1977
- loading,
1978
- map,
1979
- message,
1980
- modaledit,
1981
- modaldialog,
1982
- modalPreview,
1983
- multipleMasksInput,
1984
- multiValueRow,
1985
- multiValueTable,
1986
- panel,
1987
- pdf,
1988
- pdfBuilder,
1989
- pdfBuilderUpload,
1990
- radio,
1991
- resourceAdd,
1992
- select,
1993
- selectOption,
1994
- signature,
1995
- survey,
1996
- tab,
1997
- table,
1998
- tree
1999
- }, treePartials, {
2000
- webform,
2001
- well,
2002
- wizard,
2003
- wizardHeader,
2004
- wizardHeaderClassic,
2005
- wizardHeaderVertical,
2006
- wizardNav,
2007
- errorsList,
2008
- alert
2009
- });
2010
-
2011
- var templates = {
2012
- tailwind
2013
- };
2014
-
2015
- var index = {
1
+ import t from "./templates/index.js";
2
+ const a = {
2016
3
  framework: "tailwind",
2017
- templates
4
+ templates: t
5
+ };
6
+ export {
7
+ a as default
2018
8
  };
2019
-
2020
- module.exports = index;
2021
9
  //# sourceMappingURL=index.js.map