lexgui 0.7.8 → 0.7.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/extensions/codeeditor.js +398 -321
- package/build/extensions/videoeditor.js +50 -10
- package/build/lexgui.js +24 -10
- package/build/lexgui.min.js +1 -1
- package/build/lexgui.module.js +24 -10
- package/build/lexgui.module.min.js +1 -1
- package/changelog.md +16 -1
- package/package.json +1 -1
package/build/lexgui.module.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
const LX = {
|
|
10
|
-
version: "0.7.
|
|
10
|
+
version: "0.7.9",
|
|
11
11
|
ready: false,
|
|
12
12
|
extensions: [], // Store extensions used
|
|
13
13
|
signals: {}, // Events and triggers
|
|
@@ -1325,18 +1325,18 @@ class DropdownMenu {
|
|
|
1325
1325
|
else
|
|
1326
1326
|
{
|
|
1327
1327
|
menuItem.addEventListener( "click", () => {
|
|
1328
|
-
const f = item.callback;
|
|
1329
|
-
if( f )
|
|
1330
|
-
{
|
|
1331
|
-
f.call( this, key, menuItem );
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
1328
|
const radioName = menuItem.getAttribute( "data-radioname" );
|
|
1335
1329
|
if( radioName )
|
|
1336
1330
|
{
|
|
1337
1331
|
this._trigger[ radioName ] = key;
|
|
1338
1332
|
}
|
|
1339
1333
|
|
|
1334
|
+
const f = item.callback;
|
|
1335
|
+
if( f )
|
|
1336
|
+
{
|
|
1337
|
+
f.call( this, key, menuItem, radioName );
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
1340
|
// If has options, it's a radio group label, so don't close the menu
|
|
1341
1341
|
if( !item.options && ( item.closeOnClick ?? true ) )
|
|
1342
1342
|
{
|
|
@@ -15162,17 +15162,26 @@ class Menubar {
|
|
|
15162
15162
|
} });
|
|
15163
15163
|
};
|
|
15164
15164
|
|
|
15165
|
-
entry.addEventListener("
|
|
15165
|
+
entry.addEventListener("mousedown", (e) => {
|
|
15166
|
+
e.preventDefault();
|
|
15167
|
+
});
|
|
15168
|
+
|
|
15169
|
+
entry.addEventListener("mouseup", (e) => {
|
|
15170
|
+
|
|
15171
|
+
e.preventDefault();
|
|
15172
|
+
|
|
15166
15173
|
const f = item[ 'callback' ];
|
|
15167
15174
|
if( f )
|
|
15168
15175
|
{
|
|
15169
|
-
f.call( this, key, entry );
|
|
15176
|
+
f.call( this, key, entry, e );
|
|
15170
15177
|
return;
|
|
15171
15178
|
}
|
|
15172
15179
|
|
|
15173
15180
|
_showEntry();
|
|
15174
15181
|
|
|
15175
15182
|
this.focused = true;
|
|
15183
|
+
|
|
15184
|
+
return false;
|
|
15176
15185
|
});
|
|
15177
15186
|
|
|
15178
15187
|
entry.addEventListener( "mouseover", (e) => {
|
|
@@ -15339,7 +15348,12 @@ class Menubar {
|
|
|
15339
15348
|
}
|
|
15340
15349
|
|
|
15341
15350
|
const _b = button.querySelector('a');
|
|
15342
|
-
|
|
15351
|
+
|
|
15352
|
+
_b.addEventListener( "mousedown", (e) => {
|
|
15353
|
+
e.preventDefault();
|
|
15354
|
+
});
|
|
15355
|
+
|
|
15356
|
+
_b.addEventListener( "mouseup", (e) => {
|
|
15343
15357
|
if( callback && !disabled )
|
|
15344
15358
|
{
|
|
15345
15359
|
callback.call( this, _b, e );
|