@kumori/aurora-wui-components 0.0.337 → 0.0.338-dev4702

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.
@@ -1,10 +1,11 @@
1
1
  import { LitElement } from 'lit';
2
- import { CallToActionNotification } from '../axebow-call-to-action-row/call-to-action-notification.js';
2
+ import { CallToActionBreadcrumbLabels, CallToActionNotification } from '../axebow-call-to-action-row/call-to-action-notification.js';
3
3
  export declare class AxebowCtaDialog extends LitElement {
4
4
  open: boolean;
5
5
  dialogTitle: string;
6
6
  goBackLabel: string;
7
7
  notifications: CallToActionNotification[];
8
+ breadcrumbLabels: CallToActionBreadcrumbLabels;
8
9
  onClose?: () => void;
9
10
  static styles: import('lit').CSSResult[];
10
11
  private _handleClose;
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-cta-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-cta-dialog/axebow-cta-dialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,2DAA2D,CAAC;AASnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AAE5G,qBACa,eAAgB,SAAQ,UAAU;IACD,IAAI,UAAS;IAC7B,WAAW,SAAgC;IAC3C,WAAW,SAAa;IACzB,aAAa,EAAE,wBAAwB,EAAE,CAAM;IAC1C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErD,MAAM,CAAC,MAAM,4BAOX;IAEF,OAAO,CAAC,YAAY;IAIpB,MAAM;CAoCP"}
1
+ {"version":3,"file":"axebow-cta-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-cta-dialog/axebow-cta-dialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,2DAA2D,CAAC;AAYnE,OAAO,KAAK,EACV,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,6DAA6D,CAAC;AAErE,qBACa,eAAgB,SAAQ,UAAU;IACD,IAAI,UAAS;IAC7B,WAAW,SAAgC;IAC3C,WAAW,SAAa;IACzB,aAAa,EAAE,wBAAwB,EAAE,CAAM;IAC9C,gBAAgB,EAAE,4BAA4B,CAA6B;IACvE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErD,MAAM,CAAC,MAAM,4BAOX;IAEF,OAAO,CAAC,YAAY;IAIpB,MAAM;CAqCP"}
package/dist/index.js CHANGED
@@ -12603,8 +12603,8 @@ var AxebowSummaryCard = class AxebowSummaryCard extends LitElement {
12603
12603
  const capped = this._cappedClass;
12604
12604
  const isCapped = !!this.maxHeight;
12605
12605
  const wrapperClass = isCapped ? "flex-1 min-h-0" : "h-full";
12606
- const headerClass = isCapped ? "px-6 pt-6 shrink-0" : "contents";
12607
- const contentClass = isCapped ? "summary-scroll min-h-0 overflow-x-hidden overflow-y-auto px-6 pt-6 pb-6" : "mt-4";
12606
+ const headerClass = isCapped ? "px-4 pt-4 shrink-0" : "contents";
12607
+ const contentClass = isCapped ? "summary-scroll min-h-0 overflow-x-hidden overflow-y-auto px-4 pt-4 pb-4" : "mt-4";
12608
12608
  const dividerMargin = isCapped ? "0.5rem 0 0 0" : "0.5rem 0";
12609
12609
  return html`
12610
12610
  <div
@@ -15648,6 +15648,7 @@ var AxebowCtaDialog = class AxebowCtaDialog extends LitElement {
15648
15648
  this.dialogTitle = "Actions pending resolution";
15649
15649
  this.goBackLabel = "Go back";
15650
15650
  this.notifications = [];
15651
+ this.breadcrumbLabels = DEFAULT_BREADCRUMB_LABELS;
15651
15652
  }
15652
15653
  static {
15653
15654
  this.styles = [unsafeCSS(tailwind_default), css`
@@ -15673,12 +15674,13 @@ var AxebowCtaDialog = class AxebowCtaDialog extends LitElement {
15673
15674
  @close=${() => this._handleClose()}
15674
15675
  >
15675
15676
  <div class="flex flex-col gap-2 p-6">
15676
- ${groupCallToActionNotifications(this.notifications).map(({ notification }) => html`
15677
+ ${groupCallToActionNotifications(this.notifications, { byEntity: true }).map(({ notification }) => html`
15677
15678
  <axebow-call-to-action-row
15678
15679
  criticality=${notification.criticality}
15679
- heading=${getCtaHeading(notification)}
15680
+ heading=${getCtaDescription(notification) || getCtaHeading(notification)}
15680
15681
  badgeLabel=${getCtaBadgeLabel(notification)}
15681
- description=${getCtaDescription(notification)}
15682
+ .breadcrumb=${getCtaBreadcrumb(notification, this.breadcrumbLabels)}
15683
+ timeText=${formatCtaDateTime(notification.date)}
15682
15684
  lowNoteText=${DEFAULT_LOW_NOTE_TEXT}
15683
15685
  .buttons=${buildCtaButtons(notification, (detail) => this.dispatchEvent(new CustomEvent("cta-action", {
15684
15686
  detail,
@@ -15703,6 +15705,7 @@ __decorate([property({
15703
15705
  __decorate([property({ type: String })], AxebowCtaDialog.prototype, "dialogTitle", void 0);
15704
15706
  __decorate([property({ type: String })], AxebowCtaDialog.prototype, "goBackLabel", void 0);
15705
15707
  __decorate([property({ type: Array })], AxebowCtaDialog.prototype, "notifications", void 0);
15708
+ __decorate([property({ type: Object })], AxebowCtaDialog.prototype, "breadcrumbLabels", void 0);
15706
15709
  __decorate([property({ attribute: false })], AxebowCtaDialog.prototype, "onClose", void 0);
15707
15710
  AxebowCtaDialog = __decorate([customElement("axebow-cta-dialog")], AxebowCtaDialog);
15708
15711
  //#endregion