@brad-frost-web/eddie-recipes 0.69.0 → 0.71.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/{EdElement.BcrGsPCr.js → EdElement.Vr8clRZw.js} +17 -18
- package/cdn/chunks/{EdFormElement.D3Jd1jHD.js → EdFormElement.BHTo4Ifh.js} +10 -7
- package/cdn/chunks/{accordion-panel.CfE_GzSz.js → accordion-panel.BrflJCE5.js} +152 -131
- package/cdn/chunks/{band.CRKqX5PC.js → band.D49jgXOb.js} +2 -2
- package/cdn/chunks/button.CRZcpcb5.js +169 -0
- package/cdn/chunks/{card.DF6tFZvU.js → card.CqBw3i54.js} +2 -2
- package/cdn/chunks/{checkbox-field.Br1ruais.js → checkbox-field.BEhsaOD9.js} +3 -3
- package/cdn/chunks/{field-note.BkkZiSM5.js → field-note.CK3ikewY.js} +3 -3
- package/cdn/chunks/{header.CZ0j7uWZ.js → header.BI8m1sij.js} +3 -3
- package/cdn/chunks/{heading.CFkMJ_PO.js → heading.BaZm6xWi.js} +120 -55
- package/cdn/chunks/icon.CkGhv9DG.js +281 -0
- package/cdn/chunks/{layout-container.CdBxNczq.js → layout-container.Dcji3D4O.js} +2 -2
- package/cdn/chunks/lit.BJDcdeQB.js +629 -0
- package/cdn/chunks/{select-field.BdrdY_fo.js → select-field.1Ec3iQwv.js} +5 -5
- package/cdn/chunks/{single-field-form.jTDbh2X1.js → single-field-form.UvyFUVzh.js} +5 -5
- package/cdn/chunks/solve.DLo1Kxyk.js +576 -0
- package/cdn/chunks/text-field.nmPQhapu.js +141 -0
- package/cdn/chunks/text-link.B3X537x4.js +51 -0
- package/cdn/chunks/text-passage.CQWKJMQh.js +128 -0
- package/cdn/chunks/{textarea-field.BwGs_FD2.js → textarea-field.CGBXVzeE.js} +54 -32
- package/cdn/chunks/{timeline-node.FdFfwve7.js → timeline-node.DS59s0th.js} +2 -2
- package/cdn/chunks/{toggle.Bja6MNel.js → toggle.1FPnP-zG.js} +9 -9
- package/cdn/chunks/uid.ChSzTghf.js +6 -0
- package/cdn/eddie-recipes-autoloader.js +26 -22
- package/cdn/recipes/common/ad/ad.js +2 -2
- package/cdn/recipes/common/article-card/article-card.js +4 -4
- package/cdn/recipes/common/audio-player/audio-player.js +2 -2
- package/cdn/recipes/common/avatar-block/avatar-block.js +9 -8
- package/cdn/recipes/common/bento/bento.js +3 -3
- package/cdn/recipes/common/bento-item/bento-item.js +2 -2
- package/cdn/recipes/common/example-form/example-form.js +123 -86
- package/cdn/recipes/common/icon-card/icon-card.js +4 -4
- package/cdn/recipes/common/newsletter-signup/newsletter-signup.js +3 -3
- package/cdn/recipes/common/page-banner/page-banner.js +23 -11
- package/cdn/recipes/common/project-card/project-card.js +48 -36
- package/cdn/recipes/common/promo-block/promo-block.js +13 -13
- package/cdn/recipes/common/search-form/search-form.js +3 -3
- package/cdn/recipes/common/site-footer/site-footer.js +3 -3
- package/cdn/recipes/common/site-header/site-header.js +59 -55
- package/cdn/recipes/common/speaking-card/speaking-card.js +4 -4
- package/cdn/recipes/common/stat-card/stat-card.js +6 -6
- package/cdn/recipes/common/theme-switcher/theme-switcher.js +3 -3
- package/cdn/recipes/common/timeline-node/TimelineNodeKind.js +4 -4
- package/cdn/recipes/common/timeline-node/timeline-node.js +4 -4
- package/cdn/recipes/common/timeline-node-art/timeline-node-art.js +1 -1
- package/cdn/recipes/common/timeline-node-blog/timeline-node-blog.js +1 -1
- package/cdn/recipes/common/timeline-node-book/timeline-node-book.js +1 -1
- package/cdn/recipes/common/timeline-node-client/timeline-node-client.js +1 -1
- package/cdn/recipes/common/timeline-node-concert/timeline-node-concert.js +1 -1
- package/cdn/recipes/common/timeline-node-course/timeline-node-course.js +1 -1
- package/cdn/recipes/common/timeline-node-link/timeline-node-link.js +1 -1
- package/cdn/recipes/common/timeline-node-location/timeline-node-location.js +1 -1
- package/cdn/recipes/common/timeline-node-milestone/timeline-node-milestone.js +1 -1
- package/cdn/recipes/common/timeline-node-newsletter/timeline-node-newsletter.js +1 -1
- package/cdn/recipes/common/timeline-node-note/timeline-node-note.js +1 -1
- package/cdn/recipes/common/timeline-node-playlist/timeline-node-playlist.js +1 -1
- package/cdn/recipes/common/timeline-node-podcast/timeline-node-podcast.js +1 -1
- package/cdn/recipes/common/timeline-node-song/timeline-node-song.js +1 -1
- package/cdn/recipes/common/timeline-node-speaking/timeline-node-speaking.js +1 -1
- package/cdn/recipes/common/timeline-node-video/timeline-node-video.js +1 -1
- package/cdn/recipes/common/todo-list/todo-list.js +3 -3
- package/cdn/recipes/common/transport-button/transport-button.js +3 -3
- package/cdn/recipes/common/vertical-site-header/vertical-site-header.js +36 -22
- package/cdn/recipes/common/video-card/video-card.js +167 -0
- package/cdn/recipes/common/video-embed/video-embed.js +19 -18
- package/cdn/recipes/common/visualzzz/visualzzz.js +315 -110
- package/cdn/recipes/common/wheel-of-life/wheel-of-life.js +14 -14
- package/cdn/recipes/eddie-slides/template-card/template-card.js +2 -2
- package/cdn/recipes/eddie-slides/thumbnail/thumbnail.js +11 -12
- package/cdn/recipes/tools/theme-customizer/derive.js +87 -594
- package/cdn/recipes/tools/theme-customizer/theme-customizer.js +805 -513
- package/cdn/recipes/tools/theme-customizer/token-sync.js +186 -0
- package/cdn/recipes/tools/viz-controls/viz-controls.js +8 -8
- package/cdn/recipes/we-are-here/chunky-checkbox/chunky-checkbox.js +13 -11
- package/cdn/recipes/we-are-here/wah-link-list/wah-link-list.js +28 -23
- package/cdn/recipes/we-are-here/wah-logo/wah-logo.js +25 -20
- package/cdn/recipes/we-are-here/wah-site-footer/wah-site-footer.js +3 -3
- package/cdn/recipes/we-are-here/wah-site-header/wah-site-header.js +4 -4
- package/package.json +1 -1
- package/recipes/common/article-card/article-card.d.ts +3 -2
- package/recipes/common/article-card/article-card.d.ts.map +1 -1
- package/recipes/common/bento/bento.js +1 -1
- package/recipes/common/example-form/example-form.js +1 -1
- package/recipes/common/page-banner/page-banner.d.ts +63 -9
- package/recipes/common/page-banner/page-banner.d.ts.map +1 -1
- package/recipes/common/page-banner/page-banner.js +28 -16
- package/recipes/common/project-card/project-card.d.ts +21 -4
- package/recipes/common/project-card/project-card.d.ts.map +1 -1
- package/recipes/common/project-card/project-card.js +59 -47
- package/recipes/common/promo-block/promo-block.d.ts +4 -2
- package/recipes/common/promo-block/promo-block.d.ts.map +1 -1
- package/recipes/common/promo-block/promo-block.js +10 -10
- package/recipes/common/site-header/site-header.d.ts +19 -2
- package/recipes/common/site-header/site-header.d.ts.map +1 -1
- package/recipes/common/site-header/site-header.js +40 -36
- package/recipes/common/timeline-node-video/timeline-node-video.d.ts +2 -0
- package/recipes/common/timeline-node-video/timeline-node-video.d.ts.map +1 -1
- package/recipes/common/vertical-site-header/vertical-site-header.d.ts +14 -2
- package/recipes/common/vertical-site-header/vertical-site-header.d.ts.map +1 -1
- package/recipes/common/vertical-site-header/vertical-site-header.js +29 -15
- package/recipes/common/video-card/video-card.d.ts +159 -0
- package/recipes/common/video-card/video-card.d.ts.map +1 -0
- package/recipes/common/video-card/video-card.js +105 -0
- package/recipes/common/video-embed/video-embed.d.ts +33 -9
- package/recipes/common/video-embed/video-embed.d.ts.map +1 -1
- package/recipes/common/video-embed/video-embed.js +13 -12
- package/recipes/common/visualzzz/visualzzz.d.ts +62 -20
- package/recipes/common/visualzzz/visualzzz.d.ts.map +1 -1
- package/recipes/common/visualzzz/visualzzz.js +317 -112
- package/recipes/common/wheel-of-life/wheel-of-life.d.ts +13 -4
- package/recipes/common/wheel-of-life/wheel-of-life.d.ts.map +1 -1
- package/recipes/common/wheel-of-life/wheel-of-life.js +20 -20
- package/recipes/eddie-slides/thumbnail/thumbnail.d.ts +35 -5
- package/recipes/eddie-slides/thumbnail/thumbnail.d.ts.map +1 -1
- package/recipes/eddie-slides/thumbnail/thumbnail.js +6 -7
- package/recipes/tools/theme-customizer/google-fonts-catalog.d.ts +4 -3
- package/recipes/tools/theme-customizer/google-fonts-catalog.d.ts.map +1 -1
- package/recipes/tools/theme-customizer/theme-customizer.d.ts +197 -4
- package/recipes/tools/theme-customizer/theme-customizer.d.ts.map +1 -1
- package/recipes/tools/theme-customizer/theme-customizer.js +724 -471
- package/recipes/tools/theme-customizer/token-sync.d.ts +190 -0
- package/recipes/tools/theme-customizer/token-sync.d.ts.map +1 -0
- package/recipes/tools/theme-customizer/token-sync.js +189 -0
- package/recipes/tools/viz-controls/viz-controls.d.ts +3 -0
- package/recipes/tools/viz-controls/viz-controls.d.ts.map +1 -1
- package/recipes/we-are-here/chunky-checkbox/chunky-checkbox.d.ts +12 -6
- package/recipes/we-are-here/chunky-checkbox/chunky-checkbox.d.ts.map +1 -1
- package/recipes/we-are-here/chunky-checkbox/chunky-checkbox.js +14 -12
- package/recipes/we-are-here/wah-link-list/wah-link-list.d.ts +34 -6
- package/recipes/we-are-here/wah-link-list/wah-link-list.d.ts.map +1 -1
- package/recipes/we-are-here/wah-link-list/wah-link-list.js +31 -26
- package/recipes/we-are-here/wah-logo/wah-logo.d.ts +23 -3
- package/recipes/we-are-here/wah-logo/wah-logo.d.ts.map +1 -1
- package/recipes/we-are-here/wah-logo/wah-logo.js +27 -22
- package/cdn/chunks/button.BI7SkOwy.js +0 -155
- package/cdn/chunks/icon.CJxL6Fld.js +0 -271
- package/cdn/chunks/index.browser.D527xXcp.js +0 -4
- package/cdn/chunks/lit.B6pFiYzB.js +0 -589
- package/cdn/chunks/text-field.DmUr7732.js +0 -137
- package/cdn/chunks/text-passage.CCSC-HVp.js +0 -128
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { c as d } from "./vendor.lY5z9hnC.js";
|
|
2
|
-
import { i as
|
|
3
|
-
var h = Object.defineProperty, u = (
|
|
4
|
-
for (var n = void 0,
|
|
5
|
-
(
|
|
2
|
+
import { i as m, b as p, n as c } from "./lit.BJDcdeQB.js";
|
|
3
|
+
var h = Object.defineProperty, u = (l, t, e, o) => {
|
|
4
|
+
for (var n = void 0, r = l.length - 1, s; r >= 0; r--)
|
|
5
|
+
(s = l[r]) && (n = s(t, e, n) || n);
|
|
6
6
|
return n && h(t, e, n), n;
|
|
7
7
|
};
|
|
8
|
-
const a = class i extends
|
|
8
|
+
const a = class i extends m {
|
|
9
9
|
static get observedAttributes() {
|
|
10
10
|
const t = super.observedAttributes ?? [], e = /* @__PURE__ */ new Map();
|
|
11
|
-
for (const o of
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
s === o || t.includes(s) || e.set(s, o);
|
|
11
|
+
for (const [o, n] of this.elementProperties) {
|
|
12
|
+
if (typeof o != "string" || n.attribute === !1) continue;
|
|
13
|
+
const r = typeof n.attribute == "string" ? n.attribute : o.toLowerCase(), s = o.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
14
|
+
s === r || t.includes(s) || e.set(s, r);
|
|
16
15
|
}
|
|
17
16
|
return this.__kebabAliases = e, [...t, ...e.keys()];
|
|
18
17
|
}
|
|
@@ -193,28 +192,28 @@ See the Default story, or eddie_get_component("${e}").canonicalUsage.`
|
|
|
193
192
|
* Dispatch a custom event.
|
|
194
193
|
*/
|
|
195
194
|
dispatch({ e: t, eventName: e, detailObj: o = {}, optionsObj: n = {} }) {
|
|
196
|
-
const
|
|
195
|
+
const r = {
|
|
197
196
|
bubbles: !0,
|
|
198
197
|
composed: !0,
|
|
199
198
|
...n,
|
|
200
199
|
detail: { ...t && { originalEvent: t }, ...o }
|
|
201
|
-
},
|
|
202
|
-
return this.dispatchEvent(
|
|
200
|
+
}, s = new CustomEvent(e, r);
|
|
201
|
+
return this.dispatchEvent(s), s;
|
|
203
202
|
}
|
|
204
203
|
/**
|
|
205
204
|
* Example render, should not be used
|
|
206
205
|
*/
|
|
207
206
|
render() {
|
|
208
|
-
return
|
|
207
|
+
return p`<slot></slot>`;
|
|
209
208
|
}
|
|
210
209
|
};
|
|
211
210
|
u([
|
|
212
|
-
|
|
211
|
+
c()
|
|
213
212
|
], a.prototype, "styleModifier");
|
|
214
213
|
u([
|
|
215
|
-
|
|
214
|
+
c({ type: Boolean })
|
|
216
215
|
], a.prototype, "enhance");
|
|
217
|
-
let
|
|
216
|
+
let b = a;
|
|
218
217
|
export {
|
|
219
|
-
|
|
218
|
+
b as E
|
|
220
219
|
};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { n
|
|
2
|
-
import { E as
|
|
3
|
-
var d = Object.defineProperty,
|
|
4
|
-
for (var e =
|
|
1
|
+
import { n } from "./lit.BJDcdeQB.js";
|
|
2
|
+
import { E as r } from "./EdElement.Vr8clRZw.js";
|
|
3
|
+
var d = Object.defineProperty, o = Object.getOwnPropertyDescriptor, h = (s, i, t, c) => {
|
|
4
|
+
for (var e = o(i, t), a = s.length - 1, l; a >= 0; a--)
|
|
5
5
|
(l = s[a]) && (e = l(i, t, e) || e);
|
|
6
6
|
return e && d(i, t, e), e;
|
|
7
7
|
};
|
|
8
|
-
class u extends
|
|
8
|
+
class u extends r {
|
|
9
9
|
static {
|
|
10
10
|
this.formAssociated = !0;
|
|
11
11
|
}
|
|
12
|
+
static {
|
|
13
|
+
this.shadowRootOptions = { ...r.shadowRootOptions, delegatesFocus: !0 };
|
|
14
|
+
}
|
|
12
15
|
get value() {
|
|
13
16
|
return this.internalValue;
|
|
14
17
|
}
|
|
@@ -122,8 +125,8 @@ class u extends n {
|
|
|
122
125
|
super(), this.internals = this.attachInternals();
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
|
-
|
|
126
|
-
|
|
128
|
+
h([
|
|
129
|
+
n()
|
|
127
130
|
], u.prototype, "value");
|
|
128
131
|
export {
|
|
129
132
|
u as E
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { E as
|
|
2
|
-
import { r as
|
|
3
|
-
import {
|
|
4
|
-
import "./field-note.
|
|
5
|
-
import { E as y } from "./EdElement.
|
|
6
|
-
import "./icon.
|
|
7
|
-
const
|
|
8
|
-
var
|
|
9
|
-
for (var e = void 0,
|
|
10
|
-
(s =
|
|
11
|
-
return e &&
|
|
1
|
+
import { E as _ } from "./EdFormElement.BHTo4Ifh.js";
|
|
2
|
+
import { r as f, o as c, b as m, n as i, e as k, a as x } from "./lit.BJDcdeQB.js";
|
|
3
|
+
import { u as g } from "./uid.ChSzTghf.js";
|
|
4
|
+
import "./field-note.CK3ikewY.js";
|
|
5
|
+
import { E as y } from "./EdElement.Vr8clRZw.js";
|
|
6
|
+
import "./icon.CkGhv9DG.js";
|
|
7
|
+
const $ = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}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 z = Object.defineProperty, n = (o, t, r, l) => {
|
|
9
|
+
for (var e = void 0, d = o.length - 1, s; d >= 0; d--)
|
|
10
|
+
(s = o[d]) && (e = s(t, r, e) || e);
|
|
11
|
+
return e && z(t, r, e), e;
|
|
12
12
|
};
|
|
13
|
-
class
|
|
13
|
+
class a extends _ {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments), this.type = "range", this.label = "Range", this.min = "0", this.max = "100";
|
|
16
16
|
}
|
|
17
17
|
static get styles() {
|
|
18
|
-
return
|
|
18
|
+
return f($);
|
|
19
19
|
}
|
|
20
20
|
connectedCallback() {
|
|
21
|
-
super.connectedCallback(), this.fieldId = this.fieldId ||
|
|
21
|
+
super.connectedCallback(), this.fieldId = this.fieldId || g(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy || g());
|
|
22
22
|
}
|
|
23
|
-
handleInput(
|
|
24
|
-
this.value =
|
|
23
|
+
handleInput(t) {
|
|
24
|
+
this.value = t.target.value, this.internals.setFormValue(this.value), this.syncValidity();
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
const
|
|
27
|
+
const t = this.componentClassNames("ed-c-range", {
|
|
28
28
|
"ed-c-range--sm": this.size === "sm",
|
|
29
29
|
"ed-c-range--lg": this.size === "lg",
|
|
30
30
|
"ed-c-range--knockout": this.knockout === !0 || this.inverted === !0,
|
|
31
31
|
"ed-is-disabled": this.disabled === !0
|
|
32
32
|
});
|
|
33
|
-
return
|
|
34
|
-
<div class="${
|
|
33
|
+
return m`
|
|
34
|
+
<div class="${t}">
|
|
35
35
|
<label class="ed-c-range__label" for="${this.fieldId}">${this.label}</label>
|
|
36
36
|
<input
|
|
37
37
|
class="ed-c-range__input"
|
|
38
38
|
type="range"
|
|
39
39
|
id="${this.fieldId}"
|
|
40
|
-
name="${
|
|
41
|
-
value="${
|
|
40
|
+
name="${c(this.name)}"
|
|
41
|
+
value="${c(this.value)}"
|
|
42
42
|
min="${this.min}"
|
|
43
43
|
max="${this.max}"
|
|
44
|
-
step="${
|
|
44
|
+
step="${c(this.step)}"
|
|
45
45
|
@input="${this.handleInput}"
|
|
46
46
|
?disabled="${this.disabled}"
|
|
47
|
-
aria-describedby="${
|
|
47
|
+
aria-describedby="${c(this.ariaDescribedBy)}"
|
|
48
48
|
/>
|
|
49
|
-
${this.fieldNote &&
|
|
49
|
+
${this.fieldNote && m`<ed-field-note
|
|
50
50
|
?knockout=${this.knockout === !0 || this.inverted === !0}
|
|
51
|
-
id=${
|
|
52
|
-
iconName=${
|
|
51
|
+
id=${c(this.ariaDescribedBy)}
|
|
52
|
+
iconName=${c(this.iconName)}
|
|
53
53
|
>
|
|
54
54
|
${this.fieldNote}
|
|
55
55
|
</ed-field-note>`}
|
|
@@ -57,103 +57,110 @@ class o extends v {
|
|
|
57
57
|
`;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
],
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
],
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
],
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
],
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
],
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
],
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
],
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
],
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
],
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
],
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
],
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
],
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
],
|
|
99
|
-
|
|
60
|
+
n([
|
|
61
|
+
i()
|
|
62
|
+
], a.prototype, "fieldId");
|
|
63
|
+
n([
|
|
64
|
+
i()
|
|
65
|
+
], a.prototype, "label");
|
|
66
|
+
n([
|
|
67
|
+
i()
|
|
68
|
+
], a.prototype, "name");
|
|
69
|
+
n([
|
|
70
|
+
i()
|
|
71
|
+
], a.prototype, "fieldNote");
|
|
72
|
+
n([
|
|
73
|
+
i()
|
|
74
|
+
], a.prototype, "ariaDescribedBy");
|
|
75
|
+
n([
|
|
76
|
+
i()
|
|
77
|
+
], a.prototype, "min");
|
|
78
|
+
n([
|
|
79
|
+
i()
|
|
80
|
+
], a.prototype, "max");
|
|
81
|
+
n([
|
|
82
|
+
i()
|
|
83
|
+
], a.prototype, "step");
|
|
84
|
+
n([
|
|
85
|
+
i({ type: Boolean })
|
|
86
|
+
], a.prototype, "disabled");
|
|
87
|
+
n([
|
|
88
|
+
i({ type: Boolean })
|
|
89
|
+
], a.prototype, "knockout");
|
|
90
|
+
n([
|
|
91
|
+
i({ type: Boolean })
|
|
92
|
+
], a.prototype, "inverted");
|
|
93
|
+
n([
|
|
94
|
+
i()
|
|
95
|
+
], a.prototype, "iconName");
|
|
96
|
+
n([
|
|
97
|
+
i()
|
|
98
|
+
], a.prototype, "size");
|
|
99
|
+
n([
|
|
100
100
|
k("input")
|
|
101
|
-
],
|
|
102
|
-
customElements.get("ed-range") === void 0 && customElements.define("ed-range",
|
|
103
|
-
const
|
|
104
|
-
var
|
|
105
|
-
for (var e = void 0,
|
|
106
|
-
(s =
|
|
107
|
-
return e &&
|
|
101
|
+
], a.prototype, "field");
|
|
102
|
+
customElements.get("ed-range") === void 0 && customElements.define("ed-range", a);
|
|
103
|
+
const w = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}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 N = Object.defineProperty, v = (o, t, r, l) => {
|
|
105
|
+
for (var e = void 0, d = o.length - 1, s; d >= 0; d--)
|
|
106
|
+
(s = o[d]) && (e = s(t, r, e) || e);
|
|
107
|
+
return e && N(t, r, e), e;
|
|
108
108
|
};
|
|
109
|
-
class
|
|
109
|
+
class u extends y {
|
|
110
110
|
static get styles() {
|
|
111
|
-
return
|
|
111
|
+
return f(w);
|
|
112
112
|
}
|
|
113
113
|
render() {
|
|
114
|
-
const
|
|
114
|
+
const t = this.componentClassNames("ed-c-accordion", {
|
|
115
115
|
"ed-c-accordion--knockout": this.knockout === !0 || this.inverted === !0,
|
|
116
116
|
"ed-c-accordion--condensed": this.spacing === "condensed"
|
|
117
117
|
});
|
|
118
|
-
return
|
|
119
|
-
<
|
|
118
|
+
return m`
|
|
119
|
+
<div class="${t}">
|
|
120
120
|
<slot></slot>
|
|
121
|
-
</
|
|
121
|
+
</div>
|
|
122
122
|
`;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
],
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
],
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
],
|
|
134
|
-
customElements.get("ed-accordion") === void 0 && customElements.define("ed-accordion",
|
|
135
|
-
const
|
|
136
|
-
var
|
|
137
|
-
for (var e = void 0,
|
|
138
|
-
(s =
|
|
139
|
-
return e &&
|
|
125
|
+
v([
|
|
126
|
+
i({ type: Boolean })
|
|
127
|
+
], u.prototype, "knockout");
|
|
128
|
+
v([
|
|
129
|
+
i({ type: Boolean })
|
|
130
|
+
], u.prototype, "inverted");
|
|
131
|
+
v([
|
|
132
|
+
i()
|
|
133
|
+
], u.prototype, "spacing");
|
|
134
|
+
customElements.get("ed-accordion") === void 0 && customElements.define("ed-accordion", u);
|
|
135
|
+
const P = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}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__heading{display:flex;flex:1 1 auto;min-width:0;margin:0}.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 E = Object.defineProperty, p = (o, t, r, l) => {
|
|
137
|
+
for (var e = void 0, d = o.length - 1, s; d >= 0; d--)
|
|
138
|
+
(s = o[d]) && (e = s(t, r, e) || e);
|
|
139
|
+
return e && E(t, r, e), e;
|
|
140
140
|
};
|
|
141
|
-
class
|
|
142
|
-
static get styles() {
|
|
143
|
-
return g(w);
|
|
144
|
-
}
|
|
141
|
+
class h extends y {
|
|
145
142
|
/**
|
|
146
143
|
* Initialize functions
|
|
147
144
|
*/
|
|
148
145
|
constructor() {
|
|
149
|
-
super(), this.togglePanel = this.togglePanel.bind(this), this.setPanelHeight = this.setPanelHeight.bind(this);
|
|
146
|
+
super(), this.headingLevel = 3, this.togglePanel = this.togglePanel.bind(this), this.setPanelHeight = this.setPanelHeight.bind(this);
|
|
147
|
+
}
|
|
148
|
+
static get styles() {
|
|
149
|
+
return f(P);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Read the heading level from the slotted title, so the author's outline decides it. #2245
|
|
153
|
+
*/
|
|
154
|
+
handleHeaderSlotChange(t) {
|
|
155
|
+
const l = t.target.assignedElements({ flatten: !0 }).map(A).find((e) => e !== void 0);
|
|
156
|
+
this.headingLevel = l ?? 3;
|
|
150
157
|
}
|
|
151
158
|
/**
|
|
152
159
|
* Initialize/Update
|
|
153
160
|
* 1) Set panel height on load. Active state should set panel height to content within panel
|
|
154
161
|
*/
|
|
155
162
|
connectedCallback() {
|
|
156
|
-
super.connectedCallback(), this.id = this.id ||
|
|
163
|
+
super.connectedCallback(), this.id = this.id || g(), this.ariaLabelledBy = this.ariaLabelledBy || g(), this.setPanelHeight(), this.isActive && (this.fullyOpen = !0, this.setPanelHeight());
|
|
157
164
|
}
|
|
158
165
|
/**
|
|
159
166
|
* Set panel height
|
|
@@ -180,43 +187,57 @@ class c extends y {
|
|
|
180
187
|
}, 50));
|
|
181
188
|
}
|
|
182
189
|
render() {
|
|
183
|
-
const
|
|
190
|
+
const t = this.componentClassNames("ed-c-accordion-panel", {
|
|
184
191
|
"ed-is-active": this.isActive === !0
|
|
185
192
|
});
|
|
186
|
-
return
|
|
187
|
-
<div class="${
|
|
188
|
-
<
|
|
189
|
-
<
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
193
|
+
return m`
|
|
194
|
+
<div class="${t}">
|
|
195
|
+
<div class="ed-c-accordion-panel__header">
|
|
196
|
+
<div class="ed-c-accordion-panel__heading" role="heading" aria-level="${this.headingLevel}">
|
|
197
|
+
<button
|
|
198
|
+
class="ed-c-accordion-panel__button"
|
|
199
|
+
aria-expanded="${!!this.isActive}"
|
|
200
|
+
id="${this.ariaLabelledBy}"
|
|
201
|
+
aria-controls="${this.id}"
|
|
202
|
+
@click=${this.togglePanel}
|
|
203
|
+
>
|
|
204
|
+
<slot name="header" @slotchange=${this.handleHeaderSlotChange}></slot>
|
|
205
|
+
<ed-icon name="keyboard-arrow-down"></ed-icon>
|
|
206
|
+
</button>
|
|
207
|
+
</div>
|
|
199
208
|
<slot name="headerAfter"></slot>
|
|
200
|
-
</
|
|
201
|
-
<
|
|
202
|
-
<div class="ed-c-accordion-panel__body-inner"
|
|
209
|
+
</div>
|
|
210
|
+
<div class="ed-c-accordion-panel__body" id="${this.id}" style=${"height: " + this.height}>
|
|
211
|
+
<div class="ed-c-accordion-panel__body-inner">
|
|
203
212
|
<slot></slot>
|
|
204
213
|
</div>
|
|
205
|
-
</
|
|
214
|
+
</div>
|
|
206
215
|
</div>
|
|
207
216
|
`;
|
|
208
217
|
}
|
|
209
218
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
],
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
],
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
],
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
],
|
|
222
|
-
|
|
219
|
+
p([
|
|
220
|
+
i({ type: Boolean })
|
|
221
|
+
], h.prototype, "isActive");
|
|
222
|
+
p([
|
|
223
|
+
i({ type: Boolean })
|
|
224
|
+
], h.prototype, "fullyOpen");
|
|
225
|
+
p([
|
|
226
|
+
i()
|
|
227
|
+
], h.prototype, "ariaLabelledBy");
|
|
228
|
+
p([
|
|
229
|
+
i()
|
|
230
|
+
], h.prototype, "height");
|
|
231
|
+
p([
|
|
232
|
+
x()
|
|
233
|
+
], h.prototype, "headingLevel");
|
|
234
|
+
const b = /^h([1-6])$/i;
|
|
235
|
+
function A(o) {
|
|
236
|
+
const t = b.exec(o.localName);
|
|
237
|
+
if (t) return Number(t[1]);
|
|
238
|
+
const r = o.querySelector(":scope > h1, :scope > h2, :scope > h3, :scope > h4, :scope > h5, :scope > h6");
|
|
239
|
+
if (r) return Number(r.localName[1]);
|
|
240
|
+
const l = b.exec(String(o.tagName ?? "")) ?? b.exec(o.getAttribute("tagName") ?? "");
|
|
241
|
+
return l ? Number(l[1]) : o.localName === "ed-heading" ? 2 : void 0;
|
|
242
|
+
}
|
|
243
|
+
customElements.get("ed-accordion-panel") === void 0 && customElements.define("ed-accordion-panel", h);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as s, b, n as a } from "./lit.
|
|
2
|
-
import { E as l } from "./EdElement.
|
|
1
|
+
import { r as s, b, n as a } from "./lit.BJDcdeQB.js";
|
|
2
|
+
import { E as l } from "./EdElement.Vr8clRZw.js";
|
|
3
3
|
const u = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}.ed-c-band{position:relative;isolation:isolate;background:var(--ed-theme-color-background-subtle);padding-block:var(--ed-band-padding-block, 1.5rem);padding-inline:var(--ed-band-padding-inline, 0)}@media all and (min-width:75rem){.ed-c-band{padding-block:var(--ed-band-padding-block, 2rem)}}.ed-c-band--brand{color:var(--ed-theme-color-content-on-brand);background:var(--ed-theme-color-background-brand)}.ed-c-band--brand-knockout{color:var(--ed-theme-color-content-on-brand);background:var(--ed-theme-color-background-brand-knockout)}.ed-c-band--knockout{color:var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-knockout)}.ed-c-band__background{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}.ed-c-band__background ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-c-band__content{display:flex;flex-direction:column;gap:var(--ed-band-gap, var(--ed-theme-spacing-block));position:relative;z-index:1}.ed-c-band--flush .ed-c-band__content{gap:0}.ed-c-band--scrim{color:var(--ed-theme-color-content-knockout)}.ed-c-band--scrim:after{content:"";position:absolute;inset:0;z-index:0;background:color-mix(in srgb,var(--ed-theme-color-background-knockout) var(--ed-c-band-scrim-strength, 65%),transparent);pointer-events:none}';
|
|
4
4
|
var k = Object.defineProperty, r = (t, n, c, m) => {
|
|
5
5
|
for (var e = void 0, d = t.length - 1, i; d >= 0; d--)
|