@penn-libraries/web 1.1.0-dev.6 → 1.1.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 (95) hide show
  1. package/dist/cjs/{index-C0A2bnrZ.js → index-4ixBJUwu.js} +284 -191
  2. package/dist/cjs/index-4ixBJUwu.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +1 -3
  4. package/dist/cjs/loader.cjs.js +3 -6
  5. package/dist/cjs/loader.cjs.js.map +1 -1
  6. package/dist/cjs/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.cjs.js.map +1 -1
  7. package/dist/cjs/pennlibs-autocomplete_3.cjs.entry.js +56 -52
  8. package/dist/cjs/pennlibs-banner.cjs.entry.js +1 -3
  9. package/dist/cjs/pennlibs-chat.cjs.entry.js +1 -3
  10. package/dist/cjs/pennlibs-fallback-img.cjs.entry.js +1 -3
  11. package/dist/cjs/pennlibs-feedback.cjs.entry.js +1 -3
  12. package/dist/cjs/pennlibs-hero.cjs.entry.js +1 -3
  13. package/dist/cjs/web.cjs.js +4 -7
  14. package/dist/cjs/web.cjs.js.map +1 -1
  15. package/dist/collection/collection-manifest.json +2 -2
  16. package/dist/collection/components/pennlibs-autocomplete/pennlibs-autocomplete.js +71 -39
  17. package/dist/collection/components/pennlibs-autocomplete/pennlibs-autocomplete.js.map +1 -1
  18. package/dist/collection/components/pennlibs-header/pennlibs-header.js +6 -6
  19. package/dist/components/index.js +1 -1
  20. package/dist/components/pennlibs-autocomplete.js +59 -36
  21. package/dist/components/pennlibs-autocomplete.js.map +1 -1
  22. package/dist/components/pennlibs-banner.js +5 -3
  23. package/dist/components/pennlibs-banner.js.map +1 -1
  24. package/dist/components/pennlibs-chat.js +5 -3
  25. package/dist/components/pennlibs-chat.js.map +1 -1
  26. package/dist/components/pennlibs-fallback-img.js +5 -3
  27. package/dist/components/pennlibs-fallback-img.js.map +1 -1
  28. package/dist/components/pennlibs-feedback.js +5 -3
  29. package/dist/components/pennlibs-feedback.js.map +1 -1
  30. package/dist/components/pennlibs-footer.js +5 -3
  31. package/dist/components/pennlibs-footer.js.map +1 -1
  32. package/dist/components/pennlibs-header.js +6 -19
  33. package/dist/components/pennlibs-header.js.map +1 -1
  34. package/dist/components/pennlibs-hero.js +5 -3
  35. package/dist/components/pennlibs-hero.js.map +1 -1
  36. package/dist/docs.json +30 -10
  37. package/dist/esm/{index-CE_ILdTo.js → index-Di48-Vtw.js} +284 -192
  38. package/dist/esm/index-Di48-Vtw.js.map +1 -0
  39. package/dist/esm/index.js +1 -3
  40. package/dist/esm/loader.js +3 -6
  41. package/dist/esm/loader.js.map +1 -1
  42. package/dist/esm/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.js.map +1 -1
  43. package/dist/esm/pennlibs-autocomplete_3.entry.js +56 -52
  44. package/dist/esm/pennlibs-banner.entry.js +1 -3
  45. package/dist/esm/pennlibs-chat.entry.js +1 -3
  46. package/dist/esm/pennlibs-fallback-img.entry.js +1 -3
  47. package/dist/esm/pennlibs-feedback.entry.js +1 -3
  48. package/dist/esm/pennlibs-hero.entry.js +1 -3
  49. package/dist/esm/web.js +4 -7
  50. package/dist/esm/web.js.map +1 -1
  51. package/dist/types/components/pennlibs-autocomplete/pennlibs-autocomplete.d.ts +19 -3
  52. package/dist/types/components.d.ts +24 -0
  53. package/dist/types/stencil-public-runtime.d.ts +73 -9
  54. package/dist/web/index.esm.js +1 -3
  55. package/dist/web/loader.esm.js.map +1 -1
  56. package/dist/web/{p-5e385536.entry.js → p-09e4a02c.entry.js} +1 -3
  57. package/dist/web/{p-909144f6.entry.js → p-269363bf.entry.js} +56 -52
  58. package/dist/web/{p-370e32b1.entry.js → p-56b9f10c.entry.js} +1 -3
  59. package/dist/web/{p-07ad051f.entry.js → p-6503bb09.entry.js} +1 -3
  60. package/dist/web/{p-cbae5952.entry.js → p-783e2a87.entry.js} +1 -3
  61. package/dist/web/{p-20c0bd7a.entry.js → p-7cbd16c0.entry.js} +1 -3
  62. package/dist/web/{p-CE_ILdTo.js → p-Di48-Vtw.js} +284 -192
  63. package/dist/web/p-Di48-Vtw.js.map +1 -0
  64. package/dist/web/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.esm.js.map +1 -1
  65. package/dist/web/web.esm.js +4 -7
  66. package/dist/web/web.esm.js.map +1 -1
  67. package/hydrate/index.d.ts +28 -24
  68. package/hydrate/index.js +478 -257
  69. package/hydrate/index.mjs +478 -257
  70. package/package.json +3 -9
  71. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
  72. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  73. package/dist/cjs/index-C0A2bnrZ.js.map +0 -1
  74. package/dist/cjs/pennlibs-autocomplete_3.cjs.entry.js.map +0 -1
  75. package/dist/cjs/pennlibs-banner.cjs.entry.js.map +0 -1
  76. package/dist/cjs/pennlibs-chat.cjs.entry.js.map +0 -1
  77. package/dist/cjs/pennlibs-fallback-img.cjs.entry.js.map +0 -1
  78. package/dist/cjs/pennlibs-feedback.cjs.entry.js.map +0 -1
  79. package/dist/cjs/pennlibs-hero.cjs.entry.js.map +0 -1
  80. package/dist/collection/utils/utils.js +0 -4
  81. package/dist/collection/utils/utils.js.map +0 -1
  82. package/dist/esm/app-globals-DQuL1Twl.js +0 -6
  83. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  84. package/dist/esm/index-CE_ILdTo.js.map +0 -1
  85. package/dist/esm/pennlibs-autocomplete_3.entry.js.map +0 -1
  86. package/dist/types/utils/utils.d.ts +0 -1
  87. package/dist/web/p-07ad051f.entry.js.map +0 -1
  88. package/dist/web/p-20c0bd7a.entry.js.map +0 -1
  89. package/dist/web/p-370e32b1.entry.js.map +0 -1
  90. package/dist/web/p-5e385536.entry.js.map +0 -1
  91. package/dist/web/p-909144f6.entry.js.map +0 -1
  92. package/dist/web/p-CE_ILdTo.js.map +0 -1
  93. package/dist/web/p-DQuL1Twl.js +0 -6
  94. package/dist/web/p-DQuL1Twl.js.map +0 -1
  95. package/dist/web/p-cbae5952.entry.js.map +0 -1
