@proximus/lavender 1.4.6-beta.1 → 1.4.6
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;
|
|
@@ -3048,7 +3045,6 @@ const _ActionLink = class _ActionLink extends PxElement {
|
|
|
3048
3045
|
}
|
|
3049
3046
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
3050
3047
|
if ((name === "icon-name" || name === "icon-from" || name === "label") && !newValue) {
|
|
3051
|
-
log(`Action link needs a value from the attribute ${name}`);
|
|
3052
3048
|
throw new Error(`Action link needs a value from the attribute ${name}`);
|
|
3053
3049
|
}
|
|
3054
3050
|
if (name === "icon-name") {
|
|
@@ -3219,7 +3215,6 @@ const _AgGridTableThButton = class _AgGridTableThButton extends PxElement {
|
|
|
3219
3215
|
updateSorting(oldValue, newValue, attrValue) {
|
|
3220
3216
|
var _a, _b;
|
|
3221
3217
|
if (!checkName(attrValue, newValue)) {
|
|
3222
|
-
log(`${newValue} is not an allowed sorting value.`);
|
|
3223
3218
|
return;
|
|
3224
3219
|
}
|
|
3225
3220
|
if (oldValue !== null && oldValue !== "") {
|
|
@@ -5424,7 +5419,6 @@ function configureCellBackgroundColor(el) {
|
|
|
5424
5419
|
}
|
|
5425
5420
|
function updateVariant(element, oldValue, newValue) {
|
|
5426
5421
|
if (!checkName(cellVariantValues, newValue)) {
|
|
5427
|
-
log(`${newValue} is not an allowed variant value.`);
|
|
5428
5422
|
return;
|
|
5429
5423
|
}
|
|
5430
5424
|
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
@@ -7681,11 +7675,7 @@ class Radiogroup extends WithExtraAttributes {
|
|
|
7681
7675
|
setupErrorState() {
|
|
7682
7676
|
var _a;
|
|
7683
7677
|
const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
|
|
7684
|
-
if (this.state === "error" && !hasErrorText)
|
|
7685
|
-
log(
|
|
7686
|
-
'<px-radiogroup> with state="error" requires a slot="error-text" containing the error description.'
|
|
7687
|
-
);
|
|
7688
|
-
}
|
|
7678
|
+
if (this.state === "error" && !hasErrorText) ;
|
|
7689
7679
|
if (this.state === "error" && hasErrorText) {
|
|
7690
7680
|
this.$el.setAttribute("state", "error");
|
|
7691
7681
|
this.$radioList.forEach((child) => {
|
|
@@ -9817,9 +9807,6 @@ class Dropdown extends WithExtraAttributes {
|
|
|
9817
9807
|
if (anchorAlignmentValues.includes(value)) {
|
|
9818
9808
|
this.setAttribute("anchoralignment", value);
|
|
9819
9809
|
} else {
|
|
9820
|
-
log(
|
|
9821
|
-
`Invalid anchor alignment value: ${value}. Using default ${defaultAnchorAlignment}.`
|
|
9822
|
-
);
|
|
9823
9810
|
this.setAttribute("anchoralignment", defaultAnchorAlignment);
|
|
9824
9811
|
}
|
|
9825
9812
|
}
|
|
@@ -9923,11 +9910,7 @@ const _Fieldset = class _Fieldset extends PxElement {
|
|
|
9923
9910
|
setupErrorState() {
|
|
9924
9911
|
var _a;
|
|
9925
9912
|
const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
|
|
9926
|
-
if (this.state === "error" && !hasErrorText)
|
|
9927
|
-
log(
|
|
9928
|
-
'<px-fieldset> with state="error" requires a slot="error-text" containing the error description.'
|
|
9929
|
-
);
|
|
9930
|
-
}
|
|
9913
|
+
if (this.state === "error" && !hasErrorText) ;
|
|
9931
9914
|
if (this.state === "error" && hasErrorText) {
|
|
9932
9915
|
const id = Math.random().toString(36).substr(2, 9);
|
|
9933
9916
|
this.$el.setAttribute("id", id);
|