@kumori/aurora-wui-components 0.0.298 → 0.0.299

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,iBAAiB;IA+BzB,OAAO,CAAC,YAAY;IA8NpB,MAAM;CAiDP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,0BAA0B,EAAE,qBAAqB,CAAC;KACnD;CACF"}
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;IACjB,aAAa,UAAS;IACvB,YAAY,SAAM;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,iBAAiB;IA+BzB,OAAO,CAAC,YAAY;IA8NpB,MAAM;CAmDP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,0BAA0B,EAAE,qBAAqB,CAAC;KACnD;CACF"}
@@ -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
@@ -11969,6 +11969,8 @@ var AxebowStatus = class AxebowStatus extends LitElement {
11969
11969
  this.statusText = "Free";
11970
11970
  this.statusColor = "var(--axebow-success)";
11971
11971
  this.deleting = false;
11972
+ this.trashDisabled = false;
11973
+ this.trashTooltip = "";
11972
11974
  this._isTrashHovered = false;
11973
11975
  }
11974
11976
  static {
@@ -12004,6 +12006,19 @@ var AxebowStatus = class AxebowStatus extends LitElement {
12004
12006
  composed: true
12005
12007
  }));
12006
12008
  }
12009
+ _renderDisabledTrash() {
12010
+ return html`
12011
+ <axebow-tooltip content=${this.trashTooltip} ?disabled=${!this.trashTooltip}>
12012
+ <button
12013
+ type="button"
12014
+ aria-disabled="true"
12015
+ class="p-0 border-0 bg-transparent flex items-center justify-center text-(--axebow-gray) opacity-50 cursor-not-allowed"
12016
+ >
12017
+ <axebow-icon iconName="delete" iconColor="currentColor" size="lg"></axebow-icon>
12018
+ </button>
12019
+ </axebow-tooltip>
12020
+ `;
12021
+ }
12007
12022
  render() {
12008
12023
  const isDeleting = this.deleting;
12009
12024
  const currentText = isDeleting ? "Deleting" : this.statusText;
@@ -12015,7 +12030,7 @@ var AxebowStatus = class AxebowStatus extends LitElement {
12015
12030
  ${currentColor ? html`<div class="h-2 w-2 rounded-full shrink-0 transition-colors duration-200" style="background-color: ${currentColor};"></div>` : ""}
12016
12031
  <span class="font-medium text-(--axebow-strong-gray)">${currentText}</span>
12017
12032
  </div>
12018
- ${showTrashIcon ? html`
12033
+ ${showTrashIcon && this.trashDisabled ? this._renderDisabledTrash() : showTrashIcon ? html`
12019
12034
  <button
12020
12035
  type="button"
12021
12036
  class="p-0 border-0 bg-transparent cursor-pointer flex items-center justify-center text-(--axebow-error) hover:text-(--axebow-gray) transition-colors"
@@ -12034,6 +12049,8 @@ __decorate([property({ type: Boolean })], AxebowStatus.prototype, "showTrash", v
12034
12049
  __decorate([property({ type: String })], AxebowStatus.prototype, "statusText", void 0);
12035
12050
  __decorate([property({ type: String })], AxebowStatus.prototype, "statusColor", void 0);
12036
12051
  __decorate([property({ type: Boolean })], AxebowStatus.prototype, "deleting", void 0);
12052
+ __decorate([property({ type: Boolean })], AxebowStatus.prototype, "trashDisabled", void 0);
12053
+ __decorate([property({ type: String })], AxebowStatus.prototype, "trashTooltip", void 0);
12037
12054
  __decorate([state()], AxebowStatus.prototype, "_isTrashHovered", void 0);
12038
12055
  AxebowStatus = __decorate([customElement("axebow-status")], AxebowStatus);
12039
12056
  //#endregion
@@ -12342,6 +12359,8 @@ var AxebowResourceBoxForm = class AxebowResourceBoxForm extends LitElement {
12342
12359
  this.statusColor = "var(--axebow-success)";
12343
12360
  this.showTrash = true;
12344
12361
  this.deleting = false;
12362
+ this.trashDisabled = false;
12363
+ this.trashTooltip = "";
12345
12364
  this.items = [];
12346
12365
  this._openMenuId = null;
12347
12366
  this._menuOpenUpwards = false;
@@ -12644,6 +12663,8 @@ var AxebowResourceBoxForm = class AxebowResourceBoxForm extends LitElement {
12644
12663
  .statusColor=${computedStatusColor}
12645
12664
  ?showTrash=${this.showTrash && !isDeleting}
12646
12665
  ?deleting=${this.deleting}
12666
+ ?trashDisabled=${this.trashDisabled}
12667
+ .trashTooltip=${this.trashTooltip}
12647
12668
  @trash-hover=${this._handleTrashHover}
12648
12669
  @delete=${this._handleDelete}
12649
12670
  ></axebow-status>
@@ -12669,6 +12690,8 @@ __decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "statu
12669
12690
  __decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "statusColor", void 0);
12670
12691
  __decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "showTrash", void 0);
12671
12692
  __decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "deleting", void 0);
12693
+ __decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "trashDisabled", void 0);
12694
+ __decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "trashTooltip", void 0);
12672
12695
  __decorate([property({ type: Array })], AxebowResourceBoxForm.prototype, "items", void 0);
12673
12696
  __decorate([state()], AxebowResourceBoxForm.prototype, "_openMenuId", void 0);
12674
12697
  __decorate([state()], AxebowResourceBoxForm.prototype, "_menuOpenUpwards", void 0);