@proximus/lavender 2.0.0-alpha.100 → 2.0.0-alpha.101
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 +85 -76
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -9,7 +9,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
9
9
|
var _host, _interactiveElement, _canSetInteractiveState, _isConnected, _showInteractiveState, _WrappedInteractiveStateController_instances, interactiveStateTargets_get, _src, _internals, _template, _Banner_instances, applyReducedPadding_fn, _Breadcrumb_instances, applyInverted_fn, _wrappedInteractiveStateController, _ButtonWrapper_instances, canSetWrappedInteractiveState_fn, _Card_instances, updateMediaPosition_fn, updateMedia_fn, updateBackgroundColor_fn, _Carousel_instances, syncItems_fn, _Dropdown_instances, resetManualPopoverDisplay_fn, _beforeToggle, _onToggle, handleManualPopoverDisplay_fn, _wrappedInteractiveStateController2, _LinkWrapper_instances, canSetWrappedInteractiveState_fn2, _onResize, _Header_instances, setMDDDialogOffset_fn, togglePanel_fn, showMobileMenu_fn, hideMobileMenu_fn, hidePanel_fn, $mobileMenu_get, $navigationItems_get, $headerWrapper_get, $megaDropdowns_get, _template2, _HeaderMobileMenu_instances, createMobileMenuPanelDropDowns_fn, _Select_instances, updateOptions_fn, _List_instances, syncChildren_fn, applyInverted_fn2, applyVariant_fn, _mutationObserver, _MegaDropDown_instances, $backButton_get, $title_get, $footer_get, $closeButtons_get, _CardContainer_instances, updateImageSrc_fn, applyAspectRatio_fn, syncBackgroundColor_fn, syncBorder_fn, syncDefaultBackgroundColor_fn, syncDefaultBorder_fn, syncInteractiveState_fn, hasInteractiveState_fn, syncInvertedOnChildren_fn, setOrRemove_fn, _Tabs_instances, handleInverted_fn, handleHideControls_fn, _Timeline_instances, applyInverted_fn3;
|
|
10
10
|
const styles$N = ':host{display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media screen and (max-width: 47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (min-width: 48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (min-width: 48rem) and (max-width: 64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (min-width: 64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (min-width: 64.0625rem) and (max-width: 90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media screen and (min-width: 90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}';
|
|
11
11
|
const commonStyles = ":host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted(*[shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media screen and (max-width: 47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted(*[shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 48rem) and (max-width: 64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted(*[shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 64.0625rem){:host([shown--sr--laptop]),::slotted(*[shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 64.0625rem){:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}@media screen and (min-width: 90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}}";
|
|
12
|
-
const __vite_import_meta_env__ = {};
|
|
12
|
+
const __vite_import_meta_env__ = { "DEV": true, "VITE_COMPONENT_DEBUG": "true" };
|
|
13
13
|
function getSupportedPropertyNames(htmlElementName) {
|
|
14
14
|
const $element = document.createElement(htmlElementName);
|
|
15
15
|
const inputPrototype = Object.getPrototypeOf($element);
|
|
@@ -24,7 +24,8 @@ function getSupportedAttributeNames(htmlElementName) {
|
|
|
24
24
|
}
|
|
25
25
|
const commonStyleSheet$c = new CSSStyleSheet();
|
|
26
26
|
commonStyleSheet$c.replaceSync(commonStyles);
|
|
27
|
-
const
|
|
27
|
+
const VITE_ENV = typeof import.meta !== "undefined" && typeof __vite_import_meta_env__ !== "undefined" ? __vite_import_meta_env__ : void 0;
|
|
28
|
+
const PX_COMPONENT_DEBUG = (VITE_ENV == null ? void 0 : VITE_ENV.VITE_COMPONENT_DEBUG) === "true" || (VITE_ENV == null ? void 0 : VITE_ENV.DEV) === true;
|
|
28
29
|
if (typeof window !== "undefined") {
|
|
29
30
|
window.isComponentDebug = isComponentDebug;
|
|
30
31
|
}
|
|
@@ -267,7 +268,7 @@ class WithExtraAttributes extends HTMLElement {
|
|
|
267
268
|
if (attrValue) {
|
|
268
269
|
if (!this.checkName(attrValue, newValue)) {
|
|
269
270
|
log(
|
|
270
|
-
|
|
271
|
+
`"${newValue}" is not an allowed ${name} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
271
272
|
);
|
|
272
273
|
}
|
|
273
274
|
}
|
|
@@ -645,7 +646,9 @@ const flexboxAlignSelfValues = [
|
|
|
645
646
|
"default",
|
|
646
647
|
"auto",
|
|
647
648
|
"flex-start",
|
|
649
|
+
"start",
|
|
648
650
|
"flex-end",
|
|
651
|
+
"end",
|
|
649
652
|
"center",
|
|
650
653
|
"baseline",
|
|
651
654
|
"stretch"
|
|
@@ -1150,7 +1153,9 @@ const alignItemsValues = [
|
|
|
1150
1153
|
"default",
|
|
1151
1154
|
"stretch",
|
|
1152
1155
|
"flex-start",
|
|
1156
|
+
"start",
|
|
1153
1157
|
"flex-end",
|
|
1158
|
+
"end",
|
|
1154
1159
|
"center",
|
|
1155
1160
|
"baseline"
|
|
1156
1161
|
];
|
|
@@ -1158,7 +1163,9 @@ const justifyContentValues = [
|
|
|
1158
1163
|
"",
|
|
1159
1164
|
"default",
|
|
1160
1165
|
"flex-start",
|
|
1166
|
+
"start",
|
|
1161
1167
|
"flex-end",
|
|
1168
|
+
"end",
|
|
1162
1169
|
"center",
|
|
1163
1170
|
"space-between",
|
|
1164
1171
|
"space-around",
|
|
@@ -1292,7 +1299,7 @@ class Stack extends WithExtraAttributes {
|
|
|
1292
1299
|
updateOverflowX(name, oldValue, newValue, attrValue) {
|
|
1293
1300
|
if (!checkName(attrValue, newValue)) {
|
|
1294
1301
|
log(
|
|
1295
|
-
|
|
1302
|
+
`"${newValue}" is not a valid ${name} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
1296
1303
|
);
|
|
1297
1304
|
return;
|
|
1298
1305
|
}
|
|
@@ -1305,7 +1312,7 @@ class Stack extends WithExtraAttributes {
|
|
|
1305
1312
|
updateFlexProperties(name, oldValue, newValue, attrValue) {
|
|
1306
1313
|
if (!this.checkName(attrValue, newValue)) {
|
|
1307
1314
|
log(
|
|
1308
|
-
|
|
1315
|
+
`"${newValue}" is not a valid ${name} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
1309
1316
|
);
|
|
1310
1317
|
}
|
|
1311
1318
|
const hasBreakpoint = name.indexOf("--") > -1;
|
|
@@ -1962,7 +1969,7 @@ const _Accordion = class _Accordion extends PxElement {
|
|
|
1962
1969
|
}
|
|
1963
1970
|
if (!this.checkName(attrValues, newValue)) {
|
|
1964
1971
|
log(
|
|
1965
|
-
|
|
1972
|
+
`"${newValue}" is not an allowed ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValues.join('", "')}".`
|
|
1966
1973
|
);
|
|
1967
1974
|
}
|
|
1968
1975
|
}
|
|
@@ -1978,7 +1985,7 @@ const _Accordion = class _Accordion extends PxElement {
|
|
|
1978
1985
|
);
|
|
1979
1986
|
} else {
|
|
1980
1987
|
log(
|
|
1981
|
-
|
|
1988
|
+
`"${newValue}" is not an allowed ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
1982
1989
|
);
|
|
1983
1990
|
}
|
|
1984
1991
|
}
|
|
@@ -2313,7 +2320,7 @@ const _Span = class _Span extends PxElement {
|
|
|
2313
2320
|
}
|
|
2314
2321
|
if (!this.checkName(attrValue, newValue)) {
|
|
2315
2322
|
log(
|
|
2316
|
-
|
|
2323
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
2317
2324
|
);
|
|
2318
2325
|
}
|
|
2319
2326
|
}
|
|
@@ -2659,7 +2666,7 @@ const _Container = class _Container extends WithExtraAttributes {
|
|
|
2659
2666
|
);
|
|
2660
2667
|
} else {
|
|
2661
2668
|
log(
|
|
2662
|
-
|
|
2669
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${gradientValues.join('", "')}".`
|
|
2663
2670
|
);
|
|
2664
2671
|
}
|
|
2665
2672
|
}
|
|
@@ -2678,7 +2685,7 @@ const _Container = class _Container extends WithExtraAttributes {
|
|
|
2678
2685
|
);
|
|
2679
2686
|
} else {
|
|
2680
2687
|
log(
|
|
2681
|
-
|
|
2688
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${backgroundColorValues.join('", "')}".`
|
|
2682
2689
|
);
|
|
2683
2690
|
}
|
|
2684
2691
|
}
|
|
@@ -2694,14 +2701,14 @@ const _Container = class _Container extends WithExtraAttributes {
|
|
|
2694
2701
|
);
|
|
2695
2702
|
} else {
|
|
2696
2703
|
log(
|
|
2697
|
-
|
|
2704
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${borderColorValues.join('", "')}".`
|
|
2698
2705
|
);
|
|
2699
2706
|
}
|
|
2700
2707
|
}
|
|
2701
2708
|
updateNoBorderRadius(attrName, oldValue, newValue, attrValues) {
|
|
2702
2709
|
if (!this.checkName(attrValues, newValue)) {
|
|
2703
2710
|
log(
|
|
2704
|
-
|
|
2711
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValues.join('", "')}".`
|
|
2705
2712
|
);
|
|
2706
2713
|
} else {
|
|
2707
2714
|
const splitResult = this.splitAttrNameFromBreakpoint(attrName);
|
|
@@ -2721,7 +2728,7 @@ const _Container = class _Container extends WithExtraAttributes {
|
|
|
2721
2728
|
updateAttribute(attrName, oldValue, newValue, attrValues) {
|
|
2722
2729
|
if (!this.checkName(attrValues, newValue)) {
|
|
2723
2730
|
log(
|
|
2724
|
-
|
|
2731
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValues.join('", "')}".`
|
|
2725
2732
|
);
|
|
2726
2733
|
} else {
|
|
2727
2734
|
const splitResult = this.splitAttrNameFromBreakpoint(attrName);
|
|
@@ -2752,7 +2759,7 @@ const _Container = class _Container extends WithExtraAttributes {
|
|
|
2752
2759
|
updateAnchorOffset(oldValue, newValue, attrValue) {
|
|
2753
2760
|
if (!checkName(attrValue, newValue)) {
|
|
2754
2761
|
log(
|
|
2755
|
-
|
|
2762
|
+
`"${newValue}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
2756
2763
|
);
|
|
2757
2764
|
return;
|
|
2758
2765
|
}
|
|
@@ -2783,7 +2790,7 @@ const _Container = class _Container extends WithExtraAttributes {
|
|
|
2783
2790
|
updateAnchorSpacing(oldValue, newValue, attrValue) {
|
|
2784
2791
|
if (!checkName(attrValue, newValue)) {
|
|
2785
2792
|
log(
|
|
2786
|
-
|
|
2793
|
+
`"${newValue}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
2787
2794
|
);
|
|
2788
2795
|
return;
|
|
2789
2796
|
}
|
|
@@ -2813,7 +2820,7 @@ const _Container = class _Container extends WithExtraAttributes {
|
|
|
2813
2820
|
updateSubgridRows(attrName, oldValue, newValue, attrValues) {
|
|
2814
2821
|
if (!checkName(attrValues, newValue)) {
|
|
2815
2822
|
log(
|
|
2816
|
-
|
|
2823
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValues.join('", "')}".`
|
|
2817
2824
|
);
|
|
2818
2825
|
} else {
|
|
2819
2826
|
this.style.setProperty(`--${attrName}`, newValue);
|
|
@@ -3649,7 +3656,7 @@ const _Grid = class _Grid extends PxElement {
|
|
|
3649
3656
|
updateGap(oldValue, newValue, attrValue) {
|
|
3650
3657
|
if (!this.checkName(attrValue, newValue)) {
|
|
3651
3658
|
log(
|
|
3652
|
-
|
|
3659
|
+
`"${newValue}" is not a valid gap value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
3653
3660
|
);
|
|
3654
3661
|
return;
|
|
3655
3662
|
}
|
|
@@ -3675,7 +3682,7 @@ const _Grid = class _Grid extends PxElement {
|
|
|
3675
3682
|
updateAttribute(attrName, oldValue, newValue, attrValues) {
|
|
3676
3683
|
if (!this.checkName(attrValues, newValue)) {
|
|
3677
3684
|
log(
|
|
3678
|
-
|
|
3685
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValues.join('", "')}".`
|
|
3679
3686
|
);
|
|
3680
3687
|
} else if (attrName === "grid-cols" || attrName === "grid-cols--mobile" || attrName === "grid-cols--tablet" || attrName === "grid-cols--laptop" || attrName === "grid-cols--desktop") {
|
|
3681
3688
|
this.$el.style.setProperty(`--${attrName}`, newValue);
|
|
@@ -4518,7 +4525,7 @@ const _Button = class _Button extends PxElement {
|
|
|
4518
4525
|
this._toggleClass(oldValue, newValue);
|
|
4519
4526
|
if (!this.checkName(variantValues, newValue)) {
|
|
4520
4527
|
log(
|
|
4521
|
-
|
|
4528
|
+
`"${newValue}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${variantValues.join('", "')}".`
|
|
4522
4529
|
);
|
|
4523
4530
|
}
|
|
4524
4531
|
}
|
|
@@ -4527,7 +4534,7 @@ const _Button = class _Button extends PxElement {
|
|
|
4527
4534
|
this._toggleClass(oldValue, newValue);
|
|
4528
4535
|
if (!this.checkName(values, newValue)) {
|
|
4529
4536
|
log(
|
|
4530
|
-
|
|
4537
|
+
`"${newValue}" is not a valid state value for ${this.tagName.toLowerCase()}. Allowed values are: "${values.join('", "')}".`
|
|
4531
4538
|
);
|
|
4532
4539
|
}
|
|
4533
4540
|
}
|
|
@@ -4551,7 +4558,7 @@ const _Button = class _Button extends PxElement {
|
|
|
4551
4558
|
updateShape(attrName, newValue, attrValue) {
|
|
4552
4559
|
if (!checkName(attrValue, newValue)) {
|
|
4553
4560
|
log(
|
|
4554
|
-
|
|
4561
|
+
`"${newValue}" is not a valid shape value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
4555
4562
|
);
|
|
4556
4563
|
return;
|
|
4557
4564
|
}
|
|
@@ -4797,7 +4804,7 @@ const _ButtonIcon = class _ButtonIcon extends PxElement {
|
|
|
4797
4804
|
updateSize(oldValue, newValue) {
|
|
4798
4805
|
if (!this.checkName(buttonIconSizeValues, newValue)) {
|
|
4799
4806
|
log(
|
|
4800
|
-
|
|
4807
|
+
`"${newValue}" is not a valid size value for ${this.tagName.toLowerCase()}. Allowed values are: "${buttonIconSizeValues.join('", "')}".`
|
|
4801
4808
|
);
|
|
4802
4809
|
} else {
|
|
4803
4810
|
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
@@ -4811,7 +4818,7 @@ const _ButtonIcon = class _ButtonIcon extends PxElement {
|
|
|
4811
4818
|
updateVariant(oldValue, newValue) {
|
|
4812
4819
|
if (!this.checkName(buttonIconVariantValues, newValue)) {
|
|
4813
4820
|
log(
|
|
4814
|
-
|
|
4821
|
+
`"${newValue}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${buttonIconVariantValues.join('", "')}".`
|
|
4815
4822
|
);
|
|
4816
4823
|
} else {
|
|
4817
4824
|
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
@@ -5218,7 +5225,7 @@ updateMedia_fn = function(newValue, screenSize) {
|
|
|
5218
5225
|
updateBackgroundColor_fn = function(attrName, oldValue, newValue, attrValue) {
|
|
5219
5226
|
if (!checkName(attrValue, newValue)) {
|
|
5220
5227
|
log(
|
|
5221
|
-
|
|
5228
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
5222
5229
|
);
|
|
5223
5230
|
return;
|
|
5224
5231
|
}
|
|
@@ -5665,7 +5672,9 @@ function configureCellBackgroundColor(el) {
|
|
|
5665
5672
|
}
|
|
5666
5673
|
function updateVariant(element, oldValue, newValue) {
|
|
5667
5674
|
if (!checkName(cellVariantValues, newValue)) {
|
|
5668
|
-
log(
|
|
5675
|
+
log(
|
|
5676
|
+
`"${newValue}" is not a valid variant value for a cell. Allowed values are: "${cellVariantValues.join('", "')}".`
|
|
5677
|
+
);
|
|
5669
5678
|
return;
|
|
5670
5679
|
}
|
|
5671
5680
|
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
@@ -5697,7 +5706,7 @@ function handleCellInverted(cell, children, inverted, extraTargets = []) {
|
|
|
5697
5706
|
function updateBackgroundColor(el, attrName, oldValue, newValue, attrValue) {
|
|
5698
5707
|
if (!checkName(attrValue, newValue)) {
|
|
5699
5708
|
log(
|
|
5700
|
-
|
|
5709
|
+
`"${newValue}" is not a valid ${attrName} value for a cell. Allowed values are: "${attrValue.join('", "')}".`
|
|
5701
5710
|
);
|
|
5702
5711
|
return;
|
|
5703
5712
|
}
|
|
@@ -5883,7 +5892,7 @@ const _Cell = class _Cell extends PxElement {
|
|
|
5883
5892
|
updateRadius(attrName, oldValue, newValue, attrValues) {
|
|
5884
5893
|
if (!checkName(attrValues, newValue)) {
|
|
5885
5894
|
log(
|
|
5886
|
-
|
|
5895
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValues.join('", "')}".`
|
|
5887
5896
|
);
|
|
5888
5897
|
return;
|
|
5889
5898
|
}
|
|
@@ -6601,7 +6610,7 @@ const _Checkbox = class _Checkbox extends PxElement {
|
|
|
6601
6610
|
var _a, _b;
|
|
6602
6611
|
if (!this.checkName(attrValue, newValue)) {
|
|
6603
6612
|
log(
|
|
6604
|
-
|
|
6613
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
6605
6614
|
);
|
|
6606
6615
|
return;
|
|
6607
6616
|
}
|
|
@@ -6824,7 +6833,7 @@ class CellCheckbox extends WithExtraAttributes {
|
|
|
6824
6833
|
if (this.$checkbox) {
|
|
6825
6834
|
if (!this.checkName(checkboxStateValues, newValue)) {
|
|
6826
6835
|
log(
|
|
6827
|
-
|
|
6836
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${checkboxStateValues.join('", "')}".`
|
|
6828
6837
|
);
|
|
6829
6838
|
return;
|
|
6830
6839
|
} else {
|
|
@@ -6903,7 +6912,7 @@ class CellCheckbox extends WithExtraAttributes {
|
|
|
6903
6912
|
handleCheckboxPositionChange(newValue) {
|
|
6904
6913
|
if (!this.checkName(cellCheckboxPosition, newValue)) {
|
|
6905
6914
|
log(
|
|
6906
|
-
|
|
6915
|
+
`"${newValue}" is not a valid position value for ${this.tagName.toLowerCase()}. Allowed values are: "${cellCheckboxPosition.join('", "')}".`
|
|
6907
6916
|
);
|
|
6908
6917
|
return;
|
|
6909
6918
|
}
|
|
@@ -7622,7 +7631,7 @@ class Radio extends RadioBase {
|
|
|
7622
7631
|
var _a, _b;
|
|
7623
7632
|
if (!this.checkName(attrValue, newValue)) {
|
|
7624
7633
|
log(
|
|
7625
|
-
|
|
7634
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
7626
7635
|
);
|
|
7627
7636
|
return;
|
|
7628
7637
|
}
|
|
@@ -7875,7 +7884,7 @@ class Radiogroup extends WithExtraAttributes {
|
|
|
7875
7884
|
updateVariant(oldValue, newValue, attrValue) {
|
|
7876
7885
|
if (!this.checkName(attrValue, newValue)) {
|
|
7877
7886
|
log(
|
|
7878
|
-
|
|
7887
|
+
`"${newValue}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
7879
7888
|
);
|
|
7880
7889
|
return;
|
|
7881
7890
|
}
|
|
@@ -7892,7 +7901,7 @@ class Radiogroup extends WithExtraAttributes {
|
|
|
7892
7901
|
updateGap(oldValue, newValue, attrValue) {
|
|
7893
7902
|
if (!this.checkName(attrValue, newValue)) {
|
|
7894
7903
|
log(
|
|
7895
|
-
|
|
7904
|
+
`"${newValue}" is not a valid gap value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
7896
7905
|
);
|
|
7897
7906
|
return;
|
|
7898
7907
|
}
|
|
@@ -8134,7 +8143,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
8134
8143
|
if (this.$radio) {
|
|
8135
8144
|
if (!this.checkName(stateValues, newValue)) {
|
|
8136
8145
|
log(
|
|
8137
|
-
|
|
8146
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${stateValues.join('", "')}".`
|
|
8138
8147
|
);
|
|
8139
8148
|
return;
|
|
8140
8149
|
} else {
|
|
@@ -8215,7 +8224,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
8215
8224
|
handleRadioPositionChange(newValue) {
|
|
8216
8225
|
if (!this.checkName(cellRadioPosition, newValue)) {
|
|
8217
8226
|
log(
|
|
8218
|
-
|
|
8227
|
+
`"${newValue}" is not a valid position value for ${this.tagName.toLowerCase()}. Allowed values are: "${cellRadioPosition.join('", "')}".`
|
|
8219
8228
|
);
|
|
8220
8229
|
return;
|
|
8221
8230
|
}
|
|
@@ -8468,7 +8477,7 @@ const _ColorOption = class _ColorOption extends PxElement {
|
|
|
8468
8477
|
updateSize(attrName, oldValue, newValue, attrValues) {
|
|
8469
8478
|
if (!checkName(attrValues, newValue)) {
|
|
8470
8479
|
log(
|
|
8471
|
-
|
|
8480
|
+
`"${newValue}" is not a valid ${attrName} value for a color option. Allowed values are: "${attrValues.join('", "')}".`
|
|
8472
8481
|
);
|
|
8473
8482
|
return;
|
|
8474
8483
|
}
|
|
@@ -9052,7 +9061,7 @@ class AbstractHeading extends PxElement {
|
|
|
9052
9061
|
updateAttribute(attrName, oldValue, newValue, attrValue) {
|
|
9053
9062
|
if (!this.checkName(attrValue, newValue)) {
|
|
9054
9063
|
log(
|
|
9055
|
-
|
|
9064
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
9056
9065
|
);
|
|
9057
9066
|
} else {
|
|
9058
9067
|
this.toggleClass(oldValue, newValue);
|
|
@@ -9061,7 +9070,7 @@ class AbstractHeading extends PxElement {
|
|
|
9061
9070
|
updateColor(oldValue, newValue, attrValue) {
|
|
9062
9071
|
if (!this.checkName(attrValue, newValue)) {
|
|
9063
9072
|
log(
|
|
9064
|
-
|
|
9073
|
+
`"${newValue}" is not a valid color value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
9065
9074
|
);
|
|
9066
9075
|
return;
|
|
9067
9076
|
}
|
|
@@ -9083,7 +9092,7 @@ class AbstractHeading extends PxElement {
|
|
|
9083
9092
|
updateTextAlign(attrName, oldValue, newValue, attrValue) {
|
|
9084
9093
|
if (!this.checkName(attrValue, newValue)) {
|
|
9085
9094
|
log(
|
|
9086
|
-
|
|
9095
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
9087
9096
|
);
|
|
9088
9097
|
return;
|
|
9089
9098
|
}
|
|
@@ -9620,7 +9629,7 @@ const _Separator = class _Separator extends PxElement {
|
|
|
9620
9629
|
};
|
|
9621
9630
|
if (!this.checkName(attrValue, newValue)) {
|
|
9622
9631
|
log(
|
|
9623
|
-
|
|
9632
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
9624
9633
|
);
|
|
9625
9634
|
} else {
|
|
9626
9635
|
updateSizeStyle(oldValue);
|
|
@@ -9642,7 +9651,7 @@ const _Separator = class _Separator extends PxElement {
|
|
|
9642
9651
|
};
|
|
9643
9652
|
if (!this.checkName(attrValue, newValue)) {
|
|
9644
9653
|
log(
|
|
9645
|
-
|
|
9654
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
9646
9655
|
);
|
|
9647
9656
|
} else {
|
|
9648
9657
|
updateColorStyle(oldValue);
|
|
@@ -9657,7 +9666,7 @@ const _Separator = class _Separator extends PxElement {
|
|
|
9657
9666
|
};
|
|
9658
9667
|
if (!this.checkName(attrValue, newValue)) {
|
|
9659
9668
|
log(
|
|
9660
|
-
|
|
9669
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
9661
9670
|
);
|
|
9662
9671
|
} else {
|
|
9663
9672
|
if (attrName === "direction") {
|
|
@@ -10530,7 +10539,7 @@ const _Link = class _Link extends PxElement {
|
|
|
10530
10539
|
}
|
|
10531
10540
|
if (!this.checkName(linkVariantValues, newValue)) {
|
|
10532
10541
|
log(
|
|
10533
|
-
|
|
10542
|
+
`"${newValue}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${linkVariantValues.join('", "')}".`
|
|
10534
10543
|
);
|
|
10535
10544
|
}
|
|
10536
10545
|
if (newValue === "icon-link") {
|
|
@@ -10540,7 +10549,7 @@ const _Link = class _Link extends PxElement {
|
|
|
10540
10549
|
updateShape(attrName, newValue, attrValue) {
|
|
10541
10550
|
if (!checkName(attrValue, newValue)) {
|
|
10542
10551
|
log(
|
|
10543
|
-
|
|
10552
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
10544
10553
|
);
|
|
10545
10554
|
return;
|
|
10546
10555
|
}
|
|
@@ -10557,7 +10566,7 @@ const _Link = class _Link extends PxElement {
|
|
|
10557
10566
|
}
|
|
10558
10567
|
if (!this.checkName(attrValue, newValue)) {
|
|
10559
10568
|
log(
|
|
10560
|
-
|
|
10569
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
10561
10570
|
);
|
|
10562
10571
|
}
|
|
10563
10572
|
}
|
|
@@ -10804,7 +10813,7 @@ const _Paragraph = class _Paragraph extends PxElement {
|
|
|
10804
10813
|
updateVariant(attrName, oldValue, newValue, attrValue) {
|
|
10805
10814
|
if (!this.checkName(attrValue, newValue)) {
|
|
10806
10815
|
log(
|
|
10807
|
-
|
|
10816
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
10808
10817
|
);
|
|
10809
10818
|
} else {
|
|
10810
10819
|
this.toggleClass(oldValue, newValue);
|
|
@@ -10813,7 +10822,7 @@ const _Paragraph = class _Paragraph extends PxElement {
|
|
|
10813
10822
|
updateTypography(attrName, oldValue, newValue, attrValue) {
|
|
10814
10823
|
if (!this.checkName(attrValue, newValue)) {
|
|
10815
10824
|
log(
|
|
10816
|
-
|
|
10825
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
10817
10826
|
);
|
|
10818
10827
|
} else {
|
|
10819
10828
|
const splitResult = this.splitAttrNameFromBreakpoint(attrName);
|
|
@@ -11613,7 +11622,7 @@ const _AbstractImage = class _AbstractImage extends PxElement {
|
|
|
11613
11622
|
updateWidth(attrName, oldValue, newValue, attrValues) {
|
|
11614
11623
|
if (!this.checkName(attrValues, newValue)) {
|
|
11615
11624
|
log(
|
|
11616
|
-
|
|
11625
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValues.join('", "')}".`
|
|
11617
11626
|
);
|
|
11618
11627
|
return;
|
|
11619
11628
|
}
|
|
@@ -11654,7 +11663,7 @@ const _AbstractImage = class _AbstractImage extends PxElement {
|
|
|
11654
11663
|
updateAttribute(attrName, oldValue, newValue, attrValues) {
|
|
11655
11664
|
if (!this.checkName(attrValues, newValue)) {
|
|
11656
11665
|
log(
|
|
11657
|
-
|
|
11666
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValues.join('", "')}".`
|
|
11658
11667
|
);
|
|
11659
11668
|
} else {
|
|
11660
11669
|
const splitResult = this.splitAttrNameFromBreakpoint(attrName);
|
|
@@ -12451,7 +12460,7 @@ const _List = class _List extends PxElement {
|
|
|
12451
12460
|
case "variant":
|
|
12452
12461
|
if (!this.checkName(listVariantValues, newValue)) {
|
|
12453
12462
|
log(
|
|
12454
|
-
|
|
12463
|
+
`"${newValue}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${listVariantValues.join('", "')}".`
|
|
12455
12464
|
);
|
|
12456
12465
|
}
|
|
12457
12466
|
if (this.isConnected) {
|
|
@@ -13438,14 +13447,14 @@ class Patch extends HTMLElement {
|
|
|
13438
13447
|
this._toggleClass(oldValue, newValue);
|
|
13439
13448
|
if (!this.checkName(patchVariantValues, newValue)) {
|
|
13440
13449
|
log(
|
|
13441
|
-
|
|
13450
|
+
`"${newValue}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${patchVariantValues.join('", "')}".`
|
|
13442
13451
|
);
|
|
13443
13452
|
}
|
|
13444
13453
|
}
|
|
13445
13454
|
updateShape(attrName, newValue, attrValue) {
|
|
13446
13455
|
if (!this.checkName(attrValue, newValue)) {
|
|
13447
13456
|
log(
|
|
13448
|
-
|
|
13457
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
13449
13458
|
);
|
|
13450
13459
|
return;
|
|
13451
13460
|
}
|
|
@@ -13562,7 +13571,7 @@ class Pillar extends WithExtraAttributes {
|
|
|
13562
13571
|
updateAlignment(attrName, oldValue, newValue) {
|
|
13563
13572
|
if (!this.checkName(pillarAlignmentValues, newValue)) {
|
|
13564
13573
|
log(
|
|
13565
|
-
|
|
13574
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${pillarAlignmentValues.join('", "')}".`
|
|
13566
13575
|
);
|
|
13567
13576
|
return;
|
|
13568
13577
|
}
|
|
@@ -13581,7 +13590,7 @@ class Pillar extends WithExtraAttributes {
|
|
|
13581
13590
|
updateVariant(attrName, oldValue, newValue) {
|
|
13582
13591
|
if (!this.checkName(pillarVariantValues, newValue)) {
|
|
13583
13592
|
log(
|
|
13584
|
-
|
|
13593
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${pillarVariantValues.join('", "')}".`
|
|
13585
13594
|
);
|
|
13586
13595
|
return;
|
|
13587
13596
|
}
|
|
@@ -14063,7 +14072,7 @@ const _Price = class _Price extends PxElement {
|
|
|
14063
14072
|
this.toggleClass(oldValue, newValue);
|
|
14064
14073
|
if (!this.checkName(attrValues, newValue)) {
|
|
14065
14074
|
log(
|
|
14066
|
-
|
|
14075
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValues.join('", "')}".`
|
|
14067
14076
|
);
|
|
14068
14077
|
}
|
|
14069
14078
|
}
|
|
@@ -14385,14 +14394,14 @@ class SelectableBoxCheckbox extends WithExtraAttributes {
|
|
|
14385
14394
|
if (this.$checkbox) {
|
|
14386
14395
|
this.$checkbox.setAttribute("checked", "");
|
|
14387
14396
|
}
|
|
14388
|
-
this.dispatchEvent(
|
|
14389
|
-
new Event("change", {
|
|
14390
|
-
bubbles: true,
|
|
14391
|
-
composed: true
|
|
14392
|
-
// Allow the event to pass through shadow DOM boundaries
|
|
14393
|
-
})
|
|
14394
|
-
);
|
|
14395
14397
|
}
|
|
14398
|
+
this.dispatchEvent(
|
|
14399
|
+
new Event("change", {
|
|
14400
|
+
bubbles: true,
|
|
14401
|
+
composed: true
|
|
14402
|
+
// Allow the event to pass through shadow DOM boundaries
|
|
14403
|
+
})
|
|
14404
|
+
);
|
|
14396
14405
|
}
|
|
14397
14406
|
// Form-associated callbacks
|
|
14398
14407
|
static get formAssociated() {
|
|
@@ -14659,14 +14668,14 @@ class SelectableBoxRadio extends WithExtraAttributes {
|
|
|
14659
14668
|
if (this.$radio) {
|
|
14660
14669
|
this.$radio.setAttribute("checked", "");
|
|
14661
14670
|
}
|
|
14662
|
-
this.dispatchEvent(
|
|
14663
|
-
new Event("change", {
|
|
14664
|
-
bubbles: true,
|
|
14665
|
-
composed: true
|
|
14666
|
-
// Allow the event to pass through shadow DOM boundaries
|
|
14667
|
-
})
|
|
14668
|
-
);
|
|
14669
14671
|
}
|
|
14672
|
+
this.dispatchEvent(
|
|
14673
|
+
new Event("change", {
|
|
14674
|
+
bubbles: true,
|
|
14675
|
+
composed: true
|
|
14676
|
+
// Allow the event to pass through shadow DOM boundaries
|
|
14677
|
+
})
|
|
14678
|
+
);
|
|
14670
14679
|
}
|
|
14671
14680
|
// Form-associated callbacks
|
|
14672
14681
|
static get formAssociated() {
|
|
@@ -14827,7 +14836,7 @@ const _Skeleton = class _Skeleton extends PxElement {
|
|
|
14827
14836
|
updateVariant(variant) {
|
|
14828
14837
|
if (!this.checkName(skeletonsVariantValues, variant)) {
|
|
14829
14838
|
log(
|
|
14830
|
-
|
|
14839
|
+
`"${variant}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${skeletonsVariantValues.join('", "')}".`
|
|
14831
14840
|
);
|
|
14832
14841
|
return;
|
|
14833
14842
|
}
|
|
@@ -14917,7 +14926,7 @@ class Spinner extends HTMLElement {
|
|
|
14917
14926
|
}
|
|
14918
14927
|
if (!this.checkName(attrValues, newValue)) {
|
|
14919
14928
|
log(
|
|
14920
|
-
|
|
14929
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValues.join('", "')}".`
|
|
14921
14930
|
);
|
|
14922
14931
|
}
|
|
14923
14932
|
}
|
|
@@ -15029,7 +15038,7 @@ const _Status = class _Status extends PxElement {
|
|
|
15029
15038
|
updateState(state) {
|
|
15030
15039
|
if (!this.checkName(statusStateValues, state)) {
|
|
15031
15040
|
log(
|
|
15032
|
-
|
|
15041
|
+
`"${state}" is not a valid state value for ${this.tagName.toLowerCase()}. Allowed values are: "${statusStateValues.join('", "')}".`
|
|
15033
15042
|
);
|
|
15034
15043
|
return;
|
|
15035
15044
|
}
|
|
@@ -15224,7 +15233,7 @@ const _StatusCard = class _StatusCard extends PxElement {
|
|
|
15224
15233
|
updateState(state) {
|
|
15225
15234
|
if (!this.checkName(statusCardStateValues, state)) {
|
|
15226
15235
|
log(
|
|
15227
|
-
|
|
15236
|
+
`"${state}" is not a valid state value for ${this.tagName.toLowerCase()}. Allowed values are: "${statusCardStateValues.join('", "')}".`
|
|
15228
15237
|
);
|
|
15229
15238
|
return;
|
|
15230
15239
|
}
|
|
@@ -16337,7 +16346,7 @@ const _Tile = class _Tile extends VerticallyExtendedElement {
|
|
|
16337
16346
|
updateBackgroundColor(oldValue, newValue, attrValue) {
|
|
16338
16347
|
if (!checkName(attrValue, newValue)) {
|
|
16339
16348
|
log(
|
|
16340
|
-
|
|
16349
|
+
`"${newValue}" is not a valid background-color value for ${this.tagName.toLowerCase()}. Allowed values are: "${attrValue.join('", "')}".`
|
|
16341
16350
|
);
|
|
16342
16351
|
return;
|
|
16343
16352
|
}
|
|
@@ -16653,7 +16662,7 @@ class TileCheckbox extends WithExtraAttributes {
|
|
|
16653
16662
|
if (this.$checkbox) {
|
|
16654
16663
|
if (!this.checkName(checkboxStateValues, newValue)) {
|
|
16655
16664
|
log(
|
|
16656
|
-
|
|
16665
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${checkboxStateValues.join('", "')}".`
|
|
16657
16666
|
);
|
|
16658
16667
|
return;
|
|
16659
16668
|
} else {
|
|
@@ -16936,7 +16945,7 @@ class TileRadio extends WithExtraAttributes {
|
|
|
16936
16945
|
if (this.$radio) {
|
|
16937
16946
|
if (!this.checkName(stateValues, newValue)) {
|
|
16938
16947
|
log(
|
|
16939
|
-
|
|
16948
|
+
`"${newValue}" is not a valid ${attrName} value for ${this.tagName.toLowerCase()}. Allowed values are: "${stateValues.join('", "')}".`
|
|
16940
16949
|
);
|
|
16941
16950
|
return;
|
|
16942
16951
|
} else {
|