@kumori/aurora-wui-components 0.0.2 → 0.0.4
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/aurora-button.d.ts +2 -2
- package/dist/components/cards/aurora-base-card.d.ts +15 -10
- package/dist/components/cards/aurora-base-card.d.ts.map +1 -1
- package/dist/components/cards/aurora-more-actions.d.ts +2 -2
- package/dist/components/cards/aurora-more-actions.d.ts.map +1 -1
- package/dist/components/cards/card.types.d.ts +4 -0
- package/dist/components/cards/card.types.d.ts.map +1 -1
- package/dist/components/cards/parts/aurora-card-action-banner.d.ts +2 -2
- package/dist/components/cards/parts/aurora-card-action-banner.d.ts.map +1 -1
- package/dist/components/cards/parts/aurora-card-attention-banner.d.ts +4 -4
- package/dist/components/cards/parts/aurora-card-attention-banner.d.ts.map +1 -1
- package/dist/components/cards/parts/aurora-card-cloud-logo.d.ts +8 -0
- package/dist/components/cards/parts/aurora-card-cloud-logo.d.ts.map +1 -0
- package/dist/components/cards/parts/aurora-card-filter-item.d.ts +2 -2
- package/dist/components/cards/parts/aurora-card-filter-item.d.ts.map +1 -1
- package/dist/components/cards/parts/aurora-card-filter.d.ts +2 -3
- package/dist/components/cards/parts/aurora-card-filter.d.ts.map +1 -1
- package/dist/components/cards/parts/aurora-card-footer.d.ts +20 -0
- package/dist/components/cards/parts/aurora-card-footer.d.ts.map +1 -0
- package/dist/components/cards/parts/aurora-card-header.d.ts +7 -4
- package/dist/components/cards/parts/aurora-card-header.d.ts.map +1 -1
- package/dist/components/cards/parts/aurora-card-resource-row.d.ts +10 -0
- package/dist/components/cards/parts/aurora-card-resource-row.d.ts.map +1 -0
- package/dist/components/cards/parts/aurora-card-resource-table.d.ts +4 -6
- package/dist/components/cards/parts/aurora-card-resource-table.d.ts.map +1 -1
- package/dist/components/cards/parts/aurora-card-special-link.d.ts +10 -0
- package/dist/components/cards/parts/aurora-card-special-link.d.ts.map +1 -0
- package/dist/components/cards/parts/aurora-card-stat-item.d.ts +2 -2
- package/dist/components/cards/parts/aurora-card-stat-item.d.ts.map +1 -1
- package/dist/components/cards/parts/aurora-card-stats-row.d.ts +2 -3
- package/dist/components/cards/parts/aurora-card-stats-row.d.ts.map +1 -1
- package/dist/components/cards/parts/aurora-card-status.d.ts +10 -0
- package/dist/components/cards/parts/aurora-card-status.d.ts.map +1 -0
- package/dist/components/cards/parts/aurora-card-table-header.d.ts +15 -0
- package/dist/components/cards/parts/aurora-card-table-header.d.ts.map +1 -0
- package/dist/components/cards/parts/aurora-card-version-selector.d.ts +11 -0
- package/dist/components/cards/parts/aurora-card-version-selector.d.ts.map +1 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1336 -15
- package/dist/index.js.map +1 -1
- package/dist/styles/aurora-theme.d.ts +1 -1
- package/package.json +10 -4
- package/dist/components/aurora-button.js +0 -49
- package/dist/components/aurora-button.js.map +0 -1
- package/dist/components/cards/aurora-base-card.js +0 -299
- package/dist/components/cards/aurora-base-card.js.map +0 -1
- package/dist/components/cards/aurora-more-actions.js +0 -194
- package/dist/components/cards/aurora-more-actions.js.map +0 -1
- package/dist/components/cards/aurora-runtime-card.d.ts +0 -44
- package/dist/components/cards/aurora-runtime-card.d.ts.map +0 -1
- package/dist/components/cards/aurora-runtime-card.js +0 -427
- package/dist/components/cards/aurora-runtime-card.js.map +0 -1
- package/dist/components/cards/card.types.js +0 -2
- package/dist/components/cards/card.types.js.map +0 -1
- package/dist/components/cards/parts/aurora-card-action-banner.js +0 -61
- package/dist/components/cards/parts/aurora-card-action-banner.js.map +0 -1
- package/dist/components/cards/parts/aurora-card-attention-banner.js +0 -111
- package/dist/components/cards/parts/aurora-card-attention-banner.js.map +0 -1
- package/dist/components/cards/parts/aurora-card-filter-item.js +0 -53
- package/dist/components/cards/parts/aurora-card-filter-item.js.map +0 -1
- package/dist/components/cards/parts/aurora-card-filter.js +0 -168
- package/dist/components/cards/parts/aurora-card-filter.js.map +0 -1
- package/dist/components/cards/parts/aurora-card-header.js +0 -161
- package/dist/components/cards/parts/aurora-card-header.js.map +0 -1
- package/dist/components/cards/parts/aurora-card-resource-table.js +0 -210
- package/dist/components/cards/parts/aurora-card-resource-table.js.map +0 -1
- package/dist/components/cards/parts/aurora-card-stat-item.js +0 -69
- package/dist/components/cards/parts/aurora-card-stat-item.js.map +0 -1
- package/dist/components/cards/parts/aurora-card-stats-row.js +0 -56
- package/dist/components/cards/parts/aurora-card-stats-row.js.map +0 -1
- package/dist/components/cards/parts/aurora-card-status-bar.d.ts +0 -15
- package/dist/components/cards/parts/aurora-card-status-bar.d.ts.map +0 -1
- package/dist/components/cards/parts/aurora-card-status-bar.js +0 -87
- package/dist/components/cards/parts/aurora-card-status-bar.js.map +0 -1
- package/dist/styles/aurora-theme.js +0 -43
- package/dist/styles/aurora-theme.js.map +0 -1
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, css } from 'lit';
|
|
8
|
-
import { customElement, property, state } from 'lit/decorators.js';
|
|
9
|
-
let AuroraMoreActions = class AuroraMoreActions extends LitElement {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.open = false;
|
|
13
|
-
this.placement = 'bottom';
|
|
14
|
-
this.disabled = false;
|
|
15
|
-
this.options = [];
|
|
16
|
-
this.title = '';
|
|
17
|
-
this.iconName = '';
|
|
18
|
-
this.openToRight = false;
|
|
19
|
-
this.closeLabel = 'Close';
|
|
20
|
-
this.moreActionsLabel = 'More';
|
|
21
|
-
this._fixedPos = { top: 0, right: 0 };
|
|
22
|
-
this._handleOutsideClick = (e) => {
|
|
23
|
-
if (this.open && !this.contains(e.target)) {
|
|
24
|
-
this.open = false;
|
|
25
|
-
this.dispatchEvent(new CustomEvent('toggled', { detail: { open: false } }));
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
this._handleScroll = () => {
|
|
29
|
-
if (this.open && this.openToRight) {
|
|
30
|
-
this.open = false;
|
|
31
|
-
this.dispatchEvent(new CustomEvent('toggled', { detail: { open: false } }));
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
connectedCallback() {
|
|
36
|
-
super.connectedCallback();
|
|
37
|
-
document.addEventListener('click', this._handleOutsideClick);
|
|
38
|
-
window.addEventListener('scroll', this._handleScroll, true);
|
|
39
|
-
}
|
|
40
|
-
disconnectedCallback() {
|
|
41
|
-
super.disconnectedCallback();
|
|
42
|
-
document.removeEventListener('click', this._handleOutsideClick);
|
|
43
|
-
window.removeEventListener('scroll', this._handleScroll, true);
|
|
44
|
-
}
|
|
45
|
-
_toggle(e) {
|
|
46
|
-
if (this.disabled)
|
|
47
|
-
return;
|
|
48
|
-
e.stopPropagation();
|
|
49
|
-
if (!this.open && this.openToRight) {
|
|
50
|
-
const btn = this.shadowRoot?.querySelector('.trigger');
|
|
51
|
-
if (btn) {
|
|
52
|
-
const rect = btn.getBoundingClientRect();
|
|
53
|
-
this._fixedPos = { top: rect.bottom + 8, right: window.innerWidth - rect.right };
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
this.open = !this.open;
|
|
57
|
-
this.dispatchEvent(new CustomEvent('toggled', { detail: { open: this.open } }));
|
|
58
|
-
}
|
|
59
|
-
_handleSlotClick() {
|
|
60
|
-
this.open = false;
|
|
61
|
-
this.dispatchEvent(new CustomEvent('toggled', { detail: { open: false } }));
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
const placementClass = this.placement === 'top' ? 'dropdown--top' : 'dropdown--bottom';
|
|
65
|
-
const dropdownStyle = this.openToRight
|
|
66
|
-
? `position:fixed;top:${this._fixedPos.top}px;right:${this._fixedPos.right}px;z-index:1000;`
|
|
67
|
-
: '';
|
|
68
|
-
return html `
|
|
69
|
-
<div class="wrapper">
|
|
70
|
-
<button class="trigger" ?disabled=${this.disabled} @click=${this._toggle}>
|
|
71
|
-
${this.iconName
|
|
72
|
-
? html `<axebow-icon iconName=${this.iconName} size="small" iconColor="var(--axebow-tertiary)"></axebow-icon>`
|
|
73
|
-
: this.open ? this.closeLabel : (this.title || this.moreActionsLabel)}
|
|
74
|
-
</button>
|
|
75
|
-
${this.open
|
|
76
|
-
? html `
|
|
77
|
-
<div class="dropdown ${placementClass}" style=${dropdownStyle} @click=${this._handleSlotClick}>
|
|
78
|
-
${this.options?.length
|
|
79
|
-
? this.options.map((opt) => html `
|
|
80
|
-
<button
|
|
81
|
-
class="option-btn"
|
|
82
|
-
@click=${(e) => {
|
|
83
|
-
e.stopPropagation();
|
|
84
|
-
opt.onTap(e);
|
|
85
|
-
this.open = false;
|
|
86
|
-
this.dispatchEvent(new CustomEvent('toggled', { detail: { open: false } }));
|
|
87
|
-
}}
|
|
88
|
-
@mouseenter=${(e) => (e.currentTarget.style.borderColor = `var(--axebow-${opt.type})`)}
|
|
89
|
-
@mouseleave=${(e) => (e.currentTarget.style.borderColor = 'transparent')}
|
|
90
|
-
>
|
|
91
|
-
<axebow-icon iconName=${opt.icon} iconColor="var(--axebow-${opt.type})" size="small"></axebow-icon>
|
|
92
|
-
<p style="color:var(--axebow-${opt.type});">${opt.label}</p>
|
|
93
|
-
</button>
|
|
94
|
-
`)
|
|
95
|
-
: html `<slot></slot>`}
|
|
96
|
-
</div>
|
|
97
|
-
`
|
|
98
|
-
: ''}
|
|
99
|
-
</div>
|
|
100
|
-
`;
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
AuroraMoreActions.styles = css `
|
|
104
|
-
:host { display: inline-block; }
|
|
105
|
-
|
|
106
|
-
.wrapper { position: relative; width: 100%; height: 100%; display: flex; justify-content: flex-end; }
|
|
107
|
-
|
|
108
|
-
.trigger {
|
|
109
|
-
position: relative;
|
|
110
|
-
font-weight: 600;
|
|
111
|
-
font-size: 0.75rem;
|
|
112
|
-
color: var(--axebow-tertiary);
|
|
113
|
-
cursor: pointer;
|
|
114
|
-
padding: 0.25rem 0.5rem;
|
|
115
|
-
height: 100%;
|
|
116
|
-
background: transparent;
|
|
117
|
-
border: none;
|
|
118
|
-
transition: all 0.2s ease;
|
|
119
|
-
display: flex;
|
|
120
|
-
align-items: center;
|
|
121
|
-
}
|
|
122
|
-
.trigger:hover {
|
|
123
|
-
color: var(--axebow-gray);
|
|
124
|
-
background-color: var(--axebow-anti-flash-white);
|
|
125
|
-
border-radius: 8px;
|
|
126
|
-
}
|
|
127
|
-
.trigger:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
|
|
128
|
-
|
|
129
|
-
.dropdown {
|
|
130
|
-
position: absolute;
|
|
131
|
-
right: 0;
|
|
132
|
-
z-index: 10;
|
|
133
|
-
background: white;
|
|
134
|
-
border: 1px solid var(--axebow-gray);
|
|
135
|
-
border-radius: 0.5rem;
|
|
136
|
-
box-shadow: 2px 2px 25px 0px rgba(0,0,0,0.1);
|
|
137
|
-
padding: 0.5rem;
|
|
138
|
-
min-width: 11rem;
|
|
139
|
-
display: flex;
|
|
140
|
-
flex-direction: column;
|
|
141
|
-
}
|
|
142
|
-
.dropdown--bottom { top: 100%; margin-top: 0.5rem; }
|
|
143
|
-
.dropdown--top { bottom: 100%; margin-bottom: 0.5rem; }
|
|
144
|
-
|
|
145
|
-
.option-btn {
|
|
146
|
-
display: flex;
|
|
147
|
-
align-items: center;
|
|
148
|
-
gap: 0.5rem;
|
|
149
|
-
text-align: left;
|
|
150
|
-
padding: 0.25rem 0.5rem;
|
|
151
|
-
cursor: pointer;
|
|
152
|
-
border-radius: 2px;
|
|
153
|
-
border: 1px solid transparent;
|
|
154
|
-
background: transparent;
|
|
155
|
-
width: 100%;
|
|
156
|
-
}
|
|
157
|
-
.option-btn:hover { background-color: #f3f4f6; }
|
|
158
|
-
.option-btn p { margin: 0; white-space: nowrap; }
|
|
159
|
-
`;
|
|
160
|
-
__decorate([
|
|
161
|
-
property({ type: Boolean })
|
|
162
|
-
], AuroraMoreActions.prototype, "open", void 0);
|
|
163
|
-
__decorate([
|
|
164
|
-
property({ type: String })
|
|
165
|
-
], AuroraMoreActions.prototype, "placement", void 0);
|
|
166
|
-
__decorate([
|
|
167
|
-
property({ type: Boolean })
|
|
168
|
-
], AuroraMoreActions.prototype, "disabled", void 0);
|
|
169
|
-
__decorate([
|
|
170
|
-
property({ type: Array })
|
|
171
|
-
], AuroraMoreActions.prototype, "options", void 0);
|
|
172
|
-
__decorate([
|
|
173
|
-
property({ type: String })
|
|
174
|
-
], AuroraMoreActions.prototype, "title", void 0);
|
|
175
|
-
__decorate([
|
|
176
|
-
property({ type: String })
|
|
177
|
-
], AuroraMoreActions.prototype, "iconName", void 0);
|
|
178
|
-
__decorate([
|
|
179
|
-
property({ type: Boolean })
|
|
180
|
-
], AuroraMoreActions.prototype, "openToRight", void 0);
|
|
181
|
-
__decorate([
|
|
182
|
-
property({ type: String })
|
|
183
|
-
], AuroraMoreActions.prototype, "closeLabel", void 0);
|
|
184
|
-
__decorate([
|
|
185
|
-
property({ type: String })
|
|
186
|
-
], AuroraMoreActions.prototype, "moreActionsLabel", void 0);
|
|
187
|
-
__decorate([
|
|
188
|
-
state()
|
|
189
|
-
], AuroraMoreActions.prototype, "_fixedPos", void 0);
|
|
190
|
-
AuroraMoreActions = __decorate([
|
|
191
|
-
customElement('aurora-more-actions')
|
|
192
|
-
], AuroraMoreActions);
|
|
193
|
-
export { AuroraMoreActions };
|
|
194
|
-
//# sourceMappingURL=aurora-more-actions.js.map
|
|
@@ -1 +0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AAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;sDAAqB;AACrB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAAsB;AACrB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2DAA2B;AAErC;IAAhB,KAAK,EAAE;oDAA0C;AArEvC,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CA8J7B"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { TableStatsType, RuntimeFilterRole } from './card.types.js';
|
|
3
|
-
import './parts/aurora-card-resource-table.js';
|
|
4
|
-
export declare class AuroraRuntimeCard extends LitElement {
|
|
5
|
-
static styles: import("lit").CSSResult;
|
|
6
|
-
name: string;
|
|
7
|
-
logo: string;
|
|
8
|
-
revisions: Array<{
|
|
9
|
-
id: string;
|
|
10
|
-
}>;
|
|
11
|
-
displayedRevision: string;
|
|
12
|
-
lastDeployed: string;
|
|
13
|
-
isDeployed: boolean;
|
|
14
|
-
tableStats: TableStatsType[];
|
|
15
|
-
attentionThreshold: number;
|
|
16
|
-
filterOpened: boolean;
|
|
17
|
-
filterDisplayText: string;
|
|
18
|
-
filterRoles: RuntimeFilterRole[];
|
|
19
|
-
showAttention: boolean;
|
|
20
|
-
borderColor: string;
|
|
21
|
-
statusCode: string;
|
|
22
|
-
statusMessage: string;
|
|
23
|
-
isRemoving: boolean;
|
|
24
|
-
deployedLabel: string;
|
|
25
|
-
allLabel: string;
|
|
26
|
-
attentionLabel: string;
|
|
27
|
-
serviceDetailLabel: string;
|
|
28
|
-
manageLabel: string;
|
|
29
|
-
askOwnerLabel: string;
|
|
30
|
-
invalidCredsLabel: string;
|
|
31
|
-
limitReachedLabel: string;
|
|
32
|
-
andLabel: string;
|
|
33
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
34
|
-
private _renderHeader;
|
|
35
|
-
private _renderDeployInfo;
|
|
36
|
-
private _renderTable;
|
|
37
|
-
private _renderFooter;
|
|
38
|
-
private _formatRevision;
|
|
39
|
-
private _onRevisionChange;
|
|
40
|
-
private _onToggleFilter;
|
|
41
|
-
private _onFilterChange;
|
|
42
|
-
private _onServiceDetail;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=aurora-runtime-card.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aurora-runtime-card.d.ts","sourceRoot":"","sources":["../../../src/components/cards/aurora-runtime-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,uCAAuC,CAAC;AAE/C,qBACa,iBAAkB,SAAQ,UAAU;IAC/C,MAAM,CAAC,MAAM,0BAiLX;IAE0B,IAAI,SAAM;IACV,IAAI,SAAM;IACX,SAAS,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAM;IACrC,iBAAiB,SAAM;IACvB,YAAY,SAAM;IACjB,UAAU,UAAS;IACrB,UAAU,EAAE,cAAc,EAAE,CAAM;IACjC,kBAAkB,SAAM;IACvB,YAAY,UAAS;IACtB,iBAAiB,SAAM;IACxB,WAAW,EAAE,iBAAiB,EAAE,CAAM;IACpC,aAAa,UAAS;IACvB,WAAW,SAAM;IACjB,UAAU,SAAM;IAChB,aAAa,SAAM;IAClB,UAAU,UAAS;IAGpB,aAAa,SAAc;IAC3B,QAAQ,SAA2B;IACnC,cAAc,SAAsB;IACpC,kBAAkB,SAAoB;IACtC,WAAW,SAAY;IACvB,aAAa,SAAoB;IACjC,iBAAiB,SAA0B;IAC3C,iBAAiB,SAAoB;IACrC,QAAQ,SAAS;IAE7C,MAAM;IAgBN,OAAO,CAAC,aAAa;IAoBrB,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,YAAY;IAqDpB,OAAO,CAAC,aAAa;IAqBrB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,gBAAgB;CAGzB"}
|
|
@@ -1,427 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, css } from 'lit';
|
|
8
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
-
import './parts/aurora-card-resource-table.js';
|
|
10
|
-
let AuroraRuntimeCard = class AuroraRuntimeCard extends LitElement {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.name = '';
|
|
14
|
-
this.logo = '';
|
|
15
|
-
this.revisions = [];
|
|
16
|
-
this.displayedRevision = '';
|
|
17
|
-
this.lastDeployed = '';
|
|
18
|
-
this.isDeployed = false;
|
|
19
|
-
this.tableStats = [];
|
|
20
|
-
this.attentionThreshold = 90;
|
|
21
|
-
this.filterOpened = false;
|
|
22
|
-
this.filterDisplayText = '';
|
|
23
|
-
this.filterRoles = [];
|
|
24
|
-
this.showAttention = false;
|
|
25
|
-
this.borderColor = '';
|
|
26
|
-
this.statusCode = '';
|
|
27
|
-
this.statusMessage = '';
|
|
28
|
-
this.isRemoving = false;
|
|
29
|
-
// Labels
|
|
30
|
-
this.deployedLabel = 'Deployed';
|
|
31
|
-
this.allLabel = 'All Roles & Instances';
|
|
32
|
-
this.attentionLabel = 'Attention needed';
|
|
33
|
-
this.serviceDetailLabel = 'Service detail';
|
|
34
|
-
this.manageLabel = 'Manage';
|
|
35
|
-
this.askOwnerLabel = 'Ask your owner';
|
|
36
|
-
this.invalidCredsLabel = 'Invalid credentials.';
|
|
37
|
-
this.limitReachedLabel = 'Limit reached.';
|
|
38
|
-
this.andLabel = 'and';
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
return html `
|
|
42
|
-
<div class="${this.isRemoving ? 'card card--removing' : 'card'}" style="border-top-color:${this.borderColor};" ?inert=${this.isRemoving}>
|
|
43
|
-
<div style="display:flex;flex-direction:column;gap:0.5rem;">
|
|
44
|
-
${this._renderHeader()}
|
|
45
|
-
<div style="width:100%;padding-inline:0.5rem;display:flex;flex-direction:column;gap:0.5rem;">
|
|
46
|
-
${this._renderDeployInfo()}
|
|
47
|
-
${this._renderTable()}
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
${this._renderFooter()}
|
|
51
|
-
<slot name="dialogs"></slot>
|
|
52
|
-
</div>
|
|
53
|
-
`;
|
|
54
|
-
}
|
|
55
|
-
_renderHeader() {
|
|
56
|
-
return html `
|
|
57
|
-
<div class="header">
|
|
58
|
-
${this.logo ? html `<div class="logo-wrap"><img src=${this.logo} /></div>` : ''}
|
|
59
|
-
<div class="header-text">
|
|
60
|
-
<div style="display:flex;justify-content:space-between;align-items:center;">
|
|
61
|
-
<span class="header-name">${this.name}</span>
|
|
62
|
-
</div>
|
|
63
|
-
<div class="revision-wrap">
|
|
64
|
-
<sl-select style="width:100%;" value=${this.displayedRevision} @sl-change=${this._onRevisionChange}>
|
|
65
|
-
${this.revisions.map((rev) => html `<sl-option value=${rev.id}>${this._formatRevision(rev.id)}</sl-option>`)}
|
|
66
|
-
</sl-select>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
`;
|
|
71
|
-
}
|
|
72
|
-
_renderDeployInfo() {
|
|
73
|
-
return html `
|
|
74
|
-
<div class="deploy-row">
|
|
75
|
-
<span class="deploy-time"><slot name="time-elapsed"></slot></span>
|
|
76
|
-
${this.isDeployed
|
|
77
|
-
? html `<span class="deployed-badge">${this.deployedLabel}</span>`
|
|
78
|
-
: ''}
|
|
79
|
-
</div>
|
|
80
|
-
`;
|
|
81
|
-
}
|
|
82
|
-
_renderTable() {
|
|
83
|
-
return html `
|
|
84
|
-
<div class="table-wrap">
|
|
85
|
-
<div class="filter-relative">
|
|
86
|
-
<div class="filter-bar" @click=${this._onToggleFilter}>
|
|
87
|
-
<span class="filter-selected">${this.filterDisplayText || this.allLabel}</span>
|
|
88
|
-
<div class="filter-suffix">
|
|
89
|
-
${this.showAttention ? html `<p class="filter-attention">${this.attentionLabel}</p>` : ''}
|
|
90
|
-
<axebow-icon iconName="chevron_right" rotate="90" iconColor="var(--axebow-tertiary)" size="small"></axebow-icon>
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
|
|
94
|
-
<div class="filter-dropdown ${this.filterOpened ? '' : 'hidden'}">
|
|
95
|
-
<p class="filter-option" @click=${() => this._onFilterChange('', 'all')}>${this.allLabel}</p>
|
|
96
|
-
${this.filterRoles.map((role) => html `
|
|
97
|
-
<div class="filter-role" @click=${() => this._onFilterChange(role.name, 'role')}>
|
|
98
|
-
<div class="filter-role-inner">
|
|
99
|
-
${role.logo ? html `<img src=${role.logo} class="role-logo" />` : ''}
|
|
100
|
-
<p>${role.name}</p>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
${role.instances.map((inst) => html `
|
|
104
|
-
<div class="filter-instance" @click=${() => this._onFilterChange(inst.name, 'instance')}>
|
|
105
|
-
<div class="filter-instance-inner">
|
|
106
|
-
<axebow-icon iconName="subdirectory_arrow_right" size="small"></axebow-icon>
|
|
107
|
-
<p>${inst.name}</p>
|
|
108
|
-
</div>
|
|
109
|
-
${inst.needsAttention
|
|
110
|
-
? html `<axebow-icon iconName="warning" iconColor="var(--axebow-error)" size="small"></axebow-icon>`
|
|
111
|
-
: ''}
|
|
112
|
-
</div>
|
|
113
|
-
`)}
|
|
114
|
-
`)}
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
|
|
118
|
-
<aurora-card-resource-table
|
|
119
|
-
.rows=${this.tableStats}
|
|
120
|
-
.attentionThreshold=${this.attentionThreshold}
|
|
121
|
-
.manageLabel=${this.manageLabel}
|
|
122
|
-
.askOwnerLabel=${this.askOwnerLabel}
|
|
123
|
-
.invalidCredsLabel=${this.invalidCredsLabel}
|
|
124
|
-
.limitReachedLabel=${this.limitReachedLabel}
|
|
125
|
-
.andLabel=${this.andLabel}
|
|
126
|
-
></aurora-card-resource-table>
|
|
127
|
-
</div>
|
|
128
|
-
`;
|
|
129
|
-
}
|
|
130
|
-
_renderFooter() {
|
|
131
|
-
return html `
|
|
132
|
-
<div class="footer">
|
|
133
|
-
<div class="status-block">
|
|
134
|
-
${this.borderColor === 'var(--axebow-gray)'
|
|
135
|
-
? html `<sl-spinner style="--indicator-color:${this.borderColor};"></sl-spinner>`
|
|
136
|
-
: ''}
|
|
137
|
-
<p class="status-code" style="color:${this.borderColor};" title=${this.statusCode}>${this.statusCode}</p>
|
|
138
|
-
${this.statusCode
|
|
139
|
-
? html `
|
|
140
|
-
<sl-tooltip content=${this.statusMessage}>
|
|
141
|
-
<axebow-icon class="cursor-pointer" style="flex-shrink:0;" iconColor=${this.borderColor} iconName="info" size="small"></axebow-icon>
|
|
142
|
-
</sl-tooltip>
|
|
143
|
-
`
|
|
144
|
-
: ''}
|
|
145
|
-
</div>
|
|
146
|
-
<axebow-button variant="text" size="medium" @click=${this._onServiceDetail}>${this.serviceDetailLabel}</axebow-button>
|
|
147
|
-
</div>
|
|
148
|
-
`;
|
|
149
|
-
}
|
|
150
|
-
_formatRevision(id) {
|
|
151
|
-
if (!id)
|
|
152
|
-
return '';
|
|
153
|
-
const parts = id.split('/');
|
|
154
|
-
return parts[parts.length - 1] ?? id;
|
|
155
|
-
}
|
|
156
|
-
_onRevisionChange(e) {
|
|
157
|
-
const revision = e.target.value;
|
|
158
|
-
this.dispatchEvent(new CustomEvent('revision-change', { detail: { revision }, bubbles: true, composed: true }));
|
|
159
|
-
}
|
|
160
|
-
_onToggleFilter() {
|
|
161
|
-
this.dispatchEvent(new CustomEvent('toggle-filter', { bubbles: true, composed: true }));
|
|
162
|
-
}
|
|
163
|
-
_onFilterChange(selected, type) {
|
|
164
|
-
this.dispatchEvent(new CustomEvent('filter-change', { detail: { selected, type }, bubbles: true, composed: true }));
|
|
165
|
-
}
|
|
166
|
-
_onServiceDetail() {
|
|
167
|
-
this.dispatchEvent(new CustomEvent('service-detail-click', { bubbles: true, composed: true }));
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
AuroraRuntimeCard.styles = css `
|
|
171
|
-
:host { display: block; width: 380px; height: 417px; max-width: 100%; }
|
|
172
|
-
|
|
173
|
-
.card {
|
|
174
|
-
width: 100%;
|
|
175
|
-
height: 100%;
|
|
176
|
-
background-color: var(--axebow-white);
|
|
177
|
-
border-radius: 0.5rem;
|
|
178
|
-
padding: 0.5rem 0.5rem 1rem;
|
|
179
|
-
display: flex;
|
|
180
|
-
flex-direction: column;
|
|
181
|
-
justify-content: space-between;
|
|
182
|
-
gap: 0.5rem;
|
|
183
|
-
box-sizing: border-box;
|
|
184
|
-
border-top: 4px solid transparent;
|
|
185
|
-
transition: box-shadow 200ms ease-in-out;
|
|
186
|
-
}
|
|
187
|
-
.card:hover { box-shadow: 0 4px 12px 0 rgba(13,24,33,0.08); }
|
|
188
|
-
.card--removing { pointer-events: none; cursor: not-allowed; filter: grayscale(100%); }
|
|
189
|
-
|
|
190
|
-
.header {
|
|
191
|
-
width: 100%;
|
|
192
|
-
background-color: var(--axebow-anti-flash-white);
|
|
193
|
-
border-radius: 0.375rem;
|
|
194
|
-
padding: 0.5rem 0.75rem;
|
|
195
|
-
height: 4rem;
|
|
196
|
-
display: flex;
|
|
197
|
-
align-items: center;
|
|
198
|
-
gap: 0.75rem;
|
|
199
|
-
}
|
|
200
|
-
.logo-wrap { height: 2.5rem; width: 2.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
|
201
|
-
.logo-wrap img { max-height: 100%; max-width: 100%; object-fit: contain; }
|
|
202
|
-
.header-text { display: flex; flex-direction: column; flex: 1; min-width: 0; justify-content: center; }
|
|
203
|
-
.header-name { font-weight: 700; font-size: 1.25rem; color: var(--axebow-primary); line-height: 1.25; }
|
|
204
|
-
|
|
205
|
-
.revision-wrap { font-style: italic; color: var(--axebow-primary); display: flex; align-items: center; }
|
|
206
|
-
|
|
207
|
-
.revision-wrap sl-select {
|
|
208
|
-
--sl-input-background-color: transparent;
|
|
209
|
-
--sl-input-border-color: transparent;
|
|
210
|
-
border: none;
|
|
211
|
-
background: transparent;
|
|
212
|
-
padding: 0;
|
|
213
|
-
margin: 0;
|
|
214
|
-
min-width: 0;
|
|
215
|
-
width: 100% !important;
|
|
216
|
-
}
|
|
217
|
-
.revision-wrap sl-select::part(base) {
|
|
218
|
-
border: none;
|
|
219
|
-
background-color: transparent;
|
|
220
|
-
padding: 0;
|
|
221
|
-
min-width: 0;
|
|
222
|
-
display: inline-block;
|
|
223
|
-
}
|
|
224
|
-
.revision-wrap sl-select::part(display-input) { padding: 0; }
|
|
225
|
-
sl-select::part(combobox) { padding: 0; }
|
|
226
|
-
sl-select::part(display-input) { padding: 0 8px; }
|
|
227
|
-
|
|
228
|
-
.deploy-row {
|
|
229
|
-
display: flex;
|
|
230
|
-
flex-direction: row;
|
|
231
|
-
justify-content: space-between;
|
|
232
|
-
align-items: center;
|
|
233
|
-
min-height: 2.5rem;
|
|
234
|
-
max-height: 2.5rem;
|
|
235
|
-
overflow: hidden;
|
|
236
|
-
}
|
|
237
|
-
.deploy-time { color: var(--axebow-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
238
|
-
.deployed-badge {
|
|
239
|
-
color: var(--axebow-secondary);
|
|
240
|
-
border: 2px solid var(--axebow-secondary);
|
|
241
|
-
border-radius: 0.5rem;
|
|
242
|
-
padding: 0.125rem 0.375rem;
|
|
243
|
-
white-space: nowrap;
|
|
244
|
-
font-size: 0.75rem;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.table-wrap {
|
|
248
|
-
width: 100%;
|
|
249
|
-
border: 1px solid var(--axebow-light-gray);
|
|
250
|
-
border-radius: 0.375rem;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.filter-bar {
|
|
254
|
-
display: flex;
|
|
255
|
-
justify-content: space-between;
|
|
256
|
-
align-items: center;
|
|
257
|
-
border-bottom: 1px solid var(--axebow-light-gray);
|
|
258
|
-
width: 100%;
|
|
259
|
-
padding-inline: 0.5rem;
|
|
260
|
-
cursor: pointer;
|
|
261
|
-
height: 1.75rem;
|
|
262
|
-
}
|
|
263
|
-
.filter-selected { color: var(--axebow-tertiary); }
|
|
264
|
-
.filter-suffix { display: flex; align-items: center; gap: 0.5rem; }
|
|
265
|
-
.filter-attention { color: var(--axebow-error); margin: 0; font-size: 0.75rem; }
|
|
266
|
-
|
|
267
|
-
.filter-dropdown {
|
|
268
|
-
position: absolute;
|
|
269
|
-
top: 100%;
|
|
270
|
-
left: 0;
|
|
271
|
-
right: 0;
|
|
272
|
-
z-index: 1;
|
|
273
|
-
display: flex;
|
|
274
|
-
flex-direction: column;
|
|
275
|
-
background: white;
|
|
276
|
-
border-bottom-left-radius: 0.5rem;
|
|
277
|
-
border-bottom-right-radius: 0.5rem;
|
|
278
|
-
border: 1px solid var(--axebow-light-gray);
|
|
279
|
-
box-shadow: 2px 2px 25px 0px rgba(0,0,0,0.1);
|
|
280
|
-
max-height: 10rem;
|
|
281
|
-
overflow-y: auto;
|
|
282
|
-
}
|
|
283
|
-
.filter-dropdown.hidden { display: none; }
|
|
284
|
-
.filter-option {
|
|
285
|
-
width: 100%;
|
|
286
|
-
padding: 0.5rem;
|
|
287
|
-
cursor: pointer;
|
|
288
|
-
margin: 0;
|
|
289
|
-
}
|
|
290
|
-
.filter-option:hover { background-color: var(--axebow-light-gray); }
|
|
291
|
-
.filter-role {
|
|
292
|
-
width: 100%;
|
|
293
|
-
padding: 0.25rem 0.5rem;
|
|
294
|
-
display: flex;
|
|
295
|
-
justify-content: space-between;
|
|
296
|
-
align-items: center;
|
|
297
|
-
border-top: 1px solid var(--axebow-light-gray);
|
|
298
|
-
cursor: pointer;
|
|
299
|
-
}
|
|
300
|
-
.filter-role:hover { background-color: var(--axebow-light-gray); }
|
|
301
|
-
.filter-role-inner { display: flex; align-items: center; gap: 0.5rem; }
|
|
302
|
-
.role-logo { width: 1.25rem; height: 1.25rem; }
|
|
303
|
-
.filter-instance {
|
|
304
|
-
width: 100%;
|
|
305
|
-
padding: 0.25rem 0.5rem;
|
|
306
|
-
display: flex;
|
|
307
|
-
justify-content: space-between;
|
|
308
|
-
align-items: center;
|
|
309
|
-
border-top: 1px solid var(--axebow-light-gray);
|
|
310
|
-
cursor: pointer;
|
|
311
|
-
padding-left: 1.5rem;
|
|
312
|
-
}
|
|
313
|
-
.filter-instance:hover { background-color: var(--axebow-light-gray); }
|
|
314
|
-
.filter-instance-inner { display: flex; align-items: center; gap: 0.5rem; }
|
|
315
|
-
.filter-relative { position: relative; }
|
|
316
|
-
p { margin: 0; }
|
|
317
|
-
|
|
318
|
-
.footer {
|
|
319
|
-
display: flex;
|
|
320
|
-
justify-content: space-between;
|
|
321
|
-
align-items: center;
|
|
322
|
-
padding-inline: 0.5rem;
|
|
323
|
-
gap: 1rem;
|
|
324
|
-
height: 2.5rem;
|
|
325
|
-
overflow: hidden;
|
|
326
|
-
margin-bottom: 0.25rem;
|
|
327
|
-
}
|
|
328
|
-
.status-block { display: flex; align-items: center; gap: 0.25rem; min-width: 0; flex: 1; }
|
|
329
|
-
.status-code {
|
|
330
|
-
font-weight: 700;
|
|
331
|
-
font-size: 0.75rem;
|
|
332
|
-
margin: 0;
|
|
333
|
-
display: -webkit-box;
|
|
334
|
-
-webkit-line-clamp: 1;
|
|
335
|
-
-webkit-box-orient: vertical;
|
|
336
|
-
overflow: hidden;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
sl-dialog::part(panel) { width: 35vw; min-width: 400px; }
|
|
340
|
-
sl-dialog::part(body) { padding-top: 0; }
|
|
341
|
-
|
|
342
|
-
sl-select sl-option[checked] .revision-ts,
|
|
343
|
-
sl-select sl-option[current] .revision-ts,
|
|
344
|
-
sl-select sl-option[aria-selected="true"] .revision-ts { color: white !important; }
|
|
345
|
-
|
|
346
|
-
sl-tooltip::part(base) { max-width: none; white-space: normal; word-break: break-word; }
|
|
347
|
-
`;
|
|
348
|
-
__decorate([
|
|
349
|
-
property({ type: String })
|
|
350
|
-
], AuroraRuntimeCard.prototype, "name", void 0);
|
|
351
|
-
__decorate([
|
|
352
|
-
property({ type: String })
|
|
353
|
-
], AuroraRuntimeCard.prototype, "logo", void 0);
|
|
354
|
-
__decorate([
|
|
355
|
-
property({ type: Array })
|
|
356
|
-
], AuroraRuntimeCard.prototype, "revisions", void 0);
|
|
357
|
-
__decorate([
|
|
358
|
-
property({ type: String })
|
|
359
|
-
], AuroraRuntimeCard.prototype, "displayedRevision", void 0);
|
|
360
|
-
__decorate([
|
|
361
|
-
property({ type: String })
|
|
362
|
-
], AuroraRuntimeCard.prototype, "lastDeployed", void 0);
|
|
363
|
-
__decorate([
|
|
364
|
-
property({ type: Boolean })
|
|
365
|
-
], AuroraRuntimeCard.prototype, "isDeployed", void 0);
|
|
366
|
-
__decorate([
|
|
367
|
-
property({ type: Array })
|
|
368
|
-
], AuroraRuntimeCard.prototype, "tableStats", void 0);
|
|
369
|
-
__decorate([
|
|
370
|
-
property({ type: Number })
|
|
371
|
-
], AuroraRuntimeCard.prototype, "attentionThreshold", void 0);
|
|
372
|
-
__decorate([
|
|
373
|
-
property({ type: Boolean })
|
|
374
|
-
], AuroraRuntimeCard.prototype, "filterOpened", void 0);
|
|
375
|
-
__decorate([
|
|
376
|
-
property({ type: String })
|
|
377
|
-
], AuroraRuntimeCard.prototype, "filterDisplayText", void 0);
|
|
378
|
-
__decorate([
|
|
379
|
-
property({ type: Array })
|
|
380
|
-
], AuroraRuntimeCard.prototype, "filterRoles", void 0);
|
|
381
|
-
__decorate([
|
|
382
|
-
property({ type: Boolean })
|
|
383
|
-
], AuroraRuntimeCard.prototype, "showAttention", void 0);
|
|
384
|
-
__decorate([
|
|
385
|
-
property({ type: String })
|
|
386
|
-
], AuroraRuntimeCard.prototype, "borderColor", void 0);
|
|
387
|
-
__decorate([
|
|
388
|
-
property({ type: String })
|
|
389
|
-
], AuroraRuntimeCard.prototype, "statusCode", void 0);
|
|
390
|
-
__decorate([
|
|
391
|
-
property({ type: String })
|
|
392
|
-
], AuroraRuntimeCard.prototype, "statusMessage", void 0);
|
|
393
|
-
__decorate([
|
|
394
|
-
property({ type: Boolean })
|
|
395
|
-
], AuroraRuntimeCard.prototype, "isRemoving", void 0);
|
|
396
|
-
__decorate([
|
|
397
|
-
property({ type: String })
|
|
398
|
-
], AuroraRuntimeCard.prototype, "deployedLabel", void 0);
|
|
399
|
-
__decorate([
|
|
400
|
-
property({ type: String })
|
|
401
|
-
], AuroraRuntimeCard.prototype, "allLabel", void 0);
|
|
402
|
-
__decorate([
|
|
403
|
-
property({ type: String })
|
|
404
|
-
], AuroraRuntimeCard.prototype, "attentionLabel", void 0);
|
|
405
|
-
__decorate([
|
|
406
|
-
property({ type: String })
|
|
407
|
-
], AuroraRuntimeCard.prototype, "serviceDetailLabel", void 0);
|
|
408
|
-
__decorate([
|
|
409
|
-
property({ type: String })
|
|
410
|
-
], AuroraRuntimeCard.prototype, "manageLabel", void 0);
|
|
411
|
-
__decorate([
|
|
412
|
-
property({ type: String })
|
|
413
|
-
], AuroraRuntimeCard.prototype, "askOwnerLabel", void 0);
|
|
414
|
-
__decorate([
|
|
415
|
-
property({ type: String })
|
|
416
|
-
], AuroraRuntimeCard.prototype, "invalidCredsLabel", void 0);
|
|
417
|
-
__decorate([
|
|
418
|
-
property({ type: String })
|
|
419
|
-
], AuroraRuntimeCard.prototype, "limitReachedLabel", void 0);
|
|
420
|
-
__decorate([
|
|
421
|
-
property({ type: String })
|
|
422
|
-
], AuroraRuntimeCard.prototype, "andLabel", void 0);
|
|
423
|
-
AuroraRuntimeCard = __decorate([
|
|
424
|
-
customElement('aurora-runtime-card')
|
|
425
|
-
], AuroraRuntimeCard);
|
|
426
|
-
export { AuroraRuntimeCard };
|
|
427
|
-
//# sourceMappingURL=aurora-runtime-card.js.map
|