@kumori/aurora-wui-components 0.0.273-dev4131.1 → 0.0.273-dev4131.3
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-carousel-selector-tenant/parts/axebow-carousel-selector-item.d.ts +1 -1
- package/dist/components/axebow-carousel-selector-tenant/parts/axebow-carousel-selector-item.d.ts.map +1 -1
- package/dist/components/axebow-input/axebow-providers-input.d.ts.map +1 -1
- package/dist/index.js +34 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components/axebow-carousel-selector-tenant/parts/axebow-carousel-selector-item.d.ts
CHANGED
|
@@ -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
|
|
15
|
+
private _handleCardClick;
|
|
16
16
|
private _renderCheck;
|
|
17
17
|
private _renderBadge;
|
|
18
18
|
private _renderAccount;
|
package/dist/components/axebow-carousel-selector-tenant/parts/axebow-carousel-selector-item.d.ts.map
CHANGED
|
@@ -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,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-providers-input.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-input/axebow-providers-input.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBACa,oBAAqB,SAAQ,eAAe;IACvD,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"axebow-providers-input.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-input/axebow-providers-input.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBACa,oBAAqB,SAAQ,eAAe;IACvD,MAAM,CAAC,MAAM,4BAoBX;IAEyB,aAAa,EAAE,YAAY,EAAE,CAAM;IAC9B,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC;IAEvF,MAAM;CAmBP"}
|
package/dist/index.js
CHANGED
|
@@ -2455,17 +2455,39 @@ var AxebowProvidersInput = class AxebowProvidersInput extends AxebowInputBase {
|
|
|
2455
2455
|
this.carouselItems = [];
|
|
2456
2456
|
}
|
|
2457
2457
|
static {
|
|
2458
|
-
this.styles = [...AxebowInputBase.baseStyles
|
|
2458
|
+
this.styles = [...AxebowInputBase.baseStyles, css`
|
|
2459
|
+
.provider-card {
|
|
2460
|
+
border-color: var(--axebow-light-gray);
|
|
2461
|
+
background-color: var(--axebow-base);
|
|
2462
|
+
}
|
|
2463
|
+
.provider-card:not(.selected):hover {
|
|
2464
|
+
border-color: var(--axebow-tertiary);
|
|
2465
|
+
}
|
|
2466
|
+
.provider-card.selected {
|
|
2467
|
+
border-color: var(--axebow-primary);
|
|
2468
|
+
background-color: var(--axebow-white);
|
|
2469
|
+
cursor: default;
|
|
2470
|
+
}
|
|
2471
|
+
.provider-card.disabled {
|
|
2472
|
+
opacity: 0.6;
|
|
2473
|
+
pointer-events: none;
|
|
2474
|
+
}
|
|
2475
|
+
`];
|
|
2459
2476
|
}
|
|
2460
2477
|
render() {
|
|
2461
2478
|
return this.renderWrapper(html`
|
|
2462
2479
|
<div class="flex flex-wrap gap-3 mt-0">
|
|
2463
|
-
${this.carouselItems.map((item) =>
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2480
|
+
${this.carouselItems.map((item) => {
|
|
2481
|
+
const isSelected = this.value === item.id || this.value === item.name;
|
|
2482
|
+
return this.carouselItemRenderer ? this.carouselItemRenderer(item) : html`
|
|
2483
|
+
<div
|
|
2484
|
+
class="provider-card border border-solid rounded-md transition-colors flex gap-4 items-center justify-center p-3 cursor-pointer ${isSelected ? "selected" : ""} ${this.disabled ? "disabled" : ""}"
|
|
2485
|
+
>
|
|
2486
|
+
<img src="${item.content}" alt="${item.id}" class="w-12.5 h-12.5 object-contain" />
|
|
2487
|
+
<p class="m-0">${item.id}</p>
|
|
2467
2488
|
</div>
|
|
2468
|
-
|
|
2489
|
+
`;
|
|
2490
|
+
})}
|
|
2469
2491
|
</div>
|
|
2470
2492
|
`);
|
|
2471
2493
|
}
|
|
@@ -8820,13 +8842,9 @@ var AxebowCarouselSelectorItem = class AxebowCarouselSelectorItem extends LitEle
|
|
|
8820
8842
|
}
|
|
8821
8843
|
`];
|
|
8822
8844
|
}
|
|
8823
|
-
|
|
8824
|
-
const checkbox = e.target;
|
|
8845
|
+
_handleCardClick() {
|
|
8825
8846
|
if (this.disabled) return;
|
|
8826
|
-
if (this.selected
|
|
8827
|
-
checkbox.checked = true;
|
|
8828
|
-
return;
|
|
8829
|
-
}
|
|
8847
|
+
if (this.selected) return;
|
|
8830
8848
|
this.dispatchEvent(new CustomEvent("item-select", {
|
|
8831
8849
|
detail: { id: this.itemId },
|
|
8832
8850
|
bubbles: true,
|
|
@@ -8835,12 +8853,11 @@ var AxebowCarouselSelectorItem = class AxebowCarouselSelectorItem extends LitEle
|
|
|
8835
8853
|
}
|
|
8836
8854
|
_renderCheck() {
|
|
8837
8855
|
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">
|
|
8856
|
+
<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
8857
|
<sl-checkbox
|
|
8840
8858
|
class="item-checkbox"
|
|
8841
8859
|
.checked=${this.selected}
|
|
8842
8860
|
?disabled=${this.disabled}
|
|
8843
|
-
@sl-change=${this._handleChange}
|
|
8844
8861
|
></sl-checkbox>
|
|
8845
8862
|
</div>
|
|
8846
8863
|
`;
|
|
@@ -8889,9 +8906,11 @@ var AxebowCarouselSelectorItem = class AxebowCarouselSelectorItem extends LitEle
|
|
|
8889
8906
|
`;
|
|
8890
8907
|
}
|
|
8891
8908
|
render() {
|
|
8909
|
+
const paddingClass = this.variant === "environment" ? "pt-3 px-1.5 pb-0" : "pt-3 px-3 pb-0";
|
|
8892
8910
|
return html`
|
|
8893
8911
|
<div
|
|
8894
|
-
|
|
8912
|
+
@click=${this._handleCardClick}
|
|
8913
|
+
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
8914
|
>
|
|
8896
8915
|
${this.variant === "environment" ? this._renderEnvironment() : this._renderAccount()}
|
|
8897
8916
|
${this._renderCheck()}
|