@ajf/material 13.0.0 → 13.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/README.md +2 -5
  2. package/ajf-material.d.ts +5 -0
  3. package/barcode/ajf-material-barcode.d.ts +5 -0
  4. package/barcode/barcode-module.d.ts +0 -0
  5. package/barcode/barcode.d.ts +0 -0
  6. package/barcode/package.json +8 -7
  7. package/barcode/{public-api.d.ts → public_api.d.ts} +0 -0
  8. package/calendar/ajf-material-calendar.d.ts +5 -0
  9. package/calendar/calendar-module.d.ts +0 -0
  10. package/calendar/calendar.d.ts +1 -1
  11. package/calendar/package.json +8 -7
  12. package/calendar/{public-api.d.ts → public_api.d.ts} +0 -0
  13. package/checkbox-group/ajf-material-checkbox-group.d.ts +5 -0
  14. package/checkbox-group/checkbox-group-item.d.ts +0 -0
  15. package/checkbox-group/checkbox-group-module.d.ts +0 -0
  16. package/checkbox-group/package.json +8 -7
  17. package/checkbox-group/{public-api.d.ts → public_api.d.ts} +0 -0
  18. package/esm2020/ajf-material.mjs +5 -0
  19. package/esm2020/barcode/ajf-material-barcode.mjs +5 -0
  20. package/esm2020/barcode/barcode-module.mjs +5 -5
  21. package/esm2020/barcode/barcode.mjs +6 -6
  22. package/esm2020/barcode/public_api.mjs +24 -0
  23. package/esm2020/calendar/ajf-material-calendar.mjs +5 -0
  24. package/esm2020/calendar/calendar-module.mjs +5 -5
  25. package/esm2020/calendar/calendar.mjs +7 -7
  26. package/esm2020/{page-slider/public-api.mjs → calendar/public_api.mjs} +3 -3
  27. package/esm2020/checkbox-group/ajf-material-checkbox-group.mjs +5 -0
  28. package/esm2020/checkbox-group/checkbox-group-item.mjs +6 -6
  29. package/esm2020/checkbox-group/checkbox-group-module.mjs +5 -5
  30. package/esm2020/{time/index.mjs → checkbox-group/public_api.mjs} +3 -2
  31. package/esm2020/form-builder/ajf-material-form-builder.mjs +5 -0
  32. package/esm2020/form-builder/branch-line.mjs +6 -5
  33. package/esm2020/form-builder/choices-origin-data-source.mjs +1 -1
  34. package/esm2020/form-builder/choices-origin-editor-dialog.mjs +5 -6
  35. package/esm2020/form-builder/choices-origin-editor.mjs +19 -8
  36. package/esm2020/form-builder/condition-editor-dialog.mjs +5 -6
  37. package/esm2020/form-builder/condition-editor.mjs +10 -6
  38. package/esm2020/form-builder/form-builder-module.mjs +5 -5
  39. package/esm2020/form-builder/form-builder-service.mjs +12 -5
  40. package/esm2020/form-builder/form-builder-utils.mjs +1 -1
  41. package/esm2020/form-builder/form-builder.mjs +12 -7
  42. package/esm2020/form-builder/node-entry.mjs +9 -7
  43. package/esm2020/form-builder/node-properties.mjs +16 -10
  44. package/esm2020/form-builder/node-type-entry.mjs +5 -5
  45. package/esm2020/form-builder/operations.mjs +1 -1
  46. package/esm2020/{monaco-editor/public-api.mjs → form-builder/public_api.mjs} +5 -3
  47. package/esm2020/form-builder/string-identifier-dialog.mjs +6 -7
  48. package/esm2020/form-builder/validation-condition-editor-dialog.mjs +6 -6
  49. package/esm2020/form-builder/warning-condition-editor-dialog.mjs +6 -6
  50. package/esm2020/forms/ajf-material-forms.mjs +5 -0
  51. package/esm2020/forms/barcode-field.mjs +7 -8
  52. package/esm2020/forms/boolean-field.mjs +7 -8
  53. package/esm2020/forms/date-field.mjs +7 -8
  54. package/esm2020/forms/date-input-field.mjs +10 -8
  55. package/esm2020/forms/empty-field.mjs +11 -11
  56. package/esm2020/forms/field-service.mjs +4 -4
  57. package/esm2020/forms/field-warning-dialog.mjs +7 -4
  58. package/esm2020/forms/field.mjs +6 -7
  59. package/esm2020/forms/form.mjs +18 -17
  60. package/esm2020/forms/forms-module.mjs +9 -5
  61. package/esm2020/forms/input-field.mjs +7 -8
  62. package/esm2020/forms/multiple-choice-field.mjs +7 -8
  63. package/esm2020/{barcode/public-api.mjs → forms/public_api.mjs} +16 -3
  64. package/esm2020/forms/range-field.mjs +7 -8
  65. package/esm2020/forms/single-choice-field.mjs +7 -8
  66. package/esm2020/forms/table-field.mjs +7 -8
  67. package/esm2020/forms/text-field.mjs +7 -8
  68. package/esm2020/forms/time-field.mjs +7 -8
  69. package/esm2020/forms/video-url-field.mjs +6 -9
  70. package/esm2020/forms/warning-alert-service.mjs +4 -5
  71. package/esm2020/image/ajf-material-image.mjs +5 -0
  72. package/esm2020/image/image-module.mjs +5 -5
  73. package/esm2020/image/image.mjs +5 -6
  74. package/esm2020/{calendar/public-api.mjs → image/public_api.mjs} +3 -3
  75. package/esm2020/monaco-editor/ajf-material-monaco-editor.mjs +5 -0
  76. package/esm2020/monaco-editor/auto-complete-item-model.mjs +7 -2
  77. package/esm2020/monaco-editor/autocomplete-singleton-model.mjs +1 -1
  78. package/esm2020/monaco-editor/editor-language-model.mjs +1 -1
  79. package/esm2020/monaco-editor/editor-options-model.mjs +11 -1
  80. package/esm2020/monaco-editor/editor-scrollbar-options.mjs +1 -1
  81. package/esm2020/monaco-editor/editor-theme.mjs +1 -1
  82. package/esm2020/monaco-editor/monaco-editor-module.mjs +5 -5
  83. package/esm2020/monaco-editor/monaco-editor.mjs +7 -7
  84. package/esm2020/{reports/layout-widget.mjs → monaco-editor/public_api.mjs} +3 -1
  85. package/esm2020/node-icon/ajf-material-node-icon.mjs +5 -0
  86. package/esm2020/node-icon/node-icon-module.mjs +5 -5
  87. package/esm2020/node-icon/node-icon.mjs +5 -5
  88. package/esm2020/{form-builder/public-api.mjs → node-icon/public_api.mjs} +3 -5
  89. package/esm2020/page-slider/ajf-material-page-slider.mjs +5 -0
  90. package/esm2020/page-slider/page-slider-module.mjs +5 -5
  91. package/esm2020/page-slider/page-slider.mjs +6 -7
  92. package/esm2020/page-slider/public_api.mjs +24 -0
  93. package/esm2020/{form-builder/index.mjs → public-api.mjs} +3 -2
  94. package/esm2020/reports/ajf-material-reports.mjs +5 -0
  95. package/esm2020/reports/chart-widget.mjs +7 -6
  96. package/esm2020/reports/filter-widget.mjs +20 -53
  97. package/esm2020/reports/formula-widget.mjs +7 -6
  98. package/esm2020/reports/image-container-widget.mjs +6 -6
  99. package/esm2020/reports/image-widget.mjs +7 -6
  100. package/esm2020/reports/map-widget.mjs +7 -6
  101. package/esm2020/reports/page-break-widget.mjs +6 -6
  102. package/esm2020/reports/public_api.mjs +34 -0
  103. package/esm2020/reports/report.mjs +6 -6
  104. package/esm2020/reports/reports-module.mjs +5 -5
  105. package/esm2020/reports/table-widget.mjs +7 -6
  106. package/esm2020/reports/text-widget.mjs +8 -7
  107. package/esm2020/reports/widget.mjs +17 -18
  108. package/esm2020/time/ajf-material-time.mjs +5 -0
  109. package/esm2020/{image/public-api.mjs → time/public_api.mjs} +3 -3
  110. package/esm2020/time/time-module.mjs +5 -5
  111. package/esm2020/time/time.mjs +4 -4
  112. package/fesm2015/{barcode.mjs → ajf-material-barcode.mjs} +9 -31
  113. package/fesm2015/ajf-material-barcode.mjs.map +1 -0
  114. package/fesm2015/ajf-material-calendar.mjs +116 -0
  115. package/fesm2015/ajf-material-calendar.mjs.map +1 -0
  116. package/fesm2015/{checkbox-group.mjs → ajf-material-checkbox-group.mjs} +9 -31
  117. package/fesm2015/ajf-material-checkbox-group.mjs.map +1 -0
  118. package/fesm2015/{form-builder.mjs → ajf-material-form-builder.mjs} +101 -77
  119. package/fesm2015/ajf-material-form-builder.mjs.map +1 -0
  120. package/fesm2015/ajf-material-forms.mjs +1000 -0
  121. package/fesm2015/ajf-material-forms.mjs.map +1 -0
  122. package/{fesm2020/image.mjs → fesm2015/ajf-material-image.mjs} +8 -30
  123. package/fesm2015/ajf-material-image.mjs.map +1 -0
  124. package/fesm2015/{monaco-editor.mjs → ajf-material-monaco-editor.mjs} +26 -31
  125. package/fesm2015/ajf-material-monaco-editor.mjs.map +1 -0
  126. package/{fesm2020/node-icon.mjs → fesm2015/ajf-material-node-icon.mjs} +9 -31
  127. package/fesm2015/ajf-material-node-icon.mjs.map +1 -0
  128. package/fesm2015/{page-slider.mjs → ajf-material-page-slider.mjs} +9 -31
  129. package/fesm2015/ajf-material-page-slider.mjs.map +1 -0
  130. package/{fesm2020/reports.mjs → fesm2015/ajf-material-reports.mjs} +81 -134
  131. package/fesm2015/ajf-material-reports.mjs.map +1 -0
  132. package/fesm2015/{time.mjs → ajf-material-time.mjs} +8 -30
  133. package/fesm2015/ajf-material-time.mjs.map +1 -0
  134. package/{calendar/index.d.ts → fesm2015/ajf-material.mjs} +7 -1
  135. package/fesm2015/ajf-material.mjs.map +1 -0
  136. package/fesm2020/{barcode.mjs → ajf-material-barcode.mjs} +9 -31
  137. package/fesm2020/ajf-material-barcode.mjs.map +1 -0
  138. package/fesm2020/ajf-material-calendar.mjs +116 -0
  139. package/fesm2020/ajf-material-calendar.mjs.map +1 -0
  140. package/fesm2020/{checkbox-group.mjs → ajf-material-checkbox-group.mjs} +9 -31
  141. package/fesm2020/ajf-material-checkbox-group.mjs.map +1 -0
  142. package/fesm2020/{form-builder.mjs → ajf-material-form-builder.mjs} +101 -77
  143. package/fesm2020/ajf-material-form-builder.mjs.map +1 -0
  144. package/fesm2020/ajf-material-forms.mjs +974 -0
  145. package/fesm2020/ajf-material-forms.mjs.map +1 -0
  146. package/{fesm2015/image.mjs → fesm2020/ajf-material-image.mjs} +8 -30
  147. package/fesm2020/ajf-material-image.mjs.map +1 -0
  148. package/fesm2020/{monaco-editor.mjs → ajf-material-monaco-editor.mjs} +26 -61
  149. package/fesm2020/ajf-material-monaco-editor.mjs.map +1 -0
  150. package/{fesm2015/node-icon.mjs → fesm2020/ajf-material-node-icon.mjs} +9 -31
  151. package/fesm2020/ajf-material-node-icon.mjs.map +1 -0
  152. package/fesm2020/{page-slider.mjs → ajf-material-page-slider.mjs} +10 -32
  153. package/fesm2020/ajf-material-page-slider.mjs.map +1 -0
  154. package/{fesm2015/reports.mjs → fesm2020/ajf-material-reports.mjs} +80 -133
  155. package/fesm2020/ajf-material-reports.mjs.map +1 -0
  156. package/fesm2020/{time.mjs → ajf-material-time.mjs} +8 -30
  157. package/fesm2020/ajf-material-time.mjs.map +1 -0
  158. package/{barcode/index.d.ts → fesm2020/ajf-material.mjs} +7 -1
  159. package/fesm2020/ajf-material.mjs.map +1 -0
  160. package/form-builder/ajf-material-form-builder.d.ts +5 -0
  161. package/form-builder/branch-line.d.ts +0 -0
  162. package/form-builder/choices-origin-data-source.d.ts +0 -0
  163. package/form-builder/choices-origin-editor-dialog.d.ts +0 -0
  164. package/form-builder/choices-origin-editor.d.ts +2 -2
  165. package/form-builder/condition-editor-dialog.d.ts +0 -0
  166. package/form-builder/condition-editor.d.ts +0 -0
  167. package/form-builder/form-builder-module.d.ts +0 -0
  168. package/form-builder/form-builder-service.d.ts +1 -1
  169. package/form-builder/form-builder-utils.d.ts +0 -0
  170. package/form-builder/form-builder.d.ts +2 -2
  171. package/form-builder/node-entry.d.ts +2 -2
  172. package/form-builder/node-properties.d.ts +3 -3
  173. package/form-builder/node-type-entry.d.ts +2 -2
  174. package/form-builder/operations.d.ts +0 -0
  175. package/form-builder/package.json +8 -7
  176. package/form-builder/{public-api.d.ts → public_api.d.ts} +0 -0
  177. package/form-builder/string-identifier-dialog.d.ts +0 -0
  178. package/form-builder/validation-condition-editor-dialog.d.ts +0 -0
  179. package/form-builder/warning-condition-editor-dialog.d.ts +0 -0
  180. package/forms/ajf-material-forms.d.ts +5 -0
  181. package/forms/barcode-field.d.ts +0 -0
  182. package/forms/boolean-field.d.ts +0 -0
  183. package/forms/date-field.d.ts +0 -0
  184. package/forms/date-input-field.d.ts +0 -0
  185. package/forms/empty-field.d.ts +0 -0
  186. package/forms/field-service.d.ts +0 -0
  187. package/forms/field-warning-dialog.d.ts +0 -0
  188. package/forms/field.d.ts +0 -0
  189. package/forms/form.d.ts +0 -0
  190. package/forms/forms-module.d.ts +15 -14
  191. package/forms/input-field.d.ts +0 -0
  192. package/forms/multiple-choice-field.d.ts +0 -0
  193. package/forms/package.json +8 -7
  194. package/forms/{public-api.d.ts → public_api.d.ts} +0 -0
  195. package/forms/range-field.d.ts +0 -0
  196. package/forms/single-choice-field.d.ts +0 -0
  197. package/forms/table-field.d.ts +0 -0
  198. package/forms/text-field.d.ts +0 -0
  199. package/forms/time-field.d.ts +0 -0
  200. package/forms/video-url-field.d.ts +0 -0
  201. package/forms/warning-alert-service.d.ts +0 -0
  202. package/image/ajf-material-image.d.ts +5 -0
  203. package/image/image-module.d.ts +0 -0
  204. package/image/image.d.ts +0 -0
  205. package/image/package.json +8 -7
  206. package/image/{public-api.d.ts → public_api.d.ts} +0 -0
  207. package/monaco-editor/ajf-material-monaco-editor.d.ts +5 -0
  208. package/monaco-editor/auto-complete-item-model.d.ts +0 -0
  209. package/monaco-editor/autocomplete-singleton-model.d.ts +0 -0
  210. package/monaco-editor/editor-language-model.d.ts +0 -0
  211. package/monaco-editor/editor-options-model.d.ts +0 -0
  212. package/monaco-editor/editor-scrollbar-options.d.ts +0 -0
  213. package/monaco-editor/editor-theme.d.ts +0 -0
  214. package/monaco-editor/monaco-editor-module.d.ts +0 -0
  215. package/monaco-editor/monaco-editor.d.ts +0 -0
  216. package/monaco-editor/package.json +8 -7
  217. package/monaco-editor/{public-api.d.ts → public_api.d.ts} +0 -0
  218. package/node-icon/ajf-material-node-icon.d.ts +5 -0
  219. package/node-icon/node-icon-module.d.ts +0 -0
  220. package/node-icon/node-icon.d.ts +0 -0
  221. package/node-icon/package.json +8 -7
  222. package/node-icon/{public-api.d.ts → public_api.d.ts} +0 -0
  223. package/package.json +90 -92
  224. package/page-slider/ajf-material-page-slider.d.ts +5 -0
  225. package/page-slider/package.json +8 -7
  226. package/page-slider/page-slider-module.d.ts +0 -0
  227. package/page-slider/page-slider.d.ts +0 -0
  228. package/page-slider/{public-api.d.ts → public_api.d.ts} +0 -0
  229. package/{checkbox-group/index.d.ts → public-api.d.ts} +2 -1
  230. package/reports/ajf-material-reports.d.ts +5 -0
  231. package/reports/chart-widget.d.ts +0 -0
  232. package/reports/filter-widget.d.ts +6 -29
  233. package/reports/formula-widget.d.ts +0 -0
  234. package/reports/image-container-widget.d.ts +0 -0
  235. package/reports/image-widget.d.ts +0 -0
  236. package/reports/map-widget.d.ts +0 -0
  237. package/reports/package.json +8 -7
  238. package/reports/page-break-widget.d.ts +0 -0
  239. package/reports/{public-api.d.ts → public_api.d.ts} +0 -0
  240. package/reports/report.d.ts +0 -0
  241. package/reports/reports-module.d.ts +0 -0
  242. package/reports/table-widget.d.ts +0 -0
  243. package/reports/text-widget.d.ts +0 -0
  244. package/reports/widget.d.ts +0 -0
  245. package/time/ajf-material-time.d.ts +5 -0
  246. package/time/package.json +8 -7
  247. package/time/{public-api.d.ts → public_api.d.ts} +0 -0
  248. package/time/time-module.d.ts +0 -0
  249. package/time/time.d.ts +0 -0
  250. package/LICENSE +0 -661
  251. package/barcode/_barcode.scss +0 -0
  252. package/barcode/barcode_public_index.d.ts +0 -4
  253. package/calendar/_calendar.scss +0 -0
  254. package/calendar/calendar_public_index.d.ts +0 -4
  255. package/checkbox-group/_checkbox-group.scss +0 -0
  256. package/checkbox-group/checkbox-group_public_index.d.ts +0 -4
  257. package/esm2020/barcode/barcode_public_index.mjs +0 -5
  258. package/esm2020/barcode/index.mjs +0 -23
  259. package/esm2020/calendar/calendar_public_index.mjs +0 -5
  260. package/esm2020/calendar/index.mjs +0 -23
  261. package/esm2020/checkbox-group/checkbox-group_public_index.mjs +0 -5
  262. package/esm2020/checkbox-group/index.mjs +0 -23
  263. package/esm2020/checkbox-group/public-api.mjs +0 -24
  264. package/esm2020/form-builder/form-builder_public_index.mjs +0 -5
  265. package/esm2020/forms/forms_public_index.mjs +0 -5
  266. package/esm2020/forms/index.mjs +0 -23
  267. package/esm2020/forms/public-api.mjs +0 -37
  268. package/esm2020/image/image_public_index.mjs +0 -5
  269. package/esm2020/image/index.mjs +0 -23
  270. package/esm2020/index.mjs +0 -28
  271. package/esm2020/monaco-editor/index.mjs +0 -23
  272. package/esm2020/monaco-editor/monaco-editor_public_index.mjs +0 -5
  273. package/esm2020/node-icon/index.mjs +0 -23
  274. package/esm2020/node-icon/node-icon_public_index.mjs +0 -5
  275. package/esm2020/node-icon/public-api.mjs +0 -24
  276. package/esm2020/page-slider/index.mjs +0 -23
  277. package/esm2020/page-slider/page-slider_public_index.mjs +0 -5
  278. package/esm2020/reports/index.mjs +0 -23
  279. package/esm2020/reports/public-api.mjs +0 -34
  280. package/esm2020/reports/reports_public_index.mjs +0 -5
  281. package/esm2020/time/public-api.mjs +0 -24
  282. package/esm2020/time/time_public_index.mjs +0 -5
  283. package/fesm2015/barcode.mjs.map +0 -1
  284. package/fesm2015/calendar.mjs +0 -138
  285. package/fesm2015/calendar.mjs.map +0 -1
  286. package/fesm2015/checkbox-group.mjs.map +0 -1
  287. package/fesm2015/form-builder.mjs.map +0 -1
  288. package/fesm2015/forms.mjs +0 -1011
  289. package/fesm2015/forms.mjs.map +0 -1
  290. package/fesm2015/image.mjs.map +0 -1
  291. package/fesm2015/material.mjs +0 -30
  292. package/fesm2015/material.mjs.map +0 -1
  293. package/fesm2015/monaco-editor.mjs.map +0 -1
  294. package/fesm2015/node-icon.mjs.map +0 -1
  295. package/fesm2015/page-slider.mjs.map +0 -1
  296. package/fesm2015/reports.mjs.map +0 -1
  297. package/fesm2015/time.mjs.map +0 -1
  298. package/fesm2020/barcode.mjs.map +0 -1
  299. package/fesm2020/calendar.mjs +0 -138
  300. package/fesm2020/calendar.mjs.map +0 -1
  301. package/fesm2020/checkbox-group.mjs.map +0 -1
  302. package/fesm2020/form-builder.mjs.map +0 -1
  303. package/fesm2020/forms.mjs +0 -985
  304. package/fesm2020/forms.mjs.map +0 -1
  305. package/fesm2020/image.mjs.map +0 -1
  306. package/fesm2020/material.mjs +0 -30
  307. package/fesm2020/material.mjs.map +0 -1
  308. package/fesm2020/monaco-editor.mjs.map +0 -1
  309. package/fesm2020/node-icon.mjs.map +0 -1
  310. package/fesm2020/page-slider.mjs.map +0 -1
  311. package/fesm2020/reports.mjs.map +0 -1
  312. package/fesm2020/time.mjs.map +0 -1
  313. package/form-builder/_form-builder.scss +0 -0
  314. package/form-builder/form-builder_public_index.d.ts +0 -4
  315. package/form-builder/index.d.ts +0 -22
  316. package/forms/_forms.scss +0 -0
  317. package/forms/forms_public_index.d.ts +0 -4
  318. package/forms/index.d.ts +0 -22
  319. package/image/_image.scss +0 -0
  320. package/image/image_public_index.d.ts +0 -4
  321. package/image/index.d.ts +0 -22
  322. package/index.d.ts +0 -22
  323. package/monaco-editor/_monaco-editor.scss +0 -0
  324. package/monaco-editor/index.d.ts +0 -22
  325. package/monaco-editor/monaco-editor_public_index.d.ts +0 -4
  326. package/node-icon/_node-icon.scss +0 -0
  327. package/node-icon/index.d.ts +0 -22
  328. package/node-icon/node-icon_public_index.d.ts +0 -4
  329. package/page-slider/_page-slider.scss +0 -0
  330. package/page-slider/index.d.ts +0 -22
  331. package/page-slider/page-slider_public_index.d.ts +0 -4
  332. package/reports/_reports.scss +0 -0
  333. package/reports/index.d.ts +0 -22
  334. package/reports/layout-widget.d.ts +0 -21
  335. package/reports/reports_public_index.d.ts +0 -4
  336. package/time/_time.scss +0 -0
  337. package/time/index.d.ts +0 -22
  338. package/time/time_public_index.d.ts +0 -4
