@proximus/lavender-selectablebox 1.4.19-beta.2 → 1.4.20-alpha.10
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 +210 -17
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AttributeBreakpointHandlerDelegate as e, WithExtraAttributes as t, backgroundColorValues as n, booleanPropertyToAttributeSetter as r, checkName as i, createTemplate as a, gapValues as o, log as s, propertyToAttributeSetter as c, renderTemplate as l } from "@proximus/lavender-common";
|
|
2
|
-
|
|
3
|
-
var u = ":host{--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;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{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;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);width:100%;height:100%;overflow-x:var(--overflow-x-all);display:flex}@media screen and (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 (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 (width>=48rem) and (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 (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 (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (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))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", d = new CSSStyleSheet();
|
|
2
|
+
//#region ../Layout/src/Stack.css?inline
|
|
3
|
+
var u = ":host{--flex-min-width--mobile-value:auto;--flex-min-width--tablet-value:auto;--flex-min-width--laptop-value:auto;--flex-min-width--desktop-value:auto;--flex-max-width--mobile-value:none;--flex-max-width--tablet-value:none;--flex-max-width--laptop-value:none;--flex-max-width--desktop-value:none;min-width:var(--flex-min-width--mobile-value);max-width:var(--flex-max-width--mobile-value);--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;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{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;--flex-overflow-y--mobile-value:visible;--flex-overflow-y--tablet-value:visible;--flex-overflow-y--laptop-value:visible;--flex-overflow-y--desktop-value:visible;--flex-max-height--mobile-value:none;--flex-max-height--tablet-value:none;--flex-max-height--laptop-value:none;--flex-max-height--desktop-value:none;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);width:100%;height:100%;overflow-x:var(--overflow-x-all);overflow-y:var(--flex-overflow-y--mobile-value);max-height:var(--flex-max-height--mobile-value);display:flex}@media screen and (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 (width>=48rem){:host{min-width:var(--flex-min-width--tablet-value);max-width:var(--flex-max-width--tablet-value)}.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);overflow-y:var(--flex-overflow-y--tablet-value);max-height:var(--flex-max-height--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 (width>=48rem) and (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 (width>=64.0625rem){:host{min-width:var(--flex-min-width--laptop-value);max-width:var(--flex-max-width--laptop-value)}.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);overflow-y:var(--flex-overflow-y--laptop-value);max-height:var(--flex-max-height--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 (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){:host{min-width:var(--flex-min-width--desktop-value);max-width:var(--flex-max-width--desktop-value)}.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-y:var(--flex-overflow-y--desktop-value);max-height:var(--flex-max-height--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))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", d = new CSSStyleSheet();
|
|
4
4
|
d.replaceSync(u);
|
|
5
5
|
var f = document.createElement("template");
|
|
6
6
|
f.innerHTML = "<div class=\"flex-container\"><slot></slot></div>";
|
|
@@ -81,7 +81,27 @@ var p = [
|
|
|
81
81
|
"overflow-x--mobile",
|
|
82
82
|
"overflow-x--tablet",
|
|
83
83
|
"overflow-x--laptop",
|
|
84
|
-
"overflow-x--desktop"
|
|
84
|
+
"overflow-x--desktop",
|
|
85
|
+
"overflow-y",
|
|
86
|
+
"overflow-y--mobile",
|
|
87
|
+
"overflow-y--tablet",
|
|
88
|
+
"overflow-y--laptop",
|
|
89
|
+
"overflow-y--desktop",
|
|
90
|
+
"max-height",
|
|
91
|
+
"max-height--mobile",
|
|
92
|
+
"max-height--tablet",
|
|
93
|
+
"max-height--laptop",
|
|
94
|
+
"max-height--desktop",
|
|
95
|
+
"min-width",
|
|
96
|
+
"min-width--mobile",
|
|
97
|
+
"min-width--tablet",
|
|
98
|
+
"min-width--laptop",
|
|
99
|
+
"min-width--desktop",
|
|
100
|
+
"max-width",
|
|
101
|
+
"max-width--mobile",
|
|
102
|
+
"max-width--tablet",
|
|
103
|
+
"max-width--laptop",
|
|
104
|
+
"max-width--desktop"
|
|
85
105
|
];
|
|
86
106
|
}
|
|
87
107
|
attributeChangedCallback(e, t, n) {
|
|
@@ -119,7 +139,31 @@ var p = [
|
|
|
119
139
|
case "direction--tablet":
|
|
120
140
|
case "direction--laptop":
|
|
121
141
|
case "direction--desktop":
|
|
122
|
-
this.updateFlexProperties(e, t, n, p);
|
|
142
|
+
this.updateFlexProperties(e, t, n, p), this.updateVerticalStyles();
|
|
143
|
+
break;
|
|
144
|
+
case "min-width":
|
|
145
|
+
case "min-width--mobile":
|
|
146
|
+
case "min-width--tablet":
|
|
147
|
+
case "min-width--laptop":
|
|
148
|
+
case "min-width--desktop":
|
|
149
|
+
case "max-width":
|
|
150
|
+
case "max-width--mobile":
|
|
151
|
+
case "max-width--tablet":
|
|
152
|
+
case "max-width--laptop":
|
|
153
|
+
case "max-width--desktop":
|
|
154
|
+
n && !CSS.supports(e.split("--")[0], n) && s(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateFlexProperties(e, t, n);
|
|
155
|
+
break;
|
|
156
|
+
case "overflow-y":
|
|
157
|
+
case "overflow-y--mobile":
|
|
158
|
+
case "overflow-y--tablet":
|
|
159
|
+
case "overflow-y--laptop":
|
|
160
|
+
case "overflow-y--desktop":
|
|
161
|
+
case "max-height":
|
|
162
|
+
case "max-height--mobile":
|
|
163
|
+
case "max-height--tablet":
|
|
164
|
+
case "max-height--laptop":
|
|
165
|
+
case "max-height--desktop":
|
|
166
|
+
n && !this.isValidVerticalValue(e, n) && s(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateVerticalStyles();
|
|
123
167
|
break;
|
|
124
168
|
case "overflow-x":
|
|
125
169
|
case "overflow-x--mobile":
|
|
@@ -131,11 +175,27 @@ var p = [
|
|
|
131
175
|
default: super.attributeChangedCallback(e, t, n);
|
|
132
176
|
}
|
|
133
177
|
}
|
|
178
|
+
isValidVerticalValue(e, t) {
|
|
179
|
+
return e.startsWith("overflow-y") ? _.includes(t) : CSS.supports("max-height", t);
|
|
180
|
+
}
|
|
181
|
+
updateVerticalStyles() {
|
|
182
|
+
for (let e of n.breakpoints) {
|
|
183
|
+
let t = this.localName === "px-stack" && this.getAttribute(`direction--${e}`) || this.direction, n = t === "column" || t === "column-reverse";
|
|
184
|
+
for (let t of ["overflow-y", "max-height"]) {
|
|
185
|
+
let r = this.getAttribute(`${t}--${e}`) || this.getAttribute(t);
|
|
186
|
+
this.updateStyle(t, e, n && r && this.isValidVerticalValue(t, r) ? r : null);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
134
190
|
updateOverflowX(e, t, n, r) {
|
|
135
|
-
i(r, n)
|
|
191
|
+
if (!i(r, n)) {
|
|
192
|
+
s(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n);
|
|
136
196
|
}
|
|
137
197
|
updateFlexProperties(e, t, r, i) {
|
|
138
|
-
r !== null && !this.checkName(i, r) && s(`"${r}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
198
|
+
i && r !== null && !this.checkName(i, r) && s(`"${r}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
139
199
|
let a = e.indexOf("--");
|
|
140
200
|
if (a === -1) for (let t of n.breakpoints) this.getAttribute(`${e}--${t}`) || this.updateStyle(e, t, r, i);
|
|
141
201
|
else {
|
|
@@ -144,12 +204,15 @@ var p = [
|
|
|
144
204
|
}
|
|
145
205
|
}
|
|
146
206
|
updateStyle(e, t, n, r) {
|
|
147
|
-
let i = `--flex-${e}--${t}-value`, a = e === "gap";
|
|
148
|
-
if (
|
|
149
|
-
|
|
207
|
+
let i = `--flex-${e}--${t}-value`, a = e === "gap", o = e === "min-width" || e === "max-width", s = o ? this : this.$el;
|
|
208
|
+
if (o && n && !CSS.supports(e, n) && (n = null), !n) {
|
|
209
|
+
s.style.removeProperty(i), a && this.style.removeProperty(`--host-gap--${t}`);
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
if (a && r && r.includes(n)) {
|
|
150
213
|
let e = `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`;
|
|
151
214
|
this.$el.style.setProperty(i, e), this.style.setProperty(`--host-gap--${t}`, e);
|
|
152
|
-
} else
|
|
215
|
+
} else s.style.setProperty(i, n);
|
|
153
216
|
}
|
|
154
217
|
static {
|
|
155
218
|
this.breakpoints = [
|
|
@@ -339,6 +402,126 @@ var p = [
|
|
|
339
402
|
set overflowXDesktop(e) {
|
|
340
403
|
c(this, "overflow-x--desktop", e);
|
|
341
404
|
}
|
|
405
|
+
get overflowY() {
|
|
406
|
+
return this.getAttribute("overflow-y") ?? "visible";
|
|
407
|
+
}
|
|
408
|
+
set overflowY(e) {
|
|
409
|
+
c(this, "overflow-y", e);
|
|
410
|
+
}
|
|
411
|
+
get overflowYMobile() {
|
|
412
|
+
return this.getAttribute("overflow-y--mobile");
|
|
413
|
+
}
|
|
414
|
+
set overflowYMobile(e) {
|
|
415
|
+
c(this, "overflow-y--mobile", e);
|
|
416
|
+
}
|
|
417
|
+
get overflowYTablet() {
|
|
418
|
+
return this.getAttribute("overflow-y--tablet");
|
|
419
|
+
}
|
|
420
|
+
set overflowYTablet(e) {
|
|
421
|
+
c(this, "overflow-y--tablet", e);
|
|
422
|
+
}
|
|
423
|
+
get overflowYLaptop() {
|
|
424
|
+
return this.getAttribute("overflow-y--laptop");
|
|
425
|
+
}
|
|
426
|
+
set overflowYLaptop(e) {
|
|
427
|
+
c(this, "overflow-y--laptop", e);
|
|
428
|
+
}
|
|
429
|
+
get overflowYDesktop() {
|
|
430
|
+
return this.getAttribute("overflow-y--desktop");
|
|
431
|
+
}
|
|
432
|
+
set overflowYDesktop(e) {
|
|
433
|
+
c(this, "overflow-y--desktop", e);
|
|
434
|
+
}
|
|
435
|
+
get maxHeight() {
|
|
436
|
+
return this.getAttribute("max-height") ?? "none";
|
|
437
|
+
}
|
|
438
|
+
set maxHeight(e) {
|
|
439
|
+
c(this, "max-height", e);
|
|
440
|
+
}
|
|
441
|
+
get maxHeightMobile() {
|
|
442
|
+
return this.getAttribute("max-height--mobile");
|
|
443
|
+
}
|
|
444
|
+
set maxHeightMobile(e) {
|
|
445
|
+
c(this, "max-height--mobile", e);
|
|
446
|
+
}
|
|
447
|
+
get maxHeightTablet() {
|
|
448
|
+
return this.getAttribute("max-height--tablet");
|
|
449
|
+
}
|
|
450
|
+
set maxHeightTablet(e) {
|
|
451
|
+
c(this, "max-height--tablet", e);
|
|
452
|
+
}
|
|
453
|
+
get maxHeightLaptop() {
|
|
454
|
+
return this.getAttribute("max-height--laptop");
|
|
455
|
+
}
|
|
456
|
+
set maxHeightLaptop(e) {
|
|
457
|
+
c(this, "max-height--laptop", e);
|
|
458
|
+
}
|
|
459
|
+
get maxHeightDesktop() {
|
|
460
|
+
return this.getAttribute("max-height--desktop");
|
|
461
|
+
}
|
|
462
|
+
set maxHeightDesktop(e) {
|
|
463
|
+
c(this, "max-height--desktop", e);
|
|
464
|
+
}
|
|
465
|
+
get minWidth() {
|
|
466
|
+
return this.getAttribute("min-width") ?? "auto";
|
|
467
|
+
}
|
|
468
|
+
set minWidth(e) {
|
|
469
|
+
c(this, "min-width", e);
|
|
470
|
+
}
|
|
471
|
+
get minWidthMobile() {
|
|
472
|
+
return this.getAttribute("min-width--mobile");
|
|
473
|
+
}
|
|
474
|
+
set minWidthMobile(e) {
|
|
475
|
+
c(this, "min-width--mobile", e);
|
|
476
|
+
}
|
|
477
|
+
get minWidthTablet() {
|
|
478
|
+
return this.getAttribute("min-width--tablet");
|
|
479
|
+
}
|
|
480
|
+
set minWidthTablet(e) {
|
|
481
|
+
c(this, "min-width--tablet", e);
|
|
482
|
+
}
|
|
483
|
+
get minWidthLaptop() {
|
|
484
|
+
return this.getAttribute("min-width--laptop");
|
|
485
|
+
}
|
|
486
|
+
set minWidthLaptop(e) {
|
|
487
|
+
c(this, "min-width--laptop", e);
|
|
488
|
+
}
|
|
489
|
+
get minWidthDesktop() {
|
|
490
|
+
return this.getAttribute("min-width--desktop");
|
|
491
|
+
}
|
|
492
|
+
set minWidthDesktop(e) {
|
|
493
|
+
c(this, "min-width--desktop", e);
|
|
494
|
+
}
|
|
495
|
+
get maxWidth() {
|
|
496
|
+
return this.getAttribute("max-width") ?? "none";
|
|
497
|
+
}
|
|
498
|
+
set maxWidth(e) {
|
|
499
|
+
c(this, "max-width", e);
|
|
500
|
+
}
|
|
501
|
+
get maxWidthMobile() {
|
|
502
|
+
return this.getAttribute("max-width--mobile");
|
|
503
|
+
}
|
|
504
|
+
set maxWidthMobile(e) {
|
|
505
|
+
c(this, "max-width--mobile", e);
|
|
506
|
+
}
|
|
507
|
+
get maxWidthTablet() {
|
|
508
|
+
return this.getAttribute("max-width--tablet");
|
|
509
|
+
}
|
|
510
|
+
set maxWidthTablet(e) {
|
|
511
|
+
c(this, "max-width--tablet", e);
|
|
512
|
+
}
|
|
513
|
+
get maxWidthLaptop() {
|
|
514
|
+
return this.getAttribute("max-width--laptop");
|
|
515
|
+
}
|
|
516
|
+
set maxWidthLaptop(e) {
|
|
517
|
+
c(this, "max-width--laptop", e);
|
|
518
|
+
}
|
|
519
|
+
get maxWidthDesktop() {
|
|
520
|
+
return this.getAttribute("max-width--desktop");
|
|
521
|
+
}
|
|
522
|
+
set maxWidthDesktop(e) {
|
|
523
|
+
c(this, "max-width--desktop", e);
|
|
524
|
+
}
|
|
342
525
|
get $el() {
|
|
343
526
|
return this.shadowRoot.firstElementChild;
|
|
344
527
|
}
|
|
@@ -368,7 +551,8 @@ var x = class extends v {
|
|
|
368
551
|
}
|
|
369
552
|
};
|
|
370
553
|
customElements.get("px-hstack") || customElements.define("px-hstack", x);
|
|
371
|
-
|
|
554
|
+
//#endregion
|
|
555
|
+
//#region ../Layout/src/Spacer.ts
|
|
372
556
|
var S = class extends HTMLElement {
|
|
373
557
|
constructor() {
|
|
374
558
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
@@ -416,7 +600,8 @@ var S = class extends HTMLElement {
|
|
|
416
600
|
}
|
|
417
601
|
};
|
|
418
602
|
customElements.get("px-spacer") || customElements.define("px-spacer", S);
|
|
419
|
-
|
|
603
|
+
//#endregion
|
|
604
|
+
//#region ../Layout/src/Page.css?inline
|
|
420
605
|
var C = ":host{box-sizing:border-box;display:block}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", w = new CSSStyleSheet();
|
|
421
606
|
w.replaceSync(C);
|
|
422
607
|
var T = class extends t {
|
|
@@ -602,7 +787,8 @@ var T = class extends t {
|
|
|
602
787
|
}
|
|
603
788
|
};
|
|
604
789
|
customElements.get("px-page") === void 0 && customElements.define("px-page", T);
|
|
605
|
-
|
|
790
|
+
//#endregion
|
|
791
|
+
//#region src/selectable-box.css?inline
|
|
606
792
|
var E = ":host{font-family:var(--px-font-family);font-size:var(--px-font-size-base);display:block}:host *{box-sizing:border-box}.selectable-box{flex-direction:column;height:100%;display:flex}::slotted([slot=media]){width:100%;height:auto}.info{flex-grow:1;display:flex}.info .info__body{gap:var(--px-spacing-default-mobile);padding:var(--px-padding-s-mobile);flex-direction:column;flex:7 1 0;display:flex}.info .info__body .header{align-items:center;gap:var(--px-spacing-s-mobile);display:flex}.info .info__body .header ::slotted([slot=action]),.info .info__body .header ::slotted([slot=icon]),.info .info__body .header ::slotted([slot=logo]){flex-shrink:0}.info .info__body .header .titles{flex-direction:column;display:flex}.info .info__body .header .titles ::slotted([slot=title]){font-size:var(--px-text-size-label-m-mobile);font-weight:var(--px-font-weight-title);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-neutral-default);flex-grow:1}.info .info__body .header .titles ::slotted([slot=description]){font-size:var(--px-text-size-label-m-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-line-height-ratio-l);flex-grow:1}.info .info__body ::slotted([slot=content]){color:var(--px-color-text-neutral-default)}.info .info__footer{padding:var(--px-padding-s-mobile);background:var(--px-color-background-container-default-default);text-align:center;flex:3 1 0;align-items:center;display:flex}:host([hide-footer]) .info .info__body{flex-basis:auto}:host([hide-footer]) .info__footer{display:none}:host([footer-position=bottom]) .info{flex-direction:column}:host([footer-position=bottom]) .info__body{flex-basis:auto}:host([footer-position=bottom]) .info__footer{flex:none;justify-content:center}:host([footer-position=right]) .info{flex-direction:row}:host([footer-position=right]) .info__body{flex:7 1 0}:host([footer-position=right]) .info__footer{flex:3 1 0;align-items:center;display:flex}@media screen and (width>=48rem){.info{flex-direction:column}.info .info__body{gap:var(--px-spacing-default-tablet);padding:var(--px-padding-s-tablet);flex-basis:auto}.info .info__body .header{gap:var(--px-spacing-s-tablet)}.info .info__body .header .titles ::slotted([slot=title]),.info .info__body .header .titles ::slotted([slot=description]){font-size:var(--px-text-size-label-m-tablet)}.info .info__footer{padding:var(--px-padding-s-tablet);flex:none;justify-content:center}}@media screen and (width>=64.0625rem){.info .info__body{gap:var(--px-spacing-default-laptop);padding:var(--px-padding-s-laptop)}.info .info__body .header{gap:var(--px-spacing-s-laptop)}.info .info__body .header .titles ::slotted([slot=title]),.info .info__body .header .titles ::slotted([slot=description]){font-size:var(--px-text-size-label-m-laptop)}.info .info__footer{padding:var(--px-padding-s-laptop)}}@media screen and (width>=90.0625rem){.info .info__body{gap:var(--px-spacing-default-desktop);padding:var(--px-padding-s-desktop)}.info .info__body .header{gap:var(--px-spacing-s-desktop)}.info .info__body .header .titles ::slotted([slot=title]),.info .info__body .header .titles ::slotted([slot=description]){font-size:var(--px-text-size-label-m-desktop)}.info .info__footer{padding:var(--px-padding-s-desktop)}}:host([inverted]) .info .info__body .header .titles ::slotted([slot=title]){color:var(--px-color-text-neutral-inverted)}:host([inverted]) .info .info__body ::slotted([slot=content]){color:var(--px-color-text-neutral-inverted)}:host([inverted]) .info .info__footer{background:var(--px-color-background-container-default-inverted)}", D = new CSSStyleSheet();
|
|
607
793
|
D.replaceSync(E);
|
|
608
794
|
var O = [
|
|
@@ -633,10 +819,13 @@ var O = [
|
|
|
633
819
|
}
|
|
634
820
|
}
|
|
635
821
|
#e(e, t) {
|
|
636
|
-
i(t, e)
|
|
822
|
+
if (!i(t, e)) {
|
|
823
|
+
s(`
|
|
637
824
|
"${e}" is not a valid footer-position value for ${this.tagName.toLowerCase()}.
|
|
638
825
|
Allowed values are: "${t.join("\", \"")}".
|
|
639
826
|
`);
|
|
827
|
+
return;
|
|
828
|
+
}
|
|
640
829
|
}
|
|
641
830
|
get $el() {
|
|
642
831
|
return this.shadowRoot.querySelector(".selectable-box");
|
|
@@ -661,7 +850,8 @@ var O = [
|
|
|
661
850
|
}
|
|
662
851
|
};
|
|
663
852
|
customElements.get("px-selectable-box") || customElements.define("px-selectable-box", k);
|
|
664
|
-
|
|
853
|
+
//#endregion
|
|
854
|
+
//#region src/clickEventGuards.ts
|
|
665
855
|
var A = ["px-a", "px-button"];
|
|
666
856
|
function j(e, t, n = A) {
|
|
667
857
|
let r = new Set(n), i = e.composedPath();
|
|
@@ -671,7 +861,8 @@ function j(e, t, n = A) {
|
|
|
671
861
|
}
|
|
672
862
|
return !1;
|
|
673
863
|
}
|
|
674
|
-
|
|
864
|
+
//#endregion
|
|
865
|
+
//#region src/common.css?inline
|
|
675
866
|
var M = ":host{outline:none;display:block}:host *{box-sizing:border-box}.selectable-box-checkbox,.selectable-box-radio{box-sizing:border-box;cursor:pointer;border-radius:var(--px-radius-main);--btn-transition:all .2s ease-in-out 0s;height:100%;transition:var(--btn-transition);border:var(--px-size-border-m) solid var(--px-color-border-main-default);outline-color:var(--px-color-border-focus-outline-default);outline-width:var(--px-focus-outline-mobile);overflow:hidden}:is(.selectable-box-checkbox,.selectable-box-radio) px-selectable-box{background-color:var(--px-color-background-container-light-default);height:100%}:host([parent-has-anchor-full]) :is(.selectable-box-checkbox,.selectable-box-radio){border-radius:0 0 var(--px-radius-main) var(--px-radius-main)}:host(:not([disabled])):host(:hover) .selectable-box-checkbox,:host(:not([disabled])):host(:hover) .selectable-box-radio{border-color:var(--px-color-border-state-hover-default)}:is(:host(:not([disabled])):host(:hover) .selectable-box-checkbox,:host(:not([disabled])):host(:hover) .selectable-box-radio) px-selectable-box{background-color:var(--px-color-background-state-hover-bordered-default)}:host(:not([disabled])):host(:focus-visible) .selectable-box-checkbox,:host(:not([disabled])):host(:focus-visible) .selectable-box-radio{outline-offset:var(--px-focus-offset-mobile);outline-style:solid}:host([checked]) .selectable-box-checkbox,:host([checked]) .selectable-box-radio{border-color:var(--px-color-border-state-active-default)}:host([disabled]) .selectable-box-checkbox,:host([disabled]) .selectable-box-radio{cursor:default;pointer-events:none;border-color:#0000}:is(:host([disabled]) .selectable-box-checkbox,:host([disabled]) .selectable-box-radio) px-selectable-box{background-color:var(--px-color-background-state-disabled-default)}:host([disabled]) ::slotted([slot=title]),:host([disabled]) ::slotted([slot=description]),:host([disabled]) ::slotted([slot=content]){color:var(--px-color-text-state-disabled-default)}@media screen and (width>=48rem){.selectable-box-checkbox,.selectable-box-radio{outline-width:var(--px-focus-outline-tablet)}}@media screen and (width>=64.0625rem){.selectable-box-checkbox,.selectable-box-radio{outline-width:var(--px-focus-outline-laptop)}}@media screen and (width>=90.0625rem){.selectable-box-checkbox,.selectable-box-radio{outline-width:var(--px-focus-outline-desktop)}}:host([inverted]) .selectable-box-checkbox,:host([inverted]) .selectable-box-radio{border-color:var(--px-color-border-main-inverted);outline-color:var(--px-color-border-focus-outline-inverted)}:is(:host([inverted]) .selectable-box-checkbox,:host([inverted]) .selectable-box-radio) px-selectable-box{background-color:var(--px-color-background-container-light-inverted)}:host([inverted]):host(:not([disabled])):host(:hover) .selectable-box-checkbox,:host([inverted]):host(:not([disabled])):host(:hover) .selectable-box-radio{border-color:var(--px-color-border-state-hover-inverted)}:is(:host([inverted]):host(:not([disabled])):host(:hover) .selectable-box-checkbox,:host([inverted]):host(:not([disabled])):host(:hover) .selectable-box-radio) px-selectable-box{background-color:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]):host([checked]) .selectable-box-checkbox,:host([inverted]):host([checked]) .selectable-box-radio{border-color:var(--px-color-border-state-active-inverted)}:host([inverted]):host([disabled]) .selectable-box-checkbox,:host([inverted]):host([disabled]) .selectable-box-radio{border-color:#0000}:is(:host([inverted]):host([disabled]) .selectable-box-checkbox,:host([inverted]):host([disabled]) .selectable-box-radio) px-selectable-box{background-color:var(--px-color-background-state-disabled-inverted)}:host([inverted]):host([disabled]) ::slotted([slot=title]),:host([inverted]):host([disabled]) ::slotted([slot=description]),:host([inverted]):host([disabled]) ::slotted([slot=content]){color:var(--px-color-text-state-disabled-inverted)}", N = new CSSStyleSheet();
|
|
676
867
|
N.replaceSync(M);
|
|
677
868
|
var P = class e extends t {
|
|
@@ -813,7 +1004,8 @@ var P = class e extends t {
|
|
|
813
1004
|
}
|
|
814
1005
|
};
|
|
815
1006
|
customElements.get("px-selectable-box-checkbox") || customElements.define("px-selectable-box-checkbox", P);
|
|
816
|
-
|
|
1007
|
+
//#endregion
|
|
1008
|
+
//#region src/SelectableBoxRadio.ts
|
|
817
1009
|
var F = new CSSStyleSheet();
|
|
818
1010
|
F.replaceSync(M);
|
|
819
1011
|
var I = "px-selectable-box-radio-connected", L = "px-selectable-box-radio-disconnected", R = class e extends t {
|
|
@@ -964,4 +1156,5 @@ var I = "px-selectable-box-radio-connected", L = "px-selectable-box-radio-discon
|
|
|
964
1156
|
}
|
|
965
1157
|
};
|
|
966
1158
|
customElements.get("px-selectable-box-radio") || customElements.define("px-selectable-box-radio", R);
|
|
1159
|
+
//#endregion
|
|
967
1160
|
export { I as SELECTABLE_BOX_RADIO_CONNECTED_EVENT, L as SELECTABLE_BOX_RADIO_DISCONNECTED_EVENT, k as SelectableBox, P as SelectableBoxCheckbox, R as SelectableBoxRadio, O as selectableBoxFooterPosition };
|