@kumori/aurora-wui-components 0.0.298-dev4393.19 → 0.0.298-dev4393.20

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.
@@ -7,6 +7,8 @@ export declare class AxebowResourceBoxForm extends LitElement {
7
7
  statusColor: string;
8
8
  showTrash: boolean;
9
9
  deleting: boolean;
10
+ trashDisabled: boolean;
11
+ trashTooltip: string;
10
12
  items: ResourceBoxFormItem[];
11
13
  private _openMenuId;
12
14
  private _menuOpenUpwards;
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-box-form.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-box-form/axebow-box-form.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,uDAAuD,CAAC;AAC/D,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,6BAA6B,CAAC;AAErC,cAAc,6BAA6B,CAAC;AAE5C,qBACa,qBAAsB,SAAQ,UAAU;IACnD,MAAM,CAAC,MAAM,4BAQX;IAE0B,UAAU,SAAU;IACpB,WAAW,SAA2B;IACrC,SAAS,UAAQ;IACjB,QAAQ,UAAS;IACnB,KAAK,EAAE,mBAAmB,EAAE,CAAM;IAEpD,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,eAAe,CAAS;IAEzC,iBAAiB;IAKjB,oBAAoB;IAKpB,OAAO,CAAC,mBAAmB,CAKzB;IAEF,OAAO,CAAC,iBAAiB,CAEvB;IAEF,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,SAAS;IAajB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,WAAW;IAmCnB,OAAO,CAAC,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@ -5,10 +5,13 @@ export declare class AxebowStatus extends LitElement {
5
5
  statusText: string;
6
6
  statusColor: string;
7
7
  deleting: boolean;
8
+ trashDisabled: boolean;
9
+ trashTooltip: string;
8
10
  private _isTrashHovered;
9
11
  private _handleDelete;
10
12
  private _handleTrashMouseEnter;
11
13
  private _handleTrashMouseLeave;
14
+ private _renderDisabledTrash;
12
15
  render(): import('lit-html').TemplateResult<1>;
13
16
  }
14
17
  //# sourceMappingURL=axebow-status.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-status.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-status/axebow-status.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AAEvC,qBACa,YAAa,SAAQ,UAAU;IACxC,MAAM,CAAC,MAAM,4BAOX;IAE2B,SAAS,UAAS;IACnB,UAAU,SAAU;IACpB,WAAW,SAA2B;IACrC,QAAQ,UAAS;IAErC,OAAO,CAAC,eAAe,CAAS;IAEzC,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,sBAAsB;IAM9B,MAAM;CA0BT"}
1
+ {"version":3,"file":"axebow-status.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-status/axebow-status.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,qCAAqC,CAAC;AAE7C,qBACa,YAAa,SAAQ,UAAU;IACxC,MAAM,CAAC,MAAM,4BAOX;IAE2B,SAAS,UAAS;IACnB,UAAU,SAAU;IACpB,WAAW,SAA2B;IACrC,QAAQ,UAAS;IACjB,aAAa,UAAS;IACvB,YAAY,SAAM;IAErC,OAAO,CAAC,eAAe,CAAS;IAEzC,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,oBAAoB;IAc5B,MAAM;CA0BT"}
package/dist/index.js CHANGED
@@ -12244,6 +12244,8 @@ var AxebowStatus = class AxebowStatus extends LitElement {
12244
12244
  this.statusText = "Free";
12245
12245
  this.statusColor = "var(--axebow-success)";
12246
12246
  this.deleting = false;
12247
+ this.trashDisabled = false;
12248
+ this.trashTooltip = "";
12247
12249
  this._isTrashHovered = false;
12248
12250
  }
12249
12251
  static {
@@ -12279,6 +12281,19 @@ var AxebowStatus = class AxebowStatus extends LitElement {
12279
12281
  composed: true
12280
12282
  }));
12281
12283
  }
