x4js 1.5.11 → 1.5.12

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.
@@ -159,7 +159,9 @@ class TreeView extends layout_1.VLayout {
159
159
  }
160
160
  openAll(open = true) {
161
161
  this.forEach((node) => {
162
- node.open = open;
162
+ if (node.children) {
163
+ node.open = open;
164
+ }
163
165
  });
164
166
  this.__update();
165
167
  }
@@ -486,7 +488,8 @@ class TreeView extends layout_1.VLayout {
486
488
  id: node.id,
487
489
  text: node.name,
488
490
  parent: node.parent,
489
- cls: node.cls
491
+ cls: node.cls,
492
+ icon: node.icon
490
493
  };
491
494
  if (!node.leaf) {
492
495
  elem.children = [];
@@ -29,4 +29,4 @@
29
29
  **/
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
31
  exports.x4js_version = void 0;
32
- exports.x4js_version = "1.5.11";
32
+ exports.x4js_version = "1.5.12";
@@ -157,7 +157,9 @@ export class TreeView extends VLayout {
157
157
  }
158
158
  openAll(open = true) {
159
159
  this.forEach((node) => {
160
- node.open = open;
160
+ if (node.children) {
161
+ node.open = open;
162
+ }
161
163
  });
162
164
  this.__update();
163
165
  }
@@ -479,7 +481,8 @@ export class TreeView extends VLayout {
479
481
  id: node.id,
480
482
  text: node.name,
481
483
  parent: node.parent,
482
- cls: node.cls
484
+ cls: node.cls,
485
+ icon: node.icon
483
486
  };
484
487
  if (!node.leaf) {
485
488
  elem.children = [];
@@ -26,4 +26,4 @@
26
26
  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
27
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
  **/
29
- export const x4js_version = "1.5.11";
29
+ export const x4js_version = "1.5.12";
@@ -44,10 +44,11 @@ function EvExpand(node: TreeNode) {
44
44
 
45
45
  export interface HierarchicalNode {
46
46
  id: number;
47
- parent: number;
48
47
  name: string;
49
- cls: string;
50
- leaf: boolean
48
+ parent?: number;
49
+ cls?: string;
50
+ leaf?: boolean
51
+ icon?: string;
51
52
  }
52
53
 
53
54
  export interface TreeNode {
@@ -242,7 +243,9 @@ export class TreeView extends VLayout<TreeViewProps, TreeViewEventMap> {
242
243
 
243
244
  openAll( open = true) {
244
245
  this.forEach((node: TreeNode) => {
245
- node.open = open;
246
+ if( node.children ) {
247
+ node.open = open;
248
+ }
246
249
  });
247
250
 
248
251
  this.__update( )
@@ -657,6 +660,7 @@ export class TreeView extends VLayout<TreeViewProps, TreeViewEventMap> {
657
660
  text: node.name,
658
661
  parent: node.parent,
659
662
  cls: node.cls
663
+ icon: node.icon
660
664
  };
661
665
 
662
666
  if (!node.leaf) {
@@ -27,4 +27,4 @@
27
27
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
  **/
29
29
 
30
- export const x4js_version = "1.5.11";
30
+ export const x4js_version = "1.5.12";
@@ -36,10 +36,11 @@ export interface EvExpand extends BasicEvent {
36
36
  }
37
37
  export interface HierarchicalNode {
38
38
  id: number;
39
- parent: number;
40
39
  name: string;
41
- cls: string;
42
- leaf: boolean;
40
+ parent?: number;
41
+ cls?: string;
42
+ leaf?: boolean;
43
+ icon?: string;
43
44
  }
44
45
  export interface TreeNode {
45
46
  id: any;
@@ -26,4 +26,4 @@
26
26
  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
27
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
  **/
29
- export declare const x4js_version = "1.5.11";
29
+ export declare const x4js_version = "1.5.12";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x4js",
3
- "version": "1.5.11",
3
+ "version": "1.5.12",
4
4
  "description": "X4js core files",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",