@aquera/nile-elements 0.1.23 → 0.1.24

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/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.23",
6
+ "version": "0.1.24",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -39,7 +39,7 @@ import { autocompletion,CompletionContext,CompletionResult } from '@codemirror/a
39
39
  import NileElement from '../internal/nile-element';
40
40
  import { basicSetup } from './extensionSetup';
41
41
  import { classMap } from 'lit/directives/class-map.js';
42
- import { Theme as DefaultTheme, CustomTheme } from './theme';
42
+ import { Theme as DefaultTheme } from './theme';
43
43
 
44
44
  // Choose the appropriate mode for your use case
45
45
 
@@ -73,6 +73,8 @@ export class NileCodeEditor extends NileElement {
73
73
  @property({ type: Boolean, reflect: true , attribute: 'noborder' }) noborder: boolean = false;
74
74
 
75
75
  @property({ type: Boolean, reflect: true , attribute: true }) multiline: boolean = false;
76
+
77
+ @property({ type: Boolean, reflect: true , attribute: true }) enableFoldGutters: boolean = false;
76
78
 
77
79
  @property({ type: Boolean, reflect: true , attribute: true }) allowVariableInCustomSuggestion: boolean = false;
78
80
 
@@ -259,7 +261,7 @@ export class NileCodeEditor extends NileElement {
259
261
  extensions: [
260
262
  basicSetup({
261
263
  highlightActiveLine: false,
262
- foldGutter: true,
264
+ foldGutter: this.enableFoldGutters,
263
265
  }),
264
266
  lineNumbersExtension,
265
267
  readOnlyExtension,
@@ -45,6 +45,15 @@ export const styles = css`
45
45
  transition: 0.3s translate ease, 0.3s width ease;
46
46
  }
47
47
 
48
+ .tab-group__indicator__path{
49
+ position: absolute;
50
+ height: var(--track-width);
51
+ width: 100%;
52
+ background: var(--nile-colors-neutral-400);
53
+ bottom:0px;
54
+ z-index:-1;
55
+ }
56
+
48
57
  .tab-group--has-scroll-controls .tab-group__nav-container {
49
58
  position: relative;
50
59
  padding: 0 10px;
@@ -113,13 +122,12 @@ export const styles = css`
113
122
  flex: 1 1 auto;
114
123
  position: relative;
115
124
  flex-direction: row;
116
- border-bottom: solid var(--track-width)
117
- var(--nile-colors-gray-light-mode-200);
118
125
  }
119
126
 
120
127
  .tab-group--top .tab-group__indicator {
121
- bottom: -2px;
128
+ bottom: 0px;
122
129
  border-bottom: 2px solid var(--nile-colors-primary-600);
130
+ z-index:-1;
123
131
  }
124
132
 
125
133
  .tab-group--top .tab-group__body {
@@ -206,12 +206,14 @@ export class NileTabGroup extends NileElement {
206
206
 
207
207
  <div class="tab-group__nav">
208
208
  <div part="tabs" class="tab-group__tabs" role="tablist">
209
+ <div part="active-tab-indicator-path" class="tab-group__indicator__path"></div>
209
210
  <div
210
211
  part="active-tab-indicator"
211
212
  class=${classMap({
212
213
  'tab-group__indicator': !this.noTrack,
213
214
  })}
214
215
  ></div>
216
+
215
217
  <slot name="nav" @slotchange=${this.syncTabsAndPanels}></slot>
216
218
  </div>
217
219
  </div>
@@ -804,7 +804,7 @@
804
804
  },
805
805
  {
806
806
  "name": "nile-code-editor",
807
- "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 * `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 * `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`} - ",
807
+ "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`} - ",
808
808
  "attributes": [
809
809
  {
810
810
  "name": "value",
@@ -863,6 +863,11 @@
863
863
  "description": "`multiline` {`boolean`} - \n\nProperty: multiline\n\nDefault: false",
864
864
  "valueSet": "v"
865
865
  },
866
+ {
867
+ "name": "enableFoldGutters",
868
+ "description": "`enableFoldGutters` {`boolean`} - \n\nProperty: enableFoldGutters\n\nDefault: false",
869
+ "valueSet": "v"
870
+ },
866
871
  {
867
872
  "name": "allowVariableInCustomSuggestion",
868
873
  "description": "`allowVariableInCustomSuggestion` {`boolean`} - \n\nProperty: allowVariableInCustomSuggestion\n\nDefault: false",