@proximus/lavender 1.4.5-beta.1 → 1.4.5
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/lavender.cjs.js +1 -1
- package/dist/lavender.es.js +3 -20
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -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" &&
|
|
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;
|
|
@@ -3012,7 +3009,6 @@ const _ActionLink = class _ActionLink extends PxElement {
|
|
|
3012
3009
|
}
|
|
3013
3010
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
3014
3011
|
if ((name === "icon-name" || name === "icon-from" || name === "label") && !newValue) {
|
|
3015
|
-
log(`Action link needs a value from the attribute ${name}`);
|
|
3016
3012
|
throw new Error(`Action link needs a value from the attribute ${name}`);
|
|
3017
3013
|
}
|
|
3018
3014
|
if (name === "icon-name") {
|
|
@@ -3183,7 +3179,6 @@ const _AgGridTableThButton = class _AgGridTableThButton extends PxElement {
|
|
|
3183
3179
|
updateSorting(oldValue, newValue, attrValue) {
|
|
3184
3180
|
var _a, _b;
|
|
3185
3181
|
if (!checkName(attrValue, newValue)) {
|
|
3186
|
-
log(`${newValue} is not an allowed sorting value.`);
|
|
3187
3182
|
return;
|
|
3188
3183
|
}
|
|
3189
3184
|
if (oldValue !== null && oldValue !== "") {
|
|
@@ -5377,7 +5372,6 @@ function configureCellBackgroundColor(el) {
|
|
|
5377
5372
|
}
|
|
5378
5373
|
function updateVariant(element, oldValue, newValue) {
|
|
5379
5374
|
if (!checkName(cellVariantValues, newValue)) {
|
|
5380
|
-
log(`${newValue} is not an allowed variant value.`);
|
|
5381
5375
|
return;
|
|
5382
5376
|
}
|
|
5383
5377
|
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
@@ -7634,11 +7628,7 @@ class Radiogroup extends WithExtraAttributes {
|
|
|
7634
7628
|
setupErrorState() {
|
|
7635
7629
|
var _a;
|
|
7636
7630
|
const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
|
|
7637
|
-
if (this.state === "error" && !hasErrorText)
|
|
7638
|
-
log(
|
|
7639
|
-
'<px-radiogroup> with state="error" requires a slot="error-text" containing the error description.'
|
|
7640
|
-
);
|
|
7641
|
-
}
|
|
7631
|
+
if (this.state === "error" && !hasErrorText) ;
|
|
7642
7632
|
if (this.state === "error" && hasErrorText) {
|
|
7643
7633
|
this.$el.setAttribute("state", "error");
|
|
7644
7634
|
this.$radioList.forEach((child) => {
|
|
@@ -9770,9 +9760,6 @@ class Dropdown extends WithExtraAttributes {
|
|
|
9770
9760
|
if (anchorAlignmentValues.includes(value)) {
|
|
9771
9761
|
this.setAttribute("anchoralignment", value);
|
|
9772
9762
|
} else {
|
|
9773
|
-
log(
|
|
9774
|
-
`Invalid anchor alignment value: ${value}. Using default ${defaultAnchorAlignment}.`
|
|
9775
|
-
);
|
|
9776
9763
|
this.setAttribute("anchoralignment", defaultAnchorAlignment);
|
|
9777
9764
|
}
|
|
9778
9765
|
}
|
|
@@ -9876,11 +9863,7 @@ const _Fieldset = class _Fieldset extends PxElement {
|
|
|
9876
9863
|
setupErrorState() {
|
|
9877
9864
|
var _a;
|
|
9878
9865
|
const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
|
|
9879
|
-
if (this.state === "error" && !hasErrorText)
|
|
9880
|
-
log(
|
|
9881
|
-
'<px-fieldset> with state="error" requires a slot="error-text" containing the error description.'
|
|
9882
|
-
);
|
|
9883
|
-
}
|
|
9866
|
+
if (this.state === "error" && !hasErrorText) ;
|
|
9884
9867
|
if (this.state === "error" && hasErrorText) {
|
|
9885
9868
|
const id = Math.random().toString(36).substr(2, 9);
|
|
9886
9869
|
this.$el.setAttribute("id", id);
|