gridstack
Advanced tools
Comparing version 11.1.1 to 11.1.2
@@ -0,0 +0,0 @@ export * from './lib/gridstack-item.component'; |
@@ -0,0 +0,0 @@ import { NgCompInputs, NgGridStackWidget } from './gridstack.component'; |
/** | ||
* gridstack-item.component.ts 11.1.1 | ||
* gridstack-item.component.ts 11.1.2 | ||
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license | ||
@@ -36,3 +36,3 @@ */ | ||
static ɵfac: i0.ɵɵFactoryDeclaration<GridstackItemComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<GridstackItemComponent, "gridstack-item", never, { "options": { "alias": "options"; "required": false; }; }, {}, never, ["*"], false, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<GridstackItemComponent, "gridstack-item", never, { "options": "options"; }, {}, never, ["*"], true>; | ||
} |
/** | ||
* gridstack.component.ts 11.1.1 | ||
* gridstack.component.ts 11.1.2 | ||
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license | ||
@@ -11,14 +11,14 @@ */ | ||
/** events handlers emitters signature for different events */ | ||
export type eventCB = { | ||
export declare type eventCB = { | ||
event: Event; | ||
}; | ||
export type elementCB = { | ||
export declare type elementCB = { | ||
event: Event; | ||
el: GridItemHTMLElement; | ||
}; | ||
export type nodesCB = { | ||
export declare type nodesCB = { | ||
event: Event; | ||
nodes: GridStackNode[]; | ||
}; | ||
export type droppedCB = { | ||
export declare type droppedCB = { | ||
event: Event; | ||
@@ -28,3 +28,3 @@ previousNode: GridStackNode; | ||
}; | ||
export type NgCompInputs = { | ||
export declare type NgCompInputs = { | ||
[key: string]: any; | ||
@@ -53,3 +53,3 @@ }; | ||
/** selector string to runtime Type mapping */ | ||
export type SelectorToType = { | ||
export declare type SelectorToType = { | ||
[key: string]: Type<Object>; | ||
@@ -126,3 +126,3 @@ }; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<GridstackComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<GridstackComponent, "gridstack", never, { "options": { "alias": "options"; "required": false; }; "isEmpty": { "alias": "isEmpty"; "required": false; }; }, { "addedCB": "addedCB"; "changeCB": "changeCB"; "disableCB": "disableCB"; "dragCB": "dragCB"; "dragStartCB": "dragStartCB"; "dragStopCB": "dragStopCB"; "droppedCB": "droppedCB"; "enableCB": "enableCB"; "removedCB": "removedCB"; "resizeCB": "resizeCB"; "resizeStartCB": "resizeStartCB"; "resizeStopCB": "resizeStopCB"; }, ["gridstackItems"], ["[empty-content]", "*"], false, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<GridstackComponent, "gridstack", never, { "options": "options"; "isEmpty": "isEmpty"; }, { "addedCB": "addedCB"; "changeCB": "changeCB"; "disableCB": "disableCB"; "dragCB": "dragCB"; "dragStartCB": "dragStartCB"; "dragStopCB": "dragStopCB"; "droppedCB": "droppedCB"; "enableCB": "enableCB"; "removedCB": "removedCB"; "resizeCB": "resizeCB"; "resizeStartCB": "resizeStartCB"; "resizeStopCB": "resizeStopCB"; }, ["gridstackItems"], ["[empty-content]", "*"], true>; | ||
} | ||
@@ -129,0 +129,0 @@ /** |
import * as i0 from "@angular/core"; | ||
import * as i1 from "./gridstack.component"; | ||
import * as i2 from "./gridstack-item.component"; | ||
import * as i3 from "@angular/common"; | ||
export declare class GridstackModule { | ||
constructor(); | ||
static ɵfac: i0.ɵɵFactoryDeclaration<GridstackModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<GridstackModule, [typeof i1.GridstackComponent, typeof i2.GridstackItemComponent], [typeof i3.CommonModule], [typeof i1.GridstackComponent, typeof i2.GridstackItemComponent]>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<GridstackModule, never, [typeof i1.GridstackComponent, typeof i2.GridstackItemComponent], [typeof i1.GridstackComponent, typeof i2.GridstackItemComponent]>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<GridstackModule>; | ||
} |
@@ -11,3 +11,7 @@ { | ||
}, | ||
"module": "fesm2022/gridstack-angular.mjs", | ||
"module": "fesm2015/gridstack-angular.mjs", | ||
"es2020": "fesm2020/gridstack-angular.mjs", | ||
"esm2020": "esm2020/gridstack-angular.mjs", | ||
"fesm2020": "fesm2020/gridstack-angular.mjs", | ||
"fesm2015": "fesm2015/gridstack-angular.mjs", | ||
"typings": "index.d.ts", | ||
@@ -20,5 +24,7 @@ "exports": { | ||
"types": "./index.d.ts", | ||
"esm2022": "./esm2022/gridstack-angular.mjs", | ||
"esm": "./esm2022/gridstack-angular.mjs", | ||
"default": "./fesm2022/gridstack-angular.mjs" | ||
"esm2020": "./esm2020/gridstack-angular.mjs", | ||
"es2020": "./fesm2020/gridstack-angular.mjs", | ||
"es2015": "./fesm2015/gridstack-angular.mjs", | ||
"node": "./fesm2015/gridstack-angular.mjs", | ||
"default": "./fesm2020/gridstack-angular.mjs" | ||
} | ||
@@ -25,0 +31,0 @@ }, |
@@ -32,5 +32,33 @@ # Angular wrapper | ||
in your module Code | ||
Standalone Component Code | ||
```ts | ||
import { GridStackOptions } from 'gridstack'; | ||
import { GridstackComponent, GridstackItemComponent } from 'gridstack/dist/angular'; | ||
@Component({ | ||
imports: [ // SKIP if doing module import instead (next) | ||
GridstackComponent, | ||
GridstackItemComponent | ||
] | ||
... | ||
}) | ||
export class MyComponent { | ||
// sample grid options + items to load... | ||
public gridOptions: GridStackOptions = { | ||
margin: 5, | ||
children: [ // or call load()/addWidget() with same data | ||
{x:0, y:0, minW:2, content:'Item 1'}, | ||
{x:1, y:0, content:'Item 2'}, | ||
{x:0, y:1, content:'Item 3'}, | ||
] | ||
} | ||
} | ||
``` | ||
IF doing module import instead of standalone, you will also need this: | ||
```ts | ||
import { GridstackModule } from 'gridstack/dist/angular'; | ||
@@ -46,18 +74,2 @@ | ||
Component Code | ||
```ts | ||
import { GridStackOptions } from 'gridstack'; | ||
// sample grid options + items to load... | ||
public gridOptions: GridStackOptions = { | ||
margin: 5, | ||
children: [ // or call load()/addWidget() with same data | ||
{x:0, y:0, minW:2, content:'Item 1'}, | ||
{x:1, y:0, content:'Item 2'}, | ||
{x:0, y:1, content:'Item 3'}, | ||
] | ||
} | ||
``` | ||
# More Complete example | ||
@@ -102,6 +114,6 @@ | ||
// .... in your module for example | ||
// ...in your module (classic), OR your ng19 app.config provideEnvironmentInitializer call this: | ||
constructor() { | ||
// register all our dynamic components types created by the grid | ||
GridstackComponent.addComponentToSelectorType([AComponent, BComponent]); | ||
GridstackComponent.addComponentToSelectorType([AComponent, BComponent]) ; | ||
} | ||
@@ -180,6 +192,7 @@ | ||
- This wrapper needs: | ||
- gridstack v8 to run as it needs the latest changes (use older version that matches GS versions) | ||
- Angular 14+ for dynamic `createComponent()` API | ||
- gridstack v8+ to run as it needs the latest changes (use older version that matches GS versions) | ||
- <b>Angular 14+</b> for dynamic `createComponent()` API and Standalone Components (verified against 19+) | ||
NOTE: if you are on Angular 13 or below: copy the wrapper code over (or patch it - see main page example) and change `createComponent()` calls to use old API instead: | ||
NOTE2: now that we're using standalone, you will also need to remove `standalone: true` and `imports` on each component so you will to copy those locally (or use <11.1.2 version) | ||
```ts | ||
@@ -186,0 +199,0 @@ protected resolver: ComponentFactoryResolver, |
/** | ||
* gridstack-item.component.ts 11.1.1 | ||
* gridstack-item.component.ts 11.1.2 | ||
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* gridstack-item.component.ts 11.1.1 | ||
* gridstack-item.component.ts 11.1.2 | ||
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license | ||
@@ -32,2 +32,3 @@ */ | ||
`], | ||
standalone: true, | ||
// changeDetection: ChangeDetectionStrategy.OnPush, // IFF you want to optimize and control when ChangeDetection needs to happen... | ||
@@ -34,0 +35,0 @@ }) |
/** | ||
* gridstack.component.ts 11.1.1 | ||
* gridstack.component.ts 11.1.2 | ||
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license | ||
@@ -8,2 +8,3 @@ */ | ||
OnDestroy, OnInit, Output, QueryList, Type, ViewChild, ViewContainerRef, reflectComponentType, ComponentRef } from '@angular/core'; | ||
import { NgIf } from '@angular/common'; | ||
import { Subscription } from 'rxjs'; | ||
@@ -64,2 +65,4 @@ import { GridHTMLElement, GridItemHTMLElement, GridStack, GridStackNode, GridStackOptions, GridStackWidget } from 'gridstack'; | ||
`], | ||
standalone: true, | ||
imports: [NgIf] | ||
// changeDetection: ChangeDetectionStrategy.OnPush, // IFF you want to optimize and control when ChangeDetection needs to happen... | ||
@@ -135,2 +138,9 @@ }) | ||
) { | ||
// set globally our method to create the right widget type | ||
if (!GridStack.addRemoveCB) { | ||
GridStack.addRemoveCB = gsCreateNgComponents; | ||
} | ||
if (!GridStack.saveCB) { | ||
GridStack.saveCB = gsSaveAdditionalNgInfo; | ||
} | ||
this.el._gridComp = this; | ||
@@ -137,0 +147,0 @@ } |
/** | ||
* gridstack.component.ts 11.1.1 | ||
* gridstack.component.ts 11.1.2 | ||
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license | ||
@@ -7,13 +7,9 @@ */ | ||
import { NgModule } from "@angular/core"; | ||
import { CommonModule } from '@angular/common'; | ||
import { GridStack } from "gridstack"; | ||
import { GridstackComponent, gsCreateNgComponents, gsSaveAdditionalNgInfo } from "./gridstack.component"; | ||
import { GridstackComponent } from "./gridstack.component"; | ||
import { GridstackItemComponent } from "./gridstack-item.component"; | ||
// @deprecated use GridstackComponent and GridstackItemComponent as standalone components | ||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
], | ||
declarations: [ | ||
GridstackComponent, | ||
@@ -27,8 +23,2 @@ GridstackItemComponent, | ||
}) | ||
export class GridstackModule { | ||
constructor() { | ||
// set globally our method to create the right widget type | ||
GridStack.addRemoveCB = gsCreateNgComponents; | ||
GridStack.saveCB = gsSaveAdditionalNgInfo; | ||
} | ||
} | ||
export class GridstackModule {} |
/** | ||
* dd-base-impl.ts 11.1.1 | ||
* dd-base-impl.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-base-impl.ts 11.1.1 | ||
* dd-base-impl.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-draggable.ts 11.1.1 | ||
* dd-draggable.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-draggable.ts 11.1.1 | ||
* dd-draggable.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -183,3 +183,3 @@ */ | ||
document.removeEventListener('mouseup', this._mouseUp, true); | ||
if (isTouch) { | ||
if (isTouch && e.currentTarget) { // destroy() during nested grid call us again wit fake _mouseUp | ||
e.currentTarget.removeEventListener('touchmove', touchmove, true); | ||
@@ -186,0 +186,0 @@ e.currentTarget.removeEventListener('touchend', touchend, true); |
/** | ||
* dd-droppable.ts 11.1.1 | ||
* dd-droppable.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-droppable.ts 11.1.1 | ||
* dd-droppable.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-elements.ts 11.1.1 | ||
* dd-elements.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-elements.ts 11.1.1 | ||
* dd-elements.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-gridstack.ts 11.1.1 | ||
* dd-gridstack.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-gridstack.ts 11.1.1 | ||
* dd-gridstack.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-manager.ts 11.1.1 | ||
* dd-manager.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-manager.ts 11.1.1 | ||
* dd-manager.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-resizable-handle.ts 11.1.1 | ||
* dd-resizable-handle.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-resizable-handle.ts 11.1.1 | ||
* dd-resizable-handle.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-resizable.ts 11.1.1 | ||
* dd-resizable.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-resizable.ts 11.1.1 | ||
* dd-resizable.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* touch.ts 11.1.1 | ||
* touch.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* touch.ts 11.1.1 | ||
* touch.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* dd-base-impl.ts 11.1.1 | ||
* dd-base-impl.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-base-impl.ts 11.1.1 | ||
* dd-base-impl.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-draggable.ts 11.1.1 | ||
* dd-draggable.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-draggable.ts 11.1.1 | ||
* dd-draggable.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -224,3 +224,3 @@ */ | ||
document.removeEventListener('mouseup', this._mouseUp, true); | ||
if (dd_touch_1.isTouch) { | ||
if (dd_touch_1.isTouch && e.currentTarget) { // destroy() during nested grid call us again wit fake _mouseUp | ||
e.currentTarget.removeEventListener('touchmove', dd_touch_1.touchmove, true); | ||
@@ -227,0 +227,0 @@ e.currentTarget.removeEventListener('touchend', dd_touch_1.touchend, true); |
/** | ||
* dd-droppable.ts 11.1.1 | ||
* dd-droppable.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-droppable.ts 11.1.1 | ||
* dd-droppable.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-elements.ts 11.1.1 | ||
* dd-elements.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-elements.ts 11.1.1 | ||
* dd-elements.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-gridstack.ts 11.1.1 | ||
* dd-gridstack.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-gridstack.ts 11.1.1 | ||
* dd-gridstack.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-manager.ts 11.1.1 | ||
* dd-manager.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-manager.ts 11.1.1 | ||
* dd-manager.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-resizable-handle.ts 11.1.1 | ||
* dd-resizable-handle.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-resizable-handle.ts 11.1.1 | ||
* dd-resizable-handle.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-resizable.ts 11.1.1 | ||
* dd-resizable.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-resizable.ts 11.1.1 | ||
* dd-resizable.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* touch.ts 11.1.1 | ||
* touch.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* touch.ts 11.1.1 | ||
* touch.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/*! | ||
* GridStack 11.1.1 | ||
* GridStack 11.1.2 | ||
* https://gridstackjs.com/ | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* gridstack-engine.ts 11.1.1 | ||
* gridstack-engine.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* gridstack-engine.ts 11.1.1 | ||
* gridstack-engine.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* gridstack-poly.ts 11.1.1 used for IE and older browser support (not supported in v2-v4.3.1, but again in v4.4) | ||
* gridstack-poly.ts 11.1.2 used for IE and older browser support (not supported in v2-v4.3.1, but again in v4.4) | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/*! | ||
* GridStack 11.1.1 | ||
* GridStack 11.1.2 | ||
* https://gridstackjs.com/ | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* types.ts 11.1.1 | ||
* types.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -175,3 +175,4 @@ */ | ||
/** set to true if all grid items (by default, but item can also override) height should be based on content size instead of WidgetItem.h to avoid v-scrollbars. | ||
Note: this is still row based, not pixels, so it will use ceil(getBoundingClientRect().height / getCellHeight()) */ | ||
* Note: this is still row based, not pixels, so it will use ceil(getBoundingClientRect().height / getCellHeight()) | ||
*/ | ||
sizeToContent?: boolean; | ||
@@ -178,0 +179,0 @@ /** |
"use strict"; | ||
/** | ||
* types.ts 11.1.1 | ||
* types.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* utils.ts 11.1.1 | ||
* utils.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* utils.ts 11.1.1 | ||
* utils.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/*! | ||
* GridStack 11.1.1 | ||
* GridStack 11.1.2 | ||
* https://gridstackjs.com/ | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* gridstack-engine.ts 11.1.1 | ||
* gridstack-engine.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* gridstack-engine.ts 11.1.1 | ||
* gridstack-engine.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/*! | ||
* GridStack 11.1.1 | ||
* GridStack 11.1.2 | ||
* https://gridstackjs.com/ | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* types.ts 11.1.1 | ||
* types.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -175,3 +175,4 @@ */ | ||
/** set to true if all grid items (by default, but item can also override) height should be based on content size instead of WidgetItem.h to avoid v-scrollbars. | ||
Note: this is still row based, not pixels, so it will use ceil(getBoundingClientRect().height / getCellHeight()) */ | ||
* Note: this is still row based, not pixels, so it will use ceil(getBoundingClientRect().height / getCellHeight()) | ||
*/ | ||
sizeToContent?: boolean; | ||
@@ -178,0 +179,0 @@ /** |
/** | ||
* types.ts 11.1.1 | ||
* types.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* utils.ts 11.1.1 | ||
* utils.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* utils.ts 11.1.1 | ||
* utils.ts 11.1.2 | ||
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
{ | ||
"name": "gridstack", | ||
"version": "11.1.1", | ||
"version": "11.1.2", | ||
"license": "MIT", | ||
@@ -31,3 +31,3 @@ "author": "Alain Dumesny <alaind831+github@gmail.com> (https://github.com/adumesny)", | ||
"build:es5": "webpack --config es5/webpack.config.js && tsc --stripInternal --project es5/tsconfig.json", | ||
"build:ng": "cd angular && yarn --no-progress && yarn build lib && rm ../dist/angular/.npmignore", | ||
"build:ng": "cd angular && yarn --no-progress && yarn build lib", | ||
"w": "webpack", | ||
@@ -34,0 +34,0 @@ "t": "rm -rf dist/* && grunt && tsc --stripInternal", |
@@ -185,3 +185,3 @@ # gridstack.js | ||
```ts | ||
import { GridStack, GridStackEngine, GridStackNod, GridStackMoveOpts } from 'gridstack'; | ||
import { GridStack, GridStackEngine, GridStackNode, GridStackMoveOpts } from 'gridstack'; | ||
@@ -188,0 +188,0 @@ class CustomEngine extends GridStackEngine { |
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 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 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 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 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 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 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 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 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 not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2936760
118
17470