@zanichelli/zanichelli-it-frontend-kit 1.4.1 → 1.4.2

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 (94) hide show
  1. package/dist/cjs/{index-BLzQAHAI.js → index-BKkNg6ed.js} +498 -358
  2. package/dist/cjs/index.cjs.js +0 -3
  3. package/dist/cjs/loader.cjs.js +2 -5
  4. package/dist/cjs/zanichelli-it-frontend-kit.cjs.js +3 -6
  5. package/dist/cjs/zanit-back-to-top_4.cjs.entry.js +75 -62
  6. package/dist/collection/collection-manifest.json +3 -2
  7. package/dist/collection/components/back-to-top/back-to-top.js +3 -4
  8. package/dist/collection/components/menubar/menu/menu.js +0 -1
  9. package/dist/collection/components/menubar/menubar.js +12 -11
  10. package/dist/collection/components/menubar/mobile-menubar/mobile-menubar.js +12 -13
  11. package/dist/collection/components/menubar/search-form/search-form.js +14 -12
  12. package/dist/collection/components/menubar/search-form/suggestions.js +0 -1
  13. package/dist/collection/index.js +0 -1
  14. package/dist/collection/utils/index.js +0 -1
  15. package/dist/collection/utils/subjects.api.js +0 -1
  16. package/dist/collection/utils/utils.js +0 -1
  17. package/dist/components/index.d.ts +2 -0
  18. package/dist/components/index.js +1 -1335
  19. package/dist/components/p-BMtMaJq9.js +1 -0
  20. package/dist/components/p-BXeRLfHX.js +1 -0
  21. package/dist/components/zanit-back-to-top.js +1 -88
  22. package/dist/components/zanit-menubar.js +1 -455
  23. package/dist/components/zanit-mobile-menubar.js +1 -9
  24. package/dist/components/zanit-search-form.js +1 -9
  25. package/dist/esm/{index-DSdvvVFj.js → index-CFgcJxsy.js} +498 -358
  26. package/dist/esm/index.js +0 -3
  27. package/dist/esm/loader.js +3 -6
  28. package/dist/esm/zanichelli-it-frontend-kit.js +4 -7
  29. package/dist/esm/zanit-back-to-top_4.entry.js +75 -62
  30. package/dist/types/components/back-to-top/back-to-top.d.ts +2 -1
  31. package/dist/types/components/menubar/menubar.d.ts +2 -1
  32. package/dist/types/components/menubar/mobile-menubar/mobile-menubar.d.ts +2 -1
  33. package/dist/types/components/menubar/search-form/search-form.d.ts +3 -2
  34. package/dist/types/components.d.ts +35 -8
  35. package/dist/types/stencil-public-runtime.d.ts +169 -11
  36. package/dist/zanichelli-it-frontend-kit/index.esm.js +0 -2
  37. package/dist/zanichelli-it-frontend-kit/p-93d8b277.entry.js +1 -0
  38. package/dist/zanichelli-it-frontend-kit/p-CFgcJxsy.js +2 -0
  39. package/dist/zanichelli-it-frontend-kit/zanichelli-it-frontend-kit.esm.js +1 -2
  40. package/package.json +17 -15
  41. package/www/build/index.esm.js +0 -2
  42. package/www/build/p-93d8b277.entry.js +1 -0
  43. package/www/build/p-CFgcJxsy.js +2 -0
  44. package/www/build/p-ec9829f4.js +1 -0
  45. package/www/build/zanichelli-it-frontend-kit.esm.js +1 -2
  46. package/www/index.html +2 -1
  47. package/dist/cjs/index-BLzQAHAI.js.map +0 -1
  48. package/dist/cjs/index.cjs.js.map +0 -1
  49. package/dist/cjs/loader.cjs.js.map +0 -1
  50. package/dist/cjs/zanichelli-it-frontend-kit.cjs.js.map +0 -1
  51. package/dist/cjs/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.cjs.js.map +0 -1
  52. package/dist/cjs/zanit-back-to-top_4.cjs.entry.js.map +0 -1
  53. package/dist/collection/components/back-to-top/back-to-top.js.map +0 -1
  54. package/dist/collection/components/menubar/menu/menu.js.map +0 -1
  55. package/dist/collection/components/menubar/menubar.js.map +0 -1
  56. package/dist/collection/components/menubar/mobile-menubar/mobile-menubar.js.map +0 -1
  57. package/dist/collection/components/menubar/search-form/search-form.js.map +0 -1
  58. package/dist/collection/components/menubar/search-form/suggestions.js.map +0 -1
  59. package/dist/collection/index.js.map +0 -1
  60. package/dist/collection/utils/index.js.map +0 -1
  61. package/dist/collection/utils/subjects.api.js.map +0 -1
  62. package/dist/collection/utils/utils.js.map +0 -1
  63. package/dist/components/index.js.map +0 -1
  64. package/dist/components/p-BlgoYKK3.js +0 -246
  65. package/dist/components/p-BlgoYKK3.js.map +0 -1
  66. package/dist/components/p-DqMqkNnl.js +0 -386
  67. package/dist/components/p-DqMqkNnl.js.map +0 -1
  68. package/dist/components/zanit-back-to-top.js.map +0 -1
  69. package/dist/components/zanit-menubar.js.map +0 -1
  70. package/dist/components/zanit-mobile-menubar.js.map +0 -1
  71. package/dist/components/zanit-search-form.js.map +0 -1
  72. package/dist/esm/index-DSdvvVFj.js.map +0 -1
  73. package/dist/esm/index.js.map +0 -1
  74. package/dist/esm/loader.js.map +0 -1
  75. package/dist/esm/zanichelli-it-frontend-kit.js.map +0 -1
  76. package/dist/esm/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.js.map +0 -1
  77. package/dist/esm/zanit-back-to-top_4.entry.js.map +0 -1
  78. package/dist/zanichelli-it-frontend-kit/index.esm.js.map +0 -1
  79. package/dist/zanichelli-it-frontend-kit/loader.esm.js.map +0 -1
  80. package/dist/zanichelli-it-frontend-kit/p-62cc02c2.entry.js +0 -2
  81. package/dist/zanichelli-it-frontend-kit/p-62cc02c2.entry.js.map +0 -1
  82. package/dist/zanichelli-it-frontend-kit/p-DSdvvVFj.js +0 -3
  83. package/dist/zanichelli-it-frontend-kit/p-DSdvvVFj.js.map +0 -1
  84. package/dist/zanichelli-it-frontend-kit/zanichelli-it-frontend-kit.esm.js.map +0 -1
  85. package/dist/zanichelli-it-frontend-kit/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.esm.js.map +0 -1
  86. package/www/build/index.esm.js.map +0 -1
  87. package/www/build/loader.esm.js.map +0 -1
  88. package/www/build/p-62cc02c2.entry.js +0 -2
  89. package/www/build/p-62cc02c2.entry.js.map +0 -1
  90. package/www/build/p-DSdvvVFj.js +0 -3
  91. package/www/build/p-DSdvvVFj.js.map +0 -1
  92. package/www/build/p-fe3aec03.js +0 -2
  93. package/www/build/zanichelli-it-frontend-kit.esm.js.map +0 -1
  94. package/www/build/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.esm.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import { Menu } from "../menu/menu";
