lexgui 0.1.25 → 0.1.27

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/build/lexgui.js CHANGED
@@ -12,7 +12,7 @@ console.warn( 'Script "build/lexgui.js" is depracated and will be removed soon.
12
12
  */
13
13
 
14
14
  var LX = global.LX = {
15
- version: "0.1.25",
15
+ version: "0.1.27",
16
16
  ready: false,
17
17
  components: [], // specific pre-build components
18
18
  signals: {} // events and triggers
@@ -2178,7 +2178,7 @@ console.warn( 'Script "build/lexgui.js" is depracated and will be removed soon.
2178
2178
  set( value ) {
2179
2179
 
2180
2180
  if( this.onSetValue )
2181
- this.onSetValue( value );
2181
+ return this.onSetValue( value );
2182
2182
 
2183
2183
  console.warn("Can't set value of " + this.typeName());
2184
2184
  }
@@ -3016,6 +3016,9 @@ console.warn( 'Script "build/lexgui.js" is depracated and will be removed soon.
3016
3016
  if( options.width ) {
3017
3017
  element.style.width = element.style.minWidth = options.width;
3018
3018
  }
3019
+ if( options.maxWidth ) {
3020
+ element.style.maxWidth = options.maxWidth;
3021
+ }
3019
3022
  if( options.minWidth ) {
3020
3023
  element.style.minWidth = options.minWidth;
3021
3024
  }
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  var LX = {
11
- version: "0.1.25",
11
+ version: "0.1.27",
12
12
  ready: false,
13
13
  components: [], // specific pre-build components
14
14
  signals: {} // events and triggers
@@ -2174,7 +2174,7 @@ class Widget {
2174
2174
  set( value ) {
2175
2175
 
2176
2176
  if( this.onSetValue )
2177
- this.onSetValue( value );
2177
+ return this.onSetValue( value );
2178
2178
 
2179
2179
  console.warn("Can't set value of " + this.typeName());
2180
2180
  }
@@ -3012,6 +3012,9 @@ class Panel {
3012
3012
  if( options.width ) {
3013
3013
  element.style.width = element.style.minWidth = options.width;
3014
3014
  }
3015
+ if( options.maxWidth ) {
3016
+ element.style.maxWidth = options.maxWidth;
3017
+ }
3015
3018
  if( options.minWidth ) {
3016
3019
  element.style.minWidth = options.minWidth;
3017
3020
  }
package/changelog.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # lexgui.js changelog
2
2
 
3
+ ## 0.1.27
4
+
5
+ Code Editor:
6
+ - Tab key follows fixed 4 space layout indentation.
7
+ - Support for removing indentation using "Shift+Tab".
8
+ - Support for changing number of tab spaces from the info panel.
9
+ - Minor bugfixes.
10
+
11
+ Support "maxWidth" as options when creating a widget.
12
+
13
+ ## 0.1.26
14
+
15
+ Code Editor:
16
+ - Search Next Ocurrence using "Ctrl+D" (Duplicate line moved to "Alt+D")
17
+ - Previous selection is restored on undo.
18
+ - Get text to search from selection.
19
+ - Reverse search bugfixes.
20
+ - Pasting content now scrolls to follow cursor.
21
+
22
+ Minor fixes.
23
+
3
24
  ## 0.1.25
4
25
 
5
26
  Code Editor:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexgui",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",