@progressive-development/pd-dialog 0.1.55 → 0.1.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Progressive Development dialog components.",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.1.55",
6
+ "version": "0.1.57",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdPopup.js CHANGED
@@ -40,7 +40,7 @@ export class PdPopup extends LitElement {
40
40
  background-color: var(--pd-popup-modal-bg-rgba, rgba(175, 193, 210, 0.8));
41
41
 
42
42
  /* specific for PdPopup, abobe also used for PdPopupDialog */
43
- display: none; /* Hidden by default */
43
+ display: var(--pd-popup-default-display, none); /* Hidden by default */
44
44
  padding-top: 100px; /* Location of the box */
45
45
  }
46
46
 
@@ -108,6 +108,10 @@ export class PdPopup extends LitElement {
108
108
  // $('.hover_bkgr_fricc').hide();
109
109
  const modal = this.shadowRoot.getElementById('modalId');
110
110
  modal.style.display = 'none';
111
+
112
+ this.dispatchEvent(
113
+ new CustomEvent('popup-close')
114
+ );
111
115
  }
112
116
 
113
117
  /*
@@ -165,7 +165,7 @@ export class PdPopupDialog extends LitElement {
165
165
  }
166
166
 
167
167
  _getIconForType() {
168
- if (!this.type) {
168
+ if (!this.type || this.type === "") {
169
169
  return "";
170
170
  }
171
171
  switch (this.type) {