Skip to content

Commit

Permalink
Bump version to 0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Jul 20, 2024
1 parent 2fcaba9 commit 64b8011
Show file tree
Hide file tree
Showing 171 changed files with 886 additions and 874 deletions.
10 changes: 5 additions & 5 deletions dist/wunderbaum.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 10 additions & 7 deletions dist/wunderbaum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ declare module "util" {
export function extend(...args: any[]): any;
/** Return true if `obj` is of type `array`. */
export function isArray(obj: any): boolean;
/** Return true if `obj` is of type `Object` and has no propertied. */
/** Return true if `obj` is of type `Object` and has no properties. */
export function isEmptyObject(obj: any): boolean;
/** Return true if `obj` is of type `function`. */
export function isFunction(obj: any): boolean;
Expand Down Expand Up @@ -380,15 +380,17 @@ declare module "util" {
*
* Example:
* ```js
* const width = util.toPixel("123px", 100);
* let x = undefined;
* let y = "123px";
* const width = util.toPixel(x, y, 100); // returns 123
* ```
*/
export function toPixel(...defaults: (string | number | undefined | null)[]): number;
/** Evaluate a boolean value using default if undefined.
/** Return the the boolean value of the first non-null element.
* Example:
* ```js
* const opts = { flag: true };
* const value = util.toBool(opts.flag, otherVar, false);
* const value = util.toBool(opts.foo, opts.flag, false); // returns true
* ```
*/
export function toBool(...boolDefaults: (boolean | undefined | null)[]): boolean;
Expand Down Expand Up @@ -1702,12 +1704,13 @@ declare module "types" {
* Default: unset.
*/
customWidthPx?: number;
/** Allow user to sort the column.
* Default: false.
/** Allow user to sort the column. Default: false. <br>
* **Note:** Sorting is not implemented yet.
*/
sortable?: boolean;
/** Optional custom column sort orde when user clicked the sort icon.
* Default: unset.
* Default: unset. <br>
* **Note:** Sorting is not implemented yet.
*/
sortOrder?: SortOrderType;
/** Optional class names that are added to all `span.wb-col` header AND data
Expand Down
44 changes: 24 additions & 20 deletions dist/wunderbaum.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function throttle(func, wait = 0, options = {}) {
/*!
* Wunderbaum - util
* Copyright (c) 2021-2024, Martin Wendt. Released under the MIT license.
* v0.10.0, Mon, 24 Jun 2024 19:17:59 GMT (https://github.com/mar10/wunderbaum)
* v0.10.1, Sat, 20 Jul 2024 13:53:46 GMT (https://github.com/mar10/wunderbaum)
*/
/** @module util */
/** Readable names for `MouseEvent.button` */
Expand Down Expand Up @@ -764,7 +764,7 @@ function extend(...args) {
function isArray(obj) {
return Array.isArray(obj);
}
/** Return true if `obj` is of type `Object` and has no propertied. */
/** Return true if `obj` is of type `Object` and has no properties. */
function isEmptyObject(obj) {
return Object.keys(obj).length === 0 && obj.constructor === Object;
}
Expand Down Expand Up @@ -943,7 +943,9 @@ function toSet(val) {
*
* Example:
* ```js
* const width = util.toPixel("123px", 100);
* let x = undefined;
* let y = "123px";
* const width = util.toPixel(x, y, 100); // returns 123
* ```
*/
function toPixel(
Expand All @@ -963,11 +965,11 @@ function toPixel(
}
throw new Error(`Expected a string like '123px': ${defaults}`);
}
/** Evaluate a boolean value using default if undefined.
/** Return the the boolean value of the first non-null element.
* Example:
* ```js
* const opts = { flag: true };
* const value = util.toBool(opts.flag, otherVar, false);
* const value = util.toBool(opts.foo, opts.flag, false); // returns true
* ```
*/
function toBool(
Expand Down Expand Up @@ -1134,7 +1136,7 @@ var util = /*#__PURE__*/Object.freeze({
/*!
* Wunderbaum - types
* Copyright (c) 2021-2024, Martin Wendt. Released under the MIT license.
* v0.10.0, Mon, 24 Jun 2024 19:17:59 GMT (https://github.com/mar10/wunderbaum)
* v0.10.1, Sat, 20 Jul 2024 13:53:46 GMT (https://github.com/mar10/wunderbaum)
*/
/**
* Possible values for {@link WunderbaumNode.update()} and {@link Wunderbaum.update()}.
Expand Down Expand Up @@ -1198,7 +1200,7 @@ var NavModeEnum;
/*!
* Wunderbaum - wb_extension_base
* Copyright (c) 2021-2024, Martin Wendt. Released under the MIT license.
* v0.10.0, Mon, 24 Jun 2024 19:17:59 GMT (https://github.com/mar10/wunderbaum)
* v0.10.1, Sat, 20 Jul 2024 13:53:46 GMT (https://github.com/mar10/wunderbaum)
*/
class WunderbaumExtension {
constructor(tree, id, defaults) {
Expand Down Expand Up @@ -1257,7 +1259,7 @@ class WunderbaumExtension {
/*!
* Wunderbaum - ext-filter
* Copyright (c) 2021-2024, Martin Wendt. Released under the MIT license.
* v0.10.0, Mon, 24 Jun 2024 19:17:59 GMT (https://github.com/mar10/wunderbaum)
* v0.10.1, Sat, 20 Jul 2024 13:53:46 GMT (https://github.com/mar10/wunderbaum)
*/
const START_MARKER = "\uFFF7";
const END_MARKER = "\uFFF8";
Expand All @@ -1284,6 +1286,7 @@ class FilterExtension extends WunderbaumExtension {
const connectInput = this.getPluginOption("connectInput");
if (connectInput) {
this.queryInput = elemFromSelector(connectInput);
assert(this.queryInput, `Invalid 'filter.connectInput' option: ${connectInput}.`);
onEvent(this.queryInput, "input", debounce((e) => {
// this.tree.log("query", e);
this.filterNodes(this.queryInput.value.trim(), {});
Expand Down Expand Up @@ -1581,7 +1584,7 @@ function _markFuzzyMatchedChars(text, matches, escapeTitles = true) {
/*!
* Wunderbaum - ext-keynav
* Copyright (c) 2021-2024, Martin Wendt. Released under the MIT license.
* v0.10.0, Mon, 24 Jun 2024 19:17:59 GMT (https://github.com/mar10/wunderbaum)
* v0.10.1, Sat, 20 Jul 2024 13:53:46 GMT (https://github.com/mar10/wunderbaum)
*/
const QUICKSEARCH_DELAY = 500;
class KeynavExtension extends WunderbaumExtension {
Expand Down Expand Up @@ -1945,7 +1948,7 @@ class KeynavExtension extends WunderbaumExtension {
/*!
* Wunderbaum - ext-logger
* Copyright (c) 2021-2024, Martin Wendt. Released under the MIT license.
* v0.10.0, Mon, 24 Jun 2024 19:17:59 GMT (https://github.com/mar10/wunderbaum)
* v0.10.1, Sat, 20 Jul 2024 13:53:46 GMT (https://github.com/mar10/wunderbaum)
*/
class LoggerExtension extends WunderbaumExtension {
constructor(tree) {
Expand Down Expand Up @@ -1987,7 +1990,7 @@ class LoggerExtension extends WunderbaumExtension {
/*!
* Wunderbaum - common
* Copyright (c) 2021-2024, Martin Wendt. Released under the MIT license.
* v0.10.0, Mon, 24 Jun 2024 19:17:59 GMT (https://github.com/mar10/wunderbaum)
* v0.10.1, Sat, 20 Jul 2024 13:53:46 GMT (https://github.com/mar10/wunderbaum)
*/
const DEFAULT_DEBUGLEVEL = 3; // Replaced by rollup script
/**
Expand Down Expand Up @@ -2312,7 +2315,7 @@ function decompressSourceData(source) {
/*!
* Wunderbaum - ext-dnd
* Copyright (c) 2021-2024, Martin Wendt. Released under the MIT license.
* v0.10.0, Mon, 24 Jun 2024 19:17:59 GMT (https://github.com/mar10/wunderbaum)
* v0.10.1, Sat, 20 Jul 2024 13:53:46 GMT (https://github.com/mar10/wunderbaum)
*/
const nodeMimeType = "application/x-wunderbaum-node";
class DndExtension extends WunderbaumExtension {
Expand Down Expand Up @@ -2757,7 +2760,7 @@ class DndExtension extends WunderbaumExtension {
/*!
* Wunderbaum - drag_observer
* Copyright (c) 2021-2024, Martin Wendt. Released under the MIT license.
* v0.10.0, Mon, 24 Jun 2024 19:17:59 GMT (https://github.com/mar10/wunderbaum)
* v0.10.1, Sat, 20 Jul 2024 13:53:46 GMT (https://github.com/mar10/wunderbaum)
*/
/**
* Convert mouse- and touch events to 'dragstart', 'drag', and 'dragstop'.
Expand Down Expand Up @@ -2906,7 +2909,7 @@ class DragObserver {
/*!
* Wunderbaum - ext-grid
* Copyright (c) 2021-2024, Martin Wendt. Released under the MIT license.
* v0.10.0, Mon, 24 Jun 2024 19:17:59 GMT (https://github.com/mar10/wunderbaum)
* v0.10.1, Sat, 20 Jul 2024 13:53:46 GMT (https://github.com/mar10/wunderbaum)
*/
class GridExtension extends WunderbaumExtension {
constructor(tree) {
Expand Down Expand Up @@ -2997,7 +3000,7 @@ class GridExtension extends WunderbaumExtension {
/*!
* Wunderbaum - deferred
* Copyright (c) 2021-2024, Martin Wendt. Released under the MIT license.
* v0.10.0, Mon, 24 Jun 2024 19:17:59 GMT (https://github.com/mar10/wunderbaum)
* v0.10.1, Sat, 20 Jul 2024 13:53:46 GMT (https://github.com/mar10/wunderbaum)
*/
/**
* Implement a ES6 Promise, that exposes a resolve() and reject() method.
Expand Down Expand Up @@ -3050,7 +3053,7 @@ class Deferred {
/*!
* Wunderbaum - wunderbaum_node
* Copyright (c) 2021-2024, Martin Wendt. Released under the MIT license.
* v0.10.0, Mon, 24 Jun 2024 19:17:59 GMT (https://github.com/mar10/wunderbaum)
* v0.10.1, Sat, 20 Jul 2024 13:53:46 GMT (https://github.com/mar10/wunderbaum)
*/
/** WunderbaumNode properties that can be passed with source data.
* (Any other source properties will be stored as `node.data.PROP`.)
Expand Down Expand Up @@ -5459,7 +5462,7 @@ WunderbaumNode.sequence = 0;
/*!
* Wunderbaum - ext-edit
* Copyright (c) 2021-2024, Martin Wendt. Released under the MIT license.
* v0.10.0, Mon, 24 Jun 2024 19:17:59 GMT (https://github.com/mar10/wunderbaum)
* v0.10.1, Sat, 20 Jul 2024 13:53:46 GMT (https://github.com/mar10/wunderbaum)
*/
// const START_MARKER = "\uFFF7";
class EditExtension extends WunderbaumExtension {
Expand Down Expand Up @@ -5790,8 +5793,8 @@ class EditExtension extends WunderbaumExtension {
* https://github.com/mar10/wunderbaum
*
* Released under the MIT license.
* @version v0.10.0
* @date Mon, 24 Jun 2024 19:17:59 GMT
* @version v0.10.1
* @date Sat, 20 Jul 2024 13:53:46 GMT
*/
// import "./wunderbaum.scss";
class WbSystemRoot extends WunderbaumNode {
Expand Down Expand Up @@ -7671,6 +7674,7 @@ class Wunderbaum {
// console.profileEnd(`_updateViewportImmediately()`)
}
if (this.options.connectTopBreadcrumb) {
assert(this.options.connectTopBreadcrumb.textContent != null, `Invalid 'connectTopBreadcrumb' option (input element expected).`);
let path = (_a = this.getTopmostVpNode(true)) === null || _a === void 0 ? void 0 : _a.getPath(false, "title", " > ");
path = path ? path + " >" : "";
this.options.connectTopBreadcrumb.textContent = path;
Expand Down Expand Up @@ -8040,7 +8044,7 @@ class Wunderbaum {
}
Wunderbaum.sequence = 0;
/** Wunderbaum release version number "MAJOR.MINOR.PATCH". */
Wunderbaum.version = "v0.10.0"; // Set to semver by 'grunt release'
Wunderbaum.version = "v0.10.1"; // Set to semver by 'grunt release'
/** Expose some useful methods of the util.ts module as `Wunderbaum.util`. */
Wunderbaum.util = util;

Expand Down
Loading

0 comments on commit 64b8011

Please # to comment.