lexgui 0.6.8 → 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/build/components/timeline.js +14 -7
- package/build/lexgui.css +25 -2
- package/build/lexgui.js +158 -51
- package/build/lexgui.min.css +1 -1
- package/build/lexgui.min.js +1 -1
- package/build/lexgui.module.js +180 -73
- package/build/lexgui.module.min.js +1 -1
- package/changelog.md +23 -1
- package/demo.js +2 -2
- package/examples/all_widgets.html +5 -4
- package/examples/editor.html +18 -16
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -2,7 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
## dev
|
|
4
4
|
|
|
5
|
-
## 0.6.
|
|
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
|
|
6
28
|
|
|
7
29
|
Widgets:
|
|
8
30
|
- Support `options.onCreate` on register Custom Widget.
|
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,
|
|
20
|
-
width: "256px", className: "right", buttonClass: "border
|
|
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
|
}
|
package/examples/editor.html
CHANGED
|
@@ -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"
|
|
471
|
-
m.add("Getting Started/Project Structure", { icon: "Box",
|
|
472
|
-
m.add("Building Your Application", { icon: "Code",
|
|
473
|
-
m.add("Search Blocks", { icon: "Search"
|
|
474
|
-
m.add("Very loooooooooooooooooooooooong sun", { icon: "Sun",
|
|
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"
|
|
478
|
-
m.add("File Conventions", { icon: "Code"
|
|
479
|
-
m.add("Functions", { icon: "Search"
|
|
480
|
-
m.add("CLI", { icon: "Sun"
|
|
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"
|
|
484
|
-
m.add("Fast Refresh", { icon: "Code"
|
|
485
|
-
m.add("Supported Browsers", { icon: "Search"
|
|
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 ", {
|
|
489
|
-
m.add("Work", {
|
|
490
|
-
m.add("Family", {
|
|
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,
|