mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-04 00:24:14 +01:00
Use npm for gridstack, remove unnecessary folders using our dedicated service
This commit is contained in:
27
node_modules/gridstack/dist/gridstack.js
generated
vendored
27
node_modules/gridstack/dist/gridstack.js
generated
vendored
@@ -1,12 +1,12 @@
|
||||
/*!
|
||||
* GridStack 12.3.2
|
||||
* GridStack 12.4.2
|
||||
* https://gridstackjs.com/
|
||||
*
|
||||
* Copyright (c) 2021-2025 Alain Dumesny
|
||||
* see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
|
||||
*/
|
||||
import { GridStackEngine } from './gridstack-engine';
|
||||
import { Utils, obsolete } from './utils';
|
||||
import { Utils } from './utils';
|
||||
import { gridDefaults } from './types';
|
||||
/*
|
||||
* and include D&D by default
|
||||
@@ -1376,6 +1376,8 @@ class GridStack {
|
||||
if (o.maxRow !== undefined)
|
||||
opts.maxRow = o.maxRow;
|
||||
}
|
||||
if (o.lazyLoad !== undefined)
|
||||
opts.lazyLoad = o.lazyLoad;
|
||||
if (o.children?.length)
|
||||
this.load(o.children);
|
||||
// TBD if we have a real need for these (more complex code)
|
||||
@@ -1673,17 +1675,7 @@ class GridStack {
|
||||
* alert('Not enough free space to place the widget');
|
||||
* }
|
||||
*/
|
||||
willItFit(node) {
|
||||
// support legacy call for now
|
||||
if (arguments.length > 1) {
|
||||
console.warn('gridstack.ts: `willItFit(x,y,w,h,autoPosition)` is deprecated. Use `willItFit({x, y,...})`. It will be removed soon');
|
||||
// eslint-disable-next-line prefer-rest-params
|
||||
const a = arguments;
|
||||
let i = 0, w = { x: a[i++], y: a[i++], w: a[i++], h: a[i++], autoPosition: a[i++] };
|
||||
return this.willItFit(w);
|
||||
}
|
||||
return this.engine.willItFit(node);
|
||||
}
|
||||
willItFit(node) { return this.engine.willItFit(node); }
|
||||
/** @internal */
|
||||
_triggerChangeEvent() {
|
||||
if (this.engine.batchMode)
|
||||
@@ -1800,8 +1792,9 @@ class GridStack {
|
||||
el.style.height = n.h > 1 ? `calc(${n.h} * var(--gs-cell-height))` : null;
|
||||
}
|
||||
// NOTE: those are technically not needed anymore (v12+) as we have CSS vars for everything, but some users depends on them to render item size using CSS
|
||||
n.x > 0 ? el.setAttribute('gs-x', String(n.x)) : el.removeAttribute('gs-x');
|
||||
n.y > 0 ? el.setAttribute('gs-y', String(n.y)) : el.removeAttribute('gs-y');
|
||||
// ALways write x,y otherwise it could be autoPositioned incorrectly #3181
|
||||
el.setAttribute('gs-x', String(n.x));
|
||||
el.setAttribute('gs-y', String(n.y));
|
||||
n.w > 1 ? el.setAttribute('gs-w', String(n.w)) : el.removeAttribute('gs-w');
|
||||
n.h > 1 ? el.setAttribute('gs-h', String(n.h)) : el.removeAttribute('gs-h');
|
||||
return this;
|
||||
@@ -2851,8 +2844,6 @@ class GridStack {
|
||||
this.engine.restoreInitial();
|
||||
}
|
||||
}
|
||||
// legacy method removed
|
||||
commit() { obsolete(this, this.batchUpdate(false), 'commit', 'batchUpdate', '5.2'); return this; }
|
||||
}
|
||||
/**
|
||||
* callback to create the content of widgets so the app can control how to store and restore it
|
||||
@@ -2867,6 +2858,6 @@ GridStack.Utils = Utils;
|
||||
/** scoping so users can call new GridStack.Engine(12) for example */
|
||||
GridStack.Engine = GridStackEngine;
|
||||
/** @internal current version compiled in code */
|
||||
GridStack.GDRev = '12.3.2';
|
||||
GridStack.GDRev = '12.4.2';
|
||||
export { GridStack };
|
||||
//# sourceMappingURL=gridstack.js.map
|
||||
Reference in New Issue
Block a user