@proximus/lavender 1.4.8-beta.2 → 1.4.8

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) {
@@ -3227,7 +3224,6 @@ const _ActionLink = class _ActionLink extends PxElement {
3227
3224
  }
3228
3225
  attributeChangedCallback(name, oldValue, newValue) {
3229
3226
  if ((name === "icon-name" || name === "icon-from" || name === "label") && !newValue) {
3230
- log(`Action link needs a value from the attribute ${name}`);
3231
3227
  throw new Error(`Action link needs a value from the attribute ${name}`);
3232
3228
  }
3233
3229
  if (name === "icon-name") {
@@ -3398,7 +3394,6 @@ const _AgGridTableThButton = class _AgGridTableThButton extends PxElement {
3398
3394
  updateSorting(oldValue, newValue, attrValue) {
3399
3395
  var _a, _b;
3400
3396
  if (!checkName(attrValue, newValue)) {
3401
- log(`${newValue} is not an allowed sorting value.`);
3402
3397
  return;
3403
3398
  }
3404
3399
  if (oldValue !== null && oldValue !== "") {
@@ -5702,7 +5697,6 @@ function configureCellBackgroundColor(el) {
5702
5697
  }
5703
5698
  function updateVariant(element, oldValue, newValue) {
5704
5699
  if (!checkName(cellVariantValues, newValue)) {
5705
- log(`${newValue} is not an allowed variant value.`);
5706
5700
  return;
5707
5701
  }
5708
5702
  if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
@@ -7959,11 +7953,7 @@ class Radiogroup extends WithExtraAttributes {
7959
7953
  setupErrorState() {
7960
7954
  var _a;
7961
7955
  const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
7962
- if (this.state === "error" && !hasErrorText) {
7963
- log(
7964
- '<px-radiogroup> with state="error" requires a slot="error-text" containing the error description.'
7965
- );
7966
- }
7956
+ if (this.state === "error" && !hasErrorText) ;
7967
7957
  if (this.state === "error" && hasErrorText) {
7968
7958
  this.$el.setAttribute("state", "error");
7969
7959
  this.$radioList.forEach((child) => {
@@ -10140,9 +10130,6 @@ class Dropdown extends WithExtraAttributes {
10140
10130
  if (anchorAlignmentValues.includes(value)) {
10141
10131
  this.setAttribute("anchoralignment", value);
10142
10132
  } else {
10143
- log(
10144
- `Invalid anchor alignment value: ${value}. Using default ${defaultAnchorAlignment}.`
10145
- );
10146
10133
  this.setAttribute("anchoralignment", defaultAnchorAlignment);
10147
10134
  }
10148
10135
  }
@@ -10246,11 +10233,7 @@ const _Fieldset = class _Fieldset extends PxElement {
10246
10233
  setupErrorState() {
10247
10234
  var _a;
10248
10235
  const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
10249
- if (this.state === "error" && !hasErrorText) {
10250
- log(
10251
- '<px-fieldset> with state="error" requires a slot="error-text" containing the error description.'
10252
- );
10253
- }
10236
+ if (this.state === "error" && !hasErrorText) ;
10254
10237
  if (this.state === "error" && hasErrorText) {
10255
10238
  const id = Math.random().toString(36).substr(2, 9);
10256
10239
  this.$el.setAttribute("id", id);