@kumori/aurora-wui-components 0.0.337-dev4696.10 → 0.0.337-dev4696.11

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.
@@ -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;IAKpB,SAAS,CAAC,YAAY;IAItB,MAAM;CA2BP"}
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"}
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
- if (this._carouselEl) this._resizeObserver?.observe(this._carouselEl);
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`