lexgui 0.6.2 → 0.6.3

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,7 +2,19 @@
2
2
 
3
3
  ## dev
4
4
 
5
- ## 0.6.2 (master)
5
+ ## 0.6.3 (master)
6
+
7
+ Widgets:
8
+ - New Map2D Widget (For NNI).
9
+ - Fixed `NodeTree.select` when item is not shown.
10
+ - Fixed issue corrupting table body when manual sorting in Table Widget.
11
+
12
+ Fixed `autoTheme` on start with `dark` color scheme.
13
+ Improved Context Menu docs section.
14
+ Added a few more icon solid variants.
15
+ Minor fixes.
16
+
17
+ ## 0.6.2
6
18
 
7
19
  Widgets:
8
20
  - Fixed Title Widget class override.
package/demo.js CHANGED
@@ -7,6 +7,16 @@ window.LX = LX;
7
7
 
8
8
  const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
9
9
 
10
+ const map2Dpoints = [
11
+ { "name": "angry", "pos": [-0.29348334680286725,-0.8813498603327697] },
12
+ { "name": "happy", "pos": [0.5728906393051147,-0.2508566975593567] },
13
+ { "name": "sad", "pos": [-0.542498156289837,0.3795300176749039] },
14
+ { "name": "calm", "pos": [0.46099435955317536,0.6203009288162395] },
15
+ { "name": "bored", "pos": [-0.349232931016368,0.8103832270857154] },
16
+ { "name": "frustrated", "pos": [-0.49046521102390306,-0.5708814736724744] },
17
+ { "name": "smile", "pos": [0.5762101669277435,0.20211987262339348] },
18
+ { "name": "upset", "pos": [-0.5796645457655041,-0.1907168771335228] }
19
+ ];
10
20
 
11
21
  // Menubar
12
22
  {
@@ -173,7 +183,7 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
173
183
  'actions': [
174
184
  {
175
185
  'name': 'Open script',
176
- 'icon': 'Script'
186
+ 'icon': 'Scroll'
177
187
  }
178
188
  ]
179
189
  }
@@ -235,6 +245,7 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
235
245
  panel.addText("Name", "node_1");
236
246
  panel.addCheckbox("Visibility", true, null, { className: "accent" });
237
247
  panel.addLayers("Layers", 10, null);
248
+ panel.addMap2D("Map2D", map2Dpoints, null, { size: [ 300, 300 ] });
238
249
 
239
250
  panel.addTitle( "Transform" );
240
251
  panel.addVector3( "Position", [0.0, 0.0, 0.0] );
@@ -361,7 +372,7 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
361
372
  {
362
373
  // Buttons
363
374
  {
364
- const mailPreviewHeader = LX.makeContainer( [ "100%", "59.59px" ], "flex flex-row border-bottom p-1", "", right );
375
+ const mailPreviewHeader = LX.makeContainer( [ "100%", "43.5px" ], "flex flex-row border-bottom p-1", "", right );
365
376
 
366
377
  mailPreviewHeader.appendChild( new LX.Button( null, "", null, { title: "Archive", tooltip: true, buttonClass: "bg-none", icon: "Archive" } ).root );
367
378
  mailPreviewHeader.appendChild( new LX.Button( null, "", null, { title: "Move to junk", tooltip: true, buttonClass: "bg-none", icon: "ArchiveX" } ).root );
@@ -421,7 +432,7 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
421
432
  LX.toast( "Message sent!", "To:" + mail.email, { timeout: 5000, action: { name: "Undo", callback: ( toast, actionName, event ) => {
422
433
  toast.close();
423
434
  } } } );
424
- }, { className: "ml-auto", buttonClass: "contrast" } );
435
+ }, { className: "ml-auto", buttonClass: "contrast px-2" } );
425
436
  previewButtons.appendChild( sendButton.root );
426
437
  };
427
438
  }
@@ -439,17 +450,17 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
439
450
  `, tasksContainer );
440
451
 
441
452
  const tableWidget = new LX.Table(null, {
442
- head: ["Name", "Status", "Priority"],
453
+ head: [ "Name", "Status", "Priority", "ID" ],
443
454
  body: [
444
- ["Alice", "In Progress", "High"],
445
- ["Bob", "Backlog", "Medium"],
446
- ["Prince", "Canceled", "Low"],
447
- ["Sean", "Done", "High"],
448
- ["Carter", "In Progress", "Medium"],
449
- ["James", "Backlog", "Low"],
450
- ["Mickey", "Todo", "Low"],
451
- ["Charlie", "Canceled", "Low"],
452
- ["Potato", "Todo", "High"]
455
+ [ "Alice", "In Progress", "High", 1 ],
456
+ [ "Bob", "Backlog", "Medium", 2 ],
457
+ [ "Prince", "Canceled", "Low", 3 ],
458
+ [ "Sean", "Done", "High", 4 ],
459
+ [ "Carter", "In Progress", "Medium", 5 ],
460
+ [ "James", "Backlog", "Low", 6 ],
461
+ [ "Mickey", "Todo", "Low", 7 ],
462
+ [ "Charlie", "Canceled", "Low", 8 ],
463
+ [ "Potato", "Todo", "High", 9 ]
453
464
  ]
454
465
  }, {
455
466
  selectable: true,
@@ -459,6 +470,7 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
459
470
  customFilters: [
460
471
  { name: "Status", options: ["Backlog", "Todo", "In Progress", "Done", "Cancelled"] },
461
472
  { name: "Priority", options: ["Low", "Medium", "High"] },
473
+ { name: "ID", type: "range", min: 0, max: 9, step: 1, units: "hr" },
462
474
  ],
463
475
  rowActions: [
464
476
  { icon: "Edit", title: "Edit Row" },
@@ -469,7 +481,9 @@ const area = await LX.init( { layoutMode: "document", rootClass: "wrapper" } );
469
481
  return [
470
482
  { name: "Export" },
471
483
  { name: "Make a copy" },
472
- { name: "Favourite" }
484
+ { name: "Favourite" },
485
+ null,
486
+ { name: "Delete", icon: "Trash2", className: "fg-error" },
473
487
  ]
474
488
  }
475
489
  });
@@ -277,7 +277,7 @@
277
277
  'actions': [
278
278
  {
279
279
  'name': 'Open script',
280
- 'icon': 'Script',
280
+ 'icon': 'Scroll',
281
281
  'callback': function (node) {
282
282
  console.log(node.id + ": Script opened!")
283
283
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexgui",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",