@penn-libraries/web 1.2.0 → 1.2.1-dev.1
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/cjs/{index-Ag6DtE87.js → index-C2lJ0X_b.js} +64 -2
- package/dist/cjs/index-C2lJ0X_b.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/pennlibs-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/pennlibs-banner.cjs.entry.js +1 -1
- package/dist/cjs/pennlibs-chat.cjs.entry.js +1 -1
- package/dist/cjs/pennlibs-fallback-img.cjs.entry.js +1 -1
- package/dist/cjs/pennlibs-feedback.pennlibs-footer.pennlibs-header.entry.cjs.js.map +1 -1
- package/dist/cjs/pennlibs-feedback_3.cjs.entry.js +39 -9
- package/dist/cjs/pennlibs-hero.cjs.entry.js +1 -1
- package/dist/cjs/pennlibs-iiif-img.cjs.entry.js +1 -1
- package/dist/cjs/web.cjs.js +2 -2
- package/dist/collection/components/pennlibs-feedback/pennlibs-feedback.css +1 -29
- package/dist/collection/components/pennlibs-feedback/pennlibs-feedback.js +38 -8
- package/dist/collection/components/pennlibs-feedback/pennlibs-feedback.js.map +1 -1
- package/dist/components/pennlibs-feedback.js +39 -10
- package/dist/components/pennlibs-feedback.js.map +1 -1
- package/dist/docs.json +2 -2
- package/dist/{web/p-mkVX9lU0.js → esm/index-kmszRyIe.js} +64 -2
- package/dist/esm/index-kmszRyIe.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/pennlibs-autocomplete.entry.js +1 -1
- package/dist/esm/pennlibs-banner.entry.js +1 -1
- package/dist/esm/pennlibs-chat.entry.js +1 -1
- package/dist/esm/pennlibs-fallback-img.entry.js +1 -1
- package/dist/esm/pennlibs-feedback.pennlibs-footer.pennlibs-header.entry.js.map +1 -1
- package/dist/esm/pennlibs-feedback_3.entry.js +39 -9
- package/dist/esm/pennlibs-hero.entry.js +1 -1
- package/dist/esm/pennlibs-iiif-img.entry.js +1 -1
- package/dist/esm/web.js +3 -3
- package/dist/types/components/pennlibs-feedback/pennlibs-feedback.d.ts +7 -1
- package/dist/web/index.esm.js +1 -1
- package/dist/web/{p-7c6382d0.entry.js → p-1c0dd1ec.entry.js} +1 -1
- package/dist/web/{p-e426fb61.entry.js → p-51bc70b8.entry.js} +1 -1
- package/dist/web/{p-10931f0a.entry.js → p-5c02b8da.entry.js} +39 -9
- package/dist/web/{p-4fb3e5a4.entry.js → p-906263a3.entry.js} +1 -1
- package/dist/web/{p-190f0293.entry.js → p-badb334a.entry.js} +1 -1
- package/dist/web/{p-154851d1.entry.js → p-d392e98a.entry.js} +1 -1
- package/dist/web/{p-0c1113f4.entry.js → p-e1947e84.entry.js} +1 -1
- package/dist/{esm/index-mkVX9lU0.js → web/p-kmszRyIe.js} +64 -2
- package/dist/web/p-kmszRyIe.js.map +1 -0
- package/dist/web/pennlibs-feedback.pennlibs-footer.pennlibs-header.entry.esm.js.map +1 -1
- package/dist/web/web.esm.js +3 -3
- package/hydrate/index.js +68 -9
- package/hydrate/index.mjs +68 -9
- package/package.json +1 -1
- package/dist/cjs/index-Ag6DtE87.js.map +0 -1
- package/dist/esm/index-mkVX9lU0.js.map +0 -1
- package/dist/web/p-mkVX9lU0.js.map +0 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, d as getAssetPath, a as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, d as getAssetPath, a as getElement } from './index-kmszRyIe.js';
|
|
2
2
|
|
|
3
|
-
const pennlibsFeedbackCss = "
|
|
3
|
+
const pennlibsFeedbackCss = ".feedback__container.sc-pennlibs-feedback{display:block;background:#eeeff4;font-family:var(--pl-font-family);font-size:var(--pl-font-size);color:var(--pl-color-fg-default);line-height:1.4;box-sizing:border-box;padding:0.75em 0}@media print{.sc-pennlibs-feedback-h{display:none}}*.sc-pennlibs-feedback,*.sc-pennlibs-feedback::before,*.sc-pennlibs-feedback::after{box-sizing:border-box}.viewport-margins.sc-pennlibs-feedback{max-width:var(--pl-viewport-margins-max-width);margin:0 auto;padding:0 var(--pl-viewport-margins-gutter, 1em)}.feedback__content.sc-pennlibs-feedback{display:flex;justify-content:space-between;gap:var(--pl-space-s);flex-wrap:wrap}.feedback__inline-question.sc-pennlibs-feedback{display:flex;flex-wrap:wrap;gap:0.5em;align-items:center}h2.sc-pennlibs-feedback{display:inline-block;margin:0;font-family:var(--pl-font-sans-serif);font-size:1em;font-weight:400}p.sc-pennlibs-feedback{margin:0;padding:calc(0.5em + 1px) 0}a.sc-pennlibs-feedback{color:var(--pl-color-fg-accent);text-decoration:underline;text-underline-offset:var(--pl-link-text-underline-offset);text-decoration-thickness:var(--pl-link-hover-text-decoration-thickness)}button.sc-pennlibs-feedback{all:unset;display:flex;align-items:center;gap:0.5em;padding:0.25em 1.25em;font-family:var(--pl-font-family);font-weight:500;line-height:1.4;color:var(--pl-color-fg-default);background:var(--pl-color-bg-default);border:solid 1px var(--pl-color-fg-subtle);border-radius:1em;box-sizing:border-box}button.sc-pennlibs-feedback:hover{cursor:pointer}button.sc-pennlibs-feedback:hover span.sc-pennlibs-feedback{text-decoration:underline}button.selected.sc-pennlibs-feedback{background:var(--pl-color-bg-accent-emphasis);color:var(--pl-color-fg-on-emphasis);border-color:var(--pl-color-bg-accent-emphasis)}.feedback__inline-question.sc-pennlibs-feedback+.feedback__share-feedback.sc-pennlibs-feedback,p.sc-pennlibs-feedback{animation:none}.feedback__content.sc-pennlibs-feedback>p.sc-pennlibs-feedback{animation:fadeIn 300ms ease-in}@keyframes fadeIn{from{opacity:0}to{opacity:1}}*.sc-pennlibs-feedback:focus{outline:0;box-shadow:0 0 0 2px var(--pl-color-bg-attention),\n 0 0 0 3px var(--pl-color-bg-emphasis)}@media (max-width: 26em){h2.sc-pennlibs-feedback{display:block;width:100%}}.visually-hidden.sc-pennlibs-feedback{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}";
|
|
4
4
|
|
|
5
|
-
const FEEDBACK_STORAGE_KEY = `pennlibs-feedback-${window.location.pathname}`;
|
|
6
5
|
const FEEDBACK_TTL = 5 * 60 * 1000; // 5 minutes
|
|
7
6
|
const FEEDBACK_QUESTION = 'Did you find what you need?';
|
|
8
7
|
const PennlibsFeedback = class {
|
|
@@ -15,28 +14,59 @@ const PennlibsFeedback = class {
|
|
|
15
14
|
this.hideQuestion = false;
|
|
16
15
|
this.answer = undefined;
|
|
17
16
|
this.selected = undefined;
|
|
17
|
+
this.currentUrl = '';
|
|
18
|
+
this.onNavigate = (event) => {
|
|
19
|
+
try {
|
|
20
|
+
const destinationUrl = new URL(event.destination.url).href;
|
|
21
|
+
if (destinationUrl !== this.currentUrl) {
|
|
22
|
+
this.currentUrl = destinationUrl;
|
|
23
|
+
this.selected = undefined;
|
|
24
|
+
this.answer = undefined;
|
|
25
|
+
this.loadStoredAnswer();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch (_a) {
|
|
29
|
+
this.selected = undefined;
|
|
30
|
+
this.answer = undefined;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
get storageKey() {
|
|
35
|
+
return `pennlibs-feedback-${this.currentUrl}`;
|
|
36
|
+
}
|
|
37
|
+
connectedCallback() {
|
|
38
|
+
this.currentUrl = window.location.href;
|
|
39
|
+
window.navigation.addEventListener('navigate', this.onNavigate);
|
|
40
|
+
}
|
|
41
|
+
disconnectedCallback() {
|
|
42
|
+
window.navigation.removeEventListener('navigate', this.onNavigate);
|
|
18
43
|
}
|
|
19
44
|
componentWillLoad() {
|
|
20
|
-
|
|
45
|
+
this.loadStoredAnswer();
|
|
46
|
+
}
|
|
47
|
+
loadStoredAnswer() {
|
|
48
|
+
const stored = sessionStorage.getItem(this.storageKey);
|
|
21
49
|
if (stored) {
|
|
22
50
|
try {
|
|
23
51
|
const { answer, timestamp } = JSON.parse(stored);
|
|
24
52
|
if (Date.now() - timestamp > FEEDBACK_TTL) {
|
|
25
|
-
sessionStorage.removeItem(
|
|
53
|
+
sessionStorage.removeItem(this.storageKey);
|
|
26
54
|
}
|
|
27
55
|
else {
|
|
28
56
|
this.answer = answer;
|
|
29
57
|
}
|
|
30
58
|
}
|
|
31
59
|
catch (_a) {
|
|
32
|
-
sessionStorage.removeItem(
|
|
60
|
+
sessionStorage.removeItem(this.storageKey);
|
|
33
61
|
}
|
|
34
62
|
}
|
|
35
63
|
}
|
|
36
|
-
|
|
64
|
+
handleSubmit(event) {
|
|
37
65
|
var _a;
|
|
66
|
+
event.preventDefault();
|
|
67
|
+
const answer = event.submitter.value;
|
|
38
68
|
this.selected = answer;
|
|
39
|
-
sessionStorage.setItem(
|
|
69
|
+
sessionStorage.setItem(this.storageKey, JSON.stringify({ answer, timestamp: Date.now() }));
|
|
40
70
|
this.feedbackEvent.emit({
|
|
41
71
|
question: FEEDBACK_QUESTION,
|
|
42
72
|
answer: answer,
|
|
@@ -49,7 +79,7 @@ const PennlibsFeedback = class {
|
|
|
49
79
|
}, 600);
|
|
50
80
|
}
|
|
51
81
|
render() {
|
|
52
|
-
return (h("div", { key: '
|
|
82
|
+
return (h("div", { key: '12bdec6f975166a4c5d451fc1834f70fbce3b424', class: "feedback__container" }, h("div", { key: '4c607ceef5f10760d540d2549a2b186a871714c7', class: "viewport-margins" }, h("div", { key: 'a967498163e05ce60a12bf230d303caa31373c8d', class: "feedback__content" }, !this.hideQuestion && (this.answer === 'yes' ? (h("p", null, "Thank you for letting us know.")) : this.answer === 'no' ? (h("p", null, "We'd like to help. ", h("a", { href: "https://www.library.upenn.edu/contact-us" }, "Contact us"), " and let us know what you're looking for.")) : (h("form", { class: "feedback__inline-question", onSubmit: (e) => this.handleSubmit(e) }, h("h2", null, "Did you find what you need?"), h("button", { type: "submit", name: "answer", value: "yes", class: { 'selected': this.selected === 'yes' }, disabled: !!this.selected }, h("span", null, "Yes"), h("span", { class: "visually-hidden" }, ", I found what I needed.")), h("button", { type: "submit", name: "answer", value: "no", class: { 'selected': this.selected === 'no' }, disabled: !!this.selected }, h("span", null, "No"), h("span", { class: "visually-hidden" }, ", I did not find what I needed."))))), h("div", { key: 'f918da2833ae0c64e67a9e95551edaeb78e2ba05', class: "feedback__share-feedback" }, h("p", { key: '12928af116ffadf669cbc694160ee6ca3458528b' }, "To help us improve, ", h("a", { key: '7281b7423677b104fb622a7fdcf8e768517ea84e', href: `https://upenn.co1.qualtrics.com/jfe/form/SV_3xVrP7EKWS92zfE?reporting_from_url=${encodeURIComponent(window.location.href)}` }, "share your feedback"), "."))))));
|
|
53
83
|
}
|
|
54
84
|
};
|
|
55
85
|
PennlibsFeedback.style = pennlibsFeedbackCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, a as getElement } from './index-kmszRyIe.js';
|
|
2
2
|
|
|
3
3
|
const pennlibsHeroCss = ":host{--pl-hero-height:clamp(42vh, 32rem, 26rem);--pl-hero-heading-font:var(--pl-font-serif);--pl-hero-color:var(--pl-color-fg-on-emphasis)}*,*:before,*:after{box-sizing:inherit}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.viewport-margins{width:100%;max-width:var(--pl-viewport-margins-max-width);margin:0 auto;padding:0 var(--pl-viewport-margins-gutter, 1em)}.hero{position:relative;min-height:var(--pl-hero-height);height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 33%;display:flex}.hero::before{content:\"\";display:flex;width:100%;height:100%;top:0;position:absolute;background:linear-gradient(360deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.05) 100%);z-index:0}.hero::after{content:\"\";display:flex;width:100%;height:100%;top:0;position:absolute;background:linear-gradient(180deg, rgba(1, 31, 91, 1) 0%, rgba(1, 31, 91, 0.9) 10%, rgba(1, 31, 91, 0.8) 20%, rgba(1, 31, 91, 0.1) 50%, rgba(1, 31, 91, 0.0) 100%);z-index:0}.hero__content{position:relative;display:flex;flex-direction:column;width:100%;z-index:1}.hero__heading-container{margin-top:auto;padding-top:var(--pl-space-3xl);padding-bottom:var(--pl-space-3xl)}.hero__heading{text-shadow:1px 1px 2px var(--pl-color-fg-default);line-height:1.1;font-size:3em;font-weight:400;font-family:var(--pl-hero-heading-font);text-wrap:pretty;max-width:30ch;margin:0;color:var(--pl-hero-color)}@media (max-width: 920px){.hero__heading{font-size:2.5em}}.hero__sub-heading{font-size:1.25em;font-family:var(--pl-font-family);font-weight:500;color:var(--pl-hero-color);max-width:52ch;text-wrap:pretty;margin-top:1em;margin-bottom:0}.hero__sub-heading a{text-decoration:underline;text-underline-offset:var(--pl-link-text-underline-offset);text-decoration-thickness:var(--pl-link-text-decoration-thickness);color:var(--pl-hero-color)}.hero__sub-heading a:hover{text-decoration-thickness:var(--pl-link-hover-text-decoration-thickness)}.hero__sub-heading strong{font-weight:bold}@media (max-width: 620px){.hero__heading{font-size:2.75em}.hero__sub-heading{font-size:1em}}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, a as getElement } from './index-kmszRyIe.js';
|
|
2
2
|
|
|
3
3
|
const pennlibsIiifImgCss = ":host{display:block;width:100%;max-width:100%;align-self:flex-start;aspect-ratio:var(--aspect-ratio, auto)}picture{display:block;line-height:0}.iiif-img{display:block;width:100%;max-width:100%;height:auto;opacity:0;filter:blur(5px);transition:opacity 0.15s ease-in, filter 0.15s ease-in}.iiif-img.loaded{opacity:1;filter:blur(0)}.fallback-container{display:block;width:100%;height:100%}.fallback-container pennlibs-fallback-img{width:100%;height:100%}pennlibs-fallback-img{display:block;width:100%;height:100%}";
|
|
4
4
|
|
package/dist/esm/web.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-kmszRyIe.js';
|
|
2
|
+
export { s as setNonce } from './index-kmszRyIe.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Browser v4.38.1 | MIT Licensed | https://stenciljs.com
|
|
@@ -16,6 +16,6 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["pennlibs-iiif-img",[[257,"pennlibs-iiif-img",{"uuid":[1],"alt":[1],"region":[513],"rotation":[1],"quality":[1],"loading":[1],"showFallback":[4,"show-fallback"],"isLoaded":[32],"hasError":[32],"imageDimensions":[32],"observedWidth":[32]},null,{"region":["handleRegionChange"]}]]],["pennlibs-feedback_3",[[
|
|
19
|
+
return bootstrapLazy([["pennlibs-iiif-img",[[257,"pennlibs-iiif-img",{"uuid":[1],"alt":[1],"region":[513],"rotation":[1],"quality":[1],"loading":[1],"showFallback":[4,"show-fallback"],"isLoaded":[32],"hasError":[32],"imageDimensions":[32],"observedWidth":[32]},null,{"region":["handleRegionChange"]}]]],["pennlibs-feedback_3",[[258,"pennlibs-feedback",{"hideQuestion":[4,"hide-question"],"answer":[32],"selected":[32]}],[257,"pennlibs-footer",{"showBuiltWith":[4,"show-built-with"],"navigationByChildren":[32]}],[257,"pennlibs-header",{"serviceName":[1,"service-name"],"serviceLede":[1,"service-lede"],"serviceHref":[1,"service-href"],"theme":[1],"isMenuOpen":[32],"navigation":[32]}]]],["pennlibs-autocomplete",[[257,"pennlibs-autocomplete",{"for":[1],"showSuggestions":[32],"currentIndex":[32],"originalValue":[32],"options":[32]},[[0,"slotchange","handleSlotChange"],[16,"input","handleInputEvent"],[16,"focus","handleFocusEvent"],[16,"blur","handleBlurEvent"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"]]]]],["pennlibs-banner",[[257,"pennlibs-banner"]]],["pennlibs-chat",[[257,"pennlibs-chat",{"href":[32]}]]],["pennlibs-hero",[[257,"pennlibs-hero",{"heroPictureElement":[32],"heroHeadingElement":[32],"heroParagraphElement":[32],"heroSrc":[32]}]]],["pennlibs-fallback-img",[[257,"pennlibs-fallback-img"]]]], options);
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=web.js.map
|
|
@@ -17,6 +17,11 @@ export declare class PennlibsFeedback {
|
|
|
17
17
|
hideQuestion: boolean;
|
|
18
18
|
answer: string | undefined;
|
|
19
19
|
selected: string | undefined;
|
|
20
|
+
private currentUrl;
|
|
21
|
+
private get storageKey();
|
|
22
|
+
connectedCallback(): void;
|
|
23
|
+
disconnectedCallback(): void;
|
|
24
|
+
private onNavigate;
|
|
20
25
|
/**
|
|
21
26
|
* Emitted when a visitor answers the feedback question. Includes the question,
|
|
22
27
|
* answer, current URL, and page heading/title for context.
|
|
@@ -29,6 +34,7 @@ export declare class PennlibsFeedback {
|
|
|
29
34
|
pageTitle?: string;
|
|
30
35
|
}>;
|
|
31
36
|
componentWillLoad(): void;
|
|
32
|
-
|
|
37
|
+
private loadStoredAnswer;
|
|
38
|
+
handleSubmit(event: SubmitEvent): void;
|
|
33
39
|
render(): any;
|
|
34
40
|
}
|
package/dist/web/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as setAssetPath } from './p-
|
|
1
|
+
export { e as setAssetPath } from './p-kmszRyIe.js';
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as getElement } from './p-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as getElement } from './p-kmszRyIe.js';
|
|
2
2
|
|
|
3
3
|
const pennlibsAutocompleteCss = ":host {\n display: block;\n width: 100%;\n border-radius: 1.25rem;\n padding: 0;\n border-top: 0;\n position: relative;\n}\n\n[role=listbox] {\n position: absolute;\n margin-top: var(--pl-space-xs);\n background: var(--pl-color-bg-default);\n border-radius: 1.25rem;\n box-shadow: rgba(140, 149, 159, 0.3) 0px 8px 24px 0px;\n width: 100%;\n overflow: hidden;\n z-index: 1;\n\n display: flex;\n flex-direction: column;\n}\n\np {\n margin: 0;\n font-size: var(--pl-font-size-s);\n color: var(--pl-color-fg-subtle);\n padding: var(--pl-space-xs) calc(var(--pl-space-m) + var(--pl-space-2xs));\n font-size: var(--pl-font-size-s);\n order: 2;\n font-weight: 500;\n background: var(--pl-color-bg-subtle);\n border-radius: 0 0 1.25rem 1.25rem;\n\n display: flex;\n gap: var(--pl-space-s) var(--pl-space-l);\n flex-wrap: wrap;\n}\n\nol {\n list-style: none;\n margin: 0;\n padding: var(--pl-space-xs) 0;\n order: 1;\n}\n\n[role=option] {\n color: var(--pl-color-fg-default);\n padding: var(--pl-space-s) calc(var(--pl-space-m) + var(--pl-space-2xs));\n text-decoration: none;\n font-weight: 700; \n\n &:hover {\n cursor: pointer;\n }\n\n &:hover,\n &:focus {\n text-decoration-thickness: 2px;\n text-underline-offset: 2px;\n text-decoration: underline;\n }\n}\n\n[aria-selected=true] {\n text-decoration-thickness: 2px;\n text-underline-offset: 2px;\n text-decoration: underline;\n}\n\nmark,\nb {\n background: none;\n font-weight: 400;\n}\n\n.suggestion--border {\n border-bottom: solid 1px rgb(from var(--pl-color-fg-default) r g b / 0.2);\n padding-bottom: calc(var(--pl-space-2xs) + var(--pl-space-s));\n margin-bottom: var(--pl-space-2xs);\n}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, d as getAssetPath, h } from './p-
|
|
1
|
+
import { r as registerInstance, d as getAssetPath, h } from './p-kmszRyIe.js';
|
|
2
2
|
|
|
3
3
|
const pennlibsFallbackImgCss = ":host{font-family:var(--pl-font-family);font-size:var(--pl-font-size);display:flex;align-items:center;justify-content:center;padding:1rem;background:var(--pl-color-bg-subtle);aspect-ratio:3/2}.no-image__img{width:100%;max-width:150px;filter:grayscale(1) opacity(0.3)}";
|
|
4
4
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, d as getAssetPath, a as getElement } from './p-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, d as getAssetPath, a as getElement } from './p-kmszRyIe.js';
|
|
2
2
|
|
|
3
|
-
const pennlibsFeedbackCss = "
|
|
3
|
+
const pennlibsFeedbackCss = ".feedback__container.sc-pennlibs-feedback{display:block;background:#eeeff4;font-family:var(--pl-font-family);font-size:var(--pl-font-size);color:var(--pl-color-fg-default);line-height:1.4;box-sizing:border-box;padding:0.75em 0}@media print{.sc-pennlibs-feedback-h{display:none}}*.sc-pennlibs-feedback,*.sc-pennlibs-feedback::before,*.sc-pennlibs-feedback::after{box-sizing:border-box}.viewport-margins.sc-pennlibs-feedback{max-width:var(--pl-viewport-margins-max-width);margin:0 auto;padding:0 var(--pl-viewport-margins-gutter, 1em)}.feedback__content.sc-pennlibs-feedback{display:flex;justify-content:space-between;gap:var(--pl-space-s);flex-wrap:wrap}.feedback__inline-question.sc-pennlibs-feedback{display:flex;flex-wrap:wrap;gap:0.5em;align-items:center}h2.sc-pennlibs-feedback{display:inline-block;margin:0;font-family:var(--pl-font-sans-serif);font-size:1em;font-weight:400}p.sc-pennlibs-feedback{margin:0;padding:calc(0.5em + 1px) 0}a.sc-pennlibs-feedback{color:var(--pl-color-fg-accent);text-decoration:underline;text-underline-offset:var(--pl-link-text-underline-offset);text-decoration-thickness:var(--pl-link-hover-text-decoration-thickness)}button.sc-pennlibs-feedback{all:unset;display:flex;align-items:center;gap:0.5em;padding:0.25em 1.25em;font-family:var(--pl-font-family);font-weight:500;line-height:1.4;color:var(--pl-color-fg-default);background:var(--pl-color-bg-default);border:solid 1px var(--pl-color-fg-subtle);border-radius:1em;box-sizing:border-box}button.sc-pennlibs-feedback:hover{cursor:pointer}button.sc-pennlibs-feedback:hover span.sc-pennlibs-feedback{text-decoration:underline}button.selected.sc-pennlibs-feedback{background:var(--pl-color-bg-accent-emphasis);color:var(--pl-color-fg-on-emphasis);border-color:var(--pl-color-bg-accent-emphasis)}.feedback__inline-question.sc-pennlibs-feedback+.feedback__share-feedback.sc-pennlibs-feedback,p.sc-pennlibs-feedback{animation:none}.feedback__content.sc-pennlibs-feedback>p.sc-pennlibs-feedback{animation:fadeIn 300ms ease-in}@keyframes fadeIn{from{opacity:0}to{opacity:1}}*.sc-pennlibs-feedback:focus{outline:0;box-shadow:0 0 0 2px var(--pl-color-bg-attention),\n 0 0 0 3px var(--pl-color-bg-emphasis)}@media (max-width: 26em){h2.sc-pennlibs-feedback{display:block;width:100%}}.visually-hidden.sc-pennlibs-feedback{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}";
|
|
4
4
|
|
|
5
|
-
const FEEDBACK_STORAGE_KEY = `pennlibs-feedback-${window.location.pathname}`;
|
|
6
5
|
const FEEDBACK_TTL = 5 * 60 * 1000; // 5 minutes
|
|
7
6
|
const FEEDBACK_QUESTION = 'Did you find what you need?';
|
|
8
7
|
const PennlibsFeedback = class {
|
|
@@ -15,28 +14,59 @@ const PennlibsFeedback = class {
|
|
|
15
14
|
this.hideQuestion = false;
|
|
16
15
|
this.answer = undefined;
|
|
17
16
|
this.selected = undefined;
|
|
17
|
+
this.currentUrl = '';
|
|
18
|
+
this.onNavigate = (event) => {
|
|
19
|
+
try {
|
|
20
|
+
const destinationUrl = new URL(event.destination.url).href;
|
|
21
|
+
if (destinationUrl !== this.currentUrl) {
|
|
22
|
+
this.currentUrl = destinationUrl;
|
|
23
|
+
this.selected = undefined;
|
|
24
|
+
this.answer = undefined;
|
|
25
|
+
this.loadStoredAnswer();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch (_a) {
|
|
29
|
+
this.selected = undefined;
|
|
30
|
+
this.answer = undefined;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
get storageKey() {
|
|
35
|
+
return `pennlibs-feedback-${this.currentUrl}`;
|
|
36
|
+
}
|
|
37
|
+
connectedCallback() {
|
|
38
|
+
this.currentUrl = window.location.href;
|
|
39
|
+
window.navigation.addEventListener('navigate', this.onNavigate);
|
|
40
|
+
}
|
|
41
|
+
disconnectedCallback() {
|
|
42
|
+
window.navigation.removeEventListener('navigate', this.onNavigate);
|
|
18
43
|
}
|
|
19
44
|
componentWillLoad() {
|
|
20
|
-
|
|
45
|
+
this.loadStoredAnswer();
|
|
46
|
+
}
|
|
47
|
+
loadStoredAnswer() {
|
|
48
|
+
const stored = sessionStorage.getItem(this.storageKey);
|
|
21
49
|
if (stored) {
|
|
22
50
|
try {
|
|
23
51
|
const { answer, timestamp } = JSON.parse(stored);
|
|
24
52
|
if (Date.now() - timestamp > FEEDBACK_TTL) {
|
|
25
|
-
sessionStorage.removeItem(
|
|
53
|
+
sessionStorage.removeItem(this.storageKey);
|
|
26
54
|
}
|
|
27
55
|
else {
|
|
28
56
|
this.answer = answer;
|
|
29
57
|
}
|
|
30
58
|
}
|
|
31
59
|
catch (_a) {
|
|
32
|
-
sessionStorage.removeItem(
|
|
60
|
+
sessionStorage.removeItem(this.storageKey);
|
|
33
61
|
}
|
|
34
62
|
}
|
|
35
63
|
}
|
|
36
|
-
|
|
64
|
+
handleSubmit(event) {
|
|
37
65
|
var _a;
|
|
66
|
+
event.preventDefault();
|
|
67
|
+
const answer = event.submitter.value;
|
|
38
68
|
this.selected = answer;
|
|
39
|
-
sessionStorage.setItem(
|
|
69
|
+
sessionStorage.setItem(this.storageKey, JSON.stringify({ answer, timestamp: Date.now() }));
|
|
40
70
|
this.feedbackEvent.emit({
|
|
41
71
|
question: FEEDBACK_QUESTION,
|
|
42
72
|
answer: answer,
|
|
@@ -49,7 +79,7 @@ const PennlibsFeedback = class {
|
|
|
49
79
|
}, 600);
|
|
50
80
|
}
|
|
51
81
|
render() {
|
|
52
|
-
return (h("div", { key: '
|
|
82
|
+
return (h("div", { key: '12bdec6f975166a4c5d451fc1834f70fbce3b424', class: "feedback__container" }, h("div", { key: '4c607ceef5f10760d540d2549a2b186a871714c7', class: "viewport-margins" }, h("div", { key: 'a967498163e05ce60a12bf230d303caa31373c8d', class: "feedback__content" }, !this.hideQuestion && (this.answer === 'yes' ? (h("p", null, "Thank you for letting us know.")) : this.answer === 'no' ? (h("p", null, "We'd like to help. ", h("a", { href: "https://www.library.upenn.edu/contact-us" }, "Contact us"), " and let us know what you're looking for.")) : (h("form", { class: "feedback__inline-question", onSubmit: (e) => this.handleSubmit(e) }, h("h2", null, "Did you find what you need?"), h("button", { type: "submit", name: "answer", value: "yes", class: { 'selected': this.selected === 'yes' }, disabled: !!this.selected }, h("span", null, "Yes"), h("span", { class: "visually-hidden" }, ", I found what I needed.")), h("button", { type: "submit", name: "answer", value: "no", class: { 'selected': this.selected === 'no' }, disabled: !!this.selected }, h("span", null, "No"), h("span", { class: "visually-hidden" }, ", I did not find what I needed."))))), h("div", { key: 'f918da2833ae0c64e67a9e95551edaeb78e2ba05', class: "feedback__share-feedback" }, h("p", { key: '12928af116ffadf669cbc694160ee6ca3458528b' }, "To help us improve, ", h("a", { key: '7281b7423677b104fb622a7fdcf8e768517ea84e', href: `https://upenn.co1.qualtrics.com/jfe/form/SV_3xVrP7EKWS92zfE?reporting_from_url=${encodeURIComponent(window.location.href)}` }, "share your feedback"), "."))))));
|
|
53
83
|
}
|
|
54
84
|
};
|
|
55
85
|
PennlibsFeedback.style = pennlibsFeedbackCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as getElement } from './p-
|
|
1
|
+
import { r as registerInstance, h, a as getElement } from './p-kmszRyIe.js';
|
|
2
2
|
|
|
3
3
|
const pennlibsIiifImgCss = ":host{display:block;width:100%;max-width:100%;align-self:flex-start;aspect-ratio:var(--aspect-ratio, auto)}picture{display:block;line-height:0}.iiif-img{display:block;width:100%;max-width:100%;height:auto;opacity:0;filter:blur(5px);transition:opacity 0.15s ease-in, filter 0.15s ease-in}.iiif-img.loaded{opacity:1;filter:blur(0)}.fallback-container{display:block;width:100%;height:100%}.fallback-container pennlibs-fallback-img{width:100%;height:100%}pennlibs-fallback-img{display:block;width:100%;height:100%}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './p-
|
|
1
|
+
import { r as registerInstance, h } from './p-kmszRyIe.js';
|
|
2
2
|
|
|
3
3
|
const pennlibsChatCss = ":host {\n font-family: var(--pl-font-family);\n font-size: var(--pl-font-size);\n line-height: normal;\n}\n\n@media print {\n :host {\n display: none;\n }\n}\n\na {\n display: flex;\n align-items: center;\n background: linear-gradient(45deg, #faa755, #fcca99);\n border-radius: 1em;\n position: fixed;\n bottom: 0.75em;\n right: 0.75em;\n box-shadow: rgba(0,0,0,0.3) 0px 2px 16px 0px;\n color: var(--pl-color-penn-blue);\n text-decoration: none;\n font-weight: 500;\n padding: 0.15em;\n font-size: 1em;\n\n @media (min-width: 820px) {\n bottom: 1.5em;\n right: 1.5em;\n width: auto;\n padding: 0.15em 0.75em;\n padding-left: 0.5em;\n }\n}\n\na:hover {\n text-decoration: underline;\n text-underline-offset: var(--pl-link-text-underline-offset);\n text-decoration-thickness: var(--pl-link-hover-text-decoration-thickness);\n}\n\na:hover,\na:focus {\n outline: none;\n box-shadow: 0 0 0 2px var(--pl-color-bg-attention),0 0 0 4px var(--pl-color-penn-blue), rgba(0,0,0,0.3) 0px 2px 16px 0px;;\n}\n\nsvg {\n width: 2.5em;\n height: 2.5em;\n}\n\nspan {\n display: none;\n font-size: 1.1em;\n\n @media (min-width: 820px) {\n display: inline;\n }\n}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as getElement } from './p-
|
|
1
|
+
import { r as registerInstance, h, a as getElement } from './p-kmszRyIe.js';
|
|
2
2
|
|
|
3
3
|
const pennlibsHeroCss = ":host{--pl-hero-height:clamp(42vh, 32rem, 26rem);--pl-hero-heading-font:var(--pl-font-serif);--pl-hero-color:var(--pl-color-fg-on-emphasis)}*,*:before,*:after{box-sizing:inherit}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.viewport-margins{width:100%;max-width:var(--pl-viewport-margins-max-width);margin:0 auto;padding:0 var(--pl-viewport-margins-gutter, 1em)}.hero{position:relative;min-height:var(--pl-hero-height);height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 33%;display:flex}.hero::before{content:\"\";display:flex;width:100%;height:100%;top:0;position:absolute;background:linear-gradient(360deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.05) 100%);z-index:0}.hero::after{content:\"\";display:flex;width:100%;height:100%;top:0;position:absolute;background:linear-gradient(180deg, rgba(1, 31, 91, 1) 0%, rgba(1, 31, 91, 0.9) 10%, rgba(1, 31, 91, 0.8) 20%, rgba(1, 31, 91, 0.1) 50%, rgba(1, 31, 91, 0.0) 100%);z-index:0}.hero__content{position:relative;display:flex;flex-direction:column;width:100%;z-index:1}.hero__heading-container{margin-top:auto;padding-top:var(--pl-space-3xl);padding-bottom:var(--pl-space-3xl)}.hero__heading{text-shadow:1px 1px 2px var(--pl-color-fg-default);line-height:1.1;font-size:3em;font-weight:400;font-family:var(--pl-hero-heading-font);text-wrap:pretty;max-width:30ch;margin:0;color:var(--pl-hero-color)}@media (max-width: 920px){.hero__heading{font-size:2.5em}}.hero__sub-heading{font-size:1.25em;font-family:var(--pl-font-family);font-weight:500;color:var(--pl-hero-color);max-width:52ch;text-wrap:pretty;margin-top:1em;margin-bottom:0}.hero__sub-heading a{text-decoration:underline;text-underline-offset:var(--pl-link-text-underline-offset);text-decoration-thickness:var(--pl-link-text-decoration-thickness);color:var(--pl-hero-color)}.hero__sub-heading a:hover{text-decoration-thickness:var(--pl-link-hover-text-decoration-thickness)}.hero__sub-heading strong{font-weight:bold}@media (max-width: 620px){.hero__heading{font-size:2.75em}.hero__sub-heading{font-size:1em}}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, d as getAssetPath, h } from './p-
|
|
1
|
+
import { r as registerInstance, d as getAssetPath, h } from './p-kmszRyIe.js';
|
|
2
2
|
|
|
3
3
|
const pennlibsBannerCss = ":host{font-family:var(--pl-font-family);font-size:var(--pl-font-size);--max-width:1080px}.viewport-margins{max-width:calc(var(--max-width) + 0.5em);margin:0 auto;padding:0 var(--pl-viewport-margins-gutter, 1em)}.skip-to-content-link{position:absolute;transform:translateY(-300%);background:var(--pl-color-bg-default);left:0.5em;padding:0.5em 1em;margin-top:0.5em;position:absolute}.skip-to-content-link:focus{transform:translateY(0%);color:var(--pl-color-fg-default)}.universal-nav{background:var(--pl-color-penn-blue)}.universal-nav ul{display:flex;align-items:baseline;flex-wrap:wrap;scrollbar-color:var(--pl-color-penn-red);list-style:none;padding:0;margin:0}.universal-nav li{display:inline-block}.universal-nav a{display:inline-block;text-transform:uppercase;font-size:0.75em;letter-spacing:0.075em;font-weight:600;color:var(--pl-color-fg-subtle-on-emphasis);padding:0.5em;text-decoration:none}.universal-nav a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.15em}.universal-nav__shield-image{vertical-align:sub;height:1em;padding-right:0.5em;height:auto}";
|
|
4
4
|
|
|
@@ -201,6 +201,9 @@ var getAssetPath = (path) => {
|
|
|
201
201
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
202
202
|
};
|
|
203
203
|
var setAssetPath = (path) => plt.$resourcesUrl$ = path;
|
|
204
|
+
|
|
205
|
+
// src/utils/helpers.ts
|
|
206
|
+
var isDef = (v) => v != null && v !== void 0;
|
|
204
207
|
var isComplexType = (o) => {
|
|
205
208
|
o = typeof o;
|
|
206
209
|
return o === "object" || o === "function";
|
|
@@ -711,6 +714,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
711
714
|
const shadowRootNodes = shadowRoot ? [] : null;
|
|
712
715
|
const vnode = newVNode(tagName, null);
|
|
713
716
|
vnode.$elm$ = hostElm;
|
|
717
|
+
let scopeId2;
|
|
718
|
+
{
|
|
719
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
720
|
+
if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
|
|
721
|
+
scopeId2 = hostElm["s-sc"];
|
|
722
|
+
hostElm.classList.add(scopeId2 + "-h");
|
|
723
|
+
} else if (hostElm["s-sc"]) {
|
|
724
|
+
delete hostElm["s-sc"];
|
|
725
|
+
}
|
|
726
|
+
}
|
|
714
727
|
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
715
728
|
initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
716
729
|
}
|
|
@@ -814,6 +827,11 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
814
827
|
}
|
|
815
828
|
}
|
|
816
829
|
}
|
|
830
|
+
if (scopeId2 && slotNodes.length) {
|
|
831
|
+
slotNodes.forEach((slot) => {
|
|
832
|
+
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
833
|
+
});
|
|
834
|
+
}
|
|
817
835
|
if (shadowRoot) {
|
|
818
836
|
let rnIdex = 0;
|
|
819
837
|
const rnLen = shadowRootNodes.length;
|
|
@@ -843,6 +861,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
843
861
|
let childIdSplt;
|
|
844
862
|
let childVNode;
|
|
845
863
|
let i2;
|
|
864
|
+
const scopeId2 = hostElm["s-sc"];
|
|
846
865
|
if (node.nodeType === 1 /* ElementNode */) {
|
|
847
866
|
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
848
867
|
if (childNodeType) {
|
|
@@ -865,6 +884,10 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
865
884
|
if (!parentVNode.$children$) {
|
|
866
885
|
parentVNode.$children$ = [];
|
|
867
886
|
}
|
|
887
|
+
if (scopeId2 && childIdSplt[0] === hostId) {
|
|
888
|
+
node["s-si"] = scopeId2;
|
|
889
|
+
childVNode.$attrs$.class += " " + scopeId2;
|
|
890
|
+
}
|
|
868
891
|
const slotName = childVNode.$elm$.getAttribute("s-sn");
|
|
869
892
|
if (typeof slotName === "string") {
|
|
870
893
|
if (childVNode.$tag$ === "slot-fb") {
|
|
@@ -879,6 +902,9 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
879
902
|
shadowRootNodes,
|
|
880
903
|
slottedNodes
|
|
881
904
|
);
|
|
905
|
+
if (scopeId2) {
|
|
906
|
+
node.classList.add(scopeId2);
|
|
907
|
+
}
|
|
882
908
|
}
|
|
883
909
|
childVNode.$elm$["s-sn"] = slotName;
|
|
884
910
|
childVNode.$elm$.removeAttribute("s-sn");
|
|
@@ -1293,6 +1319,9 @@ function sortedAttrNames(attrNames) {
|
|
|
1293
1319
|
attrNames
|
|
1294
1320
|
);
|
|
1295
1321
|
}
|
|
1322
|
+
|
|
1323
|
+
// src/runtime/vdom/vdom-render.ts
|
|
1324
|
+
var scopeId;
|
|
1296
1325
|
var hostTagName;
|
|
1297
1326
|
var isSvgMode = false;
|
|
1298
1327
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
@@ -1321,6 +1350,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1321
1350
|
{
|
|
1322
1351
|
updateElement(null, newVNode2, isSvgMode);
|
|
1323
1352
|
}
|
|
1353
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
1354
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
1355
|
+
}
|
|
1324
1356
|
if (newVNode2.$children$) {
|
|
1325
1357
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
1326
1358
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -1499,10 +1531,34 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1499
1531
|
}
|
|
1500
1532
|
};
|
|
1501
1533
|
var insertBefore = (parent, newNode, reference) => {
|
|
1534
|
+
if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
|
|
1535
|
+
addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
1536
|
+
}
|
|
1502
1537
|
{
|
|
1503
1538
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1504
1539
|
}
|
|
1505
1540
|
};
|
|
1541
|
+
function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
1542
|
+
var _a, _b;
|
|
1543
|
+
let scopeId2;
|
|
1544
|
+
if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
|
|
1545
|
+
const scopeName = slotNode["s-sn"];
|
|
1546
|
+
const hostName = slotNode["s-hn"];
|
|
1547
|
+
(_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
|
|
1548
|
+
if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
|
|
1549
|
+
let child = (oldParent.__childNodes || oldParent.childNodes)[0];
|
|
1550
|
+
let found = false;
|
|
1551
|
+
while (child) {
|
|
1552
|
+
if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
|
|
1553
|
+
found = true;
|
|
1554
|
+
break;
|
|
1555
|
+
}
|
|
1556
|
+
child = child.nextSibling;
|
|
1557
|
+
}
|
|
1558
|
+
if (!found) oldParent.classList.remove(scopeId2 + "-s");
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1506
1562
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1507
1563
|
const hostElm = hostRef.$hostElement$;
|
|
1508
1564
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -1529,6 +1585,9 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1529
1585
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1530
1586
|
hostRef.$vnode$ = rootVnode;
|
|
1531
1587
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1588
|
+
{
|
|
1589
|
+
scopeId = hostElm["s-sc"];
|
|
1590
|
+
}
|
|
1532
1591
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1533
1592
|
};
|
|
1534
1593
|
|
|
@@ -2000,6 +2059,9 @@ var connectedCallback = (elm) => {
|
|
|
2000
2059
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2001
2060
|
const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
|
|
2002
2061
|
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
2062
|
+
} else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2063
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
2064
|
+
elm["s-sc"] = scopeId2;
|
|
2003
2065
|
}
|
|
2004
2066
|
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
2005
2067
|
}
|
|
@@ -2258,6 +2320,6 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
2258
2320
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2259
2321
|
|
|
2260
2322
|
export { getElement as a, bootstrapLazy as b, createEvent as c, getAssetPath as d, setAssetPath as e, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
2261
|
-
//# sourceMappingURL=
|
|
2323
|
+
//# sourceMappingURL=p-kmszRyIe.js.map
|
|
2262
2324
|
|
|
2263
|
-
//# sourceMappingURL=
|
|
2325
|
+
//# sourceMappingURL=p-kmszRyIe.js.map
|