@progressive-development/pd-content 0.0.16 → 0.0.18

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 content components. ",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development UG",
6
- "version": "0.0.16",
6
+ "version": "0.0.18",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "lit": "^2.0.2",
21
21
  "@progressive-development/pd-icon": "^0.0.9",
22
- "@progressive-development/pd-dialog": "^0.0.13",
22
+ "@progressive-development/pd-dialog": "^0.0.14",
23
23
  "pwa-helpers": "^0.9.0"
24
24
  },
25
25
  "devDependencies": {
@@ -142,6 +142,7 @@
142
142
  gap: 2px;
143
143
  white-space: nowrap;
144
144
  align-items: center;
145
+ pointer-events: none;
145
146
  }
146
147
 
147
148
  .param-data {
@@ -211,10 +212,8 @@
211
212
  </a>
212
213
  `}
213
214
  ${this.editLinks.map(
214
- link => html` <a
215
- data-link="${link.key}"
216
- @click="${this._editContent}"
217
- >
215
+ link => html`
216
+ <a data-link="${link.key}" @click="${this._editContent}">
218
217
  <div class="link-item">${PdEditContent._getLinkLogo(link)} ${link.txt}</div>
219
218
  </a>`
220
219
  )}
@@ -233,8 +232,8 @@
233
232
  return '';
234
233
  }
235
234
 
236
- _editContent(e) {
237
- const { link } = e.target.dataset;
235
+ _editContent(e) {
236
+ const { link } = e.target.dataset;
238
237
  this.dispatchEvent(
239
238
  new CustomEvent('edit-content', {
240
239
  detail: {
@@ -53,7 +53,9 @@ function BasicEditTemplate({editData}) {
53
53
 
54
54
  <pd-box-view style="--squi-box-columns: 2;">
55
55
 
56
- <pd-edit-content contentTitle="Test content with slot">
56
+ <pd-edit-content contentTitle="Test content with slot" @edit-content="${(e) => {
57
+ console.log("event: ", e);
58
+ }}">
57
59
  <p>Some content for edit, could be added as own slot</p>
58
60
  <ul>
59
61
  <li>Das ist auch drinne</li>