@ajf/material 15.2.2 → 15.2.4

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 (62) hide show
  1. package/esm2020/form-builder/condition-editor-dialog.mjs +7 -4
  2. package/esm2020/form-builder/condition-editor.mjs +20 -128
  3. package/esm2020/form-builder/form-builder-module.mjs +3 -7
  4. package/esm2020/form-builder/form-builder-service.mjs +3 -2
  5. package/esm2020/form-builder/node-properties.mjs +9 -4
  6. package/esm2020/form-builder/validation-condition-editor-dialog.mjs +7 -4
  7. package/esm2020/form-builder/warning-condition-editor-dialog.mjs +7 -4
  8. package/esm2020/forms/field-service.mjs +8 -3
  9. package/esm2020/forms/form.mjs +3 -3
  10. package/esm2020/forms/forms-module.mjs +8 -1
  11. package/esm2020/forms/geolocation-field.mjs +44 -0
  12. package/esm2020/geolocation/ajf-material-geolocation.mjs +5 -0
  13. package/esm2020/geolocation/geolocation-module.mjs +61 -0
  14. package/esm2020/geolocation/geolocation.mjs +50 -0
  15. package/esm2020/geolocation/public_api.mjs +24 -0
  16. package/esm2020/time/time.mjs +2 -2
  17. package/fesm2015/ajf-material-form-builder.mjs +55 -153
  18. package/fesm2015/ajf-material-form-builder.mjs.map +1 -1
  19. package/fesm2015/ajf-material-forms.mjs +78 -29
  20. package/fesm2015/ajf-material-forms.mjs.map +1 -1
  21. package/fesm2015/ajf-material-geolocation.mjs +136 -0
  22. package/fesm2015/ajf-material-geolocation.mjs.map +1 -0
  23. package/fesm2015/ajf-material-time.mjs +2 -2
  24. package/fesm2020/ajf-material-form-builder.mjs +55 -153
  25. package/fesm2020/ajf-material-form-builder.mjs.map +1 -1
  26. package/fesm2020/ajf-material-forms.mjs +76 -29
  27. package/fesm2020/ajf-material-forms.mjs.map +1 -1
  28. package/fesm2020/ajf-material-geolocation.mjs +136 -0
  29. package/fesm2020/ajf-material-geolocation.mjs.map +1 -0
  30. package/fesm2020/ajf-material-time.mjs +2 -2
  31. package/form-builder/condition-editor-dialog.d.ts +1 -0
  32. package/form-builder/condition-editor.d.ts +5 -8
  33. package/form-builder/form-builder-module.d.ts +25 -26
  34. package/form-builder/validation-condition-editor-dialog.d.ts +1 -0
  35. package/form-builder/warning-condition-editor-dialog.d.ts +1 -0
  36. package/forms/forms-module.d.ts +37 -35
  37. package/{monaco-editor/auto-complete-item-model.d.ts → forms/geolocation-field.d.ts} +8 -13
  38. package/geolocation/geolocation-module.d.ts +13 -0
  39. package/{monaco-editor/editor-theme.d.ts → geolocation/geolocation.d.ts} +9 -5
  40. package/{monaco-editor → geolocation}/index.d.ts +1 -1
  41. package/{monaco-editor → geolocation}/public_api.d.ts +2 -2
  42. package/package.json +10 -10
  43. package/esm2020/monaco-editor/ajf-material-monaco-editor.mjs +0 -5
  44. package/esm2020/monaco-editor/auto-complete-item-model.mjs +0 -49
  45. package/esm2020/monaco-editor/autocomplete-singleton-model.mjs +0 -135
  46. package/esm2020/monaco-editor/editor-language-model.mjs +0 -60
  47. package/esm2020/monaco-editor/editor-options-model.mjs +0 -37
  48. package/esm2020/monaco-editor/editor-scrollbar-options.mjs +0 -23
  49. package/esm2020/monaco-editor/editor-theme.mjs +0 -30
  50. package/esm2020/monaco-editor/monaco-editor-module.mjs +0 -37
  51. package/esm2020/monaco-editor/monaco-editor.mjs +0 -451
  52. package/esm2020/monaco-editor/public_api.mjs +0 -24
  53. package/fesm2015/ajf-material-monaco-editor.mjs +0 -791
  54. package/fesm2015/ajf-material-monaco-editor.mjs.map +0 -1
  55. package/fesm2020/ajf-material-monaco-editor.mjs +0 -791
  56. package/fesm2020/ajf-material-monaco-editor.mjs.map +0 -1
  57. package/monaco-editor/autocomplete-singleton-model.d.ts +0 -55
  58. package/monaco-editor/editor-language-model.d.ts +0 -59
  59. package/monaco-editor/editor-options-model.d.ts +0 -334
  60. package/monaco-editor/editor-scrollbar-options.d.ts +0 -83
  61. package/monaco-editor/monaco-editor-module.d.ts +0 -7
  62. package/monaco-editor/monaco-editor.d.ts +0 -155
