@ajf/material 13.0.0 → 13.1.0-fc095cdf

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 (339) hide show
  1. package/README.md +2 -5
  2. package/ajf-material-v13.1.0-fc095cdf.tgz +0 -0
  3. package/ajf-material.d.ts +5 -0
  4. package/barcode/ajf-material-barcode.d.ts +5 -0
  5. package/barcode/barcode-module.d.ts +0 -0
  6. package/barcode/barcode.d.ts +0 -0
  7. package/barcode/package.json +8 -7
  8. package/barcode/{public-api.d.ts → public_api.d.ts} +0 -0
  9. package/calendar/ajf-material-calendar.d.ts +5 -0
  10. package/calendar/calendar-module.d.ts +0 -0
  11. package/calendar/calendar.d.ts +1 -1
  12. package/calendar/package.json +8 -7
  13. package/calendar/{public-api.d.ts → public_api.d.ts} +0 -0
  14. package/checkbox-group/ajf-material-checkbox-group.d.ts +5 -0
  15. package/checkbox-group/checkbox-group-item.d.ts +0 -0
  16. package/checkbox-group/checkbox-group-module.d.ts +0 -0
  17. package/checkbox-group/package.json +8 -7
  18. package/checkbox-group/{public-api.d.ts → public_api.d.ts} +0 -0
  19. package/esm2020/ajf-material.mjs +5 -0
  20. package/esm2020/barcode/ajf-material-barcode.mjs +5 -0
  21. package/esm2020/barcode/barcode-module.mjs +5 -5
  22. package/esm2020/barcode/barcode.mjs +6 -6
  23. package/esm2020/barcode/public_api.mjs +24 -0
  24. package/esm2020/calendar/ajf-material-calendar.mjs +5 -0
  25. package/esm2020/calendar/calendar-module.mjs +5 -5
  26. package/esm2020/calendar/calendar.mjs +7 -7
  27. package/esm2020/{page-slider/public-api.mjs → calendar/public_api.mjs} +3 -3
  28. package/esm2020/checkbox-group/ajf-material-checkbox-group.mjs +5 -0
  29. package/esm2020/checkbox-group/checkbox-group-item.mjs +6 -6
  30. package/esm2020/checkbox-group/checkbox-group-module.mjs +5 -5
  31. package/esm2020/{time/index.mjs → checkbox-group/public_api.mjs} +3 -2
  32. package/esm2020/form-builder/ajf-material-form-builder.mjs +5 -0
  33. package/esm2020/form-builder/branch-line.mjs +6 -5
  34. package/esm2020/form-builder/choices-origin-data-source.mjs +1 -1
  35. package/esm2020/form-builder/choices-origin-editor-dialog.mjs +5 -6
  36. package/esm2020/form-builder/choices-origin-editor.mjs +19 -8
  37. package/esm2020/form-builder/condition-editor-dialog.mjs +5 -6
  38. package/esm2020/form-builder/condition-editor.mjs +10 -6
  39. package/esm2020/form-builder/form-builder-module.mjs +5 -5
  40. package/esm2020/form-builder/form-builder-service.mjs +12 -5
  41. package/esm2020/form-builder/form-builder-utils.mjs +1 -1
  42. package/esm2020/form-builder/form-builder.mjs +12 -7
  43. package/esm2020/form-builder/node-entry.mjs +9 -7
  44. package/esm2020/form-builder/node-properties.mjs +16 -10
  45. package/esm2020/form-builder/node-type-entry.mjs +5 -5
  46. package/esm2020/form-builder/operations.mjs +1 -1
  47. package/esm2020/{monaco-editor/public-api.mjs → form-builder/public_api.mjs} +5 -3
  48. package/esm2020/form-builder/string-identifier-dialog.mjs +6 -7
  49. package/esm2020/form-builder/validation-condition-editor-dialog.mjs +6 -6
  50. package/esm2020/form-builder/warning-condition-editor-dialog.mjs +6 -6
  51. package/esm2020/forms/ajf-material-forms.mjs +5 -0
  52. package/esm2020/forms/barcode-field.mjs +7 -8
  53. package/esm2020/forms/boolean-field.mjs +7 -8
  54. package/esm2020/forms/date-field.mjs +7 -8
  55. package/esm2020/forms/date-input-field.mjs +10 -8
  56. package/esm2020/forms/empty-field.mjs +11 -11
  57. package/esm2020/forms/field-service.mjs +4 -4
  58. package/esm2020/forms/field-warning-dialog.mjs +7 -4
  59. package/esm2020/forms/field.mjs +6 -7
  60. package/esm2020/forms/form.mjs +18 -17
  61. package/esm2020/forms/forms-module.mjs +9 -5
  62. package/esm2020/forms/input-field.mjs +7 -8
  63. package/esm2020/forms/multiple-choice-field.mjs +7 -8
  64. package/esm2020/{barcode/public-api.mjs → forms/public_api.mjs} +16 -3
  65. package/esm2020/forms/range-field.mjs +7 -8
  66. package/esm2020/forms/single-choice-field.mjs +7 -8
  67. package/esm2020/forms/table-field.mjs +7 -8
  68. package/esm2020/forms/text-field.mjs +7 -8
  69. package/esm2020/forms/time-field.mjs +7 -8
  70. package/esm2020/forms/video-url-field.mjs +6 -9
  71. package/esm2020/forms/warning-alert-service.mjs +4 -5
  72. package/esm2020/image/ajf-material-image.mjs +5 -0
  73. package/esm2020/image/image-module.mjs +5 -5
  74. package/esm2020/image/image.mjs +5 -6
  75. package/esm2020/{calendar/public-api.mjs → image/public_api.mjs} +3 -3
  76. package/esm2020/monaco-editor/ajf-material-monaco-editor.mjs +5 -0
  77. package/esm2020/monaco-editor/auto-complete-item-model.mjs +7 -2
  78. package/esm2020/monaco-editor/autocomplete-singleton-model.mjs +1 -1
  79. package/esm2020/monaco-editor/editor-language-model.mjs +1 -1
  80. package/esm2020/monaco-editor/editor-options-model.mjs +11 -1
  81. package/esm2020/monaco-editor/editor-scrollbar-options.mjs +1 -1
  82. package/esm2020/monaco-editor/editor-theme.mjs +1 -1
  83. package/esm2020/monaco-editor/monaco-editor-module.mjs +5 -5
  84. package/esm2020/monaco-editor/monaco-editor.mjs +7 -7
  85. package/esm2020/{reports/layout-widget.mjs → monaco-editor/public_api.mjs} +3 -1
  86. package/esm2020/node-icon/ajf-material-node-icon.mjs +5 -0
  87. package/esm2020/node-icon/node-icon-module.mjs +5 -5
  88. package/esm2020/node-icon/node-icon.mjs +5 -5
  89. package/esm2020/{form-builder/public-api.mjs → node-icon/public_api.mjs} +3 -5
  90. package/esm2020/page-slider/ajf-material-page-slider.mjs +5 -0
  91. package/esm2020/page-slider/page-slider-module.mjs +5 -5
  92. package/esm2020/page-slider/page-slider.mjs +6 -7
  93. package/esm2020/page-slider/public_api.mjs +24 -0
  94. package/esm2020/{form-builder/index.mjs → public-api.mjs} +3 -2
  95. package/esm2020/reports/ajf-material-reports.mjs +5 -0
  96. package/esm2020/reports/chart-widget.mjs +7 -6
  97. package/esm2020/reports/filter-widget.mjs +20 -53
  98. package/esm2020/reports/formula-widget.mjs +7 -6
  99. package/esm2020/reports/image-container-widget.mjs +6 -6
  100. package/esm2020/reports/image-widget.mjs +7 -6
  101. package/esm2020/reports/map-widget.mjs +7 -6
  102. package/esm2020/reports/page-break-widget.mjs +6 -6
  103. package/esm2020/reports/public_api.mjs +34 -0
  104. package/esm2020/reports/report.mjs +6 -6
  105. package/esm2020/reports/reports-module.mjs +5 -5
  106. package/esm2020/reports/table-widget.mjs +7 -6
  107. package/esm2020/reports/text-widget.mjs +8 -7
  108. package/esm2020/reports/widget.mjs +17 -18
  109. package/esm2020/time/ajf-material-time.mjs +5 -0
  110. package/esm2020/{image/public-api.mjs → time/public_api.mjs} +3 -3
  111. package/esm2020/time/time-module.mjs +5 -5
  112. package/esm2020/time/time.mjs +4 -4
  113. package/fesm2015/{barcode.mjs → ajf-material-barcode.mjs} +9 -31
  114. package/fesm2015/ajf-material-barcode.mjs.map +1 -0
  115. package/fesm2015/ajf-material-calendar.mjs +116 -0
  116. package/fesm2015/ajf-material-calendar.mjs.map +1 -0
  117. package/fesm2015/{checkbox-group.mjs → ajf-material-checkbox-group.mjs} +9 -31
  118. package/fesm2015/ajf-material-checkbox-group.mjs.map +1 -0
  119. package/fesm2015/{form-builder.mjs → ajf-material-form-builder.mjs} +101 -77
  120. package/fesm2015/ajf-material-form-builder.mjs.map +1 -0
  121. package/fesm2015/ajf-material-forms.mjs +1000 -0
  122. package/fesm2015/ajf-material-forms.mjs.map +1 -0
  123. package/{fesm2020/image.mjs → fesm2015/ajf-material-image.mjs} +8 -30
  124. package/fesm2015/ajf-material-image.mjs.map +1 -0
  125. package/fesm2015/{monaco-editor.mjs → ajf-material-monaco-editor.mjs} +26 -31
  126. package/fesm2015/ajf-material-monaco-editor.mjs.map +1 -0
  127. package/{fesm2020/node-icon.mjs → fesm2015/ajf-material-node-icon.mjs} +9 -31
  128. package/fesm2015/ajf-material-node-icon.mjs.map +1 -0
  129. package/fesm2015/{page-slider.mjs → ajf-material-page-slider.mjs} +9 -31
  130. package/fesm2015/ajf-material-page-slider.mjs.map +1 -0
  131. package/{fesm2020/reports.mjs → fesm2015/ajf-material-reports.mjs} +81 -134
  132. package/fesm2015/ajf-material-reports.mjs.map +1 -0
  133. package/fesm2015/{time.mjs → ajf-material-time.mjs} +8 -30
  134. package/fesm2015/ajf-material-time.mjs.map +1 -0
  135. package/{calendar/index.d.ts → fesm2015/ajf-material.mjs} +7 -1
  136. package/fesm2015/ajf-material.mjs.map +1 -0
  137. package/fesm2020/{barcode.mjs → ajf-material-barcode.mjs} +9 -31
  138. package/fesm2020/ajf-material-barcode.mjs.map +1 -0
  139. package/fesm2020/ajf-material-calendar.mjs +116 -0
  140. package/fesm2020/ajf-material-calendar.mjs.map +1 -0
  141. package/fesm2020/{checkbox-group.mjs → ajf-material-checkbox-group.mjs} +9 -31
  142. package/fesm2020/ajf-material-checkbox-group.mjs.map +1 -0
  143. package/fesm2020/{form-builder.mjs → ajf-material-form-builder.mjs} +101 -77
  144. package/fesm2020/ajf-material-form-builder.mjs.map +1 -0
  145. package/fesm2020/ajf-material-forms.mjs +974 -0
  146. package/fesm2020/ajf-material-forms.mjs.map +1 -0
  147. package/{fesm2015/image.mjs → fesm2020/ajf-material-image.mjs} +8 -30
  148. package/fesm2020/ajf-material-image.mjs.map +1 -0
  149. package/fesm2020/{monaco-editor.mjs → ajf-material-monaco-editor.mjs} +26 -61
  150. package/fesm2020/ajf-material-monaco-editor.mjs.map +1 -0
  151. package/{fesm2015/node-icon.mjs → fesm2020/ajf-material-node-icon.mjs} +9 -31
  152. package/fesm2020/ajf-material-node-icon.mjs.map +1 -0
  153. package/fesm2020/{page-slider.mjs → ajf-material-page-slider.mjs} +10 -32
  154. package/fesm2020/ajf-material-page-slider.mjs.map +1 -0
  155. package/{fesm2015/reports.mjs → fesm2020/ajf-material-reports.mjs} +80 -133
  156. package/fesm2020/ajf-material-reports.mjs.map +1 -0
  157. package/fesm2020/{time.mjs → ajf-material-time.mjs} +8 -30
  158. package/fesm2020/ajf-material-time.mjs.map +1 -0
  159. package/{barcode/index.d.ts → fesm2020/ajf-material.mjs} +7 -1
  160. package/fesm2020/ajf-material.mjs.map +1 -0
  161. package/form-builder/ajf-material-form-builder.d.ts +5 -0
  162. package/form-builder/branch-line.d.ts +0 -0
  163. package/form-builder/choices-origin-data-source.d.ts +0 -0
  164. package/form-builder/choices-origin-editor-dialog.d.ts +0 -0
  165. package/form-builder/choices-origin-editor.d.ts +2 -2
  166. package/form-builder/condition-editor-dialog.d.ts +0 -0
  167. package/form-builder/condition-editor.d.ts +0 -0
  168. package/form-builder/form-builder-module.d.ts +0 -0
  169. package/form-builder/form-builder-service.d.ts +1 -1
  170. package/form-builder/form-builder-utils.d.ts +0 -0
  171. package/form-builder/form-builder.d.ts +2 -2
  172. package/form-builder/node-entry.d.ts +2 -2
  173. package/form-builder/node-properties.d.ts +3 -3
  174. package/form-builder/node-type-entry.d.ts +2 -2
  175. package/form-builder/operations.d.ts +0 -0
  176. package/form-builder/package.json +8 -7
  177. package/form-builder/{public-api.d.ts → public_api.d.ts} +0 -0
  178. package/form-builder/string-identifier-dialog.d.ts +0 -0
  179. package/form-builder/validation-condition-editor-dialog.d.ts +0 -0
  180. package/form-builder/warning-condition-editor-dialog.d.ts +0 -0
  181. package/forms/ajf-material-forms.d.ts +5 -0
  182. package/forms/barcode-field.d.ts +0 -0
  183. package/forms/boolean-field.d.ts +0 -0
  184. package/forms/date-field.d.ts +0 -0
  185. package/forms/date-input-field.d.ts +0 -0
  186. package/forms/empty-field.d.ts +0 -0
  187. package/forms/field-service.d.ts +0 -0
  188. package/forms/field-warning-dialog.d.ts +0 -0
  189. package/forms/field.d.ts +0 -0
  190. package/forms/form.d.ts +0 -0
  191. package/forms/forms-module.d.ts +15 -14
  192. package/forms/input-field.d.ts +0 -0
  193. package/forms/multiple-choice-field.d.ts +0 -0
  194. package/forms/package.json +8 -7
  195. package/forms/{public-api.d.ts → public_api.d.ts} +0 -0
  196. package/forms/range-field.d.ts +0 -0
  197. package/forms/single-choice-field.d.ts +0 -0
  198. package/forms/table-field.d.ts +0 -0
  199. package/forms/text-field.d.ts +0 -0
  200. package/forms/time-field.d.ts +0 -0
  201. package/forms/video-url-field.d.ts +0 -0
  202. package/forms/warning-alert-service.d.ts +0 -0
  203. package/image/ajf-material-image.d.ts +5 -0
  204. package/image/image-module.d.ts +0 -0
  205. package/image/image.d.ts +0 -0
  206. package/image/package.json +8 -7
  207. package/image/{public-api.d.ts → public_api.d.ts} +0 -0
  208. package/monaco-editor/ajf-material-monaco-editor.d.ts +5 -0
  209. package/monaco-editor/auto-complete-item-model.d.ts +0 -0
  210. package/monaco-editor/autocomplete-singleton-model.d.ts +0 -0
  211. package/monaco-editor/editor-language-model.d.ts +0 -0
  212. package/monaco-editor/editor-options-model.d.ts +0 -0
  213. package/monaco-editor/editor-scrollbar-options.d.ts +0 -0
  214. package/monaco-editor/editor-theme.d.ts +0 -0
  215. package/monaco-editor/monaco-editor-module.d.ts +0 -0
  216. package/monaco-editor/monaco-editor.d.ts +0 -0
  217. package/monaco-editor/package.json +8 -7
  218. package/monaco-editor/{public-api.d.ts → public_api.d.ts} +0 -0
  219. package/node-icon/ajf-material-node-icon.d.ts +5 -0
  220. package/node-icon/node-icon-module.d.ts +0 -0
  221. package/node-icon/node-icon.d.ts +0 -0
  222. package/node-icon/package.json +8 -7
  223. package/node-icon/{public-api.d.ts → public_api.d.ts} +0 -0
  224. package/package.json +90 -92
  225. package/page-slider/ajf-material-page-slider.d.ts +5 -0
  226. package/page-slider/package.json +8 -7
  227. package/page-slider/page-slider-module.d.ts +0 -0
  228. package/page-slider/page-slider.d.ts +0 -0
  229. package/page-slider/{public-api.d.ts → public_api.d.ts} +0 -0
  230. package/{checkbox-group/index.d.ts → public-api.d.ts} +2 -1
  231. package/reports/ajf-material-reports.d.ts +5 -0
  232. package/reports/chart-widget.d.ts +0 -0
  233. package/reports/filter-widget.d.ts +6 -29
  234. package/reports/formula-widget.d.ts +0 -0
  235. package/reports/image-container-widget.d.ts +0 -0
  236. package/reports/image-widget.d.ts +0 -0
  237. package/reports/map-widget.d.ts +0 -0
  238. package/reports/package.json +8 -7
  239. package/reports/page-break-widget.d.ts +0 -0
  240. package/reports/{public-api.d.ts → public_api.d.ts} +0 -0
  241. package/reports/report.d.ts +0 -0
  242. package/reports/reports-module.d.ts +0 -0
  243. package/reports/table-widget.d.ts +0 -0
  244. package/reports/text-widget.d.ts +0 -0
  245. package/reports/widget.d.ts +0 -0
  246. package/time/ajf-material-time.d.ts +5 -0
  247. package/time/package.json +8 -7
  248. package/time/{public-api.d.ts → public_api.d.ts} +0 -0
  249. package/time/time-module.d.ts +0 -0
  250. package/time/time.d.ts +0 -0
  251. package/LICENSE +0 -661
  252. package/barcode/_barcode.scss +0 -0
  253. package/barcode/barcode_public_index.d.ts +0 -4
  254. package/calendar/_calendar.scss +0 -0
  255. package/calendar/calendar_public_index.d.ts +0 -4
  256. package/checkbox-group/_checkbox-group.scss +0 -0
  257. package/checkbox-group/checkbox-group_public_index.d.ts +0 -4
  258. package/esm2020/barcode/barcode_public_index.mjs +0 -5
  259. package/esm2020/barcode/index.mjs +0 -23
  260. package/esm2020/calendar/calendar_public_index.mjs +0 -5
  261. package/esm2020/calendar/index.mjs +0 -23
  262. package/esm2020/checkbox-group/checkbox-group_public_index.mjs +0 -5
  263. package/esm2020/checkbox-group/index.mjs +0 -23
  264. package/esm2020/checkbox-group/public-api.mjs +0 -24
  265. package/esm2020/form-builder/form-builder_public_index.mjs +0 -5
  266. package/esm2020/forms/forms_public_index.mjs +0 -5
  267. package/esm2020/forms/index.mjs +0 -23
  268. package/esm2020/forms/public-api.mjs +0 -37
  269. package/esm2020/image/image_public_index.mjs +0 -5
  270. package/esm2020/image/index.mjs +0 -23
  271. package/esm2020/index.mjs +0 -28
  272. package/esm2020/monaco-editor/index.mjs +0 -23
  273. package/esm2020/monaco-editor/monaco-editor_public_index.mjs +0 -5
  274. package/esm2020/node-icon/index.mjs +0 -23
  275. package/esm2020/node-icon/node-icon_public_index.mjs +0 -5
  276. package/esm2020/node-icon/public-api.mjs +0 -24
  277. package/esm2020/page-slider/index.mjs +0 -23
  278. package/esm2020/page-slider/page-slider_public_index.mjs +0 -5
  279. package/esm2020/reports/index.mjs +0 -23
  280. package/esm2020/reports/public-api.mjs +0 -34
  281. package/esm2020/reports/reports_public_index.mjs +0 -5
  282. package/esm2020/time/public-api.mjs +0 -24
  283. package/esm2020/time/time_public_index.mjs +0 -5
  284. package/fesm2015/barcode.mjs.map +0 -1
  285. package/fesm2015/calendar.mjs +0 -138
  286. package/fesm2015/calendar.mjs.map +0 -1
  287. package/fesm2015/checkbox-group.mjs.map +0 -1
  288. package/fesm2015/form-builder.mjs.map +0 -1
  289. package/fesm2015/forms.mjs +0 -1011
  290. package/fesm2015/forms.mjs.map +0 -1
  291. package/fesm2015/image.mjs.map +0 -1
  292. package/fesm2015/material.mjs +0 -30
  293. package/fesm2015/material.mjs.map +0 -1
  294. package/fesm2015/monaco-editor.mjs.map +0 -1
  295. package/fesm2015/node-icon.mjs.map +0 -1
  296. package/fesm2015/page-slider.mjs.map +0 -1
  297. package/fesm2015/reports.mjs.map +0 -1
  298. package/fesm2015/time.mjs.map +0 -1
  299. package/fesm2020/barcode.mjs.map +0 -1
  300. package/fesm2020/calendar.mjs +0 -138
  301. package/fesm2020/calendar.mjs.map +0 -1
  302. package/fesm2020/checkbox-group.mjs.map +0 -1
  303. package/fesm2020/form-builder.mjs.map +0 -1
  304. package/fesm2020/forms.mjs +0 -985
  305. package/fesm2020/forms.mjs.map +0 -1
  306. package/fesm2020/image.mjs.map +0 -1
  307. package/fesm2020/material.mjs +0 -30
  308. package/fesm2020/material.mjs.map +0 -1
  309. package/fesm2020/monaco-editor.mjs.map +0 -1
  310. package/fesm2020/node-icon.mjs.map +0 -1
  311. package/fesm2020/page-slider.mjs.map +0 -1
  312. package/fesm2020/reports.mjs.map +0 -1
  313. package/fesm2020/time.mjs.map +0 -1
  314. package/form-builder/_form-builder.scss +0 -0
  315. package/form-builder/form-builder_public_index.d.ts +0 -4
  316. package/form-builder/index.d.ts +0 -22
  317. package/forms/_forms.scss +0 -0
  318. package/forms/forms_public_index.d.ts +0 -4
  319. package/forms/index.d.ts +0 -22
  320. package/image/_image.scss +0 -0
  321. package/image/image_public_index.d.ts +0 -4
  322. package/image/index.d.ts +0 -22
  323. package/index.d.ts +0 -22
  324. package/monaco-editor/_monaco-editor.scss +0 -0
  325. package/monaco-editor/index.d.ts +0 -22
  326. package/monaco-editor/monaco-editor_public_index.d.ts +0 -4
  327. package/node-icon/_node-icon.scss +0 -0
  328. package/node-icon/index.d.ts +0 -22
  329. package/node-icon/node-icon_public_index.d.ts +0 -4
  330. package/page-slider/_page-slider.scss +0 -0
  331. package/page-slider/index.d.ts +0 -22
  332. package/page-slider/page-slider_public_index.d.ts +0 -4
  333. package/reports/_reports.scss +0 -0
  334. package/reports/index.d.ts +0 -22
  335. package/reports/layout-widget.d.ts +0 -21
  336. package/reports/reports_public_index.d.ts +0 -4
  337. package/time/_time.scss +0 -0
  338. package/time/index.d.ts +0 -22
  339. package/time/time_public_index.d.ts +0 -4
