@kumori/aurora-wui-components 0.0.337-dev4696 → 0.0.337-dev4696.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.
@@ -1,11 +1,12 @@
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 type { CallToActionNotification, CallToActionNotificationAction } from '../axebow-call-to-action-row/call-to-action-notification.js';
4
4
  export declare class AxebowCallToActionFeature extends LitElement {
5
5
  callToActions: CallToActionNotification[];
6
6
  actionNeededLabel: string;
7
7
  noActionsLabel: string;
8
8
  lastUpdatedText: string;
9
+ breadcrumbLabels: CallToActionBreadcrumbLabels;
9
10
  private expanded;
10
11
  private refreshing;
11
12
  private static readonly REFRESH_DURATION_MS;
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-call-to-action-feature.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-call-to-action-feature/axebow-call-to-action-feature.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AAGvC,OAAO,2DAA2D,CAAC;AAUnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AAE5G,YAAY,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,MAAM,6DAA6D,CAAC;AAE5I,qBACa,yBAA0B,SAAQ,UAAU;IAC5B,aAAa,EAAE,wBAAwB,EAAE,CAAM;IAC9C,iBAAiB,SAAmB;IACpC,cAAc,SAAuB;IACrC,eAAe,SAAM;IAExC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,UAAU,CAAS;IAEpC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAQ;IACnD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAK;IAElD,MAAM,CAAC,MAAM,4BAuBX;IAEF,OAAO,KAAK,mBAAmB,GAE9B;IAED,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,kBAAkB;IAiB1B,MAAM;CAoFP"}
1
+ {"version":3,"file":"axebow-call-to-action-feature.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-call-to-action-feature/axebow-call-to-action-feature.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AAGvC,OAAO,2DAA2D,CAAC;AAanE,OAAO,KAAK,EACV,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,6DAA6D,CAAC;AAErE,YAAY,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,MAAM,6DAA6D,CAAC;AAE5I,qBACa,yBAA0B,SAAQ,UAAU;IAC5B,aAAa,EAAE,wBAAwB,EAAE,CAAM;IAC9C,iBAAiB,SAAmB;IACpC,cAAc,SAAuB;IACrC,eAAe,SAAM;IACrB,gBAAgB,EAAE,4BAA4B,CAA6B;IAE9F,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,UAAU,CAAS;IAEpC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAQ;IACnD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAK;IAElD,MAAM,CAAC,MAAM,4BAuBX;IAEF,OAAO,KAAK,mBAAmB,GAE9B;IAED,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,kBAAkB;IAiB1B,MAAM;CAqFP"}
@@ -1,4 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
+ import { CallToActionBreadcrumbItem } from './call-to-action-notification.js';
2
3
  export type CallToActionCriticality = 'critical' | 'high' | 'low';
3
4
  export interface CallToActionButton {
4
5
  label: string;
@@ -19,11 +20,14 @@ export declare class AxebowCallToActionRow extends LitElement {
19
20
  heading: string;
20
21
  badgeLabel: string;
21
22
  description: string;
23
+ breadcrumb: CallToActionBreadcrumbItem[];
24
+ timeText: string;
22
25
  buttons: CallToActionButton[];
23
26
  lowNoteText: string;
24
27
  count: number;
25
28
  static styles: import('lit').CSSResult[];
26
29
  render(): import('lit-html').TemplateResult<1>;
30
+ private _renderDescription;
27
31
  private _renderLowNote;
28
32
  private _renderButtons;
29
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-call-to-action-row.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-call-to-action-row/axebow-call-to-action-row.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAE3C,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;IACrG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,uBAAuB,EAAE,gBAAgB,CAIhF,CAAC;AAEF,qBACa,qBAAsB,SAAQ,UAAU;IACvB,WAAW,EAAE,uBAAuB,CAAS;IAC7C,OAAO,SAAM;IACb,UAAU,SAAM;IAChB,WAAW,SAAM;IAClB,OAAO,EAAE,kBAAkB,EAAE,CAAM;IAClC,WAAW,SAAM;IACjB,KAAK,SAAK;IAEtC,MAAM,CAAC,MAAM,4BASX;IAEF,MAAM;IAkCN,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,cAAc;CAyBvB"}
1
+ {"version":3,"file":"axebow-call-to-action-row.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-call-to-action-row/axebow-call-to-action-row.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAEnF,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;IACrG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,uBAAuB,EAAE,gBAAgB,CAIhF,CAAC;AAEF,qBACa,qBAAsB,SAAQ,UAAU;IACvB,WAAW,EAAE,uBAAuB,CAAS;IAC7C,OAAO,SAAM;IACb,UAAU,SAAM;IAChB,WAAW,SAAM;IAClB,UAAU,EAAE,0BAA0B,EAAE,CAAM;IAC7C,QAAQ,SAAM;IACf,OAAO,EAAE,kBAAkB,EAAE,CAAM;IAClC,WAAW,SAAM;IACjB,KAAK,SAAK;IAEtC,MAAM,CAAC,MAAM,4BASX;IAEF,MAAM;IAkCN,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,cAAc;CAyBvB"}
@@ -25,19 +25,36 @@ export interface CallToActionNotification {
25
25
  support?: boolean;
26
26
  noActions?: boolean;
27
27
  actions?: CallToActionNotificationAction[];
28
+ breadcrumb?: string;
29
+ }
30
+ export interface CallToActionBreadcrumbLabels {
31
+ tenant: string;
32
+ account: string;
33
+ environment: string;
34
+ service: string;
35
+ }
36
+ export interface CallToActionBreadcrumbItem {
37
+ label: string;
38
+ name: string;
39
+ }
40
+ export interface GroupCallToActionOptions {
41
+ byEntity?: boolean;
28
42
  }
29
43
  export declare const DEFAULT_LOW_NOTE_TEXT = "No action needed";
44
+ export declare const DEFAULT_BREADCRUMB_LABELS: CallToActionBreadcrumbLabels;
30
45
  export declare function getHighestCriticality(notifications: {
31
46
  criticality: CallToActionCriticality;
32
47
  }[]): CallToActionCriticality;
33
48
  export declare function getCtaHeading(notification: CallToActionNotification): string;
34
49
  export declare function getCtaDescription(notification: CallToActionNotification): string;
35
50
  export declare function getCtaBadgeLabel(notification: CallToActionNotification): string;
51
+ export declare function getCtaBreadcrumb(notification: CallToActionNotification, labels?: CallToActionBreadcrumbLabels): CallToActionBreadcrumbItem[];
52
+ export declare function formatCtaTime(date: string | undefined): string;
36
53
  export interface GroupedCallToActionNotification {
37
54
  notification: CallToActionNotification;
38
55
  count: number;
39
56
  }
40
- export declare function groupCallToActionNotifications(notifications: CallToActionNotification[]): GroupedCallToActionNotification[];
57
+ export declare function groupCallToActionNotifications(notifications: CallToActionNotification[], { byEntity }?: GroupCallToActionOptions): GroupedCallToActionNotification[];
41
58
  export declare function buildCtaButtons(notification: CallToActionNotification, dispatch: (detail: {
42
59
  notification: CallToActionNotification;
43
60
  action: CallToActionNotificationAction;
@@ -1 +1 @@
1
- {"version":3,"file":"call-to-action-notification.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-call-to-action-row/call-to-action-notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAElG,MAAM,WAAW,8BAA8B;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE;QACb,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,gBAAgB,EAAE,cAAc,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,uBAAuB,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,8BAA8B,EAAE,CAAC;CAC5C;AAED,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAQxD,wBAAgB,qBAAqB,CAAC,aAAa,EAAE;IAAE,WAAW,EAAE,uBAAuB,CAAA;CAAE,EAAE,GAAG,uBAAuB,CAIxH;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,wBAAwB,GAAG,MAAM,CAG5E;AAED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,wBAAwB,GAAG,MAAM,CAEhF;AAED,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,wBAAwB,GAAG,MAAM,CAE/E;AAED,MAAM,WAAW,+BAA+B;IAC9C,YAAY,EAAE,wBAAwB,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,wBAAwB,EAAE,GACxC,+BAA+B,EAAE,CAYnC;AAED,wBAAgB,eAAe,CAC7B,YAAY,EAAE,wBAAwB,EACtC,QAAQ,EAAE,CAAC,MAAM,EAAE;IAAE,YAAY,EAAE,wBAAwB,CAAC;IAAC,MAAM,EAAE,8BAA8B,CAAA;CAAE,KAAK,IAAI,GAC7G,kBAAkB,EAAE,CAStB"}
1
+ {"version":3,"file":"call-to-action-notification.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-call-to-action-row/call-to-action-notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAElG,MAAM,WAAW,8BAA8B;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE;QACb,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,gBAAgB,EAAE,cAAc,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,uBAAuB,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,8BAA8B,EAAE,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAExD,eAAO,MAAM,yBAAyB,EAAE,4BAKvC,CAAC;AAoBF,wBAAgB,qBAAqB,CAAC,aAAa,EAAE;IAAE,WAAW,EAAE,uBAAuB,CAAA;CAAE,EAAE,GAAG,uBAAuB,CAIxH;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,wBAAwB,GAAG,MAAM,CAG5E;AAED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,wBAAwB,GAAG,MAAM,CAEhF;AAED,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,wBAAwB,GAAG,MAAM,CAE/E;AAyBD,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,wBAAwB,EACtC,MAAM,GAAE,4BAAwD,GAC/D,0BAA0B,EAAE,CAK9B;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAM9D;AAED,MAAM,WAAW,+BAA+B;IAC9C,YAAY,EAAE,wBAAwB,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,wBAAwB,EAAE,EACzC,EAAE,QAAgB,EAAE,GAAE,wBAA6B,GAClD,+BAA+B,EAAE,CAanC;AAED,wBAAgB,eAAe,CAC7B,YAAY,EAAE,wBAAwB,EACtC,QAAQ,EAAE,CAAC,MAAM,EAAE;IAAE,YAAY,EAAE,wBAAwB,CAAC;IAAC,MAAM,EAAE,8BAA8B,CAAA;CAAE,KAAK,IAAI,GAC7G,kBAAkB,EAAE,CAStB"}
package/dist/index.js CHANGED
@@ -9054,7 +9054,7 @@ var AxebowResourceCard = class AxebowResourceCard extends LitElement {
9054
9054
  </button>
9055
9055
 
9056
9056
  <button
9057
- class="w-20.5 h-8 box-border flex items-center justify-center bg-transparent border-none cursor-pointer rounded whitespace-nowrap font-semibold text-(--axebow-tertiary) hover:bg-(--axebow-anti-flash-white) hover:text-(--axebow-gray) shrink-0"
9057
+ class="w-20.5 h-8 box-border flex items-center justify-center bg-transparent border-none cursor-pointer rounded whitespace-nowrap text-base font-semibold text-(--axebow-tertiary) hover:bg-(--axebow-anti-flash-white) hover:text-(--axebow-gray) shrink-0"
9058
9058
  @click=${() => row.onSeeHere?.()}
9059
9059
  >
9060
9060
  ${this.seeHereLabel}
@@ -9897,6 +9897,8 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
9897
9897
  this.heading = "";
9898
9898
  this.badgeLabel = "";
9899
9899
  this.description = "";
9900
+ this.breadcrumb = [];
9901
+ this.timeText = "";
9900
9902
  this.buttons = [];
9901
9903
  this.lowNoteText = "";
9902
9904
  this.count = 1;
@@ -9934,11 +9936,19 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
9934
9936
  ${this.count}
9935
9937
  </div>` : ""}
9936
9938
  </div>
9937
- <div class="w-full text-(--axebow-secondary)">${this.description}</div>
9939
+ ${this._renderDescription()}
9938
9940
  </div>
9939
9941
 
9940
9942
  ${this.criticality === "low" && !this.buttons.length ? this._renderLowNote() : this._renderButtons()}
9941
9943
  </div>
9944
+ `;
9945
+ }
9946
+ _renderDescription() {
9947
+ if (!this.breadcrumb.length && !this.timeText) return html`<div class="w-full text-(--axebow-secondary)">${this.description}</div>`;
9948
+ return html`
9949
+ <div class="w-full truncate text-(--axebow-secondary)">
9950
+ ${this.breadcrumb.map((item, index) => html`${index > 0 ? " > " : ""}${item.label}: <span class="font-semibold">${item.name}</span>`)}${this.timeText ? `${this.breadcrumb.length ? " / " : ""}${this.timeText}` : ""}
9951
+ </div>
9942
9952
  `;
9943
9953
  }
9944
9954
  _renderLowNote() {
@@ -9977,6 +9987,8 @@ __decorate([property({ type: String })], AxebowCallToActionRow.prototype, "criti
9977
9987
  __decorate([property({ type: String })], AxebowCallToActionRow.prototype, "heading", void 0);
9978
9988
  __decorate([property({ type: String })], AxebowCallToActionRow.prototype, "badgeLabel", void 0);
9979
9989
  __decorate([property({ type: String })], AxebowCallToActionRow.prototype, "description", void 0);
9990
+ __decorate([property({ type: Array })], AxebowCallToActionRow.prototype, "breadcrumb", void 0);
9991
+ __decorate([property({ type: String })], AxebowCallToActionRow.prototype, "timeText", void 0);
9980
9992
  __decorate([property({ type: Array })], AxebowCallToActionRow.prototype, "buttons", void 0);
9981
9993
  __decorate([property({ type: String })], AxebowCallToActionRow.prototype, "lowNoteText", void 0);
9982
9994
  __decorate([property({ type: Number })], AxebowCallToActionRow.prototype, "count", void 0);
@@ -15317,6 +15329,25 @@ AxebowModal = __decorate([customElement("axebow-modal")], AxebowModal);
15317
15329
  //#endregion
15318
15330
  //#region src/components/axebow-call-to-action-row/call-to-action-notification.ts
15319
15331
  var DEFAULT_LOW_NOTE_TEXT = "No action needed";
15332
+ var DEFAULT_BREADCRUMB_LABELS = {
15333
+ tenant: "tenant",
15334
+ account: "account",
15335
+ environment: "environment",
15336
+ service: "service"
15337
+ };
15338
+ var BREADCRUMB_LEVELS = [
15339
+ "tenant",
15340
+ "account",
15341
+ "environment",
15342
+ "service"
15343
+ ];
15344
+ var BREADCRUMB_TOKEN_TO_LEVEL = {
15345
+ tenant: "tenant",
15346
+ account: "account",
15347
+ env: "environment",
15348
+ environment: "environment",
15349
+ service: "service"
15350
+ };
15320
15351
  var BUTTON_TYPE_TO_VARIANT = {
15321
15352
  primary: "primary",
15322
15353
  secondary: "tertiary",
@@ -15336,10 +15367,42 @@ function getCtaDescription(notification) {
15336
15367
  function getCtaBadgeLabel(notification) {
15337
15368
  return notification.criticality.toUpperCase();
15338
15369
  }
15339
- function groupCallToActionNotifications(notifications) {
15370
+ function textOf(value) {
15371
+ return typeof value === "string" ? value : "";
15372
+ }
15373
+ function getCtaEntityNames(notification) {
15374
+ const data = notification.data ?? {};
15375
+ const service = data.service && typeof data.service === "object" ? data.service : { name: data.service };
15376
+ return {
15377
+ tenant: textOf(data.tenant) || textOf(service.tenant),
15378
+ account: textOf(data.account) || textOf(service.account),
15379
+ environment: textOf(data.environment) || textOf(service.environment),
15380
+ service: textOf(service.name)
15381
+ };
15382
+ }
15383
+ function getBreadcrumbLevels(notification) {
15384
+ const levels = (notification.breadcrumb ?? "").split(">").map((token) => BREADCRUMB_TOKEN_TO_LEVEL[token.trim().toLowerCase()]).filter((level) => Boolean(level));
15385
+ return levels.length ? levels : BREADCRUMB_LEVELS;
15386
+ }
15387
+ function getCtaBreadcrumb(notification, labels = DEFAULT_BREADCRUMB_LABELS) {
15388
+ const names = getCtaEntityNames(notification);
15389
+ return getBreadcrumbLevels(notification).filter((level) => names[level]).map((level) => ({
15390
+ label: labels[level],
15391
+ name: names[level]
15392
+ }));
15393
+ }
15394
+ function formatCtaTime(date) {
15395
+ const numeric = Number(date);
15396
+ const timestamp = numeric > 0 ? numeric < 0xe8d4a51000 ? numeric * 1e3 : numeric : Date.parse(date ?? "");
15397
+ if (!Number.isFinite(timestamp)) return "";
15398
+ const time = new Date(timestamp);
15399
+ return `${String(time.getHours()).padStart(2, "0")}:${String(time.getMinutes()).padStart(2, "0")}`;
15400
+ }
15401
+ function groupCallToActionNotifications(notifications, { byEntity = false } = {}) {
15340
15402
  const groups = /* @__PURE__ */ new Map();
15341
15403
  notifications.forEach((notification) => {
15342
- const key = `${notification.criticality}|${getCtaHeading(notification)}|${getCtaDescription(notification)}`;
15404
+ const entityKey = byEntity ? Object.values(getCtaEntityNames(notification)).join("|") : "";
15405
+ const key = `${notification.criticality}|${getCtaHeading(notification)}|${getCtaDescription(notification)}|${entityKey}`;
15343
15406
  const existing = groups.get(key);
15344
15407
  if (existing) existing.count += 1;
15345
15408
  else groups.set(key, {
@@ -15375,6 +15438,7 @@ var AxebowCallToActionFeature = class AxebowCallToActionFeature extends LitEleme
15375
15438
  this.actionNeededLabel = "Action needed";
15376
15439
  this.noActionsLabel = "No action needed!";
15377
15440
  this.lastUpdatedText = "";
15441
+ this.breadcrumbLabels = DEFAULT_BREADCRUMB_LABELS;
15378
15442
  this.expanded = false;
15379
15443
  this.refreshing = false;
15380
15444
  }
@@ -15489,12 +15553,13 @@ var AxebowCallToActionFeature = class AxebowCallToActionFeature extends LitEleme
15489
15553
  ` : ""}
15490
15554
  ${!this.refreshing && this.expanded && hasCallToActions ? html`
15491
15555
  <div class="w-full flex flex-col">
15492
- ${groupCallToActionNotifications(this.callToActions).map(({ notification, count }) => html`
15556
+ ${groupCallToActionNotifications(this.callToActions, { byEntity: true }).map(({ notification, count }) => html`
15493
15557
  <axebow-call-to-action-row
15494
15558
  criticality=${notification.criticality}
15495
- heading=${getCtaHeading(notification)}
15559
+ heading=${getCtaDescription(notification) || getCtaHeading(notification)}
15496
15560
  badgeLabel=${getCtaBadgeLabel(notification)}
15497
- description=${getCtaDescription(notification)}
15561
+ .breadcrumb=${getCtaBreadcrumb(notification, this.breadcrumbLabels)}
15562
+ timeText=${formatCtaTime(notification.date)}
15498
15563
  lowNoteText=${DEFAULT_LOW_NOTE_TEXT}
15499
15564
  count=${count}
15500
15565
  .buttons=${buildCtaButtons(notification, (detail) => this.dispatchEvent(new CustomEvent("cta-action", {
@@ -15514,6 +15579,7 @@ __decorate([property({ type: Array })], AxebowCallToActionFeature.prototype, "ca
15514
15579
  __decorate([property({ type: String })], AxebowCallToActionFeature.prototype, "actionNeededLabel", void 0);
15515
15580
  __decorate([property({ type: String })], AxebowCallToActionFeature.prototype, "noActionsLabel", void 0);
15516
15581
  __decorate([property({ type: String })], AxebowCallToActionFeature.prototype, "lastUpdatedText", void 0);
15582
+ __decorate([property({ type: Object })], AxebowCallToActionFeature.prototype, "breadcrumbLabels", void 0);
15517
15583
  __decorate([state()], AxebowCallToActionFeature.prototype, "expanded", void 0);
15518
15584
  __decorate([state()], AxebowCallToActionFeature.prototype, "refreshing", void 0);
15519
15585
  AxebowCallToActionFeature = _AxebowCallToActionFeature = __decorate([customElement("axebow-call-to-action-feature")], AxebowCallToActionFeature);
@@ -17772,6 +17838,6 @@ __decorate([property({ type: Number })], AxebowScrollbar.prototype, "thumbLength
17772
17838
  __decorate([property({ type: Number })], AxebowScrollbar.prototype, "edgeOffsetRem", void 0);
17773
17839
  AxebowScrollbar = __decorate([customElement("axebow-scrollbar")], AxebowScrollbar);
17774
17840
  //#endregion
17775
- export { AxebowActionsFooter, AxebowAdjustmentResourcesCounter, AxebowAlert, AxebowBadge, AxebowBanner, AxebowBaseCard, AxebowBorderContainer, AxebowBoxSection, AxebowBoxedInput, AxebowBreadcrumbHeader, AxebowButton, AxebowCallToActionFeature, AxebowCallToActionRow, AxebowCardActionBanner, AxebowCardAttentionBanner, AxebowCardCloudLogo, AxebowCardFilter, AxebowCardFilterItem, AxebowCardFooter, AxebowCardHeader, AxebowCardResourceRow, AxebowCardResourceTable, AxebowCardSpecialLink, AxebowCardStatItem, AxebowCardStatsRow, AxebowCardStatus, AxebowCardTableHeader, AxebowCardVersionSelector, AxebowCarousel, AxebowCarouselInput, AxebowCarouselSelectorItem, AxebowCarouselSelectorTenant, AxebowChannelConfigPanel, AxebowCheckboxInput, AxebowCollaboratorsDialog, AxebowCopyBox, AxebowCopyIcon, AxebowCtaDialog, AxebowDeleteDataPopup, AxebowDeployCard, AxebowDeploySummary, AxebowDialog, AxebowDivider, AxebowDragDropUploadFile, AxebowDraggableService, AxebowEmptyState, AxebowEmptyStateDescriptionSection, AxebowEmptyStateSelectorSection, AxebowExpandableCard, AxebowExpandableHeader, AxebowFilterBar, AxebowFooter, AxebowFormPanelField, AxebowGettingStartedCard, AxebowGraph, AxebowHeader, AxebowHelpBubble, AxebowHyperlinkSwitch, AxebowIcon, AxebowInfrastructureCard, AxebowInput, AxebowInputBase, AxebowInstancesTable, AxebowLearningCenter, AxebowLimitsCounter, AxebowManageHyperlinks, AxebowMarketplaceCard, AxebowMobileWarningBanner, AxebowModal, AxebowModalsConfirmation, AxebowMoreActions, AxebowNumberCard, AxebowNumbersSection, AxebowNumericInput, AxebowObservabilityContainer, AxebowPageActions, AxebowPaginatedTable, AxebowPemDialog, AxebowPill, AxebowPlanProvidersModal, AxebowPlanSelectField, AxebowPremiumPlanPopup, AxebowProgressBar, AxebowPromotionDropdown, AxebowProvidersInput, AxebowQuickTipButton, AxebowQuickTipSection, AxebowRefreshPeriodPanel, AxebowRegistrySelector, AxebowResourceBar, AxebowResourceBoxForm, AxebowResourceCard, AxebowResourceLimitInput, AxebowResourceLimitsPanel, AxebowResourcesCounter, AxebowRoleCard, AxebowRoleContainerDropdown, AxebowRoleTooltip, AxebowRuntimeZipDialog, AxebowScrollbar, AxebowSearch, AxebowSearchBarFilters, AxebowSelectInput, AxebowSelectInputWithDivider, AxebowSelectorCard, AxebowSelectorSlider, AxebowServiceDetailHeader, AxebowServicesPanel, AxebowSidebar, AxebowStatus, AxebowStepHeader, AxebowSummaryCard, AxebowSummaryFlavors, AxebowSummaryKeyValue, AxebowSummaryLimits, AxebowSummaryStep, AxebowSummaryStepHeader, AxebowSwitch, AxebowSwitchInput, AxebowTabSelector, AxebowTabsSubmenu, AxebowTagsInput, AxebowTenantCard, AxebowTenantResourceTable, AxebowTenantsTable, AxebowTextInput, AxebowTimeRangePanel, AxebowTooltip, AxebowUl, AxebowUndeployCard, AxebowUnderlineTabSelector, AxebowUsageTooltip, AxebowWhiteContainer, CRITICALITY_STYLES, CustomHomePageBody, DEFAULT_ADD_DIALOG_LABELS, DEFAULT_LOW_NOTE_TEXT, DeployModalComponent, DeployModalFooter, DeployModalHeader, DeployPageBody, STATUS_COLORS, TableChart, UsageChart, WizardPageLayout, axebowTheme, buildAddButton, buildCtaButtons, buildExternalNodeContent, buildMainNodeContent, createElement, createIcon, getCtaBadgeLabel, getCtaDescription, getCtaHeading, getHighestCriticality, groupCallToActionNotifications };
17841
+ export { AxebowActionsFooter, AxebowAdjustmentResourcesCounter, AxebowAlert, AxebowBadge, AxebowBanner, AxebowBaseCard, AxebowBorderContainer, AxebowBoxSection, AxebowBoxedInput, AxebowBreadcrumbHeader, AxebowButton, AxebowCallToActionFeature, AxebowCallToActionRow, AxebowCardActionBanner, AxebowCardAttentionBanner, AxebowCardCloudLogo, AxebowCardFilter, AxebowCardFilterItem, AxebowCardFooter, AxebowCardHeader, AxebowCardResourceRow, AxebowCardResourceTable, AxebowCardSpecialLink, AxebowCardStatItem, AxebowCardStatsRow, AxebowCardStatus, AxebowCardTableHeader, AxebowCardVersionSelector, AxebowCarousel, AxebowCarouselInput, AxebowCarouselSelectorItem, AxebowCarouselSelectorTenant, AxebowChannelConfigPanel, AxebowCheckboxInput, AxebowCollaboratorsDialog, AxebowCopyBox, AxebowCopyIcon, AxebowCtaDialog, AxebowDeleteDataPopup, AxebowDeployCard, AxebowDeploySummary, AxebowDialog, AxebowDivider, AxebowDragDropUploadFile, AxebowDraggableService, AxebowEmptyState, AxebowEmptyStateDescriptionSection, AxebowEmptyStateSelectorSection, AxebowExpandableCard, AxebowExpandableHeader, AxebowFilterBar, AxebowFooter, AxebowFormPanelField, AxebowGettingStartedCard, AxebowGraph, AxebowHeader, AxebowHelpBubble, AxebowHyperlinkSwitch, AxebowIcon, AxebowInfrastructureCard, AxebowInput, AxebowInputBase, AxebowInstancesTable, AxebowLearningCenter, AxebowLimitsCounter, AxebowManageHyperlinks, AxebowMarketplaceCard, AxebowMobileWarningBanner, AxebowModal, AxebowModalsConfirmation, AxebowMoreActions, AxebowNumberCard, AxebowNumbersSection, AxebowNumericInput, AxebowObservabilityContainer, AxebowPageActions, AxebowPaginatedTable, AxebowPemDialog, AxebowPill, AxebowPlanProvidersModal, AxebowPlanSelectField, AxebowPremiumPlanPopup, AxebowProgressBar, AxebowPromotionDropdown, AxebowProvidersInput, AxebowQuickTipButton, AxebowQuickTipSection, AxebowRefreshPeriodPanel, AxebowRegistrySelector, AxebowResourceBar, AxebowResourceBoxForm, AxebowResourceCard, AxebowResourceLimitInput, AxebowResourceLimitsPanel, AxebowResourcesCounter, AxebowRoleCard, AxebowRoleContainerDropdown, AxebowRoleTooltip, AxebowRuntimeZipDialog, AxebowScrollbar, AxebowSearch, AxebowSearchBarFilters, AxebowSelectInput, AxebowSelectInputWithDivider, AxebowSelectorCard, AxebowSelectorSlider, AxebowServiceDetailHeader, AxebowServicesPanel, AxebowSidebar, AxebowStatus, AxebowStepHeader, AxebowSummaryCard, AxebowSummaryFlavors, AxebowSummaryKeyValue, AxebowSummaryLimits, AxebowSummaryStep, AxebowSummaryStepHeader, AxebowSwitch, AxebowSwitchInput, AxebowTabSelector, AxebowTabsSubmenu, AxebowTagsInput, AxebowTenantCard, AxebowTenantResourceTable, AxebowTenantsTable, AxebowTextInput, AxebowTimeRangePanel, AxebowTooltip, AxebowUl, AxebowUndeployCard, AxebowUnderlineTabSelector, AxebowUsageTooltip, AxebowWhiteContainer, CRITICALITY_STYLES, CustomHomePageBody, DEFAULT_ADD_DIALOG_LABELS, DEFAULT_BREADCRUMB_LABELS, DEFAULT_LOW_NOTE_TEXT, DeployModalComponent, DeployModalFooter, DeployModalHeader, DeployPageBody, STATUS_COLORS, TableChart, UsageChart, WizardPageLayout, axebowTheme, buildAddButton, buildCtaButtons, buildExternalNodeContent, buildMainNodeContent, createElement, createIcon, formatCtaTime, getCtaBadgeLabel, getCtaBreadcrumb, getCtaDescription, getCtaHeading, getHighestCriticality, groupCallToActionNotifications };
17776
17842
 
17777
17843
  //# sourceMappingURL=index.js.map