@geneontology/wc-light-modal
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -37,3 +37,3 @@ 'use strict'; | ||
async open() { | ||
console.log("open", this.modalCard); | ||
// console.log("open" , this.modalCard); | ||
if (this.modalCard.classList && !this.modalCard.classList.contains(this.mclass)) { | ||
@@ -44,3 +44,3 @@ this.modalCard.classList.add(this.mclass); | ||
async close() { | ||
console.log("close", this.modalCard); | ||
// console.log("close" , this.modalCard); | ||
if (this.modalCard.classList && this.modalCard.classList.contains(this.mclass)) { | ||
@@ -51,3 +51,3 @@ this.modalCard.classList.remove(this.mclass); | ||
async toggle() { | ||
console.log("close", this.modalCard); | ||
// console.log("close" , this.modalCard); | ||
if (this.modalCard.classList) { | ||
@@ -54,0 +54,0 @@ if (this.modalCard.classList.contains(this.mclass)) { |
@@ -31,3 +31,3 @@ // Inspired by https://codepen.io/timothylong/pen/HhAer | ||
async open() { | ||
console.log("open", this.modalCard); | ||
// console.log("open" , this.modalCard); | ||
if (this.modalCard.classList && !this.modalCard.classList.contains(this.mclass)) { | ||
@@ -38,3 +38,3 @@ this.modalCard.classList.add(this.mclass); | ||
async close() { | ||
console.log("close", this.modalCard); | ||
// console.log("close" , this.modalCard); | ||
if (this.modalCard.classList && this.modalCard.classList.contains(this.mclass)) { | ||
@@ -45,3 +45,3 @@ this.modalCard.classList.remove(this.mclass); | ||
async toggle() { | ||
console.log("close", this.modalCard); | ||
// console.log("close" , this.modalCard); | ||
if (this.modalCard.classList) { | ||
@@ -48,0 +48,0 @@ if (this.modalCard.classList.contains(this.mclass)) { |
@@ -35,3 +35,3 @@ import { h, proxyCustomElement } from '@stencil/core/internal/client'; | ||
async open() { | ||
console.log("open", this.modalCard); | ||
// console.log("open" , this.modalCard); | ||
if (this.modalCard.classList && !this.modalCard.classList.contains(this.mclass)) { | ||
@@ -42,3 +42,3 @@ this.modalCard.classList.add(this.mclass); | ||
async close() { | ||
console.log("close", this.modalCard); | ||
// console.log("close" , this.modalCard); | ||
if (this.modalCard.classList && this.modalCard.classList.contains(this.mclass)) { | ||
@@ -49,3 +49,3 @@ this.modalCard.classList.remove(this.mclass); | ||
async toggle() { | ||
console.log("close", this.modalCard); | ||
// console.log("close" , this.modalCard); | ||
if (this.modalCard.classList) { | ||
@@ -52,0 +52,0 @@ if (this.modalCard.classList.contains(this.mclass)) { |
@@ -69,3 +69,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return __generator(this, function (_a) { | ||
console.log("open", this.modalCard); | ||
// console.log("open" , this.modalCard); | ||
if (this.modalCard.classList && !this.modalCard.classList.contains(this.mclass)) { | ||
@@ -81,3 +81,3 @@ this.modalCard.classList.add(this.mclass); | ||
return __generator(this, function (_a) { | ||
console.log("close", this.modalCard); | ||
// console.log("close" , this.modalCard); | ||
if (this.modalCard.classList && this.modalCard.classList.contains(this.mclass)) { | ||
@@ -93,3 +93,3 @@ this.modalCard.classList.remove(this.mclass); | ||
return __generator(this, function (_a) { | ||
console.log("close", this.modalCard); | ||
// console.log("close" , this.modalCard); | ||
if (this.modalCard.classList) { | ||
@@ -96,0 +96,0 @@ if (this.modalCard.classList.contains(this.mclass)) { |
@@ -33,3 +33,3 @@ import { r as registerInstance, h, g as getElement } from './index-3714570f.js'; | ||
async open() { | ||
console.log("open", this.modalCard); | ||
// console.log("open" , this.modalCard); | ||
if (this.modalCard.classList && !this.modalCard.classList.contains(this.mclass)) { | ||
@@ -40,3 +40,3 @@ this.modalCard.classList.add(this.mclass); | ||
async close() { | ||
console.log("close", this.modalCard); | ||
// console.log("close" , this.modalCard); | ||
if (this.modalCard.classList && this.modalCard.classList.contains(this.mclass)) { | ||
@@ -47,3 +47,3 @@ this.modalCard.classList.remove(this.mclass); | ||
async toggle() { | ||
console.log("close", this.modalCard); | ||
// console.log("close" , this.modalCard); | ||
if (this.modalCard.classList) { | ||
@@ -50,0 +50,0 @@ if (this.modalCard.classList.contains(this.mclass)) { |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-dc213321.system.js","./p-b04df410.system.js"],(function(){"use strict";var t,e;return{setters:[function(e){t=e.b},function(t){e=t.p}],execute:function(){e().then((function(e){return t([["p-b0a1a75f.system",[[0,"wc-light-modal",{modalAnchor:[1,"modal-anchor"],modalTitle:[1,"modal-title"],modalContent:[1,"modal-content"],x:[2],y:[2],open:[64],close:[64],toggle:[64]}]]]],e)}))}}})); | ||
System.register(["./p-dc213321.system.js","./p-b04df410.system.js"],(function(){"use strict";var t,e;return{setters:[function(e){t=e.b},function(t){e=t.p}],execute:function(){e().then((function(e){return t([["p-331e455b.system",[[0,"wc-light-modal",{modalAnchor:[1,"modal-anchor"],modalTitle:[1,"modal-title"],modalContent:[1,"modal-content"],x:[2],y:[2],open:[64],close:[64],toggle:[64]}]]]],e)}))}}})); |
@@ -1,1 +0,1 @@ | ||
import{b as o}from"./p-2ce6b07e.js";import{p as l}from"./p-15dad5db.js";l().then(l=>o([["p-c5920140",[[0,"wc-light-modal",{modalAnchor:[1,"modal-anchor"],modalTitle:[1,"modal-title"],modalContent:[1,"modal-content"],x:[2],y:[2],open:[64],close:[64],toggle:[64]}]]]],l)); | ||
import{b as o}from"./p-2ce6b07e.js";import{p as a}from"./p-15dad5db.js";a().then(a=>o([["p-63faeb1b",[[0,"wc-light-modal",{modalAnchor:[1,"modal-anchor"],modalTitle:[1,"modal-title"],modalContent:[1,"modal-content"],x:[2],y:[2],open:[64],close:[64],toggle:[64]}]]]],a)); |
{ | ||
"name": "@geneontology/wc-light-modal", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Lightweight modal web component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
703461