@kumori/aurora-wui-components 0.0.269-dev4124.11 → 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.
@@ -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;IA2B7B,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"}
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-registry-selector.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-registry-selector/axebow-registry-selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAEvE,OAAO,2DAA2D,CAAC;AACnE,OAAO,2DAA2D,CAAC;AACnE,OAAO,6DAA6D,CAAC;AACrE,OAAO,+BAA+B,CAAC;AACvC,OAAO,+CAA+C,CAAC;AACvD,OAAO,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAIxE,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uBAAuB,EAAE,MAAM,CAAC;IAChC,uBAAuB,EAAE,MAAM,CAAC;IAChC,0BAA0B,EAAE,MAAM,CAAC;IACnC,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uBAAuB,EAAE,MAAM,CAAC;IAChC,wBAAwB,EAAE,MAAM,CAAC;IACjC,8BAA8B,EAAE,MAAM,CAAC;IACvC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;CACd;AAYD,qBACa,sBAAuB,SAAQ,UAAU;IACpD,MAAM,CAAC,MAAM,4BAQX;IAE2B,QAAQ,UAAS;IAClB,SAAS,SAAK;IACf,UAAU,EAAE,YAAY,EAAE,CAAM;IAC/B,gBAAgB,SAAM;IACtB,kBAAkB,SAAM;IACxB,qBAAqB,SAAM;IAC5B,OAAO,EAAE,oBAAoB,EAAE,CAAM;IAChC,MAAM,EAAG,sBAAsB,CAAC;IAEhC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IACpD,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,sBAAsB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAE9E,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAOzD,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,mBAAmB;IA6D3B,OAAO,CAAC,uBAAuB;IAe/B,OAAO,CAAC,4BAA4B;IAuDpC,MAAM;CAgBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,0BAA0B,EAAE,sBAAsB,CAAC;KACpD;CACF"}
1
+ {"version":3,"file":"axebow-registry-selector.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-registry-selector/axebow-registry-selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAGvE,OAAO,2DAA2D,CAAC;AACnE,OAAO,2DAA2D,CAAC;AACnE,OAAO,6DAA6D,CAAC;AACrE,OAAO,+BAA+B,CAAC;AACvC,OAAO,+CAA+C,CAAC;AACvD,OAAO,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAA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OAAO,CAAC;IAOzD,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,mBAAmB;IA6D3B,OAAO,CAAC,uBAAuB;IAe/B,OAAO,CAAC,4BAA4B;IAuDpC,MAAM;CAgBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,0BAA0B,EAAE,sBAAsB,CAAC;KACpD;CACF"}
@@ -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,EAAmB,MAAM,KAAK,CAAC;AAIlD,OAAO,+BAA+B,CAAC;AAEvC,qBACa,iBAAkB,SAAQ,UAAU;IAC/C,MAAM,CAAC,MAAM,4BAAyC;IAE1B,IAAI,SAAM;IACV,KAAK,SAAM;IACX,OAAO,SAAK;IACZ,KAAK,SAAK;IACV,UAAU,SAAK;IACf,MAAM,SAAO;IAEzC,MAAM;CA6BP"}
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
@@ -17,13 +17,13 @@ import "@shoelace-style/shoelace/dist/components/checkbox/checkbox.js";
17
17
  import "@shoelace-style/shoelace/dist/components/carousel/carousel.js";
18
18
  import "@shoelace-style/shoelace/dist/components/carousel-item/carousel-item.js";
19
19
  import "@shoelace-style/shoelace/dist/components/dialog/dialog.js";
20
+ import { unsafeHTML } from "lit/directives/unsafe-html.js";
20
21
  import "@shoelace-style/shoelace/dist/components/menu-item/menu-item.js";
21
22
  import "@shoelace-style/shoelace/dist/components/tooltip/tooltip.js";
22
23
  import "@shoelace-style/shoelace/dist/components/icon/icon.js";
23
24
  import "@shoelace-style/shoelace/dist/components/badge/badge.js";
24
25
  import "@shoelace-style/shoelace/dist/components/spinner/spinner.js";
25
26
  import { Chart } from "chart.js/auto";
26
- import { unsafeHTML } from "lit/directives/unsafe-html.js";
27
27
  import "@shoelace-style/shoelace/dist/components/icon-button/icon-button.js";
28
28
  import "@shoelace-style/shoelace/dist/components/card/card.js";
29
29
  import "@shoelace-style/shoelace/dist/components/progress-bar/progress-bar.js";
@@ -3194,7 +3194,7 @@ var AxebowRegistrySelector = class AxebowRegistrySelector extends LitElement {
3194
3194
  const urlValid = isValidRegistryUrl(this.oneShotRegistryUrl);
3195
3195
  return html`
3196
3196
  <div class="flex flex-col gap-4">
3197
- <p>${this.labels.oneShotRegistryDescription}</p>
3197
+ <p>${unsafeHTML(this.labels.oneShotRegistryDescription)}</p>
3198
3198
  <div class="flex gap-[2%] w-full">
3199
3199
  <div class="flex-1 min-w-0">
3200
3200
  <axebow-input
@@ -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 = [unsafeCSS(tailwind_default), axebowTheme];
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 class="flex justify-between items-center gap-2 flex-wrap">
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
- <axebow-icon
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 class="flex gap-1 flex-1 items-center max-w-43 min-w-20 justify-end">
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 class="relative rounded-lg h-2 flex-1 max-w-38 bg-gray-200 overflow-hidden">
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