@progressive-development/pd-page 0.0.27 → 0.0.28

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/PdFooter.js +16 -16
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Progressive development page helper, teaser, menu, footer.",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.0.27",
6
+ "version": "0.0.28",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdFooter.js CHANGED
@@ -7,8 +7,6 @@
7
7
 
8
8
  import { LitElement, html, css } from 'lit';
9
9
 
10
- import '@progressive-development/pd-dialog/pd-popup.js';
11
-
12
10
  /**
13
11
  * An example element.
14
12
  *
@@ -176,18 +174,6 @@ export class PdFooter extends LitElement {
176
174
  </li>
177
175
  </ul>
178
176
  </div>
179
-
180
- <pd-popup id="legalPopupId">
181
- <div slot="content">
182
- <slot name="legal"></slot>
183
- </div>
184
- </pd-popup>
185
-
186
- <pd-popup id="privacyPopupId">
187
- <div slot="content">
188
- <slot name="privacy"></slot>
189
- </div>
190
- </pd-popup>
191
177
  `;
192
178
  }
193
179
 
@@ -196,11 +182,25 @@ export class PdFooter extends LitElement {
196
182
  }
197
183
 
198
184
  _legalClicked() {
199
- this.shadowRoot.getElementById('legalPopupId').showPopup();
185
+ // this.shadowRoot.getElementById('legalPopupId').showPopup();
186
+ this.dispatchEvent(
187
+ new CustomEvent('show-policy', {
188
+ detail: {
189
+ policy: 'legal'
190
+ }
191
+ })
192
+ );
200
193
  }
201
194
 
202
195
  _policyClicked() {
203
- this.shadowRoot.getElementById('privacyPopupId').showPopup();
196
+ // this.shadowRoot.getElementById('privacyPopupId').showPopup();
197
+ this.dispatchEvent(
198
+ new CustomEvent('show-policy', {
199
+ detail: {
200
+ policy: 'policy'
201
+ }
202
+ })
203
+ );
204
204
  }
205
205
 
206
206
  _cookiePolicyClicked() {