lexgui 8.2.0 → 8.2.1

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.
Files changed (43) hide show
  1. package/build/components/Avatar.d.ts +15 -15
  2. package/build/components/NodeTree.d.ts +51 -51
  3. package/build/components/Vector.d.ts +10 -10
  4. package/build/core/Event.d.ts +6 -6
  5. package/build/core/Namespace.js +1 -1
  6. package/build/core/Namespace.js.map +1 -1
  7. package/build/core/Panel.d.ts +538 -538
  8. package/build/extensions/AssetView.d.ts +137 -137
  9. package/build/extensions/AssetView.js +5 -6
  10. package/build/extensions/AssetView.js.map +1 -1
  11. package/build/extensions/CodeEditor.d.ts +358 -358
  12. package/build/extensions/CodeEditor.js +7 -7
  13. package/build/extensions/CodeEditor.js.map +1 -1
  14. package/build/extensions/DocMaker.js +1 -0
  15. package/build/extensions/DocMaker.js.map +1 -1
  16. package/build/extensions/GraphEditor.js +2754 -2754
  17. package/build/extensions/Timeline.d.ts +668 -668
  18. package/build/extensions/Timeline.js +2 -2
  19. package/build/extensions/Timeline.js.map +1 -1
  20. package/build/extensions/VideoEditor.d.ts +37 -15
  21. package/build/extensions/VideoEditor.js +287 -166
  22. package/build/extensions/VideoEditor.js.map +1 -1
  23. package/build/index.css.d.ts +3 -3
  24. package/build/index.d.ts +57 -57
  25. package/build/lexgui.all.js +327 -185
  26. package/build/lexgui.all.js.map +1 -1
  27. package/build/lexgui.all.min.js +1 -1
  28. package/build/lexgui.all.module.js +327 -185
  29. package/build/lexgui.all.module.js.map +1 -1
  30. package/build/lexgui.all.module.min.js +1 -1
  31. package/build/lexgui.css +213 -220
  32. package/build/lexgui.js +25 -4
  33. package/build/lexgui.js.map +1 -1
  34. package/build/lexgui.min.css +1 -1
  35. package/build/lexgui.min.js +1 -1
  36. package/build/lexgui.module.js +25 -4
  37. package/build/lexgui.module.js.map +1 -1
  38. package/build/lexgui.module.min.js +1 -1
  39. package/changelog.md +23 -1
  40. package/examples/all-components.html +3 -4
  41. package/examples/code-editor.html +11 -0
  42. package/examples/dialogs.html +13 -2
  43. package/package.json +1 -1
@@ -12,7 +12,7 @@ const g = globalThis;
12
12
  let LX = g.LX;
13
13
  if (!LX) {
14
14
  LX = {
15
- version: '8.2',
15
+ version: '8.2.1',
16
16
  ready: false,
17
17
  extensions: [], // Store extensions used
18
18
  extraCommandbarEntries: [], // User specific entries for command bar
@@ -7615,14 +7615,14 @@ class Branch {
7615
7615
  if (options.id) {
7616
7616
  root.id = options.id;
7617
7617
  }
7618
- root.className = LX.mergeClass('lexbranch w-full rounded-lg my-0 mx-auto', options.className);
7618
+ root.className = LX.mergeClass('lexbranch bg-secondary/50 dark:bg-card text-secondary-foreground dark:text-card-foreground w-full rounded-lg my-0 mx-auto', options.className);
7619
7619
  var that = this;
7620
7620
  this.closed = options.closed ?? false;
7621
7621
  this.root = root;
7622
7622
  this.components = [];
7623
7623
  this.panel = null;
7624
7624
  // Create element
7625
- const title = LX.makeElement('div', 'lexbranchtitle flex cursor-pointer select-none pad-lg bg-card text-card-foreground text-lg', '', root);
7625
+ const title = LX.makeElement('div', 'lexbranchtitle flex cursor-pointer select-none pad-lg text-lg', '', root);
7626
7626
  if (options.icon) {
7627
7627
  const branchIcon = LX.makeIcon(options.icon, { iconClass: 'mr-2' });
7628
7628
  title.appendChild(branchIcon);
@@ -7630,7 +7630,7 @@ class Branch {
7630
7630
  title.innerHTML += name || 'Branch';
7631
7631
  const collapseIcon = LX.makeIcon('Right', { iconClass: 'switch-branch-button', svgClass: 'sm' });
7632
7632
  title.appendChild(collapseIcon);
7633
- var branchContent = LX.makeElement('div', 'lexbranchcontent pad-xs bg-card', '', root);
7633
+ var branchContent = LX.makeElement('div', 'lexbranchcontent pad-xs', '', root);
7634
7634
  branchContent.id = name.replace(/\s/g, '');
7635
7635
  this.content = branchContent;
7636
7636
  this._addBranchSeparator();
@@ -13439,6 +13439,27 @@ LX.addSignal = function (name, obj, callback) {
13439
13439
  }
13440
13440
  LX.signals[name].push(obj);
13441
13441
  };
13442
+ /**
13443
+ * @method removeSignal
13444
+ * @param {String} name
13445
+ * @param {Object} targetObj
13446
+ */
13447
+ LX.removeSignal = function (name, targetObj) {
13448
+ const data = LX.signals[name];
13449
+ if (!data) {
13450
+ return;
13451
+ }
13452
+ if (!targetObj) {
13453
+ delete LX.signals[name];
13454
+ return;
13455
+ }
13456
+ for (let i = 0; i < data.length; ++i) {
13457
+ if (data[i] == targetObj) {
13458
+ data.splice(i, 1);
13459
+ break;
13460
+ }
13461
+ }
13462
+ };
13442
13463
  /**
13443
13464
  * @method emitSignal
13444
13465
  * @param {String} name