@ajf/material 12.1.5 → 12.1.8

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 (191) hide show
  1. package/bundles/material-barcode.umd.js +3 -7
  2. package/bundles/material-barcode.umd.js.map +1 -1
  3. package/bundles/material-calendar.umd.js +5 -17
  4. package/bundles/material-calendar.umd.js.map +1 -1
  5. package/bundles/material-checkbox-group.umd.js +4 -14
  6. package/bundles/material-checkbox-group.umd.js.map +1 -1
  7. package/bundles/material-form-builder.umd.js +523 -484
  8. package/bundles/material-form-builder.umd.js.map +1 -1
  9. package/bundles/material-forms.umd.js +95 -63
  10. package/bundles/material-forms.umd.js.map +1 -1
  11. package/bundles/material-image.umd.js +3 -10
  12. package/bundles/material-image.umd.js.map +1 -1
  13. package/bundles/material-monaco-editor.umd.js +4 -7
  14. package/bundles/material-monaco-editor.umd.js.map +1 -1
  15. package/bundles/material-node-icon.umd.js +3 -10
  16. package/bundles/material-node-icon.umd.js.map +1 -1
  17. package/bundles/material-page-slider.umd.js +2 -7
  18. package/bundles/material-page-slider.umd.js.map +1 -1
  19. package/bundles/material-reports.umd.js +68 -12
  20. package/bundles/material-reports.umd.js.map +1 -1
  21. package/bundles/material-time.umd.js +4 -12
  22. package/bundles/material-time.umd.js.map +1 -1
  23. package/calendar/index.metadata.json +1 -1
  24. package/checkbox-group/index.metadata.json +1 -1
  25. package/esm2015/barcode/barcode-module.js +3 -7
  26. package/esm2015/barcode/barcode.js +3 -3
  27. package/esm2015/calendar/calendar-module.js +4 -14
  28. package/esm2015/calendar/calendar.js +4 -6
  29. package/esm2015/checkbox-group/checkbox-group-item.js +3 -3
  30. package/esm2015/checkbox-group/checkbox-group-module.js +4 -14
  31. package/esm2015/form-builder/branch-line.js +2 -2
  32. package/esm2015/form-builder/choices-origin-data-source.js +1 -1
  33. package/esm2015/form-builder/choices-origin-editor-dialog.js +7 -4
  34. package/esm2015/form-builder/choices-origin-editor.js +1 -1
  35. package/esm2015/form-builder/condition-editor-dialog.js +1 -1
  36. package/esm2015/form-builder/condition-editor.js +9 -8
  37. package/esm2015/form-builder/form-builder-module.js +29 -14
  38. package/esm2015/form-builder/form-builder-service.js +132 -125
  39. package/esm2015/form-builder/form-builder-utils.js +4 -3
  40. package/esm2015/form-builder/form-builder.js +30 -26
  41. package/esm2015/form-builder/node-entry.js +7 -5
  42. package/esm2015/form-builder/node-properties.js +317 -312
  43. package/esm2015/form-builder/node-type-entry.js +2 -2
  44. package/esm2015/form-builder/string-identifier-dialog.js +5 -7
  45. package/esm2015/form-builder/validation-condition-editor-dialog.js +1 -1
  46. package/esm2015/form-builder/warning-condition-editor-dialog.js +1 -1
  47. package/esm2015/forms/barcode-field.js +3 -3
  48. package/esm2015/forms/boolean-field.js +3 -3
  49. package/esm2015/forms/date-field.js +2 -2
  50. package/esm2015/forms/date-input-field.js +3 -3
  51. package/esm2015/forms/empty-field.js +3 -3
  52. package/esm2015/forms/field-service.js +42 -42
  53. package/esm2015/forms/field-warning-dialog.js +1 -1
  54. package/esm2015/forms/field.js +2 -2
  55. package/esm2015/forms/form.js +2 -2
  56. package/esm2015/forms/forms-module.js +55 -23
  57. package/esm2015/forms/input-field.js +2 -2
  58. package/esm2015/forms/multiple-choice-field.js +3 -3
  59. package/esm2015/forms/range-field.js +3 -3
  60. package/esm2015/forms/single-choice-field.js +3 -3
  61. package/esm2015/forms/table-field.js +3 -3
  62. package/esm2015/forms/text-field.js +2 -2
  63. package/esm2015/forms/time-field.js +3 -3
  64. package/esm2015/forms/video-url-field.js +2 -2
  65. package/esm2015/forms/warning-alert-service.js +1 -1
  66. package/esm2015/image/image-module.js +4 -11
  67. package/esm2015/image/image.js +2 -2
  68. package/esm2015/monaco-editor/autocomplete-singleton-model.js +3 -2
  69. package/esm2015/monaco-editor/editor-options-model.js +1 -1
  70. package/esm2015/monaco-editor/monaco-editor-module.js +3 -7
  71. package/esm2015/monaco-editor/monaco-editor.js +3 -3
  72. package/esm2015/node-icon/node-icon-module.js +4 -11
  73. package/esm2015/node-icon/node-icon.js +1 -1
  74. package/esm2015/page-slider/page-slider-module.js +3 -8
  75. package/esm2015/page-slider/page-slider.js +2 -2
  76. package/esm2015/reports/chart-widget.js +2 -2
  77. package/esm2015/reports/filter-widget.js +78 -0
  78. package/esm2015/reports/formula-widget.js +2 -2
  79. package/esm2015/reports/image-container-widget.js +2 -2
  80. package/esm2015/reports/image-widget.js +2 -2
  81. package/esm2015/reports/map-widget.js +2 -2
  82. package/esm2015/reports/page-break-widget.js +2 -2
  83. package/esm2015/reports/public-api.js +2 -1
  84. package/esm2015/reports/report.js +2 -2
  85. package/esm2015/reports/reports-module.js +7 -6
  86. package/esm2015/reports/table-widget.js +3 -3
  87. package/esm2015/reports/text-widget.js +2 -2
  88. package/esm2015/reports/widget.js +7 -4
  89. package/esm2015/time/time-module.js +4 -12
  90. package/esm2015/time/time.js +3 -3
  91. package/fesm2015/barcode.js +3 -7
  92. package/fesm2015/barcode.js.map +1 -1
  93. package/fesm2015/calendar.js +5 -17
  94. package/fesm2015/calendar.js.map +1 -1
  95. package/fesm2015/checkbox-group.js +4 -14
  96. package/fesm2015/checkbox-group.js.map +1 -1
  97. package/fesm2015/form-builder.js +521 -485
  98. package/fesm2015/form-builder.js.map +1 -1
  99. package/fesm2015/forms.js +95 -63
  100. package/fesm2015/forms.js.map +1 -1
  101. package/fesm2015/image.js +3 -10
  102. package/fesm2015/image.js.map +1 -1
  103. package/fesm2015/monaco-editor.js +5 -8
  104. package/fesm2015/monaco-editor.js.map +1 -1
  105. package/fesm2015/node-icon.js +3 -10
  106. package/fesm2015/node-icon.js.map +1 -1
  107. package/fesm2015/page-slider.js +2 -7
  108. package/fesm2015/page-slider.js.map +1 -1
  109. package/fesm2015/reports.js +89 -13
  110. package/fesm2015/reports.js.map +1 -1
  111. package/fesm2015/time.js +4 -12
  112. package/fesm2015/time.js.map +1 -1
  113. package/form-builder/index.metadata.json +1 -1
  114. package/form-builder/node-properties.d.ts +1 -0
  115. package/forms/index.metadata.json +1 -1
  116. package/image/index.metadata.json +1 -1
  117. package/monaco-editor/index.metadata.json +1 -1
  118. package/node-icon/index.metadata.json +1 -1
  119. package/package.json +2 -4
  120. package/page-slider/index.metadata.json +1 -1
  121. package/{report-builder/widget-toolbar-button.d.ts → reports/filter-widget.d.ts} +11 -5
  122. package/reports/index.metadata.json +1 -1
  123. package/reports/public-api.d.ts +1 -0
  124. package/time/index.metadata.json +1 -1
  125. package/bundles/material-report-builder.umd.js +0 -5814
  126. package/bundles/material-report-builder.umd.js.map +0 -1
  127. package/esm2015/report-builder/column.js +0 -97
  128. package/esm2015/report-builder/condition-editor.js +0 -159
  129. package/esm2015/report-builder/content.js +0 -255
  130. package/esm2015/report-builder/custom-widget-dialog.js +0 -51
  131. package/esm2015/report-builder/custom-widget-toolbar-button.js +0 -70
  132. package/esm2015/report-builder/custom-widgets-toolbar.js +0 -124
  133. package/esm2015/report-builder/forms-analyzer-dialog.js +0 -315
  134. package/esm2015/report-builder/forms-analyzer.js +0 -264
  135. package/esm2015/report-builder/image-filter.js +0 -32
  136. package/esm2015/report-builder/image-group.js +0 -106
  137. package/esm2015/report-builder/index.js +0 -25
  138. package/esm2015/report-builder/models.js +0 -23
  139. package/esm2015/report-builder/operations.js +0 -23
  140. package/esm2015/report-builder/properties.js +0 -765
  141. package/esm2015/report-builder/public-api.js +0 -26
  142. package/esm2015/report-builder/quill-editor.js +0 -299
  143. package/esm2015/report-builder/renderer-widget.js +0 -238
  144. package/esm2015/report-builder/report-builder-drag-data.js +0 -23
  145. package/esm2015/report-builder/report-builder-module.js +0 -114
  146. package/esm2015/report-builder/report-builder-service.js +0 -1685
  147. package/esm2015/report-builder/report-builder.externs.js +0 -6
  148. package/esm2015/report-builder/report-builder.js +0 -69
  149. package/esm2015/report-builder/theme-color-dialog.js +0 -90
  150. package/esm2015/report-builder/theme-color.js +0 -215
  151. package/esm2015/report-builder/tokens.js +0 -24
  152. package/esm2015/report-builder/toolbar-dialog.js +0 -56
  153. package/esm2015/report-builder/toolbar.js +0 -90
  154. package/esm2015/report-builder/utils.js +0 -48
  155. package/esm2015/report-builder/widget-toolbar-button.js +0 -47
  156. package/esm2015/report-builder/widgets-row-buttons.js +0 -133
  157. package/esm2015/report-builder/widgets-toolbar.js +0 -79
  158. package/fesm2015/report-builder.js +0 -5332
  159. package/fesm2015/report-builder.js.map +0 -1
  160. package/report-builder/_report-builder.scss +0 -0
  161. package/report-builder/column.d.ts +0 -63
  162. package/report-builder/condition-editor.d.ts +0 -67
  163. package/report-builder/content.d.ts +0 -142
  164. package/report-builder/custom-widget-dialog.d.ts +0 -31
  165. package/report-builder/custom-widget-toolbar-button.d.ts +0 -45
  166. package/report-builder/custom-widgets-toolbar.d.ts +0 -71
  167. package/report-builder/forms-analyzer-dialog.d.ts +0 -91
  168. package/report-builder/forms-analyzer.d.ts +0 -102
  169. package/report-builder/image-filter.d.ts +0 -25
  170. package/report-builder/image-group.d.ts +0 -69
  171. package/report-builder/index.d.ts +0 -24
  172. package/report-builder/index.metadata.json +0 -1
  173. package/report-builder/models.d.ts +0 -43
  174. package/report-builder/operations.d.ts +0 -45
  175. package/report-builder/package.json +0 -9
  176. package/report-builder/properties.d.ts +0 -365
  177. package/report-builder/public-api.d.ts +0 -26
  178. package/report-builder/quill-editor.d.ts +0 -113
  179. package/report-builder/renderer-widget.d.ts +0 -80
  180. package/report-builder/report-builder-drag-data.d.ts +0 -32
  181. package/report-builder/report-builder-module.d.ts +0 -23
  182. package/report-builder/report-builder-service.d.ts +0 -722
  183. package/report-builder/report-builder.d.ts +0 -36
  184. package/report-builder/theme-color-dialog.d.ts +0 -42
  185. package/report-builder/theme-color.d.ts +0 -108
  186. package/report-builder/tokens.d.ts +0 -24
  187. package/report-builder/toolbar-dialog.d.ts +0 -30
  188. package/report-builder/toolbar.d.ts +0 -48
  189. package/report-builder/utils.d.ts +0 -29
  190. package/report-builder/widgets-row-buttons.d.ts +0 -57
  191. package/report-builder/widgets-toolbar.d.ts +0 -44