12284
+ _renderDisabledTrash() {
12285
+ return html`
12286
+ <axebow-tooltip content=${this.trashTooltip} ?disabled=${!this.trashTooltip}>
12287
+ <button
12288
+ type="button"
12289
+ aria-disabled="true"
12290
+ class="p-0 border-0 bg-transparent flex items-center justify-center text-(--axebow-gray) opacity-50 cursor-not-allowed"
12291
+ >
12292
+ <axebow-icon iconName="delete" iconColor="currentColor" size="lg"></axebow-icon>
12293
+ </button>
12294
+ </axebow-tooltip>
12295
+ `;
12296
+ }
12282
12297
  render() {
12283
12298
  const isDeleting = this.deleting;
12284
12299
  const currentText = isDeleting ? "Deleting" : this.statusText;
@@ -12290,7 +12305,7 @@ var AxebowStatus = class AxebowStatus extends LitElement {
12290
12305
  ${currentColor ? html`<div class="h-2 w-2 rounded-full shrink-0 transition-colors duration-200" style="background-color: ${currentColor};"></div>` : ""}
12291
12306
  <span class="font-medium text-(--axebow-strong-gray)">${currentText}</span>
12292
12307
  </div>
12293
- ${showTrashIcon ? html`
12308
+ ${showTrashIcon && this.trashDisabled ? this._renderDisabledTrash() : showTrashIcon ? html`
12294
12309
  <button
12295
12310
  type="button"
12296
12311
  class="p-0 border-0 bg-transparent cursor-pointer flex items-center justify-center text-(--axebow-error) hover:text-(--axebow-gray) transition-colors"
@@ -12309,6 +12324,8 @@ __decorate([property({ type: Boolean })], AxebowStatus.prototype, "showTrash", v
12309
12324
  __decorate([property({ type: String })], AxebowStatus.prototype, "statusText", void 0);
12310
12325
  __decorate([property({ type: String })], AxebowStatus.prototype, "statusColor", void 0);
12311
12326
  __decorate([property({ type: Boolean })], AxebowStatus.prototype, "deleting", void 0);
12327
+ __decorate([property({ type: Boolean })], AxebowStatus.prototype, "trashDisabled", void 0);
12328
+ __decorate([property({ type: String })], AxebowStatus.prototype, "trashTooltip", void 0);
12312
12329
  __decorate([state()], AxebowStatus.prototype, "_isTrashHovered", void 0);
12313
12330
  AxebowStatus = __decorate([customElement("axebow-status")], AxebowStatus);
12314
12331
  //#endregion
@@ -12617,6 +12634,8 @@ var AxebowResourceBoxForm = class AxebowResourceBoxForm extends LitElement {
12617
12634
  this.statusColor = "var(--axebow-success)";
12618
12635
  this.showTrash = true;
12619
12636
  this.deleting = false;
12637
+ this.trashDisabled = false;
12638
+ this.trashTooltip = "";
12620
12639
  this.items = [];
12621
12640
  this._openMenuId = null;
12622
12641
  this._menuOpenUpwards = false;
@@ -12919,6 +12938,8 @@ var AxebowResourceBoxForm = class AxebowResourceBoxForm extends LitElement {
12919
12938
  .statusColor=${computedStatusColor}
12920
12939
  ?showTrash=${this.showTrash && !isDeleting}
12921
12940
  ?deleting=${this.deleting}
12941
+ ?trashDisabled=${this.trashDisabled}
12942
+ .trashTooltip=${this.trashTooltip}
12922
12943
  @trash-hover=${this._handleTrashHover}
12923
12944
  @delete=${this._handleDelete}
12924
12945
  ></axebow-status>
@@ -12944,6 +12965,8 @@ __decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "statu
12944
12965
  __decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "statusColor", void 0);
12945
12966
  __decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "showTrash", void 0);
12946
12967
  __decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "deleting", void 0);
12968
+ __decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "trashDisabled", void 0);
12969
+ __decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "trashTooltip", void 0);
12947
12970
  __decorate([property({ type: Array })], AxebowResourceBoxForm.prototype, "items", void 0);
12948
12971
  __decorate([state()], AxebowResourceBoxForm.prototype, "_openMenuId", void 0);
12949
12972
  __decorate([state()], AxebowResourceBoxForm.prototype, "_menuOpenUpwards", void 0);