@kumori/aurora-wui-components 0.0.269-dev4124.12 → 0.0.269-dev4124.13
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-deploy-summary/axebow-deploy-summary.d.ts.map +1 -1
- package/dist/components/axebow-summary/axebow-resource-bar.d.ts +9 -0
- package/dist/components/axebow-summary/axebow-resource-bar.d.ts.map +1 -1
- package/dist/index.js +65 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-deploy-summary.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-deploy-summary/axebow-deploy-summary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAIvE,OAAO,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EACV,iBAAiB,EACjB,2BAA2B,EAC3B,+BAA+B,EAC/B,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EAEzB,8BAA8B,EAE/B,MAAM,mCAAmC,CAAC;AAE3C;;;;;;;;;;GAUG;AACH,qBACa,mBAAoB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,4BAyBX;IAE0B,YAAY,SAAM;IACjB,kBAAkB,UAAS;IAC5B,aAAa,SAAM;IAEf,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,cAAc,CAAC,EAAE,2BAA2B,CAAC;IAE7C,cAAc,CAAC,EAAE,+BAA+B,CAAC;IACjD,SAAS,CAAC,EAAE,0BAA0B,CAAC;IACvC,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC,aAAa,CAAC,EAAE,8BAA8B,CAAC;IAE/E,iGAAiG;IACrE,WAAW,SAAK;IAE5C,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,cAAc;IAUnD,OAAO,CAAC,eAAe;IAcvB,MAAM;IA4BN,OAAO,CAAC,qBAAqB;IA4B7B,OAAO,CAAC,qBAAqB;
|
|
1
|
+
{"version":3,"file":"axebow-deploy-summary.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-deploy-summary/axebow-deploy-summary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAIvE,OAAO,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EACV,iBAAiB,EACjB,2BAA2B,EAC3B,+BAA+B,EAC/B,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EAEzB,8BAA8B,EAE/B,MAAM,mCAAmC,CAAC;AAE3C;;;;;;;;;;GAUG;AACH,qBACa,mBAAoB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,4BAyBX;IAE0B,YAAY,SAAM;IACjB,kBAAkB,UAAS;IAC5B,aAAa,SAAM;IAEf,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,cAAc,CAAC,EAAE,2BAA2B,CAAC;IAE7C,cAAc,CAAC,EAAE,+BAA+B,CAAC;IACjD,SAAS,CAAC,EAAE,0BAA0B,CAAC;IACvC,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC,aAAa,CAAC,EAAE,8BAA8B,CAAC;IAE/E,iGAAiG;IACrE,WAAW,SAAK;IAE5C,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,cAAc;IAUnD,OAAO,CAAC,eAAe;IAcvB,MAAM;IA4BN,OAAO,CAAC,qBAAqB;IA4B7B,OAAO,CAAC,qBAAqB;IA2C7B,yEAAyE;IACzE,OAAO,CAAC,MAAM;IASd,OAAO,CAAC,yBAAyB;IAwCjC,OAAO,CAAC,sBAAsB;IAqB9B,OAAO,CAAC,oBAAoB;IAwB5B,OAAO,CAAC,kBAAkB;IAuB1B,OAAO,CAAC,sBAAsB;IAmB9B,OAAO,CAAC,mBAAmB;IAyC3B,OAAO,CAAC,mBAAmB;IAmC3B,OAAO,CAAC,oBAAoB;IAiB5B,OAAO,CAAC,wBAAwB;IAsChC,OAAO,CAAC,qBAAqB;CAG9B"}
|
|
@@ -7,6 +7,15 @@ export declare class AxebowResourceBar extends LitElement {
|
|
|
7
7
|
limit: number;
|
|
8
8
|
percentage: number;
|
|
9
9
|
rotate: string;
|
|
10
|
+
iconSize: string;
|
|
11
|
+
iconBoxSize?: string;
|
|
12
|
+
fixedWidth?: string;
|
|
13
|
+
fixedHeight?: string;
|
|
14
|
+
valuesWidth?: string;
|
|
15
|
+
valuesHeight?: string;
|
|
16
|
+
barWidth?: string;
|
|
17
|
+
barHeight?: string;
|
|
18
|
+
private _renderIcon;
|
|
10
19
|
render(): import('lit-html').TemplateResult<1>;
|
|
11
20
|
}
|
|
12
21
|
//# sourceMappingURL=axebow-resource-bar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-resource-bar.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-summary/axebow-resource-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"axebow-resource-bar.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-summary/axebow-resource-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAIvD,OAAO,+BAA+B,CAAC;AAEvC,qBACa,iBAAkB,SAAQ,UAAU;IAC/C,MAAM,CAAC,MAAM,4BAQX;IAE0B,IAAI,SAAM;IACV,KAAK,SAAM;IACX,OAAO,SAAK;IACZ,KAAK,SAAK;IACV,UAAU,SAAK;IACf,MAAM,SAAO;IAEb,QAAQ,SAAQ;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IAE/C,OAAO,CAAC,WAAW;IAsBnB,MAAM;CAqCP"}
|
package/dist/index.js
CHANGED
|
@@ -9928,6 +9928,14 @@ var AxebowDeploySummary = class AxebowDeploySummary extends LitElement {
|
|
|
9928
9928
|
.current=${limits.cpu.current}
|
|
9929
9929
|
.limit=${limits.cpu.limit}
|
|
9930
9930
|
.percentage=${limits.cpu.percentage}
|
|
9931
|
+
iconSize="base"
|
|
9932
|
+
iconBoxSize="0.875rem"
|
|
9933
|
+
fixedWidth="20.875rem"
|
|
9934
|
+
fixedHeight="1.75rem"
|
|
9935
|
+
valuesWidth="14.1875rem"
|
|
9936
|
+
valuesHeight="1rem"
|
|
9937
|
+
barWidth="8.75rem"
|
|
9938
|
+
barHeight="0.6875rem"
|
|
9931
9939
|
></axebow-resource-bar>
|
|
9932
9940
|
<axebow-resource-bar
|
|
9933
9941
|
icon="${limits.memory.icon}"
|
|
@@ -9936,6 +9944,14 @@ var AxebowDeploySummary = class AxebowDeploySummary extends LitElement {
|
|
|
9936
9944
|
.limit=${limits.memory.limit}
|
|
9937
9945
|
.percentage=${limits.memory.percentage}
|
|
9938
9946
|
rotate="${limits.memory.rotate ?? "0"}"
|
|
9947
|
+
iconSize="base"
|
|
9948
|
+
iconBoxSize="0.875rem"
|
|
9949
|
+
fixedWidth="20.875rem"
|
|
9950
|
+
fixedHeight="1.75rem"
|
|
9951
|
+
valuesWidth="14.1875rem"
|
|
9952
|
+
valuesHeight="1rem"
|
|
9953
|
+
barWidth="8.75rem"
|
|
9954
|
+
barHeight="0.6875rem"
|
|
9939
9955
|
></axebow-resource-bar>
|
|
9940
9956
|
</div>
|
|
9941
9957
|
</div>
|
|
@@ -10211,25 +10227,56 @@ var AxebowResourceBar = class AxebowResourceBar extends LitElement {
|
|
|
10211
10227
|
this.limit = 0;
|
|
10212
10228
|
this.percentage = 0;
|
|
10213
10229
|
this.rotate = "0";
|
|
10230
|
+
this.iconSize = "xl";
|
|
10214
10231
|
}
|
|
10215
10232
|
static {
|
|
10216
|
-
this.styles = [
|
|
10233
|
+
this.styles = [
|
|
10234
|
+
unsafeCSS(tailwind_default),
|
|
10235
|
+
axebowTheme,
|
|
10236
|
+
css`
|
|
10237
|
+
:host {
|
|
10238
|
+
display: block;
|
|
10239
|
+
}
|
|
10240
|
+
`
|
|
10241
|
+
];
|
|
10242
|
+
}
|
|
10243
|
+
_renderIcon() {
|
|
10244
|
+
const icon = html`
|
|
10245
|
+
<axebow-icon
|
|
10246
|
+
iconName="${this.icon}"
|
|
10247
|
+
iconColor="var(--axebow-strong-gray)"
|
|
10248
|
+
size="${this.iconSize}"
|
|
10249
|
+
rotate="${Number(this.rotate)}"
|
|
10250
|
+
></axebow-icon>
|
|
10251
|
+
`;
|
|
10252
|
+
return this.iconBoxSize ? html`
|
|
10253
|
+
<div
|
|
10254
|
+
class="flex items-center justify-center shrink-0"
|
|
10255
|
+
style="width:${this.iconBoxSize};height:${this.iconBoxSize};"
|
|
10256
|
+
>
|
|
10257
|
+
${icon}
|
|
10258
|
+
</div>
|
|
10259
|
+
` : icon;
|
|
10217
10260
|
}
|
|
10218
10261
|
render() {
|
|
10219
10262
|
return html`
|
|
10220
|
-
<div
|
|
10263
|
+
<div
|
|
10264
|
+
class="flex justify-between items-center gap-2 ${this.fixedWidth || this.fixedHeight ? "" : "flex-wrap"}"
|
|
10265
|
+
style="${this.fixedWidth ? `width:${this.fixedWidth};` : ""}${this.fixedHeight ? `height:${this.fixedHeight};` : ""}"
|
|
10266
|
+
>
|
|
10221
10267
|
<div class="flex items-center gap-1">
|
|
10222
|
-
|
|
10223
|
-
iconName="${this.icon}"
|
|
10224
|
-
iconColor="var(--axebow-strong-gray)"
|
|
10225
|
-
size="xl"
|
|
10226
|
-
rotate="${Number(this.rotate)}"
|
|
10227
|
-
></axebow-icon>
|
|
10268
|
+
${this._renderIcon()}
|
|
10228
10269
|
<p class="text-base font-semibold text-(--axebow-black)">${this.label}</p>
|
|
10229
10270
|
</div>
|
|
10230
|
-
<div
|
|
10271
|
+
<div
|
|
10272
|
+
class="flex items-center gap-1 ${this.valuesWidth ? "shrink-0" : "flex-1 max-w-43 min-w-20 justify-end"}"
|
|
10273
|
+
style="${this.valuesWidth ? `width:${this.valuesWidth};` : ""}${this.valuesHeight ? `height:${this.valuesHeight};` : ""}"
|
|
10274
|
+
>
|
|
10231
10275
|
<p class="text-base text-(--axebow-gray)">${this.current.toFixed(2)}</p>
|
|
10232
|
-
<div
|
|
10276
|
+
<div
|
|
10277
|
+
class="relative rounded-lg bg-gray-200 overflow-hidden ${this.barWidth ? "shrink-0" : "flex-1 max-w-38"}"
|
|
10278
|
+
style="height:${this.barHeight ?? "0.5rem"};${this.barWidth ? `width:${this.barWidth};` : ""}"
|
|
10279
|
+
>
|
|
10233
10280
|
<div
|
|
10234
10281
|
class="absolute h-full ${this.percentage > 100 ? "bg-(--axebow-error)" : this.percentage === 100 ? "bg-(--axebow-warning)" : "bg-(--axebow-gray)"}"
|
|
10235
10282
|
style="width: ${this.percentage}%;"
|
|
@@ -10247,6 +10294,14 @@ __decorate([property({ type: Number })], AxebowResourceBar.prototype, "current",
|
|
|
10247
10294
|
__decorate([property({ type: Number })], AxebowResourceBar.prototype, "limit", void 0);
|
|
10248
10295
|
__decorate([property({ type: Number })], AxebowResourceBar.prototype, "percentage", void 0);
|
|
10249
10296
|
__decorate([property({ type: String })], AxebowResourceBar.prototype, "rotate", void 0);
|
|
10297
|
+
__decorate([property({ type: String })], AxebowResourceBar.prototype, "iconSize", void 0);
|
|
10298
|
+
__decorate([property({ type: String })], AxebowResourceBar.prototype, "iconBoxSize", void 0);
|
|
10299
|
+
__decorate([property({ type: String })], AxebowResourceBar.prototype, "fixedWidth", void 0);
|
|
10300
|
+
__decorate([property({ type: String })], AxebowResourceBar.prototype, "fixedHeight", void 0);
|
|
10301
|
+
__decorate([property({ type: String })], AxebowResourceBar.prototype, "valuesWidth", void 0);
|
|
10302
|
+
__decorate([property({ type: String })], AxebowResourceBar.prototype, "valuesHeight", void 0);
|
|
10303
|
+
__decorate([property({ type: String })], AxebowResourceBar.prototype, "barWidth", void 0);
|
|
10304
|
+
__decorate([property({ type: String })], AxebowResourceBar.prototype, "barHeight", void 0);
|
|
10250
10305
|
AxebowResourceBar = __decorate([customElement("axebow-resource-bar")], AxebowResourceBar);
|
|
10251
10306
|
//#endregion
|
|
10252
10307
|
//#region src/components/axebow-summary/axebow-summary-step-header.ts
|