@progressive-development/pd-content 0.1.83 → 0.5.1
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/dist/index.js +18 -0
- package/dist/locales/be.js +7 -0
- package/dist/locales/de.js +7 -0
- package/dist/locales/en.js +7 -0
- package/dist/pd-box-view.js +4 -0
- package/dist/pd-collapse.js +4 -0
- package/dist/pd-edit-content.js +4 -0
- package/dist/pd-more-info.js +4 -0
- package/dist/pd-resize-content.js +4 -0
- package/{src → dist/src}/PdBoxView.js +7 -6
- package/{src → dist/src}/PdCollapse.js +18 -24
- package/{src → dist/src}/PdEditContent.js +70 -88
- package/{src → dist/src}/PdMoreInfo.js +14 -29
- package/{src → dist/src}/PdResizeContent.js +11 -26
- package/package.json +40 -22
- package/.editorconfig +0 -29
- package/.storybook/main.js +0 -17
- package/.storybook/preview.js +0 -13
- package/demo/index.html +0 -29
- package/index.js +0 -1
- package/lit-localize.json +0 -18
- package/pd-box-view.js +0 -3
- package/pd-collapse.js +0 -3
- package/pd-edit-content.js +0 -3
- package/pd-more-info.js +0 -3
- package/pd-resize-content.js +0 -3
- package/src/generated/locale/be.js +0 -15
- package/src/generated/locale/de.js +0 -15
- package/src/generated/locale/en.js +0 -15
- package/src/generated/locale-codes.js +0 -27
- package/src/stories/box-view.stories.js +0 -65
- package/src/stories/collapse.stories.js +0 -36
- package/src/stories/edit-content.stories.js +0 -149
- package/src/stories/more-info.stories.js +0 -75
- package/src/stories/resize-content.stories.js +0 -28
- package/test/pd-content.test.js +0 -32
- package/web-dev-server.config.mjs +0 -27
- package/web-test-runner.config.mjs +0 -41
- package/xliff/be.xlf +0 -15
- package/xliff/de.xlf +0 -13
- package/xliff/en.xlf +0 -15
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PdBoxView } from "./src/PdBoxView.js";
|
|
2
|
+
import { PdCollapse } from "./src/PdCollapse.js";
|
|
3
|
+
import { PdEditContent } from "./src/PdEditContent.js";
|
|
4
|
+
import { PdMoreInfo } from "./src/PdMoreInfo.js";
|
|
5
|
+
import { PdResizeContent } from "./src/PdResizeContent.js";
|
|
6
|
+
import { templates } from "./locales/be.js";
|
|
7
|
+
import { templates as templates2 } from "./locales/de.js";
|
|
8
|
+
import { templates as templates3 } from "./locales/en.js";
|
|
9
|
+
export {
|
|
10
|
+
PdBoxView,
|
|
11
|
+
PdCollapse,
|
|
12
|
+
PdEditContent,
|
|
13
|
+
PdMoreInfo,
|
|
14
|
+
PdResizeContent,
|
|
15
|
+
templates as beTemplates,
|
|
16
|
+
templates2 as deTemplates,
|
|
17
|
+
templates3 as enTemplates
|
|
18
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export class PdBoxView extends LitElement {
|
|
1
|
+
import { LitElement, css, html } from "lit";
|
|
2
|
+
class PdBoxView extends LitElement {
|
|
4
3
|
static get styles() {
|
|
5
4
|
return [
|
|
6
5
|
css`
|
|
@@ -13,11 +12,13 @@ export class PdBoxView extends LitElement {
|
|
|
13
12
|
/*grid-auto-rows: minmax(var(--squi-box-min-height, 100px), 1fr); Für mobile 1 cloum auskommentiert, ging auch für große Ansicht, also eher hinderlich?*/
|
|
14
13
|
gap: var(--pd-box-gap, 25px);
|
|
15
14
|
}
|
|
16
|
-
|
|
15
|
+
`
|
|
17
16
|
];
|
|
18
17
|
}
|
|
19
|
-
|
|
20
18
|
render() {
|
|
21
19
|
return html` <slot></slot> `;
|
|
22
20
|
}
|
|
23
|
-
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
PdBoxView
|
|
24
|
+
};
|
|
@@ -1,30 +1,26 @@
|
|
|
1
|
+
import { LitElement, css, html } from "lit";
|
|
2
|
+
import { ICON_TOGGLE_COLLAPSE } from "@progressive-development/pd-icon";
|
|
3
|
+
import "@progressive-development/pd-icon/pd-icon";
|
|
4
|
+
import { PDColorStyles, PDFontStyles } from "@progressive-development/pd-shared-styles";
|
|
1
5
|
/**
|
|
2
6
|
* @license
|
|
3
7
|
* Copyright (c) 2021 PD Progressive Development UG. All rights reserved.
|
|
4
8
|
*/
|
|
5
|
-
|
|
6
|
-
import { css, html, LitElement } from 'lit';
|
|
7
|
-
import { ICON_TOGGLE_COLLAPSE as toogleCollapse } from '@progressive-development/pd-icon/src/PdIcon.js';
|
|
8
|
-
import '@progressive-development/pd-icon/pd-icon.js';
|
|
9
|
-
|
|
10
|
-
import { PDColorStyles, PDFontStyles } from '@progressive-development/pd-shared-styles';
|
|
11
|
-
|
|
12
|
-
export class PdCollapse extends LitElement {
|
|
9
|
+
class PdCollapse extends LitElement {
|
|
13
10
|
static get properties() {
|
|
14
11
|
return {
|
|
15
12
|
active: { type: Boolean },
|
|
16
|
-
icon: { type: String }
|
|
13
|
+
icon: { type: String }
|
|
17
14
|
};
|
|
18
15
|
}
|
|
19
|
-
|
|
20
16
|
constructor() {
|
|
21
17
|
super();
|
|
22
|
-
this.active = false;
|
|
18
|
+
this.active = false;
|
|
23
19
|
}
|
|
24
|
-
|
|
25
20
|
static get styles() {
|
|
26
21
|
return [
|
|
27
|
-
PDColorStyles,
|
|
22
|
+
PDColorStyles,
|
|
23
|
+
PDFontStyles,
|
|
28
24
|
css`
|
|
29
25
|
:host {
|
|
30
26
|
display: block;
|
|
@@ -98,44 +94,42 @@ export class PdCollapse extends LitElement {
|
|
|
98
94
|
transform: translate3d(0, 0, 0);
|
|
99
95
|
overflow-y: auto;
|
|
100
96
|
}
|
|
101
|
-
|
|
97
|
+
`
|
|
102
98
|
];
|
|
103
99
|
}
|
|
104
|
-
|
|
105
100
|
open() {
|
|
106
101
|
this.active = true;
|
|
107
102
|
}
|
|
108
|
-
|
|
109
103
|
close() {
|
|
110
104
|
this.active = false;
|
|
111
105
|
}
|
|
112
|
-
|
|
113
106
|
onClick() {
|
|
114
107
|
this.active = !this.active;
|
|
115
108
|
this.dispatchEvent(
|
|
116
|
-
new CustomEvent(
|
|
109
|
+
new CustomEvent("toggle-accordion", {
|
|
117
110
|
bubbles: true,
|
|
118
111
|
composed: true,
|
|
119
|
-
detail: this.active
|
|
112
|
+
detail: this.active
|
|
120
113
|
})
|
|
121
114
|
);
|
|
122
115
|
}
|
|
123
|
-
|
|
124
116
|
render() {
|
|
125
|
-
// eslint-disable-next-line lit-a11y/click-events-have-key-events
|
|
126
117
|
return html`<div
|
|
127
|
-
class="trigger ${this.active ?
|
|
118
|
+
class="trigger ${this.active ? "open" : "closed"}"
|
|
128
119
|
@click="${this.onClick}"
|
|
129
120
|
>
|
|
130
121
|
<slot name="header"></slot>
|
|
131
122
|
<pd-icon
|
|
132
|
-
icon="${
|
|
123
|
+
icon="${ICON_TOGGLE_COLLAPSE}"
|
|
133
124
|
?activeIcon="${this.active}"
|
|
134
125
|
class="small primary"
|
|
135
126
|
></pd-icon>
|
|
136
127
|
</div>
|
|
137
|
-
<div class="content ${this.active ?
|
|
128
|
+
<div class="content ${this.active ? "open" : "closed"}">
|
|
138
129
|
<slot name="content"></slot>
|
|
139
130
|
</div> `;
|
|
140
131
|
}
|
|
141
132
|
}
|
|
133
|
+
export {
|
|
134
|
+
PdCollapse
|
|
135
|
+
};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { html, LitElement, css } from "lit";
|
|
2
|
+
import { PDColorStyles, PDFontStyles } from "@progressive-development/pd-shared-styles";
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright (c) 2021 PD Progressive Development UG. All rights reserved.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
import { LitElement, html, css } from 'lit';
|
|
9
|
-
import { PDColorStyles, PDFontStyles } from '@progressive-development/pd-shared-styles';
|
|
10
|
-
|
|
11
|
-
const editIcon = html`<svg
|
|
7
|
+
const editIcon = html`<svg
|
|
12
8
|
class="edit"
|
|
13
9
|
id="Layer_1"
|
|
14
10
|
version="1.1"
|
|
@@ -32,22 +28,15 @@
|
|
|
32
28
|
/>
|
|
33
29
|
</g>
|
|
34
30
|
</svg>`;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
* @event edit-content
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
static get styles() {
|
|
48
|
-
return [
|
|
49
|
-
PDColorStyles, PDFontStyles,
|
|
50
|
-
css`
|
|
31
|
+
class PdEditContent extends LitElement {
|
|
32
|
+
/**
|
|
33
|
+
* @event edit-content
|
|
34
|
+
*/
|
|
35
|
+
static get styles() {
|
|
36
|
+
return [
|
|
37
|
+
PDColorStyles,
|
|
38
|
+
PDFontStyles,
|
|
39
|
+
css`
|
|
51
40
|
:host {
|
|
52
41
|
display: block;
|
|
53
42
|
}
|
|
@@ -146,96 +135,89 @@
|
|
|
146
135
|
width: 130px;
|
|
147
136
|
}
|
|
148
137
|
}
|
|
149
|
-
`
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
return html`
|
|
138
|
+
`
|
|
139
|
+
];
|
|
140
|
+
}
|
|
141
|
+
static get properties() {
|
|
142
|
+
return {
|
|
143
|
+
stepNumber: { type: Number },
|
|
144
|
+
contentTitle: { type: String },
|
|
145
|
+
data: { type: Array },
|
|
146
|
+
editLinks: { type: Array },
|
|
147
|
+
// TODO: [TIM-37] Put together with edit icon/editDisabled
|
|
148
|
+
editDisabled: { type: Boolean }
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
constructor() {
|
|
152
|
+
super();
|
|
153
|
+
this.stepNumber = void 0;
|
|
154
|
+
this.contentTitle = "";
|
|
155
|
+
this.data = [];
|
|
156
|
+
this.editLinks = [];
|
|
157
|
+
this.editDisabled = false;
|
|
158
|
+
}
|
|
159
|
+
render() {
|
|
160
|
+
return html`
|
|
173
161
|
<div class="header">
|
|
174
|
-
${this.stepNumber
|
|
175
|
-
? html`
|
|
162
|
+
${this.stepNumber ? html`
|
|
176
163
|
<div class="circle">
|
|
177
164
|
<span class="step-number">${this.stepNumber}</span>
|
|
178
165
|
</div>
|
|
179
|
-
`
|
|
180
|
-
: ''}
|
|
166
|
+
` : ""}
|
|
181
167
|
<h4>${this.contentTitle}</h4>
|
|
182
168
|
</div>
|
|
183
169
|
<div>
|
|
184
|
-
${this.data
|
|
185
|
-
? html`
|
|
170
|
+
${this.data ? html`
|
|
186
171
|
<div class="param-data">
|
|
187
172
|
${this.data.map(
|
|
188
|
-
|
|
173
|
+
(dataEntry) => html`
|
|
189
174
|
<div>
|
|
190
175
|
<span class="label">${dataEntry.name}</span>
|
|
191
176
|
<span class="value">${dataEntry.val}</span>
|
|
192
177
|
</div>
|
|
193
178
|
`
|
|
194
|
-
|
|
195
|
-
</div>`
|
|
196
|
-
: ''}
|
|
179
|
+
)}
|
|
180
|
+
</div>` : ""}
|
|
197
181
|
<slot></slot>
|
|
198
182
|
<div class="link-row">
|
|
199
|
-
${this.editDisabled
|
|
200
|
-
? ''
|
|
201
|
-
: html`
|
|
183
|
+
${this.editDisabled ? "" : html`
|
|
202
184
|
<a @click="${this._editContent}">
|
|
203
185
|
<div class="link-item">${editIcon} Bewerk ${this.contentTitle}</div>
|
|
204
186
|
</a>
|
|
205
187
|
`}
|
|
206
188
|
${this.editLinks.map(
|
|
207
|
-
|
|
189
|
+
(link) => html`
|
|
208
190
|
<a data-link="${link.key}" @click="${this._editContent}">
|
|
209
191
|
<div class="link-item">${PdEditContent._getLinkLogo(link)} ${link.txt}</div>
|
|
210
192
|
</a>`
|
|
211
|
-
|
|
193
|
+
)}
|
|
212
194
|
</div>
|
|
213
195
|
</div>
|
|
214
196
|
`;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
);
|
|
239
|
-
}
|
|
197
|
+
}
|
|
198
|
+
static _getLinkLogo(link) {
|
|
199
|
+
if (link.icon) {
|
|
200
|
+
return link.icon;
|
|
201
|
+
}
|
|
202
|
+
if (link.defaultIcon) {
|
|
203
|
+
return editIcon;
|
|
204
|
+
}
|
|
205
|
+
return "";
|
|
206
|
+
}
|
|
207
|
+
_editContent(e) {
|
|
208
|
+
const { link } = e.target.dataset;
|
|
209
|
+
this.dispatchEvent(
|
|
210
|
+
new CustomEvent("edit-content", {
|
|
211
|
+
detail: {
|
|
212
|
+
step: this.stepNumber,
|
|
213
|
+
link
|
|
214
|
+
},
|
|
215
|
+
bubbles: true,
|
|
216
|
+
composed: true
|
|
217
|
+
})
|
|
218
|
+
);
|
|
219
|
+
}
|
|
240
220
|
}
|
|
241
|
-
|
|
221
|
+
export {
|
|
222
|
+
PdEditContent
|
|
223
|
+
};
|
|
@@ -1,22 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { LitElement, css, html } from "lit";
|
|
2
|
+
import { updateWhenLocaleChanges, msg } from "@lit/localize";
|
|
3
|
+
import { PDFontStyles } from "@progressive-development/pd-shared-styles";
|
|
3
4
|
/**
|
|
4
5
|
* @license
|
|
5
6
|
* Copyright (c) 2021 PD Progressive Development UG. All rights reserved.
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
-
import { LitElement, html, css } from 'lit';
|
|
9
|
-
import { msg, updateWhenLocaleChanges } from '@lit/localize';
|
|
10
|
-
|
|
11
|
-
import { PDFontStyles } from '@progressive-development/pd-shared-styles';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* An example element.
|
|
15
|
-
*
|
|
16
|
-
* @slot - This element has a slot
|
|
17
|
-
* @csspart button - The button
|
|
18
|
-
*/
|
|
19
|
-
export class PdMoreInfo extends LitElement {
|
|
8
|
+
class PdMoreInfo extends LitElement {
|
|
20
9
|
static get styles() {
|
|
21
10
|
return [
|
|
22
11
|
PDFontStyles,
|
|
@@ -41,52 +30,48 @@ export class PdMoreInfo extends LitElement {
|
|
|
41
30
|
color: var(--pd-default-font-link-col-hover);
|
|
42
31
|
}
|
|
43
32
|
|
|
44
|
-
`
|
|
33
|
+
`
|
|
34
|
+
];
|
|
45
35
|
}
|
|
46
|
-
|
|
47
36
|
static get properties() {
|
|
48
37
|
return {
|
|
49
|
-
_lessInfo: { type: Boolean }
|
|
38
|
+
_lessInfo: { type: Boolean }
|
|
50
39
|
};
|
|
51
40
|
}
|
|
52
|
-
|
|
53
41
|
constructor() {
|
|
54
42
|
super();
|
|
55
43
|
this._lessInfo = true;
|
|
56
44
|
updateWhenLocaleChanges(this);
|
|
57
45
|
}
|
|
58
|
-
|
|
59
46
|
render() {
|
|
60
47
|
if (this._lessInfo) {
|
|
61
48
|
return html`
|
|
62
49
|
<p>
|
|
63
50
|
<slot name="small-view"></slot>
|
|
64
|
-
<a @click="${this._showMoreInfo}">${msg("Mehr Informationen", {id: "pd.moreInfo.more"})}</a>
|
|
51
|
+
<a @click="${this._showMoreInfo}">${msg("Mehr Informationen", { id: "pd.moreInfo.more" })}</a>
|
|
65
52
|
</p>
|
|
66
53
|
`;
|
|
67
54
|
}
|
|
68
55
|
return html`
|
|
69
56
|
<p>
|
|
70
57
|
<slot name="large-view"></slot>
|
|
71
|
-
<a @click="${this._showLessInfo}">${msg("Text ausblenden", {id: "pd.moreInfo.less"})}</a>
|
|
58
|
+
<a @click="${this._showLessInfo}">${msg("Text ausblenden", { id: "pd.moreInfo.less" })}</a>
|
|
72
59
|
</p>
|
|
73
60
|
`;
|
|
74
61
|
}
|
|
75
|
-
|
|
76
62
|
_showMoreInfo() {
|
|
77
63
|
this._lessInfo = false;
|
|
78
64
|
}
|
|
79
|
-
|
|
80
65
|
_showLessInfo() {
|
|
81
66
|
this._lessInfo = true;
|
|
82
|
-
|
|
83
|
-
// scroll to position (otherwise on mobile lost in content...)
|
|
84
67
|
const rect = this.getBoundingClientRect();
|
|
85
|
-
// https://www.mediaevent.de/javascript/scroll.html
|
|
86
68
|
window.scrollBy({
|
|
87
69
|
top: rect.top - 150,
|
|
88
70
|
left: 0,
|
|
89
|
-
behavior:
|
|
71
|
+
behavior: "smooth"
|
|
90
72
|
});
|
|
91
73
|
}
|
|
92
|
-
}
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
PdMoreInfo
|
|
77
|
+
};
|
|
@@ -1,33 +1,19 @@
|
|
|
1
|
+
import { LitElement, css, html } from "lit";
|
|
2
|
+
import { installMediaQueryWatcher } from "pwa-helpers/media-query.js";
|
|
3
|
+
import "@progressive-development/pd-dialog/pd-popup";
|
|
1
4
|
/**
|
|
2
5
|
* @license
|
|
3
6
|
* Copyright (c) 2021 PD Progressive Development UG. All rights reserved.
|
|
4
7
|
*/
|
|
5
|
-
|
|
6
|
-
import { LitElement, html, css } from 'lit';
|
|
7
|
-
|
|
8
|
-
import { installMediaQueryWatcher } from 'pwa-helpers/media-query.js';
|
|
9
|
-
|
|
10
|
-
import '@progressive-development/pd-dialog/pd-popup.js';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* An example element.
|
|
14
|
-
*
|
|
15
|
-
* !!! Not refactored at the moment (not in use) !!! (pd-component and css refactoring from 2022/02))
|
|
16
|
-
*
|
|
17
|
-
* @slot - This element has a slot
|
|
18
|
-
* @csspart button - The button
|
|
19
|
-
*/
|
|
20
|
-
export class PdResizeContent extends LitElement {
|
|
8
|
+
class PdResizeContent extends LitElement {
|
|
21
9
|
/**
|
|
22
10
|
* Fired when free date clicked => At the moment only for freeDates
|
|
23
11
|
* @event book-date
|
|
24
12
|
*/
|
|
25
|
-
|
|
26
13
|
/**
|
|
27
14
|
* Fired when date or ZIP should edited by the user
|
|
28
15
|
* @event edit-selection
|
|
29
16
|
*/
|
|
30
|
-
|
|
31
17
|
static get styles() {
|
|
32
18
|
return css`
|
|
33
19
|
:host {
|
|
@@ -44,22 +30,19 @@ export class PdResizeContent extends LitElement {
|
|
|
44
30
|
}
|
|
45
31
|
`;
|
|
46
32
|
}
|
|
47
|
-
|
|
48
33
|
static get properties() {
|
|
49
34
|
return {
|
|
50
35
|
resizeWidth: { type: String },
|
|
51
|
-
_hideContent: { type: Boolean }
|
|
36
|
+
_hideContent: { type: Boolean }
|
|
52
37
|
};
|
|
53
38
|
}
|
|
54
|
-
|
|
55
39
|
constructor() {
|
|
56
40
|
super();
|
|
57
|
-
this.resizeWidth =
|
|
41
|
+
this.resizeWidth = "1232px";
|
|
58
42
|
this._hideContent = false;
|
|
59
43
|
}
|
|
60
|
-
|
|
61
44
|
firstUpdated() {
|
|
62
|
-
installMediaQueryWatcher(`(min-width: ${this.resizeWidth})`, matches => {
|
|
45
|
+
installMediaQueryWatcher(`(min-width: ${this.resizeWidth})`, (matches) => {
|
|
63
46
|
if (matches) {
|
|
64
47
|
this._hideContent = false;
|
|
65
48
|
} else {
|
|
@@ -67,7 +50,6 @@ export class PdResizeContent extends LitElement {
|
|
|
67
50
|
}
|
|
68
51
|
});
|
|
69
52
|
}
|
|
70
|
-
|
|
71
53
|
render() {
|
|
72
54
|
if (this._hideContent) {
|
|
73
55
|
return html`
|
|
@@ -79,4 +61,7 @@ export class PdResizeContent extends LitElement {
|
|
|
79
61
|
}
|
|
80
62
|
return html` <slot name="resize-content"></slot> `;
|
|
81
63
|
}
|
|
82
|
-
}
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
PdResizeContent
|
|
67
|
+
};
|
package/package.json
CHANGED
|
@@ -1,27 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progressive-development/pd-content",
|
|
3
|
-
"description": "Progressive Development content components. ",
|
|
3
|
+
"description": "Progressive Development content components. ",
|
|
4
|
+
"author": "PD Progressive Development",
|
|
4
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
6
|
+
"version": "0.5.1",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./dist/index.js",
|
|
11
|
+
"./pd-box-view": "./dist/pd-box-view.js",
|
|
12
|
+
"./pd-collapse": "./dist/pd-collapse.js",
|
|
13
|
+
"./pd-edit-content": "./dist/pd-edit-content.js",
|
|
14
|
+
"./pd-more-info": "./dist/pd-more-info.js",
|
|
15
|
+
"./pd-resize-content": "./dist/pd-resize-content.js",
|
|
16
|
+
"./locales/be": "./dist/locales/be.js",
|
|
17
|
+
"./locales/de": "./dist/locales/de.js",
|
|
18
|
+
"./locales/en": "./dist/locales/en.js"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist/",
|
|
22
|
+
"package.json",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE"
|
|
25
|
+
],
|
|
9
26
|
"scripts": {
|
|
10
27
|
"analyze": "cem analyze --litelement",
|
|
11
|
-
"start": "
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
28
|
+
"start": "vite",
|
|
29
|
+
"build": "vite build",
|
|
30
|
+
"preview": "vite preview",
|
|
31
|
+
"lint": "eslint --ext .js,.html . --ignore-path .gitignore && prettier \"**/*.{js,html}\" --check --ignore-path .gitignore",
|
|
32
|
+
"format": "eslint --ext .js,.html . --fix --ignore-path .gitignore && prettier \"**/*.{js,html}\" --write --ignore-path .gitignore",
|
|
33
|
+
"test": "vitest run --coverage",
|
|
34
|
+
"test:watch": "vitest --watch",
|
|
18
35
|
"localizeExtract": "lit-localize extract",
|
|
19
|
-
"localizeBuild": "lit-localize build"
|
|
36
|
+
"localizeBuild": "lit-localize build",
|
|
37
|
+
"storybook": "storybook dev -p 6006",
|
|
38
|
+
"build-storybook": "storybook build"
|
|
20
39
|
},
|
|
21
40
|
"dependencies": {
|
|
22
|
-
"@lit/localize": "^0.12.
|
|
23
|
-
"@progressive-development/pd-dialog": "^0.
|
|
24
|
-
"@progressive-development/pd-icon": "^0.
|
|
41
|
+
"@lit/localize": "^0.12.2",
|
|
42
|
+
"@progressive-development/pd-dialog": "^0.5.0",
|
|
43
|
+
"@progressive-development/pd-icon": "^0.5.0",
|
|
25
44
|
"@progressive-development/pd-shared-styles": "^0.1.1",
|
|
26
45
|
"lit": "^2.8.0",
|
|
27
46
|
"pwa-helpers": "^0.9.1"
|
|
@@ -30,23 +49,22 @@
|
|
|
30
49
|
"@chromatic-com/storybook": "^1.3.4",
|
|
31
50
|
"@custom-elements-manifest/analyzer": "^0.4.17",
|
|
32
51
|
"@lit/localize-tools": "^0.7.2",
|
|
33
|
-
"@open-wc/eslint-config": "^4.3.0",
|
|
34
|
-
"@open-wc/testing": "^3.2.2",
|
|
35
52
|
"@storybook/addon-essentials": "^8.0.10",
|
|
36
53
|
"@storybook/addon-links": "^8.0.10",
|
|
37
54
|
"@storybook/blocks": "^8.0.10",
|
|
38
55
|
"@storybook/test": "^8.0.10",
|
|
39
56
|
"@storybook/web-components": "^8.0.10",
|
|
40
57
|
"@storybook/web-components-vite": "^8.0.10",
|
|
41
|
-
"@web/dev-server": "^0.1.38",
|
|
42
|
-
"@web/test-runner": "^0.13.31",
|
|
43
58
|
"eslint": "^7.32.0",
|
|
44
59
|
"eslint-config-prettier": "^8.10.0",
|
|
45
60
|
"eslint-plugin-storybook": "^0.8.0",
|
|
46
61
|
"husky": "^4.3.8",
|
|
47
62
|
"lint-staged": "^10.5.4",
|
|
48
|
-
"prettier": "^2.8.8",
|
|
49
|
-
"
|
|
63
|
+
"prettier": "^2.8.8",
|
|
64
|
+
"rollup-plugin-visualizer": "^5.13.1",
|
|
65
|
+
"storybook": "^8.0.10",
|
|
66
|
+
"vite": "^5.4.11",
|
|
67
|
+
"vitest": "^2.1.8"
|
|
50
68
|
},
|
|
51
69
|
"customElements": "custom-elements.json",
|
|
52
70
|
"eslintConfig": {
|