@ajf/material 13.0.0-next.0

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