@proximus/lavender 1.4.9-beta.1 → 1.4.9

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
  class WrappedInteractiveStateController {
40
37
  constructor(host, interactiveElement, canSetInteractiveState) {
@@ -3232,7 +3229,6 @@ const _ActionLink = class _ActionLink extends PxElement {
3232
3229
  }
3233
3230
  attributeChangedCallback(name, oldValue, newValue) {
3234
3231
  if ((name === "icon-name" || name === "icon-from" || name === "label") && !newValue) {
3235
- log(`Action link needs a value from the attribute ${name}`);
3236
3232
  throw new Error(`Action link needs a value from the attribute ${name}`);
3237
3233
  }
3238
3234
  if (name === "icon-name") {
@@ -3403,7 +3399,6 @@ const _AgGridTableThButton = class _AgGridTableThButton extends PxElement {
3403
3399
  updateSorting(oldValue, newValue, attrValue) {
3404
3400
  var _a, _b;
3405
3401
  if (!checkName(attrValue, newValue)) {
3406
- log(`${newValue} is not an allowed sorting value.`);
3407
3402
  return;
3408
3403
  }
3409
3404
  if (oldValue !== null && oldValue !== "") {
@@ -5666,7 +5661,6 @@ function configureCellBackgroundColor(el) {
5666
5661
  }
5667
5662
  function updateVariant(element, oldValue, newValue) {
5668
5663
  if (!checkName(cellVariantValues, newValue)) {
5669
- log(`${newValue} is not an allowed variant value.`);
5670
5664
  return;
5671
5665
  }
5672
5666
  if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
@@ -7923,11 +7917,7 @@ class Radiogroup extends WithExtraAttributes {
7923
7917
  setupErrorState() {
7924
7918
  var _a;
7925
7919
  const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
7926
- if (this.state === "error" && !hasErrorText) {
7927
- log(
7928
- '<px-radiogroup> with state="error" requires a slot="error-text" containing the error description.'
7929
- );
7930
- }
7920
+ if (this.state === "error" && !hasErrorText) ;
7931
7921
  if (this.state === "error" && hasErrorText) {
7932
7922
  this.$el.setAttribute("state", "error");
7933
7923
  this.$radioList.forEach((child) => {
@@ -10109,9 +10099,6 @@ class Dropdown extends WithExtraAttributes {
10109
10099
  if (anchorAlignmentValues.includes(value)) {
10110
10100
  this.setAttribute("anchoralignment", value);
10111
10101
  } else {
10112
- log(
10113
- `Invalid anchor alignment value: ${value}. Using default ${defaultAnchorAlignment}.`
10114
- );
10115
10102
  this.setAttribute("anchoralignment", defaultAnchorAlignment);
10116
10103
  }
10117
10104
  }
@@ -10215,11 +10202,7 @@ const _Fieldset = class _Fieldset extends PxElement {
10215
10202
  setupErrorState() {
10216
10203
  var _a;
10217
10204
  const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
10218
- if (this.state === "error" && !hasErrorText) {
10219
- log(
10220
- '<px-fieldset> with state="error" requires a slot="error-text" containing the error description.'
10221
- );
10222
- }
10205
+ if (this.state === "error" && !hasErrorText) ;
10223
10206
  if (this.state === "error" && hasErrorText) {
10224
10207
  const id = Math.random().toString(36).substr(2, 9);
10225
10208
  this.$el.setAttribute("id", id);