@aquera/nile-elements 0.0.122 → 0.0.123
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.
- package/README.md +3 -0
- package/dist/nile-code-editor/nile-code-editor.cjs.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.esm.js +2 -2
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +1 -0
- package/dist/src/nile-code-editor/nile-code-editor.js +7 -3
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-code-editor/nile-code-editor.ts +6 -3
- package/vscode-html-custom-data.json +6 -1
package/package.json
CHANGED
@@ -67,6 +67,8 @@ export class NileCodeEditor extends NileElement {
|
|
67
67
|
|
68
68
|
@property({ type: Boolean, reflect: true , attribute: true }) lineNumbers: boolean = false;
|
69
69
|
|
70
|
+
@property({ type: Boolean, reflect: true , attribute: true }) lineNumbersMultiline: boolean = true;
|
71
|
+
|
70
72
|
@property({ type: Boolean, reflect: true , attribute: true }) hasScroller: boolean = true;
|
71
73
|
|
72
74
|
@property({ type: Boolean, reflect: true , attribute: true }) expandable: boolean = true;
|
@@ -134,7 +136,7 @@ export class NileCodeEditor extends NileElement {
|
|
134
136
|
]
|
135
137
|
})
|
136
138
|
}
|
137
|
-
if (changedProperties.has('lineNumbers')) {
|
139
|
+
if (changedProperties.has('lineNumbers') || changedProperties.has('lineNumbersMultiline')) {
|
138
140
|
this.view.dispatch({
|
139
141
|
effects: [
|
140
142
|
this.lineNumbersComp.reconfigure(this.getLineNumbersExension()),
|
@@ -200,7 +202,7 @@ export class NileCodeEditor extends NileElement {
|
|
200
202
|
doc: !this.multiline ? this.convertToSingleLine(this.value) : this.value,
|
201
203
|
extensions: [
|
202
204
|
basicSetup({
|
203
|
-
lineNumbers: this.lineNumbers || this.multiline,
|
205
|
+
lineNumbers: (!this.multiline && this.lineNumbers) || (this.multiline && this.lineNumbersMultiline),
|
204
206
|
highlightActiveLine: false,
|
205
207
|
foldGutter: false,
|
206
208
|
}),
|
@@ -264,7 +266,8 @@ export class NileCodeEditor extends NileElement {
|
|
264
266
|
|
265
267
|
//EXTENSION CONFIGURATIONS
|
266
268
|
getLineNumbersExension() {
|
267
|
-
|
269
|
+
|
270
|
+
return (!this.multiline && this.lineNumbers) || (this.multiline && this.lineNumbersMultiline) ? lineNumbers() : [];
|
268
271
|
}
|
269
272
|
|
270
273
|
getLanguageExtension(){
|
@@ -726,7 +726,7 @@
|
|
726
726
|
},
|
727
727
|
{
|
728
728
|
"name": "nile-code-editor",
|
729
|
-
"description": "Nile icon component.\n\nEvents:\n\n * `nile-focus` {`Event`} - \n\n * `nile-blur` {`Event`} - \n\nAttributes:\n\n * `value` {`string`} - \n\n * `customAutoCompletions` {`object`} - \n\n * `language` {`\"javascript\" | \"sql\" | \"json\"`} - \n\n * `error-message` {`string`} - \n\n * `error` {`boolean`} - \n\n * `noborder` {`boolean`} - \n\n * `multiline` {`boolean`} - \n\n * `lineNumbers` {`boolean`} - \n\n * `hasScroller` {`boolean`} - \n\n * `expandable` {`boolean`} - \n\n * `readonly` {`boolean`} - \n\n * `debounce` {`boolean`} - \n\nProperties:\n\n * `codeEditor` {`HTMLInputElement`} - \n\n * `value` {`string`} - \n\n * `customAutoCompletions` {`object`} - \n\n * `language` {`\"javascript\" | \"sql\" | \"json\"`} - \n\n * `errorMessage` {`string`} - \n\n * `error` {`boolean`} - \n\n * `noborder` {`boolean`} - \n\n * `multiline` {`boolean`} - \n\n * `lineNumbers` {`boolean`} - \n\n * `hasScroller` {`boolean`} - \n\n * `expandable` {`boolean`} - \n\n * `readonly` {`boolean`} - \n\n * `debounce` {`boolean`} - \n\n * `view` - \n\n * `timeOut` - \n\n * `lineNumbersComp` - \n\n * `restrictSingleLineComp` - \n\n * `readOnlyComp` - \n\n * `customCompletionComp` - \n\n * `insertBetweenCode` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
729
|
+
"description": "Nile icon component.\n\nEvents:\n\n * `nile-focus` {`Event`} - \n\n * `nile-blur` {`Event`} - \n\nAttributes:\n\n * `value` {`string`} - \n\n * `customAutoCompletions` {`object`} - \n\n * `language` {`\"javascript\" | \"sql\" | \"json\"`} - \n\n * `error-message` {`string`} - \n\n * `error` {`boolean`} - \n\n * `noborder` {`boolean`} - \n\n * `multiline` {`boolean`} - \n\n * `lineNumbers` {`boolean`} - \n\n * `lineNumbersMultiline` {`boolean`} - \n\n * `hasScroller` {`boolean`} - \n\n * `expandable` {`boolean`} - \n\n * `readonly` {`boolean`} - \n\n * `debounce` {`boolean`} - \n\nProperties:\n\n * `codeEditor` {`HTMLInputElement`} - \n\n * `value` {`string`} - \n\n * `customAutoCompletions` {`object`} - \n\n * `language` {`\"javascript\" | \"sql\" | \"json\"`} - \n\n * `errorMessage` {`string`} - \n\n * `error` {`boolean`} - \n\n * `noborder` {`boolean`} - \n\n * `multiline` {`boolean`} - \n\n * `lineNumbers` {`boolean`} - \n\n * `lineNumbersMultiline` {`boolean`} - \n\n * `hasScroller` {`boolean`} - \n\n * `expandable` {`boolean`} - \n\n * `readonly` {`boolean`} - \n\n * `debounce` {`boolean`} - \n\n * `view` - \n\n * `timeOut` - \n\n * `lineNumbersComp` - \n\n * `restrictSingleLineComp` - \n\n * `readOnlyComp` - \n\n * `customCompletionComp` - \n\n * `insertBetweenCode` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
730
730
|
"attributes": [
|
731
731
|
{
|
732
732
|
"name": "value",
|
@@ -775,6 +775,11 @@
|
|
775
775
|
"description": "`lineNumbers` {`boolean`} - \n\nProperty: lineNumbers\n\nDefault: false",
|
776
776
|
"valueSet": "v"
|
777
777
|
},
|
778
|
+
{
|
779
|
+
"name": "lineNumbersMultiline",
|
780
|
+
"description": "`lineNumbersMultiline` {`boolean`} - \n\nProperty: lineNumbersMultiline\n\nDefault: true",
|
781
|
+
"valueSet": "v"
|
782
|
+
},
|
778
783
|
{
|
779
784
|
"name": "hasScroller",
|
780
785
|
"description": "`hasScroller` {`boolean`} - \n\nProperty: hasScroller\n\nDefault: true",
|