wunderbaum 0.3.4 → 0.3.5

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.
@@ -7,7 +7,7 @@
7
7
  /*!
8
8
  * Wunderbaum - util
9
9
  * Copyright (c) 2021-2023, Martin Wendt. Released under the MIT license.
10
- * v0.3.4-0, Sun, 18 Jun 2023 16:04:04 GMT (https://github.com/mar10/wunderbaum)
10
+ * v0.3.5, Mon, 19 Jun 2023 06:20:59 GMT (https://github.com/mar10/wunderbaum)
11
11
  */
12
12
  /** @module util */
13
13
  /** Readable names for `MouseEvent.button` */
@@ -762,7 +762,7 @@
762
762
  /*!
763
763
  * Wunderbaum - types
764
764
  * Copyright (c) 2021-2023, Martin Wendt. Released under the MIT license.
765
- * v0.3.4-0, Sun, 18 Jun 2023 16:04:04 GMT (https://github.com/mar10/wunderbaum)
765
+ * v0.3.5, Mon, 19 Jun 2023 06:20:59 GMT (https://github.com/mar10/wunderbaum)
766
766
  */
767
767
  /**
768
768
  * Possible values for {@link WunderbaumNode.setModified()} and {@link Wunderbaum.setModified()}.
@@ -826,7 +826,7 @@
826
826
  /*!
827
827
  * Wunderbaum - wb_extension_base
828
828
  * Copyright (c) 2021-2023, Martin Wendt. Released under the MIT license.
829
- * v0.3.4-0, Sun, 18 Jun 2023 16:04:04 GMT (https://github.com/mar10/wunderbaum)
829
+ * v0.3.5, Mon, 19 Jun 2023 06:20:59 GMT (https://github.com/mar10/wunderbaum)
830
830
  */
