@progressive-development/pd-page 0.6.25 → 0.9.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.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -14
- package/dist/locales/be.js +2 -3
- package/dist/locales/de.js +2 -3
- package/dist/locales/en.js +2 -3
- package/dist/pd-contact-us/PdContactUs.d.ts +19 -0
- package/dist/pd-contact-us/PdContactUs.d.ts.map +1 -0
- package/dist/pd-contact-us/PdContactUs.js +223 -0
- package/dist/pd-contact-us/pd-contact-us.d.ts +3 -0
- package/dist/pd-contact-us/pd-contact-us.d.ts.map +1 -0
- package/dist/{stories → pd-contact-us}/pd-contact-us.stories.d.ts +1 -1
- package/dist/pd-contact-us/pd-contact-us.stories.d.ts.map +1 -0
- package/dist/pd-contact-us.d.ts +2 -18
- package/dist/pd-contact-us.js +6 -224
- package/dist/pd-footer/PdFooter.d.ts +32 -0
- package/dist/pd-footer/PdFooter.d.ts.map +1 -0
- package/dist/pd-footer/PdFooter.js +162 -0
- package/dist/pd-footer/pd-footer.d.ts +3 -0
- package/dist/pd-footer/pd-footer.d.ts.map +1 -0
- package/dist/pd-footer/pd-footer.stories.d.ts.map +1 -0
- package/dist/pd-footer.d.ts +2 -31
- package/dist/pd-footer.js +6 -165
- package/dist/pd-menu/PdMenu.d.ts +72 -0
- package/dist/pd-menu/PdMenu.d.ts.map +1 -0
- package/dist/pd-menu/PdMenu.js +472 -0
- package/dist/pd-menu/pd-menu.d.ts +3 -0
- package/dist/pd-menu/pd-menu.d.ts.map +1 -0
- package/dist/{stories → pd-menu}/pd-menu.stories.d.ts +1 -1
- package/dist/{stories → pd-menu}/pd-menu.stories.d.ts.map +1 -1
- package/dist/pd-menu.d.ts +2 -71
- package/dist/pd-menu.js +6 -471
- package/dist/stories/01_index.stories.d.ts.map +1 -1
- package/package.json +29 -49
- package/dist/pd-contact-us.d.ts.map +0 -1
- package/dist/pd-footer.d.ts.map +0 -1
- package/dist/pd-menu.d.ts.map +0 -1
- package/dist/stories/pd-contact-us.stories.d.ts.map +0 -1
- package/dist/stories/pd-footer.stories.d.ts.map +0 -1
- /package/dist/{stories → pd-footer}/pd-footer.stories.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { PdContactUs } from './pd-contact-us.js';
|
|
2
|
-
export { PdFooter } from './pd-footer.js';
|
|
3
|
-
export { PdMenu } from './pd-menu.js';
|
|
1
|
+
export { PdContactUs } from './pd-contact-us/pd-contact-us.js';
|
|
2
|
+
export { PdFooter } from './pd-footer/pd-footer.js';
|
|
3
|
+
export { PdMenu } from './pd-menu/pd-menu.js';
|
|
4
4
|
export type { PdFooterLink, PdFooterMadeBy, PdMenuItem } from './types.js';
|
|
5
5
|
export { templates as beTemplates } from './generated/locales/be.js';
|
|
6
6
|
export { templates as deTemplates } from './generated/locales/de.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE3E,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
PdMenu,
|
|
11
|
-
templates as beTemplates,
|
|
12
|
-
templates2 as deTemplates,
|
|
13
|
-
templates3 as enTemplates
|
|
14
|
-
};
|
|
1
|
+
import './pd-contact-us.js';
|
|
2
|
+
import './pd-footer.js';
|
|
3
|
+
import './pd-menu.js';
|
|
4
|
+
export { templates as beTemplates } from './locales/be.js';
|
|
5
|
+
export { templates as deTemplates } from './locales/de.js';
|
|
6
|
+
export { templates as enTemplates } from './locales/en.js';
|
|
7
|
+
export { PdContactUs } from './pd-contact-us/PdContactUs.js';
|
|
8
|
+
export { PdFooter } from './pd-footer/PdFooter.js';
|
|
9
|
+
export { PdMenu } from './pd-menu/PdMenu.js';
|
package/dist/locales/be.js
CHANGED
package/dist/locales/de.js
CHANGED
package/dist/locales/en.js
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement, CSSResultGroup } from 'lit';
|
|
2
|
+
import { PdContactData } from '@progressive-development/pd-contact';
|
|
3
|
+
/**
|
|
4
|
+
* Contact form component with company address and message form.
|
|
5
|
+
*
|
|
6
|
+
* @event send-contact-request - Fired when the contact form is valid and submitted.
|
|
7
|
+
* @tagname pd-contact-us
|
|
8
|
+
*/
|
|
9
|
+
export declare class PdContactUs extends LitElement {
|
|
10
|
+
/**
|
|
11
|
+
* Contact data displayed in the address section.
|
|
12
|
+
*/
|
|
13
|
+
contact: PdContactData;
|
|
14
|
+
static styles: CSSResultGroup;
|
|
15
|
+
render(): import('lit').TemplateResult<1>;
|
|
16
|
+
clear(): void;
|
|
17
|
+
private _sendMail;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=PdContactUs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdContactUs.d.ts","sourceRoot":"","sources":["../../src/pd-contact-us/PdContactUs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAS5D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,mDAAmD,CAAC;AAC3D,OAAO,qDAAqD,CAAC;AAC7D,OAAO,+CAA+C,CAAC;AACvD,OAAO,4CAA4C,CAAC;AACpD,OAAO,iDAAiD,CAAC;AACzD,OAAO,gDAAgD,CAAC;AAIxD;;;;;GAKG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC;;OAEG;IAEH,OAAO,EAAE,aAAa,CAAM;IAE5B,OAAgB,MAAM,EAAE,cAAc,CAsEpC;IAEF,MAAM;IAgGN,KAAK,IAAI,IAAI;IAOb,OAAO,CAAC,SAAS;CAelB"}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { css, LitElement, html } from 'lit';
|
|
2
|
+
import { localized, msg } from '@lit/localize';
|
|
3
|
+
import { property } from 'lit/decorators.js';
|
|
4
|
+
import { PdColorStyles, PdFontStyles } from '@progressive-development/pd-shared-styles';
|
|
5
|
+
import '@progressive-development/pd-forms/pd-panel-button';
|
|
6
|
+
import '@progressive-development/pd-forms/pd-form-container';
|
|
7
|
+
import '@progressive-development/pd-forms/pd-form-row';
|
|
8
|
+
import '@progressive-development/pd-forms/pd-input';
|
|
9
|
+
import '@progressive-development/pd-forms/pd-input-area';
|
|
10
|
+
import '@progressive-development/pd-contact/pd-contact';
|
|
11
|
+
import { pdIcons } from '@progressive-development/pd-icon';
|
|
12
|
+
|
|
13
|
+
var __defProp = Object.defineProperty;
|
|
14
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
15
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
16
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
17
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
18
|
+
if (decorator = decorators[i])
|
|
19
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
20
|
+
if (kind && result) __defProp(target, key, result);
|
|
21
|
+
return result;
|
|
22
|
+
};
|
|
23
|
+
let PdContactUs = class extends LitElement {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
this.contact = {};
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
return html`
|
|
30
|
+
<div class="content-block">
|
|
31
|
+
<h2>${msg("Kontakt", { id: "pd.contactus.title" })}</h2>
|
|
32
|
+
|
|
33
|
+
<div class="contact-block">
|
|
34
|
+
<div class="left-content">
|
|
35
|
+
<pd-contact
|
|
36
|
+
class="company-contact"
|
|
37
|
+
.contact="${this.contact}"
|
|
38
|
+
addressTitle="${msg("Adresse", {
|
|
39
|
+
id: "pd.contactus.address.title"
|
|
40
|
+
})}"
|
|
41
|
+
summary
|
|
42
|
+
></pd-contact>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div class="right-content">
|
|
46
|
+
<pd-form-container id="contactFormId">
|
|
47
|
+
<pd-form-row>
|
|
48
|
+
<pd-input
|
|
49
|
+
id="nameInputId"
|
|
50
|
+
class="quarter3"
|
|
51
|
+
minlength="3"
|
|
52
|
+
maxlength="100"
|
|
53
|
+
placeHolder="${msg("Name", {
|
|
54
|
+
id: "pd.contactus.address.name"
|
|
55
|
+
})}"
|
|
56
|
+
valueName="name"
|
|
57
|
+
autoCompleteName="full-name"
|
|
58
|
+
required
|
|
59
|
+
></pd-input>
|
|
60
|
+
</pd-form-row>
|
|
61
|
+
|
|
62
|
+
<pd-form-row>
|
|
63
|
+
<pd-input
|
|
64
|
+
id="mailInputId"
|
|
65
|
+
class="quarter3"
|
|
66
|
+
placeHolder="${msg("Email", {
|
|
67
|
+
id: "pd.contactus.address.email"
|
|
68
|
+
})}"
|
|
69
|
+
valueName="email"
|
|
70
|
+
autoCompleteName="email"
|
|
71
|
+
name="email"
|
|
72
|
+
fieldType="mail"
|
|
73
|
+
required
|
|
74
|
+
></pd-input>
|
|
75
|
+
</pd-form-row>
|
|
76
|
+
|
|
77
|
+
<pd-form-row>
|
|
78
|
+
<pd-input
|
|
79
|
+
id="phoneInputId"
|
|
80
|
+
class="quarter3"
|
|
81
|
+
placeHolder="${msg("Telefon", {
|
|
82
|
+
id: "pd.contactus.address.phone"
|
|
83
|
+
})}"
|
|
84
|
+
valueName="phone"
|
|
85
|
+
fieldType="phone"
|
|
86
|
+
autoCompleteName="tel"
|
|
87
|
+
required
|
|
88
|
+
></pd-input>
|
|
89
|
+
</pd-form-row>
|
|
90
|
+
|
|
91
|
+
<pd-form-row>
|
|
92
|
+
<pd-input-area
|
|
93
|
+
id="msgInputId"
|
|
94
|
+
class="quarter3-area"
|
|
95
|
+
minlength="6"
|
|
96
|
+
maxlength="500"
|
|
97
|
+
placeHolder="${msg("Nachricht", {
|
|
98
|
+
id: "pd.contactus.address.message"
|
|
99
|
+
})}"
|
|
100
|
+
rows="8"
|
|
101
|
+
required
|
|
102
|
+
valueName="msg1"
|
|
103
|
+
></pd-input-area>
|
|
104
|
+
</pd-form-row>
|
|
105
|
+
|
|
106
|
+
<pd-form-row>
|
|
107
|
+
<pd-panel-button
|
|
108
|
+
class="quarter3"
|
|
109
|
+
pdButtonIcon="${pdIcons.ICON_MAIL}"
|
|
110
|
+
buttonText="${msg("Absenden", {
|
|
111
|
+
id: "pd.contactus.address.send"
|
|
112
|
+
})}"
|
|
113
|
+
@click="${this._sendMail}"
|
|
114
|
+
primary
|
|
115
|
+
></pd-panel-button>
|
|
116
|
+
</pd-form-row>
|
|
117
|
+
</pd-form-container>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
`;
|
|
122
|
+
}
|
|
123
|
+
clear() {
|
|
124
|
+
this.shadowRoot?.getElementById("nameInputId")?.["clear"]?.();
|
|
125
|
+
this.shadowRoot?.getElementById("mailInputId")?.["clear"]?.();
|
|
126
|
+
this.shadowRoot?.getElementById("phoneInputId")?.["clear"]?.();
|
|
127
|
+
this.shadowRoot?.getElementById("msgInputId")?.["clear"]?.();
|
|
128
|
+
}
|
|
129
|
+
_sendMail() {
|
|
130
|
+
const form = this.shadowRoot?.getElementById(
|
|
131
|
+
"contactFormId"
|
|
132
|
+
);
|
|
133
|
+
form.triggerValidate().then((result) => {
|
|
134
|
+
if (result) {
|
|
135
|
+
this.dispatchEvent(
|
|
136
|
+
new CustomEvent("send-contact-request", {
|
|
137
|
+
detail: { msgObj: form.getValues().origin }
|
|
138
|
+
})
|
|
139
|
+
);
|
|
140
|
+
form.reset();
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
PdContactUs.styles = [
|
|
146
|
+
PdColorStyles,
|
|
147
|
+
PdFontStyles,
|
|
148
|
+
css`
|
|
149
|
+
:host {
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-flow: row;
|
|
152
|
+
background-color: var(--pd-contactus-bg-col, var(--pd-default-col));
|
|
153
|
+
background-image: var(--pd-contactus-bg-image);
|
|
154
|
+
background-repeat: no-repeat;
|
|
155
|
+
min-height: 500px;
|
|
156
|
+
width: 100%;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
h2 {
|
|
160
|
+
font-family: var(--pd-default-font-title-family);
|
|
161
|
+
font-style: normal;
|
|
162
|
+
color: var(--pd-contactus-font-col, var(--pd-default-bg-col));
|
|
163
|
+
margin-top: 1.4em;
|
|
164
|
+
margin-bottom: 2.5rem;
|
|
165
|
+
font-size: var(--pd-contactus-font-h2-size, 2.5rem);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.content-block {
|
|
169
|
+
overflow: hidden;
|
|
170
|
+
display: flex;
|
|
171
|
+
flex-direction: column;
|
|
172
|
+
align-items: flex-start;
|
|
173
|
+
justify-content: flex-start;
|
|
174
|
+
flex-grow: 1;
|
|
175
|
+
max-width: 1170px;
|
|
176
|
+
margin: 0 auto;
|
|
177
|
+
padding-left: 30px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.contact-block {
|
|
181
|
+
display: flex;
|
|
182
|
+
flex-wrap: wrap;
|
|
183
|
+
padding-bottom: 50px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.left-content {
|
|
187
|
+
width: 35%;
|
|
188
|
+
min-width: 230px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.right-content {
|
|
192
|
+
width: 65%;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.company-contact {
|
|
196
|
+
--app-font-content-col: var(
|
|
197
|
+
--pd-contactus-font-col,
|
|
198
|
+
var(--pd-default-bg-col)
|
|
199
|
+
);
|
|
200
|
+
--app-font-title-col: var(
|
|
201
|
+
--pd-contactus-font-col,
|
|
202
|
+
var(--pd-default-bg-col)
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@media (max-width: 440px) {
|
|
207
|
+
.item {
|
|
208
|
+
display: none;
|
|
209
|
+
}
|
|
210
|
+
ul {
|
|
211
|
+
justify-content: flex-start;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
`
|
|
215
|
+
];
|
|
216
|
+
__decorateClass([
|
|
217
|
+
property({ type: Object })
|
|
218
|
+
], PdContactUs.prototype, "contact", 2);
|
|
219
|
+
PdContactUs = __decorateClass([
|
|
220
|
+
localized()
|
|
221
|
+
], PdContactUs);
|
|
222
|
+
|
|
223
|
+
export { PdContactUs };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pd-contact-us.d.ts","sourceRoot":"","sources":["../../src/pd-contact-us/pd-contact-us.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAO/C,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryFn } from '@storybook/web-components';
|
|
2
|
-
import { PdContactUs } from '
|
|
2
|
+
import { PdContactUs } from './pd-contact-us';
|
|
3
3
|
declare const _default: Meta<PdContactUs>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: StoryFn<PdContactUs>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pd-contact-us.stories.d.ts","sourceRoot":"","sources":["../../src/pd-contact-us/pd-contact-us.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAI/D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,iBAAiB,CAAC;wBAoBpB,IAAI,CAAC,WAAW,CAAC;AAlBtB,wBAkBuB;AAMvB,eAAO,MAAM,OAAO,sBAAoB,CAAC"}
|
package/dist/pd-contact-us.d.ts
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Contact form component with company address and message form.
|
|
5
|
-
*
|
|
6
|
-
* @event send-contact-request - Fired when the contact form is valid and submitted.
|
|
7
|
-
*/
|
|
8
|
-
export declare class PdContactUs extends LitElement {
|
|
9
|
-
/**
|
|
10
|
-
* Contact data displayed in the address section.
|
|
11
|
-
*/
|
|
12
|
-
contact: PdContactData;
|
|
13
|
-
static styles: CSSResultGroup;
|
|
14
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
15
|
-
clear(): void;
|
|
16
|
-
private _sendMail;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=pd-contact-us.d.ts.map
|
|
1
|
+
export * from './pd-contact-us/pd-contact-us'
|
|
2
|
+
export {}
|
package/dist/pd-contact-us.js
CHANGED
|
@@ -1,226 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { localized, msg } from "@lit/localize";
|
|
3
|
-
import { property, customElement } from "lit/decorators.js";
|
|
4
|
-
import { PdColorStyles, PdFontStyles } from "@progressive-development/pd-shared-styles";
|
|
5
|
-
import "@progressive-development/pd-forms/pd-icon-panel-button";
|
|
6
|
-
import "@progressive-development/pd-forms/pd-form-container";
|
|
7
|
-
import "@progressive-development/pd-forms/pd-form-row";
|
|
8
|
-
import "@progressive-development/pd-forms/pd-input";
|
|
9
|
-
import "@progressive-development/pd-forms/pd-input-area";
|
|
10
|
-
import "@progressive-development/pd-contact/pd-contact";
|
|
11
|
-
import { pdIcons } from "@progressive-development/pd-icon";
|
|
12
|
-
var __defProp = Object.defineProperty;
|
|
13
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
15
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
16
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
17
|
-
if (decorator = decorators[i])
|
|
18
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
19
|
-
if (kind && result) __defProp(target, key, result);
|
|
20
|
-
return result;
|
|
21
|
-
};
|
|
22
|
-
let PdContactUs = class extends LitElement {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.contact = {};
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
return html`
|
|
29
|
-
<div class="content-block">
|
|
30
|
-
<h2>${msg("Kontakt", { id: "pd.contactus.title" })}</h2>
|
|
1
|
+
import { PdContactUs } from './pd-contact-us/PdContactUs.js';
|
|
31
2
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
.contact="${this.contact}"
|
|
37
|
-
addressTitle="${msg("Adresse", {
|
|
38
|
-
id: "pd.contactus.address.title"
|
|
39
|
-
})}"
|
|
40
|
-
summary
|
|
41
|
-
></pd-contact>
|
|
42
|
-
</div>
|
|
3
|
+
const tag = "pd-contact-us";
|
|
4
|
+
if (!customElements.get(tag)) {
|
|
5
|
+
customElements.define(tag, PdContactUs);
|
|
6
|
+
}
|
|
43
7
|
|
|
44
|
-
|
|
45
|
-
<pd-form-container id="contactFormId">
|
|
46
|
-
<pd-form-row>
|
|
47
|
-
<pd-input
|
|
48
|
-
id="nameInputId"
|
|
49
|
-
class="quarter3"
|
|
50
|
-
minlength="3"
|
|
51
|
-
maxlength="100"
|
|
52
|
-
placeHolder="${msg("Name", {
|
|
53
|
-
id: "pd.contactus.address.name"
|
|
54
|
-
})}"
|
|
55
|
-
valueName="name"
|
|
56
|
-
autoCompleteName="full-name"
|
|
57
|
-
required
|
|
58
|
-
></pd-input>
|
|
59
|
-
</pd-form-row>
|
|
60
|
-
|
|
61
|
-
<pd-form-row>
|
|
62
|
-
<pd-input
|
|
63
|
-
id="mailInputId"
|
|
64
|
-
class="quarter3"
|
|
65
|
-
placeHolder="${msg("Email", {
|
|
66
|
-
id: "pd.contactus.address.email"
|
|
67
|
-
})}"
|
|
68
|
-
valueName="email"
|
|
69
|
-
autoCompleteName="email"
|
|
70
|
-
name="email"
|
|
71
|
-
fieldType="mail"
|
|
72
|
-
required
|
|
73
|
-
></pd-input>
|
|
74
|
-
</pd-form-row>
|
|
75
|
-
|
|
76
|
-
<pd-form-row>
|
|
77
|
-
<pd-input
|
|
78
|
-
id="phoneInputId"
|
|
79
|
-
class="quarter3"
|
|
80
|
-
placeHolder="${msg("Telefon", {
|
|
81
|
-
id: "pd.contactus.address.phone"
|
|
82
|
-
})}"
|
|
83
|
-
valueName="phone"
|
|
84
|
-
fieldType="phone"
|
|
85
|
-
autoCompleteName="tel"
|
|
86
|
-
required
|
|
87
|
-
></pd-input>
|
|
88
|
-
</pd-form-row>
|
|
89
|
-
|
|
90
|
-
<pd-form-row>
|
|
91
|
-
<pd-input-area
|
|
92
|
-
id="msgInputId"
|
|
93
|
-
class="quarter3-area"
|
|
94
|
-
minlength="6"
|
|
95
|
-
maxlength="500"
|
|
96
|
-
placeHolder="${msg("Nachricht", {
|
|
97
|
-
id: "pd.contactus.address.message"
|
|
98
|
-
})}"
|
|
99
|
-
rows="8"
|
|
100
|
-
required
|
|
101
|
-
valueName="msg1"
|
|
102
|
-
></pd-input-area>
|
|
103
|
-
</pd-form-row>
|
|
104
|
-
|
|
105
|
-
<pd-form-row>
|
|
106
|
-
<pd-icon-panel-button
|
|
107
|
-
class="quarter3"
|
|
108
|
-
pdButtonIcon="${pdIcons.ICON_MAIL}"
|
|
109
|
-
buttonText="${msg("Absenden", {
|
|
110
|
-
id: "pd.contactus.address.send"
|
|
111
|
-
})}"
|
|
112
|
-
@click="${this._sendMail}"
|
|
113
|
-
primary
|
|
114
|
-
></pd-icon-panel-button>
|
|
115
|
-
</pd-form-row>
|
|
116
|
-
</pd-form-container>
|
|
117
|
-
</div>
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
120
|
-
`;
|
|
121
|
-
}
|
|
122
|
-
clear() {
|
|
123
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
124
|
-
(_c = (_b = (_a = this.shadowRoot) == null ? void 0 : _a.getElementById("nameInputId")) == null ? void 0 : _b["clear"]) == null ? void 0 : _c.call(_b);
|
|
125
|
-
(_f = (_e = (_d = this.shadowRoot) == null ? void 0 : _d.getElementById("mailInputId")) == null ? void 0 : _e["clear"]) == null ? void 0 : _f.call(_e);
|
|
126
|
-
(_i = (_h = (_g = this.shadowRoot) == null ? void 0 : _g.getElementById("phoneInputId")) == null ? void 0 : _h["clear"]) == null ? void 0 : _i.call(_h);
|
|
127
|
-
(_l = (_k = (_j = this.shadowRoot) == null ? void 0 : _j.getElementById("msgInputId")) == null ? void 0 : _k["clear"]) == null ? void 0 : _l.call(_k);
|
|
128
|
-
}
|
|
129
|
-
_sendMail() {
|
|
130
|
-
var _a;
|
|
131
|
-
const form = (_a = this.shadowRoot) == null ? void 0 : _a.getElementById(
|
|
132
|
-
"contactFormId"
|
|
133
|
-
);
|
|
134
|
-
form.triggerValidate().then((result) => {
|
|
135
|
-
if (result) {
|
|
136
|
-
this.dispatchEvent(
|
|
137
|
-
new CustomEvent("send-contact-request", {
|
|
138
|
-
detail: { msgObj: form.getValues().origin }
|
|
139
|
-
})
|
|
140
|
-
);
|
|
141
|
-
form.reset();
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
PdContactUs.styles = [
|
|
147
|
-
PdColorStyles,
|
|
148
|
-
PdFontStyles,
|
|
149
|
-
css`
|
|
150
|
-
:host {
|
|
151
|
-
display: flex;
|
|
152
|
-
flex-flow: row;
|
|
153
|
-
background-color: var(--pd-contactus-bg-col, var(--pd-default-col));
|
|
154
|
-
background-image: var(--pd-contactus-bg-image);
|
|
155
|
-
background-repeat: no-repeat;
|
|
156
|
-
min-height: 500px;
|
|
157
|
-
width: 100%;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
h2 {
|
|
161
|
-
font-family: var(--pd-default-font-title-family);
|
|
162
|
-
font-style: normal;
|
|
163
|
-
color: var(--pd-contactus-font-col, var(--pd-default-bg-col));
|
|
164
|
-
margin-top: 1.4em;
|
|
165
|
-
margin-bottom: 2.5rem;
|
|
166
|
-
font-size: var(--pd-contactus-font-h2-size, 2.5rem);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.content-block {
|
|
170
|
-
overflow: hidden;
|
|
171
|
-
display: flex;
|
|
172
|
-
flex-direction: column;
|
|
173
|
-
align-items: flex-start;
|
|
174
|
-
justify-content: flex-start;
|
|
175
|
-
flex-grow: 1;
|
|
176
|
-
max-width: 1170px;
|
|
177
|
-
margin: 0 auto;
|
|
178
|
-
padding-left: 30px;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.contact-block {
|
|
182
|
-
display: flex;
|
|
183
|
-
flex-wrap: wrap;
|
|
184
|
-
padding-bottom: 50px;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.left-content {
|
|
188
|
-
width: 35%;
|
|
189
|
-
min-width: 230px;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.right-content {
|
|
193
|
-
width: 65%;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.company-contact {
|
|
197
|
-
--app-font-content-col: var(
|
|
198
|
-
--pd-contactus-font-col,
|
|
199
|
-
var(--pd-default-bg-col)
|
|
200
|
-
);
|
|
201
|
-
--app-font-title-col: var(
|
|
202
|
-
--pd-contactus-font-col,
|
|
203
|
-
var(--pd-default-bg-col)
|
|
204
|
-
);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
@media (max-width: 440px) {
|
|
208
|
-
.item {
|
|
209
|
-
display: none;
|
|
210
|
-
}
|
|
211
|
-
ul {
|
|
212
|
-
justify-content: flex-start;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
`
|
|
216
|
-
];
|
|
217
|
-
__decorateClass([
|
|
218
|
-
property({ type: Object })
|
|
219
|
-
], PdContactUs.prototype, "contact", 2);
|
|
220
|
-
PdContactUs = __decorateClass([
|
|
221
|
-
customElement("pd-contact-us"),
|
|
222
|
-
localized()
|
|
223
|
-
], PdContactUs);
|
|
224
|
-
export {
|
|
225
|
-
PdContactUs
|
|
226
|
-
};
|
|
8
|
+
export { PdContactUs };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LitElement, CSSResultGroup } from 'lit';
|
|
2
|
+
import { PdFooterLink, PdFooterMadeBy } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Footer-Komponente mit konfigurierbaren Links, Version und Copyright.
|
|
5
|
+
*
|
|
6
|
+
* @fires footer-link - Wird ausgelöst, wenn auf einen Footer-Link geklickt wird.
|
|
7
|
+
* @slot - Standard-Slot nicht verwendet.
|
|
8
|
+
* @tagname pd-footer
|
|
9
|
+
*/
|
|
10
|
+
export declare class PdFooter extends LitElement {
|
|
11
|
+
/**
|
|
12
|
+
* Optional: Copyright-Zeile, z.B. "2024 PD Progressive Development UG".
|
|
13
|
+
*/
|
|
14
|
+
copyright: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optionale Versionsangabe, z.B. "v1.2.3".
|
|
17
|
+
*/
|
|
18
|
+
version: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optionaler Verweis auf den Entwickler oder die Agentur.
|
|
21
|
+
*/
|
|
22
|
+
madeBy?: PdFooterMadeBy;
|
|
23
|
+
/**
|
|
24
|
+
* Liste von Footer-Links.
|
|
25
|
+
*/
|
|
26
|
+
footerLinks: PdFooterLink[];
|
|
27
|
+
static styles: CSSResultGroup;
|
|
28
|
+
render(): import('lit').TemplateResult<1>;
|
|
29
|
+
private _clickMadeBy;
|
|
30
|
+
private _footerLinkClicked;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=PdFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdFooter.d.ts","sourceRoot":"","sources":["../../src/pd-footer/PdFooter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,cAAc,EAAE,MAAM,KAAK,CAAC;AAMrE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAExD;;;;;;GAMG;AACH,qBAAa,QAAS,SAAQ,UAAU;IACtC;;OAEG;IAEH,SAAS,SAAM;IAEf;;OAEG;IAEH,OAAO,SAAM;IAEb;;OAEG;IAEH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;OAEG;IAEH,WAAW,EAAE,YAAY,EAAE,CAAM;IAEjC,OAAgB,MAAM,EAAE,cAAc,CA2EpC;IAEO,MAAM;IAmCf,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,kBAAkB;CAe3B"}
|