@proximus/lavender 1.4.4-beta.1 → 1.4.4

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.
@@ -24,7 +24,7 @@ function getSupportedAttributeNames(htmlElementName) {
24
24
  }
25
25
  const commonStyleSheet$c = new CSSStyleSheet();
26
26
  commonStyleSheet$c.replaceSync(commonStyles);
27
- const PX_COMPONENT_DEBUG = typeof import.meta !== "undefined" && typeof __vite_import_meta_env__ !== "undefined" && true;
27
+ const PX_COMPONENT_DEBUG = typeof import.meta !== "undefined" && typeof __vite_import_meta_env__ !== "undefined" && false;
28
28
  if (typeof window !== "undefined") {
29
29
  window.isComponentDebug = isComponentDebug;
30
30
  }
@@ -32,9 +32,6 @@ function isComponentDebug() {
32
32
  return PX_COMPONENT_DEBUG;
33
33
  }
34
34
  function log(message) {
35
- if (isComponentDebug()) {
36
- console.error(message);
37
- }
38
35
  }
39
36
  if (typeof window !== "undefined") {
40
37
  window.isComponentDebug = isComponentDebug;
@@ -3001,7 +2998,6 @@ const _ActionLink = class _ActionLink extends PxElement {
3001
2998
  }
3002
2999
  attributeChangedCallback(name, oldValue, newValue) {
3003
3000
  if ((name === "icon-name" || name === "icon-from" || name === "label") && !newValue) {
3004
- log(`Action link needs a value from the attribute ${name}`);
3005
3001
  throw new Error(`Action link needs a value from the attribute ${name}`);
3006
3002
  }
3007
3003
  if (name === "icon-name") {
@@ -3172,7 +3168,6 @@ const _AgGridTableThButton = class _AgGridTableThButton extends PxElement {
3172
3168
  updateSorting(oldValue, newValue, attrValue) {
3173
3169
  var _a, _b;
3174
3170
  if (!checkName(attrValue, newValue)) {
3175
- log(`${newValue} is not an allowed sorting value.`);
3176
3171
  return;
3177
3172
  }
3178
3173
  if (oldValue !== null && oldValue !== "") {
@@ -5365,7 +5360,6 @@ function configureCellBackgroundColor(el) {
5365
5360
  }
5366
5361
  function updateVariant(element, oldValue, newValue) {
5367
5362
  if (!checkName(cellVariantValues, newValue)) {
5368
- log(`${newValue} is not an allowed variant value.`);
5369
5363
  return;
5370
5364
  }
5371
5365
  if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
@@ -7622,11 +7616,7 @@ class Radiogroup extends WithExtraAttributes {
7622
7616
  setupErrorState() {
7623
7617
  var _a;
7624
7618
  const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
7625
- if (this.state === "error" && !hasErrorText) {
7626
- log(
7627
- '<px-radiogroup> with state="error" requires a slot="error-text" containing the error description.'
7628
- );
7629
- }
7619
+ if (this.state === "error" && !hasErrorText) ;
7630
7620
  if (this.state === "error" && hasErrorText) {
7631
7621
  this.$el.setAttribute("state", "error");
7632
7622
  this.$radioList.forEach((child) => {
@@ -9756,9 +9746,6 @@ class Dropdown extends WithExtraAttributes {
9756
9746
  if (anchorAlignmentValues.includes(value)) {
9757
9747
  this.setAttribute("anchoralignment", value);
9758
9748
  } else {
9759
- log(
9760
- `Invalid anchor alignment value: ${value}. Using default ${defaultAnchorAlignment}.`
9761
- );
9762
9749
  this.setAttribute("anchoralignment", defaultAnchorAlignment);
9763
9750
  }
9764
9751
  }
@@ -9862,11 +9849,7 @@ const _Fieldset = class _Fieldset extends PxElement {
9862
9849
  setupErrorState() {
9863
9850
  var _a;
9864
9851
  const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
9865
- if (this.state === "error" && !hasErrorText) {
9866
- log(
9867
- '<px-fieldset> with state="error" requires a slot="error-text" containing the error description.'
9868
- );
9869
- }
9852
+ if (this.state === "error" && !hasErrorText) ;
9870
9853
  if (this.state === "error" && hasErrorText) {
9871
9854
  const id = Math.random().toString(36).substr(2, 9);
9872
9855
  this.$el.setAttribute("id", id);