@proximus/lavender 2.0.0-alpha.32 → 2.0.0-alpha.34
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 +23 -12
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -6,7 +6,7 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
6
6
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7
7
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
8
8
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
9
|
-
var _src, _internals, _template, _onResize, _Header_instances, setMDDDialogOffset_fn, togglePanel_fn, showMobileMenu_fn, hideMobileMenu_fn, hidePanel_fn, $mobileMenu_get, $navigationItems_get, $headerWrapper_get, $megaDropdowns_get, _Dropdown_instances, resetManualPopoverDisplay_fn, _onTriggerClick, _beforeToggle, _onToggle, handleManualPopoverDisplay_fn, _template2, _HeaderMobileMenu_instances, createMobileMenuPanelDropDowns_fn, _mutationObserver, _MegaDropDown_instances, $backButton_get, $title_get, $footer_get, $closeButtons_get, _Card_instances, updateMediaPosition_fn, updateMedia_fn, updateBackgroundColor_fn;
|
|
9
|
+
var _src, _internals, _template, _Select_instances, updateOptions_fn, _onResize, _Header_instances, setMDDDialogOffset_fn, togglePanel_fn, showMobileMenu_fn, hideMobileMenu_fn, hidePanel_fn, $mobileMenu_get, $navigationItems_get, $headerWrapper_get, $megaDropdowns_get, _Dropdown_instances, resetManualPopoverDisplay_fn, _onTriggerClick, _beforeToggle, _onToggle, handleManualPopoverDisplay_fn, _template2, _HeaderMobileMenu_instances, createMobileMenuPanelDropDowns_fn, _mutationObserver, _MegaDropDown_instances, $backButton_get, $title_get, $footer_get, $closeButtons_get, _Card_instances, updateMediaPosition_fn, updateMedia_fn, updateBackgroundColor_fn;
|
|
10
10
|
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-value)}:host([order]),::slotted([order]){order:var(--order-value)}: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: 767px){: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: 768px) and (max-width: 1024px){: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: 1025px){: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: 1025px){: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: 1441px){: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}}";
|
|
11
11
|
function getSupportedPropertyNames(htmlElementName) {
|
|
12
12
|
const $element = document.createElement(htmlElementName);
|
|
@@ -11830,29 +11830,40 @@ if (!customElements.get("px-textarea")) {
|
|
|
11830
11830
|
customElements.define("px-textarea", TextArea);
|
|
11831
11831
|
}
|
|
11832
11832
|
const _Select = class _Select extends AbstractInputElement {
|
|
11833
|
-
template() {
|
|
11834
|
-
return '<select><slot name="options"></slot></select>';
|
|
11835
|
-
}
|
|
11836
11833
|
constructor() {
|
|
11837
11834
|
super();
|
|
11835
|
+
__privateAdd(this, _Select_instances);
|
|
11836
|
+
}
|
|
11837
|
+
template() {
|
|
11838
|
+
return '<select><slot name="options"></slot></select>';
|
|
11838
11839
|
}
|
|
11839
11840
|
connectedCallback() {
|
|
11840
11841
|
super.connectedCallback();
|
|
11841
|
-
|
|
11842
|
-
if ($options.length > 0) {
|
|
11843
|
-
$options.forEach(($option) => {
|
|
11844
|
-
this.$el.appendChild($option);
|
|
11845
|
-
});
|
|
11846
|
-
}
|
|
11842
|
+
__privateMethod(this, _Select_instances, updateOptions_fn).call(this);
|
|
11847
11843
|
this.observer = new MutationObserver(() => {
|
|
11848
|
-
this
|
|
11844
|
+
__privateMethod(this, _Select_instances, updateOptions_fn).call(this);
|
|
11845
|
+
});
|
|
11846
|
+
this.observer.observe(this, {
|
|
11847
|
+
childList: true,
|
|
11848
|
+
attributes: true,
|
|
11849
|
+
subtree: true
|
|
11849
11850
|
});
|
|
11850
|
-
this.observer.observe(this, { childList: true });
|
|
11851
11851
|
}
|
|
11852
11852
|
disconnectedCallback() {
|
|
11853
11853
|
this.observer.disconnect();
|
|
11854
11854
|
}
|
|
11855
11855
|
};
|
|
11856
|
+
_Select_instances = new WeakSet();
|
|
11857
|
+
updateOptions_fn = function() {
|
|
11858
|
+
const $options = this.querySelectorAll("option");
|
|
11859
|
+
this.$el.querySelectorAll("option").forEach(($option) => $option.remove());
|
|
11860
|
+
if ($options.length > 0) {
|
|
11861
|
+
$options.forEach(($option) => {
|
|
11862
|
+
const $clonedOption = $option.cloneNode(true);
|
|
11863
|
+
this.$el.appendChild($clonedOption);
|
|
11864
|
+
});
|
|
11865
|
+
}
|
|
11866
|
+
};
|
|
11856
11867
|
_Select.nativeName = "select";
|
|
11857
11868
|
let Select = _Select;
|
|
11858
11869
|
if (!customElements.get("px-select")) {
|