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