@kumori/aurora-wui-components 0.0.0 → 0.0.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.
Files changed (61) hide show
  1. package/dist/components/cards/aurora-base-card.d.ts +51 -0
  2. package/dist/components/cards/aurora-base-card.d.ts.map +1 -0
  3. package/dist/components/cards/aurora-base-card.js +299 -0
  4. package/dist/components/cards/aurora-base-card.js.map +1 -0
  5. package/dist/components/cards/aurora-more-actions.d.ts +23 -0
  6. package/dist/components/cards/aurora-more-actions.d.ts.map +1 -0
  7. package/dist/components/cards/aurora-more-actions.js +194 -0
  8. package/dist/components/cards/aurora-more-actions.js.map +1 -0
  9. package/dist/components/cards/aurora-runtime-card.d.ts +44 -0
  10. package/dist/components/cards/aurora-runtime-card.d.ts.map +1 -0
  11. package/dist/components/cards/aurora-runtime-card.js +427 -0
  12. package/dist/components/cards/aurora-runtime-card.js.map +1 -0
  13. package/dist/components/cards/card.types.d.ts +39 -0
  14. package/dist/components/cards/card.types.d.ts.map +1 -0
  15. package/dist/components/cards/card.types.js +2 -0
  16. package/dist/components/cards/card.types.js.map +1 -0
  17. package/dist/components/cards/parts/aurora-card-action-banner.d.ts +8 -0
  18. package/dist/components/cards/parts/aurora-card-action-banner.d.ts.map +1 -0
  19. package/dist/components/cards/parts/aurora-card-action-banner.js +61 -0
  20. package/dist/components/cards/parts/aurora-card-action-banner.js.map +1 -0
  21. package/dist/components/cards/parts/aurora-card-attention-banner.d.ts +20 -0
  22. package/dist/components/cards/parts/aurora-card-attention-banner.d.ts.map +1 -0
  23. package/dist/components/cards/parts/aurora-card-attention-banner.js +111 -0
  24. package/dist/components/cards/parts/aurora-card-attention-banner.js.map +1 -0
  25. package/dist/components/cards/parts/aurora-card-filter-item.d.ts +9 -0
  26. package/dist/components/cards/parts/aurora-card-filter-item.d.ts.map +1 -0
  27. package/dist/components/cards/parts/aurora-card-filter-item.js +53 -0
  28. package/dist/components/cards/parts/aurora-card-filter-item.js.map +1 -0
  29. package/dist/components/cards/parts/aurora-card-filter.d.ts +20 -0
  30. package/dist/components/cards/parts/aurora-card-filter.d.ts.map +1 -0
  31. package/dist/components/cards/parts/aurora-card-filter.js +168 -0
  32. package/dist/components/cards/parts/aurora-card-filter.js.map +1 -0
  33. package/dist/components/cards/parts/aurora-card-header.d.ts +19 -0
  34. package/dist/components/cards/parts/aurora-card-header.d.ts.map +1 -0
  35. package/dist/components/cards/parts/aurora-card-header.js +161 -0
  36. package/dist/components/cards/parts/aurora-card-header.js.map +1 -0
  37. package/dist/components/cards/parts/aurora-card-resource-table.d.ts +22 -0
  38. package/dist/components/cards/parts/aurora-card-resource-table.d.ts.map +1 -0
  39. package/dist/components/cards/parts/aurora-card-resource-table.js +210 -0
  40. package/dist/components/cards/parts/aurora-card-resource-table.js.map +1 -0
  41. package/dist/components/cards/parts/aurora-card-stat-item.d.ts +12 -0
  42. package/dist/components/cards/parts/aurora-card-stat-item.d.ts.map +1 -0
  43. package/dist/components/cards/parts/aurora-card-stat-item.js +69 -0
  44. package/dist/components/cards/parts/aurora-card-stat-item.js.map +1 -0
  45. package/dist/components/cards/parts/aurora-card-stats-row.d.ts +11 -0
  46. package/dist/components/cards/parts/aurora-card-stats-row.d.ts.map +1 -0
  47. package/dist/components/cards/parts/aurora-card-stats-row.js +56 -0
  48. package/dist/components/cards/parts/aurora-card-stats-row.js.map +1 -0
  49. package/dist/components/cards/parts/aurora-card-status-bar.d.ts +15 -0
  50. package/dist/components/cards/parts/aurora-card-status-bar.d.ts.map +1 -0
  51. package/dist/components/cards/parts/aurora-card-status-bar.js +87 -0
  52. package/dist/components/cards/parts/aurora-card-status-bar.js.map +1 -0
  53. package/dist/index.d.ts +14 -0
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +14 -0
  56. package/dist/index.js.map +1 -1
  57. package/dist/styles/aurora-theme.d.ts +8 -0
  58. package/dist/styles/aurora-theme.d.ts.map +1 -0
  59. package/dist/styles/aurora-theme.js +43 -0
  60. package/dist/styles/aurora-theme.js.map +1 -0
  61. package/package.json +3 -2
