@progressive-development/pd-content 0.0.15 → 0.0.17

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.15",
6
+ "version": "0.0.17",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
@@ -131,6 +131,7 @@
131
131
 
132
132
  .link-row {
133
133
  padding-top: 5px;
134
+ padding-bottom: 5px;
134
135
  display: flex;
135
136
  flex-wrap: wrap;
136
137
  gap: 15px;
@@ -141,6 +142,7 @@
141
142
  gap: 2px;
142
143
  white-space: nowrap;
143
144
  align-items: center;
145
+ pointer-events: none;
144
146
  }
145
147
 
146
148
  .param-data {
@@ -210,10 +212,8 @@
210
212
  </a>
211
213
  `}
212
214
  ${this.editLinks.map(
213
- link => html` <a
214
- data-link="${link.key}"
215
- @click="${this._editContent}"
216
- >
215
+ link => html`
216
+ <a data-link="${link.key}" @click="${this._editContent}">
217
217
  <div class="link-item">${PdEditContent._getLinkLogo(link)} ${link.txt}</div>
218
218
  </a>`
219
219
  )}
@@ -232,8 +232,8 @@
232
232
  return '';
233
233
  }
234
234
 
235
- _editContent(e) {
236
- const { link } = e.target.dataset;
235
+ _editContent(e) {
236
+ const { link } = e.target.dataset;
237
237
  this.dispatchEvent(
238
238
  new CustomEvent('edit-content', {
239
239
  detail: {
@@ -3,10 +3,7 @@ import '../pd-edit-content.js';
3
3
 
4
4
  export default {
5
5
  title: 'PdContent/Edit Content',
6
- component: 'pd-edit-content',
7
- argTypes: {
8
-
9
- },
6
+ component: 'pd-edit-content'
10
7
  };
11
8
 
12
9
  const testIcon1 = html`<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
@@ -53,7 +50,9 @@ function BasicEditTemplate({editData}) {
53
50
 
54
51
  <pd-box-view style="--squi-box-columns: 2;">
55
52
 
56
- <pd-edit-content contentTitle="Test content with slot">
53
+ <pd-edit-content contentTitle="Test content with slot" @edit-content="${(e) => {
54
+ console.log("event: ", e);
55
+ }}">
57
56
  <p>Some content for edit, could be added as own slot</p>
58
57
  <ul>
59
58
  <li>Das ist auch drinne</li>
@@ -99,7 +98,14 @@ function BasicEditTemplate({editData}) {
99
98
 
100
99
  function NumberEditTemplate({editData}) {
101
100
  return html`
102
- <pd-box-view style="--squi-box-columns: 2;">
101
+ <style>
102
+ .edit-boxes {
103
+ display: flex;
104
+ flex-flow: column;
105
+ gap: 10px;
106
+ }
107
+ </style>
108
+ <div class="edit-boxes">
103
109
  <pd-edit-content contentTitle="Test content with params and step number"
104
110
  .data="${editData}" stepNumber="1">
105
111
  </pd-edit-content>
@@ -115,9 +121,11 @@ function NumberEditTemplate({editData}) {
115
121
  <pd-edit-content contentTitle="Test content with params and step number"
116
122
  .data="${editData}" stepNumber="4">
117
123
  </pd-edit-content>
118
- </pd-box-view>`;
124
+ </div>`;
119
125
  }
120
126
 
127
+
128
+
121
129
  export const EditContent = BasicEditTemplate.bind({});
122
130
  EditContent.args = {
123
131
  editData: [