@aquera/nile-elements 0.1.34-beta-1.0 → 0.1.34-beta-1.1
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/extensionSetup.cjs.js +1 -1
- package/dist/nile-code-editor/extensionSetup.cjs.js.map +1 -1
- package/dist/nile-code-editor/extensionSetup.esm.js +1 -1
- 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/extensionSetup.d.ts +2 -1
- package/dist/src/nile-code-editor/extensionSetup.js +8 -0
- package/dist/src/nile-code-editor/extensionSetup.js.map +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +1 -0
- package/dist/src/nile-code-editor/nile-code-editor.js +7 -2
- 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/extensionSetup.ts +13 -1
- package/src/nile-code-editor/nile-code-editor.ts +5 -2
- package/vscode-html-custom-data.json +6 -1
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "Webcomponent nile-elements following open-wc recommendations",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "nile-elements",
|
6
|
-
"version": "0.1.34-beta-1.
|
6
|
+
"version": "0.1.34-beta-1.1",
|
7
7
|
"main": "dist/src/index.js",
|
8
8
|
"type": "module",
|
9
9
|
"module": "dist/src/index.js",
|
@@ -56,7 +56,8 @@ export interface BasicSetupOptions extends MinimalSetupOptions {
|
|
56
56
|
completionKeymap?: boolean;
|
57
57
|
lintKeymap?: boolean;
|
58
58
|
tabSize?: number;
|
59
|
-
readonly?:
|
59
|
+
readonly?: boolean;
|
60
|
+
enableSearch?: boolean;
|
60
61
|
}
|
61
62
|
|
62
63
|
export const isValidSetup = (item: any) => {
|
@@ -88,6 +89,17 @@ export const basicSetup = (options: BasicSetupOptions = {}): Extension[] => {
|
|
88
89
|
isValidSetup(options.crosshairCursor) && extensions.push(crosshairCursor());
|
89
90
|
isValidSetup(options.highlightActiveLine) && extensions.push(highlightActiveLine());
|
90
91
|
isValidSetup(options.highlightSelectionMatches) && extensions.push(highlightSelectionMatches());
|
92
|
+
|
93
|
+
if(!options.enableSearch){
|
94
|
+
extensions.push(
|
95
|
+
keymap.of([{
|
96
|
+
key: "Mod-f", // Ctrl+F (Cmd+F on Mac)
|
97
|
+
run: () => {
|
98
|
+
return true;
|
99
|
+
}
|
100
|
+
}]))
|
101
|
+
}
|
102
|
+
|
91
103
|
if (options.tabSize && typeof options.tabSize === 'number')
|
92
104
|
extensions.push(indentUnit.of(' '.repeat(options.tabSize)));
|
93
105
|
return extensions.concat([keymap.of(keymaps.flat())]).filter(Boolean);
|
@@ -68,9 +68,11 @@ export class NileCodeEditor extends NileElement {
|
|
68
68
|
|
69
69
|
@property({ type: String, reflect: true , attribute: 'error-message' }) errorMessage: string = '';
|
70
70
|
|
71
|
-
@property({ type: Boolean, reflect: true , attribute:
|
71
|
+
@property({ type: Boolean, reflect: true , attribute: true }) error: boolean = false;
|
72
72
|
|
73
|
-
@property({ type: Boolean, reflect: true , attribute:
|
73
|
+
@property({ type: Boolean, reflect: true , attribute: true }) enableSearch: boolean = false;
|
74
|
+
|
75
|
+
@property({ type: Boolean, reflect: true , attribute: true }) noborder: boolean = false;
|
74
76
|
|
75
77
|
@property({ type: Boolean, reflect: true , attribute: true }) multiline: boolean = false;
|
76
78
|
|
@@ -262,6 +264,7 @@ export class NileCodeEditor extends NileElement {
|
|
262
264
|
basicSetup({
|
263
265
|
highlightActiveLine: false,
|
264
266
|
foldGutter: this.enableFoldGutters,
|
267
|
+
enableSearch:this.enableSearch
|
265
268
|
}),
|
266
269
|
lineNumbersExtension,
|
267
270
|
readOnlyExtension,
|
@@ -818,7 +818,7 @@
|
|
818
818
|
},
|
819
819
|
{
|
820
820
|
"name": "nile-code-editor",
|
821
|
-
"description": "Nile icon component.\n\nEvents:\n\n * `nile-focus` {`Event`} - \n\n * `nile-blur` {`Event`} - \n\nAttributes:\n\n * `value` {`string`} - \n\n * `expandIcon` {`string`} - \n\n * `placeholder` {`string`} - \n\n * `customAutoCompletions` - \n\n * `customCompletionsPaths` {`string[]`} - \n\n * `language` {`\"html\" | \"javascript\" | \"sql\" | \"json\"`} - \n\n * `error-message` {`string`} - \n\n * `error` {`boolean`} - \n\n * `noborder` {`boolean`} - \n\n * `multiline` {`boolean`} - \n\n * `enableFoldGutters` {`boolean`} - \n\n * `allowVariableInCustomSuggestion` {`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 * `debounceTimeout` {`number`} - \n\nProperties:\n\n * `codeEditor` {`HTMLInputElement`} - \n\n * `value` {`string`} - \n\n * `expandIcon` {`string`} - \n\n * `placeholder` {`string`} - \n\n * `customAutoCompletions` - \n\n * `customCompletionsPaths` {`string[]`} - \n\n * `language` {`\"html\" | \"javascript\" | \"sql\" | \"json\"`} - \n\n * `errorMessage` {`string`} - \n\n * `error` {`boolean`} - \n\n * `noborder` {`boolean`} - \n\n * `multiline` {`boolean`} - \n\n * `enableFoldGutters` {`boolean`} - \n\n * `allowVariableInCustomSuggestion` {`boolean`} - \n\n * `lineNumbers` {`boolean`} - \n\n * `disableSyntaxHighlighting` {`boolean`} - \n\n * `customThemeCSS` {`object | null`} - \n\n * `lineNumbersMultiline` {`boolean`} - \n\n * `hasScroller` {`boolean`} - \n\n * `expandable` {`boolean`} - \n\n * `readonly` {`boolean`} - \n\n * `debounce` {`boolean`} - \n\n * `debounceTimeout` {`number`} - \n\n * `view` - \n\n * `viewState` - \n\n * `timeOut` - \n\n * `lineNumbersComp` - \n\n * `restrictSingleLineComp` - \n\n * `readOnlyComp` - \n\n * `customCompletionComp` - \n\n * `placeholderComp` - \n\n * `defaultSyntaxHighlightingComp` - \n\n * `themeComp` - \n\n * `customAutocomplete` - Custom autocomplete handler for code editor suggestions\n\n * `insertBetweenCode` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
821
|
+
"description": "Nile icon component.\n\nEvents:\n\n * `nile-focus` {`Event`} - \n\n * `nile-blur` {`Event`} - \n\nAttributes:\n\n * `value` {`string`} - \n\n * `expandIcon` {`string`} - \n\n * `placeholder` {`string`} - \n\n * `customAutoCompletions` - \n\n * `customCompletionsPaths` {`string[]`} - \n\n * `language` {`\"html\" | \"javascript\" | \"sql\" | \"json\"`} - \n\n * `error-message` {`string`} - \n\n * `error` {`boolean`} - \n\n * `enableSearch` {`boolean`} - \n\n * `noborder` {`boolean`} - \n\n * `multiline` {`boolean`} - \n\n * `enableFoldGutters` {`boolean`} - \n\n * `allowVariableInCustomSuggestion` {`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 * `debounceTimeout` {`number`} - \n\nProperties:\n\n * `codeEditor` {`HTMLInputElement`} - \n\n * `value` {`string`} - \n\n * `expandIcon` {`string`} - \n\n * `placeholder` {`string`} - \n\n * `customAutoCompletions` - \n\n * `customCompletionsPaths` {`string[]`} - \n\n * `language` {`\"html\" | \"javascript\" | \"sql\" | \"json\"`} - \n\n * `errorMessage` {`string`} - \n\n * `error` {`boolean`} - \n\n * `enableSearch` {`boolean`} - \n\n * `noborder` {`boolean`} - \n\n * `multiline` {`boolean`} - \n\n * `enableFoldGutters` {`boolean`} - \n\n * `allowVariableInCustomSuggestion` {`boolean`} - \n\n * `lineNumbers` {`boolean`} - \n\n * `disableSyntaxHighlighting` {`boolean`} - \n\n * `customThemeCSS` {`object | null`} - \n\n * `lineNumbersMultiline` {`boolean`} - \n\n * `hasScroller` {`boolean`} - \n\n * `expandable` {`boolean`} - \n\n * `readonly` {`boolean`} - \n\n * `debounce` {`boolean`} - \n\n * `debounceTimeout` {`number`} - \n\n * `view` - \n\n * `viewState` - \n\n * `timeOut` - \n\n * `lineNumbersComp` - \n\n * `restrictSingleLineComp` - \n\n * `readOnlyComp` - \n\n * `customCompletionComp` - \n\n * `placeholderComp` - \n\n * `defaultSyntaxHighlightingComp` - \n\n * `themeComp` - \n\n * `customAutocomplete` - Custom autocomplete handler for code editor suggestions\n\n * `insertBetweenCode` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
822
822
|
"attributes": [
|
823
823
|
{
|
824
824
|
"name": "value",
|
@@ -867,6 +867,11 @@
|
|
867
867
|
"description": "`error` {`boolean`} - \n\nProperty: error\n\nDefault: false",
|
868
868
|
"valueSet": "v"
|
869
869
|
},
|
870
|
+
{
|
871
|
+
"name": "enableSearch",
|
872
|
+
"description": "`enableSearch` {`boolean`} - \n\nProperty: enableSearch\n\nDefault: false",
|
873
|
+
"valueSet": "v"
|
874
|
+
},
|
870
875
|
{
|
871
876
|
"name": "noborder",
|
872
877
|
"description": "`noborder` {`boolean`} - \n\nProperty: noborder\n\nDefault: false",
|