@proximus/lavender-autocomplete 1.4.18-alpha.9 → 1.4.18
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/index.es.js +7 -35
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AttributeBreakpointHandlerDelegate as e, PxElement as t, WithExtraAttributes as n, backgroundColorValues as r, backgroundSizeValues as i, booleanPropertyToAttributeSetter as a, borderColorValues as o, borderRadiusValues as s, borderSideValues as c, borderValues as ee, boxShadowValues as te, checkName as l, colorValues as ne, createTemplate as u, cssTokenBreakpoints as d, fontsizeValues as re, fontweightValues as ie, gapValues as f, gradientValues as p, iconSizeValuesKC as ae, log as m, noBorderRadiusValues as oe, paddingValues as h, propertyToAttributeSetter as g, renderTemplate as _, transferAccessibilityAttributes as se } from "@proximus/lavender-common";
|
|
2
2
|
//#region src/autocomplete.css?inline
|
|
3
|
-
var v = ":host .dropdown-content{margin-top:calc(var(--px-focus-offset-mobile) + var(--px-focus-outline-mobile));overflow:auto}@media screen and (width>=48rem){:host .dropdown-content{margin-top:calc(var(--px-focus-offset-tablet) + var(--px-focus-outline-tablet))}}@media screen and (width>=64.0625rem){:host .dropdown-content{margin-top:calc(var(--px-focus-offset-laptop) + var(--px-focus-outline-laptop))}}@media screen and (width>=90.0625rem){:host .dropdown-content{margin-top:calc(var(--px-focus-offset-desktop) + var(--px-focus-outline-desktop))}}:host([inverted]) .dropdown-content{background-color:var(--px-color-background-surface-dark)}", y = ":host{position:relative}::slotted([slot=popover]){border-radius:var(--px-radius-main,8px);background:var(--px-color-background-
|
|
3
|
+
var v = ":host .dropdown-content{background-color:var(--px-color-background-surface-default);border-radius:var(--px-radius-main);margin-top:calc(var(--px-focus-offset-mobile) + var(--px-focus-outline-mobile));padding:0;overflow:auto;box-shadow:0 4px 6px -1px #25252514}@media screen and (width>=48rem){:host .dropdown-content{margin-top:calc(var(--px-focus-offset-tablet) + var(--px-focus-outline-tablet))}}@media screen and (width>=64.0625rem){:host .dropdown-content{margin-top:calc(var(--px-focus-offset-laptop) + var(--px-focus-outline-laptop))}}@media screen and (width>=90.0625rem){:host .dropdown-content{margin-top:calc(var(--px-focus-offset-desktop) + var(--px-focus-outline-desktop))}}:host([inverted]) .dropdown-content{background-color:var(--px-color-background-surface-dark)}", y = ":host{position:relative}::slotted([slot=popover]){border-radius:var(--px-radius-main,8px);background:var(--px-color-background-container-light-default,#fff);padding:var(--px-padding-xs-mobile) 0;width:auto;max-height:var(--px-popover-max-height);border:0;margin:0;position:fixed;right:0;box-shadow:0 20px 25px -5px #25252514}:host([grow]) ::slotted([slot=trigger]):after{padding-right:var(--px-padding-xs-mobile);right:0}:host([anchoralignment=top-left]) ::slotted([slot=popover]){top:auto}:host([anchoralignment=top-right]) ::slotted([slot=popover]){top:auto}:host([anchoralignment=bottom-right]) ::slotted([slot=popover]){left:auto}@media screen and (width<=47.938rem){::slotted([slot=trigger]){width:100%;display:block}:host([anchoralignment=top-left]) ::slotted([slot=popover]){left:var(--px-padding-s-mobile)}:host([anchoralignment=top-right]) ::slotted([slot=popover]){left:var(--px-padding-s-mobile)}}@media screen and (width>=48rem){::slotted([slot=popover]){padding-block:var(--px-padding-s-desktop);width:auto;right:auto}}", b = [
|
|
4
4
|
"top-left",
|
|
5
5
|
"top-right",
|
|
6
6
|
"bottom-left",
|
|
@@ -36,20 +36,20 @@ var C = "bottom-left", ce = class extends n {
|
|
|
36
36
|
::slotted([slot="popover"]) {
|
|
37
37
|
position-anchor: ${this.anchorName};
|
|
38
38
|
top: anchor(${this.anchorName} bottom);
|
|
39
|
-
right: anchor(${this.anchorName} right);
|
|
39
|
+
right: calc(anchor(${this.anchorName} right) - var(--px-size-icon-xs));
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
:host([anchoralignment="top-left"]) {
|
|
43
43
|
::slotted([slot="popover"]) {
|
|
44
44
|
position-anchor: ${this.anchorName};
|
|
45
|
-
bottom: anchor(${this.anchorName} top);
|
|
45
|
+
bottom: calc( var(--px-padding-s-mobile) + anchor(${this.anchorName} top));
|
|
46
46
|
left: anchor(${this.anchorName} left);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
:host([anchoralignment="top-right"]) {
|
|
50
50
|
::slotted([slot="popover"]) {
|
|
51
51
|
position-anchor: ${this.anchorName};
|
|
52
|
-
bottom: anchor(${this.anchorName} top);
|
|
52
|
+
bottom: calc( var(--px-padding-s-mobile) + anchor(${this.anchorName} top));
|
|
53
53
|
right: anchor(${this.anchorName} right);
|
|
54
54
|
}
|
|
55
55
|
}`;
|
|
@@ -61,10 +61,7 @@ var C = "bottom-left", ce = class extends n {
|
|
|
61
61
|
"anchoralignment",
|
|
62
62
|
"use-polyfill",
|
|
63
63
|
"manual-toggle",
|
|
64
|
-
"popover-height"
|
|
65
|
-
"popover-max-height",
|
|
66
|
-
"popover-max-width",
|
|
67
|
-
"inverted"
|
|
64
|
+
"popover-height"
|
|
68
65
|
];
|
|
69
66
|
}
|
|
70
67
|
constructor() {
|
|
@@ -108,21 +105,14 @@ var C = "bottom-left", ce = class extends n {
|
|
|
108
105
|
n != null && this.$trigger?.removeAttribute("aria-expanded");
|
|
109
106
|
break;
|
|
110
107
|
case "popover-height":
|
|
111
|
-
|
|
112
|
-
this.updatePopoverMaxHeight(n);
|
|
113
|
-
break;
|
|
114
|
-
case "popover-max-width":
|
|
115
|
-
this.updatePopoverMaxWidth(n);
|
|
108
|
+
this.updatePopoverHeight(n);
|
|
116
109
|
break;
|
|
117
110
|
default: super.attributeChangedCallback(e, t, n);
|
|
118
111
|
}
|
|
119
112
|
}
|
|
120
|
-
|
|
113
|
+
updatePopoverHeight(e) {
|
|
121
114
|
e ? this.$popoverElement.style.setProperty("--px-popover-max-height", e) : this.$popoverElement.style.removeProperty("--px-popover-max-height");
|
|
122
115
|
}
|
|
123
|
-
updatePopoverMaxWidth(e) {
|
|
124
|
-
e ? this.$popoverElement.style.setProperty("--px-popover-max-width", e) : this.$popoverElement.style.removeProperty("--px-popover-max-width");
|
|
125
|
-
}
|
|
126
116
|
initPopover() {
|
|
127
117
|
if (this.$trigger) {
|
|
128
118
|
this.$trigger.setAttribute("popovertarget", this.popoverId);
|
|
@@ -169,24 +159,6 @@ var C = "bottom-left", ce = class extends n {
|
|
|
169
159
|
set popoverHeight(e) {
|
|
170
160
|
g(this, "popover-height", e);
|
|
171
161
|
}
|
|
172
|
-
get popoverMaxHeight() {
|
|
173
|
-
return this.getAttribute("popover-max-height");
|
|
174
|
-
}
|
|
175
|
-
set popoverMaxHeight(e) {
|
|
176
|
-
g(this, "popover-max-height", e);
|
|
177
|
-
}
|
|
178
|
-
get popoverMaxWidth() {
|
|
179
|
-
return this.getAttribute("popover-max-width");
|
|
180
|
-
}
|
|
181
|
-
set popoverMaxWidth(e) {
|
|
182
|
-
g(this, "popover-max-width", e);
|
|
183
|
-
}
|
|
184
|
-
get inverted() {
|
|
185
|
-
return this.hasAttribute("inverted");
|
|
186
|
-
}
|
|
187
|
-
set inverted(e) {
|
|
188
|
-
a(this, "inverted", e);
|
|
189
|
-
}
|
|
190
162
|
};
|
|
191
163
|
customElements.get("px-dropdown") || customElements.define("px-dropdown", ce);
|
|
192
164
|
//#endregion
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@proximus/lavender-autocomplete",
|
|
4
|
-
"version": "1.4.18
|
|
4
|
+
"version": "1.4.18",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|