@kumori/aurora-wui-components 0.0.337-dev4696.10 → 0.0.337-dev4696.12
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-input/axebow-carousel-input.d.ts +1 -1
- package/dist/components/axebow-input/axebow-carousel-input.d.ts.map +1 -1
- package/dist/components/axebow-selector-card/axebow-selector-card.d.ts +1 -0
- package/dist/components/axebow-selector-card/axebow-selector-card.d.ts.map +1 -1
- package/dist/index.js +14 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ export declare class AxebowCarouselInput extends AxebowInputBase {
|
|
|
14
14
|
private _resizeObserver?;
|
|
15
15
|
connectedCallback(): void;
|
|
16
16
|
disconnectedCallback(): void;
|
|
17
|
-
protected firstUpdated(): void
|
|
17
|
+
protected firstUpdated(): Promise<void>;
|
|
18
18
|
render(): import('lit-html').TemplateResult;
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=axebow-carousel-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-carousel-input.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-input/axebow-carousel-input.ts"],"names":[],"mappings":"AAEA,OAAO,+DAA+D,CAAC;AACvE,OAAO,yEAAyE,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAWD,qBACa,mBAAoB,SAAQ,eAAe;IACtD,MAAM,CAAC,MAAM,4BA0BX;IAEyB,aAAa,EAAE,YAAY,EAAE,CAAM;IAC9B,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC;IAE9E,OAAO,CAAC,cAAc,CAA2C;IAEpD,OAAO,CAAC,WAAW,CAAC,CAAc;IACxD,OAAO,CAAC,eAAe,CAAC,CAAiB;IAEzC,iBAAiB;IAQjB,oBAAoB;
|
|
1
|
+
{"version":3,"file":"axebow-carousel-input.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-input/axebow-carousel-input.ts"],"names":[],"mappings":"AAEA,OAAO,+DAA+D,CAAC;AACvE,OAAO,yEAAyE,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAWD,qBACa,mBAAoB,SAAQ,eAAe;IACtD,MAAM,CAAC,MAAM,4BA0BX;IAEyB,aAAa,EAAE,YAAY,EAAE,CAAM;IAC9B,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC;IAE9E,OAAO,CAAC,cAAc,CAA2C;IAEpD,OAAO,CAAC,WAAW,CAAC,CAAc;IACxD,OAAO,CAAC,eAAe,CAAC,CAAiB;IAEzC,iBAAiB;IAQjB,oBAAoB;cAKJ,YAAY;IAO5B,MAAM;CA2BP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-selector-card.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-selector-card/axebow-selector-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAIvD,OAAO,+BAA+B,CAAC;AAEvC,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"axebow-selector-card.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-selector-card/axebow-selector-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAIvD,OAAO,+BAA+B,CAAC;AAEvC,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,4BA+CX;IAE0B,MAAM,SAAM;IACZ,OAAO,SAAM;IACb,SAAS,SAAc;IACtB,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAE9C,MAAM;CAwBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,sBAAsB,EAAE,kBAAkB,CAAC;KAC5C;CACF"}
|
package/dist/index.js
CHANGED
|
@@ -3240,8 +3240,11 @@ var AxebowCarouselInput = class AxebowCarouselInput extends AxebowInputBase {
|
|
|
3240
3240
|
super.disconnectedCallback();
|
|
3241
3241
|
this._resizeObserver?.disconnect();
|
|
3242
3242
|
}
|
|
3243
|
-
firstUpdated() {
|
|
3244
|
-
|
|
3243
|
+
async firstUpdated() {
|
|
3244
|
+
const carousel = this._carouselEl;
|
|
3245
|
+
await carousel?.updateComplete;
|
|
3246
|
+
const slides = carousel?.shadowRoot?.querySelector("[part=\"scroll-container\"]");
|
|
3247
|
+
if (slides) this._resizeObserver?.observe(slides);
|
|
3245
3248
|
}
|
|
3246
3249
|
render() {
|
|
3247
3250
|
return this.renderWrapper(html`
|
|
@@ -3279,6 +3282,7 @@ var AxebowSelectorCard = class AxebowSelectorCard extends LitElement {
|
|
|
3279
3282
|
super(..._args);
|
|
3280
3283
|
this.cardId = "";
|
|
3281
3284
|
this.logoSrc = "";
|
|
3285
|
+
this.logoWidth = "1.125rem";
|
|
3282
3286
|
this.selected = false;
|
|
3283
3287
|
this.disabled = false;
|
|
3284
3288
|
}
|
|
@@ -3319,16 +3323,10 @@ var AxebowSelectorCard = class AxebowSelectorCard extends LitElement {
|
|
|
3319
3323
|
background-color: var(--axebow-white);
|
|
3320
3324
|
}
|
|
3321
3325
|
.registry-logo {
|
|
3322
|
-
height:
|
|
3323
|
-
aspect-ratio: 1 / 1;
|
|
3326
|
+
height: 1.125rem;
|
|
3324
3327
|
object-fit: contain;
|
|
3325
3328
|
flex-shrink: 0;
|
|
3326
3329
|
}
|
|
3327
|
-
@media (min-width: 64rem) {
|
|
3328
|
-
.registry-logo {
|
|
3329
|
-
height: calc(var(--spacing) * 6);
|
|
3330
|
-
}
|
|
3331
|
-
}
|
|
3332
3330
|
p {
|
|
3333
3331
|
margin: 0;
|
|
3334
3332
|
white-space: nowrap;
|
|
@@ -3343,7 +3341,12 @@ var AxebowSelectorCard = class AxebowSelectorCard extends LitElement {
|
|
|
3343
3341
|
<div
|
|
3344
3342
|
class="card-wrapper rounded-lg border border-solid p-2 text-center transition-all duration-300 ease-in-out flex items-center justify-center ${this.selected ? "selected" : ""} ${this.disabled ? "opacity-60 pointer-events-none" : "cursor-pointer"}"
|
|
3345
3343
|
>
|
|
3346
|
-
<img
|
|
3344
|
+
<img
|
|
3345
|
+
class="registry-logo"
|
|
3346
|
+
style="width: ${this.logoWidth || "1.125rem"};"
|
|
3347
|
+
src="${this.logoSrc}"
|
|
3348
|
+
alt="${this.cardId}"
|
|
3349
|
+
/>
|
|
3347
3350
|
<p class="m-0">${this.cardId}</p>
|
|
3348
3351
|
${this.selected ? html`
|
|
3349
3352
|
<div
|
|
@@ -3358,6 +3361,7 @@ var AxebowSelectorCard = class AxebowSelectorCard extends LitElement {
|
|
|
3358
3361
|
};
|
|
3359
3362
|
__decorate([property({ type: String })], AxebowSelectorCard.prototype, "cardId", void 0);
|
|
3360
3363
|
__decorate([property({ type: String })], AxebowSelectorCard.prototype, "logoSrc", void 0);
|
|
3364
|
+
__decorate([property({ type: String })], AxebowSelectorCard.prototype, "logoWidth", void 0);
|
|
3361
3365
|
__decorate([property({ type: Boolean })], AxebowSelectorCard.prototype, "selected", void 0);
|
|
3362
3366
|
__decorate([property({ type: Boolean })], AxebowSelectorCard.prototype, "disabled", void 0);
|
|
3363
3367
|
AxebowSelectorCard = __decorate([customElement("axebow-selector-card")], AxebowSelectorCard);
|