@progressive-development/pd-page 0.0.23 → 0.0.25
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 +2 -2
- package/src/PdFooter.js +18 -1
- package/stories/teaser.stories.js +36 -2
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.
|
|
6
|
+
"version": "0.0.25",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "index.js",
|
|
9
9
|
"scripts": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"lit": "^2.0.2",
|
|
21
21
|
"@progressive-development/pd-contact": "^0.0.8",
|
|
22
22
|
"@progressive-development/pd-forms": "^0.0.18",
|
|
23
|
-
"@progressive-development/pd-dialog": "^0.0.
|
|
23
|
+
"@progressive-development/pd-dialog": "^0.0.14",
|
|
24
24
|
"@progressive-development/pd-icon": "^0.0.9"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
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
|
|
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,12 @@ export class PdFooter extends LitElement {
|
|
|
193
202
|
_policyClicked() {
|
|
194
203
|
this.shadowRoot.getElementById('privacyPopupId').showPopup();
|
|
195
204
|
}
|
|
205
|
+
|
|
206
|
+
_cookiePolicyClicked() {
|
|
207
|
+
this.dispatchEvent("show-policy", {
|
|
208
|
+
detail: {
|
|
209
|
+
policy: 'cookie'
|
|
210
|
+
}
|
|
211
|
+
})
|
|
212
|
+
}
|
|
196
213
|
}
|
|
@@ -7,8 +7,8 @@ export default {
|
|
|
7
7
|
argTypes: {},
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
|
|
11
|
+
const getTeaser = () => html`
|
|
12
12
|
<pd-teaser
|
|
13
13
|
.teaserObjects="${[{ name: 't1' }, { name: 't2' }, { name: 't3' }]}"
|
|
14
14
|
>
|
|
@@ -35,7 +35,41 @@ function Template() {
|
|
|
35
35
|
</pd-teaser-content>
|
|
36
36
|
</pd-teaser>
|
|
37
37
|
`;
|
|
38
|
+
|
|
39
|
+
function Template() {
|
|
40
|
+
return getTeaser();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function TemplateSmall() {
|
|
44
|
+
return html`
|
|
45
|
+
|
|
46
|
+
<style>
|
|
47
|
+
.smallContent {
|
|
48
|
+
|
|
49
|
+
min-height: 100vh;
|
|
50
|
+
height: 100%;
|
|
51
|
+
|
|
52
|
+
max-width: 960px;
|
|
53
|
+
margin: 0 auto;
|
|
54
|
+
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: flex-start;
|
|
59
|
+
|
|
60
|
+
background-color: grey;
|
|
61
|
+
}
|
|
62
|
+
</style>
|
|
63
|
+
|
|
64
|
+
<div class="smallContent">
|
|
65
|
+
${getTeaser()}
|
|
66
|
+
</div>
|
|
67
|
+
`;
|
|
38
68
|
}
|
|
39
69
|
|
|
70
|
+
|
|
40
71
|
export const Teaser = Template.bind({});
|
|
41
72
|
Teaser.args = {};
|
|
73
|
+
|
|
74
|
+
export const TeaserSmall = TemplateSmall.bind({});
|
|
75
|
+
TeaserSmall.args = {};
|