@@ -1 +0,0 @@
1
- {"version":3,"file":"ajf-material-monaco-editor.mjs","sources":["../../../projects/material/monaco-editor/src/auto-complete-item-model.ts","../../../projects/material/monaco-editor/src/editor-language-model.ts","../../../projects/material/monaco-editor/src/autocomplete-singleton-model.ts","../../../projects/material/monaco-editor/src/editor-options-model.ts","../../../projects/material/monaco-editor/src/monaco-editor.ts","../../../projects/material/monaco-editor/src/monaco-editor.html","../../../projects/material/monaco-editor/src/monaco-editor-module.ts","../../../projects/material/monaco-editor/src/public_api.ts","../../../projects/material/monaco-editor/src/ajf-material-monaco-editor.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 = 0;\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 = 'en';\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.scss'],\n templateUrl: 'monaco-editor.html',\n // eslint-disable-next-line\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 = 'en';\n\n @Input() disableAutocomplete: boolean = false;\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.firstChild.remove();\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","<div #editor class=\"ajf-monaco-editor\"></div>\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;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EAAA,CAAA,CAAA;mHAArB,qBAAqB,EAAA,YAAA,EAAA,CAHjB,eAAe,CAAA,EAAA,OAAA,EAAA,CACpB,eAAe,CAAA,EAAA,CAAA,CAAA;mHAEd,qBAAqB,EAAA,CAAA,CAAA;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,eAAe,CAAC;oBAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;AAC3B,iBAAA,CAAA;;;AC7BD;;;;;;;;;;;;;;;;;;;;AAoBG;;ACpBH;;AAEG;;;;"}
@@ -1,55 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (C) Gnucoop soc. coop.
4
- *
5
- * This file is part of the Advanced JSON forms (ajf).
6
- *
7
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
- * modify it under the terms of the GNU Affero General Public License as
9
- * published by the Free Software Foundation, either version 3 of the License,
10
- * or (at your option) any later version.
11
- *
12
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
- * General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Affero General Public License
18
- * along with Advanced JSON forms (ajf).
19
- * If not, see http://www.gnu.org/licenses/.
20
- *
21
- */
22
- import { AutoCompleteItem } from './auto-complete-item-model';
23
- import { IEditorLanguage } from './editor-language-model';
24
- /**
25
- * Manage the autoCompletion for all instances of the editors
26
- */
27
- export declare class AutoCompleteSingleton {
28
- /**
29
- * We use a singleton, because this class can be call from all the Monaco Editor Components
30
- */
31
- static getInstance(): AutoCompleteSingleton;
32
- get autoCompleteValues(): {
33
- [p: string]: AutoCompleteItem[];
34
- };
35
- private static _instance;
36
- private _autoCompleteValues;
37
- private constructor();
38
- /**
39
- * Init autoComplete for language passed in param if is not already done.
40
- * @param language
41
- */
42
- initAutoComplete(language: IEditorLanguage): void;
43
- /**
44
- * Parse the content passed in param for the language passed in param
45
- * @param language
46
- * @param content
47
- */
48
- parseAutoCompleteValues(language: IEditorLanguage, content: string): AutoCompleteItem[];
49
- /**
50
- * Parse the XML content and add all tags in AutoComplete for XML Language
51
- * @param content
52
- */
53
- private _parseXmlAutoComplete;
54
- private _parseJsonAutoComplete;
55
- }
@@ -1,59 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (C) Gnucoop soc. coop.
4
- *
5
- * This file is part of the Advanced JSON forms (ajf).
6
- *
7
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
- * modify it under the terms of the GNU Affero General Public License as
9
- * published by the Free Software Foundation, either version 3 of the License,
10
- * or (at your option) any later version.
11
- *
12
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
- * General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Affero General Public License
18
- * along with Advanced JSON forms (ajf).
19
- * If not, see http://www.gnu.org/licenses/.
20
- *
21
- */
22
- /**
23
- * List of dev language avalaible in Monaco Editor
24
- */
25
- export declare class IEditorLanguage {
26
- static readonly BAT = "bat";
27
- static readonly C = "c";
28
- static readonly CPP = "cpp";
29
- static readonly CSHARP = "csharp";
30
- static readonly CSS = "css";
31
- static readonly DOCKERFILE = "dockerfile";
32
- static readonly FSHARP = "fsharp";
33
- static readonly GO = "go";
34
- static readonly HANDLEBARS = "handlebars";
35
- static readonly HTML = "html";
36
- static readonly INI = "ini";
37
- static readonly JADE = "jade";
38
- static readonly JAVASCRIPT = "javascript";
39
- static readonly JSON = "json";
40
- static readonly LESS = "less";
41
- static readonly LUA = "lua";
42
- static readonly MARKDOWN = "markdown";
43
- static readonly OBJECTIVEC = "objective-c";
44
- static readonly PHP = "php";
45
- static readonly PLAINTEXT = "plaintext";
46
- static readonly POSTIATS = "postiats";
47
- static readonly POWERSHELL = "powershell";
48
- static readonly PYTHON = "python";
49
- static readonly R = "r";
50
- static readonly RAZOR = "razor";
51
- static readonly RUBY = "ruby";
52
- static readonly SCSS = "scss";
53
- static readonly SQL = "sql";
54
- static readonly SWIFT = "swift";
55
- static readonly TYPESCRIPT = "typescript";
56
- static readonly VB = "vb";
57
- static readonly XML = "xml";
58
- static readonly YAML = "yaml";
59
- }
@@ -1,334 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (C) Gnucoop soc. coop.
4
- *
5
- * This file is part of the Advanced JSON forms (ajf).
6
- *
7
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
- * modify it under the terms of the GNU Affero General Public License as
9
- * published by the Free Software Foundation, either version 3 of the License,
10
- * or (at your option) any later version.
11
- *
12
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
- * General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Affero General Public License
18
- * along with Advanced JSON forms (ajf).
19
- * If not, see http://www.gnu.org/licenses/.
20
- *
21
- */
22
- import { IEditorLanguage } from './editor-language-model';
23
- import { IEditorScrollbarOptions } from './editor-scrollbar-options';
24
- import { IEditorTheme } from './editor-theme';
25
- /**
26
- * Configuration options for the editor.
27
- */
28
- export declare class IEditorOptions {
29
- /**
30
- * Enable experimental screen reader support.
31
- * Defaults to `true`.
32
- */
33
- experimentalScreenReader?: boolean;
34
- /**
35
- * The aria label for the editor's textarea (when it is focused).
36
- */
37
- ariaLabel?: string;
38
- /**
39
- * Render vertical lines at the specified columns.
40
- * Defaults to empty array.
41
- */
42
- rulers?: number[];
43
- /**
44
- * A string containing the word separators used when doing word navigation.
45
- * Defaults to ``~!@#$%^&*()-=+[{]}\\|;:\'',.`<``>`/?
46
- */
47
- wordSeparators?: string;
48
- /**
49
- * Enable Linux primary clipboard.
50
- * Defaults to true.
51
- */
52
- selectionClipboard?: boolean;
53
- /**
54
- * Control the rendering of line numbers.
55
- * If it is a function, it will be invoked when rendering a line number
56
- * and the return value will be rendered.
57
- * Otherwise, if it is a truey, line numbers will be rendered normally
58
- * (equivalent of using an identity function).
59
- * Otherwise, line numbers will not be rendered.
60
- * Defaults to true.
61
- */
62
- lineNumbers?: boolean;
63
- /**
64
- * Should the corresponding line be selected when clicking on the line number?
65
- * Defaults to true.
66
- */
67
- selectOnLineNumbers?: boolean;
68
- /**
69
- * Control the width of line numbers, by reserving horizontal space
70
- * for rendering at least an amount of digits.
71
- * Defaults to 5.
72
- */
73
- lineNumbersMinChars?: number;
74
- /**
75
- * Enable the rendering of the glyph margin.
76
- * Defaults to false.
77
- */
78
- glyphMargin?: boolean;
79
- /**
80
- * The width reserved for line decorations (in px).
81
- * Line decorations are placed between line numbers and the editor content.
82
- * Defaults to 10.
83
- */
84
- lineDecorationsWidth?: number;
85
- /**
86
- * When revealing the cursor, a virtual padding (px) is added to the cursor,
87
- * turning it into a rectangle.
88
- * This virtual padding ensures that the cursor gets revealed before
89
- * hitting the edge of the viewport.
90
- * Defaults to 30 (px).
91
- */
92
- revealHorizontalRightPadding?: number;
93
- /**
94
- * Render the editor selection with rounded borders.
95
- * Defaults to true.
96
- */
97
- roundedSelection?: boolean;
98
- /**
99
- * Theme to be used for rendering. Consists of two parts, the UI theme and the syntax theme,
100
- * separated by a space.
101
- * The current available UI themes are: 'vs' (default), 'vs-dark', 'hc-black'
102
- * The syntax themes are contributed. The default is 'default-theme'
103
- */
104
- theme?: IEditorTheme;
105
- /**
106
- * Should the editor be read only.
107
- * Defaults to false.
108
- */
109
- readOnly?: boolean;
110
- /**
111
- * Control the behavior and rendering of the scrollbars.
112
- */
113
- scrollbar?: IEditorScrollbarOptions;
114
- /**
115
- * The number of vertical lanes the overview ruler should render.
116
- * Defaults to 2.
117
- */
118
- overviewRulerLanes?: number;
119
- /**
120
- * Control the cursor animation style, possible values are
121
- * 'blink', 'smooth', 'phase', 'expand' and 'solid'.
122
- * Defaults to 'blink'.
123
- */
124
- cursorBlinking?: string;
125
- /**
126
- * Zoom the font in the editor when using the mouse wheel in combination with holding Ctrl.
127
- * Defaults to false.
128
- */
129
- mouseWheelZoom?: boolean;
130
- /**
131
- * Control the cursor style, either 'block' or 'line'.
132
- * Defaults to 'line'.
133
- */
134
- cursorStyle?: string;
135
- /**
136
- * Enable font ligatures.
137
- * Defaults to false.
138
- */
139
- fontLigatures?: boolean;
140
- /**
141
- * Disable the use of `translate3d`.
142
- * Defaults to false.
143
- */
144
- disableTranslate3d?: boolean;
145
- /**
146
- * Should the cursor be hidden in the overview ruler.
147
- * Defaults to false.
148
- */
149
- hideCursorInOverviewRuler?: boolean;
150
- /**
151
- * Enable that scrolling can go one screen size after the last line.
152
- * Defaults to true.
153
- */
154
- scrollBeyondLastLine?: boolean;
155
- /**
156
- * Enable that the editor will install an interval to check
157
- * if its container dom node size has changed.
158
- * Enabling this might have a severe performance impact.
159
- * Defaults to false.
160
- */
161
- automaticLayout?: boolean;
162
- /**
163
- * Control the wrapping strategy of the editor.
164
- * Using -1 means no wrapping whatsoever.
165
- * Using 0 means viewport width wrapping (ajusts with the resizing of the editor).
166
- * Using a positive number means wrapping after a fixed number of characters.
167
- * Defaults to 300.
168
- */
169
- wrappingColumn?: number;
170
- /**
171
- * Control the alternate style of viewport wrapping.
172
- * When set to true viewport wrapping is used only when the window width
173
- * is less than the number of columns specified in the wrappingColumn property.
174
- * Has no effect if wrappingColumn is not a positive number.
175
- * Defaults to false.
176
- */
177
- wordWrap?: boolean;
178
- /**
179
- * Control indentation of wrapped lines. Can be: 'none', 'same' or 'indent'.
180
- * Defaults to 'none'.
181
- */
182
- wrappingIndent?: string;
183
- /**
184
- * Configure word wrapping characters. A break will be introduced before these characters.
185
- * Defaults to '{([+'.
186
- */
187
- wordWrapBreakBeforeCharacters?: string;
188
- /**
189
- * Configure word wrapping characters. A break will be introduced after these characters.
190
- * Defaults to ' \t})]?|&,;'.
191
- */
192
- wordWrapBreakAfterCharacters?: string;
193
- /**
194
- * Configure word wrapping characters. A break will be introduced after these characters
195
- * only if no `wordWrapBreakBeforeCharacters` or `wordWrapBreakAfterCharacters` were found.
196
- * Defaults to '.'.
197
- */
198
- wordWrapBreakObtrusiveCharacters?: string;
199
- /**
200
- * Performance guard: Stop rendering a line after x characters.
201
- * Defaults to 10000 if wrappingColumn is -1. Defaults to -1 if wrappingColumn is `>`= 0.
202
- * Use -1 to never stop rendering
203
- */
204
- stopRenderingLineAfter?: number;
205
- /**
206
- * Enable hover.
207
- * Defaults to true.
208
- */
209
- hover?: boolean;
210
- /**
211
- * Enable custom contextmenu.
212
- * Defaults to true.
213
- */
214
- contextmenu?: boolean;
215
- /**
216
- * A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.
217
- * Defaults to 1.
218
- */
219
- mouseWheelScrollSensitivity?: number;
220
- /**
221
- * Enable quick suggestions (shadow suggestions)
222
- * Defaults to true.
223
- */
224
- quickSuggestions?: boolean;
225
- /**
226
- * Quick suggestions show delay (in ms)
227
- * Defaults to 500 (ms)
228
- */
229
- quickSuggestionsDelay?: number;
230
- /**
231
- * Enables parameter hints
232
- */
233
- parameterHints?: boolean;
234
- /**
235
- * Render icons in suggestions box.
236
- * Defaults to true.
237
- */
238
- iconsInSuggestions?: boolean;
239
- /**
240
- * Enable auto closing brackets.
241
- * Defaults to true.
242
- */
243
- autoClosingBrackets?: boolean;
244
- /**
245
- * Enable format on type.
246
- * Defaults to false.
247
- */
248
- formatOnType?: boolean;
249
- /**
250
- * Enable the suggestion box to pop-up on trigger characters.
251
- * Defaults to true.
252
- */
253
- suggestOnTriggerCharacters?: boolean;
254
- /**
255
- * Accept suggestions on ENTER.
256
- * Defaults to true.
257
- */
258
- acceptSuggestionOnEnter?: boolean;
259
- /**
260
- * Enable snippet suggestions. Default to 'true'.
261
- */
262
- snippetSuggestions?: 'top' | 'bottom' | 'inline' | 'none';
263
- /**
264
- * Enable tab completion. Defaults to 'false'
265
- */
266
- tabCompletion?: boolean;
267
- /**
268
- * Enable word based suggestions. Defaults to 'true'
269
- */
270
- wordBasedSuggestions?: boolean;
271
- /**
272
- * Enable selection highlight.
273
- * Defaults to true.
274
- */
275
- selectionHighlight?: boolean;
276
- /**
277
- * Show code lens
278
- * Defaults to true.
279
- */
280
- codeLens?: boolean;
281
- /**
282
- * Enable code folding
283
- * Defaults to true.
284
- */
285
- folding?: boolean;
286
- /**
287
- * Enable rendering of whitespace.
288
- * Defaults to none.
289
- */
290
- renderWhitespace?: 'none' | 'boundary' | 'all';
291
- /**
292
- * Enable rendering of control characters.
293
- * Defaults to false.
294
- */
295
- renderControlCharacters?: boolean;
296
- /**
297
- * Enable rendering of indent guides.
298
- * Defaults to false.
299
- */
300
- renderIndentGuides?: boolean;
301
- /**
302
- * Enable rendering of current line highlight.
303
- * Defaults to true.
304
- */
305
- renderLineHighlight?: boolean;
306
- /**
307
- * Inserting and deleting whitespace follows tab stops.
308
- */
309
- useTabStops?: boolean;
310
- /**
311
- * The font family
312
- */
313
- fontFamily?: string;
314
- /**
315
- * The font weight
316
- */
317
- fontWeight?: 'normal' | 'bold' | 'bolder' | 'lighter' | 'initial' | 'inherit' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
318
- /**
319
- * The font size
320
- */
321
- fontSize?: number;
322
- /**
323
- * The line height
324
- */
325
- lineHeight?: number;
326
- /**
327
- * Content to show
328
- */
329
- value: string;
330
- /**
331
- * Language of content to show
332
- */
333
- language: IEditorLanguage;
334
- }
@@ -1,83 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (C) Gnucoop soc. coop.
4
- *
5
- * This file is part of the Advanced JSON forms (ajf).
6
- *
7
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
- * modify it under the terms of the GNU Affero General Public License as
9
- * published by the Free Software Foundation, either version 3 of the License,
10
- * or (at your option) any later version.
11
- *
12
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
- * General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Affero General Public License
18
- * along with Advanced JSON forms (ajf).
19
- * If not, see http://www.gnu.org/licenses/.
20
- *
21
- */
22
- /**
23
- * Configuration options for editor scrollbars
24
- */
25
- export interface IEditorScrollbarOptions {
26
- /**
27
- * The size of arrows (if displayed).
28
- * Defaults to 11.
29
- */
30
- arrowSize?: number;
31
- /**
32
- * Render vertical scrollbar.
33
- * Accepted values: 'auto', 'visible', 'hidden'.
34
- * Defaults to 'auto'.
35
- */
36
- vertical?: string;
37
- /**
38
- * Render horizontal scrollbar.
39
- * Accepted values: 'auto', 'visible', 'hidden'.
40
- * Defaults to 'auto'.
41
- */
42
- horizontal?: string;
43
- /**
44
- * Cast horizontal and vertical shadows when the content is scrolled.
45
- * Defaults to true.
46
- */
47
- useShadows?: boolean;
48
- /**
49
- * Render arrows at the top and bottom of the vertical scrollbar.
50
- * Defaults to false.
51
- */
52
- verticalHasArrows?: boolean;
53
- /**
54
- * Render arrows at the left and right of the horizontal scrollbar.
55
- * Defaults to false.
56
- */
57
- horizontalHasArrows?: boolean;
58
- /**
59
- * Listen to mouse wheel events and react to them by scrolling.
60
- * Defaults to true.
61
- */
62
- handleMouseWheel?: boolean;
63
- /**
64
- * Height in pixels for the horizontal scrollbar.
65
- * Defaults to 10 (px).
66
- */
67
- horizontalScrollbarSize?: number;
68
- /**
69
- * Width in pixels for the vertical scrollbar.
70
- * Defaults to 10 (px).
71
- */
72
- verticalScrollbarSize?: number;
73
- /**
74
- * Width in pixels for the vertical slider.
75
- * Defaults to `verticalScrollbarSize`.
76
- */
77
- verticalSliderSize?: number;
78
- /**
79
- * Height in pixels for the horizontal slider.
80
- * Defaults to `horizontalScrollbarSize`.
81
- */
82
- horizontalSliderSize?: number;
83
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./monaco-editor";
3
- export declare class AjfMonacoEditorModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<AjfMonacoEditorModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<AjfMonacoEditorModule, [typeof i1.AjfMonacoEditor], never, [typeof i1.AjfMonacoEditor]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<AjfMonacoEditorModule>;
7
- }