@zanichelli/zanichelli-it-frontend-kit 1.4.1-RC1 → 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.
- package/dist/cjs/{index-BLzQAHAI.js → index-BKkNg6ed.js} +498 -358
- package/dist/cjs/index.cjs.js +0 -3
- package/dist/cjs/loader.cjs.js +2 -5
- package/dist/cjs/zanichelli-it-frontend-kit.cjs.js +3 -6
- package/dist/cjs/zanit-back-to-top_4.cjs.entry.js +76 -64
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/back-to-top/back-to-top.js +3 -4
- package/dist/collection/components/menubar/menu/menu.js +0 -1
- package/dist/collection/components/menubar/menubar.js +12 -11
- package/dist/collection/components/menubar/mobile-menubar/mobile-menubar.js +12 -13
- package/dist/collection/components/menubar/search-form/search-form.js +14 -13
- package/dist/collection/components/menubar/search-form/suggestions.js +1 -2
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/index.js +0 -1
- package/dist/collection/utils/subjects.api.js +0 -1
- package/dist/collection/utils/utils.js +0 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1335
- package/dist/components/p-BMtMaJq9.js +1 -0
- package/dist/components/p-BXeRLfHX.js +1 -0
- package/dist/components/zanit-back-to-top.js +1 -88
- package/dist/components/zanit-menubar.js +1 -455
- package/dist/components/zanit-mobile-menubar.js +1 -9
- package/dist/components/zanit-search-form.js +1 -9
- package/dist/esm/{index-DSdvvVFj.js → index-CFgcJxsy.js} +498 -358
- package/dist/esm/index.js +0 -3
- package/dist/esm/loader.js +3 -6
- package/dist/esm/zanichelli-it-frontend-kit.js +4 -7
- package/dist/esm/zanit-back-to-top_4.entry.js +76 -64
- package/dist/types/components/back-to-top/back-to-top.d.ts +2 -1
- package/dist/types/components/menubar/menubar.d.ts +2 -1
- package/dist/types/components/menubar/mobile-menubar/mobile-menubar.d.ts +2 -1
- package/dist/types/components/menubar/search-form/search-form.d.ts +3 -2
- package/dist/types/components.d.ts +35 -8
- package/dist/types/stencil-public-runtime.d.ts +169 -11
- package/dist/zanichelli-it-frontend-kit/index.esm.js +0 -2
- package/dist/zanichelli-it-frontend-kit/p-93d8b277.entry.js +1 -0
- package/dist/zanichelli-it-frontend-kit/p-CFgcJxsy.js +2 -0
- package/dist/zanichelli-it-frontend-kit/zanichelli-it-frontend-kit.esm.js +1 -2
- package/package.json +17 -15
- package/www/build/index.esm.js +0 -2
- package/www/build/p-93d8b277.entry.js +1 -0
- package/www/build/p-CFgcJxsy.js +2 -0
- package/www/build/p-ec9829f4.js +1 -0
- package/www/build/zanichelli-it-frontend-kit.esm.js +1 -2
- package/www/index.html +3 -2
- package/dist/cjs/index-BLzQAHAI.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/zanichelli-it-frontend-kit.cjs.js.map +0 -1
- package/dist/cjs/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.cjs.js.map +0 -1
- package/dist/cjs/zanit-back-to-top_4.cjs.entry.js.map +0 -1
- package/dist/collection/components/back-to-top/back-to-top.js.map +0 -1
- package/dist/collection/components/menubar/menu/menu.js.map +0 -1
- package/dist/collection/components/menubar/menubar.js.map +0 -1
- package/dist/collection/components/menubar/mobile-menubar/mobile-menubar.js.map +0 -1
- package/dist/collection/components/menubar/search-form/search-form.js.map +0 -1
- package/dist/collection/components/menubar/search-form/suggestions.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/index.js.map +0 -1
- package/dist/collection/utils/subjects.api.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-CPhDV9oz.js +0 -246
- package/dist/components/p-CPhDV9oz.js.map +0 -1
- package/dist/components/p-DR2f_bjz.js +0 -387
- package/dist/components/p-DR2f_bjz.js.map +0 -1
- package/dist/components/zanit-back-to-top.js.map +0 -1
- package/dist/components/zanit-menubar.js.map +0 -1
- package/dist/components/zanit-mobile-menubar.js.map +0 -1
- package/dist/components/zanit-search-form.js.map +0 -1
- package/dist/esm/index-DSdvvVFj.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/zanichelli-it-frontend-kit.js.map +0 -1
- package/dist/esm/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.js.map +0 -1
- package/dist/esm/zanit-back-to-top_4.entry.js.map +0 -1
- package/dist/zanichelli-it-frontend-kit/index.esm.js.map +0 -1
- package/dist/zanichelli-it-frontend-kit/loader.esm.js.map +0 -1
- package/dist/zanichelli-it-frontend-kit/p-12c6519e.entry.js +0 -2
- package/dist/zanichelli-it-frontend-kit/p-12c6519e.entry.js.map +0 -1
- package/dist/zanichelli-it-frontend-kit/p-DSdvvVFj.js +0 -3
- package/dist/zanichelli-it-frontend-kit/p-DSdvvVFj.js.map +0 -1
- package/dist/zanichelli-it-frontend-kit/zanichelli-it-frontend-kit.esm.js.map +0 -1
- package/dist/zanichelli-it-frontend-kit/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.esm.js.map +0 -1
- package/www/build/index.esm.js.map +0 -1
- package/www/build/loader.esm.js.map +0 -1
- package/www/build/p-12c6519e.entry.js +0 -2
- package/www/build/p-12c6519e.entry.js.map +0 -1
- package/www/build/p-17633e25.js +0 -2
- package/www/build/p-DSdvvVFj.js +0 -3
- package/www/build/p-DSdvvVFj.js.map +0 -1
- package/www/build/zanichelli-it-frontend-kit.esm.js.map +0 -1
- 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: '
|
|
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";
|
|
@@ -40,10 +40,10 @@ export class ZanitSearchForm {
|
|
|
40
40
|
}
|
|
41
41
|
onShowSuggestionsChange() {
|
|
42
42
|
this.activeSuggestion = '';
|
|
43
|
-
document.body.style.overflowX = this.showSuggestions ? 'hidden' : 'initial';
|
|
44
43
|
}
|
|
45
44
|
/** Emitted on search form submission. */
|
|
46
45
|
search;
|
|
46
|
+
/** Emitted when the search query is reset by the user (e.g. by clicking the reset button). */
|
|
47
47
|
resetSearch;
|
|
48
48
|
async connectedCallback() {
|
|
49
49
|
this.subjectsByArea = await getSubjectsByArea(this.searchEnv);
|
|
@@ -194,13 +194,13 @@ export class ZanitSearchForm {
|
|
|
194
194
|
}))));
|
|
195
195
|
}
|
|
196
196
|
render() {
|
|
197
|
-
return (h(Host, { key: '
|
|
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) => {
|
|
198
198
|
// INFO: prevent ESC from clearing input
|
|
199
199
|
if (isEscKey(e)) {
|
|
200
200
|
e.preventDefault();
|
|
201
201
|
}
|
|
202
202
|
this.handleSuggestionsNav(e);
|
|
203
|
-
} })), h("button", { key: '
|
|
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()));
|
|
204
204
|
}
|
|
205
205
|
static get is() { return "zanit-search-form"; }
|
|
206
206
|
static get encapsulation() { return "shadow"; }
|
|
@@ -218,7 +218,6 @@ export class ZanitSearchForm {
|
|
|
218
218
|
return {
|
|
219
219
|
"searchQuery": {
|
|
220
220
|
"type": "string",
|
|
221
|
-
"attribute": "search-query",
|
|
222
221
|
"mutable": true,
|
|
223
222
|
"complexType": {
|
|
224
223
|
"original": "string | undefined",
|
|
@@ -234,11 +233,11 @@ export class ZanitSearchForm {
|
|
|
234
233
|
"getter": false,
|
|
235
234
|
"setter": false,
|
|
236
235
|
"reflect": false,
|
|
236
|
+
"attribute": "search-query",
|
|
237
237
|
"defaultValue": "undefined"
|
|
238
238
|
},
|
|
239
239
|
"searchEnv": {
|
|
240
240
|
"type": "string",
|
|
241
|
-
"attribute": "search-env",
|
|
242
241
|
"mutable": false,
|
|
243
242
|
"complexType": {
|
|
244
243
|
"original": "SearchEnv",
|
|
@@ -247,7 +246,8 @@ export class ZanitSearchForm {
|
|
|
247
246
|
"SearchEnv": {
|
|
248
247
|
"location": "import",
|
|
249
248
|
"path": "../../../utils/subjects.api",
|
|
250
|
-
"id": "src/utils/subjects.api.ts::SearchEnv"
|
|
249
|
+
"id": "src/utils/subjects.api.ts::SearchEnv",
|
|
250
|
+
"referenceLocation": "SearchEnv"
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
},
|
|
@@ -260,11 +260,11 @@ export class ZanitSearchForm {
|
|
|
260
260
|
"getter": false,
|
|
261
261
|
"setter": false,
|
|
262
262
|
"reflect": false,
|
|
263
|
+
"attribute": "search-env",
|
|
263
264
|
"defaultValue": "SearchEnv.PROD"
|
|
264
265
|
},
|
|
265
266
|
"searchArea": {
|
|
266
267
|
"type": "string",
|
|
267
|
-
"attribute": "search-area",
|
|
268
268
|
"mutable": false,
|
|
269
269
|
"complexType": {
|
|
270
270
|
"original": "string | undefined",
|
|
@@ -279,7 +279,8 @@ export class ZanitSearchForm {
|
|
|
279
279
|
},
|
|
280
280
|
"getter": false,
|
|
281
281
|
"setter": false,
|
|
282
|
-
"reflect": false
|
|
282
|
+
"reflect": false,
|
|
283
|
+
"attribute": "search-area"
|
|
283
284
|
}
|
|
284
285
|
};
|
|
285
286
|
}
|
|
@@ -310,7 +311,8 @@ export class ZanitSearchForm {
|
|
|
310
311
|
"SearchEvent": {
|
|
311
312
|
"location": "import",
|
|
312
313
|
"path": "../../../utils",
|
|
313
|
-
"id": "src/utils/index.ts::SearchEvent"
|
|
314
|
+
"id": "src/utils/index.ts::SearchEvent",
|
|
315
|
+
"referenceLocation": "SearchEvent"
|
|
314
316
|
}
|
|
315
317
|
}
|
|
316
318
|
}
|
|
@@ -322,7 +324,7 @@ export class ZanitSearchForm {
|
|
|
322
324
|
"composed": true,
|
|
323
325
|
"docs": {
|
|
324
326
|
"tags": [],
|
|
325
|
-
"text": ""
|
|
327
|
+
"text": "Emitted when the search query is reset by the user (e.g. by clicking the reset button)."
|
|
326
328
|
},
|
|
327
329
|
"complexType": {
|
|
328
330
|
"original": "void",
|
|
@@ -349,7 +351,7 @@ export class ZanitSearchForm {
|
|
|
349
351
|
}
|
|
350
352
|
static get listeners() {
|
|
351
353
|
return [{
|
|
352
|
-
"name": "
|
|
354
|
+
"name": "mousedown",
|
|
353
355
|
"method": "handleOutsideClick",
|
|
354
356
|
"target": "document",
|
|
355
357
|
"capture": false,
|
|
@@ -369,4 +371,3 @@ export class ZanitSearchForm {
|
|
|
369
371
|
}];
|
|
370
372
|
}
|
|
371
373
|
}
|
|
372
|
-
//# sourceMappingURL=search-form.js.map
|
|
@@ -56,7 +56,7 @@ const buildId = (string) => string
|
|
|
56
56
|
.map((c) => c.charCodeAt(0).toString(16))
|
|
57
57
|
.join('');
|
|
58
58
|
const buildUrl = (params) => {
|
|
59
|
-
return
|
|
59
|
+
return `/ricerca?${new URLSearchParams(params).toString()}`;
|
|
60
60
|
};
|
|
61
61
|
const buildDetail = (user_query, query, area, subject) => ({
|
|
62
62
|
user_query,
|
|
@@ -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
|
package/dist/collection/index.js
CHANGED
|
@@ -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';
|