@brad-frost-web/eddie-recipes 0.63.0 → 0.65.0
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/cdn/chunks/accordion-panel.BMRj9KIn.js +222 -0
- package/cdn/chunks/textarea-field.BWBov7zk.js +338 -0
- package/cdn/chunks/timeline-node.CzOCNbxm.js +124 -0
- package/cdn/recipes/common/example-form/example-form.js +284 -507
- package/cdn/recipes/common/timeline-node/TimelineNodeKind.js +1 -1
- package/cdn/recipes/common/timeline-node/timeline-node.js +1 -1
- package/cdn/recipes/tools/theme-customizer/theme-customizer.js +852 -685
- package/cdn/recipes/tools/viz-controls/viz-controls.js +49 -171
- package/package.json +1 -1
- package/recipes/common/ad/ad.d.ts +4 -0
- package/recipes/common/ad/ad.d.ts.map +1 -1
- package/recipes/common/article-card/article-card.d.ts +5 -0
- package/recipes/common/article-card/article-card.d.ts.map +1 -1
- package/recipes/common/page-banner/page-banner.d.ts +5 -0
- package/recipes/common/page-banner/page-banner.d.ts.map +1 -1
- package/recipes/common/promo-block/promo-block.d.ts +4 -0
- package/recipes/common/promo-block/promo-block.d.ts.map +1 -1
- package/recipes/common/site-footer/site-footer.d.ts +4 -0
- package/recipes/common/site-footer/site-footer.d.ts.map +1 -1
- package/recipes/common/site-header/site-header.d.ts +5 -0
- package/recipes/common/site-header/site-header.d.ts.map +1 -1
- package/recipes/common/speaking-card/speaking-card.d.ts +4 -0
- package/recipes/common/speaking-card/speaking-card.d.ts.map +1 -1
- package/recipes/common/vertical-site-header/vertical-site-header.d.ts +3 -0
- package/recipes/common/vertical-site-header/vertical-site-header.d.ts.map +1 -1
- package/recipes/tools/theme-customizer/theme-customizer.d.ts +122 -22
- package/recipes/tools/theme-customizer/theme-customizer.d.ts.map +1 -1
- package/recipes/tools/theme-customizer/theme-customizer.js +758 -596
- package/recipes/we-are-here/wah-site-footer/wah-site-footer.d.ts +3 -0
- package/recipes/we-are-here/wah-site-footer/wah-site-footer.d.ts.map +1 -1
- package/recipes/we-are-here/wah-site-header/wah-site-header.d.ts +3 -0
- package/recipes/we-are-here/wah-site-header/wah-site-header.d.ts.map +1 -1
- package/cdn/chunks/range.BEd7R-Ke.js +0 -100
- package/cdn/chunks/textarea-field.ByXIkwQL.js +0 -114
- package/cdn/chunks/timeline-node.Bj4F82FI.js +0 -94
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { E as v } from "./EdFormElement.D3Jd1jHD.js";
|
|
2
|
+
import { r as g, o as l, b as h, n as t, e as _ } from "./lit.B6pFiYzB.js";
|
|
3
|
+
import { n as p } from "./index.browser.D527xXcp.js";
|
|
4
|
+
import "./select-field.C5TNJvUA.js";
|
|
5
|
+
import { E as y } from "./EdElement.BcrGsPCr.js";
|
|
6
|
+
import "./icon.3TieVSgp.js";
|
|
7
|
+
const k = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-range{display:flex;flex-direction:column;gap:.5rem}.ed-c-range__label{font-family:var(--ed-theme-typography-label-default-font-family);font-weight:var(--ed-theme-typography-label-default-font-weight);font-size:var(--ed-theme-typography-label-default-font-size);line-height:var(--ed-theme-typography-label-default-line-height);letter-spacing:var(--ed-theme-typography-label-default-letter-spacing);text-transform:var(--ed-theme-typography-label-default-text-transform);color:var(--ed-theme-color-content-default)}.ed-c-range__input{-webkit-appearance:none;appearance:none;width:100%;height:.25rem;background:var(--ed-theme-color-background-subtle);border-radius:var(--ed-theme-border-radius-sm);outline:none}.ed-c-range__input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:.75rem;height:.75rem;border-radius:50%;background:var(--ed-theme-color-background-brand);cursor:pointer}.ed-c-range__input::-moz-range-thumb{width:.75rem;height:.75rem;border-radius:50%;background:var(--ed-theme-color-background-brand);cursor:pointer;border:none}.ed-c-range__input::-moz-range-track{background:transparent;border:none}.ed-c-range__input:disabled{cursor:not-allowed}.ed-c-range__input:disabled::-webkit-slider-thumb{cursor:not-allowed}.ed-c-range__input:disabled::-moz-range-thumb{cursor:not-allowed}.ed-c-range.ed-is-disabled,.ed-c-range.ed-is-disabled .ed-c-range__label{color:var(--ed-theme-color-content-disabled)}.ed-c-range--knockout .ed-c-range__label{color:var(--ed-theme-color-content-knockout)}.ed-c-range--sm{--ed-field-padding-block: .375rem;--ed-field-padding-inline: .375rem;--ed-field-font-size: var(--ed-theme-typography-body-sm-font-size);--ed-field-line-height: var(--ed-theme-typography-body-sm-line-height);--ed-field-label-font-size: var(--ed-theme-typography-label-sm-font-size, var(--ed-theme-typography-body-sm-font-size));--ed-field-label-gap: .125rem;--ed-field-note-gap: .125rem;--ed-control-box-size: 1.125rem}.ed-c-range--lg{--ed-field-padding-block: 1.125rem;--ed-field-padding-inline: .75rem;--ed-field-font-size: var(--ed-theme-typography-body-lg-font-size, var(--ed-theme-typography-body-default-font-size));--ed-field-line-height: var(--ed-theme-typography-body-lg-line-height, var(--ed-theme-typography-body-default-line-height));--ed-field-label-gap: .375rem;--ed-field-note-gap: .375rem;--ed-control-box-size: 2rem}';
|
|
8
|
+
var $ = Object.defineProperty, a = (n, i, d, f) => {
|
|
9
|
+
for (var e = void 0, r = n.length - 1, s; r >= 0; r--)
|
|
10
|
+
(s = n[r]) && (e = s(i, d, e) || e);
|
|
11
|
+
return e && $(i, d, e), e;
|
|
12
|
+
};
|
|
13
|
+
class o extends v {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.type = "range", this.label = "Range", this.min = "0", this.max = "100";
|
|
16
|
+
}
|
|
17
|
+
static get styles() {
|
|
18
|
+
return g(k);
|
|
19
|
+
}
|
|
20
|
+
connectedCallback() {
|
|
21
|
+
super.connectedCallback(), this.fieldId = this.fieldId || p(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy || p());
|
|
22
|
+
}
|
|
23
|
+
handleInput(i) {
|
|
24
|
+
this.value = i.target.value, this.internals.setFormValue(this.value), this.syncValidity();
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
const i = this.componentClassNames("ed-c-range", {
|
|
28
|
+
"ed-c-range--sm": this.size === "sm",
|
|
29
|
+
"ed-c-range--lg": this.size === "lg",
|
|
30
|
+
"ed-c-range--knockout": this.knockout === !0 || this.inverted === !0,
|
|
31
|
+
"ed-is-disabled": this.disabled === !0
|
|
32
|
+
});
|
|
33
|
+
return h`
|
|
34
|
+
<div class="${i}">
|
|
35
|
+
<label class="ed-c-range__label" for="${this.fieldId}">${this.label}</label>
|
|
36
|
+
<input
|
|
37
|
+
class="ed-c-range__input"
|
|
38
|
+
type="range"
|
|
39
|
+
id="${this.fieldId}"
|
|
40
|
+
name="${l(this.name)}"
|
|
41
|
+
value="${l(this.value)}"
|
|
42
|
+
min="${this.min}"
|
|
43
|
+
max="${this.max}"
|
|
44
|
+
step="${l(this.step)}"
|
|
45
|
+
@input="${this.handleInput}"
|
|
46
|
+
?disabled="${this.disabled}"
|
|
47
|
+
aria-describedby="${l(this.ariaDescribedBy)}"
|
|
48
|
+
/>
|
|
49
|
+
${this.fieldNote && h`<ed-field-note
|
|
50
|
+
?knockout=${this.knockout === !0 || this.inverted === !0}
|
|
51
|
+
id=${l(this.ariaDescribedBy)}
|
|
52
|
+
iconName=${l(this.iconName)}
|
|
53
|
+
>
|
|
54
|
+
${this.fieldNote}
|
|
55
|
+
</ed-field-note>`}
|
|
56
|
+
</div>
|
|
57
|
+
`;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
a([
|
|
61
|
+
t()
|
|
62
|
+
], o.prototype, "fieldId");
|
|
63
|
+
a([
|
|
64
|
+
t()
|
|
65
|
+
], o.prototype, "label");
|
|
66
|
+
a([
|
|
67
|
+
t()
|
|
68
|
+
], o.prototype, "name");
|
|
69
|
+
a([
|
|
70
|
+
t()
|
|
71
|
+
], o.prototype, "fieldNote");
|
|
72
|
+
a([
|
|
73
|
+
t()
|
|
74
|
+
], o.prototype, "ariaDescribedBy");
|
|
75
|
+
a([
|
|
76
|
+
t()
|
|
77
|
+
], o.prototype, "min");
|
|
78
|
+
a([
|
|
79
|
+
t()
|
|
80
|
+
], o.prototype, "max");
|
|
81
|
+
a([
|
|
82
|
+
t()
|
|
83
|
+
], o.prototype, "step");
|
|
84
|
+
a([
|
|
85
|
+
t({ type: Boolean })
|
|
86
|
+
], o.prototype, "disabled");
|
|
87
|
+
a([
|
|
88
|
+
t({ type: Boolean })
|
|
89
|
+
], o.prototype, "knockout");
|
|
90
|
+
a([
|
|
91
|
+
t({ type: Boolean })
|
|
92
|
+
], o.prototype, "inverted");
|
|
93
|
+
a([
|
|
94
|
+
t()
|
|
95
|
+
], o.prototype, "iconName");
|
|
96
|
+
a([
|
|
97
|
+
t()
|
|
98
|
+
], o.prototype, "size");
|
|
99
|
+
a([
|
|
100
|
+
_("input")
|
|
101
|
+
], o.prototype, "field");
|
|
102
|
+
customElements.get("ed-range") === void 0 && customElements.define("ed-range", o);
|
|
103
|
+
const x = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-accordion--knockout{color:var(--ed-theme-color-content-knockout);--ed-accordion-panel-button-hover-text-color: var(--ed-theme-color-content-subtle)}.ed-c-accordion--condensed{--ed-accordion-panel-padding-block: .5rem}';
|
|
104
|
+
var z = Object.defineProperty, u = (n, i, d, f) => {
|
|
105
|
+
for (var e = void 0, r = n.length - 1, s; r >= 0; r--)
|
|
106
|
+
(s = n[r]) && (e = s(i, d, e) || e);
|
|
107
|
+
return e && z(i, d, e), e;
|
|
108
|
+
};
|
|
109
|
+
class m extends y {
|
|
110
|
+
static get styles() {
|
|
111
|
+
return g(x);
|
|
112
|
+
}
|
|
113
|
+
render() {
|
|
114
|
+
const i = this.componentClassNames("ed-c-accordion", {
|
|
115
|
+
"ed-c-accordion--knockout": this.knockout === !0 || this.inverted === !0,
|
|
116
|
+
"ed-c-accordion--condensed": this.spacing === "condensed"
|
|
117
|
+
});
|
|
118
|
+
return h`
|
|
119
|
+
<dl class="${i}">
|
|
120
|
+
<slot></slot>
|
|
121
|
+
</dl>
|
|
122
|
+
`;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
u([
|
|
126
|
+
t({ type: Boolean })
|
|
127
|
+
], m.prototype, "knockout");
|
|
128
|
+
u([
|
|
129
|
+
t({ type: Boolean })
|
|
130
|
+
], m.prototype, "inverted");
|
|
131
|
+
u([
|
|
132
|
+
t()
|
|
133
|
+
], m.prototype, "spacing");
|
|
134
|
+
customElements.get("ed-accordion") === void 0 && customElements.define("ed-accordion", m);
|
|
135
|
+
const w = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-accordion-panel{border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle)}.ed-c-accordion-panel__header{display:flex;align-items:center;gap:var(--ed-theme-spacing-inline)}.ed-c-accordion-panel__button{text-align:start;display:flex;align-items:center;appearance:none;background:none;border:none;padding:var(--ed-accordion-panel-padding-block, 1rem) 0;flex:1 1 auto;min-width:0;cursor:pointer;color:inherit;overflow-x:hidden;transition:color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel__button:hover,.ed-c-accordion-panel__button:focus{color:var(--ed-accordion-panel-button-hover-text-color, var(--ed-theme-color-content-default-hover))}ed-icon{margin-inline-start:auto;transition:transform var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel.ed-is-active ed-icon{transform:rotate(-180deg)}.ed-c-accordion-panel__body{margin:0;padding:0;overflow:hidden;visibility:hidden;transition:height var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease),visibility var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel.ed-is-active .ed-c-accordion-panel__body{visibility:visible}.ed-c-accordion-panel__body-inner{padding-block-end:var(--ed-accordion-panel-padding-block, 1rem);padding-block-start:var(--ed-accordion-panel-padding-block, 1rem)}';
|
|
136
|
+
var P = Object.defineProperty, b = (n, i, d, f) => {
|
|
137
|
+
for (var e = void 0, r = n.length - 1, s; r >= 0; r--)
|
|
138
|
+
(s = n[r]) && (e = s(i, d, e) || e);
|
|
139
|
+
return e && P(i, d, e), e;
|
|
140
|
+
};
|
|
141
|
+
class c extends y {
|
|
142
|
+
static get styles() {
|
|
143
|
+
return g(w);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Initialize functions
|
|
147
|
+
*/
|
|
148
|
+
constructor() {
|
|
149
|
+
super(), this.togglePanel = this.togglePanel.bind(this), this.setPanelHeight = this.setPanelHeight.bind(this);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Initialize/Update
|
|
153
|
+
* 1) Set panel height on load. Active state should set panel height to content within panel
|
|
154
|
+
*/
|
|
155
|
+
connectedCallback() {
|
|
156
|
+
super.connectedCallback(), this.id = this.id || p(), this.ariaLabelledBy = this.ariaLabelledBy || p(), this.setPanelHeight(), this.isActive && (this.fullyOpen = !0, this.setPanelHeight());
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Set panel height
|
|
160
|
+
* 1) If isActive is true and fullyOpen is false or this fullyOpen is true and isActive is false, set the height to the accordion
|
|
161
|
+
* panel body scroll height
|
|
162
|
+
* 2) If isActive and fullyOpen are true, set the height to auto
|
|
163
|
+
* 3) If isActive and fullyOpen are false, set the height to 0
|
|
164
|
+
*/
|
|
165
|
+
async setPanelHeight() {
|
|
166
|
+
await this.updateComplete, this.isActive && !this.fullyOpen || !this.isActive && this.fullyOpen ? this.height = this.shadowRoot.querySelector(".ed-c-accordion-panel__body-inner").scrollHeight + "px" : this.isActive && this.fullyOpen ? this.height = "auto" : !this.isActive && !this.fullyOpen && (this.height = "0");
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Set panel height
|
|
170
|
+
* 1) If isActive is true and fullyOpen is false or this fullyOpen is true and isActive is false, set the height to the accordion
|
|
171
|
+
* panel body scroll height
|
|
172
|
+
* 2) If isActive and fullyOpen are true, set the height to auto
|
|
173
|
+
* 3) If isActive and fullyOpen are false, set the height to 0
|
|
174
|
+
*/
|
|
175
|
+
togglePanel() {
|
|
176
|
+
this.isActive = !this.isActive, this.isActive ? (this.setPanelHeight(), setTimeout(() => {
|
|
177
|
+
this.fullyOpen = !0, this.setPanelHeight();
|
|
178
|
+
}, 150)) : (this.setPanelHeight(), setTimeout(() => {
|
|
179
|
+
this.fullyOpen = !1, this.setPanelHeight();
|
|
180
|
+
}, 50));
|
|
181
|
+
}
|
|
182
|
+
render() {
|
|
183
|
+
const i = this.componentClassNames("ed-c-accordion-panel", {
|
|
184
|
+
"ed-is-active": this.isActive === !0
|
|
185
|
+
});
|
|
186
|
+
return h`
|
|
187
|
+
<div class="${i}">
|
|
188
|
+
<dt class="ed-c-accordion-panel__header">
|
|
189
|
+
<button
|
|
190
|
+
class="ed-c-accordion-panel__button"
|
|
191
|
+
aria-expanded="${!!this.isActive}"
|
|
192
|
+
id="${this.ariaLabelledBy}"
|
|
193
|
+
aria-controls="${this.id}"
|
|
194
|
+
@click=${this.togglePanel}
|
|
195
|
+
>
|
|
196
|
+
<slot name="header"></slot>
|
|
197
|
+
<ed-icon name="keyboard-arrow-down"></ed-icon>
|
|
198
|
+
</button>
|
|
199
|
+
<slot name="headerAfter"></slot>
|
|
200
|
+
</dt>
|
|
201
|
+
<dd class="ed-c-accordion-panel__body" aria-labelledby="${this.ariaLabelledBy}" id="${this.id}" style=${"height: " + this.height}>
|
|
202
|
+
<div class="ed-c-accordion-panel__body-inner" #bodyInner>
|
|
203
|
+
<slot></slot>
|
|
204
|
+
</div>
|
|
205
|
+
</dd>
|
|
206
|
+
</div>
|
|
207
|
+
`;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
b([
|
|
211
|
+
t({ type: Boolean })
|
|
212
|
+
], c.prototype, "isActive");
|
|
213
|
+
b([
|
|
214
|
+
t({ type: Boolean })
|
|
215
|
+
], c.prototype, "fullyOpen");
|
|
216
|
+
b([
|
|
217
|
+
t()
|
|
218
|
+
], c.prototype, "ariaLabelledBy");
|
|
219
|
+
b([
|
|
220
|
+
t()
|
|
221
|
+
], c.prototype, "height");
|
|
222
|
+
customElements.get("ed-accordion-panel") === void 0 && customElements.define("ed-accordion-panel", c);
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { E as g } from "./EdFormElement.D3Jd1jHD.js";
|
|
2
|
+
import { r as y, o as h, b as f, n as e, e as v } from "./lit.B6pFiYzB.js";
|
|
3
|
+
import { n as b } from "./index.browser.D527xXcp.js";
|
|
4
|
+
import "./icon.3TieVSgp.js";
|
|
5
|
+
import { E as k } from "./EdElement.BcrGsPCr.js";
|
|
6
|
+
import "./select-field.C5TNJvUA.js";
|
|
7
|
+
const x = `@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}ed-checkbox-field-item{display:contents}.ed-c-checkbox-field-item{display:flex;position:relative;margin:0;padding:0}.ed-c-checkbox-field-item__label{font-family:var(--ed-theme-typography-body-default-font-family);font-weight:var(--ed-theme-typography-body-default-font-weight);font-size:var(--ed-theme-typography-body-default-font-size);line-height:var(--ed-theme-typography-body-default-line-height);letter-spacing:var(--ed-theme-typography-body-default-letter-spacing);text-transform:var(--ed-theme-typography-body-default-text-transform);position:relative;inset-block-start:.03125rem;margin-inline-start:.5rem;flex:1}.ed-c-checkbox__input{display:block;margin:0;z-index:4;width:max(1.5rem,var(--ed-control-box-size, 1.5rem));height:max(1.5rem,var(--ed-control-box-size, 1.5rem));cursor:pointer;opacity:0}.ed-c-checkbox__input:disabled{cursor:not-allowed}.ed-c-checkbox__custom-check{display:flex;align-items:center;justify-content:center;position:absolute;inset-block-start:0;inset-inline-end:0;inset-block-end:0;inset-inline-start:0;width:var(--ed-control-box-size, 1.5rem);height:var(--ed-control-box-size, 1.5rem);flex-shrink:0;z-index:1}.ed-c-checkbox__custom-check:before{content:"";position:absolute;inset-block-start:0;inset-inline-end:0;inset-block-end:0;inset-inline-start:0;z-index:1;display:block;border:var(--ed-theme-border-width-sm) solid var(--ed-theme-form-color-border-default);background-color:var(--ed-theme-form-color-background-default);border-radius:var(--ed-theme-border-radius-sm)}.ed-c-checkbox__input:hover+.ed-c-checkbox__custom-check:before{border-color:var(--ed-theme-form-color-border-hover)}.ed-c-checkbox__input:disabled+.ed-c-checkbox__custom-check:before{border-color:var(--ed-theme-color-border-disabled);background-color:var(--ed-theme-color-background-disabled);cursor:not-allowed}.ed-c-checkbox__input:checked+.ed-c-checkbox__custom-check:before{background-color:var(--ed-theme-color-background-brand-knockout);border-color:transparent}.ed-c-checkbox__input:checked:hover+.ed-c-checkbox__custom-check:before{background-color:var(--ed-theme-color-background-brand-hover);border-color:transparent}.ed-c-checkbox__input:checked:disabled+.ed-c-checkbox__custom-check:before{background-color:var(--ed-theme-color-background-brand-disabled);border-color:transparent}.ed-c-checkbox__input:focus-visible+.ed-c-checkbox__custom-check:before{outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-focus-ring-offset, .25rem)}.ed-c-checkbox__custom-check ed-icon{--ed-icon-fill: var(--ed-theme-color-content-knockout);--ed-icon-height: 1rem;--ed-icon-width: 1rem;position:relative;display:block;opacity:0;z-index:2}.ed-c-checkbox__input:checked+.ed-c-checkbox__custom-check ed-icon{opacity:1}.ed-is-indeterminate .ed-c-checkbox__input:not(:checked):hover+.ed-c-checkbox__custom-check:before{background-color:var(--ed-theme-color-background-brand-hover);border-color:transparent}.ed-is-indeterminate .ed-c-checkbox__input:not(:checked):disabled+.ed-c-checkbox__custom-check:before{background-color:var(--ed-theme-color-background-brand-disabled);border-color:transparent}.ed-is-indeterminate .ed-c-checkbox__input:not(:checked)+.ed-c-checkbox__custom-check:before{background-color:var(--ed-theme-color-background-brand);border-color:transparent}.ed-is-indeterminate .ed-c-checkbox__input:not(:checked)+.ed-c-checkbox__custom-check:after{opacity:1;width:10px;height:4px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 1.52'%3E%3Cpath d='M9.24,1.52H.76A.76.76,0,0,1,.76,0H9.24a.76.76,0,0,1,0,1.52Z' fill='%23ffffff'/%3E%3C/svg%3E")}.ed-c-checkbox-field-item--sm{--ed-field-padding-block: .375rem;--ed-field-padding-inline: .375rem;--ed-field-font-size: var(--ed-theme-typography-body-sm-font-size);--ed-field-line-height: var(--ed-theme-typography-body-sm-line-height);--ed-field-label-font-size: var(--ed-theme-typography-label-sm-font-size, var(--ed-theme-typography-body-sm-font-size));--ed-field-label-gap: .125rem;--ed-field-note-gap: .125rem;--ed-control-box-size: 1.125rem}.ed-c-checkbox-field-item--lg{--ed-field-padding-block: 1.125rem;--ed-field-padding-inline: .75rem;--ed-field-font-size: var(--ed-theme-typography-body-lg-font-size, var(--ed-theme-typography-body-default-font-size));--ed-field-line-height: var(--ed-theme-typography-body-lg-line-height, var(--ed-theme-typography-body-default-line-height));--ed-field-label-gap: .375rem;--ed-field-note-gap: .375rem;--ed-control-box-size: 2rem}`;
|
|
8
|
+
var _ = Object.defineProperty, c = (n, l, p, u) => {
|
|
9
|
+
for (var t = void 0, s = n.length - 1, m; s >= 0; s--)
|
|
10
|
+
(m = n[s]) && (t = m(l, p, t) || t);
|
|
11
|
+
return t && _(l, p, t), t;
|
|
12
|
+
};
|
|
13
|
+
class r extends g {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.type = "checkbox", this.checked = !1, this.optionalLabel = "(optional)";
|
|
16
|
+
}
|
|
17
|
+
static get styles() {
|
|
18
|
+
return y(x);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Connected callback
|
|
22
|
+
* 1) Set the fieldId if it is not set
|
|
23
|
+
* 2) Set the form value if the checkbox is checked
|
|
24
|
+
* 3) Set the form value to null if the checkbox is not checked
|
|
25
|
+
* 4) Set the aria-describedby if the fieldNote is set
|
|
26
|
+
*/
|
|
27
|
+
connectedCallback() {
|
|
28
|
+
super.connectedCallback(), this.fieldId = this.fieldId || b(), this.setFormData(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy || b()), this.defaultValue = this.checked;
|
|
29
|
+
}
|
|
30
|
+
setFormData() {
|
|
31
|
+
this.checked ? this.internals.setFormValue(this.value) : this.internals.setFormValue(null), this.syncValidity();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The shadow `<input>`'s native `change` is not composed, so it stops at the
|
|
35
|
+
* shadow boundary and consumers can't observe the toggle (#1171). Re-emit it
|
|
36
|
+
* in the shape `ed-toggle` already uses.
|
|
37
|
+
*/
|
|
38
|
+
handleOnChange() {
|
|
39
|
+
this.checked = !this.checked, this.setFormData(), this.dispatch({
|
|
40
|
+
eventName: "change",
|
|
41
|
+
detailObj: { checked: this.checked, value: this.value }
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
formResetCallback() {
|
|
45
|
+
this.checked = this.defaultValue, this.field.checked = this.defaultValue, this.setFormData(), this.requestUpdate();
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
const l = this.componentClassNames("ed-c-checkbox-field-item", {
|
|
49
|
+
"ed-c-checkbox-field-item--sm": this.size === "sm",
|
|
50
|
+
"ed-c-checkbox-field-item--lg": this.size === "lg"
|
|
51
|
+
});
|
|
52
|
+
return f`
|
|
53
|
+
<div class="${l}">
|
|
54
|
+
<input
|
|
55
|
+
id="${this.fieldId}"
|
|
56
|
+
type="checkbox"
|
|
57
|
+
name="${this.name}"
|
|
58
|
+
class="ed-c-checkbox__input"
|
|
59
|
+
value="${this.value}"
|
|
60
|
+
?checked="${this.checked}"
|
|
61
|
+
?disabled="${this.disabled}"
|
|
62
|
+
?readonly="${this.readOnly}"
|
|
63
|
+
@change=${this.handleOnChange}
|
|
64
|
+
aria-describedby="${h(this.ariaDescribedBy)}"
|
|
65
|
+
/>
|
|
66
|
+
<span class="ed-c-checkbox__custom-check">
|
|
67
|
+
<ed-icon name="check"></ed-icon>
|
|
68
|
+
</span>
|
|
69
|
+
<label class="ed-c-checkbox-field-item__label" for="${this.fieldId}">
|
|
70
|
+
<slot></slot>
|
|
71
|
+
</label>
|
|
72
|
+
</div>
|
|
73
|
+
`;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
c([
|
|
77
|
+
e({ type: Boolean })
|
|
78
|
+
], r.prototype, "isError");
|
|
79
|
+
c([
|
|
80
|
+
e({ type: Boolean })
|
|
81
|
+
], r.prototype, "isSuccess");
|
|
82
|
+
c([
|
|
83
|
+
e({ type: Boolean })
|
|
84
|
+
], r.prototype, "readOnly");
|
|
85
|
+
c([
|
|
86
|
+
e({ type: Boolean })
|
|
87
|
+
], r.prototype, "disabled");
|
|
88
|
+
c([
|
|
89
|
+
e()
|
|
90
|
+
], r.prototype, "fieldId");
|
|
91
|
+
c([
|
|
92
|
+
e()
|
|
93
|
+
], r.prototype, "name");
|
|
94
|
+
c([
|
|
95
|
+
e({ type: Boolean })
|
|
96
|
+
], r.prototype, "checked");
|
|
97
|
+
c([
|
|
98
|
+
e()
|
|
99
|
+
], r.prototype, "fieldNote");
|
|
100
|
+
c([
|
|
101
|
+
e({ type: Boolean })
|
|
102
|
+
], r.prototype, "required");
|
|
103
|
+
c([
|
|
104
|
+
e()
|
|
105
|
+
], r.prototype, "optionalLabel");
|
|
106
|
+
c([
|
|
107
|
+
e()
|
|
108
|
+
], r.prototype, "iconName");
|
|
109
|
+
c([
|
|
110
|
+
e({ type: Boolean })
|
|
111
|
+
], r.prototype, "knockout");
|
|
112
|
+
c([
|
|
113
|
+
e({ type: Boolean })
|
|
114
|
+
], r.prototype, "inverted");
|
|
115
|
+
c([
|
|
116
|
+
e()
|
|
117
|
+
], r.prototype, "ariaDescribedBy");
|
|
118
|
+
c([
|
|
119
|
+
e()
|
|
120
|
+
], r.prototype, "size");
|
|
121
|
+
c([
|
|
122
|
+
v("input")
|
|
123
|
+
], r.prototype, "field");
|
|
124
|
+
customElements.get("ed-checkbox-field-item") === void 0 && customElements.define("ed-checkbox-field-item", r);
|
|
125
|
+
const z = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-u-is-hidden{display:none!important;visibility:hidden!important}.ed-u-is-vishidden{position:absolute!important;overflow:hidden;width:1px;height:1px;padding:0;border:0;clip:rect(1px,1px,1px,1px)}@media all and (min-width:23.4375rem){.ed-u-hide-sm{display:none!important}}@media all and (min-width:48rem){.ed-u-hide-md{display:none!important}}@media all and (min-width:60rem){.ed-u-hide-lg{display:none!important}}@media all and (min-width:75rem){.ed-u-hide-xl{display:none!important}}@media all and (max-width:23.4375rem){.ed-u-show-sm{display:none!important}}@media all and (max-width:48rem){.ed-u-show-md{display:none!important}}@media all and (max-width:60rem){.ed-u-show-lg{display:none!important}}@media all and (max-width:75rem){.ed-u-show-xl{display:none!important}}.ed-c-checkbox-field{border:none;margin:0;padding:0}.ed-c-checkbox-field--knockout{color:var(--ed-theme-color-content-knockout)}.ed-c-checkbox-field__legend{font-family:var(--ed-theme-typography-label-default-font-family);font-weight:var(--ed-theme-typography-label-default-font-weight);font-size:var(--ed-theme-typography-label-default-font-size);line-height:var(--ed-theme-typography-label-default-line-height);letter-spacing:var(--ed-theme-typography-label-default-letter-spacing);text-transform:var(--ed-theme-typography-label-default-text-transform);display:block;font-size:var(--ed-field-label-font-size, var(--ed-theme-typography-label-default-font-size));margin-block-end:var(--ed-field-label-gap, .25rem);display:inline-block;margin-block-end:1rem}.ed-c-checkbox-field__list{display:flex;flex-direction:column;gap:.75rem;list-style:none;margin:0;padding:0}.ed-c-checkbox-field--sm{--ed-field-padding-block: .375rem;--ed-field-padding-inline: .375rem;--ed-field-font-size: var(--ed-theme-typography-body-sm-font-size);--ed-field-line-height: var(--ed-theme-typography-body-sm-line-height);--ed-field-label-font-size: var(--ed-theme-typography-label-sm-font-size, var(--ed-theme-typography-body-sm-font-size));--ed-field-label-gap: .125rem;--ed-field-note-gap: .125rem;--ed-control-box-size: 1.125rem}.ed-c-checkbox-field--lg{--ed-field-padding-block: 1.125rem;--ed-field-padding-inline: .75rem;--ed-field-font-size: var(--ed-theme-typography-body-lg-font-size, var(--ed-theme-typography-body-default-font-size));--ed-field-line-height: var(--ed-theme-typography-body-lg-line-height, var(--ed-theme-typography-body-default-line-height));--ed-field-label-gap: .375rem;--ed-field-note-gap: .375rem;--ed-control-box-size: 2rem}';
|
|
126
|
+
var w = Object.defineProperty, i = (n, l, p, u) => {
|
|
127
|
+
for (var t = void 0, s = n.length - 1, m; s >= 0; s--)
|
|
128
|
+
(m = n[s]) && (t = m(l, p, t) || t);
|
|
129
|
+
return t && w(l, p, t), t;
|
|
130
|
+
};
|
|
131
|
+
class o extends k {
|
|
132
|
+
constructor() {
|
|
133
|
+
super(...arguments), this.optionalLabel = "(optional)", this.label = "Label";
|
|
134
|
+
}
|
|
135
|
+
static get styles() {
|
|
136
|
+
return y(z);
|
|
137
|
+
}
|
|
138
|
+
render() {
|
|
139
|
+
const l = this.componentClassNames("ed-c-checkbox-field", {
|
|
140
|
+
"ed-c-checkbox-field--sm": this.size === "sm",
|
|
141
|
+
"ed-c-checkbox-field--lg": this.size === "lg",
|
|
142
|
+
"ed-c-checkbox-field--knockout": this.knockout === !0 || this.inverted === !0
|
|
143
|
+
});
|
|
144
|
+
return f`
|
|
145
|
+
<fieldset class="${l}">
|
|
146
|
+
<legend
|
|
147
|
+
class=${this.hideLegend ? "ed-c-checkbox-field__legend ed-u-is-vishidden" : "ed-c-checkbox-field__legend"}
|
|
148
|
+
aria-describedby="${this.ariaDescribedBy}"
|
|
149
|
+
>
|
|
150
|
+
${this.label}
|
|
151
|
+
</legend>
|
|
152
|
+
|
|
153
|
+
<div class="ed-c-checkbox-field__body">
|
|
154
|
+
<!-- Deliberately presentational, not a list. The fieldset and legend
|
|
155
|
+
above already group these controls for assistive technology, and a
|
|
156
|
+
list wrapper whose items are custom elements cannot form a valid
|
|
157
|
+
list across shadow roots anyway (#785). Restoring list semantics
|
|
158
|
+
here would announce a redundant "list of N items" over a checkbox group
|
|
159
|
+
that already reports its own membership. -->
|
|
160
|
+
<div class="ed-c-checkbox-field__list">
|
|
161
|
+
<slot></slot>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
${this.fieldNote && f`<ed-field-note
|
|
165
|
+
?knockout=${this.knockout === !0 || this.inverted === !0}
|
|
166
|
+
id=${h(this.ariaDescribedBy)}
|
|
167
|
+
iconName=${h(this.iconName)}
|
|
168
|
+
?isSuccess=${this.isSuccess}
|
|
169
|
+
?isError=${this.isError}
|
|
170
|
+
>
|
|
171
|
+
${this.fieldNote}
|
|
172
|
+
</ed-field-note>`}
|
|
173
|
+
</fieldset>
|
|
174
|
+
`;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
i([
|
|
178
|
+
e({ type: Boolean })
|
|
179
|
+
], o.prototype, "isError");
|
|
180
|
+
i([
|
|
181
|
+
e({ type: Boolean })
|
|
182
|
+
], o.prototype, "isSuccess");
|
|
183
|
+
i([
|
|
184
|
+
e({ type: Boolean })
|
|
185
|
+
], o.prototype, "readOnly");
|
|
186
|
+
i([
|
|
187
|
+
e({ type: Boolean })
|
|
188
|
+
], o.prototype, "disabled");
|
|
189
|
+
i([
|
|
190
|
+
e()
|
|
191
|
+
], o.prototype, "fieldId");
|
|
192
|
+
i([
|
|
193
|
+
e()
|
|
194
|
+
], o.prototype, "name");
|
|
195
|
+
i([
|
|
196
|
+
e({ type: Boolean })
|
|
197
|
+
], o.prototype, "checked");
|
|
198
|
+
i([
|
|
199
|
+
e()
|
|
200
|
+
], o.prototype, "fieldNote");
|
|
201
|
+
i([
|
|
202
|
+
e({ type: Boolean })
|
|
203
|
+
], o.prototype, "required");
|
|
204
|
+
i([
|
|
205
|
+
e({ type: Boolean })
|
|
206
|
+
], o.prototype, "hideLegend");
|
|
207
|
+
i([
|
|
208
|
+
e()
|
|
209
|
+
], o.prototype, "optionalLabel");
|
|
210
|
+
i([
|
|
211
|
+
e()
|
|
212
|
+
], o.prototype, "iconName");
|
|
213
|
+
i([
|
|
214
|
+
e({ type: Boolean })
|
|
215
|
+
], o.prototype, "knockout");
|
|
216
|
+
i([
|
|
217
|
+
e({ type: Boolean })
|
|
218
|
+
], o.prototype, "inverted");
|
|
219
|
+
i([
|
|
220
|
+
e()
|
|
221
|
+
], o.prototype, "ariaDescribedBy");
|
|
222
|
+
i([
|
|
223
|
+
e()
|
|
224
|
+
], o.prototype, "label");
|
|
225
|
+
i([
|
|
226
|
+
e()
|
|
227
|
+
], o.prototype, "size");
|
|
228
|
+
customElements.get("ed-checkbox-field") === void 0 && customElements.define("ed-checkbox-field", o);
|
|
229
|
+
const $ = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-textarea-field__label{font-family:var(--ed-theme-typography-label-default-font-family);font-weight:var(--ed-theme-typography-label-default-font-weight);font-size:var(--ed-theme-typography-label-default-font-size);line-height:var(--ed-theme-typography-label-default-line-height);letter-spacing:var(--ed-theme-typography-label-default-letter-spacing);text-transform:var(--ed-theme-typography-label-default-text-transform);display:block;font-size:var(--ed-field-label-font-size, var(--ed-theme-typography-label-default-font-size));margin-block-end:var(--ed-field-label-gap, .25rem)}.ed-c-textarea-field--knockout .ed-c-textarea-field__label{color:var(--ed-theme-color-content-knockout)}.ed-c-textarea-field.ed-is-error .ed-c-textarea-field__label{color:var(--ed-theme-color-content-utility-error)}.ed-c-textarea-field.ed-is-success .ed-c-textarea-field__label{color:var(--ed-theme-color-content-utility-success)}.ed-c-textarea-field__input{-webkit-appearance:none;width:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-form-color-border-default);border-radius:var(--ed-theme-border-radius-sm);outline:none;padding:var(--ed-field-padding-block, .8125rem) var(--ed-field-padding-inline, .5rem);font-family:var(--ed-theme-typography-body-default-font-family);font-weight:var(--ed-theme-typography-body-default-font-weight);font-size:var(--ed-theme-typography-body-default-font-size);line-height:var(--ed-theme-typography-body-default-line-height);letter-spacing:var(--ed-theme-typography-body-default-letter-spacing);text-transform:var(--ed-theme-typography-body-default-text-transform);font-size:var(--ed-field-font-size, var(--ed-theme-typography-body-default-font-size));line-height:var(--ed-field-line-height, var(--ed-theme-typography-body-default-line-height));color:var(--ed-theme-form-color-content-default);background-color:var(--ed-theme-form-color-background-default);transition:border-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease),background-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease),box-shadow var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-textarea-field__input:hover{border-color:var(--ed-theme-color-border-brand);background-color:var(--ed-theme-form-color-background-hover)}.ed-c-textarea-field__input:focus:not(:disabled){border-color:var(--ed-theme-form-color-border-focus)}.ed-c-textarea-field__input:not(:placeholder-shown):focus:not(:disabled){border-color:var(--ed-theme-form-color-border-focus);background-color:var(--ed-theme-form-color-background-hover)}.ed-is-error .ed-c-textarea-field__input:not(:placeholder-shown):focus:not(:disabled){background-color:var(--ed-theme-color-background-utility-error)}.ed-is-success .ed-c-textarea-field__input:not(:placeholder-shown):focus:not(:disabled){background-color:var(--ed-theme-color-background-utility-success)}.ed-c-textarea-field__input:active:not(:disabled){border-color:var(--ed-theme-form-color-border-default)}.ed-c-textarea-field__input:disabled{background-color:var(--ed-theme-color-background-subtle);border-color:var(--ed-theme-color-border-disabled);color:var(--ed-theme-color-content-disabled);cursor:not-allowed}.ed-c-textarea-field__input:disabled~.ed-c-text-field__label,.ed-c-textarea-field__input:disabled:hover~.ed-c-text-field__label,.ed-c-textarea-field__input:disabled::placeholder{color:var(--ed-theme-color-content-disabled)}.ed-c-textarea-field__input:focus-visible{outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-focus-ring-offset, .25rem)}.ed-c-textarea-field__input::placeholder{font-family:var(--ed-theme-typography-body-sm-font-family);font-weight:var(--ed-theme-typography-body-sm-font-weight);font-size:var(--ed-theme-typography-body-sm-font-size);line-height:var(--ed-theme-typography-body-sm-line-height);letter-spacing:var(--ed-theme-typography-body-sm-letter-spacing);text-transform:var(--ed-theme-typography-body-sm-text-transform);color:var(--ed-theme-form-color-content-subtle);transition:color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-is-error .ed-c-textarea-field__input::placeholder{color:var(--ed-theme-color-content-utility-error)}.ed-is-error .ed-c-textarea-field__input:hover::placeholder{color:var(--ed-theme-color-content-utility-error)}.ed-is-error .ed-c-textarea-field__input{color:var(--ed-theme-color-content-default);border-color:var(--ed-theme-color-border-utility-error);background-color:var(--ed-theme-color-background-utility-error)}.ed-is-error .ed-c-textarea-field__input:hover,.ed-is-error .ed-c-textarea-field__input:focus{background-color:var(--ed-theme-color-background-utility-error)}.ed-is-error .ed-c-textarea-field__input:not(:focus){color:var(--ed-theme-color-content-default)}.ed-is-success .ed-c-textarea-field__input{color:var(--ed-theme-color-content-default);border-color:var(--ed-theme-color-border-utility-success);background-color:var(--ed-theme-color-background-utility-success)}.ed-is-success .ed-c-textarea-field__input:hover,.ed-is-success .ed-c-textarea-field__input:focus{background-color:var(--ed-theme-color-background-utility-success)}.ed-c-textarea-field__input{display:block;width:100%;padding:.5rem}.ed-c-textarea-field--knockout .ed-c-textarea-field__input{border-color:var(--ed-theme-color-border-subtle)}.ed-c-textarea-field--sm{--ed-field-padding-block: .375rem;--ed-field-padding-inline: .375rem;--ed-field-font-size: var(--ed-theme-typography-body-sm-font-size);--ed-field-line-height: var(--ed-theme-typography-body-sm-line-height);--ed-field-label-font-size: var(--ed-theme-typography-label-sm-font-size, var(--ed-theme-typography-body-sm-font-size));--ed-field-label-gap: .125rem;--ed-field-note-gap: .125rem;--ed-control-box-size: 1.125rem}.ed-c-textarea-field--lg{--ed-field-padding-block: 1.125rem;--ed-field-padding-inline: .75rem;--ed-field-font-size: var(--ed-theme-typography-body-lg-font-size, var(--ed-theme-typography-body-default-font-size));--ed-field-line-height: var(--ed-theme-typography-body-lg-line-height, var(--ed-theme-typography-body-default-line-height));--ed-field-label-gap: .375rem;--ed-field-note-gap: .375rem;--ed-control-box-size: 2rem}';
|
|
230
|
+
var B = Object.defineProperty, a = (n, l, p, u) => {
|
|
231
|
+
for (var t = void 0, s = n.length - 1, m; s >= 0; s--)
|
|
232
|
+
(m = n[s]) && (t = m(l, p, t) || t);
|
|
233
|
+
return t && B(l, p, t), t;
|
|
234
|
+
};
|
|
235
|
+
class d extends g {
|
|
236
|
+
constructor() {
|
|
237
|
+
super(...arguments), this.type = "textarea", this.label = "Label", this.required = !1;
|
|
238
|
+
}
|
|
239
|
+
static get styles() {
|
|
240
|
+
return y($);
|
|
241
|
+
}
|
|
242
|
+
connectedCallback() {
|
|
243
|
+
super.connectedCallback(), this.fieldId = this.fieldId || b(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy || b());
|
|
244
|
+
}
|
|
245
|
+
handleInput(l) {
|
|
246
|
+
this.value = l.target.value, this.internals.setFormValue(this.value), this.syncValidity();
|
|
247
|
+
}
|
|
248
|
+
render() {
|
|
249
|
+
const l = this.componentClassNames("ed-c-textarea-field", {
|
|
250
|
+
"ed-c-textarea-field--sm": this.size === "sm",
|
|
251
|
+
"ed-c-textarea-field--lg": this.size === "lg",
|
|
252
|
+
"ed-c-textarea-field--knockout": this.knockout === !0 || this.inverted === !0,
|
|
253
|
+
"ed-is-error": this.isError,
|
|
254
|
+
"ed-is-success": this.isSuccess
|
|
255
|
+
});
|
|
256
|
+
return f`
|
|
257
|
+
<div class="${l}">
|
|
258
|
+
<label class="ed-c-textarea-field__label" for="${this.fieldId}">${this.label}</label>
|
|
259
|
+
<div class="ed-c-textarea-field__body">
|
|
260
|
+
<textarea
|
|
261
|
+
class="ed-c-textarea-field__input"
|
|
262
|
+
id="${this.fieldId}"
|
|
263
|
+
cols="${h(this.cols)}"
|
|
264
|
+
rows="${h(this.rows)}"
|
|
265
|
+
name="${h(this.name)}"
|
|
266
|
+
value="${h(this.value)}"
|
|
267
|
+
@input="${this.handleInput}"
|
|
268
|
+
?required="${this.required}"
|
|
269
|
+
?disabled="${this.disabled}"
|
|
270
|
+
aria-describedby="${h(this.ariaDescribedBy)}"
|
|
271
|
+
placeholder="${h(this.placeholder)}"
|
|
272
|
+
></textarea>
|
|
273
|
+
</div>
|
|
274
|
+
${this.fieldNote && f`<ed-field-note
|
|
275
|
+
?knockout=${this.knockout === !0 || this.inverted === !0}
|
|
276
|
+
id=${h(this.ariaDescribedBy)}
|
|
277
|
+
iconName=${h(this.iconName)}
|
|
278
|
+
?isSuccess=${this.isSuccess}
|
|
279
|
+
?isError=${this.isError}
|
|
280
|
+
>
|
|
281
|
+
${this.fieldNote}
|
|
282
|
+
</ed-field-note>`}
|
|
283
|
+
</div>
|
|
284
|
+
`;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
a([
|
|
288
|
+
e()
|
|
289
|
+
], d.prototype, "fieldId");
|
|
290
|
+
a([
|
|
291
|
+
e()
|
|
292
|
+
], d.prototype, "label");
|
|
293
|
+
a([
|
|
294
|
+
e()
|
|
295
|
+
], d.prototype, "name");
|
|
296
|
+
a([
|
|
297
|
+
e()
|
|
298
|
+
], d.prototype, "fieldNote");
|
|
299
|
+
a([
|
|
300
|
+
e()
|
|
301
|
+
], d.prototype, "ariaDescribedBy");
|
|
302
|
+
a([
|
|
303
|
+
e({ type: Boolean })
|
|
304
|
+
], d.prototype, "required");
|
|
305
|
+
a([
|
|
306
|
+
e({ type: Boolean })
|
|
307
|
+
], d.prototype, "disabled");
|
|
308
|
+
a([
|
|
309
|
+
e({ type: Number })
|
|
310
|
+
], d.prototype, "cols");
|
|
311
|
+
a([
|
|
312
|
+
e({ type: Number })
|
|
313
|
+
], d.prototype, "rows");
|
|
314
|
+
a([
|
|
315
|
+
e({ type: Boolean })
|
|
316
|
+
], d.prototype, "knockout");
|
|
317
|
+
a([
|
|
318
|
+
e({ type: Boolean })
|
|
319
|
+
], d.prototype, "inverted");
|
|
320
|
+
a([
|
|
321
|
+
e()
|
|
322
|
+
], d.prototype, "placeholder");
|
|
323
|
+
a([
|
|
324
|
+
e({ type: Boolean })
|
|
325
|
+
], d.prototype, "isError");
|
|
326
|
+
a([
|
|
327
|
+
e({ type: Boolean })
|
|
328
|
+
], d.prototype, "isSuccess");
|
|
329
|
+
a([
|
|
330
|
+
e()
|
|
331
|
+
], d.prototype, "iconName");
|
|
332
|
+
a([
|
|
333
|
+
e()
|
|
334
|
+
], d.prototype, "size");
|
|
335
|
+
a([
|
|
336
|
+
v("textarea")
|
|
337
|
+
], d.prototype, "field");
|
|
338
|
+
customElements.get("ed-textarea-field") === void 0 && customElements.define("ed-textarea-field", d);
|