3
2
  import { containsTarget, moveFocus } from "../../../utils";
4
3
  import { SearchEnv } from "../../../utils/subjects.api";
4
+ import { Menu } from "../menu/menu";
5
5
  /** Mobile menubar component. */
6
6
  export class ZanitMobileMenubar {
7
7
  host;
@@ -23,7 +23,7 @@ export class ZanitMobileMenubar {
23
23
  menuItems = undefined;
24
24
  /** Whether the items to render come from a menubar or a menu. */
25
25
  menuType = undefined;
26
- open;
26
+ open = false;
27
27
  onItemsChange() {
28
28
  this.lastCurrent = this.currentPath?.length ? this.currentPath[this.currentPath.length - 1] : undefined;
29
29
  this.setupData(this.items);
@@ -146,7 +146,7 @@ export class ZanitMobileMenubar {
146
146
  this.open = false;
147
147
  }
148
148
  render() {
149
- return (h("nav", { key: '76079ce1e66f1b568f6e7eac1f67b91af0f2f48a', "aria-label": "Zanichelli.it" }, h("button", { key: '630b16be60aba3d7027fbe4b9e19e440cb454267', class: "burger-button", type: "button", "aria-expanded": this.open ? 'true' : 'false', "aria-controls": "mobile-menu", "aria-label": this.open ? 'Chiudi menù' : 'Apri menù', onClick: () => this.toggleMenu() }, h("z-icon", { key: '4c86d84d421ab93fb1c815c5a667dd55ce8254ac', name: this.open ? 'multiply' : 'burger-menu', width: "1.5rem", height: "1.5rem" })), h("z-logo", { key: '03c7b8613698098cf3a1ff4b1b8d649cb7d5b92a', imageAlt: "Logo Zanichelli", link: "/", height: 32, width: 126 }), h("zanit-search-form", { key: '5a1385991eebcf17ac8c275c8c69f6662f75e3b7', searchQuery: this.searchQuery, onResetSearch: () => (this.searchQuery = undefined), searchArea: this.searchArea, searchEnv: this.searchEnv }), this.open && (h("ul", { key: 'bc627e55f902beaac658f02d90ed78836fde193b', class: "mobile-menu", role: "menubar" }, !this.loading && this.currentPath && this.currentPath.length > 0 && (h("li", { key: '4708f9ee160d62a6cbf6333e11c1b9d02ae3d34c', role: "none" }, h("a", { key: '9fd59125f8cb87f6c86108eea7ba79a04bc4d68c', class: "parent", href: this.parentItem?.href ?? '/', id: this.parentItem?.id ?? undefined, role: "menuitem", tabIndex: -1, onKeyDown: (event) => this.handleItemKeydown(event), target: this.parentItem?.target }, h("z-icon", { key: '615bc59a1f058a745bdadd90c6f51f9abc757df1', name: "arrow-left", width: "0.5rem", height: "0.5rem" }), h("span", { key: '66a80691639e97b2d7d7d61cc45f8b47dcdabafe' }, this.parentItem?.label || 'Home')))), this.loading ? (h("div", { class: "items-container", role: "none" }, [...new Array(4)].map(() => (h("li", { role: "none" }, h("div", { class: "menubar-item", role: "none" }, h("z-ghost-loading", null))))))) : this.menuType === 'menu' ? (h(Menu, { items: this.menuItems, controlledBy: this.parentItem?.id, currentPath: this.currentPath, onItemKeyDown: (event) => this.handleItemKeydown(event) })) : (this.menuItems?.length > 0 && (h("div", { class: "items-container", role: "none" }, this.menuItems.map((item) => (h("li", { role: "none" }, h("a", { class: {
149
+ return (h("nav", { key: 'e3c4f8212d54b84206c2d40c9670263dd0f2460a', "aria-label": "Zanichelli.it" }, h("button", { key: '8f4600dbb2c530e5901127d556eee94dcd60947a', class: "burger-button", type: "button", "aria-expanded": this.open ? 'true' : 'false', "aria-controls": "mobile-menu", "aria-label": this.open ? 'Chiudi menù' : 'Apri menù', onClick: () => this.toggleMenu() }, h("z-icon", { key: 'aa3d06cca2f2c7e92cb4afb37a5085ea37ec8283', name: this.open ? 'multiply' : 'burger-menu', width: "1.5rem", height: "1.5rem" })), h("z-logo", { key: 'af3724fc7f330c7b2f7d826bd0dd2edc2dbb5742', imageAlt: "Logo Zanichelli", link: "/", height: 32, width: 126 }), h("zanit-search-form", { key: 'cc3c8e2ece6ac0428864d8affcd567c9a1272824', searchQuery: this.searchQuery, onResetSearch: () => (this.searchQuery = undefined), searchArea: this.searchArea, searchEnv: this.searchEnv }), this.open && (h("ul", { key: '0c35b0f4869ae076a1c02f07f1b19e787f4c3780', class: "mobile-menu", role: "menubar" }, !this.loading && this.currentPath && this.currentPath.length > 0 && (h("li", { key: 'ff8e9d8871ebea21ba178d1ba9d295d26b018be2', role: "none" }, h("a", { key: '4afb5ccda0e206f640f429ecfe7ac1e3491a475d', class: "parent", href: this.parentItem?.href ?? '/', id: this.parentItem?.id ?? undefined, role: "menuitem", tabIndex: -1, onKeyDown: (event) => this.handleItemKeydown(event), target: this.parentItem?.target }, h("z-icon", { key: '2db8da21ad88b937d591eac551a3599704e13147', name: "arrow-left", width: "0.5rem", height: "0.5rem" }), h("span", { key: 'd285244285ccee5e76db049cb4fba1dd591d7ce1' }, this.parentItem?.label || 'Home')))), this.loading ? (h("div", { class: "items-container", role: "none" }, [...new Array(4)].map(() => (h("li", { role: "none" }, h("div", { class: "menubar-item", role: "none" }, h("z-ghost-loading", null))))))) : this.menuType === 'menu' ? (h(Menu, { items: this.menuItems, controlledBy: this.parentItem?.id, currentPath: this.currentPath, onItemKeyDown: (event) => this.handleItemKeydown(event) })) : (this.menuItems?.length > 0 && (h("div", { class: "items-container", role: "none" }, this.menuItems.map((item) => (h("li", { role: "none" }, h("a", { class: {
150
150
  'menu-item': this.menuType === 'menu',
151
151
  'menubar-item': this.menuType === 'menubar',
152
152
  }, href: item.href, id: item.id, role: "menuitem", "aria-current": this.lastCurrent === item.id ? 'page' : 'false', tabIndex: -1, onKeyDown: (event) => this.handleItemKeydown(event), target: item.target }, h("span", { "data-text": item.label }, item.label))))))))))));
@@ -168,7 +168,6 @@ export class ZanitMobileMenubar {
168
168
  return {
169
169
  "currentPath": {
170
170
  "type": "unknown",
171
- "attribute": "current-path",
172
171
  "mutable": false,
173
172
  "complexType": {
174
173
  "original": "string[]",
@@ -187,7 +186,6 @@ export class ZanitMobileMenubar {
187
186
  },
188
187
  "items": {
189
188
  "type": "unknown",
190
- "attribute": "items",
191
189
  "mutable": false,
192
190
  "complexType": {
193
191
  "original": "MenubarItem[]",
@@ -196,7 +194,8 @@ export class ZanitMobileMenubar {
196
194
  "MenubarItem": {
197
195
  "location": "import",
198
196
  "path": "../../../utils",
199
- "id": "src/utils/index.ts::MenubarItem"
197
+ "id": "src/utils/index.ts::MenubarItem",
198
+ "referenceLocation": "MenubarItem"
200
199
  }
201
200
  }
202
201
  },
@@ -212,7 +211,6 @@ export class ZanitMobileMenubar {
212
211
  },
213
212
  "searchQuery": {
214
213
  "type": "string",
215
- "attribute": "search-query",
216
214
  "mutable": true,
217
215
  "complexType": {
218
216
  "original": "string | undefined",
@@ -228,11 +226,11 @@ export class ZanitMobileMenubar {
228
226
  "getter": false,
229
227
  "setter": false,
230
228
  "reflect": false,
229
+ "attribute": "search-query",
231
230
  "defaultValue": "undefined"
232
231
  },
233
232
  "loading": {
234
233
  "type": "boolean",
235
- "attribute": "loading",
236
234
  "mutable": false,
237
235
  "complexType": {
238
236
  "original": "boolean",
@@ -248,11 +246,11 @@ export class ZanitMobileMenubar {
248
246
  "getter": false,
249
247
  "setter": false,
250
248
  "reflect": false,
249
+ "attribute": "loading",
251
250
  "defaultValue": "false"
252
251
  },
253
252
  "searchEnv": {
254
253
  "type": "string",
255
- "attribute": "search-env",
256
254
  "mutable": false,
257
255
  "complexType": {
258
256
  "original": "SearchEnv",
@@ -261,7 +259,8 @@ export class ZanitMobileMenubar {
261
259
  "SearchEnv": {
262
260
  "location": "import",
263
261
  "path": "../../../utils/subjects.api",
264
- "id": "src/utils/subjects.api.ts::SearchEnv"
262
+ "id": "src/utils/subjects.api.ts::SearchEnv",
263
+ "referenceLocation": "SearchEnv"
265
264
  }
266
265
  }
267
266
  },
@@ -274,11 +273,11 @@ export class ZanitMobileMenubar {
274
273
  "getter": false,
275
274
  "setter": false,
276
275
  "reflect": false,
276
+ "attribute": "search-env",
277
277
  "defaultValue": "SearchEnv.PROD"
278
278
  },
279
279
  "searchArea": {
280
280
  "type": "string",
281
- "attribute": "search-area",
282
281
  "mutable": false,
283
282
  "complexType": {
284
283
  "original": "string | undefined",
@@ -293,7 +292,8 @@ export class ZanitMobileMenubar {
293
292
  },
294
293
  "getter": false,
295
294
  "setter": false,
296
- "reflect": false
295
+ "reflect": false,
296
+ "attribute": "search-area"
297
297
  }
298
298
  };
299
299
  }
@@ -338,4 +338,3 @@ export class ZanitMobileMenubar {
338
338
  }];
339
339
  }
340
340
  }
341
- //# sourceMappingURL=mobile-menubar.js.map
@@ -1,4 +1,4 @@
1
- import { h, Host } from "@stencil/core";
1
+ import { h, Host, } from "@stencil/core";
2
2
  import { containsTarget, isArrowDownKey, isArrowUpKey, isEscKey, isTabKey } from "../../../utils";
3
3
  import { getSubjectsByArea, SearchEnv } from "../../../utils/subjects.api";
4
4
  import { buildSuggestions } from "./suggestions";
@@ -43,6 +43,7 @@ export class ZanitSearchForm {
43
43
  }
44
44
  /** Emitted on search form submission. */
45
45
  search;
46
+ /** Emitted when the search query is reset by the user (e.g. by clicking the reset button). */
46
47
  resetSearch;
47
48
  async connectedCallback() {
48
49
  this.subjectsByArea = await getSubjectsByArea(this.searchEnv);
@@ -193,13 +194,13 @@ export class ZanitSearchForm {
193
194
  }))));
194
195
  }
195
196
  render() {
196
- return (h(Host, { key: '9535c68b8cd3e76a55785cb993bed5026f84a589' }, h("form", { key: '26271b8f9034b3ea64bbea6ff413e75d0e857612', class: { 'searchbar': true, 'searchbar-open': this.showSearchbar }, ref: (el) => (this.formElement = el), role: "search", "aria-label": "Cerca nel sito", method: "get", action: "/ricerca", onSubmit: (event) => this.onSearchSubmit(event), onReset: () => this.resetSearchQuery() }, !!this.searchArea && (h("input", { key: '90e9dc4252a02a00db5160d374bd4ea42c4dce17', type: "hidden", name: "area", value: this.searchArea })), h("div", { key: '6189f91f8cbf9086c1dcddac5a1b649065d4319c', class: "input-wrapper", role: "none" }, this.searchQuery && (h("button", { key: '6292dc5e90576b49993ed15d908c675b501568d9', type: "reset", "aria-label": "Svuota campo di ricerca", disabled: !this.showSearchbar, "aria-hidden": !this.showSearchbar ? 'true' : undefined, tabIndex: !this.showSearchbar ? -1 : 0 }, h("z-icon", { key: '67f07f13b459afad718d2687f5feea4271d6ec6a', name: "multiply-circled" }))), h("input", { key: 'ee4f88993f3bf1ba768eaf1b6ff63cd346bd552e', id: "searchbar-input", name: "q", type: "search", disabled: !this.showSearchbar, placeholder: "Cerca per parola chiave o ISBN", value: this.searchQuery, required: true, autocomplete: "off", role: "combobox", "aria-autocomplete": "list", "aria-expanded": this.showSuggestions ? 'true' : 'false', "aria-controls": "search-suggestions", "aria-activedescendant": this.activeSuggestion, "aria-label": "Cerca per parola chiave o ISBN", "aria-hidden": !this.showSearchbar ? 'true' : undefined, tabIndex: !this.showSearchbar ? -1 : 0, onInput: (event) => this.handleInputChange(event), onKeyDown: (e) => {
197
+ return (h(Host, { key: 'c87ecbcbff0205ddb35fb96bbfbcca6bb7ac8802' }, h("form", { key: '77f2951f88ae0361897161688f3a9875d555b20c', class: { 'searchbar': true, 'searchbar-open': this.showSearchbar }, ref: (el) => (this.formElement = el), role: "search", "aria-label": "Cerca nel sito", method: "get", action: "/ricerca", onSubmit: (event) => this.onSearchSubmit(event), onReset: () => this.resetSearchQuery() }, !!this.searchArea && (h("input", { key: '3cf0dceef1acc58c3c0e637f974db6c7587be081', type: "hidden", name: "area", value: this.searchArea })), h("div", { key: 'd797f9832f29b723010ca486298f0c4a4aabe3ee', class: "input-wrapper", role: "none" }, this.searchQuery && (h("button", { key: '2d5971957d84e83120fc96f49e359635e3792104', type: "reset", "aria-label": "Svuota campo di ricerca", disabled: !this.showSearchbar, "aria-hidden": !this.showSearchbar ? 'true' : undefined, tabIndex: !this.showSearchbar ? -1 : 0 }, h("z-icon", { key: '7027abe8c6a2211433048041a4ef2a5e273ca226', name: "multiply-circled" }))), h("input", { key: '2184d3fa615d94bf3615606a4624abdbb81cb2ae', id: "searchbar-input", name: "q", type: "search", disabled: !this.showSearchbar, placeholder: "Cerca per parola chiave o ISBN", value: this.searchQuery, required: true, autocomplete: "off", role: "combobox", "aria-autocomplete": "list", "aria-expanded": this.showSuggestions ? 'true' : 'false', "aria-controls": "search-suggestions", "aria-activedescendant": this.activeSuggestion, "aria-label": "Cerca per parola chiave o ISBN", "aria-hidden": !this.showSearchbar ? 'true' : undefined, tabIndex: !this.showSearchbar ? -1 : 0, onInput: (event) => this.handleInputChange(event), onKeyDown: (e) => {
197
198
  // INFO: prevent ESC from clearing input
198
199
  if (isEscKey(e)) {
199
200
  e.preventDefault();
200
201
  }
201
202
  this.handleSuggestionsNav(e);
202
- } })), h("button", { key: '4e0feaeaff7bcecaf6a29409a6accac895810fdf', class: "searchbar-button", "aria-label": this.showSearchbar ? 'Esegui ricerca' : 'Apri il campo di ricerca', "aria-controls": "searchbar-input", type: this.showSearchbar ? 'submit' : 'button', onClick: () => this.openSearchbar() }, this.showSearchbar ? null : h("span", { class: "searchbar-button-label" }, "Cerca"), h("z-icon", { key: '49eec7e6f04c34df57fcf99f405d1c3ada1fcdfb', name: "search" }))), this.renderSuggestions()));
203
+ } })), h("button", { key: '06a7ad6e3e4c74f2dd3bd56fb6f2da006c8d59c0', class: "searchbar-button", "aria-label": this.showSearchbar ? 'Esegui ricerca' : 'Apri il campo di ricerca', "aria-controls": "searchbar-input", type: this.showSearchbar ? 'submit' : 'button', onClick: () => this.openSearchbar() }, this.showSearchbar ? null : h("span", { class: "searchbar-button-label" }, "Cerca"), h("z-icon", { key: '72e66f0280f0b835e760c1631076b71fa5dc03fa', name: "search" }))), this.renderSuggestions()));
203
204
  }
204
205
  static get is() { return "zanit-search-form"; }
205
206
  static get encapsulation() { return "shadow"; }
@@ -217,7 +218,6 @@ export class ZanitSearchForm {
217
218
  return {
218
219
  "searchQuery": {
219
220
  "type": "string",
220
- "attribute": "search-query",
221
221
  "mutable": true,
222
222
  "complexType": {
223
223
  "original": "string | undefined",
@@ -233,11 +233,11 @@ export class ZanitSearchForm {
233
233
  "getter": false,
234
234
  "setter": false,
235
235
  "reflect": false,
236
+ "attribute": "search-query",
236
237
  "defaultValue": "undefined"
237
238
  },
238
239
  "searchEnv": {
239
240
  "type": "string",
240
- "attribute": "search-env",
241
241
  "mutable": false,
242
242
  "complexType": {
243
243
  "original": "SearchEnv",
@@ -246,7 +246,8 @@ export class ZanitSearchForm {
246
246
  "SearchEnv": {
247
247
  "location": "import",
248
248
  "path": "../../../utils/subjects.api",
249
- "id": "src/utils/subjects.api.ts::SearchEnv"
249
+ "id": "src/utils/subjects.api.ts::SearchEnv",
250
+ "referenceLocation": "SearchEnv"
250
251
  }
251
252
  }
252
253
  },
@@ -259,11 +260,11 @@ export class ZanitSearchForm {
259
260
  "getter": false,
260
261
  "setter": false,
261
262
  "reflect": false,
263
+ "attribute": "search-env",
262
264
  "defaultValue": "SearchEnv.PROD"
263
265
  },
264
266
  "searchArea": {
265
267
  "type": "string",
266
- "attribute": "search-area",
267
268
  "mutable": false,
268
269
  "complexType": {
269
270
  "original": "string | undefined",
@@ -278,7 +279,8 @@ export class ZanitSearchForm {
278
279
  },
279
280
  "getter": false,
280
281
  "setter": false,
281
- "reflect": false
282
+ "reflect": false,
283
+ "attribute": "search-area"
282
284
  }
283
285
  };
284
286
  }
@@ -309,7 +311,8 @@ export class ZanitSearchForm {
309
311
  "SearchEvent": {
310
312
  "location": "import",
311
313
  "path": "../../../utils",
312
- "id": "src/utils/index.ts::SearchEvent"
314
+ "id": "src/utils/index.ts::SearchEvent",
315
+ "referenceLocation": "SearchEvent"
313
316
  }
314
317
  }
315
318
  }
@@ -321,7 +324,7 @@ export class ZanitSearchForm {
321
324
  "composed": true,
322
325
  "docs": {
323
326
  "tags": [],
324
- "text": ""
327
+ "text": "Emitted when the search query is reset by the user (e.g. by clicking the reset button)."
325
328
  },
326
329
  "complexType": {
327
330
  "original": "void",
@@ -348,7 +351,7 @@ export class ZanitSearchForm {
348
351
  }
349
352
  static get listeners() {
350
353
  return [{
351
- "name": "click",
354
+ "name": "mousedown",
352
355
  "method": "handleOutsideClick",
353
356
  "target": "document",
354
357
  "capture": false,
@@ -368,4 +371,3 @@ export class ZanitSearchForm {
368
371
  }];
369
372
  }
370
373
  }
371
- //# sourceMappingURL=search-form.js.map
@@ -82,4 +82,3 @@ const getAreaOrder = (area) => {
82
82
  const index = AREA_ORDER.indexOf(area);
83
83
  return index >= 0 ? index : 100;
84
84
  };
85
- //# sourceMappingURL=suggestions.js.map
@@ -8,4 +8,3 @@
8
8
  * to consume components of this package as outlined in the `README.md`.
9
9
  */
10
10
  export * from './utils/types';
11
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  export * from './utils';
2
- //# sourceMappingURL=index.js.map
@@ -22,4 +22,3 @@ export async function getSubjectsByArea(searchEnv) {
22
22
  return {};
23
23
  }
24
24
  }
25
- //# sourceMappingURL=subjects.api.js.map
@@ -22,4 +22,3 @@ export const isArrowDownKey = (event) => event.key === 'ArrowDown';
22
22
  export const isTabKey = (event) => event.key === 'Tab';
23
23
  /** Check if event key is Escape */
24
24
  export const isEscKey = (event) => event.key === 'Escape';
25
- //# sourceMappingURL=utils.js.map
@@ -31,3 +31,5 @@ export interface SetPlatformOptions {
31
31
  rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
32
32
  }
33
33
  export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
34
+
35
+ export * from '../types';