You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@genesis-community/golden-layout

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@genesis-community/golden-layout - npm Package Compare versions

Comparing version

to
2.6.2

13

dist/cjs/ts/controls/header.js

@@ -282,13 +282,10 @@ "use strict";

handleTabInitiatedDragStartEvent(x, y, dragListener, componentItem) {
if (!this._canRemoveComponent) {
dragListener.cancelDrag();
componentItem.isDragged = true;
if (this._componentDragStartEvent === undefined) {
throw new internal_error_1.UnexpectedUndefinedError('HHTDSE22294');
}
else {
if (this._componentDragStartEvent === undefined) {
throw new internal_error_1.UnexpectedUndefinedError('HHTDSE22294');
}
else {
this._componentDragStartEvent(x, y, dragListener, componentItem);
}
this._componentDragStartEvent(x, y, dragListener, componentItem);
}
componentItem.isDragged = false;
}

@@ -295,0 +292,0 @@ /** @internal */

@@ -27,2 +27,4 @@ "use strict";

this._popInParentIds = [];
/** @internal */
this._isDragged = false;
this._type = config.type;

@@ -48,2 +50,8 @@ this._id = config.id;

set id(value) { this._id = value; }
set isDragged(b) {
this._isDragged = b;
if (this.isComponent) {
this.parent.isDragged = b;
}
}
/** @internal */

@@ -102,3 +110,5 @@ get popInParentIds() { return this._popInParentIds; }

*/
if (!this.isGround && this._isClosable === true) {
if (!this.isGround && (this._isClosable === true
/* Temporarily remove this so we can drag it to a different location */
|| this._isDragged)) {
if (this._parent === null) {

@@ -105,0 +115,0 @@ throw new internal_error_1.UnexpectedNullError('CIUC00874');

@@ -279,13 +279,10 @@ import { UnexpectedUndefinedError } from '../errors/internal-error';

handleTabInitiatedDragStartEvent(x, y, dragListener, componentItem) {
if (!this._canRemoveComponent) {
dragListener.cancelDrag();
componentItem.isDragged = true;
if (this._componentDragStartEvent === undefined) {
throw new UnexpectedUndefinedError('HHTDSE22294');
}
else {
if (this._componentDragStartEvent === undefined) {
throw new UnexpectedUndefinedError('HHTDSE22294');
}
else {
this._componentDragStartEvent(x, y, dragListener, componentItem);
}
this._componentDragStartEvent(x, y, dragListener, componentItem);
}
componentItem.isDragged = false;
}

@@ -292,0 +289,0 @@ /** @internal */

@@ -24,2 +24,4 @@ import { AssertError, UnexpectedNullError } from '../errors/internal-error';

this._popInParentIds = [];
/** @internal */
this._isDragged = false;
this._type = config.type;

@@ -45,2 +47,8 @@ this._id = config.id;

set id(value) { this._id = value; }
set isDragged(b) {
this._isDragged = b;
if (this.isComponent) {
this.parent.isDragged = b;
}
}
/** @internal */

@@ -99,3 +107,5 @@ get popInParentIds() { return this._popInParentIds; }

*/
if (!this.isGround && this._isClosable === true) {
if (!this.isGround && (this._isClosable === true
/* Temporarily remove this so we can drag it to a different location */
|| this._isDragged)) {
if (this._parent === null) {

@@ -102,0 +112,0 @@ throw new UnexpectedNullError('CIUC00874');

{
"name": "@genesis-community/golden-layout",
"version": "2.6.1",
"version": "2.6.2",
"description": "A @genesis-community fork of the GoldenLayout multi-screen javascript Layout manager",

@@ -5,0 +5,0 @@ "keywords": [

@@ -361,11 +361,9 @@ import { UnexpectedUndefinedError } from '../errors/internal-error';

private handleTabInitiatedDragStartEvent(x: number, y: number, dragListener: DragListener, componentItem: ComponentItem) {
if (!this._canRemoveComponent) {
dragListener.cancelDrag();
componentItem.isDragged = true;
if (this._componentDragStartEvent === undefined) {
throw new UnexpectedUndefinedError('HHTDSE22294');
} else {
if (this._componentDragStartEvent === undefined) {
throw new UnexpectedUndefinedError('HHTDSE22294');
} else {
this._componentDragStartEvent(x, y, dragListener, componentItem);
}
this._componentDragStartEvent(x, y, dragListener, componentItem);
}
componentItem.isDragged = false;
}

@@ -372,0 +370,0 @@

@@ -37,2 +37,4 @@ import { ResolvedItemConfig } from '../config/resolved-config'

private _isInitialised;
/** @internal */
private _isDragged = false;

@@ -57,2 +59,8 @@ /** @internal */

set id(value: string) { this._id = value; }
set isDragged(b: boolean) {
this._isDragged = b;
if (this.isComponent) {
(this.parent as Stack).isDragged = b;
}
}
/** @internal */

@@ -161,3 +169,6 @@ get popInParentIds(): string[] { return this._popInParentIds; }

*/
if (!this.isGround && this._isClosable === true) {
if (!this.isGround && (
this._isClosable === true
/* Temporarily remove this so we can drag it to a different location */
|| this._isDragged)) {
if (this._parent === null) {

@@ -164,0 +175,0 @@ throw new UnexpectedNullError('CIUC00874');

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display