@progressive-development/pd-page 0.0.5 → 0.0.7

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 page helper, teaser, menu, footer.",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.0.5",
6
+ "version": "0.0.7",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdFooter.js CHANGED
@@ -97,11 +97,6 @@ export class PdFooter extends LitElement {
97
97
  /*border-bottom: 1px solid #ffc857;*/
98
98
  }
99
99
 
100
- .logo {
101
- max-width: 6rem;
102
- padding-right: 10px;
103
- }
104
-
105
100
  /* Size Elements for small width */
106
101
  @media (max-width: 440px) {
107
102
  .item {
@@ -115,19 +110,13 @@ export class PdFooter extends LitElement {
115
110
  }
116
111
 
117
112
  static get properties() {
118
- return {
119
- logo: { type: Object },
120
- agb: { type: Object },
121
- privacy: { type: Object },
122
- version: { type: Object },
113
+ return {
114
+ version: { type: String }
123
115
  };
124
116
  }
125
117
 
126
118
  constructor() {
127
119
  super();
128
- this.logo = undefined;
129
- this.agb = undefined;
130
- this.privacy = undefined;
131
120
  this.version = undefined;
132
121
  }
133
122
 
@@ -136,10 +125,7 @@ export class PdFooter extends LitElement {
136
125
  render() {
137
126
  return html`
138
127
  <div class="left-content">
139
- <p>
140
- © ticomi technics ${this.logo} <br /><span class="version"
141
- >${this.version}</span
142
- >
128
+ <p>© ticomi technics<br/><span class="version">${this.version}</span>
143
129
  </p>
144
130
  </div>
145
131
 
@@ -167,11 +153,15 @@ export class PdFooter extends LitElement {
167
153
  </div>
168
154
 
169
155
  <pd-popup id="legalPopupId">
170
- <div slot="content">${this.agb}</div>
156
+ <div slot="content">
157
+ <slot name="legal"></slot>
158
+ </div>
171
159
  </pd-popup>
172
160
 
173
161
  <pd-popup id="privacyPopupId">
174
- <div slot="content">${this.privacy}</div>
162
+ <div slot="content">
163
+ <slot name="privacy"></slot>
164
+ </div>
175
165
  </pd-popup>
176
166
  `;
177
167
  }
package/src/PdMenu.js CHANGED
@@ -79,11 +79,6 @@ export class PdMenu extends LitElement {
79
79
  --squi-icon-fill: #ffc857;
80
80
  }
81
81
 
82
- .logo {
83
- max-width: 8rem;
84
- width: 8rem; /* wird sonst im Chrome nicht angezeigt*/
85
- }
86
-
87
82
  .topItemLogo {
88
83
  --squi-icon-size: 1.6rem;
89
84
  --icon-transition: none;
@@ -96,7 +91,7 @@ export class PdMenu extends LitElement {
96
91
 
97
92
  /* Size Elements for small width */
98
93
  @media (max-width: 440px) {
99
- .item {
94
+ .changevis {
100
95
  display: none;
101
96
  }
102
97
  }
@@ -104,8 +99,7 @@ export class PdMenu extends LitElement {
104
99
  }
105
100
 
106
101
  static get properties() {
107
- return {
108
- logo: { type: Object },
102
+ return {
109
103
  menuItems: { type: Array },
110
104
  topMenuItems: { type: Array },
111
105
  teaserClosed: { type: Boolean }, // TODO: Definiert um scroll position anzugleichen, unabhängiger machen...
@@ -115,7 +109,6 @@ export class PdMenu extends LitElement {
115
109
 
116
110
  constructor() {
117
111
  super();
118
- this.logo = {};
119
112
  this.menuItems = [];
120
113
  this.topMenuItems = [];
121
114
  this.teaserClosed = false;
@@ -157,14 +150,14 @@ export class PdMenu extends LitElement {
157
150
  return html`
158
151
  <ul>
159
152
 
160
- <li>
161
- <slot name="slotLogo" @click="${PdMenu._scrollToTop}"></slot>
153
+ <li @click="${PdMenu._scrollToTop}">
154
+ <slot name="slotLogo"></slot>
162
155
  </li>
163
156
 
164
157
  ${this.menuItems.map(
165
158
  (item, index) => html`
166
159
  <li
167
- class="item ${this._activeSecIndex === index + 1 ? 'active' : ''}"
160
+ class="item ${this._activeSecIndex === index + 1 ? 'active' : ''} changevis"
168
161
  data-sec="${item.sec}"
169
162
  data-route="${item.route}"
170
163
  @click="${this._menuItemClicked}"