@proximus/lavender-common 1.0.0-beta.1 → 1.0.0-beta.2

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/common.d.ts CHANGED
@@ -93,6 +93,7 @@ export declare class WithExtraAttributes extends HTMLElement {
93
93
  export declare abstract class PxElement<HTML_TYPE extends Element> extends WithExtraAttributes {
94
94
  static nativeName: string;
95
95
  nativeName: string;
96
+ accessorExclusions: string[];
96
97
  static get observedAttributes(): string[];
97
98
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
98
99
  protected constructor(...adoptedStylesheets: CSSStyleSheet[]);
package/dist/index.es.js CHANGED
@@ -409,7 +409,10 @@ class p extends HTMLElement {
409
409
  this.setAttribute("order--desktop", t);
410
410
  }
411
411
  }
412
- class w extends p {
412
+ class y extends p {
413
+ constructor(...t) {
414
+ super(...t), this.accessorExclusions = [], this.nativeName = Object.getPrototypeOf(this).constructor.nativeName, this.accessorExclusions = Object.getPrototypeOf(this).constructor.accessorExclusions || [];
415
+ }
413
416
  static get observedAttributes() {
414
417
  return [
415
418
  ...super.observedAttributes,
@@ -419,13 +422,10 @@ class w extends p {
419
422
  attributeChangedCallback(t, s, e) {
420
423
  super.attributeChangedCallback(t, s, e), e === null ? this.$el.toggleAttribute(t) : this.$el.setAttribute(t, e);
421
424
  }
422
- constructor(...t) {
423
- super(...t), this.nativeName = Object.getPrototypeOf(this).constructor.nativeName;
424
- }
425
425
  connectedCallback() {
426
426
  var t;
427
427
  for (const s of b(this.nativeName))
428
- if (s !== "constructor")
428
+ if (!(s === "constructor" || this.accessorExclusions.includes(s)))
429
429
  try {
430
430
  Object.defineProperty(this, s, {
431
431
  get() {
@@ -447,7 +447,7 @@ class w extends p {
447
447
  return this.shadowRoot.querySelector(this.nativeName);
448
448
  }
449
449
  }
450
- const y = ["", "default", "none", "l"], c = [
450
+ const w = ["", "default", "none", "l"], c = [
451
451
  "",
452
452
  "default",
453
453
  "auto",
@@ -608,7 +608,7 @@ const y = ["", "default", "none", "l"], c = [
608
608
  "purpose-info",
609
609
  "purpose-eco",
610
610
  "purpose-notification"
611
- ], G = ["", "cover", "contain", "default"], q = ["", "none", "s", "m", "l", "xl"], P = [
611
+ ], G = ["", "cover", "contain", "default"], q = ["", "none", "s", "m", "l", "xl"], E = [
612
612
  "",
613
613
  "default",
614
614
  "title-4xl",
@@ -619,7 +619,7 @@ const y = ["", "default", "none", "l"], c = [
619
619
  "title-m",
620
620
  "title-s",
621
621
  "subtitle"
622
- ], E = [
622
+ ], P = [
623
623
  "",
624
624
  "purple-top-red",
625
625
  "purple-top-magenta",
@@ -879,7 +879,7 @@ class J {
879
879
  }
880
880
  export {
881
881
  J as AttributeBreakpointHandlerDelegate,
882
- w as PxElement,
882
+ y as PxElement,
883
883
  p as WithExtraAttributes,
884
884
  B as addGlobalStylesheet,
885
885
  z as assetContainerImgWidthValues,
@@ -905,9 +905,9 @@ export {
905
905
  d as getSupportedAttributeNames,
906
906
  b as getSupportedPropertyNames,
907
907
  H as getViewportFormat,
908
- E as gradientValues,
909
- y as gridGapValues,
910
- P as headingValues,
908
+ P as gradientValues,
909
+ w as gridGapValues,
910
+ E as headingValues,
911
911
  v as iconSizeValues,
912
912
  j as iconSizeValuesKC,
913
913
  _ as isFalsy,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-common",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",