@@ -1,1011 +0,0 @@
1
- import * as i1$1 from '@ajf/core/forms';
2
- import { AjfBaseFieldComponent, AJF_WARNING_ALERT_SERVICE, AjfInputFieldComponent as AjfInputFieldComponent$1, AjfFieldWithChoicesComponent, AJF_SEARCH_ALERT_THRESHOLD, AjfTableFieldComponent as AjfTableFieldComponent$1, AjfVideoUrlFieldComponent as AjfVideoUrlFieldComponent$1, AjfFieldService as AjfFieldService$1, AjfFieldType, AjfReadOnlyFieldComponent, AjfReadOnlyTableFieldComponent, AjfReadOnlySelectFieldComponent, AjfFileFieldComponent, AjfReadOnlyFileFieldComponent, AjfImageFieldComponent, AjfReadOnlyImageFieldComponent, AjfReadOnlyVideoUrlFieldComponent, AjfFormField as AjfFormField$1, AjfFormRenderer as AjfFormRenderer$1, AjfFormsModule as AjfFormsModule$1 } from '@ajf/core/forms';
3
- import * as i0 from '@angular/core';
4
- import { Component, ChangeDetectionStrategy, ViewEncapsulation, Injectable, Inject, ViewChild, Optional, Input, NgModule } from '@angular/core';
5
- import * as i2$1 from '@angular/material/slide-toggle';
6
- import { MatSlideToggleModule } from '@angular/material/slide-toggle';
7
- import * as i3 from '@angular/common';
8
- import { CommonModule } from '@angular/common';
9
- import * as i4 from '@angular/forms';
10
- import { ReactiveFormsModule } from '@angular/forms';
11
- import { map } from 'rxjs/operators';
12
- import * as i1 from '@angular/material/button';
13
- import { MatButtonModule } from '@angular/material/button';
14
- import * as i2 from '@angular/material/dialog';
15
- import { MatDialogModule } from '@angular/material/dialog';
16
- import * as i2$2 from '@ajf/material/calendar';
17
- import { AjfCalendarModule } from '@ajf/material/calendar';
18
- import * as i4$1 from '@angular/material/input';
19
- import { MatInput, MatInputModule } from '@angular/material/input';
20
- import * as i2$3 from '@angular/material/form-field';
21
- import { MatFormFieldModule } from '@angular/material/form-field';
22
- import * as i2$4 from '@ngneat/transloco';
23
- import * as i2$5 from '@ajf/material/barcode';
24
- import { AjfBarcodeModule } from '@ajf/material/barcode';
25
- import * as i2$6 from '@angular/material/select';
26
- import { MatSelectModule } from '@angular/material/select';
27
- import * as i3$1 from '@angular/material/core';
28
- import * as i4$2 from '@ajf/material/checkbox-group';
29
- import { AjfCheckboxGroupModule } from '@ajf/material/checkbox-group';
30
- import * as i7 from '@ajf/core/checkbox-group';
31
- import { AjfRange } from '@ajf/core/range';
32
- import * as i2$7 from '@angular/material/slider';
33
- import { MatSliderModule } from '@angular/material/slider';
34
- import * as i4$3 from '@angular/material/radio';
35
- import { MatRadioModule } from '@angular/material/radio';
36
- import * as i4$4 from '@ajf/core/common';
37
- import { AjfCommonModule } from '@ajf/core/common';
38
- import * as i5 from '@angular/cdk/text-field';
39
- import { TextFieldModule } from '@angular/cdk/text-field';
40
- import * as i2$8 from '@ajf/material/time';
41
- import { AjfTimeModule } from '@ajf/material/time';
42
- import * as i2$9 from '@angular/platform-browser';
43
- import * as i3$2 from '@angular/common/http';
44
- import * as i2$a from '@angular/material/toolbar';
45
- import { MatToolbarModule } from '@angular/material/toolbar';
46
- import * as i4$5 from '@ajf/material/page-slider';
47
- import { AjfPageSliderModule } from '@ajf/material/page-slider';
48
- import * as i5$1 from '@ajf/core/page-slider';
49
- import * as i6 from '@angular/material/card';
50
- import { MatCardModule } from '@angular/material/card';
51
- import * as i7$1 from '@angular/material/icon';
52
- import { MatIconModule } from '@angular/material/icon';
53
- import * as i11 from '@angular/material/tooltip';
54
- import { MatTooltipModule } from '@angular/material/tooltip';
55
- import { AjfTranslocoModule } from '@ajf/core/transloco';
56
-
57
- /**
58
- * @license
59
- * Copyright (C) Gnucoop soc. coop.
60
- *
61
- * This file is part of the Advanced JSON forms (ajf).
62
- *
63
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
64
- * modify it under the terms of the GNU Affero General Public License as
65
- * published by the Free Software Foundation, either version 3 of the License,
66
- * or (at your option) any later version.
67
- *
68
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
69
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
70
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
71
- * General Public License for more details.
72
- *
73
- * You should have received a copy of the GNU Affero General Public License
74
- * along with Advanced JSON forms (ajf).
75
- * If not, see http://www.gnu.org/licenses/.
76
- *
77
- */
78
- class AjfFieldWarningDialog {
79
- }
80
- AjfFieldWarningDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFieldWarningDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
81
- AjfFieldWarningDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfFieldWarningDialog, selector: "ng-component", ngImport: i0, template: "<mat-dialog-content><div [innerHTML]=\"message\"></div></mat-dialog-content>\n<mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"true\">Ok</button>\n <button mat-button [mat-dialog-close]=\"false\">Cancel</button>\n</mat-dialog-actions>\n", components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
82
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFieldWarningDialog, decorators: [{
83
- type: Component,
84
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<mat-dialog-content><div [innerHTML]=\"message\"></div></mat-dialog-content>\n<mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"true\">Ok</button>\n <button mat-button [mat-dialog-close]=\"false\">Cancel</button>\n</mat-dialog-actions>\n" }]
85
- }] });
86
-
87
- class AjfWarningAlertService {
88
- constructor(_dialog) {
89
- this._dialog = _dialog;
90
- }
91
- showWarningAlertPrompt(warnings) {
92
- const dialog = this._dialog.open(AjfFieldWarningDialog);
93
- dialog.componentInstance.message = warnings.join('<br>');
94
- return dialog.afterClosed().pipe(map((result) => ({ result })));
95
- }
96
- }
97
- AjfWarningAlertService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfWarningAlertService, deps: [{ token: i2.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
98
- AjfWarningAlertService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfWarningAlertService });
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfWarningAlertService, decorators: [{
100
- type: Injectable
101
- }], ctorParameters: function () { return [{ type: i2.MatDialog }]; } });
102
-
103
- /**
104
- * @license
105
- * Copyright (C) Gnucoop soc. coop.
106
- *
107
- * This file is part of the Advanced JSON forms (ajf).
108
- *
109
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
110
- * modify it under the terms of the GNU Affero General Public License as
111
- * published by the Free Software Foundation, either version 3 of the License,
112
- * or (at your option) any later version.
113
- *
114
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
115
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
116
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
117
- * General Public License for more details.
118
- *
119
- * You should have received a copy of the GNU Affero General Public License
120
- * along with Advanced JSON forms (ajf).
121
- * If not, see http://www.gnu.org/licenses/.
122
- *
123
- */
124
- class AjfBooleanFieldComponent extends AjfBaseFieldComponent {
125
- constructor(cdr, service, was) {
126
- super(cdr, service, was);
127
- }
128
- }
129
- AjfBooleanFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfBooleanFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
130
- AjfBooleanFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfBooleanFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<mat-slide-toggle *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></mat-slide-toggle>\n", styles: ["\n"], components: [{ type: i2$1.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex", "name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "checked"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfBooleanFieldComponent, decorators: [{
132
- type: Component,
133
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<mat-slide-toggle *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></mat-slide-toggle>\n", styles: ["\n"] }]
134
- }], ctorParameters: function () {
135
- return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
136
- type: Inject,
137
- args: [AJF_WARNING_ALERT_SERVICE]
138
- }] }];
139
- } });
140
-
141
- /**
142
- * @license
143
- * Copyright (C) Gnucoop soc. coop.
144
- *
145
- * This file is part of the Advanced JSON forms (ajf).
146
- *
147
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
148
- * modify it under the terms of the GNU Affero General Public License as
149
- * published by the Free Software Foundation, either version 3 of the License,
150
- * or (at your option) any later version.
151
- *
152
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
153
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
154
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
155
- * General Public License for more details.
156
- *
157
- * You should have received a copy of the GNU Affero General Public License
158
- * along with Advanced JSON forms (ajf).
159
- * If not, see http://www.gnu.org/licenses/.
160
- *
161
- */
162
- class AjfDateFieldComponent extends AjfBaseFieldComponent {
163
- constructor(cdr, service, was) {
164
- super(cdr, service, was);
165
- }
166
- }
167
- AjfDateFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfDateFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
168
- AjfDateFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfDateFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-calendar\n *ngIf=\"control|async as ctrl\"\n selectionMode=\"day\"\n [dateOnlyForDay]=\"true\"\n [minDate]=\"instance.node.minDate|ajfDateValue\"\n [maxDate]=\"instance.node.maxDate|ajfDateValue\"\n [formControl]=\"ctrl!\"\n></ajf-calendar>\n", styles: ["\n"], components: [{ type: i2$2.AjfCalendarComponent, selector: "ajf-calendar", outputs: ["change"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "ajfDateValue": i1$1.AjfDateValuePipe, "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfDateFieldComponent, decorators: [{
170
- type: Component,
171
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-calendar\n *ngIf=\"control|async as ctrl\"\n selectionMode=\"day\"\n [dateOnlyForDay]=\"true\"\n [minDate]=\"instance.node.minDate|ajfDateValue\"\n [maxDate]=\"instance.node.maxDate|ajfDateValue\"\n [formControl]=\"ctrl!\"\n></ajf-calendar>\n", styles: ["\n"] }]
172
- }], ctorParameters: function () {
173
- return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
174
- type: Inject,
175
- args: [AJF_WARNING_ALERT_SERVICE]
176
- }] }];
177
- } });
178
-
179
- /**
180
- * @license
181
- * Copyright (C) Gnucoop soc. coop.
182
- *
183
- * This file is part of the Advanced JSON forms (ajf).
184
- *
185
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
186
- * modify it under the terms of the GNU Affero General Public License as
187
- * published by the Free Software Foundation, either version 3 of the License,
188
- * or (at your option) any later version.
189
- *
190
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
191
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
192
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
193
- * General Public License for more details.
194
- *
195
- * You should have received a copy of the GNU Affero General Public License
196
- * along with Advanced JSON forms (ajf).
197
- * If not, see http://www.gnu.org/licenses/.
198
- *
199
- */
200
- class AjfDateInputFieldComponent extends AjfBaseFieldComponent {
201
- constructor(cdr, service, was, _dvs) {
202
- super(cdr, service, was);
203
- this._dvs = _dvs;
204
- }
205
- onChange() {
206
- if (this.input == null) {
207
- return;
208
- }
209
- const val = this.input.value || '';
210
- if (val.length > 0) {
211
- if ((this._minDateStr != null && val < this._minDateStr) ||
212
- (this._maxDateStr != null && val > this._maxDateStr)) {
213
- this.input.value = '';
214
- }
215
- }
216
- }
217
- _onInstanceChange() {
218
- this._minDateStr = this._dvs.transform(this.instance.node.minDate);
219
- this._maxDateStr = this._dvs.transform(this.instance.node.maxDate);
220
- }
221
- }
222
- AjfDateInputFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfDateInputFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }, { token: i1$1.AjfDateValueStringPipe }], target: i0.ɵɵFactoryTarget.Component });
223
- AjfDateInputFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfDateInputFieldComponent, selector: "ng-component", viewQueries: [{ propertyName: "input", first: true, predicate: MatInput, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field *ngIf=\"control|async as ctrl\">\n <input matInput type=\"date\"\n [attr.aria-label]=\"instance|ajfNodeCompleteName\"\n [min]=\"instance.node.minDate|ajfDateValueString\"\n [max]=\"instance.node.maxDate|ajfDateValueString\"\n (change)=\"onChange()\"\n [formControl]=\"ctrl!\">\n</mat-form-field>\n", styles: ["\n"], components: [{ type: i2$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe, "ajfNodeCompleteName": i1$1.AjfNodeCompleteNamePipe, "ajfDateValueString": i1$1.AjfDateValueStringPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfDateInputFieldComponent, decorators: [{
225
- type: Component,
226
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<mat-form-field *ngIf=\"control|async as ctrl\">\n <input matInput type=\"date\"\n [attr.aria-label]=\"instance|ajfNodeCompleteName\"\n [min]=\"instance.node.minDate|ajfDateValueString\"\n [max]=\"instance.node.maxDate|ajfDateValueString\"\n (change)=\"onChange()\"\n [formControl]=\"ctrl!\">\n</mat-form-field>\n", styles: ["\n"] }]
227
- }], ctorParameters: function () {
228
- return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
229
- type: Inject,
230
- args: [AJF_WARNING_ALERT_SERVICE]
231
- }] }, { type: i1$1.AjfDateValueStringPipe }];
232
- }, propDecorators: { input: [{
233
- type: ViewChild,
234
- args: [MatInput, { static: false }]
235
- }] } });
236
-
237
- /**
238
- * @license
239
- * Copyright (C) Gnucoop soc. coop.
240
- *
241
- * This file is part of the Advanced JSON forms (ajf).
242
- *
243
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
244
- * modify it under the terms of the GNU Affero General Public License as
245
- * published by the Free Software Foundation, either version 3 of the License,
246
- * or (at your option) any later version.
247
- *
248
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
249
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
250
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
251
- * General Public License for more details.
252
- *
253
- * You should have received a copy of the GNU Affero General Public License
254
- * along with Advanced JSON forms (ajf).
255
- * If not, see http://www.gnu.org/licenses/.
256
- *
257
- */
258
- class AjfEmptyFieldComponent extends AjfBaseFieldComponent {
259
- constructor(cdr, service, was) {
260
- super(cdr, service, was);
261
- }
262
- }
263
- AjfEmptyFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfEmptyFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
264
- AjfEmptyFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfEmptyFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<h1 [innerHTML]=\"instance.node.label | transloco\"></h1>\n<div [innerHTML]=\"instance.node.HTML | transloco\"></div>\n", styles: ["\n"], pipes: { "transloco": i2$4.TranslocoPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
265
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfEmptyFieldComponent, decorators: [{
266
- type: Component,
267
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<h1 [innerHTML]=\"instance.node.label | transloco\"></h1>\n<div [innerHTML]=\"instance.node.HTML | transloco\"></div>\n", styles: ["\n"] }]
268
- }], ctorParameters: function () {
269
- return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
270
- type: Inject,
271
- args: [AJF_WARNING_ALERT_SERVICE]
272
- }] }];
273
- } });
274
-
275
- /**
276
- * @license
277
- * Copyright (C) Gnucoop soc. coop.
278
- *
279
- * This file is part of the Advanced JSON forms (ajf).
280
- *
281
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
282
- * modify it under the terms of the GNU Affero General Public License as
283
- * published by the Free Software Foundation, either version 3 of the License,
284
- * or (at your option) any later version.
285
- *
286
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
287
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
288
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
289
- * General Public License for more details.
290
- *
291
- * You should have received a copy of the GNU Affero General Public License
292
- * along with Advanced JSON forms (ajf).
293
- * If not, see http://www.gnu.org/licenses/.
294
- *
295
- */
296
- class AjfBarcodeFieldComponent extends AjfBaseFieldComponent {
297
- constructor(cdr, service, was) {
298
- super(cdr, service, was);
299
- }
300
- }
301
- AjfBarcodeFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfBarcodeFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
302
- AjfBarcodeFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfBarcodeFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-barcode *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></ajf-barcode>\n", styles: ["\n"], components: [{ type: i2$5.AjfBarcodeComponent, selector: "ajf-barcode" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
303
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfBarcodeFieldComponent, decorators: [{
304
- type: Component,
305
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-barcode *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></ajf-barcode>\n", styles: ["\n"] }]
306
- }], ctorParameters: function () {
307
- return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
308
- type: Inject,
309
- args: [AJF_WARNING_ALERT_SERVICE]
310
- }] }];
311
- } });
312
-
313
- /**
314
- * @license
315
- * Copyright (C) Gnucoop soc. coop.
316
- *
317
- * This file is part of the Advanced JSON forms (ajf).
318
- *
319
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
320
- * modify it under the terms of the GNU Affero General Public License as
321
- * published by the Free Software Foundation, either version 3 of the License,
322
- * or (at your option) any later version.
323
- *
324
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
325
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
326
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
327
- * General Public License for more details.
328
- *
329
- * You should have received a copy of the GNU Affero General Public License
330
- * along with Advanced JSON forms (ajf).
331
- * If not, see http://www.gnu.org/licenses/.
332
- *
333
- */
334
- class AjfInputFieldComponent extends AjfInputFieldComponent$1 {
335
- constructor(cdr, service, was) {
336
- super(cdr, service, was);
337
- }
338
- }
339
- AjfInputFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfInputFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
340
- AjfInputFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfInputFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<mat-form-field *ngIf=\"control|async as ctrl\">\n <input matInput *ngIf=\"type === 'text'\" type=\"text\" [formControl]=\"ctrl!\"\n [readonly]=\"instance|ajfIsReadonlyInputField\" [attr.aria-labelledby]=\"instance.node.name\">\n <input matInput *ngIf=\"type === 'number'\" type=\"number\" [formControl]=\"ctrl!\"\n [readonly]=\"instance|ajfIsReadonlyInputField\" [attr.aria-labelledby]=\"instance.node.name\">\n</mat-form-field>\n", styles: ["\n"], components: [{ type: i2$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }], pipes: { "async": i3.AsyncPipe, "ajfIsReadonlyInputField": i1$1.AjfIsReadonlyInputFieldPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
341
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfInputFieldComponent, decorators: [{
342
- type: Component,
343
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<mat-form-field *ngIf=\"control|async as ctrl\">\n <input matInput *ngIf=\"type === 'text'\" type=\"text\" [formControl]=\"ctrl!\"\n [readonly]=\"instance|ajfIsReadonlyInputField\" [attr.aria-labelledby]=\"instance.node.name\">\n <input matInput *ngIf=\"type === 'number'\" type=\"number\" [formControl]=\"ctrl!\"\n [readonly]=\"instance|ajfIsReadonlyInputField\" [attr.aria-labelledby]=\"instance.node.name\">\n</mat-form-field>\n", styles: ["\n"] }]
344
- }], ctorParameters: function () {
345
- return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
346
- type: Inject,
347
- args: [AJF_WARNING_ALERT_SERVICE]
348
- }] }];
349
- } });
350
-
351
- /**
352
- * @license
353
- * Copyright (C) Gnucoop soc. coop.
354
- *
355
- * This file is part of the Advanced JSON forms (ajf).
356
- *
357
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
358
- * modify it under the terms of the GNU Affero General Public License as
359
- * published by the Free Software Foundation, either version 3 of the License,
360
- * or (at your option) any later version.
361
- *
362
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
363
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
364
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
365
- * General Public License for more details.
366
- *
367
- * You should have received a copy of the GNU Affero General Public License
368
- * along with Advanced JSON forms (ajf).
369
- * If not, see http://www.gnu.org/licenses/.
370
- *
371
- */
372
- class AjfMultipleChoiceFieldComponent extends AjfFieldWithChoicesComponent {
373
- constructor(cdr, service, was, searchThreshold) {
374
- super(cdr, service, was, searchThreshold);
375
- }
376
- }
377
- AjfMultipleChoiceFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfMultipleChoiceFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }, { token: AJF_SEARCH_ALERT_THRESHOLD, optional: true }], target: i0.ɵɵFactoryTarget.Component });
378
- AjfMultipleChoiceFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfMultipleChoiceFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!(instance|ajfExpandFieldWithChoices:searchThreshold); else expanded\">\n <mat-select *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\" [multiple]=\"true\">\n <mat-option [value]=\"choice.value\"\n *ngFor=\"let choice of instance.filteredChoices\">\n {{ choice.label | transloco }}\n </mat-option>\n </mat-select>\n</ng-container>\n<ng-template #expanded>\n <ajf-checkbox-group *ngIf=\"control|async as ctrl\" class=\"ajf-choices-container\"\n [formControl]=\"ctrl!\">\n <ajf-checkbox-group-item *ngFor=\"let choice of instance.filteredChoices\"\n [value]=\"choice.value\">\n {{ choice.label | transloco }}\n </ajf-checkbox-group-item>\n </ajf-checkbox-group>\n</ng-template>\n", styles: ["\n"], components: [{ type: i2$6.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i3$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i4$2.CheckboxGroupItem, selector: "ajf-checkbox-group-item" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7.AjfCheckboxGroup, selector: "ajf-checkbox-group,[ajf-checkbox-group]", inputs: ["value", "name", "disabled"], outputs: ["change"] }], pipes: { "ajfExpandFieldWithChoices": i1$1.AjfExpandFieldWithChoicesPipe, "async": i3.AsyncPipe, "transloco": i2$4.TranslocoPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
379
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfMultipleChoiceFieldComponent, decorators: [{
380
- type: Component,
381
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"!(instance|ajfExpandFieldWithChoices:searchThreshold); else expanded\">\n <mat-select *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\" [multiple]=\"true\">\n <mat-option [value]=\"choice.value\"\n *ngFor=\"let choice of instance.filteredChoices\">\n {{ choice.label | transloco }}\n </mat-option>\n </mat-select>\n</ng-container>\n<ng-template #expanded>\n <ajf-checkbox-group *ngIf=\"control|async as ctrl\" class=\"ajf-choices-container\"\n [formControl]=\"ctrl!\">\n <ajf-checkbox-group-item *ngFor=\"let choice of instance.filteredChoices\"\n [value]=\"choice.value\">\n {{ choice.label | transloco }}\n </ajf-checkbox-group-item>\n </ajf-checkbox-group>\n</ng-template>\n", styles: ["\n"] }]
382
- }], ctorParameters: function () {
383
- return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
384
- type: Inject,
385
- args: [AJF_WARNING_ALERT_SERVICE]
386
- }] }, { type: undefined, decorators: [{
387
- type: Optional
388
- }, {
389
- type: Inject,
390
- args: [AJF_SEARCH_ALERT_THRESHOLD]
391
- }] }];
392
- } });
393
-
394
- /**
395
- * @license
396
- * Copyright (C) Gnucoop soc. coop.
397
- *
398
- * This file is part of the Advanced JSON forms (ajf).
399
- *
400
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
401
- * modify it under the terms of the GNU Affero General Public License as
402
- * published by the Free Software Foundation, either version 3 of the License,
403
- * or (at your option) any later version.
404
- *
405
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
406
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
407
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
408
- * General Public License for more details.
409
- *
410
- * You should have received a copy of the GNU Affero General Public License
411
- * along with Advanced JSON forms (ajf).
412
- * If not, see http://www.gnu.org/licenses/.
413
- *
414
- */
415
- class AjfRangeFieldComponent extends AjfRange {
416
- constructor(cdr, service, was) {
417
- super(cdr, service, was);
418
- }
419
- }
420
- AjfRangeFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfRangeFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
421
- AjfRangeFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfRangeFieldComponent, selector: "ajf-range", usesInheritance: true, ngImport: i0, template: "<mat-slider\n *ngIf=\"control|async as ctrl\"\n thumbLabel\n [formControl]=\"ctrl!\"\n [tickInterval]=\"step\"\n [step]=\"step\"\n [min]=\"start\"\n [max]=\"end\"\n [attr.aria-label]=\"name\"\n [attr.name]=\"name\"\n></mat-slider>\n", styles: ["\n"], components: [{ type: i2$7.MatSlider, selector: "mat-slider", inputs: ["disabled", "color", "tabIndex", "invert", "max", "min", "step", "thumbLabel", "tickInterval", "value", "displayWith", "valueText", "vertical"], outputs: ["change", "input", "valueChange"], exportAs: ["matSlider"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
422
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfRangeFieldComponent, decorators: [{
423
- type: Component,
424
- args: [{ selector: 'ajf-range', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<mat-slider\n *ngIf=\"control|async as ctrl\"\n thumbLabel\n [formControl]=\"ctrl!\"\n [tickInterval]=\"step\"\n [step]=\"step\"\n [min]=\"start\"\n [max]=\"end\"\n [attr.aria-label]=\"name\"\n [attr.name]=\"name\"\n></mat-slider>\n", styles: ["\n"] }]
425
- }], ctorParameters: function () {
426
- return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
427
- type: Inject,
428
- args: [AJF_WARNING_ALERT_SERVICE]
429
- }] }];
430
- } });
431
-
432
- /**
433
- * @license
434
- * Copyright (C) Gnucoop soc. coop.
435
- *
436
- * This file is part of the Advanced JSON forms (ajf).
437
- *
438
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
439
- * modify it under the terms of the GNU Affero General Public License as
440
- * published by the Free Software Foundation, either version 3 of the License,
441
- * or (at your option) any later version.
442
- *
443
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
444
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
445
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
446
- * General Public License for more details.
447
- *
448
- * You should have received a copy of the GNU Affero General Public License
449
- * along with Advanced JSON forms (ajf).
450
- * If not, see http://www.gnu.org/licenses/.
451
- *
452
- */
453
- class AjfSingleChoiceFieldComponent extends AjfFieldWithChoicesComponent {
454
- constructor(cdr, service, was, searchThreshold) {
455
- super(cdr, service, was, searchThreshold);
456
- }
457
- }
458
- AjfSingleChoiceFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfSingleChoiceFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }, { token: AJF_SEARCH_ALERT_THRESHOLD, optional: true }], target: i0.ɵɵFactoryTarget.Component });
459
- AjfSingleChoiceFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfSingleChoiceFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!(instance|ajfExpandFieldWithChoices:searchThreshold) ; else expanded\">\n <mat-select *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\">\n <mat-option [value]=\"choice.value\"\n *ngFor=\"let choice of instance.filteredChoices\">\n {{ choice.label | transloco }}\n </mat-option>\n </mat-select>\n</ng-container>\n<ng-template #expanded>\n <mat-radio-group *ngIf=\"control|async as ctrl\" class=\"ajf-choices-container\"\n [attr.aria-labelledby]=\"instance.node.name\"\n [formControl]=\"ctrl!\">\n <mat-radio-button [value]=\"choice.value\"\n *ngFor=\"let choice of instance.filteredChoices\">\n {{ choice.label | transloco }}\n </mat-radio-button>\n </mat-radio-group>\n</ng-template>\n", styles: ["\n"], components: [{ type: i2$6.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i3$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i4$3.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4$3.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }], pipes: { "ajfExpandFieldWithChoices": i1$1.AjfExpandFieldWithChoicesPipe, "async": i3.AsyncPipe, "transloco": i2$4.TranslocoPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
460
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfSingleChoiceFieldComponent, decorators: [{
461
- type: Component,
462
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"!(instance|ajfExpandFieldWithChoices:searchThreshold) ; else expanded\">\n <mat-select *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\">\n <mat-option [value]=\"choice.value\"\n *ngFor=\"let choice of instance.filteredChoices\">\n {{ choice.label | transloco }}\n </mat-option>\n </mat-select>\n</ng-container>\n<ng-template #expanded>\n <mat-radio-group *ngIf=\"control|async as ctrl\" class=\"ajf-choices-container\"\n [attr.aria-labelledby]=\"instance.node.name\"\n [formControl]=\"ctrl!\">\n <mat-radio-button [value]=\"choice.value\"\n *ngFor=\"let choice of instance.filteredChoices\">\n {{ choice.label | transloco }}\n </mat-radio-button>\n </mat-radio-group>\n</ng-template>\n", styles: ["\n"] }]
463
- }], ctorParameters: function () {
464
- return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
465
- type: Inject,
466
- args: [AJF_WARNING_ALERT_SERVICE]
467
- }] }, { type: undefined, decorators: [{
468
- type: Optional
469
- }, {
470
- type: Inject,
471
- args: [AJF_SEARCH_ALERT_THRESHOLD]
472
- }] }];
473
- } });
474
-
475
- /**
476
- * @license
477
- * Copyright (C) Gnucoop soc. coop.
478
- *
479
- * This file is part of the Advanced JSON forms (ajf).
480
- *
481
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
482
- * modify it under the terms of the GNU Affero General Public License as
483
- * published by the Free Software Foundation, either version 3 of the License,
484
- * or (at your option) any later version.
485
- *
486
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
487
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
488
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
489
- * General Public License for more details.
490
- *
491
- * You should have received a copy of the GNU Affero General Public License
492
- * along with Advanced JSON forms (ajf).
493
- * If not, see http://www.gnu.org/licenses/.
494
- *
495
- */
496
- class AjfTableFieldComponent extends AjfTableFieldComponent$1 {
497
- constructor(cdr, service, was) {
498
- super(cdr, service, was);
499
- }
500
- }
501
- AjfTableFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTableFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
502
- AjfTableFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfTableFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<table class=\"ajf-table-field\">\n <ng-container *ngIf=\"instance.node as node\">\n <ng-container *ngFor=\"let columns of instance.controls; let row = index\">\n <tr [ngClass]=\"row | ajfTableRowClass\">\n <td>\n <ng-container *ngIf=\"columns.length > 0 && columns[0] != null\">\n {{ columns[0] | ajfTranslateIfString | ajfFormatIfNumber: '.0-2' }}\n </ng-container>\n </td>\n <ng-container *ngIf=\"columns.length > 1\">\n <td *ngFor=\"let c of columns[1]; let column = index\">\n <ng-container *ngIf=\"row == 0; else controlCell\">\n {{ c | ajfTranslateIfString | ajfFormatIfNumber: '.0-2' }}\n </ng-container>\n <ng-template #controlCell>\n <ng-container *ngIf=\"c|ajfGetTableCellControl as contr\">\n <ng-container *ngIf=\"contr != null\">\n <ng-container\n *ngIf=\"contr!.show && (node.rows[row-1][column]|ajfIsCellEditable); else plainTextCell\"\n >\n <ng-container\n *ngIf=\"contr.type === 'number';else genericInput\"\n >\n <input\n (focusout)=\"contr!.show = false\"\n type=\"number\"\n [formControl]=\"contr.control\"\n (keydown.tab)=\"goToNextCell($event, row, column)\"\n autofocus\n />\n </ng-container>\n <ng-template #genericInput>\n <input\n (focusout)=\"contr!.show = false\"\n [type]=\"contr.type\"\n [formControl]=\"contr.control\"\n (keydown.tab)=\"goToNextCell($event, row, column)\"\n autofocus\n />\n </ng-template>\n </ng-container>\n\n <ng-template #plainTextCell>\n <span class=\"ajf-table-cell\" (click)=\"goToCell(row, column)\"\n >{{ contr.control!.value | ajfTranslateIfString |\n ajfFormatIfNumber: '.0-2' }}</span\n >\n </ng-template>\n </ng-container>\n </ng-container>\n </ng-template>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n</table>\n", styles: ["table.ajf-table-field{border-collapse:collapse;border-spacing:0;width:100%}table.ajf-table-field tr td{position:relative;min-width:1em}table.ajf-table-field tr td span,table.ajf-table-field tr td input{cursor:text;position:absolute;width:100%;box-sizing:border-box;outline:none;top:0;right:0;bottom:0;left:0;display:inline-block;border-top:solid 1px #ccc;border-right:solid 1px transparent;border-bottom:solid 1px transparent;border-left:solid 1px #ccc;font-family:inherit;font-size:inherit;line-height:inherit;text-align:center}table.ajf-table-field tr td:last-child span,table.ajf-table-field tr td:last-child input{border-right-color:#ccc}table.ajf-table-field tr:last-of-type td span,table.ajf-table-field tr:last-of-type td input{border-bottom-color:#ccc}\n"], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "ajfTableRowClass": i1$1.AjfTableRowClass, "ajfFormatIfNumber": i4$4.FormatIfNumber, "ajfTranslateIfString": i4$4.TranslateIfString, "ajfGetTableCellControl": i1$1.AjfGetTableCellControlPipe, "ajfIsCellEditable": i1$1.AjfIsCellEditablePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
503
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTableFieldComponent, decorators: [{
504
- type: Component,
505
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<table class=\"ajf-table-field\">\n <ng-container *ngIf=\"instance.node as node\">\n <ng-container *ngFor=\"let columns of instance.controls; let row = index\">\n <tr [ngClass]=\"row | ajfTableRowClass\">\n <td>\n <ng-container *ngIf=\"columns.length > 0 && columns[0] != null\">\n {{ columns[0] | ajfTranslateIfString | ajfFormatIfNumber: '.0-2' }}\n </ng-container>\n </td>\n <ng-container *ngIf=\"columns.length > 1\">\n <td *ngFor=\"let c of columns[1]; let column = index\">\n <ng-container *ngIf=\"row == 0; else controlCell\">\n {{ c | ajfTranslateIfString | ajfFormatIfNumber: '.0-2' }}\n </ng-container>\n <ng-template #controlCell>\n <ng-container *ngIf=\"c|ajfGetTableCellControl as contr\">\n <ng-container *ngIf=\"contr != null\">\n <ng-container\n *ngIf=\"contr!.show && (node.rows[row-1][column]|ajfIsCellEditable); else plainTextCell\"\n >\n <ng-container\n *ngIf=\"contr.type === 'number';else genericInput\"\n >\n <input\n (focusout)=\"contr!.show = false\"\n type=\"number\"\n [formControl]=\"contr.control\"\n (keydown.tab)=\"goToNextCell($event, row, column)\"\n autofocus\n />\n </ng-container>\n <ng-template #genericInput>\n <input\n (focusout)=\"contr!.show = false\"\n [type]=\"contr.type\"\n [formControl]=\"contr.control\"\n (keydown.tab)=\"goToNextCell($event, row, column)\"\n autofocus\n />\n </ng-template>\n </ng-container>\n\n <ng-template #plainTextCell>\n <span class=\"ajf-table-cell\" (click)=\"goToCell(row, column)\"\n >{{ contr.control!.value | ajfTranslateIfString |\n ajfFormatIfNumber: '.0-2' }}</span\n >\n </ng-template>\n </ng-container>\n </ng-container>\n </ng-template>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n</table>\n", styles: ["table.ajf-table-field{border-collapse:collapse;border-spacing:0;width:100%}table.ajf-table-field tr td{position:relative;min-width:1em}table.ajf-table-field tr td span,table.ajf-table-field tr td input{cursor:text;position:absolute;width:100%;box-sizing:border-box;outline:none;top:0;right:0;bottom:0;left:0;display:inline-block;border-top:solid 1px #ccc;border-right:solid 1px transparent;border-bottom:solid 1px transparent;border-left:solid 1px #ccc;font-family:inherit;font-size:inherit;line-height:inherit;text-align:center}table.ajf-table-field tr td:last-child span,table.ajf-table-field tr td:last-child input{border-right-color:#ccc}table.ajf-table-field tr:last-of-type td span,table.ajf-table-field tr:last-of-type td input{border-bottom-color:#ccc}\n"] }]
506
- }], ctorParameters: function () {
507
- return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
508
- type: Inject,
509
- args: [AJF_WARNING_ALERT_SERVICE]
510
- }] }];
511
- } });
512
-
513
- /**
514
- * @license
515
- * Copyright (C) Gnucoop soc. coop.
516
- *
517
- * This file is part of the Advanced JSON forms (ajf).
518
- *
519
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
520
- * modify it under the terms of the GNU Affero General Public License as
521
- * published by the Free Software Foundation, either version 3 of the License,
522
- * or (at your option) any later version.
523
- *
524
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
525
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
526
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
527
- * General Public License for more details.
528
- *
529
- * You should have received a copy of the GNU Affero General Public License
530
- * along with Advanced JSON forms (ajf).
531
- * If not, see http://www.gnu.org/licenses/.
532
- *
533
- */
534
- class AjfTextFieldComponent extends AjfInputFieldComponent$1 {
535
- constructor(cdr, service, was) {
536
- super(cdr, service, was);
537
- }
538
- }
539
- AjfTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTextFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
540
- AjfTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfTextFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<mat-form-field *ngIf=\"control|async as ctrl\">\n <textarea matInput cdkTextareaAutosize [formControl]=\"ctrl!\"></textarea>\n</mat-form-field>\n", styles: ["\n"], components: [{ type: i2$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i5.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
541
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTextFieldComponent, decorators: [{
542
- type: Component,
543
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<mat-form-field *ngIf=\"control|async as ctrl\">\n <textarea matInput cdkTextareaAutosize [formControl]=\"ctrl!\"></textarea>\n</mat-form-field>\n", styles: ["\n"] }]
544
- }], ctorParameters: function () {
545
- return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
546
- type: Inject,
547
- args: [AJF_WARNING_ALERT_SERVICE]
548
- }] }];
549
- } });
550
-
551
- /**
552
- * @license
553
- * Copyright (C) Gnucoop soc. coop.
554
- *
555
- * This file is part of the Advanced JSON forms (ajf).
556
- *
557
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
558
- * modify it under the terms of the GNU Affero General Public License as
559
- * published by the Free Software Foundation, either version 3 of the License,
560
- * or (at your option) any later version.
561
- *
562
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
563
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
564
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
565
- * General Public License for more details.
566
- *
567
- * You should have received a copy of the GNU Affero General Public License
568
- * along with Advanced JSON forms (ajf).
569
- * If not, see http://www.gnu.org/licenses/.
570
- *
571
- */
572
- class AjfTimeFieldComponent extends AjfBaseFieldComponent {
573
- constructor(cdr, service, was) {
574
- super(cdr, service, was);
575
- }
576
- }
577
- AjfTimeFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTimeFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
578
- AjfTimeFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfTimeFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-time *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></ajf-time>\n", styles: ["\n"], components: [{ type: i2$8.AjfTime, selector: "ajf-time" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
579
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTimeFieldComponent, decorators: [{
580
- type: Component,
581
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-time *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></ajf-time>\n", styles: ["\n"] }]
582
- }], ctorParameters: function () {
583
- return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
584
- type: Inject,
585
- args: [AJF_WARNING_ALERT_SERVICE]
586
- }] }];
587
- } });
588
-
589
- /**
590
- * @license
591
- * Copyright (C) Gnucoop soc. coop.
592
- *
593
- * This file is part of the Advanced JSON forms (ajf).
594
- *
595
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
596
- * modify it under the terms of the GNU Affero General Public License as
597
- * published by the Free Software Foundation, either version 3 of the License,
598
- * or (at your option) any later version.
599
- *
600
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
601
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
602
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
603
- * General Public License for more details.
604
- *
605
- * You should have received a copy of the GNU Affero General Public License
606
- * along with Advanced JSON forms (ajf).
607
- * If not, see http://www.gnu.org/licenses/.
608
- *
609
- */
610
- class AjfVideoUrlFieldComponent extends AjfVideoUrlFieldComponent$1 {
611
- constructor(cdr, service, was, domSanitizer, httpClient) {
612
- super(cdr, service, was, domSanitizer, httpClient);
613
- }
614
- }
615
- AjfVideoUrlFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfVideoUrlFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }, { token: i2$9.DomSanitizer }, { token: i3$2.HttpClient }], target: i0.ɵɵFactoryTarget.Component });
616
- AjfVideoUrlFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfVideoUrlFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"control|async as ctrl\">\n <mat-form-field class=\"ajf-video-input\">\n <input matInput type=\"url\" [formControl]=\"ctrl!\">\n </mat-form-field>\n <div class=\"ajf-video-thumbnail\">\n <ng-container *ngIf=\"validUrl|async\">\n <a target=\"_blank\" [href]=\"ctrl.value\">\n <img *ngIf=\"videoThumbnail|async as thumb\" [src]=\"thumb\" class=\"\" alt=\"\">\n </a>\n </ng-container>\n </div>\n</ng-container>\n", styles: [".ajf-video-input{width:100%}.ajf-video-thumbnail{width:212px;height:120px;background-color:#eee;display:flex;align-items:center;justify-content:center}.ajf-video-thumbnail img{flex:1 1 auto}\n"], components: [{ type: i2$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
617
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfVideoUrlFieldComponent, decorators: [{
618
- type: Component,
619
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"control|async as ctrl\">\n <mat-form-field class=\"ajf-video-input\">\n <input matInput type=\"url\" [formControl]=\"ctrl!\">\n </mat-form-field>\n <div class=\"ajf-video-thumbnail\">\n <ng-container *ngIf=\"validUrl|async\">\n <a target=\"_blank\" [href]=\"ctrl.value\">\n <img *ngIf=\"videoThumbnail|async as thumb\" [src]=\"thumb\" class=\"\" alt=\"\">\n </a>\n </ng-container>\n </div>\n</ng-container>\n", styles: [".ajf-video-input{width:100%}.ajf-video-thumbnail{width:212px;height:120px;background-color:#eee;display:flex;align-items:center;justify-content:center}.ajf-video-thumbnail img{flex:1 1 auto}\n"] }]
620
- }], ctorParameters: function () {
621
- return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
622
- type: Inject,
623
- args: [AJF_WARNING_ALERT_SERVICE]
624
- }] }, { type: i2$9.DomSanitizer }, { type: i3$2.HttpClient }];
625
- } });
626
-
627
- /**
628
- * @license
629
- * Copyright (C) Gnucoop soc. coop.
630
- *
631
- * This file is part of the Advanced JSON forms (ajf).
632
- *
633
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
634
- * modify it under the terms of the GNU Affero General Public License as
635
- * published by the Free Software Foundation, either version 3 of the License,
636
- * or (at your option) any later version.
637
- *
638
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
639
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
640
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
641
- * General Public License for more details.
642
- *
643
- * You should have received a copy of the GNU Affero General Public License
644
- * along with Advanced JSON forms (ajf).
645
- * If not, see http://www.gnu.org/licenses/.
646
- *
647
- */
648
- class AjfFieldService extends AjfFieldService$1 {
649
- constructor() {
650
- super();
651
- (this.componentsMap[AjfFieldType.String] = {
652
- component: AjfInputFieldComponent,
653
- readOnlyComponent: AjfReadOnlyFieldComponent,
654
- }),
655
- (this.componentsMap[AjfFieldType.Text] = {
656
- component: AjfTextFieldComponent,
657
- readOnlyComponent: AjfReadOnlyFieldComponent,
658
- }),
659
- (this.componentsMap[AjfFieldType.Number] = {
660
- component: AjfInputFieldComponent,
661
- readOnlyComponent: AjfReadOnlyFieldComponent,
662
- inputs: { type: 'number' },
663
- }),
664
- (this.componentsMap[AjfFieldType.Boolean] = {
665
- component: AjfBooleanFieldComponent,
666
- readOnlyComponent: AjfReadOnlyFieldComponent,
667
- }),
668
- (this.componentsMap[AjfFieldType.Formula] = {
669
- component: AjfInputFieldComponent,
670
- readOnlyComponent: AjfReadOnlyFieldComponent,
671
- inputs: { readonly: true },
672
- }),
673
- (this.componentsMap[AjfFieldType.Date] = {
674
- component: AjfDateFieldComponent,
675
- readOnlyComponent: AjfReadOnlyFieldComponent,
676
- }),
677
- (this.componentsMap[AjfFieldType.DateInput] = {
678
- component: AjfDateInputFieldComponent,
679
- readOnlyComponent: AjfReadOnlyFieldComponent,
680
- }),
681
- (this.componentsMap[AjfFieldType.Table] = {
682
- component: AjfTableFieldComponent,
683
- readOnlyComponent: AjfReadOnlyTableFieldComponent,
684
- }),
685
- (this.componentsMap[AjfFieldType.Empty] = { component: AjfEmptyFieldComponent }),
686
- (this.componentsMap[AjfFieldType.SingleChoice] = {
687
- component: AjfSingleChoiceFieldComponent,
688
- readOnlyComponent: AjfReadOnlySelectFieldComponent,
689
- }),
690
- (this.componentsMap[AjfFieldType.MultipleChoice] = {
691
- component: AjfMultipleChoiceFieldComponent,
692
- readOnlyComponent: AjfReadOnlySelectFieldComponent,
693
- }),
694
- (this.componentsMap[AjfFieldType.Time] = {
695
- component: AjfTimeFieldComponent,
696
- readOnlyComponent: AjfReadOnlyFieldComponent,
697
- }),
698
- (this.componentsMap[AjfFieldType.Barcode] = {
699
- component: AjfBarcodeFieldComponent,
700
- readOnlyComponent: AjfReadOnlyFieldComponent,
701
- });
702
- this.componentsMap[AjfFieldType.File] = {
703
- component: AjfFileFieldComponent,
704
- readOnlyComponent: AjfReadOnlyFileFieldComponent,
705
- };
706
- this.componentsMap[AjfFieldType.Image] = {
707
- component: AjfImageFieldComponent,
708
- readOnlyComponent: AjfReadOnlyImageFieldComponent,
709
- };
710
- this.componentsMap[AjfFieldType.VideoUrl] = {
711
- component: AjfVideoUrlFieldComponent,
712
- readOnlyComponent: AjfReadOnlyVideoUrlFieldComponent,
713
- };
714
- this.componentsMap[AjfFieldType.Range] = {
715
- component: AjfRangeFieldComponent,
716
- readOnlyComponent: AjfReadOnlyFieldComponent,
717
- };
718
- }
719
- }
720
- AjfFieldService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFieldService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
721
- AjfFieldService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFieldService, providedIn: 'root' });
722
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFieldService, decorators: [{
723
- type: Injectable,
724
- args: [{ providedIn: 'root' }]
725
- }], ctorParameters: function () { return []; } });
726
-
727
- /**
728
- * @license
729
- * Copyright (C) Gnucoop soc. coop.
730
- *
731
- * This file is part of the Advanced JSON forms (ajf).
732
- *
733
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
734
- * modify it under the terms of the GNU Affero General Public License as
735
- * published by the Free Software Foundation, either version 3 of the License,
736
- * or (at your option) any later version.
737
- *
738
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
739
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
740
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
741
- * General Public License for more details.
742
- *
743
- * You should have received a copy of the GNU Affero General Public License
744
- * along with Advanced JSON forms (ajf).
745
- * If not, see http://www.gnu.org/licenses/.
746
- *
747
- */
748
- class AjfFormField extends AjfFormField$1 {
749
- constructor(cdr, cfr, fieldService) {
750
- super(cdr, cfr);
751
- this.componentsMap = fieldService.componentsMap;
752
- }
753
- }
754
- AjfFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormField, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ComponentFactoryResolver }, { token: AjfFieldService }], target: i0.ɵɵFactoryTarget.Component });
755
- AjfFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfFormField, selector: "ajf-field,ajf-form-field", usesInheritance: true, ngImport: i0, template: "<div\n [ngClass]=\"'ajf-field-' + (instance|ajfNodeCompleteName)\"\n [class.ajf-validated]=\"instance.validationResults|ajfFieldIsValid\"\n>\n <ng-template ajf-field-host></ng-template>\n</div>\n<ng-container *ngIf=\"instance && instance.node && instance.node.attachments\">\n <a *ngFor=\"let attachment of instance.node.attachments\"\n [href]=\"attachment.value\" target=\"_blank\">{{attachment.label | transloco}}</a>\n</ng-container>\n<div *ngIf=\"!readonly && instance && instance.validationResults\" class=\"ajf-errors\">\n <ng-container *ngFor=\"let res of instance.validationResults\">\n <div class=\"error\" *ngIf=\"!res.result\">\n {{ res.error|transloco }} \n </div>\n </ng-container>\n</div>\n", styles: ["ajf-field .ajf-choices-container{display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch}ajf-field .ajf-item-container{position:relative}ajf-field .ajf-errors{font-style:italic;padding:5px}ajf-field tr.ajf-row-odd{background-color:gray}table{border-collapse:collapse;border-spacing:0}table tr td{position:relative}table tr td span,table tr td input{cursor:text;position:absolute;width:100%;box-sizing:border-box;outline:none;top:0;right:0;bottom:0;left:0;display:inline-block;border-top:solid 1px #ccc;border-right:solid 1px transparent;border-bottom:solid 1px transparent;border-left:solid 1px #ccc;font-family:inherit;font-size:inherit;line-height:inherit;text-align:center}table tr td:last-child span,table tr td:last-child input{border-right-color:#ccc}table tr:last-of-type td span,table tr:last-of-type td input{border-bottom-color:#ccc}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}\n"], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.AjfFieldHost, selector: "[ajf-field-host]" }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "ajfNodeCompleteName": i1$1.AjfNodeCompleteNamePipe, "ajfFieldIsValid": i1$1.AjfFieldIsValidPipe, "transloco": i2$4.TranslocoPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
756
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormField, decorators: [{
757
- type: Component,
758
- args: [{ selector: 'ajf-field,ajf-form-field', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div\n [ngClass]=\"'ajf-field-' + (instance|ajfNodeCompleteName)\"\n [class.ajf-validated]=\"instance.validationResults|ajfFieldIsValid\"\n>\n <ng-template ajf-field-host></ng-template>\n</div>\n<ng-container *ngIf=\"instance && instance.node && instance.node.attachments\">\n <a *ngFor=\"let attachment of instance.node.attachments\"\n [href]=\"attachment.value\" target=\"_blank\">{{attachment.label | transloco}}</a>\n</ng-container>\n<div *ngIf=\"!readonly && instance && instance.validationResults\" class=\"ajf-errors\">\n <ng-container *ngFor=\"let res of instance.validationResults\">\n <div class=\"error\" *ngIf=\"!res.result\">\n {{ res.error|transloco }} \n </div>\n </ng-container>\n</div>\n", styles: ["ajf-field .ajf-choices-container{display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch}ajf-field .ajf-item-container{position:relative}ajf-field .ajf-errors{font-style:italic;padding:5px}ajf-field tr.ajf-row-odd{background-color:gray}table{border-collapse:collapse;border-spacing:0}table tr td{position:relative}table tr td span,table tr td input{cursor:text;position:absolute;width:100%;box-sizing:border-box;outline:none;top:0;right:0;bottom:0;left:0;display:inline-block;border-top:solid 1px #ccc;border-right:solid 1px transparent;border-bottom:solid 1px transparent;border-left:solid 1px #ccc;font-family:inherit;font-size:inherit;line-height:inherit;text-align:center}table tr td:last-child span,table tr td:last-child input{border-right-color:#ccc}table tr:last-of-type td span,table tr:last-of-type td input{border-bottom-color:#ccc}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}\n"] }]
759
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ComponentFactoryResolver }, { type: AjfFieldService }]; } });
760
-
761
- /**
762
- * @license
763
- * Copyright (C) Gnucoop soc. coop.
764
- *
765
- * This file is part of the Advanced JSON forms (ajf).
766
- *
767
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
768
- * modify it under the terms of the GNU Affero General Public License as
769
- * published by the Free Software Foundation, either version 3 of the License,
770
- * or (at your option) any later version.
771
- *
772
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
773
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
774
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
775
- * General Public License for more details.
776
- *
777
- * You should have received a copy of the GNU Affero General Public License
778
- * along with Advanced JSON forms (ajf).
779
- * If not, see http://www.gnu.org/licenses/.
780
- *
781
- */
782
- class AjfFormRenderer extends AjfFormRenderer$1 {
783
- constructor(rendererService, changeDetectorRef) {
784
- super(rendererService, changeDetectorRef);
785
- this.topBar = false;
786
- }
787
- }
788
- AjfFormRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormRenderer, deps: [{ token: i1$1.AjfFormRendererService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
789
- AjfFormRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfFormRenderer, selector: "ajf-form", inputs: { topBar: "topBar" }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"formGroup|async as fg\">\n <form novalidate [formGroup]=\"fg!\">\n <div class=\"ajf-form-container\">\n <mat-toolbar *ngIf=\"!hideTopToolbar && topBar\" class=\"ajf-btn-strip\">\n <ng-template\n ngFor\n let-slideInstance\n [ngForOf]=\"slides|async\"\n [ngForTrackBy]=\"trackNodeById\"\n >\n <button\n mat-button\n class=\"ajf-topbar-button\"\n *ngIf=\"slideInstance.node != null && slideInstance.node.label != null && slideInstance.node.label.length > 0\"\n (click)=\"scrollToSlide(slideInstance)\"\n >\n {{slideInstance.node.label | transloco}}\n </button>\n </ng-template>\n </mat-toolbar>\n <mat-toolbar *ngIf=\"!hideTopToolbar\">\n {{ title }}\n <span class=\"ajf-spacer\"></span>\n <!-- this content projection allow to add buttons on toolbar -->\n <ng-content select=\"[ajfFormTopToolbarButtons]\"></ng-content>\n <!-- apply a default save button only when ajfFormSaveButton is empty -->\n <span *ngIf=\"!saveDisabled\" (click)=\"onSave($event)\">\n <span #saveButton\n ><ng-content select=\"[ajfFormSaveButton]\"></ng-content\n ></span>\n <button\n *ngIf=\"saveButton != null && saveButton.childNodes != null && saveButton.childNodes.length == 0\"\n mat-button\n default\n >\n {{'Save'|transloco}}\n </button>\n </span>\n </mat-toolbar>\n <div class=\"ajf-slider-container\">\n <ajf-page-slider\n (orientationChange)=\"orientationChangeHandler($event)\"\n [fixedOrientation]=\"fixedOrientation\"\n [hideNavigationButtons]=\"hideNavigationButtons\"\n [orientation]=\"orientation\"\n #formSlider\n >\n <ng-container *ngIf=\"(slides|async) as curSlides\">\n <ng-container *ngIf=\"curSlides!.length > 0 && hasStartMessage\">\n <ajf-page-slider-item>\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span class=\"ajf-form-header-number\"> 1 &rarr; </span>\n <span class=\"ajf-title\">\n <ng-content\n select=\"[ajfFormStartMessageTitle]\"\n ></ng-content>\n </span>\n </h2>\n </div>\n </mat-card-header>\n <mat-card-content>\n <ng-content select=\"[ajfFormStartMessage]\"></ng-content>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n <ng-container\n *ngFor=\"let slideInstance of curSlides; trackBy:trackNodeById\"\n >\n <!-- non repeating slides -->\n <ng-container *ngIf=\"slideInstance.visible\">\n <ng-container\n *ngIf=\"!(slideInstance|ajfIsRepeatingSlideInstance)\"\n >\n <ajf-page-slider-item>\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span class=\"ajf-form-header-number\"\n >{{ slideInstance.position + (hasStartMessage |\n ajfBoolToInt) }} &rarr;</span\n >\n <span\n [innerHTML]=\"slideInstance.node.label | transloco\"\n ></span>\n </h2>\n <mat-icon\n class=\"ajf-warning\"\n *ngIf=\"!slideInstance.valid\"\n >warning</mat-icon\n >\n <mat-icon\n class=\"ajf-success\"\n *ngIf=\"slideInstance.valid\"\n >check</mat-icon\n >\n </div>\n </mat-card-header>\n <mat-card-content>\n <ng-template\n ngFor\n let-fieldInstance\n [ngForOf]=\"slideInstance.flatNodes\"\n [ngForTrackBy]=\"trackNodeById\"\n >\n <div\n [ngClass]=\"'ajf-' + (fieldInstance|ajfAsFieldInstance).node.size\"\n class=\"ajf-field-entry\"\n *ngIf=\"fieldInstance.visible\"\n >\n <i\n [class]=\"(fieldInstance|ajfAsFieldInstance).node.fieldType | ajfFieldIcon\"\n item-right\n ></i>\n <p>\n {{\n ((fieldInstance|ajfAsFieldInstance).node.description\n || '') | transloco }}\n </p>\n <label\n [attr.id]=\"fieldInstance.node.name\"\n *ngIf=\"(fieldInstance|ajfAsFieldInstance).node.fieldType !== 7\"\n [innerHTML]=\"fieldInstance.node.label | transloco\"\n ></label>\n <mat-icon\n class=\"ajf-tooltip-icon\"\n *ngIf=\"(fieldInstance|ajfAsFieldInstance).node?.hint as hint\"\n [matTooltip]=\"hint\"\n matTooltipPosition=\"right\"\n >\n {{(fieldInstance|ajfAsFieldInstance).node?.hintIcon\n || 'help'}}</mat-icon\n >\n <ajf-field\n [instance]=\"fieldInstance|ajfAsFieldInstance\"\n [readonly]=\"readonly || !slideInstance.editable\"\n >\n </ajf-field>\n </div>\n </ng-template>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n <!-- repeating slides -->\n <ng-container\n *ngIf=\"(slideInstance|ajfIsRepeatingSlideInstance)\"\n >\n <ajf-page-slider-item\n *ngFor=\"let curRep of ((slideInstance|ajfAsRepeatingSlideInstance).reps|ajfRange); let idx = index; let lastSlide = last\"\n >\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span class=\"ajf-form-header-number\"\n >{{ slideInstance.position|ajfIncrement:idx +\n (hasStartMessage | ajfBoolToInt) }} &rarr;</span\n >\n <span\n [innerHTML]=\"slideInstance.node.label | transloco\"\n ></span>\n </h2>\n <mat-icon\n class=\"ajf-warning\"\n *ngIf=\"!(slideInstance|ajfValidSlide:idx)\"\n >warning</mat-icon\n >\n <mat-icon\n class=\"ajf-success\"\n *ngIf=\"(slideInstance|ajfValidSlide:idx)\"\n >check</mat-icon\n >\n </div>\n </mat-card-header>\n <mat-card-content>\n <div\n *ngIf=\"lastSlide && !readonly\"\n class=\"ajf-group-actions\"\n >\n <button\n (click)=\"addGroup(slideInstance)\"\n [disabled]=\"!(slideInstance|ajfAsRepeatingSlideInstance).canAdd || ((slideInstance|ajfAsRepeatingSlideInstance).node?.disableRemoval && !slideInstance.valid)\"\n mat-mini-fab\n >\n <mat-icon>add</mat-icon>\n </button>\n <button\n (click)=\"removeGroup(slideInstance)\"\n [disabled]=\"!(slideInstance|ajfAsRepeatingSlideInstance).canRemove || (slideInstance|ajfAsRepeatingSlideInstance).node?.disableRemoval\"\n mat-mini-fab\n >\n <mat-icon>remove</mat-icon>\n </button>\n </div>\n <ng-template\n ngFor\n let-fieldInstance\n [ngForOf]=\"slideInstance.slideNodes[idx]\"\n [ngForTrackBy]=\"trackNodeById\"\n >\n <div\n [ngClass]=\"'ajf-' + (fieldInstance|ajfAsFieldInstance).node.size\"\n class=\"ajf-field-entry\"\n *ngIf=\"fieldInstance.visible\"\n >\n <i\n [class]=\"(fieldInstance|ajfAsFieldInstance).node.fieldType | ajfFieldIcon\"\n item-right\n ></i>\n <p>\n {{\n ((fieldInstance|ajfAsFieldInstance).node.description\n || '') | transloco }}\n </p>\n <label\n [attr.id]=\"fieldInstance.node.name\"\n [innerHTML]=\"fieldInstance.node.label | transloco\"\n ></label>\n <mat-icon\n class=\"ajf-tooltip-icon\"\n *ngIf=\"(fieldInstance|ajfAsFieldInstance).node?.hint as hint\"\n [matTooltip]=\"hint\"\n matTooltipPosition=\"right\"\n >\n {{(fieldInstance|ajfAsFieldInstance).node?.hintIcon\n || 'help'}}</mat-icon\n >\n <ajf-field\n [instance]=\"fieldInstance|ajfAsFieldInstance\"\n [readonly]=\"readonly || (!lastSlide && (slideInstance|ajfAsRepeatingSlideInstance).node?.disableRemoval)\"\n >\n </ajf-field>\n </div>\n </ng-template>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container\n *ngIf=\"curSlides && curSlides!.length > 0 && hasEndMessage\"\n >\n <ajf-page-slider-item>\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span\n *ngIf=\"(slidesNum|async) as snum\"\n class=\"ajf-form-header-number\"\n >\n {{ snum! + (hasStartMessage | ajfBoolToInt ) + 1 }}\n &rarr;\n </span>\n <span class=\"ajf-title\">\n <ng-content\n select=\"[ajfFormEndMessageTitle]\"\n ></ng-content>\n </span>\n </h2>\n </div>\n </mat-card-header>\n <mat-card-content>\n <ng-content select=\"[ajfFormEndMessage]\"></ng-content>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n </ng-container>\n <div ajfPageSliderBar *ngIf=\"!hideBottomToolbar\">\n <div class=\"ajf-left-bar\">\n <div class=\"ajf-errors\" *ngIf=\"((errors | async) || 0) > 0\">\n <button mat-button (click)=\"goToPrevError()\" danger>\n <mat-icon>arrow_upward</mat-icon>\n </button>\n <button mat-button (click)=\"goToNextError()\" danger>\n <mat-icon>arrow_downward</mat-icon>\n </button>\n </div>\n <div class=\"ajf-info-box ajf-error\">\n <div class=\"ajf-title\">{{'Errors'|transloco}}</div>\n <div class=\"ajf-content\">\n {{ errors | async }} / {{ slidesNum|async }}\n </div>\n </div>\n </div>\n </div>\n </ajf-page-slider>\n </div>\n </div>\n </form>\n</ng-container>\n", styles: ["ajf-form{display:block}ajf-form .ajf-form-container{display:flex;flex-direction:column;position:absolute;top:0;right:0;bottom:0;left:0}ajf-form .ajf-form-container mat-toolbar.ajf-btn-strip{overflow:auto}ajf-form .ajf-form-container mat-toolbar.ajf-btn-strip button.ajf-topbar-button.mat-button{flex:1 1 auto}ajf-form .ajf-form-container mat-toolbar.ajf-btn-strip button.ajf-topbar-button.mat-button *{display:block;width:100%;overflow:hidden;text-overflow:ellipsis}ajf-form .ajf-form-container mat-toolbar.ajf-hidden{opacity:0}ajf-form .ajf-form-container .ajf-topbar-button{margin-right:10px}ajf-form .ajf-form-container>.ajf-slider-container{flex:1;position:relative}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider{height:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content{padding:16px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page{flex:1;max-height:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card{margin:1em 0 3em}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content{display:flex;flex-wrap:wrap;flex-direction:row;align-content:flex-start;position:relative}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content .ajf-group-actions{position:absolute;right:0;top:-30px;padding:15px;z-index:10}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry{flex:1 0 auto;padding-left:10px;padding-right:10px;width:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry .mat-icon{vertical-align:bottom;margin-left:5px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-normal{width:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-small{width:50%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-smaller{width:33%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-tiny{width:25%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-mini{width:20%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header{display:flex;align-items:center;width:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header>h2{flex:1}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header>h2>.ajf-form-header-number{margin-right:.5em}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header mat-icon.ajf-warning{color:#f53d3d}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header mat-icon.ajf-success{color:#32db64}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header h2>.ajf-title{display:inline-block;margin-right:40px;white-space:normal;vertical-align:top}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar{display:flex;align-items:flex-start;flex-direction:row;position:absolute;bottom:0}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-right-button{float:right}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-button-icon-only ion-icon{padding:0 .1em}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box{height:40px;padding:4px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box>div{height:16px;line-height:16px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box>div.ajf-content{font-weight:bold}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box.ajf-error{order:2;color:red}ajf-form .ajf-form-container .ajf-spacer{flex:1 0 auto}\n"], components: [{ type: i2$a.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4$5.AjfPageSlider, selector: "ajf-page-slider" }, { type: i5$1.AjfPageSliderItem, selector: "ajf-page-slider-item", outputs: ["scroll"] }, { type: i6.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i6.MatCardHeader, selector: "mat-card-header" }, { type: i7$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: AjfFormField, selector: "ajf-field,ajf-form-field" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i11.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], pipes: { "async": i3.AsyncPipe, "transloco": i2$4.TranslocoPipe, "ajfIsRepeatingSlideInstance": i1$1.AjfIsRepeatingSlideInstancePipe, "ajfBoolToInt": i1$1.AjfBoolToIntPipe, "ajfAsFieldInstance": i1$1.AjfAsFieldInstancePipe, "ajfFieldIcon": i1$1.AjfFieldIconPipe, "ajfRange": i1$1.AjfRangePipe, "ajfAsRepeatingSlideInstance": i1$1.AjfAsRepeatingSlideInstancePipe, "ajfIncrement": i1$1.AjfIncrementPipe, "ajfValidSlide": i1$1.AjfValidSlidePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
790
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormRenderer, decorators: [{
791
- type: Component,
792
- args: [{ selector: 'ajf-form', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"formGroup|async as fg\">\n <form novalidate [formGroup]=\"fg!\">\n <div class=\"ajf-form-container\">\n <mat-toolbar *ngIf=\"!hideTopToolbar && topBar\" class=\"ajf-btn-strip\">\n <ng-template\n ngFor\n let-slideInstance\n [ngForOf]=\"slides|async\"\n [ngForTrackBy]=\"trackNodeById\"\n >\n <button\n mat-button\n class=\"ajf-topbar-button\"\n *ngIf=\"slideInstance.node != null && slideInstance.node.label != null && slideInstance.node.label.length > 0\"\n (click)=\"scrollToSlide(slideInstance)\"\n >\n {{slideInstance.node.label | transloco}}\n </button>\n </ng-template>\n </mat-toolbar>\n <mat-toolbar *ngIf=\"!hideTopToolbar\">\n {{ title }}\n <span class=\"ajf-spacer\"></span>\n <!-- this content projection allow to add buttons on toolbar -->\n <ng-content select=\"[ajfFormTopToolbarButtons]\"></ng-content>\n <!-- apply a default save button only when ajfFormSaveButton is empty -->\n <span *ngIf=\"!saveDisabled\" (click)=\"onSave($event)\">\n <span #saveButton\n ><ng-content select=\"[ajfFormSaveButton]\"></ng-content\n ></span>\n <button\n *ngIf=\"saveButton != null && saveButton.childNodes != null && saveButton.childNodes.length == 0\"\n mat-button\n default\n >\n {{'Save'|transloco}}\n </button>\n </span>\n </mat-toolbar>\n <div class=\"ajf-slider-container\">\n <ajf-page-slider\n (orientationChange)=\"orientationChangeHandler($event)\"\n [fixedOrientation]=\"fixedOrientation\"\n [hideNavigationButtons]=\"hideNavigationButtons\"\n [orientation]=\"orientation\"\n #formSlider\n >\n <ng-container *ngIf=\"(slides|async) as curSlides\">\n <ng-container *ngIf=\"curSlides!.length > 0 && hasStartMessage\">\n <ajf-page-slider-item>\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span class=\"ajf-form-header-number\"> 1 &rarr; </span>\n <span class=\"ajf-title\">\n <ng-content\n select=\"[ajfFormStartMessageTitle]\"\n ></ng-content>\n </span>\n </h2>\n </div>\n </mat-card-header>\n <mat-card-content>\n <ng-content select=\"[ajfFormStartMessage]\"></ng-content>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n <ng-container\n *ngFor=\"let slideInstance of curSlides; trackBy:trackNodeById\"\n >\n <!-- non repeating slides -->\n <ng-container *ngIf=\"slideInstance.visible\">\n <ng-container\n *ngIf=\"!(slideInstance|ajfIsRepeatingSlideInstance)\"\n >\n <ajf-page-slider-item>\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span class=\"ajf-form-header-number\"\n >{{ slideInstance.position + (hasStartMessage |\n ajfBoolToInt) }} &rarr;</span\n >\n <span\n [innerHTML]=\"slideInstance.node.label | transloco\"\n ></span>\n </h2>\n <mat-icon\n class=\"ajf-warning\"\n *ngIf=\"!slideInstance.valid\"\n >warning</mat-icon\n >\n <mat-icon\n class=\"ajf-success\"\n *ngIf=\"slideInstance.valid\"\n >check</mat-icon\n >\n </div>\n </mat-card-header>\n <mat-card-content>\n <ng-template\n ngFor\n let-fieldInstance\n [ngForOf]=\"slideInstance.flatNodes\"\n [ngForTrackBy]=\"trackNodeById\"\n >\n <div\n [ngClass]=\"'ajf-' + (fieldInstance|ajfAsFieldInstance).node.size\"\n class=\"ajf-field-entry\"\n *ngIf=\"fieldInstance.visible\"\n >\n <i\n [class]=\"(fieldInstance|ajfAsFieldInstance).node.fieldType | ajfFieldIcon\"\n item-right\n ></i>\n <p>\n {{\n ((fieldInstance|ajfAsFieldInstance).node.description\n || '') | transloco }}\n </p>\n <label\n [attr.id]=\"fieldInstance.node.name\"\n *ngIf=\"(fieldInstance|ajfAsFieldInstance).node.fieldType !== 7\"\n [innerHTML]=\"fieldInstance.node.label | transloco\"\n ></label>\n <mat-icon\n class=\"ajf-tooltip-icon\"\n *ngIf=\"(fieldInstance|ajfAsFieldInstance).node?.hint as hint\"\n [matTooltip]=\"hint\"\n matTooltipPosition=\"right\"\n >\n {{(fieldInstance|ajfAsFieldInstance).node?.hintIcon\n || 'help'}}</mat-icon\n >\n <ajf-field\n [instance]=\"fieldInstance|ajfAsFieldInstance\"\n [readonly]=\"readonly || !slideInstance.editable\"\n >\n </ajf-field>\n </div>\n </ng-template>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n <!-- repeating slides -->\n <ng-container\n *ngIf=\"(slideInstance|ajfIsRepeatingSlideInstance)\"\n >\n <ajf-page-slider-item\n *ngFor=\"let curRep of ((slideInstance|ajfAsRepeatingSlideInstance).reps|ajfRange); let idx = index; let lastSlide = last\"\n >\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span class=\"ajf-form-header-number\"\n >{{ slideInstance.position|ajfIncrement:idx +\n (hasStartMessage | ajfBoolToInt) }} &rarr;</span\n >\n <span\n [innerHTML]=\"slideInstance.node.label | transloco\"\n ></span>\n </h2>\n <mat-icon\n class=\"ajf-warning\"\n *ngIf=\"!(slideInstance|ajfValidSlide:idx)\"\n >warning</mat-icon\n >\n <mat-icon\n class=\"ajf-success\"\n *ngIf=\"(slideInstance|ajfValidSlide:idx)\"\n >check</mat-icon\n >\n </div>\n </mat-card-header>\n <mat-card-content>\n <div\n *ngIf=\"lastSlide && !readonly\"\n class=\"ajf-group-actions\"\n >\n <button\n (click)=\"addGroup(slideInstance)\"\n [disabled]=\"!(slideInstance|ajfAsRepeatingSlideInstance).canAdd || ((slideInstance|ajfAsRepeatingSlideInstance).node?.disableRemoval && !slideInstance.valid)\"\n mat-mini-fab\n >\n <mat-icon>add</mat-icon>\n </button>\n <button\n (click)=\"removeGroup(slideInstance)\"\n [disabled]=\"!(slideInstance|ajfAsRepeatingSlideInstance).canRemove || (slideInstance|ajfAsRepeatingSlideInstance).node?.disableRemoval\"\n mat-mini-fab\n >\n <mat-icon>remove</mat-icon>\n </button>\n </div>\n <ng-template\n ngFor\n let-fieldInstance\n [ngForOf]=\"slideInstance.slideNodes[idx]\"\n [ngForTrackBy]=\"trackNodeById\"\n >\n <div\n [ngClass]=\"'ajf-' + (fieldInstance|ajfAsFieldInstance).node.size\"\n class=\"ajf-field-entry\"\n *ngIf=\"fieldInstance.visible\"\n >\n <i\n [class]=\"(fieldInstance|ajfAsFieldInstance).node.fieldType | ajfFieldIcon\"\n item-right\n ></i>\n <p>\n {{\n ((fieldInstance|ajfAsFieldInstance).node.description\n || '') | transloco }}\n </p>\n <label\n [attr.id]=\"fieldInstance.node.name\"\n [innerHTML]=\"fieldInstance.node.label | transloco\"\n ></label>\n <mat-icon\n class=\"ajf-tooltip-icon\"\n *ngIf=\"(fieldInstance|ajfAsFieldInstance).node?.hint as hint\"\n [matTooltip]=\"hint\"\n matTooltipPosition=\"right\"\n >\n {{(fieldInstance|ajfAsFieldInstance).node?.hintIcon\n || 'help'}}</mat-icon\n >\n <ajf-field\n [instance]=\"fieldInstance|ajfAsFieldInstance\"\n [readonly]=\"readonly || (!lastSlide && (slideInstance|ajfAsRepeatingSlideInstance).node?.disableRemoval)\"\n >\n </ajf-field>\n </div>\n </ng-template>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container\n *ngIf=\"curSlides && curSlides!.length > 0 && hasEndMessage\"\n >\n <ajf-page-slider-item>\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span\n *ngIf=\"(slidesNum|async) as snum\"\n class=\"ajf-form-header-number\"\n >\n {{ snum! + (hasStartMessage | ajfBoolToInt ) + 1 }}\n &rarr;\n </span>\n <span class=\"ajf-title\">\n <ng-content\n select=\"[ajfFormEndMessageTitle]\"\n ></ng-content>\n </span>\n </h2>\n </div>\n </mat-card-header>\n <mat-card-content>\n <ng-content select=\"[ajfFormEndMessage]\"></ng-content>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n </ng-container>\n <div ajfPageSliderBar *ngIf=\"!hideBottomToolbar\">\n <div class=\"ajf-left-bar\">\n <div class=\"ajf-errors\" *ngIf=\"((errors | async) || 0) > 0\">\n <button mat-button (click)=\"goToPrevError()\" danger>\n <mat-icon>arrow_upward</mat-icon>\n </button>\n <button mat-button (click)=\"goToNextError()\" danger>\n <mat-icon>arrow_downward</mat-icon>\n </button>\n </div>\n <div class=\"ajf-info-box ajf-error\">\n <div class=\"ajf-title\">{{'Errors'|transloco}}</div>\n <div class=\"ajf-content\">\n {{ errors | async }} / {{ slidesNum|async }}\n </div>\n </div>\n </div>\n </div>\n </ajf-page-slider>\n </div>\n </div>\n </form>\n</ng-container>\n", styles: ["ajf-form{display:block}ajf-form .ajf-form-container{display:flex;flex-direction:column;position:absolute;top:0;right:0;bottom:0;left:0}ajf-form .ajf-form-container mat-toolbar.ajf-btn-strip{overflow:auto}ajf-form .ajf-form-container mat-toolbar.ajf-btn-strip button.ajf-topbar-button.mat-button{flex:1 1 auto}ajf-form .ajf-form-container mat-toolbar.ajf-btn-strip button.ajf-topbar-button.mat-button *{display:block;width:100%;overflow:hidden;text-overflow:ellipsis}ajf-form .ajf-form-container mat-toolbar.ajf-hidden{opacity:0}ajf-form .ajf-form-container .ajf-topbar-button{margin-right:10px}ajf-form .ajf-form-container>.ajf-slider-container{flex:1;position:relative}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider{height:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content{padding:16px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page{flex:1;max-height:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card{margin:1em 0 3em}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content{display:flex;flex-wrap:wrap;flex-direction:row;align-content:flex-start;position:relative}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content .ajf-group-actions{position:absolute;right:0;top:-30px;padding:15px;z-index:10}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry{flex:1 0 auto;padding-left:10px;padding-right:10px;width:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry .mat-icon{vertical-align:bottom;margin-left:5px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-normal{width:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-small{width:50%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-smaller{width:33%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-tiny{width:25%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-mini{width:20%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header{display:flex;align-items:center;width:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header>h2{flex:1}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header>h2>.ajf-form-header-number{margin-right:.5em}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header mat-icon.ajf-warning{color:#f53d3d}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header mat-icon.ajf-success{color:#32db64}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header h2>.ajf-title{display:inline-block;margin-right:40px;white-space:normal;vertical-align:top}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar{display:flex;align-items:flex-start;flex-direction:row;position:absolute;bottom:0}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-right-button{float:right}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-button-icon-only ion-icon{padding:0 .1em}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box{height:40px;padding:4px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box>div{height:16px;line-height:16px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box>div.ajf-content{font-weight:bold}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box.ajf-error{order:2;color:red}ajf-form .ajf-form-container .ajf-spacer{flex:1 0 auto}\n"] }]
793
- }], ctorParameters: function () { return [{ type: i1$1.AjfFormRendererService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { topBar: [{
794
- type: Input
795
- }] } });
796
-
797
- /**
798
- * @license
799
- * Copyright (C) Gnucoop soc. coop.
800
- *
801
- * This file is part of the Advanced JSON forms (ajf).
802
- *
803
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
804
- * modify it under the terms of the GNU Affero General Public License as
805
- * published by the Free Software Foundation, either version 3 of the License,
806
- * or (at your option) any later version.
807
- *
808
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
809
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
810
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
811
- * General Public License for more details.
812
- *
813
- * You should have received a copy of the GNU Affero General Public License
814
- * along with Advanced JSON forms (ajf).
815
- * If not, see http://www.gnu.org/licenses/.
816
- *
817
- */
818
- class AjfFormsModule {
819
- static forRoot() {
820
- return {
821
- ngModule: AjfFormsModule,
822
- providers: [AjfFieldService],
823
- };
824
- }
825
- }
826
- AjfFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
827
- AjfFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormsModule, declarations: [AjfBarcodeFieldComponent,
828
- AjfBooleanFieldComponent,
829
- AjfDateFieldComponent,
830
- AjfDateInputFieldComponent,
831
- AjfEmptyFieldComponent,
832
- AjfFieldWarningDialog,
833
- AjfFormField,
834
- AjfFormRenderer,
835
- AjfInputFieldComponent,
836
- AjfMultipleChoiceFieldComponent,
837
- AjfRangeFieldComponent,
838
- AjfSingleChoiceFieldComponent,
839
- AjfTableFieldComponent,
840
- AjfTextFieldComponent,
841
- AjfTimeFieldComponent,
842
- AjfVideoUrlFieldComponent], imports: [AjfBarcodeModule,
843
- AjfCalendarModule,
844
- AjfCommonModule,
845
- AjfFormsModule$1,
846
- AjfCheckboxGroupModule,
847
- AjfPageSliderModule,
848
- AjfTimeModule,
849
- AjfTranslocoModule,
850
- CommonModule,
851
- MatButtonModule,
852
- MatCardModule,
853
- MatDialogModule,
854
- MatFormFieldModule,
855
- MatIconModule,
856
- MatInputModule,
857
- MatRadioModule,
858
- MatSelectModule,
859
- MatSlideToggleModule,
860
- MatToolbarModule,
861
- MatTooltipModule,
862
- ReactiveFormsModule,
863
- TextFieldModule,
864
- MatSliderModule], exports: [AjfFormField, AjfFormRenderer] });
865
- AjfFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormsModule, providers: [
866
- AjfFieldService,
867
- { provide: AJF_WARNING_ALERT_SERVICE, useClass: AjfWarningAlertService },
868
- ], imports: [[
869
- AjfBarcodeModule,
870
- AjfCalendarModule,
871
- AjfCommonModule,
872
- AjfFormsModule$1,
873
- AjfCheckboxGroupModule,
874
- AjfPageSliderModule,
875
- AjfTimeModule,
876
- AjfTranslocoModule,
877
- CommonModule,
878
- MatButtonModule,
879
- MatCardModule,
880
- MatDialogModule,
881
- MatFormFieldModule,
882
- MatIconModule,
883
- MatInputModule,
884
- MatRadioModule,
885
- MatSelectModule,
886
- MatSlideToggleModule,
887
- MatToolbarModule,
888
- MatTooltipModule,
889
- ReactiveFormsModule,
890
- TextFieldModule,
891
- MatSliderModule,
892
- ]] });
893
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormsModule, decorators: [{
894
- type: NgModule,
895
- args: [{
896
- imports: [
897
- AjfBarcodeModule,
898
- AjfCalendarModule,
899
- AjfCommonModule,
900
- AjfFormsModule$1,
901
- AjfCheckboxGroupModule,
902
- AjfPageSliderModule,
903
- AjfTimeModule,
904
- AjfTranslocoModule,
905
- CommonModule,
906
- MatButtonModule,
907
- MatCardModule,
908
- MatDialogModule,
909
- MatFormFieldModule,
910
- MatIconModule,
911
- MatInputModule,
912
- MatRadioModule,
913
- MatSelectModule,
914
- MatSlideToggleModule,
915
- MatToolbarModule,
916
- MatTooltipModule,
917
- ReactiveFormsModule,
918
- TextFieldModule,
919
- MatSliderModule,
920
- ],
921
- declarations: [
922
- AjfBarcodeFieldComponent,
923
- AjfBooleanFieldComponent,
924
- AjfDateFieldComponent,
925
- AjfDateInputFieldComponent,
926
- AjfEmptyFieldComponent,
927
- AjfFieldWarningDialog,
928
- AjfFormField,
929
- AjfFormRenderer,
930
- AjfInputFieldComponent,
931
- AjfMultipleChoiceFieldComponent,
932
- AjfRangeFieldComponent,
933
- AjfSingleChoiceFieldComponent,
934
- AjfTableFieldComponent,
935
- AjfTextFieldComponent,
936
- AjfTimeFieldComponent,
937
- AjfVideoUrlFieldComponent,
938
- ],
939
- entryComponents: [
940
- AjfBarcodeFieldComponent,
941
- AjfBooleanFieldComponent,
942
- AjfDateFieldComponent,
943
- AjfDateInputFieldComponent,
944
- AjfEmptyFieldComponent,
945
- AjfInputFieldComponent,
946
- AjfMultipleChoiceFieldComponent,
947
- AjfRangeFieldComponent,
948
- AjfSingleChoiceFieldComponent,
949
- AjfTableFieldComponent,
950
- AjfTextFieldComponent,
951
- AjfTimeFieldComponent,
952
- AjfVideoUrlFieldComponent,
953
- ],
954
- exports: [AjfFormField, AjfFormRenderer],
955
- providers: [
956
- AjfFieldService,
957
- { provide: AJF_WARNING_ALERT_SERVICE, useClass: AjfWarningAlertService },
958
- ],
959
- }]
960
- }] });
961
-
962
- /**
963
- * @license
964
- * Copyright (C) Gnucoop soc. coop.
965
- *
966
- * This file is part of the Advanced JSON forms (ajf).
967
- *
968
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
969
- * modify it under the terms of the GNU Affero General Public License as
970
- * published by the Free Software Foundation, either version 3 of the License,
971
- * or (at your option) any later version.
972
- *
973
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
974
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
975
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
976
- * General Public License for more details.
977
- *
978
- * You should have received a copy of the GNU Affero General Public License
979
- * along with Advanced JSON forms (ajf).
980
- * If not, see http://www.gnu.org/licenses/.
981
- *
982
- */
983
-
984
- /**
985
- * @license
986
- * Copyright (C) Gnucoop soc. coop.
987
- *
988
- * This file is part of the Advanced JSON forms (ajf).
989
- *
990
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
991
- * modify it under the terms of the GNU Affero General Public License as
992
- * published by the Free Software Foundation, either version 3 of the License,
993
- * or (at your option) any later version.
994
- *
995
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
996
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
997
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
998
- * General Public License for more details.
999
- *
1000
- * You should have received a copy of the GNU Affero General Public License
1001
- * along with Advanced JSON forms (ajf).
1002
- * If not, see http://www.gnu.org/licenses/.
1003
- *
1004
- */
1005
-
1006
- /**
1007
- * Generated bundle index. Do not edit.
1008
- */
1009
-
1010
- export { AjfBooleanFieldComponent, AjfDateFieldComponent, AjfDateInputFieldComponent, AjfEmptyFieldComponent, AjfFieldService, AjfFieldWarningDialog, AjfFormField, AjfFormRenderer, AjfFormsModule, AjfInputFieldComponent, AjfMultipleChoiceFieldComponent, AjfSingleChoiceFieldComponent, AjfTableFieldComponent, AjfTimeFieldComponent, AjfWarningAlertService };
1011
- //# sourceMappingURL=forms.mjs.map