@sbb-esta/lyne-elements-dev 4.9.0-dev.1775130554 → 4.9.0-dev.1775144212

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.
@@ -7,7 +7,8 @@ var r = class extends n(t(e)) {
7
7
  this._$sbbElement$ = !0;
8
8
  }
9
9
  static define(e = customElements) {
10
- e.get(this.elementName) || e.define(this.elementName, this);
10
+ if (!this.elementName) throw Error(`The static property "elementName" is not defined on ${this.name}. Please define it to register the custom element.`);
11
+ e.get(this.elementName) || (e.define(this.elementName, this), this.finalize());
11
12
  }
12
13
  addController(e) {
13
14
  super.addController(e), (this._controllers ??= /* @__PURE__ */ new Set()).add(e);