@@ -0,0 +1,111 @@
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
+ let AuroraCardAttentionBanner = class AuroraCardAttentionBanner extends LitElement {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.cardType = 'account';
13
+ this.tableStats = [];
14
+ this.threshold = 90;
15
+ this.isPlainRole = false;
16
+ this.invalidCredentials = false;
17
+ this.manageLabel = 'Manage';
18
+ this.askOwnerLabel = 'Ask your owner';
19
+ this.invalidCredsLabel = 'Invalid credentials.';
20
+ this.limitReachedLabel = 'Limit reached.';
21
+ this.andLabel = 'and';
22
+ }
23
+ _getExceeded() {
24
+ const primary = this.tableStats.slice(0, 3).map((r) => r.title);
25
+ return this.tableStats.filter((s) => primary.includes(s.title) && s.percentage >= this.threshold).map((s) => s.title);
26
+ }
27
+ _formatList(resources) {
28
+ if (resources.length === 1)
29
+ return resources[0];
30
+ if (resources.length === 2)
31
+ return `${resources[0]} ${this.andLabel} ${resources[1]}`;
32
+ return `${resources.slice(0, -1).join(', ')} ${this.andLabel} ${resources[resources.length - 1]}`;
33
+ }
34
+ render() {
35
+ const exceeded = this._getExceeded();
36
+ if (exceeded.length === 0 && !this.invalidCredentials)
37
+ return html ``;
38
+ return html `
39
+ <div class="banner">
40
+ ${this.isPlainRole
41
+ ? html `<span class="ask">${this.askOwnerLabel}</span>`
42
+ : html `
43
+ <p>
44
+ ${this.invalidCredentials
45
+ ? this.invalidCredsLabel
46
+ : `${this.limitReachedLabel} ${this._formatList(exceeded)}.`}
47
+ <span class="manage" @click=${this._onManage}>
48
+ ${this.manageLabel}
49
+ <axebow-icon iconName="arrow_forward" iconColor="var(--axebow-error)" size="small"></axebow-icon>
50
+ </span>
51
+ </p>
52
+ `}
53
+ </div>
54
+ `;
55
+ }
56
+ _onManage() {
57
+ this.dispatchEvent(new CustomEvent('manage-click', { bubbles: true, composed: true }));
58
+ }
59
+ };
60
+ AuroraCardAttentionBanner.styles = css `
61
+ :host { display: block; }
62
+ .banner {
63
+ background-color: color-mix(in srgb, var(--axebow-error) 10%, white);
64
+ display: flex;
65
+ flex-wrap: wrap;
66
+ align-items: center;
67
+ justify-content: center;
68
+ gap: 0.25rem;
69
+ width: 100%;
70
+ padding-inline: 0.25rem;
71
+ text-align: center;
72
+ }
73
+ p { color: var(--axebow-error); margin: 0; }
74
+ span.ask { color: var(--axebow-error); }
75
+ span.manage { color: var(--axebow-error); cursor: pointer; }
76
+ `;
77
+ __decorate([
78
+ property({ type: String })
79
+ ], AuroraCardAttentionBanner.prototype, "cardType", void 0);
80
+ __decorate([
81
+ property({ type: Array })
82
+ ], AuroraCardAttentionBanner.prototype, "tableStats", void 0);
83
+ __decorate([
84
+ property({ type: Number })
85
+ ], AuroraCardAttentionBanner.prototype, "threshold", void 0);
86
+ __decorate([
87
+ property({ type: Boolean })
88
+ ], AuroraCardAttentionBanner.prototype, "isPlainRole", void 0);
89
+ __decorate([
90
+ property({ type: Boolean })
91
+ ], AuroraCardAttentionBanner.prototype, "invalidCredentials", void 0);
92
+ __decorate([
93
+ property({ type: String })
94
+ ], AuroraCardAttentionBanner.prototype, "manageLabel", void 0);
95
+ __decorate([
96
+ property({ type: String })
97
+ ], AuroraCardAttentionBanner.prototype, "askOwnerLabel", void 0);
98
+ __decorate([
99
+ property({ type: String })
100
+ ], AuroraCardAttentionBanner.prototype, "invalidCredsLabel", void 0);
101
+ __decorate([
102
+ property({ type: String })
103
+ ], AuroraCardAttentionBanner.prototype, "limitReachedLabel", void 0);
104
+ __decorate([
105
+ property({ type: String })
106
+ ], AuroraCardAttentionBanner.prototype, "andLabel", void 0);
107
+ AuroraCardAttentionBanner = __decorate([
108
+ customElement('aurora-card-attention-banner')
109
+ ], AuroraCardAttentionBanner);
110
+ export { AuroraCardAttentionBanner };
111
+ //# sourceMappingURL=aurora-card-attention-banner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aurora-card-attention-banner.js","sourceRoot":"","sources":["../../../../src/components/cards/parts/aurora-card-attention-banner.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAIrD,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,UAAU;IAAlD;;QAmBuB,aAAQ,GAAyC,SAAS,CAAC;QAC5D,eAAU,GAAqB,EAAE,CAAC;QACjC,cAAS,GAAG,EAAE,CAAC;QACd,gBAAW,GAAG,KAAK,CAAC;QACpB,uBAAkB,GAAG,KAAK,CAAC;QAC5B,gBAAW,GAAG,QAAQ,CAAC;QACvB,kBAAa,GAAG,gBAAgB,CAAC;QACjC,sBAAiB,GAAG,sBAAsB,CAAC;QAC3C,sBAAiB,GAAG,gBAAgB,CAAC;QACrC,aAAQ,GAAG,KAAK,CAAC;IAuC/C,CAAC;IArCS,YAAY;QAClB,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC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C,aAAa,CAAC,IAAI,WAAW,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACzF,CAAC;;AAjEM,gCAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;GAgBlB,AAhBY,CAgBX;AAE0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2DAA4D;AAC5D;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;6DAAmC;AACjC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4DAAgB;AACd;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;8DAAqB;AACpB;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;qEAA4B;AAC5B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8DAAwB;AACvB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gEAAkC;AACjC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oEAA4C;AAC3C;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oEAAsC;AACrC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2DAAkB;AA5BlC,yBAAyB;IADrC,aAAa,CAAC,8BAA8B,CAAC;GACjC,yBAAyB,CAmErC"}
@@ -0,0 +1,9 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class AuroraCardFilterItem extends LitElement {
3
+ static styles: import("lit").CSSResult;
4
+ name: string;
5
+ showAttention: boolean;
6
+ render(): import("lit-html").TemplateResult<1>;
7
+ private _onClick;
8
+ }
9
+ //# sourceMappingURL=aurora-card-filter-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aurora-card-filter-item.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/aurora-card-filter-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,qBACa,oBAAqB,SAAQ,UAAU;IAClD,MAAM,CAAC,MAAM,0BAaX;IAE0B,IAAI,SAAM;IACT,aAAa,UAAS;IAEnD,MAAM;IAWN,OAAO,CAAC,QAAQ;CAKjB"}
@@ -0,0 +1,53 @@
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
+ let AuroraCardFilterItem = class AuroraCardFilterItem extends LitElement {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.name = '';
13
+ this.showAttention = false;
14
+ }
15
+ render() {
16
+ return html `
17
+ <div class="item" @click=${this._onClick}>
18
+ <p>${this.name}</p>
19
+ ${this.showAttention
20
+ ? html `<axebow-icon iconName="error" size="small" iconColor="var(--axebow-error)"></axebow-icon>`
21
+ : ''}
22
+ </div>
23
+ `;
24
+ }
25
+ _onClick() {
26
+ this.dispatchEvent(new CustomEvent('item-select', { detail: { name: this.name }, bubbles: true, composed: true }));
27
+ }
28
+ };
29
+ AuroraCardFilterItem.styles = css `
30
+ :host { display: block; }
31
+ .item {
32
+ width: 100%;
33
+ padding: 0.25rem 0.5rem;
34
+ display: flex;
35
+ justify-content: space-between;
36
+ align-items: center;
37
+ border-top: 1px solid var(--axebow-light-gray);
38
+ cursor: pointer;
39
+ }
40
+ .item:hover { background-color: var(--axebow-light-gray); }
41
+ p { margin: 0; }
42
+ `;
43
+ __decorate([
44
+ property({ type: String })
45
+ ], AuroraCardFilterItem.prototype, "name", void 0);
46
+ __decorate([
47
+ property({ type: Boolean })
48
+ ], AuroraCardFilterItem.prototype, "showAttention", void 0);
49
+ AuroraCardFilterItem = __decorate([
50
+ customElement('aurora-card-filter-item')
51
+ ], AuroraCardFilterItem);
52
+ export { AuroraCardFilterItem };
53
+ //# sourceMappingURL=aurora-card-filter-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aurora-card-filter-item.js","sourceRoot":"","sources":["../../../../src/components/cards/parts/aurora-card-filter-item.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGrD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,UAAU;IAA7C;;QAgBuB,SAAI,GAAG,EAAE,CAAC;QACT,kBAAa,GAAG,KAAK,CAAC;IAkBrD,CAAC;IAhBC,MAAM;QACJ,OAAO,IAAI,CAAA;iCACkB,IAAI,CAAC,QAAQ;aACjC,IAAI,CAAC,IAAI;UACZ,IAAI,CAAC,aAAa;YAClB,CAAC,CAAC,IAAI,CAAA,2FAA2F;YACjG,CAAC,CAAC,EAAE;;KAET,CAAC;IACJ,CAAC;IAEO,QAAQ;QACd,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAC/F,CAAC;IACJ,CAAC;;AAjCM,2BAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;GAalB,AAbY,CAaX;AAE0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAW;AACT;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;2DAAuB;AAjBxC,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CAmChC"}
@@ -0,0 +1,20 @@
1
+ import { LitElement } from 'lit';
2
+ import { CardFilterItem } from '../card.types.js';
3
+ import './aurora-card-filter-item.js';
4
+ export declare class AuroraCardFilter extends LitElement {
5
+ static styles: import("lit").CSSResult;
6
+ items: CardFilterItem[];
7
+ selected: string | null;
8
+ emptyLabel: string;
9
+ emptyActionLabel: string;
10
+ attentionLabel: string;
11
+ showAttention: boolean;
12
+ opened: boolean;
13
+ isPlainRole: boolean;
14
+ isDisabled: boolean;
15
+ render(): import("lit-html").TemplateResult<1>;
16
+ private _onToggle;
17
+ private _onSelect;
18
+ private _onEmptyAction;
19
+ }
20
+ //# sourceMappingURL=aurora-card-filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aurora-card-filter.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/aurora-card-filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,8BAA8B,CAAC;AAEtC,qBACa,gBAAiB,SAAQ,UAAU;IAC9C,MAAM,CAAC,MAAM,0BA4DX;IAEyB,KAAK,EAAE,cAAc,EAAE,CAAM;IAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC/B,UAAU,SAAM;IAChB,gBAAgB,SAAM;IACtB,cAAc,SAAsB;IACnC,aAAa,UAAS;IACtB,MAAM,UAAS;IACf,WAAW,UAAS;IACpB,UAAU,UAAS;IAEhD,MAAM;IA+CN,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,cAAc;CAGvB"}
@@ -0,0 +1,168 @@
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 './aurora-card-filter-item.js';
10
+ let AuroraCardFilter = class AuroraCardFilter extends LitElement {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.items = [];
14
+ this.selected = null;
15
+ this.emptyLabel = '';
16
+ this.emptyActionLabel = '';
17
+ this.attentionLabel = 'Attention needed';
18
+ this.showAttention = false;
19
+ this.opened = false;
20
+ this.isPlainRole = false;
21
+ this.isDisabled = false;
22
+ }
23
+ render() {
24
+ const showEmpty = !this.selected && this.items.length === 0;
25
+ return html `
26
+ <div class="root">
27
+ <div class="trigger-row">
28
+ ${showEmpty
29
+ ? html `
30
+ <p
31
+ class="empty-action ${this.isPlainRole || this.isDisabled ? 'empty-action--disabled' : ''}"
32
+ @click=${this.isPlainRole || this.isDisabled ? undefined : this._onEmptyAction}
33
+ >
34
+ ${this.emptyActionLabel}
35
+ </p>
36
+ `
37
+ : html `
38
+ <div
39
+ class="selected-row ${this.isDisabled ? 'selected-row--disabled' : ''}"
40
+ @click=${this.isDisabled ? undefined : this._onToggle}
41
+ >
42
+ <span class="selected-text">${this.selected ?? this.emptyLabel}</span>
43
+ <div class="suffix">
44
+ ${this.showAttention
45
+ ? html `<p class="attention-text">${this.attentionLabel}</p>`
46
+ : ''}
47
+ <axebow-icon iconName="chevron_right" rotate="90" iconColor="var(--axebow-tertiary)" size="small"></axebow-icon>
48
+ </div>
49
+ </div>
50
+ `}
51
+ </div>
52
+
53
+ <div class="dropdown ${this.opened ? '' : 'hidden'}">
54
+ <p class="all-option" @click=${() => this._onSelect(null)}>${this.emptyLabel}</p>
55
+ ${this.items.map((item) => html `
56
+ <aurora-card-filter-item
57
+ .name=${item.name}
58
+ .showAttention=${item.showAttention}
59
+ @item-select=${(e) => this._onSelect(e.detail.name)}
60
+ ></aurora-card-filter-item>
61
+ `)}
62
+ </div>
63
+ </div>
64
+ `;
65
+ }
66
+ _onToggle() {
67
+ this.dispatchEvent(new CustomEvent('toggle-open', { bubbles: true, composed: true }));
68
+ }
69
+ _onSelect(name) {
70
+ this.dispatchEvent(new CustomEvent('filter-select', { detail: { name }, bubbles: true, composed: true }));
71
+ }
72
+ _onEmptyAction() {
73
+ this.dispatchEvent(new CustomEvent('empty-action-click', { bubbles: true, composed: true }));
74
+ }
75
+ };
76
+ AuroraCardFilter.styles = css `
77
+ :host { display: block; }
78
+ .root { position: relative; }
79
+
80
+ .trigger-row {
81
+ display: flex;
82
+ justify-content: space-between;
83
+ align-items: center;
84
+ border-bottom: 1px solid var(--axebow-light-gray);
85
+ width: 100%;
86
+ padding-inline: 0.5rem;
87
+ cursor: pointer;
88
+ height: 1.75rem;
89
+ }
90
+
91
+ .empty-action {
92
+ color: var(--axebow-tertiary);
93
+ cursor: pointer;
94
+ margin: 0;
95
+ }
96
+ .empty-action--disabled { color: var(--axebow-gray); cursor: default; opacity: 0.5; }
97
+
98
+ .selected-row {
99
+ display: flex;
100
+ width: 100%;
101
+ justify-content: space-between;
102
+ align-items: center;
103
+ }
104
+ .selected-row--disabled { opacity: 0.5; cursor: not-allowed; }
105
+
106
+ .selected-text { color: var(--axebow-tertiary); }
107
+
108
+ .suffix { display: flex; align-items: center; gap: 0.5rem; }
109
+ .attention-text { color: var(--axebow-error); margin: 0; font-size: 0.75rem; }
110
+
111
+ .dropdown {
112
+ position: absolute;
113
+ top: 100%;
114
+ left: 0;
115
+ right: 0;
116
+ z-index: 1;
117
+ display: flex;
118
+ flex-direction: column;
119
+ background: white;
120
+ border-bottom-left-radius: 0.5rem;
121
+ border-bottom-right-radius: 0.5rem;
122
+ border: 1px solid var(--axebow-light-gray);
123
+ box-shadow: 2px 2px 25px 0px rgba(0,0,0,0.1);
124
+ max-height: 10rem;
125
+ overflow-y: auto;
126
+ }
127
+ .dropdown.hidden { display: none; }
128
+
129
+ .all-option {
130
+ width: 100%;
131
+ padding: 0.5rem;
132
+ cursor: pointer;
133
+ margin: 0;
134
+ }
135
+ .all-option:hover { background-color: var(--axebow-light-gray); }
136
+ `;
137
+ __decorate([
138
+ property({ type: Array })
139
+ ], AuroraCardFilter.prototype, "items", void 0);
140
+ __decorate([
141
+ property({ type: String })
142
+ ], AuroraCardFilter.prototype, "selected", void 0);
143
+ __decorate([
144
+ property({ type: String })
145
+ ], AuroraCardFilter.prototype, "emptyLabel", void 0);
146
+ __decorate([
147
+ property({ type: String })
148
+ ], AuroraCardFilter.prototype, "emptyActionLabel", void 0);
149
+ __decorate([
150
+ property({ type: String })
151
+ ], AuroraCardFilter.prototype, "attentionLabel", void 0);
152
+ __decorate([
153
+ property({ type: Boolean })
154
+ ], AuroraCardFilter.prototype, "showAttention", void 0);
155
+ __decorate([
156
+ property({ type: Boolean })
157
+ ], AuroraCardFilter.prototype, "opened", void 0);
158
+ __decorate([
159
+ property({ type: Boolean })
160
+ ], AuroraCardFilter.prototype, "isPlainRole", void 0);
161
+ __decorate([
162
+ property({ type: Boolean })
163
+ ], AuroraCardFilter.prototype, "isDisabled", void 0);
164
+ AuroraCardFilter = __decorate([
165
+ customElement('aurora-card-filter')
166
+ ], AuroraCardFilter);
167
+ export { AuroraCardFilter };
168
+ //# sourceMappingURL=aurora-card-filter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aurora-card-filter.js","sourceRoot":"","sources":["../../../../src/components/cards/parts/aurora-card-filter.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,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AAK,EAAE,CAAC;+CAA8B;AAC5B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAgC;AAC/B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oDAAiB;AAChB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0DAAuB;AACtB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAAqC;AACnC;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uDAAuB;AACtB;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gDAAgB;AACf;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;qDAAqB;AACpB;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;oDAAoB;AAvErC,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAmI5B"}
@@ -0,0 +1,19 @@
1
+ import { LitElement } from 'lit';
2
+ import { CardBadge } from '../card.types.js';
3
+ export declare class AuroraCardHeader extends LitElement {
4
+ static styles: import("lit").CSSResult;
5
+ logoSrc: string | null;
6
+ tenantOrAccount: string;
7
+ name: string;
8
+ badge: CardBadge;
9
+ subtitle: string;
10
+ cardType: 'account' | 'environment' | 'tenant';
11
+ freeIaasLabel: string;
12
+ freeIaasTitle: string;
13
+ freeIaasDesc: string;
14
+ haLabel: string;
15
+ haTitle: string;
16
+ private _renderBadge;
17
+ render(): import("lit-html").TemplateResult<1>;
18
+ }
19
+ //# sourceMappingURL=aurora-card-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aurora-card-header.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/aurora-card-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,gBAAiB,SAAQ,UAAU;IAC9C,MAAM,CAAC,MAAM,0BAgCX;IAE0B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,eAAe,SAAM;IACrB,IAAI,SAAM;IACV,KAAK,EAAE,SAAS,CAAU;IAC1B,QAAQ,SAAM;IACd,QAAQ,EAAE,SAAS,GAAG,aAAa,GAAG,QAAQ,CAAa;IAC3D,aAAa,SAAe;IAC5B,aAAa,SAAyB;IACtC,YAAY,SAAgD;IAC5D,OAAO,SAAsB;IAC7B,OAAO,SAA+B;IAElE,OAAO,CAAC,YAAY;IAyBpB,MAAM;CA4CP"}
@@ -0,0 +1,161 @@
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
+ let AuroraCardHeader = class AuroraCardHeader extends LitElement {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.logoSrc = null;
13
+ this.tenantOrAccount = '';
14
+ this.name = '';
15
+ this.badge = 'none';
16
+ this.subtitle = '';
17
+ this.cardType = 'account';
18
+ this.freeIaasLabel = 'Free IaaS';
19
+ this.freeIaasTitle = 'Free Infrastructure';
20
+ this.freeIaasDesc = 'This environment uses free infrastructure.';
21
+ this.haLabel = 'Highly Available';
22
+ this.haTitle = 'High Availability enabled';
23
+ }
24
+ _renderBadge() {
25
+ if (this.badge === 'free-iaas') {
26
+ return html `
27
+ <sl-tooltip>
28
+ <div slot="content" style="max-width:300px;">
29
+ <strong>${this.freeIaasTitle}</strong>
30
+ <p style="margin-top:0.5rem;">${this.freeIaasDesc}</p>
31
+ </div>
32
+ <div class="badge-free">
33
+ <axebow-icon iconName="info" iconColor="var(--axebow-gray)" size="small"></axebow-icon>
34
+ <span>${this.freeIaasLabel}</span>
35
+ </div>
36
+ </sl-tooltip>
37
+ `;
38
+ }
39
+ if (this.badge === 'ha') {
40
+ return html `
41
+ <sl-tooltip content=${this.haTitle}>
42
+ <sl-badge variant="neutral" pill size="small" style="cursor:pointer;">${this.haLabel}</sl-badge>
43
+ </sl-tooltip>
44
+ `;
45
+ }
46
+ return html ``;
47
+ }
48
+ render() {
49
+ const isAccount = this.cardType === 'account';
50
+ const isTenant = this.cardType === 'tenant';
51
+ if (isAccount) {
52
+ return html `
53
+ <div class="header header--account">
54
+ ${this.logoSrc ? html `<div class="logo-wrap"><img src=${this.logoSrc} /></div>` : ''}
55
+ <div class="text-block">
56
+ ${this.tenantOrAccount ? html `<span class="supertitle">${this.tenantOrAccount}</span>` : ''}
57
+ <div class="name-row">
58
+ <span class="name">${this.name}</span>
59
+ ${this._renderBadge()}
60
+ </div>
61
+ ${this.subtitle
62
+ ? html `<div class="subtitle-row">${this.subtitle}<slot name="subtitle-tooltip"></slot></div>`
63
+ : ''}
64
+ </div>
65
+ </div>
66
+ `;
67
+ }
68
+ return html `
69
+ <div class="header header--env-tenant">
70
+ <div class="text-block">
71
+ ${this.tenantOrAccount || this.logoSrc
72
+ ? html `
73
+ <div class="supertitle-row">
74
+ ${this.logoSrc ? html `<div class="logo-wrap--small"><img src=${this.logoSrc} /></div>` : ''}
75
+ <span class="supertitle ${isTenant ? 'supertitle--gray' : ''}">${this.tenantOrAccount}</span>
76
+ </div>
77
+ `
78
+ : ''}
79
+ <div class="name-row">
80
+ <span class="name">${this.name}</span>
81
+ ${this._renderBadge()}
82
+ </div>
83
+ ${this.subtitle
84
+ ? html `<div class="subtitle-row">${this.subtitle}<slot name="subtitle-tooltip"></slot></div>`
85
+ : ''}
86
+ </div>
87
+ </div>
88
+ `;
89
+ }
90
+ };
91
+ AuroraCardHeader.styles = css `
92
+ :host { display: block; }
93
+
94
+ .header {
95
+ width: 100%;
96
+ background-color: var(--axebow-anti-flash-white);
97
+ border-radius: 0.375rem;
98
+ display: flex;
99
+ align-items: center;
100
+ gap: 0.75rem;
101
+ }
102
+ .header--account { padding: 0.5rem 0.75rem; height: 4rem; }
103
+ .header--env-tenant { padding: 0.75rem 1.25rem; height: 4.5rem; flex-direction: column; justify-content: center; align-items: flex-start; }
104
+
105
+ .logo-wrap { height: 2.5rem; width: 2.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
106
+ .logo-wrap--small { height: 1rem; width: 1rem; }
107
+ .logo-wrap img { max-height: 100%; max-width: 100%; object-fit: contain; }
108
+
109
+ .text-block { display: flex; flex-direction: column; flex: 1; min-width: 0; }
110
+
111
+ .supertitle { font-weight: 600; color: var(--axebow-primary); line-height: 1; }
112
+ .supertitle--gray { color: var(--axebow-gray); }
113
+
114
+ .name-row { display: flex; justify-content: space-between; align-items: center; }
115
+ .name { font-weight: 700; font-size: 1.25rem; color: var(--axebow-primary); line-height: 1.25; padding-top: 0.125rem; }
116
+
117
+ .subtitle-row { font-style: italic; color: var(--axebow-primary); display: flex; align-items: center; line-height: 1; }
118
+
119
+ .supertitle-row { display: flex; gap: 0.5rem; align-items: center; line-height: 1; margin-top: 0.25rem; }
120
+
121
+ .badge-free { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
122
+ .badge-free span { color: var(--axebow-rich-black); }
123
+ `;
124
+ __decorate([
125
+ property({ type: String })
126
+ ], AuroraCardHeader.prototype, "logoSrc", void 0);
127
+ __decorate([
128
+ property({ type: String })
129
+ ], AuroraCardHeader.prototype, "tenantOrAccount", void 0);
130
+ __decorate([
131
+ property({ type: String })
132
+ ], AuroraCardHeader.prototype, "name", void 0);
133
+ __decorate([
134
+ property({ type: String })
135
+ ], AuroraCardHeader.prototype, "badge", void 0);
136
+ __decorate([
137
+ property({ type: String })
138
+ ], AuroraCardHeader.prototype, "subtitle", void 0);
139
+ __decorate([
140
+ property({ type: String })
141
+ ], AuroraCardHeader.prototype, "cardType", void 0);
142
+ __decorate([
143
+ property({ type: String })
144
+ ], AuroraCardHeader.prototype, "freeIaasLabel", void 0);
145
+ __decorate([
146
+ property({ type: String })
147
+ ], AuroraCardHeader.prototype, "freeIaasTitle", void 0);
148
+ __decorate([
149
+ property({ type: String })
150
+ ], AuroraCardHeader.prototype, "freeIaasDesc", void 0);
151
+ __decorate([
152
+ property({ type: String })
153
+ ], AuroraCardHeader.prototype, "haLabel", void 0);
154
+ __decorate([
155
+ property({ type: String })
156
+ ], AuroraCardHeader.prototype, "haTitle", void 0);
157
+ AuroraCardHeader = __decorate([
158
+ customElement('aurora-card-header')
159
+ ], AuroraCardHeader);
160
+ export { AuroraCardHeader };
161
+ //# sourceMappingURL=aurora-card-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aurora-card-header.js","sourceRoot":"","sources":["../../../../src/components/cards/parts/aurora-card-header.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAIrD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QAmCuB,YAAO,GAAkB,IAAI,CAAC;QAC9B,oBAAe,GAAG,EAAE,CAAC;QACrB,SAAI,GAAG,EAAE,CAAC;QACV,UAAK,GAAc,MAAM,CAAC;QAC1B,aAAQ,GAAG,EAAE,CAAC;QACd,aAAQ,GAAyC,SAAS,CAAC;QAC3D,kBAAa,GAAG,WAAW,CAAC;QAC5B,kBAAa,GAAG,qBAAqB,CAAC;QACtC,iBAAY,GAAG,4CAA4C,CAAC;Q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,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAAuC;AA7CvD,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAoH5B"}
@@ -0,0 +1,22 @@
1
+ import { LitElement } from 'lit';
2
+ import { TableStatsType } from '../card.types.js';
3
+ import './aurora-card-attention-banner.js';
4
+ import './aurora-card-action-banner.js';
5
+ export declare class AuroraCardResourceTable extends LitElement {
6
+ static styles: import("lit").CSSResult;
7
+ rows: TableStatsType[];
8
+ attentionThreshold: number;
9
+ cardType: 'account' | 'environment' | 'tenant';
10
+ isPlainRole: boolean;
11
+ showActionBanner: boolean;
12
+ showWarningBanner: boolean;
13
+ manageLabel: string;
14
+ askOwnerLabel: string;
15
+ invalidCredsLabel: string;
16
+ limitReachedLabel: string;
17
+ andLabel: string;
18
+ actionBannerLabel: string;
19
+ private _hasAttention;
20
+ render(): import("lit-html").TemplateResult<1>;
21
+ }
22
+ //# sourceMappingURL=aurora-card-resource-table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aurora-card-resource-table.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/aurora-card-resource-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,gCAAgC,CAAC;AAExC,qBACa,uBAAwB,SAAQ,UAAU;IACrD,MAAM,CAAC,MAAM,0BA+CX;IAEyB,IAAI,EAAE,cAAc,EAAE,CAAM;IAC3B,kBAAkB,SAAM;IACxB,QAAQ,EAAE,SAAS,GAAG,aAAa,GAAG,QAAQ,CAAa;IAC1D,WAAW,UAAS;IACpB,gBAAgB,UAAS;IACzB,iBAAiB,UAAS;IAC3B,WAAW,SAAY;IACvB,aAAa,SAAoB;IACjC,iBAAiB,SAA0B;IAC3C,iBAAiB,SAAoB;IACrC,QAAQ,SAAS;IACjB,iBAAiB,SAAM;IAEnD,OAAO,CAAC,aAAa;IAKrB,MAAM;CA2FP"}