aurelia-gridstack
Advanced tools
Comparing version 4.0.1-au2 to 5.0.0-au2
@@ -1,2 +0,10 @@ | ||
(()=>{var t={562:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a,dependencies:()=>d,name:()=>r,register:()=>u,shadowOptions:()=>n,template:()=>s});var o=i(910);const r="grid-stack-item",s='<template class="grid-stack-item" style="display: block;">\n <div class="grid-stack-item-content">\n <au-slot></au-slot>\n </div>\n</template>\n',a=s,d=[],n={mode:"open"};let h;function u(t){h||(h=o.CustomElement.define({name:r,template:s,dependencies:d,shadowOptions:n})),t.register(h)}},119:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a,dependencies:()=>d,name:()=>r,register:()=>u,shadowOptions:()=>n,template:()=>s});var o=i(910);const r="grid-stack",s='<template class="grid-stack" style="display: block;" change.trigger="handleChange($event.detail)">\n <au-slot></au-slot>\n</template>\n',a=s,d=[],n={mode:"open"};let h;function u(t){h||(h=o.CustomElement.define({name:r,template:s,dependencies:d,shadowOptions:n})),t.register(h)}},914:(t,e,i)=>{var o,r;o=[i,e,i(752),i(910),i(562),i(212),i(22),i(476),i(58),i(910)],r=function(t,e,i,o,r,s,a,d,n,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GridStackItem=void 0,r=i.__importStar(r);let u=e.GridStackItem=class{constructor(t,e){this.root=t,this.gridstack=e,this.suppressGridUpdate=!1}xChanged(){var t;void 0!==this.x?this.root.setAttribute("gs-x",this.x.toString()):this.root.removeAttribute("gs-x"),this.suppressGridUpdate||null===(t=this.gridstack.grid)||void 0===t||t.update(this.root,{x:this.x})}yChanged(){var t;void 0!==this.y?this.root.setAttribute("gs-y",this.y.toString()):this.root.removeAttribute("gs-y"),this.suppressGridUpdate||null===(t=this.gridstack.grid)||void 0===t||t.update(this.root,{y:this.y})}wChanged(){var t;void 0!==this.w?this.root.setAttribute("gs-w",this.w.toString()):this.root.removeAttribute("gs-w"),this.suppressGridUpdate||null===(t=this.gridstack.grid)||void 0===t||t.update(this.root,{w:this.w})}hChanged(){var t;void 0!==this.h?this.root.setAttribute("gs-h",this.h.toString()):this.root.removeAttribute("gs-h"),this.suppressGridUpdate||null===(t=this.gridstack.grid)||void 0===t||t.update(this.root,{h:this.h})}minWChanged(){void 0!==this.minW?this.root.setAttribute("gs-min-w",this.minW.toString()):this.root.removeAttribute("gs-min-w")}minHChanged(){void 0!==this.minH?this.root.setAttribute("gs-min-h",this.minH.toString()):this.root.removeAttribute("gs-min-h")}maxWChanged(){void 0!==this.maxW?this.root.setAttribute("gs-max-w",this.maxW.toString()):this.root.removeAttribute("gs-max-w")}maxHChanged(){void 0!==this.maxH?this.root.setAttribute("gs-max-h",this.maxH.toString()):this.root.removeAttribute("gs-max-h")}idChanged(){void 0!==this.id?this.root.setAttribute("gs-id",this.id.toString()):this.root.removeAttribute("gs-id")}noMoveChanged(){this.noMove?this.root.setAttribute("gs-no-move","true"):this.root.removeAttribute("gs-no-move")}noResizeChanged(){this.noResize?this.root.setAttribute("gs-no-resize","true"):this.root.removeAttribute("gs-no-resize")}lockedChanged(){this.locked?this.root.setAttribute("gs-locked","true"):this.root.removeAttribute("gs-locked")}autoPositionChanged(){this.autoPosition?this.root.setAttribute("gs-auto-position","true"):this.root.removeAttribute("gs-auto-position")}resizeHandlesChanged(){void 0!==this.resizeHandles?this.root.setAttribute("gs-resize-handles",this.resizeHandles.toString()):this.root.removeAttribute("gs-resize-handles")}attached(){void 0!==this.x&&this.xChanged(),void 0!==this.y&&this.yChanged(),void 0!==this.w&&this.wChanged(),void 0!==this.h&&this.hChanged(),void 0!==this.minW&&this.minWChanged(),void 0!==this.minH&&this.minHChanged(),void 0!==this.maxW&&this.maxWChanged(),void 0!==this.maxH&&this.maxHChanged(),void 0!==this.noMove&&this.noMoveChanged(),void 0!==this.noResize&&this.noResizeChanged(),void 0!==this.locked&&this.lockedChanged(),void 0!==this.id&&this.idChanged(),void 0!==this.autoPosition&&this.autoPositionChanged(),void 0!==this.resizeHandles&&this.resizeHandlesChanged()}beginSuppressUpdate(){this.suppressGridUpdate=!0}endSuppressUpdate(){this.suppressGridUpdate=!1}};i.__decorate([(0,s.bindable)({set:a.number,mode:6}),i.__metadata("design:type",Number)],u.prototype,"x",void 0),i.__decorate([(0,s.bindable)({set:a.number,mode:6}),i.__metadata("design:type",Number)],u.prototype,"y",void 0),i.__decorate([(0,s.bindable)({set:a.number,mode:6}),i.__metadata("design:type",Number)],u.prototype,"w",void 0),i.__decorate([(0,s.bindable)({set:a.number,mode:6}),i.__metadata("design:type",Number)],u.prototype,"h",void 0),i.__decorate([(0,s.bindable)({set:a.number,mode:6}),i.__metadata("design:type",Number)],u.prototype,"minW",void 0),i.__decorate([(0,s.bindable)({set:a.number,mode:6}),i.__metadata("design:type",Number)],u.prototype,"minH",void 0),i.__decorate([(0,s.bindable)({set:a.number,mode:6}),i.__metadata("design:type",Number)],u.prototype,"maxW",void 0),i.__decorate([(0,s.bindable)({set:a.number,mode:6}),i.__metadata("design:type",Number)],u.prototype,"maxH",void 0),i.__decorate([(0,s.bindable)({set:a.number,mode:6}),i.__metadata("design:type",Number)],u.prototype,"id",void 0),i.__decorate([(0,s.bindable)({set:a.booleanAttr}),i.__metadata("design:type",Boolean)],u.prototype,"noMove",void 0),i.__decorate([(0,s.bindable)({set:a.booleanAttr}),i.__metadata("design:type",Boolean)],u.prototype,"noResize",void 0),i.__decorate([(0,s.bindable)({set:a.booleanAttr}),i.__metadata("design:type",Boolean)],u.prototype,"locked",void 0),i.__decorate([(0,s.bindable)({set:a.booleanAttr}),i.__metadata("design:type",Boolean)],u.prototype,"autoPosition",void 0),i.__decorate([(0,s.bindable)({set:a.handlesAttr}),i.__metadata("design:type",Array)],u.prototype,"resizeHandles",void 0),e.GridStackItem=u=i.__decorate([(0,o.customElement)(r),(0,s.inject)(Element,d.GridStack),i.__metadata("design:paramtypes",[Object,d.GridStack])],u)}.apply(e,o),void 0===r||(t.exports=r)},476:(t,e,i)=>{var o,r;o=[i,e,i(752),i(910),i(119),i(212),i(22),i(269),i(58),i(910)],r=function(t,e,i,o,r,s,a,d,n,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GridStack=void 0,r=i.__importStar(r),d=i.__importStar(d);let u=e.GridStack=class{constructor(t){this.root=t}minRowChanged(){this.root.setAttribute("gs-min-row",this.minRow.toString())}floatChanged(){var t;null===(t=this.grid)||void 0===t||t.float(this.float)}staticChanged(){var t;null===(t=this.grid)||void 0===t||t.setStatic(this.static)}itemsChanged(){if(!this.grid||!this.items)return;this.grid.engine.nodes.filter((t=>{var e;return!(null===(e=t.el)||void 0===e?void 0:e.classList.contains("grid-stack-placeholder"))&&!this.items.find((e=>e.root===t.el))})).forEach((t=>this.grid.engine.removeNode(t,!1,!1))),this.items.map((t=>t.root)).filter((t=>!t.gridstackNode)).forEach((t=>{this.grid.addWidget(t),t.gridstackNode&&this.updateNodeVmAttributes(t.gridstackNode)}))}attached(){var t;const e=null!==(t=this.options)&&void 0!==t?t:{};void 0!==this.float&&(e.float=this.float),void 0!==this.static&&(e.staticGrid=this.static),this.grid=d.GridStack.init(e,this.root)}detached(){this.grid.destroy(),this.grid=void 0}handleChange(t){t.forEach((t=>this.updateNodeVmAttributes(t)))}updateNodeVmAttributes(t){if(t.el){const e=s.CustomElement.for(t.el).viewModel;e.beginSuppressUpdate(),e.x=t.x,e.y=t.y,e.w=t.w,e.h=t.h,e.endSuppressUpdate()}}};i.__decorate([(0,s.bindable)({set:a.number}),i.__metadata("design:type",Number)],u.prototype,"minRow",void 0),i.__decorate([(0,s.bindable)({set:a.booleanAttr}),i.__metadata("design:type",Boolean)],u.prototype,"float",void 0),i.__decorate([(0,s.bindable)({set:a.booleanAttr}),i.__metadata("design:type",Boolean)],u.prototype,"static",void 0),i.__decorate([s.bindable,i.__metadata("design:type",Object)],u.prototype,"options",void 0),i.__decorate([(0,s.children)({filter:t=>"GRID-STACK-ITEM"===t.tagName}),i.__metadata("design:type",Array)],u.prototype,"items",void 0),e.GridStack=u=i.__decorate([(0,o.customElement)(r),(0,s.inject)(Element),i.__metadata("design:paramtypes",[HTMLElement])],u)}.apply(e,o),void 0===r||(t.exports=r)},555:(t,e,i)=>{var o,r;o=[i,e,i(914),i(476),i(914),i(476)],r=function(t,e,i,o,r,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GridStack=e.GridStackItem=e.GridStackConfiguration=void 0,e.GridStackConfiguration={register:t=>t.register(i.GridStackItem,o.GridStack)},Object.defineProperty(e,"GridStackItem",{enumerable:!0,get:function(){return r.GridStackItem}}),Object.defineProperty(e,"GridStack",{enumerable:!0,get:function(){return s.GridStack}})}.apply(e,o),void 0===r||(t.exports=r)},22:(t,e,i)=>{var o,r;o=[i,e,i(519)],r=function(t,e,i){"use strict";function o(t,e,i){return i.indexOf(t)===e}Object.defineProperty(e,"__esModule",{value:!0}),e.handlesAttr=e.booleanAttr=e.number=void 0,e.number=function(t){return Number(t)},e.booleanAttr=function(t){return!(!t&&""!==t)},e.handlesAttr=function(t){if(!t)return[];let e;if("string"==typeof t)e=t.replace(/\s/g,"").split(",");else{if(!Array.isArray(t))return[];e=t}e=e.filter(o);const r=[];return e.forEach((t=>{t in i.ResizeHandles&&r.push(t)})),r}}.apply(e,o),void 0===r||(t.exports=r)},519:(t,e,i)=>{var o;o=function(t,e){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.ResizeHandles=void 0,function(t){t.n="n",t.ne="ne",t.e="e",t.se="se",t.s="s",t.sw="sw",t.w="w",t.nw="nw"}(i||(e.ResizeHandles=i={}))}.apply(e,[i,e]),void 0===o||(t.exports=o)},58:t=>{"use strict";t.exports=require("@aurelia/metadata")},910:t=>{"use strict";t.exports=require("@aurelia/runtime-html")},212:t=>{"use strict";t.exports=require("aurelia")},269:t=>{"use strict";t.exports=require("gridstack")},752:t=>{"use strict";t.exports=require("tslib")}},e={};function i(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,i),s.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var o in e)i.o(e,o)&&!i.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o=i(555),r=exports;for(var s in o)r[s]=o[s];o.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})(); | ||
import { GridStackItem } from './elements/grid-stack-item/grid-stack-item'; | ||
import { GridStack } from './elements/grid-stack/grid-stack'; | ||
export const GridStackConfiguration = { | ||
register(container) { | ||
return container.register(GridStackItem, GridStack); | ||
} | ||
}; | ||
export { GridStackItem } from './elements/grid-stack-item/grid-stack-item'; | ||
export { GridStack } from './elements/grid-stack/grid-stack'; | ||
//# sourceMappingURL=index.js.map |
import * as gs from 'gridstack'; | ||
export declare class GridStack { | ||
root: HTMLElement; | ||
constructor(root: HTMLElement); | ||
root: Element; | ||
constructor(root: Element); | ||
grid: gs.GridStack | undefined; | ||
@@ -6,0 +6,0 @@ minRow: number; |
{ | ||
"name": "aurelia-gridstack", | ||
"version": "4.0.1-au2", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"description": "Aurelia wrappers for gridstack", | ||
"keywords": [ | ||
"aurelia", | ||
"elements", | ||
"gridstack" | ||
], | ||
"homepage": "http://aurelia.io", | ||
"bugs": { | ||
"url": "https://github.com/aurelia-ui-toolkits/aurelia-gridstack/issues/issues" | ||
}, | ||
"license": "MIT", | ||
"author": "https://github.com/maximbalaganskiy", | ||
"contributors": [], | ||
"main": "dist/index.js", | ||
"module": "dist/index.js", | ||
"typings": "dist/types/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/aurelia-ui-toolkits/aurelia-gridstack/issues" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"prebuild": "rimraf dist", | ||
"build": "webpack --env production", | ||
"publish:au2": "npm publish --tag au2" | ||
}, | ||
"peerDependencies": { | ||
"aurelia": "latest", | ||
"gridstack": "^8.0.0", | ||
"tslib": "^2.5.0" | ||
} | ||
"name": "aurelia-gridstack", | ||
"version": "5.0.0-au2", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"description": "Aurelia wrappers for gridstack", | ||
"keywords": [ | ||
"aurelia", | ||
"elements", | ||
"gridstack" | ||
], | ||
"homepage": "http://aurelia.io", | ||
"bugs": { | ||
"url": "https://github.com/aurelia-ui-toolkits/aurelia-gridstack/issues/issues" | ||
}, | ||
"license": "MIT", | ||
"author": "https://github.com/maximbalaganskiy", | ||
"contributors": [], | ||
"main": "dist/index.js", | ||
"module": "dist/index.js", | ||
"typings": "dist/types/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/aurelia-ui-toolkits/aurelia-gridstack/issues" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"prebuild": "rimraf dist", | ||
"build:ts": "tsc -p tsconfig.build.json", | ||
"build:other": "copyfiles -u 1 src/**/*.html src/**/*.css dist", | ||
"build": "npm run build:ts && npm run build:other", | ||
"publish:au2": "npm publish --tag au2" | ||
}, | ||
"peerDependencies": { | ||
"aurelia": "latest", | ||
"gridstack": "^10.1.0", | ||
"tslib": "^2.6.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
19
486
1
30088