831
831
  class WunderbaumExtension {
832
832
  constructor(tree, id, defaults) {
@@ -1117,7 +1117,7 @@
1117
1117
  /*!
1118
1118
  * Wunderbaum - ext-filter
1119
1119
  * Copyright (c) 2021-2023, Martin Wendt. Released under the MIT license.
1120
- * v0.3.4-0, Sun, 18 Jun 2023 16:04:04 GMT (https://github.com/mar10/wunderbaum)
1120
+ * v0.3.5, Mon, 19 Jun 2023 06:20:59 GMT (https://github.com/mar10/wunderbaum)
1121
1121
  */
1122
1122
  const START_MARKER = "\uFFF7";
1123
1123
  const END_MARKER = "\uFFF8";
@@ -1418,7 +1418,7 @@
1418
1418
  /*!
1419
1419
  * Wunderbaum - ext-keynav
1420
1420
  * Copyright (c) 2021-2023, Martin Wendt. Released under the MIT license.
1421
- * v0.3.4-0, Sun, 18 Jun 2023 16:04:04 GMT (https://github.com/mar10/wunderbaum)
1421
+ * v0.3.5, Mon, 19 Jun 2023 06:20:59 GMT (https://github.com/mar10/wunderbaum)
1422
1422
  */
1423
1423
  const QUICKSEARCH_DELAY = 500;
1424
1424
  class KeynavExtension extends WunderbaumExtension {
@@ -1758,7 +1758,7 @@
1758
1758
  /*!
1759
1759
  * Wunderbaum - ext-logger
1760
1760
  * Copyright (c) 2021-2023, Martin Wendt. Released under the MIT license.
1761
- * v0.3.4-0, Sun, 18 Jun 2023 16:04:04 GMT (https://github.com/mar10/wunderbaum)
1761
+ * v0.3.5, Mon, 19 Jun 2023 06:20:59 GMT (https://github.com/mar10/wunderbaum)
1762
1762
  */
1763
1763
  class LoggerExtension extends WunderbaumExtension {
1764
1764
  constructor(tree) {
@@ -1798,7 +1798,7 @@
1798
1798
  /*!
1799
1799
  * Wunderbaum - common
1800
1800
  * Copyright (c) 2021-2023, Martin Wendt. Released under the MIT license.
1801
- * v0.3.4-0, Sun, 18 Jun 2023 16:04:04 GMT (https://github.com/mar10/wunderbaum)
1801
+ * v0.3.5, Mon, 19 Jun 2023 06:20:59 GMT (https://github.com/mar10/wunderbaum)
1802
1802
  */
1803
1803
  const DEFAULT_DEBUGLEVEL = 4; // Replaced by rollup script
1804
1804
  /**
@@ -2044,7 +2044,7 @@
2044
2044
  /*!
2045
2045
  * Wunderbaum - ext-dnd
2046
2046
  * Copyright (c) 2021-2023, Martin Wendt. Released under the MIT license.
2047
- * v0.3.4-0, Sun, 18 Jun 2023 16:04:04 GMT (https://github.com/mar10/wunderbaum)
2047
+ * v0.3.5, Mon, 19 Jun 2023 06:20:59 GMT (https://github.com/mar10/wunderbaum)
2048
2048
  */
2049
2049
  const nodeMimeType = "application/x-wunderbaum-node";
2050
2050
  class DndExtension extends WunderbaumExtension {
@@ -2337,7 +2337,7 @@
2337
2337
  /*!
2338
2338
  * Wunderbaum - drag_observer
2339
2339
  * Copyright (c) 2021-2023, Martin Wendt. Released under the MIT license.
2340
- * v0.3.4-0, Sun, 18 Jun 2023 16:04:04 GMT (https://github.com/mar10/wunderbaum)
2340
+ * v0.3.5, Mon, 19 Jun 2023 06:20:59 GMT (https://github.com/mar10/wunderbaum)
2341
2341
  */
2342
2342
  /**
2343
2343
  * Convert mouse- and touch events to 'dragstart', 'drag', and 'dragstop'.
@@ -2473,7 +2473,7 @@
2473
2473
  /*!
2474
2474
  * Wunderbaum - ext-grid
2475
2475
  * Copyright (c) 2021-2023, Martin Wendt. Released under the MIT license.
2476
- * v0.3.4-0, Sun, 18 Jun 2023 16:04:04 GMT (https://github.com/mar10/wunderbaum)
2476
+ * v0.3.5, Mon, 19 Jun 2023 06:20:59 GMT (https://github.com/mar10/wunderbaum)
2477
2477
  */
2478
2478
  class GridExtension extends WunderbaumExtension {
2479
2479
  constructor(tree) {
@@ -2510,7 +2510,7 @@
2510
2510
  /*!
2511
2511
  * Wunderbaum - deferred
2512
2512
  * Copyright (c) 2021-2023, Martin Wendt. Released under the MIT license.
2513
- * v0.3.4-0, Sun, 18 Jun 2023 16:04:04 GMT (https://github.com/mar10/wunderbaum)
2513
+ * v0.3.5, Mon, 19 Jun 2023 06:20:59 GMT (https://github.com/mar10/wunderbaum)
2514
2514
  */
2515
2515
  /**
2516
2516
  * Implement a ES6 Promise, that exposes a resolve() and reject() method.
@@ -2563,7 +2563,7 @@
2563
2563
  /*!
2564
2564
  * Wunderbaum - wunderbaum_node
2565
2565
  * Copyright (c) 2021-2023, Martin Wendt. Released under the MIT license.
2566
- * v0.3.4-0, Sun, 18 Jun 2023 16:04:04 GMT (https://github.com/mar10/wunderbaum)
2566
+ * v0.3.5, Mon, 19 Jun 2023 06:20:59 GMT (https://github.com/mar10/wunderbaum)
2567
2567
  */
2568
2568
  /** Top-level properties that can be passed with `data`. */
2569
2569
  const NODE_PROPS = new Set([
@@ -4608,7 +4608,7 @@
4608
4608
  /*!
4609
4609
  * Wunderbaum - ext-edit
4610
4610
  * Copyright (c) 2021-2023, Martin Wendt. Released under the MIT license.
4611
- * v0.3.4-0, Sun, 18 Jun 2023 16:04:04 GMT (https://github.com/mar10/wunderbaum)
4611
+ * v0.3.5, Mon, 19 Jun 2023 06:20:59 GMT (https://github.com/mar10/wunderbaum)
4612
4612
  */
4613
4613
  // const START_MARKER = "\uFFF7";
4614
4614
  class EditExtension extends WunderbaumExtension {
@@ -4904,8 +4904,8 @@
4904
4904
  * https://github.com/mar10/wunderbaum
4905
4905
  *
4906
4906
  * Released under the MIT license.
4907
- * @version v0.3.4-0
4908
- * @date Sun, 18 Jun 2023 16:04:04 GMT
4907
+ * @version v0.3.5
4908
+ * @date Mon, 19 Jun 2023 06:20:59 GMT
4909
4909
  */
4910
4910
  class WbSystemRoot extends WunderbaumNode {
4911
4911
  constructor(tree) {
@@ -6506,7 +6506,14 @@
6506
6506
  colElem.style.left = col._ofsPx + "px";
6507
6507
  colElem.style.width = col._widthPx + "px";
6508
6508
  // Add classes from `columns` definition to `<div.wb-col>` cells
6509
- col.classes ? colElem.classList.add(...col.classes.split(" ")) : 0;
6509
+ if (typeof col.headerClasses === "string") {
6510
+ col.headerClasses
6511
+ ? colElem.classList.add(...col.headerClasses.split(" "))
6512
+ : 0;
6513
+ }
6514
+ else {
6515
+ col.classes ? colElem.classList.add(...col.classes.split(" ")) : 0;
6516
+ }
6510
6517
  const title = escapeHtml(col.title || col.id);
6511
6518
  let tooltip = "";
6512
6519
  if (col.tooltip) {
@@ -6952,7 +6959,7 @@
6952
6959
  }
6953
6960
  Wunderbaum.sequence = 0;
6954
6961
  /** Wunderbaum release version number "MAJOR.MINOR.PATCH". */
6955
- Wunderbaum.version = "v0.3.4-0"; // Set to semver by 'grunt release'
6962
+ Wunderbaum.version = "v0.3.5"; // Set to semver by 'grunt release'
6956
6963
  /** Expose some useful methods of the util.ts module as `Wunderbaum.util`. */
6957
6964
  Wunderbaum.util = util;
6958
6965