@progressive-development/pd-order 0.6.8 → 0.6.10
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/pd-order-contacts.d.ts.map +1 -1
- package/dist/pd-order-contacts.js +29 -25
- package/dist/pd-order-summary.d.ts +2 -2
- package/dist/pd-order-summary.d.ts.map +1 -1
- package/dist/pd-order-summary.js +18 -14
- package/dist/stories/test-impl/test-summary.d.ts +1 -1
- package/dist/stories/test-impl/test-summary.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pd-order-contacts.d.ts","sourceRoot":"","sources":["../src/pd-order-contacts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAIV,cAAc,EACd,cAAc,EACf,MAAM,KAAK,CAAC;AAIb,OAAO,uDAAuD,CAAC;AAC/D,OAAO,iDAAiD,CAAC;AACzD,OAAO,gDAAgD,CAAC;AACxD,OAAO,+CAA+C,CAAC;AAKvD,OAAO,EAEL,aAAa,EACb,cAAc,EACf,MAAM,qCAAqC,CAAC;AAE7C;;;;;;GAMG;AACH,qBAEa,eAAgB,SAAQ,UAAU;IAC7C,gEAAgE;IAEhE,OAAO,UAAS;IAEhB,uDAAuD;IAEvD,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM;IAE1C,6EAA6E;IAE7E,cAAc,EAAE,MAAM,EAAE,CAAM;IAE9B,uCAAuC;IAEvC,YAAY,CAAC,EAAE,aAAa,CAAC;IAE7B,0CAA0C;IAE1C,cAAc,CAAC,EAAE,aAAa,CAAC;IAE/B,mCAAmC;IAEnC,YAAY,CAAC,EAAE,aAAa,CAAC;IAE7B,8CAA8C;IAE9C,eAAe,CAAC,EAAE,aAAa,CAAC;IAEhC,0DAA0D;IAE1D,WAAW,UAAS;IAEpB,qEAAqE;IAErE,iBAAiB,UAAS;IAG1B,gBAAgB,UAAS;IAEzB,0EAA0E;IAE1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C,OAAO,CAAC,gBAAgB,CAAS;IAGjC,OAAO,CAAC,gBAAgB,CAAS;IAEjC,OAAgB,MAAM,EAAE,cAAc,CAgDpC;IAEO,MAAM,CAAC,YAAY,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAazD,SAAS,CAAC,MAAM;IAIhB,OAAO,CAAC,mBAAmB;IAiK3B,OAAO,CAAC,cAAc;IA+CtB,IAAI,KAAK,IAAI,OAAO,CASnB;IAEY,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAkCzC,SAAS;IAWhB,OAAO,CAAC,eAAe;CAoBxB"}
|
|
@@ -57,10 +57,10 @@ let PdOrderContacts = class extends LitElement {
|
|
|
57
57
|
id="orderContactId"
|
|
58
58
|
class="collapse-contact"
|
|
59
59
|
slot="content"
|
|
60
|
-
.requiredFields
|
|
61
|
-
.contact
|
|
62
|
-
.match
|
|
63
|
-
?withPropertyDate
|
|
60
|
+
.requiredFields="${this.requiredFields}"
|
|
61
|
+
.contact="${this.orderContact}"
|
|
62
|
+
.match="${this.match}"
|
|
63
|
+
?withPropertyDate="${!this._isPropertyOwner && this.withPropertyDate}"
|
|
64
64
|
></pd-contact>
|
|
65
65
|
</pd-collapse>
|
|
66
66
|
|
|
@@ -74,7 +74,7 @@ let PdOrderContacts = class extends LitElement {
|
|
|
74
74
|
<div slot="content">
|
|
75
75
|
${this._ownBillingContact ? html`
|
|
76
76
|
<p>
|
|
77
|
-
<a @click
|
|
77
|
+
<a @click="${() => this._ownBillingContact = false}"
|
|
78
78
|
>${msg(
|
|
79
79
|
"Kundenadresse als Rechnungsadresse verwenden"
|
|
80
80
|
)}</a
|
|
@@ -83,8 +83,8 @@ let PdOrderContacts = class extends LitElement {
|
|
|
83
83
|
<pd-contact
|
|
84
84
|
id="billingContactId"
|
|
85
85
|
class="collapse-contact"
|
|
86
|
-
.requiredFields
|
|
87
|
-
.contact
|
|
86
|
+
.requiredFields="${this.requiredFields}"
|
|
87
|
+
.contact="${this.billingContact}"
|
|
88
88
|
></pd-contact>
|
|
89
89
|
` : html`
|
|
90
90
|
<p>
|
|
@@ -105,7 +105,7 @@ let PdOrderContacts = class extends LitElement {
|
|
|
105
105
|
<div class="property-owner-box">
|
|
106
106
|
<pd-checkbox
|
|
107
107
|
id="isPropertyOwnerId"
|
|
108
|
-
initValue
|
|
108
|
+
initValue="${this._isPropertyOwner}"
|
|
109
109
|
@pd-form-element-change="${(e) => {
|
|
110
110
|
this._isPropertyOwner = e.detail.value === "true";
|
|
111
111
|
}}"
|
|
@@ -127,15 +127,19 @@ let PdOrderContacts = class extends LitElement {
|
|
|
127
127
|
<pd-contact
|
|
128
128
|
id="propertyContactId"
|
|
129
129
|
class="collapse-contact"
|
|
130
|
-
.requiredFields
|
|
130
|
+
.requiredFields="${[
|
|
131
131
|
"street",
|
|
132
132
|
"streetNr",
|
|
133
133
|
"zip",
|
|
134
134
|
"city"
|
|
135
|
-
]}
|
|
136
|
-
.inputFields
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
]}"
|
|
136
|
+
.inputFields="${[
|
|
137
|
+
"street",
|
|
138
|
+
"city",
|
|
139
|
+
"additionalHint"
|
|
140
|
+
]}"
|
|
141
|
+
.contact="${this.propertyContact}"
|
|
142
|
+
?withPropertyDate="${this.withPropertyDate}"
|
|
139
143
|
></pd-contact>
|
|
140
144
|
</div>
|
|
141
145
|
</pd-collapse>
|
|
@@ -148,7 +152,7 @@ let PdOrderContacts = class extends LitElement {
|
|
|
148
152
|
${this._ownAdminContact ? html`
|
|
149
153
|
<p>
|
|
150
154
|
<a
|
|
151
|
-
@click
|
|
155
|
+
@click="${() => this._ownAdminContact = false}"
|
|
152
156
|
>${msg(
|
|
153
157
|
"Kundenadresse als Verwaltungsadresse verwenden"
|
|
154
158
|
)}</a
|
|
@@ -157,8 +161,8 @@ let PdOrderContacts = class extends LitElement {
|
|
|
157
161
|
<pd-contact
|
|
158
162
|
id="adminContactId"
|
|
159
163
|
class="collapse-contact"
|
|
160
|
-
.requiredFields
|
|
161
|
-
.contact
|
|
164
|
+
.requiredFields="${this.requiredFields}"
|
|
165
|
+
.contact="${this.adminContact}"
|
|
162
166
|
></pd-contact>
|
|
163
167
|
` : html`
|
|
164
168
|
<p>
|
|
@@ -168,7 +172,7 @@ let PdOrderContacts = class extends LitElement {
|
|
|
168
172
|
</p>
|
|
169
173
|
<p>
|
|
170
174
|
<a
|
|
171
|
-
@click
|
|
175
|
+
@click="${() => this._ownAdminContact = true}"
|
|
172
176
|
>${msg(
|
|
173
177
|
"Neue Verwaltungsadresse hinzufügen"
|
|
174
178
|
)}</a
|
|
@@ -188,29 +192,29 @@ let PdOrderContacts = class extends LitElement {
|
|
|
188
192
|
<div class="summary-box">
|
|
189
193
|
${this.orderContact ? html`
|
|
190
194
|
<pd-contact
|
|
191
|
-
addressTitle
|
|
192
|
-
.contact
|
|
195
|
+
addressTitle="${this.contactTitle.orderSummaryContact ?? msg("Adresse")}"
|
|
196
|
+
.contact="${this.orderContact}"
|
|
193
197
|
summary
|
|
194
198
|
></pd-contact>
|
|
195
199
|
` : nothing}
|
|
196
200
|
${this.billingContact ? html`
|
|
197
201
|
<pd-contact
|
|
198
|
-
addressTitle
|
|
199
|
-
.contact
|
|
202
|
+
addressTitle="${this.contactTitle.billingSummaryContact ?? msg("Rechnungsadresse")}"
|
|
203
|
+
.contact="${this.billingContact}"
|
|
200
204
|
summary
|
|
201
205
|
></pd-contact>
|
|
202
206
|
` : nothing}
|
|
203
207
|
${this.propertyContact ? html`
|
|
204
208
|
<pd-contact
|
|
205
|
-
addressTitle
|
|
206
|
-
.contact
|
|
209
|
+
addressTitle="${this.contactTitle.propertySummaryContact ?? msg("Immobilie")}"
|
|
210
|
+
.contact="${this.propertyContact}"
|
|
207
211
|
summary
|
|
208
212
|
></pd-contact>
|
|
209
213
|
` : nothing}
|
|
210
214
|
${this.adminContact ? html`
|
|
211
215
|
<pd-contact
|
|
212
|
-
addressTitle
|
|
213
|
-
.contact
|
|
216
|
+
addressTitle="${this.contactTitle.adminSummaryContact ?? msg("Verwaltung")}"
|
|
217
|
+
.contact="${this.adminContact}"
|
|
214
218
|
summary
|
|
215
219
|
></pd-contact>
|
|
216
220
|
` : nothing}
|
|
@@ -6,7 +6,7 @@ import { PdOrderStep } from './types.js';
|
|
|
6
6
|
* @fires go-to - Wird ausgelöst, wenn der Benutzer "edit-content" aktiviert
|
|
7
7
|
* @slot legal - Slot für die AGB-Inhalte
|
|
8
8
|
*/
|
|
9
|
-
export declare
|
|
9
|
+
export declare class PdOrderSummary extends LitElement {
|
|
10
10
|
/**
|
|
11
11
|
* Die Liste der Bestellschritte (z.B. Buchung, Kontaktdaten, etc.),
|
|
12
12
|
* wie sie in der Zusammenfassung gerendert werden.
|
|
@@ -23,7 +23,7 @@ export declare abstract class PdOrderSummary<T> extends LitElement {
|
|
|
23
23
|
/**
|
|
24
24
|
* Die vollständigen Bestelldaten inklusive Postleitzahl, Kontakten und Preisinformationen.
|
|
25
25
|
*/
|
|
26
|
-
order?:
|
|
26
|
+
order?: any;
|
|
27
27
|
private _agreeForm;
|
|
28
28
|
static styles: CSSResultGroup;
|
|
29
29
|
firstUpdated(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pd-order-summary.d.ts","sourceRoot":"","sources":["../src/pd-order-summary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI5E,OAAO,qDAAqD,CAAC;AAC7D,OAAO,+CAA+C,CAAC;AACvD,OAAO,+CAA+C,CAAC;AAEvD,OAAO,iDAAiD,CAAC;AACzD,OAAO,6CAA6C,CAAC;AACrD,OAAO,qDAAqD,CAAC;AAO7D,OAAO,EAAsB,WAAW,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,wBAAwB,CAAC;AAGhC;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"pd-order-summary.d.ts","sourceRoot":"","sources":["../src/pd-order-summary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI5E,OAAO,qDAAqD,CAAC;AAC7D,OAAO,+CAA+C,CAAC;AACvD,OAAO,+CAA+C,CAAC;AAEvD,OAAO,iDAAiD,CAAC;AACzD,OAAO,6CAA6C,CAAC;AACrD,OAAO,qDAAqD,CAAC;AAO7D,OAAO,EAAsB,WAAW,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,wBAAwB,CAAC;AAGhC;;;;;GAKG;AACH,qBAEa,cAAe,SAAQ,UAAU;IAC5C;;;OAGG;IAEH,UAAU,EAAE,WAAW,EAAE,CAAM;IAE/B;;OAEG;IAEH,WAAW,UAAS;IAEpB;;OAEG;IAEH,aAAa,UAAS;IAEtB;;OAEG;IAEH,KAAK,CAAC,EAAE,GAAG,CAAC;IAGZ,OAAO,CAAC,UAAU,CAAmB;IAErC,OAAgB,MAAM,EAAE,cAAc,CAqDpC;IAEO,YAAY,IAAI,IAAI;IAYpB,MAAM;IA0Df,IAAI,KAAK,YAER;IAEY,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IA6BhD,SAAS,CAAC,oBAAoB,CAC5B,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,MAAM,GACZ,cAAc;IAkBjB,SAAS,CAAC,6BAA6B,CACrC,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,MAAM,GACZ,cAAc,GAAG,IAAI;IAUxB,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW;IAoB9D,OAAO,CAAC,uBAAuB;CAOhC"}
|
package/dist/pd-order-summary.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { property, query } from "lit/decorators.js";
|
|
3
|
-
import { msg } from "@lit/localize";
|
|
1
|
+
import { css, LitElement, html } from "lit";
|
|
2
|
+
import { property, query, customElement } from "lit/decorators.js";
|
|
3
|
+
import { localized, msg } from "@lit/localize";
|
|
4
4
|
import "@progressive-development/pd-forms/pd-form-container";
|
|
5
5
|
import "@progressive-development/pd-forms/pd-form-row";
|
|
6
6
|
import "@progressive-development/pd-forms/pd-checkbox";
|
|
@@ -10,15 +10,16 @@ import "@progressive-development/pd-content/pd-edit-content";
|
|
|
10
10
|
import { PdFontStyles, PdColorStyles } from "@progressive-development/pd-shared-styles";
|
|
11
11
|
import "./pd-order-contacts.js";
|
|
12
12
|
var __defProp = Object.defineProperty;
|
|
13
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
14
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
14
|
-
var result = void 0;
|
|
15
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
15
16
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
16
17
|
if (decorator = decorators[i])
|
|
17
|
-
result = decorator(target, key, result) || result;
|
|
18
|
-
if (result) __defProp(target, key, result);
|
|
18
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
19
|
+
if (kind && result) __defProp(target, key, result);
|
|
19
20
|
return result;
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
+
let PdOrderSummary = class extends LitElement {
|
|
22
23
|
constructor() {
|
|
23
24
|
super(...arguments);
|
|
24
25
|
this.orderSteps = [];
|
|
@@ -171,7 +172,7 @@ const _PdOrderSummary = class _PdOrderSummary extends LitElement {
|
|
|
171
172
|
popup == null ? void 0 : popup.showPopup();
|
|
172
173
|
}
|
|
173
174
|
};
|
|
174
|
-
|
|
175
|
+
PdOrderSummary.styles = [
|
|
175
176
|
PdFontStyles,
|
|
176
177
|
PdColorStyles,
|
|
177
178
|
css`
|
|
@@ -225,22 +226,25 @@ _PdOrderSummary.styles = [
|
|
|
225
226
|
}
|
|
226
227
|
`
|
|
227
228
|
];
|
|
228
|
-
let PdOrderSummary = _PdOrderSummary;
|
|
229
229
|
__decorateClass([
|
|
230
230
|
property({ type: Array })
|
|
231
|
-
], PdOrderSummary.prototype, "orderSteps");
|
|
231
|
+
], PdOrderSummary.prototype, "orderSteps", 2);
|
|
232
232
|
__decorateClass([
|
|
233
233
|
property({ type: Boolean })
|
|
234
|
-
], PdOrderSummary.prototype, "withPayment");
|
|
234
|
+
], PdOrderSummary.prototype, "withPayment", 2);
|
|
235
235
|
__decorateClass([
|
|
236
236
|
property({ type: Boolean })
|
|
237
|
-
], PdOrderSummary.prototype, "withAgreement");
|
|
237
|
+
], PdOrderSummary.prototype, "withAgreement", 2);
|
|
238
238
|
__decorateClass([
|
|
239
239
|
property({ type: Object })
|
|
240
|
-
], PdOrderSummary.prototype, "order");
|
|
240
|
+
], PdOrderSummary.prototype, "order", 2);
|
|
241
241
|
__decorateClass([
|
|
242
242
|
query("#submitSummaryFormId")
|
|
243
|
-
], PdOrderSummary.prototype, "_agreeForm");
|
|
243
|
+
], PdOrderSummary.prototype, "_agreeForm", 2);
|
|
244
|
+
PdOrderSummary = __decorateClass([
|
|
245
|
+
customElement("pd-order-summary"),
|
|
246
|
+
localized()
|
|
247
|
+
], PdOrderSummary);
|
|
244
248
|
export {
|
|
245
249
|
PdOrderSummary
|
|
246
250
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TemplateResult } from 'lit';
|
|
2
2
|
import { PdOrderSummary } from '../../pd-order-summary';
|
|
3
3
|
import { PdOrderStep } from '../../types';
|
|
4
|
-
export declare class TestSummary extends PdOrderSummary
|
|
4
|
+
export declare class TestSummary extends PdOrderSummary {
|
|
5
5
|
_renderCustomOrderStepSummary(step: PdOrderStep, index: number): TemplateResult | null;
|
|
6
6
|
private _getBookingSummary;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-summary.d.ts","sourceRoot":"","sources":["../../../src/stories/test-impl/test-summary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-summary.d.ts","sourceRoot":"","sources":["../../../src/stories/test-impl/test-summary.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,qBACa,WAAY,SAAQ,cAAc;IACpC,6BAA6B,CACpC,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,MAAM,GACZ,cAAc,GAAG,IAAI;IAYxB,OAAO,CAAC,kBAAkB;CAiB3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progressive-development/pd-order",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"description": "Progressive Development Order Component",
|
|
5
5
|
"author": "PD Progressive Development",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@lit/localize": "^0.12.2",
|
|
43
43
|
"@progressive-development/pd-calendar": "^0.6.7",
|
|
44
|
-
"@progressive-development/pd-contact": "^0.6.
|
|
44
|
+
"@progressive-development/pd-contact": "^0.6.11",
|
|
45
45
|
"@progressive-development/pd-content": "^0.7.2",
|
|
46
46
|
"@progressive-development/pd-dialog": "^0.6.10",
|
|
47
47
|
"@progressive-development/pd-forms": "^0.7.3",
|