@progressive-development/pd-page 0.0.26 → 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.
- package/package.json +1 -1
- package/src/PdFooter.js +17 -17
package/package.json
CHANGED
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,16 +182,30 @@ 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() {
|
|
207
207
|
this.dispatchEvent(
|
|
208
|
-
new CustomEvent('
|
|
208
|
+
new CustomEvent('show-policy', {
|
|
209
209
|
detail: {
|
|
210
210
|
policy: 'cookie'
|
|
211
211
|
}
|