@kumori/aurora-wui-components 0.0.336 → 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.
@@ -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;AAG3C;;;;;;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,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;CA0HP"}
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"}
@@ -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);
@@ -10571,6 +10583,7 @@ var AxebowActionsFooter = class AxebowActionsFooter extends LitElement {
10571
10583
  this.actionLabel = "";
10572
10584
  this.onAction = () => {};
10573
10585
  this.isActionDisabled = false;
10586
+ this.actionTooltip = "";
10574
10587
  this.actionVariant = "primary";
10575
10588
  this.actionClass = "";
10576
10589
  this.actionFixedWidth = "8.5rem";
@@ -10597,6 +10610,19 @@ var AxebowActionsFooter = class AxebowActionsFooter extends LitElement {
10597
10610
  const hasSecondaryAction = Boolean(this.secondaryActionLabel);
10598
10611
  const hasAction = Boolean(this.actionLabel);
10599
10612
  const hasText = Boolean(this.text);
10613
+ const showActionTooltip = this.isActionDisabled && Boolean(this.actionTooltip);
10614
+ const actionButton = html`
10615
+ <axebow-button
10616
+ class="${this.actionClass} ${showActionTooltip ? "pointer-events-none" : ""}"
10617
+ variant="${this.actionVariant}"
10618
+ .fixedWidth=${this.actionFixedWidth}
10619
+ .fixedHeight=${this.actionFixedHeight}
10620
+ .disabled=${this.isActionDisabled}
10621
+ @click=${this.onAction}
10622
+ >
10623
+ ${this.actionLabel}
10624
+ </axebow-button>
10625
+ `;
10600
10626
  const hasLeftGroup = hasCancel || hasPrevious;
10601
10627
  const hasRightGroup = hasSecondaryAction || hasAction;
10602
10628
  const isOnlyCancel = hasCancel && !hasPrevious && !hasRightGroup;
@@ -10672,18 +10698,11 @@ var AxebowActionsFooter = class AxebowActionsFooter extends LitElement {
10672
10698
  ${this.secondaryActionLabel}
10673
10699
  </axebow-button>
10674
10700
  ` : ""}
10675
- ${hasAction ? html`
10676
- <axebow-button
10677
- class="${this.actionClass}"
10678
- variant="${this.actionVariant}"
10679
- .fixedWidth=${this.actionFixedWidth}
10680
- .fixedHeight=${this.actionFixedHeight}
10681
- .disabled=${this.isActionDisabled}
10682
- @click=${this.onAction}
10683
- >
10684
- ${this.actionLabel}
10685
- </axebow-button>
10686
- ` : ""}
10701
+ ${hasAction ? showActionTooltip ? html`
10702
+ <axebow-tooltip .content=${this.actionTooltip} placement="top">
10703
+ <div class="inline-flex">${actionButton}</div>
10704
+ </axebow-tooltip>
10705
+ ` : actionButton : ""}
10687
10706
  </div>
10688
10707
  ` : ""}
10689
10708
  </div>
@@ -10703,6 +10722,7 @@ __decorate([property({ type: String })], AxebowActionsFooter.prototype, "previou
10703
10722
  __decorate([property({ type: Object })], AxebowActionsFooter.prototype, "actionLabel", void 0);
10704
10723
  __decorate([property({ attribute: false })], AxebowActionsFooter.prototype, "onAction", void 0);
10705
10724
  __decorate([property({ type: Boolean })], AxebowActionsFooter.prototype, "isActionDisabled", void 0);
10725
+ __decorate([property({ type: String })], AxebowActionsFooter.prototype, "actionTooltip", void 0);
10706
10726
  __decorate([property({ type: String })], AxebowActionsFooter.prototype, "actionVariant", void 0);
10707
10727
  __decorate([property({ type: String })], AxebowActionsFooter.prototype, "actionClass", void 0);
10708
10728
  __decorate([property({ type: String })], AxebowActionsFooter.prototype, "actionFixedWidth", void 0);
@@ -15309,6 +15329,25 @@ AxebowModal = __decorate([customElement("axebow-modal")], AxebowModal);
15309
15329
  //#endregion
15310
15330
  //#region src/components/axebow-call-to-action-row/call-to-action-notification.ts
15311
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
+ };
15312
15351
  var BUTTON_TYPE_TO_VARIANT = {
15313
15352
  primary: "primary",
15314
15353
  secondary: "tertiary",
@@ -15328,10 +15367,42 @@ function getCtaDescription(notification) {
15328
15367
  function getCtaBadgeLabel(notification) {
15329
15368
  return notification.criticality.toUpperCase();
15330
15369
  }
15331
- 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 } = {}) {
15332
15402
  const groups = /* @__PURE__ */ new Map();
15333
15403
  notifications.forEach((notification) => {
15334
- 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}`;
15335
15406
  const existing = groups.get(key);
15336
15407
  if (existing) existing.count += 1;
15337
15408
  else groups.set(key, {
@@ -15367,6 +15438,7 @@ var AxebowCallToActionFeature = class AxebowCallToActionFeature extends LitEleme
15367
15438
  this.actionNeededLabel = "Action needed";
15368
15439
  this.noActionsLabel = "No action needed!";
15369
15440
  this.lastUpdatedText = "";
15441
+ this.breadcrumbLabels = DEFAULT_BREADCRUMB_LABELS;
15370
15442
  this.expanded = false;
15371
15443
  this.refreshing = false;
15372
15444
  }
@@ -15481,12 +15553,13 @@ var AxebowCallToActionFeature = class AxebowCallToActionFeature extends LitEleme
15481
15553
  ` : ""}
15482
15554
  ${!this.refreshing && this.expanded && hasCallToActions ? html`
15483
15555
  <div class="w-full flex flex-col">
15484
- ${groupCallToActionNotifications(this.callToActions).map(({ notification, count }) => html`
15556
+ ${groupCallToActionNotifications(this.callToActions, { byEntity: true }).map(({ notification, count }) => html`
15485
15557
  <axebow-call-to-action-row
15486
15558
  criticality=${notification.criticality}
15487
- heading=${getCtaHeading(notification)}
15559
+ heading=${getCtaDescription(notification) || getCtaHeading(notification)}
15488
15560
  badgeLabel=${getCtaBadgeLabel(notification)}
15489
- description=${getCtaDescription(notification)}
15561
+ .breadcrumb=${getCtaBreadcrumb(notification, this.breadcrumbLabels)}
15562
+ timeText=${formatCtaTime(notification.date)}
15490
15563
  lowNoteText=${DEFAULT_LOW_NOTE_TEXT}
15491
15564
  count=${count}
15492
15565
  .buttons=${buildCtaButtons(notification, (detail) => this.dispatchEvent(new CustomEvent("cta-action", {
@@ -15506,6 +15579,7 @@ __decorate([property({ type: Array })], AxebowCallToActionFeature.prototype, "ca
15506
15579
  __decorate([property({ type: String })], AxebowCallToActionFeature.prototype, "actionNeededLabel", void 0);
15507
15580
  __decorate([property({ type: String })], AxebowCallToActionFeature.prototype, "noActionsLabel", void 0);
15508
15581
  __decorate([property({ type: String })], AxebowCallToActionFeature.prototype, "lastUpdatedText", void 0);
15582
+ __decorate([property({ type: Object })], AxebowCallToActionFeature.prototype, "breadcrumbLabels", void 0);
15509
15583
  __decorate([state()], AxebowCallToActionFeature.prototype, "expanded", void 0);
15510
15584
  __decorate([state()], AxebowCallToActionFeature.prototype, "refreshing", void 0);
15511
15585
  AxebowCallToActionFeature = _AxebowCallToActionFeature = __decorate([customElement("axebow-call-to-action-feature")], AxebowCallToActionFeature);
@@ -17764,6 +17838,6 @@ __decorate([property({ type: Number })], AxebowScrollbar.prototype, "thumbLength
17764
17838
  __decorate([property({ type: Number })], AxebowScrollbar.prototype, "edgeOffsetRem", void 0);
17765
17839
  AxebowScrollbar = __decorate([customElement("axebow-scrollbar")], AxebowScrollbar);
17766
17840
  //#endregion
17767
- 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 };
17768
17842
 
17769
17843
  //# sourceMappingURL=index.js.map