@wikala/spmkt 4.0.0-alpha.6 → 4.0.0-alpha.7
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/core/types.d.ts
CHANGED
|
@@ -251,6 +251,8 @@ export interface PlacedOrder {
|
|
|
251
251
|
shippingAmount: number;
|
|
252
252
|
/** "delivery" or "pickup" (the delivery method's type) */
|
|
253
253
|
delivery_type: string;
|
|
254
|
+
/** The theme's text for an order delivered to an address (e.g. when it should arrive); null for a pickup or none */
|
|
255
|
+
delivery_note?: string | null;
|
|
254
256
|
couponCode: string | null;
|
|
255
257
|
currency: string;
|
|
256
258
|
/** The reserved slot as the shop words it; "" without one */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
1
|
+
import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
2
2
|
import { SpmktElement } from '../../lit/spmkt-element';
|
|
3
3
|
import type { OrderItem, PlacedOrder } from '../../core/types';
|
|
4
4
|
/**
|
|
@@ -8,6 +8,9 @@ import type { OrderItem, PlacedOrder } from '../../core/types';
|
|
|
8
8
|
* the `order` property takes its place when set (spmkt-checkout sets it)
|
|
9
9
|
* - content (created when missing): where the element renders the confirmation (renderConfirmation)
|
|
10
10
|
*
|
|
11
|
+
* The order's delivery_note (the theme's text, plain; a line break starts a paragraph) shows under the lead, e.g. when
|
|
12
|
+
* the order should arrive. The server sends it only for an order delivered to an address.
|
|
13
|
+
*
|
|
11
14
|
* The purchase is announced (spmkt:purchase) once per order in the tab, whichever page confirms it, and the
|
|
12
15
|
* checkout draft is forgotten with that first announcement.
|
|
13
16
|
*/
|
|
@@ -26,6 +29,7 @@ export declare class SpmktOrderConfirmation extends SpmktElement {
|
|
|
26
29
|
connectedCallback(): void;
|
|
27
30
|
protected updated(changed: PropertyValues<this>): void;
|
|
28
31
|
protected renderConfirmation(order: PlacedOrder, signedIn: boolean): TemplateResult;
|
|
32
|
+
protected renderDeliveryNote(order: PlacedOrder): TemplateResult | typeof nothing;
|
|
29
33
|
protected renderItem(item: OrderItem): TemplateResult;
|
|
30
34
|
/** spmkt:purchase, once per order in this tab; the first announcement also ends the checkout. */
|
|
31
35
|
private announce;
|
|
@@ -44,6 +44,7 @@ class SpmktOrderConfirmation extends SpmktElement {
|
|
|
44
44
|
${withStrong("order.received", "number", `#${order.id}`, "order-number")}
|
|
45
45
|
${order.email ? withStrong("order.emailSent", "email", order.email) : nothing}
|
|
46
46
|
</p>
|
|
47
|
+
${this.renderDeliveryNote(order)}
|
|
47
48
|
<dl class="order-confirmation__facts">
|
|
48
49
|
${order.date ? html`<div>
|
|
49
50
|
<dt>${t("order.date")}</dt>
|
|
@@ -81,6 +82,13 @@ class SpmktOrderConfirmation extends SpmktElement {
|
|
|
81
82
|
</div>
|
|
82
83
|
</section>`;
|
|
83
84
|
}
|
|
85
|
+
renderDeliveryNote(order) {
|
|
86
|
+
const lines = (order.delivery_note ?? "").split(/\r?\n/).map((line) => line.trim()).filter(Boolean);
|
|
87
|
+
if (!lines.length) return nothing;
|
|
88
|
+
return html`<div class="order-confirmation__note" data-test="order-delivery-note">
|
|
89
|
+
${lines.map((line) => html`<p>${line}</p>`)}
|
|
90
|
+
</div>`;
|
|
91
|
+
}
|
|
84
92
|
renderItem(item) {
|
|
85
93
|
const quantity = Math.trunc(Number(item.quantity) || 0);
|
|
86
94
|
const price = Number(item.price) || 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-confirmation.js","sources":["../../../src/elements/order-confirmation/order-confirmation.ts"],"sourcesContent":["import { html, nothing, type PropertyValues, type TemplateResult } from 'lit'\nimport { SpmktElement } from '../../lit/spmkt-element'\nimport { SignalController } from '../../lit/signal-controller'\nimport { warnOnce } from '../../core/config'\nimport { shopUrl } from '../../core/config'\nimport { t } from '../../core/i18n'\nimport { formatMoney, phpRound } from '../../core/money'\nimport { firstPurchase, orderToPurchase } from '../../core/page-events'\nimport { clearCheckoutDraft } from '../../core/stores/checkout-draft'\nimport { customerSignedIn } from '../../core/stores/customer'\nimport type { OrderItem, PlacedOrder } from '../../core/types'\nimport { renderTotals, withStrong } from '../shared/totals'\n\n/**\n * Parts of <spmkt-order-confirmation> (a placed order: in place of the checkout after an instant payment, and\n * on the gateway's success page):\n * - order (optional): <script type=\"application/json\"> with the order (CheckoutController::sendResponse());\n * the `order` property takes its place when set (spmkt-checkout sets it)\n * - content (created when missing): where the element renders the confirmation (renderConfirmation)\n *\n * The purchase is announced (spmkt:purchase) once per order in the tab, whichever page confirms it, and the\n * checkout draft is forgotten with that first announcement.\n */\nexport interface OrderConfirmationParts {\n order?: HTMLScriptElement\n content?: HTMLElement\n}\n\nexport class SpmktOrderConfirmation extends SpmktElement {\n static override properties = {\n order: { attribute: false },\n }\n order: PlacedOrder | null = null\n\n private readonly signedIn = new SignalController(this, () => customerSignedIn.value)\n\n override connectedCallback(): void {\n super.connectedCallback()\n if (!this.order) this.order = this.readOrder()\n if (!this.findPart('content')) {\n const content = document.createElement('div')\n content.dataset.part = 'content'\n this.append(content)\n }\n }\n\n protected override updated(changed: PropertyValues<this>): void {\n const order = this.order\n if (!order) return\n this.renderPart('content', this.renderConfirmation(order, this.signedIn.value))\n this.findPart('content')?.removeAttribute('aria-busy')\n if (changed.has('order')) this.announce(order)\n }\n\n protected renderConfirmation(order: PlacedOrder, signedIn: boolean): TemplateResult {\n return html`<section class=\"order-confirmation\" data-test=\"order-confirmation\">\n <h1 class=\"order-confirmation__title\" data-test=\"checkout-success-title\" tabindex=\"-1\">\n ${t('order.title')}\n </h1>\n <p class=\"order-confirmation__lead\">\n ${withStrong('order.received', 'number', `#${order.id}`, 'order-number')}\n ${order.email ? withStrong('order.emailSent', 'email', order.email) : nothing}\n </p>\n <dl class=\"order-confirmation__facts\">\n ${\n order.date\n ? html`<div>\n <dt>${t('order.date')}</dt>\n <dd>${orderDate(order.date)}</dd>\n </div>`\n : nothing\n }\n ${\n order.delivery_type\n ? html`<div>\n <dt>${t('order.handover')}</dt>\n <dd data-test=\"order-delivery\">\n ${order.delivery_type === 'pickup' ? t('order.pickup') : t('order.delivery')}\n </dd>\n </div>`\n : nothing\n }\n ${\n order.reservation_slot\n ? html`<div>\n <dt>${t('order.slot')}</dt>\n <dd>${order.reservation_slot}</dd>\n </div>`\n : nothing\n }\n </dl>\n <ul role=\"list\" class=\"checkout-summary__lines order-confirmation__lines\">\n ${(order.items ?? []).map((item) => this.renderItem(item))}\n </ul>\n ${renderTotals(\n {\n shipping: Number(order.shippingAmount) || 0,\n taxAmount: Number(order.taxAmount) || 0,\n total: Number(order.total) || 0,\n },\n { shipping: 'always', totalTestId: 'order-total', className: 'order-confirmation__totals' },\n )}\n <div class=\"order-confirmation__actions\">\n <a class=\"button button--primary\" href=${shopUrl('/')}>${t('cart.continue')}</a>\n ${\n signedIn\n ? html`<a class=\"button\" href=${shopUrl('/account')} data-test=\"my-orders-link\"\n >${t('order.myOrders')}</a\n >`\n : html`<a class=\"button\" href=${shopUrl('/register')} data-test=\"create-account-link\"\n >${t('order.createAccount')}</a\n >`\n }\n </div>\n </section>`\n }\n\n protected renderItem(item: OrderItem): TemplateResult {\n const quantity = Math.trunc(Number(item.quantity) || 0)\n const price = Number(item.price) || 0\n return html`<li class=\"checkout-summary__line\">\n <span class=\"checkout-summary__name\">\n ${item.parent_name ?? item.item_name}\n ${item.item_variant ? html`<span class=\"checkout-summary__variant\">${item.item_variant}</span>` : nothing}\n <span class=\"checkout-summary__qty\">${quantity} × ${formatMoney(price)}</span>\n </span>\n <span>${formatMoney(phpRound(price * quantity, 2))}</span>\n </li>`\n }\n\n /** spmkt:purchase, once per order in this tab; the first announcement also ends the checkout. */\n private announce(order: PlacedOrder): void {\n const purchase = orderToPurchase(order)\n if (!purchase || !firstPurchase(purchase)) return\n clearCheckoutDraft()\n this.emit('spmkt:purchase', purchase)\n }\n\n private readOrder(): PlacedOrder | null {\n const text = this.findPart('order')?.textContent\n if (!text) return null\n try {\n const order = JSON.parse(text) as PlacedOrder | null\n return order && typeof order === 'object' && order.id ? order : null\n } catch {\n warnOnce('order-confirmation:json', 'The order of <spmkt-order-confirmation> is not valid JSON')\n return null\n }\n }\n}\n\n/** \"2026-11-08 20:15:00\" as \"08.11.2026. 20:15\", the shop's own time as the server sent it. */\nexport function orderDate(date: string): string {\n const match = /^(\\d{4})-(\\d{2})-(\\d{2})[ T](\\d{2}):(\\d{2})/.exec(date)\n return match ? `${match[3]}.${match[2]}.${match[1]}. ${match[4]}:${match[5]}` : date\n}\n"],"names":[],"mappings":";;;;;;;;;;AA4BO,MAAM,+BAA+B,aAAa;AAAA,EAAlD,cAAA;AAAA,UAAA,GAAA,SAAA;AAIL,SAAA,QAA4B;AAE5B,SAAiB,WAAW,IAAI,iBAAiB,MAAM,MAAM,iBAAiB,KAAK;AAAA,EAAA;AAAA,EALnF,OAAA;AAAA,SAAgB,aAAa;AAAA,MAC3B,OAAO,EAAE,WAAW,MAAA;AAAA,IAAM;AAAA,EAC5B;AAAA,EAKS,oBAA0B;AACjC,UAAM,kBAAA;AACN,QAAI,CAAC,KAAK,MAAO,MAAK,QAAQ,KAAK,UAAA;AACnC,QAAI,CAAC,KAAK,SAAS,SAAS,GAAG;AAC7B,YAAM,UAAU,SAAS,cAAc,KAAK;AAC5C,cAAQ,QAAQ,OAAO;AACvB,WAAK,OAAO,OAAO;AAAA,IACrB;AAAA,EACF;AAAA,EAEmB,QAAQ,SAAqC;AAC9D,UAAM,QAAQ,KAAK;AACnB,QAAI,CAAC,MAAO;AACZ,SAAK,WAAW,WAAW,KAAK,mBAAmB,OAAO,KAAK,SAAS,KAAK,CAAC;AAC9E,SAAK,SAAS,SAAS,GAAG,gBAAgB,WAAW;AACrD,QAAI,QAAQ,IAAI,OAAO,EAAG,MAAK,SAAS,KAAK;AAAA,EAC/C;AAAA,EAEU,mBAAmB,OAAoB,UAAmC;AAClF,WAAO;AAAA;AAAA,UAED,EAAE,aAAa,CAAC;AAAA;AAAA;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AAK,KAAK,KAAK;AACpC,WAAO;AAAA;AAAA,UAED,KAAK,eAAe,KAAK,SAAS;AAAA,UAClC,KAAK,eAAe,+CAA+C,KAAK,YAAY,YAAY,OAAO;AAAA,8CACnE,QAAQ,YAAY,YAAY,KAAK,CAAC;AAAA;AAAA,cAEtE,YAAY,SAAS,QAAQ,UAAU,CAAC,CAAC,CAAC;AAAA;AAAA,EAEtD;AAAA;AAAA,EAGQ,SAAS,OAA0B;AACzC,UAAM,WAAW,gBAAgB,KAAK;AACtC,QAAI,CAAC,YAAY,CAAC,cAAc,QAAQ,EAAG;AAC3C,uBAAA;AACA,SAAK,KAAK,kBAAkB,QAAQ;AAAA,EACtC;AAAA,EAEQ,YAAgC;AACtC,UAAM,OAAO,KAAK,SAAS,OAAO,GAAG;AACrC,QAAI,CAAC,KAAM,QAAO;AAClB,QAAI;AACF,YAAM,QAAQ,KAAK,MAAM,IAAI;AAC7B,aAAO,SAAS,OAAO,UAAU,YAAY,MAAM,KAAK,QAAQ;AAAA,IAClE,QAAQ;AACN,eAAS,2BAA2B,2DAA2D;AAC/F,aAAO;AAAA,IACT;AAAA,EACF;AACF;AAGO,SAAS,UAAU,MAAsB;AAC9C,QAAM,QAAQ,8CAA8C,KAAK,IAAI;AACrE,SAAO,QAAQ,GAAG,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,KAAK;AAClF;"}
|
|
1
|
+
{"version":3,"file":"order-confirmation.js","sources":["../../../src/elements/order-confirmation/order-confirmation.ts"],"sourcesContent":["import { html, nothing, type PropertyValues, type TemplateResult } from 'lit'\nimport { SpmktElement } from '../../lit/spmkt-element'\nimport { SignalController } from '../../lit/signal-controller'\nimport { warnOnce } from '../../core/config'\nimport { shopUrl } from '../../core/config'\nimport { t } from '../../core/i18n'\nimport { formatMoney, phpRound } from '../../core/money'\nimport { firstPurchase, orderToPurchase } from '../../core/page-events'\nimport { clearCheckoutDraft } from '../../core/stores/checkout-draft'\nimport { customerSignedIn } from '../../core/stores/customer'\nimport type { OrderItem, PlacedOrder } from '../../core/types'\nimport { renderTotals, withStrong } from '../shared/totals'\n\n/**\n * Parts of <spmkt-order-confirmation> (a placed order: in place of the checkout after an instant payment, and\n * on the gateway's success page):\n * - order (optional): <script type=\"application/json\"> with the order (CheckoutController::sendResponse());\n * the `order` property takes its place when set (spmkt-checkout sets it)\n * - content (created when missing): where the element renders the confirmation (renderConfirmation)\n *\n * The order's delivery_note (the theme's text, plain; a line break starts a paragraph) shows under the lead, e.g. when\n * the order should arrive. The server sends it only for an order delivered to an address.\n *\n * The purchase is announced (spmkt:purchase) once per order in the tab, whichever page confirms it, and the\n * checkout draft is forgotten with that first announcement.\n */\nexport interface OrderConfirmationParts {\n order?: HTMLScriptElement\n content?: HTMLElement\n}\n\nexport class SpmktOrderConfirmation extends SpmktElement {\n static override properties = {\n order: { attribute: false },\n }\n order: PlacedOrder | null = null\n\n private readonly signedIn = new SignalController(this, () => customerSignedIn.value)\n\n override connectedCallback(): void {\n super.connectedCallback()\n if (!this.order) this.order = this.readOrder()\n if (!this.findPart('content')) {\n const content = document.createElement('div')\n content.dataset.part = 'content'\n this.append(content)\n }\n }\n\n protected override updated(changed: PropertyValues<this>): void {\n const order = this.order\n if (!order) return\n this.renderPart('content', this.renderConfirmation(order, this.signedIn.value))\n this.findPart('content')?.removeAttribute('aria-busy')\n if (changed.has('order')) this.announce(order)\n }\n\n protected renderConfirmation(order: PlacedOrder, signedIn: boolean): TemplateResult {\n return html`<section class=\"order-confirmation\" data-test=\"order-confirmation\">\n <h1 class=\"order-confirmation__title\" data-test=\"checkout-success-title\" tabindex=\"-1\">\n ${t('order.title')}\n </h1>\n <p class=\"order-confirmation__lead\">\n ${withStrong('order.received', 'number', `#${order.id}`, 'order-number')}\n ${order.email ? withStrong('order.emailSent', 'email', order.email) : nothing}\n </p>\n ${this.renderDeliveryNote(order)}\n <dl class=\"order-confirmation__facts\">\n ${\n order.date\n ? html`<div>\n <dt>${t('order.date')}</dt>\n <dd>${orderDate(order.date)}</dd>\n </div>`\n : nothing\n }\n ${\n order.delivery_type\n ? html`<div>\n <dt>${t('order.handover')}</dt>\n <dd data-test=\"order-delivery\">\n ${order.delivery_type === 'pickup' ? t('order.pickup') : t('order.delivery')}\n </dd>\n </div>`\n : nothing\n }\n ${\n order.reservation_slot\n ? html`<div>\n <dt>${t('order.slot')}</dt>\n <dd>${order.reservation_slot}</dd>\n </div>`\n : nothing\n }\n </dl>\n <ul role=\"list\" class=\"checkout-summary__lines order-confirmation__lines\">\n ${(order.items ?? []).map((item) => this.renderItem(item))}\n </ul>\n ${renderTotals(\n {\n shipping: Number(order.shippingAmount) || 0,\n taxAmount: Number(order.taxAmount) || 0,\n total: Number(order.total) || 0,\n },\n { shipping: 'always', totalTestId: 'order-total', className: 'order-confirmation__totals' },\n )}\n <div class=\"order-confirmation__actions\">\n <a class=\"button button--primary\" href=${shopUrl('/')}>${t('cart.continue')}</a>\n ${\n signedIn\n ? html`<a class=\"button\" href=${shopUrl('/account')} data-test=\"my-orders-link\"\n >${t('order.myOrders')}</a\n >`\n : html`<a class=\"button\" href=${shopUrl('/register')} data-test=\"create-account-link\"\n >${t('order.createAccount')}</a\n >`\n }\n </div>\n </section>`\n }\n\n protected renderDeliveryNote(order: PlacedOrder): TemplateResult | typeof nothing {\n const lines = (order.delivery_note ?? '')\n .split(/\\r?\\n/)\n .map((line) => line.trim())\n .filter(Boolean)\n if (!lines.length) return nothing\n return html`<div class=\"order-confirmation__note\" data-test=\"order-delivery-note\">\n ${lines.map((line) => html`<p>${line}</p>`)}\n </div>`\n }\n\n protected renderItem(item: OrderItem): TemplateResult {\n const quantity = Math.trunc(Number(item.quantity) || 0)\n const price = Number(item.price) || 0\n return html`<li class=\"checkout-summary__line\">\n <span class=\"checkout-summary__name\">\n ${item.parent_name ?? item.item_name}\n ${item.item_variant ? html`<span class=\"checkout-summary__variant\">${item.item_variant}</span>` : nothing}\n <span class=\"checkout-summary__qty\">${quantity} × ${formatMoney(price)}</span>\n </span>\n <span>${formatMoney(phpRound(price * quantity, 2))}</span>\n </li>`\n }\n\n /** spmkt:purchase, once per order in this tab; the first announcement also ends the checkout. */\n private announce(order: PlacedOrder): void {\n const purchase = orderToPurchase(order)\n if (!purchase || !firstPurchase(purchase)) return\n clearCheckoutDraft()\n this.emit('spmkt:purchase', purchase)\n }\n\n private readOrder(): PlacedOrder | null {\n const text = this.findPart('order')?.textContent\n if (!text) return null\n try {\n const order = JSON.parse(text) as PlacedOrder | null\n return order && typeof order === 'object' && order.id ? order : null\n } catch {\n warnOnce('order-confirmation:json', 'The order of <spmkt-order-confirmation> is not valid JSON')\n return null\n }\n }\n}\n\n/** \"2026-11-08 20:15:00\" as \"08.11.2026. 20:15\", the shop's own time as the server sent it. */\nexport function orderDate(date: string): string {\n const match = /^(\\d{4})-(\\d{2})-(\\d{2})[ T](\\d{2}):(\\d{2})/.exec(date)\n return match ? `${match[3]}.${match[2]}.${match[1]}. ${match[4]}:${match[5]}` : date\n}\n"],"names":[],"mappings":";;;;;;;;;;AA+BO,MAAM,+BAA+B,aAAa;AAAA,EAAlD,cAAA;AAAA,UAAA,GAAA,SAAA;AAIL,SAAA,QAA4B;AAE5B,SAAiB,WAAW,IAAI,iBAAiB,MAAM,MAAM,iBAAiB,KAAK;AAAA,EAAA;AAAA,EALnF,OAAA;AAAA,SAAgB,aAAa;AAAA,MAC3B,OAAO,EAAE,WAAW,MAAA;AAAA,IAAM;AAAA,EAC5B;AAAA,EAKS,oBAA0B;AACjC,UAAM,kBAAA;AACN,QAAI,CAAC,KAAK,MAAO,MAAK,QAAQ,KAAK,UAAA;AACnC,QAAI,CAAC,KAAK,SAAS,SAAS,GAAG;AAC7B,YAAM,UAAU,SAAS,cAAc,KAAK;AAC5C,cAAQ,QAAQ,OAAO;AACvB,WAAK,OAAO,OAAO;AAAA,IACrB;AAAA,EACF;AAAA,EAEmB,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