@kumori/aurora-wui-components 0.0.337-dev4696 → 0.0.337-dev4696.2
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.
- package/dist/components/axebow-call-to-action-feature/axebow-call-to-action-feature.d.ts +2 -1
- package/dist/components/axebow-call-to-action-feature/axebow-call-to-action-feature.d.ts.map +1 -1
- package/dist/components/axebow-call-to-action-row/axebow-call-to-action-row.d.ts +4 -1
- package/dist/components/axebow-call-to-action-row/axebow-call-to-action-row.d.ts.map +1 -1
- package/dist/components/axebow-call-to-action-row/call-to-action-notification.d.ts +18 -2
- package/dist/components/axebow-call-to-action-row/call-to-action-notification.d.ts.map +1 -1
- package/dist/components/axebow-cta-dialog/axebow-cta-dialog.d.ts.map +1 -1
- package/dist/index.js +78 -26
- package/dist/index.js.map +1 -1
- package/dist/playground/schemas/axebow-call-to-action-feature.schema.d.ts.map +1 -1
- package/dist/playground/schemas/axebow-call-to-action-row.schema.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|
package/dist/components/axebow-call-to-action-feature/axebow-call-to-action-feature.d.ts.map
CHANGED
|
@@ -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;
|
|
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,13 @@ 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
|
-
count: number;
|
|
25
27
|
static styles: import('lit').CSSResult[];
|
|
26
28
|
render(): import('lit-html').TemplateResult<1>;
|
|
29
|
+
private _renderDescription;
|
|
27
30
|
private _renderLowNote;
|
|
28
31
|
private _renderButtons;
|
|
29
32
|
}
|
|
@@ -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;
|
|
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;IAE7C,MAAM,CAAC,MAAM,4BASX;IAEF,MAAM;IA0BN,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,cAAc;CAyBvB"}
|
|
@@ -25,19 +25,35 @@ 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
|
-
count: number;
|
|
39
55
|
}
|
|
40
|
-
export declare function groupCallToActionNotifications(notifications: CallToActionNotification[]): GroupedCallToActionNotification[];
|
|
56
|
+
export declare function groupCallToActionNotifications(notifications: CallToActionNotification[], { byEntity }?: GroupCallToActionOptions): GroupedCallToActionNotification[];
|
|
41
57
|
export declare function buildCtaButtons(notification: CallToActionNotification, dispatch: (detail: {
|
|
42
58
|
notification: CallToActionNotification;
|
|
43
59
|
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;
|
|
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;CACxC;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,wBAAwB,EAAE,EACzC,EAAE,QAAgB,EAAE,GAAE,wBAA6B,GAClD,+BAA+B,EAAE,CAQnC;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 +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;
|
|
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"}
|
package/dist/index.js
CHANGED
|
@@ -9057,7 +9057,7 @@ var AxebowResourceCard = class AxebowResourceCard extends LitElement {
|
|
|
9057
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"
|
|
9058
9058
|
@click=${() => row.onSeeHere?.()}
|
|
9059
9059
|
>
|
|
9060
|
-
|
|
9060
|
+
<span class="text-base">${this.seeHereLabel}</span>
|
|
9061
9061
|
</button>
|
|
9062
9062
|
</div>
|
|
9063
9063
|
|
|
@@ -9897,9 +9897,10 @@ 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
|
-
this.count = 1;
|
|
9903
9904
|
}
|
|
9904
9905
|
static {
|
|
9905
9906
|
this.styles = [
|
|
@@ -9927,18 +9928,20 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
|
|
|
9927
9928
|
<div class="w-full flex flex-row items-center gap-2">
|
|
9928
9929
|
<span class="text-base font-semibold truncate">${this.heading}</span>
|
|
9929
9930
|
${this.badgeLabel ? html`<axebow-badge class="uppercase" bgColor=${bg} textColor=${color}>${this.badgeLabel}</axebow-badge>` : ""}
|
|
9930
|
-
${this.count > 1 ? html`<div
|
|
9931
|
-
class="w-5 h-5 shrink-0 rounded-full border border-solid flex items-center justify-center text-sm font-semibold"
|
|
9932
|
-
style="background-color: ${bg}; color: ${color}; border-color: ${color};"
|
|
9933
|
-
>
|
|
9934
|
-
${this.count}
|
|
9935
|
-
</div>` : ""}
|
|
9936
9931
|
</div>
|
|
9937
|
-
|
|
9932
|
+
${this._renderDescription()}
|
|
9938
9933
|
</div>
|
|
9939
9934
|
|
|
9940
9935
|
${this.criticality === "low" && !this.buttons.length ? this._renderLowNote() : this._renderButtons()}
|
|
9941
9936
|
</div>
|
|
9937
|
+
`;
|
|
9938
|
+
}
|
|
9939
|
+
_renderDescription() {
|
|
9940
|
+
if (!this.breadcrumb.length && !this.timeText) return html`<div class="w-full text-(--axebow-secondary)">${this.description}</div>`;
|
|
9941
|
+
return html`
|
|
9942
|
+
<div class="w-full truncate text-(--axebow-secondary)">
|
|
9943
|
+
${this.breadcrumb.map((item, index) => html`${index > 0 ? " > " : ""}${item.label}: <span class="font-semibold">${item.name}</span>`)}${this.timeText ? `${this.breadcrumb.length ? " / " : ""}${this.timeText}` : ""}
|
|
9944
|
+
</div>
|
|
9942
9945
|
`;
|
|
9943
9946
|
}
|
|
9944
9947
|
_renderLowNote() {
|
|
@@ -9977,9 +9980,10 @@ __decorate([property({ type: String })], AxebowCallToActionRow.prototype, "criti
|
|
|
9977
9980
|
__decorate([property({ type: String })], AxebowCallToActionRow.prototype, "heading", void 0);
|
|
9978
9981
|
__decorate([property({ type: String })], AxebowCallToActionRow.prototype, "badgeLabel", void 0);
|
|
9979
9982
|
__decorate([property({ type: String })], AxebowCallToActionRow.prototype, "description", void 0);
|
|
9983
|
+
__decorate([property({ type: Array })], AxebowCallToActionRow.prototype, "breadcrumb", void 0);
|
|
9984
|
+
__decorate([property({ type: String })], AxebowCallToActionRow.prototype, "timeText", void 0);
|
|
9980
9985
|
__decorate([property({ type: Array })], AxebowCallToActionRow.prototype, "buttons", void 0);
|
|
9981
9986
|
__decorate([property({ type: String })], AxebowCallToActionRow.prototype, "lowNoteText", void 0);
|
|
9982
|
-
__decorate([property({ type: Number })], AxebowCallToActionRow.prototype, "count", void 0);
|
|
9983
9987
|
AxebowCallToActionRow = __decorate([customElement("axebow-call-to-action-row")], AxebowCallToActionRow);
|
|
9984
9988
|
//#endregion
|
|
9985
9989
|
//#region src/components/axebow-tenant-card/axebow-tenant-card.ts
|
|
@@ -15317,6 +15321,25 @@ AxebowModal = __decorate([customElement("axebow-modal")], AxebowModal);
|
|
|
15317
15321
|
//#endregion
|
|
15318
15322
|
//#region src/components/axebow-call-to-action-row/call-to-action-notification.ts
|
|
15319
15323
|
var DEFAULT_LOW_NOTE_TEXT = "No action needed";
|
|
15324
|
+
var DEFAULT_BREADCRUMB_LABELS = {
|
|
15325
|
+
tenant: "tenant",
|
|
15326
|
+
account: "account",
|
|
15327
|
+
environment: "environment",
|
|
15328
|
+
service: "service"
|
|
15329
|
+
};
|
|
15330
|
+
var BREADCRUMB_LEVELS = [
|
|
15331
|
+
"tenant",
|
|
15332
|
+
"account",
|
|
15333
|
+
"environment",
|
|
15334
|
+
"service"
|
|
15335
|
+
];
|
|
15336
|
+
var BREADCRUMB_TOKEN_TO_LEVEL = {
|
|
15337
|
+
tenant: "tenant",
|
|
15338
|
+
account: "account",
|
|
15339
|
+
env: "environment",
|
|
15340
|
+
environment: "environment",
|
|
15341
|
+
service: "service"
|
|
15342
|
+
};
|
|
15320
15343
|
var BUTTON_TYPE_TO_VARIANT = {
|
|
15321
15344
|
primary: "primary",
|
|
15322
15345
|
secondary: "tertiary",
|
|
@@ -15336,16 +15359,43 @@ function getCtaDescription(notification) {
|
|
|
15336
15359
|
function getCtaBadgeLabel(notification) {
|
|
15337
15360
|
return notification.criticality.toUpperCase();
|
|
15338
15361
|
}
|
|
15339
|
-
function
|
|
15362
|
+
function textOf(value) {
|
|
15363
|
+
return typeof value === "string" ? value : "";
|
|
15364
|
+
}
|
|
15365
|
+
function getCtaEntityNames(notification) {
|
|
15366
|
+
const data = notification.data ?? {};
|
|
15367
|
+
const service = data.service && typeof data.service === "object" ? data.service : { name: data.service };
|
|
15368
|
+
return {
|
|
15369
|
+
tenant: textOf(data.tenant) || textOf(service.tenant),
|
|
15370
|
+
account: textOf(data.account) || textOf(service.account),
|
|
15371
|
+
environment: textOf(data.environment) || textOf(service.environment),
|
|
15372
|
+
service: textOf(service.name)
|
|
15373
|
+
};
|
|
15374
|
+
}
|
|
15375
|
+
function getBreadcrumbLevels(notification) {
|
|
15376
|
+
const levels = (notification.breadcrumb ?? "").split(">").map((token) => BREADCRUMB_TOKEN_TO_LEVEL[token.trim().toLowerCase()]).filter((level) => Boolean(level));
|
|
15377
|
+
return levels.length ? levels : BREADCRUMB_LEVELS;
|
|
15378
|
+
}
|
|
15379
|
+
function getCtaBreadcrumb(notification, labels = DEFAULT_BREADCRUMB_LABELS) {
|
|
15380
|
+
const names = getCtaEntityNames(notification);
|
|
15381
|
+
return getBreadcrumbLevels(notification).filter((level) => names[level]).map((level) => ({
|
|
15382
|
+
label: labels[level],
|
|
15383
|
+
name: names[level]
|
|
15384
|
+
}));
|
|
15385
|
+
}
|
|
15386
|
+
function formatCtaTime(date) {
|
|
15387
|
+
const numeric = Number(date);
|
|
15388
|
+
const timestamp = numeric > 0 ? numeric < 0xe8d4a51000 ? numeric * 1e3 : numeric : Date.parse(date ?? "");
|
|
15389
|
+
if (!Number.isFinite(timestamp)) return "";
|
|
15390
|
+
const time = new Date(timestamp);
|
|
15391
|
+
return `${String(time.getHours()).padStart(2, "0")}:${String(time.getMinutes()).padStart(2, "0")}`;
|
|
15392
|
+
}
|
|
15393
|
+
function groupCallToActionNotifications(notifications, { byEntity = false } = {}) {
|
|
15340
15394
|
const groups = /* @__PURE__ */ new Map();
|
|
15341
15395
|
notifications.forEach((notification) => {
|
|
15342
|
-
const
|
|
15343
|
-
const
|
|
15344
|
-
if (
|
|
15345
|
-
else groups.set(key, {
|
|
15346
|
-
notification,
|
|
15347
|
-
count: 1
|
|
15348
|
-
});
|
|
15396
|
+
const entityKey = byEntity ? Object.values(getCtaEntityNames(notification)).join("|") : "";
|
|
15397
|
+
const key = `${notification.criticality}|${getCtaHeading(notification)}|${getCtaDescription(notification)}|${entityKey}`;
|
|
15398
|
+
if (!groups.has(key)) groups.set(key, { notification });
|
|
15349
15399
|
});
|
|
15350
15400
|
return [...groups.values()];
|
|
15351
15401
|
}
|
|
@@ -15375,6 +15425,7 @@ var AxebowCallToActionFeature = class AxebowCallToActionFeature extends LitEleme
|
|
|
15375
15425
|
this.actionNeededLabel = "Action needed";
|
|
15376
15426
|
this.noActionsLabel = "No action needed!";
|
|
15377
15427
|
this.lastUpdatedText = "";
|
|
15428
|
+
this.breadcrumbLabels = DEFAULT_BREADCRUMB_LABELS;
|
|
15378
15429
|
this.expanded = false;
|
|
15379
15430
|
this.refreshing = false;
|
|
15380
15431
|
}
|
|
@@ -15444,6 +15495,7 @@ var AxebowCallToActionFeature = class AxebowCallToActionFeature extends LitEleme
|
|
|
15444
15495
|
const { color: criticalityColor, iconName } = CRITICALITY_STYLES[this._highestCriticality];
|
|
15445
15496
|
const chevronIconName = this.expanded ? "keyboard_arrow_down" : "chevron_right";
|
|
15446
15497
|
const hasCallToActions = this.callToActions.length > 0;
|
|
15498
|
+
const callToActionGroups = groupCallToActionNotifications(this.callToActions, { byEntity: true });
|
|
15447
15499
|
return html`
|
|
15448
15500
|
<div class="w-full box-border border border-solid border-(--axebow-table-header-border) rounded-lg overflow-hidden flex flex-col axebow-shadow-hover">
|
|
15449
15501
|
<div
|
|
@@ -15458,7 +15510,7 @@ var AxebowCallToActionFeature = class AxebowCallToActionFeature extends LitEleme
|
|
|
15458
15510
|
class="w-6 h-6 shrink-0 rounded-full flex items-center justify-center"
|
|
15459
15511
|
style="background-color: ${hasCallToActions ? this.expanded ? "var(--axebow-white)" : "var(--axebow-base)" : "var(--axebow-success)"};"
|
|
15460
15512
|
>
|
|
15461
|
-
<span class="text-base" style="color: ${hasCallToActions ? "inherit" : "var(--axebow-white)"};">${
|
|
15513
|
+
<span class="text-base" style="color: ${hasCallToActions ? "inherit" : "var(--axebow-white)"};">${callToActionGroups.length}</span>
|
|
15462
15514
|
</div>
|
|
15463
15515
|
</div>
|
|
15464
15516
|
|
|
@@ -15489,14 +15541,14 @@ var AxebowCallToActionFeature = class AxebowCallToActionFeature extends LitEleme
|
|
|
15489
15541
|
` : ""}
|
|
15490
15542
|
${!this.refreshing && this.expanded && hasCallToActions ? html`
|
|
15491
15543
|
<div class="w-full flex flex-col">
|
|
15492
|
-
${
|
|
15544
|
+
${callToActionGroups.map(({ notification }) => html`
|
|
15493
15545
|
<axebow-call-to-action-row
|
|
15494
15546
|
criticality=${notification.criticality}
|
|
15495
|
-
heading=${getCtaHeading(notification)}
|
|
15547
|
+
heading=${getCtaDescription(notification) || getCtaHeading(notification)}
|
|
15496
15548
|
badgeLabel=${getCtaBadgeLabel(notification)}
|
|
15497
|
-
|
|
15549
|
+
.breadcrumb=${getCtaBreadcrumb(notification, this.breadcrumbLabels)}
|
|
15550
|
+
timeText=${formatCtaTime(notification.date)}
|
|
15498
15551
|
lowNoteText=${DEFAULT_LOW_NOTE_TEXT}
|
|
15499
|
-
count=${count}
|
|
15500
15552
|
.buttons=${buildCtaButtons(notification, (detail) => this.dispatchEvent(new CustomEvent("cta-action", {
|
|
15501
15553
|
detail,
|
|
15502
15554
|
bubbles: true,
|
|
@@ -15514,6 +15566,7 @@ __decorate([property({ type: Array })], AxebowCallToActionFeature.prototype, "ca
|
|
|
15514
15566
|
__decorate([property({ type: String })], AxebowCallToActionFeature.prototype, "actionNeededLabel", void 0);
|
|
15515
15567
|
__decorate([property({ type: String })], AxebowCallToActionFeature.prototype, "noActionsLabel", void 0);
|
|
15516
15568
|
__decorate([property({ type: String })], AxebowCallToActionFeature.prototype, "lastUpdatedText", void 0);
|
|
15569
|
+
__decorate([property({ type: Object })], AxebowCallToActionFeature.prototype, "breadcrumbLabels", void 0);
|
|
15517
15570
|
__decorate([state()], AxebowCallToActionFeature.prototype, "expanded", void 0);
|
|
15518
15571
|
__decorate([state()], AxebowCallToActionFeature.prototype, "refreshing", void 0);
|
|
15519
15572
|
AxebowCallToActionFeature = _AxebowCallToActionFeature = __decorate([customElement("axebow-call-to-action-feature")], AxebowCallToActionFeature);
|
|
@@ -15551,14 +15604,13 @@ var AxebowCtaDialog = class AxebowCtaDialog extends LitElement {
|
|
|
15551
15604
|
@close=${() => this._handleClose()}
|
|
15552
15605
|
>
|
|
15553
15606
|
<div class="flex flex-col gap-2 p-6">
|
|
15554
|
-
${groupCallToActionNotifications(this.notifications).map(({ notification
|
|
15607
|
+
${groupCallToActionNotifications(this.notifications).map(({ notification }) => html`
|
|
15555
15608
|
<axebow-call-to-action-row
|
|
15556
15609
|
criticality=${notification.criticality}
|
|
15557
15610
|
heading=${getCtaHeading(notification)}
|
|
15558
15611
|
badgeLabel=${getCtaBadgeLabel(notification)}
|
|
15559
15612
|
description=${getCtaDescription(notification)}
|
|
15560
15613
|
lowNoteText=${DEFAULT_LOW_NOTE_TEXT}
|
|
15561
|
-
count=${count}
|
|
15562
15614
|
.buttons=${buildCtaButtons(notification, (detail) => this.dispatchEvent(new CustomEvent("cta-action", {
|
|
15563
15615
|
detail,
|
|
15564
15616
|
bubbles: true,
|
|
@@ -17772,6 +17824,6 @@ __decorate([property({ type: Number })], AxebowScrollbar.prototype, "thumbLength
|
|
|
17772
17824
|
__decorate([property({ type: Number })], AxebowScrollbar.prototype, "edgeOffsetRem", void 0);
|
|
17773
17825
|
AxebowScrollbar = __decorate([customElement("axebow-scrollbar")], AxebowScrollbar);
|
|
17774
17826
|
//#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 };
|
|
17827
|
+
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
17828
|
|
|
17777
17829
|
//# sourceMappingURL=index.js.map
|