🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@slickgrid-universal/empty-warning-component

Package Overview
Dependencies
Maintainers
0
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slickgrid-universal/empty-warning-component - npm Package Compare versions

Comparing version

to
5.12.0

8

dist/cjs/slick-empty-warning.component.js

@@ -48,3 +48,3 @@ "use strict";

const rightElementFrozenMarginLeft = mergedOptions.frozenRightViewportMarginLeft ?? 0;
const isFrozenGrid = (this.gridOptions?.frozenColumn !== undefined && this.gridOptions.frozenColumn >= 0);
const isFrozenGrid = this.gridOptions?.frozenColumn !== undefined && this.gridOptions.frozenColumn >= 0;
const leftViewportMarginLeft = typeof leftElementMarginLeft === 'string' ? leftElementMarginLeft : `${leftElementMarginLeft}px`;

@@ -66,3 +66,3 @@ const rightViewportMarginLeft = typeof rightElementMarginLeft === 'string' ? rightElementMarginLeft : `${rightElementMarginLeft}px`;

// (default autoHeight for message - 100px you can add as param if needed)
let leftPaneMinHeight = (leftPaneHeight !== null && leftPaneHeight < 100) ? leftPaneHeight : 100;
let leftPaneMinHeight = leftPaneHeight !== null && leftPaneHeight < 100 ? leftPaneHeight : 100;
leftPaneMinHeight += filterRowHeight + preHeaderRowHeight; // add preHeader & filter height when enabled

@@ -97,3 +97,3 @@ leftPaneElm.style.minHeight = `${leftPaneMinHeight}px`;

if (isFrozenGrid && isShowing) {
leftDisplay = (mergedOptions.hideFrozenLeftWarning) ? 'none' : 'flex';
leftDisplay = mergedOptions.hideFrozenLeftWarning ? 'none' : 'flex';
}

@@ -109,3 +109,3 @@ this._warningLeftElement.style.display = leftDisplay;

if (isFrozenGrid && isShowing) {
rightDisplay = (mergedOptions.hideFrozenRightWarning) ? 'none' : 'flex';
rightDisplay = mergedOptions.hideFrozenRightWarning ? 'none' : 'flex';
}

@@ -112,0 +112,0 @@ this._warningRightElement.style.display = rightDisplay;

@@ -1,2 +0,2 @@

