@progressive-development/pd-page 0.0.24 → 0.0.26

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 +20 -1
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.24",
6
+ "version": "0.0.26",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdFooter.js CHANGED
@@ -18,7 +18,7 @@ import '@progressive-development/pd-dialog/pd-popup.js';
18
18
  export class PdFooter extends LitElement {
19
19
  /**
20
20
  * Fired when free date clicked => At the moment only for freeDates
21
- * @event book-date
21
+ * @event show-policy
22
22
  */
23
23
 
24
24
  static get styles() {
@@ -165,6 +165,15 @@ export class PdFooter extends LitElement {
165
165
  >Privacy</a
166
166
  >
167
167
  </li>
168
+ <li class="item">
169
+ <a
170
+ @keypress="${() => {
171
+ console.log();
172
+ }}"
173
+ @click="${this._cookiePolicyClicked}"
174
+ >Cookies</a
175
+ >
176
+ </li>
168
177
  </ul>
169
178
  </div>
170
179
 
@@ -193,4 +202,14 @@ export class PdFooter extends LitElement {
193
202
  _policyClicked() {
194
203
  this.shadowRoot.getElementById('privacyPopupId').showPopup();
195
204
  }
205
+
206
+ _cookiePolicyClicked() {
207
+ this.dispatchEvent(
208
+ new CustomEvent('navigate-policy', {
209
+ detail: {
210
+ policy: 'cookie'
211
+ }
212
+ })
213
+ );
214
+ }
196
215
  }