@kumori/aurora-wui-components 0.0.313-dev4582 → 0.0.313-dev4582.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.
|
@@ -10,7 +10,9 @@ export declare class AxebowPromotionDropdown extends LitElement {
|
|
|
10
10
|
supportEmail: string;
|
|
11
11
|
private _isStepCompleted;
|
|
12
12
|
private _handleSupportEmailClick;
|
|
13
|
+
private _hideDropdown;
|
|
13
14
|
private _handleClaim;
|
|
15
|
+
private _handleStepClick;
|
|
14
16
|
render(): import('lit-html').TemplateResult<1>;
|
|
15
17
|
}
|
|
16
18
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-promotion-dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-promotion-dropdown/axebow-promotion-dropdown.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAGvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,yDAAyD,CAAC;AACjE,OAAO,+DAA+D,CAAC;AACvE,OAAO,+DAA+D,CAAC;AAEvE,qBACa,uBAAwB,SAAQ,UAAU;IACrD,MAAM,CAAC,MAAM,4BA4BX;IAE0B,aAAa,SAAM;IACnB,eAAe,SAAM;IACtB,KAAK,EAAE,MAAM,EAAE,CAAM;IACpB,cAAc,SAAK;IACpB,cAAc,EAAE,OAAO,EAAE,CAAM;IAC9B,aAAa,SAAK;IAClB,YAAY,SAAM;IAE9C,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,YAAY;IAKpB,MAAM;
|
|
1
|
+
{"version":3,"file":"axebow-promotion-dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-promotion-dropdown/axebow-promotion-dropdown.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAGvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,yDAAyD,CAAC;AACjE,OAAO,+DAA+D,CAAC;AACvE,OAAO,+DAA+D,CAAC;AAEvE,qBACa,uBAAwB,SAAQ,UAAU;IACrD,MAAM,CAAC,MAAM,4BA4BX;IAE0B,aAAa,SAAM;IACnB,eAAe,SAAM;IACtB,KAAK,EAAE,MAAM,EAAE,CAAM;IACpB,cAAc,SAAK;IACpB,cAAc,EAAE,OAAO,EAAE,CAAM;IAC9B,aAAa,SAAK;IAClB,YAAY,SAAM;IAE9C,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,gBAAgB;IAOxB,MAAM;CA4DP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,2BAA2B,EAAE,uBAAuB,CAAC;KACtD;CACF"}
|
package/dist/index.js
CHANGED
|
@@ -1645,13 +1645,27 @@ var AxebowPromotionDropdown = class AxebowPromotionDropdown extends LitElement {
|
|
|
1645
1645
|
_handleSupportEmailClick() {
|
|
1646
1646
|
window.open(`mailto:${this.supportEmail}`, "_self");
|
|
1647
1647
|
}
|
|
1648
|
-
|
|
1648
|
+
_hideDropdown() {
|
|
1649
1649
|
this.renderRoot.querySelector("sl-dropdown")?.hide();
|
|
1650
|
+
}
|
|
1651
|
+
_handleClaim() {
|
|
1652
|
+
this._hideDropdown();
|
|
1650
1653
|
this.dispatchEvent(new CustomEvent("promotion-claim", {
|
|
1651
1654
|
bubbles: true,
|
|
1652
1655
|
composed: true
|
|
1653
1656
|
}));
|
|
1654
1657
|
}
|
|
1658
|
+
_handleStepClick(index, step) {
|
|
1659
|
+
this._hideDropdown();
|
|
1660
|
+
this.dispatchEvent(new CustomEvent("promotion-step-click", {
|
|
1661
|
+
detail: {
|
|
1662
|
+
index,
|
|
1663
|
+
step
|
|
1664
|
+
},
|
|
1665
|
+
bubbles: true,
|
|
1666
|
+
composed: true
|
|
1667
|
+
}));
|
|
1668
|
+
}
|
|
1655
1669
|
render() {
|
|
1656
1670
|
return html`
|
|
1657
1671
|
<sl-dropdown>
|
|
@@ -1665,7 +1679,10 @@ var AxebowPromotionDropdown = class AxebowPromotionDropdown extends LitElement {
|
|
|
1665
1679
|
<div class="w-100 min-h-45.5 box-border flex flex-col bg-white rounded-md axebow-shadow py-3 px-4">
|
|
1666
1680
|
<div class="flex flex-col gap-2">
|
|
1667
1681
|
${this.steps.map((step, index) => html`
|
|
1668
|
-
<div
|
|
1682
|
+
<div
|
|
1683
|
+
class="group w-92 h-8.75 shrink-0 flex items-center justify-between gap-2 cursor-pointer"
|
|
1684
|
+
@click=${() => this._handleStepClick(index, step)}
|
|
1685
|
+
>
|
|
1669
1686
|
<div class="relative flex items-center gap-2 min-w-0">
|
|
1670
1687
|
<span class="shrink-0 text-base font-semibold text-black">${index + 1}.</span>
|
|
1671
1688
|
<span class="text-base text-black">${step}</span>
|