@ajf/material 13.0.0-next.2 → 13.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (450) hide show
  1. package/barcode/barcode-module.d.ts +11 -21
  2. package/barcode/barcode.d.ts +3 -0
  3. package/barcode/barcode_public_index.d.ts +4 -0
  4. package/barcode/index.d.ts +19 -1
  5. package/barcode/package.json +6 -6
  6. package/calendar/calendar-module.d.ts +10 -21
  7. package/calendar/calendar.d.ts +3 -0
  8. package/calendar/calendar_public_index.d.ts +4 -0
  9. package/calendar/index.d.ts +19 -1
  10. package/calendar/package.json +6 -6
  11. package/checkbox-group/checkbox-group-item.d.ts +3 -0
  12. package/checkbox-group/checkbox-group-module.d.ts +9 -21
  13. package/checkbox-group/checkbox-group_public_index.d.ts +4 -0
  14. package/checkbox-group/index.d.ts +19 -1
  15. package/checkbox-group/package.json +6 -6
  16. package/esm2020/barcode/barcode-module.mjs +63 -0
  17. package/esm2020/barcode/barcode.mjs +51 -0
  18. package/esm2020/barcode/barcode_public_index.mjs +5 -0
  19. package/esm2020/barcode/index.mjs +23 -0
  20. package/{esm2015/barcode/public-api.js → esm2020/barcode/public-api.mjs} +0 -0
  21. package/esm2020/calendar/calendar-module.mjs +43 -0
  22. package/esm2020/calendar/calendar.mjs +49 -0
  23. package/esm2020/calendar/calendar_public_index.mjs +5 -0
  24. package/esm2020/calendar/index.mjs +23 -0
  25. package/{esm2015/calendar/public-api.js → esm2020/calendar/public-api.mjs} +0 -0
  26. package/esm2020/checkbox-group/checkbox-group-item.mjs +51 -0
  27. package/esm2020/checkbox-group/checkbox-group-module.mjs +42 -0
  28. package/esm2020/checkbox-group/checkbox-group_public_index.mjs +5 -0
  29. package/{esm2015/report-builder/image-filter.js → esm2020/checkbox-group/index.mjs} +2 -11
  30. package/{esm2015/checkbox-group/public-api.js → esm2020/checkbox-group/public-api.mjs} +0 -0
  31. package/esm2020/form-builder/branch-line.mjs +68 -0
  32. package/{esm2015/form-builder/choices-origin-data-source.js → esm2020/form-builder/choices-origin-data-source.mjs} +1 -1
  33. package/esm2020/form-builder/choices-origin-editor-dialog.mjs +40 -0
  34. package/esm2020/form-builder/choices-origin-editor.mjs +83 -0
  35. package/esm2020/form-builder/condition-editor-dialog.mjs +38 -0
  36. package/esm2020/form-builder/condition-editor.mjs +147 -0
  37. package/esm2020/form-builder/form-builder-module.mjs +179 -0
  38. package/esm2020/form-builder/form-builder-service.mjs +766 -0
  39. package/{esm2015/form-builder/form-builder-utils.js → esm2020/form-builder/form-builder-utils.mjs} +4 -3
  40. package/esm2020/form-builder/form-builder.mjs +180 -0
  41. package/esm2020/form-builder/form-builder_public_index.mjs +5 -0
  42. package/esm2020/form-builder/index.mjs +23 -0
  43. package/esm2020/form-builder/node-entry.mjs +260 -0
  44. package/esm2020/form-builder/node-properties.mjs +960 -0
  45. package/esm2020/form-builder/node-type-entry.mjs +46 -0
  46. package/{esm2015/form-builder/operations.js → esm2020/form-builder/operations.mjs} +0 -0
  47. package/{esm2015/form-builder/public-api.js → esm2020/form-builder/public-api.mjs} +0 -0
  48. package/esm2020/form-builder/string-identifier-dialog.mjs +79 -0
  49. package/esm2020/form-builder/validation-condition-editor-dialog.mjs +41 -0
  50. package/esm2020/form-builder/warning-condition-editor-dialog.mjs +41 -0
  51. package/esm2020/forms/barcode-field.mjs +45 -0
  52. package/esm2020/forms/boolean-field.mjs +45 -0
  53. package/esm2020/forms/date-field.mjs +45 -0
  54. package/esm2020/forms/date-input-field.mjs +67 -0
  55. package/esm2020/forms/empty-field.mjs +43 -0
  56. package/esm2020/forms/field-service.mjs +116 -0
  57. package/esm2020/forms/field-warning-dialog.mjs +34 -0
  58. package/esm2020/forms/field.mjs +42 -0
  59. package/esm2020/forms/form.mjs +51 -0
  60. package/esm2020/forms/forms-module.mjs +208 -0
  61. package/esm2020/forms/forms_public_index.mjs +5 -0
  62. package/esm2020/forms/index.mjs +23 -0
  63. package/esm2020/forms/input-field.mjs +46 -0
  64. package/esm2020/forms/multiple-choice-field.mjs +54 -0
  65. package/{esm2015/forms/public-api.js → esm2020/forms/public-api.mjs} +0 -0
  66. package/esm2020/forms/range-field.mjs +46 -0
  67. package/esm2020/forms/single-choice-field.mjs +53 -0
  68. package/esm2020/forms/table-field.mjs +45 -0
  69. package/esm2020/forms/text-field.mjs +47 -0
  70. package/esm2020/forms/time-field.mjs +45 -0
  71. package/esm2020/forms/video-url-field.mjs +50 -0
  72. package/esm2020/forms/warning-alert-service.mjs +22 -0
  73. package/esm2020/image/image-module.mjs +40 -0
  74. package/esm2020/image/image.mjs +40 -0
  75. package/esm2020/image/image_public_index.mjs +5 -0
  76. package/esm2020/image/index.mjs +23 -0
  77. package/{esm2015/image/public-api.js → esm2020/image/public-api.mjs} +0 -0
  78. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  79. package/{esm2015/monaco-editor/auto-complete-item-model.js → esm2020/monaco-editor/auto-complete-item-model.mjs} +0 -0
  80. package/{esm2015/monaco-editor/autocomplete-singleton-model.js → esm2020/monaco-editor/autocomplete-singleton-model.mjs} +3 -2
  81. package/{esm2015/monaco-editor/editor-language-model.js → esm2020/monaco-editor/editor-language-model.mjs} +0 -0
  82. package/{esm2015/monaco-editor/editor-options-model.js → esm2020/monaco-editor/editor-options-model.mjs} +1 -1
  83. package/{esm2015/monaco-editor/editor-scrollbar-options.js → esm2020/monaco-editor/editor-scrollbar-options.mjs} +0 -0
  84. package/{esm2015/monaco-editor/editor-theme.js → esm2020/monaco-editor/editor-theme.mjs} +0 -0
  85. package/esm2020/monaco-editor/index.mjs +23 -0
  86. package/esm2020/monaco-editor/monaco-editor-module.mjs +37 -0
  87. package/esm2020/monaco-editor/monaco-editor.mjs +451 -0
  88. package/esm2020/monaco-editor/monaco-editor_public_index.mjs +5 -0
  89. package/{esm2015/monaco-editor/public-api.js → esm2020/monaco-editor/public-api.mjs} +0 -0
  90. package/esm2020/node-icon/index.mjs +23 -0
  91. package/esm2020/node-icon/node-icon-module.mjs +40 -0
  92. package/esm2020/node-icon/node-icon.mjs +35 -0
  93. package/esm2020/node-icon/node-icon_public_index.mjs +5 -0
  94. package/{esm2015/node-icon/public-api.js → esm2020/node-icon/public-api.mjs} +0 -0
  95. package/esm2020/page-slider/index.mjs +23 -0
  96. package/esm2020/page-slider/page-slider-module.mjs +59 -0
  97. package/esm2020/page-slider/page-slider.mjs +42 -0
  98. package/esm2020/page-slider/page-slider_public_index.mjs +5 -0
  99. package/{esm2015/page-slider/public-api.js → esm2020/page-slider/public-api.mjs} +0 -0
  100. package/esm2020/reports/chart-widget.mjs +38 -0
  101. package/esm2020/reports/formula-widget.mjs +37 -0
  102. package/esm2020/reports/image-container-widget.mjs +41 -0
  103. package/esm2020/reports/image-widget.mjs +37 -0
  104. package/esm2020/reports/index.mjs +23 -0
  105. package/{esm2015/reports/layout-widget.js → esm2020/reports/layout-widget.mjs} +0 -0
  106. package/esm2020/reports/map-widget.mjs +37 -0
  107. package/esm2020/reports/page-break-widget.mjs +37 -0
  108. package/{esm2015/reports/public-api.js → esm2020/reports/public-api.mjs} +0 -0
  109. package/esm2020/reports/report.mjs +39 -0
  110. package/esm2020/reports/reports-module.mjs +112 -0
  111. package/esm2020/reports/reports_public_index.mjs +5 -0
  112. package/esm2020/reports/table-widget.mjs +38 -0
  113. package/esm2020/reports/text-widget.mjs +38 -0
  114. package/esm2020/reports/widget.mjs +102 -0
  115. package/{esm2015/report-builder/operations.js → esm2020/time/index.mjs} +2 -2
  116. package/{esm2015/time/public-api.js → esm2020/time/public-api.mjs} +0 -0
  117. package/esm2020/time/time-module.mjs +41 -0
  118. package/esm2020/time/time.mjs +45 -0
  119. package/esm2020/time/time_public_index.mjs +5 -0
  120. package/fesm2015/barcode.mjs +162 -0
  121. package/fesm2015/barcode.mjs.map +1 -0
  122. package/fesm2015/calendar.mjs +138 -0
  123. package/fesm2015/calendar.mjs.map +1 -0
  124. package/fesm2015/checkbox-group.mjs +142 -0
  125. package/fesm2015/checkbox-group.mjs.map +1 -0
  126. package/fesm2015/form-builder.mjs +2922 -0
  127. package/fesm2015/form-builder.mjs.map +1 -0
  128. package/fesm2015/forms.mjs +1011 -0
  129. package/fesm2015/forms.mjs.map +1 -0
  130. package/fesm2015/image.mjs +127 -0
  131. package/fesm2015/image.mjs.map +1 -0
  132. package/fesm2015/{material.js → material.mjs} +1 -1
  133. package/{bundles/material.umd.js.map → fesm2015/material.mjs.map} +1 -1
  134. package/fesm2015/{monaco-editor.js → monaco-editor.mjs} +179 -124
  135. package/fesm2015/monaco-editor.mjs.map +1 -0
  136. package/fesm2015/node-icon.mjs +123 -0
  137. package/fesm2015/node-icon.mjs.map +1 -0
  138. package/fesm2015/page-slider.mjs +147 -0
  139. package/fesm2015/page-slider.mjs.map +1 -0
  140. package/fesm2015/reports.mjs +551 -0
  141. package/fesm2015/reports.mjs.map +1 -0
  142. package/fesm2015/time.mjs +133 -0
  143. package/fesm2015/time.mjs.map +1 -0
  144. package/fesm2020/barcode.mjs +162 -0
  145. package/fesm2020/barcode.mjs.map +1 -0
  146. package/fesm2020/calendar.mjs +138 -0
  147. package/fesm2020/calendar.mjs.map +1 -0
  148. package/fesm2020/checkbox-group.mjs +140 -0
  149. package/fesm2020/checkbox-group.mjs.map +1 -0
  150. package/fesm2020/form-builder.mjs +2921 -0
  151. package/fesm2020/form-builder.mjs.map +1 -0
  152. package/fesm2020/forms.mjs +985 -0
  153. package/fesm2020/forms.mjs.map +1 -0
  154. package/fesm2020/image.mjs +127 -0
  155. package/fesm2020/image.mjs.map +1 -0
  156. package/{report-builder/image-filter.d.ts → fesm2020/material.mjs} +9 -4
  157. package/fesm2020/material.mjs.map +1 -0
  158. package/fesm2020/monaco-editor.mjs +826 -0
  159. package/fesm2020/monaco-editor.mjs.map +1 -0
  160. package/fesm2020/node-icon.mjs +123 -0
  161. package/fesm2020/node-icon.mjs.map +1 -0
  162. package/fesm2020/page-slider.mjs +147 -0
  163. package/fesm2020/page-slider.mjs.map +1 -0
  164. package/fesm2020/reports.mjs +551 -0
  165. package/fesm2020/reports.mjs.map +1 -0
  166. package/fesm2020/time.mjs +133 -0
  167. package/fesm2020/time.mjs.map +1 -0
  168. package/form-builder/branch-line.d.ts +3 -0
  169. package/form-builder/choices-origin-editor-dialog.d.ts +3 -0
  170. package/form-builder/choices-origin-editor.d.ts +3 -0
  171. package/form-builder/condition-editor-dialog.d.ts +3 -0
  172. package/form-builder/condition-editor.d.ts +3 -0
  173. package/form-builder/form-builder-module.d.ts +41 -21
  174. package/form-builder/form-builder-service.d.ts +3 -0
  175. package/form-builder/form-builder.d.ts +3 -0
  176. package/form-builder/form-builder_public_index.d.ts +4 -0
  177. package/form-builder/index.d.ts +19 -12
  178. package/form-builder/node-entry.d.ts +3 -0
  179. package/form-builder/node-properties.d.ts +3 -0
  180. package/form-builder/node-type-entry.d.ts +3 -0
  181. package/form-builder/package.json +6 -6
  182. package/form-builder/string-identifier-dialog.d.ts +3 -0
  183. package/form-builder/validation-condition-editor-dialog.d.ts +3 -0
  184. package/form-builder/warning-condition-editor-dialog.d.ts +3 -0
  185. package/forms/barcode-field.d.ts +3 -0
  186. package/forms/boolean-field.d.ts +3 -0
  187. package/forms/date-field.d.ts +3 -0
  188. package/forms/date-input-field.d.ts +3 -0
  189. package/forms/empty-field.d.ts +3 -0
  190. package/forms/field-service.d.ts +3 -0
  191. package/forms/field-warning-dialog.d.ts +3 -21
  192. package/forms/field.d.ts +3 -0
  193. package/forms/form.d.ts +3 -0
  194. package/forms/forms-module.d.ts +43 -21
  195. package/forms/forms_public_index.d.ts +4 -0
  196. package/forms/index.d.ts +19 -5
  197. package/forms/input-field.d.ts +3 -0
  198. package/forms/multiple-choice-field.d.ts +3 -0
  199. package/forms/package.json +6 -6
  200. package/forms/range-field.d.ts +3 -0
  201. package/forms/single-choice-field.d.ts +3 -0
  202. package/forms/table-field.d.ts +3 -0
  203. package/forms/text-field.d.ts +3 -0
  204. package/forms/time-field.d.ts +3 -0
  205. package/forms/video-url-field.d.ts +3 -0
  206. package/forms/warning-alert-service.d.ts +3 -0
  207. package/image/image-module.d.ts +7 -21
  208. package/image/image.d.ts +3 -0
  209. package/image/image_public_index.d.ts +4 -0
  210. package/image/index.d.ts +19 -1
  211. package/image/package.json +6 -6
  212. package/monaco-editor/index.d.ts +19 -1
  213. package/monaco-editor/monaco-editor-module.d.ts +5 -21
  214. package/monaco-editor/monaco-editor.d.ts +3 -0
  215. package/monaco-editor/monaco-editor_public_index.d.ts +4 -0
  216. package/monaco-editor/package.json +6 -6
  217. package/node-icon/index.d.ts +19 -1
  218. package/node-icon/node-icon-module.d.ts +7 -21
  219. package/node-icon/node-icon.d.ts +3 -0
  220. package/node-icon/node-icon_public_index.d.ts +4 -0
  221. package/node-icon/package.json +6 -6
  222. package/package.json +111 -11
  223. package/page-slider/index.d.ts +19 -1
  224. package/page-slider/package.json +6 -6
  225. package/page-slider/page-slider-module.d.ts +10 -21
  226. package/page-slider/page-slider.d.ts +3 -0
  227. package/page-slider/page-slider_public_index.d.ts +4 -0
  228. package/reports/chart-widget.d.ts +3 -0
  229. package/reports/formula-widget.d.ts +3 -0
  230. package/reports/image-container-widget.d.ts +3 -0
  231. package/reports/image-widget.d.ts +3 -0
  232. package/reports/index.d.ts +19 -1
  233. package/reports/map-widget.d.ts +3 -0
  234. package/reports/package.json +6 -6
  235. package/reports/page-break-widget.d.ts +3 -0
  236. package/reports/report.d.ts +3 -0
  237. package/reports/reports-module.d.ts +24 -21
  238. package/reports/reports_public_index.d.ts +4 -0
  239. package/reports/table-widget.d.ts +3 -0
  240. package/reports/text-widget.d.ts +3 -0
  241. package/reports/widget.d.ts +9 -0
  242. package/time/index.d.ts +19 -1
  243. package/time/package.json +6 -6
  244. package/time/time-module.d.ts +8 -21
  245. package/time/time.d.ts +3 -0
  246. package/time/time_public_index.d.ts +4 -0
  247. package/barcode/index.metadata.json +0 -1
  248. package/bundles/material-barcode.umd.js +0 -433
  249. package/bundles/material-barcode.umd.js.map +0 -1
  250. package/bundles/material-calendar.umd.js +0 -435
  251. package/bundles/material-calendar.umd.js.map +0 -1
  252. package/bundles/material-checkbox-group.umd.js +0 -432
  253. package/bundles/material-checkbox-group.umd.js.map +0 -1
  254. package/bundles/material-form-builder.umd.js +0 -3558
  255. package/bundles/material-form-builder.umd.js.map +0 -1
  256. package/bundles/material-forms.umd.js +0 -968
  257. package/bundles/material-forms.umd.js.map +0 -1
  258. package/bundles/material-image.umd.js +0 -420
  259. package/bundles/material-image.umd.js.map +0 -1
  260. package/bundles/material-monaco-editor.umd.js +0 -755
  261. package/bundles/material-monaco-editor.umd.js.map +0 -1
  262. package/bundles/material-node-icon.umd.js +0 -415
  263. package/bundles/material-node-icon.umd.js.map +0 -1
  264. package/bundles/material-page-slider.umd.js +0 -424
  265. package/bundles/material-page-slider.umd.js.map +0 -1
  266. package/bundles/material-report-builder.umd.js +0 -5814
  267. package/bundles/material-report-builder.umd.js.map +0 -1
  268. package/bundles/material-reports.umd.js +0 -731
  269. package/bundles/material-reports.umd.js.map +0 -1
  270. package/bundles/material-time.umd.js +0 -424
  271. package/bundles/material-time.umd.js.map +0 -1
  272. package/bundles/material.umd.js +0 -40
  273. package/calendar/index.metadata.json +0 -1
  274. package/checkbox-group/index.metadata.json +0 -1
  275. package/esm2015/barcode/barcode-module.js +0 -50
  276. package/esm2015/barcode/barcode.externs.js +0 -6
  277. package/esm2015/barcode/barcode.js +0 -52
  278. package/esm2015/barcode/index.js +0 -5
  279. package/esm2015/calendar/calendar-module.js +0 -48
  280. package/esm2015/calendar/calendar.externs.js +0 -6
  281. package/esm2015/calendar/calendar.js +0 -55
  282. package/esm2015/calendar/index.js +0 -5
  283. package/esm2015/checkbox-group/checkbox-group-item.js +0 -51
  284. package/esm2015/checkbox-group/checkbox-group-module.js +0 -47
  285. package/esm2015/checkbox-group/checkbox-group.externs.js +0 -6
  286. package/esm2015/checkbox-group/index.js +0 -5
  287. package/esm2015/form-builder/branch-line.js +0 -73
  288. package/esm2015/form-builder/choices-origin-editor-dialog.js +0 -57
  289. package/esm2015/form-builder/choices-origin-editor.js +0 -78
  290. package/esm2015/form-builder/condition-editor-dialog.js +0 -59
  291. package/esm2015/form-builder/condition-editor.js +0 -143
  292. package/esm2015/form-builder/form-builder-module.js +0 -96
  293. package/esm2015/form-builder/form-builder-service.js +0 -764
  294. package/esm2015/form-builder/form-builder.externs.js +0 -6
  295. package/esm2015/form-builder/form-builder.js +0 -187
  296. package/esm2015/form-builder/index.js +0 -16
  297. package/esm2015/form-builder/node-entry.js +0 -245
  298. package/esm2015/form-builder/node-properties.js +0 -968
  299. package/esm2015/form-builder/node-type-entry.js +0 -50
  300. package/esm2015/form-builder/string-identifier-dialog.js +0 -94
  301. package/esm2015/form-builder/validation-condition-editor-dialog.js +0 -59
  302. package/esm2015/form-builder/warning-condition-editor-dialog.js +0 -59
  303. package/esm2015/forms/barcode-field.js +0 -43
  304. package/esm2015/forms/boolean-field.js +0 -43
  305. package/esm2015/forms/date-field.js +0 -43
  306. package/esm2015/forms/date-input-field.js +0 -65
  307. package/esm2015/forms/empty-field.js +0 -43
  308. package/esm2015/forms/field-service.js +0 -115
  309. package/esm2015/forms/field-warning-dialog.js +0 -32
  310. package/esm2015/forms/field.js +0 -45
  311. package/esm2015/forms/form.js +0 -46
  312. package/esm2015/forms/forms-module.js +0 -107
  313. package/esm2015/forms/forms.externs.js +0 -6
  314. package/esm2015/forms/index.js +0 -9
  315. package/esm2015/forms/input-field.js +0 -43
  316. package/esm2015/forms/multiple-choice-field.js +0 -44
  317. package/esm2015/forms/range-field.js +0 -45
  318. package/esm2015/forms/single-choice-field.js +0 -44
  319. package/esm2015/forms/table-field.js +0 -43
  320. package/esm2015/forms/text-field.js +0 -43
  321. package/esm2015/forms/time-field.js +0 -43
  322. package/esm2015/forms/video-url-field.js +0 -47
  323. package/esm2015/forms/warning-alert-service.js +0 -42
  324. package/esm2015/image/image-module.js +0 -42
  325. package/esm2015/image/image.externs.js +0 -6
  326. package/esm2015/image/image.js +0 -44
  327. package/esm2015/image/index.js +0 -5
  328. package/esm2015/material.externs.js +0 -0
  329. package/esm2015/monaco-editor/index.js +0 -5
  330. package/esm2015/monaco-editor/monaco-editor-module.js +0 -36
  331. package/esm2015/monaco-editor/monaco-editor.externs.js +0 -6
  332. package/esm2015/monaco-editor/monaco-editor.js +0 -389
  333. package/esm2015/node-icon/index.js +0 -5
  334. package/esm2015/node-icon/node-icon-module.js +0 -42
  335. package/esm2015/node-icon/node-icon.externs.js +0 -6
  336. package/esm2015/node-icon/node-icon.js +0 -35
  337. package/esm2015/page-slider/index.js +0 -5
  338. package/esm2015/page-slider/page-slider-module.js +0 -49
  339. package/esm2015/page-slider/page-slider.externs.js +0 -6
  340. package/esm2015/page-slider/page-slider.js +0 -44
  341. package/esm2015/report-builder/column.js +0 -97
  342. package/esm2015/report-builder/condition-editor.js +0 -159
  343. package/esm2015/report-builder/content.js +0 -255
  344. package/esm2015/report-builder/custom-widget-dialog.js +0 -51
  345. package/esm2015/report-builder/custom-widget-toolbar-button.js +0 -70
  346. package/esm2015/report-builder/custom-widgets-toolbar.js +0 -124
  347. package/esm2015/report-builder/forms-analyzer-dialog.js +0 -315
  348. package/esm2015/report-builder/forms-analyzer.js +0 -264
  349. package/esm2015/report-builder/image-group.js +0 -106
  350. package/esm2015/report-builder/index.js +0 -25
  351. package/esm2015/report-builder/models.js +0 -23
  352. package/esm2015/report-builder/properties.js +0 -765
  353. package/esm2015/report-builder/public-api.js +0 -26
  354. package/esm2015/report-builder/quill-editor.js +0 -299
  355. package/esm2015/report-builder/renderer-widget.js +0 -238
  356. package/esm2015/report-builder/report-builder-drag-data.js +0 -23
  357. package/esm2015/report-builder/report-builder-module.js +0 -114
  358. package/esm2015/report-builder/report-builder-service.js +0 -1685
  359. package/esm2015/report-builder/report-builder.externs.js +0 -6
  360. package/esm2015/report-builder/report-builder.js +0 -69
  361. package/esm2015/report-builder/theme-color-dialog.js +0 -90
  362. package/esm2015/report-builder/theme-color.js +0 -215
  363. package/esm2015/report-builder/tokens.js +0 -24
  364. package/esm2015/report-builder/toolbar-dialog.js +0 -56
  365. package/esm2015/report-builder/toolbar.js +0 -90
  366. package/esm2015/report-builder/utils.js +0 -48
  367. package/esm2015/report-builder/widget-toolbar-button.js +0 -47
  368. package/esm2015/report-builder/widgets-row-buttons.js +0 -133
  369. package/esm2015/report-builder/widgets-toolbar.js +0 -79
  370. package/esm2015/reports/chart-widget.js +0 -41
  371. package/esm2015/reports/formula-widget.js +0 -41
  372. package/esm2015/reports/image-container-widget.js +0 -43
  373. package/esm2015/reports/image-widget.js +0 -41
  374. package/esm2015/reports/index.js +0 -5
  375. package/esm2015/reports/map-widget.js +0 -41
  376. package/esm2015/reports/page-break-widget.js +0 -41
  377. package/esm2015/reports/report.js +0 -41
  378. package/esm2015/reports/reports-module.js +0 -79
  379. package/esm2015/reports/reports.externs.js +0 -6
  380. package/esm2015/reports/table-widget.js +0 -41
  381. package/esm2015/reports/text-widget.js +0 -41
  382. package/esm2015/reports/widget.js +0 -120
  383. package/esm2015/time/index.js +0 -5
  384. package/esm2015/time/time-module.js +0 -44
  385. package/esm2015/time/time.externs.js +0 -6
  386. package/esm2015/time/time.js +0 -46
  387. package/fesm2015/barcode.js +0 -129
  388. package/fesm2015/barcode.js.map +0 -1
  389. package/fesm2015/calendar.js +0 -128
  390. package/fesm2015/calendar.js.map +0 -1
  391. package/fesm2015/checkbox-group.js +0 -124
  392. package/fesm2015/checkbox-group.js.map +0 -1
  393. package/fesm2015/form-builder.js +0 -2987
  394. package/fesm2015/form-builder.js.map +0 -1
  395. package/fesm2015/forms.js +0 -923
  396. package/fesm2015/forms.js.map +0 -1
  397. package/fesm2015/image.js +0 -113
  398. package/fesm2015/image.js.map +0 -1
  399. package/fesm2015/material.js.map +0 -1
  400. package/fesm2015/monaco-editor.js.map +0 -1
  401. package/fesm2015/node-icon.js +0 -104
  402. package/fesm2015/node-icon.js.map +0 -1
  403. package/fesm2015/page-slider.js +0 -119
  404. package/fesm2015/page-slider.js.map +0 -1
  405. package/fesm2015/report-builder.js +0 -5332
  406. package/fesm2015/report-builder.js.map +0 -1
  407. package/fesm2015/reports.js +0 -560
  408. package/fesm2015/reports.js.map +0 -1
  409. package/fesm2015/time.js +0 -116
  410. package/fesm2015/time.js.map +0 -1
  411. package/form-builder/index.metadata.json +0 -1
  412. package/forms/index.metadata.json +0 -1
  413. package/image/index.metadata.json +0 -1
  414. package/monaco-editor/index.metadata.json +0 -1
  415. package/node-icon/index.metadata.json +0 -1
  416. package/page-slider/index.metadata.json +0 -1
  417. package/report-builder/_report-builder.scss +0 -0
  418. package/report-builder/column.d.ts +0 -63
  419. package/report-builder/condition-editor.d.ts +0 -67
  420. package/report-builder/content.d.ts +0 -142
  421. package/report-builder/custom-widget-dialog.d.ts +0 -31
  422. package/report-builder/custom-widget-toolbar-button.d.ts +0 -45
  423. package/report-builder/custom-widgets-toolbar.d.ts +0 -71
  424. package/report-builder/forms-analyzer-dialog.d.ts +0 -91
  425. package/report-builder/forms-analyzer.d.ts +0 -102
  426. package/report-builder/image-group.d.ts +0 -69
  427. package/report-builder/index.d.ts +0 -24
  428. package/report-builder/index.metadata.json +0 -1
  429. package/report-builder/models.d.ts +0 -43
  430. package/report-builder/operations.d.ts +0 -45
  431. package/report-builder/package.json +0 -9
  432. package/report-builder/properties.d.ts +0 -365
  433. package/report-builder/public-api.d.ts +0 -26
  434. package/report-builder/quill-editor.d.ts +0 -113
  435. package/report-builder/renderer-widget.d.ts +0 -80
  436. package/report-builder/report-builder-drag-data.d.ts +0 -32
  437. package/report-builder/report-builder-module.d.ts +0 -23
  438. package/report-builder/report-builder-service.d.ts +0 -722
  439. package/report-builder/report-builder.d.ts +0 -36
  440. package/report-builder/theme-color-dialog.d.ts +0 -42
  441. package/report-builder/theme-color.d.ts +0 -108
  442. package/report-builder/tokens.d.ts +0 -24
  443. package/report-builder/toolbar-dialog.d.ts +0 -30
  444. package/report-builder/toolbar.d.ts +0 -48
  445. package/report-builder/utils.d.ts +0 -29
  446. package/report-builder/widget-toolbar-button.d.ts +0 -28
  447. package/report-builder/widgets-row-buttons.d.ts +0 -57
  448. package/report-builder/widgets-toolbar.d.ts +0 -44
  449. package/reports/index.metadata.json +0 -1
  450. package/time/index.metadata.json +0 -1
