@penn-libraries/web 1.0.0-dev.2 → 1.1.0-dev.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.
Files changed (103) hide show
  1. package/dist/cjs/{index-B6HF5D3u.js → index-C0A2bnrZ.js} +76 -3
  2. package/dist/cjs/index-C0A2bnrZ.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/pennlibs-allow-tracking.pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.cjs.js.map +1 -0
  6. package/dist/cjs/{pennlibs-chat_6.cjs.entry.js → pennlibs-allow-tracking_4.cjs.entry.js} +264 -121
  7. package/dist/cjs/pennlibs-allow-tracking_4.cjs.entry.js.map +1 -0
  8. package/dist/cjs/pennlibs-banner.cjs.entry.js +2 -2
  9. package/dist/cjs/pennlibs-chat.cjs.entry.js +25 -0
  10. package/dist/cjs/pennlibs-chat.cjs.entry.js.map +1 -0
  11. package/dist/cjs/pennlibs-chat.entry.cjs.js.map +1 -0
  12. package/dist/cjs/pennlibs-fallback-img.cjs.entry.js +22 -0
  13. package/dist/cjs/pennlibs-fallback-img.cjs.entry.js.map +1 -0
  14. package/dist/cjs/pennlibs-fallback-img.entry.cjs.js.map +1 -0
  15. package/dist/cjs/pennlibs-feedback.cjs.entry.js +60 -0
  16. package/dist/cjs/pennlibs-feedback.cjs.entry.js.map +1 -0
  17. package/dist/cjs/pennlibs-feedback.entry.cjs.js.map +1 -0
  18. package/dist/cjs/pennlibs-hero.cjs.entry.js +62 -0
  19. package/dist/cjs/pennlibs-hero.cjs.entry.js.map +1 -0
  20. package/dist/cjs/pennlibs-hero.entry.cjs.js.map +1 -0
  21. package/dist/cjs/web.cjs.js +2 -2
  22. package/dist/collection/collection-manifest.json +2 -0
  23. package/dist/collection/components/pennlibs-allow-tracking/pennlibs-allow-tracking.css +110 -0
  24. package/dist/collection/components/pennlibs-allow-tracking/pennlibs-allow-tracking.js +67 -0
  25. package/dist/collection/components/pennlibs-allow-tracking/pennlibs-allow-tracking.js.map +1 -0
  26. package/dist/collection/components/pennlibs-autocomplete/pennlibs-autocomplete.css +79 -0
  27. package/dist/collection/components/pennlibs-autocomplete/pennlibs-autocomplete.js +309 -0
  28. package/dist/collection/components/pennlibs-autocomplete/pennlibs-autocomplete.js.map +1 -0
  29. package/dist/collection/components/pennlibs-banner/pennlibs-banner.js +1 -1
  30. package/dist/collection/components/pennlibs-chat/pennlibs-chat.js +1 -1
  31. package/dist/collection/components/pennlibs-fallback-img/pennlibs-fallback-img.js +1 -1
  32. package/dist/collection/components/pennlibs-footer/pennlibs-footer.js +3 -3
  33. package/dist/collection/components/pennlibs-header/pennlibs-header.js +1 -1
  34. package/dist/collection/components/pennlibs-hero/pennlibs-hero.js +1 -1
  35. package/dist/components/index.d.ts +4 -0
  36. package/dist/components/index.js +2 -0
  37. package/dist/components/index.js.map +1 -1
  38. package/dist/components/pennlibs-allow-tracking.d.ts +11 -0
  39. package/dist/components/pennlibs-allow-tracking.js +79 -0
  40. package/dist/components/pennlibs-allow-tracking.js.map +1 -0
  41. package/dist/components/pennlibs-autocomplete.d.ts +11 -0
  42. package/dist/components/pennlibs-autocomplete.js +259 -0
  43. package/dist/components/pennlibs-autocomplete.js.map +1 -0
  44. package/dist/components/pennlibs-banner.js +1 -1
  45. package/dist/components/pennlibs-chat.js +1 -1
  46. package/dist/components/pennlibs-fallback-img.js +1 -1
  47. package/dist/components/pennlibs-footer.js +3 -3
  48. package/dist/components/pennlibs-header.js +1 -1
  49. package/dist/components/pennlibs-hero.js +1 -1
  50. package/dist/docs.json +102 -2
  51. package/dist/{web/p-BAQIT3Vo.js → esm/index-CE_ILdTo.js} +76 -3
  52. package/dist/{web/p-BAQIT3Vo.js.map → esm/index-CE_ILdTo.js.map} +1 -1
  53. package/dist/esm/index.js +1 -1
  54. package/dist/esm/loader.js +3 -3
  55. package/dist/esm/pennlibs-allow-tracking.pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.js.map +1 -0
  56. package/dist/esm/{pennlibs-chat_6.entry.js → pennlibs-allow-tracking_4.entry.js} +263 -118
  57. package/dist/esm/pennlibs-allow-tracking_4.entry.js.map +1 -0
  58. package/dist/esm/pennlibs-banner.entry.js +2 -2
  59. package/dist/esm/pennlibs-chat.entry.js +23 -0
  60. package/dist/esm/pennlibs-chat.entry.js.map +1 -0
  61. package/dist/esm/pennlibs-fallback-img.entry.js +20 -0
  62. package/dist/esm/pennlibs-fallback-img.entry.js.map +1 -0
  63. package/dist/esm/pennlibs-feedback.entry.js +58 -0
  64. package/dist/esm/pennlibs-feedback.entry.js.map +1 -0
  65. package/dist/esm/pennlibs-hero.entry.js +60 -0
  66. package/dist/esm/pennlibs-hero.entry.js.map +1 -0
  67. package/dist/esm/web.js +3 -3
  68. package/dist/types/components/pennlibs-allow-tracking/pennlibs-allow-tracking.d.ts +11 -0
  69. package/dist/types/components/pennlibs-autocomplete/pennlibs-autocomplete.d.ts +63 -0
  70. package/dist/types/components.d.ts +47 -0
  71. package/dist/web/index.esm.js +1 -1
  72. package/dist/web/p-07ad051f.entry.js +60 -0
  73. package/dist/web/p-07ad051f.entry.js.map +1 -0
  74. package/dist/web/{p-e331a309.entry.js → p-20c0bd7a.entry.js} +3 -3
  75. package/dist/web/p-370e32b1.entry.js +58 -0
  76. package/dist/web/p-370e32b1.entry.js.map +1 -0
  77. package/dist/web/p-5e385536.entry.js +20 -0
  78. package/dist/web/p-5e385536.entry.js.map +1 -0
  79. package/dist/{esm/index-BAQIT3Vo.js → web/p-CE_ILdTo.js} +76 -3
  80. package/dist/web/p-CE_ILdTo.js.map +1 -0
  81. package/dist/web/p-cbae5952.entry.js +23 -0
  82. package/dist/web/p-cbae5952.entry.js.map +1 -0
  83. package/dist/web/{p-ffdd436d.entry.js → p-ceaf55b0.entry.js} +263 -118
  84. package/dist/web/p-ceaf55b0.entry.js.map +1 -0
  85. package/dist/web/pennlibs-allow-tracking.pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.esm.js.map +1 -0
  86. package/dist/web/pennlibs-chat.entry.esm.js.map +1 -0
  87. package/dist/web/pennlibs-fallback-img.entry.esm.js.map +1 -0
  88. package/dist/web/pennlibs-feedback.entry.esm.js.map +1 -0
  89. package/dist/web/pennlibs-hero.entry.esm.js.map +1 -0
  90. package/dist/web/web.esm.js +3 -3
  91. package/hydrate/index.js +361 -9
  92. package/hydrate/index.mjs +361 -9
  93. package/package.json +2 -2
  94. package/readme.md +2 -0
  95. package/dist/cjs/index-B6HF5D3u.js.map +0 -1
  96. package/dist/cjs/pennlibs-chat.pennlibs-fallback-img.pennlibs-feedback.pennlibs-footer.pennlibs-header.pennlibs-hero.entry.cjs.js.map +0 -1
  97. package/dist/cjs/pennlibs-chat_6.cjs.entry.js.map +0 -1
  98. package/dist/esm/index-BAQIT3Vo.js.map +0 -1
  99. package/dist/esm/pennlibs-chat.pennlibs-fallback-img.pennlibs-feedback.pennlibs-footer.pennlibs-header.pennlibs-hero.entry.js.map +0 -1
  100. package/dist/esm/pennlibs-chat_6.entry.js.map +0 -1
  101. package/dist/web/p-ffdd436d.entry.js.map +0 -1
  102. package/dist/web/pennlibs-chat.pennlibs-fallback-img.pennlibs-feedback.pennlibs-footer.pennlibs-header.pennlibs-hero.entry.esm.js.map +0 -1
  103. /package/dist/web/{p-e331a309.entry.js.map → p-20c0bd7a.entry.js.map} +0 -0
