@progressive-development/pd-page 0.6.25 → 0.9.2

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.
Files changed (40) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +9 -14
  4. package/dist/locales/be.js +2 -3
  5. package/dist/locales/de.js +2 -3
  6. package/dist/locales/en.js +2 -3
  7. package/dist/pd-contact-us/PdContactUs.d.ts +19 -0
  8. package/dist/pd-contact-us/PdContactUs.d.ts.map +1 -0
  9. package/dist/pd-contact-us/PdContactUs.js +220 -0
  10. package/dist/pd-contact-us/pd-contact-us.d.ts +3 -0
  11. package/dist/pd-contact-us/pd-contact-us.d.ts.map +1 -0
  12. package/dist/{stories → pd-contact-us}/pd-contact-us.stories.d.ts +1 -1
  13. package/dist/pd-contact-us/pd-contact-us.stories.d.ts.map +1 -0
  14. package/dist/pd-contact-us.d.ts +2 -18
  15. package/dist/pd-contact-us.js +6 -224
  16. package/dist/pd-footer/PdFooter.d.ts +32 -0
  17. package/dist/pd-footer/PdFooter.d.ts.map +1 -0
  18. package/dist/pd-footer/PdFooter.js +159 -0
  19. package/dist/pd-footer/pd-footer.d.ts +3 -0
  20. package/dist/pd-footer/pd-footer.d.ts.map +1 -0
  21. package/dist/pd-footer/pd-footer.stories.d.ts.map +1 -0
  22. package/dist/pd-footer.d.ts +2 -31
  23. package/dist/pd-footer.js +6 -165
  24. package/dist/pd-menu/PdMenu.d.ts +72 -0
  25. package/dist/pd-menu/PdMenu.d.ts.map +1 -0
  26. package/dist/pd-menu/PdMenu.js +469 -0
  27. package/dist/pd-menu/pd-menu.d.ts +3 -0
  28. package/dist/pd-menu/pd-menu.d.ts.map +1 -0
  29. package/dist/{stories → pd-menu}/pd-menu.stories.d.ts +1 -1
  30. package/dist/{stories → pd-menu}/pd-menu.stories.d.ts.map +1 -1
  31. package/dist/pd-menu.d.ts +2 -71
  32. package/dist/pd-menu.js +6 -471
  33. package/dist/stories/01_index.stories.d.ts.map +1 -1
  34. package/package.json +30 -50
  35. package/dist/pd-contact-us.d.ts.map +0 -1
  36. package/dist/pd-footer.d.ts.map +0 -1
  37. package/dist/pd-menu.d.ts.map +0 -1
  38. package/dist/stories/pd-contact-us.stories.d.ts.map +0 -1
  39. package/dist/stories/pd-footer.stories.d.ts.map +0 -1
  40. /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';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,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"}
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 { PdContactUs } from "./pd-contact-us.js";
2
- import { PdFooter } from "./pd-footer.js";
3
- import { PdMenu } from "./pd-menu.js";
4
- import { templates } from "./locales/be.js";
5
- import { templates as templates2 } from "./locales/de.js";
6
- import { templates as templates3 } from "./locales/en.js";
7
- export {
8
- PdContactUs,
9
- PdFooter,
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';
@@ -8,6 +8,5 @@ const templates = {
8
8
  "pd.contactus.title": `Contact`,
9
9
  "pd.menu.label": `Menü`
10
10
  };
11
- export {
12
- templates
13
- };
11
+
12
+ export { templates };
@@ -8,6 +8,5 @@ const templates = {
8
8
  "pd.contactus.address.send": `Absenden`,
9
9
  "pd.menu.label": `Menü`
10
10
  };
11
- export {
12
- templates
13
- };
11
+
12
+ export { templates };
@@ -8,6 +8,5 @@ const templates = {
8
8
  "pd.contactus.title": `Contact`,
9
9
  "pd.menu.label": `Menü`
10
10
  };
11
- export {
12
- templates
13
- };
11
+
12
+ export { templates };
@@ -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;AAI5D,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,CAoEpC;IAEF,MAAM;IAgGN,KAAK,IAAI,IAAI;IAOb,OAAO,CAAC,SAAS;CAelB"}
@@ -0,0 +1,220 @@
1
+ import { css, LitElement, html } from 'lit';
2
+ import { localized, msg } from '@lit/localize';
3
+ import { property } from 'lit/decorators.js';
4
+ import '@progressive-development/pd-forms/pd-panel-button';
5
+ import '@progressive-development/pd-forms/pd-form-container';
6
+ import '@progressive-development/pd-forms/pd-form-row';
7
+ import '@progressive-development/pd-forms/pd-input';
8
+ import '@progressive-development/pd-forms/pd-input-area';
9
+ import '@progressive-development/pd-contact/pd-contact';
10
+ import { pdIcons } from '@progressive-development/pd-icon';
11
+
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>
31
+
32
+ <div class="contact-block">
33
+ <div class="left-content">
34
+ <pd-contact
35
+ class="company-contact"
36
+ .contact="${this.contact}"
37
+ addressTitle="${msg("Adresse", {
38
+ id: "pd.contactus.address.title"
39
+ })}"
40
+ summary
41
+ ></pd-contact>
42
+ </div>
43
+
44
+ <div class="right-content">
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-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-panel-button>
115
+ </pd-form-row>
116
+ </pd-form-container>
117
+ </div>
118
+ </div>
119
+ </div>
120
+ `;
121
+ }
122
+ clear() {
123
+ this.shadowRoot?.getElementById("nameInputId")?.["clear"]?.();
124
+ this.shadowRoot?.getElementById("mailInputId")?.["clear"]?.();
125
+ this.shadowRoot?.getElementById("phoneInputId")?.["clear"]?.();
126
+ this.shadowRoot?.getElementById("msgInputId")?.["clear"]?.();
127
+ }
128
+ _sendMail() {
129
+ const form = this.shadowRoot?.getElementById(
130
+ "contactFormId"
131
+ );
132
+ form.triggerValidate().then((result) => {
133
+ if (result) {
134
+ this.dispatchEvent(
135
+ new CustomEvent("send-contact-request", {
136
+ detail: { msgObj: form.getValues().origin }
137
+ })
138
+ );
139
+ form.reset();
140
+ }
141
+ });
142
+ }
143
+ };
144
+ PdContactUs.styles = [
145
+ css`
146
+ :host {
147
+ display: flex;
148
+ flex-flow: row;
149
+ background-color: var(--pd-contactus-bg-col, var(--pd-default-col));
150
+ background-image: var(--pd-contactus-bg-image);
151
+ background-repeat: no-repeat;
152
+ min-height: 500px;
153
+ width: 100%;
154
+ }
155
+
156
+ h2 {
157
+ font-family: var(--pd-default-font-title-family);
158
+ font-style: normal;
159
+ color: var(--pd-contactus-font-col, var(--pd-default-bg-col));
160
+ margin-top: 1.4em;
161
+ margin-bottom: 2.5rem;
162
+ font-size: var(--pd-contactus-font-h2-size, 2.5rem);
163
+ }
164
+
165
+ .content-block {
166
+ overflow: hidden;
167
+ display: flex;
168
+ flex-direction: column;
169
+ align-items: flex-start;
170
+ justify-content: flex-start;
171
+ flex-grow: 1;
172
+ max-width: 1170px;
173
+ margin: 0 auto;
174
+ padding-left: 30px;
175
+ }
176
+
177
+ .contact-block {
178
+ display: flex;
179
+ flex-wrap: wrap;
180
+ padding-bottom: 50px;
181
+ }
182
+
183
+ .left-content {
184
+ width: 35%;
185
+ min-width: 230px;
186
+ }
187
+
188
+ .right-content {
189
+ width: 65%;
190
+ }
191
+
192
+ .company-contact {
193
+ --app-font-content-col: var(
194
+ --pd-contactus-font-col,
195
+ var(--pd-default-bg-col)
196
+ );
197
+ --app-font-title-col: var(
198
+ --pd-contactus-font-col,
199
+ var(--pd-default-bg-col)
200
+ );
201
+ }
202
+
203
+ @media (max-width: 440px) {
204
+ .item {
205
+ display: none;
206
+ }
207
+ ul {
208
+ justify-content: flex-start;
209
+ }
210
+ }
211
+ `
212
+ ];
213
+ __decorateClass([
214
+ property({ type: Object })
215
+ ], PdContactUs.prototype, "contact", 2);
216
+ PdContactUs = __decorateClass([
217
+ localized()
218
+ ], PdContactUs);
219
+
220
+ export { PdContactUs };
@@ -0,0 +1,3 @@
1
+ import { PdContactUs } from './PdContactUs.js';
2
+ export { PdContactUs };
3
+ //# sourceMappingURL=pd-contact-us.d.ts.map
@@ -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 '../pd-contact-us';
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"}
@@ -1,18 +1,2 @@
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
- */
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 {}
@@ -1,226 +1,8 @@
1
- import { css, LitElement, html } from "lit";
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
- <div class="contact-block">
33
- <div class="left-content">
34
- <pd-contact
35
- class="company-contact"
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
- <div class="right-content">
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;AAGrE,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,CAyEpC;IAEO,MAAM;IAmCf,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,kBAAkB;CAe3B"}