@@ -1,985 +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 from '@angular/material/dialog';
6
- import { MatDialogModule } from '@angular/material/dialog';
7
- import { map } from 'rxjs/operators';
8
- import * as i1 from '@angular/material/button';
9
- import { MatButtonModule } from '@angular/material/button';
10
- import * as i2$1 from '@angular/material/slide-toggle';
11
- import { MatSlideToggleModule } from '@angular/material/slide-toggle';
12
- import * as i3 from '@angular/common';
13
- import { CommonModule } from '@angular/common';
14
- import * as i4 from '@angular/forms';
15
- import { ReactiveFormsModule } from '@angular/forms';
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 i3$2 from '@angular/common/http';
43
- import * as i2$9 from '@angular/platform-browser';
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 () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
135
- type: Inject,
136
- args: [AJF_WARNING_ALERT_SERVICE]
137
- }] }]; } });
138
-
139
- /**
140
- * @license
141
- * Copyright (C) Gnucoop soc. coop.
142
- *
143
- * This file is part of the Advanced JSON forms (ajf).
144
- *
145
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
146
- * modify it under the terms of the GNU Affero General Public License as
147
- * published by the Free Software Foundation, either version 3 of the License,
148
- * or (at your option) any later version.
149
- *
150
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
151
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
152
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
153
- * General Public License for more details.
154
- *
155
- * You should have received a copy of the GNU Affero General Public License
156
- * along with Advanced JSON forms (ajf).
157
- * If not, see http://www.gnu.org/licenses/.
158
- *
159
- */
160
- class AjfDateFieldComponent extends AjfBaseFieldComponent {
161
- constructor(cdr, service, was) {
162
- super(cdr, service, was);
163
- }
164
- }
165
- 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 });
166
- 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 });
167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfDateFieldComponent, decorators: [{
168
- type: Component,
169
- 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"] }]
170
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
171
- type: Inject,
172
- args: [AJF_WARNING_ALERT_SERVICE]
173
- }] }]; } });
174
-
175
- /**
176
- * @license
177
- * Copyright (C) Gnucoop soc. coop.
178
- *
179
- * This file is part of the Advanced JSON forms (ajf).
180
- *
181
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
182
- * modify it under the terms of the GNU Affero General Public License as
183
- * published by the Free Software Foundation, either version 3 of the License,
184
- * or (at your option) any later version.
185
- *
186
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
187
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
188
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
189
- * General Public License for more details.
190
- *
191
- * You should have received a copy of the GNU Affero General Public License
192
- * along with Advanced JSON forms (ajf).
193
- * If not, see http://www.gnu.org/licenses/.
194
- *
195
- */
196
- class AjfDateInputFieldComponent extends AjfBaseFieldComponent {
197
- constructor(cdr, service, was, _dvs) {
198
- super(cdr, service, was);
199
- this._dvs = _dvs;
200
- }
201
- onChange() {
202
- if (this.input == null) {
203
- return;
204
- }
205
- const val = this.input.value || '';
206
- if (val.length > 0) {
207
- if ((this._minDateStr != null && val < this._minDateStr) ||
208
- (this._maxDateStr != null && val > this._maxDateStr)) {
209
- this.input.value = '';
210
- }
211
- }
212
- }
213
- _onInstanceChange() {
214
- this._minDateStr = this._dvs.transform(this.instance.node.minDate);
215
- this._maxDateStr = this._dvs.transform(this.instance.node.maxDate);
216
- }
217
- }
218
- 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 });
219
- 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 });
220
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfDateInputFieldComponent, decorators: [{
221
- type: Component,
222
- 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"] }]
223
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
224
- type: Inject,
225
- args: [AJF_WARNING_ALERT_SERVICE]
226
- }] }, { type: i1$1.AjfDateValueStringPipe }]; }, propDecorators: { input: [{
227
- type: ViewChild,
228
- args: [MatInput, { static: false }]
229
- }] } });
230
-
231
- /**
232
- * @license
233
- * Copyright (C) Gnucoop soc. coop.
234
- *
235
- * This file is part of the Advanced JSON forms (ajf).
236
- *
237
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
238
- * modify it under the terms of the GNU Affero General Public License as
239
- * published by the Free Software Foundation, either version 3 of the License,
240
- * or (at your option) any later version.
241
- *
242
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
243
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
244
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
245
- * General Public License for more details.
246
- *
247
- * You should have received a copy of the GNU Affero General Public License
248
- * along with Advanced JSON forms (ajf).
249
- * If not, see http://www.gnu.org/licenses/.
250
- *
251
- */
252
- class AjfEmptyFieldComponent extends AjfBaseFieldComponent {
253
- constructor(cdr, service, was) {
254
- super(cdr, service, was);
255
- }
256
- }
257
- 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 });
258
- 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 });
259
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfEmptyFieldComponent, decorators: [{
260
- type: Component,
261
- 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"] }]
262
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
263
- type: Inject,
264
- args: [AJF_WARNING_ALERT_SERVICE]
265
- }] }]; } });
266
-
267
- /**
268
- * @license
269
- * Copyright (C) Gnucoop soc. coop.
270
- *
271
- * This file is part of the Advanced JSON forms (ajf).
272
- *
273
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
274
- * modify it under the terms of the GNU Affero General Public License as
275
- * published by the Free Software Foundation, either version 3 of the License,
276
- * or (at your option) any later version.
277
- *
278
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
279
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
280
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
281
- * General Public License for more details.
282
- *
283
- * You should have received a copy of the GNU Affero General Public License
284
- * along with Advanced JSON forms (ajf).
285
- * If not, see http://www.gnu.org/licenses/.
286
- *
287
- */
288
- class AjfBarcodeFieldComponent extends AjfBaseFieldComponent {
289
- constructor(cdr, service, was) {
290
- super(cdr, service, was);
291
- }
292
- }
293
- 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 });
294
- 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 });
295
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfBarcodeFieldComponent, decorators: [{
296
- type: Component,
297
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-barcode *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></ajf-barcode>\n", styles: ["\n"] }]
298
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
299
- type: Inject,
300
- args: [AJF_WARNING_ALERT_SERVICE]
301
- }] }]; } });
302
-
303
- /**
304
- * @license
305
- * Copyright (C) Gnucoop soc. coop.
306
- *
307
- * This file is part of the Advanced JSON forms (ajf).
308
- *
309
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
310
- * modify it under the terms of the GNU Affero General Public License as
311
- * published by the Free Software Foundation, either version 3 of the License,
312
- * or (at your option) any later version.
313
- *
314
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
315
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
316
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
317
- * General Public License for more details.
318
- *
319
- * You should have received a copy of the GNU Affero General Public License
320
- * along with Advanced JSON forms (ajf).
321
- * If not, see http://www.gnu.org/licenses/.
322
- *
323
- */
324
- class AjfInputFieldComponent extends AjfInputFieldComponent$1 {
325
- constructor(cdr, service, was) {
326
- super(cdr, service, was);
327
- }
328
- }
329
- 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 });
330
- 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 });
331
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfInputFieldComponent, decorators: [{
332
- type: Component,
333
- 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"] }]
334
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
335
- type: Inject,
336
- args: [AJF_WARNING_ALERT_SERVICE]
337
- }] }]; } });
338
-
339
- /**
340
- * @license
341
- * Copyright (C) Gnucoop soc. coop.
342
- *
343
- * This file is part of the Advanced JSON forms (ajf).
344
- *
345
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
346
- * modify it under the terms of the GNU Affero General Public License as
347
- * published by the Free Software Foundation, either version 3 of the License,
348
- * or (at your option) any later version.
349
- *
350
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
351
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
352
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
353
- * General Public License for more details.
354
- *
355
- * You should have received a copy of the GNU Affero General Public License
356
- * along with Advanced JSON forms (ajf).
357
- * If not, see http://www.gnu.org/licenses/.
358
- *
359
- */
360
- class AjfMultipleChoiceFieldComponent extends AjfFieldWithChoicesComponent {
361
- constructor(cdr, service, was, searchThreshold) {
362
- super(cdr, service, was, searchThreshold);
363
- }
364
- }
365
- 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 });
366
- 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 });
367
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfMultipleChoiceFieldComponent, decorators: [{
368
- type: Component,
369
- 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"] }]
370
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
371
- type: Inject,
372
- args: [AJF_WARNING_ALERT_SERVICE]
373
- }] }, { type: undefined, decorators: [{
374
- type: Optional
375
- }, {
376
- type: Inject,
377
- args: [AJF_SEARCH_ALERT_THRESHOLD]
378
- }] }]; } });
379
-
380
- /**
381
- * @license
382
- * Copyright (C) Gnucoop soc. coop.
383
- *
384
- * This file is part of the Advanced JSON forms (ajf).
385
- *
386
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
387
- * modify it under the terms of the GNU Affero General Public License as
388
- * published by the Free Software Foundation, either version 3 of the License,
389
- * or (at your option) any later version.
390
- *
391
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
392
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
393
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
394
- * General Public License for more details.
395
- *
396
- * You should have received a copy of the GNU Affero General Public License
397
- * along with Advanced JSON forms (ajf).
398
- * If not, see http://www.gnu.org/licenses/.
399
- *
400
- */
401
- class AjfRangeFieldComponent extends AjfRange {
402
- constructor(cdr, service, was) {
403
- super(cdr, service, was);
404
- }
405
- }
406
- 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 });
407
- 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 });
408
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfRangeFieldComponent, decorators: [{
409
- type: Component,
410
- 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"] }]
411
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
412
- type: Inject,
413
- args: [AJF_WARNING_ALERT_SERVICE]
414
- }] }]; } });
415
-
416
- /**
417
- * @license
418
- * Copyright (C) Gnucoop soc. coop.
419
- *
420
- * This file is part of the Advanced JSON forms (ajf).
421
- *
422
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
423
- * modify it under the terms of the GNU Affero General Public License as
424
- * published by the Free Software Foundation, either version 3 of the License,
425
- * or (at your option) any later version.
426
- *
427
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
428
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
429
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
430
- * General Public License for more details.
431
- *
432
- * You should have received a copy of the GNU Affero General Public License
433
- * along with Advanced JSON forms (ajf).
434
- * If not, see http://www.gnu.org/licenses/.
435
- *
436
- */
437
- class AjfSingleChoiceFieldComponent extends AjfFieldWithChoicesComponent {
438
- constructor(cdr, service, was, searchThreshold) {
439
- super(cdr, service, was, searchThreshold);
440
- }
441
- }
442
- 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 });
443
- 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 });
444
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfSingleChoiceFieldComponent, decorators: [{
445
- type: Component,
446
- 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"] }]
447
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
448
- type: Inject,
449
- args: [AJF_WARNING_ALERT_SERVICE]
450
- }] }, { type: undefined, decorators: [{
451
- type: Optional
452
- }, {
453
- type: Inject,
454
- args: [AJF_SEARCH_ALERT_THRESHOLD]
455
- }] }]; } });
456
-
457
- /**
458
- * @license
459
- * Copyright (C) Gnucoop soc. coop.
460
- *
461
- * This file is part of the Advanced JSON forms (ajf).
462
- *
463
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
464
- * modify it under the terms of the GNU Affero General Public License as
465
- * published by the Free Software Foundation, either version 3 of the License,
466
- * or (at your option) any later version.
467
- *
468
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
469
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
470
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
471
- * General Public License for more details.
472
- *
473
- * You should have received a copy of the GNU Affero General Public License
474
- * along with Advanced JSON forms (ajf).
475
- * If not, see http://www.gnu.org/licenses/.
476
- *
477
- */
478
- class AjfTableFieldComponent extends AjfTableFieldComponent$1 {
479
- constructor(cdr, service, was) {
480
- super(cdr, service, was);
481
- }
482
- }
483
- 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 });
484
- 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 });
485
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTableFieldComponent, decorators: [{
486
- type: Component,
487
- 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"] }]
488
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
489
- type: Inject,
490
- args: [AJF_WARNING_ALERT_SERVICE]
491
- }] }]; } });
492
-
493
- /**
494
- * @license
495
- * Copyright (C) Gnucoop soc. coop.
496
- *
497
- * This file is part of the Advanced JSON forms (ajf).
498
- *
499
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
500
- * modify it under the terms of the GNU Affero General Public License as
501
- * published by the Free Software Foundation, either version 3 of the License,
502
- * or (at your option) any later version.
503
- *
504
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
505
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
506
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
507
- * General Public License for more details.
508
- *
509
- * You should have received a copy of the GNU Affero General Public License
510
- * along with Advanced JSON forms (ajf).
511
- * If not, see http://www.gnu.org/licenses/.
512
- *
513
- */
514
- class AjfTextFieldComponent extends AjfInputFieldComponent$1 {
515
- constructor(cdr, service, was) {
516
- super(cdr, service, was);
517
- }
518
- }
519
- 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 });
520
- 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 });
521
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTextFieldComponent, decorators: [{
522
- type: Component,
523
- 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"] }]
524
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
525
- type: Inject,
526
- args: [AJF_WARNING_ALERT_SERVICE]
527
- }] }]; } });
528
-
529
- /**
530
- * @license
531
- * Copyright (C) Gnucoop soc. coop.
532
- *
533
- * This file is part of the Advanced JSON forms (ajf).
534
- *
535
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
536
- * modify it under the terms of the GNU Affero General Public License as
537
- * published by the Free Software Foundation, either version 3 of the License,
538
- * or (at your option) any later version.
539
- *
540
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
541
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
542
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
543
- * General Public License for more details.
544
- *
545
- * You should have received a copy of the GNU Affero General Public License
546
- * along with Advanced JSON forms (ajf).
547
- * If not, see http://www.gnu.org/licenses/.
548
- *
549
- */
550
- class AjfTimeFieldComponent extends AjfBaseFieldComponent {
551
- constructor(cdr, service, was) {
552
- super(cdr, service, was);
553
- }
554
- }
555
- 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 });
556
- 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 });
557
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTimeFieldComponent, decorators: [{
558
- type: Component,
559
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-time *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></ajf-time>\n", styles: ["\n"] }]
560
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
561
- type: Inject,
562
- args: [AJF_WARNING_ALERT_SERVICE]
563
- }] }]; } });
564
-
565
- /**
566
- * @license
567
- * Copyright (C) Gnucoop soc. coop.
568
- *
569
- * This file is part of the Advanced JSON forms (ajf).
570
- *
571
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
572
- * modify it under the terms of the GNU Affero General Public License as
573
- * published by the Free Software Foundation, either version 3 of the License,
574
- * or (at your option) any later version.
575
- *
576
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
577
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
578
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
579
- * General Public License for more details.
580
- *
581
- * You should have received a copy of the GNU Affero General Public License
582
- * along with Advanced JSON forms (ajf).
583
- * If not, see http://www.gnu.org/licenses/.
584
- *
585
- */
586
- class AjfVideoUrlFieldComponent extends AjfVideoUrlFieldComponent$1 {
587
- constructor(cdr, service, was, domSanitizer, httpClient) {
588
- super(cdr, service, was, domSanitizer, httpClient);
589
- }
590
- }
591
- 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 });
592
- 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 });
593
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfVideoUrlFieldComponent, decorators: [{
594
- type: Component,
595
- 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"] }]
596
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
597
- type: Inject,
598
- args: [AJF_WARNING_ALERT_SERVICE]
599
- }] }, { type: i2$9.DomSanitizer }, { type: i3$2.HttpClient }]; } });
600
-
601
- /**
602
- * @license
603
- * Copyright (C) Gnucoop soc. coop.
604
- *
605
- * This file is part of the Advanced JSON forms (ajf).
606
- *
607
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
608
- * modify it under the terms of the GNU Affero General Public License as
609
- * published by the Free Software Foundation, either version 3 of the License,
610
- * or (at your option) any later version.
611
- *
612
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
613
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
614
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
615
- * General Public License for more details.
616
- *
617
- * You should have received a copy of the GNU Affero General Public License
618
- * along with Advanced JSON forms (ajf).
619
- * If not, see http://www.gnu.org/licenses/.
620
- *
621
- */
622
- class AjfFieldService extends AjfFieldService$1 {
623
- constructor() {
624
- super();
625
- (this.componentsMap[AjfFieldType.String] = {
626
- component: AjfInputFieldComponent,
627
- readOnlyComponent: AjfReadOnlyFieldComponent,
628
- }),
629
- (this.componentsMap[AjfFieldType.Text] = {
630
- component: AjfTextFieldComponent,
631
- readOnlyComponent: AjfReadOnlyFieldComponent,
632
- }),
633
- (this.componentsMap[AjfFieldType.Number] = {
634
- component: AjfInputFieldComponent,
635
- readOnlyComponent: AjfReadOnlyFieldComponent,
636
- inputs: { type: 'number' },
637
- }),
638
- (this.componentsMap[AjfFieldType.Boolean] = {
639
- component: AjfBooleanFieldComponent,
640
- readOnlyComponent: AjfReadOnlyFieldComponent,
641
- }),
642
- (this.componentsMap[AjfFieldType.Formula] = {
643
- component: AjfInputFieldComponent,
644
- readOnlyComponent: AjfReadOnlyFieldComponent,
645
- inputs: { readonly: true },
646
- }),
647
- (this.componentsMap[AjfFieldType.Date] = {
648
- component: AjfDateFieldComponent,
649
- readOnlyComponent: AjfReadOnlyFieldComponent,
650
- }),
651
- (this.componentsMap[AjfFieldType.DateInput] = {
652
- component: AjfDateInputFieldComponent,
653
- readOnlyComponent: AjfReadOnlyFieldComponent,
654
- }),
655
- (this.componentsMap[AjfFieldType.Table] = {
656
- component: AjfTableFieldComponent,
657
- readOnlyComponent: AjfReadOnlyTableFieldComponent,
658
- }),
659
- (this.componentsMap[AjfFieldType.Empty] = { component: AjfEmptyFieldComponent }),
660
- (this.componentsMap[AjfFieldType.SingleChoice] = {
661
- component: AjfSingleChoiceFieldComponent,
662
- readOnlyComponent: AjfReadOnlySelectFieldComponent,
663
- }),
664
- (this.componentsMap[AjfFieldType.MultipleChoice] = {
665
- component: AjfMultipleChoiceFieldComponent,
666
- readOnlyComponent: AjfReadOnlySelectFieldComponent,
667
- }),
668
- (this.componentsMap[AjfFieldType.Time] = {
669
- component: AjfTimeFieldComponent,
670
- readOnlyComponent: AjfReadOnlyFieldComponent,
671
- }),
672
- (this.componentsMap[AjfFieldType.Barcode] = {
673
- component: AjfBarcodeFieldComponent,
674
- readOnlyComponent: AjfReadOnlyFieldComponent,
675
- });
676
- this.componentsMap[AjfFieldType.File] = {
677
- component: AjfFileFieldComponent,
678
- readOnlyComponent: AjfReadOnlyFileFieldComponent,
679
- };
680
- this.componentsMap[AjfFieldType.Image] = {
681
- component: AjfImageFieldComponent,
682
- readOnlyComponent: AjfReadOnlyImageFieldComponent,
683
- };
684
- this.componentsMap[AjfFieldType.VideoUrl] = {
685
- component: AjfVideoUrlFieldComponent,
686
- readOnlyComponent: AjfReadOnlyVideoUrlFieldComponent,
687
- };
688
- this.componentsMap[AjfFieldType.Range] = {
689
- component: AjfRangeFieldComponent,
690
- readOnlyComponent: AjfReadOnlyFieldComponent,
691
- };
692
- }
693
- }
694
- AjfFieldService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFieldService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
695
- AjfFieldService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFieldService, providedIn: 'root' });
696
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFieldService, decorators: [{
697
- type: Injectable,
698
- args: [{ providedIn: 'root' }]
699
- }], ctorParameters: function () { return []; } });
700
-
701
- /**
702
- * @license
703
- * Copyright (C) Gnucoop soc. coop.
704
- *
705
- * This file is part of the Advanced JSON forms (ajf).
706
- *
707
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
708
- * modify it under the terms of the GNU Affero General Public License as
709
- * published by the Free Software Foundation, either version 3 of the License,
710
- * or (at your option) any later version.
711
- *
712
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
713
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
714
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
715
- * General Public License for more details.
716
- *
717
- * You should have received a copy of the GNU Affero General Public License
718
- * along with Advanced JSON forms (ajf).
719
- * If not, see http://www.gnu.org/licenses/.
720
- *
721
- */
722
- class AjfFormField extends AjfFormField$1 {
723
- constructor(cdr, cfr, fieldService) {
724
- super(cdr, cfr);
725
- this.componentsMap = fieldService.componentsMap;
726
- }
727
- }
728
- 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 });
729
- 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 });
730
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormField, decorators: [{
731
- type: Component,
732
- 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"] }]
733
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ComponentFactoryResolver }, { type: AjfFieldService }]; } });
734
-
735
- /**
736
- * @license
737
- * Copyright (C) Gnucoop soc. coop.
738
- *
739
- * This file is part of the Advanced JSON forms (ajf).
740
- *
741
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
742
- * modify it under the terms of the GNU Affero General Public License as
743
- * published by the Free Software Foundation, either version 3 of the License,
744
- * or (at your option) any later version.
745
- *
746
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
747
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
748
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
749
- * General Public License for more details.
750
- *
751
- * You should have received a copy of the GNU Affero General Public License
752
- * along with Advanced JSON forms (ajf).
753
- * If not, see http://www.gnu.org/licenses/.
754
- *
755
- */
756
- class AjfFormRenderer extends AjfFormRenderer$1 {
757
- constructor(rendererService, changeDetectorRef) {
758
- super(rendererService, changeDetectorRef);
759
- this.topBar = false;
760
- }
761
- }
762
- 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 });
763
- 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 });
764
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormRenderer, decorators: [{
765
- type: Component,
766
- 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"] }]
767
- }], ctorParameters: function () { return [{ type: i1$1.AjfFormRendererService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { topBar: [{
768
- type: Input
769
- }] } });
770
-
771
- /**
772
- * @license
773
- * Copyright (C) Gnucoop soc. coop.
774
- *
775
- * This file is part of the Advanced JSON forms (ajf).
776
- *
777
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
778
- * modify it under the terms of the GNU Affero General Public License as
779
- * published by the Free Software Foundation, either version 3 of the License,
780
- * or (at your option) any later version.
781
- *
782
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
783
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
784
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
785
- * General Public License for more details.
786
- *
787
- * You should have received a copy of the GNU Affero General Public License
788
- * along with Advanced JSON forms (ajf).
789
- * If not, see http://www.gnu.org/licenses/.
790
- *
791
- */
792
- class AjfFormsModule {
793
- static forRoot() {
794
- return {
795
- ngModule: AjfFormsModule,
796
- providers: [AjfFieldService],
797
- };
798
- }
799
- }
800
- AjfFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
801
- AjfFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormsModule, declarations: [AjfBarcodeFieldComponent,
802
- AjfBooleanFieldComponent,
803
- AjfDateFieldComponent,
804
- AjfDateInputFieldComponent,
805
- AjfEmptyFieldComponent,
806
- AjfFieldWarningDialog,
807
- AjfFormField,
808
- AjfFormRenderer,
809
- AjfInputFieldComponent,
810
- AjfMultipleChoiceFieldComponent,
811
- AjfRangeFieldComponent,
812
- AjfSingleChoiceFieldComponent,
813
- AjfTableFieldComponent,
814
- AjfTextFieldComponent,
815
- AjfTimeFieldComponent,
816
- AjfVideoUrlFieldComponent], imports: [AjfBarcodeModule,
817
- AjfCalendarModule,
818
- AjfCommonModule,
819
- AjfFormsModule$1,
820
- AjfCheckboxGroupModule,
821
- AjfPageSliderModule,
822
- AjfTimeModule,
823
- AjfTranslocoModule,
824
- CommonModule,
825
- MatButtonModule,
826
- MatCardModule,
827
- MatDialogModule,
828
- MatFormFieldModule,
829
- MatIconModule,
830
- MatInputModule,
831
- MatRadioModule,
832
- MatSelectModule,
833
- MatSlideToggleModule,
834
- MatToolbarModule,
835
- MatTooltipModule,
836
- ReactiveFormsModule,
837
- TextFieldModule,
838
- MatSliderModule], exports: [AjfFormField, AjfFormRenderer] });
839
- AjfFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormsModule, providers: [
840
- AjfFieldService,
841
- { provide: AJF_WARNING_ALERT_SERVICE, useClass: AjfWarningAlertService },
842
- ], imports: [[
843
- AjfBarcodeModule,
844
- AjfCalendarModule,
845
- AjfCommonModule,
846
- AjfFormsModule$1,
847
- AjfCheckboxGroupModule,
848
- AjfPageSliderModule,
849
- AjfTimeModule,
850
- AjfTranslocoModule,
851
- CommonModule,
852
- MatButtonModule,
853
- MatCardModule,
854
- MatDialogModule,
855
- MatFormFieldModule,
856
- MatIconModule,
857
- MatInputModule,
858
- MatRadioModule,
859
- MatSelectModule,
860
- MatSlideToggleModule,
861
- MatToolbarModule,
862
- MatTooltipModule,
863
- ReactiveFormsModule,
864
- TextFieldModule,
865
- MatSliderModule,
866
- ]] });
867
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormsModule, decorators: [{
868
- type: NgModule,
869
- args: [{
870
- imports: [
871
- AjfBarcodeModule,
872
- AjfCalendarModule,
873
- AjfCommonModule,
874
- AjfFormsModule$1,
875
- AjfCheckboxGroupModule,
876
- AjfPageSliderModule,
877
- AjfTimeModule,
878
- AjfTranslocoModule,
879
- CommonModule,
880
- MatButtonModule,
881
- MatCardModule,
882
- MatDialogModule,
883
- MatFormFieldModule,
884
- MatIconModule,
885
- MatInputModule,
886
- MatRadioModule,
887
- MatSelectModule,
888
- MatSlideToggleModule,
889
- MatToolbarModule,
890
- MatTooltipModule,
891
- ReactiveFormsModule,
892
- TextFieldModule,
893
- MatSliderModule,
894
- ],
895
- declarations: [
896
- AjfBarcodeFieldComponent,
897
- AjfBooleanFieldComponent,
898
- AjfDateFieldComponent,
899
- AjfDateInputFieldComponent,
900
- AjfEmptyFieldComponent,
901
- AjfFieldWarningDialog,
902
- AjfFormField,
903
- AjfFormRenderer,
904
- AjfInputFieldComponent,
905
- AjfMultipleChoiceFieldComponent,
906
- AjfRangeFieldComponent,
907
- AjfSingleChoiceFieldComponent,
908
- AjfTableFieldComponent,
909
- AjfTextFieldComponent,
910
- AjfTimeFieldComponent,
911
- AjfVideoUrlFieldComponent,
912
- ],
913
- entryComponents: [
914
- AjfBarcodeFieldComponent,
915
- AjfBooleanFieldComponent,
916
- AjfDateFieldComponent,
917
- AjfDateInputFieldComponent,
918
- AjfEmptyFieldComponent,
919
- AjfInputFieldComponent,
920
- AjfMultipleChoiceFieldComponent,
921
- AjfRangeFieldComponent,
922
- AjfSingleChoiceFieldComponent,
923
- AjfTableFieldComponent,
924
- AjfTextFieldComponent,
925
- AjfTimeFieldComponent,
926
- AjfVideoUrlFieldComponent,
927
- ],
928
- exports: [AjfFormField, AjfFormRenderer],
929
- providers: [
930
- AjfFieldService,
931
- { provide: AJF_WARNING_ALERT_SERVICE, useClass: AjfWarningAlertService },
932
- ],
933
- }]
934
- }] });
935
-
936
- /**
937
- * @license
938
- * Copyright (C) Gnucoop soc. coop.
939
- *
940
- * This file is part of the Advanced JSON forms (ajf).
941
- *
942
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
943
- * modify it under the terms of the GNU Affero General Public License as
944
- * published by the Free Software Foundation, either version 3 of the License,
945
- * or (at your option) any later version.
946
- *
947
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
948
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
949
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
950
- * General Public License for more details.
951
- *
952
- * You should have received a copy of the GNU Affero General Public License
953
- * along with Advanced JSON forms (ajf).
954
- * If not, see http://www.gnu.org/licenses/.
955
- *
956
- */
957
-
958
- /**
959
- * @license
960
- * Copyright (C) Gnucoop soc. coop.
961
- *
962
- * This file is part of the Advanced JSON forms (ajf).
963
- *
964
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
965
- * modify it under the terms of the GNU Affero General Public License as
966
- * published by the Free Software Foundation, either version 3 of the License,
967
- * or (at your option) any later version.
968
- *
969
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
970
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
971
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
972
- * General Public License for more details.
973
- *
974
- * You should have received a copy of the GNU Affero General Public License
975
- * along with Advanced JSON forms (ajf).
976
- * If not, see http://www.gnu.org/licenses/.
977
- *
978
- */
979
-
980
- /**
981
- * Generated bundle index. Do not edit.
982
- */
983
-
984
- export { AjfBooleanFieldComponent, AjfDateFieldComponent, AjfDateInputFieldComponent, AjfEmptyFieldComponent, AjfFieldService, AjfFieldWarningDialog, AjfFormField, AjfFormRenderer, AjfFormsModule, AjfInputFieldComponent, AjfMultipleChoiceFieldComponent, AjfSingleChoiceFieldComponent, AjfTableFieldComponent, AjfTimeFieldComponent, AjfWarningAlertService };
985
- //# sourceMappingURL=forms.mjs.map