@@ -1 +1 @@
1
- {"version":3,"file":"monaco-editor.js","sources":["../../../../../../src/material/monaco-editor/auto-complete-item-model.ts","../../../../../../src/material/monaco-editor/editor-language-model.ts","../../../../../../src/material/monaco-editor/autocomplete-singleton-model.ts","../../../../../../src/material/monaco-editor/editor-options-model.ts","../../../../../../src/material/monaco-editor/editor-theme.ts","../../../../../../src/material/monaco-editor/monaco-editor.ts","../../../../../../src/material/monaco-editor/monaco-editor-module.ts","../../../../../../src/material/monaco-editor/public-api.ts","../../../../../../src/material/monaco-editor/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/**\n * Representation of AutoCompleteItem\n */\nexport class AutoCompleteItem {\n label: string;\n kind: number;\n documentation: string;\n insertText: string;\n\n constructor() {}\n\n setLabel(label: string): AutoCompleteItem {\n this.label = label;\n return this;\n }\n\n setKind(kind: number): AutoCompleteItem {\n this.kind = kind;\n return this;\n }\n\n setDocumentation(documentation: string): AutoCompleteItem {\n this.documentation = documentation;\n return this;\n }\n\n setInsertText(insertText: string): AutoCompleteItem {\n this.insertText = insertText;\n return this;\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/**\n * List of dev language avalaible in Monaco Editor\n */\nexport class IEditorLanguage {\n static readonly BAT = 'bat';\n static readonly C = 'c';\n static readonly CPP = 'cpp';\n static readonly CSHARP = 'csharp';\n static readonly CSS = 'css';\n static readonly DOCKERFILE = 'dockerfile';\n static readonly FSHARP = 'fsharp';\n static readonly GO = 'go';\n static readonly HANDLEBARS = 'handlebars';\n static readonly HTML = 'html';\n static readonly INI = 'ini';\n static readonly JADE = 'jade';\n static readonly JAVASCRIPT = 'javascript';\n static readonly JSON = 'json';\n static readonly LESS = 'less';\n static readonly LUA = 'lua';\n static readonly MARKDOWN = 'markdown';\n static readonly OBJECTIVEC = 'objective-c';\n static readonly PHP = 'php';\n static readonly PLAINTEXT = 'plaintext';\n static readonly POSTIATS = 'postiats';\n static readonly POWERSHELL = 'powershell';\n static readonly PYTHON = 'python';\n static readonly R = 'r';\n static readonly RAZOR = 'razor';\n static readonly RUBY = 'ruby';\n static readonly SCSS = 'scss';\n static readonly SQL = 'sql';\n static readonly SWIFT = 'swift';\n static readonly TYPESCRIPT = 'typescript';\n static readonly VB = 'vb';\n static readonly XML = 'xml';\n static readonly YAML = 'yaml';\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AutoCompleteItem} from './auto-complete-item-model';\nimport {IEditorLanguage} from './editor-language-model';\n\ndeclare const monaco: any;\n\n/**\n * Manage the autoCompletion for all instances of the editors\n */\nexport class AutoCompleteSingleton {\n /**\n * We use a singleton, because this class can be call from all the Monaco Editor Components\n */\n static getInstance() {\n if (!AutoCompleteSingleton._instance) {\n AutoCompleteSingleton._instance = new AutoCompleteSingleton();\n }\n return AutoCompleteSingleton._instance;\n }\n\n get autoCompleteValues(): {[p: string]: AutoCompleteItem[]} {\n return this._autoCompleteValues;\n }\n\n private static _instance: AutoCompleteSingleton|null = null;\n private _autoCompleteValues: {[key: string]: AutoCompleteItem[]} = {};\n\n private constructor() {}\n\n /**\n * Init autoComplete for language passed in param if is not already done.\n * @param language\n */\n initAutoComplete(language: IEditorLanguage) {\n if (this._autoCompleteValues[language.toString()]) {\n return;\n }\n\n this._autoCompleteValues[language.toString()] = [];\n\n // This event is fired when the user press Ctrl + Space, to show Intelissense (Autocomplete)\n monaco.languages.registerCompletionItemProvider(language, {\n provideCompletionItems: function(model: any) {\n // Get new autoComplete list for the current content\n AutoCompleteSingleton.getInstance().parseAutoCompleteValues(language, model.getValue());\n return AutoCompleteSingleton.getInstance().autoCompleteValues[language.toString()];\n },\n });\n }\n\n /**\n * Parse the content passed in param for the language passed in param\n * @param language\n * @param content\n */\n parseAutoCompleteValues(language: IEditorLanguage, content: string): AutoCompleteItem[] {\n switch (language) {\n case IEditorLanguage.XML:\n return this._parseXmlAutoComplete(content);\n case IEditorLanguage.JSON:\n return this._parseJsonAutoComplete(content);\n default:\n return [];\n }\n }\n\n /**\n * Parse the XML content and add all tags in AutoComplete for XML Language\n * @param content\n */\n private _parseXmlAutoComplete(content: string): AutoCompleteItem[] {\n let tempList: AutoCompleteItem[] = [];\n let parser = new DOMParser();\n let tags = parser.parseFromString(content, 'text/xml').getElementsByTagName('*');\n\n for (let i = 0; i < tags.length; i++) {\n // Add TAG only if it not already existing in autoComplete list and in tempList\n if (!this._autoCompleteValues[IEditorLanguage.XML].find(\n obj => obj.label === tags[i].tagName) &&\n !tempList.find(obj => obj.label === tags[i].tagName)) {\n // Create autoComplete object\n let obj = new AutoCompleteItem()\n .setLabel(tags[i].tagName)\n .setKind(monaco.languages.CompletionItemKind.Function)\n .setDocumentation('')\n .setInsertText(`<${tags[i].tagName}><${tags[i].tagName}>`);\n\n tempList.push(obj);\n }\n }\n\n // Add tempList list in the _autoCompleteValues, to maintain a list updated\n if (tempList.length > 0) {\n this._autoCompleteValues[IEditorLanguage.XML.toString()] =\n this._autoCompleteValues[IEditorLanguage.XML.toString()].concat(tempList);\n }\n\n return tempList;\n }\n\n private _parseJsonAutoComplete(content: string): AutoCompleteItem[] {\n /* tslint:disable-next-line */\n const regex =\n /(?:\\'|\\')([^']*)(?:\\'|\\')(?=:)(?:\\:\\s*)(?:\\'|\\')?(true|false|[0-9a-zA-Z\\+\\-\\,\\.\\$]*)/g;\n let tempList: AutoCompleteItem[] = [];\n let m: any;\n\n while ((m = regex.exec(content)) !== null) {\n // This is necessary to avoid infinite loops with zero-width matches\n if (m.index === regex.lastIndex) {\n regex.lastIndex++;\n }\n\n // Add Element only if it not already existing in autoComplete list and in tempList\n if (m[1] && !this._autoCompleteValues[IEditorLanguage.JSON].find(obj => obj.label === m[1]) &&\n !tempList.find(obj => obj.label === m[1])) {\n let obj = new AutoCompleteItem()\n .setLabel(m[1])\n .setKind(monaco.languages.CompletionItemKind.Value)\n .setDocumentation('')\n .setInsertText(`'${m[1]}':`);\n\n tempList.push(obj);\n }\n }\n\n // Add tempList list in the _autoCompleteValues, to maintain a list updated\n if (tempList.length > 0) {\n this._autoCompleteValues[IEditorLanguage.JSON.toString()] =\n this._autoCompleteValues[IEditorLanguage.JSON.toString()].concat(tempList);\n }\n\n return tempList;\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {IEditorLanguage} from './editor-language-model';\nimport {IEditorScrollbarOptions} from './editor-scrollbar-options';\nimport {IEditorTheme} from './editor-theme';\n/**\n * Configuration options for the editor.\n */\nexport class IEditorOptions {\n /**\n * Enable experimental screen reader support.\n * Defaults to `true`.\n */\n experimentalScreenReader?: boolean;\n /**\n * The aria label for the editor's textarea (when it is focused).\n */\n ariaLabel?: string;\n /**\n * Render vertical lines at the specified columns.\n * Defaults to empty array.\n */\n rulers?: number[];\n /**\n * A string containing the word separators used when doing word navigation.\n * Defaults to ``~!@#$%^&*()-=+[{]}\\\\|;:\\'',.`<``>`/?\n */\n wordSeparators?: string;\n /**\n * Enable Linux primary clipboard.\n * Defaults to true.\n */\n selectionClipboard?: boolean;\n /**\n * Control the rendering of line numbers.\n * If it is a function, it will be invoked when rendering a line number\n * and the return value will be rendered.\n * Otherwise, if it is a truey, line numbers will be rendered normally\n * (equivalent of using an identity function).\n * Otherwise, line numbers will not be rendered.\n * Defaults to true.\n */\n lineNumbers?: boolean;\n /**\n * Should the corresponding line be selected when clicking on the line number?\n * Defaults to true.\n */\n selectOnLineNumbers?: boolean;\n /**\n * Control the width of line numbers, by reserving horizontal space\n * for rendering at least an amount of digits.\n * Defaults to 5.\n */\n lineNumbersMinChars?: number;\n /**\n * Enable the rendering of the glyph margin.\n * Defaults to false.\n */\n glyphMargin?: boolean;\n /**\n * The width reserved for line decorations (in px).\n * Line decorations are placed between line numbers and the editor content.\n * Defaults to 10.\n */\n lineDecorationsWidth?: number;\n /**\n * When revealing the cursor, a virtual padding (px) is added to the cursor,\n * turning it into a rectangle.\n * This virtual padding ensures that the cursor gets revealed before\n * hitting the edge of the viewport.\n * Defaults to 30 (px).\n */\n revealHorizontalRightPadding?: number;\n /**\n * Render the editor selection with rounded borders.\n * Defaults to true.\n */\n roundedSelection?: boolean;\n /**\n * Theme to be used for rendering. Consists of two parts, the UI theme and the syntax theme,\n * separated by a space.\n * The current available UI themes are: 'vs' (default), 'vs-dark', 'hc-black'\n * The syntax themes are contributed. The default is 'default-theme'\n */\n theme?: IEditorTheme;\n /**\n * Should the editor be read only.\n * Defaults to false.\n */\n readOnly?: boolean;\n /**\n * Control the behavior and rendering of the scrollbars.\n */\n scrollbar?: IEditorScrollbarOptions;\n /**\n * The number of vertical lanes the overview ruler should render.\n * Defaults to 2.\n */\n overviewRulerLanes?: number;\n /**\n * Control the cursor animation style, possible values are\n * 'blink', 'smooth', 'phase', 'expand' and 'solid'.\n * Defaults to 'blink'.\n */\n cursorBlinking?: string;\n /**\n * Zoom the font in the editor when using the mouse wheel in combination with holding Ctrl.\n * Defaults to false.\n */\n mouseWheelZoom?: boolean;\n /**\n * Control the cursor style, either 'block' or 'line'.\n * Defaults to 'line'.\n */\n cursorStyle?: string;\n /**\n * Enable font ligatures.\n * Defaults to false.\n */\n fontLigatures?: boolean;\n /**\n * Disable the use of `translate3d`.\n * Defaults to false.\n */\n disableTranslate3d?: boolean;\n /**\n * Should the cursor be hidden in the overview ruler.\n * Defaults to false.\n */\n hideCursorInOverviewRuler?: boolean;\n /**\n * Enable that scrolling can go one screen size after the last line.\n * Defaults to true.\n */\n scrollBeyondLastLine?: boolean;\n /**\n * Enable that the editor will install an interval to check\n * if its container dom node size has changed.\n * Enabling this might have a severe performance impact.\n * Defaults to false.\n */\n automaticLayout?: boolean;\n /**\n * Control the wrapping strategy of the editor.\n * Using -1 means no wrapping whatsoever.\n * Using 0 means viewport width wrapping (ajusts with the resizing of the editor).\n * Using a positive number means wrapping after a fixed number of characters.\n * Defaults to 300.\n */\n wrappingColumn?: number;\n /**\n * Control the alternate style of viewport wrapping.\n * When set to true viewport wrapping is used only when the window width\n * is less than the number of columns specified in the wrappingColumn property.\n * Has no effect if wrappingColumn is not a positive number.\n * Defaults to false.\n */\n wordWrap?: boolean;\n /**\n * Control indentation of wrapped lines. Can be: 'none', 'same' or 'indent'.\n * Defaults to 'none'.\n */\n wrappingIndent?: string;\n /**\n * Configure word wrapping characters. A break will be introduced before these characters.\n * Defaults to '{([+'.\n */\n wordWrapBreakBeforeCharacters?: string;\n /**\n * Configure word wrapping characters. A break will be introduced after these characters.\n * Defaults to ' \\t})]?|&,;'.\n */\n wordWrapBreakAfterCharacters?: string;\n /**\n * Configure word wrapping characters. A break will be introduced after these characters\n * only if no `wordWrapBreakBeforeCharacters` or `wordWrapBreakAfterCharacters` were found.\n * Defaults to '.'.\n */\n wordWrapBreakObtrusiveCharacters?: string;\n /**\n * Performance guard: Stop rendering a line after x characters.\n * Defaults to 10000 if wrappingColumn is -1. Defaults to -1 if wrappingColumn is `>`= 0.\n * Use -1 to never stop rendering\n */\n stopRenderingLineAfter?: number;\n /**\n * Enable hover.\n * Defaults to true.\n */\n hover?: boolean;\n /**\n * Enable custom contextmenu.\n * Defaults to true.\n */\n contextmenu?: boolean;\n /**\n * A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.\n * Defaults to 1.\n */\n mouseWheelScrollSensitivity?: number;\n /**\n * Enable quick suggestions (shadow suggestions)\n * Defaults to true.\n */\n quickSuggestions?: boolean;\n /**\n * Quick suggestions show delay (in ms)\n * Defaults to 500 (ms)\n */\n quickSuggestionsDelay?: number;\n /**\n * Enables parameter hints\n */\n parameterHints?: boolean;\n /**\n * Render icons in suggestions box.\n * Defaults to true.\n */\n iconsInSuggestions?: boolean;\n /**\n * Enable auto closing brackets.\n * Defaults to true.\n */\n autoClosingBrackets?: boolean;\n /**\n * Enable format on type.\n * Defaults to false.\n */\n formatOnType?: boolean;\n /**\n * Enable the suggestion box to pop-up on trigger characters.\n * Defaults to true.\n */\n suggestOnTriggerCharacters?: boolean;\n /**\n * Accept suggestions on ENTER.\n * Defaults to true.\n */\n acceptSuggestionOnEnter?: boolean;\n /**\n * Enable snippet suggestions. Default to 'true'.\n */\n snippetSuggestions?: 'top'|'bottom'|'inline'|'none';\n /**\n * Enable tab completion. Defaults to 'false'\n */\n tabCompletion?: boolean;\n /**\n * Enable word based suggestions. Defaults to 'true'\n */\n wordBasedSuggestions?: boolean;\n /**\n * Enable selection highlight.\n * Defaults to true.\n */\n selectionHighlight?: boolean;\n /**\n * Show code lens\n * Defaults to true.\n */\n codeLens?: boolean;\n /**\n * Enable code folding\n * Defaults to true.\n */\n folding?: boolean;\n /**\n * Enable rendering of whitespace.\n * Defaults to none.\n */\n renderWhitespace?: 'none'|'boundary'|'all';\n /**\n * Enable rendering of control characters.\n * Defaults to false.\n */\n renderControlCharacters?: boolean;\n /**\n * Enable rendering of indent guides.\n * Defaults to false.\n */\n renderIndentGuides?: boolean;\n /**\n * Enable rendering of current line highlight.\n * Defaults to true.\n */\n renderLineHighlight?: boolean;\n /**\n * Inserting and deleting whitespace follows tab stops.\n */\n useTabStops?: boolean;\n /**\n * The font family\n */\n fontFamily?: string;\n /**\n * The font weight\n */\n fontWeight?: 'normal'|'bold'|'bolder'|'lighter'|'initial'|'inherit'|'100'|'200'|'300'|'400'|'500'|\n '600'|'700'|'800'|'900';\n /**\n * The font size\n */\n fontSize?: number;\n /**\n * The line height\n */\n lineHeight?: number;\n\n /**\n * Content to show\n */\n value: string;\n /**\n * Language of content to show\n */\n language: IEditorLanguage;\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/**\n * List of theme available for Monaco Editor\n */\nexport class IEditorTheme {\n static readonly VISUAL_STUDIO = 'vs';\n static readonly VISUAL_STUDIO_DARK = 'vs-dark';\n static readonly HIGH_CONTRAST_DARK = 'hc-black';\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnChanges,\n OnDestroy,\n Output,\n SimpleChange,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {AutoCompleteSingleton} from './autocomplete-singleton-model';\nimport {IEditorLanguage} from './editor-language-model';\nimport {IEditorOptions} from './editor-options-model';\nimport {IEditorScrollbarOptions} from './editor-scrollbar-options';\nimport {IEditorTheme} from './editor-theme';\n\ndeclare const monaco: any;\n\n\n@Component({\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'ajf-monaco-editor',\n styleUrls: ['monaco-editor.css'],\n templateUrl: 'monaco-editor.html',\n host: {'(window:resize)': 'onResize($event)'}\n})\nexport class AjfMonacoEditor implements OnDestroy, AfterViewInit, OnChanges {\n @Input() experimentalScreenReader?: boolean;\n @Input() ariaLabel?: string;\n @Input() rulers?: number[];\n @Input() wordSeparators?: string;\n @Input() selectionClipboard?: boolean;\n @Input() lineNumbers?: boolean;\n @Input() selectOnLineNumbers?: boolean;\n @Input() lineNumbersMinChars?: number;\n @Input() glyphMargin?: boolean;\n @Input() lineDecorationsWidth?: number;\n @Input() revealHorizontalRightPadding?: number;\n @Input() roundedSelection?: boolean;\n @Input() theme?: IEditorTheme;\n @Input() readOnly?: boolean;\n @Input() scrollbar?: IEditorScrollbarOptions;\n @Input() overviewRulerLanes?: number;\n @Input() cursorBlinking?: string;\n @Input() mouseWheelZoom?: boolean;\n @Input() cursorStyle?: string;\n @Input() fontLigatures?: boolean;\n @Input() disableTranslate3d?: boolean;\n @Input() hideCursorInOverviewRuler?: boolean;\n @Input() scrollBeyondLastLine?: boolean;\n @Input() automaticLayout?: boolean;\n @Input() wrappingColumn?: number;\n @Input() wordWrap?: boolean;\n @Input() wrappingIndent?: string;\n @Input() wordWrapBreakBeforeCharacters?: string;\n @Input() wordWrapBreakAfterCharacters?: string;\n @Input() wordWrapBreakObtrusiveCharacters?: string;\n @Input() stopRenderingLineAfter?: number;\n @Input() hover?: boolean;\n @Input() contextmenu?: boolean;\n @Input() mouseWheelScrollSensitivity?: number;\n @Input() quickSuggestions?: boolean;\n @Input() quickSuggestionsDelay?: number;\n @Input() parameterHints?: boolean;\n @Input() iconsInSuggestions?: boolean;\n @Input() autoClosingBrackets?: boolean;\n @Input() formatOnType?: boolean;\n @Input() suggestOnTriggerCharacters?: boolean;\n @Input() acceptSuggestionOnEnter?: boolean;\n @Input() snippetSuggestions?: 'top'|'bottom'|'inline'|'none';\n @Input() tabCompletion?: boolean;\n @Input() wordBasedSuggestions?: boolean;\n @Input() selectionHighlight?: boolean;\n @Input() codeLens?: boolean;\n @Input() folding?: boolean;\n @Input() renderWhitespace?: 'none'|'boundary'|'all';\n @Input() renderControlCharacters?: boolean;\n @Input() renderIndentGuides?: boolean;\n @Input() renderLineHighlight?: boolean;\n @Input() useTabStops?: boolean;\n @Input() fontFamily?: string;\n @Input()\n fontWeight?: 'normal'|'bold'|'bolder'|'lighter'|'initial'|'inherit'|'100'|'200'|'300'|'400'|'500'|\n '600'|'700'|'800'|'900';\n @Input() fontSize?: number;\n @Input() lineHeight?: number;\n\n @Input() language: IEditorLanguage;\n\n @Input() disableAutocomplete: boolean;\n @Input() autoFormatOnLoad = true;\n @Input() monacoLibPath = 'vs/loader.js';\n\n @Input()\n set valueToCompare(v: string) {\n if (v !== this._valueToCompare) {\n this._valueToCompare = v;\n\n if (this._valueToCompare === void 0 || !this._valueToCompare || !this._editor) {\n if (this._editor && this._editor.getEditorType() !== 'vs.editor.ICodeEditor') {\n this._initEditor();\n return;\n }\n\n return;\n }\n\n if (!this._value) {\n this._value = '';\n }\n\n if (this._editor.getEditorType() === 'vs.editor.ICodeEditor') {\n this._initEditor();\n return;\n }\n }\n }\n\n @Input()\n set value(v: string) {\n if (v !== this._value) {\n this._value = v;\n\n if (this._value === void 0 || !this._editor) {\n return;\n }\n\n if (this._editor.getEditorType() !== 'vs.editor.ICodeEditor') {\n this._initEditor();\n return;\n }\n\n this._editor.setValue(this._value);\n }\n }\n\n @Output() readonly valueChange = new EventEmitter();\n @Output() readonly valueToCompareChange = new EventEmitter();\n @Output() readonly init = new EventEmitter();\n\n @ViewChild('editor', {static: true}) editorContent: ElementRef;\n\n private _editor: any;\n get editor(): any {\n return this._editor;\n }\n\n private _value = '';\n private _valueToCompare = '';\n\n constructor() {}\n\n /**\n * load Monaco lib\n */\n ngAfterViewInit() {\n let onGotAmdLoader = () => {\n // Load monaco\n (<any>window).require(['vs/editor/editor.main'], () => {\n this._initMonaco();\n });\n };\n\n // Load AMD loader if necessary\n if (!(<any>window).require) {\n let loaderScript = document.createElement('script');\n loaderScript.type = 'text/javascript';\n loaderScript.src = this.monacoLibPath;\n loaderScript.addEventListener('load', onGotAmdLoader);\n document.body.appendChild(loaderScript);\n } else {\n onGotAmdLoader();\n }\n }\n\n /**\n * Upon destruction of the component we make sure to dispose both the editor and\n * the extra libs that we might've loaded\n */\n ngOnDestroy() {\n this.dispose();\n }\n\n ngOnChanges(_changes: {[propKey: string]: SimpleChange}) {\n if (this._editor) {\n this._editor.updateOptions(this._getOptions());\n }\n }\n\n /**\n * Destroy the monaco componenent\n */\n dispose() {\n let myDiv: HTMLDivElement = this.editorContent.nativeElement;\n if (this._editor) {\n this._editor.dispose();\n while (myDiv.hasChildNodes()) {\n if (myDiv.firstChild != null) {\n myDiv.removeChild(myDiv.firstChild);\n }\n }\n this._editor = null;\n }\n }\n\n /**\n * Triggered when windows is resized\n * @param event\n */\n onResize(_event: any) {\n // Manually set monaco size because MonacoEditor doesn't work with Flexbox css\n let myDiv: HTMLDivElement = this.editorContent.nativeElement;\n if (myDiv == null || myDiv.parentElement == null) {\n return;\n }\n myDiv.setAttribute('style', `height: ${myDiv.parentElement.offsetHeight}px; width:100%;`);\n }\n\n /**\n * Init editor\n * Is called once monaco library is available\n */\n private _initMonaco() {\n this._initEditor();\n this.init.emit();\n }\n\n private _initEditor() {\n let myDiv: HTMLDivElement = this.editorContent.nativeElement;\n let options = this._getOptions();\n this.dispose();\n\n if (!this._valueToCompare) {\n this._editor = this._initSimpleEditor(myDiv, options);\n } else {\n this._editor = this._initDiffEditor(myDiv, options);\n }\n\n // Manually set monaco size because MonacoEditor doesn't work with Flexbox css\n if (myDiv != null && myDiv.parentElement != null) {\n myDiv.setAttribute('style', `height: ${myDiv.parentElement.offsetHeight}px; width:100%;`);\n }\n\n // Init Autocomplete if not disabled\n if (!this.disableAutocomplete) {\n AutoCompleteSingleton.getInstance().initAutoComplete(this.language);\n }\n\n // When content is loaded, scrollChange is trigerred,\n // We can only force auto format at this moment, because editor\n // doesn't have onReady event ...\n // this._editor.onDidScrollChange(() => {\n // if (this.autoFormatOnLoad && !this._isCodeFormatted) {\n // this._editor.getAction('editor.action.format').run();\n // this._isCodeFormatted = true;\n // }\n // });\n\n // Trigger on change event for simple editor\n this._getOriginalModel().onDidChangeContent((_e: any) => {\n let newVal: string = this._getOriginalModel().getValue();\n if (this._value !== newVal) {\n this._updateValue(newVal);\n }\n });\n\n // Trigger on change event for diff editor\n if (this._getModifiedModel()) {\n this._getModifiedModel().onDidChangeContent((_e: any) => {\n let newVal: string = this._getModifiedModel().getValue();\n if (this._valueToCompare !== newVal) {\n this._updateValueToCompare(newVal);\n }\n });\n }\n }\n\n /**\n * Create a simple editor text\n * @param div\n * @param options\n */\n private _initSimpleEditor(div: HTMLDivElement, options: any) {\n return monaco.editor.create(div, options);\n }\n\n /**\n * Create a diff editor to compare two string (_value and _valueToCompare)\n * @param div\n */\n private _initDiffEditor(div: HTMLDivElement, options: any) {\n let originalModel = monaco.editor.createModel(this._value, this.language);\n let modifiedModel = monaco.editor.createModel(this._valueToCompare, this.language);\n\n let diffEditor = monaco.editor.createDiffEditor(div, options);\n diffEditor.setModel({\n modified: modifiedModel,\n original: originalModel,\n });\n\n return diffEditor;\n }\n\n private _getOptions(): IEditorOptions {\n let options: IEditorOptions = new IEditorOptions();\n options.experimentalScreenReader = this.experimentalScreenReader;\n options.ariaLabel = this.ariaLabel;\n options.rulers = this.rulers;\n options.wordSeparators = this.wordSeparators;\n options.selectionClipboard = this.selectionClipboard;\n options.lineNumbers = this.lineNumbers;\n options.selectOnLineNumbers = this.selectOnLineNumbers;\n options.lineNumbersMinChars = this.lineNumbersMinChars;\n options.glyphMargin = this.glyphMargin;\n options.lineDecorationsWidth = this.lineDecorationsWidth;\n options.revealHorizontalRightPadding = this.revealHorizontalRightPadding;\n options.roundedSelection = this.roundedSelection;\n options.theme = this.theme;\n options.readOnly = this.readOnly;\n options.scrollbar = this.scrollbar;\n options.overviewRulerLanes = this.overviewRulerLanes;\n options.cursorBlinking = this.cursorBlinking;\n options.mouseWheelZoom = this.mouseWheelZoom;\n options.cursorStyle = this.cursorStyle;\n options.mouseWheelZoom = this.mouseWheelZoom;\n options.fontLigatures = this.fontLigatures;\n options.disableTranslate3d = this.disableTranslate3d;\n options.hideCursorInOverviewRuler = this.hideCursorInOverviewRuler;\n options.scrollBeyondLastLine = this.scrollBeyondLastLine;\n options.automaticLayout = this.automaticLayout;\n options.wrappingColumn = this.wrappingColumn;\n options.wordWrap = this.wordWrap;\n options.wrappingIndent = this.wrappingIndent;\n options.wordWrapBreakBeforeCharacters = this.wordWrapBreakBeforeCharacters;\n options.wordWrapBreakAfterCharacters = this.wordWrapBreakAfterCharacters;\n options.wordWrapBreakObtrusiveCharacters = this.wordWrapBreakObtrusiveCharacters;\n options.stopRenderingLineAfter = this.stopRenderingLineAfter;\n options.hover = this.hover;\n options.contextmenu = this.contextmenu;\n options.mouseWheelScrollSensitivity = this.mouseWheelScrollSensitivity;\n options.quickSuggestions = this.quickSuggestions;\n options.quickSuggestionsDelay = this.quickSuggestionsDelay;\n options.parameterHints = this.parameterHints;\n options.iconsInSuggestions = this.iconsInSuggestions;\n options.autoClosingBrackets = this.autoClosingBrackets;\n options.formatOnType = this.formatOnType;\n options.suggestOnTriggerCharacters = this.suggestOnTriggerCharacters;\n options.acceptSuggestionOnEnter = this.acceptSuggestionOnEnter;\n options.snippetSuggestions = this.snippetSuggestions;\n options.tabCompletion = this.tabCompletion;\n options.wordBasedSuggestions = this.wordBasedSuggestions;\n options.selectionHighlight = this.selectionHighlight;\n options.codeLens = this.codeLens;\n options.folding = this.folding;\n options.renderWhitespace = this.renderWhitespace;\n options.renderControlCharacters = this.renderControlCharacters;\n options.renderIndentGuides = this.renderIndentGuides;\n options.renderLineHighlight = this.renderLineHighlight;\n options.useTabStops = this.useTabStops;\n options.fontFamily = this.fontFamily;\n options.fontWeight = this.fontWeight;\n options.fontSize = this.fontSize;\n options.lineHeight = this.lineHeight;\n options.value = this._value;\n options.language = this.language;\n\n Object.keys(options).forEach((key) => {\n if ((<any>options)[key] === undefined) {\n delete (<any>options)[key]; // Remove all undefined properties\n }\n });\n return options;\n }\n\n /**\n * UpdateValue\n *\n * @param value\n */\n private _updateValue(value: string) {\n this.value = value;\n this._value = value;\n this.valueChange.emit(value);\n }\n\n /**\n * UpdateValue\n *\n * @param value\n */\n private _updateValueToCompare(value: string) {\n this.valueToCompare = value;\n this._valueToCompare = value;\n this.valueToCompareChange.emit(value);\n }\n\n private _getOriginalModel() {\n if (this._editor) {\n let model = this._editor.getModel();\n return model.original ? model.original : model;\n }\n }\n\n private _getModifiedModel() {\n if (this._editor) {\n let model = this._editor.getModel();\n return model.modified ? model.modified : null;\n }\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {NgModule} from '@angular/core';\n\nimport {AjfMonacoEditor} from './monaco-editor';\n\n@NgModule({\n declarations: [\n AjfMonacoEditor,\n ],\n exports: [\n AjfMonacoEditor,\n ]\n})\nexport class AjfMonacoEditorModule {\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './monaco-editor-module';\nexport * from './monaco-editor';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;AAsBA;;;MAGa,gBAAgB;IAM3B,iBAAgB;IAEhB,QAAQ,CAAC,KAAa;QACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CAAC,IAAY;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;KACb;IAED,gBAAgB,CAAC,aAAqB;QACpC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,CAAC;KACb;IAED,aAAa,CAAC,UAAkB;QAC9B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;KACb;;;ACnDH;;;;;;;;;;;;;;;;;;;;;AAsBA;;;MAGa,eAAe;;AACV,mBAAG,GAAG,KAAK,CAAC;AACZ,iBAAC,GAAG,GAAG,CAAC;AACR,mBAAG,GAAG,KAAK,CAAC;AACZ,sBAAM,GAAG,QAAQ,CAAC;AAClB,mBAAG,GAAG,KAAK,CAAC;AACZ,0BAAU,GAAG,YAAY,CAAC;AAC1B,sBAAM,GAAG,QAAQ,CAAC;AAClB,kBAAE,GAAG,IAAI,CAAC;AACV,0BAAU,GAAG,YAAY,CAAC;AAC1B,oBAAI,GAAG,MAAM,CAAC;AACd,mBAAG,GAAG,KAAK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AAK;sBACL,KAAK;+BACL,KAAK;sCACL,KAAK;iCACL,KAAK;kCACL,KAAK;0BACL,KAAK;yBACL,KAAK;yBACL,KAAK;uBAGL,KAAK;yBACL,KAAK;uBAEL,KAAK;kCAEL,KAAK;+BACL,KAAK;4BACL,KAAK;6BAEL,KAAK;oBAyBL,KAAK;0BAkBL,MAAM;mCACN,MAAM;mBACN,MAAM;4BAEN,SAAS,SAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC;;;ACvKrC;;;;;;;;;;;;;;;;;;;;;MAkCa,qBAAqB;;;YARjC,QAAQ,SAAC;gBACR,YAAY,EAAE;oBACZ,eAAe;iBAChB;gBACD,OAAO,EAAE;oBACP,eAAe;iBAChB;aACF;;;ACjCD;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"monaco-editor.js","sources":["../../../../../../src/material/monaco-editor/auto-complete-item-model.ts","../../../../../../src/material/monaco-editor/editor-language-model.ts","../../../../../../src/material/monaco-editor/autocomplete-singleton-model.ts","../../../../../../src/material/monaco-editor/editor-options-model.ts","../../../../../../src/material/monaco-editor/editor-theme.ts","../../../../../../src/material/monaco-editor/monaco-editor.ts","../../../../../../src/material/monaco-editor/monaco-editor-module.ts","../../../../../../src/material/monaco-editor/public-api.ts","../../../../../../src/material/monaco-editor/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/**\n * Representation of AutoCompleteItem\n */\nexport class AutoCompleteItem {\n label: string;\n kind: number;\n documentation: string;\n insertText: string;\n\n constructor() {}\n\n setLabel(label: string): AutoCompleteItem {\n this.label = label;\n return this;\n }\n\n setKind(kind: number): AutoCompleteItem {\n this.kind = kind;\n return this;\n }\n\n setDocumentation(documentation: string): AutoCompleteItem {\n this.documentation = documentation;\n return this;\n }\n\n setInsertText(insertText: string): AutoCompleteItem {\n this.insertText = insertText;\n return this;\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/**\n * List of dev language avalaible in Monaco Editor\n */\nexport class IEditorLanguage {\n static readonly BAT = 'bat';\n static readonly C = 'c';\n static readonly CPP = 'cpp';\n static readonly CSHARP = 'csharp';\n static readonly CSS = 'css';\n static readonly DOCKERFILE = 'dockerfile';\n static readonly FSHARP = 'fsharp';\n static readonly GO = 'go';\n static readonly HANDLEBARS = 'handlebars';\n static readonly HTML = 'html';\n static readonly INI = 'ini';\n static readonly JADE = 'jade';\n static readonly JAVASCRIPT = 'javascript';\n static readonly JSON = 'json';\n static readonly LESS = 'less';\n static readonly LUA = 'lua';\n static readonly MARKDOWN = 'markdown';\n static readonly OBJECTIVEC = 'objective-c';\n static readonly PHP = 'php';\n static readonly PLAINTEXT = 'plaintext';\n static readonly POSTIATS = 'postiats';\n static readonly POWERSHELL = 'powershell';\n static readonly PYTHON = 'python';\n static readonly R = 'r';\n static readonly RAZOR = 'razor';\n static readonly RUBY = 'ruby';\n static readonly SCSS = 'scss';\n static readonly SQL = 'sql';\n static readonly SWIFT = 'swift';\n static readonly TYPESCRIPT = 'typescript';\n static readonly VB = 'vb';\n static readonly XML = 'xml';\n static readonly YAML = 'yaml';\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AutoCompleteItem} from './auto-complete-item-model';\nimport {IEditorLanguage} from './editor-language-model';\n\ndeclare const monaco: any;\n\n/**\n * Manage the autoCompletion for all instances of the editors\n */\nexport class AutoCompleteSingleton {\n /**\n * We use a singleton, because this class can be call from all the Monaco Editor Components\n */\n static getInstance() {\n if (!AutoCompleteSingleton._instance) {\n AutoCompleteSingleton._instance = new AutoCompleteSingleton();\n }\n return AutoCompleteSingleton._instance;\n }\n\n get autoCompleteValues(): {[p: string]: AutoCompleteItem[]} {\n return this._autoCompleteValues;\n }\n\n private static _instance: AutoCompleteSingleton | null = null;\n private _autoCompleteValues: {[key: string]: AutoCompleteItem[]} = {};\n\n private constructor() {}\n\n /**\n * Init autoComplete for language passed in param if is not already done.\n * @param language\n */\n initAutoComplete(language: IEditorLanguage) {\n if (this._autoCompleteValues[language.toString()]) {\n return;\n }\n\n this._autoCompleteValues[language.toString()] = [];\n\n // This event is fired when the user press Ctrl + Space, to show Intelissense (Autocomplete)\n monaco.languages.registerCompletionItemProvider(language, {\n provideCompletionItems: function (model: any) {\n // Get new autoComplete list for the current content\n AutoCompleteSingleton.getInstance().parseAutoCompleteValues(language, model.getValue());\n return AutoCompleteSingleton.getInstance().autoCompleteValues[language.toString()];\n },\n });\n }\n\n /**\n * Parse the content passed in param for the language passed in param\n * @param language\n * @param content\n */\n parseAutoCompleteValues(language: IEditorLanguage, content: string): AutoCompleteItem[] {\n switch (language) {\n case IEditorLanguage.XML:\n return this._parseXmlAutoComplete(content);\n case IEditorLanguage.JSON:\n return this._parseJsonAutoComplete(content);\n default:\n return [];\n }\n }\n\n /**\n * Parse the XML content and add all tags in AutoComplete for XML Language\n * @param content\n */\n private _parseXmlAutoComplete(content: string): AutoCompleteItem[] {\n let tempList: AutoCompleteItem[] = [];\n let parser = new DOMParser();\n let tags = parser.parseFromString(content, 'text/xml').getElementsByTagName('*');\n\n for (let i = 0; i < tags.length; i++) {\n // Add TAG only if it not already existing in autoComplete list and in tempList\n if (\n !this._autoCompleteValues[IEditorLanguage.XML].find(obj => obj.label === tags[i].tagName) &&\n !tempList.find(obj => obj.label === tags[i].tagName)\n ) {\n // Create autoComplete object\n let obj = new AutoCompleteItem()\n .setLabel(tags[i].tagName)\n .setKind(monaco.languages.CompletionItemKind.Function)\n .setDocumentation('')\n .setInsertText(`<${tags[i].tagName}><${tags[i].tagName}>`);\n\n tempList.push(obj);\n }\n }\n\n // Add tempList list in the _autoCompleteValues, to maintain a list updated\n if (tempList.length > 0) {\n this._autoCompleteValues[IEditorLanguage.XML.toString()] =\n this._autoCompleteValues[IEditorLanguage.XML.toString()].concat(tempList);\n }\n\n return tempList;\n }\n\n private _parseJsonAutoComplete(content: string): AutoCompleteItem[] {\n /* tslint:disable-next-line */\n const regex =\n /(?:\\'|\\')([^']*)(?:\\'|\\')(?=:)(?:\\:\\s*)(?:\\'|\\')?(true|false|[0-9a-zA-Z\\+\\-\\,\\.\\$]*)/g;\n let tempList: AutoCompleteItem[] = [];\n let m: any;\n\n while ((m = regex.exec(content)) !== null) {\n // This is necessary to avoid infinite loops with zero-width matches\n if (m.index === regex.lastIndex) {\n regex.lastIndex++;\n }\n\n // Add Element only if it not already existing in autoComplete list and in tempList\n if (\n m[1] &&\n !this._autoCompleteValues[IEditorLanguage.JSON].find(obj => obj.label === m[1]) &&\n !tempList.find(obj => obj.label === m[1])\n ) {\n let obj = new AutoCompleteItem()\n .setLabel(m[1])\n .setKind(monaco.languages.CompletionItemKind.Value)\n .setDocumentation('')\n .setInsertText(`'${m[1]}':`);\n\n tempList.push(obj);\n }\n }\n\n // Add tempList list in the _autoCompleteValues, to maintain a list updated\n if (tempList.length > 0) {\n this._autoCompleteValues[IEditorLanguage.JSON.toString()] =\n this._autoCompleteValues[IEditorLanguage.JSON.toString()].concat(tempList);\n }\n\n return tempList;\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {IEditorLanguage} from './editor-language-model';\nimport {IEditorScrollbarOptions} from './editor-scrollbar-options';\nimport {IEditorTheme} from './editor-theme';\n/**\n * Configuration options for the editor.\n */\nexport class IEditorOptions {\n /**\n * Enable experimental screen reader support.\n * Defaults to `true`.\n */\n experimentalScreenReader?: boolean;\n /**\n * The aria label for the editor's textarea (when it is focused).\n */\n ariaLabel?: string;\n /**\n * Render vertical lines at the specified columns.\n * Defaults to empty array.\n */\n rulers?: number[];\n /**\n * A string containing the word separators used when doing word navigation.\n * Defaults to ``~!@#$%^&*()-=+[{]}\\\\|;:\\'',.`<``>`/?\n */\n wordSeparators?: string;\n /**\n * Enable Linux primary clipboard.\n * Defaults to true.\n */\n selectionClipboard?: boolean;\n /**\n * Control the rendering of line numbers.\n * If it is a function, it will be invoked when rendering a line number\n * and the return value will be rendered.\n * Otherwise, if it is a truey, line numbers will be rendered normally\n * (equivalent of using an identity function).\n * Otherwise, line numbers will not be rendered.\n * Defaults to true.\n */\n lineNumbers?: boolean;\n /**\n * Should the corresponding line be selected when clicking on the line number?\n * Defaults to true.\n */\n selectOnLineNumbers?: boolean;\n /**\n * Control the width of line numbers, by reserving horizontal space\n * for rendering at least an amount of digits.\n * Defaults to 5.\n */\n lineNumbersMinChars?: number;\n /**\n * Enable the rendering of the glyph margin.\n * Defaults to false.\n */\n glyphMargin?: boolean;\n /**\n * The width reserved for line decorations (in px).\n * Line decorations are placed between line numbers and the editor content.\n * Defaults to 10.\n */\n lineDecorationsWidth?: number;\n /**\n * When revealing the cursor, a virtual padding (px) is added to the cursor,\n * turning it into a rectangle.\n * This virtual padding ensures that the cursor gets revealed before\n * hitting the edge of the viewport.\n * Defaults to 30 (px).\n */\n revealHorizontalRightPadding?: number;\n /**\n * Render the editor selection with rounded borders.\n * Defaults to true.\n */\n roundedSelection?: boolean;\n /**\n * Theme to be used for rendering. Consists of two parts, the UI theme and the syntax theme,\n * separated by a space.\n * The current available UI themes are: 'vs' (default), 'vs-dark', 'hc-black'\n * The syntax themes are contributed. The default is 'default-theme'\n */\n theme?: IEditorTheme;\n /**\n * Should the editor be read only.\n * Defaults to false.\n */\n readOnly?: boolean;\n /**\n * Control the behavior and rendering of the scrollbars.\n */\n scrollbar?: IEditorScrollbarOptions;\n /**\n * The number of vertical lanes the overview ruler should render.\n * Defaults to 2.\n */\n overviewRulerLanes?: number;\n /**\n * Control the cursor animation style, possible values are\n * 'blink', 'smooth', 'phase', 'expand' and 'solid'.\n * Defaults to 'blink'.\n */\n cursorBlinking?: string;\n /**\n * Zoom the font in the editor when using the mouse wheel in combination with holding Ctrl.\n * Defaults to false.\n */\n mouseWheelZoom?: boolean;\n /**\n * Control the cursor style, either 'block' or 'line'.\n * Defaults to 'line'.\n */\n cursorStyle?: string;\n /**\n * Enable font ligatures.\n * Defaults to false.\n */\n fontLigatures?: boolean;\n /**\n * Disable the use of `translate3d`.\n * Defaults to false.\n */\n disableTranslate3d?: boolean;\n /**\n * Should the cursor be hidden in the overview ruler.\n * Defaults to false.\n */\n hideCursorInOverviewRuler?: boolean;\n /**\n * Enable that scrolling can go one screen size after the last line.\n * Defaults to true.\n */\n scrollBeyondLastLine?: boolean;\n /**\n * Enable that the editor will install an interval to check\n * if its container dom node size has changed.\n * Enabling this might have a severe performance impact.\n * Defaults to false.\n */\n automaticLayout?: boolean;\n /**\n * Control the wrapping strategy of the editor.\n * Using -1 means no wrapping whatsoever.\n * Using 0 means viewport width wrapping (ajusts with the resizing of the editor).\n * Using a positive number means wrapping after a fixed number of characters.\n * Defaults to 300.\n */\n wrappingColumn?: number;\n /**\n * Control the alternate style of viewport wrapping.\n * When set to true viewport wrapping is used only when the window width\n * is less than the number of columns specified in the wrappingColumn property.\n * Has no effect if wrappingColumn is not a positive number.\n * Defaults to false.\n */\n wordWrap?: boolean;\n /**\n * Control indentation of wrapped lines. Can be: 'none', 'same' or 'indent'.\n * Defaults to 'none'.\n */\n wrappingIndent?: string;\n /**\n * Configure word wrapping characters. A break will be introduced before these characters.\n * Defaults to '{([+'.\n */\n wordWrapBreakBeforeCharacters?: string;\n /**\n * Configure word wrapping characters. A break will be introduced after these characters.\n * Defaults to ' \\t})]?|&,;'.\n */\n wordWrapBreakAfterCharacters?: string;\n /**\n * Configure word wrapping characters. A break will be introduced after these characters\n * only if no `wordWrapBreakBeforeCharacters` or `wordWrapBreakAfterCharacters` were found.\n * Defaults to '.'.\n */\n wordWrapBreakObtrusiveCharacters?: string;\n /**\n * Performance guard: Stop rendering a line after x characters.\n * Defaults to 10000 if wrappingColumn is -1. Defaults to -1 if wrappingColumn is `>`= 0.\n * Use -1 to never stop rendering\n */\n stopRenderingLineAfter?: number;\n /**\n * Enable hover.\n * Defaults to true.\n */\n hover?: boolean;\n /**\n * Enable custom contextmenu.\n * Defaults to true.\n */\n contextmenu?: boolean;\n /**\n * A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.\n * Defaults to 1.\n */\n mouseWheelScrollSensitivity?: number;\n /**\n * Enable quick suggestions (shadow suggestions)\n * Defaults to true.\n */\n quickSuggestions?: boolean;\n /**\n * Quick suggestions show delay (in ms)\n * Defaults to 500 (ms)\n */\n quickSuggestionsDelay?: number;\n /**\n * Enables parameter hints\n */\n parameterHints?: boolean;\n /**\n * Render icons in suggestions box.\n * Defaults to true.\n */\n iconsInSuggestions?: boolean;\n /**\n * Enable auto closing brackets.\n * Defaults to true.\n */\n autoClosingBrackets?: boolean;\n /**\n * Enable format on type.\n * Defaults to false.\n */\n formatOnType?: boolean;\n /**\n * Enable the suggestion box to pop-up on trigger characters.\n * Defaults to true.\n */\n suggestOnTriggerCharacters?: boolean;\n /**\n * Accept suggestions on ENTER.\n * Defaults to true.\n */\n acceptSuggestionOnEnter?: boolean;\n /**\n * Enable snippet suggestions. Default to 'true'.\n */\n snippetSuggestions?: 'top' | 'bottom' | 'inline' | 'none';\n /**\n * Enable tab completion. Defaults to 'false'\n */\n tabCompletion?: boolean;\n /**\n * Enable word based suggestions. Defaults to 'true'\n */\n wordBasedSuggestions?: boolean;\n /**\n * Enable selection highlight.\n * Defaults to true.\n */\n selectionHighlight?: boolean;\n /**\n * Show code lens\n * Defaults to true.\n */\n codeLens?: boolean;\n /**\n * Enable code folding\n * Defaults to true.\n */\n folding?: boolean;\n /**\n * Enable rendering of whitespace.\n * Defaults to none.\n */\n renderWhitespace?: 'none' | 'boundary' | 'all';\n /**\n * Enable rendering of control characters.\n * Defaults to false.\n */\n renderControlCharacters?: boolean;\n /**\n * Enable rendering of indent guides.\n * Defaults to false.\n */\n renderIndentGuides?: boolean;\n /**\n * Enable rendering of current line highlight.\n * Defaults to true.\n */\n renderLineHighlight?: boolean;\n /**\n * Inserting and deleting whitespace follows tab stops.\n */\n useTabStops?: boolean;\n /**\n * The font family\n */\n fontFamily?: string;\n /**\n * The font weight\n */\n fontWeight?:\n | 'normal'\n | 'bold'\n | 'bolder'\n | 'lighter'\n | 'initial'\n | 'inherit'\n | '100'\n | '200'\n | '300'\n | '400'\n | '500'\n | '600'\n | '700'\n | '800'\n | '900';\n /**\n * The font size\n */\n fontSize?: number;\n /**\n * The line height\n */\n lineHeight?: number;\n\n /**\n * Content to show\n */\n value: string;\n /**\n * Language of content to show\n */\n language: IEditorLanguage;\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/**\n * List of theme available for Monaco Editor\n */\nexport class IEditorTheme {\n static readonly VISUAL_STUDIO = 'vs';\n static readonly VISUAL_STUDIO_DARK = 'vs-dark';\n static readonly HIGH_CONTRAST_DARK = 'hc-black';\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnChanges,\n OnDestroy,\n Output,\n SimpleChange,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {AutoCompleteSingleton} from './autocomplete-singleton-model';\nimport {IEditorLanguage} from './editor-language-model';\nimport {IEditorOptions} from './editor-options-model';\nimport {IEditorScrollbarOptions} from './editor-scrollbar-options';\nimport {IEditorTheme} from './editor-theme';\n\ndeclare const monaco: any;\n\n@Component({\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'ajf-monaco-editor',\n styleUrls: ['monaco-editor.css'],\n templateUrl: 'monaco-editor.html',\n host: {'(window:resize)': 'onResize($event)'},\n})\nexport class AjfMonacoEditor implements OnDestroy, AfterViewInit, OnChanges {\n @Input() experimentalScreenReader?: boolean;\n @Input() ariaLabel?: string;\n @Input() rulers?: number[];\n @Input() wordSeparators?: string;\n @Input() selectionClipboard?: boolean;\n @Input() lineNumbers?: boolean;\n @Input() selectOnLineNumbers?: boolean;\n @Input() lineNumbersMinChars?: number;\n @Input() glyphMargin?: boolean;\n @Input() lineDecorationsWidth?: number;\n @Input() revealHorizontalRightPadding?: number;\n @Input() roundedSelection?: boolean;\n @Input() theme?: IEditorTheme;\n @Input() readOnly?: boolean;\n @Input() scrollbar?: IEditorScrollbarOptions;\n @Input() overviewRulerLanes?: number;\n @Input() cursorBlinking?: string;\n @Input() mouseWheelZoom?: boolean;\n @Input() cursorStyle?: string;\n @Input() fontLigatures?: boolean;\n @Input() disableTranslate3d?: boolean;\n @Input() hideCursorInOverviewRuler?: boolean;\n @Input() scrollBeyondLastLine?: boolean;\n @Input() automaticLayout?: boolean;\n @Input() wrappingColumn?: number;\n @Input() wordWrap?: boolean;\n @Input() wrappingIndent?: string;\n @Input() wordWrapBreakBeforeCharacters?: string;\n @Input() wordWrapBreakAfterCharacters?: string;\n @Input() wordWrapBreakObtrusiveCharacters?: string;\n @Input() stopRenderingLineAfter?: number;\n @Input() hover?: boolean;\n @Input() contextmenu?: boolean;\n @Input() mouseWheelScrollSensitivity?: number;\n @Input() quickSuggestions?: boolean;\n @Input() quickSuggestionsDelay?: number;\n @Input() parameterHints?: boolean;\n @Input() iconsInSuggestions?: boolean;\n @Input() autoClosingBrackets?: boolean;\n @Input() formatOnType?: boolean;\n @Input() suggestOnTriggerCharacters?: boolean;\n @Input() acceptSuggestionOnEnter?: boolean;\n @Input() snippetSuggestions?: 'top' | 'bottom' | 'inline' | 'none';\n @Input() tabCompletion?: boolean;\n @Input() wordBasedSuggestions?: boolean;\n @Input() selectionHighlight?: boolean;\n @Input() codeLens?: boolean;\n @Input() folding?: boolean;\n @Input() renderWhitespace?: 'none' | 'boundary' | 'all';\n @Input() renderControlCharacters?: boolean;\n @Input() renderIndentGuides?: boolean;\n @Input() renderLineHighlight?: boolean;\n @Input() useTabStops?: boolean;\n @Input() fontFamily?: string;\n @Input()\n fontWeight?:\n | 'normal'\n | 'bold'\n | 'bolder'\n | 'lighter'\n | 'initial'\n | 'inherit'\n | '100'\n | '200'\n | '300'\n | '400'\n | '500'\n | '600'\n | '700'\n | '800'\n | '900';\n @Input() fontSize?: number;\n @Input() lineHeight?: number;\n\n @Input() language: IEditorLanguage;\n\n @Input() disableAutocomplete: boolean;\n @Input() autoFormatOnLoad = true;\n @Input() monacoLibPath = 'vs/loader.js';\n\n @Input()\n set valueToCompare(v: string) {\n if (v !== this._valueToCompare) {\n this._valueToCompare = v;\n\n if (this._valueToCompare === void 0 || !this._valueToCompare || !this._editor) {\n if (this._editor && this._editor.getEditorType() !== 'vs.editor.ICodeEditor') {\n this._initEditor();\n return;\n }\n\n return;\n }\n\n if (!this._value) {\n this._value = '';\n }\n\n if (this._editor.getEditorType() === 'vs.editor.ICodeEditor') {\n this._initEditor();\n return;\n }\n }\n }\n\n @Input()\n set value(v: string) {\n if (v !== this._value) {\n this._value = v;\n\n if (this._value === void 0 || !this._editor) {\n return;\n }\n\n if (this._editor.getEditorType() !== 'vs.editor.ICodeEditor') {\n this._initEditor();\n return;\n }\n\n this._editor.setValue(this._value);\n }\n }\n\n @Output() readonly valueChange = new EventEmitter();\n @Output() readonly valueToCompareChange = new EventEmitter();\n @Output() readonly init = new EventEmitter();\n\n @ViewChild('editor', {static: true}) editorContent: ElementRef;\n\n private _editor: any;\n get editor(): any {\n return this._editor;\n }\n\n private _value = '';\n private _valueToCompare = '';\n\n constructor() {}\n\n /**\n * load Monaco lib\n */\n ngAfterViewInit() {\n let onGotAmdLoader = () => {\n // Load monaco\n (<any>window).require(['vs/editor/editor.main'], () => {\n this._initMonaco();\n });\n };\n\n // Load AMD loader if necessary\n if (!(<any>window).require) {\n let loaderScript = document.createElement('script');\n loaderScript.type = 'text/javascript';\n loaderScript.src = this.monacoLibPath;\n loaderScript.addEventListener('load', onGotAmdLoader);\n document.body.appendChild(loaderScript);\n } else {\n onGotAmdLoader();\n }\n }\n\n /**\n * Upon destruction of the component we make sure to dispose both the editor and\n * the extra libs that we might've loaded\n */\n ngOnDestroy() {\n this.dispose();\n }\n\n ngOnChanges(_changes: {[propKey: string]: SimpleChange}) {\n if (this._editor) {\n this._editor.updateOptions(this._getOptions());\n }\n }\n\n /**\n * Destroy the monaco componenent\n */\n dispose() {\n let myDiv: HTMLDivElement = this.editorContent.nativeElement;\n if (this._editor) {\n this._editor.dispose();\n while (myDiv.hasChildNodes()) {\n if (myDiv.firstChild != null) {\n myDiv.removeChild(myDiv.firstChild);\n }\n }\n this._editor = null;\n }\n }\n\n /**\n * Triggered when windows is resized\n * @param event\n */\n onResize(_event: any) {\n // Manually set monaco size because MonacoEditor doesn't work with Flexbox css\n let myDiv: HTMLDivElement = this.editorContent.nativeElement;\n if (myDiv == null || myDiv.parentElement == null) {\n return;\n }\n myDiv.setAttribute('style', `height: ${myDiv.parentElement.offsetHeight}px; width:100%;`);\n }\n\n /**\n * Init editor\n * Is called once monaco library is available\n */\n private _initMonaco() {\n this._initEditor();\n this.init.emit();\n }\n\n private _initEditor() {\n let myDiv: HTMLDivElement = this.editorContent.nativeElement;\n let options = this._getOptions();\n this.dispose();\n\n if (!this._valueToCompare) {\n this._editor = this._initSimpleEditor(myDiv, options);\n } else {\n this._editor = this._initDiffEditor(myDiv, options);\n }\n\n // Manually set monaco size because MonacoEditor doesn't work with Flexbox css\n if (myDiv != null && myDiv.parentElement != null) {\n myDiv.setAttribute('style', `height: ${myDiv.parentElement.offsetHeight}px; width:100%;`);\n }\n\n // Init Autocomplete if not disabled\n if (!this.disableAutocomplete) {\n AutoCompleteSingleton.getInstance().initAutoComplete(this.language);\n }\n\n // When content is loaded, scrollChange is trigerred,\n // We can only force auto format at this moment, because editor\n // doesn't have onReady event ...\n // this._editor.onDidScrollChange(() => {\n // if (this.autoFormatOnLoad && !this._isCodeFormatted) {\n // this._editor.getAction('editor.action.format').run();\n // this._isCodeFormatted = true;\n // }\n // });\n\n // Trigger on change event for simple editor\n this._getOriginalModel().onDidChangeContent((_e: any) => {\n let newVal: string = this._getOriginalModel().getValue();\n if (this._value !== newVal) {\n this._updateValue(newVal);\n }\n });\n\n // Trigger on change event for diff editor\n if (this._getModifiedModel()) {\n this._getModifiedModel().onDidChangeContent((_e: any) => {\n let newVal: string = this._getModifiedModel().getValue();\n if (this._valueToCompare !== newVal) {\n this._updateValueToCompare(newVal);\n }\n });\n }\n }\n\n /**\n * Create a simple editor text\n * @param div\n * @param options\n */\n private _initSimpleEditor(div: HTMLDivElement, options: any) {\n return monaco.editor.create(div, options);\n }\n\n /**\n * Create a diff editor to compare two string (_value and _valueToCompare)\n * @param div\n */\n private _initDiffEditor(div: HTMLDivElement, options: any) {\n let originalModel = monaco.editor.createModel(this._value, this.language);\n let modifiedModel = monaco.editor.createModel(this._valueToCompare, this.language);\n\n let diffEditor = monaco.editor.createDiffEditor(div, options);\n diffEditor.setModel({\n modified: modifiedModel,\n original: originalModel,\n });\n\n return diffEditor;\n }\n\n private _getOptions(): IEditorOptions {\n let options: IEditorOptions = new IEditorOptions();\n options.experimentalScreenReader = this.experimentalScreenReader;\n options.ariaLabel = this.ariaLabel;\n options.rulers = this.rulers;\n options.wordSeparators = this.wordSeparators;\n options.selectionClipboard = this.selectionClipboard;\n options.lineNumbers = this.lineNumbers;\n options.selectOnLineNumbers = this.selectOnLineNumbers;\n options.lineNumbersMinChars = this.lineNumbersMinChars;\n options.glyphMargin = this.glyphMargin;\n options.lineDecorationsWidth = this.lineDecorationsWidth;\n options.revealHorizontalRightPadding = this.revealHorizontalRightPadding;\n options.roundedSelection = this.roundedSelection;\n options.theme = this.theme;\n options.readOnly = this.readOnly;\n options.scrollbar = this.scrollbar;\n options.overviewRulerLanes = this.overviewRulerLanes;\n options.cursorBlinking = this.cursorBlinking;\n options.mouseWheelZoom = this.mouseWheelZoom;\n options.cursorStyle = this.cursorStyle;\n options.mouseWheelZoom = this.mouseWheelZoom;\n options.fontLigatures = this.fontLigatures;\n options.disableTranslate3d = this.disableTranslate3d;\n options.hideCursorInOverviewRuler = this.hideCursorInOverviewRuler;\n options.scrollBeyondLastLine = this.scrollBeyondLastLine;\n options.automaticLayout = this.automaticLayout;\n options.wrappingColumn = this.wrappingColumn;\n options.wordWrap = this.wordWrap;\n options.wrappingIndent = this.wrappingIndent;\n options.wordWrapBreakBeforeCharacters = this.wordWrapBreakBeforeCharacters;\n options.wordWrapBreakAfterCharacters = this.wordWrapBreakAfterCharacters;\n options.wordWrapBreakObtrusiveCharacters = this.wordWrapBreakObtrusiveCharacters;\n options.stopRenderingLineAfter = this.stopRenderingLineAfter;\n options.hover = this.hover;\n options.contextmenu = this.contextmenu;\n options.mouseWheelScrollSensitivity = this.mouseWheelScrollSensitivity;\n options.quickSuggestions = this.quickSuggestions;\n options.quickSuggestionsDelay = this.quickSuggestionsDelay;\n options.parameterHints = this.parameterHints;\n options.iconsInSuggestions = this.iconsInSuggestions;\n options.autoClosingBrackets = this.autoClosingBrackets;\n options.formatOnType = this.formatOnType;\n options.suggestOnTriggerCharacters = this.suggestOnTriggerCharacters;\n options.acceptSuggestionOnEnter = this.acceptSuggestionOnEnter;\n options.snippetSuggestions = this.snippetSuggestions;\n options.tabCompletion = this.tabCompletion;\n options.wordBasedSuggestions = this.wordBasedSuggestions;\n options.selectionHighlight = this.selectionHighlight;\n options.codeLens = this.codeLens;\n options.folding = this.folding;\n options.renderWhitespace = this.renderWhitespace;\n options.renderControlCharacters = this.renderControlCharacters;\n options.renderIndentGuides = this.renderIndentGuides;\n options.renderLineHighlight = this.renderLineHighlight;\n options.useTabStops = this.useTabStops;\n options.fontFamily = this.fontFamily;\n options.fontWeight = this.fontWeight;\n options.fontSize = this.fontSize;\n options.lineHeight = this.lineHeight;\n options.value = this._value;\n options.language = this.language;\n\n Object.keys(options).forEach(key => {\n if ((<any>options)[key] === undefined) {\n delete (<any>options)[key]; // Remove all undefined properties\n }\n });\n return options;\n }\n\n /**\n * UpdateValue\n *\n * @param value\n */\n private _updateValue(value: string) {\n this.value = value;\n this._value = value;\n this.valueChange.emit(value);\n }\n\n /**\n * UpdateValue\n *\n * @param value\n */\n private _updateValueToCompare(value: string) {\n this.valueToCompare = value;\n this._valueToCompare = value;\n this.valueToCompareChange.emit(value);\n }\n\n private _getOriginalModel() {\n if (this._editor) {\n let model = this._editor.getModel();\n return model.original ? model.original : model;\n }\n }\n\n private _getModifiedModel() {\n if (this._editor) {\n let model = this._editor.getModel();\n return model.modified ? model.modified : null;\n }\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {NgModule} from '@angular/core';\n\nimport {AjfMonacoEditor} from './monaco-editor';\n\n@NgModule({\n declarations: [AjfMonacoEditor],\n exports: [AjfMonacoEditor],\n})\nexport class AjfMonacoEditorModule {}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './monaco-editor-module';\nexport * from './monaco-editor';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;AAsBA;;;MAGa,gBAAgB;IAM3B,iBAAgB;IAEhB,QAAQ,CAAC,KAAa;QACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CAAC,IAAY;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;KACb;IAED,gBAAgB,CAAC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uCAEE,KAAK;wBACL,KAAK;qBACL,KAAK;6BACL,KAAK;iCACL,KAAK;0BACL,KAAK;kCACL,KAAK;kCACL,KAAK;0BACL,KAAK;mCACL,KAAK;2CACL,KAAK;+BACL,KAAK;oBACL,KAAK;uBACL,KAAK;wBACL,KAAK;iCACL,KAAK;6BACL,KAAK;6BACL,KAAK;0BACL,KAAK;4BACL,KAAK;iCACL,KAAK;wCACL,KAAK;mCACL,KAAK;8BACL,KAAK;6BACL,KAAK;uBACL,KAAK;6BACL,KAAK;4CACL,KAAK;2CACL,KAAK;+CACL,KAAK;qCACL,KAAK;oBACL,KAAK;0BACL,KAAK;0CACL,KAAK;+BACL,KAAK;oCACL,KAAK;6BACL,KAAK;iCACL,KAAK;kCACL,KAAK;2BACL,KAAK;yCACL,KAAK;sCACL,KAAK;iCACL,KAAK;4BACL,KAAK;mCACL,KAAK;iCACL,KAAK;uBACL,KAAK;sBACL,KAAK;+BACL,KAAK;sCACL,KAAK;iCACL,KAAK;kCACL,KAAK;0BACL,KAAK;yBACL,KAAK;yBACL,KAAK;uBAiBL,KAAK;yBACL,KAAK;uBAEL,KAAK;kCAEL,KAAK;+BACL,KAAK;4BACL,KAAK;6BAEL,KAAK;oBAyBL,KAAK;0BAkBL,MAAM;mCACN,MAAM;mBACN,MAAM;4BAEN,SAAS,SAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC;;;ACpLrC;;;;;;;;;;;;;;;;;;;;;MA8Ba,qBAAqB;;;YAJjC,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,eAAe,CAAC;gBAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;aAC3B;;;AC7BD;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;"}
@@ -61,16 +61,9 @@ class AjfNodeIconModule {
61
61
  }
62
62
  AjfNodeIconModule.decorators = [
63
63
  { type: NgModule, args: [{
64
- imports: [
65
- CommonModule,
66
- MatIconModule,
67
- ],
68
- declarations: [
69
- AjfNodeIcon,
70
- ],
71
- exports: [
72
- AjfNodeIcon,
73
- ],
64
+ imports: [CommonModule, MatIconModule],
65
+ declarations: [AjfNodeIcon],
66
+ exports: [AjfNodeIcon],
74
67
  },] }
75
68
  ];
76
69
 
@@ -1 +1 @@
1
- {"version":3,"file":"node-icon.js","sources":["../../../../../../src/material/node-icon/node-icon.ts","../../../../../../src/material/node-icon/node-icon-module.ts","../../../../../../src/material/node-icon/public-api.ts","../../../../../../src/material/node-icon/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfNodeIcon as AjfCoreNodeIcon} from '@ajf/core/node-icon';\nimport {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n selector: 'ajf-node-icon',\n templateUrl: 'node-icon.html',\n styleUrls: ['node-icon.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AjfNodeIcon extends AjfCoreNodeIcon {\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatIconModule} from '@angular/material/icon';\n\nimport {AjfNodeIcon} from './node-icon';\n\n@NgModule({\n imports: [\n CommonModule,\n MatIconModule,\n ],\n declarations: [\n AjfNodeIcon,\n ],\n exports: [\n AjfNodeIcon,\n ],\n})\nexport class AjfNodeIconModule {\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './node-icon-module';\nexport * from './node-icon';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["AjfCoreNodeIcon"],"mappings":";;;;;AAAA;;;;;;;;;;;;;;;;;;;;;MAgCa,WAAY,SAAQA,aAAe;;;YAP/C,SAAS,SAAC;gBACT,QAAQ,EAAE,eAAe;gBACzB,kIAA6B;gBAE7B,aAAa,EAAE,iBAAiB,CAAC,IAAI;gBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD;;;AC/BD;;;;;;;;;;;;;;;;;;;;;MAwCa,iBAAiB;;;YAZ7B,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACP,YAAY;oBACZ,aAAa;iBACd;gBACD,YAAY,EAAE;oBACZ,WAAW;iBACZ;gBACD,OAAO,EAAE;oBACP,WAAW;iBACZ;aACF;;;ACvCD;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"node-icon.js","sources":["../../../../../../src/material/node-icon/node-icon.ts","../../../../../../src/material/node-icon/node-icon-module.ts","../../../../../../src/material/node-icon/public-api.ts","../../../../../../src/material/node-icon/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfNodeIcon as AjfCoreNodeIcon} from '@ajf/core/node-icon';\nimport {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n selector: 'ajf-node-icon',\n templateUrl: 'node-icon.html',\n styleUrls: ['node-icon.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AjfNodeIcon extends AjfCoreNodeIcon {}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatIconModule} from '@angular/material/icon';\n\nimport {AjfNodeIcon} from './node-icon';\n\n@NgModule({\n imports: [CommonModule, MatIconModule],\n declarations: [AjfNodeIcon],\n exports: [AjfNodeIcon],\n})\nexport class AjfNodeIconModule {}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './node-icon-module';\nexport * from './node-icon';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["AjfCoreNodeIcon"],"mappings":";;;;;AAAA;;;;;;;;;;;;;;;;;;;;;MAgCa,WAAY,SAAQA,aAAe;;;YAP/C,SAAS,SAAC;gBACT,QAAQ,EAAE,eAAe;gBACzB,kIAA6B;gBAE7B,aAAa,EAAE,iBAAiB,CAAC,IAAI;gBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD;;;AC/BD;;;;;;;;;;;;;;;;;;;;;MAiCa,iBAAiB;;;YAL7B,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;gBACtC,YAAY,EAAE,CAAC,WAAW,CAAC;gBAC3B,OAAO,EAAE,CAAC,WAAW,CAAC;aACvB;;;AChCD;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;"}
@@ -79,13 +79,8 @@ AjfPageSliderModule.decorators = [
79
79
  MatIconModule,
80
80
  MatToolbarModule,
81
81
  ],
82
- declarations: [
83
- AjfPageSlider,
84
- ],
85
- exports: [
86
- AjfPageSliderModule$1,
87
- AjfPageSlider,
88
- ],
82
+ declarations: [AjfPageSlider],
83
+ exports: [AjfPageSliderModule$1, AjfPageSlider],
89
84
  },] }
90
85
  ];
91
86
 
@@ -1 +1 @@
1
- {"version":3,"file":"page-slider.js","sources":["../../../../../../src/material/page-slider/page-slider.ts","../../../../../../src/material/page-slider/page-slider-module.ts","../../../../../../src/material/page-slider/public-api.ts","../../../../../../src/material/page-slider/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfPageSlider as AjfCorePageSlider} from '@ajf/core/page-slider';\nimport {AnimationBuilder} from '@angular/animations';\nimport {BooleanInput} from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Renderer2,\n ViewEncapsulation\n} from '@angular/core';\n\n@Component({\n selector: 'ajf-page-slider',\n templateUrl: 'page-slider.html',\n styleUrls: ['page-slider.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AjfPageSlider extends AjfCorePageSlider {\n constructor(animationBuilder: AnimationBuilder, cdr: ChangeDetectorRef, renderer: Renderer2) {\n super(animationBuilder, cdr, renderer);\n }\n\n static ngAcceptInputType_hideNavigationButtons: BooleanInput;\n static ngAcceptInputType_fixedOrientation: BooleanInput;\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfPageSliderModule as AjfCorePageSliderModule} from '@ajf/core/page-slider';\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatButtonModule} from '@angular/material/button';\nimport {MatIconModule} from '@angular/material/icon';\nimport {MatToolbarModule} from '@angular/material/toolbar';\n\nimport {AjfPageSlider} from './page-slider';\n\n@NgModule({\n imports: [\n AjfCorePageSliderModule,\n CommonModule,\n MatButtonModule,\n MatIconModule,\n MatToolbarModule,\n ],\n declarations: [\n AjfPageSlider,\n ],\n exports: [\n AjfCorePageSliderModule,\n AjfPageSlider,\n ],\n})\nexport class AjfPageSliderModule {\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './page-slider';\nexport * from './page-slider-module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["AjfCorePageSlider","AjfCorePageSliderModule"],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;MAwCa,aAAc,SAAQA,eAAiB;IAClD,YAAY,gBAAkC,EAAE,GAAsB,EAAE,QAAmB;QACzF,KAAK,CAAC,gBAAgB,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;KACxC;;;YAVF,SAAS,SAAC;gBACT,QAAQ,EAAE,iBAAiB;gBAC3B,wwCAA+B;gBAE/B,aAAa,EAAE,iBAAiB,CAAC,IAAI;gBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD;;;YAhBO,gBAAgB;YAItB,iBAAiB;YAEjB,SAAS;;;AC7BX;;;;;;;;;;;;;;;;;;;;;MA+Ca,mBAAmB;;;YAhB/B,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACPC,qBAAuB;oBACvB,YAAY;oBACZ,eAAe;oBACf,aAAa;oBACb,gBAAgB;iBACjB;gBACD,YAAY,EAAE;oBACZ,aAAa;iBACd;gBACD,OAAO,EAAE;oBACPA,qBAAuB;oBACvB,aAAa;iBACd;aACF;;;AC9CD;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"page-slider.js","sources":["../../../../../../src/material/page-slider/page-slider.ts","../../../../../../src/material/page-slider/page-slider-module.ts","../../../../../../src/material/page-slider/public-api.ts","../../../../../../src/material/page-slider/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfPageSlider as AjfCorePageSlider} from '@ajf/core/page-slider';\nimport {AnimationBuilder} from '@angular/animations';\nimport {BooleanInput} from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Renderer2,\n ViewEncapsulation,\n} from '@angular/core';\n\n@Component({\n selector: 'ajf-page-slider',\n templateUrl: 'page-slider.html',\n styleUrls: ['page-slider.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AjfPageSlider extends AjfCorePageSlider {\n constructor(animationBuilder: AnimationBuilder, cdr: ChangeDetectorRef, renderer: Renderer2) {\n super(animationBuilder, cdr, renderer);\n }\n\n static ngAcceptInputType_hideNavigationButtons: BooleanInput;\n static ngAcceptInputType_fixedOrientation: BooleanInput;\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfPageSliderModule as AjfCorePageSliderModule} from '@ajf/core/page-slider';\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatButtonModule} from '@angular/material/button';\nimport {MatIconModule} from '@angular/material/icon';\nimport {MatToolbarModule} from '@angular/material/toolbar';\n\nimport {AjfPageSlider} from './page-slider';\n\n@NgModule({\n imports: [\n AjfCorePageSliderModule,\n CommonModule,\n MatButtonModule,\n MatIconModule,\n MatToolbarModule,\n ],\n declarations: [AjfPageSlider],\n exports: [AjfCorePageSliderModule, AjfPageSlider],\n})\nexport class AjfPageSliderModule {}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './page-slider';\nexport * from './page-slider-module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["AjfCorePageSlider","AjfCorePageSliderModule"],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;MAwCa,aAAc,SAAQA,eAAiB;IAClD,YAAY,gBAAkC,EAAE,GAAsB,EAAE,QAAmB;QACzF,KAAK,CAAC,gBAAgB,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;KACxC;;;YAVF,SAAS,SAAC;gBACT,QAAQ,EAAE,iBAAiB;gBAC3B,wwCAA+B;gBAE/B,aAAa,EAAE,iBAAiB,CAAC,IAAI;gBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD;;;YAhBO,gBAAgB;YAItB,iBAAiB;YAEjB,SAAS;;;AC7BX;;;;;;;;;;;;;;;;;;;;;MA0Ca,mBAAmB;;;YAX/B,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACPC,qBAAuB;oBACvB,YAAY;oBACZ,eAAe;oBACf,aAAa;oBACb,gBAAgB;iBACjB;gBACD,YAAY,EAAE,CAAC,aAAa,CAAC;gBAC7B,OAAO,EAAE,CAACA,qBAAuB,EAAE,aAAa,CAAC;aAClD;;;ACzCD;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;"}
@@ -1,6 +1,11 @@
1
- import { AjfBaseWidgetComponent, AjfReportRenderer as AjfReportRenderer$1, AjfWidgetType, AjfWidgetService as AjfWidgetService$1, AjfReportWidget as AjfReportWidget$1, AjfReportsModule as AjfReportsModule$1 } from '@ajf/core/reports';
1
+ import { AjfBaseWidgetComponent, widgetToWidgetInstance, AjfReportRenderer as AjfReportRenderer$1, AjfWidgetType, AjfWidgetService as AjfWidgetService$1, AjfReportWidget as AjfReportWidget$1, AjfReportsModule as AjfReportsModule$1 } from '@ajf/core/reports';
2
2
  import * as i0 from '@angular/core';
3
- import { Component, ChangeDetectionStrategy, ViewEncapsulation, ChangeDetectorRef, ElementRef, Injectable, ComponentFactoryResolver, Renderer2, NgModule } from '@angular/core';
3
+ import { Component, ChangeDetectionStrategy, ViewEncapsulation, ChangeDetectorRef, ElementRef, EventEmitter, Output, Injectable, ComponentFactoryResolver, Renderer2, NgModule } from '@angular/core';
4
+ import { filter, switchMap, distinctUntilChanged, debounceTime, skip, tap } from 'rxjs/operators';
5
+ import { AjfFormRendererService } from '@ajf/core/forms';
6
+ import { TranslocoService, AjfTranslocoModule } from '@ajf/core/transloco';
7
+ import { Subscription, BehaviorSubject } from 'rxjs';
8
+ import { evaluateExpression } from '@ajf/core/models';
4
9
  import { AjfImageType } from '@ajf/core/image';
5
10
  import { AjfChartModule } from '@ajf/core/chart';
6
11
  import { AjfCommonModule } from '@ajf/core/common';
@@ -8,10 +13,9 @@ import { AjfMapModule } from '@ajf/core/map';
8
13
  import { AjfPageBreakModule } from '@ajf/core/page-break';
9
14
  import { AjfTableModule } from '@ajf/core/table';
10
15
  import { AjfTextModule } from '@ajf/core/text';
11
- import { AjfTranslocoModule } from '@ajf/core/transloco';
12
16
  import { AjfImageModule } from '@ajf/material/image';
13
17
  import { CommonModule } from '@angular/common';
14
- import { BehaviorSubject } from 'rxjs';
18
+ import { AjfFormsModule } from '@ajf/material/forms';
15
19
 
16
20
  /**
17
21
  * @license
@@ -52,6 +56,77 @@ AjfChartWidgetComponent.ctorParameters = () => [
52
56
  { type: ElementRef }
53
57
  ];
54
58
 
59
+ /**
60
+ * @license
61
+ * Copyright (C) Gnucoop soc. coop.
62
+ *
63
+ * This file is part of the Advanced JSON forms (ajf).
64
+ *
65
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
66
+ * modify it under the terms of the GNU Affero General Public License as
67
+ * published by the Free Software Foundation, either version 3 of the License,
68
+ * or (at your option) any later version.
69
+ *
70
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
71
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
72
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
73
+ * General Public License for more details.
74
+ *
75
+ * You should have received a copy of the GNU Affero General Public License
76
+ * along with Advanced JSON forms (ajf).
77
+ * If not, see http://www.gnu.org/licenses/.
78
+ *
79
+ */
80
+ class AjfFilterWidgetComponent extends AjfBaseWidgetComponent {
81
+ constructor(cdr, el, _ts, _formRenderer) {
82
+ super(cdr, el);
83
+ this._ts = _ts;
84
+ this._formRenderer = _formRenderer;
85
+ this.filteredInstance = new EventEmitter();
86
+ this._instanceSub = Subscription.EMPTY;
87
+ }
88
+ ngOnDestroy() {
89
+ this._instanceSub.unsubscribe();
90
+ }
91
+ ngOnInit() {
92
+ if (this.instance != null && this.instance.filter != null) {
93
+ this._instanceSub = this._formRenderer.formGroup
94
+ .pipe(filter(fg => fg != null), switchMap(formGroup => formGroup.valueChanges), distinctUntilChanged((a, b) => JSON.stringify(a) === JSON.stringify(b)), debounceTime(500), skip(1), tap(a => {
95
+ if (this.instance != null && this.instance.filter != null) {
96
+ const newConst = Object.assign(Object.assign({}, (this.instance.filter.context || {})), a);
97
+ if (this.instance.filter.variables != null) {
98
+ (this.instance.filter.variables || []).forEach(variable => {
99
+ newConst[variable.name] = evaluateExpression(variable.formula.formula, newConst);
100
+ });
101
+ }
102
+ this.instance = widgetToWidgetInstance(this.instance.widget, newConst, this._ts);
103
+ }
104
+ }))
105
+ .subscribe(() => this.filteredInstance.emit(this.instance));
106
+ }
107
+ }
108
+ }
109
+ AjfFilterWidgetComponent.decorators = [
110
+ { type: Component, args: [{
111
+ selector: 'ajf-filter-widget',
112
+ template: "<div *ngIf=\"instance.filter as filter\" class=\"ajf-filter-container\">\n <ajf-form\n [form]=\"filter.form\"\n [hasStartMessage]=\"false\"\n [hasEndMessage]=\"false\"\n [hideTopToolbar]=\"true\"\n [hideBottomToolbar]=\"true\"\n [hideNavigationButtons]=\"true\"\n ></ajf-form>\n</div>\n",
113
+ changeDetection: ChangeDetectionStrategy.OnPush,
114
+ encapsulation: ViewEncapsulation.None,
115
+ providers: [AjfFormRendererService],
116
+ inputs: ['instance'],
117
+ styles: ["ajf-filter-widget .ajf-filter-container ajf-page-slider-item{flex:auto !important}ajf-filter-widget .ajf-filter-container ajf-page-slider-item .ajf-page-slider-item-content{position:relative}ajf-filter-widget .ajf-filter-container .ajf-form-container{position:relative}ajf-filter-widget .ajf-filter-container .ajf-form-container .mat-card-header{display:none}ajf-filter-widget .ajf-field-entry{width:unset !important;min-width:200px}\n"]
118
+ },] }
119
+ ];
120
+ AjfFilterWidgetComponent.ctorParameters = () => [
121
+ { type: ChangeDetectorRef },
122
+ { type: ElementRef },
123
+ { type: TranslocoService },
124
+ { type: AjfFormRendererService }
125
+ ];
126
+ AjfFilterWidgetComponent.propDecorators = {
127
+ filteredInstance: [{ type: Output }]
128
+ };
129
+
55
130
  /**
56
131
  * @license
57
132
  * Copyright (C) Gnucoop soc. coop.
@@ -318,7 +393,7 @@ AjfTableWidgetComponent.decorators = [
318
393
  template: "<ajf-widget-export \n[widgetType]=\"instance.widgetType\" \n[data]=\"instance.data\"\n[enable]=\"instance.exportable\"\n>\n <ajf-table [data]=\"instance.data\"></ajf-table>\n</ajf-widget-export>\n",
319
394
  changeDetection: ChangeDetectionStrategy.OnPush,
320
395
  encapsulation: ViewEncapsulation.None,
321
- styles: ["\n"]
396
+ styles: ["table{border-spacing:0}table td{padding:10px}\n"]
322
397
  },] }
323
398
  ];
324
399
  AjfTableWidgetComponent.ctorParameters = () => [
@@ -421,10 +496,11 @@ class AjfReportWidget extends AjfReportWidget$1 {
421
496
  AjfReportWidget.decorators = [
422
497
  { type: Component, args: [{
423
498
  selector: 'ajf-widget',
424
- template: "<ng-template ajf-widget-host></ng-template>\n",
499
+ template: "<ajf-filter-widget\n *ngIf=\"instance.filter != null\"\n [instance]=\"instance\"\n (filteredInstance)=\"instance = $event\"\n>\n</ajf-filter-widget>\n<ng-template ajf-widget-host></ng-template>\n",
425
500
  encapsulation: ViewEncapsulation.None,
426
501
  changeDetection: ChangeDetectionStrategy.OnPush,
427
- styles: ["ajf-widget{display:flex;flex:1 1 auto;box-sizing:border-box}ajf-widget>ng-component{flex:1 1 auto;display:flex;align-items:center;box-sizing:border-box;background-color:transparent}\n"]
502
+ providers: [AjfFormRendererService],
503
+ styles: ["ajf-widget{display:flex;flex:1 1 auto;box-sizing:border-box;flex-direction:column}ajf-widget>ng-component{flex:1 1 auto;display:flex;align-items:center;box-sizing:border-box;background-color:transparent}\n"]
428
504
  },] }
429
505
  ];
430
506
  AjfReportWidget.ctorParameters = () => [
@@ -453,7 +529,8 @@ class AjfLayoutWidgetComponent extends AjfBaseWidgetComponent {
453
529
  constructor(cdr, el) {
454
530
  super(cdr, el);
455
531
  this._allcolumnsRendered$ = new BehaviorSubject(false);
456
- this.allcolumnsRendered$ = this._allcolumnsRendered$;
532
+ this.allcolumnsRendered$ = this
533
+ ._allcolumnsRendered$;
457
534
  }
458
535
  ngAfterContentChecked() {
459
536
  this._allcolumnsRendered$.next(true);
@@ -505,6 +582,7 @@ AjfReportsModule.decorators = [
505
582
  AjfPageBreakModule,
506
583
  AjfTableModule,
507
584
  AjfTextModule,
585
+ AjfFormsModule,
508
586
  CommonModule,
509
587
  AjfReportsModule$1,
510
588
  AjfTranslocoModule,
@@ -512,6 +590,7 @@ AjfReportsModule.decorators = [
512
590
  declarations: [
513
591
  AjfChartWidgetComponent,
514
592
  AjfColumnWidgetComponent,
593
+ AjfFilterWidgetComponent,
515
594
  AjfFormulaWidgetComponent,
516
595
  AjfImageContainerWidgetComponent,
517
596
  AjfImageWidgetComponent,
@@ -523,10 +602,7 @@ AjfReportsModule.decorators = [
523
602
  AjfTableWidgetComponent,
524
603
  AjfTextWidgetComponent,
525
604
  ],
526
- exports: [
527
- AjfReportRenderer,
528
- AjfReportWidget,
529
- ],
605
+ exports: [AjfReportRenderer, AjfReportWidget],
530
606
  },] }
531
607
  ];
532
608
 
@@ -556,5 +632,5 @@ AjfReportsModule.decorators = [
556
632
  * Generated bundle index. Do not edit.
557
633
  */
558
634
 
559
- export { AjfChartWidgetComponent, AjfColumnWidgetComponent, AjfFormulaWidgetComponent, AjfImageContainerWidgetComponent, AjfImageWidgetComponent, AjfLayoutWidgetComponent, AjfMapWidgetComponent, AjfPageBreakWidgetComponent, AjfReportRenderer, AjfReportWidget, AjfReportsModule, AjfTableWidgetComponent, AjfTextWidgetComponent, AjfWidgetService, ɵ0 };
635
+ export { AjfChartWidgetComponent, AjfColumnWidgetComponent, AjfFilterWidgetComponent, AjfFormulaWidgetComponent, AjfImageContainerWidgetComponent, AjfImageWidgetComponent, AjfLayoutWidgetComponent, AjfMapWidgetComponent, AjfPageBreakWidgetComponent, AjfReportRenderer, AjfReportWidget, AjfReportsModule, AjfTableWidgetComponent, AjfTextWidgetComponent, AjfWidgetService, ɵ0 };
560
636
  //# sourceMappingURL=reports.js.map