lexgui 0.6.7 → 0.6.9

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/changelog.md CHANGED
@@ -2,6 +2,49 @@
2
2
 
3
3
  ## dev
4
4
 
5
+ ## 0.6.9 (master)
6
+
7
+ Timeline:
8
+ - `addKeyframes` now returns new indices.
9
+ - Fixed fadein/fadeout when one of them doesn't exist.
10
+ - Fix fadeout draw
11
+ - `setClip` now returns the Animation Clip.
12
+
13
+ Widgets:
14
+ - Added support for `options.iconPosition` in Button Widget (`cover` as default).
15
+ - Fixed rowId in Table Widget.
16
+ - Show "No results." row if no data in Table Widget.
17
+ - Fixed disabled NumberInput slider.
18
+ - TabSections icons can be modified using `iconClass` and `svgClass`.
19
+ - TabSection's `onCreate` now receives also the tab content HTML Container (2nd parameter).
20
+ - Fixed some Delete edge cases (key and ContextMenu) of Tree Widget.
21
+ - Select Widget now allows creating new widgets as suboptions for each select value.
22
+
23
+ Added support for Area Overlaybuttons separators.
24
+ Fixed Menubar buttons using `float: left` alignment.
25
+ Minor fixes CSS.
26
+
27
+ ## 0.6.8
28
+
29
+ Widgets:
30
+ - Support `options.onCreate` on register Custom Widget.
31
+ - Table:
32
+ - Add support for `Table.getSelectedRows`.
33
+ - Manually sorting now emits signal `@on_table_sort`.
34
+ - Defined property `centered` to allow dynamic changes.
35
+ - Exposed table data.
36
+
37
+ CodeEditor:
38
+ - Default scrolling behaviour (Space key) is now prevented.
39
+ - Fix `Shift+Home` selection when first char is a space.
40
+ - Fixed hide autocomplete when tab changes.
41
+
42
+ Fixed vertical area split resize when `sizes: "auto"`.
43
+ Docs updated.
44
+ Minor CSS tweaks.
45
+
46
+ ## 0.6.7
47
+
5
48
  Widgets:
6
49
  - Button Widget now allows `options.fileInput` to request a file on click.
7
50
  - Custom Widgets now allow getter and setter options to process non-native types.
@@ -18,7 +61,7 @@ Added `MAKE_NUMBERED_LIST` to docmaker.js component.
18
61
  Clean docmaker css.
19
62
  Docs updated.
20
63
 
21
- ## 0.6.6 (master)
64
+ ## 0.6.6
22
65
 
23
66
  Fixed horizontal scroll in Table Widget.
24
67
  Fixed checkbox in Dropdown item.
package/demo.js CHANGED
@@ -16,8 +16,8 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
16
16
 
17
17
  menubar.setButtonImage("lexgui.js", "images/icon.png", () => {window.open("https://jxarco.github.io/lexgui.js/")}, {float: "left"})
18
18
 
19
- const commandButton = new LX.Button(null, "Search command...", () => { LX.setCommandbarState( true ) }, {
20
- width: "256px", className: "right", buttonClass: "border left fg-tertiary bg-secondary" }
19
+ const commandButton = new LX.Button(null, `Search command...<span class="ml-auto">${ LX.makeKbd( ["Ctrl", "Space"], false, "bg-tertiary border px-1 rounded" ).innerHTML }</span>`, () => { LX.setCommandbarState( true ) }, {
20
+ width: "256px", className: "right", buttonClass: "border fg-tertiary bg-secondary" }
21
21
  );
22
22
  menubar.root.appendChild( commandButton.root );
23
23
 
@@ -224,6 +224,7 @@
224
224
  panelB.addNumber("Disabled", 0, null, { disabled: true });
225
225
  panelB.addNumber("With Units", 12, null, { units: "px" });
226
226
  panelB.addNumber("With Slider", 0, null, { min: 1, max: 48, step: 1 });
227
+ panelB.addNumber("Disabled Slider", 0, null, { min: 1, max: 48, step: 1, disabled: true });
227
228
  panelB.branch("Vector Inputs", { closed: closedDefault });
228
229
  panelB.addVector2("Classic Vec2", [0, 0], null);
229
230
  panelB.addVector3("Disabled Vec3", [0, 0, 0], null, { disabled: true });
@@ -254,6 +255,9 @@
254
255
  panelB.addRange("Disabled", 29, null, { min: 1, max: 48, step: 1, disabled: true });
255
256
  panelB.branch("Select Inputs", { closed: closedDefault });
256
257
  panelB.addSelect("Classic", selectValues, "Unity", null);
258
+ panelB.addSelect("With Suboptions", selectValues, "Unity", null, { on_Unity: (p) => {
259
+ p.addButton("Unity Button", "Click me!", null, { buttonClass: "contrast" });
260
+ } });
257
261
  panelB.addSelect("With Labels", selectValuesWithLabels, "Unity", null);
258
262
  panelB.addSelect("With Filter", selectValuesWithLabels, "Godot", null, { filter: true, placeholder: "Search tools..." });
259
263
  panelB.addSelect("Custom Empty Msg", selectValuesWithLabels, "Unreal Engine", null, { filter: true, emptyMsg: "No tools found.", placeholder: "Search tools..." });
@@ -290,10 +294,7 @@
290
294
  'actions': [
291
295
  {
292
296
  'name': 'Open script',
293
- 'icon': 'Scroll',
294
- 'callback': function (node) {
295
- console.log(node.id + ": Script opened!")
296
- }
297
+ 'icon': 'Scroll'
297
298
  }
298
299
  ]
299
300
  }
