@kumori/aurora-wui-components 0.0.273-dev4131 → 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 +37 -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,
|
|
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
|
}
|
|
@@ -8803,6 +8825,9 @@ var AxebowCarouselSelectorItem = class AxebowCarouselSelectorItem extends LitEle
|
|
|
8803
8825
|
width: 14.208125rem;
|
|
8804
8826
|
height: 5.125rem;
|
|
8805
8827
|
}
|
|
8828
|
+
.item-container:not(.selected):hover {
|
|
8829
|
+
border-color: var(--axebow-tertiary);
|
|
8830
|
+
}
|
|
8806
8831
|
.item-checkbox::part(base) {
|
|
8807
8832
|
padding: 0;
|
|
8808
8833
|
}
|
|
@@ -8817,13 +8842,9 @@ var AxebowCarouselSelectorItem = class AxebowCarouselSelectorItem extends LitEle
|
|
|
8817
8842
|
}
|
|
8818
8843
|
`];
|
|
8819
8844
|
}
|
|
8820
|
-
|
|
8821
|
-
const checkbox = e.target;
|
|
8845
|
+
_handleCardClick() {
|
|
8822
8846
|
if (this.disabled) return;
|
|
8823
|
-
if (this.selected
|
|
8824
|
-
checkbox.checked = true;
|
|
8825
|
-
return;
|
|
8826
|
-
}
|
|
8847
|
+
if (this.selected) return;
|
|
8827
8848
|
this.dispatchEvent(new CustomEvent("item-select", {
|
|
8828
8849
|
detail: { id: this.itemId },
|
|
8829
8850
|
bubbles: true,
|
|
@@ -8832,12 +8853,11 @@ var AxebowCarouselSelectorItem = class AxebowCarouselSelectorItem extends LitEle
|
|
|
8832
8853
|
}
|
|
8833
8854
|
_renderCheck() {
|
|
8834
8855
|
return html`
|
|
8835
|
-
<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">
|
|
8836
8857
|
<sl-checkbox
|
|
8837
8858
|
class="item-checkbox"
|
|
8838
8859
|
.checked=${this.selected}
|
|
8839
8860
|
?disabled=${this.disabled}
|
|
8840
|
-
@sl-change=${this._handleChange}
|
|
8841
8861
|
></sl-checkbox>
|
|
8842
8862
|
</div>
|
|
8843
8863
|
`;
|
|
@@ -8886,9 +8906,11 @@ var AxebowCarouselSelectorItem = class AxebowCarouselSelectorItem extends LitEle
|
|
|
8886
8906
|
`;
|
|
8887
8907
|
}
|
|
8888
8908
|
render() {
|
|
8909
|
+
const paddingClass = this.variant === "environment" ? "pt-3 px-1.5 pb-0" : "pt-3 px-3 pb-0";
|
|
8889
8910
|
return html`
|
|
8890
8911
|
<div
|
|
8891
|
-
|
|
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" : ""}"
|
|
8892
8914
|
>
|
|
8893
8915
|
${this.variant === "environment" ? this._renderEnvironment() : this._renderAccount()}
|
|
8894
8916
|
${this._renderCheck()}
|