hy-pattern-lib
Advanced tools
Comparing version 1.13.0 to 1.14.0
@@ -1,1 +0,1 @@ | ||
{"android-chrome-192x192.png":"/dist/images/android-chrome-192x192-3bc725c510d5c2126fd4da315429ff88.png","android-chrome-512x512.png":"/dist/images/android-chrome-512x512-c935b258093602e1f4b8868e89183ee0.png","apple-touch-icon.png":"/dist/images/apple-touch-icon-6f6d1f38f430341d786d0723bdbbfbb4.png","favicon-16x16.png":"/dist/images/favicon-16x16-494ac48e30f8461737bd9dcc35f07661.png","favicon-32x32.png":"/dist/images/favicon-32x32-c51c80a71f151b959d09310d29b350ab.png","favicon.ico":"/dist/images/favicon-4c3bf619a150afdb61f2299426020107.ico","happy-yoga.svg":"/dist/images/happy-yoga-8a212ef3eec3f83a7b774188f7289e3c.svg","hy-components.js":"/dist/hy-components-fa811f1c5afdbd115b60493fde7df6ed.js","hy-pattern-lib.css":"/dist/hy-pattern-lib-9e5916683ccb374c4e2929bc1c2201e2.css","mstile-150x150.png":"/dist/images/mstile-150x150-8a48a2ace4c60a682e91f9550087c715.png","sad-puppy-5xx.jpg":"/dist/images/sad-puppy-5xx-f2969e7eb69609c5b1f67944b5e86b9d.jpg","safari-pinned-tab.svg":"/dist/images/safari-pinned-tab-1cf9ee989e1a131779da8da982fdc529.svg","wondering-puppy-4xx.jpg":"/dist/images/wondering-puppy-4xx-47159657b681fc63e9f2ae617969b2f8.jpg"} | ||
{"android-chrome-192x192.png":"/dist/images/android-chrome-192x192-3bc725c510d5c2126fd4da315429ff88.png","android-chrome-512x512.png":"/dist/images/android-chrome-512x512-c935b258093602e1f4b8868e89183ee0.png","apple-touch-icon.png":"/dist/images/apple-touch-icon-6f6d1f38f430341d786d0723bdbbfbb4.png","favicon-16x16.png":"/dist/images/favicon-16x16-494ac48e30f8461737bd9dcc35f07661.png","favicon-32x32.png":"/dist/images/favicon-32x32-c51c80a71f151b959d09310d29b350ab.png","favicon.ico":"/dist/images/favicon-4c3bf619a150afdb61f2299426020107.ico","happy-yoga.svg":"/dist/images/happy-yoga-8a212ef3eec3f83a7b774188f7289e3c.svg","hy-components.js":"/dist/hy-components-2714fd070c643ce89003065bae59e9a6.js","hy-pattern-lib.css":"/dist/hy-pattern-lib-9e5916683ccb374c4e2929bc1c2201e2.css","mstile-150x150.png":"/dist/images/mstile-150x150-8a48a2ace4c60a682e91f9550087c715.png","sad-puppy-5xx.jpg":"/dist/images/sad-puppy-5xx-f2969e7eb69609c5b1f67944b5e86b9d.jpg","safari-pinned-tab.svg":"/dist/images/safari-pinned-tab-1cf9ee989e1a131779da8da982fdc529.svg","wondering-puppy-4xx.jpg":"/dist/images/wondering-puppy-4xx-47159657b681fc63e9f2ae617969b2f8.jpg"} |
@@ -12,2 +12,7 @@ /* global HTMLElement, customElements */ | ||
#currentImageIndex = 0 | ||
#outsideClickHandler = (e) => { | ||
if(e.target === e.currentTarget) this.onclose() | ||
// console.log('outside click') | ||
// console.log(e.target, e.currentTarget) | ||
} | ||
@@ -46,4 +51,2 @@ #thumbnailClickHandler = (imageLink, index) => async (e) => { | ||
this.imagesLinks.at(0)?.click() | ||
this.#dialog.addEventListener('close', () => { | ||
@@ -53,7 +56,10 @@ this.#imageContainer.innerHTML = '' | ||
this.#close.addEventListener('click', () => { | ||
this.#dialog?.close() | ||
}) | ||
this.#close.addEventListener('click', this.onclose.bind(this)) | ||
} | ||
onclose() { | ||
this.#dialog?.close() | ||
this.#dialog?.removeEventListener('click', this.#outsideClickHandler) | ||
} | ||
async onNextClick() { | ||
@@ -81,2 +87,4 @@ this.#currentImageIndex = (this.#currentImageIndex + 1) % this.imagesLinks.length | ||
await this.#dialog?.showModal() | ||
this.#dialog?.addEventListener('click', this.#outsideClickHandler) | ||
} | ||
@@ -83,0 +91,0 @@ |
{ | ||
"name": "hy-pattern-lib", | ||
"version": "1.13.0", | ||
"version": "1.14.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1451275
1554
0