@kumori/aurora-wui-components 0.0.273-dev4131.1 → 0.0.273-dev4131.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.
@@ -12,7 +12,7 @@ export declare class AxebowCarouselSelectorItem extends LitElement {
12
12
  accountName: string;
13
13
  logoSrc: string | null;
14
14
  logoAlt: string;
15
- private _handleChange;
15
+ private _handleCardClick;
16
16
  private _renderCheck;
17
17
  private _renderBadge;
18
18
  private _renderAccount;
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-carousel-selector-item.d.ts","sourceRoot":"","sources":["../../../../src/components/axebow-carousel-selector-tenant/parts/axebow-carousel-selector-item.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+DAA+D,CAAC;AACvE,OAAO,kCAAkC,CAAC;AAE1C,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,aAAa,CAAC;AAEhE,qBACa,0BAA2B,SAAQ,UAAU;IACxD,MAAM,CAAC,MAAM,4BA4BX;IAEyC,OAAO,EAAE,uBAAuB,CAAa;IAC5D,MAAM,SAAM;IACX,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAClB,SAAS,SAAM;IACf,IAAI,SAAM;IACV,UAAU,SAAM;IAChB,WAAW,SAAM;IACjB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,OAAO,SAAM;IAEzC,OAAO,CAAC,aAAa;IAgBrB,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,kBAAkB;IA2B1B,MAAM;CAgBP"}
1
+ {"version":3,"file":"axebow-carousel-selector-item.d.ts","sourceRoot":"","sources":["../../../../src/components/axebow-carousel-selector-tenant/parts/axebow-carousel-selector-item.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+DAA+D,CAAC;AACvE,OAAO,kCAAkC,CAAC;AAE1C,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,aAAa,CAAC;AAEhE,qBACa,0BAA2B,SAAQ,UAAU;IACxD,MAAM,CAAC,MAAM,4BA4BX;IAEyC,OAAO,EAAE,uBAAuB,CAAa;IAC5D,MAAM,SAAM;IACX,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAClB,SAAS,SAAM;IACf,IAAI,SAAM;IACV,UAAU,SAAM;IAChB,WAAW,SAAM;IACjB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,OAAO,SAAM;IAEzC,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,kBAAkB;IA2B1B,MAAM;CAiBP"}
package/dist/index.js CHANGED
@@ -8820,13 +8820,9 @@ var AxebowCarouselSelectorItem = class AxebowCarouselSelectorItem extends LitEle
8820
8820
  }
8821
8821
  `];
8822
8822
  }
8823
- _handleChange(e) {
8824
- const checkbox = e.target;
8823
+ _handleCardClick() {
8825
8824
  if (this.disabled) return;
8826
- if (this.selected && !checkbox.checked) {
8827
- checkbox.checked = true;
8828
- return;
8829
- }
8825
+ if (this.selected) return;
8830
8826
  this.dispatchEvent(new CustomEvent("item-select", {
8831
8827
  detail: { id: this.itemId },
8832
8828
  bubbles: true,
@@ -8835,12 +8831,11 @@ var AxebowCarouselSelectorItem = class AxebowCarouselSelectorItem extends LitEle
8835
8831
  }
8836
8832
  _renderCheck() {
8837
8833
  return html`
8838
- <div class="absolute ${this.variant === "environment" ? "top-3 right-1.5" : "top-3 right-3"} w-4.5 h-4.5 shrink-0">
8834
+ <div class="absolute ${this.variant === "environment" ? "top-3 right-1.5" : "top-3 right-3"} w-4.5 h-4.5 shrink-0 pointer-events-none">
8839
8835
  <sl-checkbox
8840
8836
  class="item-checkbox"
8841
8837
  .checked=${this.selected}
8842
8838
  ?disabled=${this.disabled}
8843
- @sl-change=${this._handleChange}
8844
8839
  ></sl-checkbox>
8845
8840
  </div>
8846
8841
  `;
@@ -8889,9 +8884,11 @@ var AxebowCarouselSelectorItem = class AxebowCarouselSelectorItem extends LitEle
8889
8884
  `;
8890
8885
  }
8891
8886
  render() {
8887
+ const paddingClass = this.variant === "environment" ? "pt-3 px-1.5 pb-0" : "pt-3 px-3 pb-0";
8892
8888
  return html`
8893
8889
  <div
8894
- class="item-container relative w-full h-full box-border rounded-md border border-solid overflow-hidden transition-colors ${this.variant === "environment" ? "pt-3 px-1.5 pb-0" : "pt-3 px-3 pb-0"} ${this.selected ? "selected border-(--axebow-primary) bg-(--axebow-white)" : "border-(--axebow-light-gray) bg-(--axebow-base)"} ${this.disabled ? "opacity-60 pointer-events-none" : ""}"
8890
+ @click=${this._handleCardClick}
8891
+ class="item-container relative w-full h-full box-border rounded-md border border-solid overflow-hidden transition-colors ${paddingClass} ${this.selected ? "selected cursor-default border-(--axebow-primary) bg-(--axebow-white)" : "cursor-pointer border-(--axebow-light-gray) bg-(--axebow-base)"} ${this.disabled ? "opacity-60 pointer-events-none" : ""}"
8895
8892
  >
8896
8893
  ${this.variant === "environment" ? this._renderEnvironment() : this._renderAccount()}
8897
8894
  ${this._renderCheck()}