@proximus/lavender-selectablebox 1.4.2-beta.1 → 1.4.3-alpha.2
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 +53 -49
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { WithExtraAttributes as n, AttributeBreakpointHandlerDelegate as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
const
|
|
1
|
+
import { WithExtraAttributes as n, AttributeBreakpointHandlerDelegate as v, gapValues as m, checkName as k, log as h, backgroundColorValues as y } from "@proximus/lavender-common";
|
|
2
|
+
const A = ':host{display:block}: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 only screen and (max-width: 47.9375em){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 48em){.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([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 only screen and (min-width: 48em) and (max-width: 64em){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 64.0625em){.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([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 only screen and (min-width: 64.0625em) and (max-width: 90em){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media only screen and (min-width: 90.0625em){.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([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))}}', b = new CSSStyleSheet();
|
|
3
|
+
b.replaceSync(A);
|
|
4
|
+
const w = [
|
|
5
5
|
"",
|
|
6
6
|
"default",
|
|
7
7
|
"row",
|
|
8
8
|
"row-reverse",
|
|
9
9
|
"column",
|
|
10
10
|
"column-reverse"
|
|
11
|
-
],
|
|
11
|
+
], C = [
|
|
12
12
|
"",
|
|
13
13
|
"default",
|
|
14
14
|
"stretch",
|
|
@@ -16,7 +16,7 @@ const A = [
|
|
|
16
16
|
"flex-end",
|
|
17
17
|
"center",
|
|
18
18
|
"baseline"
|
|
19
|
-
],
|
|
19
|
+
], $ = [
|
|
20
20
|
"",
|
|
21
21
|
"default",
|
|
22
22
|
"flex-start",
|
|
@@ -25,10 +25,10 @@ const A = [
|
|
|
25
25
|
"space-between",
|
|
26
26
|
"space-around",
|
|
27
27
|
"space-evenly"
|
|
28
|
-
],
|
|
28
|
+
], S = ["", "default", "nowrap", "wrap", "wrap-reverse"], _ = ["", "visible", "hidden", "scroll", "auto"];
|
|
29
29
|
class c extends n {
|
|
30
30
|
constructor() {
|
|
31
|
-
super(
|
|
31
|
+
super(b), this.overflowXAttributeDelegate = new v(
|
|
32
32
|
this,
|
|
33
33
|
"overflow-x",
|
|
34
34
|
(t) => t,
|
|
@@ -82,7 +82,7 @@ class c extends n {
|
|
|
82
82
|
case "gap--tablet":
|
|
83
83
|
case "gap--laptop":
|
|
84
84
|
case "gap--desktop":
|
|
85
|
-
this.updateFlexProperties(t, e, i,
|
|
85
|
+
this.updateFlexProperties(t, e, i, m);
|
|
86
86
|
break;
|
|
87
87
|
case "justify-content":
|
|
88
88
|
case "justify-content--mobile":
|
|
@@ -93,7 +93,7 @@ class c extends n {
|
|
|
93
93
|
t,
|
|
94
94
|
e,
|
|
95
95
|
i,
|
|
96
|
-
|
|
96
|
+
$
|
|
97
97
|
);
|
|
98
98
|
break;
|
|
99
99
|
case "align-items":
|
|
@@ -101,28 +101,28 @@ class c extends n {
|
|
|
101
101
|
case "align-items--tablet":
|
|
102
102
|
case "align-items--laptop":
|
|
103
103
|
case "align-items--desktop":
|
|
104
|
-
this.updateFlexProperties(t, e, i,
|
|
104
|
+
this.updateFlexProperties(t, e, i, C);
|
|
105
105
|
break;
|
|
106
106
|
case "wrap":
|
|
107
107
|
case "wrap--mobile":
|
|
108
108
|
case "wrap--tablet":
|
|
109
109
|
case "wrap--laptop":
|
|
110
110
|
case "wrap--desktop":
|
|
111
|
-
this.updateFlexProperties(t, e, i,
|
|
111
|
+
this.updateFlexProperties(t, e, i, S);
|
|
112
112
|
break;
|
|
113
113
|
case "direction":
|
|
114
114
|
case "direction--mobile":
|
|
115
115
|
case "direction--tablet":
|
|
116
116
|
case "direction--laptop":
|
|
117
117
|
case "direction--desktop":
|
|
118
|
-
this.updateFlexProperties(t, e, i,
|
|
118
|
+
this.updateFlexProperties(t, e, i, w);
|
|
119
119
|
break;
|
|
120
120
|
case "overflow-x":
|
|
121
121
|
case "overflow-x--mobile":
|
|
122
122
|
case "overflow-x--tablet":
|
|
123
123
|
case "overflow-x--laptop":
|
|
124
124
|
case "overflow-x--desktop":
|
|
125
|
-
this.updateOverflowX(t, e, i,
|
|
125
|
+
this.updateOverflowX(t, e, i, _);
|
|
126
126
|
break;
|
|
127
127
|
default:
|
|
128
128
|
super.attributeChangedCallback(t, e, i);
|
|
@@ -130,8 +130,10 @@ class c extends n {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
updateOverflowX(t, e, i, o) {
|
|
133
|
-
if (!
|
|
134
|
-
|
|
133
|
+
if (!k(o, i)) {
|
|
134
|
+
h(
|
|
135
|
+
`${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
136
|
+
);
|
|
135
137
|
return;
|
|
136
138
|
}
|
|
137
139
|
this.overflowXAttributeDelegate.attributeChangedCallback(
|
|
@@ -141,7 +143,9 @@ class c extends n {
|
|
|
141
143
|
);
|
|
142
144
|
}
|
|
143
145
|
updateFlexProperties(t, e, i, o) {
|
|
144
|
-
this.checkName(o, i) ||
|
|
146
|
+
this.checkName(o, i) || h(
|
|
147
|
+
`${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
148
|
+
);
|
|
145
149
|
const d = t.indexOf("--") > -1, s = d ? t.split("--")[0] : t, a = [];
|
|
146
150
|
if (!d)
|
|
147
151
|
this.getAttribute(s + "--mobile") || a.push("mobile"), this.getAttribute(s + "--tablet") || a.push("tablet"), this.getAttribute(s + "--laptop") || a.push("laptop"), this.getAttribute(s + "--desktop") || a.push("desktop"), a.forEach((l) => {
|
|
@@ -346,7 +350,7 @@ class c extends n {
|
|
|
346
350
|
}
|
|
347
351
|
}
|
|
348
352
|
customElements.get("px-stack") || customElements.define("px-stack", c);
|
|
349
|
-
class
|
|
353
|
+
class E extends c {
|
|
350
354
|
constructor() {
|
|
351
355
|
super();
|
|
352
356
|
}
|
|
@@ -354,8 +358,8 @@ class _ extends c {
|
|
|
354
358
|
super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
|
|
355
359
|
}
|
|
356
360
|
}
|
|
357
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
358
|
-
class
|
|
361
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", E);
|
|
362
|
+
class z extends c {
|
|
359
363
|
constructor() {
|
|
360
364
|
super();
|
|
361
365
|
}
|
|
@@ -363,8 +367,8 @@ class E extends c {
|
|
|
363
367
|
super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
|
|
364
368
|
}
|
|
365
369
|
}
|
|
366
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
367
|
-
class
|
|
370
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", z);
|
|
371
|
+
class L extends HTMLElement {
|
|
368
372
|
constructor() {
|
|
369
373
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
370
374
|
}
|
|
@@ -411,12 +415,12 @@ class z extends HTMLElement {
|
|
|
411
415
|
t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
412
416
|
}
|
|
413
417
|
}
|
|
414
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
415
|
-
const
|
|
416
|
-
|
|
417
|
-
class
|
|
418
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", L);
|
|
419
|
+
const D = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", p = new CSSStyleSheet();
|
|
420
|
+
p.replaceSync(D);
|
|
421
|
+
class j extends n {
|
|
418
422
|
constructor() {
|
|
419
|
-
super(
|
|
423
|
+
super(p), this.template = (t) => `
|
|
420
424
|
<px-container border-radius="none" padding="none">
|
|
421
425
|
<px-vstack>
|
|
422
426
|
<px-container id="header-container" border-radius="none">
|
|
@@ -593,7 +597,7 @@ class D extends n {
|
|
|
593
597
|
case "background-color":
|
|
594
598
|
this.$bodyContainer.setAttribute(
|
|
595
599
|
"background-color",
|
|
596
|
-
|
|
600
|
+
y.indexOf(i) > 0 ? i : "none"
|
|
597
601
|
);
|
|
598
602
|
break;
|
|
599
603
|
case "padding-vertical":
|
|
@@ -613,10 +617,10 @@ class D extends n {
|
|
|
613
617
|
this.$headerContainer.paddingLeft = t, this.$headerContainer.paddingRight = t, this.$bodyContainer.paddingLeft = t, this.$bodyContainer.paddingRight = t, this.$contactContainer.paddingLeft = t, this.$contactContainer.paddingRight = t, this.$footerContainer.paddingLeft = t, this.$footerContainer.paddingRight = t, this.$imageContainer.paddingLeft = t, this.$imageContainer.paddingRight = t;
|
|
614
618
|
}
|
|
615
619
|
}
|
|
616
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
617
|
-
const
|
|
618
|
-
|
|
619
|
-
class
|
|
620
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", j);
|
|
621
|
+
const R = ':host{display:block;font-family:var(--px-font-family);font-size:var(--px-font-size-base)}:host *{box-sizing:border-box}.selectable-box{display:flex;flex-direction:column;height:100%}::slotted([slot="media"]){width:100%;height:auto}.info{display:flex;flex-grow:1}.info .info__body{display:flex;flex-direction:column;flex-basis:80%;gap:var(--px-spacing-default-mobile);padding:var(--px-padding-m-mobile);flex-grow:1}.info .info__body .header{display:flex;align-items:center;gap:var(--px-spacing-s-mobile)}.info .info__body .header .titles{display:flex;flex-direction:column;gap:var(--px-spacing-xs-mobile)}.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);color:var(--px-color-text-dimmed-default);flex-grow:1}.info .info__body ::slotted([slot="content"]){color:var(--px-color-text-neutral-default)}.info .info__footer{display:flex;align-items:center;padding:var(--px-padding-s-mobile);background:var(--px-color-background-container-default-default);text-align:center}:host([hide-footer]) .info .info__body{flex-basis:auto}:host([hide-footer]) .info__footer{display:none}@media only screen and (min-width: 48em){.info{flex-direction:column}.info .info__body{flex-basis:auto;gap:var(--px-spacing-default-tablet);padding:var(--px-padding-m-tablet)}.info .info__body .header{gap:var(--px-spacing-s-tablet)}.info .info__body .header .titles{gap:var(--px-spacing-xs-tablet)}.info .info__body .header .titles ::slotted([slot="title"]){font-size:var(--px-text-size-label-m-tablet)}.info .info__body .header .titles ::slotted([slot="description"]){font-size:var(--px-text-size-label-m-tablet)}.info .info__footer{justify-content:center;padding:var(--px-padding-s-tablet)}}@media only screen and (min-width: 64.0625em){.info .info__body{gap:var(--px-spacing-default-laptop);padding:var(--px-padding-m-laptop)}.info .info__body .header{gap:var(--px-spacing-s-laptop)}.info .info__body .header .titles{gap:var(--px-spacing-xs-laptop)}.info .info__body .header .titles ::slotted([slot="title"]){font-size:var(--px-text-size-label-m-laptop)}.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 only screen and (min-width: 90.0625em){.info .info__body{gap:var(--px-spacing-default-desktop);padding:var(--px-padding-m-desktop)}.info .info__body .header{gap:var(--px-spacing-s-desktop)}.info .info__body .header .titles{gap:var(--px-spacing-xs-desktop)}.info .info__body .header .titles ::slotted([slot="title"]){font-size:var(--px-text-size-label-m-desktop)}.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 .header .titles ::slotted([slot="description"]){color:var(--px-color-text-dimmed-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)}', u = new CSSStyleSheet();
|
|
622
|
+
u.replaceSync(R);
|
|
623
|
+
class F extends n {
|
|
620
624
|
template() {
|
|
621
625
|
return `
|
|
622
626
|
<div class="selectable-box">
|
|
@@ -642,7 +646,7 @@ class R extends n {
|
|
|
642
646
|
`;
|
|
643
647
|
}
|
|
644
648
|
constructor() {
|
|
645
|
-
super(
|
|
649
|
+
super(u), this.shadowRoot.innerHTML = this.template();
|
|
646
650
|
}
|
|
647
651
|
static get observedAttributes() {
|
|
648
652
|
return [...super.observedAttributes, "inverted", "hide-footer"];
|
|
@@ -671,17 +675,17 @@ class R extends n {
|
|
|
671
675
|
t ? this.setAttribute("hide-footer", "") : this.removeAttribute("hide-footer");
|
|
672
676
|
}
|
|
673
677
|
}
|
|
674
|
-
customElements.get("px-selectable-box") || customElements.define("px-selectable-box",
|
|
675
|
-
const
|
|
676
|
-
|
|
677
|
-
class
|
|
678
|
+
customElements.get("px-selectable-box") || customElements.define("px-selectable-box", F);
|
|
679
|
+
const g = ':host{display:block;outline:none}:host *{box-sizing:border-box}.selectable-box-checkbox,.selectable-box-radio{box-sizing:border-box;height:100%;cursor:pointer;border-radius:var(--px-radius-main);overflow:hidden;--btn-transition: all .2s ease-in-out 0s;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)}.selectable-box-checkbox px-selectable-box,.selectable-box-radio px-selectable-box{height:100%;background-color:var(--px-color-background-container-light-default)}: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)}:host(:not([disabled])):host(:hover) .selectable-box-checkbox px-selectable-box,: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:transparent}:host([disabled]) .selectable-box-checkbox px-selectable-box,: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 only screen and (min-width: 48em){.selectable-box-checkbox,.selectable-box-radio{outline-width:var(--px-focus-outline-tablet)}}@media only screen and (min-width: 64.0625em){.selectable-box-checkbox,.selectable-box-radio{outline-width:var(--px-focus-outline-laptop)}}@media only screen and (min-width: 90.0625em){.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)}:host([inverted]) .selectable-box-checkbox px-selectable-box,: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)}:host([inverted]):host(:not([disabled])):host(:hover) .selectable-box-checkbox px-selectable-box,: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:transparent}:host([inverted]):host([disabled]) .selectable-box-checkbox px-selectable-box,: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)}', f = new CSSStyleSheet();
|
|
680
|
+
f.replaceSync(g);
|
|
681
|
+
class H extends n {
|
|
678
682
|
template() {
|
|
679
683
|
return `
|
|
680
684
|
<div class="selectable-box-checkbox">
|
|
681
685
|
<px-selectable-box>
|
|
682
686
|
<slot name="media" slot="media"></slot>
|
|
683
687
|
<px-checkbox
|
|
684
|
-
slot="action"
|
|
688
|
+
slot="action" inert
|
|
685
689
|
name="${this.name}"
|
|
686
690
|
value="${this.value}"
|
|
687
691
|
></px-checkbox>
|
|
@@ -697,7 +701,7 @@ class F extends n {
|
|
|
697
701
|
}
|
|
698
702
|
constructor() {
|
|
699
703
|
var t;
|
|
700
|
-
super(
|
|
704
|
+
super(f), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this), this.role = "checkbox", this.internals && (this.internals.role = "checkbox", this.internals.ariaChecked = `${this.checked}`), this.ariaChecked = `${this.checked}`;
|
|
701
705
|
}
|
|
702
706
|
connectedCallback() {
|
|
703
707
|
this.tabIndex = 0, this.toggleFooterVisibility(), this.$slotFooter.addEventListener(
|
|
@@ -841,17 +845,17 @@ class F extends n {
|
|
|
841
845
|
t ? this.setAttribute("value", t) : this.removeAttribute("value");
|
|
842
846
|
}
|
|
843
847
|
}
|
|
844
|
-
customElements.get("px-selectable-box-checkbox") || customElements.define("px-selectable-box-checkbox",
|
|
845
|
-
const
|
|
846
|
-
|
|
847
|
-
class
|
|
848
|
+
customElements.get("px-selectable-box-checkbox") || customElements.define("px-selectable-box-checkbox", H);
|
|
849
|
+
const x = new CSSStyleSheet();
|
|
850
|
+
x.replaceSync(g);
|
|
851
|
+
class q extends n {
|
|
848
852
|
template() {
|
|
849
853
|
return `
|
|
850
854
|
<div class="selectable-box-radio">
|
|
851
855
|
<px-selectable-box>
|
|
852
856
|
<slot name="media" slot="media"></slot>
|
|
853
857
|
<px-radio
|
|
854
|
-
slot="action"
|
|
858
|
+
slot="action" inert
|
|
855
859
|
name="${this.name}"
|
|
856
860
|
value="${this.value}"
|
|
857
861
|
></px-radio>
|
|
@@ -867,7 +871,7 @@ class H extends n {
|
|
|
867
871
|
}
|
|
868
872
|
constructor() {
|
|
869
873
|
var t;
|
|
870
|
-
super(
|
|
874
|
+
super(x), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this), this.role = "radio", this.internals && (this.internals.role = "radio", this.internals.ariaChecked = `${this.checked}`), this.ariaChecked = `${this.checked}`;
|
|
871
875
|
}
|
|
872
876
|
connectedCallback() {
|
|
873
877
|
var t;
|
|
@@ -1012,9 +1016,9 @@ class H extends n {
|
|
|
1012
1016
|
t ? this.setAttribute("value", t) : this.removeAttribute("value");
|
|
1013
1017
|
}
|
|
1014
1018
|
}
|
|
1015
|
-
customElements.get("px-selectable-box-radio") || customElements.define("px-selectable-box-radio",
|
|
1019
|
+
customElements.get("px-selectable-box-radio") || customElements.define("px-selectable-box-radio", q);
|
|
1016
1020
|
export {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1021
|
+
F as SelectableBox,
|
|
1022
|
+
H as SelectableBoxCheckbox,
|
|
1023
|
+
q as SelectableBoxRadio
|
|
1020
1024
|
};
|