@ne1410s/popup
Advanced tools
Comparing version 0.3.0 to 0.3.1
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var custElems = require('@ne1410s/cust-elems'); | ||
@@ -12,2 +10,14 @@ | ||
class Popup extends custElems.CustomElementBase { | ||
get canMove() { | ||
return this.hasAttribute('move'); | ||
} | ||
get canResize() { | ||
return this.hasAttribute('resize'); | ||
} | ||
get canShrink() { | ||
return this.canResize && this.hasAttribute('shrink'); | ||
} | ||
get canClose() { | ||
return !this.hasAttribute('no-close'); | ||
} | ||
constructor() { | ||
@@ -76,14 +86,2 @@ super(Popup.Css, Popup.Html); | ||
} | ||
get canMove() { | ||
return this.hasAttribute('move'); | ||
} | ||
get canResize() { | ||
return this.hasAttribute('resize'); | ||
} | ||
get canShrink() { | ||
return this.canResize && this.hasAttribute('shrink'); | ||
} | ||
get canClose() { | ||
return !this.hasAttribute('no-close'); | ||
} | ||
close() { | ||
@@ -90,0 +88,0 @@ this.removeAttribute('open'); |
@@ -8,2 +8,14 @@ import { reduceCss, decode, reduceHtml, CustomElementBase } from '@ne1410s/cust-elems'; | ||
class Popup extends CustomElementBase { | ||
get canMove() { | ||
return this.hasAttribute('move'); | ||
} | ||
get canResize() { | ||
return this.hasAttribute('resize'); | ||
} | ||
get canShrink() { | ||
return this.canResize && this.hasAttribute('shrink'); | ||
} | ||
get canClose() { | ||
return !this.hasAttribute('no-close'); | ||
} | ||
constructor() { | ||
@@ -72,14 +84,2 @@ super(Popup.Css, Popup.Html); | ||
} | ||
get canMove() { | ||
return this.hasAttribute('move'); | ||
} | ||
get canResize() { | ||
return this.hasAttribute('resize'); | ||
} | ||
get canShrink() { | ||
return this.canResize && this.hasAttribute('shrink'); | ||
} | ||
get canClose() { | ||
return !this.hasAttribute('no-close'); | ||
} | ||
close() { | ||
@@ -86,0 +86,0 @@ this.removeAttribute('open'); |
@@ -37,2 +37,14 @@ (function (global, factory) { | ||
class Popup extends CustomElementBase { | ||
get canMove() { | ||
return this.hasAttribute('move'); | ||
} | ||
get canResize() { | ||
return this.hasAttribute('resize'); | ||
} | ||
get canShrink() { | ||
return this.canResize && this.hasAttribute('shrink'); | ||
} | ||
get canClose() { | ||
return !this.hasAttribute('no-close'); | ||
} | ||
constructor() { | ||
@@ -101,14 +113,2 @@ super(Popup.Css, Popup.Html); | ||
} | ||
get canMove() { | ||
return this.hasAttribute('move'); | ||
} | ||
get canResize() { | ||
return this.hasAttribute('resize'); | ||
} | ||
get canShrink() { | ||
return this.canResize && this.hasAttribute('shrink'); | ||
} | ||
get canClose() { | ||
return !this.hasAttribute('no-close'); | ||
} | ||
close() { | ||
@@ -190,4 +190,2 @@ this.removeAttribute('open'); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
})); |
{ | ||
"name": "@ne1410s/popup", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A lightweight configurable popup.", | ||
@@ -27,3 +27,3 @@ "main": "dist/ne14_pop.cjs.min.js", | ||
"type": "git", | ||
"url": "git+https://github.com/ne1410s/elem.popup.git" | ||
"url": "git+https://github.com/ne14-fed/elem.popup.git" | ||
}, | ||
@@ -38,19 +38,19 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/ne1410s/elem.popup/issues" | ||
"url": "https://github.com/ne14-fed/elem.popup/issues" | ||
}, | ||
"homepage": "https://github.com/ne1410s/elem.popup#readme", | ||
"homepage": "https://github.com/ne14-fed/elem.popup#readme", | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^22.0.2", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@rollup/plugin-url": "^7.0.0", | ||
"prettier": "^2.7.1", | ||
"rimraf": "^3.0.1", | ||
"rollup": "^2.78.0", | ||
"rollup-plugin-typescript2": "^0.32.1", | ||
"typescript": "^4.7.4" | ||
"@rollup/plugin-commonjs": "^24.0.1", | ||
"@rollup/plugin-json": "^6.0.0", | ||
"@rollup/plugin-node-resolve": "^15.0.1", | ||
"@rollup/plugin-url": "^8.0.1", | ||
"prettier": "^2.8.4", | ||
"rimraf": "^4.1.2", | ||
"rollup": "^3.15.0", | ||
"rollup-plugin-typescript2": "^0.34.1", | ||
"typescript": "^4.9.5" | ||
}, | ||
"dependencies": { | ||
"@ne1410s/cust-elems": "^0.3.0" | ||
"@ne1410s/cust-elems": "^0.3.1" | ||
} | ||
} |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
34072
536
Updated@ne1410s/cust-elems@^0.3.1