@proximus/lavender 1.4.3-beta.1 → 1.4.3
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 +4 -21
- 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;
|
|
@@ -2997,7 +2994,6 @@ const _ActionLink = class _ActionLink extends PxElement {
|
|
|
2997
2994
|
}
|
|
2998
2995
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
2999
2996
|
if ((name === "icon-name" || name === "icon-from" || name === "label") && !newValue) {
|
|
3000
|
-
log(`Action link needs a value from the attribute ${name}`);
|
|
3001
2997
|
throw new Error(`Action link needs a value from the attribute ${name}`);
|
|
3002
2998
|
}
|
|
3003
2999
|
if (name === "icon-name") {
|
|
@@ -3168,7 +3164,6 @@ const _AgGridTableThButton = class _AgGridTableThButton extends PxElement {
|
|
|
3168
3164
|
updateSorting(oldValue, newValue, attrValue) {
|
|
3169
3165
|
var _a, _b;
|
|
3170
3166
|
if (!checkName(attrValue, newValue)) {
|
|
3171
|
-
log(`${newValue} is not an allowed sorting value.`);
|
|
3172
3167
|
return;
|
|
3173
3168
|
}
|
|
3174
3169
|
if (oldValue !== null && oldValue !== "") {
|
|
@@ -5358,7 +5353,6 @@ function configureCellBackgroundColor(el) {
|
|
|
5358
5353
|
}
|
|
5359
5354
|
function updateVariant(element, oldValue, newValue) {
|
|
5360
5355
|
if (!checkName(cellVariantValues, newValue)) {
|
|
5361
|
-
log(`${newValue} is not an allowed variant value.`);
|
|
5362
5356
|
return;
|
|
5363
5357
|
}
|
|
5364
5358
|
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
@@ -7615,11 +7609,7 @@ class Radiogroup extends WithExtraAttributes {
|
|
|
7615
7609
|
setupErrorState() {
|
|
7616
7610
|
var _a;
|
|
7617
7611
|
const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
|
|
7618
|
-
if (this.state === "error" && !hasErrorText)
|
|
7619
|
-
log(
|
|
7620
|
-
'<px-radiogroup> with state="error" requires a slot="error-text" containing the error description.'
|
|
7621
|
-
);
|
|
7622
|
-
}
|
|
7612
|
+
if (this.state === "error" && !hasErrorText) ;
|
|
7623
7613
|
if (this.state === "error" && hasErrorText) {
|
|
7624
7614
|
this.$el.setAttribute("state", "error");
|
|
7625
7615
|
this.$radioList.forEach((child) => {
|
|
@@ -9723,9 +9713,6 @@ class Dropdown extends WithExtraAttributes {
|
|
|
9723
9713
|
if (anchorAlignmentValues.includes(value)) {
|
|
9724
9714
|
this.setAttribute("anchoralignment", value);
|
|
9725
9715
|
} else {
|
|
9726
|
-
log(
|
|
9727
|
-
`Invalid anchor alignment value: ${value}. Using default ${defaultAnchorAlignment}.`
|
|
9728
|
-
);
|
|
9729
9716
|
this.setAttribute("anchoralignment", defaultAnchorAlignment);
|
|
9730
9717
|
}
|
|
9731
9718
|
}
|
|
@@ -9829,11 +9816,7 @@ const _Fieldset = class _Fieldset extends PxElement {
|
|
|
9829
9816
|
setupErrorState() {
|
|
9830
9817
|
var _a;
|
|
9831
9818
|
const hasErrorText = ((_a = this.$slotError) == null ? void 0 : _a.assignedNodes().length) > 0;
|
|
9832
|
-
if (this.state === "error" && !hasErrorText)
|
|
9833
|
-
log(
|
|
9834
|
-
'<px-fieldset> with state="error" requires a slot="error-text" containing the error description.'
|
|
9835
|
-
);
|
|
9836
|
-
}
|
|
9819
|
+
if (this.state === "error" && !hasErrorText) ;
|
|
9837
9820
|
if (this.state === "error" && hasErrorText) {
|
|
9838
9821
|
const id = Math.random().toString(36).substr(2, 9);
|
|
9839
9822
|
this.$el.setAttribute("id", id);
|
|
@@ -12432,7 +12415,7 @@ class MddSectionItem extends HTMLElement {
|
|
|
12432
12415
|
if (!customElements.get("px-mdd-section-item")) {
|
|
12433
12416
|
customElements.define("px-mdd-section-item", MddSectionItem);
|
|
12434
12417
|
}
|
|
12435
|
-
const styles$j = "*{box-sizing:border-box}#container{
|
|
12418
|
+
const styles$j = "*{box-sizing:border-box}#container{display:flex;flex-wrap:nowrap;font-family:var(--px-font-family);font-size:var(--px-font-size-base);color:var(--px-color-text-neutral-default);width:1080px;border-radius:var(--px-radius-main);background-color:var(--px-color-background-surface-default);overflow:hidden}#container.info{border-left:5px var(--px-color-icon-brand-default) solid}#container.success{border-left:5px var(--px-color-icon-purpose-success-default) solid}#container.warning{border-left:5px var(--px-color-icon-purpose-warning-default) solid}#container.error{border-left:5px var(--px-color-icon-purpose-error-default) solid}#content-container{padding:var(--px-padding-m-mobile);flex-grow:1}#media-container{display:none}::slotted(px-button-icon){position:absolute;top:var(--px-padding-m-desktop);right:var(--px-padding-m-desktop)}dialog{background:transparent;border-radius:0;box-shadow:none;padding:0;border:0;box-sizing:border-box;transform:scale(.95);animation:modalIn .3s ease-out forwards}::backdrop{background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}#content{max-height:12.5em;overflow:auto}@media screen and (max-width: 1081px){#container{width:inherit}#content-container{padding:var(--px-padding-m-mobile)}::slotted(px-button-icon){top:var(--px-padding-m-mobile);right:var(--px-padding-m-mobile)}}@media only screen and (min-width: 48em){::slotted(px-button-icon){position:absolute;top:var(--px-padding-m-tablet);right:var(--px-padding-m-tablet)}#content{max-height:25em}}@media only screen and (min-width: 64.0625em){:host([media-src]) #media-container{display:block;background-size:cover;background-position:center center;background-repeat:no-repeat;flex-basis:25em;flex-shrink:0}}@keyframes modalIn{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}";
|
|
12436
12419
|
const styleSheet$j = new CSSStyleSheet();
|
|
12437
12420
|
styleSheet$j.replaceSync(styles$j);
|
|
12438
12421
|
const CLOSE_EVENT$1 = "px.lavender.modal.close";
|