wunderbaum 0.11.1 → 0.12.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.
- package/README.md +5 -5
- package/dist/wunderbaum.css +1 -1
- package/dist/wunderbaum.css.map +1 -1
- package/dist/wunderbaum.d.ts +111 -28
- package/dist/wunderbaum.esm.js +129 -78
- package/dist/wunderbaum.esm.min.js +35 -35
- package/dist/wunderbaum.esm.min.js.map +1 -1
- package/dist/wunderbaum.umd.js +129 -78
- package/dist/wunderbaum.umd.min.js +40 -40
- package/dist/wunderbaum.umd.min.js.map +1 -1
- package/package.json +30 -28
- package/src/common.ts +31 -13
- package/src/debounce.ts +5 -0
- package/src/deferred.ts +1 -1
- package/src/drag_observer.ts +1 -1
- package/src/types.ts +76 -13
- package/src/util.ts +1 -1
- package/src/wb_ext_dnd.ts +3 -3
- package/src/wb_ext_edit.ts +1 -1
- package/src/wb_ext_filter.ts +2 -2
- package/src/wb_ext_grid.ts +1 -1
- package/src/wb_ext_keynav.ts +1 -1
- package/src/wb_ext_logger.ts +1 -1
- package/src/wb_extension_base.ts +1 -1
- package/src/wb_node.ts +63 -30
- package/src/wb_options.ts +9 -1
- package/src/wunderbaum.scss +21 -19
- package/src/wunderbaum.ts +14 -9
package/README.md
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
[](https://github.com/mar10/grunt-yabs)
|
|
8
8
|
[](https://stackoverflow.com/questions/tagged/wunderbaum)
|
|
9
9
|
|
|
10
|
-
> A modern tree/treegrid control for the web.
|
|
11
|
-
|
|
12
|
-
>
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
> A modern tree/treegrid control for the web.
|
|
11
|
+
|
|
12
|
+
Designated successor of [Fancytree](https://github.com/mar10/fancytree).<br>
|
|
13
|
+
See the [upgrade guide](https://mar10.github.io/wunderbaum/tutorial/migrate/#what-has-changed)
|
|
14
|
+
for details.
|
|
15
15
|
|
|
16
16
|
[](https://mar10.github.io/wunderbaum/demo/)
|
|
17
17
|
|
package/dist/wunderbaum.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
3
|
* Wunderbaum style sheet (generated from wunderbaum.scss)
|
|
4
|
-
* Copyright (c) 2021-
|
|
4
|
+
* Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license.
|
|
5
5
|
* @VERSION, @DATE (https://github.com/mar10/wunderbaum)
|
|
6
6
|
*/
|
|
7
7
|
:root,
|
package/dist/wunderbaum.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../src/wunderbaum.scss"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../src/wunderbaum.scss"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AA6EA;AAAA;EAME;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;;;AAMF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EACA;EACA;EAGA;AAsBA;AAyBA;AAwRA;AAoHA;AA8BA;AAgEA;AAEA;AAUA;AAoBA;AAYA;;AAjkBA;EAEE;;AAIF;EACE;EACA;;AAGF;EACE;EAEA;;AAMF;EACE;EACA;EACA;EACA;EACA;;AAGF;AAAA;EAEE;;AAKF;EACE;EACA;EACA;EACA;EACA;;AAMA;EACE;EACA;EACA;EACA;;AAIA;EACE;;AAKF;EAEE;;AAGF;EAEE;;AAGF;EACE;;AAOA;EAEE;EACA;;AAEA;EACE;;AAaN;EAEE;EACA;;AAEA;EACE;;AAON;EACE;;AAEA;EACE;;AAOF;EACE;;AAGF;EAEE;;AAGA;EACE;;AAKJ;EACE;EACA;;AAGF;EAEE;EACA;;AAEA;EAEE;;AAIJ;EACE;;AAGF;AAAA;AAAA;EAGE;EAcA;EASA;;AAGF;EAEE;;AAON;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EAIA;;AAIF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EAEA;EACA;EAEA;EACA;EACA;EACA;EACA;;AACA;EACE;;AAKJ;EACE;EACA;;AAEA;EACE;EACA;;AAKN;EACE;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAIJ;EACE;EACA;AAqBA;;AAhBA;AAAA;AAAA;AAAA;EAIE;EACA;EACA;EACA;;AAGF;AAAA;EAEE;EACA;;AAIF;EACE;;AAGF;EACE;EACA;EACA;;AAMA;EACE;;AAIJ;AAAA;EAEE;EACA;EACA;EACA;;AAGF;EACE;EAEA;EACA;EACA;EACA;EACA;;AAUI;EACE;;AAON;EACE;;AAIJ;EACE;;AAEA;EACE;;AAIF;EACE;;AAGF;EACE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAgBE;EACA;EACA;;AAGF;AAAA;EAEE;;AAcA;EACE;;AAWJ;EACE;;AAGF;EACE;;AAEA;EACE;;AAON;EACE;;AAEA;EACE;;AAQJ;EACE;;AASJ;EACE;;AAEA;EACE;;AAGF;EACE;;AAMJ;EACE;;AAaJ;EACE;;AAEA;EACE;;AAIJ;EACE;;AAEA;EACE;EACA;;AAGA;EACE;EACA;;AAEA;EAGE;EACA;EAGA;EACA;EACA;;AAgBR;AAAA;EAIE;EACA;EACA;;AAKF;EACE;;AAUE;AAAA;EAEE;;AAFF;AAAA;EAEE;;AAFF;AAAA;EAEE;;AAFF;AAAA;EAEE;;AAOJ;EAIE;EACA;;AAGF;AAAA;EAKE;EACA;;AAMF;AAAA;EAEE;EACA;EACA;EACA;;AAOF;EACE;;AAGF;AAAA;EAEE;;AAKA;EACE;;;AAMR;AAEA;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;AAEA;EACE;EACA;;;AAQJ;AACA;AAAA;EAEE;;;AAGF;AAAA;EAEE;;;AAIA;AAAA;EAEE;;AAGF;AAAA;EAEE;;;AAIJ;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;;;AAIJ;AAAA;AAAA;AAMA;EACE;EACA;;;AAGF;EAGE;;;AAGF;EACE;;;AAKF;EACE;IACE;;EAGF;IACE;;;AAIJ;EACE;IACE;;EAGF;IACE;;;AAIJ;EACE;IACE;;EAGF;IACE","file":"wunderbaum.css"}
|
package/dist/wunderbaum.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare module "debounce" {
|
|
2
2
|
/*!
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* Wunderbaum - debounce.ts
|
|
4
|
+
* Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license.
|
|
5
|
+
* @VERSION, @DATE (https://github.com/mar10/wunderbaum)
|
|
6
6
|
*/
|
|
7
7
|
type Procedure = (...args: any[]) => any;
|
|
8
8
|
type DebounceOptions = {
|
|
@@ -130,7 +130,7 @@ declare module "debounce" {
|
|
|
130
130
|
declare module "util" {
|
|
131
131
|
/*!
|
|
132
132
|
* Wunderbaum - util
|
|
133
|
-
* Copyright (c) 2021-
|
|
133
|
+
* Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license.
|
|
134
134
|
* @VERSION, @DATE (https://github.com/mar10/wunderbaum)
|
|
135
135
|
*/
|
|
136
136
|
/** @module util */
|
|
@@ -422,7 +422,7 @@ declare module "util" {
|
|
|
422
422
|
declare module "common" {
|
|
423
423
|
/*!
|
|
424
424
|
* Wunderbaum - common
|
|
425
|
-
* Copyright (c) 2021-
|
|
425
|
+
* Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license.
|
|
426
426
|
* @VERSION, @DATE (https://github.com/mar10/wunderbaum)
|
|
427
427
|
*/
|
|
428
428
|
import { MatcherCallback, SourceObjectType } from "types";
|
|
@@ -452,8 +452,11 @@ declare module "common" {
|
|
|
452
452
|
*/
|
|
453
453
|
export const TEST_IMG: RegExp;
|
|
454
454
|
/**
|
|
455
|
-
* Default node icons
|
|
456
|
-
*
|
|
455
|
+
* Default node icons for icon libraries
|
|
456
|
+
*
|
|
457
|
+
* - 'bootstrap': {@link https://icons.getbootstrap.com}
|
|
458
|
+
* - 'fontawesome6' {@link https://fontawesome.com/icons}
|
|
459
|
+
*
|
|
457
460
|
*/
|
|
458
461
|
export const iconMaps: {
|
|
459
462
|
[key: string]: {
|
|
@@ -496,7 +499,7 @@ declare module "common" {
|
|
|
496
499
|
declare module "deferred" {
|
|
497
500
|
/*!
|
|
498
501
|
* Wunderbaum - deferred
|
|
499
|
-
* Copyright (c) 2021-
|
|
502
|
+
* Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license.
|
|
500
503
|
* @VERSION, @DATE (https://github.com/mar10/wunderbaum)
|
|
501
504
|
*/
|
|
502
505
|
type PromiseCallbackType = (val: any) => void;
|
|
@@ -681,7 +684,14 @@ declare module "wb_node" {
|
|
|
681
684
|
setClass(className: string | string[] | Set<string>, flag?: boolean): void;
|
|
682
685
|
/** Start editing this node's title. */
|
|
683
686
|
startEditTitle(): void;
|
|
684
|
-
/**
|
|
687
|
+
/**
|
|
688
|
+
* Call `setExpanded()` on all descendant nodes.
|
|
689
|
+
*
|
|
690
|
+
* @param flag true to expand, false to collapse.
|
|
691
|
+
* @param options Additional options.
|
|
692
|
+
* @see {@link Wunderbaum.expandAll}
|
|
693
|
+
* @see {@link WunderbaumNode.setExpanded}
|
|
694
|
+
*/
|
|
685
695
|
expandAll(flag?: boolean, options?: ExpandAllOptions): Promise<void>;
|
|
686
696
|
/**
|
|
687
697
|
* Find all descendant nodes that match condition (excluding self).
|
|
@@ -1105,7 +1115,7 @@ declare module "wb_node" {
|
|
|
1105
1115
|
declare module "wb_options" {
|
|
1106
1116
|
/*!
|
|
1107
1117
|
* Wunderbaum - utils
|
|
1108
|
-
* Copyright (c) 2021-
|
|
1118
|
+
* Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license.
|
|
1109
1119
|
* @VERSION, @DATE (https://github.com/mar10/wunderbaum)
|
|
1110
1120
|
*/
|
|
1111
1121
|
import { ColumnDefinitionList, DndOptionsType, DynamicBoolOption, DynamicBoolOrStringOption, DynamicCheckboxOption, DynamicIconOption, EditOptionsType, FilterOptionsType, NavModeEnum, NodeTypeDefinitionMap, SelectModeType, WbActivateEventType, WbButtonClickEventType, WbCancelableEventResultType, WbChangeEventType, WbClickEventType, WbDeactivateEventType, WbErrorEventType, WbExpandEventType, WbIconBadgeCallback, WbIconBadgeEventResultType, WbInitEventType, WbKeydownEventType, WbNodeData, WbNodeEventType, WbReceiveEventType, WbRenderEventType, WbSelectEventType, WbTreeEventType } from "types";
|
|
@@ -1183,6 +1193,14 @@ declare module "wb_options" {
|
|
|
1183
1193
|
skeleton?: boolean;
|
|
1184
1194
|
/**
|
|
1185
1195
|
* Translation map for some system messages.
|
|
1196
|
+
* Default:
|
|
1197
|
+
* ```js
|
|
1198
|
+
* strings: {
|
|
1199
|
+
* loading: "Loading...",
|
|
1200
|
+
* loadError: "Error",
|
|
1201
|
+
* noData: "No data",
|
|
1202
|
+
* }
|
|
1203
|
+
* ```
|
|
1186
1204
|
*/
|
|
1187
1205
|
strings?: any;
|
|
1188
1206
|
/**
|
|
@@ -1468,7 +1486,7 @@ declare module "wb_options" {
|
|
|
1468
1486
|
declare module "types" {
|
|
1469
1487
|
/*!
|
|
1470
1488
|
* Wunderbaum - types
|
|
1471
|
-
* Copyright (c) 2021-
|
|
1489
|
+
* Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license.
|
|
1472
1490
|
* @VERSION, @DATE (https://github.com/mar10/wunderbaum)
|
|
1473
1491
|
*/
|
|
1474
1492
|
import { WunderbaumNode } from "wb_node";
|
|
@@ -1487,7 +1505,7 @@ declare module "types" {
|
|
|
1487
1505
|
* or a boolean value that indicates if the default icon should be used or hidden.
|
|
1488
1506
|
*/
|
|
1489
1507
|
export type IconOption = boolean | string;
|
|
1490
|
-
/** Show/hide tooltip or display a string. */
|
|
1508
|
+
/** Show/hide default tooltip or display a string. */
|
|
1491
1509
|
export type TooltipOption = boolean | string;
|
|
1492
1510
|
export interface SourceAjaxType {
|
|
1493
1511
|
url: string;
|
|
@@ -1541,7 +1559,10 @@ declare module "types" {
|
|
|
1541
1559
|
* returns an iteration modifier.
|
|
1542
1560
|
*/
|
|
1543
1561
|
export type NodeToDictCallback = (dict: WbNodeData, node: WunderbaumNode) => NodeVisitResponse;
|
|
1544
|
-
/**
|
|
1562
|
+
/**
|
|
1563
|
+
* A callback that receives a node instance and may returnsa `false` to prevent
|
|
1564
|
+
* (de)selection.
|
|
1565
|
+
*/
|
|
1545
1566
|
export type NodeSelectCallback = (node: WunderbaumNode) => boolean | void;
|
|
1546
1567
|
/**
|
|
1547
1568
|
* See also {@link WunderbaumNode.getOption|WunderbaumNode.getOption()}
|
|
@@ -1555,23 +1576,56 @@ declare module "types" {
|
|
|
1555
1576
|
export type DynamicTooltipOption = TooltipOption | BoolOrStringOptionResolver;
|
|
1556
1577
|
/** A plain object (dictionary) that represents a node instance. */
|
|
1557
1578
|
export interface WbNodeData {
|
|
1579
|
+
/** Defines if the `selected` state is displayed as checkbox, radio button,
|
|
1580
|
+
* or hidden.
|
|
1581
|
+
* Defaults to {@link WunderbaumOptions.checkbox}.
|
|
1582
|
+
*/
|
|
1558
1583
|
checkbox?: CheckboxOption;
|
|
1584
|
+
/** Optional list of child nodes.
|
|
1585
|
+
* If `children` is an empty array, the node is considered a leaf.
|
|
1586
|
+
* If `lazy` is true and `children is undefined or null, the node, is
|
|
1587
|
+
* considered unloaded. Otherwise, the node is considered a leaf.
|
|
1588
|
+
*/
|
|
1559
1589
|
children?: Array<WbNodeData>;
|
|
1590
|
+
/** Additional classes that are added to `<div class='wb-row'>`. */
|
|
1560
1591
|
classes?: string;
|
|
1592
|
+
/** Only show title in a single, merged column. */
|
|
1561
1593
|
colspan?: boolean;
|
|
1594
|
+
/** Expand this node. */
|
|
1562
1595
|
expanded?: boolean;
|
|
1596
|
+
/** Defaults to standard icons (doc, folder, folderOpen, ...)
|
|
1597
|
+
* from {@link WunderbaumOptions.iconMap}.
|
|
1598
|
+
* Can be overridden by {@link WunderbaumOptions.icon}.
|
|
1599
|
+
*/
|
|
1563
1600
|
icon?: IconOption;
|
|
1601
|
+
/** Tooltip for the node icon only. Defaults to {@link WunderbaumOptions.iconTooltip}. */
|
|
1564
1602
|
iconTooltip?: TooltipOption;
|
|
1603
|
+
/** The node's key. Must be unique for the whole tree. Defaults to a sequence number. */
|
|
1565
1604
|
key?: string;
|
|
1605
|
+
/** If true (and children are undefined or null), the node is considered lazy
|
|
1606
|
+
* and {@link WunderbaumOptions.lazyLoad} is called when expanded.
|
|
1607
|
+
*/
|
|
1566
1608
|
lazy?: boolean;
|
|
1567
1609
|
/** Make child nodes single-select radio buttons. */
|
|
1568
1610
|
radiogroup?: boolean;
|
|
1611
|
+
/** Node's reference key. Unlike {@link WunderbaumNode.key}, this value
|
|
1612
|
+
* may be non-unique. Nodes within the tree that share the same refKey are considered
|
|
1613
|
+
* clones.
|
|
1614
|
+
*/
|
|
1569
1615
|
refKey?: string;
|
|
1616
|
+
/** The node's selection status, typically displayed as a checkbox. */
|
|
1570
1617
|
selected?: boolean;
|
|
1618
|
+
/** The node's status, typically displayed as merged single row.
|
|
1619
|
+
* @see {@link Wunderbaum.setStatus}
|
|
1620
|
+
*/
|
|
1571
1621
|
statusNodeType?: NodeStatusType;
|
|
1622
|
+
/** The node's title. Will be html escaped to prevent XSS. */
|
|
1572
1623
|
title: string;
|
|
1624
|
+
/** Pass true to set node tooltip to the node's title. Defaults to {@link WunderbaumOptions.tooltip}. */
|
|
1573
1625
|
tooltip?: TooltipOption;
|
|
1626
|
+
/** Inherit shared settings from the matching entry in {@link WunderbaumOptions.types}. */
|
|
1574
1627
|
type?: string;
|
|
1628
|
+
/** Set to `true` to prevent selection. Defaults to {@link WunderbaumOptions.unselectable}. */
|
|
1575
1629
|
unselectable?: boolean;
|
|
1576
1630
|
/** @internal */
|
|
1577
1631
|
_treeId?: string;
|
|
@@ -1903,6 +1957,7 @@ declare module "types" {
|
|
|
1903
1957
|
/** Vertical scroll event. Update the 'top' property of all rows. */
|
|
1904
1958
|
scroll = "scroll"
|
|
1905
1959
|
}
|
|
1960
|
+
/** @internal */
|
|
1906
1961
|
export enum RenderFlag {
|
|
1907
1962
|
clearMarkup = "clearMarkup",
|
|
1908
1963
|
header = "header",
|
|
@@ -1929,9 +1984,13 @@ declare module "types" {
|
|
|
1929
1984
|
}
|
|
1930
1985
|
/** Initial navigation mode and possible transition. */
|
|
1931
1986
|
export enum NavModeEnum {
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1987
|
+
/** Start with row mode, but allow cell-nav mode */
|
|
1988
|
+
startRow = "startRow",
|
|
1989
|
+
/** Cell-nav mode only */
|
|
1990
|
+
cell = "cell",
|
|
1991
|
+
/** Start in cell-nav mode, but allow row mode */
|
|
1992
|
+
startCell = "startCell",
|
|
1993
|
+
/** Row mode only */
|
|
1935
1994
|
row = "row"
|
|
1936
1995
|
}
|
|
1937
1996
|
/** Possible values for {@link WunderbaumNode.addChildren}. */
|
|
@@ -1955,12 +2014,34 @@ declare module "types" {
|
|
|
1955
2014
|
}
|
|
1956
2015
|
/** Possible values for {@link Wunderbaum.expandAll} and {@link WunderbaumNode.expandAll}. */
|
|
1957
2016
|
export interface ExpandAllOptions {
|
|
1958
|
-
/** Restrict expand level @default 99 */
|
|
1959
|
-
depth?: number;
|
|
1960
2017
|
/** Expand and load lazy nodes @default false */
|
|
1961
2018
|
loadLazy?: boolean;
|
|
1962
|
-
/**
|
|
2019
|
+
/** Unload lazily loaded children if any (if collapsing). @default false */
|
|
2020
|
+
resetLazy?: boolean;
|
|
2021
|
+
/** Ignore tree's `minExpandLevel` option @default false */
|
|
1963
2022
|
force?: boolean;
|
|
2023
|
+
/** Restrict expand level.
|
|
2024
|
+
* Pass 0 to make only toplevel nodes visible, 1 to expand one level deeper, etc.
|
|
2025
|
+
* @default unset (unlimited)
|
|
2026
|
+
*/
|
|
2027
|
+
depth?: number;
|
|
2028
|
+
/**
|
|
2029
|
+
* Also collapse child nodes beyond the `depth` level.
|
|
2030
|
+
* Otherwise only the `depth` level is collapsed and the expand state of the
|
|
2031
|
+
* descendants is retained.
|
|
2032
|
+
* Only in combination with collapse and `depth`.
|
|
2033
|
+
* Expanding with `deep` option is not supported as recursion depth implied by
|
|
2034
|
+
* the `depth` option. However a `deep` option will be considered if
|
|
2035
|
+
* `collapseOthers` is set.
|
|
2036
|
+
* @default false
|
|
2037
|
+
*/
|
|
2038
|
+
deep?: boolean;
|
|
2039
|
+
/**
|
|
2040
|
+
* Expand up to level=depth and collapse all other branches.
|
|
2041
|
+
* Only in combination with `flag == true`, `depth > 0`.
|
|
2042
|
+
* @default false
|
|
2043
|
+
*/
|
|
2044
|
+
collapseOthers?: boolean;
|
|
1964
2045
|
/** Keep active node visible @default true */
|
|
1965
2046
|
keepActiveNodeVisible?: boolean;
|
|
1966
2047
|
}
|
|
@@ -2071,7 +2152,7 @@ declare module "types" {
|
|
|
2071
2152
|
}
|
|
2072
2153
|
/** Possible values for {@link WunderbaumNode.setExpanded} `options` argument. */
|
|
2073
2154
|
export interface SetExpandedOptions {
|
|
2074
|
-
/** Ignore {@link WunderbaumOptions.minExpandLevel
|
|
2155
|
+
/** Ignore {@link WunderbaumOptions}.minExpandLevel. @default false */
|
|
2075
2156
|
force?: boolean;
|
|
2076
2157
|
/** Immediately update viewport (async otherwise). @default false */
|
|
2077
2158
|
immediate?: boolean;
|
|
@@ -2079,6 +2160,8 @@ declare module "types" {
|
|
|
2079
2160
|
noAnimation?: boolean;
|
|
2080
2161
|
/** Do not send events. @default false */
|
|
2081
2162
|
noEvents?: boolean;
|
|
2163
|
+
/** Unload lazily loaded children if any (if collapsing). @default false */
|
|
2164
|
+
resetLazy?: boolean;
|
|
2082
2165
|
/** Scroll up to bring expanded nodes into viewport. @default false */
|
|
2083
2166
|
scrollIntoView?: boolean;
|
|
2084
2167
|
}
|
|
@@ -2479,7 +2562,7 @@ declare module "wb_ext_filter" {
|
|
|
2479
2562
|
declare module "wb_ext_keynav" {
|
|
2480
2563
|
/*!
|
|
2481
2564
|
* Wunderbaum - ext-keynav
|
|
2482
|
-
* Copyright (c) 2021-
|
|
2565
|
+
* Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license.
|
|
2483
2566
|
* @VERSION, @DATE (https://github.com/mar10/wunderbaum)
|
|
2484
2567
|
*/
|
|
2485
2568
|
import { KeynavOptionsType } from "types";
|
|
@@ -2495,7 +2578,7 @@ declare module "wb_ext_keynav" {
|
|
|
2495
2578
|
declare module "wb_ext_logger" {
|
|
2496
2579
|
/*!
|
|
2497
2580
|
* Wunderbaum - ext-logger
|
|
2498
|
-
* Copyright (c) 2021-
|
|
2581
|
+
* Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license.
|
|
2499
2582
|
* @VERSION, @DATE (https://github.com/mar10/wunderbaum)
|
|
2500
2583
|
*/
|
|
2501
2584
|
import { LoggerOptionsType } from "types";
|
|
@@ -2559,7 +2642,7 @@ declare module "wb_ext_dnd" {
|
|
|
2559
2642
|
declare module "drag_observer" {
|
|
2560
2643
|
/*!
|
|
2561
2644
|
* Wunderbaum - drag_observer
|
|
2562
|
-
* Copyright (c) 2021-
|
|
2645
|
+
* Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license.
|
|
2563
2646
|
* @VERSION, @DATE (https://github.com/mar10/wunderbaum)
|
|
2564
2647
|
*/
|
|
2565
2648
|
export type DragCallbackArgType = {
|
|
@@ -2628,7 +2711,7 @@ declare module "drag_observer" {
|
|
|
2628
2711
|
declare module "wb_ext_grid" {
|
|
2629
2712
|
/*!
|
|
2630
2713
|
* Wunderbaum - ext-grid
|
|
2631
|
-
* Copyright (c) 2021-
|
|
2714
|
+
* Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license.
|
|
2632
2715
|
* @VERSION, @DATE (https://github.com/mar10/wunderbaum)
|
|
2633
2716
|
*/
|
|
2634
2717
|
import { Wunderbaum } from "wunderbaum";
|
|
@@ -2648,7 +2731,7 @@ declare module "wb_ext_grid" {
|
|
|
2648
2731
|
declare module "wb_ext_edit" {
|
|
2649
2732
|
/*!
|
|
2650
2733
|
* Wunderbaum - ext-edit
|
|
2651
|
-
* Copyright (c) 2021-
|
|
2734
|
+
* Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license.
|
|
2652
2735
|
* @VERSION, @DATE (https://github.com/mar10/wunderbaum)
|
|
2653
2736
|
*/
|
|
2654
2737
|
import { Wunderbaum } from "wunderbaum";
|
|
@@ -2687,7 +2770,7 @@ declare module "wunderbaum" {
|
|
|
2687
2770
|
*
|
|
2688
2771
|
* A treegrid control.
|
|
2689
2772
|
*
|
|
2690
|
-
* Copyright (c) 2021-
|
|
2773
|
+
* Copyright (c) 2021-2025, Martin Wendt (https://wwWendt.de).
|
|
2691
2774
|
* https://github.com/mar10/wunderbaum
|
|
2692
2775
|
*
|
|
2693
2776
|
* Released under the MIT license.
|
|
@@ -2739,11 +2822,11 @@ declare module "wunderbaum" {
|
|
|
2739
2822
|
protected _activeNode: WunderbaumNode | null;
|
|
2740
2823
|
protected _focusNode: WunderbaumNode | null;
|
|
2741
2824
|
/** Currently active node if any.
|
|
2742
|
-
* Use @link
|
|
2825
|
+
* Use {@link WunderbaumNode.setActive|setActive} to modify.
|
|
2743
2826
|
*/
|
|
2744
2827
|
get activeNode(): WunderbaumNode;
|
|
2745
2828
|
/** Current node hat has keyboard focus if any.
|
|
2746
|
-
* Use @link
|
|
2829
|
+
* Use {@link WunderbaumNode.setFocus|setFocus()} to modify.
|
|
2747
2830
|
*/
|
|
2748
2831
|
get focusNode(): WunderbaumNode;
|
|
2749
2832
|
/** Shared properties, referenced by `node.type`. */
|