import { classNameToList } from '@slickgrid-universal/common';
import { classNameToList, } from '@slickgrid-universal/common';
export class SlickEmptyWarningComponent {

@@ -45,3 +45,3 @@ constructor() {

const rightElementFrozenMarginLeft = mergedOptions.frozenRightViewportMarginLeft ?? 0;
const isFrozenGrid = (this.gridOptions?.frozenColumn !== undefined && this.gridOptions.frozenColumn >= 0);
const isFrozenGrid = this.gridOptions?.frozenColumn !== undefined && this.gridOptions.frozenColumn >= 0;
const leftViewportMarginLeft = typeof leftElementMarginLeft === 'string' ? leftElementMarginLeft : `${leftElementMarginLeft}px`;

@@ -63,3 +63,3 @@ const rightViewportMarginLeft = typeof rightElementMarginLeft === 'string' ? rightElementMarginLeft : `${rightElementMarginLeft}px`;

// (default autoHeight for message - 100px you can add as param if needed)
let leftPaneMinHeight = (leftPaneHeight !== null && leftPaneHeight < 100) ? leftPaneHeight : 100;
let leftPaneMinHeight = leftPaneHeight !== null && leftPaneHeight < 100 ? leftPaneHeight : 100;
leftPaneMinHeight += filterRowHeight + preHeaderRowHeight; // add preHeader & filter height when enabled

@@ -94,3 +94,3 @@ leftPaneElm.style.minHeight = `${leftPaneMinHeight}px`;

if (isFrozenGrid && isShowing) {
leftDisplay = (mergedOptions.hideFrozenLeftWarning) ? 'none' : 'flex';
leftDisplay = mergedOptions.hideFrozenLeftWarning ? 'none' : 'flex';
}

@@ -106,3 +106,3 @@ this._warningLeftElement.style.display = leftDisplay;

if (isFrozenGrid && isShowing) {
rightDisplay = (mergedOptions.hideFrozenRightWarning) ? 'none' : 'flex';
rightDisplay = mergedOptions.hideFrozenRightWarning ? 'none' : 'flex';
}

@@ -109,0 +109,0 @@ this._warningRightElement.style.display = rightDisplay;

{
"name": "@slickgrid-universal/empty-warning-component",
"version": "5.11.0",
"version": "5.12.0",
"description": "Slick Empty Warning Component - Vanilla Implementation of an Empty Dataset Warning Component",

@@ -41,5 +41,5 @@ "main": "./dist/cjs/index.js",

"dependencies": {
"@slickgrid-universal/common": "~5.11.0"
"@slickgrid-universal/common": "~5.12.0"
},
"gitHead": "894ab0a2783d6f7c4cb9d28d4b81421eb9e05a89"
"gitHead": "d7e892ebc1727d7c83cc1e5cc80db8302eef4f63"
}

@@ -8,3 +8,3 @@ import {

type SlickGrid,
type TranslaterService
type TranslaterService,
} from '@slickgrid-universal/common';

@@ -61,3 +61,3 @@

const rightElementFrozenMarginLeft = mergedOptions.frozenRightViewportMarginLeft ?? 0;
const isFrozenGrid = (this.gridOptions?.frozenColumn !== undefined && this.gridOptions.frozenColumn >= 0);
const isFrozenGrid = this.gridOptions?.frozenColumn !== undefined && this.gridOptions.frozenColumn >= 0;
const leftViewportMarginLeft = typeof leftElementMarginLeft === 'string' ? leftElementMarginLeft : `${leftElementMarginLeft}px`;

@@ -82,3 +82,3 @@ const rightViewportMarginLeft = typeof rightElementMarginLeft === 'string' ? rightElementMarginLeft : `${rightElementMarginLeft}px`;

// (default autoHeight for message - 100px you can add as param if needed)
let leftPaneMinHeight = (leftPaneHeight !== null && leftPaneHeight < 100) ? leftPaneHeight : 100;
let leftPaneMinHeight = leftPaneHeight !== null && leftPaneHeight < 100 ? leftPaneHeight : 100;
leftPaneMinHeight += filterRowHeight + preHeaderRowHeight; // add preHeader & filter height when enabled

@@ -118,3 +118,3 @@ leftPaneElm.style.minHeight = `${leftPaneMinHeight}px`;

if (isFrozenGrid && isShowing) {
leftDisplay = (mergedOptions.hideFrozenLeftWarning) ? 'none' : 'flex';
leftDisplay = mergedOptions.hideFrozenLeftWarning ? 'none' : 'flex';
}

@@ -124,3 +124,4 @@ this._warningLeftElement.style.display = leftDisplay;

// use correct left margin (defaults to 40% on regular grid or 10px on frozen grid)
const leftFrozenMarginLeft = typeof leftElementFrozenMarginLeft === 'string' ? leftElementFrozenMarginLeft : `${leftElementFrozenMarginLeft}px`;
const leftFrozenMarginLeft =
typeof leftElementFrozenMarginLeft === 'string' ? leftElementFrozenMarginLeft : `${leftElementFrozenMarginLeft}px`;
this._warningLeftElement.style.marginLeft = isFrozenGrid ? leftFrozenMarginLeft : leftViewportMarginLeft;

@@ -133,3 +134,3 @@ }

if (isFrozenGrid && isShowing) {
rightDisplay = (mergedOptions.hideFrozenRightWarning) ? 'none' : 'flex';
rightDisplay = mergedOptions.hideFrozenRightWarning ? 'none' : 'flex';
}

@@ -139,3 +140,4 @@ this._warningRightElement.style.display = rightDisplay;

// use correct left margin (defaults to 40% on regular grid or 10px on frozen grid)
const rightFrozenMarginLeft = typeof rightElementFrozenMarginLeft === 'string' ? rightElementFrozenMarginLeft : `${rightElementFrozenMarginLeft}px`;
const rightFrozenMarginLeft =
typeof rightElementFrozenMarginLeft === 'string' ? rightElementFrozenMarginLeft : `${rightElementFrozenMarginLeft}px`;
this._warningRightElement.style.marginLeft = isFrozenGrid ? rightFrozenMarginLeft : rightViewportMarginLeft;

@@ -146,2 +148,2 @@ }

}
}
}

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