@@ -1,9 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './p-CE_ILdTo.js';
2
- export { s as setNonce } from './p-CE_ILdTo.js';
3
- import { g as globalScripts } from './p-DQuL1Twl.js';
1
+ import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './p-Di48-Vtw.js';
2
+ export { s as setNonce } from './p-Di48-Vtw.js';
4
3
 
5
4
  /*
6
- Stencil Client Patch Browser v4.29.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.38.1 | MIT Licensed | https://stenciljs.com
7
6
  */
8
7
 
9
8
  var patchBrowser = () => {
@@ -17,8 +16,6 @@ var patchBrowser = () => {
17
16
 
18
17
  patchBrowser().then(async (options) => {
19
18
  await globalScripts();
20
- return bootstrapLazy([["p-909144f6",[[1,"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"]]],[1,"pennlibs-footer",{"navigationByChildren":[32]}],[1,"pennlibs-header",{"serviceName":[1,"service-name"],"serviceLede":[1,"service-lede"],"serviceHref":[1,"service-href"],"theme":[1],"isMenuOpen":[32],"navigation":[32]}]]],["p-20c0bd7a",[[1,"pennlibs-banner"]]],["p-cbae5952",[[1,"pennlibs-chat",{"href":[32]}]]],["p-5e385536",[[1,"pennlibs-fallback-img"]]],["p-370e32b1",[[1,"pennlibs-feedback",{"error":[32],"answer":[32]}]]],["p-07ad051f",[[1,"pennlibs-hero",{"heroPictureElement":[32],"heroHeadingElement":[32],"heroParagraphElement":[32],"heroSrc":[32]}]]]], options);
19
+ return bootstrapLazy([["p-269363bf",[[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"]]],[257,"pennlibs-footer",{"navigationByChildren":[32]}],[257,"pennlibs-header",{"serviceName":[1,"service-name"],"serviceLede":[1,"service-lede"],"serviceHref":[1,"service-href"],"theme":[1],"isMenuOpen":[32],"navigation":[32]}]]],["p-7cbd16c0",[[257,"pennlibs-banner"]]],["p-783e2a87",[[257,"pennlibs-chat",{"href":[32]}]]],["p-09e4a02c",[[257,"pennlibs-fallback-img"]]],["p-56b9f10c",[[257,"pennlibs-feedback",{"error":[32],"answer":[32]}]]],["p-6503bb09",[[257,"pennlibs-hero",{"heroPictureElement":[32],"heroHeadingElement":[32],"heroParagraphElement":[32],"heroSrc":[32]}]]]], options);
21
20
  });
22
21
  //# sourceMappingURL=web.esm.js.map
23
-
24
- //# sourceMappingURL=web.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web.esm.js","sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.29.3 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"web.esm.js","sources":["../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.38.1 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
@@ -7,12 +7,14 @@ export declare function createWindowFromHtml(templateHtml: string, uniqueId: str
7
7
  * Serialize a value to a string that can be deserialized later.
8
8
  * @param {unknown} value - The value to serialize.
9
9
  * @returns {string} A string that can be deserialized later.
10
+ * @deprecated will be removed in v5. Use `@PropSerialize()` decorator instead.
10
11
  */
11
12
  export declare function serializeProperty(value: unknown): string | number | boolean;
12
13
  /**
13
14
  * Deserialize a value from a string that was serialized earlier.
14
15
  * @param {string} value - The string to deserialize.
15
16
  * @returns {unknown} The deserialized value.
17
+ * @deprecated will be removed in v5. Use `@AttrDeserialize()` decorator instead.
16
18
  */
17
19
  export declare function deserializeProperty(value: string): any;
18
20
  export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
@@ -107,6 +109,30 @@ export interface HydrateDocumentOptions {
107
109
  * Sets `navigator.userAgent`
108
110
  */
109
111
  userAgent?: string;
112
+ /**
113
+ * Configure how Stencil serializes the components shadow root.
114
+ * - If set to `declarative-shadow-dom` the component will be rendered within a Declarative Shadow DOM.
115
+ * - If set to `scoped` Stencil will render the contents of the shadow root as a `scoped: true` component
116
+ * and the shadow DOM will be created during client-side hydration.
117
+ * - Alternatively you can mix and match the two by providing an object with `declarative-shadow-dom` and `scoped` keys,
118
+ * the value arrays containing the tag names of the components that should be rendered in that mode.
119
+ *
120
+ * Examples:
121
+ * - `{ 'declarative-shadow-dom': ['my-component-1', 'another-component'], default: 'scoped' }`
122
+ * Render all components as `scoped` apart from `my-component-1` and `another-component`
123
+ * - `{ 'scoped': ['an-option-component'], default: 'declarative-shadow-dom' }`
124
+ * Render all components within `declarative-shadow-dom` apart from `an-option-component`
125
+ * - `'scoped'` Render all components as `scoped`
126
+ * - `false` disables shadow root serialization
127
+ *
128
+ * *NOTE* `true` has been deprecated in favor of `declarative-shadow-dom` and `scoped`
129
+ * @default 'declarative-shadow-dom'
130
+ */
131
+ serializeShadowRoot?: "declarative-shadow-dom" | "scoped" | {
132
+ "declarative-shadow-dom"?: string[];
133
+ scoped?: string[];
134
+ default: "declarative-shadow-dom" | "scoped";
135
+ } | boolean;
110
136
  }
111
137
  export interface SerializeDocumentOptions extends HydrateDocumentOptions {
112
138
  /**
@@ -149,30 +175,6 @@ export interface SerializeDocumentOptions extends HydrateDocumentOptions {
149
175
  * Remove HTML comments. Defaults to `true`.
150
176
  */
151
177
  removeHtmlComments?: boolean;
152
- /**
153
- * Configure how Stencil serializes the components shadow root.
154
- * - If set to `declarative-shadow-dom` the component will be rendered within a Declarative Shadow DOM.
155
- * - If set to `scoped` Stencil will render the contents of the shadow root as a `scoped: true` component
156
- * and the shadow DOM will be created during client-side hydration.
157
- * - Alternatively you can mix and match the two by providing an object with `declarative-shadow-dom` and `scoped` keys,
158
- * the value arrays containing the tag names of the components that should be rendered in that mode.
159
- *
160
- * Examples:
161
- * - `{ 'declarative-shadow-dom': ['my-component-1', 'another-component'], default: 'scoped' }`
162
- * Render all components as `scoped` apart from `my-component-1` and `another-component`
163
- * - `{ 'scoped': ['an-option-component'], default: 'declarative-shadow-dom' }`
164
- * Render all components within `declarative-shadow-dom` apart from `an-option-component`
165
- * - `'scoped'` Render all components as `scoped`
166
- * - `false` disables shadow root serialization
167
- *
168
- * *NOTE* `true` has been deprecated in favor of `declarative-shadow-dom` and `scoped`
169
- * @default 'declarative-shadow-dom'
170
- */
171
- serializeShadowRoot?: "declarative-shadow-dom" | "scoped" | {
172
- "declarative-shadow-dom"?: string[];
173
- scoped?: string[];
174
- default: "declarative-shadow-dom" | "scoped";
175
- } | boolean;
176
178
  /**
177
179
  * The `fullDocument` flag determines the format of the rendered output. Set it to true to
178
180
  * generate a complete HTML document, or false to render only the component.
@@ -254,7 +256,9 @@ export interface HydrateScriptElement extends HydrateElement {
254
256
  type?: string;
255
257
  }
256
258
  export interface HydrateStyleElement extends HydrateElement {
259
+ id?: string;
257
260
  href?: string;
261
+ content?: string;
258
262
  }
259
263
  export interface HydrateStaticData {
260
264
  id: string;