@@ -456,7 +456,9 @@
456
456
  options: [10, 100, 1000],
457
457
  callback: value => console.log(value)
458
458
  }
459
- ], {
459
+ ],
460
+ null, // Separator
461
+ {
460
462
  name: "Open Sidebar Sheet",
461
463
  icon: "PanelLeftDashed",
462
464
  callback: (value, event) => {
@@ -467,27 +469,27 @@
467
469
  const sidebar = area.addSidebar(m => {
468
470
  m.group("Projects", { icon: "Plus", callback: (groupName, event) => { console.log(groupName) } });
469
471
  m.add("Getting Started", { icon: "Box" /*,collapsable: false*/ });
470
- m.add("Getting Started/Installation", { icon: "Box", callback: logParams });
471
- m.add("Getting Started/Project Structure", { icon: "Box", callback: logParams, action: { name: "ShowMenu", callback: actionLogParams, icon: null } });
472
- m.add("Building Your Application", { icon: "Code", callback: logParams, action: { name: "ShowMenu", callback: actionLogParams, icon: null } });
473
- m.add("Search Blocks", { icon: "Search", callback: logParams });
474
- m.add("Very loooooooooooooooooooooooong sun", { icon: "Sun", callback: logParams, action: { name: "ShowMenu", callback: actionLogParams, icon: null } });
472
+ m.add("Getting Started/Installation", { icon: "Box" });
473
+ m.add("Getting Started/Project Structure", { icon: "Box", action: { name: "ShowMenu", icon: null } });
474
+ m.add("Building Your Application", { icon: "Code", action: { name: "ShowMenu", icon: null } });
475
+ m.add("Search Blocks", { icon: "Search" });
476
+ m.add("Very loooooooooooooooooooooooong sun", { icon: "Sun", action: { name: "ShowMenu", icon: null } });
475
477
  m.separator();
476
478
  m.group("API Reference");
477
- m.add("Components", { icon: "Box", callback: logParams });
478
- m.add("File Conventions", { icon: "Code", callback: logParams });
479
- m.add("Functions", { icon: "Search", callback: logParams });
480
- m.add("CLI", { icon: "Sun", callback: logParams });
479
+ m.add("Components", { icon: "Box" });
480
+ m.add("File Conventions", { icon: "Code" });
481
+ m.add("Functions", { icon: "Search" });
482
+ m.add("CLI", { icon: "Sun" });
481
483
  m.separator();
482
484
  m.group("Architecture");
483
- m.add("Accessibility ", { icon: "Box", callback: logParams });
484
- m.add("Fast Refresh", { icon: "Code", callback: logParams });
485
- m.add("Supported Browsers", { icon: "Search", callback: logParams });
485
+ m.add("Accessibility ", { icon: "Box" });
486
+ m.add("Fast Refresh", { icon: "Code" });
487
+ m.add("Supported Browsers", { icon: "Search" });
486
488
  m.separator();
487
489
  m.add("Calendar ", { icon: "Calendar", collapsable: 3 });
488
- m.add("Personal ", { callback: logParams, type: "checkbox" });
489
- m.add("Work", { callback: logParams, type: "checkbox", value: true });
490
- m.add("Family", { callback: logParams, type: "checkbox" });
490
+ m.add("Personal ", { type: "checkbox" });
491
+ m.add("Work", { type: "checkbox", value: true });
492
+ m.add("Family", { type: "checkbox" });
491
493
  }, { /* collapseToIcons: false, */
492
494
  skipHeader: true,
493
495
  filter: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexgui",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",