@kumori/aurora-wui-components 0.0.336 → 0.0.337-dev4696
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.
|
@@ -19,6 +19,7 @@ export declare class AxebowActionsFooter extends LitElement {
|
|
|
19
19
|
actionLabel: string | TemplateResult<1>;
|
|
20
20
|
onAction: () => void;
|
|
21
21
|
isActionDisabled: boolean;
|
|
22
|
+
actionTooltip: string;
|
|
22
23
|
actionVariant: string;
|
|
23
24
|
actionClass: string;
|
|
24
25
|
actionFixedWidth: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-actions-footer.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-actions-footer/axebow-actions-footer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAGvE,OAAO,qCAAqC,CAAC;AAC7C,OAAO,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"axebow-actions-footer.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-actions-footer/axebow-actions-footer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAGvE,OAAO,qCAAqC,CAAC;AAC7C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,qCAAqC,CAAC;AAG7C;;;;;;GAMG;AACH,qBACa,mBAAoB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,4BAQX;IAE0B,WAAW,SAAM;IACb,QAAQ,EAAE,MAAM,IAAI,CAAY;IACpC,gBAAgB,SAAa;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,aAAa,SAAM;IACf,UAAU,EAAE,MAAM,IAAI,CAAY;IACtC,kBAAkB,SAAa;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,CAAM;IACzC,QAAQ,EAAE,MAAM,IAAI,CAAY;IACnC,gBAAgB,UAAS;IAC1B,aAAa,SAAM;IACnB,aAAa,SAAa;IAC1B,WAAW,SAAM;IACjB,gBAAgB,SAAY;IAC5B,iBAAiB,SAAY;IAE7B,oBAAoB,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,CAAM;IAClD,iBAAiB,EAAE,MAAM,IAAI,CAAY;IAC5C,yBAAyB,UAAS;IACnC,sBAAsB,SAAa;IAClC,sBAAsB,UAAS;IAChC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IAErC,IAAI,SAAM;IAET,oBAAoB,UAAS;IAE1D,MAAM;CAmIP"}
|
package/dist/index.js
CHANGED
|
@@ -10571,6 +10571,7 @@ var AxebowActionsFooter = class AxebowActionsFooter extends LitElement {
|
|
|
10571
10571
|
this.actionLabel = "";
|
|
10572
10572
|
this.onAction = () => {};
|
|
10573
10573
|
this.isActionDisabled = false;
|
|
10574
|
+
this.actionTooltip = "";
|
|
10574
10575
|
this.actionVariant = "primary";
|
|
10575
10576
|
this.actionClass = "";
|
|
10576
10577
|
this.actionFixedWidth = "8.5rem";
|
|
@@ -10597,6 +10598,19 @@ var AxebowActionsFooter = class AxebowActionsFooter extends LitElement {
|
|
|
10597
10598
|
const hasSecondaryAction = Boolean(this.secondaryActionLabel);
|
|
10598
10599
|
const hasAction = Boolean(this.actionLabel);
|
|
10599
10600
|
const hasText = Boolean(this.text);
|
|
10601
|
+
const showActionTooltip = this.isActionDisabled && Boolean(this.actionTooltip);
|
|
10602
|
+
const actionButton = html`
|
|
10603
|
+
<axebow-button
|
|
10604
|
+
class="${this.actionClass} ${showActionTooltip ? "pointer-events-none" : ""}"
|
|
10605
|
+
variant="${this.actionVariant}"
|
|
10606
|
+
.fixedWidth=${this.actionFixedWidth}
|
|
10607
|
+
.fixedHeight=${this.actionFixedHeight}
|
|
10608
|
+
.disabled=${this.isActionDisabled}
|
|
10609
|
+
@click=${this.onAction}
|
|
10610
|
+
>
|
|
10611
|
+
${this.actionLabel}
|
|
10612
|
+
</axebow-button>
|
|
10613
|
+
`;
|
|
10600
10614
|
const hasLeftGroup = hasCancel || hasPrevious;
|
|
10601
10615
|
const hasRightGroup = hasSecondaryAction || hasAction;
|
|
10602
10616
|
const isOnlyCancel = hasCancel && !hasPrevious && !hasRightGroup;
|
|
@@ -10672,18 +10686,11 @@ var AxebowActionsFooter = class AxebowActionsFooter extends LitElement {
|
|
|
10672
10686
|
${this.secondaryActionLabel}
|
|
10673
10687
|
</axebow-button>
|
|
10674
10688
|
` : ""}
|
|
10675
|
-
${hasAction ? html`
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
.fixedHeight=${this.actionFixedHeight}
|
|
10681
|
-
.disabled=${this.isActionDisabled}
|
|
10682
|
-
@click=${this.onAction}
|
|
10683
|
-
>
|
|
10684
|
-
${this.actionLabel}
|
|
10685
|
-
</axebow-button>
|
|
10686
|
-
` : ""}
|
|
10689
|
+
${hasAction ? showActionTooltip ? html`
|
|
10690
|
+
<axebow-tooltip .content=${this.actionTooltip} placement="top">
|
|
10691
|
+
<div class="inline-flex">${actionButton}</div>
|
|
10692
|
+
</axebow-tooltip>
|
|
10693
|
+
` : actionButton : ""}
|
|
10687
10694
|
</div>
|
|
10688
10695
|
` : ""}
|
|
10689
10696
|
</div>
|
|
@@ -10703,6 +10710,7 @@ __decorate([property({ type: String })], AxebowActionsFooter.prototype, "previou
|
|
|
10703
10710
|
__decorate([property({ type: Object })], AxebowActionsFooter.prototype, "actionLabel", void 0);
|
|
10704
10711
|
__decorate([property({ attribute: false })], AxebowActionsFooter.prototype, "onAction", void 0);
|
|
10705
10712
|
__decorate([property({ type: Boolean })], AxebowActionsFooter.prototype, "isActionDisabled", void 0);
|
|
10713
|
+
__decorate([property({ type: String })], AxebowActionsFooter.prototype, "actionTooltip", void 0);
|
|
10706
10714
|
__decorate([property({ type: String })], AxebowActionsFooter.prototype, "actionVariant", void 0);
|
|
10707
10715
|
__decorate([property({ type: String })], AxebowActionsFooter.prototype, "actionClass", void 0);
|
|
10708
10716
|
__decorate([property({ type: String })], AxebowActionsFooter.prototype, "actionFixedWidth", void 0);
|