@@ -0,0 +1,259 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+
3
+ const pennlibsAutocompleteCss = ":host {\n display: block;\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 {\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
+
5
+ const Autocomplete = /*@__PURE__*/ proxyCustomElement(class Autocomplete extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.activated = createEvent(this, "pl:activated", 7);
11
+ this.showSuggestions = false;
12
+ this.currentIndex = -1;
13
+ this.originalValue = '';
14
+ this.options = [];
15
+ this.handleOptionClick = (index) => {
16
+ this.currentIndex = index;
17
+ this.selectCurrent();
18
+ };
19
+ }
20
+ componentWillLoad() {
21
+ this.options = this.parseOptionsFromDOM();
22
+ }
23
+ componentDidLoad() {
24
+ this.setupInput();
25
+ }
26
+ disconnectedCallback() {
27
+ if (this.blurTimeout)
28
+ clearTimeout(this.blurTimeout);
29
+ }
30
+ parseOptionsFromDOM() {
31
+ const listbox = this.findListbox();
32
+ if (!listbox)
33
+ return [];
34
+ const elements = Array.from(listbox.querySelectorAll('[role="option"]'));
35
+ return elements.map((el, i) => this.createOption(el, i));
36
+ }
37
+ findListbox() {
38
+ return Array.from(this.el.children).find(child => child.matches('ol[role="listbox"]'));
39
+ }
40
+ createOption(element, index) {
41
+ var _a;
42
+ return {
43
+ id: element.id || `option-${index}`,
44
+ html: element.innerHTML,
45
+ value: element.getAttribute('data-value') || ((_a = element.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || ''
46
+ };
47
+ }
48
+ getInput() {
49
+ var _a, _b;
50
+ const slot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot[name="start"]');
51
+ return ((_b = slot === null || slot === void 0 ? void 0 : slot.assignedElements()[0]) === null || _b === void 0 ? void 0 : _b.querySelector('input')) || null;
52
+ }
53
+ isInputFocused() {
54
+ return this.getInput() === document.activeElement;
55
+ }
56
+ isTrackedInput(input) {
57
+ return (input === null || input === void 0 ? void 0 : input.getAttribute('data-pl-autocomplete-input')) === 'true' &&
58
+ this.el.contains(input);
59
+ }
60
+ setupInput() {
61
+ const input = this.getInput();
62
+ if (!input)
63
+ return;
64
+ this.setComboboxAttributes(input);
65
+ input.setAttribute('data-pl-autocomplete-input', 'true');
66
+ }
67
+ setComboboxAttributes(input) {
68
+ input.setAttribute('role', 'combobox');
69
+ input.setAttribute('aria-autocomplete', 'list');
70
+ input.setAttribute('aria-expanded', 'false');
71
+ input.setAttribute('aria-controls', 'listbox');
72
+ }
73
+ handleSlotChange() {
74
+ this.setupInput();
75
+ }
76
+ handleInputEvent(event) {
77
+ const input = event.target;
78
+ if (this.isTrackedInput(input))
79
+ this.openSuggestions();
80
+ }
81
+ handleFocusEvent(event) {
82
+ const input = event.target;
83
+ if (this.isTrackedInput(input))
84
+ this.showSuggestionsPanel();
85
+ }
86
+ handleBlurEvent(event) {
87
+ const input = event.target;
88
+ if (this.isTrackedInput(input))
89
+ this.deferCloseSuggestions();
90
+ }
91
+ handleFocusOut(event) {
92
+ if (this.isFocusLeavingComponent(event))
93
+ this.closeSuggestions();
94
+ }
95
+ handleKeyDown(event) {
96
+ if (!this.isInputFocused())
97
+ return;
98
+ if (event.metaKey || event.ctrlKey)
99
+ return; // Ignore keyboard shortcuts
100
+ const handler = this.keyHandlers()[event.key];
101
+ if (handler) {
102
+ event.preventDefault();
103
+ handler();
104
+ }
105
+ }
106
+ keyHandlers() {
107
+ return {
108
+ 'Escape': () => this.handleEscape(),
109
+ 'ArrowDown': () => this.handleArrowDown(),
110
+ 'ArrowUp': () => this.handleArrowUp(),
111
+ 'Enter': () => this.handleEnter()
112
+ };
113
+ }
114
+ handleEscape() {
115
+ this.reset();
116
+ this.syncInputState();
117
+ }
118
+ handleArrowDown() {
119
+ if (!this.showSuggestions)
120
+ return;
121
+ this.moveNext();
122
+ this.syncInputState();
123
+ }
124
+ handleArrowUp() {
125
+ if (!this.showSuggestions)
126
+ return;
127
+ this.movePrevious();
128
+ this.syncInputState();
129
+ }
130
+ handleEnter() {
131
+ if (this.canSelect())
132
+ this.selectCurrent();
133
+ }
134
+ // Navigation
135
+ moveNext() {
136
+ const lastIndex = this.options.length - 1;
137
+ this.currentIndex = this.currentIndex < lastIndex ? this.currentIndex + 1 : -1;
138
+ }
139
+ movePrevious() {
140
+ const lastIndex = this.options.length - 1;
141
+ this.currentIndex = this.currentIndex > -1 ? this.currentIndex - 1 : lastIndex;
142
+ }
143
+ canSelect() {
144
+ return this.showSuggestions && this.currentIndex >= 0;
145
+ }
146
+ selectCurrent() {
147
+ if (this.currentIndex < 0)
148
+ return;
149
+ const selectedOption = this.options[this.currentIndex];
150
+ const input = this.getInput();
151
+ if (input) {
152
+ input.value = selectedOption.value;
153
+ this.originalValue = selectedOption.value;
154
+ }
155
+ this.activated.emit({
156
+ index: this.currentIndex,
157
+ value: selectedOption.value
158
+ });
159
+ this.closeSuggestions();
160
+ }
161
+ openSuggestions() {
162
+ if (!this.isInputFocused())
163
+ return;
164
+ const input = this.getInput();
165
+ if (input)
166
+ this.originalValue = input.value;
167
+ this.showSuggestionsPanel();
168
+ this.syncInputState();
169
+ }
170
+ showSuggestionsPanel() {
171
+ this.showSuggestions = true;
172
+ this.syncInputState();
173
+ }
174
+ closeSuggestions() {
175
+ this.reset();
176
+ this.syncInputState();
177
+ }
178
+ deferCloseSuggestions() {
179
+ this.blurTimeout = setTimeout(() => {
180
+ if (this.isFocusOutsideComponent())
181
+ this.closeSuggestions();
182
+ }, 150);
183
+ }
184
+ reset() {
185
+ this.showSuggestions = false;
186
+ this.currentIndex = -1;
187
+ }
188
+ isFocusLeavingComponent(event) {
189
+ var _a;
190
+ const target = event.relatedTarget;
191
+ return !target ||
192
+ (!this.el.contains(target) && !((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.contains(target)));
193
+ }
194
+ isFocusOutsideComponent() {
195
+ var _a;
196
+ const active = document.activeElement;
197
+ return !((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.contains(active)) && active !== this.getInput();
198
+ }
199
+ // Input State Sync
200
+ syncInputState() {
201
+ const input = this.getInput();
202
+ if (!input)
203
+ return;
204
+ this.updateAriaExpanded(input);
205
+ this.updateAriaActiveDescendant(input);
206
+ this.updateInputValue(input);
207
+ }
208
+ updateAriaExpanded(input) {
209
+ input.setAttribute('aria-expanded', this.showSuggestions.toString());
210
+ }
211
+ updateAriaActiveDescendant(input) {
212
+ const hasSelection = this.showSuggestions && this.currentIndex >= 0;
213
+ if (hasSelection && this.options[this.currentIndex]) {
214
+ input.setAttribute('aria-activedescendant', this.options[this.currentIndex].id);
215
+ }
216
+ else {
217
+ input.removeAttribute('aria-activedescendant');
218
+ }
219
+ }
220
+ updateInputValue(input) {
221
+ input.value = this.currentIndex >= 0
222
+ ? this.options[this.currentIndex].value
223
+ : this.originalValue;
224
+ }
225
+ shouldShowListbox() {
226
+ return this.showSuggestions && this.options.length > 0 && this.isInputFocused();
227
+ }
228
+ render() {
229
+ return (h("div", { key: '115c30f765cf21c38e2e5376da41295850ec76e3' }, h("slot", { key: '878c10f3b561bf8c85f920b7238227a5b0429204', name: "start" }), this.shouldShowListbox() && (h("ol", { key: 'ea491160d597a9c2b553107fb3edad698d652549', role: "listbox", id: "listbox" }, this.options.map((option, index) => (h("li", { role: "option", id: option.id, "aria-selected": this.currentIndex === index ? 'true' : 'false', tabindex: "-1", onClick: () => this.handleOptionClick(index), innerHTML: option.html })))))));
230
+ }
231
+ get el() { return this; }
232
+ static get style() { return pennlibsAutocompleteCss; }
233
+ }, [1, "pennlibs-autocomplete", {
234
+ "showSuggestions": [32],
235
+ "currentIndex": [32],
236
+ "originalValue": [32],
237
+ "options": [32]
238
+ }, [[0, "slotchange", "handleSlotChange"], [16, "input", "handleInputEvent"], [16, "focus", "handleFocusEvent"], [16, "blur", "handleBlurEvent"], [0, "focusout", "handleFocusOut"], [4, "keydown", "handleKeyDown"]]]);
239
+ function defineCustomElement$1() {
240
+ if (typeof customElements === "undefined") {
241
+ return;
242
+ }
243
+ const components = ["pennlibs-autocomplete"];
244
+ components.forEach(tagName => { switch (tagName) {
245
+ case "pennlibs-autocomplete":
246
+ if (!customElements.get(tagName)) {
247
+ customElements.define(tagName, Autocomplete);
248
+ }
249
+ break;
250
+ } });
251
+ }
252
+
253
+ const PennlibsAutocomplete = Autocomplete;
254
+ const defineCustomElement = defineCustomElement$1;
255
+
256
+ export { PennlibsAutocomplete, defineCustomElement };
257
+ //# sourceMappingURL=pennlibs-autocomplete.js.map
258
+
259
+ //# sourceMappingURL=pennlibs-autocomplete.js.map
@@ -0,0 +1 @@
1
+ {"file":"pennlibs-autocomplete.js","mappings":";;AAAA,MAAM,uBAAuB,GAAG,kpDAAkpD;;MCkBrqD,YAAY,iBAAAA,kBAAA,CAAA,MAAA,YAAA,SAAA,WAAA,CAAA;AALzB,IAAA,WAAA,GAAA;;;;;AAOW,QAAA,IAAe,CAAA,eAAA,GAAY,KAA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K,CAAC,eAAe,CAAC,uBAAuB,CAAC;;;AAI1C,IAAA,gBAAgB,CAAC,KAAuB,EAAA;AAC9C,QAAA,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,IAAI;cAC/B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AAClC,cAAE,IAAI,CAAC,aAAa;;IAGhB,iBAAiB,GAAA;AACvB,QAAA,OAAO,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,cAAc,EAAE;;IAGjF,MAAM,GAAA;AACJ,QAAA,QACE,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACE,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,OAAO,EAAG,CAAA,EACpB,IAAI,CAAC,iBAAiB,EAAE,KACvB,2DAAI,IAAI,EAAC,SAAS,EAAC,EAAE,EAAC,SAAS,IAC5B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,MAC9B,CAAA,CAAA,IAAA,EAAA,EACE,IAAI,EAAC,QAAQ,EACb,EAAE,EAAE,MAAM,CAAC,EAAE,EACE,eAAA,EAAA,IAAI,CAAC,YAAY,KAAK,KAAK,GAAG,MAAM,GAAG,OAAO,EAC7D,QAAQ,EAAC,IAAI,EACb,OAAO,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAC5C,SAAS,EAAE,MAAM,CAAC,IAAI,GACtB,CACH,CAAC,CACC,CACN,CACG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement"],"sources":["src/components/pennlibs-autocomplete/pennlibs-autocomplete.css?tag=pennlibs-autocomplete&encapsulation=shadow","src/components/pennlibs-autocomplete/pennlibs-autocomplete.tsx"],"sourcesContent":[":host {\n display: block;\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 {\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}","import { Component, h, Element, State, Listen, Event, EventEmitter } from '@stencil/core';\n\ninterface ListboxOption {\n id: string;\n html: string;\n value: string;\n}\n\nexport interface ActivatedEvent {\n value: string;\n index: number;\n}\n\n@Component({\n tag: 'pennlibs-autocomplete',\n styleUrl: 'pennlibs-autocomplete.css',\n shadow: true\n})\nexport class Autocomplete {\n @Element() el!: HTMLElement;\n @State() showSuggestions: boolean = false;\n @State() currentIndex: number = -1;\n @State() originalValue: string = '';\n @State() options: ListboxOption[] = [];\n\n /**\n * Emitted when a user activates (selects) an autocomplete option\n */\n @Event({ eventName: 'pl:activated' }) activated: EventEmitter<ActivatedEvent>;\n\n private blurTimeout: number;\n\n componentWillLoad() {\n this.options = this.parseOptionsFromDOM();\n }\n\n componentDidLoad() {\n this.setupInput();\n }\n\n disconnectedCallback() {\n if (this.blurTimeout) clearTimeout(this.blurTimeout);\n }\n\n private parseOptionsFromDOM(): ListboxOption[] {\n const listbox = this.findListbox();\n if (!listbox) return [];\n\n const elements = Array.from(listbox.querySelectorAll('[role=\"option\"]')) as HTMLElement[];\n return elements.map((el, i) => this.createOption(el, i));\n }\n\n private findListbox(): HTMLOListElement | null {\n return Array.from(this.el.children).find(child =>\n child.matches('ol[role=\"listbox\"]')\n ) as HTMLOListElement;\n }\n\n private createOption(element: HTMLElement, index: number): ListboxOption {\n return {\n id: element.id || `option-${index}`,\n html: element.innerHTML,\n value: element.getAttribute('data-value') || element.textContent?.trim() || ''\n };\n }\n\n private getInput(): HTMLInputElement | null {\n const slot = this.el.shadowRoot?.querySelector('slot[name=\"start\"]') as HTMLSlotElement;\n return slot?.assignedElements()[0]?.querySelector('input') || null;\n }\n\n private isInputFocused(): boolean {\n return this.getInput() === document.activeElement;\n }\n\n private isTrackedInput(input: HTMLInputElement): boolean {\n return input?.getAttribute('data-pl-autocomplete-input') === 'true' &&\n this.el.contains(input);\n }\n\n private setupInput(): void {\n const input = this.getInput();\n if (!input) return;\n\n this.setComboboxAttributes(input);\n input.setAttribute('data-pl-autocomplete-input', 'true');\n }\n\n private setComboboxAttributes(input: HTMLInputElement): void {\n input.setAttribute('role', 'combobox');\n input.setAttribute('aria-autocomplete', 'list');\n input.setAttribute('aria-expanded', 'false');\n input.setAttribute('aria-controls', 'listbox');\n }\n\n @Listen('slotchange')\n handleSlotChange() {\n this.setupInput();\n }\n\n @Listen('input', { target: 'body' })\n handleInputEvent(event: Event) {\n const input = event.target as HTMLInputElement;\n if (this.isTrackedInput(input)) this.openSuggestions();\n }\n\n @Listen('focus', { target: 'body' })\n handleFocusEvent(event: Event) {\n const input = event.target as HTMLInputElement;\n if (this.isTrackedInput(input)) this.showSuggestionsPanel();\n }\n\n @Listen('blur', { target: 'body' })\n handleBlurEvent(event: Event) {\n const input = event.target as HTMLInputElement;\n if (this.isTrackedInput(input)) this.deferCloseSuggestions();\n }\n\n @Listen('focusout')\n handleFocusOut(event: FocusEvent) {\n if (this.isFocusLeavingComponent(event)) this.closeSuggestions();\n }\n\n @Listen('keydown', { target: 'document' })\n handleKeyDown(event: KeyboardEvent) {\n if (!this.isInputFocused()) return;\n if (event.metaKey || event.ctrlKey) return; // Ignore keyboard shortcuts\n\n const handler = this.keyHandlers()[event.key];\n if (handler) {\n event.preventDefault();\n handler();\n }\n }\n\n private keyHandlers() {\n return {\n 'Escape': () => this.handleEscape(),\n 'ArrowDown': () => this.handleArrowDown(),\n 'ArrowUp': () => this.handleArrowUp(),\n 'Enter': () => this.handleEnter()\n };\n }\n\n private handleEscape() {\n this.reset();\n this.syncInputState();\n }\n\n private handleArrowDown() {\n if (!this.showSuggestions) return;\n this.moveNext();\n this.syncInputState();\n }\n\n private handleArrowUp() {\n if (!this.showSuggestions) return;\n this.movePrevious();\n this.syncInputState();\n }\n\n private handleEnter() {\n if (this.canSelect()) this.selectCurrent();\n }\n\n // Navigation\n private moveNext(): void {\n const lastIndex = this.options.length - 1;\n this.currentIndex = this.currentIndex < lastIndex ? this.currentIndex + 1 : -1;\n }\n\n private movePrevious(): void {\n const lastIndex = this.options.length - 1;\n this.currentIndex = this.currentIndex > -1 ? this.currentIndex - 1 : lastIndex;\n }\n\n private canSelect(): boolean {\n return this.showSuggestions && this.currentIndex >= 0;\n }\n\n private selectCurrent(): void {\n if (this.currentIndex < 0) return;\n\n const selectedOption = this.options[this.currentIndex];\n const input = this.getInput();\n\n if (input) {\n input.value = selectedOption.value;\n this.originalValue = selectedOption.value;\n }\n\n this.activated.emit({\n index: this.currentIndex,\n value: selectedOption.value\n });\n\n this.closeSuggestions();\n }\n\n private handleOptionClick = (index: number): void => {\n this.currentIndex = index;\n this.selectCurrent();\n }\n\n private openSuggestions(): void {\n if (!this.isInputFocused()) return;\n\n const input = this.getInput();\n if (input) this.originalValue = input.value;\n\n this.showSuggestionsPanel();\n this.syncInputState();\n }\n\n private showSuggestionsPanel(): void {\n this.showSuggestions = true;\n this.syncInputState();\n }\n\n private closeSuggestions(): void {\n this.reset();\n this.syncInputState();\n }\n\n private deferCloseSuggestions(): void {\n this.blurTimeout = setTimeout(() => {\n if (this.isFocusOutsideComponent()) this.closeSuggestions();\n }, 150) as unknown as number;\n }\n\n private reset(): void {\n this.showSuggestions = false;\n this.currentIndex = -1;\n }\n\n private isFocusLeavingComponent(event: FocusEvent): boolean {\n const target = event.relatedTarget as HTMLElement;\n return !target ||\n (!this.el.contains(target) && !this.el.shadowRoot?.contains(target));\n }\n\n private isFocusOutsideComponent(): boolean {\n const active = document.activeElement;\n return !this.el.shadowRoot?.contains(active) && active !== this.getInput();\n }\n\n // Input State Sync\n private syncInputState(): void {\n const input = this.getInput();\n if (!input) return;\n\n this.updateAriaExpanded(input);\n this.updateAriaActiveDescendant(input);\n this.updateInputValue(input);\n }\n\n private updateAriaExpanded(input: HTMLInputElement): void {\n input.setAttribute('aria-expanded', this.showSuggestions.toString());\n }\n\n private updateAriaActiveDescendant(input: HTMLInputElement): void {\n const hasSelection = this.showSuggestions && this.currentIndex >= 0;\n if (hasSelection && this.options[this.currentIndex]) {\n input.setAttribute('aria-activedescendant', this.options[this.currentIndex].id);\n } else {\n input.removeAttribute('aria-activedescendant');\n }\n }\n\n private updateInputValue(input: HTMLInputElement): void {\n input.value = this.currentIndex >= 0\n ? this.options[this.currentIndex].value\n : this.originalValue;\n }\n\n private shouldShowListbox(): boolean {\n return this.showSuggestions && this.options.length > 0 && this.isInputFocused();\n }\n\n render() {\n return (\n <div>\n <slot name=\"start\" />\n {this.shouldShowListbox() && (\n <ol role=\"listbox\" id=\"listbox\">\n {this.options.map((option, index) => (\n <li\n role=\"option\"\n id={option.id}\n aria-selected={this.currentIndex === index ? 'true' : 'false'}\n tabindex=\"-1\"\n onClick={() => this.handleOptionClick(index)}\n innerHTML={option.html}\n />\n ))}\n </ol>\n )}\n </div>\n )\n }\n}\n"],"version":3}
@@ -10,7 +10,7 @@ const Banner = /*@__PURE__*/ proxyCustomElement(class Banner extends HTMLElement
10
10
  }
11
11
  render() {
12
12
  const shieldImageSrc = getAssetPath('./assets/penn-shield.png');
13
- return (h("nav", { key: '5d8f303bc3db4445a91add6e57b6c20df8d0eb1a', class: "universal-nav", "aria-label": "Penn Libraries Websites" }, h("a", { key: 'd4617491f77f3a5a64c4434a5281da140ed32329', href: "#main-content", class: "skip-to-content-link" }, "Skip to content"), h("div", { key: '3858f6cea1a85336126908b0a3b0084735ac7deb', class: "viewport-margins" }, h("ul", { key: '18c4ae556af007616953db377b778186ff9cb31b' }, h("li", { key: '375aaa6be82566185cbb484ff082ed514861f1e2' }, h("a", { key: '4b8f30ed7eab1ae71de3097a4ece4887468558a7', href: "https://www.library.upenn.edu/", class: "universal-nav__penn-libraries" }, h("img", { key: '77c00c1b66d7c0775d4ab830f4bcdac94c21cf72', src: shieldImageSrc, class: "universal-nav__shield-image", width: "16", height: "16" }), "Penn Libraries")), h("li", { key: 'd0055db7eff99adc0fb46f0c3c62c8710ffad217' }, h("a", { key: '1f3245f1a96ae4f5ba037f7bbbf9278d79a8bc01', href: "https://franklin.library.upenn.edu/" }, "Franklin")), h("li", { key: '605908137ec7c38143acd911f9cf67ee842f3cbe' }, h("a", { key: 'c97cf1d1b1c8b3964088b2f4f6231b730e784f5c', href: "https://upenn.alma.exlibrisgroup.com/discovery/account?vid=01UPENN_INST:Services&lang=en&section=overview" }, "Account")), h("li", { key: 'cace330f410469ba715646858dde02323a1b6da8' }, h("a", { key: 'dc7adbbf75d443055a079d17acbad0ae71ea7bf5', href: "https://guides.library.upenn.edu/" }, "Guides")), h("li", { key: 'daa02dc5b510e4dcc8190c9e954df30c1aeecb8b' }, h("a", { key: 'be4fdefc5fa281365551eada13dc18809e7e5872', href: "https://colenda.library.upenn.edu/" }, "Colenda")), h("li", { key: '8ee4491bb2f9c80cd26c984bf1bf2f0a2b0b2b29' }, h("a", { key: 'e4be73893a0a174634edeaa461f0e394c16057f5', href: "https://faq.library.upenn.edu/ask" }, "Ask chat"))))));
13
+ return (h("nav", { key: 'f318d9a43db0cc13e9fc75457bec729651c57a30', class: "universal-nav", "aria-label": "Penn Libraries Websites" }, h("a", { key: '23a7f51454f2e1b8e80ec136b0b14d74c6b1d4a9', href: "#main-content", class: "skip-to-content-link" }, "Skip to content"), h("div", { key: 'ee4f8ea2959fb10ca40a02a3705ce8e8b138104c', class: "viewport-margins" }, h("ul", { key: '07e19892c97069299148ccc94ba1cf5a9fa2da68' }, h("li", { key: '8abc48c64b5ff7681f79fb21134cd60bebf2e6ea' }, h("a", { key: '7e238689e33ee4d6e20fc7eb1c8d5430b98fe3d1', href: "https://www.library.upenn.edu/", class: "universal-nav__penn-libraries" }, h("img", { key: 'ce41dda7bb3eb573afc63a0620acf0c7bc45dc64', src: shieldImageSrc, class: "universal-nav__shield-image", width: "16", height: "16" }), "Penn Libraries")), h("li", { key: '8167cb151dc399be53b684a1eaae397fefc368e5' }, h("a", { key: '16ddc57bbb75c2995745d16f1206074eb06777b0', href: "https://franklin.library.upenn.edu/" }, "Franklin")), h("li", { key: 'ab465ad5fec2fcdc832819c83344842dfa50305c' }, h("a", { key: '905738aaeea6a6500ff19e03916566a9053f48e8', href: "https://upenn.alma.exlibrisgroup.com/discovery/account?vid=01UPENN_INST:Services&lang=en&section=overview" }, "Account")), h("li", { key: '818b56e9f2df9f55dbb8b69042522d55b6d5ba22' }, h("a", { key: 'c0fb59b9717ee8f5eb6bf04fbab24e2be2d00d92', href: "https://guides.library.upenn.edu/" }, "Guides")), h("li", { key: 'd4938780fcb24ae14961af161f0a51324a32f886' }, h("a", { key: '83970fd3d39015975f75414fc24a874485529186', href: "https://colenda.library.upenn.edu/" }, "Colenda")), h("li", { key: 'a5e23ba88e82047961b22371d9a0ba327964d21b' }, h("a", { key: '3e89fb2806ec29ab8521e237e7b46fddee608ec1', href: "https://faq.library.upenn.edu/ask" }, "Ask chat"))))));
14
14
  }
15
15
  static get assetsDirs() { return ["assets"]; }
16
16
  static get style() { return pennlibsBannerCss; }
@@ -14,7 +14,7 @@ const Chat = /*@__PURE__*/ proxyCustomElement(class Chat extends HTMLElement {
14
14
  this.href = this.libchat_url + '?referer=' + window.location.href;
15
15
  }
16
16
  render() {
17
- return (h("a", { key: '7e987c36da941c639917c16b2aa273262c1cabbb', href: this.href, target: "_blank", "aria-label": "Chat", id: "pennlibs-chat" }, h("svg", { key: '74dedb9dce8e714dc58df0f88149c157ae8f3ee0', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 82 82" }, h("path", { key: '0bbdb855437c5c35ef3067e328c72325c0e40f6e', fill: "#fff", d: "M66.17 31.97H24.08c-1.19 0-2.17.97-2.17 2.17v28.55c0 1.19.97 2.17 2.17 2.17h24.68c1.19 0 2.17.97 2.17 2.17v2.28c0 1.93 2.33 2.89 3.69 1.53l5.34-5.34c.41-.41.96-.63 1.53-.63h4.67c1.19 0 2.17-.97 2.17-2.17V34.15c0-1.19-.97-2.17-2.17-2.17Z" }), h("path", { key: '23832dead6b6c2efe3353fef8c0367c50f7bffea', fill: "#011f5b", d: "M28.91 57.96c-1.01 0-2.01-.39-2.76-1.14l-5.34-5.34c-.08-.08-.19-.13-.31-.13h-4.67c-2.15 0-3.9-1.75-3.9-3.9V18.9c0-2.15 1.75-3.9 3.9-3.9h42.09c2.15 0 3.9 1.75 3.9 3.9v28.55c0 2.15-1.75 3.9-3.9 3.9H33.24c-.24 0-.43.19-.43.43v2.28c0 1.58-.94 2.99-2.41 3.6-.48.2-.99.3-1.5.3ZM15.83 18.47c-.24 0-.43.19-.43.43v28.55c0 .24.19.43.43.43h4.67c1.04 0 2.02.41 2.76 1.14l5.34 5.34c.13.13.29.17.47.09.18-.07.27-.21.27-.4v-2.28c0-2.15 1.75-3.9 3.9-3.9h24.68c.24 0 .43-.19.43-.43V18.89c0-.24-.19-.43-.43-.43H15.83Z" })), h("span", { key: '5fe7d4714917699688a27cfac156e3cc88545d4c' }, "Chat")));
17
+ return (h("a", { key: '89edeaea008aae32c102d5782e15f09799170956', href: this.href, target: "_blank", "aria-label": "Chat", id: "pennlibs-chat" }, h("svg", { key: '496ef16ba01331ca8601e4549e9c715f970a095e', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 82 82" }, h("path", { key: '6bd0f09e3e80faf8ecfefeed9ddc2aa9dbc08eff', fill: "#fff", d: "M66.17 31.97H24.08c-1.19 0-2.17.97-2.17 2.17v28.55c0 1.19.97 2.17 2.17 2.17h24.68c1.19 0 2.17.97 2.17 2.17v2.28c0 1.93 2.33 2.89 3.69 1.53l5.34-5.34c.41-.41.96-.63 1.53-.63h4.67c1.19 0 2.17-.97 2.17-2.17V34.15c0-1.19-.97-2.17-2.17-2.17Z" }), h("path", { key: '8ac87f21317effb697c28cfcc3ebf288ceb9db5e', fill: "#011f5b", d: "M28.91 57.96c-1.01 0-2.01-.39-2.76-1.14l-5.34-5.34c-.08-.08-.19-.13-.31-.13h-4.67c-2.15 0-3.9-1.75-3.9-3.9V18.9c0-2.15 1.75-3.9 3.9-3.9h42.09c2.15 0 3.9 1.75 3.9 3.9v28.55c0 2.15-1.75 3.9-3.9 3.9H33.24c-.24 0-.43.19-.43.43v2.28c0 1.58-.94 2.99-2.41 3.6-.48.2-.99.3-1.5.3ZM15.83 18.47c-.24 0-.43.19-.43.43v28.55c0 .24.19.43.43.43h4.67c1.04 0 2.02.41 2.76 1.14l5.34 5.34c.13.13.29.17.47.09.18-.07.27-.21.27-.4v-2.28c0-2.15 1.75-3.9 3.9-3.9h24.68c.24 0 .43-.19.43-.43V18.89c0-.24-.19-.43-.43-.43H15.83Z" })), h("span", { key: '571e0cfea414ce512ec915e03f891d0b311caedd' }, "Chat")));
18
18
  }
19
19
  static get style() { return pennlibsChatCss; }
20
20
  }, [1, "pennlibs-chat", {
@@ -10,7 +10,7 @@ const NoImage = /*@__PURE__*/ proxyCustomElement(class NoImage extends HTMLEleme
10
10
  }
11
11
  render() {
12
12
  const shieldImg = getAssetPath('./assets/simplified-shield.webp');
13
- return (h("img", { key: '042513b9ac53d6d78dd2af6a58b8ad18cf82ec0f', src: shieldImg, alt: "", class: "no-image__img" }));
13
+ return (h("img", { key: 'ba6cc227e90aac2e22b9997ad5c794fd4fd6d5ef', src: shieldImg, alt: "", class: "no-image__img" }));
14
14
  }
15
15
  static get assetsDirs() { return ["assets"]; }
16
16
  static get style() { return pennlibsFallbackImgCss; }
@@ -31,12 +31,12 @@ const Footer = /*@__PURE__*/ proxyCustomElement(class Footer extends HTMLElement
31
31
  }
32
32
  render() {
33
33
  const footerBackgroundSrc = getAssetPath('./assets/footer-bg.webp');
34
- return (h("div", { key: 'a1cbb7636191cb3ac934a1bb375054357bcf93fc', class: "website-footer-wrapper" }, h("footer", { key: 'f2f2ab282f7d8e5a4603e0a6d8337135c4625ba6', class: "website-footer", style: {
34
+ return (h("div", { key: '968368b94435f332d852c7599308992195df8792', class: "website-footer-wrapper" }, h("footer", { key: '6c709b86bef34533d5350e7040d043fd2dd5caf2', class: "website-footer", style: {
35
35
  background: `var(--pl-color-penn-blue) url(${footerBackgroundSrc}) no-repeat 50% 50%`,
36
36
  backgroundSize: 'cover',
37
- } }, h("div", { key: 'eb24a52f9c3f135bc75f3e23ef3088a928a3ce65', class: "viewport-margins" }, h("div", { key: '439be8c6582f5eaa173251af97f17252fce9243c', class: "website-footer__content" }, h("div", { key: '3f30c3156c96a35a772fb85d890e1f5d81af8ec6', class: "website-footer__links-container" }, h("section", { key: 'e32be08455a07061a8eaeb13b2ae3f377f818c5f' }, h("h2", { key: 'bc2be34b67cc0953338d8f418950f428a5f55172', class: "website-footer__heading" }, "Penn Libraries"), h("ul", { key: 'bae0ee381df1883da90752c9476491217a2c2ca7', class: "website-footer__links" }, h("li", { key: 'f5025e51424e5c972b46a5d1650552b6187aa4e9' }, h("a", { key: '836172e6d531eb0d37d0c0a5e66a3a6c92ba95b3', href: "https://maps.google.com/?q=Van Pelt Library 3420 Walnut Street, Philadelphia, PA 19104-6206" }, "3420 Walnut Street", h("br", { key: 'ae8b8d41baccd3bb62c15d336c7664100f407886' }), "Philadelphia, PA 19104-6206")), h("li", { key: 'ed016c0fbe56c899bedb3e25eabbb1b3773b0167' }, h("a", { key: '04eab3b14fcda0ccff15f069beceb0bd0ef111fa', href: "tel:(215) 898-7555" }, "(215) 898-7555")), h("li", { key: 'e1968b748a2303a2b6176f502f68f7ed20e90c9b' }, h("a", { key: '9823456a1a5d7016431f88cd5a1c871cc8ef6a6d', href: "https://www.library.upenn.edu/contact-us" }, "Contact us")), h("li", { key: 'aedd3b51a66e6a78c463d0e76a9fddd60a0e4fa8' }, h("a", { key: '1972520903c54834e83c3f99ea4b35964d09b8a5', href: "https://www.library.upenn.edu/about/hours", target: "_blank" }, "Locations and hours")))), h("section", { key: '3604f648361768c4c4fdae3bb19af3625ccc5cbd' }, h("h2", { key: 'a79782bb074b215f3e44ebaf7e2bdcb8e1b37e27', class: "website-footer__heading" }, "Stay in touch"), h("ul", { key: 'cf7d5c3ddf5473471a5e4f154a82a3c4c6d3b7b5', class: "website-footer__links" }, h("li", { key: '8eb5e4f10197d0a428088e676d55620cc4a5ca6a' }, h("a", { key: '8e698ca0cc1614db65e64466dd1912bd74a8f58c', href: "https://www.alumni.upenn.edu/libsignup" }, "Newsletter")), h("li", { key: '62e6161d9ef81872473cb3c7df8df82fa5e49027' }, h("a", { key: 'b24bd5cfea7998bdf3b7674e32b0e72597cdf6c9', href: "https://www.instagram.com/upennlib/" }, "Instagram")), h("li", { key: 'd7260d10fda8fcde1bb799b2a6f5d9e34c47b4e1' }, h("a", { key: 'b24f2b33851e30a61d859c507ee5781caec47cb3', href: "https://www.facebook.com/PennLibraries/" }, "Facebook")), h("li", { key: '796d833e8f9e21a2739079ee7c5e7cf4f5bf5aa4' }, h("a", { key: 'e8ec25b48d06450abe3db34eb98f338e1caadd1b', href: "https://www.linkedin.com/company/penn-libraries" }, "LinkedIn")))), this.navigationByChildren && [
37
+ } }, h("div", { key: 'cfb33794f711d427f8cc64026bc1caff589ff444', class: "viewport-margins" }, h("div", { key: '7f7518568ef5884a0014be4e10b4ba6d00b14d9c', class: "website-footer__content" }, h("div", { key: '8fb9612358f3c42b3a5621f54cb646c06307776a', class: "website-footer__links-container" }, h("section", { key: '1bed43fbe1c161d8d4de0381f71f093bab6a3791' }, h("h2", { key: 'bdd5487da839597ce52715eff9fae099301a3f4b', class: "website-footer__heading" }, "Penn Libraries"), h("ul", { key: '0579c77c9120b73f67eb5560716cc9194182e645', class: "website-footer__links" }, h("li", { key: 'c8cadddc0867b4bded9f22975bc6e80210501737' }, h("a", { key: '34a076d9417b0da1a390f9757be5cece974b8658', href: "https://maps.google.com/?q=Van Pelt Library 3420 Walnut Street, Philadelphia, PA 19104-6206" }, "3420 Walnut Street", h("br", { key: '159e1ceed4693f7a85489ad4a1ef8f916f505955' }), "Philadelphia, PA 19104-6206")), h("li", { key: '3de1e966c16afc1ae5c82d25b1d87e24f27af826' }, h("a", { key: '39a6709291115a6f6ead9116171b97c31c6e77d9', href: "tel:(215) 898-7555" }, "(215) 898-7555")), h("li", { key: '7236b41454b66bc155bc4a7568f603c70504f01b' }, h("a", { key: '49b285935d3240e900079b62c8d90eb564e5707d', href: "https://www.library.upenn.edu/contact-us" }, "Contact us")), h("li", { key: '9329fe40a9aef5e1eaa74c6b22b33aee5b94f624' }, h("a", { key: 'd2bc79dff8b3a5c01cbc1ece4268b4fdddc56954', href: "https://www.library.upenn.edu/about/hours", target: "_blank" }, "Locations and hours")))), h("section", { key: '8b05b90f531f99c6223a7a080baa9472bb00b2b0' }, h("h2", { key: 'c950fd6a248e5d673a8a4e050f3aaa84f91c5014', class: "website-footer__heading" }, "Stay in touch"), h("ul", { key: '7ce913dd26948c9c1bb6f5ab14f1febc07425836', class: "website-footer__links" }, h("li", { key: 'ccd80b1eee71f058caad49e3da56cbf1a8d28aa2' }, h("a", { key: 'b09d62df23e341bd9424ff541a842c3b17a24637', href: "https://www.alumni.upenn.edu/libsignup" }, "Newsletter")), h("li", { key: '7b7c04fdf9d6673fef77fecd460c110f55700350' }, h("a", { key: '08cd159b59ff63471f4075913a644bbd171c5e90', href: "https://www.instagram.com/upennlib/" }, "Instagram")), h("li", { key: 'f0fffc02b5a55f41ad9e97b1e35dd7217e4d3aa6' }, h("a", { key: '0269c87d87e2b2b3db93fae2d5e33d19cf6a82a1', href: "https://www.facebook.com/PennLibraries/" }, "Facebook")), h("li", { key: '3c008831c4c3e5d700d4f16427b3cfd50082a8a6' }, h("a", { key: 'db56894184243b375d3f8c7c42458720f70a34f2', href: "https://www.linkedin.com/company/penn-libraries" }, "LinkedIn")))), this.navigationByChildren && [
38
38
  this.navigationByChildren.map(section => (h("section", null, h("h2", { class: "website-footer__heading" }, section.heading), h("ul", { class: "website-footer__links" }, section.links.map(link => (h("li", null, h("a", { href: link.href }, link.label))))))))
39
- ]))), h("div", { key: 'eb01f1b9475979942a291cecb5c49a7f99ac76ff', class: "website-footer__footer" }, h("div", { key: 'fe811b0a667ac77fbd65c6947fc64b11e6fd105a', class: "viewport-margins" }, h("ul", { key: '2999c3b798c86365232fa948bba6ba42bad4ac05', class: "website-footer__links website-footer__links--footer" }, h("li", { key: '5fbd7893982b9bd85dd0bec9ae0ced8fa254b01c' }, h("a", { key: '9ae82c6cad2c9d97a479407a8c1a2b7db451ba6e', href: "https://www.upenn.edu/" }, "UPenn")), h("li", { key: '9a312ef71677395ae9e36140b50f26283e463e1f' }, h("a", { key: '34881d92dd5bafaddda98f492e531663993ebcb5', href: "https://www.upenn.edu/about/privacy-policy" }, "Privacy Policy")), h("li", { key: 'be80ff6346e925d3d4ca73148cab8f87e9eafc00' }, h("a", { key: '1aa4f3965db242abaaea538a6c3d5a5358215348', href: "https://accessibility.web-resources.upenn.edu/get-help" }, "Report Accessibility Issues and Get Help")), h("li", { key: '4f6e9174acdf75d75b8beefc12950fee8d185f94' }, h("a", { key: '81b1a21a40057f8b1bb66efdd6fc264ebf132370', href: "https://www.upenn.edu/about/disclaimer" }, "Disclaimer")), h("li", { key: 'd9054f8cb3a387947a75e0ce686401d43fbfac9a' }, h("a", { key: '2bf7344740a7418eb68170b46afdb5eefc73dae3', href: "https://www.publicsafety.upenn.edu/contact/" }, "Emergency Services")), h("li", { key: 'c6962c1ea1e96c351da514ac41eb7782a79d3c22' }, h("a", { key: '0fd6ebe891954438f46c0265366a69ae319c2b7e', href: "https://www.upenn.edu/about/report-copyright-infringement" }, "Report Copyright Infringement"))))))));
39
+ ]))), h("div", { key: '3a48e365b66300beeb261d3c14e8d98e7565373d', class: "website-footer__footer" }, h("div", { key: '699738c3f57f35796a1f4397a6fada44eaaa1683', class: "viewport-margins" }, h("ul", { key: 'c88fb2fb6bbc3fc5eb13664f7288d7afe3ec7e57', class: "website-footer__links website-footer__links--footer" }, h("li", { key: '8c3ecc9499cb5fdf180906d2d681eba515dae399' }, h("a", { key: 'ae916ed72fc00e93f0e9c73b49878c75790a0227', href: "https://www.upenn.edu/" }, "UPenn")), h("li", { key: 'c5a51aabc04937e09ae3df7c0fe13fbb9ff9b0d8' }, h("a", { key: '359a6693330af0a701ff2e9a13fffb9e5ca573b6', href: "https://www.upenn.edu/about/privacy-policy" }, "Privacy Policy")), h("li", { key: '1e323f9c47a94933f48abaf0c1c5fef1479a1395' }, h("a", { key: '55dde719bb09dc79fc158f931adaf2b1926120c9', href: "https://accessibility.web-resources.upenn.edu/get-help" }, "Report Accessibility Issues and Get Help")), h("li", { key: 'e83955780f877039da38ddd946fd9ab0455812e1' }, h("a", { key: '7ed5e27e6f6ea677a35c7f3e78dba2e72f629488', href: "https://www.upenn.edu/about/disclaimer" }, "Disclaimer")), h("li", { key: 'cd28d78bec76cc13e0272cbb30e11bcde6459cb9' }, h("a", { key: 'a6a64d9949ea4cbbc8f90703d886e83dd9f0df9b', href: "https://www.publicsafety.upenn.edu/contact/" }, "Emergency Services")), h("li", { key: 'cbc668f7728653b15748a8488f9694c632884d6f' }, h("a", { key: 'b681b57236ee23c3be9c85c4f199ef7f4c66b607', href: "https://www.upenn.edu/about/report-copyright-infringement" }, "Report Copyright Infringement"))))))));
40
40
  }
41
41
  static get assetsDirs() { return ["assets"]; }
42
42
  get hostElement() { return this; }
@@ -68,7 +68,7 @@ const Header = /*@__PURE__*/ proxyCustomElement(class Header extends HTMLElement
68
68
  return (h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", viewBox: "0 -960 960 960", width: "24" }, h("path", { fill: "currentColor", d: "M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z" })));
69
69
  }
70
70
  render() {
71
- return (h("header", { key: 'b0f71640bc4b1fb494f78cac49c3f7383ab80aad', class: `viewport-margins website-header ${this.theme === 'dark' && 'website-header--dark'}` }, h("div", { key: '5492827910960ab2ccb95879d512ef9b029ec852', class: "website-header__inner-container" }, h("div", { key: '298b7f9aa12d67009b61ff5df6215117943e2d6c', class: "website-header__logo-name-container" }, h("a", { key: '2664b772fda1ea60ba2fbe84a4383faee5111dce', href: "https://www.library.upenn.edu/", class: "website-header_logo-link", "aria-label": "Penn Libraries" }, this.theme === 'dark' ? h(LogoWhite, null) : h(LogoBlue, null)), this.serviceName && (h("a", { key: '6310df5c59a848778bc9fa7525ca43eb0b40acdf', href: "/", class: "website-header__service-link" }, h("span", { key: '55b750954e5576380e0341bc6506db961644593b', class: "website-header__service-name" }, this.serviceName), this.serviceLede && h("span", { key: '3cf6efc9e14dd0e3aa9ca5f18d87ebe8ed0f3a55', class: "website-header__service-lede" }, this.serviceLede))), h("slot", { key: 'd549e890b64cf848f2a9854d9e8e27af372d4d13', name: "name-end" })), this.navigation.length > 0 && (h("nav", { key: '3577977564128734899f3725454ab405bab1524d', class: "website-header__navigation" }, h("button", { key: '5f6d6d8c3f9428741d8920ba402e5427b450c9be', class: "website-header__navigation-button", "aria-expanded": `${this.isMenuOpen}`, onClick: () => this.handleToggleMenu() }, this.renderMenuIcon(), " Menu"), this.navigation && (h("ol", { key: '73c47406768a97690b06b18f84acc3822a646b12', class: `website-header__navigation-list ${this.isMenuOpen && 'website-header__navigation-list--visible'}` }, this.navigation.map(element => h("li", { innerHTML: element.outerHTML })))))), h("slot", { key: '28c4bae6cd0c86909c991a501cc5e7e1cb94b73c', name: "end" }))));
71
+ return (h("header", { key: '7764d8c5041a19eba4786e6469e6b915066523da', class: `viewport-margins website-header ${this.theme === 'dark' && 'website-header--dark'}` }, h("div", { key: 'f7ab412767f5cf4e8d4cb9c1c05e969ece062927', class: "website-header__inner-container" }, h("div", { key: '55a8d55b15be439e772c59bd6fb1d6d34cf073f3', class: "website-header__logo-name-container" }, h("a", { key: 'edb380951b11d45b9b61b39253eebf0df32131de', href: "https://www.library.upenn.edu/", class: "website-header_logo-link", "aria-label": "Penn Libraries" }, this.theme === 'dark' ? h(LogoWhite, null) : h(LogoBlue, null)), this.serviceName && (h("a", { key: '036d3e3eac035f8eb8c8999892bc3322f5171e05', href: "/", class: "website-header__service-link" }, h("span", { key: '8d8ae853e2ce7ef8713226317260c2fdd79ae11b', class: "website-header__service-name" }, this.serviceName), this.serviceLede && h("span", { key: '5c878d5bb98689268362d76cdf04db42d7444560', class: "website-header__service-lede" }, this.serviceLede))), h("slot", { key: '3370137e9c3099f534c890d7422608fcf8bae09a', name: "name-end" })), this.navigation.length > 0 && (h("nav", { key: '50751b716f9600691093ace08e2c90a92a2274c5', class: "website-header__navigation" }, h("button", { key: 'e57793641ed5d314f1fec03821586d71cc82d889', class: "website-header__navigation-button", "aria-expanded": `${this.isMenuOpen}`, onClick: () => this.handleToggleMenu() }, this.renderMenuIcon(), " Menu"), this.navigation && (h("ol", { key: '8c6f479cf0da87a289593fceab55a4ce1436b146', class: `website-header__navigation-list ${this.isMenuOpen && 'website-header__navigation-list--visible'}` }, this.navigation.map(element => h("li", { innerHTML: element.outerHTML })))))), h("slot", { key: '04edf00df086103b723f3e2bcf2241aa7a4624f2', name: "end" }))));
72
72
  }
73
73
  static get assetsDirs() { return ["assets"]; }
74
74
  get hostElement() { return this; }
@@ -49,7 +49,7 @@ const Hero = /*@__PURE__*/ proxyCustomElement(class Hero extends HTMLElement {
49
49
  }
50
50
  }
51
51
  render() {
52
- return (h("div", { key: '284eede0a201fc23f19af63ce875cf82514c007f', class: "hero", style: { backgroundImage: `url(${this.heroSrc})` } }, h("div", { key: '6d1643211563e173e20be38fa480d622a2e08d9b', class: "hero__content" }, h("slot", { key: 'd5905b079db6367dd6c917588d76c3bc949cc078', name: "start" }), h("div", { key: 'ecfbcb172bfb018ede01a1773ce12f135dac60f6', class: "hero__heading-container" }, this.heroHeadingElement && (h("div", { key: 'fd285ee37293132a02b03c70eb53b31fde007c7e', class: "viewport-margins" }, h("h1", { key: '3d71930c47c9c5d6a64c240847407953f424dac2', class: "hero__heading", innerHTML: this.heroHeadingElement.innerText }), this.heroParagraphElement && h("p", { key: '828d2a13daa5ae92c1591d0ea00ee8e91ab4f6cf', class: "hero__sub-heading", innerHTML: this.heroParagraphElement.innerHTML })))))));
52
+ return (h("div", { key: '2bfc2fc02554851ded092ebdcecb68688a6f935f', class: "hero", style: { backgroundImage: `url(${this.heroSrc})` } }, h("div", { key: '7478c83cce6840513cd69986ecea53ee3d8c6822', class: "hero__content" }, h("slot", { key: 'be29866c255988aa292e4406bccc1f65bd676fe2', name: "start" }), h("div", { key: '32de0b18788e090b1779a5454a5f128fbe501d9a', class: "hero__heading-container" }, this.heroHeadingElement && (h("div", { key: '7aa696c4acb519580d109ba6fb2d75099d35519a', class: "viewport-margins" }, h("h1", { key: 'ac51221966fb7bb98e22d934ac591a66690e12bd', class: "hero__heading", innerHTML: this.heroHeadingElement.innerText }), this.heroParagraphElement && h("p", { key: 'c496699e3c7f8898cdab88c408bb188bbaf3f93a', class: "hero__sub-heading", innerHTML: this.heroParagraphElement.innerHTML })))))));
53
53
  }
54
54
  static get assetsDirs() { return ["assets"]; }
55
55
  get hostElement() { return this; }
package/dist/docs.json CHANGED
@@ -1,11 +1,105 @@
1
1
  {
2
- "timestamp": "2025-09-10T11:57:55",
2
+ "timestamp": "2025-10-21T17:09:08",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.29.3",
6
6
  "typescriptVersion": "5.5.4"
7
7
  },
8
8
  "components": [
9
+ {
10
+ "filePath": "src/components/pennlibs-allow-tracking/pennlibs-allow-tracking.tsx",
11
+ "encapsulation": "shadow",
12
+ "tag": "pennlibs-allow-tracking",
13
+ "readme": "# pennlibs-allow-tracking\n\n\n",
14
+ "docs": "",
15
+ "docsTags": [],
16
+ "usage": {},
17
+ "props": [],
18
+ "methods": [],
19
+ "events": [],
20
+ "listeners": [],
21
+ "styles": [],
22
+ "slots": [],
23
+ "parts": [],
24
+ "dependents": [],
25
+ "dependencies": [],
26
+ "dependencyGraph": {}
27
+ },
28
+ {
29
+ "filePath": "src/components/pennlibs-autocomplete/pennlibs-autocomplete.tsx",
30
+ "encapsulation": "shadow",
31
+ "tag": "pennlibs-autocomplete",
32
+ "readme": "# pennlibs-autocomplete\n\n\n",
33
+ "docs": "",
34
+ "docsTags": [],
35
+ "usage": {},
36
+ "props": [],
37
+ "methods": [],
38
+ "events": [
39
+ {
40
+ "event": "pl:activated",
41
+ "detail": "ActivatedEvent",
42
+ "bubbles": true,
43
+ "complexType": {
44
+ "original": "ActivatedEvent",
45
+ "resolved": "ActivatedEvent",
46
+ "references": {
47
+ "ActivatedEvent": {
48
+ "location": "local",
49
+ "path": "/builds/DnZExnmH5/0/dld/design/design-system/penn-libraries-web/src/components/pennlibs-autocomplete/pennlibs-autocomplete.tsx",
50
+ "id": "src/components/pennlibs-autocomplete/pennlibs-autocomplete.tsx::ActivatedEvent"
51
+ }
52
+ }
53
+ },
54
+ "cancelable": true,
55
+ "composed": true,
56
+ "docs": "Emitted when a user activates (selects) an autocomplete option",
57
+ "docsTags": []
58
+ }
59
+ ],
60
+ "listeners": [
61
+ {
62
+ "event": "slotchange",
63
+ "capture": false,
64
+ "passive": false
65
+ },
66
+ {
67
+ "event": "input",
68
+ "target": "body",
69
+ "capture": false,
70
+ "passive": false
71
+ },
72
+ {
73
+ "event": "focus",
74
+ "target": "body",
75
+ "capture": false,
76
+ "passive": false
77
+ },
78
+ {
79
+ "event": "blur",
80
+ "target": "body",
81
+ "capture": false,
82
+ "passive": false
83
+ },
84
+ {
85
+ "event": "focusout",
86
+ "capture": false,
87
+ "passive": false
88
+ },
89
+ {
90
+ "event": "keydown",
91
+ "target": "document",
92
+ "capture": false,
93
+ "passive": false
94
+ }
95
+ ],
96
+ "styles": [],
97
+ "slots": [],
98
+ "parts": [],
99
+ "dependents": [],
100
+ "dependencies": [],
101
+ "dependencyGraph": {}
102
+ },
9
103
  {
10
104
  "filePath": "src/components/pennlibs-banner/pennlibs-banner.tsx",
11
105
  "encapsulation": "shadow",
@@ -340,5 +434,11 @@
340
434
  "dependencyGraph": {}
341
435
  }
342
436
  ],
343
- "typeLibrary": {}
437
+ "typeLibrary": {
438
+ "src/components/pennlibs-autocomplete/pennlibs-autocomplete.tsx::ActivatedEvent": {
439
+ "declaration": "export interface ActivatedEvent {\n value: string;\n index: number;\n}",
440
+ "docstring": "",
441
+ "path": "src/components/pennlibs-autocomplete/pennlibs-autocomplete.tsx"
442
+ }
443
+ }
344
444
  }