@proximus/lavender-autocomplete 2.0.0-alpha.207 → 2.0.0-alpha.209
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 +35 -7
- 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{
|
|
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-surface-light,#fff);margin:var(--px-spacing-xs-mobile) 0 0 0;width:auto;max-height:var(--px-popover-max-height);max-width:var(--px-popover-max-width);border:0;padding: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]){margin:0 0 var(--px-spacing-xs-mobile) 0;top:auto}:host([anchoralignment=top-right]) ::slotted([slot=popover]){margin:0 0 var(--px-spacing-xs-mobile) 0;top:auto;left:auto}:host([anchoralignment=bottom-right]) ::slotted([slot=popover]){margin:var(--px-spacing-xs-mobile) 0 0 0;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]){margin:var(--px-spacing-xs-tablet) 0 0 0;width:auto;padding:0;right:auto}:host([anchoralignment=top-left]) ::slotted([slot=popover]){margin:0 0 var(--px-spacing-xs-tablet) 0}:host([anchoralignment=top-right]) ::slotted([slot=popover]){margin:0 0 var(--px-spacing-xs-tablet) 0}:host([anchoralignment=bottom-right]) ::slotted([slot=popover]){margin:var(--px-spacing-xs-tablet) 0 0 0}}@media screen and (width>=64.0625rem){::slotted([slot=popover]){margin:var(--px-spacing-xs-desktop) 0 0 0;width:auto;padding:0;right:auto}}@media screen and (width>=90.0625rem){::slotted([slot=popover]){width:auto;padding:0;right:auto}:host([anchoralignment=bottom-right]) ::slotted([slot=popover]){margin:var(--px-spacing-xs-desktop) 0 0 0}:host([anchoralignment=top-left]) ::slotted([slot=popover]){margin:0 0 var(--px-spacing-xs-desktop) 0}:host([anchoralignment=top-right]) ::slotted([slot=popover]){margin:0 0 var(--px-spacing-xs-desktop) 0}}:host([inverted]) ::slotted([slot=popover]){background:var(--px-color-background-surface-dark,#333)}", 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:
|
|
39
|
+
right: anchor(${this.anchorName} right);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
:host([anchoralignment="top-left"]) {
|
|
43
43
|
::slotted([slot="popover"]) {
|
|
44
44
|
position-anchor: ${this.anchorName};
|
|
45
|
-
bottom:
|
|
45
|
+
bottom: 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:
|
|
52
|
+
bottom: anchor(${this.anchorName} top);
|
|
53
53
|
right: anchor(${this.anchorName} right);
|
|
54
54
|
}
|
|
55
55
|
}`;
|
|
@@ -61,7 +61,10 @@ var C = "bottom-left", ce = class extends n {
|
|
|
61
61
|
"anchoralignment",
|
|
62
62
|
"use-polyfill",
|
|
63
63
|
"manual-toggle",
|
|
64
|
-
"popover-height"
|
|
64
|
+
"popover-height",
|
|
65
|
+
"popover-max-height",
|
|
66
|
+
"popover-max-width",
|
|
67
|
+
"inverted"
|
|
65
68
|
];
|
|
66
69
|
}
|
|
67
70
|
constructor() {
|
|
@@ -105,14 +108,21 @@ var C = "bottom-left", ce = class extends n {
|
|
|
105
108
|
n != null && this.$trigger?.removeAttribute("aria-expanded");
|
|
106
109
|
break;
|
|
107
110
|
case "popover-height":
|
|
108
|
-
|
|
111
|
+
case "popover-max-height":
|
|
112
|
+
this.updatePopoverMaxHeight(n);
|
|
113
|
+
break;
|
|
114
|
+
case "popover-max-width":
|
|
115
|
+
this.updatePopoverMaxWidth(n);
|
|
109
116
|
break;
|
|
110
117
|
default: super.attributeChangedCallback(e, t, n);
|
|
111
118
|
}
|
|
112
119
|
}
|
|
113
|
-
|
|
120
|
+
updatePopoverMaxHeight(e) {
|
|
114
121
|
e ? this.$popoverElement.style.setProperty("--px-popover-max-height", e) : this.$popoverElement.style.removeProperty("--px-popover-max-height");
|
|
115
122
|
}
|
|
123
|
+
updatePopoverMaxWidth(e) {
|
|
124
|
+
e ? this.$popoverElement.style.setProperty("--px-popover-max-width", e) : this.$popoverElement.style.removeProperty("--px-popover-max-width");
|
|
125
|
+
}
|
|
116
126
|
initPopover() {
|
|
117
127
|
if (this.$trigger) {
|
|
118
128
|
this.$trigger.setAttribute("popovertarget", this.popoverId);
|
|
@@ -159,6 +169,24 @@ var C = "bottom-left", ce = class extends n {
|
|
|
159
169
|
set popoverHeight(e) {
|
|
160
170
|
g(this, "popover-height", e);
|
|
161
171
|
}
|
|
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
|
+
}
|
|
162
190
|
};
|
|
163
191
|
customElements.get("px-dropdown") || customElements.define("px-dropdown", ce);
|
|
164
192
|
//#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": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.209",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|