@@ -0,0 +1,826 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, ViewChild, NgModule } from '@angular/core';
3
+
4
+ /**
5
+ * @license
6
+ * Copyright (C) Gnucoop soc. coop.
7
+ *
8
+ * This file is part of the Advanced JSON forms (ajf).
9
+ *
10
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
11
+ * modify it under the terms of the GNU Affero General Public License as
12
+ * published by the Free Software Foundation, either version 3 of the License,
13
+ * or (at your option) any later version.
14
+ *
15
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
16
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
18
+ * General Public License for more details.
19
+ *
20
+ * You should have received a copy of the GNU Affero General Public License
21
+ * along with Advanced JSON forms (ajf).
22
+ * If not, see http://www.gnu.org/licenses/.
23
+ *
24
+ */
25
+ /**
26
+ * Representation of AutoCompleteItem
27
+ */
28
+ class AutoCompleteItem {
29
+ constructor() { }
30
+ setLabel(label) {
31
+ this.label = label;
32
+ return this;
33
+ }
34
+ setKind(kind) {
35
+ this.kind = kind;
36
+ return this;
37
+ }
38
+ setDocumentation(documentation) {
39
+ this.documentation = documentation;
40
+ return this;
41
+ }
42
+ setInsertText(insertText) {
43
+ this.insertText = insertText;
44
+ return this;
45
+ }
46
+ }
47
+
48
+ /**
49
+ * @license
50
+ * Copyright (C) Gnucoop soc. coop.
51
+ *
52
+ * This file is part of the Advanced JSON forms (ajf).
53
+ *
54
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
55
+ * modify it under the terms of the GNU Affero General Public License as
56
+ * published by the Free Software Foundation, either version 3 of the License,
57
+ * or (at your option) any later version.
58
+ *
59
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
60
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
61
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
62
+ * General Public License for more details.
63
+ *
64
+ * You should have received a copy of the GNU Affero General Public License
65
+ * along with Advanced JSON forms (ajf).
66
+ * If not, see http://www.gnu.org/licenses/.
67
+ *
68
+ */
69
+ /**
70
+ * List of dev language avalaible in Monaco Editor
71
+ */
72
+ class IEditorLanguage {
73
+ }
74
+ IEditorLanguage.BAT = 'bat';
75
+ IEditorLanguage.C = 'c';
76
+ IEditorLanguage.CPP = 'cpp';
77
+ IEditorLanguage.CSHARP = 'csharp';
78
+ IEditorLanguage.CSS = 'css';
79
+ IEditorLanguage.DOCKERFILE = 'dockerfile';
80
+ IEditorLanguage.FSHARP = 'fsharp';
81
+ IEditorLanguage.GO = 'go';
82
+ IEditorLanguage.HANDLEBARS = 'handlebars';
83
+ IEditorLanguage.HTML = 'html';
84
+ IEditorLanguage.INI = 'ini';
85
+ IEditorLanguage.JADE = 'jade';
86
+ IEditorLanguage.JAVASCRIPT = 'javascript';
87
+ IEditorLanguage.JSON = 'json';
88
+ IEditorLanguage.LESS = 'less';
89
+ IEditorLanguage.LUA = 'lua';
90
+ IEditorLanguage.MARKDOWN = 'markdown';
91
+ IEditorLanguage.OBJECTIVEC = 'objective-c';
92
+ IEditorLanguage.PHP = 'php';
93
+ IEditorLanguage.PLAINTEXT = 'plaintext';
94
+ IEditorLanguage.POSTIATS = 'postiats';
95
+ IEditorLanguage.POWERSHELL = 'powershell';
96
+ IEditorLanguage.PYTHON = 'python';
97
+ IEditorLanguage.R = 'r';
98
+ IEditorLanguage.RAZOR = 'razor';
99
+ IEditorLanguage.RUBY = 'ruby';
100
+ IEditorLanguage.SCSS = 'scss';
101
+ IEditorLanguage.SQL = 'sql';
102
+ IEditorLanguage.SWIFT = 'swift';
103
+ IEditorLanguage.TYPESCRIPT = 'typescript';
104
+ IEditorLanguage.VB = 'vb';
105
+ IEditorLanguage.XML = 'xml';
106
+ IEditorLanguage.YAML = 'yaml';
107
+
108
+ /**
109
+ * @license
110
+ * Copyright (C) Gnucoop soc. coop.
111
+ *
112
+ * This file is part of the Advanced JSON forms (ajf).
113
+ *
114
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
115
+ * modify it under the terms of the GNU Affero General Public License as
116
+ * published by the Free Software Foundation, either version 3 of the License,
117
+ * or (at your option) any later version.
118
+ *
119
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
120
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
121
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
122
+ * General Public License for more details.
123
+ *
124
+ * You should have received a copy of the GNU Affero General Public License
125
+ * along with Advanced JSON forms (ajf).
126
+ * If not, see http://www.gnu.org/licenses/.
127
+ *
128
+ */
129
+ /**
130
+ * Manage the autoCompletion for all instances of the editors
131
+ */
132
+ class AutoCompleteSingleton {
133
+ constructor() {
134
+ this._autoCompleteValues = {};
135
+ }
136
+ /**
137
+ * We use a singleton, because this class can be call from all the Monaco Editor Components
138
+ */
139
+ static getInstance() {
140
+ if (!AutoCompleteSingleton._instance) {
141
+ AutoCompleteSingleton._instance = new AutoCompleteSingleton();
142
+ }
143
+ return AutoCompleteSingleton._instance;
144
+ }
145
+ get autoCompleteValues() {
146
+ return this._autoCompleteValues;
147
+ }
148
+ /**
149
+ * Init autoComplete for language passed in param if is not already done.
150
+ * @param language
151
+ */
152
+ initAutoComplete(language) {
153
+ if (this._autoCompleteValues[language.toString()]) {
154
+ return;
155
+ }
156
+ this._autoCompleteValues[language.toString()] = [];
157
+ // This event is fired when the user press Ctrl + Space, to show Intelissense (Autocomplete)
158
+ monaco.languages.registerCompletionItemProvider(language, {
159
+ provideCompletionItems: function (model) {
160
+ // Get new autoComplete list for the current content
161
+ AutoCompleteSingleton.getInstance().parseAutoCompleteValues(language, model.getValue());
162
+ return AutoCompleteSingleton.getInstance().autoCompleteValues[language.toString()];
163
+ },
164
+ });
165
+ }
166
+ /**
167
+ * Parse the content passed in param for the language passed in param
168
+ * @param language
169
+ * @param content
170
+ */
171
+ parseAutoCompleteValues(language, content) {
172
+ switch (language) {
173
+ case IEditorLanguage.XML:
174
+ return this._parseXmlAutoComplete(content);
175
+ case IEditorLanguage.JSON:
176
+ return this._parseJsonAutoComplete(content);
177
+ default:
178
+ return [];
179
+ }
180
+ }
181
+ /**
182
+ * Parse the XML content and add all tags in AutoComplete for XML Language
183
+ * @param content
184
+ */
185
+ _parseXmlAutoComplete(content) {
186
+ let tempList = [];
187
+ let parser = new DOMParser();
188
+ let tags = parser.parseFromString(content, 'text/xml').getElementsByTagName('*');
189
+ for (let i = 0; i < tags.length; i++) {
190
+ // Add TAG only if it not already existing in autoComplete list and in tempList
191
+ if (!this._autoCompleteValues[IEditorLanguage.XML].find(obj => obj.label === tags[i].tagName) &&
192
+ !tempList.find(obj => obj.label === tags[i].tagName)) {
193
+ // Create autoComplete object
194
+ let obj = new AutoCompleteItem()
195
+ .setLabel(tags[i].tagName)
196
+ .setKind(monaco.languages.CompletionItemKind.Function)
197
+ .setDocumentation('')
198
+ .setInsertText(`<${tags[i].tagName}><${tags[i].tagName}>`);
199
+ tempList.push(obj);
200
+ }
201
+ }
202
+ // Add tempList list in the _autoCompleteValues, to maintain a list updated
203
+ if (tempList.length > 0) {
204
+ this._autoCompleteValues[IEditorLanguage.XML.toString()] =
205
+ this._autoCompleteValues[IEditorLanguage.XML.toString()].concat(tempList);
206
+ }
207
+ return tempList;
208
+ }
209
+ _parseJsonAutoComplete(content) {
210
+ /* tslint:disable-next-line */
211
+ const regex = /(?:\'|\')([^']*)(?:\'|\')(?=:)(?:\:\s*)(?:\'|\')?(true|false|[0-9a-zA-Z\+\-\,\.\$]*)/g;
212
+ let tempList = [];
213
+ let m;
214
+ while ((m = regex.exec(content)) !== null) {
215
+ // This is necessary to avoid infinite loops with zero-width matches
216
+ if (m.index === regex.lastIndex) {
217
+ regex.lastIndex++;
218
+ }
219
+ // Add Element only if it not already existing in autoComplete list and in tempList
220
+ if (m[1] &&
221
+ !this._autoCompleteValues[IEditorLanguage.JSON].find(obj => obj.label === m[1]) &&
222
+ !tempList.find(obj => obj.label === m[1])) {
223
+ let obj = new AutoCompleteItem()
224
+ .setLabel(m[1])
225
+ .setKind(monaco.languages.CompletionItemKind.Value)
226
+ .setDocumentation('')
227
+ .setInsertText(`'${m[1]}':`);
228
+ tempList.push(obj);
229
+ }
230
+ }
231
+ // Add tempList list in the _autoCompleteValues, to maintain a list updated
232
+ if (tempList.length > 0) {
233
+ this._autoCompleteValues[IEditorLanguage.JSON.toString()] =
234
+ this._autoCompleteValues[IEditorLanguage.JSON.toString()].concat(tempList);
235
+ }
236
+ return tempList;
237
+ }
238
+ }
239
+ AutoCompleteSingleton._instance = null;
240
+
241
+ /**
242
+ * @license
243
+ * Copyright (C) Gnucoop soc. coop.
244
+ *
245
+ * This file is part of the Advanced JSON forms (ajf).
246
+ *
247
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
248
+ * modify it under the terms of the GNU Affero General Public License as
249
+ * published by the Free Software Foundation, either version 3 of the License,
250
+ * or (at your option) any later version.
251
+ *
252
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
253
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
254
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
255
+ * General Public License for more details.
256
+ *
257
+ * You should have received a copy of the GNU Affero General Public License
258
+ * along with Advanced JSON forms (ajf).
259
+ * If not, see http://www.gnu.org/licenses/.
260
+ *
261
+ */
262
+ /**
263
+ * Configuration options for the editor.
264
+ */
265
+ class IEditorOptions {
266
+ }
267
+
268
+ /**
269
+ * @license
270
+ * Copyright (C) Gnucoop soc. coop.
271
+ *
272
+ * This file is part of the Advanced JSON forms (ajf).
273
+ *
274
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
275
+ * modify it under the terms of the GNU Affero General Public License as
276
+ * published by the Free Software Foundation, either version 3 of the License,
277
+ * or (at your option) any later version.
278
+ *
279
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
280
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
281
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
282
+ * General Public License for more details.
283
+ *
284
+ * You should have received a copy of the GNU Affero General Public License
285
+ * along with Advanced JSON forms (ajf).
286
+ * If not, see http://www.gnu.org/licenses/.
287
+ *
288
+ */
289
+ /**
290
+ * List of theme available for Monaco Editor
291
+ */
292
+ class IEditorTheme {
293
+ }
294
+ IEditorTheme.VISUAL_STUDIO = 'vs';
295
+ IEditorTheme.VISUAL_STUDIO_DARK = 'vs-dark';
296
+ IEditorTheme.HIGH_CONTRAST_DARK = 'hc-black';
297
+
298
+ /**
299
+ * @license
300
+ * Copyright (C) Gnucoop soc. coop.
301
+ *
302
+ * This file is part of the Advanced JSON forms (ajf).
303
+ *
304
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
305
+ * modify it under the terms of the GNU Affero General Public License as
306
+ * published by the Free Software Foundation, either version 3 of the License,
307
+ * or (at your option) any later version.
308
+ *
309
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
310
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
311
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
312
+ * General Public License for more details.
313
+ *
314
+ * You should have received a copy of the GNU Affero General Public License
315
+ * along with Advanced JSON forms (ajf).
316
+ * If not, see http://www.gnu.org/licenses/.
317
+ *
318
+ */
319
+ class AjfMonacoEditor {
320
+ constructor() {
321
+ this.autoFormatOnLoad = true;
322
+ this.monacoLibPath = 'vs/loader.js';
323
+ this.valueChange = new EventEmitter();
324
+ this.valueToCompareChange = new EventEmitter();
325
+ this.init = new EventEmitter();
326
+ this._value = '';
327
+ this._valueToCompare = '';
328
+ }
329
+ set valueToCompare(v) {
330
+ if (v !== this._valueToCompare) {
331
+ this._valueToCompare = v;
332
+ if (this._valueToCompare === void 0 || !this._valueToCompare || !this._editor) {
333
+ if (this._editor && this._editor.getEditorType() !== 'vs.editor.ICodeEditor') {
334
+ this._initEditor();
335
+ return;
336
+ }
337
+ return;
338
+ }
339
+ if (!this._value) {
340
+ this._value = '';
341
+ }
342
+ if (this._editor.getEditorType() === 'vs.editor.ICodeEditor') {
343
+ this._initEditor();
344
+ return;
345
+ }
346
+ }
347
+ }
348
+ set value(v) {
349
+ if (v !== this._value) {
350
+ this._value = v;
351
+ if (this._value === void 0 || !this._editor) {
352
+ return;
353
+ }
354
+ if (this._editor.getEditorType() !== 'vs.editor.ICodeEditor') {
355
+ this._initEditor();
356
+ return;
357
+ }
358
+ this._editor.setValue(this._value);
359
+ }
360
+ }
361
+ get editor() {
362
+ return this._editor;
363
+ }
364
+ /**
365
+ * load Monaco lib
366
+ */
367
+ ngAfterViewInit() {
368
+ let onGotAmdLoader = () => {
369
+ // Load monaco
370
+ window.require(['vs/editor/editor.main'], () => {
371
+ this._initMonaco();
372
+ });
373
+ };
374
+ // Load AMD loader if necessary
375
+ if (!window.require) {
376
+ let loaderScript = document.createElement('script');
377
+ loaderScript.type = 'text/javascript';
378
+ loaderScript.src = this.monacoLibPath;
379
+ loaderScript.addEventListener('load', onGotAmdLoader);
380
+ document.body.appendChild(loaderScript);
381
+ }
382
+ else {
383
+ onGotAmdLoader();
384
+ }
385
+ }
386
+ /**
387
+ * Upon destruction of the component we make sure to dispose both the editor and
388
+ * the extra libs that we might've loaded
389
+ */
390
+ ngOnDestroy() {
391
+ this.dispose();
392
+ }
393
+ ngOnChanges(_changes) {
394
+ if (this._editor) {
395
+ this._editor.updateOptions(this._getOptions());
396
+ }
397
+ }
398
+ /**
399
+ * Destroy the monaco componenent
400
+ */
401
+ dispose() {
402
+ let myDiv = this.editorContent.nativeElement;
403
+ if (this._editor) {
404
+ this._editor.dispose();
405
+ while (myDiv.hasChildNodes()) {
406
+ if (myDiv.firstChild != null) {
407
+ myDiv.firstChild.remove();
408
+ }
409
+ }
410
+ this._editor = null;
411
+ }
412
+ }
413
+ /**
414
+ * Triggered when windows is resized
415
+ * @param event
416
+ */
417
+ onResize(_event) {
418
+ // Manually set monaco size because MonacoEditor doesn't work with Flexbox css
419
+ let myDiv = this.editorContent.nativeElement;
420
+ if (myDiv == null || myDiv.parentElement == null) {
421
+ return;
422
+ }
423
+ myDiv.setAttribute('style', `height: ${myDiv.parentElement.offsetHeight}px; width:100%;`);
424
+ }
425
+ /**
426
+ * Init editor
427
+ * Is called once monaco library is available
428
+ */
429
+ _initMonaco() {
430
+ this._initEditor();
431
+ this.init.emit();
432
+ }
433
+ _initEditor() {
434
+ let myDiv = this.editorContent.nativeElement;
435
+ let options = this._getOptions();
436
+ this.dispose();
437
+ if (!this._valueToCompare) {
438
+ this._editor = this._initSimpleEditor(myDiv, options);
439
+ }
440
+ else {
441
+ this._editor = this._initDiffEditor(myDiv, options);
442
+ }
443
+ // Manually set monaco size because MonacoEditor doesn't work with Flexbox css
444
+ if (myDiv != null && myDiv.parentElement != null) {
445
+ myDiv.setAttribute('style', `height: ${myDiv.parentElement.offsetHeight}px; width:100%;`);
446
+ }
447
+ // Init Autocomplete if not disabled
448
+ if (!this.disableAutocomplete) {
449
+ AutoCompleteSingleton.getInstance().initAutoComplete(this.language);
450
+ }
451
+ // When content is loaded, scrollChange is trigerred,
452
+ // We can only force auto format at this moment, because editor
453
+ // doesn't have onReady event ...
454
+ // this._editor.onDidScrollChange(() => {
455
+ // if (this.autoFormatOnLoad && !this._isCodeFormatted) {
456
+ // this._editor.getAction('editor.action.format').run();
457
+ // this._isCodeFormatted = true;
458
+ // }
459
+ // });
460
+ // Trigger on change event for simple editor
461
+ this._getOriginalModel().onDidChangeContent((_e) => {
462
+ let newVal = this._getOriginalModel().getValue();
463
+ if (this._value !== newVal) {
464
+ this._updateValue(newVal);
465
+ }
466
+ });
467
+ // Trigger on change event for diff editor
468
+ if (this._getModifiedModel()) {
469
+ this._getModifiedModel().onDidChangeContent((_e) => {
470
+ let newVal = this._getModifiedModel().getValue();
471
+ if (this._valueToCompare !== newVal) {
472
+ this._updateValueToCompare(newVal);
473
+ }
474
+ });
475
+ }
476
+ }
477
+ /**
478
+ * Create a simple editor text
479
+ * @param div
480
+ * @param options
481
+ */
482
+ _initSimpleEditor(div, options) {
483
+ return monaco.editor.create(div, options);
484
+ }
485
+ /**
486
+ * Create a diff editor to compare two string (_value and _valueToCompare)
487
+ * @param div
488
+ */
489
+ _initDiffEditor(div, options) {
490
+ let originalModel = monaco.editor.createModel(this._value, this.language);
491
+ let modifiedModel = monaco.editor.createModel(this._valueToCompare, this.language);
492
+ let diffEditor = monaco.editor.createDiffEditor(div, options);
493
+ diffEditor.setModel({
494
+ modified: modifiedModel,
495
+ original: originalModel,
496
+ });
497
+ return diffEditor;
498
+ }
499
+ _getOptions() {
500
+ let options = new IEditorOptions();
501
+ options.experimentalScreenReader = this.experimentalScreenReader;
502
+ options.ariaLabel = this.ariaLabel;
503
+ options.rulers = this.rulers;
504
+ options.wordSeparators = this.wordSeparators;
505
+ options.selectionClipboard = this.selectionClipboard;
506
+ options.lineNumbers = this.lineNumbers;
507
+ options.selectOnLineNumbers = this.selectOnLineNumbers;
508
+ options.lineNumbersMinChars = this.lineNumbersMinChars;
509
+ options.glyphMargin = this.glyphMargin;
510
+ options.lineDecorationsWidth = this.lineDecorationsWidth;
511
+ options.revealHorizontalRightPadding = this.revealHorizontalRightPadding;
512
+ options.roundedSelection = this.roundedSelection;
513
+ options.theme = this.theme;
514
+ options.readOnly = this.readOnly;
515
+ options.scrollbar = this.scrollbar;
516
+ options.overviewRulerLanes = this.overviewRulerLanes;
517
+ options.cursorBlinking = this.cursorBlinking;
518
+ options.mouseWheelZoom = this.mouseWheelZoom;
519
+ options.cursorStyle = this.cursorStyle;
520
+ options.mouseWheelZoom = this.mouseWheelZoom;
521
+ options.fontLigatures = this.fontLigatures;
522
+ options.disableTranslate3d = this.disableTranslate3d;
523
+ options.hideCursorInOverviewRuler = this.hideCursorInOverviewRuler;
524
+ options.scrollBeyondLastLine = this.scrollBeyondLastLine;
525
+ options.automaticLayout = this.automaticLayout;
526
+ options.wrappingColumn = this.wrappingColumn;
527
+ options.wordWrap = this.wordWrap;
528
+ options.wrappingIndent = this.wrappingIndent;
529
+ options.wordWrapBreakBeforeCharacters = this.wordWrapBreakBeforeCharacters;
530
+ options.wordWrapBreakAfterCharacters = this.wordWrapBreakAfterCharacters;
531
+ options.wordWrapBreakObtrusiveCharacters = this.wordWrapBreakObtrusiveCharacters;
532
+ options.stopRenderingLineAfter = this.stopRenderingLineAfter;
533
+ options.hover = this.hover;
534
+ options.contextmenu = this.contextmenu;
535
+ options.mouseWheelScrollSensitivity = this.mouseWheelScrollSensitivity;
536
+ options.quickSuggestions = this.quickSuggestions;
537
+ options.quickSuggestionsDelay = this.quickSuggestionsDelay;
538
+ options.parameterHints = this.parameterHints;
539
+ options.iconsInSuggestions = this.iconsInSuggestions;
540
+ options.autoClosingBrackets = this.autoClosingBrackets;
541
+ options.formatOnType = this.formatOnType;
542
+ options.suggestOnTriggerCharacters = this.suggestOnTriggerCharacters;
543
+ options.acceptSuggestionOnEnter = this.acceptSuggestionOnEnter;
544
+ options.snippetSuggestions = this.snippetSuggestions;
545
+ options.tabCompletion = this.tabCompletion;
546
+ options.wordBasedSuggestions = this.wordBasedSuggestions;
547
+ options.selectionHighlight = this.selectionHighlight;
548
+ options.codeLens = this.codeLens;
549
+ options.folding = this.folding;
550
+ options.renderWhitespace = this.renderWhitespace;
551
+ options.renderControlCharacters = this.renderControlCharacters;
552
+ options.renderIndentGuides = this.renderIndentGuides;
553
+ options.renderLineHighlight = this.renderLineHighlight;
554
+ options.useTabStops = this.useTabStops;
555
+ options.fontFamily = this.fontFamily;
556
+ options.fontWeight = this.fontWeight;
557
+ options.fontSize = this.fontSize;
558
+ options.lineHeight = this.lineHeight;
559
+ options.value = this._value;
560
+ options.language = this.language;
561
+ Object.keys(options).forEach(key => {
562
+ if (options[key] === undefined) {
563
+ delete options[key]; // Remove all undefined properties
564
+ }
565
+ });
566
+ return options;
567
+ }
568
+ /**
569
+ * UpdateValue
570
+ *
571
+ * @param value
572
+ */
573
+ _updateValue(value) {
574
+ this.value = value;
575
+ this._value = value;
576
+ this.valueChange.emit(value);
577
+ }
578
+ /**
579
+ * UpdateValue
580
+ *
581
+ * @param value
582
+ */
583
+ _updateValueToCompare(value) {
584
+ this.valueToCompare = value;
585
+ this._valueToCompare = value;
586
+ this.valueToCompareChange.emit(value);
587
+ }
588
+ _getOriginalModel() {
589
+ if (this._editor) {
590
+ let model = this._editor.getModel();
591
+ return model.original ? model.original : model;
592
+ }
593
+ }
594
+ _getModifiedModel() {
595
+ if (this._editor) {
596
+ let model = this._editor.getModel();
597
+ return model.modified ? model.modified : null;
598
+ }
599
+ }
600
+ }
601
+ AjfMonacoEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfMonacoEditor, deps: [], target: i0.ɵɵFactoryTarget.Component });
602
+ AjfMonacoEditor.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfMonacoEditor, selector: "ajf-monaco-editor", inputs: { experimentalScreenReader: "experimentalScreenReader", ariaLabel: "ariaLabel", rulers: "rulers", wordSeparators: "wordSeparators", selectionClipboard: "selectionClipboard", lineNumbers: "lineNumbers", selectOnLineNumbers: "selectOnLineNumbers", lineNumbersMinChars: "lineNumbersMinChars", glyphMargin: "glyphMargin", lineDecorationsWidth: "lineDecorationsWidth", revealHorizontalRightPadding: "revealHorizontalRightPadding", roundedSelection: "roundedSelection", theme: "theme", readOnly: "readOnly", scrollbar: "scrollbar", overviewRulerLanes: "overviewRulerLanes", cursorBlinking: "cursorBlinking", mouseWheelZoom: "mouseWheelZoom", cursorStyle: "cursorStyle", fontLigatures: "fontLigatures", disableTranslate3d: "disableTranslate3d", hideCursorInOverviewRuler: "hideCursorInOverviewRuler", scrollBeyondLastLine: "scrollBeyondLastLine", automaticLayout: "automaticLayout", wrappingColumn: "wrappingColumn", wordWrap: "wordWrap", wrappingIndent: "wrappingIndent", wordWrapBreakBeforeCharacters: "wordWrapBreakBeforeCharacters", wordWrapBreakAfterCharacters: "wordWrapBreakAfterCharacters", wordWrapBreakObtrusiveCharacters: "wordWrapBreakObtrusiveCharacters", stopRenderingLineAfter: "stopRenderingLineAfter", hover: "hover", contextmenu: "contextmenu", mouseWheelScrollSensitivity: "mouseWheelScrollSensitivity", quickSuggestions: "quickSuggestions", quickSuggestionsDelay: "quickSuggestionsDelay", parameterHints: "parameterHints", iconsInSuggestions: "iconsInSuggestions", autoClosingBrackets: "autoClosingBrackets", formatOnType: "formatOnType", suggestOnTriggerCharacters: "suggestOnTriggerCharacters", acceptSuggestionOnEnter: "acceptSuggestionOnEnter", snippetSuggestions: "snippetSuggestions", tabCompletion: "tabCompletion", wordBasedSuggestions: "wordBasedSuggestions", selectionHighlight: "selectionHighlight", codeLens: "codeLens", folding: "folding", renderWhitespace: "renderWhitespace", renderControlCharacters: "renderControlCharacters", renderIndentGuides: "renderIndentGuides", renderLineHighlight: "renderLineHighlight", useTabStops: "useTabStops", fontFamily: "fontFamily", fontWeight: "fontWeight", fontSize: "fontSize", lineHeight: "lineHeight", language: "language", disableAutocomplete: "disableAutocomplete", autoFormatOnLoad: "autoFormatOnLoad", monacoLibPath: "monacoLibPath", valueToCompare: "valueToCompare", value: "value" }, outputs: { valueChange: "valueChange", valueToCompareChange: "valueToCompareChange", init: "init" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "editorContent", first: true, predicate: ["editor"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div #editor class=\"ajf-monaco-editor\"></div>\n", styles: ["ajf-monaco-editor{display:flex;align-items:stretch;overflow:hidden}ajf-monaco-editor .ajf-monaco-editor{flex:1 0 auto}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
603
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfMonacoEditor, decorators: [{
604
+ type: Component,
605
+ args: [{ encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, selector: 'ajf-monaco-editor', host: { '(window:resize)': 'onResize($event)' }, template: "<div #editor class=\"ajf-monaco-editor\"></div>\n", styles: ["ajf-monaco-editor{display:flex;align-items:stretch;overflow:hidden}ajf-monaco-editor .ajf-monaco-editor{flex:1 0 auto}\n"] }]
606
+ }], ctorParameters: function () { return []; }, propDecorators: { experimentalScreenReader: [{
607
+ type: Input
608
+ }], ariaLabel: [{
609
+ type: Input
610
+ }], rulers: [{
611
+ type: Input
612
+ }], wordSeparators: [{
613
+ type: Input
614
+ }], selectionClipboard: [{
615
+ type: Input
616
+ }], lineNumbers: [{
617
+ type: Input
618
+ }], selectOnLineNumbers: [{
619
+ type: Input
620
+ }], lineNumbersMinChars: [{
621
+ type: Input
622
+ }], glyphMargin: [{
623
+ type: Input
624
+ }], lineDecorationsWidth: [{
625
+ type: Input
626
+ }], revealHorizontalRightPadding: [{
627
+ type: Input
628
+ }], roundedSelection: [{
629
+ type: Input
630
+ }], theme: [{
631
+ type: Input
632
+ }], readOnly: [{
633
+ type: Input
634
+ }], scrollbar: [{
635
+ type: Input
636
+ }], overviewRulerLanes: [{
637
+ type: Input
638
+ }], cursorBlinking: [{
639
+ type: Input
640
+ }], mouseWheelZoom: [{
641
+ type: Input
642
+ }], cursorStyle: [{
643
+ type: Input
644
+ }], fontLigatures: [{
645
+ type: Input
646
+ }], disableTranslate3d: [{
647
+ type: Input
648
+ }], hideCursorInOverviewRuler: [{
649
+ type: Input
650
+ }], scrollBeyondLastLine: [{
651
+ type: Input
652
+ }], automaticLayout: [{
653
+ type: Input
654
+ }], wrappingColumn: [{
655
+ type: Input
656
+ }], wordWrap: [{
657
+ type: Input
658
+ }], wrappingIndent: [{
659
+ type: Input
660
+ }], wordWrapBreakBeforeCharacters: [{
661
+ type: Input
662
+ }], wordWrapBreakAfterCharacters: [{
663
+ type: Input
664
+ }], wordWrapBreakObtrusiveCharacters: [{
665
+ type: Input
666
+ }], stopRenderingLineAfter: [{
667
+ type: Input
668
+ }], hover: [{
669
+ type: Input
670
+ }], contextmenu: [{
671
+ type: Input
672
+ }], mouseWheelScrollSensitivity: [{
673
+ type: Input
674
+ }], quickSuggestions: [{
675
+ type: Input
676
+ }], quickSuggestionsDelay: [{
677
+ type: Input
678
+ }], parameterHints: [{
679
+ type: Input
680
+ }], iconsInSuggestions: [{
681
+ type: Input
682
+ }], autoClosingBrackets: [{
683
+ type: Input
684
+ }], formatOnType: [{
685
+ type: Input
686
+ }], suggestOnTriggerCharacters: [{
687
+ type: Input
688
+ }], acceptSuggestionOnEnter: [{
689
+ type: Input
690
+ }], snippetSuggestions: [{
691
+ type: Input
692
+ }], tabCompletion: [{
693
+ type: Input
694
+ }], wordBasedSuggestions: [{
695
+ type: Input
696
+ }], selectionHighlight: [{
697
+ type: Input
698
+ }], codeLens: [{
699
+ type: Input
700
+ }], folding: [{
701
+ type: Input
702
+ }], renderWhitespace: [{
703
+ type: Input
704
+ }], renderControlCharacters: [{
705
+ type: Input
706
+ }], renderIndentGuides: [{
707
+ type: Input
708
+ }], renderLineHighlight: [{
709
+ type: Input
710
+ }], useTabStops: [{
711
+ type: Input
712
+ }], fontFamily: [{
713
+ type: Input
714
+ }], fontWeight: [{
715
+ type: Input
716
+ }], fontSize: [{
717
+ type: Input
718
+ }], lineHeight: [{
719
+ type: Input
720
+ }], language: [{
721
+ type: Input
722
+ }], disableAutocomplete: [{
723
+ type: Input
724
+ }], autoFormatOnLoad: [{
725
+ type: Input
726
+ }], monacoLibPath: [{
727
+ type: Input
728
+ }], valueToCompare: [{
729
+ type: Input
730
+ }], value: [{
731
+ type: Input
732
+ }], valueChange: [{
733
+ type: Output
734
+ }], valueToCompareChange: [{
735
+ type: Output
736
+ }], init: [{
737
+ type: Output
738
+ }], editorContent: [{
739
+ type: ViewChild,
740
+ args: ['editor', { static: true }]
741
+ }] } });
742
+
743
+ /**
744
+ * @license
745
+ * Copyright (C) Gnucoop soc. coop.
746
+ *
747
+ * This file is part of the Advanced JSON forms (ajf).
748
+ *
749
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
750
+ * modify it under the terms of the GNU Affero General Public License as
751
+ * published by the Free Software Foundation, either version 3 of the License,
752
+ * or (at your option) any later version.
753
+ *
754
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
755
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
756
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
757
+ * General Public License for more details.
758
+ *
759
+ * You should have received a copy of the GNU Affero General Public License
760
+ * along with Advanced JSON forms (ajf).
761
+ * If not, see http://www.gnu.org/licenses/.
762
+ *
763
+ */
764
+ class AjfMonacoEditorModule {
765
+ }
766
+ AjfMonacoEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfMonacoEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
767
+ AjfMonacoEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfMonacoEditorModule, declarations: [AjfMonacoEditor], exports: [AjfMonacoEditor] });
768
+ AjfMonacoEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfMonacoEditorModule });
769
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfMonacoEditorModule, decorators: [{
770
+ type: NgModule,
771
+ args: [{
772
+ declarations: [AjfMonacoEditor],
773
+ exports: [AjfMonacoEditor],
774
+ }]
775
+ }] });
776
+
777
+ /**
778
+ * @license
779
+ * Copyright (C) Gnucoop soc. coop.
780
+ *
781
+ * This file is part of the Advanced JSON forms (ajf).
782
+ *
783
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
784
+ * modify it under the terms of the GNU Affero General Public License as
785
+ * published by the Free Software Foundation, either version 3 of the License,
786
+ * or (at your option) any later version.
787
+ *
788
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
789
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
790
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
791
+ * General Public License for more details.
792
+ *
793
+ * You should have received a copy of the GNU Affero General Public License
794
+ * along with Advanced JSON forms (ajf).
795
+ * If not, see http://www.gnu.org/licenses/.
796
+ *
797
+ */
798
+
799
+ /**
800
+ * @license
801
+ * Copyright (C) Gnucoop soc. coop.
802
+ *
803
+ * This file is part of the Advanced JSON forms (ajf).
804
+ *
805
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
806
+ * modify it under the terms of the GNU Affero General Public License as
807
+ * published by the Free Software Foundation, either version 3 of the License,
808
+ * or (at your option) any later version.
809
+ *
810
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
811
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
812
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
813
+ * General Public License for more details.
814
+ *
815
+ * You should have received a copy of the GNU Affero General Public License
816
+ * along with Advanced JSON forms (ajf).
817
+ * If not, see http://www.gnu.org/licenses/.
818
+ *
819
+ */
820
+
821
+ /**
822
+ * Generated bundle index. Do not edit.
823
+ */
824
+
825
+ export { AjfMonacoEditor, AjfMonacoEditorModule };
826
+ //# sourceMappingURL=monaco-editor.mjs.map