Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@digital-realty/ix-tree

Package Overview
Dependencies
Maintainers
5
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digital-realty/ix-tree - npm Package Compare versions

Comparing version 1.0.13 to 1.0.15

0

dist/IIxTreeNode.d.ts

@@ -0,0 +0,0 @@ export interface IIxTreeNode {

export {};
//# sourceMappingURL=IIxTreeNode.js.map
export { IxTree } from './IxTree.js';
export { IxTreeNode } from './IxTreeNode.js';
export { IIxTreeNode } from './IIxTreeNode.js';
export { IxTree } from './IxTree.js';
export { IxTreeNode } from './IxTreeNode.js';
//# sourceMappingURL=index.js.map
import { IxTreeNode } from './IxTreeNode.js';
customElements.define('ix-tree-node', IxTreeNode);
//# sourceMappingURL=ix-tree-node.js.map
export declare const IxTreeStyles: import("lit").CSSResult;

8

dist/ix-tree-styles.js

@@ -6,3 +6,3 @@ import { css } from 'lit';

:host {
--tree-node-spacer: var(--ix-sys-spacer, 0.7rem);
--tree-node-spacer: var(--ix-sys-spacer, 0.6rem);
--tree-node-icon-size: calc(var(--tree-node-spacer) * 4);

@@ -41,2 +41,3 @@ }

padding: 0.1rem;
border-left: 3px solid rgba(20, 86, 224, 0);
}

@@ -48,6 +49,7 @@ .ix-tree-node__icon-size {

color: #092241;
display: flex;
flex-grow: 1;
flex-grow: 0;
padding: 0.25rem;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}

@@ -54,0 +56,0 @@ .ix-tree-node__selected {

import { IxTree } from './IxTree.js';
customElements.define('ix-tree', IxTree);
//# sourceMappingURL=ix-tree.js.map

@@ -19,2 +19,3 @@ import '@digital-realty/ix-icon/ix-icon.js';

private onTreeNodeClick;
private dispatchTreeNodeExpandToggle;
private onTreeNodeToggle;

@@ -21,0 +22,0 @@ private onTreeNodeCheck;

@@ -33,2 +33,9 @@ import { __decorate } from "tslib";

}
dispatchTreeNodeExpandToggle(e) {
this.dispatchEvent(new CustomEvent('on-tree-node-expand-toggle', {
detail: {
message: e.detail.message,
},
}));
}
onTreeNodeToggle(e) {

@@ -40,3 +47,3 @@ const newRootNode = { ...this._rootNode };

this._activeItemId = node.id;
this.onTreeNodeClick(e);
this.dispatchTreeNodeExpandToggle(e);
this.requestUpdate();

@@ -43,0 +50,0 @@ }

@@ -17,2 +17,3 @@ import '@digital-realty/ix-icon-button/ix-icon-button.js';

private _hasScrolledToActive;
private hasChildren;
private getIcon;

@@ -19,0 +20,0 @@ private onNodeClick;

@@ -10,3 +10,3 @@ import { __decorate } from "tslib";

// They need to remain in synchronization with the CSS variables defined in ix-tree-styles.ts.
const TREE_NODE_SPACER_REM = 0.7;
const TREE_NODE_SPACER_REM = 0.6;
const TREE_NODE_ICON_SIZE_REM = TREE_NODE_SPACER_REM * 4;

@@ -24,5 +24,7 @@ export class IxTreeNode extends LitElement {

}
hasChildren() {
return this.node.children !== undefined && this.node.children.length > 0;
}
getIcon(node, isExpanded) {
if (!node.children || node.children.length === 0) {
// This node does not have children; no icon is needed.
if (!this.hasChildren()) {
return nothing;

@@ -99,5 +101,3 @@ }

>
<div class="ix-tree-node__icon-size">
${this.getIcon(this.node, this.isExpanded)}
</div>
<div>${this.getIcon(this.node, this.isExpanded)}</div>
${this.checkboxEnabled

@@ -116,2 +116,3 @@ ? html `<ix-checkbox

test-id=${`${this.node.id}-on-node-click-icon-button`}
style=${this.hasChildren() ? '' : 'padding-left:2px;'}
@click=${() => this.onNodeClick(this.node)}

@@ -118,0 +119,0 @@ ></ix-icon-button>

import { IIxTreeNode } from './IIxTreeNode.js';
export declare function findChildNodeById(node: IIxTreeNode, id: string): IIxTreeNode | null;
export declare function updateNodeCheckedStatus(node: IIxTreeNode, rootNode: IIxTreeNode): void;

@@ -0,0 +0,0 @@ export function findChildNodeById(node, id) {

@@ -6,3 +6,3 @@ {

"author": "Digital Realty",
"version": "1.0.13",
"version": "1.0.15",
"type": "module",

@@ -30,6 +30,6 @@ "main": "dist/index.js",

"dependencies": {
"@digital-realty/ix-checkbox": "^1.1.8",
"@digital-realty/ix-checkbox": "^1.1.9",
"@digital-realty/ix-icon": "*",
"@digital-realty/ix-icon-button": "^1.0.19",
"@digital-realty/theme": "*",
"@digital-realty/theme": "^1.0.9",
"@lit-labs/react": "^2.1.0",

@@ -105,4 +105,3 @@ "@material/web": "^1.0.0",

"LICENSE"
],
"gitHead": "fe2bd8ebfb445aace0ae9b8716ecd3e44da227dc"
]
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc